/* Mwork panels — the shared core of the admin panel and the partner panel: light, calm and serious. White surfaces
   on a pale page, thin hairlines, small radii, no shadows or gradients; the accent only for the main action and the
   current place, colour only where it means something (good / warning / problem); numbers in Poppins. Desktop has a
   white sidebar, tablets an icon rail, phones a bottom menu, and every form or filter opens as a sheet.
   Each panel adds its own file (admin.css, partner.css) that may change the accent tokens and add its own pages. */
@font-face { font-family: "BPG Arial 2009"; src: url("../fonts/bpg-arial-2009.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 700; src: url("../fonts/poppins-700.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Ionicons"; src: url("../fonts/ionicons.ttf") format("truetype"); font-display: block; }

:root {
    --primary: #F2652F; --primary-dark: #D9501C; --primary-soft: #FFF1EA; --primary-tint: #FFF8F4;
    --primary-line: #F9B596; --primary-bar: #F9CDB9; --primary-hover: #FFE4D6; --ring: rgba(242, 101, 47, .12); --ring-strong: rgba(242, 101, 47, .2);
    --ink: #101828; --text: #344054; --muted: #667085; --faint: #98A2B3;
    --page: #F7F8FA; --card: #FFFFFF; --line: #E4E7EC; --line-soft: #F2F4F7; --field: #D0D5DD;
    --blue: #2A78D6; --blue-soft: #EAF2FD; --violet: #6250D6; --violet-soft: #F0EEFC;
    --ok: #079455; --ok-soft: #ECFDF3; --warn: #B54708; --warn-soft: #FFFAEB; --bad: #D92D20; --bad-soft: #FEF3F2;
    --radius: 10px; --radius-sm: 7px; --side: 236px; --max: 1600px;
    --shadow: none;
    --shadow-pop: 0 12px 32px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 13px/1.55 "BPG Arial 2009", "BPG Arial", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ion { font-family: "Ionicons"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; }
.num { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: -.3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Brand ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.logo-word { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.4px; color: var(--ink); }
.logo-word span { color: var(--primary); }
.logo-tag { margin-left: 2px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; background: var(--card); border-right: 1px solid var(--line); }
.sidebar .logo { height: 60px; padding: 0 20px; flex: none; border-bottom: 1px solid var(--line-soft); }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; }
.side-title { display: block; padding: 18px 12px 6px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .5px; }
.side-link { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 6px; color: var(--text); font-size: 12.5px; transition: background .12s, color .12s; }
.side-link .ion { flex: none; width: 18px; font-size: 16px; color: var(--faint); text-align: center; }
.side-link:hover { background: var(--line-soft); }
.side-link.is-active { background: var(--line-soft); color: var(--ink); font-weight: 700; }
.side-link.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--primary); }
.side-link.is-active .ion { color: var(--ink); }
.side-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-me { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 20px; border-top: 1px solid var(--line-soft); }
.side-me b { display: block; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me small { font-size: 11px; color: var(--muted); }
.side-me form { margin: 0 0 0 auto; }
.side-me-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border-radius: 8px; }
.side-me-link > div { min-width: 0; }
.side-me-link:hover b { color: var(--primary-dark); }
.avatar { position: relative; }
.avatar-warn { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--card); }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* ---------- Top bar ---------- */
.shell { margin-left: var(--side); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; padding: 0 28px; background: rgba(246, 247, 249, .86); backdrop-filter: saturate(160%) blur(10px); }
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 60px; max-width: calc(var(--max) - 56px); margin: 0 auto; }
.topbar .logo { display: none; }
.search { position: relative; flex: 1; max-width: 460px; }
.search .ion { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--faint); }
.search input { width: 100%; height: 36px; padding: 0 64px 0 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: 12.5px; outline: none; }
.search input:focus { border-color: var(--primary-line); box-shadow: 0 0 0 4px var(--ring); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--line-soft); color: var(--muted); font: 10.5px "Poppins", sans-serif; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--card); }
.icon-btn.is-plain { border: 0; background: none; box-shadow: none; }
.icon-btn.is-phone { display: none; }

/* ---------- Page ---------- */
.content { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 8px 28px 40px; }
.page-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; line-height: 1.3; color: var(--ink); }
.page-head p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 14px; }
.grid + .grid, .grid + .card, .card + .grid, .card.is-spaced { margin-top: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack { display: grid; gap: 16px; align-content: start; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 16px 20px 0; }
.card-head h2 { font-size: 13.5px; color: var(--ink); }
.card-head p { margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.card-head .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.card-body { padding: 16px 20px 20px; }
.card-body.is-chart { padding-bottom: 14px; }
.link { display: inline-flex; align-items: center; gap: 3px; color: var(--primary-dark); font-weight: 700; font-size: 12px; }
.link:hover { color: var(--primary); }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn .ion { font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-light:hover { background: var(--line-soft); }
.btn-block { width: 100%; }
.segmented { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.segmented a, .segmented button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.segmented a:hover, .segmented button:hover { color: var(--ink); background: var(--line-soft); }
.segmented .is-active { background: var(--ink); color: #fff; font-weight: 700; }
.segmented .is-active:hover { background: var(--ink); color: #fff; }
.segmented .ion { font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.form-stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 12px; color: var(--text); font-weight: 700; }
.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.input::placeholder { color: var(--faint); }
.field.has-error .input { border-color: var(--bad); }
.error { font-size: 11.5px; color: var(--bad); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------- Status & trends ---------- */
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.delta .ion { font-size: 12px; }
.delta.is-up { color: var(--ok); }
.delta.is-down { color: var(--bad); }
.delta.is-flat { color: var(--muted); }
.vs { font-size: 11.5px; color: var(--faint); }
/* An icon in a quiet square: grey for plain things; green / amber / red only when it is a state. */
.tone { flex: none; width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tone-ok { color: var(--ok); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }
.tone-info { color: var(--blue); }

/* ---------- KPI cards ---------- */
.kpi { position: relative; overflow: hidden; padding: 16px 18px 0; display: flex; flex-direction: column; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-top .tone { display: none; }
.kpi-value { margin-top: 8px; font-size: 24px; line-height: 1.15; }
.kpi-value small { font-size: 14px; margin-left: 3px; color: var(--muted); }
.kpi-trend { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.kpi-spark { margin: 10px -18px 0; height: 34px; opacity: .85; }
.kpi > .kpi-trend:last-child { margin-bottom: 16px; }
/* A row of headline numbers is one panel with hairlines between, not four floating cards. */
.grid-4:has(> .kpi) { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-4 > .kpi { border: 0; border-radius: 0; }
.grid-4 > .kpi + .kpi { border-left: 1px solid var(--line-soft); }
.spark { display: block; width: 100%; height: 100%; }
.spark .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Activity chart ---------- */
.chart { position: relative; margin: 18px 0 0; padding: 0 0 28px 44px; }
.chart-plot { position: relative; height: 270px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .base-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .now-line { fill: none; stroke: var(--primary); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart .prev-line { fill: none; stroke: #B9C0CC; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.y-labels { position: absolute; left: 0; top: 0; bottom: 28px; width: 38px; }
.y-labels span { position: absolute; right: 0; transform: translateY(-50%); font: 10.5px "Poppins", sans-serif; color: var(--faint); }
.x-labels { position: absolute; left: 44px; right: 0; bottom: 0; height: 22px; }
.x-labels span { position: absolute; top: 6px; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--field); pointer-events: none; opacity: 0; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(16, 24, 40, .25); pointer-events: none; opacity: 0; }
.tooltip { position: absolute; top: 8px; z-index: 5; min-width: 150px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); pointer-events: none; opacity: 0; transition: opacity .1s; }
.tooltip b { display: block; font-size: 11px; color: #C9CED8; font-weight: 400; margin-bottom: 4px; }
.tooltip div { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #C9CED8; }
.tooltip div strong { margin-left: auto; color: #fff; font: 700 12.5px "Poppins", sans-serif; }
.tooltip i { width: 12px; height: 2px; border-radius: 2px; background: var(--primary); }
.tooltip i.prev { background: #B9C0CC; }
.chart.is-hover .crosshair, .chart.is-hover .chart-dot, .chart.is-hover .tooltip { opacity: 1; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; background: var(--primary); }
.legend i.prev { background: repeating-linear-gradient(90deg, #B9C0CC 0 4px, transparent 4px 7px); }
.chart-empty { position: absolute; inset: 0 0 28px 44px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); }

/* Bar chart: one soft bar per day (or month), the last one and the hovered one in the accent */
.bar-chart { padding: 18px 20px 4px; }
.bar-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.bar-chart text { fill: var(--faint); font-size: 13px; font-family: "BPG Arial 2009", sans-serif; }
.bar-chart .gridline { stroke: var(--line-soft); }
.bar-chart rect.bar { fill: var(--primary-bar); transition: fill .12s; }
.bar-chart rect.bar.is-last, .bar-chart rect.bar:hover { fill: var(--primary); }

/* Small numbers under the chart */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat-row > div { padding: 14px 20px 16px; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-label { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-row .num { display: block; margin: 4px 0 6px; font-size: 19px; }

/* ---------- Lists ---------- */
.rows { padding: 6px 8px 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); }
a.row:hover { background: var(--line-soft); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { flex: none; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.badge { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--line-soft); color: var(--ink); font: 700 12px "Poppins", sans-serif; display: inline-flex; align-items: center; justify-content: center; }
.badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.badge.is-info { background: var(--blue-soft); color: var(--blue); }
.all-clear { display: flex; align-items: center; gap: 10px; margin: 4px 20px 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }

/* Bars: funnel, professions, cities */
.bars { display: grid; gap: 14px; padding: 18px 20px 22px; }
.bar-top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--text); }
.bar-top .num { margin-left: auto; font-size: 13px; }
.bar-top small { font-size: 11px; color: var(--faint); min-width: 38px; text-align: right; }
.bar-track { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary); min-width: 4px; }
.bar-fill.is-blue { background: var(--blue); }
.bar-fill.is-violet { background: var(--violet); }
.empty { padding: 22px 20px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* Analytics: a plain number table (stays a table on phones), ranked rows, a heat cell */
.matrix { width: 100%; margin-top: 12px; border-collapse: collapse; }
.matrix th { padding: 9px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.matrix td { padding: 11px 20px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td b { color: var(--ink); }
.matrix .right { text-align: right; }
.heat { display: inline-block; min-width: 50px; padding: 4px 8px; border-radius: 6px; text-align: center; font-size: 12px; color: var(--ink); }
.ranks { list-style: none; margin: 8px 0 6px; padding: 0; }
.ranks li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.ranks li:last-child { border-bottom: 0; }
.ranks .num { color: var(--ink); }
.rank-name { flex: 1; min-width: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.rank-name small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* Donut: who registered */
.donut-wrap { display: flex; align-items: center; gap: 20px; padding: 16px 20px 20px; }
.donut { position: relative; flex: none; width: 128px; height: 128px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center .num { font-size: 24px; line-height: 1; }
.donut-center small { margin-top: 3px; font-size: 11px; color: var(--muted); }
.donut-legend { flex: 1; display: grid; gap: 12px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .num { margin-left: auto; font-size: 13px; }
.donut-legend small { width: 38px; text-align: right; font-size: 11.5px; color: var(--faint); }
.rating-line { display: flex; align-items: center; gap: 8px; margin: 0 20px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.rating-line .num { font-size: 15px; }
.rating-line .ion { color: #F5A524; font-size: 15px; }

/* ---------- People: summary tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tile .num { display: block; font-size: 20px; line-height: 1.15; }
.tile small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Lists: toolbar, table, pager ---------- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 260px; max-width: 360px; }
.toolbar .search input { height: 38px; padding-right: 12px; box-shadow: none; }
.toolbar .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 12.5px; color: var(--ink); cursor: pointer; max-width: 200px; }
.select:focus { outline: none; border-color: var(--primary-line); box-shadow: 0 0 0 4px var(--ring); }
.field .select { height: 44px; max-width: none; width: 100%; border-color: var(--field); font-size: 13.5px; }
.toolbar .segmented { box-shadow: none; }
.toolbar .segmented a { height: 30px; }
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 12.5px; color: var(--text); cursor: pointer; }
.chip-toggle.is-active { border-color: var(--primary-line); background: var(--primary-tint); color: var(--primary-dark); font-weight: 700; }
.only-phone { display: none !important; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 16px; background: #FAFBFC; border-bottom: 1px solid var(--line); text-align: left; font-size: 11.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; transition: background .12s; }
.table tbody tr[data-href]:hover { background: #FBFBFC; }
.table tr.is-off td > * { opacity: .55; }
.table tr.is-off td.is-end > * { opacity: 1; }
.row-tools { display: inline-flex; align-items: center; gap: 2px; }
.row-tools form { display: contents; }
.sub-note { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.table .right { text-align: right; }
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person img, .person .initial { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--line-soft); }
.initial { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; color: var(--text); background: var(--line-soft) !important; }
.person b { display: block; color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { display: block; font-size: 11.5px; color: var(--muted); }
.sub { display: block; font-size: 11.5px; color: var(--faint); }
.stars { display: inline-flex; align-items: center; gap: 4px; font: 700 12.5px "Poppins", sans-serif; color: var(--ink); }
.stars .ion { color: #F5A524; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill .ion { font-size: 12px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-violet { background: var(--violet-soft); color: var(--violet); }
.pill-info { background: var(--blue-soft); color: var(--blue); }
.pill-muted { background: var(--line-soft); color: var(--muted); }
.pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pager nav { display: flex; align-items: center; gap: 8px; }
.pager .btn { height: 34px; padding: 0 10px; }
.pager .is-disabled { opacity: .45; pointer-events: none; }
.no-results { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.no-results .ion { font-size: 30px; color: var(--faint); }

/* ---------- Records: back link, notices, small numbers, sub-tabs, facts, forms ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.back:hover { color: var(--ink); }
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 24px 18px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12.5px; }
.notice .ion { font-size: 18px; flex: none; }
.notice b { display: block; }
.notice.is-bad { background: var(--bad-soft); color: var(--bad); }
.notice.is-warn { background: var(--warn-soft); color: var(--warn); }
.content > .notice { margin: 0 0 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mini-stats > div { padding: 16px 18px; }
.mini-stats > div + div { border-left: 1px solid var(--line); }
.mini-stats span { display: block; font-size: 11.5px; color: var(--muted); }
.mini-stats .num { display: block; margin-top: 4px; font-size: 20px; }
.mini-stats small { font-size: 11px; color: var(--faint); }
.subtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 16px; border-bottom: 1px solid var(--line); }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { position: relative; flex: none; height: 42px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.subtabs button:hover { color: var(--ink); }
.subtabs button.is-active { color: var(--ink); font-weight: 700; }
.subtabs button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.subtabs .badge { margin-left: 4px; height: 20px; min-width: 20px; font-size: 11px; }
.tab-panel { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kv { display: grid; padding: 4px 20px 12px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 400; text-align: right; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 16px 20px 20px; }
.thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line-soft); }
.thumb-wrap { position: relative; }
.thumb-wrap .pill { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 6px; font-size: 10px; background: rgba(16, 24, 40, .7); color: #fff; }
.textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; font-size: 13px; resize: vertical; outline: none; }
.textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.facts { margin: 6px 0 8px; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.facts small { font-size: 11px; color: var(--muted); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: #FDE2DF; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; line-height: 1.35; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--text); background: #fff; }
.choices input:checked + span { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-dark); font-weight: 700; }
.choices input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring-strong); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink); }
.switch-row input { flex: none; appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--field); cursor: pointer; transition: background .15s; }
.switch-row input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .15s; }
.switch-row input:checked { background: var(--primary); }
.switch-row input:checked::before { transform: translateX(16px); }
.switch-row input:focus-visible { box-shadow: 0 0 0 4px var(--ring-strong); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-panel.is-wide { width: min(560px, calc(100vw - 32px)); }
.form-errors { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: 12px; }
.result-group + .result-group { margin-top: 16px; }
.card > .row { margin: 0 8px; }
.card > .row:last-child { margin-bottom: 8px; }
.num-sm { font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); }
.lead-text { font-size: 13px; color: var(--ink); }
.person-text { min-width: 0; }
.person .verified { color: var(--blue); font-size: 13px; }
.sub.is-inline { display: inline; }
.pill-brand { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Content & moderation ---------- */
.tone-muted { color: var(--muted); }
.tone .num { color: inherit; font-size: 15px; }
.tab-strip { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; border-bottom: 1px solid var(--line); }
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip a { position: relative; flex: none; padding: 12px 12px 13px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tab-strip a:hover { color: var(--ink); }
.tab-strip a.is-active { color: var(--ink); font-weight: 700; }
.tab-strip a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.inline-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.record-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 20px 24px; }
.record-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.record-title { flex: 1; min-width: 220px; }
.record-title h1 { font-size: 19px; line-height: 1.35; color: var(--ink); }
.record-title .pills { margin-top: 8px; }
.split.is-spaced, .card.is-spaced, .stack.is-spaced { margin-top: 16px; }
.content-text { font-size: 13.5px; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.row.is-top { align-items: flex-start; }
.row.is-hidden { opacity: .62; }
.row.is-hidden:hover { opacity: 1; }
.row-main .wrap { white-space: normal; overflow: visible; color: var(--text); font-size: 12.5px; margin-top: 2px; }
.row-main .link { margin-top: 4px; font-size: 11.5px; }
.row-main .pill { margin-left: 6px; vertical-align: 1px; height: 20px; font-size: 10.5px; }
.counts { display: flex !important; align-items: center; gap: 4px; margin-top: 3px; }
.counts .ion { font-size: 12px; margin-left: 4px; }
.counts .ion:first-child { margin-left: 0; }
.media { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--line-soft); display: flex; align-items: center; justify-content: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: rgba(16, 24, 40, .25); }
.stars-line { display: flex; gap: 1px; margin: 2px 0; color: #F5A524; font-size: 12px; }
.mini-photos { display: flex; gap: 6px; margin-top: 8px; }
.mini-photos img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.post-video { width: 100%; max-height: 520px; border-radius: 12px; background: #000; }

/* ---------- Catalog bits: card tabs, chips, prices ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card-tabs { margin: -4px 0 16px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.catalog-actions { justify-content: flex-end; margin: 0 0 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-button { border: 0; cursor: pointer; font-family: inherit; }
.pill-button:hover { background: var(--primary-hover); }
.initial.avatar-sm { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.price-cell { display: inline-flex; flex-direction: column; align-items: flex-end; }
.old-price { text-decoration: line-through; }
.row-end form { margin: 0; }

/* ---------- Settings: sections on the left, fields on the right ---------- */
.settings { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: 76px; }
.settings-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; }
.settings-nav a:hover { background: var(--card); }
.settings-nav a.is-active { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.settings-nav b { display: block; font-size: 13px; color: var(--ink); }
.settings-nav small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.settings-nav .tone { width: 34px; height: 34px; font-size: 16px; }
.settings-nav a:not(.is-active) .tone { background: var(--line-soft); color: var(--muted); }
.settings-fields { display: grid; gap: 16px; max-width: 640px; }
.setting-switch { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.setting-switch b { display: block; font-size: 13px; font-weight: 700; }
.setting-switch small { display: block; font-size: 11.5px; color: var(--muted); }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- Bottom sheet (phones) / dialog (desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.is-open { display: block; }
.sheet-dim { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); animation: fade .2s ease-out; }
.sheet-panel { position: absolute; left: 50%; top: 50%; width: min(440px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; transform: translate(-50%, -50%); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-pop); animation: pop .2s ease-out; }
.sheet-grab { display: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.sheet-head h2 { font-size: 15px; color: var(--ink); }
.sheet-head .icon-btn { margin-left: auto; width: 34px; height: 34px; font-size: 17px; box-shadow: none; }
.sheet-body { padding: 10px 20px 22px; display: grid; gap: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
@keyframes rise { from { transform: translateY(100%); } }

/* Mobile menu sheet: the whole navigation */
.menu-groups { display: grid; gap: 4px; }
.menu-groups .side-title { padding: 12px 6px 4px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--line-soft); font-size: 11.5px; color: var(--text); text-align: center; }
.menu-tile .ion { font-size: 20px; color: var(--primary); }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; box-shadow: var(--shadow-pop); transition: opacity .25s, transform .25s; }
.toast .ion { font-size: 18px; color: var(--primary-line); }
.toast.is-error .ion { color: #FDA29B; }
.toast.is-gone { opacity: 0; transform: translate(-50%, 10px); }

.tabbar { display: none; }

/* ---------- Laptop ---------- */
@media (max-width: 1280px) {
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mini-stats > div:nth-child(4) { border-left: 0; }
    .mini-stats > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
    .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 > .kpi:nth-child(3) { border-left: 0; }
    .grid-4 > .kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 > :last-child { grid-column: 1 / -1; }
}

/* ---------- Tablet: icon rail ---------- */
@media (max-width: 1100px) {
    :root { --side: 76px; }
    .sidebar .logo { justify-content: center; padding: 0; }
    .sidebar .logo-word, .sidebar .logo-tag, .sidebar .side-title, .side-label, .side-me-link > div, .side-me form { display: none; }
    .side-nav { padding: 6px 12px; }
    .side-link { justify-content: center; padding: 0; height: 44px; }
    .side-link .count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
    .side-me { justify-content: center; border: 0; padding: 0; margin-bottom: 16px; }
    .grid-main, .split, .catalog-grid, .settings { grid-template-columns: minmax(0, 1fr); }
    .settings-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
    .settings-nav::-webkit-scrollbar { display: none; }
    .settings-nav a { flex: none; padding: 8px 12px; }
    .settings-nav small { display: none; }
    .table .is-wide { display: none; }
}

/* ---------- Phone: bottom menu, sheets ---------- */
@media (max-width: 760px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .sidebar { display: none; }
    .shell { margin-left: 0; }
    .topbar { padding: 0 14px; background: rgba(246, 247, 249, .92); }
    .topbar-inner { height: 58px; gap: 8px; }
    .topbar .logo { display: flex; }
    .topbar .logo-word { font-size: 18px; }
    .topbar .search { display: none; }
    .icon-btn.is-phone { display: inline-flex; }
    .topbar .icon-btn { width: 38px; height: 38px; }
    .content { padding: 4px 14px 24px; }
    .page-head { gap: 12px; margin-bottom: 14px; }
    .page-head h1 { font-size: 19px; }
    .page-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
    .page-actions > .segmented { flex: 1 1 100%; }
    .page-actions > .btn { flex: 1; }
    .segmented { width: 100%; overflow-x: auto; scrollbar-width: none; }
    .segmented::-webkit-scrollbar { display: none; }
    .segmented a, .segmented button { flex: 1 0 auto; padding: 0 12px; }
    .grid { gap: 10px; }
    .grid + .grid, .grid + .card, .card + .grid { margin-top: 10px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2, .grid-3, .grid-main { grid-template-columns: minmax(0, 1fr); }
    .stack { gap: 10px; }
    .card { border-radius: 12px; }
    .kpi { padding: 14px 14px 0; }
    .kpi-label { font-size: 11.5px; line-height: 1.35; }
    .kpi-top .tone { display: none; }
    .kpi-value { margin-top: 6px; font-size: 21px; }
    .kpi-value small { font-size: 14px; }
    .kpi-trend .vs { display: none; }
    .kpi-spark { margin: 8px -14px 0; height: 36px; }
    .card-head { padding: 14px 14px 0; }
    .card-head .end { margin-left: 0; width: 100%; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex: none; }
    .chart { padding-left: 36px; }
    .chart-plot { height: 210px; }
    .y-labels { width: 30px; }
    .x-labels { left: 36px; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row > div { padding: 12px 14px; }
    .stat-row > div:nth-child(3) { border-left: 0; }
    .stat-row > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .stat-row .num { font-size: 17px; }
    .rows { padding: 4px 2px 6px; }
    .bars { padding: 14px 14px 18px; }
    .bar-chart { padding: 14px 14px 4px; }
    .bar-chart text { font-size: 24px; }
    .matrix th, .matrix td { padding-left: 14px; padding-right: 14px; }
    .matrix .is-wide { display: none; }
    .matrix th { white-space: normal; }
    .matrix td .pill.only-phone { display: flex !important; width: fit-content; margin-top: 5px; height: 21px; font-size: 10.5px; }
    .ranks li { padding: 10px 14px; }
    .facts > div { padding: 10px 14px; }
    .donut-wrap { padding: 14px; gap: 16px; }
    .donut { width: 108px; height: 108px; }
    .rating-line { margin: 0 14px 14px; }
    .all-clear { margin: 4px 14px 14px; }
    .sheet-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 85vh; transform: none; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: rise .24s cubic-bezier(.2, .8, .2, 1); }
    .sheet-grab { display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--field); }
    .sheet-head { padding: 12px 16px 4px; }
    .sheet-body { padding: 8px 16px 18px; }
    .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .tabbar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
    .tabbar a, .tabbar button { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; background: none; font-size: 10px; color: var(--muted); white-space: nowrap; cursor: pointer; }
    .tabbar .ion { font-size: 22px; }
    .tabbar .is-active { color: var(--primary-dark); font-weight: 700; }
    .tabbar .count { position: absolute; top: 0; left: calc(50% + 4px); min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
    .only-phone { display: inline-flex !important; }
    .only-desktop { display: none !important; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
    .tile { padding: 12px; gap: 10px; }
    .tile .tone { width: 32px; height: 32px; font-size: 15px; }
    .tile .num { font-size: 17px; }
    .toolbar { padding: 12px; }
    .toolbar .search { display: block; flex: 1 1 0; max-width: none; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; }
    .table tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
    .table tbody tr:last-child { border-bottom: 0; }
    .table td { padding: 0; border: 0; }
    .table td + td { margin-top: 6px; }
    .table .is-hide { display: none; }
    .table td.is-end { position: absolute; right: 14px; top: 14px; margin: 0; }
    .table td.is-inline { display: inline-block; margin: 6px 10px 0 49px; }
    .table td.is-inline + td.is-inline { margin-left: 0; }
    .person { padding-right: 96px; }
    .notice { margin: 0 16px 14px; }
    .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-stats > div { padding: 12px 14px; }
    .mini-stats > div:nth-child(odd) { border-left: 0; }
    .mini-stats > div:nth-child(4) { border-left: 1px solid var(--line); }
    .mini-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 14px 14px; }
    .row-2 { grid-template-columns: 1fr; }
    .record-head { padding: 16px; gap: 12px; }
    .record-icon { width: 42px; height: 42px; font-size: 19px; }
    .record-title { min-width: 0; }
    .record-title h1 { font-size: 17px; }
    .media { width: 48px; height: 48px; }
    .rows .row-end .btn-sm { padding: 0 10px; }
    .kv, .journal { padding-left: 14px; padding-right: 14px; }
    .pager { padding: 10px 14px; }
}
