:root {
  --asphalt: #1C2230; --asphalt-2: #262E40; --asphalt-3: #343D52;
  --yellow: #F2B705; --yellow-ink: #3A2C00; --yellow-soft: #FFF4CC;
  --cobalt: #1D4E89; --cobalt-soft: #E3ECF7;
  --sand: #EDE3CF; --bg: #F4F5F7; --paper: #FFFFFF;
  --ink: #1C2230; --muted: #5B6475; --line: #E1E4EA;
  --red: #C8372D; --red-soft: #FBE3E1; --green: #2E7D4F; --green-soft: #E2F2E8;
  --orange: #B4610E; --orange-soft: #FCEBD9;
  --font: 'Archivo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { font-stretch: 110%; font-weight: 800; line-height: 1.15; margin: 0; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Layout */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--asphalt); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-stretch: 118%; font-size: 19px; color: #fff; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.brand span { font-weight: 500; } .brand b { font-weight: 800; }
.side .legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.side .legal-links a { color: #9AA2B1; font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--asphalt); }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px; color: #C9D0DC; text-decoration: none; font-weight: 600; }
.side a.nav svg { width: 18px; height: 18px; flex: none; }
.side a.nav:hover { background: var(--asphalt-2); color: #fff; }
.side a.nav.on { background: var(--yellow); color: var(--yellow-ink); }
.side .sep { height: 1px; background: var(--asphalt-3); margin: 10px 8px; }
.side .bottom { margin-top: auto; padding: 12px 10px 0; font-size: 13px; color: #9AA2B1; }
.side .bottom strong { color: #fff; display: block; }
.side .bottom button { background: none; border: 0; color: #C9D0DC; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.main { min-width: 0; }
.top { display: none; }
.content { padding: 28px 32px 64px; max-width: 1280px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.trial { background: var(--yellow-soft); border-bottom: 1px solid #F1DC8A; padding: 9px 32px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trial a { font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 8px 14px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #F7F8FA; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.btn.primary:hover { background: #FFC71F; }
.btn.dark { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: wait; }
.icon-btn { display: inline-flex; vertical-align: middle; border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #EDEFF3; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; display: block; }

/* Cards & KPIs */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.panel > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel .body { padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .v { font-size: 26px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .v.pos { color: var(--green); } .kpi .v.neg { color: var(--red); }

.fleet { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: #EDEFF3; margin: 6px 0 12px; }
.fleet span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list li:last-child { border-bottom: 0; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFC; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFC; }
td.nw { white-space: nowrap; }
td.act { text-align: right; white-space: nowrap; width: 1%; }
.strong { font-weight: 700; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.p-green { background: var(--green-soft); color: var(--green); }
.p-blue { background: var(--cobalt-soft); color: var(--cobalt); }
.p-red { background: var(--red-soft); color: var(--red); }
.p-orange { background: var(--orange-soft); color: var(--orange); }
.p-grey { background: #EDEFF3; color: var(--muted); }
.p-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }

/* Toolbar */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.search { min-width: 220px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { padding: 9px 11px; border: 1px solid #CBD1DB; border-radius: 6px; background: #fff; width: 100%; }
.field textarea { min-height: 72px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.calc { background: var(--cobalt-soft); border-radius: 6px; padding: 10px 14px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.calc b { font-variant-numeric: tabular-nums; }
.calc:empty { display: none; }
.err { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 6px; font-weight: 600; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(20,25,36,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 680px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal > header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .body { padding: 20px 22px; display: grid; gap: 16px; }
.modal > footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--asphalt); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 92vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--red); }

/* Planning */
.plan { overflow-x: auto; }
.plan-grid { display: grid; min-width: 820px; font-size: 13px; }
.plan-grid .ph { padding: 8px 4px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); background: #FAFBFC; font-size: 12px; }
.plan-grid .ph.we { background: #F1F2F5; }
.plan-grid .ph.td { color: var(--ink); font-weight: 800; box-shadow: inset 0 -3px 0 var(--yellow); }
.plan-grid .rh { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; position: sticky; left: 0; background: #fff; z-index: 1; }
.plan-grid .rh small { display: block; color: var(--muted); font-weight: 500; }
.plan-grid .cell { border-bottom: 1px solid var(--line); border-left: 1px solid #F0F1F4; min-height: 52px; }
.plan-grid .cell.we { background: #FAFAFB; }
.plan-grid .blk { margin: 8px 2px; padding: 5px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; align-self: center; }
.blk.rent { background: var(--cobalt); color: #fff; }
.blk.done { background: #9FB3CC; color: #fff; }
.blk.fix { background: var(--red-soft); color: var(--red); border: 1px solid #F1B9B4; }
.blk.mnt { background: var(--orange-soft); color: var(--orange); border: 1px solid #F2C99C; }

/* Bilan */
.bars { display: grid; gap: 10px; }
.barrow { display: grid; grid-template-columns: 1fr 120px; gap: 4px 12px; align-items: center; }
.barrow .track { grid-column: 1 / -1; height: 8px; background: #EDEFF3; border-radius: 4px; overflow: hidden; }
.barrow .track span { display: block; height: 100%; background: var(--cobalt); }
.result-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-line.total { font-weight: 800; font-size: 17px; border-bottom: 0; border-top: 2px solid var(--ink); }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--asphalt) center/cover no-repeat; position: relative; color: #fff; display: flex; align-items: flex-end; padding: 40px; }
.auth .art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,34,48,.25), rgba(28,34,48,.92)); }
.auth .art div { position: relative; max-width: 440px; }
.auth .art h2 { font-size: 30px; margin-bottom: 10px; }
.auth .art p { color: #D5DAE3; }
.auth .formside { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: #fff; }
.auth form:not(.cl-form) { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.auth .brand { color: var(--ink); padding: 0 0 18px; }
.auth h1 { margin-bottom: 4px; }

.price-box { display: flex; align-items: baseline; gap: 8px; }
.price-box strong { font-size: 44px; font-stretch: 118%; }

/* Mobile */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(20,25,36,.5); }
  .top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--asphalt); color: #fff; position: sticky; top: 0; z-index: 30; }
  .top .brand { padding: 0; font-size: 17px; }
  .top button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .top button svg { width: 24px; height: 24px; display: block; }
  .content { padding: 18px 14px 56px; }
  .trial { padding: 9px 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .search { min-width: 0; flex: 1; }
  /* Tables become cards on phones */
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.cards td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; }
  table.cards td.act { justify-content: flex-end; width: 100%; }
  table.cards td.act::before { content: none; }
  table.cards td.num { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Wordmark */
.brand img { border-radius: 0 !important; }
.brand span { text-transform: uppercase; letter-spacing: .03em; font-stretch: 110%; font-weight: 800; color: var(--yellow); font-size: 15px; white-space: nowrap; }
.side .brand { padding-left: 8px; padding-right: 0; gap: 9px; }
.side .brand img { width: 30px; height: 30px; flex: none; }
.brand b { color: #fff; font-weight: 800; }
.auth .brand span { color: #5B6475; }
.auth .brand b { color: var(--ink); }

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--yellow); }

/* Indicateur du mode de stockage */
.mode-bar { display: flex; justify-content: flex-end; padding: 6px 32px 0; font-size: 12.5px; }
.mode-bar a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mode-bar a:hover { color: var(--ink); text-decoration: underline; }
.mode-bar i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-cloud { background: var(--cobalt); } .dot-local { background: var(--orange); }

/* Éditeur de facture */
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.line-editor { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.le-head, .le-row { display: grid; grid-template-columns: minmax(220px, 1fr) 80px 120px 110px 84px 120px 36px; gap: 8px; align-items: start; padding: 10px 12px; }
.le-head { background: #FAFBFC; font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.le-row { border-bottom: 1px solid var(--line); }
.le-row:last-child { border-bottom: 0; }
.le-row input, .le-row select, .le-row textarea { width: 100%; padding: 8px 9px; border: 1px solid #CBD1DB; border-radius: 6px; background: #fff; }
.le-row textarea { resize: vertical; min-height: 40px; }
.le-desc { display: grid; gap: 6px; }
.le-cell span { display: none; }
.le-total { padding-top: 9px; font-weight: 700; }
.inv-bottom { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.inv-bottom textarea { min-height: 110px; }
.inv-totals { background: #FAFBFC; border: 1px solid var(--line); border-radius: 8px; padding: 6px 16px; }

/* Fiche document */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.doc-frame-wrap { overflow: hidden; background: #fff; }
.doc-frame { width: 100%; min-height: 420px; border: 0; display: block; background: #fff; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; min-width: 220px; z-index: 20; display: grid; }
.more-menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.more-menu button:hover { background: #F4F5F7; }
.more-menu button.danger { color: var(--red); }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-grid .btn { justify-content: center; }
.send-grid .btn.primary { grid-column: 1 / -1; padding: 12px; }

/* Réglages : logo */
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 180px; height: 84px; border: 1px dashed #CBD1DB; border-radius: 8px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 160px; max-height: 70px; }
.is-busy { opacity: .6; pointer-events: none; }

/* Choix du stockage */
.choice-wrap { max-width: 820px; margin: 24px auto; text-align: center; }
.choice-wrap h1 { font-size: 28px; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; text-align: left; }
.choice { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; align-content: start; }
.choice:hover, .choice:focus-visible { border-color: var(--yellow); }
.choice b { font-size: 19px; font-stretch: 110%; }
.choice span:last-child { color: var(--muted); }
.choice .pill { justify-self: start; }

@media (max-width: 960px) {
  .mode-bar { padding: 6px 14px 0; }
  .le-head { display: none; }
  .le-row { grid-template-columns: 1fr 1fr; padding: 12px; }
  .le-desc { grid-column: 1 / -1; }
  .le-cell { display: grid; gap: 4px; }
  .le-cell span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .le-total { grid-column: 1 / 2; align-self: center; padding: 0; }
  .le-row .icon-btn { justify-self: end; }
  .inv-bottom, .doc-layout, .choice-grid { grid-template-columns: 1fr; }
  .send-grid { grid-template-columns: 1fr; }
  .head .actions { width: 100%; }
}

[hidden] { display: none !important; }
.modal textarea[name="message"] { min-height: 170px; }

/* Connexion Clerk */
.authbox { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.authflow, .authflow > div[data-step], .authflow form { display: flex; flex-direction: column; gap: 14px; }
.authflow .btn { justify-content: center; padding: 12px; }
.gbtn { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; gap: 10px; }
.gbtn:hover { background: #F6F7F9; }
.authbox .sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.authbox .sep::before, .authbox .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.codein { font-size: 24px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.authwait { padding: 18px 0; }
#clerk-captcha { min-height: 0; }
#clerk-captcha iframe { max-width: 100%; }

/* Onboarding (2 étapes) */
.onb { min-height: 100vh; display: grid; grid-template-columns: 380px 1fr; background: var(--paper); }
.onb-side { background: var(--asphalt); color: #fff; padding: 36px 32px; display: flex; flex-direction: column; gap: 36px; position: relative; overflow: hidden; }
.onb-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(242,183,5,.08); }
.onb-side .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.onb-side .brand span { text-transform: uppercase; letter-spacing: .06em; font-stretch: 125%; font-weight: 800; color: var(--yellow); font-size: 17px; }
.onb-side .brand b { color: #fff; }
.onb-pitch h2 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-stretch: 112%; }
.onb-pitch p { color: #C5CCD8; margin: 0; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.onb-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; color: #9AA3B5; transition: background .2s, color .2s; }
.onb-steps li small { display: block; font-size: 13px; color: inherit; opacity: .85; }
.onb-steps li b { display: block; font-weight: 700; }
.onb-steps .n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.onb-steps li.on { background: var(--asphalt-2); color: #fff; }
.onb-steps li.on .n { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.onb-steps li.done { color: #D5DAE3; }
.onb-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.onb-steps li.done .n::before { content: '✓'; font-size: 15px; }
.onb-who { margin-top: auto; font-size: 13px; color: #9AA3B5; position: relative; z-index: 1; }
.onb-who b { color: #fff; font-weight: 600; word-break: break-all; }
.onb-who a { color: var(--yellow); }
.onb-main { padding: 56px 64px; max-width: 820px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.onb-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; max-width: 260px; }
.onb-progress span { display: block; height: 100%; width: 50%; background: var(--yellow); border-radius: 99px; transition: width .35s ease; }
.onb-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.onb-main form { display: flex; flex-direction: column; gap: 18px; animation: onbIn .3s ease; }
@keyframes onbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.onb-main h1 { font-size: 32px; line-height: 1.15; margin: 0; font-stretch: 112%; }
.onb-main .lead { margin: -6px 0 6px; font-size: 16px; max-width: 58ch; }
.onb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.onb-grid .full { grid-column: 1 / -1; }
.onb-grid input { width: 100%; font-size: 16px; padding: 12px 14px; }
.onb-terms { padding: 14px 16px; background: var(--bg); border-radius: 10px; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.onb-actions .btn.big { padding: 14px 26px; font-size: 16px; }
.btn.ghost-dark { background: transparent; border: 0; color: var(--muted); font-weight: 600; }
.btn.ghost-dark:hover { color: var(--ink); background: var(--bg); }
.onb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.onb-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.onb-card:hover { border-color: #C9CED8; transform: translateY(-1px); }
.onb-card input { position: absolute; opacity: 0; pointer-events: none; }
.onb-card.sel { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.onb-card:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.onb-card .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--asphalt); }
.onb-card.sel .ic { background: var(--yellow-soft); color: var(--yellow-ink); }
.onb-card .pill { align-self: flex-start; }
.onb-card b { font-size: 18px; font-stretch: 110%; }
.onb-card .d { color: var(--muted); font-size: 14.5px; }
.onb-card ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.onb-card li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.onb-card .tick { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.onb-card.sel .tick { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.onb-backup { padding: 14px 16px; background: var(--yellow-soft); border-radius: 10px; }
@media (max-width: 900px) {
  .onb { grid-template-columns: 1fr; }
  .onb-side { padding: 18px 16px; gap: 14px; }
  .onb-side::after, .onb-pitch p, .onb-steps li small { display: none; }
  .onb-pitch h2 { font-size: 19px; margin: 0; }
  .onb-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .onb-steps li { padding: 8px 10px; gap: 10px; font-size: 14px; }
  .onb-steps .n { width: 26px; height: 26px; font-size: 12px; }
  .onb-who { margin: 0; }
  .onb-main { padding: 22px 16px 32px; }
  .onb-main h1 { font-size: 25px; }
  .onb-grid, .onb-cards { grid-template-columns: 1fr; }
  .onb-actions { flex-direction: column-reverse; align-items: stretch; }
  .onb-actions .btn.big { justify-content: center; }
}

/* Liste simple des factures / devis */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; align-items: center; gap: 14px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: #FAFBFC; }
.doc-row:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.doc-row .dot { width: 10px; height: 10px; border-radius: 50%; background: #C9CED8; }
.doc-row .who { min-width: 0; display: grid; gap: 2px; }
.doc-row .who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row .who small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row .amt { display: grid; justify-items: end; gap: 4px; }
.doc-row .amt b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-row .amt .pill { font-size: 12px; }
.doc-row .row-more .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.doc-row .row-more .icon-btn:hover, .doc-row .row-more[open] .icon-btn { background: var(--bg); color: var(--ink); }
.doc-row .more-menu { min-width: 170px; }
.st-payee .dot, .st-accepte .dot, .st-converti .dot { background: var(--green); }
.st-payee .amt b, .st-accepte .amt b { color: var(--green); }
.st-payee { background: linear-gradient(90deg, var(--green-soft) 0, transparent 120px); }
.st-emise .dot, .st-envoye .dot { background: var(--cobalt); }
.st-partielle .dot { background: var(--orange); }
.st-en_retard .dot, .st-refuse .dot { background: var(--red); }
.st-en_retard .amt b { color: var(--red); }
.st-annulee .who b, .st-annulee .amt b { color: var(--muted); text-decoration: line-through; }
@media (max-width: 600px) {
  .doc-row { gap: 10px; padding: 12px 6px 12px 14px; grid-template-columns: 8px minmax(0, 1fr) auto 36px; }
  .doc-row .dot { width: 8px; height: 8px; }
}
.table-wrap:has(> .doc-list) { overflow: visible; }
.panel:has(.doc-list) { overflow: visible; }

/* Onglets défilants sur mobile */
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; flex: none; }

/* Facturation › Réglages */
.set-sections { display: grid; gap: 0; padding: 0 !important; }
.set-sections section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.set-h h3 { margin: 0 0 6px; font-size: 16px; }
.set-h p { margin: 0; }
.set-warn { margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); font-size: 13px; font-weight: 600; }
.set-save { padding: 18px 24px; display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  .set-sections section { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; }
  .set-save { padding: 16px; }
  .set-save .btn { width: 100%; justify-content: center; }
}

/* ================= Mobile : listes simples et mises en page compactes ================= */
.m-list { display: none; list-style: none; margin: 0; padding: 0; }
.m-row, .doc-row { -webkit-tap-highlight-color: transparent; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 10px; padding: 12px 6px 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.m-row:last-child { border-bottom: 0; }
.m-row:active { background: #FAFBFC; }
.m-row .who { min-width: 0; display: grid; gap: 2px; }
.m-row .who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .who small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .who small.ex { color: var(--orange); }
.m-row .amt { display: grid; justify-items: end; gap: 4px; }
.m-row .amt b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14.5px; }
.m-row .amt .pill { font-size: 12px; white-space: nowrap; }
.m-row .row-more .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.m-row .more-menu { min-width: 180px; }
.neg { color: var(--red); }
.table-wrap:has(> .m-list) { overflow: visible; }
.panel:has(.m-list) { overflow: visible; }
.nw-amt { white-space: nowrap; }

@media (max-width: 760px) {
  /* listes */
  .m-list { display: block; }
  .table-wrap:has(> .m-list) > table.cards { display: none; }
  /* chiffres clés : une ligne par montant */
  .kpi { padding: 14px 14px; }
  .kpi .v { font-size: 20px; white-space: nowrap; letter-spacing: -.01em; }
  .kpi .l { font-size: 12.5px; line-height: 1.35; }
  /* en-têtes de page et de panneau */
  .head { gap: 12px; margin-bottom: 16px; }
  .head .actions { width: 100%; }
  .head .actions .btn { flex: 1; justify-content: center; }
  .panel > header { flex-wrap: wrap; padding: 12px 14px; }
  .panel > header > div:first-child { flex: 1 1 100%; min-width: 0; }
  .panel > header h2 { font-size: 17px; }
  .panel > header > .btn, .panel > header > div > .btn:last-child { flex: 1 1 100%; justify-content: center; }
  /* barre de recherche / filtres */
  .toolbar { width: 100%; gap: 8px; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar select { flex: 1 1 0; min-width: 0; }
  .toolbar label { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; white-space: nowrap; }
  .toolbar label input { min-width: 0; flex: 1; }
  .panel > header > [data-count], .panel > header > [data-n] { width: 100%; font-size: 12.5px; }
  /* tableaux restants : lignes compactes « libellé valeur » */
  table.cards tr { display: flex; flex-wrap: wrap; gap: 3px 14px; padding: 12px 14px; position: relative; }
  table.cards td { display: inline-flex; width: auto; gap: 5px; padding: 0; font-size: 13.5px; align-items: baseline; text-align: left; justify-content: flex-start; }
  table.cards td::before { font-size: 12px; }
  table.cards td:first-child { width: 100%; font-size: 15px; font-weight: 700; padding-right: 76px; }
  table.cards td:first-child::before { content: none; }
  table.cards td.act { position: absolute; top: 6px; right: 6px; width: auto; }
  table.cards td.act .icon-btn { width: 34px; height: 34px; }
  /* montants qui ne se coupent pas */
  .num, td.num, .money { white-space: nowrap; }
}
@media (max-width: 760px) {
  .result-line > :last-child, .result-line .num { white-space: nowrap; flex: none; }
  .result-line > :first-child { min-width: 0; }
  .head .actions input[type=date], .head .actions select { flex: 1 1 40%; min-width: 0; }
}

/* Réglages en lecture / édition */
.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv-text { margin: 0; white-space: normal; }
.set-view { display: grid; gap: 12px; align-content: start; }
.set-form { display: grid; gap: 14px; }
.set-btns { display: flex; gap: 8px; justify-content: flex-end; }
.set-view .set-btns { justify-content: flex-start; }
.set-sections section.editing { background: #FFFDF5; box-shadow: inset 3px 0 0 var(--yellow); }
.set-sections .logo-preview { max-width: 240px; }
@media (max-width: 760px) {
  .kv > div { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .set-btns .btn { flex: 1; justify-content: center; }
}
.kv dd .muted { font-weight: 400; }
.m-row.no-menu { grid-template-columns: minmax(0, 1fr) auto; padding-right: 14px; }
.m-row .amt small { font-size: 12px; }

/* Hauteur réelle de l'écran sur mobile (barres du navigateur incluses) : le bas du menu reste accessible */
.side { height: 100vh; height: 100dvh; overscroll-behavior: contain; }
@media (max-width: 960px) {
  .side { top: 0; bottom: 0; height: auto; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .side.open { box-shadow: 0 0 0 100vmax rgba(20,25,36,.5); }
  body:has(.side.open) { overflow: hidden; }
}
.shell, .auth, .onb { min-height: 100vh; min-height: 100dvh; }

/* ================= Attachements, signature, opérateur, vitrine ================= */
.sigpad { width: 100%; height: 200px; border: 1.5px dashed #9AA3B5; border-radius: 10px; background: #fff; touch-action: none; display: block; }
.pad-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sign-sum { display: grid; gap: 2px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.sign-sum span { color: var(--muted); font-size: 14px; }
.sign-sum .big { font-size: 22px; font-stretch: 110%; }
.warn-box { background: var(--red-soft); color: var(--red); padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 14px; }
.more-menu a.mi { display: block; padding: 9px 12px; border-radius: 6px; font-weight: 600; text-decoration: none; color: inherit; }
.more-menu a.mi:hover { background: #F4F5F7; }
.lead-row .who small { white-space: normal; }

.op-shell { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.op-top { background: var(--asphalt); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
.op-top .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.op-top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.op-main { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.op-main h1 { font-size: 24px; margin: 4px 0 10px; }
.op-h { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.op-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; margin-bottom: 12px; }
.op-big { padding: 16px; font-size: 17px; justify-content: center; }
.op-btns { display: flex; gap: 8px; } .op-btns .btn { flex: 1; justify-content: center; padding: 12px; }
.op-done { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.op-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.onb-cards.three { grid-template-columns: repeat(3, 1fr); }
.onb-card .ic svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .onb-cards.three { grid-template-columns: 1fr; } }

.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--asphalt); flex: none; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
.slug { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.slug span { padding: 0 8px 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.slug input { border: 0 !important; flex: 1; min-width: 0; padding-left: 0 !important; }
.sc-list li { gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .slug span { font-size: 12.5px; padding-left: 10px; } }

.hint-line { display: flex; align-items: center; gap: 5px; white-space: nowrap; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.hint-line a { font-weight: 600; }
.hint-line button { margin-left: 2px; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; }

.dash-co { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.photo-field .ph-row { display: flex; gap: 14px; align-items: center; }
.photo-field .ph-prev { width: 96px; height: 72px; border-radius: 8px; background: #EDEFF3; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.photo-field .ph-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-field .ph-prev svg { width: 30px; height: 30px; }

.team-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Ce que ChantierFlow a rapporté ce mois */
.gains { background: var(--ink, #1C2230); color: #fff; border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; }
.gains h2 { margin: 0 0 12px; font-size: 16px; color: #fff; font-weight: 700; }
.gains-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gains .g { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.07); }
.gains .g b { font-size: 24px; font-weight: 800; color: #7BD69A; font-variant-numeric: tabular-nums; }
.gains .g.todo b { color: #F2B705; }
.gains .g span { font-weight: 600; font-size: 14px; }
.gains .g small { color: #AEB6C4; font-size: 12.5px; }
@media (max-width: 760px) { .gains-grid { grid-template-columns: 1fr; } .gains .g { grid-template-columns: 1fr; } }

/* Relance */
.rl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-sum > div { background: var(--bg, #F4F5F7); border-radius: 10px; padding: 10px 12px; display: grid; }
.rl-sum b { font-size: 20px; }
.rl-sum .neg { color: var(--red); }
.rl-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn.wa-btn { background: #25D366; border-color: #25D366; color: #06371A; font-weight: 700; }
.btn.wa-btn:hover { background: #2EE476; }
#rl-msg { font: inherit; font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .gains { padding: 14px; }
  .gains h2 { font-size: 15px; }
  .gains-grid { gap: 8px; }
  .gains .g { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; }
  .gains .g b { font-size: 19px; grid-row: span 2; min-width: 96px; }
  .gains .g small { font-size: 12px; }
}

/* Formules */
.period-sw { display: inline-flex; background: #E9ECF1; border-radius: 10px; padding: 4px; margin: 0 0 16px; }
.period-sw button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.period-sw button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; }
.plan.hl { border: 2px solid var(--yellow); }
.plan.cur { box-shadow: 0 0 0 2px var(--green) inset; }
.plan-flag { position: absolute; top: -11px; left: 18px; background: var(--yellow); color: var(--yellow-ink, #3A2C00); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.plan h2 { margin: 0; font-size: 20px; }
.plan-tag { margin: 0; min-height: 2.6em; }
.plan-amt { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; } .plan-amt b { font-size: 30px; font-weight: 800; } .plan-amt span { color: var(--muted); font-size: 14px; }
.plan-save { margin: 0; color: var(--green); font-weight: 600; }
.plan-list { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.plan-list li { padding-left: 22px; position: relative; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/9px no-repeat; }
.btn.block { width: 100%; }

/* Modules non inclus */
.side a.nav.locked { opacity: .55; }
.side a.nav .lk { margin-left: auto; display: inline-flex; } .side a.nav .lk svg { width: 14px; height: 14px; }
.upsell .body { text-align: center; padding: 48px 20px; max-width: 560px; margin: 0 auto; }
.upsell h1 { margin: 10px 0 8px; }
.up-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow-soft, #FFF4CC); color: var(--ink); }
.up-ic svg { width: 26px; height: 26px; }
.plans { margin-top: 12px; }

/* Signature « Maroc » sous le nom */
.brand .wm-ma { display: block; font-size: max(9px, .5em); font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #C5CCD8; line-height: 1; margin-top: 3px; font-stretch: 100%; }
.auth .brand .wm-ma { color: var(--muted, #5B6475); }
@media (max-width: 760px) {
  .gains-grid { grid-template-columns: 1fr 1fr; }
  .gains .g { grid-template-columns: 1fr; align-items: start; }
  .gains .g b { grid-row: auto; min-width: 0; font-size: 20px; }
  .dash-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  .dash-actions .btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) { .dash-actions { grid-template-columns: 1fr; } .dash-actions .btn.primary { order: -1; } }
/* Retour au tableau de bord, toujours visible hors de l'accueil */
.mode-bar { gap: 12px; }
.mode-bar a.home-link { margin-right: auto; color: var(--ink); font-weight: 700; font-size: 14px; gap: 4px; padding: 6px 10px 6px 4px; border-radius: 8px; }
.mode-bar a.home-link:hover { background: #E9ECF1; text-decoration: none; }
.mode-bar a.home-link[hidden] { display: none; }
@media (max-width: 860px) { .mode-bar { padding-left: 16px; padding-right: 16px; align-items: center; } }
.mode-bar a { white-space: nowrap; }
.mode-bar .ms { display: none; }
@media (max-width: 600px) { .mode-bar .ml { display: none; } .mode-bar .ms { display: inline; } }
.form-grid > .field.pending-hide { display: none !important; }
.pre-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pre-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pre-list li.done { background: var(--green-soft); border-color: transparent; }
.pre-list .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C5CCD8; display: grid; place-items: center; font-weight: 800; color: #fff; }
.pre-list li.done .ck { background: var(--green); border-color: var(--green); }
.pre-list div { flex: 1; display: grid; } .pre-list small { color: var(--muted); }
.demo-bar { background: #1B2230; color: #fff; padding: 10px 32px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-bar b { color: var(--yellow); }
.demo-bar .btn { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
@media (max-width: 720px) { .demo-bar { padding: 10px 16px; } .demo-bar .btn { width: 100%; justify-content: center; } }
.auth-demo { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.auth-demo a { font-weight: 700; }
