@font-face { font-family: 'Very Vogue'; src: url('/brand/fonts/veryvogue-display.woff2') format('woff2'), url('/brand/fonts/veryvogue-display.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #fff4f8; --card: #ffffff; --ink: #111111; --muted: #6f6a66; --line: #e6e0dc; --soft: #fff1f7;
  --accent: #f490b9; --accent-ink: #000000;
  --warn-bg: #fedece; --warn-line: #f58d4e; --warn-ink: #5a2a0a;
  --ok: #1f6f68; --ok-bg: #e3f3f1; --bad: #b3372c; --bad-bg: #fbe9e6;
  --radius: 4px; --tab-h: 64px;
  --serif: 'Very Vogue', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --label: Syne, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; background: #fff4f8; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); touch-action: manipulation; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: 0; }
h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 23px; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.screen { min-height: 100dvh; padding: 0 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.screen.no-tabs { padding-bottom: 32px; }

/* top */
.banner { font-family: var(--label); letter-spacing: .02em; position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; font-size: 13px; font-weight: 600; text-align: center; background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); }
.banner.live { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 18px 0 12px; }
.topbar h1 { flex: 1; }
.back { border: 1px solid var(--ink); background: var(--card); width: 44px; height: 44px; border-radius: 2px; font-size: 22px; line-height: 1; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; position: relative; }
.tabs a { font-family: var(--label); letter-spacing: .04em; }
.tabs a.on { color: var(--ink); }
.tabs a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--accent); }
.tabs svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* chips + pills */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--ink); background: var(--card); border-radius: 2px; font-family: var(--label); letter-spacing: .04em; padding: 10px 16px; min-height: 44px; font-weight: 600; font-size: 15px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #000; }
.pill { border: 1px solid var(--line); color: var(--ink); display: inline-block; padding: 3px 10px; border-radius: 2px; font-family: var(--label); font-size: 11px; letter-spacing: .06em; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.full { background: #ffd4e5; color: #111; } .pill.coord { background: #bee4e7; color: #111; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); } .pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); }

/* cards */
.card { background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:active { background: var(--soft); }
.lead-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.lead-name { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; display: inline-block; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* buttons */
.btn { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 2px; border: 1px solid var(--ink); background: var(--card); font-weight: 700; text-decoration: none; color: var(--ink); width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { font-size: 12px; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 44px; width: auto; }
.btn:disabled { opacity: .5; }
.btn:active { transform: scale(.985); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack > * + * { margin-top: 10px; }

/* forms */
label { display: block; font-size: 13px; font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card); font-size: 16px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 300px; font-family: var(--serif); font-size: 17px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; color: var(--ink); font-weight: 500; margin: 6px 0 0; }
.toggle input { width: 26px; height: 26px; min-height: 0; flex: none; accent-color: var(--accent); }
.err { color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }

/* detail pieces */
dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 15px; }
dt { color: var(--muted); } dd { margin: 0; }
.note-quote { font-family: var(--serif); font-size: 17px; line-height: 1.55; white-space: pre-wrap; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 14px; }
.tl li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl time { display: block; color: var(--muted); font-size: 12px; }
.mail { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 0; min-height: 56px; }
.mail:first-child { border-top: 0; }
.mail .grow { flex: 1; min-width: 0; } .mail .subj { font-weight: 600; font-size: 15px; }
h3.sec { margin: 22px 0 10px; }
details.card summary { font-family: var(--serif); font-weight: 700; font-size: 18px; min-height: 28px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: '+'; color: var(--muted); font-size: 24px; }
details.card[open] summary::after { content: '–'; }
details.card[open] summary { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; }
.check b { flex: none; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 13px; color: #fff; }
.check b.ok { background: var(--ok); } .check b.no { background: var(--bad); } .check b.soft { background: var(--warn-line); }

/* email preview */
.emailwrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-top: 8px; }
.emailwrap iframe { display: block; width: 100%; border: 0; background: #fff; min-height: 160px; }
.warnlist { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding-top: 8px; padding-bottom: 8px; }
.ok-line { font-size: 14px; color: var(--ok); margin-top: 8px; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 4px 4px 0 0; border-top: 3px solid var(--accent); padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -6px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 80; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }
.login { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; max-width: 420px; margin: 0 auto; padding: 24px 20px; }
.login h1 { margin-bottom: 6px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .screen { padding-left: 24px; padding-right: 24px; } .banner, .chips { margin-left: -24px; margin-right: -24px; } }

/* logos swap with the light/dark theme */
.logo-d { display: none; } .logo-l { display: block; }
.login img { width: min(300px, 80%); height: auto; margin: 0 auto 22px; }
.topbar img { height: 40px; width: auto; flex: none; }
.stripe { height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 5px, var(--bg) 5px 10px); margin: 0 -16px 4px; opacity: .9; }

.pill { color: var(--ink); border: 1px solid var(--line); }
.pill.full, .pill.coord { border-color: transparent; color: #111; }
.pill.warn, .pill.ok, .pill.bad { border-color: transparent; }
