/* Wind Fisher Cockpit — instrument sombre en rive, pont de lecture clair */
:root {
  --page: #f3f5f4;
  --surface: #fcfcfb;
  --ink: #10161b;
  --ink-2: #4c5560;
  --muted: #898781;
  --hair: #e1e0d9;
  --panel: #10181f;          /* sidebar : panneau d'instruments */
  --panel-ink: #b9c6d0;
  --panel-hair: #223140;
  --accent: #2a78d6;
  --accent-deep: #1c5cab;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --s1: #2a78d6; --s2: #1baf7a; --s3: #eda100; --s4: #4a3aa7; --s5: #e87ba4;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.5; }

.shell { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 232px; flex: 0 0 232px; background: var(--panel); color: var(--panel-ink);
  display: flex; flex-direction: column; padding: 20px 0; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 20px 20px; text-decoration: none; color: #fff; border-bottom: 1px solid var(--panel-hair); }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3987e5, #1c5cab 70%); position: relative; flex: 0 0 28px; }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; top: 13px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.85); transform: rotate(-14deg); }
.brand-text { font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand-text em { display: block; font-style: normal; font-weight: 400; letter-spacing: .3em; font-size: 10px; color: var(--panel-ink); text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; }
.sidebar nav a {
  color: var(--panel-ink); text-decoration: none; padding: 9px 12px; border-radius: 7px; font-size: 14px;
  border-left: 2px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar nav a.active { background: rgba(42,120,214,.16); color: #fff; border-left-color: var(--accent); }
.sidebar-foot { margin-top: auto; padding: 14px 20px 0; border-top: 1px solid var(--panel-hair); font-size: 13px; display: grid; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--panel-hair); border-radius: 6px; overflow: hidden; width: max-content; }
.lang-switch a { color: var(--panel-ink); text-decoration: none; padding: 3px 10px; font-size: 12px; font-family: var(--mono); }
.lang-switch a.on { background: var(--accent-deep); color: #fff; }
.whoami strong { display: block; color: #fff; font-weight: 600; word-break: break-all; }
.role-badge { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #9fc1e8; }
.pw-details summary { cursor: pointer; color: var(--panel-ink); font-size: 12px; }
.pw-details form { margin-top: 8px; }
.linklike { background: none; border: none; color: var(--panel-ink); cursor: pointer; padding: 0 0 6px; font-size: 13px; text-decoration: underline; }
.linklike:hover { color: #fff; }

/* ---------- content ---------- */
.content { flex: 1; padding: 32px 40px 64px; max-width: 1180px; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
h2 { font-size: 17px; font-weight: 650; margin: 36px 0 12px; }
.page-sub { color: var(--ink-2); margin: 0 0 24px; max-width: 72ch; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* KPI tiles */
.kpi .label { font-size: 12.5px; color: var(--ink-2); }
.kpi .value { font-size: 26px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; margin: 2px 0; }
.kpi .note { font-size: 12.5px; color: var(--muted); }
.kpi .value.warn { color: var(--critical); }

/* runway gauge */
.gauge { height: 8px; background: #edece7; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.gauge span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }

/* pills & statuses (jamais couleur seule : point + libellé) */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.st_done::before { background: var(--good); }
.pill.st_in_progress::before { background: var(--accent); }
.pill.st_at_risk::before { background: var(--critical); }
.pill.st_open::before { background: var(--critical); }
.pill.st_mitigating::before { background: var(--warning); }
.pill.st_closed::before { background: var(--good); }

.chip { font-family: var(--mono); font-size: 12px; background: #eef1f0; border: 1px solid var(--hair); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--hair); }
td { padding: 8px 10px; border-bottom: 1px solid #edece7; vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--hair); }
.table-scroll { overflow-x: auto; }

/* phases (roadmap) */
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 20px; position: relative; padding: 20px 0 26px 0; }
.phase + .phase { border-top: 1px dashed var(--hair); }
.phase-when { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.phase-when .period { color: var(--ink); font-weight: 700; display: block; font-size: 14px; }
.phase-body h3 { margin: 0 0 2px; font-size: 16px; }
.phase-cost { font-family: var(--mono); font-weight: 700; }
.gate { border-left: 3px solid var(--accent-deep); background: #f0f5fb; padding: 8px 12px; border-radius: 0 7px 7px 0; font-size: 13.5px; margin: 10px 0; }
.objectives { margin: 8px 0; padding-left: 18px; font-size: 14px; }
.objectives li { margin: 3px 0; }
.wp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* TRL ladder — 9 crans, signature du cockpit */
.trl { display: inline-flex; gap: 3px; align-items: flex-end; margin: 6px 0; }
.trl i { width: 10px; border-radius: 2px; background: #e3e6e4; display: block; }
.trl i.on { background: var(--accent); }
.trl-label { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: 8px; }

/* progress */
.progress { height: 6px; background: #edece7; border-radius: 3px; overflow: hidden; flex: 1; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.progress-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; }

/* micro stacked bar (répartition WP par phase) */
.split { display: flex; height: 10px; border-radius: 3px; overflow: hidden; gap: 2px; min-width: 110px; }
.split i { display: block; height: 100%; }
.split .p1 { background: var(--s1); } .split .p2 { background: var(--s2); } .split .p3 { background: var(--s3); }
.split .p4 { background: var(--s4); } .split .p5 { background: var(--s5); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* forms */
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 7px; background: #fff; color: var(--ink); width: 100%;
}
textarea { resize: vertical; min-height: 38px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { font: inherit; font-weight: 600; background: var(--accent-deep); color: #fff; border: none; border-radius: 7px; padding: 8px 16px; cursor: pointer; }
.btn:hover { background: #164a8c; }
.btn-small { padding: 5px 12px; font-size: 13px; }
.stack { display: grid; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; }
.inline-form input[type=number] { width: 76px; }
.flash { background: #ecf6ec; border: 1px solid #bfe3bf; color: #1c5c1c; padding: 8px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.flash.err { background: #fbeeee; border-color: #eec8c8; color: #7c2222; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background:
  linear-gradient(160deg, #10181f 0%, #16273a 55%, #1c5cab 140%); width: 100%; }
.login-card { width: 380px; max-width: calc(100vw - 40px); background: var(--surface); border-radius: 12px; padding: 34px 34px 28px; }
.login-card .brand-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.login-card h1 { font-size: 20px; }
.login-card .page-sub { margin-bottom: 20px; }

/* charts */
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 340px; }

/* misc */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.right { text-align: right; }
.mt0 { margin-top: 0; }

@media (max-width: 920px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; padding: 12px 0; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar nav a { border-left: none; }
  .content { padding: 20px 16px 48px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- copilote IA ---------- */
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 14px; max-height: 440px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--accent-deep); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #f0f2f1; border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.msg.pending { color: var(--muted); font-style: italic; }
.msg.error { border-color: #eec8c8; background: #fbeeee; color: #7c2222; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip-btn { cursor: pointer; font-family: var(--sans); background: #fff; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; }
.brief-out { margin-top: 14px; border-top: 1px solid var(--hair); padding-top: 12px; font-size: 13.5px; line-height: 1.6; max-height: 480px; overflow-y: auto; }
.brief-h { font-weight: 700; margin-top: 10px; }
.brief-li { padding-left: 14px; position: relative; }
.brief-li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.brief-sp { height: 6px; }
@media (max-width: 920px) { .grid[style*="2fr 1fr"] { grid-template-columns: 1fr !important; } }

/* ---------- passe UX ---------- */
.nav-ic { display: inline-block; width: 22px; color: #7d93a6; font-size: 13px; }
.sidebar nav a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; }
.sidebar nav a.active .nav-ic, .sidebar nav a:hover .nav-ic { color: var(--accent); }

/* toast de confirmation flottant */
.flash.toast {
  position: fixed; top: 18px; right: 22px; z-index: 90; margin: 0;
  box-shadow: 0 6px 24px rgba(16,24,31,.14); animation: toast-in .18s ease-out;
  transition: opacity .5s, transform .5s;
}
.flash.toast::before { content: "✓ "; font-weight: 700; }
.flash.toast-out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* résumé "En clair" */
.plain { background: linear-gradient(135deg, #10181f, #16273a); color: #dce6ee; border-radius: 12px; padding: 20px 24px; margin-bottom: 22px; }
.plain .eyebrow { color: #7d93a6; }
.plain ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.plain li { font-size: 15.5px; line-height: 1.45; padding-left: 26px; position: relative; }
.plain li b { color: #fff; }
.plain li::before { position: absolute; left: 0; }
.plain li.ok::before { content: "●"; color: #35c46f; }
.plain li.warn::before { content: "●"; color: #fab219; }
.plain li.bad::before { content: "●"; color: #ff7a76; }

/* curseur d'avancement */
input[type=range] { accent-color: var(--accent); width: 150px; vertical-align: middle; }
.range-out { font-family: var(--mono); font-size: 12.5px; width: 42px; display: inline-block; text-align: right; }

/* ancres roadmap */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.toc a { text-decoration: none; }
.toc .chip { font-family: var(--sans); font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #fff; }
.toc .chip:hover { border-color: var(--accent); color: var(--accent-deep); }

/* champs d'édition plus discrets tant qu'on n'interagit pas */
.inline-form select, .inline-form input[type=text], .inline-form input[type=month], .inline-form input[type=number] {
  background: transparent; border-color: transparent; transition: border-color .12s, background .12s;
}
.inline-form select:hover, .inline-form input:hover, .inline-form select:focus, .inline-form input:focus { background: #fff; border-color: var(--hair); }
tr:hover .inline-form select, tr:hover .inline-form input { border-color: var(--hair); background: #fff; }

/* confort tactile */
@media (max-width: 920px) {
  .msg { max-width: 95%; }
  .kpi .value { font-size: 22px; }
  .inline-form select, .inline-form input { background: #fff; border-color: var(--hair); }
}

/* ---------- menu rétractable ---------- */
.sidebar { transition: width .15s ease, flex-basis .15s ease; }
.nav-toggle {
  position: absolute; top: 22px; right: -12px; z-index: 20;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--panel-hair);
  background: var(--panel); color: var(--panel-ink); cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle:hover { color: #fff; border-color: var(--accent); }
.sidebar { position: sticky; }
.sidebar-inner-anchor { position: relative; }
html.nav-collapsed .sidebar { width: 64px; flex: 0 0 64px; }
html.nav-collapsed .nav-label { display: none; }
html.nav-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
html.nav-collapsed .sidebar nav a { justify-content: center; padding: 11px 0; }
html.nav-collapsed .nav-ic { width: auto; font-size: 16px; }
html.nav-collapsed .sidebar-foot > * { display: none; }
html.nav-collapsed .sidebar-foot { border-top: none; }
html.nav-collapsed .nav-toggle-ic { display: inline-block; transform: rotate(180deg); }
@media (max-width: 920px) {
  .nav-toggle { display: none; }
  html.nav-collapsed .sidebar { width: 100%; flex: none; }
  html.nav-collapsed .nav-label { display: inline; }
  html.nav-collapsed .sidebar nav a { justify-content: flex-start; padding: 9px 12px; }
  html.nav-collapsed .sidebar-foot > * { display: block; }
}

/* édition de phase */
.phase-edit { margin-top: 12px; }
.phase-edit summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.phase-edit summary:hover { color: var(--accent-deep); }
.phase-edit textarea { font-size: 13px; }

/* inputs discrets dans les cellules de tableau (sans casser le layout table) */
td > select, td > input[type=text], td > input[type=month], td > input[type=number] {
  background: transparent; border-color: transparent; transition: border-color .12s, background .12s;
}
td > select:hover, td > input:hover, td > select:focus, td > input:focus,
tr:hover td > select, tr:hover td > input { background: #fff; border-color: var(--hair); }
@media (max-width: 920px) { td > select, td > input { background: #fff; border-color: var(--hair); } }

/* ===== Copilot chat (v3) — full-height conversation ===== */
.cp-shell { display: flex; flex-direction: column; height: calc(100vh - 76px); min-height: 460px; max-width: 880px; margin: -6px auto 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 14px; border-bottom: 1px solid var(--hair); }
.cp-id { display: flex; align-items: center; gap: 12px; }
.cp-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.cp-status { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--critical); display: inline-block; }
.cp-dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(12,163,12,.14); }
.cp-head-right { display: flex; align-items: center; gap: 8px; }
.cp-model select { font-size: 12.5px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; }
.cp-tool { font-size: 12.5px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; white-space: nowrap; }
.cp-tool:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.cp-tool:disabled { opacity: .45; cursor: default; }

.cp-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px 4px; scroll-behavior: smooth; }
.cp-row { display: flex; gap: 11px; align-items: flex-start; animation: cp-in .25s ease-out; }
.cp-row.user { flex-direction: row-reverse; }
@keyframes cp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cp-avatar { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; margin-top: 16px; }
.cp-avatar-ai { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 2px 8px rgba(28,92,171,.25); }
.cp-avatar-user { background: var(--ink); color: #fff; }

.cp-bubble-wrap { max-width: 78%; min-width: 0; }
.cp-row.user .cp-bubble-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.cp-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin: 0 6px 4px; }
.cp-bubble { position: relative; padding: 12px 16px; border-radius: 16px; font-size: 14.25px; line-height: 1.62; overflow-wrap: break-word; box-shadow: 0 1px 2px rgba(16,22,27,.05); }
.cp-row.assistant .cp-bubble { background: #fff; border: 1px solid var(--hair); border-top-left-radius: 5px; }
.cp-row.user .cp-bubble { background: var(--accent-deep); color: #fff; border-top-right-radius: 5px; box-shadow: 0 2px 8px rgba(28,92,171,.22); }
.cp-bubble.cp-error { background: #fbeeee; border-color: #eec8c8; color: #7c2222; }
.cp-bubble .brief-h { margin-top: 12px; }
.cp-bubble .brief-h:first-child { margin-top: 0; }

.cp-copy { display: block; margin-top: 10px; font-size: 11.5px; font-family: var(--mono); color: var(--muted); background: none; border: 1px solid var(--hair); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.cp-copy:hover { color: var(--accent-deep); border-color: var(--accent); }

.cp-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.cp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: cp-blink 1.2s infinite both; }
.cp-typing i:nth-child(2) { animation-delay: .18s; }
.cp-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes cp-blink { 0%, 70%, 100% { opacity: .2; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.cp-applied { margin-top: 12px; border-left: 3px solid var(--good); background: rgba(12,163,12,.06); border-radius: 8px; padding: 9px 13px; }
.cp-applied-h { font-weight: 700; font-size: 12.5px; color: #0a7d0a; margin-bottom: 4px; }
.cp-applied-li { font-size: 13px; padding: 1px 0; }
.cp-applied-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.cp-bottom { padding: 8px 4px 2px; border-top: 1px solid var(--hair); background: var(--page); }
.cp-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 10px; transition: opacity .2s; }
.cp-suggest[hidden] { display: none; }
.cp-suggest.cp-dim { opacity: .35; pointer-events: none; }
.cp-chip { font-size: 12.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-chip:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(42,120,214,.05); }

.cp-input { position: relative; display: flex; }
.cp-input input { flex: 1; border-radius: 14px; padding: 15px 58px 15px 18px; font-size: 14.5px; border: 1px solid var(--hair); background: #fff; box-shadow: 0 2px 10px rgba(16,22,27,.05); }
.cp-input input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(42,120,214,.13); }
.cp-send { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 11px; border: none; background: var(--accent-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.cp-send svg { margin-left: 1px; }
.cp-send:hover:not(:disabled) { background: var(--accent); }
.cp-send:disabled { opacity: .4; cursor: default; }
.cp-foot { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 0 4px; }

.cp-empty { margin: auto; text-align: center; padding: 16px; max-width: 640px; width: 100%; animation: cp-in .3s ease-out; }
.cp-empty-mark { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(28,92,171,.28); }
.cp-empty-title { font-weight: 700; font-size: 19px; letter-spacing: -.015em; color: var(--ink); }
.cp-empty-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.cp-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; text-align: left; }
.cp-starter { display: flex; gap: 9px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); background: #fff; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.cp-starter:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 3px 12px rgba(28,92,171,.10); transform: translateY(-1px); }
.cp-starter-ic { color: var(--accent); font-weight: 700; flex-shrink: 0; }

@media (max-width: 900px) {
  .cp-shell { height: calc(100vh - 60px); }
  .cp-bubble-wrap { max-width: 90%; }
  .cp-starters { grid-template-columns: 1fr; }
  .cp-head { flex-wrap: wrap; }
}
