/* Acendi — painel de mídia indoor */
@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; src: url(/fonts/figtree-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #17153b;          /* tinta índigo: texto, navegação, botão principal */
  --ink-2: #2a2760;
  --bg: #f4f4f8;
  --surface: #ffffff;
  --sunk: #f8f8fb;
  --line: #e4e3ee;
  --line-2: #d3d1e2;
  --muted: #67658a;
  --glow: #ffb224;         /* luz âmbar: só para "aceso", logo e destaques */
  --glow-deep: #f07a12;
  --glow-soft: #fff4dc;
  --on: #12a66b;   --on-soft: #e6f7ef;
  --off: #e2483d;  --off-soft: #fdecea;
  --warn: #b86e00; --warn-soft: #fff4dc;
  --info: #4c49d6; --info-soft: #ecebff;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --display: 'Bricolage', 'Figtree', system-ui, sans-serif;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }
:focus-visible { outline: 2.5px solid var(--info); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; flex: none; }
.wm { font-family: var(--display); font-weight: 750; font-size: 1.45rem; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.wm .dotless { position: relative; margin-left: .05em; }
.wm .dotless::after { content: ''; position: absolute; left: 50%; top: var(--dot-top, .14em); width: .19em; height: .19em; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #ffd36b, var(--glow) 55%, var(--glow-deep)); }
.on-dark .wm { color: #fff; }
.on-dark .mark { --mark-screen: #2a2766; --mark-edge: rgba(255, 255, 255, .14); }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 2px 10px 18px; }
.side .group { font-size: .78rem; color: var(--muted); padding: 14px 12px 6px; font-weight: 600; }
.side a.nav { text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 550; display: flex; align-items: center; gap: 11px; color: #3b3966; }
.side a.nav:hover { background: var(--sunk); color: var(--ink); }
.side a.nav.active { background: var(--ink); color: #fff; }
.side a.nav.active svg.i { stroke: var(--glow); }
.side a.nav .count { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--off); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side .me { margin-top: auto; padding: 12px; border-radius: var(--r-m); background: var(--sunk); display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.side .me .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--glow); display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.side .me b { display: block; font-weight: 650; }
.side .me button { all: unset; cursor: pointer; margin-left: auto; color: var(--muted); padding: 6px; border-radius: 8px; }
.side .me button:hover { background: var(--line); color: var(--ink); }
.tenant-pill { margin: 0 4px 10px; padding: 9px 11px; border-radius: 10px; background: var(--glow-soft); color: #7a4a00; font-size: .82rem; }
.tenant-pill button { all: unset; cursor: pointer; text-decoration: underline; margin-left: 4px; }
main { padding: 34px clamp(16px, 3.4vw, 48px) 64px; max-width: 1320px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 64ch; }
.page-head .crumb { font-size: .86rem; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.page-head .crumb:hover { color: var(--ink); }
.mobile-bar { display: none; }

/* ---------- componentes ---------- */
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: #b9b6d3; background: var(--sunk); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.primary svg.i { stroke: var(--glow); }
.btn.glow { background: linear-gradient(180deg, #ffc23f, var(--glow)); border-color: #f2a516; color: #3a2400; }
.btn.glow:hover { background: var(--glow); }
.btn.danger { color: var(--off); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 6px 11px; font-size: .86rem; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px; }
.panel > h3 { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.2rem; }
.empty .btn { margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px 16px; }
.stat .l { color: var(--muted); font-size: .88rem; font-weight: 500; }
.stat .v { font-family: var(--display); font-size: 2.15rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.05; }
.stat .v small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat .sub { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat.lit { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.lit .l, .stat.lit .sub { color: #b9b7e0; }
.stat.lit .v { color: var(--glow); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid #efeef5; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.cell-sub { font-size: .82rem; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.plain::before { display: none; }
.tag.on { color: var(--on); background: var(--on-soft); }
.tag.off { color: var(--off); background: var(--off-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.info { color: var(--info); background: var(--info-soft); }

/* ---------- sala de controle (telas) — o elemento marcante ---------- */
.control { background: radial-gradient(120% 90% at 50% 0%, #26235a 0%, #17153b 55%, #100e2b 100%); border-radius: 28px; padding: 30px 28px 26px; color: #fff; }
.control .bar { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; color: #b9b7e0; font-size: .9rem; }
.control .bar b { font-family: var(--display); color: #fff; font-size: 1.5rem; font-weight: 700; margin-right: 6px; letter-spacing: -.02em; }
.control .bar .lit b { color: var(--glow); }
.control .filters { margin-left: auto; display: flex; gap: 6px; }
.control .filters button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; color: #c9c7ea; font-size: .84rem; font-weight: 600; }
.control .filters button.on { background: rgba(255, 255, 255, .12); color: #fff; }
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 34px 26px; align-items: end; }
.tv { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; }
.tv .set { position: relative; background: #07061a; border-radius: 12px; padding: 6px; width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -18px #000; transition: transform .18s; }
.tv:hover .set { transform: translateY(-3px); }
.tv .glass { aspect-ratio: 16/9; border-radius: 7px; background: #0e0d24; display: grid; place-items: center; color: #6f6c9c; font-size: .8rem; text-align: center; padding: 10px; overflow: hidden; position: relative; }
.tv .glass img, .tv .glass video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv.online .set { box-shadow: 0 0 0 1px rgba(255, 178, 36, .25), 0 0 34px -8px rgba(255, 178, 36, .45), 0 18px 40px -18px #000; }
.tv:not(.online) .glass > * { filter: grayscale(1) brightness(.45); }
.tv.blocked .glass { color: transparent; }
.tv.blocked .glass::after { content: 'Pausada'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 13, 36, .88); color: #ffb3ad; font-weight: 700; }
.tv.portrait .set { width: 46%; }
.tv.portrait .glass { aspect-ratio: 9/16; }
.tv .stand { width: 30%; height: 7px; background: #07061a; border-radius: 0 0 8px 8px; }
.tv.portrait .stand { width: 26%; }
.tv .tally { position: absolute; right: 12px; bottom: 1px; width: 6px; height: 3px; border-radius: 2px; background: #3b3966; }
.tv.online .tally { background: #49f2aa; box-shadow: 0 0 8px #49f2aa; }
.tv .meta { width: 100%; margin-top: 12px; }
.tv .meta b { display: block; font-weight: 650; font-size: 1rem; color: #fff; }
.tv .meta span { font-size: .84rem; color: #a9a7d4; }
.tv .chips { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tv .chips .tag { background: rgba(255, 255, 255, .08); color: #d6d4f5; }
.tv .chips .tag.on { color: #57e7a8; background: rgba(18, 166, 107, .16); }
.tv .chips .tag.off { color: #ff9d95; background: rgba(226, 72, 61, .18); }
.tv .chips .tag.warn { color: #ffcf73; background: rgba(255, 178, 36, .14); }
.tv .chips .tag.info { color: #b7b4ff; background: rgba(108, 99, 255, .18); }
.control .empty { color: #b9b7e0; }
.control .empty h3 { color: #fff; }

/* ---------- mídias ---------- */
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-l); padding: 26px; text-align: center; background: var(--surface); color: var(--muted); }
.drop.over { border-color: var(--glow); background: var(--glow-soft); }
.drop .big { font-family: var(--display); color: var(--ink); font-size: 1.15rem; font-weight: 650; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.thumb { aspect-ratio: 16/10; background: #121030; position: relative; display: grid; place-items: center; overflow: hidden; }
.thumb img, .thumb video { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb .badge { position: absolute; left: 8px; top: 8px; background: rgba(10, 9, 30, .7); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(4px); }
.media-card .info { padding: 11px 12px 12px; font-size: .86rem; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.media-card .info b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card .info .row { margin-top: 8px; gap: 6px; }
.media-card.pick { cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
.media-card.pick.sel { outline-color: var(--glow); }

/* ---------- programação ---------- */
.items { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 22px 104px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 9px 14px 9px 9px; }
.item.dragging { opacity: .4; }
.item.off { opacity: .55; }
.item .grip { cursor: grab; color: #a3a1c2; text-align: center; user-select: none; }
.item .mini { width: 104px; aspect-ratio: 16/10; background: #121030; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.item .mini img, .item .mini video { max-width: 100%; max-height: 100%; }
.item .sched { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.item .row { gap: 6px; margin-top: 6px; }
.timeline { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 4px 0 22px; }
.timeline i { display: block; background: var(--ink); opacity: .85; }
.timeline i:nth-child(3n+2) { background: var(--glow); opacity: 1; }
.timeline i:nth-child(3n) { background: #8b88d9; }

/* ---------- formulários e modal ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
label.f small, .f small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--info); outline: none; box-shadow: 0 0 0 3px rgba(76, 73, 214, .15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form .sec { grid-column: 1 / -1; font-family: var(--display); font-weight: 650; font-size: 1rem; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: flex; gap: 5px; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font-weight: 500; cursor: pointer; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { flex: 1; min-width: 150px; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.choice label small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--ink); }
.checks { max-height: 180px; overflow: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 12px; }
.checks label { display: flex; gap: 8px; padding: 5px 0; font-weight: 400; }

dialog { border: 0; border-radius: var(--r-l); padding: 0; width: min(660px, calc(100vw - 24px)); box-shadow: 0 40px 100px -30px rgba(23, 21, 59, .55); color: var(--ink); }
dialog.wide { width: min(1000px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(23, 21, 59, .5); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.dlg-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-body { padding: 18px 24px 20px; max-height: 70vh; overflow: auto; }
.dlg-foot { padding: 14px 24px 20px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.dlg-foot .row { margin-left: auto; }

.code-input { font-family: var(--display); font-size: 1.7rem; letter-spacing: .3em; text-transform: uppercase; text-align: center; font-weight: 700; }
.callout { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: .9rem; }
.callout.warn { background: var(--warn-soft); border-color: #f5dca5; }
.callout.lit { background: var(--ink); color: #fff; border-color: var(--ink); }
.callout.lit .muted { color: #b9b7e0; }

#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 10px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 99px; font-weight: 550; z-index: 99; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--off); }

/* gráfico de barras */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 6px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; font-size: .78rem; color: var(--muted); }
.bars .b i { display: block; width: 100%; max-width: 46px; background: #cbc8ec; border-radius: 8px; min-height: 3px; }
.bars .b:last-child i { background: linear-gradient(180deg, #ffc94a, var(--glow-deep)); }
.bars .b:last-child { color: var(--ink); font-weight: 650; }

.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #efeef5; }
.alert-row:last-child { border-bottom: 0; }
.alert-group { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 14px 0 2px; }
.alert-group:first-of-type { margin-top: 0; }

/* financeiro */
.bill-cell { display: flex; flex-direction: column; gap: 3px; }
.pay-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pix { font-family: var(--display); font-size: 1.15rem; font-weight: 650; word-break: break-all; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login .art { background: radial-gradient(110% 80% at 30% 100%, #2c2870 0%, #17153b 55%, #0f0d29 100%); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login .art h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 13ch; line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.login .art p { color: #c3c1ea; max-width: 42ch; font-size: 1.05rem; margin: 18px 0 0; }
.wall { display: flex; gap: 16px; align-items: flex-end; margin: 10px 0 40px; }
.wall .w { background: #07061a; border-radius: 9px; padding: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.wall .w div { border-radius: 4px; background: #15133a; }
.wall .w.h div { width: 156px; aspect-ratio: 16/9; }
.wall .w.v div { width: 72px; aspect-ratio: 9/16; }
.wall .w { animation: wallOn .6s ease-out both; }
.wall .w div { animation: glassOn .6s ease-out both; }
.wall .w:nth-child(1), .wall .w:nth-child(1) div { animation-delay: .25s; }
.wall .w:nth-child(2), .wall .w:nth-child(2) div { animation-delay: .5s; }
.wall .w:nth-child(3), .wall .w:nth-child(3) div { animation-delay: .75s; }
.wall .w:nth-child(4), .wall .w:nth-child(4) div { animation-delay: 1s; }
@keyframes glassOn { from { background: #15133a; } to { background: var(--g); } }
@keyframes wallOn { from { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); } to { box-shadow: 0 0 0 1px rgba(255, 178, 36, .25), 0 0 40px -6px rgba(255, 178, 36, .5); } }
.login .form-side { display: grid; place-items: center; padding: 32px 20px; }
.login form { width: min(370px, 100%); display: flex; flex-direction: column; gap: 15px; }
.login form h2 { font-size: 1.7rem; }
.login form .btn { justify-content: center; padding: 12px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 268px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
  .side.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 14px 12px; min-width: 0; }
  .stat .v { font-size: 1.45rem; }
  .page-head .row { width: 100%; }
  .grid2, .form { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 28px 22px; }
  .wall { display: none; }
  .control { padding: 22px 16px; border-radius: 20px; }
  .item { grid-template-columns: 18px 70px 1fr; }
  .item .mini { width: 70px; }
  .item > .row { grid-column: 2 / -1; }
  main { padding-top: 22px; }
  h1 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { *, .wall .w, .wall .w div { animation: none !important; transition: none !important; } .wall .w div { background: var(--g); } }
