/* Coquille de My Space (copie de salons/static/app.css, design signature façon Asana) : ne pas modifier ici, les écrans propres sont dans beta.css. */
:root, [data-theme="cockpit"] {
  --bg: #0b1020; --panel: #121a2e; --panel2: #18223b; --line: #24304d; --ink: #e7ecf7; --muted: #8b97b3;
  --accent: #38bdf8; --accent-ink: #04121c; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --chip: #1d2944;
  --radius: 12px; --font: 'Inter', system-ui, sans-serif; --display: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', monospace;
  --shadow: 0 1px 0 #ffffff08 inset, 0 8px 24px #0006; --gap: 12px; --brand2: #38bdf8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 96px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-size: 18px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
h2 .n { font: 600 12px var(--mono); color: var(--muted); }
.brand { font-size: 22px; letter-spacing: -.02em; font-weight: 700; } .brand span { color: var(--brand2); } .brand.small { font-size: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 8px; max-width: 1180px; margin: 0 auto; }
.brandrow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meta { display: flex; gap: 14px; } .meta a { color: var(--muted); text-decoration: none; } .meta a:hover { color: var(--ink); }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; max-width: 100%; }
.tabs button { flex: none; border: 0; background: none; color: var(--muted); font: 500 14px var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kpis { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi b { display: block; font: 700 26px var(--display); } .kpi span { color: var(--muted); font-size: 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.row .main { flex: 1; min-width: 0; } .row .t { font-weight: 600; word-break: break-word; } .row .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.row.late { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); } .row.late .when { color: var(--bad); font-weight: 600; }
.row.done .t { text-decoration: line-through; color: var(--muted); }
.check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--muted); background: none; cursor: pointer; color: transparent; font-size: 14px; line-height: 1; padding: 0; }
.check:hover { border-color: var(--ok); color: var(--ok); } .check.on { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; white-space: nowrap; }
.chip.go { background: color-mix(in srgb, var(--warn) 25%, var(--chip)); } .chip.conf { background: color-mix(in srgb, var(--bad) 22%, var(--chip)); }
.chip.p1 { background: color-mix(in srgb, var(--bad) 22%, var(--chip)); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; } .dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 30%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: 500 14px var(--font); padding: 8px 14px; border-radius: calc(var(--radius) - 2px); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.small { padding: 4px 10px; font-size: 12.5px; } .btn.danger { color: var(--bad); }
.btn:hover { filter: brightness(1.08); }
input, select, textarea { width: 100%; font: 15px var(--font); color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); padding: 9px 10px; }
textarea { min-height: 80px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; } .toolbar > * { flex: 1 1 150px; width: auto; } .toolbar .btn { flex: 0 0 auto; }
.cols { display: grid; gap: var(--gap); grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--panel2); border-radius: var(--radius); padding: 10px; min-height: 120px; } .col h3 { font: 600 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.project h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; } .project .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 13px; }
.project .next { margin-top: 8px; font-size: 13.5px; } .project .next b { color: var(--muted); font-weight: 500; }
.day { font: 600 12px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 6px; }
.empty { color: var(--muted); padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.alert { background: color-mix(in srgb, var(--bad) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; }
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 30px; box-shadow: 0 8px 24px #0005; cursor: pointer; z-index: 6; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); width: min(560px, calc(100vw - 24px)); padding: 18px; max-height: 90vh; }
dialog::backdrop { background: #0008; } dialog h3 { font-size: 18px; } dialog .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 10; }
.toast.on { opacity: 1; }
.secret { font: 12px var(--mono); word-break: break-all; background: var(--panel2); padding: 8px; border-radius: 6px; }
pre { white-space: pre-wrap; font: 12px var(--mono); background: var(--panel2); padding: 10px; border-radius: 8px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .authcard { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; } .authcard .brand { font-size: 34px; margin-bottom: 18px; }
.status.bad { color: var(--bad); }
/* journal */
.logs .day { margin-top: 22px; } .ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .ev .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ev .txt { flex: 1; min-width: 0; } .ev .sub { color: var(--muted); font-size: 12px; } .rec { margin-left: 6px; font-size: 11px; background: var(--chip); border-radius: 999px; padding: 0 6px; } .note { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .top { padding-top: 10px; } .grid { grid-template-columns: 1fr; } }

/* conseil */
.md h3 { font-size: 16px; margin: 16px 0 6px; } .md h4 { font-size: 14px; margin: 12px 0 4px; color: var(--muted); } .md p { margin: 6px 0; } .md ul { margin: 6px 0; padding-left: 20px; } .md li { margin: 3px 0; }
.md h3:first-child { margin-top: 0; }
/* Bouton « œil » des champs mot de passe (static/eye.js) */
.pwwrap { position: relative; display: block; }
.pwwrap input { width: 100%; padding-right: 48px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 8px; }
.eye:focus-visible { outline: 2px solid var(--accent); }

/* Chantiers */
.chantier { margin-bottom: 34px; }
.prog { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin-top: 12px; } .prog i { display: block; height: 100%; background: var(--ok, #3ddc97); border-radius: 999px; }
.kpi.bad b { color: var(--bad); }
.daysep { font: 600 12px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 2px 4px; } .daysep.late { color: var(--bad); }

/* Projets façon Asana */
.chip.ok { background: color-mix(in srgb, var(--ok) 25%, var(--chip)); } .chip.warn { background: color-mix(in srgb, var(--warn) 30%, var(--chip)); } .chip.bad { background: color-mix(in srgb, var(--bad) 28%, var(--chip)); }
.lateTxt { color: var(--bad); font-weight: 600; }
.ava { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 12px var(--font); color: #fff; } .ava.none { background: var(--panel2); color: var(--muted); border: 1px dashed var(--line); }
.prog.thin { height: 6px; margin-top: 0; flex: 1; min-width: 40px; }
.pgh { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink); font: 600 14px var(--font); cursor: pointer; padding: 10px 2px 6px; } .pgh .n { font: 600 12px var(--mono); color: var(--muted); } .pgh .caret { color: var(--muted); width: 12px; }
.prow { display: grid; grid-template-columns: minmax(0, 2.6fr) 96px 130px 130px minmax(120px, 1.1fr) 120px; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.prow:hover, .prow:focus-visible { border-color: var(--accent); outline: none; }
.prow.phead-row { background: none; border: 0; cursor: default; padding-top: 0; padding-bottom: 0; color: var(--muted); font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .05em; }
.pc { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; } .pn { gap: 10px; } .pname { min-width: 0; overflow-wrap: anywhere; } .pprog { gap: 8px; }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; } .ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 700 22px var(--display); text-transform: none; letter-spacing: 0; color: var(--ink); }
.phead .links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; flex-basis: 100%; }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0; overflow-x: auto; } .ptabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 14px var(--font); padding: 8px 12px; cursor: pointer; white-space: nowrap; } .ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.pgrid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 14px 0; } .card .next { font-size: 13.5px; } .card .next b { color: var(--muted); font-weight: 500; } .card h3 { font-size: 14px; }
.wrow { display: flex; align-items: center; gap: 8px; } .wn { flex: 0 0 120px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px 90px 70px 110px; gap: 10px; align-items: center; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.trow:not(.thead):hover { background: var(--panel); } .trow.thead { color: var(--muted); font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .05em; } .trow .check { margin-top: 0; }
.tt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; cursor: pointer; min-width: 0; } .ttl { overflow-wrap: anywhere; font-weight: 500; } .tc { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.trow.done .ttl { text-decoration: line-through; color: var(--muted); } .trow.late .tc:nth-child(4) { color: var(--bad); font-weight: 600; }
.stsel { width: 100%; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; font: 12.5px var(--font); }
.psec { border-radius: var(--radius); margin-top: 10px; } .pshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.over { outline: 2px dashed var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.qadd { width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--line); color: var(--ink); font: 13.5px var(--font); padding: 8px; margin: 2px 0 6px; } .qadd:focus { outline: none; border-bottom-color: var(--accent); }
.col .qadd { margin-top: 8px; } .seg { display: flex; gap: 4px; flex: 0 0 auto; }
.board { grid-auto-columns: minmax(260px, 1fr); } .bcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: grab; } .bcard .t { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; } .bcard .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.bcard.late { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); } .bcard.late .when { color: var(--bad); font-weight: 600; } .bcard.done .t { text-decoration: line-through; color: var(--muted); }
.calnav { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .calnav b { min-width: 140px; text-align: center; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .cdow { text-align: center; color: var(--muted); font: 600 11.5px var(--font); text-transform: uppercase; padding: 4px 0; }
.cday { min-height: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .cday.off { background: none; border-color: transparent; cursor: default; } .cday.today { border-color: var(--accent); } .cday .dn { font: 600 12px var(--mono); color: var(--muted); }
.cev { background: color-mix(in srgb, var(--accent) 22%, var(--chip)); border-radius: 5px; padding: 2px 5px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } .cev.late { background: color-mix(in srgb, var(--bad) 30%, var(--chip)); } .cev.done { text-decoration: line-through; opacity: .6; }
@media (max-width: 760px) {
  .prow { grid-template-columns: minmax(0, 1fr) 110px; } .prow .pprog { grid-column: 1 / -1; } .prow.phead-row { display: none; } .hide-s { display: none; }
  .trow { grid-template-columns: 22px minmax(0, 1fr) 80px; } .wn { flex-basis: 90px; }
  .cday { min-height: 64px; } .cev { font-size: 10.5px; padding: 1px 3px; }
}
/* Coûts & temps (v0.5.0) */
.costw { margin-top: 14px; } .costw.click { cursor: pointer; } .costw .kpis { margin-top: 8px; } .costw .kpi b { font-size: 22px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 28px; min-width: 120px; } .bars i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; } .bars i.z { background: var(--line); }
.pcost { margin-top: 8px; display: grid; gap: 6px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; } .ctable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctable td { padding: 8px 12px; border-bottom: 1px solid var(--line); } .ctable td.num { text-align: right; font-family: var(--mono); white-space: nowrap; } .ctable tfoot td { font-weight: 600; border-bottom: 0; }
.ctable tr.click { cursor: pointer; } .ctable tr.click:hover td { background: var(--panel2); }
/* Mises à jour des plateformes (v0.6.0) */
.rel { border-color: var(--accent); } .relitem { padding: 8px 0; border-top: 1px solid var(--line); } .relitem:first-of-type { border-top: 0; } .relitem ul { margin: 4px 0; padding-left: 18px; }

/* ───── Façon Asana (v0.18.0) : thème clair + barre du haut, barre d'icônes, barre latérale, panneau Claude ───── */
:root, [data-theme="cockpit"] { --chrome: #0e1528; --chrome2: #121a2e; --chrome-ink: #e7ecf7; --chrome-muted: #8b97b3; --chrome-hi: #ffffff14; --create: #38bdf8; }
[data-theme="asana"] {
  --bg: #ffffff; --panel: #ffffff; --panel2: #f6f5f4; --line: #e8e6e5; --ink: #1e1f21; --muted: #6d6e6f;
  --accent: #4573d2; --accent-ink: #ffffff; --ok: #5da283; --warn: #c98a1b; --bad: #d1395a; --chip: #f0eeed;
  --radius: 10px; --shadow: 0 1px 2px #0000000d; --brand2: #f06a6a;
  --chrome: #2a2b2d; --chrome2: #1e1f21; --chrome-ink: #f5f4f3; --chrome-muted: #a2a0a2; --chrome-hi: #ffffff1a; --create: #f06a6a;
}
[data-theme="asana"] dialog { background: #fff; color: var(--ink); }
body.app { padding-top: 48px; }
body.app #main.wrap { max-width: none; margin: 0 0 0 312px; padding: 22px 32px 96px; transition: margin .15s; }
body.app.side-collapsed #main.wrap { margin-left: 72px; }
body.app.with-claude #main.wrap { margin-right: 380px; }
.topbar { position: fixed; inset: 0 0 auto 0; height: 48px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--chrome); color: var(--chrome-ink); border-bottom: 1px solid #00000040; }
.tb-ico { background: none; border: 0; color: var(--chrome-ink); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.tb-ico:hover { background: var(--chrome-hi); }
.claude .tb-ico { color: var(--ink); } .claude .tb-ico:hover { background: var(--panel2); }
.tb-create { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffffff33; background: none; color: var(--chrome-ink); font: 500 14px var(--font); padding: 5px 14px 5px 6px; border-radius: 999px; cursor: pointer; }
.tb-create:hover { background: var(--chrome-hi); }
.tb-create .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--create); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.tb-search { position: relative; flex: 1; max-width: 540px; margin: 0 auto; }
.tb-search input { width: 100%; background: #ffffff1f; border: 1px solid #ffffff2e; color: var(--chrome-ink); border-radius: 999px; padding: 6px 14px; font: 14px var(--font); }
.tb-search input::placeholder { color: var(--chrome-muted); } .tb-search input:focus { background: #fff; color: #1e1f21; outline: none; }
.tb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-claude { border: 1px solid #ffffff33; background: none; color: var(--chrome-ink); border-radius: 999px; padding: 5px 14px; font: 500 13.5px var(--font); cursor: pointer; }
.tb-claude:hover, body.with-claude .tb-claude { background: var(--chrome-hi); }
.tb-me { width: 30px; height: 30px; border-radius: 50%; border: 0; background: hsl(28 60% 48%); color: #fff; font: 600 13px var(--font); cursor: pointer; }
.rail { position: fixed; top: 48px; bottom: 0; left: 0; width: 72px; z-index: 25; background: var(--chrome2); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; }
.rail button { width: 64px; border: 0; background: none; color: var(--chrome-muted); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; cursor: pointer; font: 500 10.5px var(--font); }
.rail button svg { padding: 6px; width: 32px; height: 32px; border-radius: 8px; }
.rail button:hover, .rail button[aria-current="true"] { color: var(--chrome-ink); }
.rail button[aria-current="true"] svg { background: var(--chrome-hi); }
.side { position: fixed; top: 48px; bottom: 0; left: 72px; width: 240px; z-index: 24; background: var(--chrome); color: var(--chrome-ink); overflow-y: auto; padding: 10px 8px 40px; border-left: 1px solid #00000033; scrollbar-width: thin; }
body.side-collapsed .side { display: none; }
.side .ws { padding: 2px 8px 10px; border-bottom: 1px solid #ffffff1a; margin-bottom: 8px; }
.side .ws label { color: var(--chrome-muted); display: flex; flex-direction: column; gap: 4px; }
.side .ws select { background: #ffffff14; color: var(--chrome-ink); border: 1px solid #ffffff2a; border-radius: 8px; padding: 6px 8px; font: 600 14px var(--font); width: 100%; }
.side .ws select option { color: #1e1f21; }
.navgroup { margin-bottom: 10px; } .navgroup[hidden] { display: none; }
.navgroup .sh { display: flex; align-items: center; justify-content: space-between; color: var(--chrome-muted); font: 600 12px var(--font); padding: 8px 10px 4px; }
.sadd { background: none; border: 0; color: var(--chrome-muted); font-size: 17px; cursor: pointer; border-radius: 6px; width: 24px; } .sadd:hover { color: var(--chrome-ink); background: var(--chrome-hi); }
.side .nav { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--chrome-ink); text-decoration: none; text-align: left; font: 14px var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.side .nav span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .nav svg { width: 18px; height: 18px; flex: none; color: var(--chrome-muted); }
.side .nav:hover { background: var(--chrome-hi); } .side .nav[aria-current="page"], .side .nav.on { background: #ffffff26; }
.picon { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; flex-direction: column; justify-content: center; gap: 2.5px; padding: 0 6px; }
.picon i { display: block; height: 2.5px; border-radius: 2px; background: #fff; } .picon i:nth-child(2) { width: 80%; } .picon i:nth-child(3) { width: 60%; }
.picon.sm { width: 18px; height: 18px; border-radius: 5px; padding: 0 4px; gap: 2px; } .picon.sm i { height: 2px; }
.picon.big { width: 40px; height: 40px; border-radius: 11px; padding: 0 10px; gap: 4px; } .picon.big i { height: 3.5px; }
.picon.add { width: 40px; height: 40px; border: 1.5px dashed var(--muted); background: none; color: var(--muted); align-items: center; font-size: 22px; padding: 0; }
.scrim { position: fixed; inset: 48px 0 0 0; background: #0006; z-index: 23; } .scrim[hidden] { display: none; }
.menu { position: fixed; z-index: 40; min-width: 230px; background: #fff; color: #1e1f21; border: 1px solid #e8e6e5; border-radius: 10px; box-shadow: 0 10px 30px #0003; padding: 6px; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; font: 14px var(--font); color: inherit; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu button:hover { background: #f1efee; } .menu .msep { height: 1px; background: #e8e6e5; margin: 4px 0; }
.tb-search .menu { position: absolute; top: 40px; left: 0; right: 0; max-height: 70vh; overflow: auto; }
/* Accueil */
.home { text-align: center; margin: 10px auto 18px; max-width: 1100px; }
.hdate { font: 500 15px var(--font); } .hello { font: 400 34px var(--display); margin: 6px 0 12px; letter-spacing: -.01em; }
.hmeta { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; color: var(--muted); font-size: 13px; background: var(--panel2); border-radius: 999px; padding: 6px 16px; }
.hmeta button.chip { border: 0; cursor: pointer; } .chip.bad { background: color-mix(in srgb, var(--bad) 18%, var(--chip)); } .chip.ok { background: color-mix(in srgb, var(--ok) 22%, var(--chip)); } .chip.warn { background: color-mix(in srgb, var(--warn) 22%, var(--chip)); }
.widgets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); max-width: 1100px; margin: 18px auto; }
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; text-align: left; }
.widget.wide { grid-column: 1 / -1; }
.wh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .wh h3 { font: 600 19px var(--display); } .wh .link { margin-left: auto; }
.link { background: none; border: 0; color: var(--accent); font: 500 13px var(--font); cursor: pointer; padding: 4px 6px; border-radius: 6px; } .link:hover { background: var(--panel2); } .link.more { margin-top: 6px; color: var(--muted); }
.wtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wtabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 14px var(--font); padding: 8px; cursor: pointer; margin-bottom: -1px; }
.wtabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.mtadd { background: none; border: 0; color: var(--muted); font: 13.5px var(--font); padding: 8px 4px; cursor: pointer; text-align: left; width: 100%; border-bottom: 1px solid var(--line); } .mtadd:hover { color: var(--ink); }
.wbody { max-height: 430px; overflow-y: auto; }
.mtl { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mtl .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } .mtl.done .ttl { text-decoration: line-through; color: var(--muted); }
.mtl .due { flex: none; font-size: 12.5px; color: var(--muted); min-width: 64px; text-align: right; }
.pchip { flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px var(--font); padding: 2px 8px; border-radius: 6px; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 45% 28%); cursor: pointer; }
[data-theme="cockpit"] .pchip { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 70% 85%); }
.check.round { border-radius: 50%; width: 20px; height: 20px; font-size: 11px; border-width: 1.5px; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.ptile { display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink); font: 14px var(--font); min-width: 0; }
.ptile:hover { background: var(--panel2); } .ptile .pt { display: flex; flex-direction: column; min-width: 0; } .ptile .pt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 130px; border: 0; background: none; padding: 10px 6px; border-radius: 10px; cursor: pointer; color: var(--ink); font: 14px var(--font); } .person:hover { background: var(--panel2); }
.ava.big { width: 44px; height: 44px; font-size: 18px; }
.agrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.agent { text-align: left; cursor: pointer; color: var(--ink); font: 14px var(--font); display: flex; flex-direction: column; gap: 4px; } .agent:hover { border-color: var(--accent); } .agent .wh { margin: 0; } .agent .dot { margin-left: auto; }
.klink { text-decoration: none; color: var(--ink); } .klink:hover { border-color: var(--accent); }
.ptitle { font: 600 24px var(--display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.star { background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; } .star.on { color: #f1bd6c; }
/* Panneau Claude */
.claude { position: fixed; top: 48px; right: 0; bottom: 0; width: 380px; z-index: 26; background: var(--panel); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -8px 0 24px #0000001a; display: flex; flex-direction: column; }
.claude[hidden] { display: none; } .claude.wide { width: min(720px, 100vw); }
.claude .ch { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); } .claude .ch b { font-size: 15px; } .claude .ch #claudeCtx { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbody { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.cintro { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: linear-gradient(160deg, #fde4e1, #fff 55%); }
[data-theme="cockpit"] .cintro { background: linear-gradient(160deg, #1d2944, var(--panel) 60%); }
.cintro ul { margin: 8px 0; padding-left: 18px; font-size: 13.5px; }
.clogo { width: 44px; height: 44px; border-radius: 12px; background: #d97757; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.cturn { display: flex; flex-direction: column; gap: 6px; }
.bubble { border-radius: 12px; padding: 9px 12px; font-size: 14px; max-width: 92%; word-break: break-word; } .bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); white-space: pre-wrap; }
.bubble.ai { align-self: flex-start; background: var(--panel2); } .bubble.ai pre { white-space: pre-wrap; }
.cform { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; } .cform textarea { width: 100%; resize: vertical; }
@media (max-width: 900px) {
  body.app #main.wrap, body.app.with-claude #main.wrap { margin: 0; padding: 14px 12px 96px; }
  .rail, .side { transform: translateX(-320px); transition: transform .18s; }
  body.side-open .rail, body.side-open .side { transform: none; }
  .tb-create { padding: 5px; font-size: 0; } .tb-create .plus { font-size: 17px; }
  .tb-claude span { display: none; } .tb-search { max-width: none; }
  .claude, .claude.wide { width: 100vw; }
  .widgets { grid-template-columns: 1fr; } .hello { font-size: 26px; }
}
@media (min-width: 901px) { .fab { display: none; } }
