/* Prestige Motion · prospection — the same language as prestigemotion.ca:
   deep black, cream, one gold, EB Garamond for everything, Cinzel for the spaced capitals, thin gold rules,
   italic numerals, gold dust drifting behind. */
:root {
  --black: #0D0D0D;
  --ink2: #121110;
  --card: #151412;
  --card2: #1B1916;
  --cream: #F2E8D5;
  --cream-dim: rgba(242, 232, 213, .62);
  --cream-faint: rgba(242, 232, 213, .32);
  --gold: #9B7B3F;
  --gold-l: #C7AD77;
  --gold-xl: #E7CE9C;
  --line: rgba(199, 173, 119, .18);
  --line-strong: rgba(199, 173, 119, .42);
  --green: #9DB38A;
  --red: #C98A7A;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --caps: 'Cinzel', 'EB Garamond', serif;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --max: 1240px;
  --pad: clamp(16px, 4.5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--black); color: var(--cream); font-family: var(--serif); font-size: 17.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 1px solid var(--gold-l); outline-offset: 3px; }

/* ambient layers: the PM tapestry (canvas, small, waving), the gold dust, a vignette that keeps the centre calm */
.tapestry, .dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, rgba(13,13,13,.25) 0%, rgba(13,13,13,.78) 72%, #0D0D0D 100%); }
.app, .login { position: relative; z-index: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the spinning medallion of prestigemotion.ca (same layers: two glass faces, gilded edges, a travelling sheen) */
.medal { --w: 152px; --h: 108px; position: relative; display: inline-flex; perspective: 900px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.85)) drop-shadow(0 1px 4px rgba(0,0,0,.9)); transition: transform .45s var(--ease); }
.medal--sm { --w: 76px; --h: 54px; }
.medal--lg { --w: 170px; --h: 121px; }
a:hover > .medal, .medal:hover { transform: scale(1.06); }
.medal__spin { position: relative; display: block; width: var(--w); height: var(--h); transform-style: preserve-3d; animation: medalSpin 9s linear infinite; }
.medal__face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-image: url('assets/logo-tight.png'), linear-gradient(135deg, rgba(255,241,214,.14) 0%, rgba(20,17,12,.36) 30%, rgba(20,17,12,.4) 55%, rgba(255,241,214,.1) 100%);
  background-repeat: no-repeat; background-position: center; background-size: 96%, 100% 100%;
  border: 1.5px solid rgba(255,246,216,.8);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), inset 0 -5px 10px rgba(0,0,0,.35), 0 2px 20px rgba(0,0,0,.55), 0 0 0 1px rgba(155,123,63,.85), 0 0 14px rgba(231,200,138,.55), 0 0 26px rgba(199,173,119,.3); }
.medal--sm .medal__face { border-width: 1px; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 0 0 1px rgba(155,123,63,.8), 0 0 10px rgba(231,200,138,.45); }
.medal__face::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 32%, rgba(255,241,214,.05) 42%, rgba(255,246,224,.58) 49%, rgba(255,241,214,.05) 56%, transparent 66%);
  background-size: 260% 260%; mix-blend-mode: screen; animation: medalSheen 9s linear infinite; pointer-events: none; }
.medal__face--front { transform: translateZ(2.5px); }
.medal__face--back { transform: rotateY(180deg) translateZ(2.5px); }
.medal__face--back::after { animation-direction: reverse; }
.medal__edge { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.medal__edge--top, .medal__edge--bottom { left: 0; top: calc(50% - 2.5px); width: var(--w); height: 5px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.85) 20%, var(--gold-l) 50%, rgba(255,255,255,.85) 80%, rgba(255,255,255,.06)); }
.medal__edge--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.medal__edge--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.medal__edge--left, .medal__edge--right { left: calc(50% - 2.5px); top: 0; width: 5px; height: var(--h); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.85) 20%, var(--gold-l) 50%, rgba(255,255,255,.85) 80%, rgba(255,255,255,.06)); }
.medal__edge--left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.medal__edge--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
@keyframes medalSpin { to { transform: rotateY(360deg); } }
@keyframes medalSheen { 0% { background-position: -40% -40%; } 100% { background-position: 140% 140%; } }

/* type */
.label { display: block; font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.title { font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .06em; line-height: 1.08; color: var(--gold-l); text-transform: uppercase; }
.title em { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--cream); }
.lead { font-style: italic; font-size: clamp(18px, 1.6vw, 22px); color: var(--cream-dim); }
.divider { width: 54px; height: 1px; background: var(--gold); opacity: .7; margin: 18px 0 24px; }
.num { font-style: italic; font-weight: 400; color: var(--gold); font-variant-numeric: lining-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid var(--gold);
  color: var(--gold-l); font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--gold); color: var(--black); box-shadow: 0 0 40px -8px rgba(199, 173, 119, .55); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-l); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11px; letter-spacing: .2em; }
.btn--ghost { border-color: var(--line-strong); color: var(--cream-dim); }
.btn--danger { border-color: rgba(201, 138, 122, .5); color: var(--red); }
.btn--danger:hover { background: var(--red); color: var(--black); box-shadow: none; }
.link-btn { font-family: var(--caps); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-faint); padding: 6px 2px; transition: color .3s; }
.link-btn:hover { color: var(--gold-l); }

/* fields */
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  font-size: 18px; color: var(--cream); border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23C7AD77' stroke-width='1.2'/></svg>") right 4px center no-repeat; padding-right: 22px; }
.field select option { background: var(--card); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--gold-l); }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-faint); font-style: italic; }
.form-msg { min-height: 1.4em; font-style: italic; color: var(--red); font-size: 16px; }

/* ============================================================ login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 32px var(--pad); }
.login__card { width: min(420px, 100%); text-align: center; padding: 44px clamp(22px, 5vw, 44px) 36px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(27, 25, 22, .86), rgba(13, 13, 13, .92)); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(231, 206, 156, .08);
  animation: rise 1.1s var(--spring) both; }
.login__logo { width: 120px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 8px 28px rgba(199, 173, 119, .25)); }
.login__title { font-weight: 400; font-size: 40px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); margin-top: 8px; }
.login .divider { margin: 16px auto 28px; }
.login form { display: grid; gap: 20px; text-align: left; }
.login .btn { margin-top: 8px; }

/* ============================================================ shell */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--pad);
  background: rgba(13, 13, 13, .78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line); }
.top__brand img { width: 46px; height: auto; display: block; filter: drop-shadow(0 4px 14px rgba(199, 173, 119, .3)); transition: transform .6s var(--spring); }
.top__brand:hover img { transform: rotateY(18deg) scale(1.04); }
.tabs { display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 0 auto; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--cream-dim); transition: color .35s; }
.tabs a .ic { font-style: normal; color: var(--gold); font-size: 13px; opacity: .7; }
.tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--spring); }
.tabs a:hover, .tabs a.on { color: var(--gold-xl); }
.tabs a.on::after { transform: scaleX(1); }
.top__user { display: flex; align-items: center; gap: 14px; font-style: italic; color: var(--cream-dim); white-space: nowrap; }

.view { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) 120px; outline: 0; }
.view > * { animation: rise .9s var(--spring) both; }
.view > *:nth-child(2) { animation-delay: .06s; } .view > *:nth-child(3) { animation-delay: .12s; } .view > *:nth-child(4) { animation-delay: .18s; } .view > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.head .lead { margin-top: 10px; max-width: 38em; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(40px, 6vw, 72px) 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-h h2 { font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); }
.section-h small { font-style: italic; color: var(--cream-faint); font-size: 16px; }

/* ============================================================ dashboard */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(27,25,22,.6), rgba(13,13,13,.4)); }
.stat { position: relative; padding: clamp(18px, 2.2vw, 28px) clamp(14px, 1.8vw, 24px); border-left: 1px solid var(--line); transition: background .4s; }
.stat:first-child { border-left: 0; }
.stat:hover { background: rgba(199, 173, 119, .05); }
.stat b { display: block; font-style: italic; font-weight: 400; font-size: clamp(44px, 5.4vw, 74px); line-height: 1; color: var(--gold-l); text-shadow: 0 0 40px rgba(199, 173, 119, .25); }
.stat span { display: block; margin-top: 10px; font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-dim); }
.stat--hl b { color: var(--gold-xl); }

.pipe { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.col { scroll-snap-align: start; min-height: 140px; padding: 14px 12px; border: 1px solid var(--line); background: rgba(18, 17, 16, .7); }
.col__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.col__h .label { font-size: 10.5px; letter-spacing: .28em; }
.col__h em { font-style: italic; color: var(--cream-faint); }
.mini { display: block; width: 100%; text-align: left; padding: 12px 12px 11px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--card);
  transition: border-color .35s, transform .35s var(--spring), box-shadow .35s; }
.mini:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(199,173,119,.06); }
.mini b { display: block; font-weight: 500; font-size: 17px; color: var(--cream); line-height: 1.25; }
.mini small { display: block; margin-top: 3px; font-style: italic; font-size: 14.5px; color: var(--cream-faint); }
.empty-col { font-style: italic; color: var(--cream-faint); font-size: 15px; padding: 6px 2px; }

.next { display: grid; gap: 0; border-top: 1px solid var(--line); }
.next button { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: baseline; text-align: left; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--spring); }
.next button:hover { background: rgba(199,173,119,.04); padding-left: 12px; }
.next time { font-style: italic; color: var(--gold-l); }
.next b { font-weight: 500; }
.next span { color: var(--cream-dim); font-style: italic; font-size: 16px; }
.next .late time { color: var(--red); }

/* ============================================================ lists */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 22px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; min-height: 48px; padding: 10px 2px 10px 30px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); font-size: 18px; }
.search input:focus { outline: 0; border-bottom-color: var(--gold-l); }
.search::before { content: '⌕'; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); transition: all .3s; }
.chip:hover { border-color: var(--line-strong); color: var(--cream); }
.chip.on { border-color: var(--gold); background: rgba(155, 123, 63, .16); color: var(--gold-xl); }
.chip em { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; color: var(--gold-l); margin-left: 4px; font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card { position: relative; display: grid; align-content: start; gap: 10px; text-align: left; padding: 22px 22px 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card2), var(--card)); overflow: hidden;
  transition: border-color .45s var(--ease), transform .5s var(--spring), box-shadow .5s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(199,173,119,.10), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.95); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-weight: 500; font-size: 22px; line-height: 1.18; color: var(--cream); }
.card .meta { font-style: italic; color: var(--cream-faint); font-size: 15.5px; }
.card p { color: var(--cream-dim); font-size: 16.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--cream-faint); font-style: italic; }
.card__foot b { font-style: normal; font-weight: 500; color: var(--gold-l); }
.prio { color: var(--gold); letter-spacing: 2px; font-size: 12px; white-space: nowrap; }
.empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line-strong); color: var(--cream-dim); font-style: italic; font-size: 19px; }
.empty .btn { margin-top: 20px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border: 1px solid currentColor; font-family: var(--caps); font-size: 9.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.s-nouveau, .s-a_visiter { color: var(--cream-dim); }
.s-rencontre, .s-visite { color: var(--gold-l); }
.s-proposition { color: var(--gold-xl); }
.s-signe, .s-converti { color: var(--green); }
.s-perdu, .s-pas_interesse { color: var(--red); opacity: .85; }

/* ============================================================ drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .4s var(--ease) both; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); overflow-y: auto; overscroll-behavior: contain; padding: 34px clamp(20px, 4vw, 44px) 60px;
  background: linear-gradient(180deg, #171512, #0F0E0D); border-left: 1px solid var(--line-strong); box-shadow: -40px 0 120px -40px #000; animation: slide .6s var(--spring) both; }
.drawer.closing .drawer__panel { animation: slideout .35s var(--ease) both; }
.drawer.closing .drawer__veil { animation: fade .35s var(--ease) reverse both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideout { to { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer__x { position: sticky; top: 0; float: right; width: 44px; height: 44px; margin: -14px -10px 0 0; border: 1px solid var(--line); color: var(--gold-l); font-size: 24px; line-height: 1; background: rgba(13,13,13,.8); z-index: 2; transition: all .3s; }
.drawer__x:hover { border-color: var(--gold); background: var(--gold); color: var(--black); }
.drawer h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: .04em; color: var(--gold-l); line-height: 1.1; margin: 6px 50px 0 0; }
.drawer .sub { font-style: italic; color: var(--cream-faint); margin-top: 6px; }
.fs { margin-top: 30px; display: grid; gap: 18px; }
.fs > legend, .fs-t { font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--line); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc label { position: relative; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); font-size: 16px; color: var(--cream-dim); transition: all .3s; cursor: pointer; }
.svc input:checked + span { border-color: var(--gold); background: rgba(155,123,63,.18); color: var(--gold-xl); }
.svc input:focus-visible + span { outline: 1px solid var(--gold-l); outline-offset: 2px; }
.actions { position: sticky; bottom: -60px; display: flex; flex-wrap: wrap; gap: 10px; margin: 34px -4px 0; padding: 16px 4px 4px; background: linear-gradient(180deg, transparent, #0F0E0D 30%); }
.actions .btn--gold { flex: 1 1 auto; }

.detail { display: grid; gap: 4px; margin-top: 24px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.dl dd { color: var(--cream); white-space: pre-wrap; word-break: break-word; }
.dl dd a { color: var(--gold-l); border-bottom: 1px solid var(--line-strong); }
.quote { margin-top: 22px; padding: 18px 20px; border-left: 1px solid var(--gold); background: rgba(155,123,63,.06); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--cream); }
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.journal { margin-top: 14px; display: grid; gap: 0; }
.journal li { list-style: none; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.journal li::before { content: '◆'; color: var(--gold); font-size: 9px; margin-top: 7px; }
.journal li.auto { color: var(--cream-faint); font-style: italic; }
.journal small { display: block; font-style: italic; color: var(--cream-faint); font-size: 14px; }
.note-add { display: grid; gap: 10px; margin-top: 14px; }

/* guide */
.guide { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcard { padding: 26px 26px 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card2), var(--card)); }
.gcard--wide { grid-column: 1 / -1; }
.gcard blockquote { margin-top: 12px; font-style: italic; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; color: var(--cream); }
.gcard ol, .gcard ul { margin-top: 12px; padding-left: 0; display: grid; gap: 8px; }
.gcard li { list-style: none; display: grid; grid-template-columns: 34px 1fr; color: var(--cream-dim); }
.gcard li i { font-style: italic; color: var(--gold); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 22px; border: 1px solid var(--gold); background: rgba(13,13,13,.94);
  color: var(--gold-xl); font-style: italic; pointer-events: none; transition: all .5s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================ phone */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .guide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top { padding-top: max(12px, env(safe-area-inset-top)); backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,13,13,.95); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; gap: 0; justify-content: space-around; padding: 6px 4px max(8px, env(safe-area-inset-bottom));
    background: rgba(13,13,13,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabs a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 9px; letter-spacing: .14em; text-align: center; }
  .tabs a .ic { font-size: 18px; opacity: 1; }
  .tabs a::after { bottom: auto; top: -7px; left: 30%; right: 30%; }
  .top__user { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .next button { grid-template-columns: 1fr; gap: 2px; }
  .pipe { grid-template-columns: repeat(5, 78%); }
  .toast { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .dust { display: none; } }

/* ============================================================ v2: finish — glass surfaces, exact alignment, one obvious action */
.login__card { position: relative; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(27,25,22,.78), rgba(13,13,13,.86)); }
.login__card::before, .panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(231,206,156,.55), rgba(155,123,63,.08) 35%, rgba(155,123,63,.08) 65%, rgba(231,206,156,.4)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.login .medal { margin: 4px auto 26px; }

.top { min-height: 78px; padding-block: 10px; gap: 20px; }
.top__brand { display: flex; align-items: center; flex: none; }
.top__brand .medal { margin: 2px 4px; }
.tabs { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
.top__user { margin-left: auto; gap: 12px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-xl); font-style: italic; font-size: 17px; background: radial-gradient(circle at 30% 25%, rgba(231,206,156,.22), rgba(155,123,63,.06)); }
.top__name { font-style: italic; color: var(--cream); }
.quit { height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim); transition: all .3s; }
.quit:hover { border-color: var(--gold); color: var(--black); background: var(--gold); }

/* hero with the two things that matter */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.hero .lead { margin-top: 12px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 132px; padding: 18px 18px 16px; text-align: left; overflow: hidden;
  border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(40,35,26,.85), rgba(18,17,16,.9)); transition: transform .5s var(--spring), border-color .4s, box-shadow .5s; }
.qa::after { content: ''; position: absolute; inset: -50% auto -50% -60%; width: 45%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,240,205,.14), transparent); transition: left .9s var(--ease); left: -60%; }
.qa:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 24px 50px -24px rgba(0,0,0,.95), 0 0 50px -20px rgba(199,173,119,.5); }
.qa:hover::after { left: 120%; }
.qa .label { font-size: 10.5px; }
.qa b { font-weight: 400; font-size: 25px; line-height: 1.1; color: var(--cream); }
.qa b em { display: block; font-size: 14px; color: var(--cream-faint); margin-top: 4px; }
.qa i { position: absolute; right: 16px; top: 14px; font-style: normal; color: var(--gold-l); font-size: 22px; transition: transform .5s var(--spring); }
.qa:hover i { transform: translate(3px, -3px); }
.qa--gold { background: linear-gradient(160deg, #A9884A, #8A6C35); border-color: var(--gold-l); }
.qa--gold .label, .qa--gold b, .qa--gold i, .qa--gold b em { color: #1A140A; }

/* panels: one surface language for stats, columns, cards */
.panel { position: relative; background: linear-gradient(180deg, rgba(28,26,22,.82), rgba(16,15,14,.86)); }
.stats { border: 0; }
.stats.panel { background: linear-gradient(180deg, rgba(28,26,22,.82), rgba(16,15,14,.86)); }
.stat { border-color: var(--line); }
.stat b { font-size: clamp(46px, 5vw, 70px); }
.pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
.col { background: rgba(18,17,16,.72); border-color: var(--line); }
.card { background: linear-gradient(180deg, rgba(31,28,24,.9), rgba(19,18,16,.92)); box-shadow: inset 0 1px 0 rgba(231,206,156,.07); }
.view { padding-top: clamp(30px, 4.5vw, 56px); }
.head { align-items: flex-end; }
.title { line-height: 1.04; }

/* quick add, always within reach */
.fab { position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px); z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 32% 28%, #D9BC80, #9B7B3F 62%, #7A5F2E); color: #14100A; font-size: 32px; line-height: 1;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.9), 0 0 0 1px rgba(255,240,205,.35) inset, 0 0 40px -6px rgba(199,173,119,.6); transition: transform .45s var(--spring), box-shadow .45s; }
.fab:hover { transform: scale(1.08) rotate(90deg); box-shadow: 0 18px 40px -10px rgba(0,0,0,.9), 0 0 0 1px rgba(255,240,205,.5) inset, 0 0 60px -4px rgba(199,173,119,.8); }
.fab span { margin-top: -3px; }

@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .tabs { position: static; transform: none; margin: 0 auto; }
  .pipe { grid-template-columns: repeat(5, minmax(230px, 1fr)); overflow-x: auto; }
}
@media (max-width: 760px) {
  .tabs { position: fixed; transform: none; }
  .top { min-height: 66px; }
  .top__name { display: none; }
  .quick { grid-template-columns: 1fr 1fr; }
  .qa { min-height: 112px; padding: 14px; }
  .qa b { font-size: 21px; }
  .pipe { grid-template-columns: repeat(5, 80%); }
  .fab { bottom: calc(84px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .medal__spin, .medal__face::after { animation: none; } }

/* v2 corrections: exact alignment everywhere */
@media (max-width: 760px) { .tabs { left: 0; right: 0; } }
@media (min-width: 761px) { .fab { display: none; } }
.lead, .title, .qa b { text-wrap: balance; }
.card { display: flex; flex-direction: column; }
.card__foot { margin-top: auto; }
.card .card__foot { margin-top: auto; padding-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.actions .btn--gold { flex: 1 1 100%; }
.actions .btn--sm { min-height: 44px; }
.journal-empty { font-style: italic; color: var(--cream-faint); padding: 8px 0 2px; }
.dl dd a { display: inline-flex; align-items: center; gap: 6px; }
.status-bar .chip { flex: 1 1 auto; }

/* login and banding: a fine film grain dithers every dark gradient (no visible steps), softer vignette and halo,
   and on the sign-in screen the tapestry fades out around the card */
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5; background-size: 160px 160px; mix-blend-mode: overlay; }
.vignette { background: radial-gradient(ellipse 95% 85% at 50% 40%, rgba(13,13,13,0) 0%, rgba(13,13,13,.18) 35%, rgba(13,13,13,.48) 62%, rgba(13,13,13,.78) 84%, rgba(13,13,13,.92) 100%); }
body.is-login .tapestry { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, transparent 30%, rgba(0,0,0,.35) 55%, #000 85%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, transparent 30%, rgba(0,0,0,.35) 55%, #000 85%); }
.login__card { background: rgba(17,16,14,.9); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 30px 80px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(231,206,156,.08); }
.login__card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(199,173,119,.07), transparent 70%); }
.login__card > * { position: relative; z-index: 1; }
.login .field input { background: transparent; }
.login__card > .sr { position: absolute; }
.login__card { box-shadow: inset 0 1px 0 rgba(231,206,156,.08); }
.login__title { font-size: clamp(28px, 8.4vw, 40px); letter-spacing: .12em; margin-right: -.12em; }
@media (max-width: 420px) { .login__card { padding-inline: 22px; } .login__title { letter-spacing: .08em; margin-right: -.08em; } }

/* deep black ground: the tapestry exists only inside the star band (drawn in app.js) */
:root { --black: #030303; }
body { background: #030303; }
.vignette { background: radial-gradient(ellipse 100% 90% at 50% 40%, rgba(3,3,3,0) 40%, rgba(3,3,3,.55) 80%, #030303 100%); }
body.is-login .tapestry { -webkit-mask-image: none; mask-image: none; }
.top { background: rgba(3,3,3,.82); }
@media (max-width: 760px) { .top, .tabs { background: rgba(3,3,3,.95); } }

/* ============================================================ AI analysis */
.ai { margin-top: 30px; padding: 18px 18px 16px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(40,35,26,.55), rgba(16,15,14,.7)); position: relative; overflow: hidden; }
.ai::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); opacity: .7; }
.ai-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 0; padding-bottom: 6px; }
.ai-title i { font-style: normal; color: var(--gold-xl); text-shadow: 0 0 14px rgba(231,206,156,.7); }
.ai-empty p { color: var(--cream-dim); font-style: italic; margin: 4px 0 14px; }
.ai-busy { display: flex; gap: 16px; align-items: center; padding: 8px 0 4px; }
.ai-busy b { display: block; font-weight: 500; color: var(--gold-xl); }
.ai-busy small { display: block; font-style: italic; color: var(--cream-faint); font-size: 15px; }
.ai-orb { flex: none; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--gold-l), transparent 60%); animation: aiSpin 1.1s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 4px 0 14px; }
.ai-score { display: flex; align-items: baseline; gap: 2px; padding: 8px 14px; border: 1px solid var(--gold); background: rgba(155,123,63,.12); }
.ai-score b { font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; color: var(--gold-xl); }
.ai-score span { font-style: italic; color: var(--cream-faint); }
.ai-head p { color: var(--cream-dim); font-size: 16px; margin-top: 4px; }
.ai-resume { font-size: 18px; line-height: 1.5; color: var(--cream); }
.ai .detail { margin-top: 10px; }
.ai-t { margin-top: 22px; margin-bottom: 8px; font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ai-needs, .ai-sol, .ai-list { display: grid; gap: 0; }
.ai-needs li { list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ai-needs b { display: block; font-weight: 500; }
.ai-needs small { display: block; font-style: italic; color: var(--cream-faint); font-size: 15px; }
.u-haute { color: var(--red); } .u-moyenne { color: var(--gold-l); } .u-basse { color: var(--cream-dim); }
.ai-sol li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ai-sol p { color: var(--cream); margin-top: 2px; }
.ai-list { padding-left: 20px; gap: 6px; color: var(--cream-dim); }
.ai-list li::marker { color: var(--gold); }
.ai-src { margin-top: 18px; color: var(--cream-faint); }
.ai-src summary { cursor: pointer; font-family: var(--caps); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ai-src ul { margin-top: 8px; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.ai-src a { color: var(--gold-l); word-break: break-all; }
.ai-foot { margin-top: 16px; font-style: italic; font-size: 14.5px; color: var(--cream-faint); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-foot .btn { min-height: 34px; }
.ai-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line-strong); font-size: 13.5px; font-style: italic; color: var(--cream-dim); }
.ai-badge b { font-style: normal; color: var(--gold-xl); }
.ai-badge--busy { color: var(--gold-l); animation: aiPulse 1.6s ease-in-out infinite; }
@keyframes aiPulse { 50% { opacity: .45; } }

/* ============================================================ v3 — épuré, futuriste, lisible
   Garamond stays for the brand moments (big titles, numbers, quotes); everything you read or touch is Manrope.
   Glass surfaces with soft rounded corners, gold only where it means something (action, focus, active). */
:root {
  --ui: 'Manrope', system-ui, -apple-system, sans-serif;
  --cream-dim: rgba(242, 232, 213, .80);
  --cream-faint: rgba(242, 232, 213, .58);
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);
  --edge: rgba(255, 255, 255, .09);
  --edge-2: rgba(255, 255, 255, .16);
  --r: 14px; --r-sm: 10px;
}
body { font-family: var(--ui); font-size: 16px; line-height: 1.55; letter-spacing: -.005em; }
.label, .field > span, .fs > legend, .fs-t, .ai-t, .col__h .label, .stat span, .chip, .pill, .btn, .quit, .tabs a, .link-btn, .dl dt, .manual__btn, .ai-src summary {
  font-family: var(--ui); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gold-l); }
.title { font-family: var(--serif); }
.lead { font-family: var(--serif); color: var(--cream-dim); }

/* nav */
.tabs a { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: none; color: var(--cream-dim); padding: 8px 14px; border-radius: 999px; }
.tabs a::after { display: none; }
.tabs a:hover { color: var(--cream); background: var(--glass-2); }
.tabs a.on { color: #14100A; background: linear-gradient(180deg, #C9AC72, #A2843F); }
.tabs a.on .ic { color: #14100A; opacity: .9; }
.tabs { gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.top__name { font-family: var(--serif); font-size: 17px; }
.quit { border-radius: 999px; border-color: var(--edge-2); font-size: 11px; letter-spacing: .1em; }

/* buttons */
.btn { border-radius: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; min-height: 46px; }
.btn--gold { background: linear-gradient(180deg, #CDB078, #9B7B3F); border-color: transparent; color: #14100A; box-shadow: 0 8px 24px -10px rgba(199,173,119,.6), inset 0 1px 0 rgba(255,245,220,.5); }
.btn--gold:hover { background: linear-gradient(180deg, #DCC08A, #A98A4B); }
.btn:not(.btn--gold) { background: var(--glass); border-color: var(--edge-2); color: var(--cream); }
.btn:not(.btn--gold):hover { background: var(--glass-2); border-color: var(--gold); color: var(--gold-xl); box-shadow: none; }
.btn--danger { color: var(--red) !important; }

/* fields: filled, rounded, roomy */
.field { gap: 7px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--cream-dim); }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 14px; font-family: var(--ui); font-size: 16px; color: var(--cream);
  background: var(--glass-2); border: 1px solid var(--edge); border-radius: var(--r-sm); transition: border-color .25s, box-shadow .25s, background .25s; }
.field select { padding-right: 36px; background-position: right 14px center; }
.field textarea { min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-l); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(199,173,119,.16); }
.field input::placeholder, .field textarea::placeholder { font-style: normal; color: rgba(242,232,213,.38); }
.field--ai > span::after { content: '✦ analysé par l’IA'; margin-left: 8px; font-weight: 700; font-size: 11px; color: var(--gold-xl); }

/* drawer + form */
.drawer__panel { width: min(680px, 100%); background: rgba(10,10,10,.92); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border-left: 1px solid var(--edge); padding: 30px clamp(18px, 3.4vw, 38px) 60px; }
.drawer h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); color: var(--cream); margin-top: 8px; }
.drawer .sub { font-family: var(--ui); font-style: normal; color: var(--cream-faint); font-size: 14.5px; }
.drawer__x { border-radius: 12px; border-color: var(--edge-2); background: var(--glass); }
.fs { margin-top: 18px; padding: 18px; gap: 16px; border-radius: var(--r); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.fs > legend { float: left; width: 100%; padding: 0 0 4px; border: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); }
.fs > legend + * { clear: both; }
.svc span { border-radius: 999px; border-color: var(--edge-2); font-size: 14px; font-weight: 600; background: var(--glass); min-height: 38px; }
.svc input:checked + span { background: rgba(199,173,119,.18); border-color: var(--gold-l); color: var(--gold-xl); }
.actions { background: linear-gradient(180deg, transparent, rgba(10,10,10,.96) 30%); }
.form-msg { font-family: var(--ui); font-style: normal; font-size: 14.5px; }

/* details */
.dl { grid-template-columns: 150px 1fr; padding: 12px 0; border-color: var(--edge); }
.dl dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--gold-l); }
.dl dd { font-size: 15.5px; }
.quote { border-radius: var(--r-sm); border-left-width: 2px; font-family: var(--serif); background: rgba(199,173,119,.07); }
.fs-t { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-l); border-color: var(--edge); }
.journal li { border-color: var(--edge); font-size: 15px; }
.journal small, .journal-empty { font-family: var(--ui); font-style: normal; font-size: 13px; color: var(--cream-faint); }
.status-bar .chip { border-radius: 999px; }

/* chips, pills, search */
.chip { border-radius: 999px; border-color: var(--edge-2); background: var(--glass); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--cream-dim); min-height: 36px; }
.chip em { font-family: var(--ui); font-style: normal; font-weight: 700; color: var(--gold-l); font-size: 12px; }
.chip.on { background: rgba(199,173,119,.16); border-color: var(--gold-l); color: var(--gold-xl); }
.pill { border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; height: 24px; padding: 0 10px; background: rgba(0,0,0,.25); }
.search input { border: 1px solid var(--edge); border-radius: 12px; background: var(--glass); padding-left: 40px; font-family: var(--ui); font-size: 15.5px; }
.search input:focus { border-color: var(--gold-l); box-shadow: 0 0 0 4px rgba(199,173,119,.14); }
.search::before { left: 14px; }

/* surfaces */
.card, .qa, .col, .gcard, .stats.panel, .ai, .empty, .login__card { border-radius: var(--r); }
.card { border-color: var(--edge); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card:hover { border-color: rgba(199,173,119,.45); }
.card h3 { font-family: var(--serif); font-size: 23px; }
.card .meta, .card__foot { font-family: var(--ui); font-style: normal; font-size: 13.5px; color: var(--cream-faint); }
.card p { font-size: 15px; color: var(--cream-dim); }
.card__foot { border-color: var(--edge); }
.card__foot b { color: var(--gold-xl); font-weight: 700; }
.ai-badge { border-radius: 999px; font-family: var(--ui); font-style: normal; font-size: 12px; font-weight: 600; background: rgba(199,173,119,.08); border-color: rgba(199,173,119,.35); color: var(--gold-xl); }
.stats.panel { overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat { border-color: var(--edge); }
.stat span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--cream-dim); }
.col { border-color: var(--edge); background: rgba(255,255,255,.025); }
.col__h .label { font-size: 11px; letter-spacing: .12em; }
.col__h em { font-family: var(--ui); font-style: normal; font-weight: 700; color: var(--gold-l); }
.mini { border-radius: var(--r-sm); border-color: var(--edge); background: rgba(255,255,255,.04); }
.mini b { font-family: var(--ui); font-weight: 600; font-size: 15px; }
.mini small { font-family: var(--ui); font-style: normal; font-size: 12.5px; color: var(--cream-faint); }
.empty-col { font-family: var(--ui); font-style: normal; font-size: 13px; }
.next button { border-color: var(--edge); border-radius: 0; }
.next time { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 14px; color: var(--gold-xl); }
.next b { font-weight: 600; }
.next span { font-family: var(--ui); font-style: normal; font-size: 14.5px; color: var(--cream-dim); }
.section-h { border-color: var(--edge); }
.section-h h2 { font-family: var(--serif); text-transform: none; letter-spacing: .01em; font-size: clamp(24px, 2.4vw, 30px); color: var(--cream); }
.section-h small { font-family: var(--ui); font-style: normal; font-size: 13px; color: var(--cream-faint); }
.empty { font-family: var(--ui); font-style: normal; font-size: 16px; border-color: var(--edge-2); background: var(--glass); }
.qa { border-color: var(--edge-2); }
.qa--gold { border-color: transparent; }
.qa b { font-family: var(--serif); }
.qa b em { font-family: var(--ui); font-style: normal; font-size: 13px; }
.gcard { border-color: var(--edge); background: var(--glass); }
.gcard li { color: var(--cream-dim); font-size: 15.5px; }
.ai { border-color: rgba(199,173,119,.35); background: linear-gradient(160deg, rgba(199,173,119,.08), rgba(255,255,255,.02)); }
.ai-resume { font-size: 16.5px; }
.ai-needs small, .ai-busy small, .ai-empty p, .ai-foot { font-family: var(--ui); font-style: normal; }
.ai-head p { font-size: 15px; }
.ai-list { font-size: 15px; }
.toast { border-radius: 999px; font-family: var(--ui); font-style: normal; font-weight: 600; font-size: 14px; }
.avatar { font-family: var(--serif); }
@media (max-width: 760px) {
  .tabs { border-radius: 0; padding: 6px 4px max(8px, env(safe-area-inset-bottom)); gap: 2px; background: rgba(3,3,3,.95); box-shadow: inset 0 1px 0 var(--edge); }
  .tabs a { border-radius: 12px; font-size: 10.5px; letter-spacing: .02em; padding: 7px 2px; }
  .fs { padding: 14px; }
  .dl { grid-template-columns: 1fr; }
}
