/* SocioEZ Client Portal — brand kit: near-black, forest, off-white, lime highlight.
   Layout: dark sidebar + warm paper workspace; collapses to a top bar on phones. */
:root {
  color-scheme: light;
  --ink: #0B1713; --ink-2: #10201A; --ink-3: #172B23;
  --forest: #194D29; --forest-2: #1F6034;
  --paper: #F5F0E9; --paper-2: #EAE3D7; --card: #FBF8F3;
  --hi: #B9F27C; --coral: #F0A58C; --coral-ink: #8A3220;
  --muted: #55615A; --muted-d: rgb(245 240 233 / 0.66);
  --line: #D9CFBF; --line-d: rgb(245 240 233 / 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.4vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; padding-top: env(safe-area-inset-top, 0px); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--forest); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--forest); }
.loading { padding: 60px var(--gutter); color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; padding: 12px 20px; border-radius: 999px; font: 800 14.5px/1 var(--sans); background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--forest); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.hi { background: var(--hi); color: var(--ink); }
.btn.hi:hover { background: #CBFA95; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.bad { background: var(--coral-ink); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.bad { color: var(--coral-ink); }
.icon-btn { background: none; border: 0; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn svg { width: 17px; height: 17px; }

/* pills */
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 700 12.5px/1.2 var(--sans); background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.s-onboarding { background: #E4ECF7; color: #1D3F6E; }
.s-active, .p-passed, .w-reviewed { background: var(--hi); color: var(--ink); }
.s-paused, .p-todo { background: var(--paper-2); color: var(--muted); }
.s-completed { background: var(--forest); color: var(--paper); }
.p-doing, .w-assigned { background: #FFF0C2; color: #6B4E00; }
.s-review, .w-submitted { background: var(--coral); color: var(--ink); }
.pill.now { background: var(--ink); color: var(--hi); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted-d); }
.dot.s-active { background: var(--hi); } .dot.s-onboarding { background: #8DB3EA; } .dot.s-paused { background: var(--muted); } .dot.s-completed { background: var(--forest-2); }

/* demo bar */
.demo-bar { background: var(--hi); color: var(--ink); text-align: center; font: 700 13px/1.3 var(--sans); padding: 8px var(--gutter); }
.demo-bar button { background: none; border: 0; text-decoration: underline; font-weight: 800; cursor: pointer; padding: 0; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: radial-gradient(90% 70% at 20% 0%, #1B5A30 0%, transparent 65%), var(--ink); color: var(--paper); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.login-brand h1 { font: 400 clamp(44px, 6vw, 84px)/0.95 var(--serif); letter-spacing: -0.015em; max-width: 11ch; }
.login-brand h1 em { background: linear-gradient(transparent 14%, var(--hi) 14%, var(--hi) 92%, transparent 92%); color: var(--ink); padding-inline: 0.06em; }
.login-brand p { color: var(--muted-d); max-width: 32em; font-size: 17px; }
.login-form { padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.login-form form { display: grid; gap: 12px; max-width: 420px; }
.login-form h2 { font: 400 44px/1 var(--serif); }
.login-form label { font-weight: 700; margin-top: 8px; }
.login-msg { min-height: 1.4em; font-weight: 600; }
.login-msg.ok { color: var(--forest); } .login-msg.bad { color: var(--coral-ink); }
.demo-box { max-width: 420px; padding: 18px; border-radius: 14px; border: 1px dashed var(--forest); display: grid; gap: 10px; }
.logo { font: italic 400 30px/1 var(--serif); color: var(--paper); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.logo small { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; font-style: normal; color: var(--muted-d); }

/* shell */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: var(--paper); padding: 24px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding-inline: 10px; }
.side-nav { display: grid; gap: 2px; align-content: start; flex: 1; }
.side-label { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); padding: 18px 10px 8px; }
.side-link { display: flex; gap: 10px; align-items: center; color: var(--paper); text-decoration: none; padding: 10px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.side-link.sub { font-weight: 500; }
.side-link .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.demo-note { color: var(--hi); font-size: 12.5px; line-height: 1.4; }
.demo-note .link-btn { padding: 0; font-size: 12.5px; }
.side-link:hover { background: var(--ink-3); }
.side-link.on { background: var(--forest); }
.side-empty { color: var(--muted-d); font-size: 13.5px; padding: 6px 10px; }
.side-foot { border-top: 1px solid var(--line-d); padding: 14px 10px 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted-d); }
.side-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .link-btn { color: var(--hi); justify-self: start; }
.main { padding: 32px var(--gutter) 80px; min-width: 0; max-width: 1180px; width: 100%; }

/* page heads */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1, .client-head h1 { font: 400 clamp(38px, 4.6vw, 58px)/1 var(--serif); margin-top: 6px; }
.client-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; }
.client-head p { margin-top: 6px; }
.station-now { text-align: right; }
.station-now b { display: block; font: italic 400 28px/1.1 var(--serif); margin-top: 4px; }
.admin-bar { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); margin-bottom: 14px; }
.admin-bar label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.admin-bar select { padding: 7px 10px; width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); overflow-x: auto; margin-bottom: 26px; scrollbar-width: none; }
.tabs a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; border-radius: 10px 10px 0 0; }
.tabs a:hover { color: var(--ink); background: var(--paper-2); }
.tabs a.on { background: var(--ink); color: var(--paper); }
.sub-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sub-head h2 { font: 400 clamp(28px, 3.2vw, 38px)/1.05 var(--serif); margin-top: 4px; }
.sub-head p { margin-top: 6px; max-width: 46em; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; }
.save { font-size: 13px; color: var(--muted); }
.save[data-state="saving"] { color: #6B4E00; } .save[data-state="error"] { color: var(--coral-ink); font-weight: 700; }

/* stats / tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stats div { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stats strong { display: block; font: 400 40px/1 var(--serif); }
.stats span { font-size: 13px; color: var(--muted); }
.stats .hot { background: var(--coral); border-color: var(--coral); }
.stats .hot span { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.tile:hover { border-color: var(--forest); }
.tile strong { font: 400 34px/1.05 var(--serif); overflow-wrap: anywhere; }
.tile span:last-child { font-size: 13px; color: var(--muted); }
.tile.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile.dark .kicker { color: var(--hi); }
.tile.dark span:last-child { color: var(--muted-d); }
.block { margin-top: 30px; }
.block h2 { font: 800 19px/1.3 var(--sans); letter-spacing: -0.01em; margin-bottom: 12px; }
.nexts { display: grid; gap: 8px; }
.next { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.next:hover { border-color: var(--forest); }
.next span { color: var(--muted); font-size: 13.5px; }
.next.hot { border-color: var(--coral); background: #FBE6DE; }
.gatecard { padding: 22px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.gatecard .kicker { color: var(--hi); }
.gq { font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); margin-top: 8px; }
.gl { color: var(--muted); font-size: 14px; margin-top: 6px; }
.gatecard .gl { color: var(--muted-d); }
.people { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.people li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; }
.people li + li { border-top: 1px solid var(--line); }
.people li > span:first-child { overflow-wrap: anywhere; font-weight: 600; }
#addMember { position: relative; }
#addMember input { flex: 1; min-width: 200px; }
.danger { margin-top: 22px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
.danger summary { cursor: pointer; font-weight: 700; color: var(--coral-ink); }
.danger p { margin: 10px 0; color: var(--muted); }

/* panels & forms */
.panel { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 16px; margin-bottom: 22px; }
.panel h2 { font: 400 30px/1 var(--serif); }
.panel.inline { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.f { display: grid; gap: 8px; min-width: 0; grid-column: span 2; align-content: start; }
.f.half { grid-column: span 1; }
.f > label, .f > .lbl, .journey > .lbl { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.req { color: var(--coral-ink); margin-left: 3px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--ink); }
.panel input, .panel select, .panel textarea { background: #fff; }
textarea { min-height: 100px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #9AA39D; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(25 77 41 / 0.14); }
input:disabled, textarea:disabled { background: var(--paper-2); color: var(--ink); }
.missing input, .missing textarea, .missing .chips { box-shadow: 0 0 0 2px var(--coral); border-radius: 10px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.prefix input { padding-left: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; line-height: 1.2; }
.chip:hover:not(:disabled) { border-color: var(--forest); }
.chip:disabled { cursor: default; opacity: 0.75; }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chip.yes[aria-pressed="true"] { background: var(--hi); border-color: #8CCB52; color: var(--ink); }
.chip.no[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.gate { grid-column: span 2; display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.gate .gk { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hi); }
.gate .gq { margin: 0; }
.gate .gl { color: var(--muted-d); margin: 0; }
.gate .chip { background: transparent; border-color: var(--line-d); color: var(--paper); }
.gate .chip[aria-pressed="true"] { color: var(--ink); }
.gate .chip.unsure[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); }
.access { grid-column: span 2; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 14px; }
.acc-row + .acc-row { border-top: 1px solid var(--line); }
.acc-row b { display: block; font-size: 14.5px; }
.acc-row small { color: var(--muted); font-size: 12.5px; }
.acc-row .chip { padding: 6px 11px; font-size: 13px; }
.journey { grid-column: span 2; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.step .sn { font: italic 400 28px/1 var(--serif); color: var(--forest); text-align: center; }
.step-tools { display: flex; gap: 2px; }
.arrow-down { padding-left: 12px; color: var(--line); line-height: 0.6; }
.add { justify-self: start; cursor: pointer; background: none; font-weight: 700; font-size: 14px; color: var(--forest); padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--forest); margin-top: 10px; }
.add:hover { background: var(--paper-2); }

/* onboarding */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.seg button { border: 0; background: none; cursor: pointer; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button small { font-weight: 600; opacity: 0.75; margin-left: 4px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg.small button { padding: 6px 10px; font-size: 12.5px; }
.phase-intro { padding: 10px 0 18px; border-bottom: 2px solid var(--ink); }
.phase-intro h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.05 var(--serif); }
.phase-intro h2 em { font-style: italic; }
.phase-intro p { margin-top: 8px; max-width: 46em; }
.sec { padding-block: 28px; border-bottom: 1px solid var(--line); }
.sec-h { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; margin-bottom: 18px; }
.sec-h .k { font: 800 12px/1 var(--sans); letter-spacing: 0.12em; color: var(--forest); }
.sec-h h3 { font: 800 21px/1.2 var(--sans); letter-spacing: -0.02em; }
.sec-h p { grid-column: 2; color: var(--muted); font-size: 14.5px; max-width: 46em; }
.sec-h .quote { font: italic 400 19px/1.3 var(--serif); color: var(--forest); }
.sec + .row, .grid + .row { margin-top: 24px; }
.note { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); margin-bottom: 16px; }
.note.ok { background: #E6F5D5; }
.note.bad { background: #FBE6DE; border: 1px solid var(--coral); margin-top: 18px; }
.note ul { margin: 8px 0 0; padding-left: 18px; }
.note p { margin-top: 6px; }
.ws-form { margin-bottom: 24px; }

/* progress board */
.meter { text-align: right; min-width: 170px; }
.meter strong { font: italic 400 52px/0.9 var(--serif); color: var(--forest); }
.meter strong small { font-size: 26px; color: var(--muted); }
.meter span { display: block; font-size: 13px; color: var(--muted); }
.mini { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; width: 110px; }
.mini.wide { width: 100%; margin-top: 8px; }
.mini i { display: block; height: 100%; background: var(--forest); border-radius: 99px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; counter-reset: s; }
.st { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.st-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st .n { font: italic 400 40px/0.8 var(--serif); color: var(--forest); margin-right: auto; }
.st h3 { font: 800 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.st .gq { font-size: 20px; margin: 0; }
.st .gl { margin: 0; font-size: 13.5px; }
.st ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.st.st-passed { background: #EEF8E2; border-color: #B7DE8F; }
.st.st-doing { border-color: #E3C766; }
.st.current { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 3px var(--hi); }
.st.current .n { color: var(--hi); }
.st.current .gl { color: var(--muted-d); }
.st.current input { background: var(--ink-3); border-color: var(--line-d); color: var(--paper); }
.st.current .seg { background: var(--ink-3); }
.st.current .seg button { color: var(--muted-d); }
.st.current .seg button[aria-pressed="true"] { background: var(--hi); color: var(--ink); }
.st.current .link-btn { color: var(--hi); }
.st.scale { border-style: dashed; }
.st-edit { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.st.current .st-edit { border-color: var(--line-d); }
.st-note { margin-top: auto; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: 14px; color: var(--ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.card.link:hover { border-color: var(--forest); }
.card b { font-size: 16.5px; }
.pick { display: grid; gap: 10px; max-width: 520px; }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper-2); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #fff; }
.list td a { color: var(--ink); text-decoration: none; }
.list td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sheet td { padding: 4px 6px; }
.sheet input, .sheet select { border-color: transparent; background: transparent; padding: 8px 8px; border-radius: 6px; min-width: 90px; font-size: 14.5px; }
.sheet input:hover, .sheet select:hover { border-color: var(--line); }
.sheet td.t-check { text-align: center; }
.sheet td.t-check input { width: 18px; height: 18px; min-width: 0; accent-color: var(--forest); }
.sheet td.t-text input { min-width: 150px; }
.sheet td.t-date input { min-width: 140px; }
.sheet td.t-money input, .sheet td.t-number input { min-width: 100px; text-align: right; }
.sheet th.calc, .sheet td.calc { background: #EEF2EA; font-weight: 700; text-align: right; white-space: nowrap; }
.empty-row { padding: 22px !important; text-align: center; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.pills a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; background: var(--card); }
.pills a:hover { border-color: var(--forest); }
.pills a[aria-selected="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.sumrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sumrow div { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.sumrow span { display: block; font-size: 12px; color: var(--muted-d); }
.sumrow strong { font: 400 26px/1.1 var(--serif); }

/* reports */
.report { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; display: grid; gap: 14px; }
.report-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.report h3 { font: 400 30px/1.05 var(--serif); margin-top: 4px; }
.report .sumrow { margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.derived { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.derived span { display: inline-flex; gap: 6px; align-items: baseline; }
.derived small { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.derived b { font-size: 17px; }
.report-sum { max-width: 60em; }
.report .link { font-weight: 700; }

.empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty h2 { font: 400 30px/1.1 var(--serif); }
.empty p { color: var(--muted); max-width: 36em; }

#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--coral-ink); }

@media (max-width: 1000px) {
  .tiles, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: relative; height: auto; padding: 14px var(--gutter); gap: 10px; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-label { display: none; }
  .side-link { white-space: nowrap; flex: none; padding: 8px 12px; }
  .side-link.sub { max-width: 220px; }
  .side-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding-block: 40px; }
  .main { padding-top: 22px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .f.half { grid-column: span 2; }
  .panel.inline { grid-template-columns: minmax(0, 1fr); }
  .sec-h { grid-template-columns: 1fr; }
  .sec-h p { grid-column: 1; }
  .step { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .step .tool { grid-column: 2; }
  .step-tools { grid-row: 1; grid-column: 3; }
  .acc-row { grid-template-columns: minmax(0, 1fr); }
  .people li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .station-now, .meter { text-align: left; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* access keys */
.key-input { font: 600 17px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.login-form code, .demo-box code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.login-form .link-btn { justify-self: start; }
.mini-h { font: 800 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); margin-top: 18px; }
.key-reveal { display: grid; gap: 10px; padding: 20px; border-radius: 16px; background: var(--ink); color: var(--paper); margin: 12px 0 8px; }
.key-reveal .kicker { color: var(--hi); }
.key-reveal code.key { font: 700 clamp(20px, 3.4vw, 30px)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; color: var(--hi); overflow-wrap: anywhere; user-select: all; }
.key-reveal p { color: var(--muted-d); font-size: 14px; }
.key-reveal textarea { min-height: 120px; background: var(--ink-3); border-color: var(--line-d); color: var(--paper); font-size: 14px; }
.key-reveal .btn.ghost { color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-d); }
.key-reveal .btn.ghost:hover { background: var(--ink-3); }
.key-reveal .link-btn { color: var(--hi); }
#addKey input { flex: 1; min-width: 200px; }
#addKey { position: relative; }
.email-logins { margin-top: 22px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
.email-logins summary { cursor: pointer; font-weight: 700; }
.email-logins > p { margin-top: 8px; }
.confirm-box { margin-top: 16px; padding: 16px; border-radius: 12px; background: #FBE6DE; border: 1px solid var(--coral); display: grid; gap: 12px; }
.people small { font-weight: 500; }

/* weekly check-ins */
.ck-done { background: var(--hi); color: var(--ink); }
.ck-due { background: #FFF0C2; color: #6B4E00; }
.ck-missed { background: var(--coral); color: var(--ink); }
.ck-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; text-decoration: none; color: var(--ink); background: #FFF6D6; border: 1px solid #E8CF73; }
.ck-banner.missed { background: #FBE6DE; border-color: var(--coral); }
.ck-banner b { display: block; font-size: 15.5px; }
.ck-banner small { color: var(--muted); font-size: 13px; }
.ck-banner .btn { pointer-events: none; }
.wk-row { margin-bottom: 16px; gap: 12px; }
.wk-row .lbl { font-weight: 700; }
.wk-row select { width: auto; min-width: 260px; max-width: 100%; }
.ck-derived { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); }
.ck-hist tbody tr.sel { background: #EEF8E2; }
.ck-reply textarea { min-height: 90px; }
.ck-hist td:first-child { white-space: nowrap; }
#tkForm input { flex: 1; min-width: 200px; }

/* =====================================================================
   v2 visual layer — colours and gradients from lp.socioez.com
   ===================================================================== */
:root {
  --glow: #1B5A30;
  --panel-dark: radial-gradient(90% 60% at 50% 0%, #163B25, var(--ink) 70%);
  --btn-forest: linear-gradient(180deg, #2A7443, var(--forest));
  --btn-forest-hover: linear-gradient(180deg, #31834C, #1D5A30);
  --lime-grad: linear-gradient(180deg, #CBFA95, var(--hi));
  --lime-bar: linear-gradient(90deg, #6FBF5A, var(--hi));
  --grid-lines: linear-gradient(rgb(245 240 233 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(245 240 233 / 0.05) 1px, transparent 1px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Craft · HTML Background: paint the canvas so overscroll never flashes a different colour */
html, body { background: var(--ink); }
.main { background: var(--paper); }
.login-form { background: var(--paper); }
/* Craft · Noise (tiled, cheap) */
.grain::after { background-image: var(--noise); background-size: 200px 200px; opacity: 0.1; }

/* Craft · Tabular numbers on every changing value */
.stats strong, .tile strong, .sumrow strong, .meter strong, .station-now b, .derived b, .list td, .sheet td, .people small { font-variant-numeric: tabular-nums; }
.ck-hist td.num, .ck-hist th.r { text-align: right; }

/* Buttons — LP recipe: lime with inner highlight + soft lime glow; forest gradient for primary dark */
.btn { background: var(--btn-forest); box-shadow: 0 1px 0 rgb(255 255 255 / 0.14) inset, 0 1px 2px rgb(11 23 19 / 0.25); }
.btn:hover { background: var(--btn-forest-hover); }
.btn:active { transform: translateY(1px); }
.btn.hi { background: var(--hi); color: var(--ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 10px 26px -10px rgb(185 242 124 / 0.6); }
.btn.hi:hover { background: #CBFA95; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.bad { background: var(--coral-ink); box-shadow: none; }

/* Sidebar — forest glow from the top-left corner */
.side { background: radial-gradient(120% 45% at 0% 0%, var(--glow) 0%, rgb(25 77 41 / 0.35) 40%, transparent 75%), var(--ink); }
.side-link.on { background: var(--btn-forest); box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset; }
.side :focus-visible, .band :focus-visible, .login-brand :focus-visible, .key-reveal :focus-visible, .gatecard :focus-visible, .st.current :focus-visible { outline-color: var(--hi); }

/* Band — the LP hero: ink, forest radial glow, faint grid, grain */
.main { max-width: none; }
.main > *:not(.band) { max-width: 1120px; }
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--paper);
  margin: -32px calc(-1 * var(--gutter)) 30px; padding: 32px var(--gutter) 0;
  background: radial-gradient(80% 120% at 15% 0%, var(--glow) 0%, rgb(25 77 41 / 0.45) 38%, transparent 72%), var(--ink); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grid-lines); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 90% at 20% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 90% at 20% 0%, #000 20%, transparent 75%); }
.band-in { max-width: 1120px; position: relative; z-index: 6; }
.band .kicker { color: var(--hi); }
.band .muted { color: var(--muted-d); }
.band .page-head { margin-bottom: 22px; }
.band .client-head { padding-bottom: 20px; }
.band .station-now b { color: var(--hi); }
.band .pill.s-onboarding { background: rgb(141 179 234 / 0.16); color: #B9D3F5; box-shadow: inset 0 0 0 1px rgb(141 179 234 / 0.35); }
.band .pill.s-active { background: rgb(185 242 124 / 0.14); color: var(--hi); box-shadow: inset 0 0 0 1px rgb(185 242 124 / 0.4); }
.band .pill.s-paused { background: rgb(245 240 233 / 0.08); color: var(--muted-d); box-shadow: inset 0 0 0 1px var(--line-d); }
.band .pill.s-completed { background: var(--forest); color: var(--paper); }

/* LP stat cards on dark: translucent, first one lime-tinted */
.band .stats { margin-bottom: 30px; }
.band .stats div { background: rgb(245 240 233 / 0.04); border: 1px solid var(--line-d); border-radius: 18px; }
.band .stats div:first-child { background: rgb(185 242 124 / 0.08); border-color: rgb(185 242 124 / 0.3); }
.band .stats div:first-child strong { color: var(--hi); }
.band .stats span { color: var(--muted-d); }
.band .stats .hot { background: rgb(240 165 140 / 0.12); border-color: rgb(240 165 140 / 0.45); }
.band .stats .hot strong { color: var(--coral); }
.band .stats .hot span { color: var(--muted-d); }

/* Admin controls as glass on the band */
.band .admin-bar { background: rgb(16 32 26 / 0.7); border: 1px solid var(--line-d); backdrop-filter: blur(12px); }
.band .admin-bar label { color: var(--paper); }
.band .admin-bar select { background: var(--ink-3); color: var(--paper); border-color: var(--line-d); }

/* Tabs on the band: active tab is the paper surface rising into the content */
.band .tabs { border-bottom: 0; margin-bottom: 0; gap: 2px; }
.band .tabs a { color: var(--muted-d); border-radius: 12px 12px 0 0; padding: 13px 16px; }
.band .tabs a:hover { color: var(--paper); background: rgb(245 240 233 / 0.06); }
.band .tabs a.on { background: var(--paper); color: var(--ink); }

/* Check-in banner on dark */
.band .ck-banner { background: rgb(185 242 124 / 0.1); border-color: rgb(185 242 124 / 0.35); color: var(--paper); }
.band .ck-banner small { color: var(--muted-d); }
.band .ck-banner.missed { background: rgb(240 165 140 / 0.12); border-color: rgb(240 165 140 / 0.5); }
.band .ck-banner.missed .btn { background: var(--coral); color: var(--ink); }

/* Dark surfaces inside the paper area use the LP calculator gradient */
.tile.dark, .gatecard, .key-reveal, .sumrow div, .gate, .st.current {
  background: var(--panel-dark); position: relative; isolation: isolate; overflow: hidden; }
.tile.dark::after, .gatecard::after, .key-reveal::after, .st.current::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--noise); background-size: 200px 200px; opacity: 0.08; mix-blend-mode: overlay; }
.tile.dark strong, .gatecard .gq { color: var(--paper); }
.tile.dark strong { font-style: italic; }
.sumrow div { border: 1px solid rgb(245 240 233 / 0.06); }
.sumrow div:first-child strong { color: var(--hi); }

/* Progress bars: lime gradient with glow on dark, forest gradient on paper */
.mini i { background: linear-gradient(90deg, #2A7443, var(--forest)); }
.band .mini { background: rgb(245 240 233 / 0.12); }
.band .mini i, .bar i { background: var(--lime-bar); box-shadow: 0 0 12px rgb(185 242 124 / 0.5); }

/* Progress board — LP station cards: outlined serif numerals, lime glow on the current station */
.st { overflow: hidden; }
.st .n { font: italic 400 64px/0.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgb(25 77 41 / 0.45); }
.st.st-passed .n { -webkit-text-stroke-color: rgb(25 77 41 / 0.7); }
.st.current { border-color: transparent; box-shadow: 0 0 0 1px rgb(185 242 124 / 0.5), 0 24px 50px -24px rgb(185 242 124 / 0.55); }
.st.current .n { -webkit-text-stroke-color: rgb(185 242 124 / 0.75); }
.st.st-passed { background: linear-gradient(180deg, #F1F9E6, var(--card)); }

/* Craft · Nested radius: segmented control is 12px with 4px inset, so its buttons are 8px */
.seg button { border-radius: 8px; }

/* Lime “hot” chips and pills, as on the LP funnel */
.chip.yes[aria-pressed="true"], .s-active, .p-passed, .w-reviewed, .ck-done { background: var(--lime-grad); }

/* Login — LP hero treatment */
.login-brand { background: radial-gradient(90% 70% at 30% 0%, var(--glow) 0%, rgb(25 77 41 / 0.45) 35%, transparent 70%), var(--ink); position: relative; isolation: isolate; overflow: hidden; }
.login-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grid-lines); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 30% 30%, #000 20%, transparent 75%); }
.login-brand > * { position: relative; z-index: 6; }

@media (max-width: 860px) {
  .band { margin-top: -22px; padding-top: 22px; }
}

/* v2 review fixes */
/* Highlight keeps its padding on every wrapped line */
.login-brand h1 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Section keys are eyebrows: uppercase like every other kicker */
.sec-h .k { text-transform: uppercase; }
.side-foot .link-btn { white-space: nowrap; }
@media (max-width: 1000px) {
  /* An odd last stat card spans the row instead of sitting alone */
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .stats { gap: 10px; }
  .stats div { padding: 14px 16px; }
  .stats strong { font-size: 34px; }
  /* Tables scroll sideways instead of crushing the client name into one word per line */
  .table-wrap > table.list { min-width: 820px; }
  .table-wrap > table.list td:first-child { min-width: 200px; }
  /* Admin controls: labels in one column, selects fill the rest */
  .admin-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
  .admin-bar label { display: contents; }
  .admin-bar select { width: 100%; }
}
@media (max-width: 640px) { .table-wrap > table.list td:not(:first-child) { white-space: nowrap; } }

/* Centred layout: on wide screens the content column sits in the middle of the workspace,
   instead of hugging the sidebar with empty space on the right */
:root { --content: 1200px; }
.band-in, .main > *:not(.band) { max-width: var(--content); margin-inline: auto; }
.login-brand { padding-inline: max(clamp(28px, 6vw, 72px), calc((100% - 600px) / 2)); }
.login-form { padding-inline: max(clamp(28px, 6vw, 72px), calc((100% - 420px) / 2)); }
.sub-head:has(> .seg) { align-items: center; }

/* Lead tracker */
.ld-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: -4px 0 16px; }
.ld-bar .ld-cap { margin: 0; }
.seg a.segl { display: inline-block; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.seg a.segl[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.band .band-seg { background: rgb(245 240 233 / 0.08); }
.band .band-seg a.segl { color: var(--muted-d); }
.band .band-seg a.segl[aria-pressed="true"] { background: var(--hi); color: var(--ink); }
.ld-sum { --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-bottom: 22px; }
.ld-sum div { display: grid; gap: 2px; align-content: start; }
.dl { display: block; font: 700 12px/1.3 var(--sans); color: var(--muted-d); margin-top: 2px; }
.dl.good { color: var(--hi); } .dl.bad { color: var(--coral); }
.tg { display: block; font-size: 12px; color: var(--muted-d); margin-top: 2px; }
.list .dl { color: var(--muted); } .list .dl.good { color: #2E7D32; } .list .dl.bad { color: var(--coral-ink); }
.band .stats .dl { margin-top: 4px; }
.ld-cap { font-size: 13px; margin: 12px 0 0; }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 26px; }
.ld-card { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.ld-card h3, .ld-h { font: 800 16px/1.3 var(--sans); letter-spacing: -0.01em; margin-bottom: 12px; }
.ld-h { margin-top: 4px; }
.ld-chart { position: relative; }
.ld-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ld-chart .g { stroke: var(--line); stroke-width: 1; }
.ld-chart .ax { font: 600 11px/1 var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.ld-chart g.b path { fill: var(--forest); }
.ld-chart g.b.on path { fill: var(--forest-2); }
.ld-chart g.b .hit { fill: transparent; cursor: default; }
.ld-chart g.b.on .hit { fill: rgb(25 77 41 / 0.06); }
.ld-tip { position: absolute; top: -8px; transform: translateY(-100%); padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 12.5px/1.35 var(--sans); white-space: nowrap; pointer-events: none; z-index: 5; font-variant-numeric: tabular-nums; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.funnel .fl { font-weight: 700; font-size: 14px; }
.funnel b { font: 400 22px/1 var(--serif); text-align: right; }
.funnel .fb { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.funnel .fb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2A7443, var(--forest)); }
.funnel small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.ld-hint { font-size: 14px; }
.ld-table td.ro { text-align: right; padding-inline: 14px; white-space: nowrap; }
.ld-table td.t-date { white-space: nowrap; font-weight: 600; padding-inline: 12px; }
.ld-table td.t-number input, .ld-table td.t-money input { min-width: 84px; }
.ld-table td.t-text input { min-width: 180px; }
.ld-table tfoot th, .ld-table tfoot td { border-top: 1px solid var(--line); background: var(--paper-2); font-weight: 700; text-align: right; padding: 10px 12px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.ld-table tfoot th { text-align: left; }
.ld-table thead th.t-money, .ld-table thead th.t-number, .ld-table thead th.calc { text-align: right; }
.ld-settings { margin-top: 26px; }
.ld-settings summary { color: var(--ink); }
.ld-settings form { margin-top: 16px; }
.ld-list .r { text-align: right; }
.ld-list td small.ok { color: #2E7D32; font-weight: 700; } .ld-list td small.over { color: var(--coral-ink); font-weight: 700; }
.spark { width: 120px; height: 30px; display: block; }
.spark polyline { fill: none; stroke: var(--forest); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nowrap { white-space: nowrap; }
@media (max-width: 860px) { .ld-grid { grid-template-columns: minmax(0, 1fr); } .ld-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ld-list td:first-child { min-width: 210px; }
.ld-list td small { white-space: nowrap; }

/* Team access */
.team-list li { grid-template-columns: minmax(0, 1fr) auto auto; }
.tm-set { grid-column: 1 / -1; border: 0; margin: 2px 0 4px; padding: 0; min-width: 0; }
.tm-clients { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-c { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tm-c:has(input:checked) { background: #EEF8E2; border-color: #B7DE8F; }
.tm-c input { width: 15px; height: 15px; accent-color: var(--forest); margin: 0; }
.tk-new { margin-top: 14px; }
.tk-new fieldset { border: 0; padding: 0; margin: 0; }
.tk-new legend { margin-bottom: 8px; }
.panel .tm-c input, .tm-c input[type=checkbox] { width: 15px; height: 15px; padding: 0; flex: none; }
.tk-new .tm-c { background: var(--card); }

/* Client hub: plans, calls, to-dos, creatives, links, journey */
.sec-pick { position: relative; }
.sec-pick summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-d); list-style: none; }
.sec-pick summary::-webkit-details-marker { display: none; }
.sec-pick[open] summary { background: rgb(245 240 233 / 0.08); }
.sec-pick[open] { flex-basis: 100%; }
.sec-pick .sec-pop { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.sec-pick .sec-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-pick .sec-help { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.band .sec-pick .tm-c { color: var(--ink); font-weight: 600; }
.band .admin-bar .sec-pick label { color: var(--ink); }
.next-call-set { margin: 14px 0 0; gap: 8px 10px; font-size: 13.5px; }
.next-call-set input { width: auto; padding: 7px 10px; font-size: 14px; }
.next-call-set #ncBook { flex: 1; min-width: 220px; }
.tile a { color: inherit; font-weight: 700; }
.tile.dark a { color: var(--hi); }
.call { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; display: grid; gap: 14px; }
.call.draft { border-style: dashed; border-color: #E3C766; background: #FFFCF2; }
.call-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.call-head h3 { font: 400 26px/1.1 var(--serif); margin-top: 4px; }
.call-sum { max-width: 62em; }
.call-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.call h4 { font: 800 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); margin: 0 0 8px; }
.call-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.call-tools { border-top: 1px dashed var(--line); padding-top: 10px; }
.todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.todo input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.todo b { display: block; font-weight: 600; }
.todo small { color: var(--muted); font-size: 12.5px; }
.todo small a { color: var(--forest); }
.todo.done b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.todo .late { color: var(--coral-ink); font-style: normal; font-weight: 700; }
.todo-group h3 span { font: 400 16px var(--sans); margin-left: 4px; }
.done-list { margin-top: 10px; }
.done-list summary { cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.todo-add { margin-bottom: 18px; }
.todo-add #td-title { flex: 1; min-width: 220px; }
.todo-add select, .todo-add input[type=date] { width: auto; }
.todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cr { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cr-media { display: block; aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; max-width: 100%; }
.cr-media img, .cr-media video { width: 100%; height: 100%; object-fit: cover; display: block; outline: 1px solid rgb(11 23 19 / 0.06); outline-offset: -1px; }
.cr-link { display: grid; place-content: center; text-align: center; gap: 4px; text-decoration: none; color: var(--forest); font-weight: 700; aspect-ratio: 16 / 9; }
.cr-link small { color: var(--muted); font-weight: 500; }
.cr-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.cr-body .pill { justify-self: start; }
.cr-body b { font-size: 16px; line-height: 1.3; }
.cr-comment { font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); }
.cr-comment small { font-weight: 700; color: var(--muted); }
.cr-change textarea { min-height: 70px; }
.link-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) auto; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-card { position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.link-card:hover { border-color: var(--forest); }
.link-card a { display: grid; gap: 3px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.link-card small { color: var(--forest); font-weight: 600; font-size: 12.5px; }
.link-card .muted { font-size: 13.5px; }
.link-card .icon-btn { position: absolute; top: 6px; right: 6px; }
.ms-add { margin-bottom: 22px; }
.ms-add #ms-title { flex: 1; min-width: 220px; }
.ms-add input[type=date] { width: auto; }
.jr-month h3 { font: 400 24px/1.1 var(--serif); margin: 6px 0 12px; }
.journey { list-style: none; margin: 0 0 26px; padding: 0 0 0 6px; border-left: 2px solid var(--line); display: grid; gap: 4px; }
.journey li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0 8px 20px; }
.journey .jr-dot { position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--forest); }
.journey small { color: var(--muted); font-size: 12.5px; display: block; }
.journey a { color: var(--ink); text-decoration: none; }
.journey a:hover b { text-decoration: underline; }
.journey p { margin-top: 2px; font-size: 14px; }
.journey .jr-milestone .jr-dot { background: var(--hi); border-color: #6FBF5A; width: 14px; height: 14px; left: -8px; }
.journey .jr-milestone b { font: 400 21px/1.2 var(--serif); }
.journey .jr-call .jr-dot { background: var(--forest); }
.journey .jr-station .jr-dot { border-color: #2E7D32; background: #EEF8E2; }
@media (max-width: 860px) { .todo-grid { grid-template-columns: minmax(0, 1fr); } .link-add { grid-template-columns: minmax(0, 1fr); } }
.match-set { margin: -6px 0 18px; gap: 8px 10px; font-size: 13.5px; }
.match-set input { flex: 1; min-width: 220px; max-width: 520px; padding: 7px 10px; font-size: 14px; }

/* ---------- CEO dashboard ---------- */
.ceo-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.ceo-stats strong { font-size: 36px; }
.target { margin: 0 0 24px; padding: 14px 16px; border-radius: 14px; background: rgb(245 240 233 / 0.04); border: 1px solid var(--line-d); font-size: 14px; color: var(--muted-d); }
.target b { color: var(--paper); font-weight: 700; }
.target .num:last-child { color: var(--hi); font-weight: 800; }
.target .mini.wide { height: 8px; margin-top: 10px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.k1 { background: var(--forest); }
.legend i.k2 { background: var(--coral); margin-left: 8px; }
.ld-card .row.between h3 { margin-bottom: 12px; }
.ld-chart g.b path.s1 { fill: var(--forest); }
.ld-chart g.b path.s2 { fill: var(--coral); }
.ld-chart g.b.on path.s1 { fill: var(--forest-2); }
.ld-chart g.b.on path.s2 { fill: #E58C70; }
.ceo-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.ceo-grid3 .ld-card { display: grid; align-content: start; gap: 4px; }
.ceo-grid3 .link { margin-top: 10px; font-weight: 700; color: var(--forest); text-underline-offset: 3px; justify-self: start; }
dl.kv { display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); margin: 0; }
dl.kv dt, dl.kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
dl.kv dt { color: var(--muted); padding-right: 12px; }
dl.kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
dl.kv dt:nth-last-of-type(1), dl.kv dd:last-of-type { border-bottom: 0; }
.target-set { gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.target-set label { font-weight: 700; font-size: 14px; }
.target-set input { width: 180px; padding: 8px 11px; font-size: 14.5px; }
.ceo-bar { gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; }
.ceo-bar p { margin: 0; max-width: 60em; }
/* Sales board */
.sc-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 8px; }
.sc-col { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--paper-2); min-width: 0; }
.sc-col h3 { font: 800 13px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; margin: 2px 2px 4px; }
.sc-col > .muted { font-size: 13px; margin: 0 2px; }
.sc-card { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.sc-card:hover { border-color: var(--forest); }
.sc-card b { font-size: 14.5px; overflow-wrap: anywhere; }
.sc-card .row { gap: 2px 8px; align-items: baseline; flex-wrap: wrap; }
.sc-card .row b { flex: 1 1 9em; }
.sc-card .row .num { font-weight: 800; font-size: 13px; color: var(--forest); white-space: nowrap; }
.sc-card small { font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.late { color: var(--coral-ink); font-weight: 700; }
/* Tables */
.ceo-table tbody tr { cursor: default; }
.ceo-table .r, .ceo-table th.r { text-align: right; }
.ceo-table td.num, .ceo-table td .num { font-variant-numeric: tabular-nums; }
.ceo-table tfoot th, .ceo-table tfoot td { border-top: 1px solid var(--line); background: var(--paper-2); font-weight: 700; padding: 10px 12px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.ceo-table td .icon-btn { display: inline-grid; vertical-align: middle; }
.ceo-table td .link-btn { margin-right: 6px; }
.icon-btn.confirm { background: #FBE6DE; color: var(--coral-ink); }
tr.dim td { color: var(--muted); }
tr.dim td b { font-weight: 600; }
input.cm { border-color: transparent; background: transparent; padding: 7px 8px; border-radius: 6px; font-size: 14.5px; min-width: 0; }
input.cm:hover, input.cm:focus { border-color: var(--line); background: var(--card); }
input.cm[type="number"] { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
input.cm[type="date"] { width: 124px; padding-inline: 2px; font-size: 14px; }
.hdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: 1px; }
.hdot.h-green { background: #3FA34D; } .hdot.h-amber { background: #E3A93B; } .hdot.h-red { background: var(--coral-ink); }
.ceo-clients td small { white-space: normal; max-width: 220px; }
@media (max-width: 1100px) {
  .ceo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ceo-grid3 { grid-template-columns: minmax(0, 1fr); }
  .ceo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ceo-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sc-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ceo-stats strong { font-size: 28px; }
  .sc-board { grid-template-columns: minmax(0, 1fr); }
  .target-set input { flex: 1; width: auto; }
}
.ceo-top { align-items: start; }
#ceoTab .ld-h { margin-top: 30px; }
#ceoTab .ld-grid + .ld-h { margin-top: 4px; }
.ceo-clients td:first-child { min-width: 170px; }
.ceo-clients td:nth-child(2) { min-width: 130px; white-space: normal; }
.ceo-clients th, .ceo-clients td { padding-inline: 8px; }
.ceo-clients th:first-child, .ceo-clients td:first-child { padding-left: 14px; }
/* Sales board drag and drop */
.sc-card { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.sc-card.sc-dragging { opacity: 0.35; }
.sc-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; box-shadow: 0 18px 40px -12px rgb(11 23 19 / 0.45); border-color: var(--forest); cursor: grabbing; }
.sc-on .sc-col { transition: background-color 120ms, box-shadow 120ms; min-height: 120px; }
.sc-col.sc-over { background: rgb(185 242 124 / 0.35); box-shadow: inset 0 0 0 2px var(--forest); }
body:has(.sc-ghost) { cursor: grabbing; }
.sn { gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: rgb(185 242 124 / 0.25); border: 1px solid rgb(25 77 41 / 0.25); font-size: 14.5px; }
.sn input { width: 260px; padding: 8px 11px; font-size: 14.5px; }
@media (max-width: 640px) { .sn input { width: 100%; } .sn > .row { width: 100%; } }

/* ---------- Getting started (client onboarding steps) ---------- */
.gs-head { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.gs-head h2 { font: 400 32px/1.1 var(--serif); margin: 6px 0 4px; }
.gs-head p.muted { margin: 0; }
.gs-head .note { margin: 14px 0 0; }
.gs-meter { min-width: 180px; text-align: right; }
.gs-meter strong { font: 400 34px/1 var(--serif); color: var(--forest); }
.gs-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.gs-step { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.gs-step[open] { border-color: rgb(25 77 41 / 0.35); }
.gs-step.st-done, .gs-step.st-skipped { background: transparent; }
.gs-step summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.gs-step summary::-webkit-details-marker { display: none; }
.gs-step summary b { flex: 1; font-size: 16px; min-width: 0; }
.gs-step.st-done summary b, .gs-step.st-skipped summary b { color: var(--muted); font-weight: 600; }
.gs-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); font: 800 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.st-done .gs-n, .st-skipped .gs-n { background: var(--forest); color: var(--hi); }
.st-todo .gs-n, .st-waiting .gs-n, .st-ours .gs-n { background: var(--ink); color: var(--hi); }
.gs-body { padding: 0 16px 18px 58px; display: grid; gap: 12px; }
.gs-body > p { margin: 0; }
.gs-body .grid { margin: 0; }
.gs-skip { justify-content: flex-start; padding-top: 4px; border-top: 1px dashed var(--line); }
.gs-skip .link-btn { color: var(--muted); font-weight: 600; font-size: 13.5px; }
textarea.mono { font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.upl { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: rgb(255 255 255 / 0.4); }
.upl label { font-size: 14px; }
.upl p { margin: 0; }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.files li + li { border-top: 1px solid var(--line); }
.files li .link-btn { text-align: left; overflow-wrap: anywhere; }
.files li .muted { font-size: 12.5px; margin-left: auto; }
.note-form { gap: 8px; flex-wrap: nowrap; }
.note-form input { flex: 1; min-width: 0; padding: 8px 11px; font-size: 14.5px; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.acc-i > div { display: grid; gap: 6px; }
.acc-i > div > b { font-size: 15px; }
.acc-i > div > .pill { justify-self: start; }
.acc-i p { margin: 0; font-size: 13.5px; }
.acc-i.s-done, .acc-i.s-skipped { background: transparent; }
.acc-i > .row { justify-content: flex-end; }
/* Invoices */
.inv-list { display: grid; gap: 10px; }
.inv-card { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); justify-items: start; }
.inv-card > .row { width: 100%; align-items: flex-start; }
.inv-card small { display: block; font-size: 12.5px; margin-top: 2px; }
.inv-card .r { display: grid; justify-items: end; gap: 4px; }
.inv-card .r strong { font: 400 26px/1 var(--serif); }
.pay-box { width: 100%; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.pay-box p { margin: 0; font-size: 14.5px; }
.pay-box .pre { white-space: pre-line; }
.pay-box .btn { justify-self: start; }
.sel { user-select: all; }
.paid-form { gap: 8px; flex-wrap: nowrap; }
.paid-form input { flex: 1; min-width: 0; padding: 8px 11px; font-size: 14.5px; background: var(--card); }
.biz-set { margin-top: 26px; }
.biz-set summary { cursor: pointer; }
.biz-set form { margin-top: 16px; }
.next.gs-next { border-color: var(--forest); background: rgb(185 242 124 / 0.22); }
@media (max-width: 640px) {
  .gs-head .row.between { align-items: flex-start; }
  .gs-meter { min-width: 0; width: 100%; text-align: left; }
  .gs-body { padding: 0 14px 16px; }
  .gs-step summary { flex-wrap: wrap; }
  .gs-step summary .pill { margin-left: 42px; }
  .acc-i { grid-template-columns: minmax(0, 1fr); }
  .acc-i > .row { justify-content: flex-start; }
  .note-form, .paid-form { flex-wrap: wrap; }
  .note-form input, .paid-form input { flex-basis: 100%; }
}
.gs-steps > li, .gs-step, .gs-body > *, .acc-i > * { min-width: 0; }
.gs-body textarea, .gs-body input:not([type=checkbox]) { max-width: 100%; }
.paid-inv { margin-top: 12px; }
.paid-inv summary { cursor: pointer; font-weight: 700; color: var(--forest); padding: 6px 0; }
.paid-inv .inv-list { margin-top: 8px; }
.band .edit-c { color: var(--hi); font-size: 13.5px; margin-left: 8px; padding: 0; }
.edit-client { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: -6px 0 18px; padding: 16px; border-radius: 16px; background: rgb(16 32 26 / 0.7); border: 1px solid var(--line-d); }
.edit-client[hidden] { display: none; }
.edit-client label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--paper); flex: 1 1 200px; }
.edit-client input, .edit-client select { background: var(--ink-3); color: var(--paper); border-color: var(--line-d); padding: 9px 12px; font-size: 15px; }
.edit-client .link-btn { color: var(--hi); }
.panel.link-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.1fr) auto; align-items: end; }
.link-card .by-client { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgb(185 242 124 / 0.35); color: var(--forest); font: 700 11.5px/1.5 var(--sans); }
@media (max-width: 1100px) { .panel.link-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .link-add .btn { justify-self: start; } }
@media (max-width: 640px) { .panel.link-add { grid-template-columns: minmax(0, 1fr); } }
/* Lead tracker: leads by trek / product */
.seg-card { margin-bottom: 26px; }
.seg-card .table-wrap { margin-top: 4px; }
.seg-table tbody tr { cursor: default; }
.seg-table td.r, .seg-table th.r { text-align: right; }
.seg-table td.seg-bar { min-width: 180px; position: relative; }
.seg-bar { display: flex; align-items: center; gap: 10px; }
.seg-bar .num { min-width: 34px; font-weight: 800; }
.seg-bar i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2A7443, var(--forest)); }
.seg-table td.ok { color: #2E7D32; font-weight: 700; } .seg-table td.over { color: var(--coral-ink); font-weight: 700; }
.seg-table tr.seg-other td { color: var(--muted); background: var(--paper-2); }
.seg-table tr.seg-other .seg-bar i { background: var(--line); }
.ls-help { font-size: 13px; margin-top: 6px; }
/* Document worksheets */
.ws-doc-new h2 { font: 800 18px/1.3 var(--sans); }
.ws-doc-new > p { margin: -8px 0 0; }
.wsd { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.wsd-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.wsd-step > div { display: grid; gap: 12px; min-width: 0; }
.wsd-step h3 { font: 800 16px/1.3 var(--sans); }
.wsd-step p { margin: 0; }
.wsd-step .gs-n { background: var(--ink); color: var(--hi); }
.wsd-ret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: rgb(185 242 124 / 0.25); border: 1px solid rgb(25 77 41 / 0.2); }
.wsd-ret b { overflow-wrap: anywhere; }
.wsd-up { margin: 0; }
@media (max-width: 640px) { .wsd-step { grid-template-columns: minmax(0, 1fr); } }
/* Onboarding timeline */
.gs-step summary b { display: grid; gap: 2px; }
.gs-due { font: 600 12.5px/1.3 var(--sans); color: var(--muted); }
.gs-due.late { color: var(--coral-ink); font-weight: 800; }
.gs-due.warn { color: #8A6100; }
.gs-step.is-late { border-color: var(--coral); box-shadow: inset 4px 0 0 var(--coral); }
.gs-step.is-late .gs-n { background: var(--coral-ink); color: #fff; }
.gs-late { display: grid; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #FBE6DE; border: 1px solid var(--coral); }
.gs-late ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.gs-late li + li { margin-top: 2px; }
.gs-late p { margin: 0; font-size: 13.5px; color: var(--coral-ink); font-weight: 600; }
.gs-ok { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: #2E7D32; }
.gs-start { margin: 10px 0 0; font-size: 13.5px; }
.gs-plan { margin-top: 12px; }
.gs-plan summary { cursor: pointer; font-weight: 700; color: var(--forest); font-size: 14px; }
#planForm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
#planForm .f { grid-column: 1 / -1; }
#planForm .f.half { grid-column: span 2; }
#planForm .f.quarter { grid-column: span 1; }
#planForm label { font-size: 13px; }
.day-in { display: flex; align-items: center; gap: 8px; }
.day-in input { width: 80px; padding: 8px 10px; }
.ck-banner.behind .btn { background: var(--coral-ink); color: #fff; }
.band .ck-banner.behind { background: rgb(240 165 140 / 0.14); border-color: rgb(240 165 140 / 0.55); color: var(--paper); }
.band .ck-banner.behind small { color: var(--muted-d); }
@media (max-width: 860px) { #planForm { grid-template-columns: repeat(2, minmax(0, 1fr)); } #planForm .f.half { grid-column: 1 / -1; } }
/* Suggested worksheets waiting for approval */
.ws-pending { border-color: rgb(25 77 41 / 0.35); background: linear-gradient(180deg, rgb(185 242 124 / 0.14), var(--card) 70%); }
.ws-pending h2 { font: 800 18px/1.3 var(--sans); margin-top: 4px; }
.ws-pending > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.ws-pending > summary::-webkit-details-marker { display: none; }
.ws-pending p { margin: 0; }
.wsp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wsp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.wsp b { font-size: 14.5px; }
.wsp b a { color: var(--ink); }
.wsp .link { font-size: 13px; font-weight: 700; color: var(--forest); margin-left: 6px; }
.wsp .row { gap: 8px; }
.wsp input[type=date] { width: 150px; padding: 7px 9px; font-size: 14px; }
.wsp-client h3 { font: 800 13px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 8px; }
@media (max-width: 640px) { .wsp .row { width: 100%; } .wsp input[type=date] { flex: 1; } }

/* =====================================================================
   Ecom profit tools (P&L · Unit economics · Break-even ROAS) — js/ecom.js
   ===================================================================== */
.ec-monthbar { margin-bottom: 16px; gap: 12px; }
.ec-monthbar select { width: auto; min-width: 220px; max-width: 100%; }
.ec-stats { margin-bottom: 14px; }
.ec-stats strong small { font-size: 16px; opacity: 0.7; }
.ec-verdict { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.ec-verdict.good { background: #E6F5D5; }
.ec-verdict.bad { background: #FBE6DE; border: 1px solid var(--coral); }
.ec-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ec-form { margin-bottom: 0; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.ec-form > .f { grid-column: auto; }
.ec-form input[type=month] { width: 100%; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; color: var(--ink); }
body.dk .ec-form input[type=month] { background: var(--field); border-color: var(--b2); color: var(--t1); color-scheme: dark; }
.ec-form .mini-h { margin-top: 8px; }
.ec-form .grid { gap: 14px; }
.ec-form .f small { font-size: 12.5px; line-height: 1.35; }
.suffix { position: relative; }
.suffix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.suffix input { padding-right: 30px; }
.ec-stmt { position: sticky; top: 16px; }
.ec-stmt td { padding: 8px 14px; }
.ec-stmt td:last-child, th.r, td.r { text-align: right; }
.ec-stmt td small { display: block; color: var(--muted); font-size: 12px; }
.ec-stmt tr.gap td { padding: 4px; background: var(--paper-2); }
.ec-stmt tr.sub td { font-weight: 800; border-top: 2px solid var(--line); }
.ec-stmt tr.net td { font-weight: 800; background: #E6F5D5; }
.ec-stmt td.num { white-space: nowrap; }
.ec-trend tr.sel { background: #EEF8E2; }
.ec-big { padding: 22px; border-radius: 16px; margin-bottom: 12px; background: var(--panel-dark, var(--ink)); color: var(--paper); }
.ec-big .kicker { color: var(--hi); }
.ec-big strong { display: block; font: italic 400 clamp(56px, 7vw, 84px)/1 var(--serif); color: var(--hi); margin: 6px 0; }
.ec-big p { color: var(--muted-d); font-size: 14px; }
.ec-grid th, .ec-grid td { padding: 9px 12px; text-align: right; white-space: nowrap; }
.ec-grid tbody th { text-align: left; font-weight: 800; width: 1%; background: transparent; color: var(--ink); font-size: 13px; letter-spacing: 0; }
.ec-grid thead th:first-child { text-align: left; }
#ecOut .sumrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-grid td.now { background: var(--hi); color: var(--ink); font-weight: 800; }
.ec-grid td.loss { color: var(--coral-ink); font-weight: 700; }
.ec-units td.t-text input { min-width: 170px; }
.ec-units td.t-money input { min-width: 90px; }
.ec-how { margin-top: 18px; }
@media (max-width: 960px) {
  .ec-split { grid-template-columns: minmax(0, 1fr); }
  .ec-stmt { position: static; order: -1; }
  #ecOut { order: -1; }
}

/* Forest Night theme */
body.dk .ec-verdict.good { background: rgb(185 242 124 / 0.1); border: 1px solid rgb(185 242 124 / 0.35); }
body.dk .ec-verdict.bad { background: rgb(240 165 140 / 0.1); border-color: rgb(240 165 140 / 0.42); }
body.dk .suffix span, body.dk .ec-stmt td small { color: var(--t3); }
body.dk .ec-stmt tr.gap td { background: rgb(245 240 233 / 0.03); }
body.dk .ec-stmt tr.sub td { border-top-color: var(--b2); }
body.dk .ec-stmt tr.net td { background: rgb(185 242 124 / 0.1); color: var(--lime); }
body.dk .ec-trend tr.sel { background: rgb(185 242 124 / 0.08); }
body.dk .ec-big { background: radial-gradient(120% 100% at 0% 0%, rgb(185 242 124 / 0.18), transparent 60%), rgb(185 242 124 / 0.04); border: 1px solid rgb(185 242 124 / 0.38); }
body.dk .ec-big p { color: var(--t2); }
body.dk .ec-grid td.now { background: var(--lime); color: #0B1713; }
body.dk .ec-grid td.loss { color: var(--coral-t); }
body.dk .ec-grid tbody th { color: var(--t1); }
