:root{--bg:#f6f4ef;--surface:#fff;--surface-2:#efece5;--text:#1d201f;--muted:#5c6360;--border:#dcd7cc;--accent:#2b2f2d;--accent-hover:#444947;--on-accent:#fff;--accent-soft:#e6e3dc;--danger:#b3261e;--packed:#8a908d;--shadow:0 1px 2px #0000000f;--radius:12px;--gutter:16px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#161918;--surface:#1f2321;--surface-2:#2a2f2c;--text:#e9edeb;--muted:#a2aaa6;--border:#363c39;--accent:#e9edeb;--accent-hover:#fff;--on-accent:#161918;--accent-soft:#2a2f2c;--danger:#f2a49e;--packed:#7a827e;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}[data-app=pack]{--accent:#1f6b58;--accent-hover:#185646;--on-accent:#fff;--accent-soft:#dcebe5}[data-app=groceries]{--accent:#a64a25;--accent-hover:#8c3d1d;--on-accent:#fff;--accent-soft:#f4e0d5}[data-app=todos]{--accent:#2f5f9e;--accent-hover:#274f84;--on-accent:#fff;--accent-soft:#dfe7f3}@media (prefers-color-scheme:dark){[data-app=pack]{--accent:#6cc4a8;--accent-hover:#86d2b9;--on-accent:#0c1a15;--accent-soft:#223a32}[data-app=groceries]{--accent:#f0a079;--accent-hover:#f5b896;--on-accent:#2a1208;--accent-soft:#3d2619}[data-app=todos]{--accent:#8fb4ec;--accent-hover:#a9c6f2;--on-accent:#0b1626;--accent-soft:#1f2b3d}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2,p{margin:0}a{color:var(--accent)}button,input{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:14px}.screen,.auth{max-width:600px;padding:0 var(--gutter) calc(48px + env(safe-area-inset-bottom));margin:0 auto}.topbar{z-index:5;background:var(--bg);margin:0 calc(-1 * var(--gutter)) 4px;padding:calc(8px + env(safe-area-inset-top)) var(--gutter) 12px;position:sticky;top:0}.topbar-row{justify-content:space-between;align-items:center;gap:8px;min-height:44px;display:flex}.topbar-actions{gap:4px;margin-left:auto;display:flex}.topbar h1{overflow-wrap:anywhere;font-size:28px;line-height:1.2}.back{align-items:center;gap:4px;min-height:44px;font-weight:500;text-decoration:none;display:inline-flex}.back span{font-size:24px;line-height:1}.brand-mark,.brand{color:var(--accent);letter-spacing:.02em;font-weight:700}main,.stack{flex-direction:column;gap:16px;display:flex}.group{flex-direction:column;gap:8px;display:flex}.group h2,.sub{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:14px;font-weight:600}.sub{margin-top:8px}.btn{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.primary:not(:disabled):hover{background:var(--accent-hover)}.btn.ghost{color:var(--accent);background:0 0;border-color:#0000;padding:0 10px}.btn.ghost.icon{letter-spacing:.1em;font-size:14px}.btn.ghost[aria-pressed=true]{background:var(--accent-soft)}.btn.danger{background:var(--danger);border-color:var(--danger);color:var(--bg)}.btn.danger-outline{border-color:var(--danger);color:var(--danger);background:0 0}.danger-text{color:var(--danger)!important}.btn.block{width:100%}.icon-btn{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;font-size:24px;line-height:1}.icon-btn:hover{background:var(--surface-2);color:var(--danger)}.field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.field>span,.field>legend{padding:0;font-weight:600}input[type=text],input[type=email],input[type=password],input:not([type]){border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;min-height:48px;padding:10px 14px}input::placeholder{color:var(--muted);opacity:.8}.form-error{color:var(--danger);font-weight:500}.hint{color:var(--muted);background:var(--surface-2);border-radius:var(--radius);padding:10px 12px;font-size:14px}.check-label{cursor:pointer;align-items:center;gap:8px;min-height:44px;display:inline-flex}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);margin:0}input[role=switch]{appearance:none;background:var(--border);cursor:pointer;border-radius:999px;flex:none;width:48px;height:28px;transition:background .15s;position:relative}input[role=switch]:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #00000040}input[role=switch]:checked{background:var(--accent)}input[role=switch]:checked:after{transform:translate(20px)}.switch-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:8px 14px;display:flex}.switch-row>span{flex-direction:column;display:flex}.switch-row.compact{background:0 0;border:0;min-height:48px;padding:0}.stepper{border:1px solid var(--border);background:var(--surface);border-radius:999px;align-self:flex-start;align-items:center;display:inline-flex}.stepper button{width:48px;height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:999px;font-size:22px}.stepper button:disabled{color:var(--border);cursor:default}.stepper output{text-align:center;font-variant-numeric:tabular-nums;min-width:64px;font-weight:600}.stepper.small button{width:44px}.stepper.small output{min-width:28px}.cards{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);flex-direction:column;gap:4px;padding:14px 16px;text-decoration:none;display:flex}.card-title{overflow-wrap:anywhere;font-size:18px;font-weight:600}.card-meta{color:var(--muted);font-size:14px}.reorder-row{flex-direction:row;align-items:center;gap:8px;padding:6px 6px 6px 16px}.reorder-row .card-title{flex:1;min-width:0}.reorder-buttons{gap:4px;display:flex}.move-btn{border:1px solid var(--border);background:var(--surface);width:44px;height:44px;color:var(--accent);cursor:pointer;border-radius:50%;font-size:20px;line-height:1}.move-btn:disabled{color:var(--border);cursor:default}.bar{background:var(--surface-2);border-radius:999px;height:6px;margin-top:4px;display:block;overflow:hidden}.bar>span{background:var(--accent);border-radius:inherit;height:100%;transition:width .2s;display:block}.empty{flex-direction:column;align-items:flex-start;gap:12px;padding:24px 0;display:flex}.empty h2{font-size:22px}.notice{background:var(--accent-soft);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.notice p{flex:200px}.account{border-top:1px solid var(--border);overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:40px;padding-top:16px;font-size:14px;display:flex}.inline-add{gap:8px;display:flex}.inline-add input{flex:1;min-width:0}.chips{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:center;border-radius:999px;align-items:center;gap:6px;min-height:44px;padding:6px 14px;font-weight:500;display:inline-flex;position:relative}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.chip-order{border:2px solid var(--bg);background:var(--text);min-width:22px;height:22px;color:var(--bg);border-radius:999px;place-items:center;padding:0 5px;font-size:12px;font-weight:700;display:grid;position:absolute;top:-7px;left:-5px}.chip-note{opacity:.8;font-size:12px}.trip-summary{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.progress-text{font-weight:600}.trip-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.section-head{align-items:center;gap:8px;padding:12px 16px 8px;display:flex}.section-head h2{overflow-wrap:anywhere;margin-right:auto;font-size:18px}.section-head .muted{font-variant-numeric:tabular-nums;font-size:14px}.section-empty{padding:4px 16px 8px}.items{margin:0;padding:0;list-style:none}.item-row{border-top:1px solid var(--border);align-items:center;display:flex}.item{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;min-height:52px;padding:8px 16px;display:flex}.item:disabled{cursor:default}.check{border:2px solid var(--packed);border-radius:50%;flex:none;place-items:center;width:24px;height:24px;transition:background .12s,border-color .12s;display:grid}.item[aria-pressed=true] .check{background:var(--accent);border-color:var(--accent)}.item[aria-pressed=true] .check:after{content:"";border:solid var(--on-accent);border-width:0 2.5px 2.5px 0;width:6px;height:11px;transform:translateY(-1px)rotate(45deg)}.item-name{overflow-wrap:anywhere;flex:1}.item[aria-pressed=true] .item-name,.item[aria-pressed=true] .qty{color:var(--packed);text-decoration:line-through}.qty{font-variant-numeric:tabular-nums;flex:none;font-weight:600}.add-link{border:0;border-top:1px solid var(--border);width:100%;min-height:48px;color:var(--accent);text-align:left;cursor:pointer;background:0 0;padding:0 16px;font-weight:600;display:block}.add-form{border-top:1px solid var(--border);background:var(--surface-2);flex-direction:column;gap:4px;padding:12px 16px;display:flex}.form-actions,.dialog-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.edit-items{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.edit-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:4px;padding:8px 8px 4px 12px;display:flex}.edit-item .item-input{border-color:var(--border);background:var(--bg);min-height:44px;padding:8px 10px;font-weight:500}.edit-item .item-input:focus{border-color:var(--accent);background:var(--surface)}.edit-item .item-input:disabled{opacity:.45}.trip-section .edit-items{gap:0}.trip-section .edit-item{border:0;border-top:1px solid var(--border);border-radius:0;padding:6px 8px 6px 16px}.edit-item-head{align-items:center;gap:4px;display:flex}.edit-item-head .item-input,.edit-item-head .name-btn{flex:1;width:auto;min-width:0}.edit-item-controls{flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.edit-item-controls .icon-btn{margin-left:auto}.edit-item.todo{flex-direction:row;align-items:center;padding-bottom:8px}.edit-item.todo .item-input{flex:1;min-width:0}.hidden-note{margin:0}.delete-list{margin-top:32px}.dialog{width:min(440px, calc(100vw - 2 * var(--gutter)));background:var(--surface);color:var(--text);border:0;border-radius:16px;padding:0;box-shadow:0 12px 40px #00000040}.dialog::backdrop{background:#0006}.dialog-body{flex-direction:column;gap:12px;padding:20px;display:flex}.dialog-body h2{overflow-wrap:anywhere;font-size:20px}.menu{flex-direction:column;display:flex}.menu-item{border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;background:0 0;min-height:48px;padding:0 4px;font-weight:500}.menu-item:last-child{border-bottom:0}.toast-area{left:0;right:0;bottom:calc(16px + env(safe-area-inset-bottom));padding:0 var(--gutter);pointer-events:none;z-index:20;justify-content:center;display:flex;position:fixed}.toast{border-radius:var(--radius);background:var(--text);max-width:560px;color:var(--bg);padding:12px 16px;font-weight:500;box-shadow:0 6px 20px #0003}.auth{padding-top:calc(48px + env(safe-area-inset-top));flex-direction:column;gap:12px;max-width:420px;display:flex}.auth h1{font-size:28px}.auth .brand{font-size:18px}.auth form{margin-top:12px}.auth-switch{margin-top:8px}.auth-switch a,.dialog-body p a{margin:-13px -4px;padding:13px 4px;display:inline-block}.loading{padding:24px 0}.toast{pointer-events:auto;align-items:center;gap:12px;display:flex}.toast-action{min-height:44px;color:var(--bg);cursor:pointer;background:0 0;border:0;padding:0 8px;font-weight:700;text-decoration:underline}.toast-action:focus-visible{outline:2px solid var(--bg);outline-offset:2px}.suggestions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.trip-actions{gap:8px;margin:12px 0 16px;display:flex}.area-btn{border:1px solid var(--border);background:var(--surface);max-width:100%;min-height:44px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:999px;padding:0 12px;font-size:14px;overflow:hidden}.name-btn{border:0;border-bottom:1px dashed var(--border);text-align:left;cursor:pointer;background:0 0;width:100%;min-height:44px;padding:0;font-weight:500;display:block}.name-btn:disabled,.area-btn:disabled{opacity:.45;cursor:default}a.brand-mark{align-items:center;min-height:44px;text-decoration:none;display:inline-flex}.app-tile{color:inherit;flex-direction:row;align-items:center;gap:14px;text-decoration:none}.app-tile img{border-radius:12px;flex:none}.app-tile-text{flex-direction:column;gap:2px;min-width:0;display:flex}.tabs{margin:0 calc(-1 * var(--gutter));padding:4px var(--gutter);scroll-padding-inline:var(--gutter);scrollbar-width:none;gap:8px;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tab{border:1px solid var(--border);background:var(--surface);max-width:70vw;color:var(--text);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:999px;flex:none;padding:0 16px;font-weight:500;line-height:42px;text-decoration:none;display:block;overflow:hidden}.tab[aria-current=page]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.tab-new{min-width:44px;color:var(--accent);padding:0 14px;font-size:22px}.edit-item.todo .name-btn{flex:1;width:auto;min-width:0}
