:root{--sand:#faf5ea;--paper:#fff;--ink:#12263a;--muted:#55667a;--line:#e2d9c6;--navy:#1b365d;--brass:#b7791f;--brass-soft:#fdf3dc;--yes:#2f6248;--no:#b3321f;--radius:16px;font-size:18px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--sand);color:var(--ink);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}h1,h2,p{margin:0}h1{font-size:1.5rem;line-height:1.2}h2{font-size:1.15rem}a{color:inherit}.muted{color:var(--muted)}.sub{color:var(--muted);font-size:.9rem;font-weight:400;display:block}.grow{flex:1;min-width:0}.stack{flex-direction:column;gap:14px;display:flex}.shell{flex-direction:column;max-width:640px;min-height:100dvh;margin:0 auto;display:flex}.topbar{padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--navy);color:#fff;letter-spacing:.02em;align-items:center;gap:8px;font-size:1.15rem;font-weight:700;display:flex}main{flex:1;padding:16px 16px 24px}.tabs{background:var(--paper);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);display:flex;position:sticky;bottom:0}.tabs a{min-height:60px;color:var(--muted);border-top:4px solid #0000;flex:1;justify-content:center;align-items:center;gap:8px;font-weight:600;text-decoration:none;display:flex}.tabs a.active{color:var(--navy);border-top-color:var(--brass)}.splash{text-align:center;max-width:480px;min-height:100dvh;color:var(--navy);flex-direction:column;align-items:center;gap:16px;margin:0 auto;padding:48px 16px 24px;display:flex}.splash .card{text-align:left;width:100%;color:var(--ink)}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.card.attention{background:var(--brass-soft);border-color:var(--brass)}.btn{border:2px solid var(--navy);background:var(--paper);min-height:52px;color:var(--navy);font:inherit;text-align:center;cursor:pointer;border-radius:14px;justify-content:center;align-items:center;gap:6px;padding:10px 18px;font-weight:700;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--navy);color:#fff}.btn.big{min-height:60px;font-size:1.1rem}.btn.yes{background:var(--yes);border-color:var(--yes);color:#fff}.btn.no,.btn.danger{border-color:var(--no);color:var(--no)}.btn.quiet{background:0 0;border-color:#0000;text-decoration:underline}.btn.small{min-height:44px;padding:6px 12px;font-size:.9rem}.btn.round{width:52px;padding:0;font-size:1.6rem;line-height:1}.btn .muted{font-weight:400}.pair{grid-template-columns:1fr 1fr;gap:12px;display:grid}label,.label{font-weight:600;display:block}input,select,textarea{width:100%;min-height:52px;color:var(--ink);font:inherit;background:#fff;border:2px solid #b9c2cc;border-radius:12px;margin-top:6px;padding:10px 12px;display:block}input:focus-visible,select:focus-visible,textarea:focus-visible,.btn:focus-visible,a:focus-visible{outline:3px solid var(--brass);outline-offset:2px}input.code{letter-spacing:.3em;text-align:center;font-size:1.6rem}label.check{align-items:center;gap:12px;min-height:44px;display:flex}label.check input{width:28px;height:28px;min-height:0;margin:0}.error{color:#7c1d10;background:#fbe9e6;border-radius:12px;padding:12px 14px;font-weight:600}.back{min-height:44px;color:var(--navy);align-self:flex-start;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.note{white-space:pre-wrap}.dot{border:3px solid;border-radius:50%;flex:none;justify-content:center;align-items:center;width:40px;height:40px;font-size:.8rem;font-weight:700;display:inline-flex}.who{text-align:left;align-items:center;gap:10px;display:flex}.chips{flex-wrap:wrap;gap:8px 14px;display:flex}.chip{align-items:center;gap:6px;font-size:.9rem;display:inline-flex}.chip .dot{width:32px;height:32px;font-size:.7rem}.row,.answer{flex-wrap:wrap;align-items:center;gap:12px;min-height:56px;text-decoration:none;display:flex}.row+.row,.answer+.answer{border-top:1px solid var(--line);padding-top:12px}.attention .row+.row{border-top-color:#e6cf9d}.chev{color:var(--muted);font-size:1.6rem}.proxy{flex-basis:100%;gap:8px;display:flex}.badge,.decision{white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:700;display:inline-block}.badge.pending,.decision.pending{background:var(--brass-soft);color:#7a4d08;border:1px solid var(--brass)}.badge.approved,.decision.approved{color:#1f4a35;background:#e3f0e8}.badge.rejected,.decision.declined{color:#7c1d10;background:#fbe9e6}.badge.cancelled{color:#46525e;background:#e9ecef}.message{border-left:5px solid;padding-left:12px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.monthbar{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.monthbar h2{text-transform:capitalize}.week{border-top:1px solid var(--line);grid-template-columns:34px 1fr;display:grid}.week.head{color:var(--muted);text-align:center;border-top:0;font-size:.8rem;font-weight:600}.week.head .days>div{padding:4px 0}.weekno{color:var(--muted);justify-content:center;align-items:flex-start;padding-top:10px;font-size:.75rem;font-weight:600;display:flex}.week.head .weekno{padding-top:4px}.weekbody{min-height:78px;padding-bottom:6px}.days{grid-template-columns:repeat(7,1fr);display:grid}.day{height:40px;color:var(--ink);font:inherit;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;font-weight:600;display:flex}button.day{cursor:pointer}.day.other{color:#a3adb8;font-weight:400}.day.today{background:var(--navy);color:#fff;width:40px;margin:0 auto}.bars{grid-template-columns:repeat(14,1fr);grid-auto-rows:30px;row-gap:4px;display:grid}.bar{white-space:nowrap;border:2px solid;border-width:2px 0;align-items:center;padding:0 6px;font-size:.8rem;font-weight:700;text-decoration:none;display:flex;overflow:hidden}.bar.opens{border-left-width:2px;border-radius:15px 0 0 15px;margin-left:1px}.bar.closes{border-right-width:2px;border-radius:0 15px 15px 0;margin-right:1px}.bar.opens.closes{border-radius:15px}.bar.pending{border-style:dashed}.legend{color:var(--muted);align-items:center;gap:6px;margin:12px 0 10px;font-size:.85rem;display:flex}.swatch{border:2px solid var(--navy);border-radius:7px;width:28px;height:14px}.swatch.solid{background:var(--navy)}.swatch.outline{border-style:dashed;margin-left:12px}.palette{grid-template-columns:repeat(6,1fr);gap:8px;margin-top:6px;display:grid}.swatchbtn{aspect-ratio:1;min-height:44px;font:inherit;cursor:pointer;border:0;border-radius:12px;font-size:.8rem;font-weight:700}.swatchbtn:disabled{cursor:default;opacity:.55}.swatchbtn.own{opacity:1;outline:3px solid var(--ink);outline-offset:2px}.pair.wide{grid-template-columns:1fr auto;align-items:center}.item+.item{border-top:1px solid var(--line);padding-top:12px}.itemrow{align-items:center;gap:12px;display:flex}input.tick{width:36px;height:36px;min-height:0;accent-color:var(--yes);flex:none;margin:0}.itemname{min-width:0;min-height:48px;color:inherit;font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;background:0 0;border:0;flex:1;padding:4px 0}.itemname .chip{margin-top:4px}.item.done .itemname strong{color:var(--muted);font-weight:400;text-decoration:line-through}.overdue{color:var(--no);font-weight:700}.editor{background:var(--sand);border-radius:12px;margin:10px 0 4px;padding:14px}.photo{border-radius:12px;max-width:100%}.additem{border-top:1px solid var(--line);flex-wrap:wrap;align-items:flex-end;gap:10px;padding-top:12px;display:flex}.guide ol{margin:0;padding-left:1.4em}.guide li+li{margin-top:10px}.tabs a{flex-direction:column;gap:0;font-size:.85rem}.tabs a span{font-size:1.3rem;line-height:1.2}
