/* BLACKLINE · page client. Même système visuel que l'app (src/theme.ts, src/blackline/Glass.tsx) :
   noir d'encre, lueurs turquoise / violet / magenta, verre, Bricolage Grotesque pour les titres,
   Geist Mono pour les étiquettes, Inter pour le texte. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@font-face { font-family:'Bricolage Grotesque'; src:url(fonts/BricolageGrotesque-Bold.ttf) format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Geist Mono'; src:url(fonts/GeistMono-Regular.ttf) format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Geist Mono'; src:url(fonts/GeistMono-Bold.ttf) format('truetype'); font-weight:700; font-display:swap; }
:root {
  color-scheme: dark;
  --paper:#06080A; --sidebar:#0A0D11; --surface:#0F1419; --raised:#161D24;
  --ink:#F4F1EA; --muted:#8C98A5; --faint:#5B6672;
  --line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.14);
  --stencil:#00D1C1; --stencil-bright:#46F5E6; --stencil-soft:#082E2D; --on-stencil:#03110F;
  --magenta:#FF2D8A; --violet:#8B5CFF; --violet-soft:#221A45;
  --ok:#3EE6A8; --ok-soft:#0B3329; --warn:#FFC85C; --warn-soft:#3A2D11; --bad:#FF6B9D; --bad-soft:#3D1424;
  --glass-fill:rgba(255,255,255,.045); --glass-edge:rgba(255,255,255,.13);
  --glass:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),rgba(9,12,15,.55);
  --teal-fill:linear-gradient(135deg,#43F3E4,#00C3B3);
  --aura:linear-gradient(135deg,#00D1C1,#8B5CFF 55%,#FF2D8A);
  --glow-teal:0 6px 18px rgba(0,209,193,.35);
  --shadow:0 12px 24px rgba(0,0,0,.32);
  --aurora:radial-gradient(330px 330px at calc(100% - 50px) 20px,rgba(0,209,193,.26),transparent),
    radial-gradient(320px 320px at -10px 470px,rgba(139,92,255,.13),transparent),
    radial-gradient(300px 300px at calc(100% + 10px) calc(100% + 16px),rgba(255,45,138,.09),transparent),
    linear-gradient(#0A0F13,#040506);
  --display:'Bricolage Grotesque',Inter,system-ui,sans-serif;
  --mono:'Geist Mono',ui-monospace,Menlo,monospace;
}
* { box-sizing:border-box; }
html { background:#040506; }
html,body { margin:0; color:var(--ink); }
body { font:16px/1.5 Inter,system-ui,sans-serif; -webkit-font-smoothing:antialiased; min-height:100vh; background:url(grain.png),var(--aurora); background-attachment:fixed; }
body.artwork-open { overflow:hidden; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:default; }
a { color:var(--stencil-bright); }
.wrap { max-width:740px; margin:0 auto; padding:24px 16px 48px; }
.brand { padding:0 3px 24px; }
.brand b { display:inline-block; font-family:var(--display); font-size:24px; font-weight:700; letter-spacing:1.5px; padding-bottom:2px; border-bottom:2px solid var(--magenta); }
.brand small { display:block; margin-top:6px; font-family:var(--mono); font-size:9px; letter-spacing:2.2px; color:var(--muted); }
/* Verre : fond translucide, liseré lumineux en haut */
.card { position:relative; background:var(--glass); border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.card::before { content:""; position:absolute; top:0; left:18px; right:18px; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent); pointer-events:none; }
.pad { padding:22px; }
/* Carte du profil : comme la carte « en cours » de l'accueil de l'app (turquoise, rose en filigrane) */
.hero { overflow:hidden; border-color:rgba(0,209,193,.28); background:radial-gradient(420px 260px at 0% 0%,rgba(0,209,193,.22),transparent 70%),radial-gradient(360px 260px at 100% 100%,rgba(139,92,255,.20),transparent 70%),linear-gradient(160deg,#0B2A2A,#0B1015 60%,#151027); }
.hero .band { display:none; }
.hero .rose { position:absolute; right:-6px; top:10px; width:150px; height:250px; opacity:.09; pointer-events:none; }
.hero .rose path { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.hero .body { position:relative; padding:24px 22px 24px; }
.avatar { position:relative; width:72px; height:72px; display:grid; place-items:center; border-radius:50%; background:#0B1A1C; color:var(--stencil-bright); font-family:var(--display); font-size:24px; font-weight:700; }
.avatar::before { content:""; position:absolute; inset:-3px; border-radius:50%; padding:3px; background:var(--aura); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
h1,h2 { font-family:var(--display); font-weight:700; }
h1 { font-size:32px; line-height:1.12; letter-spacing:-1.1px; margin:16px 0 6px; }
h1 .accent { color:var(--stencil-bright); }
h2 { font-size:24px; line-height:1.25; margin:0 0 6px; letter-spacing:-.5px; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.eyebrow { display:flex; align-items:center; gap:8px; color:var(--muted); font-family:var(--mono); font-size:10.5px; font-weight:400; letter-spacing:1.6px; text-transform:uppercase; }
.eyebrow::before { content:""; flex:none; width:6px; height:6px; border-radius:50%; background:var(--stencil); box-shadow:0 0 6px var(--stencil); }
.socials { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.social { display:inline-flex; align-items:center; min-height:44px; gap:6px; padding:10px 14px; border:1px solid var(--line-strong); border-radius:999px; background:var(--glass-fill); color:var(--ink); text-decoration:none; font-size:12px; font-weight:500; }
.seg { display:flex; background:var(--glass-fill); border:1px solid var(--line); border-radius:999px; padding:5px; margin:22px 0; }
.seg button { flex:1; min-height:44px; border:0; background:transparent; padding:10px 8px; border-radius:999px; font-size:14px; font-weight:600; color:var(--muted); transition:background .18s,color .18s; }
.seg button[aria-selected=true] { background:#F4F1EA; color:#06080A; }
.stack>*+* { margin-top:18px; }
label.f { display:block; font-weight:600; margin-bottom:8px; }
input[type=text],input[type=tel],input[type=email],textarea { width:100%; min-height:48px; border:1px solid var(--line-strong); background:rgba(255,255,255,.045); border-radius:16px; padding:13px 16px; font-size:16px; color:var(--ink); }
input::placeholder,textarea::placeholder { color:var(--faint); }
textarea { min-height:120px; resize:vertical; border-radius:20px; }
input:focus,textarea:focus { border-color:rgba(0,209,193,.7); outline:none; box-shadow:0 0 0 3px rgba(0,209,193,.14); }
:focus-visible { outline:2px solid var(--stencil); outline-offset:4px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { min-height:44px; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); border-radius:999px; padding:10px 16px; font-size:13px; font-weight:600; transition:background .18s,border-color .18s,transform .12s; }
.chip[aria-pressed=true] { background:#F4F1EA; border-color:#F4F1EA; color:#06080A; }
.steps { display:flex; gap:6px; }
.steps i { flex:1; height:4px; border-radius:2px; background:rgba(255,255,255,.1); transition:background .2s; }
.steps i.on { background:linear-gradient(90deg,var(--stencil),var(--violet)); box-shadow:0 0 8px rgba(0,209,193,.45); }
.stepper { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line-strong); border-radius:999px; padding:4px; background:var(--glass-fill); }
.stepper button { width:44px; height:44px; border:0; border-radius:50%; background:rgba(255,255,255,.07); font-size:22px; font-weight:600; color:var(--ink); }
.stepper span { min-width:72px; text-align:center; font-family:var(--display); font-weight:700; font-size:18px; }
.estimate { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:center; background:linear-gradient(135deg,rgba(0,209,193,.16),rgba(0,209,193,.04)); border:1px solid rgba(0,209,193,.3); border-radius:20px; padding:14px 16px; }
.estimate b { color:var(--stencil-bright); font-family:var(--display); font-size:22px; }
/* Boutons pilule : turquoise dégradé avec lueur, ou verre */
.btn { position:relative; display:block; width:100%; min-height:50px; border:0; border-radius:999px; padding:14px 18px; font-size:15px; font-weight:700; background:var(--teal-fill); color:var(--on-stencil); text-align:center; box-shadow:var(--glow-teal); transition:transform .12s,filter .18s; }
.btn.ghost { background:var(--glass-fill); color:var(--ink); border:1px solid var(--line-strong); box-shadow:none; }
.btn:disabled { opacity:.5; }
.btn:not(:disabled):active,.chip:active { transform:scale(.98); }
.row { display:flex; gap:10px; }
.row>* { flex:1; }
.row>.grow { flex:2; }
.photos { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.photo,.addphoto { aspect-ratio:1; border-radius:18px; overflow:hidden; position:relative; background:var(--raised); }
.photo img { width:100%; height:100%; object-fit:cover; display:block; }
.photo button { position:absolute; top:3px; right:3px; width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); background:rgba(6,8,10,.8); color:var(--ink); font-size:22px; }
.addphoto { border:1px dashed var(--line-strong); background:transparent; display:grid; place-items:center; cursor:pointer; color:var(--muted); font-weight:600; font-size:12px; text-align:center; padding:6px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.flash { min-width:0; border:1px solid var(--line); border-radius:24px; background:var(--glass); overflow:hidden; position:relative; }
.flash.selected { border-color:rgba(0,209,193,.7); box-shadow:0 0 0 1px var(--stencil),0 0 22px rgba(0,209,193,.25); }
.artwork-preview { position:relative; display:block; width:100%; padding:8px; border:0; background:transparent; color:var(--ink); }
.flash .img { aspect-ratio:1; border-radius:18px; background:#0B0F13; overflow:hidden; display:grid; place-items:center; }
.flash .img img { width:100%; height:100%; object-fit:contain; display:block; }
.zoom-hint { position:absolute; right:14px; bottom:14px; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:rgba(6,8,10,.85); border:1px solid var(--line-strong); color:var(--ink); font-size:19px; pointer-events:none; }
.flash-meta { padding:5px 12px 14px; }
.flash b { display:block; font-size:14px; margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.flash .btn { margin-top:12px; min-height:44px; font-size:13px; padding:11px 6px; }
.flash-status { display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:9.5px; letter-spacing:1.2px; text-transform:uppercase; color:var(--ok); margin-top:8px; padding:4px 9px; border-radius:999px; border:1px solid rgba(62,230,168,.35); background:rgba(62,230,168,.08); }
.flash-status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; box-shadow:0 0 6px currentColor; }
.flash.taken .flash-status { color:var(--muted); border-color:var(--line-strong); background:transparent; }
.flash.taken .flash-status::before { box-shadow:none; }
.gallery-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:center; }
.gallery-heading h2 { margin-top:6px; }
.gallery-filters { display:flex; gap:8px; overflow:auto; padding:2px 2px 6px; }
.gallery-filters .chip { flex:none; }
.gallery-empty { padding:26px 8px; text-align:center; color:var(--muted); font-size:14px; }
.consent { display:flex; gap:12px; align-items:flex-start; font-size:13px; color:var(--muted); cursor:pointer; }
.consent input { margin-top:4px; width:22px; height:22px; accent-color:var(--stencil); flex:none; }
.alert { background:var(--bad-soft); color:var(--bad); border:1px solid rgba(255,107,157,.35); border-radius:18px; padding:14px; font-size:14px; }
.note { background:var(--glass-fill); border:1px solid var(--line); border-radius:18px; padding:14px 16px; font-size:13px; color:var(--muted); }
.done { text-align:center; }
.done .ok { width:68px; height:68px; border-radius:50%; background:radial-gradient(circle,rgba(62,230,168,.25),rgba(62,230,168,.06)); border:1px solid rgba(62,230,168,.45); color:var(--ok); display:grid; place-items:center; margin:0 auto 16px; font-size:30px; font-weight:700; box-shadow:0 0 24px rgba(62,230,168,.25); }
.recap { display:grid; grid-template-columns:1fr 1fr; gap:10px; text-align:left; margin:20px 0; }
.recap > div { padding:10px 12px; border-radius:16px; background:var(--glass-fill); border:1px solid var(--line); }
.recap small { display:block; color:var(--muted); font-family:var(--mono); font-size:9.5px; letter-spacing:1.2px; text-transform:uppercase; }
footer { text-align:center; margin-top:32px; font-size:12px; color:var(--muted); }
.spinner { width:28px; height:28px; border:3px solid var(--line-strong); border-top-color:var(--stencil); border-radius:50%; animation:spin .8s linear infinite; margin:60px auto; }
@keyframes spin { to { transform:rotate(360deg); } }
[hidden] { display:none!important; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.artwork-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; padding:0; margin:0; border:0; background:url(grain.png),var(--aurora); color:var(--ink); }
.artwork-dialog::backdrop { background:rgba(2,3,5,.9); }
.artwork-dialog[open] { display:flex; flex-direction:column; padding:max(14px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)); gap:14px; }
.artwork-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.artwork-head h2 { font-size:22px; margin:0 0 4px; }
.artwork-close,.zoom-button { flex:none; width:46px; height:46px; border-radius:50%; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); font-size:22px; }
.artwork-frame { position:relative; flex:1; min-height:80px; border-radius:26px; overflow:hidden; background:#0B0F13; border:1px solid var(--line); display:grid; place-items:center; touch-action:none; }
.artwork-frame img { width:100%; height:100%; position:absolute; object-fit:contain; user-select:none; -webkit-user-drag:none; transform-origin:center; }
.artwork-controls { display:flex; justify-content:center; align-items:center; gap:12px; }
.artwork-hint { margin:0; text-align:center; font-size:12px; color:var(--muted); }
.artwork-dialog .btn { max-width:480px; align-self:center; }
@media(min-width:640px) { .wrap { padding:36px 24px 64px; } .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .pad { padding:26px; } .artwork-dialog[open] { padding:24px max(24px,calc((100vw - 1100px)/2)); } }
@media(hover:hover) { .btn:not(:disabled):not(.ghost):hover { filter:brightness(1.08); } .btn.ghost:not(:disabled):hover { background:rgba(255,255,255,.08); } .artwork-preview:hover .zoom-hint { border-color:var(--stencil); color:var(--stencil-bright); } .chip:not([aria-pressed=true]):hover { border-color:rgba(0,209,193,.6); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }

/* ---------- Vue client : barre du bas flottante (comme le dock de l'app), galerie, messagerie ---------- */
body { padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 3px 22px; }
.topbar .brand { padding:0; }
.who { font-size:12px; color:var(--muted); text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tabs { position:fixed; left:0; right:0; bottom:0; z-index:5; display:flex; justify-content:center; padding:24px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events:none; background:linear-gradient(rgba(4,5,6,0),rgba(4,5,6,.92) 45%); }
.tabs nav { pointer-events:auto; display:flex; width:100%; max-width:520px; gap:2px; padding:6px; border-radius:999px; border:1px solid var(--line-strong); background:rgba(11,15,19,.82); box-shadow:0 12px 30px rgba(0,0,0,.5); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.tabs button { position:relative; flex:1; min-height:54px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-size:11.5px; font-weight:600; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; transition:background .18s,color .18s; }
.tabs button svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tabs button[aria-current=page] { color:var(--stencil-bright); background:radial-gradient(circle at 50% 30%,rgba(0,209,193,.28),rgba(0,209,193,.08)); box-shadow:inset 0 0 0 1px rgba(0,209,193,.45); }
.dot { position:absolute; top:4px; left:calc(50% + 6px); min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--magenta); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; box-shadow:0 0 0 2px #0B0F13,0 0 10px rgba(255,45,138,.6); }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:28px 3px 12px; }
.section-head h2 { margin:0; font-size:22px; }
.section-head .muted.small { font-family:var(--mono); font-size:10.5px; letter-spacing:1.4px; text-transform:uppercase; }
.linkbtn { border:0; background:none; color:var(--stencil-bright); font-weight:600; font-size:14px; padding:12px 0; min-height:44px; }
.cta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; }
.cta .btn { padding:14px 10px; font-size:14px; }
.works { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.work { position:relative; display:block; width:100%; aspect-ratio:1; padding:0; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--surface); color:var(--ink); }
.work img { width:100%; height:100%; object-fit:cover; display:block; }
.work span { position:absolute; left:0; right:0; bottom:0; padding:22px 10px 8px; font-size:12px; font-weight:600; text-align:left; background:linear-gradient(transparent,rgba(4,5,6,.85)); }
.convs { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.conv { position:relative; display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 16px; border:1px solid var(--line); border-radius:22px; background:var(--glass); color:var(--ink); }
.conv b { display:block; font-size:15px; }
.conv .muted { display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv .new { flex:none; width:10px; height:10px; border-radius:50%; background:var(--magenta); box-shadow:0 0 8px var(--magenta); }
.conv > div { flex:1; min-width:0; }
.chat-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.chat-head b { font-family:var(--display); font-size:19px; letter-spacing:-.3px; }
.chat-head .back { flex:none; width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); font-size:20px; }
.chat-head > div { min-width:0; }
.thread { display:flex; flex-direction:column; gap:10px; padding:4px 0 14px; }
/* Bulles : celles du tatoueur en verre, celles du client en turquoise dégradé, notes en pastille verte */
.bubble { max-width:86%; padding:11px 14px; border-radius:22px; font-size:15px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.bubble small { display:block; margin-top:5px; font-family:var(--mono); font-size:10px; opacity:.7; }
.bubble.them { align-self:flex-start; background:rgba(255,255,255,.06); border:1px solid var(--line); border-bottom-left-radius:6px; }
.bubble.me { align-self:flex-end; background:var(--teal-fill); color:var(--on-stencil); border-bottom-right-radius:6px; box-shadow:0 6px 14px rgba(0,209,193,.3); }
.bubble.sys { align-self:center; max-width:100%; padding:5px 12px; border-radius:999px; background:rgba(62,230,168,.12); border:1px solid rgba(62,230,168,.35); color:var(--ok); font-family:var(--mono); font-size:10.5px; letter-spacing:.5px; }
.composer { position:sticky; bottom:calc(96px + env(safe-area-inset-bottom)); display:flex; gap:8px; align-items:flex-end; padding:10px 0; margin:0 -16px; padding:10px 16px; background:linear-gradient(rgba(5,7,9,0),rgba(5,7,9,.94) 18px); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.composer textarea { min-height:50px; max-height:160px; flex:1; background:rgba(11,15,19,.9); border-radius:25px; }
.composer .btn { width:auto; flex:none; padding:14px 20px; }
@media(min-width:640px) { .works { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* ---------- Ouverture : même animation que l'app, puis connexion (Google ou e-mail) ---------- */
.intro { position:fixed; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; background:url(grain.png),var(--aurora); overflow:hidden; }
.intro-box { position:relative; flex:none; }
.intro-art, .intro-art svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.intro-form > * { position:absolute; box-sizing:border-box; margin:0; }
.intro .rise { opacity:0; transform:translateY(var(--lift,10px)); transition:opacity .302s cubic-bezier(.2,.8,.3,1),transform .302s cubic-bezier(.2,.8,.3,1); pointer-events:none; }
.intro.ready .rise { opacity:1; transform:none; pointer-events:auto; }
.intro.quick .rise { transition:none; }
.ig, .isubmit { display:flex; align-items:center; justify-content:center; gap:8px; border:0; font-weight:700; }
.ig { background:#FFFFFF; color:#0D1114; }
.ig svg { flex:none; }
.isubmit { background:var(--teal-fill); color:var(--on-stencil); box-shadow:var(--glow-teal); }
.ig:disabled, .isubmit:disabled { opacity:.6; }
.iemail { width:100%; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); font-size:16px; }
.iemail:focus { border-color:var(--stencil); outline:none; box-shadow:0 0 0 3px #00D1C122; }
.ior { display:flex; align-items:center; gap:10px; color:var(--muted); }
.ior i { flex:1; height:1px; background:var(--line); }
.isent { background:var(--stencil-soft); color:var(--ink); line-height:1.4; }
.isent b { color:var(--stencil); }
.isent button, .ichange { border:0; background:none; color:var(--muted); text-decoration:underline; padding:6px 0 0; font-size:inherit; }
.inote { color:var(--muted); text-align:center; line-height:1.35; }
.ierr { background:var(--bad-soft); color:var(--bad); line-height:1.4; }
.intro-skip { position:fixed; top:calc(12px + env(safe-area-inset-top)); right:16px; padding:8px 14px; border-radius:999px; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--muted); font-weight:700; font-size:13px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.intro-for { position:fixed; top:calc(18px + env(safe-area-inset-top)); left:16px; right:96px; margin:0; font-family:var(--mono); font-size:10.5px; letter-spacing:1.6px; text-transform:uppercase; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.intro-legal { position:fixed; bottom:calc(10px + env(safe-area-inset-bottom)); left:0; right:0; text-align:center; font-size:11px; color:var(--muted); }
body.intro-on { overflow:hidden; padding-bottom:0; }
.who { display:flex; flex-direction:column; align-items:flex-end; gap:2px; white-space:normal; }
.who span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.who button { border:0; background:none; color:var(--stencil-bright); font-weight:600; font-size:12px; padding:4px 0; min-height:32px; }

/* ---------- Créneaux (boutons dans la conversation) ---------- */
.slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.slot { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:58px; padding:10px 14px; border:1px solid var(--line-strong); border-radius:18px; background:rgba(4,5,6,.45); color:var(--ink); text-align:left; transition:border-color .15s,background .15s; }
.slot span { font-family:var(--mono); font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
.slot b { font-family:var(--display); font-size:20px; letter-spacing:-.3px; }
.slot[aria-pressed=true] { border-color:var(--stencil); background:linear-gradient(135deg,rgba(0,209,193,.22),rgba(0,209,193,.06)); box-shadow:0 0 0 1px var(--stencil),0 0 16px rgba(0,209,193,.3); }
.slot[aria-pressed=true] span { color:var(--stencil-bright); }
@media(min-width:640px) { .slots { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.bubble.wide { max-width:100%; width:100%; }
.bubble .slots.offer { margin-top:10px; }
.bubble .offer-ok { width:100%; margin-top:10px; }
.bubble .offer-hint, .bubble .offer-old { margin-top:8px; font-size:12.5px; color:var(--muted); white-space:normal; }
/* Conditions de l'acompte (version 2.5) */
.policy { margin:12px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.policy li { position:relative; padding-left:18px; font-size:14px; line-height:1.45; color:var(--ink); }
.policy li::before { content:""; position:absolute; left:2px; top:.6em; width:6px; height:6px; border-radius:50%; background:var(--stencil); box-shadow:0 0 6px var(--stencil); }
.bubble .offer-policy { margin-top:12px; white-space:normal; font-size:13px; }
.bubble .offer-policy summary { cursor:pointer; color:var(--stencil-bright); font-weight:600; }
.bubble .offer-policy .policy li { font-size:13px; }
.bubble .offer-accept { margin-top:10px; white-space:normal; color:var(--ink); }
/* Acompte payé par carte (version 2.6) */
.paycard { border-color:rgba(0,209,193,.35); }
.paycard-amount { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin:10px 0 14px; }
.paycard-amount b { font-family:var(--display); font-size:34px; letter-spacing:-1px; color:var(--stencil-bright); }
.paid-note { border-color:rgba(62,230,168,.35); color:var(--ink); }
/* En défilant vers le bas de la conversation, rien ne reste caché sous la zone de saisie et la barre du bas */
.paycard, .thread > * { scroll-margin-bottom:calc(190px + env(safe-area-inset-bottom)); }
/* Prochaine séance, agenda connecté, suivi de la demande (version 2.8) */
.nextcard { border-color:rgba(0,209,193,.35); background:radial-gradient(360px 220px at 0% 0%,rgba(0,209,193,.18),transparent 70%),var(--glass); }
.next-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.next-count { font-family:var(--mono); font-size:10.5px; letter-spacing:1.2px; text-transform:uppercase; color:var(--stencil-bright); padding:4px 10px; border-radius:999px; border:1px solid rgba(0,209,193,.4); }
.next-when { margin:12px 0 10px; }
.next-when b { display:block; font-family:var(--display); font-size:28px; line-height:1.1; letter-spacing:-.8px; }
.next-when span { font-family:var(--display); font-size:22px; color:var(--stencil-bright); }
.next-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.tag { font-size:12px; padding:5px 10px; border-radius:999px; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--muted); }
.tag.ok { color:var(--ok); border-color:rgba(62,230,168,.4); background:rgba(62,230,168,.08); }
.tag.warn { color:var(--warn); border-color:rgba(255,200,92,.4); background:rgba(255,200,92,.08); }
.next-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.next-actions .btn:only-child { grid-column:1 / -1; }
a.btn { text-decoration:none; display:flex; align-items:center; justify-content:center; }
.calpanel { display:grid; gap:8px; margin-top:12px; }
.nextcard .linkbtn { display:block; margin-top:6px; }
.track { list-style:none; display:flex; gap:4px; margin:0 0 14px; padding:0; }
.track li { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; font-size:10.5px; color:var(--faint); text-align:center; }
.track li i { display:block; height:4px; border-radius:2px; background:rgba(255,255,255,.1); }
.track li.ok { color:var(--muted); }
.track li.ok i { background:linear-gradient(90deg,var(--stencil),var(--violet)); box-shadow:0 0 8px rgba(0,209,193,.4); }
.track li.now { color:var(--stencil-bright); font-weight:600; }
.track li.now i { background:rgba(0,209,193,.35); }
.track span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Photos dans la messagerie, dessin à valider, annuler / déplacer (version 2.9) */
.chat-img { display:block; margin:2px 0 8px; border-radius:16px; overflow:hidden; max-width:260px; }
.chat-img img { display:block; width:100%; height:auto; max-height:340px; object-fit:cover; }
.bubble.wide .chat-img { max-width:100%; }
.chat-img.wait { width:220px; max-width:100%; height:160px; background:rgba(255,255,255,0.06); animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.45; } }
@media (prefers-reduced-motion: reduce) { .chat-img.wait { animation:none; } }
.tz-note, .next-when .tz-note { display:block; margin-top:2px; font:500 12px/1.3 Inter,system-ui,sans-serif; letter-spacing:0; color:var(--muted); }
.tz-line { margin:6px 0 0; font-size:12px; opacity:.7; }
.design-tag { display:inline-block; margin-bottom:8px; font-family:var(--mono); font-size:10px; letter-spacing:1.2px; text-transform:uppercase; color:var(--violet); border:1px solid rgba(139,92,255,.5); border-radius:999px; padding:3px 9px; }
.design-actions { display:grid; gap:8px; margin-top:10px; white-space:normal; }
.composer { align-items:center; }
.photo-btn { flex:none; width:50px; height:50px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); cursor:pointer; }
.photo-btn svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.small-spin { width:18px; height:18px; margin:0; border-width:2px; }
.manage-links { display:flex; justify-content:center; align-items:center; gap:10px; margin-top:8px; color:var(--faint); }
.manage-links .linkbtn { font-size:13px; }
.linkbtn.danger { color:var(--bad); }
.manage-panel { display:grid; gap:8px; margin-top:8px; padding:14px; border-radius:18px; border:1px solid rgba(0,209,193,.35); background:rgba(0,209,193,.06); }
.manage-panel.danger { border-color:rgba(255,107,157,.4); background:rgba(255,107,157,.07); }
.manage-panel p { margin:0 0 4px; font-size:14px; }
.btn.danger { background:linear-gradient(135deg,#FF7AAE,#F0207E); color:#fff; box-shadow:0 6px 18px rgba(255,45,138,.3); }
/* Onglet Agenda (version 3.0) */
.tabs button { font-size:10.5px; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-head b { font-family:var(--display); font-size:20px; text-transform:capitalize; }
.cal-nav { width:40px; height:40px; border-radius:50%; border:1px solid var(--line-strong); background:var(--glass-fill); color:var(--ink); font-size:20px; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; }
.cal-w { font-family:var(--mono); font-size:10px; color:var(--faint); padding:4px 0; }
.cal-cell { position:relative; display:grid; place-items:center; aspect-ratio:1; border-radius:12px; font-size:13px; color:var(--muted); border:0; background:transparent; }
.cal-cell.empty { visibility:hidden; }
.cal-cell.today { color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-strong); }
.cal-cell.has { color:var(--ink); font-weight:700; background:rgba(0,209,193,.12); box-shadow:inset 0 0 0 1px rgba(0,209,193,.5); cursor:pointer; }
.cal-cell.has.wait { background:rgba(255,200,92,.1); box-shadow:inset 0 0 0 1px rgba(255,200,92,.5); }
.cal-cell.has i { position:absolute; bottom:6px; width:5px; height:5px; border-radius:50%; background:var(--stencil); box-shadow:0 0 6px var(--stencil); }
.cal-cell.has.wait i { background:var(--warn); box-shadow:0 0 6px var(--warn); }
.cal-legend { display:flex; gap:14px; justify-content:center; margin-top:10px; font-size:11.5px; color:var(--muted); }
.cal-legend i { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; vertical-align:1px; }
.cal-legend i.paid { background:var(--stencil); } .cal-legend i.wait { background:var(--warn); }
.appts { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.appt.past { opacity:.6; }
.add-one { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:4px 0 6px; }
.add-one .chip { min-height:38px; padding:8px 14px; text-decoration:none; display:inline-flex; align-items:center; }
.cal-google { background:linear-gradient(135deg,#43F3E4,#00C3B3); }

/* Notifications sur le téléphone (3.3) */
.push-card { margin:18px 0; }
.push-card p { margin:8px 0 12px; }
.push-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.push-steps { margin:6px 0 12px; padding-left:20px; display:grid; gap:6px; }
.push-on { margin:0 0 12px; color:var(--muted); }
.push-on .linkbtn { font-size:inherit; }

/* Solde et factures (3.4) */
.factures .facture-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; min-height:44px; }
.factures .facture-row:first-of-type { border-top:0; }
.factures .facture-row > span:first-child { display:grid; gap:2px; }
.facture-amount { font-weight:700; white-space:nowrap; }
.invoice-link { display:block; margin:10px 0 4px; padding:12px 14px; border-radius:14px; background:rgba(255,255,255,0.08); color:var(--stencil-bright); font-weight:700; text-decoration:none; }
