:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1c1a14;background:#ecebe8;line-height:1.4;--ink:#1d1a14;--green:#58441a;--green-dark:#413113;--line:#dfddd9;--muted:#76736c;--paper:#fff;--wash:#f7f6f4;--amber:#cd9b37}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eae9e6 0,#f2f1ef 38%,#ebeae7 100%)}button,input{font:inherit}.shell{max-width:820px;margin:auto;min-height:100vh;background:#f8f7f6;padding-bottom:96px;box-shadow:0 0 40px #1d1a1412}.top{position:sticky;top:0;z-index:5;background:linear-gradient(135deg,#1f1a10,#322a19);color:white;padding:18px 18px 17px;border-bottom:4px solid var(--amber);box-shadow:0 5px 20px #1f1a1024}.brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand strong{font-size:1.28rem;letter-spacing:.02em}.brand strong:before{content:"▰";color:#cd9b37;margin-right:9px;font-size:.9em}.brand small{opacity:.78;text-transform:uppercase;letter-spacing:.1em;font-size:.68rem;font-weight:700}.date{font-size:1.85rem;font-weight:850;margin-top:18px;letter-spacing:-.035em}.sub{opacity:.78;margin-top:2px;font-size:.9rem}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 14px 5px}.pill{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:11px 8px 9px;text-align:center;color:var(--muted);font-size:.75rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em;box-shadow:0 2px 8px #1d1a1408}.pill b{display:block;font-size:1.45rem;line-height:1.1;color:var(--ink);letter-spacing:-.03em;margin-bottom:3px}.content{padding:7px 14px}.card{background:var(--paper);border:1px solid #dddbd7;border-radius:14px;margin:10px 0;overflow:hidden;box-shadow:0 3px 12px #1d1a140b}.card h2{font-size:.79rem;letter-spacing:.07em;text-transform:uppercase;margin:0;padding:12px 14px 10px;background:#f4f3f0;border-bottom:1px solid #e5e3e0;color:#3a352c}.row{display:flex;gap:11px;align-items:flex-start;padding:12px 14px;border-top:1px solid #f0efed;min-height:48px}.card h2+.row{border-top:0}.row input[type=checkbox]{width:23px;height:23px;accent-color:var(--green);margin:0;flex:0 0 auto}.row.done{background:#fbfbfa}.row.done .txt{text-decoration:line-through;opacity:.48}.txt{flex:1;font-size:.96rem}.item-text{white-space:pre-wrap;overflow-wrap:anywhere}.origin{font-size:.7rem;color:#7a847d;margin-top:4px;font-weight:600}.del{border:0;background:transparent;color:#9b5b56;font-size:1.25rem;line-height:1;padding:1px 3px}.add{display:flex;gap:8px;padding:10px 12px 12px;background:#fcfcfb;border-top:1px solid #f0efed}.add input,.search{flex:1;border:1px solid #d3d0cb;border-radius:10px;padding:12px;background:white;min-width:0;outline:none}.add input:focus,.search:focus{border-color:#c7993e;box-shadow:0 0 0 3px #5a461f17}.add button,.primary,.secondary{border:0;border-radius:10px;padding:12px 15px;font-weight:800}.add button,.primary{background:linear-gradient(180deg,#634d21,var(--green));color:white;box-shadow:0 2px 5px #41311326}.add button:active,.primary:active{background:var(--green-dark);transform:translateY(1px)}.secondary{background:#edebe8;color:#413721}.finish{width:calc(100% - 28px);margin:8px 14px 18px;padding:15px;text-transform:uppercase;letter-spacing:.055em;font-size:.86rem}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(820px,100%);display:grid;grid-template-columns:repeat(4,1fr);background:#fffefaed;backdrop-filter:blur(14px);border-top:1px solid #d6d4cf;padding:7px max(7px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));z-index:9;box-shadow:0 -4px 18px #1d1a140b}.nav button{border:0;background:transparent;padding:10px 3px 8px;color:#747069;font-weight:750;font-size:.78rem;letter-spacing:.02em;border-radius:9px}.nav button.active{color:var(--green);background:#f3f1ee}.panel{padding:22px 14px}.panel h1{margin:4px 0 18px;font-size:1.55rem;letter-spacing:-.03em}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day{aspect-ratio:1;border:1px solid #dddbd7;background:white;border-radius:9px;font-weight:650}.day.has{font-weight:850;border-color:#cea554;box-shadow:inset 0 -3px #cea554}.day.selected{background:var(--green);color:white;border-color:var(--green);box-shadow:none}.openrow{background:white;border:1px solid var(--line);border-left:4px solid #c99e47;border-radius:10px;padding:12px 13px;margin:8px 0;box-shadow:0 2px 7px #1d1a1408}.search{width:100%;font-size:1rem}.empty{text-align:center;color:#807c74;padding:40px 12px}.modal{position:fixed;inset:0;background:#13100ab3;z-index:20;display:grid;place-items:end center}.sheet{background:white;width:min(820px,100%);border-radius:20px 20px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -12px 35px #0003}.sheet h2{margin-top:0;letter-spacing:-.02em}.actions{display:flex;gap:8px}.actions button{flex:1}@media(min-width:700px){.modal{place-items:center}.sheet{border-radius:20px;max-width:520px}.content{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.finish{max-width:792px}.top{padding-left:24px;padding-right:24px}}

@media(min-width:1000px){
  .shell{max-width:1160px}
  .top{padding:20px 30px 18px}
  .date{font-size:2rem}
  .summary{margin:16px 20px 7px;gap:12px}
  .content{padding:9px 20px 18px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-items:start}
  .card{margin:0;border-radius:12px}
  .card h2{padding:12px 15px 10px}
  .row{padding:11px 14px}
  .add{padding:10px 12px 12px}
  .finish{width:calc(100% - 40px);max-width:none;margin:4px 20px 24px}
  .nav{width:min(1160px,100%);padding-left:18px;padding-right:18px}
  .nav button{font-size:.82rem;padding:11px 4px 9px}
  .panel{padding:28px 24px}
}

@media(min-width:1400px){
  .shell{max-width:1240px}
  .nav{width:min(1240px,100%)}
}


.priority{border:0;border-radius:999px;min-width:34px;height:26px;padding:0 8px;font-size:.68rem;font-weight:900;letter-spacing:.04em;flex:0 0 auto;cursor:pointer}
.priority.p1{background:#f8d7d4;color:#9e2821}
.priority.p2{background:#fff0c9;color:#8a6300}
.priority.p3{background:#e7e4df;color:#594927}
.priority-select{border:1px solid #d3d0cb;border-radius:9px;background:white;padding:0 9px;font-size:.75rem;font-weight:750;color:#3a352b;min-width:92px}
.priority-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start}
.open-priority{border-radius:999px;padding:3px 7px;font-size:.68rem;font-weight:900;line-height:1.2}
.priority-row.p1 .open-priority{background:#f8d7d4;color:#9e2821}
.priority-row.p2 .open-priority{background:#fff0c9;color:#8a6300}
.priority-row.p3 .open-priority{background:#e7e4df;color:#594927}

@media(max-width:520px){
  .add{flex-wrap:wrap}
  .add input{flex-basis:100%}
  .priority-select{flex:1}
  .add button{min-width:82px}
}


/* Laptop / desktop maximum workspace */
@media(min-width:1200px){
  .shell{width:calc(100vw - 48px);max-width:1500px}
  .nav{width:min(1500px,calc(100vw - 48px))}
  .top{padding:22px 32px 19px}
  .summary{margin:16px 22px 8px}
  .content{padding:10px 22px 22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
  .panel{padding:30px 28px}
}

@media(min-width:1500px){
  .shell{width:calc(100vw - 56px);max-width:1600px}
  .nav{width:min(1600px,calc(100vw - 56px))}
  .content{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px}
  .summary{grid-template-columns:repeat(3,minmax(180px,1fr))}
  .card{min-width:0}
  .txt{font-size:.94rem}
  .add input{padding:11px}
  .priority-select{min-width:86px}
}

@media(min-width:1800px){
  .shell{max-width:1720px}
  .nav{width:min(1720px,calc(100vw - 64px))}
  .content{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px}
}


/* Compact top bar + top navigation */
.shell{padding-bottom:28px}
.top{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;background:linear-gradient(135deg,#1f1a10,#322a19);border-bottom:3px solid var(--amber);box-shadow:0 3px 12px #1f1a101f}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand small{display:none}
.brand strong{font-size:1.15rem;white-space:nowrap}
.topdate{margin-left:auto;text-align:right;min-width:0}
.topdate b{display:block;font-size:.92rem;line-height:1.1;color:#fff}
.topdate span{display:block;font-size:.7rem;line-height:1.2;color:#ffffffb8;margin-top:2px;white-space:nowrap}
.nav{position:sticky;top:53px;left:auto;bottom:auto;transform:none;width:100%;display:grid;grid-template-columns:repeat(4,1fr);background:#fffefaed;backdrop-filter:blur(14px);border-top:0;border-bottom:1px solid #d6d4cf;padding:6px 10px;z-index:11;box-shadow:0 4px 12px #1d1a140b}
.nav button{padding:9px 6px;border-radius:8px}
.nav button.active{box-shadow:inset 0 -2px var(--green)}
.summary{margin-top:12px}

@media(min-width:700px){
  .top{padding:10px 22px}
  .brand small{display:block}
  .topdate{display:flex;align-items:baseline;gap:10px;text-align:left}
  .topdate b{font-size:.9rem}
  .topdate span{font-size:.72rem;margin-top:0}
  .nav{top:53px}
}

@media(min-width:1200px){
  .top{padding:10px 28px}
  .nav{width:100%;padding-left:20px;padding-right:20px}
}

@media(min-width:1500px){
  .nav{width:100%}
}

@media(max-width:520px){
  .top{padding:9px 12px}
  .brand strong{font-size:1.05rem}
  .topdate span{font-size:.64rem;max-width:190px;overflow:hidden;text-overflow:ellipsis}
  .nav{top:49px;padding:5px 6px}
  .nav button{font-size:.74rem;padding:8px 4px}
}


.openlink{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
@media (hover:hover){
.openlink:hover{border-color:#cea554;background:#fbfaf8}}
.focus-item{animation:itemFocus 1.8s ease}
@keyframes itemFocus{
  0%,100%{box-shadow:none;background:inherit}
  20%,75%{box-shadow:0 0 0 3px #cd9b3755 inset,0 0 0 2px #cd9b3733;background:#fff9e8}
}


/* Section orientation system */
.jumpbar{
  position:sticky;
  top:96px;
  z-index:10;
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:8px 12px;
  background:#f8f7f6ee;
  backdrop-filter:blur(10px);
  border-bottom:1px solid #dddbd7;
  scrollbar-width:thin;
}
.jumpchip{
  border:1px solid #d9d7d2;
  border-radius:999px;
  background:white;
  padding:6px 10px;
  font-size:.72rem;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
@media (hover:hover){
.jumpchip:hover{transform:translateY(-1px)}}
.card h2{border-left:5px solid transparent;padding-left:11px}
.section-priorities h2,.jumpchip.section-priorities{background:#fce8e6;border-color:#d66a61;color:#8c2e28}
.section-things-to-do h2,.jumpchip.section-things-to-do{background:#fff1cf;border-color:#d2a02b;color:#765500}
.section-still-open h2,.jumpchip.section-still-open{background:#f7eedd;border-color:#ce9e3d;color:#cc9933}
.section-waiting-follow-up h2,.jumpchip.section-waiting-follow-up{background:#f1e8fa;border-color:#8e69b4;color:#5d3d7d}
.section-materials-site-needs h2,.jumpchip.section-materials-site-needs{background:#f8f2e6;border-color:#cda453;color:#93702b}
.section-qa-inspections h2,.jumpchip.section-qa-inspections{background:#f3ecde;border-color:#a78031;color:#59461f}
.section-deliveries h2,.jumpchip.section-deliveries{background:#e0f3f7;border-color:#4c9cad;color:#2e6976}
.section-quick-notes h2,.jumpchip.section-quick-notes{background:#efeeec;border-color:#89867f;color:#58554f}
.section-road-blocks h2,.jumpchip.section-road-blocks{background:#f9e2e2;border-color:#c65353;color:#8b2f2f}
.section-staff-on-site h2,.jumpchip.section-staff-on-site{background:#f2ede3;border-color:#c09338;color:#594b2d}
.section-end-of-day h2,.jumpchip.section-end-of-day{background:#efece5;border-color:#ba8e36;color:#554c39}
.section-first-thing-tomorrow h2,.jumpchip.section-first-thing-tomorrow{background:#f9f4e9;border-color:#d0aa5f;color:#a27c2f}
.focus-section{animation:sectionFocus 1.6s ease}
@keyframes sectionFocus{
  0%,100%{box-shadow:0 3px 12px #1d1a140b}
  20%,75%{box-shadow:0 0 0 3px #cd9b3766,0 10px 28px #1d1a1418}
}
@media(max-width:699px){
  .jumpbar{top:91px;padding:7px 8px}
}


/* Multi-year calendar controls */
.calendar-panel{max-width:980px;margin:0 auto}
.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;margin-bottom:14px}
.calendar-step{display:flex;gap:6px}
.calendar-step button,.calendar-today{border:1px solid #d3d0cb;background:white;border-radius:9px;padding:8px 11px;font-weight:800;cursor:pointer}
@media (hover:hover){
.calendar-step button:hover,.calendar-today:hover{background:#f7f6f3}}
.calendar-pickers{display:flex;gap:8px;justify-content:center}
.calendar-pickers select{border:1px solid #d3d0cb;border-radius:9px;background:white;padding:8px 10px;font-weight:750}
.calendar-title{text-align:center;font-size:1.35rem;font-weight:850;letter-spacing:-.02em;margin:4px 0 10px}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:5px}
.calendar-weekdays span{text-align:center;color:#79766f;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.day{position:relative;min-height:56px;aspect-ratio:auto}
.day span{position:relative;z-index:1}
.day i{position:absolute;width:6px;height:6px;border-radius:999px;background:#c29438;bottom:7px;left:50%;transform:translateX(-50%)}
.day.is-today{outline:2px solid #cd9b3766;outline-offset:1px}
.day.selected{outline:none}
@media(max-width:700px){
  .calendar-toolbar{grid-template-columns:1fr 1fr;gap:8px}
  .calendar-step{justify-content:center}
  .calendar-pickers{grid-column:1/-1;order:-1}
  .calendar-today{grid-column:1/-1}
  .calendar-weekdays span{font-size:.62rem}
  .day{min-height:44px}
}


/* Editing, due dates, quick add, backup */
.quickadd{
  margin:10px 14px 2px;
  display:grid;
  grid-template-columns:auto minmax(180px,1fr) minmax(150px,.55fr) 110px 155px auto;
  gap:8px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  box-shadow:0 2px 8px #1d1a1408;
}
.quickadd-title{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#605b52;padding:0 4px}
.quickadd input,.quickadd select,.edit-sheet input,.edit-sheet select,.edit-sheet textarea{
  border:1px solid #d3d0cb;
  border-radius:9px;
  background:white;
  padding:10px 11px;
  min-width:0;
  font:inherit;
}
.quickadd button{border:0;border-radius:9px;padding:10px 14px;background:var(--green);color:white;font-weight:850}
.due-input{border:1px solid #d3d0cb;border-radius:9px;background:white;padding:0 8px;min-width:135px}
.itemmeta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:4px}
.due{font-size:.7rem;color:#736f68;font-weight:750}
.due-today{color:#9a6500}
.due.overdue{color:#a12c26}
.overdue-row{background:#fff7f6}
.overdue-row .txt{color:#6f241f}
.overdue-open{border-left-color:#c65353;background:#fff8f7}
.edit{border:0;background:transparent;color:#686153;font-size:1.05rem;line-height:1;padding:2px 4px;cursor:pointer}
@media (hover:hover){
.edit:hover{color:var(--green)}}
.edit-sheet{max-width:560px}
.edit-sheet label{display:grid;gap:6px;font-size:.76rem;font-weight:800;color:#615c53;margin:10px 0}.edit-sheet textarea{resize:vertical;min-height:130px;line-height:1.45}
.data-tools{margin-top:30px;border-top:1px solid #e2e0dc;padding-top:18px}
.data-tools h2{margin:0 0 4px;font-size:1rem}
.data-tools p{margin:0 0 12px;color:#79766f}
.data-actions{display:flex;gap:8px;flex-wrap:wrap}
.import-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.import-label input{display:none}

@media(max-width:1000px){
  .quickadd{grid-template-columns:1fr 1fr 110px 150px auto}
  .quickadd-title{grid-column:1/-1}
}
@media(max-width:700px){
  .quickadd{margin:9px 10px 2px;grid-template-columns:1fr 1fr}
  .quickadd-title,.quickadd .qa-text-wrap{grid-column:1/-1}
  .quickadd [data-qa-section]{grid-column:1/-1}
  .quickadd button{grid-column:1/-1}
  .due-input{min-width:0}
  .row{gap:8px}
}


/* Focused field pages */
.section-title-link{
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer;
  text-align:left;
}
.section-title-link span{
  font-size:.68rem;
  letter-spacing:.02em;
  text-transform:none;
  opacity:.7;
}
@media (hover:hover){
.section-title-link:hover span{opacity:1}}

.section-page{padding:18px 20px 32px}
.section-page-head{display:flex;align-items:center;gap:18px;margin-bottom:14px}
.section-back{
  border:1px solid #d3d0cb;
  background:white;
  border-radius:9px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}
.section-kicker{font-size:.72rem;color:#79766f;font-weight:750;margin-bottom:3px}
.section-page h1{margin:0;font-size:1.7rem;letter-spacing:-.025em}
.section-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:0 0 12px;
}
.section-stats button{
  border:1px solid #dddad5;
  background:white;
  border-radius:10px;
  padding:10px 8px;
  color:#706c64;
  font-weight:800;
  cursor:pointer;
}
.section-stats button b{display:block;color:#24211a;font-size:1.18rem;line-height:1.1}
.section-stats button.active{
  border-color:#c89b41;
  box-shadow:inset 0 -3px #c89b41;
  background:#f7f6f5;
}
.section-add{margin:0 0 14px;border:1px solid #dddbd7;border-radius:11px}
.section-page-list{
  border:1px solid #dddbd7;
  border-radius:12px;
  overflow:hidden;
  background:white;
}
.section-page-row{margin:0}
.section-page-row + .section-page-row{border-top:1px solid #f0efed}

.section-page.section-priorities{border-top:5px solid #d66a61}
.section-page.section-things-to-do{border-top:5px solid #d2a02b}
.section-page.section-still-open{border-top:5px solid #ce9e3d}
.section-page.section-waiting-follow-up{border-top:5px solid #8e69b4}
.section-page.section-materials-site-needs{border-top:5px solid #cda453}
.section-page.section-qa-inspections{border-top:5px solid #a78031}
.section-page.section-deliveries{border-top:5px solid #4c9cad}
.section-page.section-quick-notes{border-top:5px solid #89867f}
.section-page.section-road-blocks{border-top:5px solid #c65353}
.section-page.section-staff-on-site{border-top:5px solid #c09338}
.section-page.section-end-of-day{border-top:5px solid #ba8e36}
.section-page.section-first-thing-tomorrow{border-top:5px solid #d0aa5f}

@media(max-width:700px){
  .section-page{padding:14px 10px 28px}
  .section-page-head{gap:10px}
  .section-stats{grid-template-columns:repeat(2,1fr)}
  .section-add{flex-wrap:wrap}
  .section-add input:first-child{flex-basis:100%}
  .section-title-link span{display:none}
}


/* Carry lineage, undo and attention */
.nav{grid-template-columns:repeat(5,1fr)}

.carried-row{
  background:#f4f3f2;
  opacity:.78;
}
.carried-row .txt{
  color:#706c65;
}
.carried-row input[type=checkbox]{
  opacity:.45;
  cursor:not-allowed;
}
.carried-meta{
  font-size:.7rem;
  color:#6c685f;
  font-weight:800;
}
.age-meta{
  font-size:.7rem;
  color:#926f2a;
  font-weight:800;
}

.undo-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:40;
  width:min(560px,calc(100% - 28px));
  background:#1d1a14;
  color:white;
  border-radius:12px;
  padding:11px 12px 11px 15px;
  box-shadow:0 10px 30px #0004;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size:.88rem;
}
.undo-toast button{
  border:0;
  border-radius:8px;
  background:#fff;
  color:#58441a;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
  flex:0 0 auto;
}

.attention-panel{max-width:980px;margin:0 auto}
.attention-intro{margin:-8px 0 16px;color:#736f68}
.attention-row{
  display:grid;
  grid-template-columns:minmax(120px,auto) 1fr;
  gap:12px;
  align-items:start;
}
.attention-tags{display:flex;gap:5px;flex-wrap:wrap}
.attention-tag{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:.67rem;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}
.attention-tag.overdue{background:#f8d7d4;color:#9e2821}
.attention-tag.today{background:#fff0c9;color:#8a6300}
.attention-tag.p1{background:#fce8e6;color:#8c2e28}
.attention-tag.waiting{background:#f1e8fa;color:#5d3d7d}

@media(max-width:700px){
  .nav button{font-size:.7rem;padding-left:2px;padding-right:2px}
  .attention-row{grid-template-columns:1fr}
  .undo-toast{bottom:12px}
}


/* Automatic priority summary */
.priority-summary-counts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  padding:10px 12px 8px;
  background:#fefcf9;
  border-bottom:1px solid #eee3e1;
}
.priority-summary-counts span{
  border-radius:9px;
  padding:8px 7px;
  text-align:center;
  font-size:.68rem;
  font-weight:900;
}
.priority-summary-counts span b{
  display:block;
  font-size:1.12rem;
  line-height:1.05;
  margin-bottom:2px;
}
.priority-summary-counts .p1{background:#f8d7d4;color:#8f2821}
.priority-summary-counts .p2{background:#fff0c9;color:#805d00}
.priority-summary-counts .p3{background:#e7e4df;color:#594927}
.priority-summary-list{padding:4px 0}
.priority-summary-row{
  width:100%;
  border:0;
  border-top:1px solid #f0efed;
  background:white;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:9px;
  align-items:start;
  text-align:left;
  padding:10px 12px;
  color:inherit;
  cursor:pointer;
}
.priority-summary-row:first-child{border-top:0}
@media (hover:hover){
.priority-summary-row:hover{background:#fcfbfa}}
.priority-summary-text{display:grid;gap:2px;min-width:0}
.priority-summary-text b{font-size:.9rem;line-height:1.25}
.priority-summary-text small{font-size:.68rem;color:#778079;font-weight:700}
.priority-summary-empty{padding:20px 12px;text-align:center;color:#778079;font-size:.82rem}
.legacy-priority-note{
  border-top:1px solid #eadad8;
  background:#fff8f7;
  padding:9px 12px;
  display:grid;
  gap:2px;
  font-size:.72rem;
  color:#7a4f4b;
}
.legacy-priority-note span{font-size:.68rem}
.priority-summary-page{border-top:5px solid #d66a61}


/* Account sync + feedback */
.account-chip{
  border:1px solid #ffffff35;
  background:#ffffff12;
  color:white;
  border-radius:10px;
  padding:6px 9px;
  display:grid;
  gap:1px;
  text-align:left;
  cursor:pointer;
  min-width:112px;
}
.account-chip.connected{border-color:#d2ad6388;background:#4c3f26}
.account-name{font-size:.72rem;font-weight:850;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sync-state{font-size:.62rem;color:#ffffffb5;white-space:nowrap}
.account-sheet{max-width:520px}
.account-sheet p{color:#706c65;line-height:1.45}
.account-sheet label{display:grid;gap:6px;font-size:.76rem;font-weight:800;color:#615c53;margin:12px 0}
.account-sheet input{
  border:1px solid #d3d0cb;
  border-radius:9px;
  background:white;
  padding:11px 12px;
  min-width:0;
  font:inherit;
}
.account-email{font-weight:850;color:#29251d!important}
.account-status{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid #dfddd8;
  border-radius:10px;
  padding:10px 12px;
  background:#faf9f7;
  margin:12px 0;
}
.account-status span{color:#8e6c29;font-weight:800}
.signout,.account-cancel{
  width:100%;
  margin-top:12px;
  border:0;
  background:transparent;
  color:#75716a;
  font-weight:800;
  padding:9px;
  cursor:pointer;
}
.signout{color:#9b4038}
.auth-message{
  min-height:20px;
  margin-top:10px;
  font-size:.76rem;
  color:#666259;
  font-weight:750;
}
.feedback-form{
  display:grid;
  gap:9px;
  max-width:720px;
}
.feedback-form select,
.feedback-form textarea{
  border:1px solid #d3d0cb;
  border-radius:9px;
  background:white;
  padding:10px 11px;
  font:inherit;
}
.feedback-form textarea{resize:vertical;min-height:100px}
.feedback-form button{justify-self:start;padding:10px 16px}
.feedback-form button:disabled{opacity:.55;cursor:not-allowed}

@media(max-width:700px){
  .top{gap:8px}
  .brand small{display:none}
  .topdate{display:none}
  .account-chip{min-width:96px;padding:5px 7px}
  .account-name{max-width:112px;font-size:.68rem}
  .sync-state{font-size:.58rem}
}

/* Daily report / PDF */
.day-actions{
  display:grid;
  grid-template-columns:minmax(0,350px);
  gap:10px;
  padding:8px 14px 18px;
}
.day-actions .finish{width:100%;max-width:none;margin:0}
.report-button{
  min-height:48px;
  border:1px solid #d1cec7;
  background:#f2f0ed;
  color:#40351f;
}
@media(max-width:700px){
  .day-actions{grid-template-columns:1fr;padding:8px 10px 18px}
  .report-button{order:2}
}
@media(min-width:1000px){
  .day-actions{padding-left:20px;padding-right:20px}
}

/* Report export choices */
.report-export-sheet{max-width:520px}
.report-export-sheet>p{margin:-6px 0 16px;color:#75716a}
.report-export-actions{display:grid;gap:10px}
.report-export-actions button{width:100%;min-height:48px;border-radius:10px;font-weight:850}
.report-cancel{border:0;background:transparent;color:#706b60}
.report-export-sheet small{display:block;margin-top:14px;color:#7a7770;line-height:1.4}

/* Account data safety + feedback */
.data-safety{
  display:grid;
  gap:8px;
  margin:12px 0 14px;
}
.data-safety>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #dddbd7;
  background:#faf9f7;
  border-radius:10px;
  padding:10px 11px;
}
.data-safety b{font-size:.78rem;color:#3a352b}
.data-safety span{font-size:.78rem;color:#747068;text-align:right}
.account-help{color:#747068;line-height:1.45}
.account-help-button{
  width:100%;
  margin-top:10px;
  border:1px solid #d1cec7;
  border-radius:10px;
  padding:12px;
  background:#f2f0ed;
  color:#40351f;
  font-weight:850;
}
.account-bottom-actions{margin-top:10px}
.feedback-sheet{max-width:520px}
.feedback-sheet>p{color:#747068;line-height:1.45}

.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.account-learn{display:block;margin-top:12px;text-align:center;color:#554526;font-weight:800;text-decoration:none}
.legal{max-width:900px}
.legal h1{font-size:clamp(2.5rem,6vw,4.5rem)}
.legal h2{font-size:1.35rem;margin-top:28px}

/* Trial / entitlement gate */
.access-gate{
  min-height:calc(100vh - 76px);
  display:grid;
  place-items:center;
  padding:28px 16px 48px;
  background:linear-gradient(180deg,#f8f7f5,#f3f1ee);
}
.access-card{
  width:min(560px,100%);
  background:white;
  border:1px solid #dddad5;
  border-radius:18px;
  padding:28px;
  box-shadow:0 18px 50px #1d1a141f;
}
.access-mark{
  color:#58441a;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.access-card h1{
  margin:6px 0 12px;
  font-size:clamp(2rem,7vw,3rem);
  line-height:1;
  letter-spacing:-.045em;
}
.access-card p{color:#6d685f;line-height:1.55}
.access-actions{display:grid;gap:10px;margin:20px 0 14px}
.access-actions button,.access-actions a{min-height:48px}
.access-card small{display:block;color:#78827b;line-height:1.4}


/* Desktop summary rail + collapsible daily sections */
.today-workspace{display:grid;grid-template-columns:1fr;align-items:start}
.today-summary-rail{margin:10px 14px 0;background:#fff;border:1px solid #dddbd7;border-radius:12px;overflow:hidden;box-shadow:0 3px 12px #1d1a140b}
.summary-rail-title{padding:11px 12px 9px;background:#f3f1ee;border-bottom:1px solid #e2e0dc;color:#3a352c;font-size:.73rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.summary-rail-priorities{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:9px}
.summary-metric{border:0;border-radius:9px;padding:8px 5px;cursor:pointer;font:inherit;font-weight:900}
.summary-metric b{display:block;font-size:1.12rem;line-height:1.05}
.summary-metric span{display:block;font-size:.64rem;margin-top:2px}
.summary-metric.p1{background:#f8d7d4;color:#8f2821}.summary-metric.p2{background:#fff0c9;color:#805d00}.summary-metric.p3{background:#e7e4df;color:#594927}.summary-metric.overdue{background:#f5dddd;color:#922c28}
.summary-rail-list{display:grid;border-top:1px solid #f0efed}
.summary-rail-list button,.summary-static{border:0;border-top:1px solid #f0efed;background:white;padding:9px 11px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#514c42;font:inherit;font-size:.76rem;font-weight:800;text-align:left}
.summary-rail-list button:first-child{border-top:0}.summary-rail-list button{cursor:pointer}@media (hover:hover){.summary-rail-list button:hover{background:#f9f8f6}}.summary-rail-list b,.summary-static b{font-size:.92rem;color:#25221b}
.today-content{min-width:0}
.card-heading{display:flex;align-items:center;gap:6px;padding:0!important}
.section-collapse-button{flex:1;min-width:0;border:0;background:transparent;color:inherit;padding:11px 8px 10px 11px;display:flex;align-items:center;gap:7px;text-align:left;cursor:pointer;font:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit}
.collapse-chevron{width:15px;flex:0 0 15px;font-size:1rem;line-height:1;transform:translateY(-1px)}
.section-heading-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.section-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:#ffffffb8;border:1px solid #00000012;font-size:.68rem;font-weight:900;letter-spacing:0}
.section-open-button{flex:0 0 auto;border:0;background:transparent;color:inherit;padding:10px 11px 10px 7px;font-size:.67rem;font-weight:850;cursor:pointer;opacity:.72}
@media (hover:hover){
.section-open-button:hover{opacity:1}}
.card.is-collapsed .card-body{display:none}.card.is-collapsed{box-shadow:0 2px 7px #1d1a1408}.card.is-collapsed .card-heading,.card.is-collapsed h2{border-bottom:0}
.priority-filter-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(min-width:1000px){
  .today-workspace{grid-template-columns:210px minmax(0,1fr);gap:0 4px;padding:0 20px 10px}
  .today-summary-rail{position:sticky;top:142px;margin:9px 0 0}
  .today-content{padding:9px 0 12px 14px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-rail-priorities{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:1500px){
  .today-workspace{grid-template-columns:230px minmax(0,1fr);gap:0 8px;padding-left:22px;padding-right:22px}
  .today-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
}
@media(max-width:999px){
  .today-summary-rail{margin:9px 14px 2px}.summary-rail-list{grid-template-columns:repeat(4,1fr)}
  .summary-rail-list button,.summary-static{border-top:1px solid #f0efed;border-left:1px solid #f0efed}
}
@media(max-width:700px){
  .today-summary-rail{margin:8px 10px 2px}.summary-rail-priorities{grid-template-columns:repeat(4,1fr)}.summary-rail-list{grid-template-columns:repeat(2,1fr)}
  .section-open-button{padding-right:9px}.priority-filter-stats{grid-template-columns:repeat(2,1fr)}
}


/* Slight field shading for stronger visual definition */
.today-content .card{border-color:#d7d4cf;box-shadow:0 4px 14px #1d1a1410}
.today-content .card-body{background:#faf9f8}
.today-content .row{background:#ffffffd9}
.today-content .add{background:#ffffffb8}

.today-content .section-road-blocks .card-body{background:#fff6f6}
.today-content .section-things-to-do .card-body{background:#fffaf0}
.today-content .section-still-open .card-body{background:#fcf9f3}
.today-content .section-waiting-follow-up .card-body{background:#faf6fd}
.today-content .section-materials-site-needs .card-body{background:#fdfbf6}
.today-content .section-qa-inspections .card-body{background:#fbf9f4}
.today-content .section-deliveries .card-body{background:#f4fbfc}
.today-content .section-quick-notes .card-body{background:#f9f8f7}
.today-content .section-staff-on-site .card-body{background:#faf8f5}
.today-content .section-end-of-day .card-body{background:#faf9f6}
.today-content .section-first-thing-tomorrow .card-body{background:#fdfbf6}

.today-content .card.is-collapsed{
  background:#f5f4f2;
  border-color:#d2cfc9;
}


/* Persistent coloured section tabs across Today and section pages */
.jumpbar{
  position:sticky;
  top:96px;
  z-index:10;
  margin:0;
  box-shadow:0 3px 10px #1d1a140d;
}
.jumpchip.active{
  box-shadow:inset 0 -3px currentColor,0 0 0 2px #ffffff;
  font-weight:900;
}
.quickadd{
  position:relative;
  z-index:1;
}
@media(max-width:699px){
  .jumpbar{top:91px}
}


/* Larger, clearer item counts in field headings */
.section-count{
  min-width:32px;
  height:28px;
  padding:0 9px;
  font-size:.82rem;
  font-weight:950;
  background:#fff;
  border:1px solid #00000020;
  box-shadow:0 1px 3px #1d1a1414;
}
.card-heading .section-count{
  margin-left:2px;
}
@media(min-width:1200px){
  .section-count{
    min-width:34px;
    height:30px;
    font-size:.88rem;
  }
}


/* OD is a selectable priority-cycle state */
.priority.overdue-priority{
  background:#f4d0cd;
  color:#962b25;
  border:1px solid #d98f88;
  min-width:38px;
  font-weight:950;
}

/* Long Line Site-Day brand shell */
.top{background:linear-gradient(112deg,#211b0e,#312714 58%,#201a0e);border-bottom:3px solid #cd9b37;box-shadow:0 4px 18px #201a0e2b}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;border:2px solid #cd9b37;background:#131210;box-shadow:0 2px 8px #0004}.brand-mark span{color:#efc45e;font-size:.67rem;font-weight:950}.brand-copy{display:grid;line-height:1}.brand-copy small{display:block;color:#cd9b37;opacity:1;text-transform:uppercase;letter-spacing:.16em;font-size:.52rem;font-weight:900;margin:0 0 3px}.brand-copy strong{color:#fff;font-size:1.08rem;white-space:nowrap}.brand-copy strong:before{content:none}@media(max-width:520px){.brand{gap:8px}.brand-mark{width:31px;height:31px;flex-basis:31px}.brand-copy strong{font-size:1rem}}


/* Readable diary palette and fields: opaque paper, dark text, visible controls. */
:root{
  font-size:17px;
  color:#2b271f;
  line-height:1.55;
  --ink:#2b271f;
  --green:#4e3d1b;
  --green-dark:#362a12;
  --line:#cbc7be;
  --muted:#625b4e;
  --paper:#ffffff;
  --wash:#f4f3f0;
  --field-border:#878175;
  --header-height:61px;
  --navigation-height:57px;
}
body{background:#ebe8e3}
.shell{background:#f4f3f0;box-shadow:0 0 36px #1d1a1414}
button,input,select,textarea{font-family:inherit;line-height:1.4}
.top{padding-top:12px;padding-bottom:12px;min-height:var(--header-height)}
.topdate b{font-size:.95rem}
.topdate span{font-size:.8rem;color:#eceae5}
.account-name{font-size:.8rem}
.sync-state{font-size:.75rem;color:#eceae5}
.account-chip{border-color:#d6b471;padding:7px 10px}
.nav{top:var(--header-height);min-height:var(--navigation-height);background:#fff;padding:6px 10px;backdrop-filter:none;border-bottom-color:var(--line)}
.nav button{font-size:.87rem;min-height:44px;color:#4b4539;font-weight:750}
.nav button.active{color:#3b2d12;background:#ece9e4}
.jumpbar{top:calc(var(--header-height) + var(--navigation-height));background:#f2efe9;backdrop-filter:none;border-bottom-color:var(--line);padding:8px 12px;gap:8px}
.jumpchip{font-size:.82rem;min-height:38px;padding:7px 12px;line-height:1.2}
.jumpchip.active{outline:2px solid var(--section-ink);outline-offset:2px;box-shadow:none}
.card,.today-content .card,.today-summary-rail,.section-page-list,.section-add{border-color:var(--line)}
.card h2{font-size:.88rem;letter-spacing:.04em}
.section-collapse-button{min-height:52px;padding:12px 10px;gap:9px}
.section-open-button{font-size:.8rem;opacity:1;min-height:44px;padding:10px 12px}
.section-title-link span{font-size:.8rem;opacity:1}
.section-count{font-size:.88rem;min-width:34px;height:30px;color:var(--section-ink,#2b271f);border-color:#b9b4aa;box-shadow:none}
.section-road-blocks,.section-priorities{--section-bg:#f6e3e0;--section-ink:#782c29;--section-accent:#a33d37;--section-wash:#fff8f6}
.section-things-to-do{--section-bg:#f8efce;--section-ink:#5c450b;--section-accent:#937015;--section-wash:#fffcf4}
.section-still-open{--section-bg:#f6edda;--section-ink:#cc9933;--section-accent:#cc9933;--section-wash:#fdfaf5}
.section-waiting-follow-up{--section-bg:#eee5f5;--section-ink:#553373;--section-accent:#795499;--section-wash:#fbf8fd}
.section-materials-site-needs{--section-bg:#f7f1e4;--section-ink:#665023;--section-accent:#ae8533;--section-wash:#fdfcf9}
.section-qa-inspections{--section-bg:#eee9df;--section-ink:#493b1f;--section-accent:#93702b;--section-wash:#fbf9f6}
.section-deliveries{--section-bg:#e0edf1;--section-ink:#275562;--section-accent:#487a87;--section-wash:#fcfaf5}
.section-quick-notes{--section-bg:#edeae5;--section-ink:#403a2f;--section-accent:#7b7363;--section-wash:#faf9f6}
.section-staff-on-site{--section-bg:#efe9de;--section-ink:#473c26;--section-accent:#a17b2f;--section-wash:#fbf9f4}
.section-end-of-day{--section-bg:#f0ede6;--section-ink:#534933;--section-accent:#b88d36;--section-wash:#fcfbf8}
.section-first-thing-tomorrow{--section-bg:#eae7f5;--section-ink:#49406f;--section-accent:#716695;--section-wash:#faf8fd}
.card[class*="section-"] .card-heading,.jumpchip[class*="section-"]{background:var(--section-bg);color:var(--section-ink);border-color:var(--section-accent)}
.section-page[class*="section-"]{border-top-color:var(--section-accent)}
.today-content .card-body{background:var(--section-wash,#faf9f6)}
.row,.today-content .row{background:#fff;padding:14px 12px;gap:10px;border-top-color:#e1ded8;align-items:flex-start}
.txt{font-size:1rem;color:var(--ink);line-height:1.6}
.itemmeta{gap:6px 10px;margin-top:5px}
.origin,.due,.age-meta,.carried-meta,.section-kicker,.priority-summary-text small{font-size:.8rem;line-height:1.5;color:#524b3d;font-weight:650}
.due-today{color:#73530c}
.due.overdue{color:#922d27}
.row.done,.today-content .row.done{background:#f4f2ef}
.row.done .txt{opacity:1;color:#655f52}
.carried-row,.today-content .carried-row{opacity:1;background:#f2efe9}
.materials-sort-control{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 14px;background:#f7f6f4;color:#2f2a22;font-size:.9rem;font-weight:750;border-bottom:1px solid #dfdcd7}
.materials-sort-control select{font:inherit;font-weight:650;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #989081;border-radius:8px;background:#fff;color:#1d1a14}
.materials-sort-control select:focus-visible{outline:3px solid #58441a;outline-offset:2px}
.carried-row .txt{color:#524b3d}
.overdue-row,.today-content .overdue-row{background:#fff5f2}
.overdue-row .txt{color:#732b26}
.priority{height:29px;font-size:.76rem;min-width:38px;padding:0 8px;margin-top:1px}
.priority.p1{background:#f4dcd6;color:#812d26}
.priority.p2{background:#faedc2;color:#634a08}
.priority.p3{background:#eae4d9;color:#473d27}
.priority.overdue-priority{background:#f4dcd6;color:#812d26;border-color:#a64c42}
.edit,.del{font-size:1.2rem;min-height:36px;min-width:32px;padding:5px;border-radius:6px;display:grid;place-items:center;cursor:pointer;flex-shrink:0}
.edit{color:#4b402b}.del{color:#92382f}
@media (hover:hover){
.edit:hover{background:#eeeae1}}@media (hover:hover){.del:hover{background:#f8e4de}}
.row input[type=checkbox]{width:24px;height:24px;margin-top:3px}
.add,.today-content .add{background:var(--section-wash,#f5f3ee);padding:12px;border-top-color:var(--line);gap:8px}
input:not([type=checkbox]):not([type=file]),select,textarea{
  background:#fff;
  color:#2b271f;
  border:1px solid var(--field-border);
  border-radius:8px;
  font-size:.94rem;
  padding:11px 12px;
  min-height:44px;
  outline-offset:3px;
}
input::placeholder,textarea::placeholder{color:#665f52;opacity:1}
.priority-select{font-size:.85rem;min-width:112px;padding:10px 8px}
.due-input{min-width:150px}
.quickadd{border-color:var(--line);background:#efebe3;padding:13px;gap:9px;grid-template-columns:auto minmax(180px,1fr) minmax(150px,.55fr) 126px 166px auto}
.quickadd-title{font-size:.8rem;color:#3f392e}
.quickadd input,.quickadd select{font-size:.94rem}
.quickadd button,.add button,.primary{background:#4e3d1b;min-height:44px;font-size:.94rem}
.secondary{background:#eae7e2;color:#38301f;min-height:44px;border:1px solid #a59e8f}
.edit-sheet label,.account-sheet label{font-size:.86rem;color:#3f392e}
.account-sheet p,.account-help,.account-sheet small,.auth-message,.feedback-sheet>p,.data-tools p,.attention-intro,.access-card p,.access-card small,.report-export-sheet>p,.report-export-sheet small{color:#524b3d}
.data-safety b,.data-safety span{font-size:.85rem;color:#4c4639}
.summary-rail-title{font-size:.83rem;color:#3f392e;background:#efebe3;padding:13px 12px}
.summary-rail-list button,.summary-static{font-size:.86rem;color:#3f392e;padding:12px}
.summary-metric{min-height:66px}.summary-metric span{font-size:.77rem}.summary-metric b{font-size:1.3rem}
.summary-metric.p1,.summary-metric.overdue{background:#f4dcd6;color:#812d26}.summary-metric.p2{background:#faedc2;color:#634a08}.summary-metric.p3{background:#eae4d9;color:#473d27}
.section-stats button,.section-kicker,.calendar-weekdays span,.empty,.priority-summary-empty{color:#524b3d}
.section-stats button{font-size:.9rem}.section-back,.calendar-step button,.calendar-today{color:#40351f;min-height:44px}
.calendar-weekdays span{font-size:.8rem}
.empty{font-size:.96rem}
.day{font-size:1rem;min-height:52px;border-color:#a59e8f;color:#3c362b}
.day.selected{color:#fff}
.day.has{border-color:#96722b;box-shadow:inset 0 -3px #96722b}
.day.is-today{outline-color:#8a650d}
.signout{color:#90392f}.account-cancel,.report-cancel{color:#524b3d}
input:not([type=checkbox]):not([type=file]):focus,select:focus,textarea:focus{border-color:#413113;outline:2px solid #413113;box-shadow:0 0 0 5px #ede7da}
button:focus-visible,a:focus-visible,input[type=checkbox]:focus-visible{outline:3px solid #413113;outline-offset:3px}
.top button:focus-visible{outline-color:#f0c96a}
@media(min-width:1000px){.today-summary-rail{top:188px}}
@media(max-width:1199px){
  .quickadd{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 126px 166px auto}
  .quickadd-title{grid-column:1/-1}
  .add{flex-wrap:wrap}
  .add input:first-child{flex:1 1 100%}
  .add .priority-select,.add .due-input{flex:1 1 120px;min-width:0}
}
@media(max-width:700px){
  :root{font-size:16px;--header-height:65px;--navigation-height:57px}
  .top{padding:10px 12px}.account-chip{padding:6px 8px}.account-name{font-size:.76rem;max-width:122px}.sync-state{font-size:.72rem}
  .nav button{font-size:.83rem;padding:8px 2px}
  .jumpbar{padding:8px}.jumpchip{min-height:40px;font-size:.85rem}
  .quickadd{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px}
  .quickadd-title,.quickadd .qa-text-wrap,.quickadd [data-qa-section],.quickadd button{grid-column:1/-1}
  .row,.today-content .row{padding:13px 10px;gap:8px}
  .edit,.del{min-width:34px;min-height:44px;padding:5px}
  .priority{min-width:33px;padding:0 6px;font-size:.72rem}
  .section-collapse-button{padding:12px 9px;gap:7px}.card h2{font-size:.87rem}
  .due-input{min-width:0}
  .day{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* A full-width writing line keeps entry fields useful on two-column cards. */
.today-content .add{flex-wrap:wrap}
.today-content .add input:first-child{flex:1 1 100%}
.today-content .add .priority-select,.today-content .add .due-input{flex:1 1 120px;min-width:0}
/* Sticky layers scale with text size instead of covering the next toolbar. */
:root{--header-height:calc(1.86rem + 38px);--navigation-height:max(57px,calc(1.218rem + 31px))}
.top{padding-top:10px;padding-bottom:10px}
.account-chip{padding-top:6px;padding-bottom:6px}
.account-name,.sync-state{line-height:1.2}
@media(min-width:1000px){.today-summary-rail{top:calc(var(--header-height) + var(--navigation-height) + 64px)}}
@media(max-width:700px){:root{--header-height:calc(1.776rem + 38px);--navigation-height:max(57px,calc(1.162rem + 29px))}}
/* Reflow follows available reading space, including enlarged browser text. */
.shell{container-type:inline-size}
@container (max-width:64rem){
  .quickadd{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quickadd-title,.quickadd .qa-text-wrap,.quickadd [data-qa-section],.quickadd button{grid-column:1/-1}
  .today-workspace{grid-template-columns:1fr;padding:0}
  .today-summary-rail{position:static;margin:10px 14px 2px}
  .summary-rail-priorities{grid-template-columns:repeat(4,minmax(0,1fr))}
  .summary-rail-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .today-content{grid-template-columns:minmax(0,1fr);padding:10px 14px}
}
.today-content .add .priority-select{flex-basis:7rem}
.today-content .add .due-input{flex-basis:10rem}


/* Active sections first; cards stack without sharing a neighbouring row's height. */
.today-content{display:block;column-count:2;column-gap:18px}
.today-content>.card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 14px}
.today-content .item-text,.section-page-list .item-text{font-size:1.06rem;font-weight:500;line-height:1.55}
.today-content .itemmeta,.section-page-list .itemmeta{margin-top:5px;gap:5px 10px}
.today-content .age-meta,.today-content .due,.today-content .carried-meta,.section-page-list .age-meta,.section-page-list .due,.section-page-list .carried-meta{font-size:.77rem;font-weight:600;line-height:1.45}
.today-content>.card.is-collapsed{margin-bottom:10px}
@media(max-width:999px){.today-content{column-count:1}}
@container (max-width:64rem){.today-content{column-count:1}}


/* Theme control stays alongside the main navigation on every screen. */
.nav{grid-template-columns:repeat(6,minmax(0,1fr))}
.nav [data-theme-toggle]{border:1px solid var(--line);min-height:44px}
@media(max-width:400px){.nav{padding-left:4px;padding-right:4px;gap:2px}.nav button{font-size:.75rem;padding-left:1px;padding-right:1px}}
:root[data-theme="dark"]{color-scheme:dark;color:#efede8;background:#14120e;--ink:#efede8;--paper:#211e18;--wash:#1d1a14;--line:#665f52;--muted:#c2bdb3;--green:#d4b16c;--green-dark:#4d3e1f;--field-border:#9b9281}
[data-theme="dark"] body{background:#14120e}
[data-theme="dark"] .shell{background:#191612;color:var(--ink)}
[data-theme="dark"] :is(.card,.today-content .card,.today-summary-rail,.section-page-list,.section-add,.sheet,.openrow,.access-card,.priority-summary-card,.data-tools,.data-safety){background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme="dark"] :is(.row,.today-content .row,.add,.today-content .add,.quickadd,.jumpbar,.nav,.summary-rail-title,.summary-rail-list button,.summary-static,.section-stats button,.day,.materials-sort-control){background:#211e18;color:var(--ink);border-color:var(--line)}
[data-theme="dark"] :is(.nav button,.quickadd-title,.summary-rail-title,.summary-rail-list button,.summary-static,.section-stats button b,.section-back,.calendar-step button,.calendar-today,.priority-summary-row,.section-kicker){color:var(--ink)}
[data-theme="dark"] :is(.nav button.active,.section-stats button.active,.secondary){background:#373228;color:#f2eadb;border-color:#9b9281}
[data-theme="dark"] :is(.primary,.quickadd button,.add button,.day.selected){background:#584624;color:#fff;border-color:#d4b16c}
[data-theme="dark"] :is(input:not([type=checkbox]):not([type=file]),select,textarea){background:#15130f;color:#f3f1ee;border-color:#9b9281}
[data-theme="dark"] :is(input,textarea)::placeholder{color:#c2bdb3}
[data-theme="dark"] :is(.origin,.age-meta,.carried-meta,.due,.empty,.priority-summary-empty,.calendar-weekdays span,.account-sheet p,.account-help,.account-sheet small,.auth-message,.feedback-sheet>p,.data-tools p,.attention-intro,.access-card p,.access-card small,.report-export-sheet>p,.report-export-sheet small,.edit-sheet label,.account-sheet label,.account-cancel,.report-cancel,.data-safety b,.data-safety span){color:#c2bdb3}
[data-theme="dark"] :is(.edit,.account-learn,.access-mark,a){color:#e0c796}
[data-theme="dark"] :is(.del,.signout,.due.overdue){color:#ffb4a9}
[data-theme="dark"] .due-today{color:#f5d58a}
[data-theme="dark"] .account-email{color:var(--ink)!important}
[data-theme="dark"] .account-status{background:#1d1a14;border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .account-status span{color:#e0c796}
[data-theme="dark"] .data-safety>div{background:#1d1a14;border-color:var(--line)}
[data-theme="dark"] .data-safety b{color:var(--ink)}
[data-theme="dark"] .account-help-button{background:#373228;color:#f2eadb;border-color:#9b9281}
[data-theme="dark"] :is(.row.done,.today-content .row.done,.carried-row){background:#1d1a14}
[data-theme="dark"] .row.done .txt{color:#c2bdb3;opacity:1}
[data-theme="dark"] :is(.today-content .card-body,.card-body){background:#1d1a14}
[data-theme="dark"] .section-road-blocks,[data-theme="dark"] .section-priorities{--section-bg:#482b29;--section-ink:#ffc0b6;--section-accent:#da8b7f;--section-wash:#211b19}
[data-theme="dark"] .section-things-to-do{--section-bg:#403720;--section-ink:#f5d58a;--section-accent:#c1a25d;--section-wash:#211f18}
[data-theme="dark"] .section-still-open{--section-bg:#443023;--section-ink:#e9d3a7;--section-accent:#c3a76e;--section-wash:#211c18}
[data-theme="dark"] .section-waiting-follow-up{--section-bg:#372c44;--section-ink:#dac1f3;--section-accent:#ab8bc5;--section-wash:#1e1b24}
[data-theme="dark"] .section-materials-site-needs{--section-bg:#40351f;--section-ink:#eee0c5;--section-accent:#dbbe83;--section-wash:#241e14}
[data-theme="dark"] .section-qa-inspections{--section-bg:#302b22;--section-ink:#e7d4ae;--section-accent:#d0a95b;--section-wash:#1d1a15}
[data-theme="dark"] .section-deliveries{--section-bg:#243b42;--section-ink:#b6e1ec;--section-accent:#7fb3bf;--section-wash:#201c14}
[data-theme="dark"] .section-quick-notes{--section-bg:#3d3930;--section-ink:#ddd9d1;--section-accent:#aea799;--section-wash:#1f1c17}
[data-theme="dark"] .section-staff-on-site{--section-bg:#322d24;--section-ink:#e4d6b9;--section-accent:#d1ab60;--section-wash:#1f1c16}
[data-theme="dark"] :is(.card[class*="section-"] .card-heading,.card[class*="section-"] h2,.jumpchip[class*="section-"]){background:var(--section-bg,#3d3930);color:var(--section-ink,#efede8);border-color:var(--section-accent,#aea799)}
[data-theme="dark"] .card-heading .section-count{background:#15130f;color:var(--section-ink);border-color:var(--section-accent)}
[data-theme="dark"] :is(.priority.p1,.priority.overdue-priority,.summary-metric.p1,.summary-metric.overdue,.priority-row.p1 .open-priority){background:#482b29;color:#ffc0b6;border-color:#da8b7f}
[data-theme="dark"] :is(.priority.p2,.summary-metric.p2,.priority-row.p2 .open-priority){background:#403720;color:#f5d58a}
[data-theme="dark"] :is(.priority.p3,.summary-metric.p3,.priority-row.p3 .open-priority){background:#322d24;color:#e4d6b9}
[data-theme="dark"] :is(.access-gate,.priority-summary-row,.report-preview){background:#1d1a14;color:var(--ink)}
[data-theme="dark"] :is(input:not([type=checkbox]):not([type=file]),select,textarea):focus{border-color:#e0c796;outline-color:#e0c796;box-shadow:0 0 0 4px #39301f}
[data-theme="dark"] :is(button,a,input[type=checkbox]):focus-visible{outline-color:#e0c796}
/* Reports retain their light paper layout when printed. */
@media print{[data-theme="dark"] .report-preview{background:white;color:#1d1a14}}

[data-theme="dark"] .overdue-row .txt{color:#ffb4a9}
[data-theme="dark"] :is(.summary-rail-list b,.summary-static b){color:#efede8}
@media(max-width:700px){.nav{gap:3px;padding-left:5px;padding-right:5px}.nav button{font-size:.76rem;padding-left:1px;padding-right:1px}}
[data-theme="dark"] :is(.calendar-today,.calendar-step button,.section-back){background:#373228;border-color:#9b9281;color:#f2eadb}

.day-navigator{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center;margin:12px 14px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.day-navigator>button{min-width:44px;min-height:44px;background:#eae7e2;color:#38301f;border:1px solid #a59e8f;border-radius:8px;font-size:1.65rem;font-weight:800;cursor:pointer}
.day-navigator-date{text-align:center;display:grid;gap:3px;font-size:.95rem;color:var(--ink)}
.day-navigator-date>span{font-size:.78rem;color:#524b3d}
.day-navigator-date>button{justify-self:center;background:transparent;border:0;color:#4e3d1b;min-height:44px;padding:6px 10px;font:inherit;font-size:.85rem;text-decoration:underline;cursor:pointer}
.day.is-today,.day.is-today.selected{outline:3px solid #8a650d;outline-offset:1px;border-color:#8a650d;background:#fff0c2;color:#5c450b;min-height:62px}
.day.is-today small{display:block;font-size:.65rem;font-weight:850;line-height:1.2;margin-top:2px}
.day.is-today i{left:auto;right:6px;bottom:6px;transform:none}
[data-theme="dark"] .day.is-today,[data-theme="dark"] .day.is-today.selected{background:#403720;color:#f5d58a;border-color:#f5d58a;outline-color:#f5d58a}
[data-theme="dark"] .day-navigator>button{background:#373228;color:#f2eadb;border-color:#9b9281}
[data-theme="dark"] .day-navigator-date>span{color:#c2bdb3}
[data-theme="dark"] .day-navigator-date>button{color:#e0c796}
.jumpchip{display:inline-flex;align-items:center;gap:7px}
.jump-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;padding:1px 5px;border:1px solid var(--section-accent);border-radius:999px;background:#fff;color:var(--section-ink);font-size:.75rem;font-weight:850;line-height:1}
[data-theme="dark"] .jump-count{background:#15130f;color:var(--section-ink);border-color:var(--section-accent)}
/* A stable sun/moon switch; checked means dark mode is enabled. */
.theme-switch,.nav .theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px;border:0;background:transparent;color:#4b4539;cursor:pointer}
.theme-sun,.theme-moon{font-size:1rem;line-height:1}
.theme-track{display:block;position:relative;width:36px;height:22px;border:1px solid #797264;border-radius:999px;background:#e3e0d9;flex:0 0 auto}
.theme-thumb{position:absolute;width:16px;height:16px;top:2px;left:2px;border-radius:50%;background:#40351f}
.theme-switch[aria-checked="true"] .theme-track{background:#635232;border-color:#e0c796}
.theme-switch[aria-checked="true"] .theme-thumb{left:16px;background:#f3f1ee}
[data-theme="dark"] .theme-switch{color:#e6e3dc}
@media(max-width:700px){.nav .theme-switch{gap:2px;padding:4px 1px}.nav .theme-sun,.nav .theme-moon{font-size:.75rem}.nav .theme-track{width:28px;height:20px}.nav .theme-thumb{width:14px;height:14px}.nav .theme-switch[aria-checked="true"] .theme-thumb{left:10px}}

/* Keep the diary date prominent, with its controls grouped beside it. */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto;min-width:0}
.top .theme-switch{color:#f3f1ee;flex:0 0 auto}
.nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.day-navigator{grid-template-columns:44px minmax(0,auto) 44px;justify-content:center;gap:20px;padding:14px}
.day-navigator-date{min-width:290px}
.day-navigator-date>b{font-size:1.5rem;line-height:1.35;letter-spacing:-.02em}
.day-navigator-date>span{font-size:.85rem}
.today-content .age-meta,.today-content .due,.today-content .carried-meta,.section-page-list .age-meta,.section-page-list .due,.section-page-list .carried-meta{font-size:.875rem;font-weight:500;line-height:1.5}
.priority.is-overdue{border:2px solid #a64c42}
[data-theme="dark"] .priority.is-overdue{border-color:#ffb4a9}
.summary-help{margin:0;padding:0 12px 10px;color:#524b3d;font-size:.8rem;line-height:1.5}
[data-theme="dark"] .summary-help{color:#c2bdb3}
.edit,.del{min-width:36px;min-height:44px;border-radius:7px}
@media (hover:hover){
.edit:hover{background:#eae7e2}}@media (hover:hover){.del:hover{background:#f4dcd6}}
@media (hover:hover){
[data-theme="dark"] .edit:hover{background:#373228}}@media (hover:hover){[data-theme="dark"] .del:hover{background:#482b29}}
@media(max-width:700px){
  .top{gap:8px}.header-actions{gap:6px}.header-actions .account-name{max-width:96px}
  .header-actions .theme-switch{gap:2px;padding:4px 2px}.header-actions .theme-sun,.header-actions .theme-moon{font-size:.8rem}
  .header-actions .theme-track{width:28px;height:20px}.header-actions .theme-thumb{width:14px;height:14px}.header-actions .theme-switch[aria-checked="true"] .theme-thumb{left:10px}
  .day-navigator{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:10px 6px}.day-navigator-date{min-width:0}.day-navigator-date>b{font-size:1.15rem}
  .nav button{font-size:.82rem}
}
.edit-sheet .manual-overdue-option{display:flex;align-items:center;gap:10px;min-height:44px}
.manual-overdue-option input{width:22px;height:22px;accent-color:var(--green)}
@media(max-width:360px){.header-actions .account-name{max-width:72px}}

/* Show entry controls only when needed. */
.section-compose>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:10px 14px;font-size:.95rem;font-weight:650;color:var(--green);border-top:1px solid var(--line)}
.section-compose>summary::-webkit-details-marker,.entry-actions>summary::-webkit-details-marker{display:none}
.section-compose[open]>summary{background:var(--wash)}
.entry-actions{position:relative;flex:0 0 44px;margin-top:-5px}
.entry-actions>summary{list-style:none;display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;border-radius:8px;font-size:1.5rem;color:var(--ink)}
.entry-actions[open]>summary{background:var(--wash)}
@media (hover:hover){
.entry-actions>summary:hover{background:var(--wash)}}
.entry-actions-menu{position:absolute;right:0;top:42px;z-index:4;min-width:120px;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:9px;box-shadow:0 4px 16px #0003}
.entry-actions-menu button{width:100%;display:flex;justify-content:flex-start;font-size:.95rem;padding:9px 12px;min-height:44px}
.card:has(.entry-actions[open]){overflow:visible;position:relative;z-index:3}
.card-heading .materials-sort-control{background:transparent;border:0;color:inherit;padding:4px 8px;gap:6px;font-size:.8rem;letter-spacing:normal;text-transform:none}
.card-heading .materials-sort-control select{font-size:.85rem;padding:6px;min-height:44px;max-width:130px}
.card-heading:has(.materials-sort-control){flex-wrap:wrap}
.card-heading:has(.materials-sort-control) .section-collapse-button{flex-basis:190px}
[data-theme="dark"] .section-compose>summary{color:#e0c796}
[data-theme="dark"] .section-compose[open]>summary,[data-theme="dark"] .entry-actions[open]>summary{background:#373228}
@media (hover:hover){
[data-theme="dark"] .entry-actions>summary:hover{background:#373228}}
:is(.section-compose,.entry-actions)>summary:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
[data-theme="dark"] :is(.section-compose,.entry-actions)>summary:focus-visible{outline-color:#e0c796}
.card-heading:has(.materials-sort-control) .section-collapse-button{flex-basis:100%}
.card-heading .materials-sort-control{margin-left:auto}
@media(max-width:360px){.nav button{font-size:.72rem;letter-spacing:0;padding-left:1px;padding-right:1px}}
/* Jobs: switch between jobs on Today; tag entries with their job. */
.job-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 14px 10px;padding:6px 8px;background:var(--paper);border:1px solid var(--line);border-radius:10px;min-width:0}
.job-bar-label{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#524b3d;flex:0 0 auto}
.job-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 auto;min-width:0;padding:2px 0}
.job-chip{flex:0 1 auto;max-width:100%;min-height:44px;padding:8px 12px;border:1px solid #b3ac9f;border-radius:999px;background:#f6f5f2;color:#38301f;font:inherit;font-size:.86rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.job-chip.active{background:var(--green);border-color:var(--green);color:#fff}
.job-hint{font-size:.82rem;color:#6b665b;align-self:center}
.job-manage{flex:0 0 auto;min-height:44px;padding:8px 10px;border:0;background:transparent;color:#4e3d1b;font:inherit;font-size:.85rem;font-weight:750;text-decoration:underline;cursor:pointer;white-space:nowrap}
.job-tag{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:#eeece7;color:#38301f;font-size:.7rem;font-weight:800}
.jobs-sheet .job-edit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:0 0 10px}
.jobs-sheet .job-edit-row>input,.jobs-sheet label>input{min-height:44px;width:100%;border:1px solid #d0ccc5;border-radius:8px;padding:8px 10px;font:inherit}
.jobs-sheet>label{display:grid;gap:6px;margin:12px 0;font-weight:750}
.job-archive{display:flex;align-items:center;gap:6px;font-size:.85rem;white-space:nowrap}
.job-archive input{width:20px;height:20px}
.report-job{display:grid;gap:6px;margin:0 0 12px;font-weight:750}
.report-job select{min-height:44px;font:inherit}
[data-theme="dark"] .job-bar-label,[data-theme="dark"] .job-hint{color:#c2bdb3}
[data-theme="dark"] .job-chip{background:#2a261e;color:#f2eadb;border-color:#554e41}
[data-theme="dark"] .job-chip.active{background:#685228;border-color:#d4b16c;color:#fff}
[data-theme="dark"] .job-manage{color:#e0c796}
[data-theme="dark"] .job-tag{background:#373228;color:#f2eadb}
[data-theme="dark"] .jobs-sheet .job-edit-row>input,[data-theme="dark"] .jobs-sheet label>input{background:#15130f;color:var(--ink);border-color:#554e41}
/* Long sync messages must never widen the page on a phone. */
.account-chip{min-width:0;max-width:min(220px,52vw)}
.account-chip .account-name,.account-chip .sync-state{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Dialogs scroll inside the screen so Save is always reachable on short phones. */
.modal .sheet{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);overflow-y:auto;overscroll-behavior:contain}
/* Sync V2: changes refused by the server, waiting for the user's decision. */
.v2-review-banner{display:flex;align-items:center;gap:10px;margin:0 14px 10px;padding:10px 12px;border:1px solid #cd9b37;border-radius:10px;background:#fff6e0;color:#5c450b;font-size:.9rem}
.v2-review-banner span{flex:1 1 auto;min-width:0}
.v2-review-banner button{flex:0 0 auto;min-height:44px;padding:8px 14px;border:0;border-radius:8px;background:#8a650d;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.v2-conflict{border:1px solid var(--line);border-radius:10px;padding:10px;margin:0 0 10px;display:grid;gap:6px;overflow-wrap:anywhere}
.v2-conflict-day{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#524b3d}
[data-theme="dark"] .v2-review-banner{background:#403720;color:#f5d58a;border-color:#f5d58a}
[data-theme="dark"] .v2-review-banner button{background:#f5d58a;color:#2a2210}

/* Calm palette (Nov 2026): one main colour (green) + one highlight (brand gold).
   Red is kept for Road Blocks and overdue items, amber for items due today.
   Every other section shares one neutral look so the diary reads as one page. */
:root{--calm-bg:#efede8;--calm-ink:#3f331a;--calm-accent:#4e3d1b;--calm-wash:#f9f8f6;--highlight:#cd9b37;--warn-bg:#f6e3e0;--warn-ink:#782c29;--warn-accent:#a33d37;--warn-wash:#fff8f6;--amber-ink:#73530c}
:is(.section-things-to-do,.section-still-open,.section-waiting-follow-up,.section-materials-site-needs,.section-qa-inspections,.section-site-instructions,.section-deliveries,.section-quick-notes,.section-staff-on-site,.section-end-of-day,.section-first-thing-tomorrow,.section-priorities){--section-bg:var(--calm-bg);--section-ink:var(--calm-ink);--section-accent:var(--calm-accent);--section-wash:var(--calm-wash)}
.section-road-blocks{--section-bg:var(--warn-bg);--section-ink:var(--warn-ink);--section-accent:var(--warn-accent);--section-wash:var(--warn-wash)}
.jumpchip.active{outline-color:var(--highlight)}
.priority.p1,:is(.summary-metric.p1,.priority-row.p1 .open-priority){background:var(--calm-accent);color:#fff;border-color:var(--calm-accent)}
.priority.p2,:is(.summary-metric.p2,.priority-row.p2 .open-priority){background:#e9e6e0;color:var(--calm-ink);border-color:#b3ac9f}
.priority.p3,:is(.summary-metric.p3,.priority-row.p3 .open-priority){background:#f1f0ed;color:#625b4e;border-color:#cfccc5}
.priority.overdue-priority,:is(.summary-metric.overdue){background:var(--warn-bg);color:var(--warn-ink);border-color:var(--warn-accent)}
.due-today{color:var(--amber-ink)}

[data-theme="dark"]{--calm-bg:#2f2a22;--calm-ink:#f2eadb;--calm-accent:#d4b16c;--calm-wash:#1d1a14;--highlight:#cd9b37;--warn-bg:#482b29;--warn-ink:#ffc0b6;--warn-accent:#da8b7f;--warn-wash:#211b19;--amber-ink:#f5d58a}
[data-theme="dark"] :is(.section-things-to-do,.section-still-open,.section-waiting-follow-up,.section-materials-site-needs,.section-qa-inspections,.section-site-instructions,.section-deliveries,.section-quick-notes,.section-staff-on-site,.section-end-of-day,.section-first-thing-tomorrow,.section-priorities){--section-bg:var(--calm-bg);--section-ink:var(--calm-ink);--section-accent:var(--calm-accent);--section-wash:var(--calm-wash)}
[data-theme="dark"] .section-road-blocks{--section-bg:var(--warn-bg);--section-ink:var(--warn-ink);--section-accent:var(--warn-accent);--section-wash:var(--warn-wash)}
[data-theme="dark"] :is(.priority.p1,.summary-metric.p1,.priority-row.p1 .open-priority){background:#584624;color:#fff;border-color:#d4b16c}
[data-theme="dark"] :is(.priority.p2,.summary-metric.p2,.priority-row.p2 .open-priority){background:#2f2a22;color:#f2eadb;border-color:#665f52}
[data-theme="dark"] :is(.priority.p3,.summary-metric.p3,.priority-row.p3 .open-priority){background:#211e18;color:#c2bdb3;border-color:#665f52}
[data-theme="dark"] :is(.priority.overdue-priority,.summary-metric.overdue){background:#482b29;color:#ffc0b6;border-color:#da8b7f}
.today-content [class*="section-"] .card-body{background:var(--section-wash)}

/* Simple QR sign in / out panel (Staff On Site) */
.signin-panel{padding:12px 14px;border-bottom:1px solid var(--line);background:var(--paper,#fff)}
.signin-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.signin-head b{font-size:.95rem}
.signin-head span{font-size:.82rem;color:var(--muted)}
.signin-qr-button{margin-left:auto;min-height:40px;padding:6px 12px;border-radius:8px}
.signin-help{margin:6px 0 0;font-size:.88rem;color:var(--muted)}
.signin-list{list-style:none;margin:8px 0 0;padding:0}
.signin-list li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}
.signin-list li:first-child{border-top:0}
.signin-name{font-weight:700;flex:1 1 140px}
.signin-name small{font-weight:500;color:var(--muted)}
.signin-times{font-size:.88rem;color:var(--muted)}
.signin-times b{color:var(--green)}
.signin-remove{min-width:36px;min-height:36px;border:0;background:none;color:var(--muted);font-size:1.2rem;cursor:pointer;border-radius:6px}
@media (hover:hover){
.signin-remove:hover{background:var(--wash)}}
.signin-sheet .signin-qr-wrap{text-align:center;margin:12px 0}
.signin-print svg{width:min(260px,70vw);height:auto;background:#fff;border-radius:8px}
.signin-print-title{font-weight:800;font-size:1.05rem;margin:0 0 8px}
.signin-print-help{font-size:.88rem;color:var(--muted);margin:8px 0 0}
.signin-sheet form{display:grid;gap:8px;margin:10px 0}
.signin-sheet label{display:grid;gap:4px;font-weight:650;font-size:.9rem}
@media print{
  body.printing-signin-qr > :not(.modal){display:none!important}
  body.printing-signin-qr .modal{position:static;background:none;padding:0}
  body.printing-signin-qr .sheet{box-shadow:none;border:0;max-width:none}
  body.printing-signin-qr .sheet > :not(.signin-qr-wrap){display:none!important}
  body.printing-signin-qr .signin-link{display:none}
  body.printing-signin-qr .signin-print svg{width:12cm}
  body.printing-signin-qr .signin-print-title{font-size:28pt}
  body.printing-signin-qr .signin-print-help{font-size:16pt;color:#000}
}
.signin-list li{display:grid;grid-template-columns:1fr auto;column-gap:8px;row-gap:2px}
.signin-list .signin-name{grid-column:1;grid-row:1}
.signin-list .signin-times{grid-column:1;grid-row:2}
.signin-list .signin-remove{grid-column:2;grid-row:1 / span 2;align-self:center}

/* Sign-up / sign-in result sits right under the buttons and stands out. */
.auth-message:empty{display:none}
.auth-message{margin-top:12px;padding:10px 12px;border-radius:8px;border:1px solid var(--line);font-size:.9rem;line-height:1.4;color:var(--ink)}
.auth-message[data-tone="success"]{background:#efebe3;border-color:#96722b;color:#3f331a}
.auth-message[data-tone="info"]{background:#fff6e0;border-color:#cd9b37;color:#5c450b}
[data-theme="dark"] .auth-message[data-tone="success"]{background:#2f2a22;border-color:#d4b16c;color:#f2eadb}
[data-theme="dark"] .auth-message[data-tone="info"]{background:#403720;border-color:#f5d58a;color:#f5d58a}
[data-signup]:disabled{opacity:1;cursor:default;border-color:#96722b}

/* As discussed on site: signed instruction records */
.new-instruction{display:block;width:calc(100% - 24px);margin:10px 12px 12px;border:1px dashed var(--section-accent,#93702b);background:var(--section-wash,#fbf9f6);color:var(--section-ink,#493b1f);border-radius:10px;padding:12px;font-weight:800;text-align:left}
.instruction-row{align-items:center}
.instruction-thumb{flex:0 0 74px;height:34px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#1d1a14;padding:2px;display:grid;place-items:center}
.instruction-thumb svg{width:100%;height:100%}
.instruction-meta{font-size:.72rem;color:var(--muted);font-weight:600}
.instruction-intro{font-size:.84rem;color:var(--muted);margin:-6px 0 6px}
.pad-block{margin:12px 0}
.pad-head{display:flex;justify-content:space-between;align-items:center;font-size:.76rem;font-weight:800;color:#615c53;margin-bottom:6px}
.pad-tools{display:flex;gap:6px}.pad-tools button{padding:7px 11px;font-size:.78rem}
.draw-pad{display:block;width:100%;height:auto;background:#fff;color:#1d1a14;border:1.5px solid #b0aa9f;border-radius:10px;cursor:crosshair;touch-action:none}
.pad-signature{aspect-ratio:600/220;background:linear-gradient(transparent 76%,#d1cec7 76%,#d1cec7 calc(76% + 1.5px),transparent calc(76% + 1.5px)),#fff}
.pad-sketch{aspect-ratio:600/400;background-image:linear-gradient(#f2f1ee 1px,transparent 1px),linear-gradient(90deg,#f2f1ee 1px,transparent 1px);background-size:30px 30px;background-color:#fff}
.pad-block small{display:block;font-size:.72rem;color:var(--muted);margin-top:4px}
.instruction-error{background:#fde8e6;color:#8b231c;border-radius:8px;padding:9px 11px;font-size:.85rem;font-weight:700}
.instruction-view-date{font-size:.8rem;color:var(--muted);font-weight:700;margin:-8px 0 10px}
.instruction-view-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;font-weight:650;margin-bottom:12px}
.instruction-view-label{font-size:.76rem;font-weight:800;color:#615c53;margin:10px 0 4px}
.instruction-drawing{display:block;width:100%;height:auto;background:#fff;color:#1d1a14;border:1px solid var(--line);border-radius:10px}
.instruction-signature{max-width:360px}
.instruction-view-time{font-size:.78rem;color:var(--muted);margin:6px 0 14px}
[data-theme="dark"] :is(.pad-head,.instruction-view-label){color:#d6d2c9}
[data-theme="dark"] .instruction-intro,[data-theme="dark"] .instruction-meta,[data-theme="dark"] .instruction-view-date,[data-theme="dark"] .instruction-view-time,[data-theme="dark"] .pad-block small{color:#c2bdb3}
.instruction-sheet .instruction-other[hidden]{display:none}
.section-page-list:has(.entry-actions[open]){overflow:visible}
.instruction-open,.instruction-thumb{cursor:pointer}
.instruction-row{transition:background .12s}
@media (hover:hover){
.instruction-row:hover{background:var(--section-wash,#f7f6f5)}}
@media (hover:hover){
.instruction-row:hover .item-text{text-decoration:underline;text-underline-offset:3px}}
@media (hover:hover){
.instruction-row:hover .instruction-thumb{border-color:var(--section-accent,#93702b)}}
.instruction-open:focus-visible{outline:3px solid var(--green);outline-offset:2px;border-radius:6px}
@media (hover:hover){
[data-theme="dark"] .instruction-row:hover{background:#2a271f}}
.instruction-export{margin-bottom:8px}
.section-stats[hidden]{display:none}

/* Long Line gold badge (matches Tool Tracker / Timesheet Manager) */
.brand-mark{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;background:url(/img/badge-128.png) center/contain no-repeat;box-shadow:0 2px 10px #0006}
.brand-mark span{display:none}
.brand-copy small{color:#cd9b37;opacity:1;letter-spacing:.2em}
@media(max-width:520px){.brand-mark{width:36px;height:36px;flex-basis:36px}}
.sheet-badge{display:block;width:96px;height:96px;margin:0 auto 10px;border-radius:50%;box-shadow:0 6px 18px #0004}

/* Long Line calm look (Nov 2026 tidy-up).
   White paper, dark green ink, brand gold only for "you are here" and today.
   Colour is kept for meaning only: red = overdue / road blocks, amber = due today.
   Fewer boxes, tints and shadows; more white space. */
:root{
  --ll-green:#1e1a11;--ll-green-2:#58441a;--ll-gold:#cd9b37;--ll-gold-soft:#f7eed9;
  --ll-bg:#f6f6f2;--ll-paper:#fff;--ll-line:#e5e3df;--ll-line-soft:#efedea;--ll-muted:#6b675f;
  --ll-red:#a33d37;--ll-head:#f3f1ee;--ll-head-line:#e7e4df;--ll-red-soft:#fbeceb;--ll-amber:#8a6300;
  --ink:#1e1a11;--green:#58441a;--green-dark:#1e1a11;--line:var(--ll-line);--muted:var(--ll-muted);--paper:#fff;--wash:var(--ll-bg);
  color:var(--ll-green);background:var(--ll-bg)
}
body,.shell{background:var(--ll-bg)}
.shell{box-shadow:none}

/* Header: flat green, thin gold rule */
.top{background:var(--ll-green);border-bottom:2px solid var(--ll-gold);box-shadow:none}
.account-chip{background:transparent;border-color:#ffffff40}
.account-chip.connected{background:transparent;border-color:#ffffff40}

/* Navigation: plain text tabs, gold underline on the active one */
.nav{background:var(--ll-paper);border-bottom:1px solid var(--ll-line);box-shadow:none;backdrop-filter:none}
.nav button{color:var(--ll-muted);background:transparent;border-radius:0;font-weight:650}
.nav button.active{color:var(--ll-green);background:transparent;box-shadow:inset 0 -3px var(--ll-gold);font-weight:800}
.nav [data-theme-toggle]{border-color:var(--ll-line)}

/* Section jump chips: quiet outlines, no rainbow */
.jumpbar{background:var(--ll-bg);border-bottom:1px solid var(--ll-line);padding:10px 14px}
.jumpchip,.jumpchip[class*="section-"]{background:var(--ll-paper);border:1px solid var(--ll-line);color:var(--ll-green);font-weight:700;box-shadow:none}
.jumpchip .jump-count,.jumpchip .section-count{background:transparent;border:0;box-shadow:none;color:var(--ll-muted);font-weight:700}
.jumpchip.active{outline:0;border-color:var(--ll-green-2);box-shadow:inset 0 0 0 1px var(--ll-green-2)}
.jumpchip.section-road-blocks{color:var(--ll-red)}

/* Every section looks the same; red only for road blocks */
:root :is(.card,.jumpchip,.section-page)[class*="section-"]{--section-bg:var(--ll-paper);--section-ink:var(--ll-green);--section-accent:var(--ll-line);--section-wash:var(--ll-paper)}
:root :is(.card,.jumpchip,.section-page).section-road-blocks{--section-ink:var(--ll-red)}
.card,.today-content .card,.today-summary-rail,.section-page-list,.section-add,.quickadd,.job-bar{background:var(--ll-paper);border:1px solid var(--ll-line);box-shadow:none;border-radius:14px}
.card.is-collapsed{box-shadow:none}
.card h2,.card-heading,.card[class*="section-"] .card-heading,.card[class*="section-"] h2{background:var(--ll-head);color:var(--section-ink);border-left:0;border-bottom:1px solid var(--ll-head-line);letter-spacing:.08em}
.today-content .card-body,.today-content [class*="section-"] .card-body,.today-content .card[class*="section-"] .card-body,.card-body{background:var(--ll-paper)}
.card-heading .section-count,.section-count{background:var(--ll-paper);border:0;box-shadow:none;color:var(--ll-muted);font-size:.8rem;min-width:28px;height:24px}
.section-open-button,.section-title-link span{color:var(--ll-muted);font-weight:650}
.section-page[class*="section-"]{border-top:0}
.row,.today-content .row,.row.done,.today-content .row.done{background:var(--ll-paper);border-top-color:var(--ll-line-soft)}
.add,.today-content .add{background:var(--ll-paper);border-top-color:var(--ll-line-soft)}
.overdue-row,.today-content .overdue-row{background:var(--ll-paper)}
.overdue-row .txt{color:var(--ll-green)}
.carried-row,.today-content .carried-row{background:var(--ll-bg)}
.section-compose>summary{color:var(--ll-green-2)}
.new-instruction{border-color:var(--ll-line);background:var(--ll-paper);color:var(--ll-green-2)}

/* Priority tags: one quiet style, P1 marked in gold, overdue in red */
.priority,.open-priority{box-shadow:none}
.priority.p1,.summary-metric.p1,.priority-row.p1 .open-priority,.attention-tag.p1{background:var(--ll-green-2);color:#fff;border:1px solid var(--ll-green-2)}
.priority.p2,.summary-metric.p2,.priority-row.p2 .open-priority{background:var(--ll-bg);color:var(--ll-muted);border:1px solid var(--ll-line)}
.priority.p3,.summary-metric.p3,.priority-row.p3 .open-priority{background:transparent;color:#918e87;border:1px solid var(--ll-line)}
.priority.overdue-priority,.summary-metric.overdue,.attention-tag.overdue{background:var(--ll-red-soft);color:var(--ll-red);border:1px solid #efc9c5}
.attention-tag.today{background:var(--ll-gold-soft);color:#6e4d07}
.attention-tag.waiting{background:var(--ll-bg);color:var(--ll-muted);border:1px solid var(--ll-line)}
.due{color:var(--ll-muted)}.due-today{color:var(--ll-amber)}.due.overdue{color:var(--ll-red)}

/* Today summary: numbers, not coloured tiles */
.summary-rail-title{background:var(--ll-head);border-bottom:1px solid var(--ll-head-line);color:var(--ll-muted)}
.summary-metric{border:1px solid var(--ll-line)!important}
.summary-rail-list button,.summary-static{background:var(--ll-paper);border-color:var(--ll-line-soft)}
@media (hover:hover){
.summary-rail-list button:hover{background:var(--ll-bg)}}

/* Buttons: solid green for the main action, outline for the rest */
.primary,.add button,.quickadd button,.access-card .primary{background:var(--ll-green-2);color:#fff;border:0;box-shadow:none}
@media (hover:hover){
.primary:hover,.add button:hover,.quickadd button:hover{background:#493815}}
.secondary,.section-back,.calendar-step button,.calendar-today,.day-navigator>button,.report-button{background:var(--ll-paper);color:var(--ll-green);border:1px solid var(--ll-line);box-shadow:none}
@media (hover:hover){
.secondary:hover,.section-back:hover,.calendar-step button:hover,.calendar-today:hover,.day-navigator>button:hover{background:var(--ll-bg)}}
.quickadd-title,.job-bar-label{color:var(--ll-muted)}
input:not([type=checkbox]):not([type=file]),select,textarea{border-color:#d7d4cf}
input:focus,select:focus,textarea:focus{border-color:var(--ll-green-2);box-shadow:0 0 0 3px #58441a20}
.row input[type=checkbox]{accent-color:var(--ll-green-2)}
.job-chip{background:var(--ll-paper);border-color:var(--ll-line);color:var(--ll-green)}
.job-chip.active{background:var(--ll-green);border-color:var(--ll-green);color:#fff}
.job-tag{background:var(--ll-bg);color:var(--ll-muted)}

/* Section page stats */
.section-stats button{background:var(--ll-paper);border:1px solid var(--ll-line);color:var(--ll-muted)}
.section-stats button.active{background:var(--ll-paper);border-color:var(--ll-gold);box-shadow:inset 0 -3px var(--ll-gold)}

/* Lists on Attention / Open */
.openrow,.attention-row{background:var(--ll-paper);border:1px solid var(--ll-line);border-left:1px solid var(--ll-line);box-shadow:none}
.overdue-open{border-left:3px solid var(--ll-red);background:var(--ll-paper)}
@media (hover:hover){
.openlink:hover{background:var(--ll-bg);border-color:#d3d0cb}}

/* Calendar: open grid, gold ring for today */
.day{background:var(--ll-paper);border:1px solid var(--ll-line);box-shadow:none}
.day.has{border-color:var(--ll-line);box-shadow:none}
.day i{background:var(--ll-green-2)}
.day.is-today{background:var(--ll-paper);color:var(--ll-green);outline:2px solid var(--ll-gold);outline-offset:-2px;border-color:var(--ll-gold)}
.day.selected,.day.is-today.selected{background:var(--ll-green);color:#fff;border-color:var(--ll-green)}
.day.selected i{background:var(--ll-gold)}

/* Sheets and the guest reminder */
.modal{background:#1e1a1199}
.sheet{box-shadow:0 -8px 30px #1e1a1126}
[data-guest-reminder]{background:var(--ll-green)!important;border-top:2px solid var(--ll-gold);box-shadow:0 8px 28px #1e1a1140!important}
[data-guest-reminder] button{border:1px solid #ffffff55;border-radius:8px;background:transparent;color:#fff;font-weight:700}
[data-guest-reminder] [data-guest-register]{background:var(--ll-gold);border-color:var(--ll-gold);color:var(--ll-green)}
.undo-toast{background:var(--ll-green)}
.undo-toast button{color:var(--ll-green-2)}
.v2-review-banner{background:var(--ll-gold-soft);border-color:#ecd6a6}

/* More breathing room */
.today-content{gap:18px}
.today-content .card{margin-bottom:18px}
.row,.today-content .row{padding:14px 16px}
.card-heading .section-collapse-button{padding-left:16px}

/* Dark mode: same idea on deep green */
[data-theme="dark"]{--ll-bg:#14120e;--ll-paper:#1b1914;--ll-line:#322e25;--ll-line-soft:#29251d;--ll-muted:#b5b0a7;--ll-green:#efede8;--ll-gold-soft:#3a3120;--ll-red:#ffb4a9;--ll-red-soft:#3a2321;--ll-amber:#f0cf80;--ll-head:#23201a;--ll-head-line:#322e25;
  --ink:#efede8;--paper:#1b1914;--wash:#14120e;--line:#322e25;--muted:#b5b0a7;background:var(--ll-bg);color:var(--ink)}
[data-theme="dark"] :is(.card,.jumpchip,.section-page)[class*="section-"]{--section-bg:var(--ll-paper);--section-ink:#efede8;--section-accent:var(--ll-line);--section-wash:var(--ll-paper)}
[data-theme="dark"] :is(.card,.jumpchip,.section-page).section-road-blocks{--section-ink:#ffb4a9}
[data-theme="dark"] :is(body,.shell){background:var(--ll-bg)}
[data-theme="dark"] .top{background:#100e09}
[data-theme="dark"] :is(.card,.today-content .card,.today-summary-rail,.section-page-list,.section-add,.quickadd,.job-bar,.openrow,.attention-row,.sheet,.access-card,.data-tools,.data-safety){background:var(--ll-paper);border-color:var(--ll-line)}
[data-theme="dark"] :is(.row,.today-content .row,.add,.today-content .add,.nav,.summary-rail-title,.summary-rail-list button,.summary-static,.section-stats button,.day,.card-body,.today-content .card-body,.today-content [class*="section-"] .card-body,.overdue-row,.row.done,.today-content .row.done){background:var(--ll-paper);border-color:var(--ll-line-soft)}
[data-theme="dark"] .jumpbar{background:var(--ll-bg);border-color:var(--ll-line)}
[data-theme="dark"] :is(.card[class*="section-"] .card-heading,.card[class*="section-"] h2,.card h2,.card-heading,.summary-rail-title){background:var(--ll-head);color:var(--section-ink);border-color:var(--ll-head-line)}
[data-theme="dark"] :is(.jumpchip,.jumpchip[class*="section-"]){background:var(--ll-paper);color:#efede8;border-color:var(--ll-line)}
[data-theme="dark"] .jumpchip.section-road-blocks{color:#ffb4a9}
[data-theme="dark"] .card-heading .section-count,[data-theme="dark"] .section-count{background:var(--ll-paper);color:var(--ll-muted);border:0}
[data-theme="dark"] .nav button{color:var(--ll-muted);background:transparent}
[data-theme="dark"] .nav button.active{color:#fff;background:transparent;box-shadow:inset 0 -3px var(--ll-gold)}
[data-theme="dark"] :is(.secondary,.section-back,.calendar-step button,.calendar-today,.day-navigator>button){background:var(--ll-paper);color:#efede8;border-color:var(--ll-line)}
[data-theme="dark"] :is(.primary,.add button,.quickadd button){background:#584624;color:#fff;border-color:#584624}
[data-theme="dark"] :is(.priority.p1,.summary-metric.p1,.priority-row.p1 .open-priority,.attention-tag.p1){background:#584624;color:#fff;border-color:#584624}
[data-theme="dark"] .attention-tag.today{background:var(--ll-gold-soft);color:#f0cf80;border-color:#5a4a28}
[data-theme="dark"] :is(.priority.p2,.summary-metric.p2,.priority-row.p2 .open-priority,.attention-tag.waiting){background:var(--ll-bg);color:var(--ll-muted);border-color:var(--ll-line)}
[data-theme="dark"] :is(.priority.p3,.summary-metric.p3,.priority-row.p3 .open-priority){background:transparent;color:#959087;border-color:var(--ll-line)}
[data-theme="dark"] :is(.priority.overdue-priority,.summary-metric.overdue,.attention-tag.overdue){background:var(--ll-red-soft);color:#ffb4a9;border-color:#5a3431}
[data-theme="dark"] .overdue-row .txt{color:#efede8}
[data-theme="dark"] .day.is-today{background:var(--ll-paper);color:#f0cf80;outline-color:var(--ll-gold);border-color:var(--ll-gold)}
[data-theme="dark"] .day.selected,[data-theme="dark"] .day.is-today.selected{background:#584624;color:#fff;border-color:#584624}
[data-theme="dark"] .section-stats button.active{background:var(--ll-paper);border-color:var(--ll-gold)}
[data-theme="dark"] .job-chip.active{background:#584624;border-color:#584624}
.today-summary-rail .summary-rail-priorities .summary-metric{background:var(--ll-paper);color:var(--ll-muted);border:1px solid var(--ll-line)!important;box-shadow:none}
.today-summary-rail .summary-metric b{color:var(--ll-green)}
.today-summary-rail .summary-metric.overdue b{color:var(--ll-red)}
.today-summary-rail .summary-metric.p1 b{color:var(--ll-green-2)}
.today-summary-rail .summary-metric.active{background:var(--ll-bg)}
@media (hover:hover){
.today-summary-rail .summary-metric:hover{background:var(--ll-bg)}}
.day-navigator{background:transparent;border:0}
[data-theme="dark"] .today-summary-rail .summary-rail-priorities .summary-metric{background:var(--ll-paper);color:var(--ll-muted)}
[data-theme="dark"] .today-summary-rail .summary-metric b{color:#efede8}
[data-theme="dark"] .today-summary-rail .summary-metric.overdue b{color:#ffb4a9}
[data-theme="dark"] .today-summary-rail .summary-metric.p1 b{color:#dcbf86}

/* Ask your diary (bring your own AI key) */
.ask-form,.ask-setup{display:grid;gap:9px;max-width:720px}
.ask-ai [hidden]{display:none!important}
.ask-form textarea,.ask-setup input,.ask-setup select{border:1px solid #d3d0cb;border-radius:9px;background:white;padding:10px 11px;font:inherit;width:100%}
.ask-setup label{display:grid;gap:5px;font-weight:750}
.ask-setup label small{font-weight:500;color:#79766f}
.ask-form .data-actions,.ask-setup .data-actions{margin-top:2px}
.ask-answer{max-width:720px;margin:12px 0;padding:14px 16px;border:1px solid #dfdcd7;border-left:4px solid #cd9b37;border-radius:10px;background:#fcfbfa;white-space:pre-wrap;line-height:1.5}
.ask-answer.ask-error{border-left-color:#b9473f;color:#7a2b25}
.data-tools p.ask-small{font-size:.82rem;margin-top:10px}
[data-theme="dark"] :is(.ask-form textarea,.ask-setup input,.ask-setup select){background:var(--paper);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .ask-answer{background:var(--paper);border-color:var(--line);border-left-color:#cd9b37;color:var(--ink)}

/* Navy redesign: one main colour (navy), one accent (safety orange), neutral greys.
   Red stays for road blocks/overdue, amber for due today. Bigger tap targets for site use. */
:root{
  --ll-green:#312610;--ll-green-2:#5a451a;--ll-gold:#cd9b37;--ll-gold-soft:#faf4e9;
  --ll-bg:#f6f5f3;--ll-paper:#fff;--ll-line:#e9e6e1;--ll-line-soft:#f2f0ec;--ll-muted:#726a5a;
  --ll-head:#fff;--ll-head-line:#f2f0ec;--ll-red:#b23b34;--ll-red-soft:#fbeceb;--ll-amber:#8a5a00;
  --ink:#312610;--green:#5a451a;--green-dark:#312610;--muted:#726a5a;--line:#e9e6e1;--wash:#f6f5f3;
  --tap:48px;--radius:10px;--radius-card:12px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);background:var(--ll-bg)
}
body{font-family:inherit;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
.top{background:var(--ll-green);border-bottom:3px solid var(--ll-gold)}
.brand-copy small{color:#dfbf7e}

/* One button system */
:is(.primary,.secondary,.add button,.quickadd button,.report-button,.section-back,.calendar-step button,.calendar-today,.signin-qr-button,.pad-tools button,.v2-review-banner button,.account-help-button){min-height:var(--tap);border-radius:var(--radius);padding:12px 18px;font-size:1rem;font-weight:700;letter-spacing:0;text-transform:none;transition:background-color .15s,border-color .15s,transform .1s}
:is(.primary,.add button,.quickadd button){background:var(--ll-green-2);color:#fff;border:1px solid var(--ll-green-2)}
@media (hover:hover){
:is(.primary,.add button,.quickadd button):hover{background:var(--ll-green);border-color:var(--ll-green)}}
:is(.secondary,.section-back,.calendar-step button,.calendar-today,.report-button,.signin-qr-button,.pad-tools button,.account-help-button){background:var(--ll-paper);color:var(--ll-green-2);border:1px solid #dcd8cf}
@media (hover:hover){
:is(.secondary,.section-back,.calendar-step button,.calendar-today,.report-button,.signin-qr-button,.pad-tools button):hover{background:var(--ll-bg)}}
:is(button,.primary,.secondary):active{transform:translateY(1px)}
.finish{font-size:1rem;letter-spacing:0;text-transform:none;min-height:52px}
.v2-review-banner button{background:var(--ll-green-2);color:#fff}
.day-navigator>button{min-width:var(--tap);min-height:var(--tap);background:var(--ll-paper);color:var(--ll-green-2);border:1px solid #dcd8cf;border-radius:var(--radius)}
.day-navigator{grid-template-columns:var(--tap) minmax(0,auto) var(--tap)}
.day-navigator-date>button,.job-manage{color:var(--ll-green-2);min-height:var(--tap)}
:is(.edit,.del,.signin-remove){min-width:var(--tap);min-height:var(--tap);border-radius:var(--radius)}
@media (hover:hover){
.edit:hover{background:var(--ll-bg)}}
.entry-actions{flex-basis:var(--tap)}
.entry-actions>summary,.section-compose>summary{min-height:var(--tap);min-width:var(--tap)}
.entry-actions-menu button{min-height:var(--tap)}
.section-compose>summary{color:var(--ll-green-2);font-weight:700}

/* Fields */
input:not([type=checkbox]):not([type=file]):not([type=radio]),select,textarea{min-height:var(--tap);border:1px solid #dcd8cf;border-radius:var(--radius);font-size:1rem}
input:focus,select:focus,textarea:focus{border-color:var(--ll-green-2);box-shadow:0 0 0 3px #5a451a26;outline:none}
:is(button,a,summary,input[type=checkbox]):focus-visible{outline:3px solid var(--ll-gold);outline-offset:2px}
.row input[type=checkbox],.manual-overdue-option input{width:26px;height:26px;accent-color:var(--ll-green-2)}
.row{min-height:56px;align-items:center}

/* Tabs: neutral, orange underline on the active one */
.nav button{min-height:var(--tap);color:var(--ll-muted);font-weight:650}
.nav button.active{color:var(--ll-green);box-shadow:inset 0 -3px var(--ll-gold);background:transparent}
.jumpchip,.jumpchip[class*="section-"]{min-height:44px;border-radius:999px;padding:8px 14px;color:var(--ll-green);border-color:var(--ll-line)}
.jumpchip.active{border-color:var(--ll-green-2);box-shadow:inset 0 0 0 1px var(--ll-green-2)}
.job-chip{min-height:var(--tap);padding:10px 16px;background:var(--ll-paper);border-color:var(--ll-line);color:var(--ll-green)}
.job-chip.active{background:var(--ll-green-2);border-color:var(--ll-green-2);color:#fff}
.section-stats button{min-height:var(--tap)}
.section-stats button.active{border-color:var(--ll-gold);box-shadow:inset 0 -3px var(--ll-gold);color:var(--ll-green)}

/* Cards: white, one hairline, neutral headings */
.card,.today-content .card,.today-summary-rail,.section-page-list,.section-add,.quickadd,.job-bar,.openrow,.attention-row{border-radius:var(--radius-card);border-color:var(--ll-line)}
.card h2,.card-heading,.card[class*="section-"] .card-heading,.card[class*="section-"] h2,.summary-rail-title{background:var(--ll-paper);color:var(--section-ink,var(--ll-green));border-bottom:1px solid var(--ll-head-line);font-size:.85rem;letter-spacing:.06em}
:root :is(.card,.jumpchip,.section-page)[class*="section-"]{--section-ink:var(--ll-green)}
:root :is(.card,.jumpchip,.section-page).section-road-blocks{--section-ink:var(--ll-red)}
.ask-answer{border-left-color:var(--ll-gold)}
.day.is-today{outline-color:var(--ll-gold);border-color:var(--ll-gold);color:var(--ll-green)}
.day.selected,.day.is-today.selected{background:var(--ll-green-2);border-color:var(--ll-green-2);color:#fff}
.day.selected i{background:var(--ll-gold)}
.day{border-radius:var(--radius);min-height:var(--tap)}
.priority.p1,.summary-metric.p1,.priority-row.p1 .open-priority,.attention-tag.p1{background:var(--ll-green-2);border-color:var(--ll-green-2);color:#fff}
.today-summary-rail .summary-metric.p1 b{color:var(--ll-green-2)}
.theme-switch[aria-checked="true"] .theme-track{background:#ba8e36;border-color:#e8d3a9}
[data-guest-reminder]{border-top-color:var(--ll-gold)}
[data-guest-reminder] [data-guest-register]{background:var(--ll-gold);border-color:var(--ll-gold);color:#fff}
.undo-toast button{color:#dfbf7e}

/* Dark mode: same idea on deep navy */
[data-theme="dark"]{--ll-bg:#1b160b;--ll-paper:#251f12;--ll-line:#3c3322;--ll-line-soft:#30291a;--ll-muted:#dcc087;--ll-green:#f5f1e8;--ll-green-2:#bd9037;--ll-head:#251f12;--ll-head-line:#3c3322;--ll-gold:#d5ac59;--ll-gold-soft:#3a2a1d;--ll-red:#ffb4a9;--ll-amber:#f0cf80;
  --ink:#f5f1e8;--paper:#251f12;--wash:#1b160b;--line:#3c3322;--muted:#dcc087;--green:#eacc8f}
[data-theme="dark"] .top{background:#161209}
[data-theme="dark"] :is(.card h2,.card-heading,.card[class*="section-"] .card-heading,.card[class*="section-"] h2,.summary-rail-title){background:var(--ll-paper);border-color:var(--ll-head-line)}
[data-theme="dark"] :is(.card,.jumpchip,.section-page)[class*="section-"]{--section-ink:#f5f1e8}
[data-theme="dark"] :is(.card,.jumpchip,.section-page).section-road-blocks{--section-ink:#ffb4a9}
[data-theme="dark"] :is(.primary,.add button,.quickadd button,.v2-review-banner button){background:var(--ll-green-2);border-color:var(--ll-green-2);color:#fff}
[data-theme="dark"] :is(.secondary,.section-back,.calendar-step button,.calendar-today,.day-navigator>button,.report-button,.signin-qr-button,.pad-tools button,.account-help-button){background:var(--ll-paper);color:#f5f1e8;border-color:#4e4531}
[data-theme="dark"] :is(.priority.p1,.summary-metric.p1,.priority-row.p1 .open-priority,.attention-tag.p1,.job-chip.active,.day.selected,.day.is-today.selected){background:var(--ll-green-2);border-color:var(--ll-green-2);color:#fff}
[data-theme="dark"] .nav button.active{color:#fff;box-shadow:inset 0 -3px var(--ll-gold)}
[data-theme="dark"] :is(input:not([type=checkbox]):not([type=file]),select,textarea){border-color:#4e4531}
[data-theme="dark"] :is(.day-navigator-date>button,.job-manage,.section-compose>summary){color:#eacc8f}
[data-theme="dark"] .today-summary-rail .summary-metric.p1 b{color:#fff}
@media(max-width:700px){.nav button{font-size:.8rem}.day-navigator{grid-template-columns:var(--tap) minmax(0,1fr) var(--tap)}}
/* Guest reminder: keep it a dark navy panel in dark mode too (--ll-green turns light there) */
[data-theme="dark"] [data-guest-reminder]{background:#302717!important;color:#f5f1e8;border:1px solid #4e4531;border-top:2px solid var(--ll-gold)}
[data-theme="dark"] [data-guest-reminder] [data-guest-dismiss]{color:#f5f1e8;border-color:#ffffff55}

/* Priority levels: P1 Critical red, P2 High orange, P3 Normal navy, P4 Low grey, Done green.
   Badges, chips and counts only, so cards stay calm. Stored priority = level - 1 (see app.js). */
:root{--p1:#b23b34;--p1-ink:#fff;--p1-soft:#fbeceb;--p2:#cc9933;--p2-ink:#fff;--p2-soft:#faf4e9;--p3:#5a451a;--p3-ink:#fff;--p3-soft:#f5f1e8;--p4:#eae8e3;--p4-ink:#605a4f;--p4-soft:#f4f3f1;--pdone:#2e7d4f;--pdone-ink:#fff;--pdone-soft:#e6f3ea}
[data-theme="dark"]{--p1:#c9463d;--p1-soft:#3a2321;--p2:#cc9933;--p2-soft:#3a2a1d;--p3:#bd9037;--p3-soft:#362c18;--p4:#3f392d;--p4-ink:#d6d2c9;--p4-soft:#2a251a;--pdone:#2f8a55;--pdone-soft:#1b3326}
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p1,html:root:root .priority-row.p1 .open-priority{background:var(--p1);color:var(--p1-ink);border-color:var(--p1)}
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p2,html:root:root .priority-row.p2 .open-priority{background:var(--p2);color:var(--p2-ink);border-color:var(--p2)}
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p3,html:root:root .priority-row.p3 .open-priority{background:var(--p3);color:var(--p3-ink);border-color:var(--p3)}
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p4,html:root:root .priority-row.p4 .open-priority{background:var(--p4);color:var(--p4-ink);border:1px solid var(--p4)}
html:root:root :is(.summary-metric).p1 b,html:root:root :is(.summary-metric).p2 b,html:root:root :is(.summary-metric).p3 b{color:inherit}
html:root:root .today-summary-rail .summary-metric:is(.p1,.p2,.p3) b{color:#fff}
html:root:root .today-summary-rail .summary-metric.p4 b{color:var(--p4-ink)}
html:root:root .row.done .priority.is-done{opacity:1}
.summary-rail-priorities .summary-metric.overdue{grid-column:1/-1}
.summary-rail-priorities{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:1000px){.summary-rail-priorities{grid-template-columns:repeat(2,minmax(0,1fr))}}
html:root:root .priority-row.p1{border-left-color:var(--p1)}html:root:root .priority-row.p2{border-left-color:var(--p2)}html:root:root .priority-row.p3{border-left-color:var(--p3)}html:root:root .priority-row.p4{border-left-color:#bdb8ae}html:root:root .priority-row.is-done{border-left-color:var(--pdone)}
.priority-row.is-done b{text-decoration:line-through;opacity:.6}

/* Priorities tab */
.nav{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:480px){.nav{padding-left:4px;padding-right:4px}.nav button{font-size:.72rem;padding-left:1px;padding-right:1px;letter-spacing:0}}
.priorities-panel{max-width:980px;margin:0 auto}
.prio-chips{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.prio-chip{min-height:44px;border-radius:999px;padding:8px 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ll-line);background:var(--ll-paper);color:var(--ll-green);font-weight:800;cursor:pointer}
.prio-chip b{margin-left:0}
html:root:root .prio-chip:not(.active):is(.p1,.p2,.p3,.p4){background:var(--ll-paper);color:var(--ll-green);border-color:var(--ll-line)}
.prio-chip:is(.p1,.p2,.p3,.p4):before{content:"";width:10px;height:10px;border-radius:50%;background:var(--chip);flex:0 0 auto}
.prio-chip.active:is(.p1,.p2,.p3,.p4):before{background:currentColor;opacity:.85}
.prio-chip.p1{--chip:var(--p1)}.prio-chip.p2{--chip:var(--p2)}.prio-chip.p3{--chip:var(--p3)}.prio-chip.p4{--chip:#bdb8ae}
.prio-chip[data-prio-filter="all"].active{background:var(--ll-green-2);color:#fff;border-color:var(--ll-green-2)}
.prio-group{margin:0 0 18px}
.prio-group-head{display:flex;align-items:center;gap:10px;font-size:.95rem;letter-spacing:.02em;margin:0 0 4px;padding:6px 0;color:var(--ll-green)}
.prio-group-head .priority{cursor:default;min-width:36px;height:26px;display:inline-grid;place-items:center}
.prio-group-head b{margin-left:auto;color:var(--ll-muted);font-weight:800}
.prio-group-head small{color:var(--ll-muted);font-weight:600}
.prio-done>summary{cursor:pointer;list-style:none;border-top:1px solid var(--ll-line);padding-top:12px;min-height:var(--tap,48px)}
.prio-done>summary::-webkit-details-marker{display:none}
.prio-done>summary:after{content:"›";margin-left:6px;color:var(--ll-muted);transition:transform .15s}
.prio-done[open]>summary:after{transform:rotate(90deg)}
.prio-empty{color:var(--ll-muted);font-size:.88rem;padding:8px 2px 4px}

/* Look tweaks (20 Nov 2026) */
/* 1. Section headings: bigger, normal capitals, light tinted band; Road Blocks light red; count pill */
:root{--head-band:#f7f4ee;--head-line:#ece7dd;--head-ink:#312610;--rb-band:#fbeceb;--rb-line:#f1d3d0;--rb-ink:#9e2a24}
[data-theme="dark"]{--head-band:#2e2718;--head-line:#443a25;--head-ink:#f5f1e8;--rb-band:#3a2321;--rb-line:#5a3330;--rb-ink:#ffb4a9}
html:root:root :is(.card h2,.card-heading,.card[class*="section-"] .card-heading,.card[class*="section-"] h2){background:var(--head-band);color:var(--head-ink);border-bottom:1px solid var(--head-line);font-size:1.05rem;font-weight:800;text-transform:none;letter-spacing:0}
html:root:root :is(.card-heading .section-heading-text,.card-heading .section-collapse-button){text-transform:none;letter-spacing:0;color:inherit}
html:root:root .card.section-road-blocks :is(h2,.card-heading){background:var(--rb-band);color:var(--rb-ink);border-bottom-color:var(--rb-line)}
html:root:root .card-heading .section-count{background:var(--ll-paper);color:var(--head-ink);border:1px solid var(--head-line);font-weight:800;font-size:.85rem;min-width:30px;height:26px}
html:root:root .card.section-road-blocks .card-heading .section-count{color:var(--rb-ink);border-color:var(--rb-line)}
html:root:root .card-heading .section-open-button{color:var(--ll-muted);font-weight:700}
html:root:root .card.is-collapsed :is(h2,.card-heading){border-bottom:0}
/* 2. P3 Normal as a navy outline; P4 Low with no fill (as Todoist) */
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p3,html:root:root .priority-row.p3 .open-priority{background:transparent;color:var(--p3-text,#5a451a);border:1.5px solid var(--p3-line,#5a451a)}
html:root:root :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p4,html:root:root .priority-row.p4 .open-priority{background:transparent;color:#706a5f;border:1.5px solid #d6d2c9}
[data-theme="dark"]{--p3-text:#ecd6a9;--p3-line:#c89b41}
html:root:root[data-theme="dark"] :is(.priority,.summary-metric,.attention-tag,.prio-chip,.section-stats button,.priority-summary-counts span).p4,html:root:root[data-theme="dark"] .priority-row.p4 .open-priority{color:#dfc48f;border-color:#514a3c}
html:root:root .today-summary-rail .summary-metric.p3 b{color:var(--p3-text,#5a451a)}
html:root:root .today-summary-rail .summary-metric.p4 b{color:#706a5f}
html:root:root[data-theme="dark"] .today-summary-rail .summary-metric.p4 b{color:#dfc48f}
html:root:root .prio-chip.active.p3{background:var(--p3);color:#fff;border-color:var(--p3)}
html:root:root .prio-chip.active.p4{background:#706a5f;color:#fff;border-color:#706a5f}
/* 3. Orange only means P2: active tab, today and filters use navy */
html:root:root .nav button.active{box-shadow:inset 0 -3px var(--ll-green-2)}
html:root:root[data-theme="dark"] .nav button.active{box-shadow:inset 0 -3px #eacc8f}
html:root:root .day.is-today{outline-color:var(--ll-green-2);border-color:var(--ll-green-2)}
html:root:root .day.selected i{background:#fff}
html:root:root .section-stats button.active{border-color:var(--ll-green-2);box-shadow:inset 0 -3px var(--ll-green-2)}
/* 5. On phones, sections with entries come first; empty ones move to the end, faded (still tappable) */
@media(max-width:699px){.jumpchip.is-empty{order:1;opacity:.55}}
/* 6. Bigger tick zones (56px on phones) and bigger small print */
.row label.tick{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;margin:-10px -6px -10px -12px;cursor:pointer;border-radius:10px;-webkit-tap-highlight-color:transparent}
.row label.tick:active{background:var(--ll-bg)}
html:root:root .row label.tick input[type=checkbox]{width:28px;height:28px;margin:0}
@media(max-width:699px){.row label.tick{width:56px;height:56px;margin:-12px -8px -12px -14px}}
html:root:root :is(.origin,.due,.age-meta,.carried-meta,.job-tag,.summary-help){font-size:.82rem}
html:root:root .origin{color:var(--ll-muted)}

/* Summary tiles: colour only when there is something at that level; 0 sits as a quiet outline */
html:root:root .today-summary-rail .summary-metric.is-zero:is(.p1,.p2,.p3,.p4){background:transparent;color:var(--ll-muted);border:1.5px solid var(--ll-line)}
html:root:root .today-summary-rail .summary-metric.is-zero:is(.p1,.p2,.p3,.p4) b{color:var(--ll-muted)}
/* Today Summary title matches the section headings */
html:root:root .summary-rail-title{background:var(--head-band);color:var(--head-ink);border-bottom:1px solid var(--head-line);font-size:1.05rem;font-weight:800;text-transform:none;letter-spacing:0}

/* Done stays green over every level style */
html:root:root body .priority.is-done,html:root:root body .priority-row.is-done .open-priority{background:var(--pdone);color:var(--pdone-ink);border-color:var(--pdone)}

/* Layout (20 Nov 2026): five tabs; phones get a bottom tab bar, a floating +, compact Quick Add */
.nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.nav button{display:flex;align-items:center;justify-content:center;gap:6px}
.nav-icon{width:20px;height:20px;flex:0 0 auto}
@media(min-width:700px){.nav-icon{display:none}}
.more-button{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:10px;border:1px solid #ffffff40;background:transparent;color:#fff;cursor:pointer}
.more-button svg{width:22px;height:22px}
.more-button.active{background:#ffffff1f}
@media (hover:hover){
.more-button:hover{background:#ffffff1f}}
.search-more-note{color:var(--ll-muted);font-size:.9rem;margin:18px 2px}
.link-inline{border:0;background:none;padding:0;font:inherit;font-weight:800;color:var(--ll-green-2);text-decoration:underline;cursor:pointer}
[data-theme="dark"] .link-inline{color:#eacc8f}
.fab{display:none}
@media(max-width:699px){
  html:root:root .nav{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;transform:none;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--ll-line);border-bottom:0;background:var(--ll-paper);box-shadow:0 -4px 16px #31261014}
  html:root:root .nav button{flex-direction:column;gap:2px;min-height:58px;padding:6px 2px 4px;font-size:.72rem;letter-spacing:0;border-radius:10px;box-shadow:none;color:var(--ll-muted);background:transparent}
  html:root:root .nav button.active{color:var(--ll-green-2);box-shadow:none;background:var(--ll-bg)}
  html:root:root[data-theme="dark"] .nav button.active{color:#ecd6a9;background:#2e2718}
  .nav-icon{width:24px;height:24px}
  .shell{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .jumpbar{top:var(--topbar-h,66px)}
  .fab{display:grid;place-items:center;position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:31;width:60px;height:60px;border-radius:50%;border:0;background:var(--ll-green-2);color:#fff;box-shadow:0 6px 18px #31261040;cursor:pointer}
  .fab svg{width:28px;height:28px}
  [data-theme="dark"] .fab{background:#bd9037}
  [data-guest-reminder]{bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .undo-toast{bottom:calc(76px + env(safe-area-inset-bottom))!important}
  /* Quick Add: one line until you start typing */
  html:root:root .quickadd{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 88px;gap:8px;align-items:center}
  html:root:root .quickadd .quickadd-title{display:none}
  html:root:root .quickadd .qa-text-wrap{grid-column:1/3;grid-row:1}
  html:root:root .quickadd>button{grid-column:3;grid-row:1;min-width:0;width:100%}
  html:root:root .quickadd :is([data-qa-section],[data-qa-priority],[data-qa-due]){display:none}
  html:root:root .quickadd:is(:focus-within,:has([data-qa-text]:not(:placeholder-shown))) [data-qa-section]{display:block;grid-column:1/-1}
  html:root:root .quickadd:is(:focus-within,:has([data-qa-text]:not(:placeholder-shown))) [data-qa-priority]{display:block;grid-column:1}
  html:root:root .quickadd:is(:focus-within,:has([data-qa-text]:not(:placeholder-shown))) [data-qa-due]{display:block;grid-column:2/4;min-width:0;width:100%}
  /* Jobs: one scrolling row of chips */
  html:root:root .job-bar .job-chips,html:root:root .job-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  html:root:root .job-chips>*{flex:0 0 auto;max-width:none}
}
@media(max-width:699px){.modal{z-index:40}}
.entry-actions.drop-up .entry-actions-menu{top:auto;bottom:42px}

/* Quick Add text box with mic */
.qa-text-wrap{position:relative;min-width:0}
.qa-text-wrap input{width:100%;box-sizing:border-box}
.qa-text-wrap.has-mic input{padding-right:50px}
html:root:root .quickadd .qa-mic{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ll-green-2);box-shadow:none;cursor:pointer}
html:root:root .quickadd .qa-mic svg{width:22px;height:22px}
@media (hover:hover){
html:root:root .quickadd .qa-mic:hover{background:#4e3d1b14}}
html:root:root .quickadd .qa-mic.listening{background:#c62828;color:#fff;animation:qa-mic-pulse 1.2s ease-in-out infinite}
@keyframes qa-mic-pulse{0%,100%{box-shadow:0 0 0 0 #c6282866}50%{box-shadow:0 0 0 7px #c6282800}}
@media (prefers-reduced-motion:reduce){html:root:root .quickadd .qa-mic.listening{animation:none}}
html:root:root[data-theme="dark"] .quickadd .qa-mic{color:#ecd6a9;background:transparent}
html:root:root[data-theme="dark"] .quickadd .qa-mic.listening{background:#e05252;color:#fff}
/* Weather under the date */
.day-weather{display:block;margin:-2px auto 8px;padding:0 12px;font-size:.92rem;line-height:1.4;color:var(--ll-muted);text-align:center}
.day-weather-hint{display:flex;align-items:center;justify-content:center;gap:6px}
.day-weather[hidden]{display:none}
.day-weather-hint button{border:1px dashed var(--ll-line);background:transparent;color:var(--ll-green-2);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer;min-height:36px}
.day-weather-hint .day-weather-hide{border:0;padding:6px 10px;color:var(--ll-muted);font-size:1.1rem}
[data-theme="dark"] .day-weather-hint button{color:#ecd6a9}
.weather-where{font-size:.85rem;color:var(--ll-muted)}
.weather-auto{display:flex;gap:8px;align-items:center;margin:8px 0}
.weather-message{color:#a3321f;font-weight:700}
[data-theme="dark"] .weather-message{color:#ff9d8a}

/* Job 5 (27 Nov 2026): Beta tag, forgot password, delete account */
.beta-tag{display:inline-block;vertical-align:middle;margin-left:7px;padding:2px 6px;border-radius:999px;background:linear-gradient(180deg,#f2d27e,#c9a23a);color:#1a1408;font-size:.52rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;line-height:1.3}
@media(max-width:380px){.beta-tag{margin-left:5px;padding:1px 5px;font-size:.48rem}}
.account-forgot,.account-delete{display:block;width:100%;margin-top:10px;border:0;background:transparent;font-weight:800;padding:9px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.account-forgot{color:#554526}
.account-delete{color:#9b2c22;margin-top:14px}
[data-theme="dark"] .account-forgot{color:#e0c795}
[data-theme="dark"] .account-delete{color:#f08b80}
.danger{border:0;border-radius:10px;padding:12px 15px;font-weight:800;background:#a3261b;color:#fff}
.danger:disabled{opacity:.45}
[data-manage-billing]{margin-top:8px;width:100%}
/* Phones: the Beta tag sits on the badge so the top bar keeps its room. */
@media(max-width:520px){.top .brand{position:relative}.top .beta-tag{position:absolute;left:-3px;bottom:-5px;margin:0;padding:1px 4px;font-size:.42rem;letter-spacing:.08em;box-shadow:0 1px 3px #0006}}

/* ===== Long Line black and gold (28 Nov 2026) – matches Tools, Orders and Safety ===== */
:root{--ll-gold:#e0b75a;--ll-gold-2:#b07a2a;--ll-gold-ink:#1a1408;--ll-gold-grad:linear-gradient(135deg,#e6bf62 0%,#c99a45 55%,#a8742a 100%)}
body{background:linear-gradient(180deg,#f8f5ee 0%,#f3efe4 100%)}
.shell{background:#fbf8f1}
.top{background:linear-gradient(135deg,#000 0%,#0f0d09 60%,#17130b 100%)!important;border-bottom:2px solid #c99a45!important}
:is(.add button,.primary,.fab,.quickadd button:not(.qa-mic)){background:var(--ll-gold-grad)!important;color:var(--ll-gold-ink)!important;border:1px solid #d8ad55;box-shadow:0 3px 10px #a8742a40}
:is(.add button,.primary,.fab,.quickadd button:not(.qa-mic)):active{background:linear-gradient(135deg,#c99a45,#a8742a)!important}
:is(.add button,.primary,.fab) :is(svg,path){color:var(--ll-gold-ink);stroke:currentColor}
.nav button.active{color:#8a6414}
[data-theme="dark"]{--paper:#17150f;--wash:#110f0b;--line:#3d3729;--green:#e0b75a;--green-dark:#3a2f15}
[data-theme="dark"] body{background:#070605}
[data-theme="dark"] .shell{background:#0c0b08}
[data-theme="dark"] .nav button.active{color:var(--ll-gold)}
