/* Maquettes Tao V2 : reprise des jetons du Harness (web/go/src/theme.css). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/inter-800.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --yellow: #facc14;
  --yellow-hover: #fbd659;
  --base: #101010;
  --surface: #171717;
  --raised: #222222;
  --highlight: #2b281a;
  --ink: #faf9f6;
  --body: #e6e6e6;
  --muted: #aaa9a3;
  --faint: #8a8984;
  --line: #343431;
  --success: #96d7a8;
  --danger: #ffa899;
  --blue: #8fbcf7;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #facc1499; outline-offset: 2px; }

/* --- Bandeau de maquette -------------------------------------------------- */
.mq-banner {
  display: flex; align-items: center; gap: 18px;
  height: 32px; padding: 0 16px;
  background: #0b0b0b; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.mq-banner b { color: var(--yellow); font-weight: 600; letter-spacing: 0.2px; }
.mq-banner nav { display: flex; gap: 2px; margin-left: auto; }
.mq-banner a { padding: 4px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.mq-banner a:hover { color: var(--ink); background: var(--raised); }
.mq-banner a.on { color: var(--ink); background: var(--raised); }

/* --- Coquille ------------------------------------------------------------- */
body.app { height: 100vh; display: grid; grid-template-rows: 32px minmax(0, 1fr); overflow: hidden; }
body.app.scroll { height: auto; min-height: 100vh; overflow: visible; }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 0; }
.side {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px 16px; border-right: 1px solid var(--line); background: #131313;
}
body.app.scroll .side { position: sticky; top: 0; height: calc(100vh - 32px); align-self: start; }
.logo { display: flex; align-items: center; gap: 8px; padding: 2px 8px 22px; color: var(--ink); }
.logo span { font-weight: 800; font-size: 19px; letter-spacing: -0.5px; }
.logo em { font-style: italic; font-weight: 800; font-size: 19px; letter-spacing: -0.8px; }
.logo small { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); margin-bottom: -3px; }
.side-label { padding: 0 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }
.side a {
  display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px;
  border-radius: 8px; border-left: 3px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.side a .ico { width: 18px; height: 18px; }
.side a.on { background: var(--highlight); border-left-color: var(--yellow); color: var(--yellow); }
.side a .tag { margin-left: auto; font: 10px var(--mono); color: var(--muted); }
.side a .n { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--highlight); color: var(--yellow); font-weight: 700; font-size: 12px; flex: none; }
.side-user strong { display: block; color: var(--ink); font-size: 13px; }
.side-user small { color: var(--muted); font-size: 11px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 28px 20px; gap: 14px; }
.page-head { display: flex; align-items: center; gap: 16px; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; color: var(--ink); }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .grow { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }

.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: #151200; font-size: 11px; font-weight: 800; }
.count.quiet { background: var(--raised); color: var(--muted); }

/* --- Boutons et pastilles ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--base); color: var(--ink);
  font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: #55534d; background: #1c1c1c; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: #151200; }
.btn.primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn.sm { min-height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--raised); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--base);
  font-size: 11.5px; font-weight: 600; color: var(--body); white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.toi { color: var(--yellow); border-color: #5c4d12; background: var(--highlight); }
.pill.ok { color: var(--success); border-color: #2f4a37; background: #16211a; }
.pill.draft { color: var(--muted); }
.pill.open { color: var(--blue); border-color: #2c3f5a; background: #141b25; }
.pill.hand { color: var(--ink); }
.presence { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--raised); }
.presence .track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line); }
.presence .track i { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.presence strong { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.15; }
.presence small { font-size: 11px; color: var(--muted); }

/* --- Écran 1 : tâches + chat --------------------------------------------- */
.tao-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 16px; }
.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
.panel-head .grow { flex: 1; }
.panel-head .meta { font-size: 12px; color: var(--muted); }

.tabs { display: flex; gap: 2px; padding: 3px; margin: 10px 12px 0; border-radius: 9px; background: var(--base); }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tabs button.on { background: var(--raised); color: var(--ink); }
.tabs button small { font-size: 11px; color: var(--faint); font-weight: 600; }

.tasks-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 12px; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 12px 2px 6px; }
.group-head .eyebrow.toi { color: var(--yellow); }
.group-head small { color: var(--faint); font-size: 11px; font-weight: 700; }
.task {
  display: grid; gap: 2px; padding: 8px 10px 8px 11px; margin-bottom: 5px;
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 9px; background: var(--raised);
}
.task.toi { border-left-color: var(--yellow); }
.task.cours { border-left-color: #6d6c66; }
.task.repos, .task.done { background: transparent; }
.task-title { font-weight: 600; color: var(--ink); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-sub { display: flex; align-items: center; gap: 6px; min-height: 22px; color: var(--muted); font-size: 12.5px; }
.task-sub .sep { color: #5c5b56; }
.task-sub .who { display: inline-flex; align-items: center; gap: 5px; }
.task-sub .who.tao { color: #d9c777; }
.task-sub .who.hand { color: var(--ink); }
.task-sub .btn { margin-left: auto; }
.task.done .task-title { color: var(--body); font-weight: 500; }
.tasks-empty { padding: 8px 2px; color: var(--faint); font-size: 12.5px; }
.cal li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #262624; font-size: 12.5px; }
.cal time { color: var(--yellow); font-weight: 600; }
.cal span { color: var(--body); }

.thread { flex: 1; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 18px; }
.day { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.4px; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: #262624; }
.past { display: grid; gap: 2px; }
.past-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--muted); font-size: 12.5px; }
.past-line .ico { width: 14px; height: 14px; color: var(--success); }
.past-line time { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.msg { max-width: 640px; display: grid; gap: 4px; }
.msg header { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--faint); }
.msg header b { color: var(--muted); font-weight: 600; }
.msg .bubble { padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--base); color: var(--body); font-size: 13.5px; line-height: 1.5; }
.msg.me { align-self: flex-end; justify-items: end; }
.msg.me .bubble { background: var(--highlight); border-color: #4a4015; color: var(--ink); }

.inbox { border-top: 1px solid var(--line); background: #141414; max-height: 62%; overflow-y: auto; flex: none; }
.inbox-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px 6px; }
.inbox-head .eyebrow { color: var(--yellow); }
.inbox-head .hint { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.rows { padding: 0 10px; display: grid; gap: 4px; }
.row { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); overflow: hidden; }
.row.open { border-color: #5c4d12; }
.row-line { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 6px 0 12px; cursor: pointer; }
.row-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.row-line strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.row-line .ask { flex: 1; min-width: 0; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.chev:hover { background: var(--base); color: var(--ink); }
.chev .ico { transition: transform 0.15s; }
.row.open .chev .ico, .settled.open .settled-toggle .ico { transform: rotate(90deg); }
.row-detail { display: none; padding: 12px 14px 14px 29px; border-top: 1px solid var(--line); background: var(--surface); gap: 10px; }
.row.open .row-detail { display: grid; }
.row-detail p { color: var(--body); max-width: 680px; }
.row-detail .note { color: var(--muted); font-size: 12.5px; }
.pr-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--base); }
.pr-box a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #66645d; text-underline-offset: 3px; }
.pr-box a:hover { text-decoration-color: var(--yellow); }
.pr-box .facts { color: var(--muted); font-size: 12.5px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--base); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.3; }
.choice:hover { border-color: var(--yellow); }
.choice kbd { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--raised); font: 700 11px var(--font); flex: none; }
.other { display: flex; gap: 8px; }
.other input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px dashed #55534d; background: var(--base); }
.other input::placeholder, .composer input::placeholder { color: var(--faint); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inbox-empty { margin: 0 10px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }

.settled { padding: 4px 10px 8px; }
.settled-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: left; }
.settled-toggle:hover { color: var(--ink); background: var(--raised); }
.settled-toggle .ico { width: 14px; height: 14px; transition: transform 0.15s; }
.settled-toggle small { margin-left: auto; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.settled ul { display: none; padding: 2px 0 2px 8px; }
.settled.open ul { display: grid; }
.settled li { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 4px 0 0; border-top: 1px solid #242422; font-size: 12.5px; }
.settled li .ico { width: 14px; height: 14px; color: var(--success); }
.settled li b { color: var(--body); font-weight: 600; white-space: nowrap; }
.settled li span { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settled li.fresh { animation: fresh 1.6s ease-out; }
.settled-toggle.bump { animation: fresh 1.6s ease-out; color: var(--ink); }
@keyframes fresh { from { background: #2b281a; } to { background: transparent; } }

.composer { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); flex: none; }
.composer input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--base); }
.composer .btn { min-height: 40px; }
.composer .icon { width: 40px; padding: 0; }

/* --- Écran 3 : détail d'une tâche ---------------------------------------- */
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); margin-right: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.card > header { display: flex; align-items: center; gap: 8px; }
.card > header .meta { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.todo { border-left: 3px solid var(--yellow); background: #1b1a14; }
.todo .eyebrow { color: var(--yellow); }
.todo-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.todo-line p { flex: 1; min-width: 220px; color: var(--ink); font-size: 15px; font-weight: 600; }
.list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; border-top: 1px solid #262624; }
.list li:first-child { border-top: 0; }
.list .num { font: 600 12.5px var(--mono); color: var(--muted); width: 34px; flex: none; }
.list .what { flex: 1; min-width: 0; color: var(--ink); }
.list .what small { display: block; color: var(--muted); font-size: 12px; }
.list time, .list .when { color: var(--faint); font-size: 12px; white-space: nowrap; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); }
.steps .tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #55534d; flex: none; }
.steps .done .tick { background: #1d2b21; border-color: #3e6a4b; color: var(--success); }
.steps .done .tick .ico { width: 11px; height: 11px; stroke-width: 2.6; }
.steps .now { color: var(--ink); font-weight: 600; }
.steps .now .tick { border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 9px var(--yellow); }
.status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.sent { color: var(--success); }
.status.wait { color: var(--yellow); }
.status.gone { color: var(--faint); text-decoration: line-through; text-decoration-color: #55534d; }
.quote { color: var(--body); }
li.gone .quote { color: var(--faint); }
details.journal { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.journal summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; }
details.journal summary::-webkit-details-marker { display: none; }
details.journal[open] summary .ico { transform: rotate(90deg); }
details.journal pre { margin: 0; padding: 0 16px 14px; font: 12px/1.7 var(--mono); color: var(--muted); white-space: pre-wrap; }

/* --- Écran 4 : terminal --------------------------------------------------- */
.term-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.term-head { display: grid; gap: 0; }
.term-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term-top .name { color: var(--ink); font-weight: 700; font-size: 14px; }
.term-top .name small { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: 12.5px; }
.term-top .retreat { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.term-top .grow { flex: 1; }
.term-todo { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #1b1a14; border-bottom: 1px solid #4a4015; border-left: 3px solid var(--yellow); }
.term-todo .eyebrow { color: var(--yellow); }
.term-todo p { flex: 1; min-width: 0; color: var(--ink); font-weight: 500; }
.term-todo.settled-line { background: var(--surface); border-bottom-color: var(--line); border-left-color: #3e6a4b; }
.term-todo.settled-line .eyebrow { color: var(--success); }
.term-todo.settled-line p { color: var(--muted); font-weight: 400; }
.term { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; background: #0a0a0a; font: 12.5px/1.65 var(--mono); color: #cfcdc6; }
.term .dim { color: #7d7c77; }
.term .y { color: var(--yellow); }
.term .g { color: var(--success); }
.term .box { margin: 10px 0; padding: 8px 12px; border: 1px solid #3a3934; border-radius: 6px; max-width: 760px; }
.term .prompt { display: flex; gap: 8px; margin-top: 12px; padding: 8px 12px; border: 1px solid #4a4944; border-radius: 6px; }
.term .caret { display: inline-block; width: 7px; height: 15px; background: #cfcdc6; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term p { margin: 0; white-space: pre-wrap; }

/* --- Écran 2 : mobile ----------------------------------------------------- */
.phones-page { padding: 28px 24px 48px; }
.phones-intro { max-width: 860px; margin: 0 auto 24px; text-align: center; color: var(--muted); }
.phones-intro h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; color: var(--ink); margin-bottom: 6px; }
.phones { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.phone-slot { display: grid; gap: 12px; justify-items: center; }
.phone-slot figcaption { color: var(--muted); font-size: 12.5px; }
.phone-slot figcaption b { color: var(--ink); }
figure { margin: 0; }
.phone { width: 410px; height: 864px; padding: 10px; border-radius: 48px; background: #242424; box-shadow: 0 0 0 1px #3d3d3a, 0 30px 60px #000a; }
.screen { position: relative; width: 390px; height: 844px; border-radius: 38px; overflow: hidden; background: var(--base); display: flex; flex-direction: column; font-size: 14.5px; }
.m-top { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; background: var(--surface); }
.m-top .ico { width: 20px; height: 20px; color: var(--ink); }
.m-top h2 { font-size: 17px; font-weight: 700; color: var(--ink); flex: 1; }
.m-top .pill { height: 26px; }
.m-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.m-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.m-tabs button.on { color: var(--yellow); border-bottom-color: var(--yellow); }
.m-body { flex: 1; min-height: 0; overflow-y: auto; }
.m-body .inbox { border-top: 0; background: transparent; max-height: none; padding-top: 6px; }
.m-body .inbox-head { padding: 12px 16px 8px; }
.m-body .inbox-head .hint { display: none; }
.m-body .rows { padding: 0 12px; gap: 10px; }
.m-body .row-line { display: grid; grid-template-columns: 7px minmax(0, 1fr) 36px; grid-template-areas: "dot name chev" ". ask ask" ". btn btn"; gap: 3px 10px; padding: 12px 8px 12px 14px; align-items: center; }
.m-body .row-line .dot { grid-area: dot; }
.m-body .row-line strong { grid-area: name; font-size: 15px; white-space: normal; }
.m-body .row-line .ask { grid-area: ask; white-space: normal; line-height: 1.4; }
.m-body .row-line .btn { grid-area: btn; justify-self: start; min-height: 44px; min-width: 132px; margin-top: 8px; font-size: 14px; }
.m-body .row-line .chev { grid-area: chev; width: 36px; height: 36px; }
.m-body .row.open .row-line .btn { display: none; }
.m-body .row-detail { padding: 12px 14px 14px; }
.m-body .choices { grid-template-columns: 1fr; }
.m-body .choice { min-height: 48px; font-size: 14px; }
.m-body .other input, .m-body .other .btn, .m-body .actions .btn { min-height: 44px; height: 44px; }
.m-body .settled { padding: 10px 12px 16px; }
.m-body .settled-toggle { height: 44px; font-size: 14px; }
.m-body .settled-toggle small { display: none; }
.m-body .settled li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 9px; padding: 9px 0; font-size: 13px; }
.m-body .settled li b { grid-column: 2; white-space: normal; }
.m-body .settled li span { grid-column: 2; white-space: normal; }
.m-body .settled li .btn { grid-column: 3; grid-row: 1 / span 2; min-height: 36px; }
.m-body .settled li .ico { grid-row: 1; }
.m-body .tasks-body { padding: 2px 14px 16px; overflow: visible; }
.m-body .task { padding: 8px 12px 8px 13px; margin-bottom: 6px; }
.m-body .task-title { font-size: 14.5px; white-space: normal; }
.m-body .task-sub { font-size: 13px; min-height: 24px; flex-wrap: wrap; }
.m-body .task-sub .btn { min-height: 34px; font-size: 13px; margin-top: -10px; }
.m-body .group-head { padding-top: 10px; }
.m-body .thread { padding: 14px; overflow: visible; }
.m-body .msg .bubble { font-size: 14.5px; }
.m-body .cal { padding: 8px 16px; }
.m-body .cal li { font-size: 14px; padding: 13px 2px; grid-template-columns: 84px 1fr; }
.m-link { display: flex; align-items: center; gap: 8px; margin: 4px 14px 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.m-link b { color: var(--yellow); }
.screen .composer { background: var(--surface); padding: 10px 12px 14px; }
.screen .composer input { height: 44px; font-size: 15px; }
.screen .composer .btn { min-height: 44px; width: 44px; padding: 0; }

/* Vrai téléphone (ou capture 390 × 844) : plus de cadre, plein écran. */
@media (max-width: 480px) {
  .mq-banner { height: 24px; font-size: 10.5px; padding: 0 12px; }
  .mq-banner nav { display: none; }
  body.mobile-page { height: 100dvh; display: grid; grid-template-rows: 24px minmax(0, 1fr); overflow: hidden; }
  .phones-page { padding: 0; min-height: 0; }
  .phones-intro, .phone-slot figcaption { display: none; }
  .phones, .phone-slot { display: block; height: 100%; }
  .phone { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: none; }
  .screen { width: 100%; height: 100%; border-radius: 0; }
  .phone-slot.hide { display: none; }
}

/* --- Accueil -------------------------------------------------------------- */
.home { max-width: 1120px; margin: 0 auto; padding: 44px 28px 64px; }
.home h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; color: var(--ink); margin: 10px 0 10px; }
.home .lead { max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.home-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.home-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.home-card .shot { height: 250px; background: #0b0b0b center top / cover no-repeat; border-bottom: 1px solid var(--line); }
.home-card .shot.contain { background-size: auto 100%; background-position: center; }
.home-card .txt { padding: 14px 16px 16px; display: grid; gap: 4px; }
.home-card .eyebrow { color: var(--yellow); }
.home-card h2 { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.home-card p { color: var(--muted); font-size: 13.5px; }
.home-rules { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-rules div { padding: 14px 16px; border-left: 3px solid var(--yellow); background: var(--surface); border-radius: 0 10px 10px 0; }
.home-rules b { display: block; color: var(--ink); margin-bottom: 2px; }
.home-rules span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .home-grid, .home-rules { grid-template-columns: 1fr; } }
