:root{--bg: #fbf6ef;--surface: #ffffff;--surface-2: #f4ece1;--text: #2b2118;--muted: #7d6e60;--line: #e8dccd;--accent: #b45f2a;--accent-text: #ffffff;--accent-soft: #f6e2d2;--ok: #2f7d4f;--warn: #b7791f;--warn-soft: #fdf1dc;--bad: #c0392b;--bad-soft: #fbe3e0;--radius: 14px;--shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .05);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #1b1612;--surface: #261f19;--surface-2: #31281f;--text: #f3e9dd;--muted: #b3a291;--line: #3d3228;--accent: #e08a4f;--accent-text: #1b1612;--accent-soft: #3d2a1c;--ok: #6cc28f;--warn: #e6b04f;--warn-soft: #3a2e17;--bad: #ef7a6c;--bad-soft: #3b201c;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}h1{font-size:1.6rem;margin:.2rem 0 .4rem;letter-spacing:-.01em}h2{font-size:1.15rem;margin:0}h3{font-size:.95rem;margin:0 0 .6rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}p{margin:.4rem 0}button{font:inherit;color:inherit;cursor:pointer}input,select,textarea{font:inherit;color:var(--text);width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.65rem .75rem;min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}textarea{resize:vertical}.app{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:calc(env(safe-area-inset-top) + .6rem) 16px .6rem;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.5rem;min-width:0}.brand .ws{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:.35rem .75rem;font-size:.85rem;white-space:nowrap}.content{flex:1;width:100%;max-width:680px;margin:0 auto;padding:1rem 16px calc(90px + env(safe-area-inset-bottom))}.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:5;display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tabbar button{border:0;background:none;padding:.5rem 0 .55rem;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;color:var(--muted)}.tabbar button.active{color:var(--accent);font-weight:650}.tab-icon{font-size:1.35rem;line-height:1;position:relative}.badge{position:absolute;top:-4px;right:-12px;background:var(--accent);color:var(--accent-text);font-size:.65rem;font-weight:700;border-radius:999px;padding:1px 5px;min-width:18px;text-align:center}.page-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}.page-head h1{margin:0}.btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:.6rem 1rem;min-height:44px;font-weight:600;white-space:nowrap}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.ghost{background:transparent;border-color:transparent;color:var(--accent)}.btn.danger{color:var(--bad);border-color:var(--bad-soft);background:var(--bad-soft)}.btn.block{display:block;width:100%;margin-top:.5rem}.btn.small{min-height:34px;padding:.3rem .7rem;font-size:.85rem}.icon-btn{border:0;background:none;color:var(--muted);width:40px;height:40px;border-radius:10px;flex:none}.icon-btn:hover{background:var(--surface-2)}.search{margin-bottom:.6rem}.row{display:flex;gap:.5rem;align-items:flex-end}.row>.field{flex:1;min-width:0}.row.tight{margin-top:.4rem;align-items:center}.row.between{justify-content:space-between;align-items:center}.grow{flex:1;min-width:0}.center{text-align:center}.muted{color:var(--muted)}.small{font-size:.82rem}.block{display:block}.nowrap{white-space:nowrap}.strong{font-weight:650}.pre{white-space:pre-wrap}.big{font-size:2rem;font-weight:700;margin:.2rem 0 .8rem}.neg{color:var(--bad)}.pos,.ok{color:var(--ok)}.warn{color:var(--warn)}.segmented{display:flex;background:var(--surface-2);border-radius:11px;padding:3px;gap:2px;margin-bottom:.75rem;overflow-x:auto}.segmented button{flex:1;border:0;background:none;border-radius:8px;padding:.45rem .5rem;min-height:38px;font-size:.9rem;color:var(--muted);white-space:nowrap}.segmented button.active{background:var(--surface);color:var(--text);font-weight:650;box-shadow:var(--shadow)}.segmented button:disabled{opacity:.4}.field .segmented{margin-bottom:0}.field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.8rem}.field-label{font-size:.85rem;font-weight:600;color:var(--muted)}.field-hint{font-size:.78rem;color:var(--muted)}.num-input{position:relative;display:flex;align-items:center}.num-input input{padding-right:2.8rem}.num-input .suffix{position:absolute;right:.75rem;color:var(--muted);font-size:.9rem;pointer-events:none}.check{display:flex;align-items:center;gap:.6rem;margin:.3rem 0 .9rem}.check input{width:22px;height:22px;min-height:0;accent-color:var(--accent)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;margin:0 0 .9rem;box-shadow:var(--shadow)}.list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.card{display:flex;align-items:center;gap:.75rem;text-align:left;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem .9rem;box-shadow:var(--shadow)}.card.col{flex-direction:column;align-items:stretch;gap:.6rem}.card.link:active{transform:scale(.995)}.card.low{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:var(--warn-soft)}.card.bad{border-color:color-mix(in srgb,var(--bad) 45%,var(--line));background:var(--bad-soft)}.card-main{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}.stock{font-weight:700;white-space:nowrap}.note{font-size:.88rem;font-style:italic}.allergen-tag{font-size:.75rem;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px;white-space:nowrap}.allergens{background:var(--warn-soft);border-radius:10px;padding:.5rem .75rem;font-size:.9rem}.empty{text-align:center;color:var(--muted);padding:2rem 1rem}.day{margin-top:1.2rem}.table-wrap{overflow-x:auto;margin:0 -4px}.table{width:100%;border-collapse:collapse;font-size:.93rem}.table th{text-align:left;font-size:.75rem;color:var(--muted);font-weight:600;padding:.3rem .4rem;border-bottom:1px solid var(--line)}.table td{padding:.5rem .4rem;border-bottom:1px solid var(--line);vertical-align:top}.table tr:last-child td{border-bottom:0}.table .num{text-align:right;white-space:nowrap}.table tr.short td{color:var(--bad)}.calc .factor{margin-top:.2rem;color:var(--muted)}.calc .factor strong{color:var(--accent);font-size:1.15rem}.item-row{display:flex;gap:.4rem;align-items:flex-start;margin-bottom:.5rem}.item-row .qty{width:120px;flex:none}.chips{display:flex;gap:.4rem}.chips.wrap{flex-wrap:wrap}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:.35rem .7rem;font-size:.82rem}.chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--text);font-weight:600}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:1rem 0}.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem .5rem;display:flex;flex-direction:column;align-items:center;box-shadow:var(--shadow)}.tile strong{font-size:1.7rem;line-height:1.1}.tile span{font-size:.8rem;color:var(--muted)}.tile.warn-tile{background:var(--warn-soft)}.line{display:flex;align-items:baseline;gap:.6rem;padding:.4rem 0;border-bottom:1px solid var(--line)}.line:last-child{border-bottom:0}.date-chip{font-size:.78rem;font-weight:650;background:var(--accent-soft);border-radius:6px;padding:1px 7px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.9rem}.stats div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.6rem;display:flex;flex-direction:column}.stats strong{font-size:1.1rem}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1rem}.moves{display:flex;flex-direction:column}.move{display:flex;align-items:center;gap:.5rem;padding:.55rem 0;border-bottom:1px solid var(--line)}.kind{font-size:.72rem;font-weight:700;border-radius:6px;padding:1px 6px;margin-right:4px}.kind.prijem{background:color-mix(in srgb,var(--ok) 18%,transparent);color:var(--ok)}.kind.spotreba{background:var(--accent-soft);color:var(--accent)}.kind.inventura{background:var(--warn-soft);color:var(--warn)}.shop{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:.75rem 0}.shop:empty{display:none}.shop-row{display:flex;align-items:center;gap:.7rem;padding:.55rem .4rem .55rem .8rem;border-bottom:1px solid var(--line);cursor:pointer}.shop-row:last-child{border-bottom:0}.tick{width:28px;height:28px;border-radius:8px;border:2px solid var(--line);background:var(--surface);flex:none;color:var(--accent-text);font-weight:800;font-size:.9rem;display:grid;place-items:center;padding:0}.tick.on{background:var(--ok);border-color:var(--ok)}.shop.done{opacity:.65}.strike{text-decoration:line-through}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#140c0673;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;display:flex;flex-direction:column;border-radius:18px 18px 0 0;animation:up .18s ease-out}@media(min-width:700px){.backdrop{align-items:center}.sheet{border-radius:18px}}@keyframes up{0%{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:.9rem .6rem .4rem 1rem}.sheet-body{overflow-y:auto;padding:.4rem 1rem 1rem}.sheet-foot{padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.sheet-foot .btn.block{margin-top:0}.toasts{position:fixed;left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom));z-index:30;display:flex;flex-direction:column;align-items:center;gap:.4rem;pointer-events:none;padding:0 16px}.toast{background:var(--text);color:var(--bg);padding:.6rem 1rem;border-radius:10px;font-size:.9rem;box-shadow:0 6px 20px #0003;max-width:100%}.auth{max-width:440px;margin:0 auto;padding:3rem 16px 2rem}.logo{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin-bottom:.5rem}.logo span{font-size:1.8rem;font-weight:800;letter-spacing:-.02em}.demo-note{background:var(--accent-soft);border-radius:10px;padding:.6rem .8rem;font-size:.88rem;margin-bottom:1rem}.shop-row.flash{animation:flash 1.6s ease-out}@keyframes flash{0%,40%{background:var(--accent-soft)}to{background:transparent}}.row.tight{align-items:center;margin-top:0}.bulk-btn{margin:0 0 .75rem}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:1rem}.pool-split{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.9rem}.pool-split div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.5rem .7rem;display:flex;flex-direction:column}button.move{width:100%;background:none;border:0;border-bottom:1px solid var(--line);text-align:left}button.move:hover{background:var(--surface-2)}.chev{color:var(--muted);font-size:1.3rem;padding-left:.2rem}.inv-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:.5rem 0 1rem}.inv-row{display:flex;align-items:center;gap:.6rem;padding:.55rem .8rem;border-bottom:1px solid var(--line)}.inv-row:last-child{border-bottom:0}.inv-input{width:110px;flex:none}input.invalid{outline:2px solid var(--bad);outline-offset:-1px}.sticky-foot{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));padding:.5rem 0;background:linear-gradient(transparent,var(--bg) 30%)}.info{color:var(--accent)}.panel.owed{background:var(--accent-soft);border-color:var(--accent)}.cat-bar{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.chips.scroll{flex:1;min-width:0;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.chips.scroll::-webkit-scrollbar{display:none}.chips.scroll .chip{white-space:nowrap;flex:none;min-height:36px}.count{font-weight:600;background:var(--surface-2);border-radius:999px;padding:0 7px;margin-left:4px;font-size:.75rem}.cat-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.cat-row{display:flex;align-items:center;gap:.4rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.5rem .4rem}.cat-row .row.tight{margin-top:.4rem;gap:.6rem}.cat-move{display:flex;flex-direction:column}.cat-move .icon-btn{height:28px;width:32px;font-size:.75rem}.cat-move .icon-btn:disabled{opacity:.25}.panel.inset{box-shadow:none;background:var(--surface-2);padding:.75rem}.add-ing{margin:0 0 .6rem}.pick-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.pick{display:flex;align-items:center;gap:.5rem;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:.7rem .8rem;min-height:48px}.pick:last-child{border-bottom:0}.pick:hover{background:var(--surface-2)}.kind-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.6rem}.kind-tab{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:.6rem .5rem;font-weight:600;min-height:44px;display:flex;align-items:center;justify-content:center;gap:.4rem}.kind-tab.on{background:var(--accent-soft);border-color:var(--accent)}.badge-inline{background:var(--warn);color:#fff;border-radius:999px;font-size:.7rem;padding:0 6px}.right{text-align:right}.stock{display:flex;flex-direction:column;align-items:flex-end}.unit-toggle{display:flex;gap:.35rem;margin-top:.35rem;flex-wrap:wrap}.unit-toggle .chip{padding:.2rem .6rem;font-size:.78rem}.line.total{border-top:2px solid var(--line);margin-top:.2rem}.unit-fixed{min-height:44px;display:flex;align-items:center;padding:0 .8rem;border-radius:10px;background:var(--surface-2);font-weight:600;color:var(--muted);white-space:nowrap}.note-line{color:var(--muted);font-style:italic}.note-box{background:var(--surface-2);border-radius:10px;padding:.5rem .75rem;font-style:italic}.photos{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.8rem}.photo-row{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:4px}.photo-tile,.photo-add{flex:none;width:84px;height:84px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);overflow:hidden;padding:0;position:relative;display:grid;place-items:center}.photo-tile img,.thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-add{border-style:dashed;color:var(--accent);font-size:1.4rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.photo-x{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:999px;border:0;background:#0009;color:#fff;font-size:.75rem;padding:0}.thumb{flex:none;border-radius:10px;overflow:hidden;background:var(--surface-2);position:relative;display:block}.thumb-count{position:absolute;right:2px;bottom:2px;background:#0009;color:#fff;font-size:.65rem;border-radius:6px;padding:0 4px}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0a0603eb;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;color:#fff}.lb-top{position:absolute;top:calc(env(safe-area-inset-top) + 10px);left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:.5rem}.lb-img{max-width:100%;max-height:78dvh;border-radius:12px;object-fit:contain}.lb-nav{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 16px);display:flex;gap:1rem}.lb-nav .btn,.lb-top .btn:not(.danger){background:#ffffff1f;color:#fff;border-color:transparent}.cal-nav{display:flex;align-items:center;gap:.4rem;margin-bottom:.8rem}.cal-nav .btn{min-width:44px;padding:.4rem .6rem}.cal-title{flex:1;text-align:center;font-weight:700}.cal-title:first-letter{text-transform:uppercase}.cal-item{display:flex;align-items:baseline;gap:.35rem;width:100%;text-align:left;border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--surface);border-radius:8px;padding:.35rem .5rem;font-size:.9rem;min-height:34px;cursor:grab}.cal-item.event{border-left-color:var(--muted);background:var(--surface-2)}.cal-item.done{opacity:.55;border-left-color:var(--line);text-decoration:none}.cal-item.done .cal-name{text-decoration:line-through}.cal-item.compact{font-size:.72rem;padding:1px 4px;min-height:0;border-left-width:3px;border-radius:5px}.cal-item.compact .cal-time{display:none}.cal-time{font-weight:700;font-size:.8em;color:var(--muted)}.cal-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-label{color:var(--muted);font-size:.8em;white-space:nowrap}.add-hint{opacity:.6}.week{display:flex;flex-direction:column;gap:.45rem}.week-day{display:flex;gap:.6rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.5rem;min-height:58px;cursor:pointer}.week-day.today{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.week-head{flex:none;width:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:var(--surface-2);border-radius:8px}.week-day.today .week-head{background:var(--accent);color:var(--accent-text)}.week-head .wd{font-weight:700}.week-head .dn{font-size:.75rem}.week-items{flex:1;min-width:0;display:flex;flex-direction:column;gap:.3rem;justify-content:center}.day-view{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.hour-row{display:flex;gap:.5rem;border-bottom:1px solid var(--line);min-height:48px;padding:.3rem .5rem;cursor:pointer}.hour-row:last-child{border-bottom:0}.hour-row.allday{background:var(--surface-2)}.hour-label{flex:none;width:58px;font-size:.78rem;color:var(--muted);padding-top:.35rem}.hour-items{flex:1;min-width:0;display:flex;flex-direction:column;gap:.3rem;justify-content:center}.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.month-wd{text-align:center;font-size:.72rem;font-weight:700;color:var(--muted);padding:.2rem 0}.month-cell{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-height:76px;padding:3px;display:flex;flex-direction:column;gap:2px;cursor:pointer;overflow:hidden}.month-cell.other{opacity:.4}.month-cell.today{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.month-dn{font-size:.75rem;font-weight:700;padding-left:2px}.month-cell .more{font-size:.68rem;color:var(--muted);padding-left:2px}.year{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}@media(min-width:560px){.year{grid-template-columns:repeat(3,minmax(0,1fr))}}.mini{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.4rem}.mini-title{width:100%;border:0;background:none;font-weight:700;text-transform:capitalize;padding:.2rem;text-align:left;color:var(--accent)}.mini-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px}.mini-wd{font-size:.6rem;text-align:center;color:var(--muted)}.mini-day{border:0;background:none;font-size:.68rem;aspect-ratio:1;padding:0;border-radius:999px;color:var(--text)}.mini-day.other{visibility:hidden}.mini-day.has{background:var(--accent-soft);font-weight:800;color:var(--accent)}.mini-day.today{outline:1.5px solid var(--accent)}.add-choices{display:flex;flex-direction:column;gap:.3rem}.week-day.day-sum{flex-direction:column;gap:0;cursor:default;padding:.4rem}.day-sum-head{display:flex;align-items:center;gap:.6rem;width:100%;border:0;background:none;padding:0;text-align:left;min-height:48px}.day-sum-head .week-head{height:46px}.day-sum-badges{flex:1;display:flex;flex-wrap:wrap;gap:.3rem}.badge-pill{font-size:.75rem;font-weight:600;border-radius:999px;padding:2px 8px;background:var(--surface-2)}.badge-pill.pos{background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok)}.badge-pill.neg{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}.day-sum-body{padding:.6rem .3rem .3rem;border-top:1px solid var(--line);margin-top:.4rem}.day-sum-body h4{margin:.4rem 0 .2rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.sum-cols{display:grid;gap:.6rem}@media(min-width:560px){.sum-cols{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.detail-list{display:flex;flex-direction:column;gap:.4rem}.detail{display:flex;flex-direction:column;gap:2px;background:var(--surface-2);border-radius:8px;padding:.45rem .6rem}.item-row .qty{width:150px;display:flex;gap:4px}.item-row .qty .num-input{flex:1;min-width:0}.unit-sel{width:72px;flex:none;padding:.4rem .3rem;font-size:.85rem}.unit-sel.static{display:flex;align-items:center;justify-content:center;color:var(--muted)}.per-unit{display:flex;align-items:center;gap:.4rem;margin-top:.35rem}.per-unit .num-input{width:100px}.imp-list{display:flex;flex-direction:column;gap:.5rem}.imp-row{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.6rem .7rem;display:flex;flex-direction:column;gap:.35rem}.imp-row details select{margin-top:4px}.owed-box{display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;text-align:left;background:var(--accent-soft);border:1px solid var(--accent);border-radius:var(--radius);padding:.8rem 1rem;margin-bottom:.9rem}.owed-box>div{display:flex;flex-direction:column}.owed-box strong{font-size:1.5rem;line-height:1.2}.card.paid{opacity:.7}.cake-summary{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;background:var(--accent-soft);border:1px solid var(--accent);border-radius:var(--radius);padding:.8rem 1rem;margin-bottom:.9rem;position:sticky;top:.5rem;z-index:5}.cake-summary>div{display:flex;flex-direction:column;min-width:0}.cake-summary strong{font-size:1.2rem;line-height:1.25}.stepper{display:flex;align-items:center;gap:.6rem}.stepper .btn{min-width:44px;padding-left:0;padding-right:0}.stepper strong{min-width:1.5rem;text-align:center;font-size:1.1rem}.layer{border-left:3px solid var(--accent-soft);padding-left:.6rem;margin:.6rem 0}.fill-name{display:flex;flex-direction:column;justify-content:center;min-height:44px}.item-row .qty .num-input{flex:1}.add-select{width:100%;color:var(--muted)}.cake-part{border-top:1px solid var(--line);padding-top:.5rem;margin-top:.6rem}.cake-part .line{border-bottom:0}.part-how{margin:0 0 .3rem;padding-left:1.1rem;color:var(--muted)}.table.compact td{padding:.25rem .4rem;font-size:.88rem}h3.mt{margin-top:1.2rem}.item-row .qty.pct{width:96px;flex-direction:column;gap:2px}.item-row .qty.pct .field-label{font-size:.72rem}.ratio .num-input{width:80px;flex:none}.step-title{font-size:1rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:1.2rem 0 .5rem}.badge.alert{background:var(--warn)}.pending{border:1px solid var(--warn)}.pending-row{border-top:1px solid var(--line);padding:.5rem 0}.pending-row:first-of-type{border-top:0}.pending-row.rejected strong{color:var(--bad)}.pending-box{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent)}
