/* Centris Ads prototype — tokens and layout derived from design/mobile/v1 (390px baseline). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4B5563;
  --muted-2: #6B7280;
  --muted-3: #9CA3AF;
  --brand: #0B6E4F;
  --brand-hover: #08523B;
  --brand-ink: #0B5A41;
  --brand-tint: #E3F1EB;
  --deep: #0B3D2E;
  --deep-text: #CFE6DC;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --divider: #F0F1F2;
  --warn-bg: #FEF3C7;
  --warn-ink: #92400E;
  --warn-line: #E7B85A;
  --danger-bg: #FEE2E2;
  --danger-soft: #FEF2F2;
  --danger-ink: #991B1B;
  --danger-line: #F3C7C7;
  --tint: #EEF2EF;
  --tint-2: #F3F4F6;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --dock-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, p, figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid #0B6E4F;
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 10px 14px;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip:focus {
  top: 8px;
}

/* ---------- shell ---------- */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 20px;
  background: var(--deep);
  color: var(--deep-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-banner .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex: none;
}

.app-notice:empty {
  display: none;
}

.app-notice .notice {
  margin: 10px 20px 0;
}

@media (min-width: 768px) {
  .app-notice .notice {
    max-width: 720px;
    margin: 12px auto 0;
  }
}

@media (min-width: 1024px) {
  .app-notice .notice {
    max-width: 1200px;
    margin: 14px 32px 0;
  }
}

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar {
  display: none;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  width: 100%;
  padding: 0 0 4px;
}

.dock {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
}

.cta-bar.row {
  flex-direction: row;
  align-items: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cta:hover {
  background: var(--brand-hover);
}

.cta:disabled,
.cta[aria-disabled='true'] {
  background: #A9BFB6;
  cursor: not-allowed;
}

.cta.secondary {
  min-height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 15px;
}

.cta.secondary:hover {
  background: var(--tint-2);
}

.cta.quiet {
  min-height: 44px;
  background: transparent;
  color: var(--brand);
  font-size: 13.5px;
}

.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.linkbtn:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

.cta-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 6px calc(10px + env(safe-area-inset-bottom));
}

.bn-item {
  min-height: 48px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.bn-item .ico {
  width: 18px;
  height: 18px;
}

.bn-item[aria-current='page'] {
  color: var(--brand);
  font-weight: 800;
}

/* ---------- typography & blocks ---------- */

.pad {
  padding: 0 20px;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.page-head .grow {
  flex: 1;
  min-width: 0;
}

.h1 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 12px;
}

.h1.tight {
  margin-top: 0;
}

.h1.sm {
  font-size: 20px;
}

.eyebrow {
  font-size: 13px;
  color: var(--muted);
}

.lede {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.section {
  padding: 22px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section.tight {
  padding-top: 16px;
  gap: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.section-title .aside {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
}

.card.flat {
  padding: 4px 14px;
}

.card.roomy {
  padding: 16px;
  border-radius: var(--r-xl);
}

.card.tinted {
  background: var(--tint);
  border-color: transparent;
  border-radius: var(--r-xl);
}

.card.dashed-danger {
  border-color: var(--danger-line);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack.tight {
  gap: 6px;
}

.stack.wide {
  gap: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wrap {
  flex-wrap: wrap;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 8px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* ---------- chips, pills, choices ---------- */

.chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  border: 1.5px solid var(--brand);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 700;
}

.chip.block {
  border-radius: var(--r);
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
}

.chip.block[aria-pressed='true'] {
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.ok {
  color: var(--brand-ink);
  background: var(--brand-tint);
}

.pill.warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
}

.pill.danger {
  color: var(--danger-ink);
  background: var(--danger-bg);
}

.pill.neutral {
  color: var(--muted);
  background: var(--tint-2);
}

.badge-demo {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--muted-3);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.choice[aria-pressed='true'] {
  border: 1.5px solid var(--brand);
}

.choice:disabled,
.choice[aria-disabled='true'] {
  cursor: not-allowed;
  background: #F9FAFB;
}

.radiodot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--muted-3);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice[aria-pressed='true'] .radiodot {
  border-color: var(--brand);
}

.choice[aria-pressed='true'] .radiodot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.choice[aria-disabled='true'] .radiodot {
  border-color: var(--border-strong);
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.choice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 700;
}

.choice-desc {
  font-size: 13px;
  color: var(--muted);
}

.choice.tile {
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 12px;
  border-radius: var(--r-lg);
}

.choice.tile .choice-title {
  font-size: 14.5px;
  color: var(--brand-ink);
}

.choice.tile[aria-pressed='false'] .choice-title {
  color: var(--ink);
}

/* ---------- forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 15px;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}

.input:focus {
  border-color: var(--brand);
}

.input[aria-invalid='true'] {
  border-color: #B91C1C;
  background: #FFFBFB;
}

textarea.input {
  line-height: 1.45;
  resize: vertical;
  overflow-y: auto;
  max-height: 220px;
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
}

.err {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: #B91C1C;
}

.notice {
  border-radius: var(--r-lg);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--tint);
}

.notice.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 600;
}

.notice.danger {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger-ink);
}

.notice.ok {
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 700;
}

/* ---------- stepper ---------- */

.stepper {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.stepper i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--border-strong);
}

.stepper i.on {
  background: var(--brand);
}

.iconbtn {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
}

.iconbtn:hover {
  background: var(--tint-2);
}

.iconbtn svg {
  width: 20px;
  height: 20px;
}

/* ---------- home ---------- */

.hero-balance {
  margin: 16px 20px 0;
  background: var(--deep);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-balance .label {
  font-size: 13px;
  color: var(--deep-text);
}

.hero-balance .amount {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.hero-balance .note {
  font-size: 13px;
  color: var(--deep-text);
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
}

.kpi .k {
  font-size: 12.5px;
  color: var(--muted);
}

.kpi .v {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

.ad-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.ad-card.rejected {
  border-color: var(--danger-line);
}

.ad-card .meta {
  font-size: 13px;
  color: var(--muted);
}

.ad-card .stat {
  font-size: 13.5px;
  font-weight: 600;
}

.ad-card .stat.danger {
  color: var(--danger-ink);
  font-weight: 700;
}

/* ---------- media ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  border: 1px solid transparent;
}

.media.photo {
  aspect-ratio: 4 / 5;
}

.media .tag {
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.media-add {
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  border: 1.5px dashed var(--muted-3);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.media-add.photo {
  aspect-ratio: 4 / 5;
}

.thumb {
  flex: none;
  width: 44px;
  height: 60px;
  border-radius: var(--r-sm);
  background: #D9E3DC;
}

/* ---------- preview / report ---------- */

.preview {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.preview .head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.preview .body {
  padding: 0 12px 10px;
  font-size: 13.5px;
}

.preview .art {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D9E3DC;
  color: var(--muted);
  font-size: 12px;
}

.preview .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--tint-2);
}

.wa-wrap {
  background: #ECE5DD;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 85%;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: var(--r) var(--r) var(--r) 2px;
  background: #fff;
}

.bubble.out {
  align-self: flex-end;
  background: #D9FDD3;
  border-radius: var(--r) var(--r) 2px var(--r);
}

.bubble.tag {
  background: #fff;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 3px 8px;
}

.report-hero {
  margin: 14px 20px 0;
  background: var(--deep);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 18px;
}

.report-hero .big {
  font-size: 32px;
  font-weight: 800;
}

.report-hero .sub {
  font-size: 14px;
  color: #fff;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #E9EBE8;
  border-radius: var(--r);
  padding: 4px;
  gap: 2px;
}

.tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px 14px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--divider);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row .k {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.list-row .k .t {
  font-size: 13.5px;
  font-weight: 600;
}

.list-row .k .s {
  font-size: 12px;
  color: var(--muted);
}

.list-row .v {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.list-row .v.pos {
  color: var(--brand-ink);
}

.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}

.kv .k {
  color: var(--muted);
}

.kv .v {
  font-weight: 700;
}

.kv .v.strong {
  font-weight: 800;
  font-size: 14px;
}

.kv.total {
  border-top: 1px solid var(--divider);
  padding-top: 8px;
}

.money-lg {
  font-size: 18px;
  font-weight: 800;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row .ico {
  flex: none;
  margin-top: 2px;
}

.check-row .txt {
  font-size: 13.5px;
}

.check-row .txt b {
  display: block;
}

/* map */

.map {
  position: relative;
  height: 200px;
  border-radius: var(--r-xl);
  background: #E4EBE5;
  border: 1px solid #D5DDD7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map .road-h,
.map .road-v {
  position: absolute;
  background: #F7F8F6;
}

.map .road-h {
  left: 0;
  right: 0;
  top: 58%;
  height: 6px;
}

.map .road-v {
  top: 0;
  bottom: 0;
  left: 38%;
  width: 6px;
}

.map .ring {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(11, 110, 79, 0.14);
  border: 2px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map .pin {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.map .label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* toggle switch */

.switch {
  flex: none;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: var(--border-strong);
  padding: 3px;
  display: flex;
  justify-content: flex-start;
  cursor: pointer;
}

.switch[aria-checked='true'] {
  background: var(--brand);
  justify-content: flex-end;
}

.switch span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}

/* dialog */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 32px);
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
}

.dialog-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 85vh;
  overflow: auto;
}

.dialog-card .dialog-title {
  font-size: 19px;
  font-weight: 800;
}

.dialog-card .dialog-body {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-actions .cta {
    min-height: 48px;
    font-size: 15px;
}

/* explore menu */

.explore-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explore-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
}

.explore-list a:hover {
  background: var(--tint-2);
}

.explore-list .ref {
  font-weight: 800;
  color: var(--brand);
  min-width: 26px;
}

/* ---------- responsive ---------- */

@media (min-width: 768px) {
  .screen {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .dock {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .demo-banner {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: start;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 34px;
    height: calc(100vh - 34px);
    padding: 22px 16px;
    background: #FBFCFA;
    border-right: 1px solid var(--border);
  }

  .sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
  }

  .sidebar-brand .mark {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.02em;
  }

  .sidebar-brand .who {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
  }

  .side-item:hover {
    background: var(--tint);
  }

  .side-item[aria-current='page'] {
    background: var(--brand-tint);
    color: var(--brand-ink);
    font-weight: 800;
  }

  .sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
  }

  .bottom-nav {
    display: none;
  }

  .main {
    min-height: calc(100vh - 34px);
  }

  .screen {
    max-width: 1200px;
    margin: 0;
    padding: 28px 32px 8px;
  }

  .dock {
    max-width: 1200px;
    margin: 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .cta-bar {
    padding: 14px 32px 18px;
  }

  .page-head,
  .section,
  .hero-balance,
  .report-hero {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .page-head {
    padding-top: 0;
  }

  .hero-balance,
  .report-hero {
    margin-top: 16px;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .split.even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .media,
  .media-add {
    aspect-ratio: auto;
    height: 260px;
  }

  dialog {
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 359px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}