/* Atelier — interface. Layout : barre du haut (marque, navigation, présence, compte) ;
   pages en colonne centrale ; tableau de production pleine largeur à défilement horizontal ;
   fiche vidéo et fiche contact en deux colonnes (contenu / répartition et échanges). */

:root {
  --bg: #f3f1ec; --surface: #ffffff; --sunk: #e9e6df; --raised: #fbfaf7;
  --ink: #1c1e1b; --muted: #676b63; --faint: #8f9389; --line: #dbd7cd; --line-strong: #c3beb1;
  --accent: #2446c7; --accent-ink: #ffffff; --accent-soft: #e2e7fa;
  --hist: #945010; --hist-bg: #f5e4cf; --eco: #0a6b60; --eco-bg: #d3ece6;
  --late: #b3311b; --late-bg: #f9e1da; --ok: #2a7634; --ok-bg: #dcefdc; --warn: #8c6200; --warn-bg: #f6ebcc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 30, 20, .06), 0 6px 18px rgba(28, 30, 20, .05);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131513; --surface: #1c1f1c; --sunk: #171a17; --raised: #222622;
    --ink: #e8ebe6; --muted: #a0a69c; --faint: #7d8379; --line: #2e332e; --line-strong: #434a43;
    --accent: #8ea2ff; --accent-ink: #0d1433; --accent-soft: #232c52;
    --hist: #e7a75c; --hist-bg: #3b2a15; --eco: #5fd0c1; --eco-bg: #12352f;
    --late: #ff8466; --late-bg: #3d1d16; --ok: #7fd087; --ok-bg: #19331c; --warn: #f0c35a; --warn-bg: #3a2f12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.part { display: contents; }
pre { white-space: pre-wrap; background: var(--sunk); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; padding: 10px 16px; max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-sub { font-weight: 500; font-size: .85rem; color: var(--muted); padding-left: 9px; border-left: 1px solid var(--line); }
@media (max-width: 420px) { .brand-sub { display: none; } }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 .8rem var(--mono); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.me-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 999px; }
.me-btn:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; }
  .live span { display: none; }
}

/* ---------- mise en page ---------- */
main { padding: 20px 16px 60px; max-width: 1600px; margin: 0 auto; }
.page { display: grid; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-head h1 { font-size: 1.65rem; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar input[type=search] { width: min(280px, 100%); }
.toolbar select { width: auto; }
.toolbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

/* ---------- éléments ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .9rem; padding: 7px 13px;
  border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); filter: none; }
.btn.quiet { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 8px; }
.btn.quiet:hover { color: var(--ink); background: var(--sunk); filter: none; }
.btn.danger { background: transparent; color: var(--late); border-color: var(--line); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { padding: 4px 9px; font-size: .82rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .86rem;
  padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tag { display: inline-block; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.tag.short { background: var(--hist-bg); color: var(--hist); }
.tag.long { background: var(--eco-bg); color: var(--eco); }
.code { font: 600 .74rem var(--mono); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 500 .74rem var(--mono); color: var(--muted); white-space: nowrap; }
.badge.warn { color: var(--late); }
.badge.good { color: var(--ok); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.s-a_contacter { background: var(--sunk); color: var(--muted); }
.pill.s-contacte { background: var(--accent-soft); color: var(--accent); }
.pill.s-discussion { background: var(--warn-bg); color: var(--warn); }
.pill.s-accord { background: var(--ok-bg); color: var(--ok); }
.pill.s-termine { background: var(--ink); color: var(--bg); }
.pill.s-sans_suite { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
.due { font: 500 .76rem var(--mono); color: var(--muted); white-space: nowrap; }
.due.late { color: var(--late); font-weight: 600; }

.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .66rem var(--sans); color: #fff; background: var(--faint); flex: none; }
.av.lg { width: 30px; height: 30px; font-size: .78rem; }
.av.sm { width: 18px; height: 18px; font-size: .55rem; }
.av.none { background: transparent; color: var(--faint); border: 1.5px dashed var(--line-strong); }
.who { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); min-width: 0; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card > h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.card > h2 .count { font-family: var(--mono); letter-spacing: 0; }
.empty { color: var(--muted); font-size: .9rem; padding: 6px 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat.alert b { color: var(--late); }

/* listes cliquables (Aujourd'hui) */
.items { list-style: none; margin: 0; padding: 0; display: grid; }
.items li + li { border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 9px 2px; text-decoration: none; color: inherit; }
.item:hover .item-title { color: var(--accent); }
.item-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.item-side { display: grid; justify-items: end; align-content: start; gap: 2px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: .9rem; }
.feed .when { display: block; font: 500 .72rem var(--mono); color: var(--faint); }
.feed a { color: var(--ink); font-weight: 600; text-decoration: none; }
.feed a:hover { color: var(--accent); }

/* ---------- tableau de production ---------- */
.board-wrap { overflow-x: auto; margin-inline: -16px; padding: 2px 16px 12px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: 10px; min-width: min-content; }
.col { background: var(--sunk); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.col.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.col-head { display: flex; align-items: baseline; gap: 7px; padding: 4px 4px 2px; }
.col-head h3 { font-size: .9rem; font-weight: 700; }
.col-head .n { margin-left: auto; font: 500 .76rem var(--mono); color: var(--muted); }
.col-head .who-bpm { font-size: .7rem; color: var(--faint); }
.vcard {
  display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px;
  text-decoration: none; color: inherit; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.02);
}
.vcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.vcard.dragging { opacity: .5; }
.vcard .t { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vcard .badges { display: flex; gap: 10px; }
.add-idea { all: unset; cursor: pointer; color: var(--muted); font-size: .86rem; padding: 6px 6px; border-radius: 6px; }
.add-idea:hover { color: var(--ink); background: var(--surface); }

/* ---------- formulaires ---------- */
.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .field > .lbl { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--faint); }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=url], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
textarea.script { min-height: 340px; font-size: 1rem; line-height: 1.65; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .row-2, .row-3, .row-4 { grid-template-columns: 1fr; } }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > input, .inline > select { flex: 1; }
.title-input { font-size: 1.55rem !important; font-weight: 800; letter-spacing: -.01em; background: transparent !important; border-color: transparent !important; padding: 4px 6px !important; margin-left: -6px; }
@media (max-width: 720px) { .title-input { font-size: 1.25rem !important; } }
.title-input:hover { border-color: var(--line) !important; }
.title-input:focus { background: var(--raised) !important; border-color: var(--line-strong) !important; }

/* ---------- fiche vidéo ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--ink); }
.saved { font: 500 .76rem var(--mono); color: var(--muted); }
.saved.err { color: var(--late); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .facts, .facts.facts-3 { grid-template-columns: 1fr 1fr; } }

.stepper { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.step {
  flex: 1 0 auto; min-width: 84px; display: grid; gap: 1px; text-align: left; padding: 7px 9px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative;
}
.step .code { font-size: .68rem; }
.step .l { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.step.done { background: var(--sunk); border-color: transparent; }
.step.done .l { color: var(--muted); }
.step.done .code::after { content: " ✓"; color: var(--ok); }
.step.current { background: var(--ink); border-color: var(--ink); }
.step.current .l, .step.current .code { color: var(--bg); }
.step:hover:not(.current) { border-color: var(--line-strong); }

.stage-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.stage-card h2 { font-size: 1.1rem; font-weight: 800; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.stage-card p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.stage-card .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stage-card .bpm { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--sunk); padding: 1px 8px; border-radius: 999px; }
@media (max-width: 720px) { .stage-card { grid-template-columns: 1fr; } .stage-card .actions { justify-content: flex-start; } }

.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.section > summary::-webkit-details-marker { display: none; }
.section > summary::before { content: "▸"; color: var(--faint); font-size: .8rem; transition: transform .15s; }
.section[open] > summary::before { transform: rotate(90deg); }
.section > summary .sum-side { margin-left: auto; font-weight: 500; }
.section .body { padding: 0 16px 16px; display: grid; gap: 14px; }
.section.current-stage { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .section > summary::before { transition: none; } }

.meter { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td input, .table td select { padding: 5px 7px; font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.needs-table td:nth-child(1) { width: 110px; }
.needs-table td:nth-child(2) { width: 150px; }
.needs-table td:nth-child(4) { width: 130px; }
.needs-table td:last-child { width: 34px; }

.checks { display: grid; gap: 6px; }
.checks label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.checks input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ok); }

.verdict { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verdict .chip[aria-pressed="true"].good { background: var(--ok); border-color: var(--ok); color: #fff; }
.verdict .chip[aria-pressed="true"].bad { background: var(--late); border-color: var(--late); color: #fff; }
.defects { display: grid; gap: 8px; }
.defect { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.defect.closed { opacity: .65; }
.defect .tc { font: 600 .82rem var(--mono); }
.defect .obs { overflow-wrap: anywhere; }
.defect .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.defect-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.defect-form > input:first-child { width: 80px; flex: none; }
.defect-form > input:nth-child(2) { flex: 1 1 260px; width: auto; }
.defect-form > select { width: 160px; flex: none; }
@media (max-width: 720px) { .defect { grid-template-columns: 1fr; } }
.lvl { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--sunk); color: var(--muted); }
.lvl.script { background: var(--accent-soft); color: var(--accent); }
.lvl.asset { background: var(--hist-bg); color: var(--hist); }
.lvl.plan { background: var(--eco-bg); color: var(--eco); }
.lvl.regle { background: var(--warn-bg); color: var(--warn); }
.callout { background: var(--sunk); border-radius: 8px; padding: 10px 12px; font-size: .9rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.callout.bad { background: var(--late-bg); }
.callout.good { background: var(--ok-bg); }
.links-view { display: grid; gap: 4px; font-size: .9rem; }
.links-view a { overflow-wrap: anywhere; }
.target { font: 500 .74rem var(--mono); color: var(--faint); }
.target.hit { color: var(--ok); }
.target.miss { color: var(--late); }

/* colonne latérale */
.side { display: grid; gap: 14px; }
.owners { display: grid; gap: 6px; }
.owner-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; font-size: .88rem; }
.owner-row.current { font-weight: 700; }
.owner-row select { padding: 4px 26px 4px 8px; font-size: .85rem; }
.comments { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.cmt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.cmt .meta { font: 500 .72rem var(--mono); color: var(--faint); display: flex; gap: 8px; align-items: center; }
.cmt p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.cmt .del { all: unset; cursor: pointer; color: var(--faint); font-size: .72rem; }
.cmt .del:hover { color: var(--late); }
.composer { display: grid; gap: 8px; }
.composer textarea { min-height: 64px; }
.linked { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.linked li { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: .9rem; }
.linked a { text-decoration: none; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked a:hover { color: var(--accent); }

/* ---------- CRM ---------- */
.crm-table tbody tr { cursor: pointer; }
.crm-table tbody tr:hover td { background: var(--raised); }
.crm-table td { padding: 9px 8px; vertical-align: middle; }
.crm-table .name { font-weight: 600; }
.crm-table .org { font-size: .82rem; color: var(--muted); }
.ccard { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; text-decoration: none; color: inherit; cursor: grab; }
.ccard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.ccard .t { font-weight: 600; }
.interactions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.interactions li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.interactions li:last-child { border-bottom: 0; }
.interactions .d { font: 500 .78rem var(--mono); color: var(--muted); }
.interactions p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.interaction-form { display: grid; grid-template-columns: 150px 140px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
@media (max-width: 720px) { .interaction-form { grid-template-columns: 1fr 1fr; } .interaction-form textarea, .interaction-form .btn { grid-column: 1 / -1; } .interactions li { grid-template-columns: 1fr; } }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- amélioration ---------- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.level-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.level-box b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.level-box .bar { height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.level-box .bar i { display: block; height: 100%; background: var(--late); }

/* ---------- connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.4rem; font-weight: 800; }
.auth-card p { margin: 0; color: var(--muted); }
.auth-card .brand { margin-bottom: 4px; }
.error { color: var(--late); font-size: .9rem; min-height: 1.2em; }

/* ---------- divers ---------- */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); width: min(480px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(15, 18, 14, .45); }
dialog form { padding: 22px; display: grid; gap: 14px; }
dialog h2 { font-size: 1.15rem; font-weight: 800; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
.menu { position: absolute; right: 16px; top: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 190px; z-index: 30; }
.menu a, .menu button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
.menu a:hover, .menu button:hover { background: var(--sunk); }
.menu .who-line { padding: 8px 10px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px); }
#toast.err { background: var(--late); color: #fff; }
.loading { color: var(--muted); padding: 30px 0; }

/* ---------- travail à deux : passages de main, rôles, point hebdo ---------- */
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-count { font: 700 .7rem var(--mono); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.nav-count.late { background: var(--late); color: #fff; }
.wait-tag { display: inline-flex; align-items: center; gap: 4px; font: 500 .74rem var(--mono); color: var(--warn); background: var(--warn-bg); padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.wait-tag.late { color: var(--late); background: var(--late-bg); font-weight: 600; }
.vcard .waits-row { justify-content: flex-start; gap: 6px; }
.duo { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.late-txt { color: var(--late); }
.callout.warn { background: var(--warn-bg); }
.waits-bar { display: grid; gap: 8px; }
.stage-card .note { color: var(--ink); font-weight: 600; }
.stage-card .roles { flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check-line input, .blk input { accent-color: var(--late); }
.blk { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.defect.blocking { border-color: var(--late); }
.defect.blocking .blk { color: var(--late); font-weight: 700; }
.needs-table td.taker { width: 120px; white-space: nowrap; }
.judges { display: grid; gap: 6px; }
.judge { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--sunk); font-size: .9rem; }
.judge.good b { color: var(--ok); }
.judge.bad b { color: var(--late); }
.judge.late b { color: var(--late); }
.point-step .level-group { display: grid; gap: 8px; margin-bottom: 12px; }
.ideas .idea { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto auto; gap: 10px; align-items: center; padding: 8px 2px; }
.ideas .idea a { font-weight: 600; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ideas .idea select { padding: 4px 26px 4px 8px; font-size: .85rem; }
@media (max-width: 720px) { .ideas .idea { grid-template-columns: 1fr 1fr; } }
.decisions { display: grid; gap: 8px; margin-top: 14px; }
.decisions .comments { max-height: none; }



/* ---------- planning ---------- */
/* Couleur par type d'élément : --t (bord) et --tb (fond). */
.t-sortie { --t: var(--accent); --tb: var(--accent-soft); }
.t-etape { --t: var(--ink); --tb: var(--sunk); }
.t-relais { --t: var(--hist); --tb: var(--hist-bg); }
.t-evenement { --t: var(--ok); --tb: var(--ok-bg); }
.t-crm { --t: var(--warn); --tb: var(--warn-bg); }
.t-publiee { --t: var(--eco); --tb: var(--eco-bg); }
.month-label { font-size: 1.05rem; min-width: 150px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.pl-key { display: inline-flex; align-items: center; gap: 6px; }
.pl-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tb); box-shadow: inset 3px 0 0 var(--t); }
.cal-wrap { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 770px; }
.cal-head { background: var(--sunk); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; }
.cal-day { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal-day:hover { background: var(--raised); }
.cal-day.out { background: var(--raised); }
.cal-day.out .num { color: var(--faint); }
.cal-day .num { font: 600 .78rem var(--mono); align-self: flex-start; padding: 0 6px; border-radius: 999px; }
.cal-day.today .num { background: var(--accent); color: var(--accent-ink); }
.pl-item { all: unset; box-sizing: border-box; display: block; width: 100%; font-size: .76rem; line-height: 1.3; padding: 2px 6px; border-radius: 5px; background: var(--tb); box-shadow: inset 3px 0 0 var(--t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pl-item:hover { filter: brightness(.97); }
.pl-item:focus-visible { outline: 2px solid var(--accent); }
.pl-time { font: 600 .72rem var(--mono); margin-right: 4px; }
.pl-item.done, .agenda-row.done { opacity: .55; text-decoration: line-through; }
.pl-item.late { box-shadow: inset 3px 0 0 var(--late); color: var(--late); font-weight: 600; }
.cal-more { all: unset; cursor: pointer; font-size: .72rem; color: var(--muted); padding-left: 6px; }
.cal-more:hover { color: var(--ink); }
.agenda { display: grid; gap: 16px; }
.agenda-day h3 { font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.agenda-day.is-today h3 { color: var(--accent); }
.agenda-day.is-late h3 { color: var(--late); }
.agenda-day .rows { display: grid; gap: 6px; }
.agenda-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--t); border-radius: 8px; }
.agenda-row:hover { border-color: var(--line-strong); border-left-color: var(--t); }
.agenda-row:focus-visible { outline: 2px solid var(--accent); }
.agenda-row.late { border-left-color: var(--late); }
.agenda-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.agenda-type { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.agenda-who { display: inline-flex; gap: 3px; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.inline-checks label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.deadline-row input[type=date] { padding: 4px 6px; font-size: .84rem; }
.deadline-row.late span:nth-child(2) { color: var(--late); }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
input[type=time] { width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
@media (max-width: 720px) { .agenda-row { grid-template-columns: 64px minmax(0, 1fr) auto; } }

/* ---------- procédures : tickets et fiches ---------- */
.section-title { font-size: 1.05rem; font-weight: 800; display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.tickets { display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.ticket.closed { opacity: .7; }
.ticket .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tk-kind { justify-self: start; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tk-kind.defect-kind { background: var(--late-bg); color: var(--late); }
.tk-title { all: unset; cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.tk-title:hover { color: var(--accent); }
.tk-title:focus-visible { outline: 2px solid var(--accent); }
.tk-desc, .tk-res { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-res { color: var(--ok); }
.ticket-defect { display: grid; gap: 4px; }
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-icon { grid-row: span 2; width: 38px; height: 46px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: end center; padding-bottom: 6px; font: 700 .62rem var(--mono); color: var(--late); background: var(--raised); }
.doc-body { min-width: 0; }
.doc-title { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.doc-title:hover { color: var(--accent); }
.doc-body p { margin: 2px 0 0; }
.doc .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.doc-actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.versions { margin-top: 4px; }
.versions > div { padding-left: 12px; }
@media (max-width: 720px) { .ticket { grid-template-columns: 1fr; } }

/* ---------- procédures : schémas BPM (public/bpm.js) ---------- */
.proc-tabs { display: flex; }
.tone-pilote { --tone: var(--accent); }
.tone-binome { --tone: var(--hist); }
.tone-machine { --tone: var(--eco); }
.bpm-card { display: grid; gap: 12px; padding: 18px 18px 14px; }
.bpm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.bpm-head h3 { font-size: 1.02rem; font-weight: 800; display: flex; align-items: baseline; gap: 10px; }
.bpm-head p { margin: 4px 0 0; }
.bpm-scroll { overflow-x: auto; margin: 0 -6px; padding: 10px 6px 6px; scrollbar-width: thin; }
svg.bpm { display: block; height: auto; font-family: var(--sans); overflow: visible; }
.bpm-scroll > svg.bpm { width: 100%; min-width: calc(var(--w, 1000) * .8px); max-width: calc(var(--w, 1000) * 1.06px); margin: 0 auto; }
.bpm-scroll > svg.bpm-map { min-width: 820px; }
.bpm-hint { padding: 0 4px; }

/* couloirs */
.bpm-lane { fill: var(--surface); }
.bpm-lane.alt { fill: var(--raised); }
.bpm-grid { opacity: .5; }
.bpm-dot { fill: var(--line-strong); }
.bpm-lane-sep { stroke: var(--line); stroke-width: 1; }
.bpm-lane-rule { fill: var(--tone); }
.bpm-lane-label { font: 700 10.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; fill: var(--ink); }
.bpm-lane-sub { font: 400 10.5px var(--sans); fill: var(--muted); }

/* tâches */
.bpm-node { cursor: pointer; outline: none; transition: opacity .18s; }
.bpm-task { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; filter: drop-shadow(0 1px 1.5px rgba(28, 30, 20, .08)); transition: stroke .15s; }
.bpm-node:hover .bpm-task { stroke: var(--ink); }
.bpm-task.mine { stroke: var(--accent); stroke-width: 1.8; }
.bpm-stripe { fill: var(--tone); }
.bpm-code { font: 600 9.5px var(--mono); fill: var(--faint); letter-spacing: .04em; }
.bpm-title { font: 700 12.5px var(--sans); fill: var(--ink); }
.bpm-sub { font: 400 10.5px var(--sans); fill: var(--muted); }
.bpm-ico { fill: var(--tone); }
.bpm-ico-line { stroke: var(--tone); fill: none; stroke-width: 1.1; stroke-linecap: round; }
.bpm-ico-line circle { fill: none; }
.bpm-timer circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.1; }
.bpm-timer .inner { stroke-width: .7; }
.bpm-timer path { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.bpm-timer-label { font: 600 9.5px var(--mono); fill: var(--muted); }

/* événements et décisions */
.bpm-event { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.bpm-event.end { stroke-width: 3.2; }
.bpm-event.link-inner { stroke-width: .9; }
.bpm-link-arrow { fill: var(--ink); }
.bpm-ev-label, .bpm-gw-label { font: 700 10.5px var(--sans); fill: var(--ink); }
.bpm-ev-sub { font: 400 10px var(--sans); fill: var(--muted); }
.bpm-gateway { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.bpm-gw-mark { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.bpm-node:focus-visible .bpm-task, .bpm-node:focus-visible .bpm-gateway, .bpm-node:focus-visible .bpm-event { stroke: var(--accent); stroke-width: 2.2; }
.bpm-task.sel, .bpm-gateway.sel, .bpm-event.sel { stroke: var(--ink); stroke-width: 2.4; }

/* flux */
.bpm-edge path { fill: none; stroke: var(--faint); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s, opacity .18s; }
.bpm-edge.loop path { stroke: var(--late); stroke-dasharray: 4 4; }
.bpm-edge.hot path { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: none; }
.bpm-arrowhead { fill: var(--faint); }
.bpm-arrowhead.loop { fill: var(--late); }
.bpm-arrowhead.hot { fill: var(--accent); }
.bpm-edge-label { font: 500 10px var(--sans); fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.bpm-edge.loop .bpm-edge-label { fill: var(--late); }
svg.bpm.focusing .bpm-node:not(.hot):not(.near) { opacity: .3; }
svg.bpm.focusing .bpm-edge:not(.hot) { opacity: .18; }

/* compteurs en direct */
.bpm-badge rect { fill: var(--ink); }
.bpm-badge text { font: 700 10.5px var(--sans); fill: var(--bg); }
.bpm-badge.mine rect { fill: var(--accent); }
.bpm-badge.mine text { fill: var(--accent-ink); }
.bpm-badge.late rect { fill: var(--late); }
.bpm-badge.late text { fill: #fff; }

/* carte de la chaîne */
.bpm-band { fill: var(--sunk); }
.bpm-band-label { font: 700 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; fill: var(--ink); }
.bpm-band-sub { font-weight: 400; font-size: 10.5px; letter-spacing: 0; text-transform: none; fill: var(--muted); }
.bpm-chev { cursor: pointer; outline: none; }
.bpm-chev polygon { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.bpm-chev:hover polygon, .bpm-chev:focus-visible polygon { stroke: var(--ink); }
.bpm-chev.optional polygon { stroke-dasharray: 4 3; }
.bpm-chev.mine polygon { stroke: var(--accent); stroke-width: 1.8; }
.bpm-chev.sel polygon { fill: var(--ink); stroke: var(--ink); }
.bpm-chev.sel text { fill: var(--bg); }
.bpm-chev-code { font: 600 9.5px var(--mono); fill: var(--faint); }
.bpm-chev-label { font: 700 12px var(--sans); fill: var(--ink); }
.bpm-cap { cursor: pointer; outline: none; }
.bpm-cap rect { fill: var(--hist-bg); stroke: var(--hist); stroke-width: .8; }
.bpm-cap:hover rect, .bpm-cap:focus-visible rect { stroke-width: 1.5; }
.bpm-cap text { font: 600 10px var(--sans); fill: var(--hist); }
.bpm-cap line { stroke: var(--hist); stroke-dasharray: 2 2; }

/* légende */
.bpm-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.bpm-leg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
svg.bpm-mini { width: 28px; height: 20px; flex: none; }
.bpm-legend-loop { stroke: var(--late); stroke-dasharray: 4 4; stroke-width: 1.3; fill: none; }
.bpm-badge-swatch { fill: var(--ink); }

/* fiche d'une tâche */
.bpm-detail { display: grid; gap: 14px; border-top: 3px solid var(--tone); }
.bpm-detail-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bpm-detail-head h3 { font-size: 1.1rem; font-weight: 800; }
.bpm-detail-head .btn { margin-left: auto; }
.bpm-role { font-size: .74rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); }
.bpm-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .bpm-detail-grid { grid-template-columns: 1fr; } }
.bpm-detail-text { margin: 0 0 8px; line-height: 1.6; max-width: 62ch; }
.bpm-detail-part + .bpm-detail-part { margin-top: 14px; }
.bpm-detail h4 { margin: 0 0 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bpm-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.bpm-docs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bpm-docs a { font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .bpm-node, .bpm-edge path, .bpm-task, .bpm-chev polygon { transition: none; } }

/* ---------- réglages ---------- */
/* Page « Mon compte » : colonne centrée ; chaque bloc présente à gauche ce qu'il règle, à droite les réglages. */
.settings { max-width: 940px; margin: 0 auto; display: grid; gap: 16px; }
.settings-head { display: flex; align-items: center; gap: 16px; padding: 4px 2px 10px; }
.settings-id { flex: 1; min-width: 0; }
.settings-id h1 { font-size: 1.6rem; font-weight: 800; }
.settings-id p { margin: 3px 0 0; color: var(--muted); font-family: var(--mono); font-size: .82rem; }
.av.xl { width: 58px; height: 58px; font-size: 1.2rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.set-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.set-intro h2 { font-size: 1rem; font-weight: 800; }
.set-intro p { margin: 6px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.set-body { display: grid; align-content: start; min-width: 0; }
.set-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:first-child { padding-top: 2px; }
.set-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.set-row:has(form) { align-items: start; }
.set-row:has(form) .set-label { padding-top: 22px; }
.set-label span { font-weight: 600; font-size: .9rem; }
.set-label small { display: block; color: var(--faint); font-size: .78rem; margin-top: 2px; }
.set-control { min-width: 0; }
.set-control .inline input { max-width: 300px; }
.set-dots { letter-spacing: .18em; color: var(--muted); }
.set-form { display: grid; gap: 10px; max-width: 340px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.team li { display: flex; align-items: center; gap: 12px; }
.team li > div { display: grid; }
.set-more { margin-top: 10px; font-size: .88rem; }
.set-more > summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.set-more > summary:hover { color: var(--ink); }
.set-more[open] { display: grid; gap: 10px; }
.set-more pre { margin: 0; }
.g-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-pill { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.g-pill.on { background: var(--ok-bg); color: var(--ok); }
.g-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.g-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.g-feature .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.g-feature b { font-size: .92rem; }
.g-feature p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.g-feature .g-state { grid-column: 2; justify-self: start; margin-top: 8px; }
.g-feature.off .ico { color: var(--faint); }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-note { color: var(--faint); font-size: .8rem; margin: 10px 0 0; max-width: 60ch; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 760px) {
  .set-group { grid-template-columns: 1fr; padding: 18px 16px; gap: 12px; }
  .set-row { grid-template-columns: 1fr; gap: 6px; }
  .g-features { grid-template-columns: 1fr; }
  .settings-head { flex-wrap: wrap; }
}
