/* 6Spider console — calm operator surface. Light is primary; dark is its own selected set. */
:root {
  color-scheme: light;
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --surface-3: #f0efe9;
  --border: rgba(24, 27, 22, 0.085);
  --border-strong: rgba(24, 27, 22, 0.16);
  --ink: #181b17;
  --ink-2: #4b5049;
  --muted: #84887f;
  --series-1: #2a78d6;
  --series-1-wash: rgba(42, 120, 214, 0.1);
  --series-2: #eb6834;
  --band: rgba(42, 120, 214, 0.075);
  --grid: #ecebe4;
  --axis: #cfccc3;
  --good: #0ca30c;
  --good-ink: #146c2e;
  --good-tint: rgba(12, 163, 12, 0.09);
  --warning: #e09a00;
  --warning-ink: #8a5600;
  --warning-tint: rgba(250, 178, 25, 0.16);
  --critical: #d03b3b;
  --critical-ink: #a72a2a;
  --critical-tint: rgba(208, 59, 59, 0.09);
  --neutral-tint: rgba(24, 27, 22, 0.055);
  --info-tint: rgba(42, 120, 214, 0.08);
  --shadow: 0 1px 2px rgba(20, 22, 18, 0.04);
  --shadow-pop:
    0 10px 30px rgba(20, 22, 18, 0.12), 0 2px 6px rgba(20, 22, 18, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme='light'])) {
    color-scheme: dark;
    --bg: #111210;
    --surface: #1a1b19;
    --surface-2: #1f201d;
    --surface-3: #272825;
    --border: rgba(255, 255, 255, 0.075);
    --border-strong: rgba(255, 255, 255, 0.14);
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #8f8e87;
    --series-1: #3987e5;
    --series-1-wash: rgba(57, 135, 229, 0.16);
    --series-2: #d95926;
    --band: rgba(57, 135, 229, 0.12);
    --grid: #2a2b28;
    --axis: #3b3c38;
    --good-ink: #4fc46a;
    --good-tint: rgba(12, 163, 12, 0.16);
    --warning-ink: #f2bd4b;
    --warning-tint: rgba(250, 178, 25, 0.14);
    --critical-ink: #ef7d7d;
    --critical-tint: rgba(208, 59, 59, 0.18);
    --neutral-tint: rgba(255, 255, 255, 0.07);
    --info-tint: rgba(57, 135, 229, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111210;
  --surface: #1a1b19;
  --surface-2: #1f201d;
  --surface-3: #272825;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #8f8e87;
  --series-1: #3987e5;
  --series-1-wash: rgba(57, 135, 229, 0.16);
  --series-2: #d95926;
  --band: rgba(57, 135, 229, 0.12);
  --grid: #2a2b28;
  --axis: #3b3c38;
  --good-ink: #4fc46a;
  --good-tint: rgba(12, 163, 12, 0.16);
  --warning-ink: #f2bd4b;
  --warning-tint: rgba(250, 178, 25, 0.14);
  --critical-ink: #ef7d7d;
  --critical-tint: rgba(208, 59, 59, 0.18);
  --neutral-tint: rgba(255, 255, 255, 0.07);
  --info-tint: rgba(57, 135, 229, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection {
  background: var(--info-tint);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.num,
.tabular {
  font-variant-numeric: tabular-nums;
}
.icon {
  flex: none;
  display: block;
}

/* ---------- shell ---------- */
.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}
.brand-name {
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.nav a[aria-current='page'] .icon {
  color: var(--series-1);
}
.nav-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--good-ink);
  background: var(--good-tint);
  border-radius: 999px;
  padding: 0 7px;
  font-variant-numeric: tabular-nums;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.theme-toggle {
  display: inline-flex;
  background: var(--surface-3);
  border-radius: 8px;
  padding: 2px;
}
.theme-toggle button {
  border: 0;
  background: transparent;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.manage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.manage-link:hover {
  color: var(--ink);
}

.main {
  min-width: 0;
  padding: 26px 36px 56px;
}
.main-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--warning-tint);
  color: var(--warning-ink);
  font-size: 13px;
}

/* ---------- page head & toolbar ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.page-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.crumbs a:hover {
  color: var(--ink);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.toolbar .grow {
  flex: 1;
}
.freshness {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.freshness .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}
.freshness[data-tone='warning'] .dot {
  background: var(--warning);
}
.freshness[data-tone='critical'] .dot {
  background: var(--critical);
}

/* ---------- controls ---------- */
.btn,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 12px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    opacity 0.15s;
  white-space: nowrap;
}
.btn:hover,
.icon-button:hover {
  background: var(--surface-3);
}
.btn:active {
  transform: translateY(0.5px);
}
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover {
  opacity: 0.88;
  background: var(--ink);
}
.btn.danger {
  color: var(--critical-ink);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover {
  background: var(--surface-3);
}
.btn.small {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12.5px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.icon-button {
  padding: 6px;
  min-width: 34px;
}
.btn.spinning .icon {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-3);
  border-radius: 10px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.segmented button:hover {
  color: var(--ink);
}
.segmented button[aria-checked='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow),
    0 0 0 1px var(--border);
}
.select {
  position: relative;
  display: inline-flex;
}
.select select,
.input,
textarea.input {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 30px 6px 11px;
  min-height: 34px;
  font-size: 13px;
  color: var(--ink);
  max-width: 100%;
}
.select::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.input {
  padding-right: 11px;
  width: 100%;
}
.search {
  position: relative;
  min-width: 220px;
}
.search .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search .input {
  padding-left: 32px;
}
textarea.input {
  min-height: 160px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 12px;
  resize: vertical;
}

/* ---------- layout ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.two {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.grid.halves {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}
.card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.card-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.card-body {
  padding: 14px 18px 18px;
  min-width: 0;
}
.card.flush .card-body {
  padding: 8px 0 4px;
}
.card.flush .card-body .table-wrap {
  border-radius: 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.stat-value {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-sub {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat.accent .stat-value {
  color: var(--ink);
}
.stat.accent {
  background:
    linear-gradient(180deg, var(--info-tint), transparent 70%), var(--surface);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--neutral-tint);
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 20px;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.badge[data-tone='good'] {
  background: var(--good-tint);
  color: var(--good-ink);
}
.badge[data-tone='good'] .dot {
  background: var(--good);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge[data-tone='warning'] {
  background: var(--warning-tint);
  color: var(--warning-ink);
}
.badge[data-tone='critical'] {
  background: var(--critical-tint);
  color: var(--critical-ink);
}
.badge[data-tone='muted'] {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.badge[data-tone='info'] {
  background: var(--info-tint);
  color: var(--series-1);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(12, 163, 12, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge[data-tone='good'] .dot,
  .btn.spinning .icon {
    animation: none;
  }
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  top: 0;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
th.num,
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover td,
tr.clickable:focus-visible td {
  background: var(--surface-2);
}
tr.clickable:focus-visible {
  outline: none;
}
.th-sort {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.th-sort:hover {
  color: var(--ink);
}
.sort-mark {
  color: var(--series-1);
  min-width: 8px;
}
.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}
.cell-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 460px;
}
.cell-product .title {
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cell-product .meta {
  color: var(--muted);
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.rank-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-no.top {
  background: var(--ink);
  color: var(--bg);
}
.delta {
  font-weight: 600;
}
.delta.zero {
  color: var(--muted);
  font-weight: 500;
}
.flag {
  color: var(--warning-ink);
  font-size: 12px;
}

/* ---------- thumbs ---------- */
.thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border);
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
.thumb.loaded img {
  opacity: 1;
}
.thumb-initial {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.thumb.round {
  border-radius: 50%;
}

/* ---------- room cards ---------- */
.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.room-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.room-card:hover {
  border-color: var(--border-strong);
}
.room-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.room-name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-id {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.room-titles {
  min-width: 0;
  flex: 1;
}
.room-now {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-height: 58px;
}
.room-now .label {
  font-size: 11.5px;
  color: var(--muted);
}
.room-now .title {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-now.idle {
  color: var(--muted);
  font-size: 12.5px;
  justify-content: center;
}
.room-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.room-stats div {
  display: flex;
  flex-direction: column;
}
.room-stats span:first-child {
  color: var(--muted);
  font-size: 11.5px;
}
.room-stats span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- rank bars ---------- */
.rank-bars {
  display: flex;
  flex-direction: column;
}
.rank-row {
  display: grid;
  grid-template-columns: 22px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
}
a.rank-row:hover {
  background: var(--surface-2);
}
.rank-index {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rank-index.top {
  color: var(--ink);
}
.rank-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rank-label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.rank-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--series-1);
  min-width: 2px;
}
.rank-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  padding-left: 6px;
}

/* ---------- charts ---------- */
.chart {
  position: relative;
  width: 100%;
  min-width: 0;
}
.chart-svg {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}
.chart-svg:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 4px;
}
.axis-text {
  font-size: 11px;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}
.axis-text.strong {
  fill: var(--ink-2);
  font-weight: 600;
}
.row-label {
  font-size: 11.5px;
  fill: var(--ink-2);
}
.bar {
  transition: opacity 0.12s;
}
.bar.dim {
  opacity: 0.4;
}
.seg {
  opacity: 0.9;
  cursor: pointer;
  transition: fill 0.1s;
}
.seg.active {
  fill: var(--series-2);
  opacity: 1;
}
.chart-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  margin: 0;
}
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.1s,
    transform 0.1s;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  box-shadow: var(--shadow-pop);
  padding: 8px 10px;
  min-width: 120px;
  max-width: 280px;
  font-size: 12.5px;
}
.chart-tip.visible {
  opacity: 1;
  transform: none;
}
.tip-title {
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
}
.tip-key {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--series-1);
  flex: none;
}
.tip-key[data-kind='bar'] {
  height: 6px;
  border-radius: 2px;
  background: var(--series-2);
}
.tip-value {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tip-label {
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  padding-left: 8px;
}
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.key-line {
  width: 14px;
  height: 2px;
  background: var(--series-1);
  border-radius: 1px;
}
.key-band {
  width: 12px;
  height: 10px;
  background: var(--band);
  border: 1px solid var(--series-1-wash);
  border-radius: 2px;
}
.key-bar {
  width: 14px;
  height: 6px;
  background: var(--series-1);
  border-radius: 2px;
}
.key-active {
  width: 14px;
  height: 6px;
  background: var(--series-2);
  border-radius: 2px;
}
details.data-table {
  margin-top: 12px;
}
details.data-table summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
details.data-table summary::-webkit-details-marker {
  display: none;
}
details.data-table summary::before {
  content: '▸';
  font-size: 10px;
  transition: transform 0.15s;
}
details.data-table[open] summary::before {
  transform: rotate(90deg);
}
details.data-table .table-wrap {
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.spark {
  display: block;
}

/* ---------- sessions strip ---------- */
.sessions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}
.session-chip {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 150px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.session-chip:hover {
  border-color: var(--border-strong);
}
.session-chip[aria-pressed='true'] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.session-chip .when {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.session-chip .range {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.session-chip .figures {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- room header ---------- */
.room-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.room-hero h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.room-hero .sub {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.product-hero {
  display: flex;
  gap: 16px;
  align-items: center;
}
.product-hero h1 {
  font-size: 19px;
  line-height: 1.4;
}

/* ---------- notices / empty / skeleton ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--info-tint);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.notice .icon {
  color: var(--series-1);
  margin-top: 2px;
}
.notice[data-tone='warning'] {
  background: var(--warning-tint);
}
.notice[data-tone='warning'] .icon {
  color: var(--warning-ink);
}
.notice strong {
  color: var(--ink);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  color: var(--muted);
  text-align: center;
}
.empty strong {
  color: var(--ink-2);
  font-weight: 600;
}
.empty p {
  margin: 0;
  font-size: 13px;
  max-width: 420px;
}
.error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 16px;
  text-align: center;
  color: var(--ink-2);
}
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(
    90deg,
    var(--surface-3),
    var(--surface-2),
    var(--surface-3)
  );
  background-size: 300% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}
.view {
  transition: opacity 0.15s;
}
.view.refreshing {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- toasts & modal ---------- */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  max-width: 380px;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast[data-tone='critical'] {
  background: var(--critical);
  color: #fff;
}
.toast.leaving {
  opacity: 0;
  transform: translateY(6px);
}
dialog.modal {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
dialog.modal.wide {
  width: min(720px, calc(100vw - 32px));
}
dialog.modal::backdrop {
  background: rgba(17, 18, 16, 0.36);
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 6px;
}
.modal-head h2 {
  margin: 0;
  font-size: 16px;
}
.modal-head .icon-button {
  border-color: transparent;
}
.modal-body {
  padding: 8px 18px 6px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.field .help {
  font-size: 12px;
  color: var(--muted);
}
.form-error {
  color: var(--critical-ink);
  font-size: 13px;
  min-height: 20px;
  margin: 8px 0 0;
}

/* ---------- accounts ---------- */
.proxy-addr {
  font-family: var(--mono);
  font-size: 12.5px;
}
.test-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12.5px;
}
.test-result .ip {
  font-family: var(--mono);
  font-weight: 500;
}
.test-result .where {
  color: var(--muted);
  font-size: 12px;
}
.inline-select select {
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12.5px;
}
.plan-note {
  color: var(--warning-ink);
  font-size: 11.5px;
  display: block;
  margin-top: 2px;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.two,
  .grid.halves {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid.thirds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    overflow-x: auto;
  }
  .brand {
    padding: 0 6px 0 0;
  }
  .brand-text {
    display: none;
  }
  .nav {
    display: flex;
    gap: 2px;
  }
  .nav a {
    padding: 7px 10px;
    white-space: nowrap;
  }
  .nav-count {
    margin-left: 4px;
  }
  .sidebar-foot {
    display: none;
  }
  .main {
    padding: 18px 16px 48px;
  }
  .grid.thirds {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-value {
    font-size: 22px;
  }
  .page-head h1 {
    font-size: 20px;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.skeleton.boot {
  height: 120px;
}

.rank-bars.no-thumb .rank-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}
.cell-product .meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.cell-product {
  min-width: 260px;
}

/* Side-by-side cards keep their own height (no stretched empty space). */
.grid.two {
  align-items: start;
}

.test-result .badge {
  align-self: flex-start;
}

/* ---------- user site administration ---------- */
.nav-section {
  margin: 16px 10px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-count.alert {
  color: var(--warning-ink);
  background: var(--warning-tint);
  font-weight: 600;
}
.sync-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink-2);
}
.sync-strip > .icon {
  color: var(--series-1);
}
.sync-strip[data-tone='critical'] {
  border-color: color-mix(in srgb, var(--critical) 35%, var(--border));
}
.sync-strip[data-tone='critical'] > .icon {
  color: var(--critical-ink);
}
.sync-strip .host {
  font-weight: 600;
  color: var(--ink);
}
.sync-strip .grow {
  flex: 1;
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.review-room {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.review-room strong {
  font-size: 15px;
  font-weight: 650;
}
.review-room a {
  display: inline-flex;
}
.review-meta {
  font-size: 13px;
  color: var(--ink-2);
}
.review-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.review-note {
  margin: 2px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 3px solid var(--border-strong);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.review-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.review-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 128px;
}
.cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 13px;
}
.cell-stack .muted {
  font-size: 12px;
}
.critical-text {
  color: var(--critical-ink);
  font-size: 12px;
}
.small-text {
  font-size: 12.5px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
textarea.input.prose {
  min-height: 84px;
  font-family: var(--font);
  font-size: 13.5px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  cursor: pointer;
}
.chip:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.15s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch[aria-checked='true'] {
  background: var(--series-1);
}
.switch[aria-checked='true']::after {
  transform: translateX(16px);
}
.switch[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.switch:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 2px;
}
.meter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.meter-track {
  flex: 1;
  min-width: 56px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--series-1);
}
.meter-fill[data-tone='warning'] {
  background: var(--warning);
}
.meter > span:last-child {
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.secret-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.06em;
  user-select: all;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.settings-list {
  display: flex;
  flex-direction: column;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row .label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.setting-row .label strong {
  font-size: 13.5px;
  font-weight: 600;
}
.setting-row .label span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.btn.primary.danger-fill {
  background: var(--critical);
  border-color: var(--critical);
  color: #fff;
}
@media (max-width: 860px) {
  .nav-section {
    display: none;
  }
  .review-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }
  .review-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .review-actions .btn {
    flex: 1;
  }
  .setting-row {
    flex-wrap: wrap;
  }
}
.stack > .toolbar {
  margin-bottom: 0;
}
.cell-stack > strong {
  white-space: nowrap;
}

/* ---------- sales speed, collection gaps and comparison ---------- */
:root {
  --series-3: #1baf7a;
  --gap: rgba(24, 27, 22, 0.045);
  --gap-line: rgba(24, 27, 22, 0.2);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme='light'])) {
    --series-3: #199e70;
    --gap: rgba(255, 255, 255, 0.035);
    --gap-line: rgba(255, 255, 255, 0.16);
  }
}
:root[data-theme='dark'] {
  --series-3: #199e70;
  --gap: rgba(255, 255, 255, 0.035);
  --gap-line: rgba(255, 255, 255, 0.16);
}
.tip-key[data-kind='sales'],
.key-sales {
  height: 6px;
  border-radius: 2px;
  background: var(--series-3);
}
.key-sales {
  width: 14px;
}
.tip-key[data-kind='gap'],
.key-gap {
  width: 12px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid var(--gap-line);
  background: repeating-linear-gradient(
    45deg,
    var(--gap-line) 0 1.5px,
    var(--gap) 1.5px 5px
  );
}
.tip-key[data-kind='s1'] {
  background: var(--series-1);
}
.tip-key[data-kind='s2'] {
  background: var(--series-2);
}
.tip-key[data-kind='s3'] {
  background: var(--series-3);
}
.key-dash {
  width: 16px;
  height: 0;
  border-top: 2px dashed var(--series-1);
  opacity: 0.8;
}
.key-series {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  flex: none;
}
.chip-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  vertical-align: -1px;
}
.session-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag {
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--neutral-tint);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag.change {
  background: var(--info-tint);
  color: var(--ink-2);
}
.price-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ellipsis {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.hour-grid {
  display: grid;
  gap: 4px;
}
.hour-grid-row {
  display: grid;
  grid-template-columns: minmax(70px, 120px) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.hour-grid-row:nth-child(2n + 3) {
  margin-bottom: 8px;
}
.hour-grid-name {
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hour-grid-kind {
  font-size: 11.5px;
  color: var(--muted);
}
.hour-strip,
.hour-axis {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
}
.hour-cell {
  height: 14px;
  border-radius: 3px;
}
.hour-axis span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: visible;
}
.top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.top-room-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.top-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.top-item:hover .title {
  color: var(--series-1);
}
.top-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top-item-text .title {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-item-text .meta {
  font-size: 11.5px;
  color: var(--muted);
}
.product-group-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 6px;
  min-width: 0;
}
.product-group-head strong {
  display: block;
  font-size: 14px;
}
@media (max-width: 860px) {
  .hour-grid-row {
    grid-template-columns: 64px 28px minmax(0, 1fr);
  }
  .hour-axis span {
    font-size: 9.5px;
  }
}

/* ---------- phones: card heads wrap, long switches scroll instead of squeezing titles ---------- */
@media (max-width: 860px) {
  .sidebar {
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 640px) {
  .card-head {
    flex-wrap: wrap;
    padding: 14px 14px 0;
  }
  .card-body {
    padding: 12px 14px 16px;
  }
  .card-actions,
  .segmented {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .segmented button {
    flex: none;
  }
}

/* ---------- compact page tops ---------- */
.kpis {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
@media (max-width: 640px) {
  .sidebar {
    padding: 6px 10px;
    gap: 4px;
  }
  .nav a {
    padding: 6px 9px;
    gap: 6px;
  }
  .demo-banner {
    margin: 0 0 10px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .page-head {
    margin-bottom: 12px;
    gap: 10px;
  }
  /* A lone refresh button stays at the top right as an icon. */
  .page-head:has(> .head-actions > .btn:only-child) {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .page-head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
  .head-actions > .btn:only-child {
    font-size: 0;
    gap: 0;
    padding: 7px;
  }
  .crumbs {
    margin-bottom: 4px;
    font-size: 12px;
  }
  .room-hero {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
  }
  .room-hero > .thumb {
    width: 36px !important;
    height: 36px !important;
  }
  .room-hero > div {
    min-width: 0;
  }
  .room-hero h1 {
    font-size: 18px;
    gap: 6px;
  }
  .room-hero .sub {
    gap: 2px 10px;
    font-size: 12px;
    margin-top: 2px;
  }
  .product-hero {
    gap: 10px;
    align-items: flex-start;
  }
  .product-hero > .thumb {
    width: 44px !important;
    height: 44px !important;
  }
  .product-hero h1 {
    font-size: 16px;
  }
  .toolbar {
    margin-bottom: 10px;
    gap: 8px;
  }
  .session-chip {
    min-width: 0;
    padding: 7px 10px;
  }
  .kpis {
    gap: 8px;
  }
  .stat {
    padding: 10px 12px;
    gap: 2px;
  }
  .stat-value {
    font-size: 20px;
  }
}

/* The top bar keeps its own height when a page is shorter than the screen. */
@media (max-width: 860px) {
  .app {
    grid-template-rows: auto 1fr;
  }
}
