/* Jay & Dena checklists — the demo's look (Claude\Artifacts\dena-shared-checklists-demo.html), phone first. */
:root{
  --bg:#f6f7f9; --panel:#ffffff; --ink:#1d2430; --muted:#5b6575; --line:#dde2ea;
  --accent:#2f5d8a; --accent-soft:#e7eef6; --ok:#2e7d4f; --ok-soft:#e5f3ea;
  --warn:#9a6a00; --warn-soft:#fbf1d9; --bad:#b03a2e; --bad-soft:#fbe9e7;
  --you:#6a4c93; --you-soft:#efe9f7;
  --display:"Source Serif 4", Georgia, serif;
  --body:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Always light (Jay, 2026-11-04: no dark theme), whatever the phone is set to. */
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:15px/1.5 var(--body);-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit;color:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.2;margin:0;text-wrap:balance}
p{margin:0}
a{color:var(--accent)}
[hidden]{display:none!important}

/* ---- top bar ---- */
.top{position:sticky;top:0;z-index:5;background:var(--panel);border-bottom:1px solid var(--line)}
.top-in{max-width:880px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:10px}
.top h1{font-size:19px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who-am-i{font-size:13px;color:var(--muted);white-space:nowrap}
.testflag{font-size:11px;font-weight:600;color:var(--warn);background:var(--warn-soft);border-radius:4px;padding:2px 7px;white-space:nowrap}
.busybar{height:3px;background:transparent;overflow:hidden}
.busybar.on{background:var(--accent-soft)}
.busybar.on::after{content:"";display:block;height:100%;width:35%;background:var(--accent);animation:slide 1.1s ease-in-out infinite}
@keyframes slide{from{transform:translateX(-100%)}to{transform:translateX(300%)}}

main{max-width:880px;margin:0 auto;padding:16px 16px 96px;display:flex;flex-direction:column;gap:16px}
.muted{color:var(--muted)}
.small{font-size:13px}

/* ---- buttons ---- */
.btn{min-height:40px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:var(--panel);font-weight:600;cursor:pointer;padding:0 16px}
.btn.ghost{background:var(--panel);color:var(--accent)}
.btn:disabled{opacity:.5;cursor:default}
.ib{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;padding:0;flex:none}
.ib:hover:not(:disabled){border-color:var(--accent)}
.ib:disabled{opacity:.35;cursor:default}
.ib.del:hover:not(:disabled){border-color:var(--bad);color:var(--bad)}
.back{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:var(--accent);font-weight:500;cursor:pointer;padding:6px 0;min-height:40px}
.chip{font:500 13px var(--body);min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--muted);cursor:pointer}
.chip[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---- sign in ---- */
.hello{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:24px 20px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.hello h2{font-size:23px}

/* ---- deal list ---- */
.deals{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.deal{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;width:100%}
.deal:hover{border-color:var(--accent)}
.deal h3{font-size:18px}
.deal .type{font-size:13px;color:var(--muted)}
.deal .prop{font-size:14px}
.deal .foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px;font-size:13px;color:var(--muted)}
.pill{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:2px 10px;background:var(--accent-soft);color:var(--accent);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.prog{height:6px;border-radius:99px;background:var(--line);overflow:hidden}
.prog>i{display:block;height:100%;background:var(--ok);border-radius:99px}

/* ---- one deal ---- */
.dealhead{display:flex;flex-direction:column;gap:6px}
.dealhead h2{font-size:26px}
.dealhead .meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--muted)}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stage{padding:10px 14px;background:var(--bg);border-top:1px solid var(--line);font-size:14px;font-weight:600;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.panel>.stage:first-child{border-top:none}
.stage em{font-style:normal;font-weight:400;color:var(--muted);font-size:13px;white-space:nowrap}
.stage.now{background:var(--accent-soft);color:var(--accent)}
.stage{scroll-margin-top:64px}

.step{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 10px;padding:12px 14px;border-top:1px solid var(--line)}
.step .tk{grid-row:1/span 3;width:28px;height:28px;margin:2px 0 0 2px;accent-color:var(--ok);cursor:pointer}
.step .txt{font-size:15px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.step.done .txt>span:first-child{color:var(--muted);text-decoration:line-through}
.tag{font-size:11px;font-weight:600;border-radius:4px;padding:1px 6px;white-space:nowrap}
.tag.cl{background:var(--accent-soft);color:var(--accent)}
.tag.by{background:var(--ok-soft);color:var(--ok)}
.tag.auto{background:var(--you-soft);color:var(--you)}
.ctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ctl select,.ctl input[type=date]{height:36px;border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:0 8px;font-size:14px;max-width:100%}
.ctl select{min-width:96px}
.ctl input[type=date]{min-width:140px}
.step.over input[type=date]{border-color:var(--bad);background:var(--bad-soft)}
.step.soon input[type=date]{border-color:var(--warn);background:var(--warn-soft)}
.cs{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);min-height:36px;cursor:pointer}
.cs input{width:18px;height:18px}
.mv{display:inline-flex;gap:6px;margin-left:auto}
.notes{width:100%;min-height:36px;border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:6px 8px;font-size:14px;resize:vertical}
.notes:placeholder-shown{border-style:dashed}
.step.busy{opacity:.55}

.addbtn{display:block;width:100%;text-align:left;padding:10px 14px;border:none;border-top:1px solid var(--line);background:var(--panel);color:var(--accent);font-weight:500;cursor:pointer;min-height:44px}
.addform{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:var(--bg)}
.addform input[type=text],.addform select{height:40px;border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:0 10px;font-size:15px;width:100%}
.addform .row2{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.addform .row2 select{width:auto;min-width:120px}
.err{color:var(--bad);font-size:13px}

/* ---- client sheet (read-only, printable) ---- */
.sheetwrap{background:var(--bg);border:1px dashed var(--line);border-radius:10px;padding:14px}
.sheet{background:#fff;color:#1d2430;border:1px solid var(--line);border-radius:6px;padding:22px 22px;max-width:620px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.sheet .brand{font-size:12px;color:#5b6575;border-bottom:1px solid #dde2ea;padding-bottom:10px}
.sheet h3{font-size:21px}
.sheet .for{font-size:13px;color:#5b6575}
.sheet h4{font:600 14px var(--body);margin:6px 0 0}
.sheet .tick{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.sheet .box{width:16px;height:16px;border:1.5px solid #1d2430;border-radius:3px;flex:none;margin-top:3px;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1}
.sheet .tick.done{color:#5b6575;text-decoration:line-through}
.sheet .by{font-size:13px;color:#5b6575}
.sheet p{font-size:14px;color:#3a4352}

/* ---- toast ---- */
.toast{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:20;max-width:min(560px,calc(100vw - 32px));background:var(--ink);color:var(--bg);border-radius:10px;padding:12px 16px;font-size:14px;box-shadow:0 6px 24px rgba(0,0,0,.2)}
.toast.warn{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn)}
.toast.bad{background:var(--bad-soft);color:var(--bad);border:1px solid var(--bad)}

@media (min-width:720px){
  .step{grid-template-columns:36px minmax(0,1fr)}
  .dealhead h2{font-size:30px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

@media print{
  body{background:#fff}
  .top,.noprint,.toast,.back,.dealhead,.tabs{display:none!important}
  main{padding:0;max-width:none}
  .sheetwrap{border:none;padding:0;background:#fff}
  .sheet{border:none;max-width:none;padding:0}
}
