/* Awaytap — application (connexion, premiers pas, tableau de bord). Noir et blanc.
   Structure : Notion. Netteté : Linear. Premiers pas : Duolingo. Recherche et filtres : Airbnb. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
:root { --bg: #fff; --bg-1: #f7f7f5; --bg-2: #efefed; --bg-3: #e5e5e3; --ink: #111; --ink-2: #37352f; --mute: #787774; --faint: #a5a5a2;
  --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14); --line-3: rgba(0,0,0,.24);
  --mono: ui-monospace, "SF Mono", Menlo, monospace; --spring: cubic-bezier(.34,1.56,.64,1); --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 "Geist", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.muted { color: var(--mute); }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
code { font: 13px var(--mono); background: var(--bg-1); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.wordmark-sm { font-weight: 400; font-size: 16px; letter-spacing: .4em; text-transform: uppercase; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--line-2); background: var(--bg); transition: background .15s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--bg-1); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); } .btn.primary:hover { background: #2b2b2b; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 22px; color: var(--ink-2); }
.form-msg.err { color: var(--ink); font-weight: 500; }

/* Bouton 3D (Duolingo) */
.press-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 16px;
  font: 700 14px "Geist", sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: 0; background: var(--ink); color: #fff;
  box-shadow: 0 4px 0 #000, 0 4px 0 1px rgba(0,0,0,.2); transition: transform .08s, box-shadow .08s, background .2s; }
.press-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.press-btn:disabled { background: var(--bg-3); color: var(--faint); box-shadow: 0 4px 0 #cfcfcd; cursor: not-allowed; }
.press-btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--bg-3), inset 0 0 0 2px var(--bg-3); }
.press-btn.ghost:active { box-shadow: 0 0 0 var(--bg-3), inset 0 0 0 2px var(--bg-3); }
.press-btn.block { width: 100%; }

/* ---------- Connexion (Linear) ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: #000; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.auth-art .bandw { position: absolute; width: 150%; left: -25%; top: 50%; transform: translateY(-50%) rotate(-12deg); filter: drop-shadow(0 40px 60px #000); }
.auth-art .quote { position: relative; font-size: 34px; line-height: 1.05; letter-spacing: -.045em; font-weight: 500; max-width: 12em; }
.auth-art .glow { position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h1 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; margin-top: 30px; }
.auth-form p.lead { color: var(--mute); margin-top: 6px; }
.field { display: grid; gap: 6px; margin-top: 26px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 14px; font-size: 15px; transition: border-color .15s, box-shadow .2s; width: 100%; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.auth-form .notice { margin-top: 22px; font-size: 12.5px; color: var(--faint); }
.auth-form .btn.primary { width: 100%; height: 44px; margin-top: 14px; border-radius: 10px; }
.sent { text-align: center; animation: pop .5s var(--spring); }
.sent .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 22px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Premiers pas (Duolingo) ---------- */
.ob { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.ob-top { display: flex; align-items: center; gap: 18px; max-width: 1000px; width: 100%; margin: 0 auto; padding: 26px 24px; }
.ob-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); transition: color .2s, background .2s; }
.ob-close:hover { color: var(--ink); background: var(--bg-1); }
.ob-bar { flex: 1; height: 16px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ob-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ink); position: relative; transition: width .7s var(--spring); }
.ob-bar i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.28); }
.ob-streak { font: 700 14px "Geist"; display: flex; align-items: center; gap: 6px; }
.ob-main { display: flex; justify-content: center; padding: 10px 24px 40px; }
.ob-step { width: 100%; max-width: 600px; animation: step-in .55s var(--ease); }
.ob-step.out { animation: step-out .25s ease forwards; }
@keyframes step-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes step-out { to { opacity: 0; transform: translateX(-40px); } }
.mascot { display: flex; align-items: flex-end; gap: 16px; margin: 20px 0 30px; }
.mascot .m { width: 130px; flex: none; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.bubble { position: relative; border: 2px solid var(--bg-3); border-radius: 16px; padding: 14px 18px; font-size: 17px; font-weight: 500; margin-bottom: 20px; }
.bubble::before { content: ""; position: absolute; left: -9px; bottom: 18px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--bg-3); border-bottom: 2px solid var(--bg-3); transform: rotate(45deg); }
.ob h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
.ob .sub { color: var(--mute); margin-top: 8px; font-size: 16px; }
.choices { display: grid; gap: 12px; margin-top: 28px; }
.choices.grid2 { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--bg-3); border-bottom-width: 4px; background: #fff;
  cursor: pointer; font-size: 16px; font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .1s var(--ease-out); }
.choice:hover { background: var(--bg-1); }
.choice:active { transform: translateY(2px) scale(.99); }
.choice.on { border-color: var(--ink); background: var(--bg-1); }
.choice .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--bg-1); display: grid; place-items: center; border: 1px solid var(--line); }
.choice.on .ic { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice .ic svg { width: 22px; height: 22px; }
.choice small { display: block; font-weight: 400; color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.choice .k { margin-left: auto; font: 600 12px var(--mono); color: var(--faint); border: 1.5px solid var(--bg-3); border-radius: 8px; padding: 2px 7px; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 6px 6px 6px 18px; border-radius: 14px; background: #000; color: #fff; font: 15px var(--mono); }
.cmd span { flex: 1; overflow-x: auto; white-space: nowrap; }
.cmd .btn { background: #fff; color: #000; border: 0; }
.code-in { display: flex; gap: 8px; margin-top: 26px; justify-content: center; }
.code-in input { width: 46px; height: 58px; border-radius: 12px; border: 2px solid var(--bg-3); border-bottom-width: 4px; text-align: center; font: 700 22px var(--mono); text-transform: uppercase; }
.code-in input:focus { outline: none; border-color: var(--ink); }
.code-in .dash { align-self: center; color: var(--faint); font-weight: 700; }
.practice { display: grid; place-items: center; margin-top: 26px; gap: 22px; }
.practice .pad { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #3a3a3a, #000 70%); border: 0; cursor: pointer; position: relative;
  box-shadow: 0 8px 0 #000, 0 20px 40px rgba(0,0,0,.25), inset 0 2px 2px rgba(255,255,255,.25); transition: transform .08s, box-shadow .08s; touch-action: none; user-select: none; }
.practice .pad::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--bg-3); transition: border-color .3s, box-shadow .3s; }
.practice .pad.down { transform: translateY(8px); box-shadow: 0 0 0 #000, 0 10px 20px rgba(0,0,0,.2), inset 0 2px 2px rgba(255,255,255,.25); }
.practice .pad.rec::after { border-color: var(--ink); box-shadow: 0 0 0 6px rgba(0,0,0,.08); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(0,0,0,.04); } }
.goals { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.goals span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--bg-3); font-weight: 600; font-size: 14px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .3s var(--spring); }
.goals span.done { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.05); }
.goals span.now { border-color: var(--ink); }
.ob-foot { border-top: 2px solid var(--bg-2); transition: background .3s, border-color .3s; }
.ob-foot .in { max-width: 1000px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ob-foot .fb { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .3s var(--spring); }
.ob-foot .fb b { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 22px; }
.ob-foot.good { background: var(--ink); color: #fff; border-color: var(--ink); }
.ob-foot.good .fb { opacity: 1; transform: none; }
.ob-foot.good .press-btn { background: #fff; color: #000; box-shadow: 0 4px 0 #8a8a8a; }
.ob-foot .press-btn { min-width: 170px; }
.celebrate { text-align: center; padding-top: 30px; }
.celebrate .big { font-size: 64px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.celebrate .stats { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.celebrate .stats div { border: 2px solid var(--bg-3); border-radius: 16px; padding: 14px 20px; min-width: 130px; }
.celebrate .stats b { display: block; font-size: 26px; letter-spacing: -.04em; }
.celebrate .stats small { font: 600 11px var(--mono); letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; background: #000; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (max-width: 560px) { .choices.grid2 { grid-template-columns: 1fr; } .ob h1 { font-size: 25px; } .mascot .m { width: 96px; } .code-in input { width: 36px; height: 50px; font-size: 18px; } }

/* ---------- Tableau de bord (Notion) ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--bg-1); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; }
.ws { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.ws .av { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 11px var(--mono); flex: none; }
.ws span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: background .12s; }
.side .item:hover { background: rgba(0,0,0,.05); }
.side .item.active { background: rgba(0,0,0,.07); color: var(--ink); font-weight: 500; }
.side svg { width: 17px; height: 17px; color: var(--mute); flex: none; }
.side .sec-t { font-size: 12px; color: var(--faint); font-weight: 500; padding: 18px 10px 6px; }
.side .grow { flex: 1; }
.side .page { font-size: 13.5px; }
.side .page em { font-style: normal; margin-left: auto; color: var(--faint); font-size: 12px; }
.main { min-width: 0; }
.cover { height: 200px; background: #000; position: relative; overflow: hidden; }
.cover .bandw { position: absolute; width: 900px; right: -120px; top: 50%; transform: translateY(-50%) rotate(-8deg); opacity: .9; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 30%, transparent 70%); }
.page { max-width: 1000px; margin: 0 auto; padding: 0 56px 80px; }
.page-icon { width: 78px; height: 78px; border-radius: 20px; background: #fff; display: grid; place-items: center; margin-top: -40px; position: relative; z-index: 2;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(0,0,0,.08); }
.page-icon span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #000; display: grid; place-items: center; }
.page-icon span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #000; }
.page h1 { font-size: 40px; font-weight: 700; letter-spacing: -.045em; margin-top: 18px; }
.props { margin-top: 14px; display: grid; gap: 2px; font-size: 14px; }
.props div { display: grid; grid-template-columns: 160px 1fr; align-items: center; min-height: 32px; }
.props dt { color: var(--mute); display: flex; align-items: center; gap: 8px; }
.props dt svg { width: 15px; height: 15px; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 1px 8px; border-radius: 5px; background: var(--bg-2); margin-right: 4px; }
.chip-tag.dark { background: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.live { animation: blinkd 1.2s ease-in-out infinite; }
@keyframes blinkd { 50% { opacity: .3; } }
.hr { height: 1px; background: var(--line); margin: 22px 0; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; background: var(--bg-1); margin: 18px 0; }
.callout.alert { background: var(--ink); color: #fff; }
.callout.alert .muted { color: #bdbdbd; }
.callout .ic { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; margin-top: 1px; }
.callout .ic::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.callout b { font-weight: 600; }
.h2 { font-size: 22px; font-weight: 650; letter-spacing: -.03em; margin: 38px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpis > div { padding: 16px 18px; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis small { font-size: 12.5px; color: var(--mute); }
.kpis b { display: block; font-size: 28px; letter-spacing: -.05em; font-weight: 650; margin-top: 2px; }
.kpis i { font-style: normal; font-size: 12px; color: var(--faint); }
.cols2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.box h3 { font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.bars div { flex: 1; background: var(--ink); border-radius: 4px 4px 2px 2px; min-height: 3px; transform-origin: bottom; animation: grow .6s var(--ease-out) both; animation-delay: calc(var(--i) * 25ms); position: relative; }
.bars div:hover { background: #444; }
.bars div:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; background: #000; color: #fff; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
@keyframes grow { from { transform: scaleY(0); } }
.axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); margin-top: 8px; }
.model { margin-bottom: 12px; font-size: 14px; } .model .t { display: flex; justify-content: space-between; } .model .t span:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 6px; overflow: hidden; } .track i { display: block; height: 100%; border-radius: 3px; background: var(--ink); animation: fill 1s var(--ease) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

/* Recherche et filtres (Airbnb) */
.search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06); transition: box-shadow .25s, background .25s; margin-top: 8px; position: relative; }
.search:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.search.focus { background: var(--bg-2); }
.seg { position: relative; padding: 8px 22px; border-radius: 999px; cursor: pointer; transition: background .2s, box-shadow .2s; min-width: 0; }
.seg + .seg::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: var(--line-2); transition: opacity .2s; }
.seg:hover { background: var(--bg-2); }
.search.focus .seg:hover { background: var(--bg-3); }
.seg.on { background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.seg.on::before, .seg.on + .seg::before, .seg:hover::before, .seg:hover + .seg::before { opacity: 0; }
.seg label { display: block; font-size: 12px; font-weight: 600; cursor: pointer; }
.seg input, .seg .val { width: 100%; border: 0; background: transparent; outline: 0; font-size: 14px; color: var(--mute); padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.seg input::placeholder { color: var(--mute); }
.go { width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; transition: width .3s var(--ease), transform .15s; }
.go:active { transform: scale(.94); }
.go svg { width: 18px; height: 18px; }
.pop { position: absolute; top: calc(100% + 12px); background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.16); padding: 16px; z-index: 30; min-width: 280px;
  transform-origin: top left; animation: pop-in .2s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.pop button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; font-size: 15px; text-align: left; }
.pop button:hover { background: var(--bg-1); }
.pop button.sel { font-weight: 600; }
.pop button .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-1); display: grid; place-items: center; }
.cats { display: flex; gap: 30px; margin-top: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px 12px; border: 0; background: none; cursor: pointer; color: var(--mute); font-size: 12.5px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; white-space: nowrap; }
.cat svg { width: 22px; height: 22px; transition: transform .2s var(--ease-out); }
.cat:hover { color: var(--ink); border-bottom-color: var(--line-3); }
@media (hover: hover) and (pointer: fine) { .cat:hover svg { transform: translateY(-2px); } }
.cat.on { color: var(--ink); border-bottom-color: var(--ink); }
.views { display: flex; gap: 2px; }
.views button { border: 0; background: none; padding: 5px 10px; border-radius: 6px; font-size: 13.5px; color: var(--mute); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.views button.on { background: var(--bg-2); color: var(--ink); font-weight: 500; }
.views svg { width: 14px; height: 14px; }

/* Table façon base Notion */
.db { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.db th { text-align: left; font-weight: 400; color: var(--mute); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); white-space: nowrap; }
.db th + th, .db td + td { border-left: 1px solid var(--line); }
.db td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.db tr:hover td { background: var(--bg-1); }
.db td.num, .db th.num { text-align: right; font-variant-numeric: tabular-nums; }
.db td.title { font-weight: 500; }
.db .empty-row td { color: var(--faint); text-align: center; padding: 30px; }
.count { font-size: 13px; color: var(--faint); font-weight: 400; }
.device { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.device:first-of-type { border-top: 0; }
.pair { display: flex; gap: 8px; margin-top: 12px; }
.pair .input { font: 15px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.empty { color: var(--mute); }
.skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-1), var(--bg-2), var(--bg-1)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.mob-top { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; }
  .mob-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .page { padding: 0 18px 60px; } .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { border-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols2 { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr auto; border-radius: 26px; } .search .seg.opt { display: none; }
  .props div { grid-template-columns: 130px 1fr; }
  .table-scroll { overflow-x: auto; }
}
[hidden] { display: none !important; }
.mascot .m { width: 112px; height: 104px; position: relative; overflow: hidden; border-radius: 32px; }
.mascot .m > div { position: absolute; width: 354px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ob-main { padding-top: 5vh; }
.ob h1 { margin-top: 4px; }

/* Rafraîchissement automatique : pas de ré-animation des graphiques */
.still .bars div, .still .track i { animation: none; }
.db.swap { animation: swap .15s var(--ease-out); }
@keyframes swap { from { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .mascot .m, .dot.live, .practice .pad.rec::after, .skeleton { animation: none !important; }
  .confetti { display: none; }
  .ob-step, .ob-step.out { animation-name: swap; animation-duration: .2s; }
  .bars div, .track i { animation: none; }
  .choice:active, .press-btn:active:not(:disabled), .practice .pad.down { transform: none; }
  .pop { animation: none; }
}

/* ============ v3 : alignement sur le site public (sobre, éditorial, blanc cassé) ============ */
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
:root { --bg: #f5f5ee; --bg-1: #ecece3; --bg-2: #e3e3d9; --bg-3: #d3d3c8; --ink-2: #2b2b2b; --mute: #6b6b66; --faint: #a8a8a0;
  --line: #dcdcd2; --line-2: #c8c8bc; --line-3: #9a9a90; --serif: "Source Serif", Georgia, serif; }
body { background: var(--bg); font-family: Avenir, "Avenir Next", "Geist", -apple-system, sans-serif; }
.mark { width: 20px; height: 20px; display: inline-block; flex: none; background: currentColor; color: var(--ink, #141413);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.4' cy='12.9' r='5.4' fill='none' stroke='black' stroke-width='3.4'/%3E%3Crect x='15.6' y='5.8' width='3.4' height='14.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.4' cy='12.9' r='5.4' fill='none' stroke='black' stroke-width='3.4'/%3E%3Crect x='15.6' y='5.8' width='3.4' height='14.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mark i { display: none; }
.btn { border-radius: 999px; background: #fff; }
.btn.primary { background: #000; } .btn.primary:hover { background: #222; }
.input { background: #fff; border-color: var(--line-2); }
code { background: var(--bg-1); border-color: transparent; }

/* Connexion */
.auth-solo { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-solo form { width: 100%; max-width: 380px; text-align: center; }
.auth-solo h1 { font: 400 44px/1.1 var(--serif); margin-top: 28px; letter-spacing: -.01em; }
.auth-solo h1 em { font-style: italic; }
.auth-solo .lead { color: var(--mute); margin-top: 10px; }
.auth-solo .field { text-align: left; }
.auth-solo .btn.primary { width: 100%; height: 44px; margin-top: 14px; }
.auth-solo .notice { margin-top: 22px; font: italic 14px/1.5 var(--serif); color: var(--mute); }
.auth-solo .back { display: inline-block; margin-top: 30px; font-size: 14px; color: var(--mute); text-decoration: none; border-bottom: 1px solid currentColor; }
.oauth-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.btn.oauth { width: 100%; height: 44px; gap: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 10px; }
.btn.oauth:hover { background: var(--bg-1); }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--mute); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sent .ic { background: #000; }

/* Premiers pas : même déroulé, rendu plus sobre */
.ob h1 { font: 400 34px/1.15 var(--serif); letter-spacing: -.01em; }
.ob .sub { font: italic 17px/1.5 var(--serif); }
.bubble { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: italic 18px var(--serif); }
.bubble::before { background: #fff; border-color: var(--line-2); border-width: 0 0 1px 1px; }
.mascot .m { border-radius: 26px; }
.ob-bar { height: 8px; background: var(--bg-2); } .ob-bar i::after { display: none; }
.choice { border: 1px solid var(--line-2); border-bottom-width: 1px; border-radius: 12px; font-weight: 500; }
.choice.on { border-color: #000; background: #fff; box-shadow: inset 0 0 0 1px #000; }
.choice .ic { background: var(--bg); border-color: var(--line); }
.choice .k { border: 1px solid var(--line-2); font-weight: 500; }
.press-btn { border-radius: 999px; height: 46px; box-shadow: none; font: 500 15px Avenir, "Geist", sans-serif; letter-spacing: 0; text-transform: none; }
.press-btn:active:not(:disabled) { transform: scale(.97); box-shadow: none; }
.press-btn:disabled { background: var(--bg-2); color: var(--faint); box-shadow: none; }
.press-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.ob-foot { border-top: 1px solid var(--line); }
.ob-foot .fb { font: italic 400 22px var(--serif); }
.ob-foot.good .press-btn { box-shadow: none; }
.code-in input { border: 1px solid var(--line-2); border-bottom-width: 1px; border-radius: 8px; background: #fff; font-weight: 500; }
.practice .pad { box-shadow: 0 6px 0 #000, 0 16px 30px rgba(0,0,0,.18), inset 0 2px 2px rgba(255,255,255,.25); }
.practice .pad::after { border: 1px solid var(--line-2); }
.goals span { border: 1px solid var(--line-2); font-weight: 500; }
.celebrate .big { font: 400 60px/1.05 var(--serif); letter-spacing: -.015em; }
.celebrate .stats div { border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.celebrate .stats b { font: 400 28px var(--serif); }
.cmd { border-radius: 10px; }

/* Tableau de bord : page simple, titres en serif */
.side { background: #efefe6; }
.ws .av { border-radius: 3px; }
.page { padding-top: 56px; }
.page h1 { font: 400 46px/1.1 var(--serif); letter-spacing: -.015em; margin-top: 0; }
.page-head { display: flex; align-items: center; gap: 14px; }
.h2 { font: 400 26px/1.2 var(--serif); letter-spacing: -.01em; }
.box, .kpis, .search { background: #fff; }
.kpis b { font: 400 34px/1.15 var(--serif); letter-spacing: -.01em; }
.callout { background: #fff; border: 1px solid var(--line); }
.callout.alert { background: #000; border-color: #000; }
.db { background: #fff; }
.db th { background: var(--bg); }
.chip-tag { background: var(--bg-1); }
.mob-top { background: var(--bg); }

/* One-time code sign-in (installed app) */
.otp { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.otp input { flex: 1 1 140px; height: 44px; padding: 0 14px; border: 1px solid #c4c3b6; border-radius: 10px; background: #fff; font: 500 20px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .3em; color: inherit; }
.otp input:focus { outline: 2px solid #d97757; outline-offset: 1px; }
.otp .form-msg { flex-basis: 100%; margin: 0; }

/* ============ v4 : accueil du tableau de bord (salutation, démarrage, maintenant, chiffres) ============ */
:root { --clay: #d97757; --clay-ink: #b5573a; --clay-50: #f6e7df; --ink: #141413; }
.side { padding: 18px 12px 14px; gap: 2px; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font: 500 13px Avenir, "Avenir Next", sans-serif; letter-spacing: .17em; color: var(--ink); }
.side .brand .mark { width: 18px; height: 18px; }
.side .item { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; border: 0; background: none; width: 100%; text-align: left;
  transition: background-color .15s ease, color .15s ease; }
.side .item:hover { background: rgba(20,20,19,.05); }
.side .item.active { background: var(--ink); color: #f5f5ee; font-weight: 500; }
.side .item.active svg { color: #f5f5ee; }
.side .sec-t { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 20px 12px 8px; }
.side .me { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 10px 2px; border-top: 1px solid var(--line); }
.side .me .av { width: 30px; height: 30px; border-radius: 50%; background: var(--clay-50); color: var(--clay-ink); display: grid; place-items: center; font: 600 13px Avenir, sans-serif; flex: none; }
.side .me span { min-width: 0; display: grid; }
.side .me b { font-size: 13.5px; font-weight: 600; }
.side .me small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-top .brand { display: flex; align-items: center; gap: 9px; font: 500 12.5px Avenir, sans-serif; letter-spacing: .17em; }
.mob-top .brand .mark { width: 17px; height: 17px; }

.page { max-width: 1040px; padding-top: 52px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.hello h1 { margin-top: 14px; font: 400 52px/1.04 var(--serif); letter-spacing: -.02em; }
.hello-sub { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--mute); }
.dot-on, .dot-off { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.dot-on { background: #3f9b5f; box-shadow: 0 0 0 3px rgba(63,155,95,.16); }
.dot-off { background: var(--faint); }
#content { margin-top: 30px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 10px; margin: 0; }
.card-h .count { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--mute); }
.lnk { font-size: 13.5px; color: var(--clay-ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; padding: 0; }
.lnk:hover { color: var(--ink); }

/* Getting started */
.start { margin-bottom: 16px; }
.start ol { list-style: none; }
.start li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.start li:first-child { border-top: 0; padding-top: 4px; }
.start .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.start li.done .tick { background: var(--clay); border-color: var(--clay); color: #fff; }
.start .tick svg { width: 13px; height: 13px; }
.start .txt { flex: 1; min-width: 0; display: grid; }
.start .txt b { font-weight: 500; font-size: 15px; }
.start li.done .txt b { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--line-3); }
.start .txt small { font-size: 13.5px; color: var(--mute); }

/* Now (dark) */
.now { background: var(--ink); color: #f5f5ee; border-radius: 18px; padding: 22px 24px 18px; transition: box-shadow .3s ease; }
.now .eyebrow { color: rgba(245,245,238,.6); }
.now .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,245,238,.35); display: inline-block; }
.now .dot.live { background: #6fd38f; box-shadow: 0 0 0 0 rgba(111,211,143,.5); animation: livepulse 2s ease-out infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px rgba(111,211,143,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,143,0); } }
.now.ask { box-shadow: 0 0 0 2px var(--clay), 0 24px 60px -30px rgba(217,119,87,.7); }
.now-line { margin-top: 14px; max-width: 40em; font: 400 22px/1.4 var(--serif); letter-spacing: -.005em; color: rgba(245,245,238,.82); text-wrap: pretty; }
.now-line b { color: #fff; font-weight: 500; }
.live-list { list-style: none; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.live-list li { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(245,245,238,.06); font-size: 14px; }
.live-list b { font-weight: 500; }
.live-list .m { margin-left: auto; color: rgba(245,245,238,.55); font-size: 13px; }
.pill { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(245,245,238,.12); color: rgba(245,245,238,.85); white-space: nowrap; }
.pill.warn { background: var(--clay); color: #fff; }
.now-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.now-foot .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: #f5f5ee; color: var(--ink);
  font: 500 13.5px Avenir, sans-serif; cursor: pointer; transition: background-color .15s ease, transform .14s var(--ease-out); }
.chip:hover { background: #fff; }
.chip:active { transform: scale(.96); }
.chip svg { width: 14px; height: 14px; color: var(--mute); }
.chip code { background: none; border: 0; padding: 0; font-size: 12.5px; color: inherit; }
.chip.ok { background: var(--clay); color: #fff; } .chip.ok svg { color: #fff; }
.alerts .chip { background: transparent; color: rgba(245,245,238,.75); box-shadow: inset 0 0 0 1px rgba(245,245,238,.22); }
.alerts .chip:hover { color: #fff; background: rgba(245,245,238,.08); }
.alerts .chip.on { color: #fff; box-shadow: inset 0 0 0 1px #6fd38f; }
.chip-note { font-size: 12.5px; color: rgba(245,245,238,.5); }

/* Three numbers */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat .eyebrow { color: var(--mute); font-size: 10.5px; }
.stat b { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.stat b small { font: 500 13px Avenir, sans-serif; color: var(--mute); letter-spacing: 0; margin-right: 6px; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); }

/* Latest + Macs */
.duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; }
.rows { list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rows .ag { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--ink-2); }
.rows .ag.claude { background: var(--clay-50); color: var(--clay-ink); }
.rows .ag svg { width: 16px; height: 16px; }
.rows .txt { flex: 1; min-width: 0; display: grid; }
.rows .txt b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); }
.rows .r { text-align: right; display: grid; justify-items: end; }
.rows .r b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.empty-sm { font-size: 14px; color: var(--mute); }
.empty-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; display: grid; gap: 12px; justify-items: start; font-size: 14px; color: var(--mute); }
#content > .search { margin-top: 44px; }

@media (max-width: 980px) {
  .page { padding-top: 26px; }
  .hello h1 { font-size: 38px; }
  .stats3 { grid-template-columns: 1fr; gap: 10px; }
  .duo { grid-template-columns: 1fr; }
  .now-line { font-size: 19px; }
  .live-list .m { display: none; }
}
@media (prefers-reduced-motion: reduce) { .now .dot.live { animation: none; } }
.live-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) {
  .now { padding: 18px 18px 16px; }
  .now-foot [data-copy-cmd] { display: none; }
  .live-list li { gap: 10px; }
  .stat { padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .stat b { grid-row: span 2; grid-column: 2; margin: 0; font-size: 32px; }
  .stat > span { margin-top: 6px; }
}

/* Agent chat inside the Now card */
.ask-form { display: flex; gap: 8px; margin-top: 18px; }
.ask-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(245,245,238,.14); background: rgba(245,245,238,.07);
  color: #f5f5ee; font: 15px Avenir, "Avenir Next", sans-serif; transition: border-color .15s ease, background-color .15s ease; }
.ask-form input::placeholder { color: rgba(245,245,238,.45); }
.ask-form input:focus { outline: none; border-color: rgba(217,119,87,.8); background: rgba(245,245,238,.1); }
.ask-go { height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: #f5f5ee; color: var(--ink); font: 500 14.5px Avenir, sans-serif; cursor: pointer;
  transition: background-color .15s ease, transform .14s var(--ease-out); }
.ask-go:hover { background: #fff; } .ask-go:active { transform: scale(.96); } .ask-go:disabled { opacity: .5; cursor: default; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chips .chip { background: transparent; color: rgba(245,245,238,.8); box-shadow: inset 0 0 0 1px rgba(245,245,238,.2); }
.ask-chips .chip:hover { background: rgba(245,245,238,.08); color: #fff; }
.thread { display: grid; gap: 10px; margin-top: 4px; }
.thread:not(:empty) { margin-top: 16px; }
.thread .q { justify-self: end; max-width: 80%; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: rgba(245,245,238,.12); font-size: 14.5px; color: #fff; }
.thread .a { max-width: 44em; font-size: 15px; line-height: 1.6; color: rgba(245,245,238,.88); animation: swap .2s var(--ease-out); }
.thread .a p + p, .thread .a ul + p, .thread .a p + ul { margin-top: 8px; }
.thread .a ul { padding-left: 18px; display: grid; gap: 3px; }
.thread .a b { color: #fff; font-weight: 600; }
.thread .a.err { color: #f0a58c; }
.thread .a.typing { display: flex; gap: 5px; padding: 8px 0; }
.thread .a.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,245,238,.5); animation: blink 1.2s ease-in-out infinite; }
.thread .a.typing span:nth-child(2) { animation-delay: .15s; } .thread .a.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.lnk-dim { background: none; border: 0; padding: 0 6px; font-size: 13px; color: rgba(245,245,238,.55); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lnk-dim:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .thread .a.typing span { animation: none; opacity: .6; } }
@media (max-width: 620px) { .ask-form input { font-size: 16px; } .ask-chips .chip:nth-child(3) { display: none; } }

/* ============ v5 : vues (Home, Agent, Sessions, Projects, Insights, Macs, Settings) ============ */
.side .item em.new, .side .item em.soon, .card-h em.soon, .dev h3 em.soon { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  padding: 4px 7px; border-radius: 999px; }
.side .item em.new { background: var(--clay); color: #fff; }
.side .item.active em.new { background: #f5f5ee; color: var(--ink); }
.side .item em.soon, .dev h3 em.soon { background: var(--bg-2); color: var(--mute); }
.dev h3 em.soon { margin-left: 8px; vertical-align: 2px; }
.vh { margin-bottom: 26px; }
.vh h1 { margin-top: 12px; font: 400 46px/1.05 var(--serif); letter-spacing: -.02em; }
.vh h1 em { font-style: italic; }
.vh-sub { margin-top: 10px; font-size: 15.5px; color: var(--mute); max-width: 38em; }
.view > .card + .card, .view > .card + .duo { margin-top: 14px; }
.duo.even { grid-template-columns: 1fr 1fr; }
#content > .view > .search { margin-top: 0; }
.view[data-v="sessions"] .table-scroll { margin-top: 18px; }

/* Agent page */
.agent-page { display: grid; gap: 14px; }
.agent-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic { display: grid; gap: 6px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .2s ease, transform .14s var(--ease-out); }
.topic:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -22px rgba(20,20,19,.4); }
.topic:active { transform: scale(.985); }
.topic b { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); }
.topic span { font: 400 17px/1.35 var(--serif); color: var(--ink); }
.thread.big { background: var(--ink); border-radius: 18px; padding: 22px 24px; color: #f5f5ee; }
.thread.big:empty { display: none; }
.thread.big .a { font-size: 15.5px; }
.ask-form.light input { background: #fff; color: var(--ink); border-color: var(--line-2); height: 52px; border-radius: 14px; }
.ask-form.light input::placeholder { color: var(--faint); }
.ask-form.light input:focus { border-color: var(--clay); background: #fff; box-shadow: 0 0 0 4px rgba(217,119,87,.12); }
.ask-form.light .ask-go { background: var(--ink); color: #f5f5ee; height: 52px; border-radius: 14px; padding: 0 24px; }
.ask-form.light .ask-go:hover { background: #2a2a28; }
.ask-form.light { margin-top: 0; position: sticky; bottom: 16px; }
.agent-note { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); min-height: 18px; }

/* Projects */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.proj { display: grid; gap: 14px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .2s ease, transform .14s var(--ease-out); }
.proj:hover { border-color: var(--line-2); box-shadow: 0 16px 34px -24px rgba(20,20,19,.4); }
.proj:active { transform: scale(.985); }
.proj-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.proj-h b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .ag { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--clay-50); color: var(--clay-ink); display: grid; place-items: center; }
.proj .ag svg { width: 16px; height: 16px; }
.proj-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--mute); }
.proj-n i { display: block; font: 400 22px/1.1 var(--serif); font-style: normal; color: var(--ink); }
.proj-bar { height: 4px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.proj-bar i { display: block; height: 100%; border-radius: 99px; background: var(--clay); }
.proj-f { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mute); }

/* Devices + settings */
.dev { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; }
.dev .btn { grid-column: 2; justify-self: start; }
.dev-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--ink-2); }
.dev-ic svg { width: 20px; height: 20px; }
.dev h3 { font-size: 15.5px; font-weight: 600; }
.dev p { margin-top: 4px; font-size: 14px; color: var(--mute); }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--ink-2); }
.alerts.light .chip { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.alerts.light .chip.on { box-shadow: inset 0 0 0 1px #3f9b5f; color: #2e7a49; }
.alerts.light .chip-note { color: var(--mute); }
#account .device { padding: 12px 0; }

/* Mobile tab bar (installed app) */
.tabbar { display: none; }
@media (max-width: 980px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(245,245,238,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; font-size: 11px; color: var(--mute); -webkit-tap-highlight-color: transparent; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active svg { color: var(--clay-ink); }
  .page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .vh h1 { font-size: 36px; }
  .agent-empty { grid-template-columns: 1fr; }
  .agent-empty .topic:nth-child(n+5) { display: none; }
  .duo.even { grid-template-columns: 1fr; }
  .ask-form.light { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .row-set { flex-direction: column; align-items: flex-start; }
  .mob-top #export-m { display: none; }
}
