/* Launchlane dashboard — no inline styles anywhere (CSP forbids them). */
:root {
  --paper: #f6f3ee; --paper-2: #eeeae2; --surface: #fff; --ink: #12151a; --ink-2: #3b4350; --muted: #6b7380;
  --line: #ddd7cb; --accent: #ff5a36; --accent-ink: #fff; --accent-soft: #ffe6df; --green: #0e3b2e; --green-soft: #dfeee7;
  --red: #b3261e; --red-soft: #fde2de; --amber-soft: #fff1cf; --amber: #7a5200;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1216; --paper-2: #151a20; --surface: #181e26; --ink: #f1ede6; --ink-2: #cdd2da; --muted: #9aa3b0;
    --line: #28303b; --accent: #ff6a47; --accent-ink: #14100e; --accent-soft: #3a211b; --green: #8fd9b6; --green-soft: #15302a;
    --red: #ffb4a8; --red-soft: #3a1814; --amber-soft: #3a2f10; --amber: #ffd37a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.2rem; margin-top: 1.8em; } h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.muted { color: var(--muted); } .block { display: block; }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--paper-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; padding: 0 8px; }
.logo span { font: 600 .7rem var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-left: 4px; }
.side nav { display: grid; gap: 2px; }
.side nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; }
.side nav a:hover { background: var(--surface); }
.side nav a.on { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.signout { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.who { color: var(--muted); font-size: .85rem; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; max-width: 1200px; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } .side nav { grid-auto-flow: column; overflow-x: auto; } .signout { margin: 0; } }

.pill { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.flash { padding: 10px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.flash.err { background: var(--red-soft); color: var(--red); }
.flash.ok { background: var(--green-soft); color: var(--green); }
.secret { font-family: ui-monospace, Menlo, monospace; background: var(--surface); color: var(--ink); padding: 10px; border-radius: 8px; margin-top: 8px; word-break: break-all; user-select: all; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.card h2 { margin-top: 0; }
.narrow { max-width: 460px; }
.login { width: min(400px, 100%); display: grid; gap: 14px; }
.login h1 span { font: 600 .75rem var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; margin: 16px 0; }
.stack { display: grid; gap: 10px; } .stack-lg { display: grid; gap: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bar input { flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.head { margin-bottom: 8px; }

label { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; width: 100%; }
input[type=checkbox] { width: auto; } input[type=file] { padding: 6px; width: auto; max-width: 220px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inline select, .inline input { width: auto; } .note input { flex: 1 1 260px; }

.btn { font: 600 .92rem var(--sans); background: var(--accent); color: var(--accent-ink); border: 2px solid transparent; border-radius: 999px; padding: 9px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(1.06); } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.danger { background: var(--red); color: var(--paper); }
.btn.small { padding: 6px 14px; font-size: .85rem; } .btn.tiny { padding: 4px 10px; font-size: .78rem; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
th { background: var(--paper-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; } .clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: grid; gap: 6px; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.s-new { background: var(--paper-2); } .s-audited, .s-preview_built { background: var(--amber-soft); color: var(--amber); }
.s-contacted, .s-replied, .s-call { background: var(--accent-soft); color: var(--accent); }
.s-won, .c-given { background: var(--green-soft); color: var(--green); } .s-lost, .c-suppressed, .c-withdrawn { background: var(--red-soft); color: var(--red); }
.sev-high { background: var(--red-soft); color: var(--red); } .sev-medium { background: var(--amber-soft); color: var(--amber); }

.stats, .funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat, .step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; display: grid; gap: 2px; }
.stat b, .step b { font: 800 1.9rem var(--display); } .stat span, .step span { color: var(--muted); font-size: .84rem; text-transform: capitalize; }
.stat.big { border-color: var(--accent); }
a.stat:hover, a.step:hover { border-color: var(--accent); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.col { background: var(--paper-2); border-radius: 12px; padding: 10px; min-height: 120px; }
.col h3 { text-transform: capitalize; font: 700 .85rem var(--sans); margin-bottom: 8px; display: flex; justify-content: space-between; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: grid; gap: 6px; }
.kcard form { display: flex; gap: 6px; } .kcard select { padding: 4px 6px; font-size: .8rem; }

.timeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--line); padding-left: 12px; }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--paper); border-radius: 8px; padding: 8px 10px; margin-top: 4px; font-size: .88rem; }
.issues { padding-left: 20px; display: grid; gap: 12px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dot.ok { background: #2e9b6b; } .dot.bad { background: var(--red); } .dot.unk { background: var(--muted); }

.switch-on { border-color: var(--accent); } .switch-off { border-color: var(--line); }
.steps { padding-left: 20px; display: grid; gap: 8px; margin: 8px 0 14px; } .seq { margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); background: var(--paper); color: var(--green); cursor: pointer; font-weight: 800; line-height: 1; padding: 0; }
.tick.done { background: var(--green-soft); border-color: var(--green); } .struck { text-decoration: line-through; color: var(--muted); }
