/* InfluenceUP brand: green #35B286, charcoal #222E29, gold #FFD002 (scarce), mint #E3F3EC */
:root {
  --bg: #F4F7F5; --surface: #FFFFFF; --mint: #E3F3EC; --ink: #1D2724; --head: #222E29; --soft: #56645D;
  --line: #D4E2DA; --green: #35B286; --green-text: #237A5B; --gold: #FFD002; --red: #C24B36; --amber: #9A6B00;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--green-text); }
h1, h2, h3 { color: var(--head); margin: 0; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0; }
.soft { color: var(--soft); } .small { font-size: .85rem; }
.wrap { max-width: 980px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 112px; height: auto; }
.app-name { font-weight: 700; color: var(--head); padding-left: 12px; border-left: 2px solid var(--green); }
.me { margin-left: auto; color: var(--soft); font-size: .88rem; }
.tabs { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: none; padding: 10px 12px; color: var(--soft); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--head); border-bottom-color: var(--green); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.narrow { max-width: 420px; }
form { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; font-size: .88rem; color: var(--head); }
input, select { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.btn { font: inherit; font-weight: 600; font-size: .88rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--head); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--green); }
.btn.main { background: var(--green); border-color: var(--green); color: var(--head); }
.btn:disabled { opacity: .5; cursor: default; }
.link { font: inherit; background: none; border: 0; color: var(--green-text); cursor: pointer; text-decoration: underline; padding: 0; }
.err { color: var(--red); font-size: .88rem; min-height: 1.2em; }
.group-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.row .main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .client { font-weight: 700; color: var(--head); }
.row .title { font-size: .92rem; }
.row .meta { font-size: .8rem; color: var(--soft); }
.row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1.5px solid var(--green); color: var(--green-text); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--gold); } .dot.green { background: var(--green); }
.late { color: var(--red); font-weight: 600; }
.today { color: var(--amber); font-weight: 600; }
.empty { padding: 18px; text-align: center; color: var(--soft); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; }
.client-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.kv div { display: flex; flex-direction: column; gap: 4px; }
.kv span { font-size: .78rem; color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ladder { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ladder th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ladder td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ladder tr.done td { color: var(--soft); }
.ladder tr.done .t { text-decoration: line-through; }
.ladder tr.before td { color: #8A968F; }
.ladder tr.is-today td { background: #FFF8D6; }
.tw { overflow-x: auto; }
.stamped { position: relative; overflow: hidden; }
.stamp { position: absolute; inset: -40px; pointer-events: none; user-select: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 34px 46px; transform: rotate(-14deg); opacity: .07; font-size: .8rem; font-weight: 700; color: var(--head); z-index: 1; }
.stamped > *:not(.stamp) { position: relative; z-index: 2; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--head); color: #fff; padding: 9px 14px; border-radius: 9px; font-size: .9rem; z-index: 20; }
@media (max-width: 640px) {
  .row { flex-wrap: wrap; }
  .row .acts { width: 100%; justify-content: flex-start; }
  .me { display: none; }
  .ladder .hide-sm { display: none; }
}
