/* Customer app for every brand. Tight, plain, one accent colour (--brand) set per brand. */
:root { --brand: #2457FF; --ink: #111; --muted: #666; --line: #d9d9d9; --bg: #fff; --bg2: #f4f4f4; --ok: #1F8A4C; --warn: #B7791F; --err: #C0392B; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: 14px/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:hover { text-decoration: underline; }
h1 { font-size: 18px; margin: 0 0 8px; }
h2 { font-size: 14px; margin: 0; padding: 6px 8px; background: var(--bg2); border-bottom: 1px solid var(--line); }
p { margin: 0 0 8px; }
.top { display: flex; align-items: center; gap: 16px; height: 36px; padding: 0 8px; border-bottom: 1px solid var(--line); background: #fff; }
.top .logo { font-weight: 700; color: var(--brand); text-decoration: none; font-size: 15px; }
.top nav { display: flex; gap: 2px; }
.top nav a { padding: 4px 8px; text-decoration: none; color: var(--ink); border-radius: 3px; }
.top nav a:hover { background: var(--bg2); }
.top nav a.on { color: var(--brand); font-weight: 600; }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.top form { margin: 0; }
main { padding: 8px; max-width: 1200px; }
.foot { padding: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; gap: 12px; margin-top: 16px; }
.notice { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid; border-radius: 3px; margin: 0 0 8px; }
.notice-ok { border-color: var(--ok); background: #eef8f1; }
.notice-err { border-color: var(--err); background: #fdf0ee; }
.notice-close { flex: 0 0 auto; }
.box { border: 1px solid var(--line); border-radius: 3px; margin: 0 0 8px; background: #fff; }
.box .in { padding: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.row > * { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 11px; color: var(--muted); margin: 0 0 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], select { width: 100%; height: 28px; padding: 2px 6px; font: inherit; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
select { appearance: auto; }
.field { margin: 0 0 8px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.btn { display: inline-block; height: 28px; padding: 0 12px; font: inherit; font-weight: 600; line-height: 26px; color: var(--brand); background: #fff; border: 1px solid var(--brand); border-radius: 3px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #eef2ff; text-decoration: none; }
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { filter: brightness(.92); background: var(--brand); }
.btn-danger { color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #fdf0ee; }
.btn-sm { height: 24px; line-height: 22px; padding: 0 8px; font-size: 12px; font-weight: 500; }
.btn[disabled] { opacity: .5; cursor: default; }
table.t { width: 100%; border-collapse: collapse; font-size: 12px; }
table.t th, table.t td { padding: 3px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
table.t th { background: var(--bg2); font-weight: 600; cursor: pointer; user-select: none; position: relative; }
table.t th.num, table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t th[data-dir="asc"]::after { content: " ▲"; font-size: 9px; }
table.t th[data-dir="desc"]::after { content: " ▼"; font-size: 9px; }
table.t tbody tr:hover { background: #f3f3f3; }
table.t td.wrap { white-space: normal; }
.badge { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; line-height: 16px; font-weight: 600; background: #eee; color: #333; }
.badge-success { background: #e2f3e8; color: var(--ok); }
.badge-warning { background: #fbf0dc; color: var(--warn); }
.badge-danger { background: #fbe4e1; color: var(--err); }
.badge-info { background: #e3ebff; color: var(--brand); }
.badge-gray { background: #ececec; color: #555; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.toolbar h1 { margin: 0; }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; }
.auth { max-width: 420px; margin: 24px auto; }
.plan { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.plan:last-child { border-bottom: 0; }
.plan input { margin-top: 3px; }
.plan .price { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; top: 100%; z-index: 60; margin-top: 4px; padding: 4px 10px 6px; white-space: nowrap; font-size: 12px; line-height: 1.2; color: #fff; background: #2f323a; border-radius: 3px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
