/* ============================================================
   Palace — design system
   Stone neutrals, verdigris accent, brass details.
   Theme contract: :root = light; @media dark guarded with
   :not([data-theme="light"]); [data-theme="dark"] override.
   ============================================================ */

:root {
  --bg: #F2F3F0;
  --surface: #FBFBFA;
  --surface2: #F0F1EE;
  --ink: #20241F;
  --ink2: #5A6158;
  --ink3: #8A9187;
  --line: #E2E4DF;
  --line2: #D4D7D1;

  --accent: #2F6D62;
  --accent-strong: #275C53;
  --on-accent: #F4F8F6;
  --accent-soft: #E3EDE9;

  --brass: #9C864C;
  --amber: #96690F;
  --amber-soft: #F3E7CE;
  --red: #B3402F;
  --red-soft: #F5E2DE;

  --ft-doc: #3E6FB8;
  --ft-sheet: #337E58;
  --ft-slides: #B07C1F;
  --ft-pdf: #B05146;

  --shadow: 0 1px 2px rgba(32, 36, 31, .05), 0 4px 16px rgba(32, 36, 31, .05);
  --shadow-lift: 0 2px 6px rgba(32, 36, 31, .08), 0 12px 32px rgba(32, 36, 31, .12);

  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;

  --tabbar-h: 58px;
  --topbar-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141714;
    --surface: #1C1F1C;
    --surface2: #232723;
    --ink: #E7E9E4;
    --ink2: #9BA398;
    --ink3: #6E756B;
    --line: #2A2E29;
    --line2: #363B35;

    --accent: #6FB3A3;
    --accent-strong: #84C2B3;
    --on-accent: #10201C;
    --accent-soft: #21322D;

    --brass: #C0A76A;
    --amber: #D9A94F;
    --amber-soft: #382D14;
    --red: #D48273;
    --red-soft: #3C221D;

    --ft-doc: #7BA3D9;
    --ft-sheet: #6FB08D;
    --ft-slides: #CFA34F;
    --ft-pdf: #CE8078;

    --shadow: none;
    --shadow-lift: 0 12px 32px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --bg: #141714;
  --surface: #1C1F1C;
  --surface2: #232723;
  --ink: #E7E9E4;
  --ink2: #9BA398;
  --ink3: #6E756B;
  --line: #2A2E29;
  --line2: #363B35;

  --accent: #6FB3A3;
  --accent-strong: #84C2B3;
  --on-accent: #10201C;
  --accent-soft: #21322D;

  --brass: #C0A76A;
  --amber: #D9A94F;
  --amber-soft: #382D14;
  --red: #D48273;
  --red-soft: #3C221D;

  --ft-doc: #7BA3D9;
  --ft-sheet: #6FB08D;
  --ft-slides: #CFA34F;
  --ft-pdf: #CE8078;

  --shadow: none;
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, .45);
}

/* ---------- base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

svg { display: block; }

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

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

#app { height: 100%; }

.shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 18px;
  padding-right: 10px;
  background: var(--bg);
}

.topbar.scrolled { border-bottom: 1px solid var(--line); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--ink);
  user-select: none;
}

.wordmark .mark { color: var(--brass); }

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

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
}

.view { max-width: 640px; margin: 0 auto; animation: viewin .16s ease; }

@keyframes viewin {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.view-head { padding: 10px 2px 16px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink3);
}

.view-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 2px;
  text-wrap: balance;
}

.view-head .sub { margin-top: 4px; color: var(--ink2); font-size: 14px; }

/* ---------- bottom tab bar (phone) ---------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

.tab-item svg { width: 23px; height: 23px; }

.tab-item.active { color: var(--accent); }

/* ---------- desktop rail ---------- */

.rail { display: none; }

@media (min-width: 880px) {
  .shell { flex-direction: row; }

  .topbar { display: none; }
  .tabbar { display: none; }

  .rail {
    display: flex;
    flex-direction: column;
    width: 216px;
    flex-shrink: 0;
    padding: 22px 12px 18px;
    border-right: 1px solid var(--line);
    background: var(--surface);
  }

  .rail .wordmark { padding: 0 10px 22px; font-size: 14px; }

  .rail-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    color: var(--ink2);
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    width: 100%;
  }

  .rail-item svg { width: 20px; height: 20px; }

  .rail-item:hover { background: var(--surface2); color: var(--ink); }

  .rail-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 650;
  }

  .rail-spacer { flex: 1; }

  .rail-foot {
    padding: 10px 10px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .content { padding: 12px 40px 48px; }

  .view { max-width: 1020px; }

  .view-head h1 { font-size: 32px; }

  .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
}

/* ---------- cards, rows, chips ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 11px;
}

.card-h .t {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink2);
}

.card-h .n { color: var(--ink3); font-size: 12px; font-weight: 600; }

.card-body { padding: 4px 16px 14px; }

.rowlist { list-style: none; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: none;
}

button.row:hover, li.row.tappable:hover { background: var(--surface2); }

.row-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
}

.row-ext { width: 16px; height: 16px; color: var(--ink3); flex-shrink: 0; }

.icon-18 { width: 18px; height: 18px; }

.row-main { flex: 1; min-width: 0; }

.row-title {
  font-size: 15px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface2);
  color: var(--ink2);
  white-space: nowrap;
  flex-shrink: 0;
}

.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.amber  { background: var(--amber-soft); color: var(--amber); }
.chip.brass  { background: transparent; color: var(--brass); border: 1px solid var(--line2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .05s ease;
}

.btn:active { transform: scale(.97); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn.small { padding: 6px 11px; font-size: 13px; border-radius: var(--r-sm); }

.btn svg { width: 16px; height: 16px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink2);
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn:hover { background: var(--surface2); color: var(--ink); }

.icon-btn svg { width: 20px; height: 20px; }

.icon-btn.tint { color: var(--accent); background: var(--accent-soft); width: 34px; height: 34px; }
.icon-btn.tint svg { width: 17px; height: 17px; }

/* ---------- checkbox ---------- */

.checkbox {
  width: 24px;
  height: 24px;
  border: 1.8px solid var(--line2);
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background .15s ease, border-color .15s ease;
}

.checkbox svg { width: 14px; height: 14px; }

.checkbox svg path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset .18s ease .05s;
}

.checkbox.done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.checkbox.done svg path { stroke-dashoffset: 0; }

.task-title { transition: color .15s ease; }

.task-title.done { color: var(--ink3); text-decoration: line-through; }

/* ---------- search ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.search svg { width: 17px; height: 17px; color: var(--ink3); flex-shrink: 0; }

.search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search input::placeholder { color: var(--ink3); }

/* ---------- schedule / agenda ---------- */

.evt {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  position: relative;
}

.evt .time {
  width: 62px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.evt .time .end { display: block; font-weight: 400; color: var(--ink3); font-size: 11.5px; }

.evt .t { font-size: 15px; font-weight: 550; }

.evt .loc { font-size: 12.5px; color: var(--ink2); margin-top: 1px; }

.evt.now::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.evt .nowchip { align-self: center; margin-left: auto; }

.evt.allday .time { color: var(--brass); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- quick links ---------- */

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 2px 16px 16px;
}

.quick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  min-width: 0;
}

.quick:hover { background: var(--surface2); }

.quick svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.quick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- calendar ---------- */

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
}

.cal-nav .m { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.cal-nav .ctl { display: flex; align-items: center; gap: 2px; }

.cal-grid { padding: 0 10px 12px; }

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 0 6px;
}

.cal-dow span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .06em;
  color: var(--ink3);
  text-transform: uppercase;
}

.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); }

.cal-cell {
  aspect-ratio: 1 / 1.04;
  max-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  position: relative;
  font-variant-numeric: tabular-nums;
}

.cal-cell.dim { color: var(--ink3); font-weight: 400; }

.cal-cell:hover { background: var(--surface2); }

.cal-cell.sel { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.cal-cell.today:not(.sel) { color: var(--accent); font-weight: 700; }

.cal-cell .dots { display: flex; gap: 3px; height: 4px; }

.cal-cell .dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .85;
}

.cal-cell.sel .dots i { background: var(--on-accent); }

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 9px;
}

.day-head .t { font-size: 15px; font-weight: 700; }

/* ---------- library ---------- */

.lib-sec { margin-bottom: 4px; }

.lib-sec .sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 9px;
}

.lib-sec .sec-h svg { width: 16px; height: 16px; color: var(--brass); }

.lib-sec .sec-h .t {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink2);
}

.lib-sec .sec-h .n { color: var(--ink3); font-size: 12px; font-weight: 600; margin-left: auto; }

.ft {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface2);
}

.ft svg { width: 17px; height: 17px; }

.ft.doc    { color: var(--ft-doc); }
.ft.sheet  { color: var(--ft-sheet); }
.ft.slides { color: var(--ft-slides); }
.ft.pdf    { color: var(--ft-pdf); }

@media (min-width: 880px) {
  .lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
}

/* ---------- customers ---------- */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #F7F8F5;
  flex-shrink: 0;
}

.av-0 { background: #4E8578; }
.av-1 { background: #6B7FA8; }
.av-2 { background: #A8845C; }
.av-3 { background: #7D6B9E; }
.av-4 { background: #9A7060; }
.av-5 { background: #5C8A9E; }

.row .acts { display: flex; gap: 5px; flex-shrink: 0; }

/* ---------- detail sheet ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 18, 15, .42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadein .15s ease;
}

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lift);
  animation: sheetup .22s cubic-bezier(.32, .72, .28, 1);
}

@keyframes sheetup {
  from { transform: translateY(40px); opacity: .6; }
  to   { transform: none; opacity: 1; }
}

.sheet .grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--line2);
  margin: 2px auto 14px;
}

.sheet-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-h .t { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

.sheet-h .s { color: var(--ink2); font-size: 13.5px; margin-top: 2px; }

@media (min-width: 880px) {
  .overlay { align-items: center; }
  .sheet {
    width: 480px;
    max-height: 80vh;
    border-radius: var(--r-lg);
    padding-bottom: 22px;
    animation: popin .18s ease;
  }
  .sheet .grab { display: none; }
  @keyframes popin {
    from { transform: scale(.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

.kv { border-top: 1px solid var(--line); }

.kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
}

.kv-row .k { width: 84px; flex-shrink: 0; font-size: 12.5px; color: var(--ink3); font-weight: 600; }

.kv-row .v { flex: 1; min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; }

.kv-row .v a { color: var(--accent); text-decoration: none; font-weight: 600; }

.sheet .actions { display: flex; gap: 9px; margin-top: 16px; }

.sheet .actions .btn { flex: 1; }

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

.field { margin-bottom: 13px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 5px;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* ---------- add composer ---------- */

.composer {
  display: flex;
  gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.composer input {
  flex: 1;
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  background: var(--bg);
  padding: 9px 12px;
  font-size: 15px;
  min-width: 0;
}

/* ---------- list chips (tasks) ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.lchip {
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
}

.lchip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- segmented control ---------- */

.seg {
  display: flex;
  background: var(--surface2);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}

.seg button {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- toast ---------- */

.toast-wrap {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 880px) { .toast-wrap { bottom: 26px; } }

.toast {
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 99px;
  box-shadow: var(--shadow-lift);
  animation: toastin .2s ease;
  max-width: 86vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes toastin {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- empty states ---------- */

.empty {
  padding: 26px 16px 30px;
  text-align: center;
  color: var(--ink3);
  font-size: 13.5px;
}

.empty .big { font-size: 15px; font-weight: 650; color: var(--ink2); margin-bottom: 3px; }

/* ---------- gate (signed-out landing) ---------- */

.gate {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.gate-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 34px 26px 26px;
  text-align: center;
}

.gate-line {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 18px 0 8px;
  text-wrap: balance;
}

.gate-sub {
  color: var(--ink2);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* ---------- misc ---------- */

.muted { color: var(--ink2); }
.tiny { font-size: 12px; color: var(--ink3); }

.divider { height: 1px; background: var(--line); margin: 8px 0; }

.section-gap { height: 6px; }

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}

.linkline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 650;
  font-size: 13.5px;
}

.linkline svg { width: 14px; height: 14px; }
