/* Nextflow — app mobile (iOS / Android via Capacitor)
   Design system : Indigo #6366F1 · Violet #A855F7 · Obsidian #0B0B0D · Graphite #1F1F23
   Surface #151519 · Border #29292F · Slate #A1A1AA · Muted #71717A
   Success #22C55E · Warning #F59E0B · Danger #EF4444 · Info #3B82F6 — Inter, icônes linéaires 1.75 px */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'NF Word'; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format('woff2'); }

:root {
  --indigo: #6366F1; --violet: #A855F7; --grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --obsidian: #0B0B0D; --graphite: #1F1F23; --surface: #151519; --border: #29292F; --line: #222227;
  --white: #FFFFFF; --soft: #D4D4D8; --slate: #A1A1AA; --muted: #71717A;
  --success: #22C55E; --warning: #F59E0B; --danger: #EF4444; --info: #3B82F6;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--obsidian); color: var(--white); font: 400 15px/1.45 'Inter', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #A5B4FC; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Écran de lancement ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: var(--obsidian); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .45s ease, visibility .45s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.32), rgba(99,102,241,.12) 45%, rgba(0,0,0,0) 70%); opacity: 0; transform: scale(.6); animation: glow 1.4s .35s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-mark { width: 112px; height: 90px; position: relative; overflow: visible; }
.intro-mark .s { fill: none; stroke: url(#ig); stroke-width: 19; stroke-linecap: round; stroke-dasharray: 64; stroke-dashoffset: 64; }
.intro-mark .s1 { animation: draw .42s .10s cubic-bezier(.6,0,.2,1) forwards; }
.intro-mark .s2 { opacity: .82; animation: draw .40s .42s cubic-bezier(.6,0,.2,1) forwards; }
.intro-mark .s3 { animation: draw .42s .72s cubic-bezier(.6,0,.2,1) forwards; }
.intro-word { position: relative; font-family: 'NF Word', 'Inter', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: -.02em; opacity: 0; transform: translateY(10px); animation: rise .5s 1.0s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-tag { position: relative; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--slate); opacity: 0; animation: rise .5s 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.intro.quick .s, .intro.quick .intro-word, .intro.quick .intro-tag, .intro.quick .intro-glow { animation-duration: .01s; animation-delay: 0s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes glow { to { opacity: 1; transform: scale(1); } }

/* ---------- Structure ---------- */
.app { min-height: 100%; }
.screen { min-height: 100dvh; padding: calc(var(--st) + 16px) calc(var(--sr) + 20px) calc(var(--sb) + 24px) calc(var(--sl) + 20px); display: flex; flex-direction: column; gap: 20px; animation: in .35s cubic-bezier(.2,.7,.2,1); }
.screen.tabs { padding-bottom: calc(var(--sb) + 96px); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand b { font-family: 'NF Word', 'Inter', sans-serif; font-size: 18px; letter-spacing: -.02em; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 15px; font-weight: 600; }
.lead { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.55; }
.small { font-size: 12px; color: var(--slate); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a, .link { font-size: 13px; font-weight: 500; color: #A5B4FC; background: none; border: 0; padding: 0; text-decoration: none; }

/* ---------- Composants ---------- */
.btn { height: 50px; border-radius: 12px; border: 0; padding: 0 20px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn.primary { background: var(--indigo); color: #fff; }
.btn.primary:active { background: #575BE8; }
.btn.grad { background: var(--grad); color: #fff; }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: #fff; }
.btn.ghost { background: transparent; color: var(--soft); }
.btn.danger { background: rgba(239,68,68,.14); color: #F87171; border: 1px solid rgba(239,68,68,.35); }
.btn[disabled] { opacity: .5; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--slate); }
.stat .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--graphite); display: flex; align-items: center; justify-content: center; color: #A5B4FC; margin-bottom: 6px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 60px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: #fff; }
.item:first-child { border-top: 0; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .t { font-size: 15px; font-weight: 500; }
.item .m { font-size: 13px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; }
.item .chev { color: var(--muted); flex: none; }
.tile { width: 40px; height: 40px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.badge.ok { background: rgba(34,197,94,.15); color: #4ADE80; }
.badge.run { background: rgba(59,130,246,.16); color: #60A5FA; }
.badge.wait { background: rgba(245,158,11,.16); color: #FBBF24; }
.badge.err { background: rgba(239,68,68,.16); color: #F87171; }
.badge.off { background: rgba(113,113,122,.18); color: var(--slate); }
.dot { width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.switch { width: 52px; height: 44px; border: 0; background: none; padding: 0; display: flex; align-items: center; flex: none; }
.switch .tr { width: 48px; height: 28px; border-radius: 14px; background: #3F3F46; padding: 3px; display: flex; transition: background .2s; }
.switch .kn { width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.switch[aria-checked="true"] .tr { background: var(--indigo); }
.switch[aria-checked="true"] .kn { transform: translateX(20px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--slate); }
.field input { height: 50px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 14px; font-size: 16px; color: #fff; }
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.error { color: #F87171; font-size: 13px; min-height: 18px; }
.hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid #2E2E3A; padding: 18px; background: radial-gradient(130% 120% at 100% 0%, rgba(168,85,247,.5), rgba(99,102,241,.16) 45%, var(--surface) 78%); display: flex; flex-direction: column; gap: 10px; }
.hero .t { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.hero .s { font-size: 14px; color: var(--soft); line-height: 1.5; }
.empty { text-align: center; padding: 28px 18px; color: var(--slate); font-size: 14px; border: 1px dashed var(--border); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty .tile { background: var(--graphite); color: #A5B4FC; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-20px - var(--sr)) 0 calc(-20px - var(--sl)); padding: 0 calc(20px + var(--sr)) 0 calc(20px + var(--sl)); }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.price { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.legal { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.legal a { color: var(--slate); }

/* ---------- Chargement ---------- */
.sk { background: linear-gradient(90deg, #17171B 0%, #222228 50%, #17171B 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline { position: fixed; left: 12px; right: 12px; top: calc(var(--st) + 8px); z-index: 30; background: var(--graphite); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--soft); text-align: center; }

/* ---------- Onboarding ---------- */
.ob { justify-content: space-between; }
.ob-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.ob-orb { width: 220px; height: 220px; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 30%, rgba(168,85,247,.55), rgba(99,102,241,.25) 45%, rgba(11,11,13,0) 72%); display: flex; align-items: center; justify-content: center; }
.ob-orb .tile.main { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 20px 50px rgba(99,102,241,.35); animation: float 4s ease-in-out infinite; }
.ob-orb .tile.main svg { width: 34px; height: 34px; }
.ob-orb .sat { position: absolute; animation: float 4s ease-in-out infinite; }
.ob-orb .sat:nth-of-type(2) { animation-delay: -1.3s; } .ob-orb .sat:nth-of-type(3) { animation-delay: -2.6s; }
.ob-orb .sat .tile { border-radius: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
@keyframes float { 50% { transform: translateY(-6px); } }
.ob-dots { display: flex; gap: 6px; justify-content: center; }
.ob-dots i { width: 6px; height: 6px; border-radius: 3px; background: #3F3F46; transition: width .25s, background .25s; }
.ob-dots i.on { width: 22px; background: var(--grad); }
.ob-copy { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.ob-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Consentement ---------- */
.consent-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.consent-row:first-child { border-top: 0; }
.consent-row .body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.consent-row .t { font-weight: 600; font-size: 15px; }
.consent-row .m { font-size: 13px; color: var(--slate); line-height: 1.45; }
.check { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1.5px solid #52525B; background: transparent; display: flex; align-items: center; justify-content: center; margin-top: 2px; padding: 0; }
.check[aria-checked="true"] { background: var(--indigo); border-color: var(--indigo); }
.check svg { opacity: 0; } .check[aria-checked="true"] svg { opacity: 1; }

/* ---------- Barre d'onglets ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; padding: 8px calc(var(--sr) + 8px) calc(var(--sb) + 8px) calc(var(--sl) + 8px); background: rgba(11,11,13,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.tabbar button { flex: 1; min-height: 50px; border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; position: relative; }
.tabbar button[aria-current="page"] { color: #fff; }
.tabbar button[aria-current="page"] svg { color: #A5B4FC; }
.tabbar em { position: absolute; top: 4px; left: 54%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--violet); color: #fff; font: 600 10px/16px 'Inter'; font-style: normal; padding: 0 4px; }

/* ---------- Feuille (détail, confirmations) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; animation: fade .2s; }
.sheet { width: 100%; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border); border-radius: 22px 22px 0 0; padding: 10px calc(var(--sr) + 20px) calc(var(--sb) + 20px) calc(var(--sl) + 20px); display: flex; flex-direction: column; gap: 16px; animation: up .3s cubic-bezier(.2,.7,.2,1); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #3F3F46; align-self: center; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv span:first-child { color: var(--slate); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--sb) + 92px); z-index: 60; background: var(--graphite); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.toast.err { border-color: rgba(239,68,68,.5); }

/* ---------- Tablette ---------- */
@media (min-width: 700px) and (max-width: 1023px) { .screen { max-width: 640px; margin: 0 auto; } .tabbar { justify-content: center; gap: 24px; } .tabbar button { flex: 0 0 96px; } }

/* ---------- Ordinateur : barre latérale + contenu large ---------- */
.side-brand { display: none; }
.desk-cols { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) {
  .tabbar { top: 0; right: auto; bottom: 0; width: 248px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: calc(var(--st) + 24px) 14px 24px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar .side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
  .tabbar .side-brand img { width: 32px; height: 32px; border-radius: 8px; }
  .tabbar .side-brand b { font-family: 'NF Word', 'Inter', sans-serif; font-size: 19px; letter-spacing: -.02em; color: #fff; }
  .tabbar button { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .tabbar button:hover { background: var(--graphite); color: #fff; }
  .tabbar button[aria-current="page"] { background: rgba(99,102,241,.18); }
  .tabbar em { position: static; margin-left: auto; }
  .screen.tabs { max-width: none; margin: 0 0 0 248px; padding: 32px 40px 48px; }
  .screen.tabs > .top { display: none; }
  .desk-cols .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .screen.tabs .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desk-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
  .screen:not(.tabs) { max-width: 460px; margin: 0 auto; justify-content: center; }
  .toast { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .sheet-bg { align-items: center; justify-content: center; }
  .sheet { width: 520px; border-radius: 20px; border: 1px solid var(--border); max-height: 80vh; }
  .sheet .grab { display: none; }
  h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Décisions ---------- */
.decide-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: #fff; border-color: rgba(245,158,11,.35); background: linear-gradient(90deg, rgba(245,158,11,.10), var(--surface) 60%); }
.decide-cta .body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.decide-cta .chev { color: var(--muted); }
textarea:focus { outline: none; border-color: var(--indigo) !important; box-shadow: 0 0 0 3px rgba(99,102,241,.25); }

/* ---------- Création d'espace (secteur → pack → commerce → installation) ---------- */
.ob-steps { display: flex; gap: 6px; }
.ob-steps i { width: 22px; height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.ob-steps i.on { background: var(--grad); }
.field.search input { padding-left: 14px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; padding-left: 42px; }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sec-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 124px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: #fff; transition: border-color .15s, transform .15s; }
.sec-card b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.sec-card .small { margin-top: auto; }
.sec-card:active { transform: scale(.98); }
@media (hover: hover) { .sec-card:hover { border-color: #4F46E5; } }
.pack { padding-bottom: calc(var(--sb) + 110px); }
.pack-card { display: flex; flex-direction: column; gap: 10px; border-color: rgba(129,140,248,.45); background: linear-gradient(180deg, rgba(99,102,241,.12), rgba(21,21,25,1) 60%); }
.pack-card .list { background: transparent; border: 0; }
.item.pk { align-items: flex-start; cursor: default; }
button.item.pk { cursor: pointer; }
.item.pk .check { pointer-events: none; }
.item.pk .check.on { background: var(--indigo); border-color: var(--indigo); }
.item.pk .check.on svg { opacity: 1; }
.item.pk .body .badge { align-self: flex-start; margin-top: 6px; }
.item.pk .m { white-space: normal; }
.item.pk.sel { background: rgba(99,102,241,.06); }
.pk-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.pk-price b { font-size: 15px; }
.ob-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px calc(var(--sr) + 20px) calc(var(--sb) + 12px) calc(var(--sl) + 20px); background: rgba(11,11,13,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.ob-bar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-bar b { font-size: 20px; letter-spacing: -.01em; }
.ob-bar s { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.install { justify-content: center; }
.install-art { display: flex; justify-content: center; }
.steps .step { min-height: 52px; }
.st-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #3F3F46; position: relative; transition: all .3s; }
.step[data-state="run"] .st-dot { border-color: var(--indigo); border-top-color: transparent; animation: spin .8s linear infinite; }
.step[data-state="done"] .st-dot { border-color: var(--success); background: var(--success); }
.step[data-state="done"] .st-dot::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #0B0B0D; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step:not([data-state]) .t { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.inst-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--border); gap: 2px; }
.inst-bar i.ok { background: var(--success); } .inst-bar i.run { background: var(--indigo); } .inst-bar i.wait { background: var(--warning); }
@media (min-width: 700px) { .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ob-bar { left: 50%; right: auto; width: min(760px, 100%); transform: translateX(-50%); border: 1px solid var(--border); border-radius: 18px 18px 0 0; }
}
@media (min-width: 1024px) { .screen.obw { max-width: 960px; justify-content: flex-start; padding-top: 40px; } .screen.obw.pack { max-width: 760px; } }
/* ---------- Outils & fiches ---------- */
.tool { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tool-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-row { display: flex; gap: 8px; }
.tool-row input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--obsidian); color: #fff; padding: 0 12px; font-size: 15px; }
.tool-row .btn { width: auto; height: 44px; padding: 0 16px; }
.ta { border-radius: 12px; border: 1px solid var(--border); background: var(--obsidian); color: #fff; padding: 12px; font: 15px/1.5 Inter, sans-serif; resize: vertical; width: 100%; }
.repair { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.repair button { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--obsidian); color: var(--soft); font-size: 12.5px; font-weight: 600; padding: 0 4px; }
.repair button.on { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); color: #4ADE80; }
