/* ============================================================================
   LuxuryDade Business Tracker — visual system
   Locked palette: ink #0a0a0f · gold #c9a96e · ivory #f6f1e7
   Display: Cormorant Garamond · Text/numerals: DM Sans
   Mobile-first, 320px up. Every touch target >= 44px.
   ==========================================================================*/

:root {
  --ink:          #0a0a0f;
  --ink-2:        #101018;
  --ink-3:        #16161f;
  --ink-4:        #1e1e2a;
  --line:         rgba(201, 169, 110, 0.16);
  --line-soft:    rgba(255, 255, 255, 0.07);
  --gold:         #c9a96e;
  --gold-bright:  #e0c48f;
  --gold-deep:    #9c7f47;
  --ivory:        #f6f1e7;
  --ivory-dim:    #cfc8ba;
  --muted:        #8b8a95;
  --green:        #6fbf8b;
  --red:          #e0736b;
  --blue:         #7fa7d4;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --pad: clamp(14px, 4vw, 28px);
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.9);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% -10%, #16141c 0%, transparent 60%),
    radial-gradient(90% 55% at 100% 100%, #14121a 0%, transparent 55%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3, .h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0;
}

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

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

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

/* ─────────────────────────────── LOGIN ─────────────────────────────── */

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) max(20px, var(--safe-l)) calc(24px + var(--safe-b)) max(20px, var(--safe-r));
  position: relative;
}
.gate-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(45% 35% at 50% 32%, rgba(201, 169, 110, 0.13), transparent 70%);
  pointer-events: none;
}
.gate-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, rgba(24, 22, 30, 0.96), rgba(12, 12, 17, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 8vw, 44px) clamp(20px, 6vw, 34px);
  box-shadow: var(--shadow);
  text-align: center;
}
.crest {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.gate-title { font-size: clamp(30px, 9vw, 38px); letter-spacing: 0.03em; }
.gate-sub {
  margin: 4px 0 26px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.gate-foot { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* ─────────────────────────────── FORM ─────────────────────────────── */

.field { display: block; text-align: left; margin-bottom: 16px; }
.field-inline { margin-bottom: 0; }
.field-grow { flex: 1 1 180px; min-width: 0; }

.label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

input, select, textarea, .input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font-family: var(--font-text);
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: border-color 0.16s, background 0.16s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.07);
}
input::placeholder, textarea::placeholder { color: #5e5d69; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
select option { background: var(--ink-3); color: var(--ivory); }

.checkline {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px;
  font-size: 14px; color: var(--ivory-dim);
  cursor: pointer;
}
.checkline input { width: 20px; height: 20px; min-height: 20px; accent-color: var(--gold); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #14110b;
  font-weight: 700;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: 13px; width: auto; }
.btn-danger { border-color: rgba(224, 115, 107, 0.5); color: var(--red); }
.btn-danger:hover { background: rgba(224, 115, 107, 0.12); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.form-error { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--red); }
.form-status { font-size: 13px; color: var(--green); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ─────────────────────────────── SHELL ─────────────────────────────── */

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

.topbar {
  position: sticky; top: 0; z-index: 30;
  padding-top: var(--safe-t);
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 10px max(var(--pad), var(--safe-l)) 10px max(var(--pad), var(--safe-r));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.brand-crest {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em;
  color: var(--gold);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-size: 19px; line-height: 1.15;
  letter-spacing: 0.02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.year-select {
  width: auto; min-height: 40px; padding: 6px 30px 6px 11px;
  font-size: 14px;
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px;
}

.tabs {
  position: sticky; top: calc(57px + var(--safe-t)); z-index: 29;
  display: flex; gap: 2px;
  padding: 0 max(var(--pad), var(--safe-l));
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1180px; margin: 0 auto;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 12px clamp(6px, 3vw, 16px);
  border: 0; border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-text); font-size: 13px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.main {
  flex: 1;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding:
    22px max(var(--pad), var(--safe-r))
    calc(56px + var(--safe-b)) max(var(--pad), var(--safe-l));
}

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin: 34px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.section-head:first-child { margin-top: 4px; }
.section-head .h-display { font-size: clamp(22px, 5.6vw, 28px); }
.section-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ───────────────────────────── STATES ───────────────────────────── */

.state {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.state-error { color: var(--red); border: 1px solid rgba(224,115,107,0.3); border-radius: var(--r); }
.state-empty { flex-direction: column; }
.spinner {
  width: 17px; height: 17px; flex: none;
  border: 2px solid var(--line-soft); border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────────── PANELS ───────────────────────────── */

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(15px, 4vw, 22px);
}
.panel + .panel { margin-top: 12px; }
.panel-title {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--font-text); font-weight: 500;
  color: var(--gold); margin: 0 0 14px;
}
.panel-sales { border-left: 3px solid var(--gold); }
.panel-rentals { border-left: 3px solid #6d6a7d; }
.panel-rentals .panel-title { color: #a5a2b5; }
.panel-note { margin-top: 12px; font-size: 13px; color: var(--ivory-dim); }

/* period strip */
.period-strip {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.period-card {
  background: linear-gradient(160deg, rgba(201,169,110,0.09), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px;
}
.period-card h3 {
  font-family: var(--font-text); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 11px;
}
.period-rows { display: grid; gap: 5px; }
.period-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.period-row span:first-child { color: var(--muted); }
.period-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }

/* goals */
.goal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.goal-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 14px 16px;
}
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-name { font-size: 13px; color: var(--ivory-dim); }
.goal-pct { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }
.goal-nums {
  margin: 6px 0 9px;
  font-family: var(--font-display); font-size: 23px; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.goal-nums small { font-family: var(--font-text); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.bar.is-met > i { background: linear-gradient(90deg, #4f9c6d, var(--green)); }
.goal-pace { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

/* stat lists */
.split-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat-list { margin: 0; display: grid; gap: 0; }
.stat-list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.stat-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list dt { font-size: 13px; color: var(--muted); }
.stat-list dd {
  margin: 0; font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums; text-align: right;
}
.stat-list dd.big { font-family: var(--font-display); font-size: 21px; color: var(--gold); }

/* conversions */
.conv-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.conv-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 12px 13px;
}
.conv-val {
  font-family: var(--font-display); font-size: 24px; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.conv-lab { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* chart */
.chart-panel { overflow: hidden; }
.chart { width: 100%; height: 170px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-legend {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 10px; font-size: 11px; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-gold { background: var(--gold); }
.dot-ink { background: var(--blue); margin-left: 10px; }

/* tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.table th, .table td { padding: 9px 12px; text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; position: sticky; left: 0; background: #12121a; }
.table thead th {
  font-family: var(--font-text); font-weight: 500; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  background: #12121a; border-bottom: 1px solid var(--line);
}
.table tbody td { border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-total td { background: rgba(201,169,110,0.09); font-weight: 700; color: var(--gold); }
.table tbody tr.is-total td:first-child { background: rgba(201,169,110,0.09); }

/* ─────────────────────────── DAILY LIST ─────────────────────────── */

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  margin-bottom: 16px;
}

.day-list { display: grid; gap: 8px; }
.day-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 11px 14px;
  text-align: left;
  background: rgba(255,255,255,0.026);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: inherit;
  font-family: inherit; font-size: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.day-card:hover { border-color: var(--line); background: rgba(201,169,110,0.05); }
.day-card.is-blank { opacity: 0.55; border-style: dashed; }
.day-card.is-today { border-color: var(--gold); }
.day-date { text-align: center; }
.day-num { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--gold); }
.day-dow { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.day-mid { min-width: 0; }
.day-chips { display: flex; flex-wrap: wrap; gap: 5px 7px; }
.chip {
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--ivory-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chip-win { background: rgba(111,191,139,0.14); border-color: rgba(111,191,139,0.3); color: #b7e2c7; }
.chip-rent { background: rgba(127,167,212,0.13); border-color: rgba(127,167,212,0.28); color: #bcd3ea; }
.chip-zero { background: rgba(255,255,255,0.05); border-color: var(--line-soft); color: var(--muted); }
.day-note {
  margin-top: 4px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.day-blank-tag { font-size: 11px; color: var(--muted); font-style: italic; }
.day-right { font-size: 18px; color: var(--gold); opacity: 0.5; }

/* ───────────────────────── PROPERTY LIST ───────────────────────── */

.prop-list { display: grid; gap: 10px; }
.prop-card {
  padding: 14px 16px;
  background: rgba(255,255,255,0.026);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
}
.prop-card.is-rental { border-left-color: #6d6a7d; }
.prop-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.prop-addr { font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.prop-client { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 10px; }
.prop-money {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums;
}
.prop-money b { color: var(--gold); font-weight: 500; }
.prop-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold);
  white-space: nowrap;
}
.badge-rental { border-color: #56546a; color: #a5a2b5; }
.badge-closed { border-color: rgba(111,191,139,0.4); color: var(--green); }
.badge-uc { border-color: rgba(127,167,212,0.4); color: var(--blue); }
.badge-warn { border-color: rgba(224,115,107,0.4); color: var(--red); }

/* ───────────────────────────── GOALS FORM ───────────────────────────── */

.goals-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.export-panel .muted { margin: 0 0 14px; font-size: 13px; }

.audit-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px;
}
.audit-row:last-child { border-bottom: 0; }
.audit-row time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ───────────────────────────── MODAL ───────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.75); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #17161f, #0d0d13);
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow);
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-card { animation: none; }
  .spinner { animation-duration: 2s; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px var(--pad) 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head .h-display { font-size: 21px; }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.icon-btn:hover { color: var(--gold); background: rgba(255,255,255,0.05); }
.modal-body {
  padding: var(--pad);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.modal-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px var(--pad) calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: rgba(10,10,15,0.6);
}
.modal-foot .btn { flex: 1 1 130px; }
.form-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }

/* ───────────────────────────── TOAST ───────────────────────────── */

.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(20px + var(--safe-b));
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  background: #1b1a24;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.toast.is-error { border-color: var(--red); color: #f2b6b1; }

/* ───────────────────────────── DESKTOP ───────────────────────────── */

@media (min-width: 720px) {
  .modal { align-items: center; padding: 24px; }
  .modal-card { border-radius: var(--r-lg); }
  .tab { flex: 0 0 auto; }
  .day-card { grid-template-columns: 66px 1fr auto; }
}

@media (min-width: 1000px) {
  .main { padding-top: 30px; }
  .conv-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* very small phones */
@media (max-width: 400px) {
  .tab { font-size: 11px; letter-spacing: 0.04em; }
  .tabs { padding: 0 6px; }
}

@media (max-width: 400px) {
  /* At 320px the brand text and the year picker fight for the same row —
     the crest alone carries the brand there. */
  .brand-text { display: none; }
  .topbar-inner { padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
  .day-card { grid-template-columns: 46px 1fr; padding: 10px 11px; }
  .day-right { display: none; }
}
