/* =============================================================================
   EVENTX STUDIO — design system
   Palette: gold #C9AA72 · ivory #F7F2EA · espresso #2C211D · white #FFFFFF
   Sheet components use mm/pt units so the on-screen A4 matches the printed A4.
   ========================================================================== */

:root {
  --gold: #C9AA72;
  --gold-100: #F3E9D7;
  --gold-200: #E6D6B8;
  --gold-300: #D9C398;
  --gold-500: #C9AA72;
  --gold-600: #B08F52;
  --gold-700: #8C6D3F;
  --ivory: #F7F2EA;
  --ivory-deep: #EFE7DA;
  --espresso: #2C211D;
  --espresso-soft: #3E2F29;
  --ink: #2C211D;
  --ink-2: #5B4A41;
  --muted: #8A776C;
  --line: #E8DECC;
  --line-strong: #D9CBB2;
  --white: #FFFFFF;
  --ok: #2F7D5B;
  --ok-bg: #E7F4EE;
  --warn: #A9741B;
  --warn-bg: #FBF1DE;
  --danger: #A6423A;
  --danger-bg: #FBECEA;
  --info: #3C5A8A;
  --info-bg: #EBF0F8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(44, 33, 29, .06), 0 1px 1px rgba(44, 33, 29, .04);
  --shadow: 0 6px 22px rgba(44, 33, 29, .09);
  --shadow-lg: 0 22px 60px rgba(44, 33, 29, .22);
  --grad-gold: linear-gradient(135deg, #C9AA72 0%, #E4D3B2 45%, #F7F2EA 100%);
  --grad-gold-ink: linear-gradient(135deg, #C9AA72 0%, #E0CDA8 55%, #B08F52 100%);
  --sidebar-w: 246px;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 21px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
a { color: var(--gold-700); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--gold-200); }

/* ------------------------------------------------------------- scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--gold-300) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--gold-300); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--gold-500); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ================================================================= LAYOUT */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--espresso); color: #F2E9DC;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(201, 170, 114, .22);
  z-index: 40;
}
.sidebar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, rgba(201, 170, 114, .16), transparent 60%);
}
.brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(201, 170, 114, .18); position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; gap: 11px; }
.brand .wordmark { display: block; }
.brand-tagline { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 242, 234, .5); margin-top: 7px; }

.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; overflow-y: auto; }
.nav-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 242, 234, .38); padding: 12px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: rgba(247, 242, 234, .78); font-weight: 500; font-size: 13.6px; text-decoration: none;
  border: 1px solid transparent; transition: background .16s, color .16s, border-color .16s;
}
.nav a:hover { background: rgba(201, 170, 114, .12); color: #FFF; text-decoration: none; }
.nav a.active { background: var(--grad-gold); color: var(--espresso); border-color: rgba(255, 255, 255, .5); box-shadow: 0 6px 18px rgba(201, 170, 114, .28); }
.nav a.active svg { color: var(--espresso); }
.nav a svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .95; }
.nav-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; background: rgba(201, 170, 114, .22); color: var(--gold-200); padding: 2px 7px; border-radius: 20px; }
.nav a.active .nav-badge { background: rgba(44, 33, 29, .16); color: var(--espresso); }

.side-foot { margin-top: auto; padding: 14px; position: relative; z-index: 1; border-top: 1px solid rgba(201, 170, 114, .18); }
.who { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(247, 242, 234, .06); cursor: pointer; border: 1px solid rgba(201, 170, 114, .2); }
.who:hover { background: rgba(247, 242, 234, .1); }
.who .nm { font-size: 13px; font-weight: 600; color: #FFF; line-height: 1.25; }
.who .rl { font-size: 11px; color: rgba(247, 242, 234, .55); }

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

.topbar {
  background: var(--grad-gold);
  border-bottom: 1px solid var(--line-strong);
  padding: 0 22px; height: 66px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 30;
}
.topbar .titles { min-width: 0; }
.topbar .titles h1 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--espresso); }
.topbar .titles .sub { font-size: 12px; color: rgba(44, 33, 29, .62); margin-top: 1px; }
.topbar .spacer { flex: 1; }
.live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(44, 33, 29, .12);
  color: var(--espresso); padding: 6px 11px; border-radius: 20px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 125, 91, .18); animation: pulse 2.4s infinite; }
.dot.off { background: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
.avatars { display: flex; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #FFF; background: var(--espresso);
  border: 2px solid var(--white); margin-left: -7px; box-shadow: var(--shadow-sm); cursor: default;
}
.avatar:first-child { margin-left: 0; }
.avatar.gold { color: var(--espresso); }

.view { padding: 20px 22px 60px; flex: 1; }
.view-wide { padding: 0 0 40px; }

/* ================================================================ SURFACES */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FFFDFA, #FDFAF4);
}
.card-head h3 { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.card-head .sub { font-size: 11.5px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--line); background: #FDFAF4; display: flex; align-items: center; gap: 10px; }

.grid { display: grid; gap: 16px; }
.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)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.split-cal { grid-template-columns: minmax(0, 1fr) 340px; }
.split-doc { grid-template-columns: minmax(0, 1fr) 460px; }
@media (max-width: 1240px) { .split { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================= INPUTS */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl {
  font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.field .hint { font-size: 11px; color: var(--muted); }
input, select, textarea {
  font-family: inherit; font-size: 13.6px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px;
  width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(201, 170, 114, .22); }
input:disabled, select:disabled { background: var(--ivory); color: var(--muted); }
input[type=number] { font-variant-numeric: tabular-nums; }
input.money { text-align: right; font-weight: 600; }
input.cur {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='14'><text x='0' y='11' font-family='Inter,Arial,sans-serif' font-size='11.5' fill='%238C6D3F'>%E2%82%B9</text></svg>");
  background-repeat: no-repeat; background-position: 7px center; padding-left: 19px;
}
textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%238A776C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.inline { display: flex; align-items: center; gap: 8px; }
.row { display: grid; gap: 12px; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; user-select: none; }
.switch input { display: none; }
.switch .track { width: 40px; height: 22px; border-radius: 20px; background: var(--line-strong); position: relative; transition: background .18s; flex: 0 0 40px; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFF; transition: transform .18s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--espresso); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--gold); }

/* ================================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 13.2px; font-weight: 600; letter-spacing: .01em;
  padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.btn:hover { background: #FFFDF8; border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--espresso); border-color: var(--espresso); color: #FFF; }
.btn-primary:hover { background: #3B2C26; border-color: #3B2C26; color: #FFF; box-shadow: 0 8px 20px rgba(44, 33, 29, .22); }
.btn-gold { background: var(--grad-gold-ink); border-color: var(--gold-600); color: var(--espresso); }
.btn-gold:hover { color: var(--espresso); filter: brightness(1.03); box-shadow: 0 8px 20px rgba(201, 170, 114, .35); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(201, 170, 114, .14); border-color: transparent; }
.btn-danger { background: var(--white); border-color: #E7C9C5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-sm { padding: 6.5px 11px; font-size: 12.4px; border-radius: 8px; }
.btn-lg { padding: 12px 20px; font-size: 14.4px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: 9px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-group { display: inline-flex; gap: 0; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 9px 0 0 9px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 9px 9px 0; }

.seg { display: inline-flex; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  font-family: inherit; font-size: 12.6px; font-weight: 600; border: 0; background: transparent;
  color: var(--ink-2); padding: 6px 13px; border-radius: 7px; cursor: pointer; transition: all .15s;
}
.seg button.active { background: var(--white); color: var(--espresso); box-shadow: var(--shadow-sm); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px;
  background: var(--ivory); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #C6E5D6; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #EEDCB6; }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: #EFCEC9; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: #D3DEF0; }
.badge.gold { background: var(--gold-100); color: var(--gold-700); border-color: var(--gold-200); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.6px; font-weight: 550; padding: 4px 10px; border-radius: 20px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================================================================= TABLES */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.tbl th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: #FDFAF4; white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid #F1EADF; vertical-align: middle; }
.tbl tbody tr:hover { background: #FEFCF8; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .strong { font-weight: 650; }
.tbl-wrap { overflow-x: auto; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ============================================================== SERVICE PICKER */
.svc-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--white); }
.svc-group > summary {
  list-style: none; cursor: pointer; padding: 12px 15px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #FFFDFA, #FBF6EC); font-weight: 650; font-size: 13.4px;
}
.svc-group > summary::-webkit-details-marker { display: none; }
.svc-group > summary .caret { transition: transform .18s; color: var(--muted); }
.svc-group[open] > summary .caret { transform: rotate(90deg); }
.svc-group > summary .count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; }
.svc-list { padding: 6px; display: flex; flex-direction: column; gap: 3px; }

.svc {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 66px 66px 104px 70px 94px 30px;
  align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid transparent; transition: background .14s, border-color .14s;
}
.svc:hover { background: #FEFBF5; border-color: var(--line); }
.svc.on { background: var(--gold-100); border-color: var(--gold-200); }
.svc .nm { font-size: 13.4px; font-weight: 600; line-height: 1.3; }
.svc .ds { font-size: 11.4px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.svc input[type=number] { padding: 6px 8px; font-size: 12.8px; }
@media (max-width: 1400px) {
  .svc { grid-template-columns: 26px minmax(0, 1fr) 56px 56px 94px 62px 84px 26px; gap: 6px; }
}
/* pick-only rows (calendar booking editor) keep just a checkbox + label */
.svc.simple { grid-template-columns: 26px minmax(0, 1fr); }
/* quantity + rate picker used by the bill editor */
.svc.pick { grid-template-columns: 26px minmax(0, 1fr) 74px 62px 104px; }
@media (max-width: 1400px) { .svc.pick { grid-template-columns: 26px minmax(0, 1fr) 64px 54px 92px; } }

.check {
  appearance: none; width: 19px; height: 19px; border: 1.6px solid var(--line-strong);
  border-radius: 6px; background: var(--white); cursor: pointer; position: relative; transition: all .15s; margin: 0;
}
.check:checked { background: var(--espresso); border-color: var(--espresso); }
.check:checked::after {
  content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9.5px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
}
.check:focus-visible { box-shadow: 0 0 0 3px rgba(201, 170, 114, .35); outline: none; }

/* ================================================================== TOTALS */
.totals { font-size: 13.4px; }
.totals .tr { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.totals .tr .k { color: var(--ink-2); }
.totals .tr .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .tr.mut .v { color: var(--muted); font-weight: 500; }
.totals .grand {
  display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 13px 15px;
  background: var(--espresso); color: #FFF; border-radius: 12px;
}
.totals .grand .k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 242, 234, .72); }
.totals .grand .v { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--gold-200); font-variant-numeric: tabular-nums; }
.totals .bal { display: flex; justify-content: space-between; padding: 11px 15px; margin-top: 8px; background: var(--gold-100); border: 1px solid var(--gold-200); border-radius: 12px; font-weight: 650; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-gold-ink); }
.kpi .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.kpi .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.kpi .d { font-size: 11.6px; color: var(--muted); margin-top: 3px; }

/* ================================================================ CALENDAR */
.cal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; min-width: 210px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; }
.cal-dow { background: #FDFAF4; padding: 9px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); text-align: center; }
.cal-cell { background: var(--white); min-height: 118px; padding: 7px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; transition: background .14s; position: relative; }
.cal-cell:hover { background: #FFFCF6; }
.cal-cell.dim { background: #FBF8F3; }
.cal-cell.dim .dnum { color: #C4B7A8; }
.cal-cell.today { background: var(--gold-100); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.cal-cell.wknd { background: #FEFCF7; }
.dnum { font-size: 12.4px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; }
.dnum .add { opacity: 0; color: var(--gold-700); font-size: 15px; line-height: 1; }
.cal-cell:hover .dnum .add { opacity: 1; }
.cal-cell.today .dnum { color: var(--espresso); }
.pill {
  border-radius: 8px; padding: 6px 8px; font-size: 11.4px; border-left: 3px solid var(--gold-600);
  background: var(--ivory); cursor: pointer; transition: transform .12s, box-shadow .15s; overflow: hidden;
}
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pill .c { font-weight: 700; font-size: 11.8px; display: flex; align-items: center; gap: 5px; }
.pill .m { color: var(--muted); font-size: 10.8px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.s-confirmed { background: var(--ok-bg); border-left-color: var(--ok); }
.pill.s-tentative { background: var(--warn-bg); border-left-color: var(--warn); }
.pill.s-onhold { background: var(--info-bg); border-left-color: var(--info); }
.pill.s-completed { background: #EFEBE6; border-left-color: var(--muted); }
.pill.s-cancelled { background: var(--danger-bg); border-left-color: var(--danger); text-decoration: line-through; opacity: .8; }
@media (max-width: 980px) { .cal-cell { min-height: 84px; } .pill .m { display: none; } }

/* ============================================================ MODAL/DRAWER */
.overlay { position: fixed; inset: 0; background: rgba(44, 33, 29, .42); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 680px; overflow: hidden; animation: rise .2s ease; border: 1px solid var(--gold-200); }
.modal.wide { max-width: 940px; }
.modal.narrow { max-width: 460px; }
@keyframes rise { from { transform: translateY(14px); opacity: .4 } to { transform: none; opacity: 1 } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--grad-gold); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--espresso); }
.modal-head .sub { font-size: 11.5px; color: rgba(44, 33, 29, .6); }
.modal-body { padding: 20px; max-height: calc(100vh - 240px); overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #FDFAF4; display: flex; gap: 10px; align-items: center; }
.modal-foot .spacer { flex: 1; }
.x { margin-left: auto; border: 0; background: rgba(255, 255, 255, .5); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--espresso); display: grid; place-items: center; }
.x:hover { background: #FFF; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 96vw); background: var(--white); box-shadow: var(--shadow-lg); z-index: 101; display: flex; flex-direction: column; animation: slide .22s ease; border-left: 1px solid var(--gold-200); }
@keyframes slide { from { transform: translateX(30px); opacity: .5 } to { transform: none; opacity: 1 } }

/* ================================================================= TOASTS */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--espresso); color: #F7F2EA; border-radius: 12px; padding: 12px 15px;
  box-shadow: var(--shadow-lg); font-size: 13.2px; max-width: 380px; display: flex; gap: 11px; align-items: flex-start;
  border-left: 3px solid var(--gold); animation: rise .22s ease;
}
.toast.ok { border-left-color: #6FBF95; }
.toast.err { border-left-color: #E08A80; }
.toast.rt { border-left-color: var(--gold); background: #3A2E28; }
.toast .t { font-weight: 650; }
.toast .b { opacity: .82; font-size: 12.4px; margin-top: 2px; line-height: 1.4; }
.toast .av { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--gold); color: var(--espresso); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* ================================================================== SHEET */
.sheet-wrap { position: relative; transform-origin: top left; }
.sheet {
  width: 210mm; min-height: 296mm; background: var(--white); color: var(--espresso);
  padding: 13mm 12mm 12mm; position: relative; font-family: var(--font-ui);
  font-size: 9.4pt; line-height: 1.45; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.sheet * { box-sizing: border-box; }
.sheet .frame { position: absolute; inset: 5mm; border: .5pt solid var(--gold-500); pointer-events: none; }
.sheet .frame::after { content: ''; position: absolute; inset: 1.4mm; border: .35pt solid var(--gold-200); }
.sheet .watermark {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-display); font-size: 62pt; font-weight: 700; color: rgba(201, 170, 114, .07);
  letter-spacing: .12em; transform: rotate(-24deg);
}
.sheet-inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }

.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; }
.doc-brand { display: flex; gap: 3.4mm; align-items: flex-start; }
.doc-brand .logo-img { width: 17mm; height: 17mm; object-fit: contain; }
.doc-brand .cname { font-family: var(--font-display); font-size: 17.5pt; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.doc-brand .ctag { font-size: 7.4pt; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin-top: 1.4mm; }
.doc-brand .cmeta { font-size: 7.8pt; color: var(--ink-2); margin-top: 2.2mm; line-height: 1.5; }
.doc-title { text-align: right; }
.doc-title .ttl { font-family: var(--font-display); font-size: 23pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.doc-title .ttl.gold { background: var(--grad-gold-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-title .meta { margin-top: 2.4mm; font-size: 8.4pt; color: var(--ink-2); }
.doc-title .meta b { color: var(--espresso); }
.rule-gold { height: .9pt; background: linear-gradient(90deg, var(--gold-500), #E6D6B8 55%, rgba(230, 214, 184, 0)); margin: 3.6mm 0; position: relative; }

.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.block { border: .5pt solid var(--line-strong); border-radius: 2mm; padding: 3.2mm 3.6mm; background: #FFFDFA; }
.block h4 { font-size: 7.2pt; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 2mm; font-weight: 700; }
.block .big { font-family: var(--font-display); font-size: 12.4pt; font-weight: 700; line-height: 1.2; }
.block .ln { font-size: 8.4pt; color: var(--ink-2); line-height: 1.55; display: flex; gap: 1.6mm; }
.block .ln .k { color: var(--muted); min-width: 15mm; }
.block .ln .v { color: var(--espresso); font-weight: 550; }

table.items { width: 100%; border-collapse: collapse; font-size: 8.6pt; }
table.items thead th {
  background: var(--espresso); color: #F7F2EA; font-size: 7.2pt; letter-spacing: .11em; text-transform: uppercase;
  padding: 2.4mm 2.6mm; text-align: left; font-weight: 600; border: 0;
}
table.items thead th:first-child { border-radius: 1.6mm 0 0 0; width: 8mm; text-align: center; }
table.items thead th:last-child { border-radius: 0 1.6mm 0 0; text-align: right; }
table.items tbody td { padding: 2.3mm 2.6mm; border-bottom: .4pt solid #EFE8DC; vertical-align: top; }
table.items tbody tr:nth-child(even) td { background: #FDFAF5; }
table.items .n { text-align: center; color: var(--muted); font-size: 8pt; }
table.items .sv { font-weight: 600; }
table.items .sd { color: var(--muted); font-size: 7.4pt; line-height: 1.35; margin-top: .6mm; }
table.items .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.items .amt { text-align: right; font-weight: 700; white-space: nowrap; }
table.items tfoot td { padding: 2.4mm 2.6mm; font-size: 8.6pt; }

.doc-bottom { display: grid; grid-template-columns: 1fr 76mm; gap: 5mm; margin-top: 4mm; align-items: start; }
.words { border: .5pt dashed var(--line-strong); border-radius: 2mm; padding: 2.6mm 3mm; background: #FDFAF5; font-size: 8.2pt; }
.words .k { font-size: 7pt; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }
.words .v { font-family: var(--font-serif); font-size: 11pt; font-weight: 600; margin-top: 1mm; text-transform: capitalize; }

table.tot { width: 100%; border-collapse: collapse; font-size: 8.6pt; }
table.tot td { padding: 1.7mm 2.6mm; }
table.tot td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tot tr.sep td { border-top: .4pt solid var(--line-strong); }
table.tot tr.sub td { color: var(--ink-2); }
table.tot tr.disc td { color: var(--ok); }
table.tot tr.grand td { background: var(--espresso); color: #FFF; font-size: 10.4pt; font-weight: 700; padding: 2.8mm 2.6mm; }
table.tot tr.grand td:last-child { color: var(--gold-200); font-family: var(--font-display); font-size: 13.4pt; }
table.tot tr.adv td { color: var(--warn); font-weight: 600; }
table.tot tr.bal td { border-top: .8pt solid var(--gold-500); font-weight: 700; font-size: 9.6pt; }

.terms { margin-top: 4mm; display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; break-inside: avoid; }
.terms h4 { font-size: 7.2pt; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-bottom: 1.8mm; }
.terms ol, .terms ul { margin: 0; padding-left: 4mm; font-size: 7.6pt; color: var(--ink-2); line-height: 1.5; }
.terms li { margin-bottom: 1mm; }

.sign-row { margin-top: auto; padding-top: 6mm; display: grid; grid-template-columns: 1fr 62mm; gap: 6mm; align-items: end; }
.sign-box { text-align: center; }
.sign-box .sigimg { height: 14mm; object-fit: contain; display: block; margin: 0 auto 1mm; }
.sign-box .line { border-top: .5pt solid var(--ink); margin-bottom: 1.6mm; }
.sign-box .nm { font-family: var(--font-display); font-size: 10pt; font-weight: 700; }
.sign-box .rl { font-size: 7.4pt; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.payto { font-size: 7.8pt; color: var(--ink-2); }
.payto .k { font-size: 7pt; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-bottom: 1mm; }
.sheet-foot { margin-top: 4mm; text-align: center; font-size: 7.4pt; color: var(--muted); border-top: .4pt solid var(--line); padding-top: 2.4mm; }
.sheet-foot .thx { font-family: var(--font-serif); font-size: 10.4pt; color: var(--gold-700); font-weight: 600; display: block; margin-bottom: 1mm; }
/* status chip sits inside the header, so it can never collide with content */
.statuschip {
  display: inline-block; margin-top: 2.6mm; border: .8pt solid var(--gold-600); color: var(--gold-700);
  font-size: 7.6pt; font-weight: 700; letter-spacing: .18em; padding: 1.2mm 3.4mm; border-radius: 1.6mm; text-transform: uppercase;
}
.statuschip.ok { border-color: var(--ok); color: var(--ok); background: rgba(47,125,91,.06); }
.statuschip.warn { border-color: var(--warn); color: var(--warn); background: rgba(169,116,27,.07); }
.statuschip.bad { border-color: var(--danger); color: var(--danger); background: rgba(166,66,58,.06); }
/* copy marker stays out of the way, at the top of the page frame */
.stamp.copy {
  position: absolute; left: 6.6mm; top: 3.4mm; font-size: 6.6pt; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700); border: .5pt solid var(--gold-300); border-radius: 1.4mm; padding: .8mm 2.4mm; background: #FFFDF7;
}

/* bill variants */
table.tot tr.gst td { color: var(--ink-2); }

/* ============================================================== PREVIEW PANE */
.preview-sticky { position: sticky; top: 84px; }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--espresso); color: #F7F2EA; border-radius: 14px 14px 0 0; }
.preview-bar .lbl { color: rgba(247, 242, 234, .62); }
.preview-bar .spacer { flex: 1; }
.preview-bar select, .preview-bar input { background: rgba(247, 242, 234, .1); border-color: rgba(201, 170, 114, .35); color: #F7F2EA; padding: 5px 9px; font-size: 12.2px; }
.preview-body { background: #E9E2D6; border: 1px solid var(--gold-200); border-top: 0; border-radius: 0 0 14px 14px; padding: 16px; overflow: hidden; }
.preview-viewport { overflow: auto; max-height: 78vh; position: relative; }
/* the sheet is scaled with a transform, so its own box is collapsed to the scaled height */
.preview-holder { position: relative; width: 100%; }
.preview-holder .sheet-wrap { display: block; }
.sheet-shadow { box-shadow: 0 10px 30px rgba(44, 33, 29, .18); }

/* ================================================================ MISC/UTIL */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 650; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.rowflex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .ic { font-size: 30px; opacity: .5; margin-bottom: 10px; }
.empty h3 { color: var(--ink-2); margin-bottom: 5px; }
.divider-gold { height: 2px; background: var(--grad-gold-ink); border-radius: 2px; margin: 14px 0; opacity: .5; }
.pill-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pill-tabs button { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 6px 13px; font-size: 12.4px; font-weight: 600; font-family: inherit; color: var(--ink-2); cursor: pointer; }
.pill-tabs button.active { background: var(--espresso); color: var(--gold-200); border-color: var(--espresso); }
.scroll-x { overflow-x: auto; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: box-shadow .15s, border-color .15s; }
.list-row:hover { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.list-row + .list-row { margin-top: 8px; }
.list-row .t { font-weight: 650; font-size: 13.6px; }
.list-row .s { font-size: 11.8px; color: var(--muted); margin-top: 2px; }
.act { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.6px; }
.act:last-child { border-bottom: 0; }
.act .av { width: 26px; height: 26px; flex: 0 0 26px; }
.warnbox { background: var(--warn-bg); border: 1px solid #EEDCB6; color: #7A5410; border-radius: 10px; padding: 11px 13px; font-size: 12.6px; display: flex; gap: 10px; }
.okbox { background: var(--ok-bg); border: 1px solid #C6E5D6; color: #1F5B41; border-radius: 10px; padding: 11px 13px; font-size: 12.6px; }
.sticky-side { position: sticky; top: 84px; }
.mobile-only { display: none; }
@media (max-width: 1080px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); transition: transform .22s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobile-only { display: inline-flex; }
  .view { padding: 16px 14px 60px; }
  .topbar { padding: 0 14px; }
  .split-cal, .split-doc { grid-template-columns: minmax(0, 1fr); }
  .preview-sticky, .sticky-side { position: static; top: auto; }
  .preview-viewport { max-height: 62vh; }
  .cal-title { font-size: 19px; min-width: 0; }
  .cal-head { flex-wrap: wrap; row-gap: 8px; }
}

/* phones: header wraps, previews stay usable, tables scroll inside their card */
@media (max-width: 720px) {
  .topbar { height: auto; padding: 10px 12px; flex-wrap: wrap; row-gap: 8px; row-gap: 8px; }
  .topbar .titles { flex: 1 1 100%; order: 1; min-width: 0; }
  .topbar .titles h1 { font-size: 17px; }
  .topbar .titles .sub { display: none; }
  .topbar #pageActions { order: 2; flex: 1 1 auto; }
  .topbar .live { order: 4; font-size: 11px; padding: 5px 9px; }
  .topbar .avatars { order: 3; }
  .topbar .avatar { width: 28px; height: 28px; font-size: 10.5px; }
  .btn { padding: 8px 12px; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi .v { font-size: 21px; }
  .preview-viewport { max-height: 56vh; }
  .cal-cell { min-height: 74px; padding: 5px; }
  .cal-dow { font-size: 9px; padding: 7px 3px; }
  .pill { padding: 5px 6px; }
  .pill .c { font-size: 9.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pill .m { display: none; }
  .modal { border-radius: 14px; }
  .overlay { padding: 14px 10px; }
  .modal-body { max-height: calc(100vh - 200px); }
  .drawer { width: 100%; }
  .svc { grid-template-columns: 24px minmax(0, 1fr) 54px 48px 80px 58px 78px 24px; gap: 5px; padding: 8px 6px; }
  .svc .lnUnit { display: none; }
  .svc .ds { display: none; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ PRINT ENGINE */
@page { size: A4 portrait; margin: 0; }
.print-root { display: none; }
@media print {
  html, body { background: #FFF !important; }
  body.printing .app, body.printing .toasts, body.printing #modal-root { display: none !important; }
  body.printing .print-root { display: block !important; }
  .print-root .sheet { box-shadow: none; margin: 0; width: 210mm; min-height: 0; padding: 12mm 11mm 10mm; }
  .print-root .sheet .frame { position: fixed; inset: 4.5mm; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  table.items thead { display: table-header-group; }
  table.items tr, .block, .sign-row, .terms { break-inside: avoid; page-break-inside: avoid; }
  .doc-bottom { break-inside: avoid; }
}


/* ============================================================ SIGN-IN SCREEN */
body.signed-out .app { display: none !important; }
body.signed-out #auth-root { display: block; }
#auth-root { display: none; }

.auth-screen { display: grid; grid-template-columns: minmax(320px, 44%) minmax(0, 1fr); min-height: 100vh; background: var(--ivory); }
@media (max-width: 900px) { .auth-screen { grid-template-columns: minmax(0, 1fr); } }

.auth-brand { background: var(--espresso); color: #F7F2EA; position: relative; overflow: hidden; display: flex; }
.auth-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 85% 8%, rgba(201, 170, 114, .22), transparent 58%),
              radial-gradient(90% 60% at 0% 100%, rgba(201, 170, 114, .12), transparent 60%);
}
.auth-brand-inner { position: relative; z-index: 1; padding: 46px 44px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.auth-wordmark { display: flex; align-items: baseline; margin-top: 18px; }
.auth-wordmark .w1 { font-family: var(--font-ui); font-size: 30px; font-weight: 700; letter-spacing: .22em; color: #FFFFFF; }
.auth-wordmark .w2 {
  font-family: var(--font-display); font-size: 33px; font-weight: 700; margin-left: 6px;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-tag { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(247, 242, 234, .45); margin-top: 4px; }
.auth-pitch { margin-top: auto; }
.auth-pitch h2 { font-family: var(--font-display); font-size: 27px; line-height: 1.28; font-weight: 600; color: #FBF6EC; letter-spacing: -.01em; }
.auth-pitch ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 9px; }
.auth-pitch li { font-size: 13.4px; color: rgba(247, 242, 234, .72); display: flex; gap: 10px; align-items: flex-start; }
.auth-pitch li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex: 0 0 6px; }
.auth-secure { margin-top: auto; padding-top: 26px; font-size: 11.6px; color: rgba(247, 242, 234, .5); display: flex; gap: 8px; align-items: center; border-top: 1px solid rgba(201, 170, 114, .18); }
.auth-secure svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--gold); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 34px 22px; }
.auth-card {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px 30px 26px;
  width: 100%; max-width: 470px; box-shadow: 0 26px 70px rgba(44, 33, 29, .14); position: relative;
}
.auth-card::before {
  content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--grad-gold-ink); opacity: .85;
}
.auth-h3 { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--espresso); }
.auth-sub { font-size: 13px; color: var(--muted); margin: 5px 0 18px; }
.auth-loading { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.auth-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.4px; color: var(--muted); text-align: center; }
.auth-msg { font-size: 12.6px; color: var(--muted); min-height: 18px; margin: 10px 0; }
.auth-msg.bad { color: var(--danger); font-weight: 550; }
.auth-hint {
  margin-top: 18px; background: var(--gold-100); border: 1px solid var(--gold-200); border-radius: 12px;
  padding: 12px 14px; font-size: 12.2px; line-height: 1.55; color: #6B5227;
}

.auth-users { display: flex; flex-direction: column; gap: 8px; }
.auth-user {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-family: inherit; transition: border-color .15s, box-shadow .15s, transform .12s, background .15s;
}
.auth-user:hover { border-color: var(--gold-500); box-shadow: 0 6px 18px rgba(201, 170, 114, .2); transform: translateY(-1px); background: #FFFDF8; }
.auth-user .avatar { width: 38px; height: 38px; font-size: 13px; }
.auth-user-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.auth-user-txt .nm { font-weight: 650; font-size: 14.2px; }
.auth-user-txt .rl { font-size: 11.8px; color: var(--muted); }

.auth-back { margin-left: -8px; margin-bottom: 6px; }
.auth-chosen { display: flex; align-items: center; gap: 13px; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; }
.auth-chosen .nm { font-weight: 650; font-size: 14.6px; }
.auth-chosen .rl { font-size: 11.8px; color: var(--muted); }

.auth-dots { display: flex; gap: 14px; justify-content: center; margin: 16px 0 6px; }
.dotpin { width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid var(--line-strong); background: var(--white); transition: all .16s; }
.dotpin.on { background: var(--espresso); border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(201, 170, 114, .25); }
.auth-dots.shake { animation: pinshake .4s ease; }
@keyframes pinshake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-9px) } 40% { transform: translateX(9px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(5px) } }

.auth-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 8px; }
.auth-keypad .key {
  font-family: inherit; font-size: 20px; font-weight: 600; color: var(--espresso);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 13px; padding: 13px 0;
  cursor: pointer; transition: background .14s, border-color .14s, transform .1s, box-shadow .14s;
}
.auth-keypad .key:hover { background: var(--gold-100); border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.auth-keypad .key:active { transform: scale(.97); }
.auth-keypad .key.ghost { background: var(--ivory); color: var(--ink-2); font-size: 16px; }

@media (max-width: 900px) {
  .auth-brand-inner { padding: 26px 22px; }
  .auth-pitch { margin-top: 22px; }
  .auth-pitch h2 { font-size: 21px; }
  .auth-pitch ul, .auth-secure { display: none; }
  .auth-card { padding: 24px 20px 22px; border-radius: 16px; }
  .auth-card::before { left: 20px; right: 20px; }
}

/* founder/team markers in the workspace */
body.is-founder .who .nav-badge { display: inline-flex !important; }
