:root{--ink:#472f28;--green:#ad3c27;--muted:#88766c;--paper:#fff7f0;--line:#ecddd2;--orange:#d25331;--cream:#ffe3c9;--white:#fffdfa;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:11px 18px;border:1px solid transparent;border-radius:10px;background:var(--green);color:white;font-weight:600;cursor:pointer;text-align:center}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:wait}button[hidden]{display:none}.secondary{background:#fbe8da;color:#98361f;border-color:#efd0bc}.small{font-size:12px;min-height:42px;padding:9px 14px}.shell{display:flex;min-height:100vh}.sidebar{width:220px;background:#fffaf5;position:fixed;inset:0 auto 0 0;padding:30px 22px;display:flex;flex-direction:column;border-right:1px solid var(--line);z-index:10}.brand{display:flex;gap:12px;align-items:center;line-height:1.1;font-size:11px;letter-spacing:2px}.brand img{border-radius:12px}.brand strong{font-size:22px;letter-spacing:1px}.brand-dot{color:var(--orange)}nav{display:grid;gap:6px;margin-top:32px}nav a{padding:12px 13px;border-radius:10px;color:#8c6c5c;font-size:13px;font-weight:600;display:flex;align-items:center;gap:12px;min-height:48px}nav a span{font-size:23px;font-weight:400;width:23px;text-align:center}nav a.active{color:#a13620;background:#fce2d0}.sidebar-bottom{margin-top:auto;padding-top:28px}.profile{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:600}.avatar{display:flex;width:36px;height:36px;border-radius:50%;align-items:center;justify-content:center;background:#f5d3b9;color:#9b3c23}.link-button{background:none;color:var(--muted);padding:10px 0;font-size:12px}.shell main{margin-left:220px;padding:0 36px 40px;max-width:1300px;width:calc(100% - 220px)}.topbar{display:flex;justify-content:flex-end;padding-top:18px}.page-heading{padding:32px 0 22px}.page-heading h1{font-size:30px;line-height:1.2;margin:0;font-weight:650;letter-spacing:-.6px;overflow-wrap:anywhere}.page-heading p{margin:8px 0 0;color:var(--muted);font-size:12px}h2{font-size:18px;font-weight:600;margin:0 0 14px}h3{margin:0;font-size:15px;font-weight:600}.card{background:var(--white);border:1px solid var(--line);padding:22px;border-radius:var(--radius);margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}.stats>a{border:1px solid var(--line);background:var(--white);border-radius:var(--radius);padding:24px}.stats strong{font-size:32px;color:var(--green);line-height:1;display:block;margin-bottom:12px}.stats>a>span{display:block;font-size:14px;font-weight:600}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0 14px}.section-heading h2{margin:0}.grow{flex:1;min-width:0}.grow strong,.grow h3{overflow-wrap:anywhere}.badge{display:inline-block;white-space:nowrap;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600;background:#fae9cb;color:#8b6227}.badge.progress{background:#fbe0c8;color:#a14f21}.badge.blocked{background:#f9d9d1;color:#aa3d2a}.badge.done,.badge.bought{background:#f0e7da;color:#78684c}.empty{text-align:center;padding:26px 12px;color:var(--muted);width:100%}.empty h3{font-size:14px;font-weight:400}.empty p{font-size:12px;margin-bottom:0}.empty p:empty{display:none}label{font-size:12px;font-weight:600;display:block;margin:14px 0}input,textarea,select{display:block;width:100%;background:#fffaf6;color:var(--ink);border:1px solid #e4d2c5;border-radius:8px;min-height:46px;padding:10px 12px;margin-top:6px;outline:none;max-width:100%}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#d8774f;box-shadow:0 0 0 3px #fbe3d1}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #df794b;outline-offset:3px}.auth{max-width:520px}.auth h1{font-size:28px}.auth p,.muted{font-size:12px;color:var(--muted)}.auth button{width:100%;margin-top:10px}.alert{padding:14px 17px;margin:20px 0;background:#f9e6d2;border:1px solid #efd0b8;border-radius:10px;font-size:13px}.alert.error{background:#fce0d8;border-color:#e9b8a8;color:#923e2b}.tabs{display:flex;gap:4px;background:#f6e5d9;padding:5px;border-radius:11px;width:fit-content;max-width:100%;margin-bottom:18px}.tabs a{padding:10px 16px;font-size:12px;border-radius:7px;white-space:nowrap}.tabs .selected{background:var(--white);color:var(--green);font-weight:600}.inline-form{display:flex;gap:12px;align-items:flex-end}.inline-form label:first-of-type{flex:1}.inline-form label:nth-of-type(2){width:100px}.inline-form label{margin:0}.inline-form button{white-space:nowrap}.filters{display:flex;gap:5px;flex-wrap:wrap;margin:20px 0 12px}.filters a{font-size:12px;padding:9px 12px;border-radius:8px;color:var(--muted)}.filters .selected{background:#f9ddc8;color:var(--green);font-weight:600}.list-card{padding:0 20px}.shopping-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.shopping-row:last-child{border-bottom:0}.quantity{font-weight:400;font-size:12px;color:var(--muted)}.shopping-row small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.icon-button{padding:6px;width:44px;height:44px;min-height:44px;font-size:23px;background:none;color:#ae8270;flex-shrink:0}.related{font-size:12px;color:#ad5735;display:block;margin-top:8px}.task-grid,.users-grid,.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.task-card{display:flex;flex-direction:column;margin:0}.task-card .badge{align-self:flex-start}.task-card h2{margin:16px 0 10px;font-size:18px;overflow-wrap:anywhere}.task-card p{font-size:12px;color:var(--muted);flex:1;white-space:pre-line;overflow-wrap:anywhere}.task-footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;margin-top:14px}details summary{cursor:pointer;font-weight:600;font-size:14px;min-height:28px}details summary small{display:block;color:var(--muted);font-weight:400;font-size:11px}details[open]>summary{padding-bottom:10px;border-bottom:1px solid var(--line)}.material-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px;overflow-wrap:anywhere}.back{display:block;margin-top:22px;font-size:12px;color:var(--muted)}.note{border-bottom:1px solid var(--line);padding:14px 0}.note small{font-size:11px;color:var(--muted)}.note p{font-size:13px;overflow-wrap:anywhere}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}code{font-size:12px}.list-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;margin-left:7px;background:#f8dec9;border-radius:50%;font-size:12px;color:#a44f29;vertical-align:middle}.buy-form{flex-shrink:0}.buy-toggle{width:44px;height:44px;min-height:44px;padding:0;border:1px solid #dfbaa3;border-radius:50%;background:#fff7ee;color:var(--green);font-size:27px;font-weight:400}.is-bought .buy-toggle{background:#f8ddc7;font-size:19px}.is-bought h3{color:#9b8c7d;text-decoration:line-through}.purchased>summary{cursor:pointer;font-size:12px;font-weight:400;color:var(--muted);padding:12px 4px;min-height:44px}.purchased[open]>summary{margin-bottom:10px;border:0}.room-filter{display:flex;gap:10px;align-items:flex-end;margin:0 0 20px}.room-filter label{flex:1;margin:0;max-width:340px}.room-filter button{min-height:46px}.room-label{color:#a4694c;font-size:12px}.room-card h2{margin:7px 0 12px}.room-card>a{font-size:13px;color:var(--green)}.room-card details{margin-top:20px}.room-card details summary{font-size:12px;font-weight:400;color:var(--muted)}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;width:100%;height:76px;padding:17px 18px;border-right:0;border-bottom:1px solid var(--line);background:var(--paper)}.brand{font-size:9px;gap:9px;letter-spacing:1.5px;width:fit-content}.brand img{width:38px;height:38px;border-radius:10px}.brand strong{font-size:18px}.sidebar-bottom{position:absolute;right:18px;top:20px;padding:0;margin:0}.profile{font-size:12px;gap:7px;max-width:145px}.profile>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:30px;height:30px;flex-shrink:0}.sidebar-bottom form{display:none}nav{position:fixed;inset:auto 0 0;margin:0;background:#fffaf7;border-top:1px solid #e5cbbb;display:flex;gap:3px;justify-content:space-around;padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -3px 16px #8b3c1510;z-index:20}nav a{display:flex;flex:1;flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:5px 2px;font-size:10px;border-radius:10px;white-space:nowrap}nav a span{font-size:23px;line-height:1.1;width:auto}nav a.active{background:#fbe1cc;color:#ad3c27}.shell main{margin-left:0;width:100%;padding:0 16px calc(100px + env(safe-area-inset-bottom))}.page-heading{padding:25px 0 19px}.page-heading h1{font-size:27px;letter-spacing:-.4px}.card{padding:18px;border-radius:12px}.stats{gap:12px}.stats>a{padding:21px}.stats strong{font-size:30px}.stats>a>span{font-size:13px}.inline-form{flex-wrap:wrap;gap:10px}.inline-form label:first-of-type{flex:1;min-width:140px}.inline-form label:nth-of-type(2){width:75px}.inline-form button{width:100%}.tabs{width:100%;gap:2px}.tabs a{flex:1;padding:10px 5px;text-align:center;font-size:11px}.list-card{padding:0 14px}.shopping-row{gap:9px;padding:14px 0}.shopping-row h3{font-size:14px}.task-grid,.users-grid,.two-columns{grid-template-columns:1fr;gap:14px}.two-columns .card{margin-bottom:0}.notes{margin-top:18px}.filters{gap:2px}.filters a{font-size:11px;padding:8px}.section-heading h2{font-size:16px}.auth{margin-top:20px}.check{align-items:center}.room-filter label{max-width:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
html{touch-action:pan-x pan-y}button,a,input,select,textarea,summary{touch-action:manipulation}.topbar{gap:8px;align-items:center;flex-wrap:wrap}.cache-status{font-size:11px;color:var(--muted)}.room-tabs{margin:0 0 18px}.room-tabs a{min-height:40px}@media(max-width:760px){input,select,textarea{font-size:16px}.topbar{padding-top:12px}.topbar .small{min-height:40px;padding:8px 11px;font-size:11px}.page-heading{padding-top:20px}}
