@font-face { font-family: 'Syne'; src: url(../demo/fonts/syne-latin-wght-normal.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(../demo/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
    --bg: #F6F1E9;
    --surface: #FBF7F0;
    --card: #FFFDF9;
    --roast: #2B1A12;
    --roast-2: #46301F;
    --muted: #7A6455;
    --faint: #A8968A;
    --line: #E8DDCF;
    --grid: #EFE7DB;
    --clay: #B9472F;
    --clay-2: #9C3823;
    --rose: #E58C7B;
    --rose-soft: #F7D9CF;
    --coimbra: #B9472F;
    --leiria: #1E6FA8;
    --tomar: #B7862A;
    --good: #4F7A3F;
    --display: 'Syne', 'Jakarta', system-ui, sans-serif;
    --sans: 'Jakarta', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--roast); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--roast); color: #F6EFE4; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.logo { display: flex; align-items: center; gap: 8px; padding: 0 8px; font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.logo svg { width: 26px; height: 26px; color: var(--rose); }
.logo small { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 228, .5); margin: 4px 0 0 4px; }
.nav { display: grid; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 11px; font-weight: 600; font-size: 14px; color: rgba(246, 239, 228, .72); transition: background .2s, color .2s; }
.nav button svg { width: 19px; height: 19px; }
.nav button:hover { background: rgba(246, 239, 228, .06); color: #F6EFE4; }
.nav button[aria-current] { background: rgba(229, 140, 123, .16); color: #fff; }
.nav button[aria-current] svg { color: var(--rose); }
.side-shops { margin-top: auto; display: grid; gap: 8px; padding: 14px 12px; border-radius: 14px; background: rgba(246, 239, 228, .05); }
.side-shops h3 { margin: 0 0 2px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 228, .5); }
.ss { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; font-size: 13px; }
.ss i { width: 8px; height: 8px; border-radius: 50%; }
.ss span { color: rgba(246, 239, 228, .55); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-link { color: rgba(246, 239, 228, .75); font-size: 13px; font-weight: 600; text-decoration: none; padding: 0 8px; }
.side-link:hover { color: var(--rose); }

.main { min-width: 0; padding: 0 32px 48px; }
.bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 0 20px; }
.crumb { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.bar h1 { margin: 0; font: 700 30px/1 var(--display); letter-spacing: -.03em; }
.bar-right { display: flex; gap: 14px; align-items: center; }
.me { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); font: 800 13px/1 var(--sans); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); gap: 2px; }
.seg button { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.seg button i { width: 8px; height: 8px; border-radius: 50%; }
.seg button[aria-pressed="true"] { background: var(--roast); color: #F6EFE4; }

.view-in { animation: vin .35s var(--ease); }
@keyframes vin { from { opacity: 0; transform: translateY(6px); } }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.card h2 { margin: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.card .hsub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.kpi .lab { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi .val { font: 800 32px/1.1 var(--sans); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 15px; color: var(--faint); font-weight: 700; }
.kpi .delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.kpi .delta svg { width: 13px; height: 13px; }
.kpi .delta { white-space: nowrap; }
.kpi .delta span { color: var(--muted); font-weight: 500; margin-left: 4px; white-space: normal; }
.row2 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); margin-top: 16px; }
.row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--sans); fill: var(--muted); }
.chart .hit { fill: transparent; cursor: default; }
.chart .colhl { fill: var(--grid); opacity: 0; transition: opacity .15s; }
.chart g.col:hover .colhl { opacity: .7; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--roast); color: #F6EFE4; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; min-width: 150px; box-shadow: 0 12px 24px rgba(43, 26, 18, .3); }
.tip b { display: block; font-size: 12px; color: rgba(246, 239, 228, .65); font-weight: 600; margin-bottom: 6px; }
.tip div { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; padding: 1px 0; font-variant-numeric: tabular-nums; }
.tip div i { width: 9px; height: 9px; border-radius: 2px; }
.tip div.t { border-top: 1px solid rgba(246, 239, 228, .18); margin-top: 5px; padding-top: 5px; font-weight: 700; grid-template-columns: 1fr auto; }

.feed { display: grid; gap: 0; overflow: hidden; }
.fi { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grid); }
.fi:last-child { border-bottom: 0; }
.fi .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--sans); background: var(--surface); border: 1px solid var(--line); }
.fi b { font-size: 13.5px; font-weight: 700; }
.fi small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.fi small i { width: 7px; height: 7px; border-radius: 50%; }
.fi .when { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.fi.new { animation: fin .6s var(--ease); }
@keyframes fin { from { opacity: 0; transform: translateY(-10px); background: var(--rose-soft); } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.hbars { display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: minmax(0, 150px) 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.hb .tr { height: 10px; border-radius: 0 4px 4px 0; background: var(--grid); overflow: hidden; }
.hb .tr i { display: block; height: 100%; background: var(--clay); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }
.hist-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--rose-soft); color: var(--clay-2); font-size: 13px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--clay); color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: background .2s, transform .15s; }
.btn:hover { background: var(--clay-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.ghost { background: transparent; color: var(--roast); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.dark { background: var(--roast); }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.mrow { cursor: pointer; transition: background .15s; }
.mrow:hover td { background: var(--surface); }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.who .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--sans); background: var(--surface); border: 1px solid var(--line); flex: none; }
.who small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.tier { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.tier i { width: 8px; height: 8px; border-radius: 50%; }
.shopc { display: inline-flex; align-items: center; gap: 7px; }
.shopc i { width: 8px; height: 8px; border-radius: 50%; }
.stamps-mini { display: inline-flex; gap: 2px; vertical-align: middle; }
.stamps-mini i { width: 7px; height: 7px; border-radius: 50%; background: var(--grid); }
.stamps-mini i.on { background: var(--clay); }
.code { font: 700 12.5px/1 var(--sans); letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); min-width: 240px; }
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 13.5px; }
.search:focus-within { border-color: var(--roast); }
.count { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(43, 26, 18, .35); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100%); background: var(--bg); box-shadow: -20px 0 40px rgba(43, 26, 18, .2); overflow-y: auto; padding: 24px; animation: din .35s var(--ease); }
@keyframes din { from { transform: translateX(100%); } }
.d-head { display: flex; gap: 14px; align-items: center; }
.d-head .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 19px/1 var(--display); background: var(--rose); flex: none; }
.d-head h2 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.d-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.d-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); align-self: flex-start; flex: none; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.d-stats div { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.d-stats b { display: block; font: 800 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.d-stats span { font-size: 11.5px; color: var(--muted); }
.d-sec { margin: 22px 0 10px; font: 700 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.split i { display: block; height: 100%; }
.split-l { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.split-l span { display: inline-flex; align-items: center; gap: 6px; }
.split-l i { width: 8px; height: 8px; border-radius: 2px; }
.dv { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grid); font-size: 13px; align-items: start; }
.dv i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.dv small { display: block; color: var(--muted); font-size: 12px; }
.dv em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--clay); }

/* campaigns */
.camp { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.field { margin-bottom: 18px; }
.field > label, .field > .lab { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.field > label em, .field > .lab em { font-style: normal; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.field input[type=text], .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 13px; font-size: 14px; resize: none; outline: 0; }
.field input[type=text]:focus, .field textarea:focus { border-color: var(--roast); background: var(--card); }
.field em.over { color: var(--clay); }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.imgs button { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.imgs button img { width: 100%; height: 100%; object-fit: cover; }
.imgs button[aria-pressed="true"] { border-color: var(--roast); outline-color: var(--roast); }
.auds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aud { text-align: left; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: grid; gap: 2px; }
.aud b { font-size: 13.5px; }
.aud span { font-size: 12px; color: var(--muted); }
.aud span strong { color: var(--roast); font-variant-numeric: tabular-nums; }
.aud[aria-pressed="true"] { border-color: var(--roast); background: var(--card); box-shadow: inset 0 0 0 1px var(--roast); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.toggle-row b { font-size: 13.5px; display: block; }
.toggle-row span { font-size: 12px; color: var(--muted); }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.sendrow { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.reach { font-size: 13px; color: var(--muted); }
.reach b { color: var(--roast); font-size: 15px; font-variant-numeric: tabular-nums; }

.preview { position: sticky; top: 20px; }
.pv-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.phone { width: 300px; height: 610px; margin: 0 auto; border-radius: 44px; padding: 10px; background: #140C08; box-shadow: 0 30px 60px -20px rgba(43, 26, 18, .5), 0 0 0 2px #3A2A20; position: relative; }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; z-index: 3; }
.lock { height: 100%; border-radius: 35px; overflow: hidden; position: relative; background: radial-gradient(120% 70% at 20% 10%, #8C4A33, transparent 60%), radial-gradient(90% 60% at 90% 90%, #B7862A, transparent 60%), linear-gradient(170deg, #4A2A1C, #1E120C); color: #fff; text-align: center; }
.lock .date { margin-top: 52px; font-size: 14px; font-weight: 600; opacity: .85; }
.lock .time { font: 700 72px/1 var(--display); letter-spacing: -.04em; margin-top: 2px; }
.nt { position: absolute; left: 10px; right: 10px; top: 190px; text-align: left; padding: 11px 12px; border-radius: 18px; background: rgba(250, 244, 236, .9); color: var(--roast); display: grid; grid-template-columns: 32px 1fr 42px; gap: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nt.noimg { grid-template-columns: 32px 1fr; }
.nt .ai { width: 32px; height: 32px; border-radius: 8px; background: var(--roast); color: var(--rose); display: grid; place-items: center; }
.nt .ai svg { width: 20px; height: 20px; }
.nt .meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.nt b { display: block; font-size: 13px; line-height: 1.25; margin-top: 1px; word-break: break-word; }
.nt p { margin: 1px 0 0; font-size: 12px; line-height: 1.3; color: var(--roast-2); word-break: break-word; }
.nt img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.nt.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.02); } }
.nt.old { top: auto; bottom: 96px; opacity: .55; transform: scale(.96); }
.lock .hint { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 11px; opacity: .7; }
.lock .bar2 { position: absolute; bottom: 8px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 2px; background: rgba(255, 255, 255, .8); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.status i { width: 7px; height: 7px; border-radius: 50%; }
.status.sent { color: var(--good); } .status.sent i { background: var(--good); }
.status.sched { color: var(--leiria); } .status.sched i { background: var(--leiria); }
tr.new td { animation: rowin 1.6s var(--ease); }
@keyframes rowin { from { background: var(--rose-soft); } }

/* rewards */
.rr { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--grid); }
.rr:last-child { border-bottom: 0; }
.rr .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--clay); }
.rr .ic svg { width: 22px; height: 22px; }
.rr b { font-size: 14px; display: block; }
.rr small { color: var(--muted); font-size: 12.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.stepper button { width: 34px; height: 34px; font-size: 18px; font-weight: 700; }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cardpreview { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 6px; padding: 16px; border-radius: 14px; background: var(--roast); max-width: 520px; }
.cardpreview i { aspect-ratio: 1; border-radius: 50%; background: var(--clay); }
.cardpreview i:last-child { background: var(--tomar); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 13px; background: var(--roast); color: #F6EFE4; font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; transition: all .35s var(--ease); max-width: calc(100% - 32px); }
.toast svg { width: 16px; height: 16px; color: #A8C795; flex: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.ribbon { position: fixed; right: 16px; bottom: 14px; z-index: 60; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(251, 247, 240, .85); }
.ribbon:hover { color: var(--clay); border-color: var(--clay); }

@media (max-width: 1240px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp { grid-template-columns: minmax(0, 1fr) 320px; }
    .bar { flex-wrap: wrap; }
}
@media (max-width: 1000px) {
    .row2, .row3, .camp { grid-template-columns: minmax(0, 1fr); }
    .preview { position: static; }
}
@media (max-width: 760px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
    .side::-webkit-scrollbar { display: none; }
    .logo small, .side-shops, .side-link { display: none; }
    .logo { padding: 0 4px; font-size: 21px; }
    .nav { display: flex; gap: 2px; }
    .nav button { padding: 8px 10px; font-size: 13px; gap: 6px; }
    .nav button svg { width: 16px; height: 16px; }
    .main { padding: 0 16px 60px; }
    .bar { padding-top: 18px; }
    .bar h1 { font-size: 26px; }
    .bar-right { width: 100%; }
    .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .me { display: none; }
    .kpi .val { font-size: 26px; }
    .card { padding: 16px; }
    .tablewrap { margin: 0 -16px; padding: 0 16px; }
    .auds { grid-template-columns: minmax(0, 1fr); }
    .hb { grid-template-columns: minmax(0, 120px) 1fr 34px; }
    .search { min-width: 0; flex: 1; }
    .hist-note { flex-direction: column; align-items: flex-start; }
    .phone { width: 280px; height: 570px; }
    .ribbon { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
