/* DesignCore design system — Editorial luxe. Tokens are CSS variables; /brand.css (per firm) overrides the brand ones.
   DC-43. Fonts: Fraunces (display) + Inter (UI). Default accent Clay. */
:root {
  --ground: #F7F3EC; --side: #EFE7DA; --card: #FFFDF9; --line: #E6DDCF;
  --ink: #1C1A17; --ink-2: #4A433A; --muted: #6B6258;
  --accent: #8E4A33; --accent-text: #8E4A33; --accent-rgb: 142, 74, 51;
  --dark: #1C1A17; --dark-hi: #E8B79F;
  --head-font: 'Fraunces', Georgia, serif; --ui-font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 8px 24px -12px rgba(28, 26, 23, .18);
  --focus: 0 0 0 3px rgba(var(--accent-rgb), .28);
  --ok-bg: #E3EBDD; --ok-fg: #2F4A2B; --warn-bg: #F6E7C8; --warn-fg: #6B4A10; --bad-bg: #F5DDD3; --bad-fg: #8A2F17; --info-bg: #E5E9F0; --info-fg: #2B3F5C; --teal-bg: #E0ECEA; --teal-fg: #1F4D47; --idea-bg: #ECE6DC; --idea-fg: #4A433A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--ui-font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head-font); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 18px; } h4 { font-size: 16px; font-family: var(--ui-font); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 12px; }
.display { font-size: 40px; }
em.accent, .accent-word { font-style: italic; color: var(--accent-text); }
.eyebrow { font: 600 11px/1.3 var(--ui-font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side-bd { display: none; }
.side { background: var(--side); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 16px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; min-height: 56px; }
.side-brand img { max-height: 36px; max-width: 170px; width: auto; }
.wordmark { font-family: var(--head-font); font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.wordmark b { font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; font-size: 14px; min-height: 40px; }
.nav a:hover { background: rgba(28, 26, 23, .05); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 rgba(28, 26, 23, .04); }
.nav a[aria-current="page"] svg { color: var(--accent-text); }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.integ { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(28, 26, 23, .04); font-size: 12px; color: var(--ink-2); }
.integ .dot { width: 8px; height: 8px; border-radius: 50%; background: #C9B79E; flex: 0 0 8px; }
.integ .dot.on { background: #2F4A2B; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 8; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px; background: var(--ground); border-bottom: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.searchbtn { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: text; font-size: 14px; }
.searchbtn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.searchbtn .lbl { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.searchbtn kbd { margin-left: auto; font: 11px/1 var(--ui-font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; }
.iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { color: var(--ink); border-color: var(--muted); }
.iconbtn svg { width: 18px; height: 18px; }
.menubtn { display: none; }
.content { padding: 28px; max-width: 1360px; width: 100%; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead .sub { color: var(--muted); margin-top: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 12px var(--ui-font); color: #fff; background: var(--accent); letter-spacing: .02em; flex: 0 0 auto; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.usermenu { position: relative; }
.usermenu .menu { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 20; }
.usermenu.open .menu { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 7px; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: rgba(28, 26, 23, .05); text-decoration: none; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s, transform .05s; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(.94); border-color: var(--accent); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #F4EFE7; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), .08); border-color: transparent; }
.btn-danger { color: var(--bad-fg); border-color: #E9C4B7; }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad-fg); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.pad-lg { padding: 26px; }
.card.dark { background: var(--dark); color: #F4EFE7; border-color: var(--dark); }
.card.dark .eyebrow, .card.dark .muted { color: #B9AE9F; }
.card.dark em.accent, .card.dark .hi { color: var(--dark-hi); }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cardhead h3 { font-size: 19px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* ---------- Chips & status ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--ui-font); background: var(--idea-bg); color: var(--idea-fg); white-space: nowrap; }
.chip-idea { background: var(--idea-bg); color: var(--idea-fg); }
.chip-presented, .chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-approved, .chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-ordered, .chip-info { background: var(--info-bg); color: var(--info-fg); }
.chip-received, .chip-teal { background: var(--teal-bg); color: var(--teal-fg); }
.chip-attention, .chip-bad { background: var(--bad-bg); color: var(--bad-fg); }
.chip-accent { background: rgba(var(--accent-rgb), .12); color: var(--accent-text); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.notice-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.notice-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.notice-bad { background: var(--bad-bg); color: var(--bad-fg); border-color: transparent; }
.notice-info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.help { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--bad-fg); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6258' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.inline { display: flex; gap: 10px; align-items: center; }
.err { color: var(--bad-fg); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle .t { font-weight: 600; font-size: 14px; } .toggle .d { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; border-radius: 999px; background: #C9B79E; border: 0; cursor: pointer; transition: background .15s; padding: 0; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch[aria-checked="true"]::after { left: 21px; }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table th { text-align: left; font: 600 11px/1.3 var(--ui-font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; }
.table .who b { display: block; font-weight: 600; } .table .who span { display: block; font-size: 12px; color: var(--muted); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table select.select { min-width: 132px; }
.table .avatar { flex: 0 0 34px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs [aria-selected="true"], .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- KPIs & home ---------- */
.kpi { padding: 18px 20px; }
.kpi .v { font-family: var(--head-font); font-size: 30px; line-height: 1.1; margin: 6px 0 4px; }
.kpi .s { font-size: 12px; color: var(--muted); }
.projcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.projcard .cover { height: 132px; display: flex; align-items: flex-end; padding: 12px 16px; color: rgba(28, 26, 23, .7); font-size: 12px; font-style: italic; font-family: var(--head-font); }
.projcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.projcard .name { font-family: var(--head-font); font-size: 19px; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.needs { display: flex; flex-direction: column; }
.need { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.need:last-child { border-bottom: 0; }
.need .k { font: 600 11px/1.3 var(--ui-font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.need .m { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pipe .st { padding: 12px; border-radius: var(--radius-sm); background: var(--ground); border: 1px solid var(--line); }
.pipe .st .n { font-family: var(--head-font); font-size: 26px; }
.pipe .st .sw { width: 100%; height: 4px; border-radius: 999px; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font-size: 11px; color: var(--muted); height: 100%; }
.bars .b i { display: block; width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px; background: #D9CBB6; }
.bars .b.now i { background: var(--accent); }
.bars .b .v { color: var(--ink-2); font-weight: 600; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.authcard { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 30px 28px; box-shadow: var(--shadow); }
.authcard .wordmark { margin-bottom: 22px; }
.authcard h1 { font-size: 28px; margin-bottom: 6px; }
.authcard .lead { color: var(--muted); margin-bottom: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.authfoot { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.powered { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: .02em; }
.powered b { font-weight: 600; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; padding: 12px 14px; background: var(--ground); border-radius: var(--radius-sm); }
.qr { display: inline-block; padding: 10px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.qr svg { width: 180px; height: 180px; }

/* ---------- Palette (search) ---------- */
.palette-bd { position: fixed; inset: 0; background: rgba(28, 26, 23, .35); display: none; z-index: 40; padding: 10vh 16px 0; }
.palette-bd.open { display: block; }
.palette { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.palette input { width: 100%; border: 0; outline: none; background: transparent; padding: 16px 18px; font-size: 16px; border-bottom: 1px solid var(--line); }
.palette .res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette .g { font: 600 11px/1.3 var(--ui-font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.palette a { display: block; padding: 10px; border-radius: 10px; color: var(--ink); }
.palette a:hover, .palette a.sel { background: rgba(var(--accent-rgb), .1); text-decoration: none; }
.palette a span { display: block; font-size: 12px; color: var(--muted); }
.palette .empty { padding: 20px; color: var(--muted); text-align: center; }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #F4EFE7; padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); z-index: 60; opacity: 0; transition: opacity .15s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; }
.toast.bad { background: #8A2F17; }
.modal-bd { position: fixed; inset: 0; background: rgba(28, 26, 23, .35); display: none; z-index: 45; padding: 8vh 16px; overflow-y: auto; }
.modal-bd.open { display: block; }
.modal { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.modal h3 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Brand settings ---------- */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; outline-offset: 3px; box-shadow: 0 0 0 2px transparent; position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.optcard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; background: var(--card); text-align: left; width: 100%; }
.optcard[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.optcard .sw { height: 46px; border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-size: 12px; }
.optcard .t { font-weight: 600; font-size: 13px; }
.preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.preview .ph { padding: 10px 14px; border-bottom: 1px solid var(--line); font: 600 11px var(--ui-font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pv-app { display: grid; grid-template-columns: 96px 1fr; height: 220px; }
.pv-app .s { padding: 12px 10px; font-size: 10px; display: flex; flex-direction: column; gap: 6px; }
.pv-app .s i { display: block; height: 8px; border-radius: 4px; width: 70%; opacity: .5; background: currentColor; }
.pv-app .m { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pv-app .m h5 { margin: 0; font-size: 18px; font-weight: 500; }
.pv-app .m .b { display: inline-block; padding: 6px 10px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; width: max-content; }
.pv-app .m .c { height: 42px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }
.pv-phone { padding: 14px; display: flex; justify-content: center; }
.pv-phone .ph2 { width: 160px; height: 300px; border-radius: 26px; border: 6px solid #1C1A17; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 10px; }
.pv-phone .ph2 h5 { margin: 4px 0; font-size: 16px; font-weight: 500; }
.pv-phone .ph2 .b { padding: 8px; border-radius: 999px; text-align: center; color: #fff; font-weight: 600; margin-top: auto; }
.pv-phone .ph2 .c { height: 40px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }
.pv-inv { padding: 16px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.pv-inv .hd { display: flex; justify-content: space-between; align-items: center; }
.pv-inv h5 { margin: 0; font-size: 18px; font-weight: 500; }
.pv-inv table { width: 100%; border-collapse: collapse; } .pv-inv td { padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.pv-inv .tot { font-weight: 600; }
.pv-foot { font-size: 10px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); }
.logo-slot { display: flex; align-items: center; justify-content: center; height: 88px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--ground); }
.logo-slot.dark { background: var(--dark); }
.logo-slot img { max-height: 60px; max-width: 100%; }
.logo-slot.sq { height: 72px; width: 72px; }
.dns { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.dns td { word-break: break-all; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-104%); transition: transform .18s ease; z-index: 30; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .side-bd { position: fixed; inset: 0; background: rgba(28, 26, 23, .3); z-index: 29; display: none; }
  .side-bd.open { display: block; }
  .menubtn { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 8px; flex-wrap: nowrap; }
  .searchbtn { min-width: 0; flex: 1; }
  .searchbtn span.lbl { display: none; }
  .topbar .hide-sm { display: none; }
  .content { padding: 18px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display { font-size: 30px; } h1 { font-size: 28px; }
  .authcard { padding: 26px 20px; }
  .pv-app { grid-template-columns: 72px 1fr; }
}
