/* Genera Content Viewer — design tokens measured from the reference screens (2x retina → CSS px). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #161b26;
  --surface: #1e232e;
  --surface-2: #262b35;
  --surface-hover: #232935;
  --border: #30343e;
  --border-soft: #272c36;
  --text: #c5c6c9;
  --text-muted: #9a9ca1;
  --text-dim: #74777e;
  --text-faint: #4b4f57;
  --accent: #7798da;
  --accent-bg: #1d2534;
  --accent-border: #3c4c6b;
  --seg-active: #353943;
  --panel-head: #0a0b11;
  --ok: #5fb894;
  --warn: #d6a95a;
  --danger: #d97b7b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ layout */
.app { height: 100vh; position: relative; }
.scroller { position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden; }
.scroller::-webkit-scrollbar { width: 17px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb { background: #333944; border-radius: 3px; border-left: 0 solid transparent; border-right: 12px solid transparent; background-clip: padding-box; }
.page { padding: 34px 16px 120px 88px; min-height: 100%; }

/* ------------------------------------------------------------------ title + actions row */
.title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: 0; color: #c5c6c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title .t-muted { color: #96989d; margin-right: 6px; }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface-hover); border-color: #3a3f4b; }
.btn.primary { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }
.btn.primary:hover { background: #212b3e; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .ic.blue { color: #7496d7; } .btn .ic.amber { color: #806b46; } .btn .ic.green { color: #476b5b; }

.seg { display: inline-flex; padding: 4px; gap: 0; height: 37px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; flex: none; }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 500; color: var(--text-dim); transition: background .15s, color .15s; }
.seg button:hover { color: var(--text-muted); }
.seg button.active { background: var(--seg-active); color: var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.25); }

/* ------------------------------------------------------------------ filters */
.filters { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 27px; }
.select, .search { height: 36px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; color: var(--text-muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: border-color .15s; }
.select:hover, .search:focus-within { border-color: #3d424e; }
.select .ic { color: var(--text-dim); }
.select .chev { margin-left: -1px; }
.select.has-value { color: var(--text); border-color: var(--accent-border); }
.select.has-value .ic { color: var(--accent); }
.search { width: 323px; padding: 0 16px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 12px; font-weight: 400; color: var(--text); }
.search input::placeholder { color: var(--text-dim); }
.search .ic { color: var(--text-dim); }
.search .clear { display: none; color: var(--text-dim); }
.search.has-text .clear { display: inline-flex; }

/* ------------------------------------------------------------------ section heading + cards */
.section-title { margin: 18px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #c1c2c5; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 19px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 24px 20px 15.5px; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.card:hover { border-color: #353b48; background: #212733; }
.card-head { display: flex; align-items: center; gap: 12px; height: 20px; margin-bottom: 25px; }
.card-head .file-ic { flex: none; }
.card-name { flex: 1; min-width: 0; font-size: 14px; color: #c6c8ca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-preview { height: 120px; border-radius: 8px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.card-preview.empty { background: var(--surface-2); align-items: center; padding: 10px 14px; }
.card-preview img { height: 100px; max-width: 100%; width: auto; object-fit: contain; display: block; background: #fff; }
.card-preview .ph { color: #f0966f; }
.card-preview .snippet { font-size: 12px; line-height: 1.5; color: var(--text-dim); text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; width: 100%; }
.kebab { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #9a9ca1; flex: none; }
.kebab:hover { background: rgba(255,255,255,.06); color: var(--text); }
.card.skeleton, .skel { background: linear-gradient(90deg, var(--surface) 0%, #232935 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ table */
.table-wrap { margin-top: 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; padding: 24px 24px 12px; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table thead th { height: 55px; background: var(--bg); text-align: left; font-weight: 500; color: #6f7279; font-size: 10px; white-space: nowrap; padding: 0 8px; }
.table thead th:first-child { padding-left: 24px; }
.table thead th.sortable { cursor: pointer; user-select: none; }
.table thead th .th { display: inline-flex; align-items: center; gap: 6px; }
.table thead th .sort { color: #4b4f57; transition: color .15s, transform .15s; }
.table thead th.sortable:hover .sort { color: var(--text-dim); }
.table thead th.sorted { color: #6f7279; font-size: 12px; }
.table thead th.sorted .sort { color: #8a8d94; }
.table thead th.sorted.asc .sort { transform: rotate(180deg); }
.table thead th.sorted.desc .sort { transform: none; }
.table tbody tr { height: 52px; cursor: pointer; transition: background .12s; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody td { border-bottom: 1px solid var(--border-soft); padding: 0 8px; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table tbody td.date { font-size: 12px; letter-spacing: .01em; }
.table tbody td:first-child { padding-left: 16px; }
.table tbody tr:last-child td { border-bottom: 0; }
.namecell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.namecell .nm { color: var(--text); font-size: 13px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--surface-2) center/cover no-repeat; border: 2px solid #1b2029; box-shadow: 0 0 0 1px #30343e; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); overflow: hidden; }
.avatar.thumb { width: 24px; height: 24px; }
.owner { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); }
.owner .chip { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #353943; color: var(--accent); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.owner span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dim { color: var(--text-dim); }
.seo-ok { color: var(--ok); } .seo-warn { color: var(--warn); } .seo-bad { color: var(--danger); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--text-dim); vertical-align: middle; }
.status-dot.active, .status-dot.published { background: var(--ok); } .status-dot.draft, .status-dot.hidden, .status-dot.inactive { background: var(--warn); } .status-dot.archived { background: var(--text-dim); }

.empty { padding: 56px 0 44px; text-align: center; color: var(--text-dim); }
.empty .big { color: var(--text-muted); font-size: 15px; margin-bottom: 6px; }

/* ------------------------------------------------------------------ pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 4px; margin-top: 4px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: 13px; }
.pager .pages { display: flex; align-items: center; gap: 4px; }
.pager .pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.pager .pg:hover:not([disabled]) { background: var(--surface-hover); border-color: var(--border-soft); }
.pager .pg.active { background: var(--seg-active); color: var(--accent); }
.pager .pg[disabled] { opacity: .35; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--text-faint); }
.pager .size { display: inline-flex; align-items: center; gap: 8px; }
.pager .size .select { height: 32px; font-size: 13px; padding: 0 10px; border-radius: 8px; }

.banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px; border: 1px solid var(--accent-border); background: var(--accent-bg); color: var(--accent); border-radius: 10px; font-size: 13px; }
.banner.err { border-color: #5b3b3b; background: #2a1d21; color: #e0a3a3; }
.banner .bar { flex: 1; height: 4px; border-radius: 2px; background: #2a3550; overflow: hidden; max-width: 220px; }
.banner .bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.banner .retry { margin-left: auto; text-decoration: underline; }

/* ------------------------------------------------------------------ rail / sidebar (glass) */
.rail { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 30; width: 48px; border-radius: 20px; padding: 14px 6px; overflow: hidden;
  background: linear-gradient(155deg, rgba(48,56,76,.62) 0%, rgba(30,40,64,.72) 45%, rgba(22,30,52,.82) 100%), #141b2c;
  border: 1px solid rgba(255,255,255,.04); box-shadow: 0 10px 40px rgba(0,0,0,.35); backdrop-filter: blur(18px);
  transition: width .22s cubic-bezier(.4,0,.2,1), padding .22s cubic-bezier(.4,0,.2,1); }
.rail.expanded { width: 220px; padding: 14px 22px 18px; }
.rail .lbl { opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; transition: opacity .15s, max-width .22s; }
.rail.expanded .lbl { opacity: 1; max-width: 200px; }
.rail-back { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 3px; color: #c5c6c9; font-size: 11px; font-weight: 500; width: 100%; border-radius: 10px; }
.rail-back .ic { color: #9a9ca1; }
.rail-section { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 3px; margin-top: 1px; color: #6f7a94; font-size: 10px; font-weight: 600; letter-spacing: .24em; }
.rail-section .ic { color: var(--accent); }
.rail hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 6px 4px; }
.rail-item + hr { margin: 3px 4px; }
.rail-item { position: relative; display: flex; align-items: center; gap: 13px; height: 40px; padding: 0 13px; width: 100%; border-radius: 12px; color: #999ba2; font-size: 13px; font-weight: 400; margin-bottom: 0; }
.rail-item:hover { background: rgba(255,255,255,.04); color: #c5c6c9; }
.rail-item .ic { color: #7b7e86; }
.rail-item.active { background: #2a3446; color: var(--accent); }
.rail-item.active .ic { color: var(--accent); }
.rail-item.active::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--accent); }
.rail-item.dim { color: #7d8089; }
.rail-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 12px; text-align: left; }
.rail-row:hover, .rail-row.open { background: linear-gradient(90deg, rgba(60,72,98,.55), rgba(40,48,68,.45)); }
.rail-row .logo { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; color: #11151e; overflow: hidden; }
.rail-row .logo.blue { background: #2c8cff; color: #fff; }
.rail-row .txt { flex: 1; min-width: 0; }
.rail-row .name { font-size: 15px; color: #fff; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-row .sub { font-size: 12px; color: #7d8089; line-height: 16px; }
.rail-row .tri { color: #c5c6c9; flex: none; }
.rail-menu-item { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 10px; width: 100%; border-radius: 12px; color: #999ba2; font-size: 16px; }
.rail-menu-item:hover { background: rgba(255,255,255,.05); color: #d0d1d4; }
.rail-menu-item .ic { color: #8a8d95; }
.rail-bottom { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }

.flyout { position: fixed; z-index: 40; width: 219px; background: #1b1f29; border: 1px solid #2b303b; border-radius: 20px; padding: 10px 8px 6px; box-shadow: 0 18px 50px rgba(0,0,0,.5); max-height: 70vh; overflow-y: auto; }
.flyout .it { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 10px; width: 100%; color: #9a9ca1; font-size: 15px; }
.flyout .it:hover { background: rgba(255,255,255,.05); color: #d6d7da; }
.flyout .it.sel { color: #fff; }
.flyout .logo { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #11151e; font-size: 8px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.flyout .logo.blue { background: #2c8cff; color: #fff; }
.flyout .cap { text-align: center; color: #6f7279; font-size: 14px; padding: 14px 0 12px; border-top: 1px solid #2b303b; margin-top: 8px; }
.flyout .plat { margin-left: auto; font-size: 10px; letter-spacing: .06em; color: #5f636b; text-transform: uppercase; }

/* ------------------------------------------------------------------ bottom-left disc + footer */
.disc { position: fixed; left: 22px; bottom: 54px; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid #2b303b; display: flex; align-items: center; justify-content: center; z-index: 25; }
.disc i { width: 28px; height: 28px; border-radius: 50%; display: block; background: conic-gradient(from 200deg, #b9a8f2, #9bb9f5, #86d7c4, #8fcbea, #b9a8f2); position: relative; }
.disc i::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #141822; }
.disc i::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #e8eaf2; z-index: 1; }
.foot { position: fixed; left: 22px; bottom: 18px; z-index: 25; font-size: 11px; color: #4b4f57; letter-spacing: .02em; pointer-events: none; display: flex; gap: 14px; }

/* ------------------------------------------------------------------ slide-over panel */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.64); z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.backdrop.show { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 10px; bottom: 11px; right: 13px; width: min(1012px, calc(100vw - 26px)); z-index: 60; display: flex; flex-direction: column; border: 1px solid #1f242f; border-radius: 20px; background: linear-gradient(180deg, #161b26 0%, #181e2b 100%); overflow: hidden; transform: translateX(calc(100% + 24px)); transition: transform .28s cubic-bezier(.4,0,.2,1); box-shadow: -10px 0 60px rgba(0,0,0,.5); }
.panel.show { transform: none; }
.panel-head { position: relative; background: var(--panel-head); border-bottom: 1px solid #24262c; padding: 17px 20px 15px; min-height: 67px; flex: none; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #f1f2f4; line-height: 20px; }
.panel-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.panel-sub { margin-top: 3px; font-size: 11.5px; color: #8a8d94; line-height: 18px; }
.panel-x { position: absolute; right: 22px; top: 17px; width: 28px; height: 28px; border-radius: 8px; color: #c5c6c9; display: inline-flex; align-items: center; justify-content: center; }
.panel-x:hover { background: rgba(255,255,255,.06); }
.panel-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; }
.panel-body > * { flex: none; align-self: stretch; }
.panel-body > .adv-btn { align-self: flex-start; }
.panel-body > .loader { flex: 1; }
.panel-body::-webkit-scrollbar { width: 10px; } .panel-body::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 5px; border: 3px solid transparent; background-clip: padding-box; }
.panel-foot { flex: none; background: var(--panel-head); padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.pbtn { height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid #cfd0d3; color: #d8d9dc; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, opacity .15s; }
.pbtn:hover { background: rgba(255,255,255,.07); }
.pbtn.primary { background: #7898d9; border-color: #7898d9; color: #fff; box-shadow: 0 0 18px rgba(119,152,218,.28); }
.pbtn.primary:hover { background: #86a4e0; }
.pbtn.ghost { border-color: #3a3f4b; color: #9a9ca1; }
.pbtn[disabled] { opacity: .4; cursor: default; }
.foot-right { display: flex; gap: 10px; }

.field { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 11px 14px 9px; margin-bottom: 18px; min-height: 41px; }
.field > label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: linear-gradient(180deg, #181e2b 50%, var(--surface) 50%); font-size: 11px; color: #8a8d94; line-height: 16px; letter-spacing: .01em; }
.field .val { font-size: 13px; color: var(--text); word-break: break-word; line-height: 20px; }
.field .val.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.field .val.muted { color: var(--text-dim); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border: 0; background: none; padding: 0; margin-bottom: 0; min-height: 0; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fields-grid .field.full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { padding: 2px 10px; border-radius: 99px; background: #262b35; border: 1px solid #30343e; font-size: 12px; color: var(--text-muted); }
.divider { height: 1px; background: #282d37; margin: 6px 0 20px; border: 0; }
.adv-btn { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.adv-btn:hover { background: var(--surface); }
.adv-btn.open { border-color: var(--accent-border); color: var(--accent); }
.adv { margin-top: 20px; display: none; }
.adv.show { display: block; }
.adv h4 { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6f7279; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; color: #6f7279; font-weight: 500; font-size: 12px; padding: 8px 10px; background: var(--bg); }
.mini-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); word-break: break-word; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.gallery a { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2) center/contain no-repeat; border: 1px solid var(--border-soft); display: block; }
.rawjson { max-height: 340px; overflow: auto; background: #12161f; border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.55; color: #9aa3b5; white-space: pre-wrap; word-break: break-all; }
.htmlprev { max-height: 260px; overflow: auto; background: #12161f; border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.55; color: #9aa3b5; }
.htmlprev img { max-width: 100%; }
.panel-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.panel-hero .pic { width: 84px; height: 84px; border-radius: 12px; background: var(--surface-2) center/contain no-repeat; border: 1px solid var(--border-soft); flex: none; }
.panel-hero .info { min-width: 0; }
.panel-hero .nm { font-size: 17px; font-weight: 600; color: #e8e9eb; line-height: 24px; word-break: break-word; }
.panel-hero .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: #262b35; color: var(--text-muted); border: 1px solid #30343e; }
.badge.ok { color: var(--ok); border-color: #2c4a3d; background: #1b2925; } .badge.warn { color: var(--warn); border-color: #4d4129; background: #2a2519; } .badge.bad { color: var(--danger); border-color: #523434; background: #2a1d21; }

/* loading disc (as on the reference “Edit Content” loading state) */
.loader { display: flex; align-items: center; justify-content: center; padding: 90px 0; }
.loader .ring { width: 50px; height: 50px; border-radius: 50%; border: 7px solid #4b5059; display: flex; align-items: center; justify-content: center; animation: pulse 1.4s ease-in-out infinite; }
.loader .ring i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid #d0d2d6; display: block; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .75; } }

/* ------------------------------------------------------------------ popovers (kebab / dropdown lists) */
.pop { position: fixed; z-index: 80; min-width: 200px; max-width: 320px; background: #1b1f29; border: 1px solid #2f3440; border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); max-height: 60vh; overflow-y: auto; }
.pop .it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-muted); text-align: left; }
.pop .it:hover { background: rgba(255,255,255,.06); color: var(--text); }
.pop .it.sel { color: var(--accent); }
.pop .it .cnt { margin-left: auto; font-size: 12px; color: var(--text-faint); }
.pop .it .tick { width: 16px; display: inline-flex; color: var(--accent); }
.pop .grp { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5b5f67; }
.pop .sep { height: 1px; background: #2a2f3a; margin: 6px 4px; }
.pop .filter { padding: 4px 4px 6px; } .pop .filter input { width: 100%; height: 32px; border-radius: 8px; border: 1px solid #30343e; background: #161b26; padding: 0 10px; outline: none; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #262b35; border: 1px solid #353b48; color: var(--text); padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ------------------------------------------------------------------ misc views */
.welcome { max-width: 520px; margin: 120px auto 0; text-align: center; color: var(--text-dim); }
.welcome .big { color: var(--text-muted); font-size: 18px; margin: 18px 0 6px; font-weight: 500; }
.welcome .mark { display: inline-block; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; font-size: 14px; }
.kv dt { color: var(--text-dim); } .kv dd { margin: 0; color: var(--text); word-break: break-word; }
.panel-card { margin-top: 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; padding: 24px 28px; }
.panel-card h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #d6d7da; }
.panel-card + .panel-card { margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.pill.ok { background: #1b2925; color: var(--ok); } .pill.bad { background: #2a1d21; color: var(--danger); } .pill.load { background: var(--accent-bg); color: var(--accent); }
.mt { margin-top: 18px; }

@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters { flex-wrap: wrap; } .search { width: 260px; } }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .toprow { flex-direction: column; } .page { padding-left: 76px; } .table-wrap { overflow-x: auto; } .table { min-width: 900px; } }

/* ------------------------------------------------------------------ additions */
.page.menu-mode { padding-left: 248px; }
.title .t-brand { color: #c5c6c9; font: inherit; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 0 6px; margin-left: -6px; vertical-align: top; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title .t-brand .ic { opacity: 0; transition: opacity .15s; color: var(--text-dim); }
.title .t-brand:hover { background: rgba(255,255,255,.05); }
.title .t-brand:hover .ic { opacity: 1; }
.logo-m { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #11151e; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-cards .card { cursor: pointer; }
.brand-cards .card.current { border-color: var(--accent-border); background: #1d2433; }
.badge.bad { color: var(--danger); border-color: #523434; background: #2a1d21; }

/* flyout lists: readable names, left aligned */
.flyout { width: auto; min-width: 262px; max-width: 360px; }
.flyout .it { text-align: left; }
.flyout .it > span:not(.logo):not(.plat) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rail.pinned { width: 256px; }

/* ------------------------------------------------------------------ metrics dashboard */
.page.metrics { padding-right: 28px; }
.metrics .mtop { margin-top: 12px; flex-wrap: wrap; }
.metrics .mctl { align-items: center; }
.seg.tabs { height: 40px; }
.seg.tabs button { font-size: 12px; padding: 0 14px; }
.seg.sm { height: 34px; padding: 3px; }
.seg.sm button { font-size: 11.5px; padding: 0 11px; }
.metrics .select { height: 34px; border-radius: 8px; font-size: 12px; }
.mbody-root { min-height: 200px; }
.muted2 { color: var(--text-dim); font-size: 12px; }
.mfoot-note { margin: 18px 2px 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.55; max-width: 120ch; }
.mfoot-note b { color: var(--text-muted); font-weight: 500; }
.cnt { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--text-dim); background: var(--surface-2); border-radius: 99px; padding: 1px 9px; vertical-align: 1px; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 14px; margin-top: 20px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 16px 18px 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kpi .kl { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .kl .ic { color: var(--text-dim); flex: none; }
.kpi .kv2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi .kv2 b { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; color: #e3e4e7; }
.kpi .ks { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: var(--text-dim); font-size: 11.5px; line-height: 1.4; min-height: 28px; }
.kpi .ks .spark { flex: none; }
.kpi.bad .kv2 b { color: var(--danger); } .kpi.warn .kv2 b { color: var(--warn); } .kpi.ok .kv2 b { color: var(--ok); }
.delta { font-size: 11.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); }
.delta i { font-style: normal; font-weight: 400; color: var(--text-dim); }

/* cards + grids */
.mgrid { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
.mgrid.g-main { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.mgrid.g-3 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mgrid.g-3b { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgrid.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgrid > .mcard { margin-top: 0; }
.mcard { margin-top: 16px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px 20px 18px; min-width: 0; }
.mcard > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mcard h3 { margin: 0; font-size: 14px; font-weight: 600; color: #d6d7da; }
.mcard header .sub { color: var(--text-dim); font-size: 12px; flex: 1; min-width: 120px; }
.mcard .macts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcard .subh { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6f7279; }
.chart-empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: 38px 10px; }
.mcard.wide { grid-column: 1 / -1; }

/* charts */
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border-soft); font-size: 11.5px; color: var(--text-muted); }
.chart-legend .lg i { width: 9px; height: 9px; border-radius: 3px; }
.chart-legend .lg:hover { background: var(--surface-hover); }
.chart-legend .lg.off { opacity: .45; text-decoration: line-through; }
.chart-body svg { display: block; overflow: visible; }
.chart-body svg .grid { stroke: #272c36; stroke-width: 1; }
.chart svg .grid.v { stroke: #232833; }
.chart svg text.ax { fill: #6b6f78; font-size: 11px; font-family: var(--font); }
.chart svg text.ax.mk { font-weight: 600; font-size: 10.5px; }
.chart svg text.ax.band { fill: #a8895a; font-size: 10.5px; letter-spacing: .04em; }
.chart svg text.axt { fill: #6b6f78; font-size: 11px; font-family: var(--font); }
.cal svg text.ax { fill: #6b6f78; font-size: 10px; font-family: var(--font); }
.ctip { position: fixed; z-index: 120; pointer-events: none; min-width: 150px; max-width: 320px; background: #11151e; border: 1px solid #343a48; border-radius: 10px; padding: 9px 11px; box-shadow: 0 14px 40px rgba(0,0,0,.55); font-size: 12px; color: var(--text); }
.ctip .tt { font-weight: 600; color: #e3e4e7; margin-bottom: 6px; word-break: break-word; }
.ctip .tr { display: flex; align-items: center; gap: 8px; color: var(--text-muted); line-height: 1.7; }
.ctip .tr i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ctip .tr span { flex: 1; } .ctip .tr b { color: #e3e4e7; font-weight: 600; } .ctip .tr em { font-style: normal; color: var(--text-dim); }
.ctip .tr.total { border-top: 1px solid #2a2f3a; margin-top: 4px; padding-top: 4px; }
.spark { display: block; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut-wrap svg { flex: none; }
.dn-big { fill: #e3e4e7; font-size: 21px; font-weight: 600; font-family: var(--font); }
.dn-sub { fill: #6b6f78; font-size: 11px; font-family: var(--font); }
.dn-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 7px; }
.dn-legend li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-muted); min-width: 0; }
.dn-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dn-legend li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-legend li b { color: var(--text); font-weight: 600; } .dn-legend li em { font-style: normal; color: var(--text-dim); width: 46px; text-align: right; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); min-height: 24px; border-radius: 6px; }
.hb.click { cursor: pointer; } .hb.click:hover { background: rgba(255,255,255,.04); }
.hb .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .hbar { height: 8px; background: #232833; border-radius: 4px; overflow: hidden; }
.hb .hbar i { display: block; height: 100%; border-radius: 4px; opacity: .9; }
.hb b { color: var(--text); font-weight: 600; min-width: 38px; text-align: right; }
.hb em { font-style: normal; color: var(--text-dim); font-size: 11.5px; min-width: 70px; text-align: right; white-space: nowrap; }
.srows { display: flex; flex-direction: column; gap: 10px; }
.sr { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 54px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); cursor: default; }
.sr .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr .sbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #232833; }
.sr .sbar i { display: block; height: 100%; min-width: 0; } .sr .sbar i + i { border-left: 1px solid #1e232e; }
.sr b { text-align: right; color: var(--text); font-weight: 600; }
.legend2 { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-dim); }
.legend2 i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal { overflow-x: auto; } .cal svg { display: block; }
.calwrap { padding-bottom: 4px; }

/* controls */
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.chk input { accent-color: var(--accent); color-scheme: dark; }
.fld { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.fld input, .sel2 { height: 34px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 0 10px; font-size: 12.5px; outline: none; font-family: inherit; }
.fld input:focus, .sel2:focus { border-color: var(--accent-border); }
.fld input::-webkit-inner-spin-button { opacity: .4; }
.ltfilters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ltfilters .search { height: 34px; border-radius: 8px; background: var(--bg); }
.filtercard { margin-top: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); font-size: 12.5px; color: var(--text-muted); transition: background .15s, border-color .15s, color .15s; }
.chip-btn:hover { background: var(--surface-hover); }
.chip-btn.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }
.chips2 { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.chip2 { font-size: 11px; padding: 2px 9px; border-radius: 99px; background: #243049; color: #9db4e4; white-space: nowrap; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3c4c6b; border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* analytic tables */
.mt-wrap { overflow-x: auto; margin: 0 -4px; }
.mt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mt thead th { text-align: left; font-weight: 500; font-size: 11px; color: #6f7279; padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--border-soft); user-select: none; }
.mt thead th.sortable { cursor: pointer; } .mt thead th.sortable:hover { color: var(--text-muted); }
.mt thead th .sort { margin-left: 5px; opacity: 0; vertical-align: -1px; }
.mt thead th.sorted { color: var(--accent); } .mt thead th.sorted .sort { opacity: 1; } .mt thead th.sorted.asc .sort { transform: rotate(180deg); }
.mt tbody td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); white-space: nowrap; max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.mt tbody tr[data-m] { cursor: pointer; } .mt tbody tr[data-m]:hover, .mt tbody tr.open { background: var(--surface-hover); }
.mt .r { text-align: right; }
.mt .nm { color: var(--text); }
.mt .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.mt tr.exp td { padding: 0; background: #1a1f2a; white-space: normal; max-width: none; }
.expbox { padding: 14px 18px 18px; } .exph { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; } .exph b { color: var(--text); font-weight: 600; word-break: break-all; }
.mini { font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.reclink { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 9px; border-radius: 99px; background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); font-size: 11px; vertical-align: 1px; }
.reclink:hover { background: #212b3e; }
.ext { color: var(--accent); } .ext:hover { text-decoration: underline; }
.vtag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.metrics .pager { margin-top: 12px; }

@media (max-width: 1280px) { .mgrid.g-main, .mgrid.g-3, .mgrid.g-3b { grid-template-columns: minmax(0, 1fr); } .mgrid.g-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .page.metrics { padding-right: 16px; } .hb { grid-template-columns: minmax(60px, 40%) 1fr auto; } .hb em { display: none; } }

/* ------------------------------------------------------------------ SEO optimizer */
.modepill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); white-space: nowrap; }
.modepill.dry, .modepill.ok { color: var(--ok); border-color: #2c4a3d; background: #1b2925; }
.modepill.live { color: var(--danger); border-color: #523434; background: #2a1d21; }
.modepill.warn { color: var(--warn); border-color: #4d4129; background: #2a2519; }
.modepill.off { color: var(--text-dim); }
.btn.danger { color: var(--danger); border-color: #523434; background: #2a1d21; }
.btn.danger:hover { background: #33222a; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.steps li { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--bg); min-width: 0; }
.steps li > i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; background: #2a2f3a; color: var(--text-dim); }
.steps li.ok > i { background: #1b2925; color: var(--ok); border: 1px solid #2c4a3d; }
.steps li div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.steps li b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.steps li span { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.steps li em { font-style: normal; font-size: 11.5px; color: var(--accent); }
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ba div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.ba span { font-size: 11.5px; color: var(--text-dim); } .ba b { font-size: 17px; color: var(--text); font-weight: 600; }
.runhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.runhead h2 { margin: 0; font-size: 17px; font-weight: 600; color: #e3e4e7; }
.runbar { margin-top: 16px; }
.items { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.ocard { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 16px 18px; }
.ocard > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocard > header .nm { color: var(--text); font-weight: 600; font-size: 14px; }
.ocard > header .sp, .rcard header .sp { flex: 1; }
.diff { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 14px; margin-top: 12px; }
.diff .col { background: var(--bg); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.diff .col.after { border: 1px solid var(--accent-border); }
.diff h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6f7279; font-weight: 600; }
.diff .f { margin-bottom: 10px; } .diff .f:last-child { margin-bottom: 0; }
.diff label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.diff p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.5; word-break: break-word; }
.diff .before p { color: var(--text-muted); }
.diff textarea { width: 100%; resize: vertical; border: 1px solid var(--border); background: #11151e; color: var(--text); border-radius: 8px; padding: 8px 10px; font: 13px/1.5 var(--font); outline: none; }
.diff textarea:focus { border-color: var(--accent-border); }
.len { font-variant-numeric: tabular-nums; color: var(--text-dim); } .len.over { color: var(--danger); font-weight: 600; }
.qchips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qchips label { font-size: 11.5px; color: var(--text-dim); margin-right: 4px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: #232833; color: var(--text-muted); font-size: 12px; }
.qchip i { font-style: normal; font-size: 10.5px; color: var(--text-dim); }
.qchip.lt { background: #2a2519; color: #d9bd86; }
.qchip.primary { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); font-weight: 600; }
.flags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; }
.flag.error { background: #2a1d21; color: var(--danger); } .flag.warn { background: #2a2519; color: var(--warn); }
.ocard > footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.ocard > footer .muted2 { margin-left: auto; }
.wlog { margin-top: 10px; }
code.req { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.rcard { border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; background: var(--bg); min-width: 0; }
.rcard.bad { border-color: #523434; }
.rcard header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rcard header .dot { width: 8px; height: 8px; border-radius: 3px; }
.rcard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rcard li { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px; align-items: start; font-size: 12.5px; color: var(--text-muted); }
.rcard li em { font-style: normal; color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.cbox { padding: 8px; max-width: 360px; } .cbox p { margin: 0 0 10px; font-size: 13px; color: var(--text); line-height: 1.5; }
.cbox input:not([type=checkbox]) { width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 0 10px; }
.cbox .fld { flex-direction: column; align-items: stretch; }
@media (max-width: 1280px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .diff { grid-template-columns: 1fr 1fr; } .diff .why { grid-column: 1 / -1; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .diff { grid-template-columns: 1fr; } }

.cmpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmpcol { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.cmpcol h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.kv.small { grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 13px; margin-bottom: 12px; }
.diff:has(> .col:nth-child(3).after) { grid-template-columns: 1fr 1fr 1fr; }
.kv dd.seo-ok { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------ sign-in, account, users */
.app.locked { filter: blur(14px) brightness(.5); pointer-events: none; user-select: none; }
#authRoot { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(12,15,22,.72); padding: 16px; }
.auth-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.auth-card { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.auth-mark { text-align: center; margin-bottom: 14px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 21px; font-weight: 600; color: #e3e4e7; }
.auth-sub { margin: 6px 0 22px; text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); }
.auth-card input { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 0 12px; font: 14px var(--font); outline: none; }
.auth-card input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(119,152,218,.15); }
.auth-err { min-height: 18px; font-size: 12.5px; color: var(--danger); line-height: 1.4; }
.auth-hint { margin: -4px 0 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.btn.wide { width: 100%; justify-content: center; height: 40px; font-size: 13px; }
.auth-foot { margin-top: 16px; font-size: 11.5px; color: var(--text-faint); }
.avatar-m { width: 20px; height: 20px; border-radius: 50%; background: #2c8cff; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rail-item .avatar-m { margin-left: -2px; }
.acct { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 6px; font-size: 13px; color: var(--text-muted); max-width: 300px; }
.acct b { color: #e3e4e7; font-size: 14px; } .acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rolebadge { display: inline-block; width: fit-content; padding: 1px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: #243049; color: #9db4e4; }
.rolebadge.admin { background: #2a2519; color: #d9bd86; } .rolebadge.viewer { background: #232833; color: var(--text-muted); }
.modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(8,10,16,.66); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card .cbox { max-width: none; padding: 0; } .modal-card h4 { margin: 0 0 14px; font-size: 16px; color: #e3e4e7; }
.ufrm { display: flex; flex-direction: column; gap: 12px; }
.ufrm .fld { flex-direction: column; align-items: stretch; gap: 5px; } .ufrm .fld input, .ufrm .fld select { width: 100%; }
.brandpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.temppw { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px dashed var(--accent-border); border-radius: 10px; padding: 12px 14px; }
.temppw code { flex: 1; font: 600 16px ui-monospace, SFMono-Regular, Menlo, monospace; color: #e3e4e7; letter-spacing: .04em; user-select: all; word-break: break-all; }
.users-page tr.off { opacity: .55; }
.users-page .mt tbody tr[data-u] { cursor: pointer; }

.brandpick[hidden] { display: none; }
.chk input[type=checkbox] { width: 15px; height: 15px; flex: none; }
.brandpick .chk { justify-content: flex-start; }
