/* SMASH client dashboard. Ink header, white working surfaces, Smash Green only for the one action that matters. */
:root {
  --green: #00EE7B; --green-press: #00D96F; --ink: #0E1210; --ink-2: #1A211D;
  --slate: #595959; --muted: #5C6460; --paper: #F3F6F4; --mint: #D4FAE6; --deep: #00753D;
  --line: rgba(14, 18, 16, .12); --bad: #B42D08; --bad-bg: #FDECE6; --white: #FFFFFF;
  --f-display: "Archivo", "Arial Black", Arial, sans-serif;
  --f-text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; }
a { color: var(--deep); }
h1, h2 { font-family: var(--f-display); font-stretch: 115%; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 850; }
h2 { font-size: 16px; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main { padding-block: 28px 64px; display: grid; gap: 18px; }

.top { background: var(--ink); color: var(--white); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: inherit; }
.mark { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: var(--green); line-height: 1; }
.sub { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #A6ADA9; }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #D6DDD9; }
.who form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

.card { background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.narrow { max-width: 440px; width: 100%; margin: 6vh auto 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.muted { color: var(--muted); font-size: 15px; }
.eyebrow { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.alert { background: var(--bad-bg); color: var(--bad); border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.ok { background: var(--mint); border-radius: var(--r); padding: 12px 14px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; margin-top: -6px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; }
.crumbs span { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.tabs a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.tabs a:hover { background: var(--white); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--green); }

.stack { display: grid; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .field:first-child { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 700; font-size: 14px; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 6px; border: 1.5px solid rgba(14, 18, 16, .3);
  background: var(--white); color: var(--ink); font: 500 16px/1.2 var(--f-text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 117, 61, .25); }
.field small { color: var(--muted); font-size: 13px; }
.field em { color: var(--bad); font-style: normal; font-size: 14px; font-weight: 600; }
.field.bad input, .field.bad select { border-color: var(--bad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--green); color: var(--ink); font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.btn:hover { background: var(--green-press); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--paper); }
.stack .btn { justify-self: start; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }

.side h2 { margin-top: 4px; }
.kv { margin: 0; display: grid; }
.kv div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.preview .headline { font-family: var(--f-display); font-stretch: 115%; font-weight: 850; font-size: 22px; line-height: 1.15; }
.world { list-style: none; margin: 0; padding: 0; display: grid; }
.world li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.world li:last-child { border-bottom: 0; }
.world b { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.world small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

.scroll { overflow-x: auto; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th, .diff td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.diff thead th { font-family: var(--f-display); font-stretch: 112%; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.diff tbody th { font-weight: 700; }
.diff tr.changed td:last-child { font-weight: 700; background: linear-gradient(90deg, var(--mint), transparent); padding-left: 8px; }
.diff tr.same td { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.good { background: var(--mint); color: var(--deep); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--white); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.tile:hover { box-shadow: 0 0 0 2px var(--ink); }
.tile b { font-family: var(--f-display); font-stretch: 112%; font-size: 18px; }
.tile span { color: var(--muted); font-size: 14px; }

[hidden] { display: none !important; }
.small { font-size: 13px; }

/* ---------- Project checklist ---------- */
.cl-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; }
.cl-summary .muted { max-width: 62ch; margin-top: 6px; }
.cl-total { display: grid; justify-items: end; gap: 4px; min-width: 200px; }
.cl-total b { font-family: var(--f-display); font-stretch: 120%; font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.cl-total > span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .cl-summary { grid-template-columns: 1fr; } .cl-total { justify-items: start; } }

progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--paper); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--paper); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 99px; }

.cl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--f-text); box-shadow: inset 0 0 0 1px var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--green); box-shadow: none; }

.cl-sections { display: grid; gap: 14px; }
.cl-section { gap: 6px; padding-bottom: 12px; }
.cl-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding-bottom: 6px; }
.cl-sec-head h2 { font-size: 19px; }
.cl-sec-count { display: grid; gap: 4px; justify-items: end; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-items { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.cl-toggle { margin: 0; }
.cl-box { width: 26px; height: 26px; margin-top: 1px; border-radius: 6px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 2px rgba(14, 18, 16, .35); padding: 0; }
.cl-box:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.cl-box svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cl-box[aria-pressed="true"] { background: var(--green); box-shadow: none; }
.cl-box[aria-pressed="true"] svg { opacity: 1; }
.cl-box[disabled] { cursor: progress; opacity: .7; }
.cl-text { display: grid; gap: 2px; min-width: 0; }
.cl-title { font-weight: 600; overflow-wrap: anywhere; }
.cl-item.is-done .cl-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(14, 18, 16, .35); }
.cl-detail { font-size: 14px; color: var(--muted); }
.cl-meta { font-size: 12px; color: var(--deep); }
.cl-meta:empty { display: none; }
.cl-meta.bad { color: var(--bad); }
.owner { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.owner-john { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.owner-laura { background: var(--ink); color: var(--green); }
.owner-john-laura { background: var(--mint); color: var(--deep); }
@media (max-width: 560px) { .cl-item { grid-template-columns: 34px minmax(0, 1fr); } .owner { grid-column: 2; justify-self: start; } .cl-sec-head { grid-template-columns: 1fr; } .cl-sec-count { justify-items: start; } }
