/* Dashboard, auth and landing. */
:root {
  --bg: #f6f7f9; --surface: #fff; --text: #12151b; --muted: #636b78; --line: #e3e6eb; --line2: #eef0f3;
  --accent: #2563eb; --accent-ink: #fff; --accent-soft: #eaf1fe; --danger: #d92d20; --ok: #12805c;
  --radius: 14px; --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 4px 16px rgb(16 24 40 / .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1015; --surface: #171a21; --text: #eef1f5; --muted: #98a1b0; --line: #2a2f3a; --line2: #20242d;
    --accent: #5b8cff; --accent-ink: #0b1020; --accent-soft: #1b2440; --danger: #ff6b5e; --ok: #3ecf8e;
    --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1015; --surface: #171a21; --text: #eef1f5; --muted: #98a1b0; --line: #2a2f3a; --line2: #20242d;
  --accent: #5b8cff; --accent-ink: #0b1020; --accent-soft: #1b2440; --danger: #ff6b5e; --ok: #3ecf8e;
  --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.015em; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 28px; height: 28px; color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 16px; }
.top nav a:not(.btn) { color: var(--text); display: flex; align-items: center; gap: 6px; }
.top nav form { margin: 0; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: filter .12s, transform .12s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn.lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: var(--surface); color: var(--danger); border-color: var(--line); }
.btn[disabled] { opacity: .55; pointer-events: none; }
button.link { background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; display: flex; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 550; }
label > span { display: flex; justify-content: space-between; gap: 8px; }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; min-height: 40px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[type=color] { width: 100%; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
label.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 450; font-size: 14px; margin: 12px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.stack { display: grid; gap: 14px; }
.alert { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.alert.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--line2); color: var(--muted); }

/* Pages */
.page { max-width: 1040px; margin: 0 auto; padding: 28px 20px 60px; }
.page.narrow { max-width: 560px; }
.pageHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pageHead h1, .pageHead h3 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; }

.authBox { max-width: 400px; margin: 7vh auto; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.authBox h1 { margin-bottom: 4px; }
.authBox form { margin: 20px 0 8px; }

.emptyState { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }
.fi { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.fi .i { width: 22px; height: 22px; }
.fi.big { width: 64px; height: 64px; border-radius: 18px; }
.fi.big .i { width: 30px; height: 30px; }
.newCard { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }

.cardGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cardTile { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.cardTile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.cardTile .ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent); }
.cardTile .ava img { width: 100%; height: 100%; object-fit: cover; }
.tileBody { display: grid; min-width: 0; }
.tileBody b, .tileBody small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tileBody small { color: var(--muted); }
.tileBody .url { color: var(--accent); }
.tileStats { grid-column: 1 / -1; display: flex; gap: 16px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line2); color: var(--muted); font-size: 13px; }
.tileStats span { display: flex; align-items: center; gap: 5px; }
.tileStats .i { width: 15px; height: 15px; }

/* Editor */
body.editor { overflow-y: scroll; }
.edBar { position: sticky; top: 58px; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.edBar .back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.edTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status.err { color: var(--danger); white-space: normal; }
.status.ok { color: var(--ok); }
.edGrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 20px 20px 80px; }
.edPanel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px 26px; box-shadow: var(--shadow); align-self: start; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 -22px 18px; padding: 0 14px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: flex; align-items: center; gap: 7px; padding: 14px 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .i { width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.grid2 .wide { grid-column: 1 / -1; }
.edPreview { position: sticky; top: 130px; align-self: start; }
.device { width: 380px; height: min(780px, calc(100vh - 160px)); margin: 0 auto; border-radius: 42px; padding: 10px; background: #0c0d10; box-shadow: 0 20px 60px rgb(0 0 0 / .18); }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: #fff; }

.imgRow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imgPick { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.imgPick > div { display: grid; gap: 2px; min-width: 0; }
.imgPick .row { margin-top: 6px; }
.imgPrev { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--line2) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.coverPick .imgPrev { border-radius: 10px; width: 84px; height: 40px; }
.imgPick.busy { opacity: .6; pointer-events: none; }

.multi { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; }
.iconBtn { display: grid; place-items: center; width: 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.iconBtn:hover { color: var(--text); border-color: var(--muted); }
.iconBtn.on { color: #e3a008; border-color: #e3a008; }
.iconBtn[disabled] { opacity: .35; pointer-events: none; }
.addRow { justify-self: start; }

.links { display: grid; gap: 10px; margin: 14px 0; }
.linkRow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.linkRow .lico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--line2); color: var(--text); }
.linkRow .fields { display: grid; gap: 6px; min-width: 0; }
.linkRow .fields b { font-size: 13px; }
.linkRow .fields .err { font-size: 12px; color: var(--danger); }
.linkRow .acts { display: grid; grid-template-columns: repeat(2, 34px); gap: 4px; }
.linkRow .acts .iconBtn { width: 34px; min-height: 34px; }
.addLink { display: flex; gap: 8px; }
.addLink select { flex: 1; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choices button { display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; font-size: 14px; cursor: pointer; }
.choices button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; color: var(--accent); }
.choices.small { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.choices.small button { padding: 7px 12px; }
.lay { display: block; width: 54px; height: 84px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.lay::before, .lay::after { content: ""; position: absolute; }
.lay-classic::before { inset: 0 0 auto; height: 24px; background: var(--accent); }
.lay-classic::after { left: 17px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); box-shadow: -9px 16px 0 -7px var(--muted), 9px 16px 0 -7px var(--muted), 0 30px 0 -4px var(--accent); }
.lay-minimal::before { left: 6px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.lay-minimal::after { left: 26px; top: 13px; width: 22px; height: 4px; border-radius: 2px; background: var(--muted); box-shadow: 0 6px 0 var(--line), -20px 22px 0 0 var(--accent), -4px 22px 0 0 var(--accent), 0 22px 0 var(--accent); }
.lay-bold::before { inset: 0 0 auto; height: 44px; background: linear-gradient(var(--muted), #333); }
.lay-bold::after { left: 6px; top: 34px; width: 28px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 16px 0 2px var(--accent), 14px 16px 0 2px var(--accent); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .swatches .custom { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; padding: 0; position: relative; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.swatches .custom { display: block; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); overflow: hidden; }
.swatches .custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.qrWrap { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.qrBox { padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qrBox img { display: block; width: 100%; height: auto; }
.qrCtl { display: grid; gap: 12px; }
.copyRow { display: flex; gap: 6px; }
.sigBox { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.sigPreview { padding: 16px; background: #fff; color: #111; border-radius: 10px; margin: 8px 0 12px; overflow-x: auto; }

.slugRow { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding-left: 11px; background: var(--surface); }
.slugRow input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.slugRow:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

.leadList { display: grid; gap: 10px; }
.leadItem { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 4px; }
.leadItem.unread { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.leadItem header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.leadItem .meta { font-size: 12px; color: var(--muted); }
.leadItem .msg { white-space: pre-line; margin: 4px 0 0; }
.leadItem .acts { display: flex; gap: 6px; margin-top: 6px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 18px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.kpi small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; }
.kpi small .i { width: 15px; height: 15px; }
.kpi b { display: block; font-size: 26px; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 180px; display: block; }
.chart .bar { fill: var(--accent); }
.chart .bar2 { fill: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line2); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 8px 4px; border-bottom: 1px solid var(--line2); }
.tbl td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tip { position: fixed; pointer-events: none; z-index: 50; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap; }

.show-sm { display: none !important; }

/* Landing */
.landing main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.heroL { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 64px 0 48px; }
.heroL h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.07; letter-spacing: -.03em; margin-bottom: 18px; }
.heroL .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks .i { color: var(--ok); width: 16px; height: 16px; }
.phone { justify-self: center; width: 290px; height: 560px; border-radius: 44px; background: var(--surface); border: 10px solid #0c0d10; box-shadow: 0 30px 80px rgb(37 99 235 / .22);
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 0 18px; }
.ph-cover { position: absolute; inset: 0 0 auto; height: 130px; background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.ph-ava { position: relative; margin-top: 70px; width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--surface); display: grid; place-items: center; font-size: 34px; font-weight: 750;
  color: #2563eb; background: #dbe7ff; }
.ph-name { font-weight: 750; font-size: 20px; margin-top: 10px; }
.ph-role { color: var(--muted); font-size: 13px; }
.ph-save { margin-top: 16px; width: 100%; height: 46px; border-radius: 14px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; }
.ph-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-top: 12px; }
.ph-row span { height: 54px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; color: #2563eb; }
.ph-btn { width: 100%; height: 44px; border-radius: 14px; background: var(--bg); margin-top: 10px; }
.ph-btn.short { width: 70%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 0 40px; }
.features article { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.features h3 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 17px; margin: 14px 0 6px; }
.features p { margin: 0; color: var(--muted); }
.how { padding: 20px 0 60px; }
.how h2 { font-size: 28px; letter-spacing: -.02em; }
.how ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how li { counter-increment: s; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.how li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.how li span { color: var(--muted); }
.foot { text-align: center; color: var(--muted); padding: 30px 20px; font-size: 13px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .edGrid { grid-template-columns: 1fr; padding: 14px 12px 60px; }
  .edPreview { display: none; position: fixed; inset: 116px 0 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 16px; top: 116px; }
  body.previewOn .edPreview { display: block; }
  .device { width: min(380px, 100%); height: calc(100vh - 150px); }
  .show-sm { display: inline-flex !important; }
  .heroL { grid-template-columns: 1fr; padding-top: 36px; }
  .phone { display: none; }
  .features, .how ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 0 14px; }
  .top nav { gap: 10px; }
  .hide-sm { display: none; }
  .edBar { padding: 8px 12px; }
  .edPanel { padding: 4px 14px 20px; border-radius: 14px; }
  .tabs { margin: 0 -14px 14px; padding: 0 6px; }
  .tabs button span { display: none; }
  .tabs button { padding: 14px 12px 12px; }
  .tabs button[aria-selected="true"] span { display: inline; }
  .grid2, .imgRow, .qrWrap { grid-template-columns: 1fr; }
  .qrBox { max-width: 260px; }
  .mrow { grid-template-columns: 1fr 100px auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .newCard { flex-direction: column; }
  .authBox { margin: 20px 14px; padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.icw { display: inline-flex; }
.iconBtn .i { width: 16px; height: 16px; }
.tip[hidden] { display: none; }
.btn.copied { border-color: var(--ok); color: var(--ok); }
.invalid input { border-color: var(--danger) !important; }
.linkRow.invalid { border-color: var(--danger); }
.linkRow .err:empty { display: none; }

/* Super-admin */
.page.wide { max-width: 1200px; }
.impBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 20px; font-size: 14px;
  background: color-mix(in srgb, #f59e0b 18%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, #f59e0b 40%, var(--line)); }
.impBar form { margin: 0; }
.adminTabs { display: flex; gap: 4px; overflow-x: auto; margin: -8px 0 22px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.adminTabs a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adminTabs a:hover { color: var(--text); text-decoration: none; }
.adminTabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.admin .alert { margin: 0 0 16px; }
.statGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .statIc { color: var(--accent); }
.stat .statLabel { color: var(--muted); font-size: 13px; font-weight: 550; }
.stat b { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cols2 > .panel .pageHead { margin-bottom: 8px; }
.plainList { list-style: none; margin: 0; padding: 0; }
.plainList li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line2); }
.plainList li:first-child { border-top: 0; }
.plainList li > .small, .plainList li > span.muted { margin-left: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 14px; }
.filters .grow { flex: 1 1 260px; }
.filters select { width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tableWrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel .tableWrap { border: 0; border-radius: 0; margin: 0 -20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.dim td { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tag.tagAdmin { background: var(--accent-soft); color: var(--accent); }
.tag.tagBad { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.okText { color: var(--ok); }
.dangerText, button.link.dangerText { color: var(--danger); }
.ip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.cardCell { display: flex; align-items: center; gap: 10px; }
.cardCell .i { width: 13px; height: 13px; vertical-align: -2px; }
.ava.sm { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.ava.sm img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menuBody { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 240px; display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow), 0 8px 24px rgb(16 24 40 / .12); }
.menuBody form { margin: 0; }
.menuBody button.link { width: 100%; gap: 8px; padding: 8px; border-radius: 8px; font: inherit; font-size: 14px; text-align: left; align-items: center; }
.menuBody button.link:hover { background: var(--line2); }
.menuBody .stack.tight { gap: 4px; padding: 6px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); margin: 4px 0; }
.menuBody input { min-height: 34px; font-size: 14px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.collapsible > summary { list-style: none; cursor: pointer; display: inline-block; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible:not([open]) { background: none; border: 0; padding: 0; }
.formGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.formGrid .wide { grid-column: 1 / -1; margin: 0; }
.userHead { align-items: flex-start; flex-wrap: wrap; }
.userHead h1 { word-break: break-all; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.tempPw { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.tempPw h2 { display: flex; align-items: center; gap: 8px; }
.copyRow { display: flex; gap: 8px; }
.copyRow input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px !important; letter-spacing: .04em; }
.dangerZone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.dangerZone input { max-width: 320px; }
.narrowPanel { max-width: 560px; }
@media (max-width: 760px) {
  .cols2 { grid-template-columns: 1fr; }
  .adminTabs a span { display: none; }
  .adminTabs a.on span { display: inline; }
}
.companyNote { display: block; padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.companyNote .i { color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
small.locked { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
small.locked .i { width: 12px; height: 12px; }
input:disabled { opacity: .7; cursor: not-allowed; }
.linkRow.locked { opacity: .85; }
.linkRow.locked .fields { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.companyHead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.companyHead h1 { margin: 0; }
.companyHead .ava.sm { width: 44px; height: 44px; border-radius: 12px; background-color: #fff; }
.companyHead .ava.sm img { object-fit: contain; }
.sectionTitle { margin: 22px 0 10px; }
a.menuLink { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; color: var(--text); font-size: 14px; }
a.menuLink:hover { background: var(--line2); text-decoration: none; }
.menuBody select { min-height: 34px; font-size: 14px; }
.brandLinks { display: grid; gap: 8px; }
.brandLink { display: grid; grid-template-columns: 170px 1fr 180px auto; gap: 8px; align-items: center; }
.brandLink label.check { margin: 0; font-size: 13px; }
.stickySave { position: sticky; bottom: 0; padding: 14px 0; margin-top: 18px; background: linear-gradient(transparent, var(--bg) 30%); }
.brandImg .imgPrev.logo { background-size: contain; background-repeat: no-repeat; background-color: #fff; }
@media (max-width: 760px) { .brandLink { grid-template-columns: 1fr 1fr; } }
.brandImg .imgPrev.logo { border-radius: 12px; border: 1px solid var(--line); }
.brandImg .imgPrev.cover { border-radius: 10px; width: 120px; height: 40px; }
form.inline { display: inline; margin: 0; }
