/* Tokens repris de la V0 (packages/ui/index.css) */
:root {
  color-scheme: light;
  --background: #ffffff; --card: #ffffff; --muted: #f1f1ee; --accent: #faf9f7; --inset: rgb(22 24 29 / 5%);
  --backdrop: rgb(28 25 23 / 40%);
  --fg: #2a2f3a; --fg-strong: #16181d; --fg-subtle: #6f7480; --fg-muted: #565a66;
  --border: #dbd8cf; --border-subtle: #e7e5de; --border-strong: #c1bdb2; --border-input: #918d82;
  --primary: #3a4a66; --primary-hover: #46587a; --primary-subtle: rgb(58 74 102 / 7%); --primary-border: rgb(58 74 102 / 20%);
  --critical: #b02f28;
  --conform: #0f6e5c; --conform-fg: #0c5c4d; --conform-bg: #d9f9e6; --conform-border: #a8e8c6;
  --uncertain: #a96c05; --uncertain-fg: #8b5904; --uncertain-bg: #fbf2cb; --uncertain-border: #eddca0;
  --risk: #c0392f; --risk-fg: #a32e26; --risk-bg: #fde9e9; --risk-border: #f5c9c6;
  --risk-1: #efb3a3; --risk-2: #de7a5f; --risk-3: #c0392f;
  --neutral: #6b7280; --neutral-fg: #5a606b; --neutral-bg: #f6f7f9; --neutral-border: #e1e3e7;
  --shadow-sm: 0 1px 1px rgb(0 0 0 / 12%), 0 2px 5px rgb(103 110 118 / 8%);
  --shadow-md: 0 2px 5px rgb(103 110 118 / 8%), 0 6px 20px -6px rgb(22 24 29 / 14%);
  --shadow-lg: 0 2px 5px rgb(103 110 118 / 8%), 0 20px 48px -12px rgb(22 24 29 / 20%);
  --new: #7c3aed;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; color: var(--fg); background: var(--background); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s3 { width: 12px; height: 12px; } svg.i.s35 { width: 14px; height: 14px; } svg.i.s5 { width: 20px; height: 20px; } svg.i.s6 { width: 24px; height: 24px; }
.shell { display: flex; flex-direction: column; height: 100dvh; }
main { position: relative; flex: 1; min-height: 0; overflow-y: auto; }
.page { padding: 24px 48px; }

/* Texte */
.xs { font-size: 12px; line-height: 1.35; } .xxs { font-size: 10.5px; line-height: 1.35; } .sm { font-size: 13.5px; line-height: 1.45; }
.lg { font-size: 17px; line-height: 1.45; } .xl { font-size: 21px; line-height: 1.32; } .x3 { font-size: 34px; line-height: 1.18; letter-spacing: -.014em; }
.strong { color: var(--fg-strong); } .subtle { color: var(--fg-subtle); } .muted { color: var(--fg-muted); }
.med { font-weight: 500; } .semi { font-weight: 600; } .bold { font-weight: 700; }
.eyebrow { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-subtle); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; }
.g1 { gap: 4px; } .g15 { gap: 6px; } .g2 { gap: 8px; } .g3 { gap: 12px; } .g4 { gap: 16px; } .g5 { gap: 20px; } .g6 { gap: 24px; } .g8 { gap: 32px; }
.ml-auto { margin-left: auto; } .flex1 { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; }
.t-conform { color: var(--conform-fg); } .t-uncertain { color: var(--uncertain-fg); } .t-risk { color: var(--risk-fg); } .t-neutral { color: var(--neutral-fg); } .t-critical { color: var(--critical); }

/* Navbar */
.nav { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding: 12px 48px; flex: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg-muted); min-width: 0; }
.crumbs .sep { color: var(--fg-subtle); }
.crumb { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; color: var(--fg-strong); border-radius: 8px; max-width: 288px; white-space: nowrap; }
.crumb.company { font-weight: 600; padding: 0; }
.crumb.swr:hover { background: var(--inset); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 6px; border: 1px solid transparent; padding: 2px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.35; }
.badge.outline { border-color: var(--border); color: var(--fg); }
.badge.secondary { background: var(--muted); color: var(--fg-muted); }
.badge.primary { background: var(--primary); color: #fff; }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral-fg); border-color: var(--neutral-border); }
.select { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 28px; border-radius: 8px; border: 1px solid var(--border-input); background: var(--card); padding: 0 10px; font-size: 13.5px; color: var(--fg-strong); }
.select svg { color: var(--fg-subtle); }
select.select { appearance: none; padding-right: 28px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--border-subtle); background: var(--accent); font-size: 10.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color 140ms; }
.btn.primary { background: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-hover); }
.btn.outline { border-color: var(--border-input); background: var(--card); } .btn.outline:hover { background: var(--accent); color: var(--fg-strong); }
.btn.ghost { color: var(--fg-muted); } .btn.ghost:hover { background: var(--inset); color: var(--fg-strong); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; gap: 4px; } .btn.sm svg { width: 14px; height: 14px; }
.btn.lg { height: 38px; padding: 0 20px; font-size: 15px; gap: 8px; }
.btn.icon { width: 28px; height: 28px; padding: 0; }
.btn.link { padding: 0; height: auto; color: var(--fg-strong); font-size: 12px; gap: 4px; }
.btn.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn:disabled { opacity: .5; cursor: default; }

/* Cartes */
.card { display: flex; flex-direction: column; gap: 12px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--card); padding: 16px 0; font-size: 13.5px; }
.card.flush { padding: 0; gap: 0; }
.card-h { display: grid; gap: 4px; padding: 0 16px; }
.card-h.bb { border-bottom: 1px solid var(--border-subtle); padding-bottom: 16px; }
.card-t { font-size: 15px; font-weight: 500; color: var(--fg-strong); margin: 0; }
.card-c { padding: 0 16px; }
.card-f { display: flex; align-items: center; padding: 16px 16px 0; border-top: 1px solid var(--border-subtle); margin-top: auto; }
.hov { transition: border-color 140ms, box-shadow 140ms; cursor: pointer; }
.hov:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.box { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px; }

/* Tabs */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--border); color: var(--fg-muted); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; font-weight: 500; }
.tab:hover, .tab.on { color: var(--fg-strong); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }

/* Statuts : pastille + texte, jamais de fond */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.big { font-size: 13.5px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.sq { width: 10px; height: 10px; border-radius: 2px; flex: none; display: inline-block; }
.gauge { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; flex: none; }
.gauge i { width: 3px; border-radius: 1px; background: var(--border); }
.gauge i:nth-child(1) { height: 4px; } .gauge i:nth-child(2) { height: 7px; } .gauge i:nth-child(3) { height: 10px; }
.gauge i.on { background: var(--risk-3); }
.crit { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--critical); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.crit svg { width: 12px; height: 12px; }
.crit.soft { background: var(--risk-bg); border: 1px solid var(--risk-border); color: var(--risk-fg); font-weight: 600; height: 24px; border-radius: 8px; }
.modified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-subtle); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { padding: 8px 16px; text-align: left; font-size: 12px; font-weight: 400; color: var(--fg-subtle); border-bottom: 1px solid var(--border-subtle); }
td { padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--accent); }

/* Formulaires */
.input { display: flex; align-items: center; gap: 8px; height: 32px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--card); padding: 0 10px; font-size: 13.5px; }
.input input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 13.5px; color: var(--fg-strong); }
.input input::placeholder { color: var(--fg-subtle); }
.input svg { color: var(--fg-subtle); }
.cb { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; cursor: pointer; }
.cb input { width: 16px; height: 16px; margin: 0 8px 0 0; accent-color: var(--primary); }
.cb .n { font-size: 12px; color: var(--fg-subtle); }
.toggle { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-size: 12px; color: var(--fg-muted); }
.toggle.on { border-color: var(--risk); background: var(--risk-bg); color: var(--risk-fg); font-weight: 500; }
.toggle.on.unc { border-color: var(--uncertain); background: var(--uncertain-bg); color: var(--uncertain-fg); }
textarea.ta { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--border-input); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; color: var(--fg-strong); background: var(--card); outline: 0; }
textarea.ta:focus, .input:focus-within { border-color: var(--primary-border); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(58 74 102 / 45%); }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--card); padding: 48px 32px; text-align: center; }
.empty .ic { margin-bottom: 16px; color: var(--fg-subtle); }

/* Score ring */
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ring .v small { font-size: .5em; font-weight: 500; margin-left: 1px; }

/* Trend */
.trend { position: relative; height: 56px; width: 100%; }
.trend svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend .pt { position: absolute; width: 8px; height: 8px; border-radius: 99px; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.trend .pt.big { width: 12px; height: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgb(0 0 0 / 8%); }

/* Timeline */
.tl { position: relative; height: 230px; margin: 0 32px; }
.tl .m { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-subtle); }
.tl .today { position: absolute; top: 26px; transform: translateX(-50%); background: var(--primary); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 9px; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.tl .track { position: absolute; top: 72px; left: 0; right: 0; border-top: 1px dashed var(--border-strong); }
.tl .done { position: absolute; top: 72px; left: 0; height: 1px; background: var(--primary); }
.tl .ms { position: absolute; top: 68px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 168px; }
.tl .mk { width: 9px; height: 9px; border-radius: 99px; background: var(--primary); }
.tl .mk.wait { background: var(--card); border: 1px solid var(--border-strong); }
.tl .ms.sel .mk { width: 12px; height: 12px; margin-top: -1.5px; box-shadow: 0 0 0 2px rgb(58 74 102 / 45%); }
.tl .stem { height: 20px; border-left: 1px solid var(--border-strong); }
.tl .ms.wait .stem { border-left-style: dashed; }
.tl .mc { width: 100%; border: 1px solid var(--border-subtle); background: var(--card); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 8px 12px; cursor: pointer; text-align: left; }
.tl .ms.wait .mc { border-style: dashed; border-color: var(--border-strong); }
.tl .ms.sel { width: 208px; z-index: 2; }
.tl .ms.sel .mc { border: 2px solid var(--primary); border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 16px; }

/* Grille vue d'ensemble par track */
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(6, 3.6rem) 5rem 2rem; align-items: center; gap: 0 8px; }
.ct-cell { text-align: center; font-size: 10.5px; color: var(--fg-subtle); }
.ct-cell b { font-size: 13.5px; font-weight: 600; margin-right: 3px; }

/* Rapport : colonnes */
.split { display: flex; height: 100%; }
.filters { width: 320px; flex: none; overflow-y: auto; padding: 12px 32px 24px 48px; border-right: 1px solid var(--border-subtle); }
.filters fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.filters legend { padding: 0; }
.filters ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.results { flex: 1; min-width: 0; overflow-y: auto; padding: 12px 48px 24px 32px; display: flex; flex-direction: column; gap: 12px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px; background: var(--card); cursor: pointer; transition: background-color 140ms; }
.rcard:hover { background: rgb(241 241 238 / 50%); }
.rcard.critical { border-color: var(--risk-border); }
.rcard.excluded { opacity: .6; }
.otag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-muted); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0 6px; height: 20px; white-space: nowrap; }
.otag svg { width: 12px; height: 12px; color: var(--fg-subtle); }

/* Documents */
.docs { display: flex; height: 100%; min-height: 520px; }
.tree { width: 320px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--border-subtle); }
.tree-l { flex: 1; overflow: auto; padding: 0 12px 12px; }
.trow { display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 8px; padding: 6px 8px; font-size: 13.5px; }
.trow:hover { background: rgb(241 241 238 / 50%); }
.trow.on { background: rgb(241 241 238 / 70%); font-weight: 500; color: var(--fg-strong); }
.trow svg { color: var(--fg-subtle); }
.viewer { position: relative; flex: 1; min-width: 320px; background: var(--muted); overflow: auto; }
.page-img { position: relative; margin: 24px auto; width: 92%; background: #fff; box-shadow: var(--shadow-sm); }
.page-img img { display: block; width: 100%; }
.shape { position: absolute; border: 2px solid currentColor; background: color-mix(in srgb, currentColor 15%, transparent); cursor: pointer; }
.shape.sel { border-width: 4px; background: color-mix(in srgb, currentColor 35%, transparent); }
.zoom { position: sticky; bottom: 16px; left: 50%; transform: translateX(-50%); width: fit-content; display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); padding: 2px; box-shadow: var(--shadow-sm); font-size: 12px; z-index: 3; }
.rpanel { width: 384px; flex: none; border-left: 1px solid var(--border-subtle); overflow-y: auto; }
.dri { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px; background: var(--card); }
.dri:hover { background: rgb(241 241 238 / 50%); }
.eval-card { border: 1px solid; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Dialog */
.overlay { position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(2px); z-index: 60; }
.dialog { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1240px, calc(100vw - 48px)); height: 85vh; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.dialog.small { width: 460px; height: auto; }
.dlg-h { border-bottom: 1px solid var(--border-subtle); padding: 16px 48px 16px 20px; display: flex; flex-direction: column; gap: 8px; position: relative; flex: none; }
.dlg-x { position: absolute; top: 12px; right: 12px; }
.dlg-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 18rem minmax(0, 1fr) 22rem; }
.dlg-b > div { overflow-y: auto; padding: 20px; }
.dlg-b > div + div { border-left: 1px solid var(--border-subtle); }
.evl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px; }
.evl.on { border-color: var(--primary-border); background: rgb(241 241 238 / 40%); }
.obs-g { border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.obs-g h4 { margin: 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-subtle); background: rgb(241 241 238 / 40%); padding: 8px 12px; font-size: 13.5px; font-weight: 500; color: var(--fg-strong); }
.obs-r { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; font-size: 13.5px; }
.obs-r + .obs-r { border-top: 1px solid var(--border-subtle); }
.obs-r:hover { background: rgb(241 241 238 / 50%); }
.num { width: 20px; height: 20px; border-radius: 99px; background: var(--muted); font-size: 12px; font-weight: 500; color: var(--fg-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.num.on { background: var(--primary); color: #fff; }

/* Historique (BOSS-1590 / 1591 / 1580) */
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { position: relative; display: flex; gap: 10px; padding-bottom: 16px; }
.hist li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--border-subtle); }
.hist li:last-child::before { display: none; }
.hist .hic { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--border-subtle); background: var(--card); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--fg-subtle); font-size: 10.5px; font-weight: 500; }
.hist .hic.fr { background: var(--primary); color: #fff; border-color: var(--primary); }
.hist .bubble { margin-top: 6px; font-size: 13.5px; color: var(--fg); white-space: pre-wrap; }
.composer { border-top: 1px solid var(--border-subtle); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* Popover partage */
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 380px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 208px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-lg); padding: 4px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: 6px; padding: 8px 10px; font-size: 13.5px; }
.menu button:hover { background: var(--accent); color: var(--fg-strong); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg-strong); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; z-index: 80; box-shadow: var(--shadow-md); }

/* Repères des nouveautés de la vague */
body.show-new .nv { outline: 1.5px dashed var(--new); outline-offset: 3px; border-radius: 6px; position: relative; }
body.show-new .card.nv, body.show-new .nv.flush { outline-offset: -2px; }
body.show-new .card.nv[data-t]::after, body.show-new .nv.flush[data-t]::after, body.show-new .dlg-b .nv[data-t]::after { top: 4px; right: 4px; }
body.show-new .nv[data-t]::after { content: attr(data-t); position: absolute; top: -15px; right: -6px; background: var(--new); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 4px; letter-spacing: .02em; white-space: nowrap; z-index: 5; pointer-events: none; }
.newctl { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px 6px 8px; box-shadow: var(--shadow-md); font-size: 12px; color: var(--fg-strong); }
.sw { width: 30px; height: 18px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background-color 140ms; flex: none; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 99px; background: #fff; transition: transform 140ms; }
.sw.on { background: var(--new); } .sw.on::after { transform: translateX(12px); }

/* Vue partagée */
.pubnav { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding: 12px 48px; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; color: var(--fg-strong); }
.logo i { width: 18px; height: 18px; display: inline-block; background: #F02C2C; clip-path: polygon(0 0, 30% 0, 50% 35%, 70% 0, 100% 0, 65% 50%, 100% 100%, 70% 100%, 50% 65%, 30% 100%, 0 100%, 35% 50%); }
body.show-new .tagl.nv[data-t]::after { top: 50%; right: calc(100% + 8px); transform: translateY(-50%); }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--muted); }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--fg-muted); }
.seg button.on { background: var(--card); color: var(--fg-strong); box-shadow: var(--shadow-sm); }
.racts { display: inline-flex; align-items: center; gap: 2px; }
.ibtn { display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; justify-content: center; padding: 0 6px; border-radius: 6px; color: var(--fg-subtle); font-size: 12px; }
.ibtn:hover, .ibtn.on { background: var(--inset); color: var(--fg-strong); }
.rpop { position: fixed; z-index: 70; width: 360px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; cursor: default; }
.inline-form { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 14px; background: var(--accent); }
.radio { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.radio input { margin: 0; accent-color: var(--primary); }
