:root{--green:#173d32;--green2:#275649;--lime:#d4ef90;--ink:#23382f;--muted:#7a837d;--paper:#f6f7f2;--line:#e3e7de;--white:#fff;--red:#af4337;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,a,input{touch-action:manipulation}button,input{font:inherit}button,a{color:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:not-allowed}a{text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8db269;outline-offset:3px}[hidden]{display:none!important}svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}img{display:block}.brand{display:flex;gap:10px;align-items:center;font-size:32px;font-weight:800;letter-spacing:-1.8px}.brand img{border-radius:12px}.brand-dot{color:var(--lime)}.eyebrow,.tiny-label{font-size:10px;font-weight:750;letter-spacing:2px;line-height:1.5}.muted{color:var(--muted);line-height:1.6}.accent{color:#91a966}h1,h2,h3,p{margin-top:0}h1{font-size:46px;line-height:1.12;letter-spacing:-2px;margin-bottom:12px;font-weight:720}h2{font-size:25px;letter-spacing:-.9px;line-height:1.25;margin-bottom:14px}h3{font-size:16px;letter-spacing:-.3px;margin-bottom:8px}.primary,.secondary,.danger{min-height:46px;padding:12px 19px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:650;white-space:nowrap}.primary{background:var(--green);color:white;box-shadow:0 4px 10px #173d3210}.primary:hover{background:#275144}.secondary{background:#edf1e8;color:var(--green)}.secondary:hover{background:#e1e9da}.danger{background:var(--red);color:white}.wide{width:100%}.icon-button{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:transparent;flex-shrink:0}.icon-button:hover{background:#e7ece3}.text-button,.text-link{background:transparent;color:var(--green);font-size:13px;font-weight:650;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0}.text-link{border-bottom:1px solid #cbd6c5}.small-note{font-size:12px;color:var(--muted);line-height:1.6}.boot{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.boot img{border-radius:16px}.login-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--green);color:#fff;padding:40px 9%;display:flex;flex-direction:column;overflow:hidden;position:relative}.story-body{max-width:410px;margin:auto 0;padding:54px 0}.story-body .eyebrow{color:#aec5a7}.story-body h1{font-size:clamp(42px,5vw,72px);line-height:1.02;margin:22px 0;letter-spacing:-3px}.story-body h1 em{font-style:normal;color:var(--lime)}.story-body>p{color:#becbc2;line-height:1.7;font-size:16px}.story-foot{font-size:11px;color:#a6bcae}.story-visual{position:relative;height:235px;margin-top:25px}.visual-orbit{position:absolute;width:300px;height:300px;border:1px solid #527461;border-radius:50%;left:35px;top:10px}.visual-receipt{position:relative;background:#f8faef;color:var(--green);border-radius:18px;width:270px;padding:22px;transform:rotate(-6deg);box-shadow:0 22px 60px #08281c60}.receipt-label{font-size:8px;letter-spacing:1.5px;font-weight:700}.visual-receipt>div{display:flex;align-items:center;gap:12px;margin-top:19px;font-size:14px}.visual-receipt b{margin-left:auto;font-size:12px}.receipt-tick,.receipt-empty{display:inline-flex;align-items:center;justify-content:center;border:1px solid #a4b29b;width:19px;height:19px;border-radius:6px}.receipt-tick{background:var(--lime);border:0}.receipt-end{display:block;font-size:9px;margin-top:22px;padding-top:15px;border-top:1px dashed #b6c4b0}.scan-tag{position:absolute;bottom:0;left:105px;background:var(--lime);color:var(--green);border-radius:12px;font-size:12px;white-space:nowrap;display:flex;gap:8px;align-items:center;padding:12px;transform:rotate(4deg)}.login-form-area{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:50px 40px;position:relative}.login-box{max-width:350px;width:100%;padding-bottom:50px}.login-box h2{font-size:40px;letter-spacing:-1.5px;margin-top:18px}.login-box>.muted{font-size:14px;margin-bottom:35px}.login-box label,dialog label{display:block;font-size:12px;font-weight:650;margin:19px 0 9px}input{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 15px;width:100%;min-height:48px;font-size:16px;color:var(--ink)}input::placeholder{color:#a0a69f}.password-wrap{position:relative}.password-wrap input{padding-right:52px}.password-wrap button{position:absolute;right:5px;top:3px;color:#7b867e}.form-error{font-size:13px;line-height:1.5;color:var(--red);min-height:20px;margin:12px 0}.login-note{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px;margin:22px 0}.login-note svg{width:14px;height:14px}.login-box>.text-button{margin:auto;display:flex;font-size:12px}.login-footer{position:absolute;bottom:25px;font-size:11px;color:#909a91}.mobile-brand{display:none}.app-shell{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--green);color:#fff;padding:35px 24px 26px;display:flex;flex-direction:column;z-index:10}.sidebar>.brand{margin-left:9px}.sidebar-caption{font-size:9px;letter-spacing:1.8px;color:#92b09b;margin:48px 10px 18px}.main-nav{display:grid;gap:7px}.nav-button{background:transparent;color:#b0c3b6;border-radius:12px;min-height:49px;padding:12px 15px;display:flex;align-items:center;gap:13px;text-align:left;font-size:14px;font-weight:550}.nav-button:hover{background:#ffffff0b}.nav-button.active{background:var(--lime);color:var(--green);font-weight:700}.nav-count{margin-left:auto;font-size:10px;display:flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:6px;background:#173d3212}.sidebar-bottom{margin-top:auto;padding:50px 10px 0}.sidebar-bottom>.tiny-label{color:#98b29e;font-size:8px}.sidebar-bottom>p{font-size:20px;font-weight:500;line-height:1.5;letter-spacing:-.4px;margin:12px 0 28px}.sidebar-account{display:flex;gap:10px;align-items:center;border-top:1px solid #ffffff18;padding-top:23px}.avatar{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e5e9d9;color:var(--green);font-weight:700;flex-shrink:0}.avatar.small{width:33px;height:33px;font-size:12px}.sidebar-account strong{font-size:12px;display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis}.sidebar-account small{font-size:9px;color:#a8bfaf;display:block;margin-top:4px}.workspace{margin-left:244px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line)}.desktop-breadcrumb{font-size:9px;letter-spacing:1.7px;color:#9ba398;font-weight:650}.desktop-breadcrumb>span:first-child{margin:0 14px}.desktop-breadcrumb>span:last-child{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:15px}.connection{font-size:10px;display:flex;gap:7px;align-items:center;color:#697769}.connection i{width:6px;height:6px;background:#78965a;border-radius:50%}.connection.offline i{background:#bb8753}.top-brand{display:none}.page-content{max-width:1250px;margin:auto;padding:44px 48px 70px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading .eyebrow{color:#80906e;display:block;margin-bottom:13px;font-size:9px}.page-heading p{font-size:14px;margin-bottom:0}.page-heading>.primary{flex-shrink:0}.install-banner{display:flex;align-items:center;gap:16px;background:#e9eedc;border:1px solid #e0e8cf;border-radius:18px;padding:18px 19px;margin-bottom:28px}.install-symbol{display:flex;align-items:center;justify-content:center;background:#d9e6be;width:43px;height:46px;border-radius:13px;color:#52683c;flex-shrink:0}.install-banner strong{font-size:13px}.install-banner p{font-size:11px;color:#7b866a;margin:5px 0 0}.install-banner>.secondary{margin-left:auto;background:#fff;font-size:12px;min-height:37px;padding:9px 14px}.install-banner>.icon-button{width:26px;height:30px;color:#7b866a}.list-toolbar{display:flex;align-items:center;gap:18px;margin:24px 0 20px}.search-wrap{position:relative;flex:1;max-width:400px}.search-wrap>span{position:absolute;left:14px;top:13px;color:#929d8e}.search-wrap svg{width:18px;height:18px}.search-wrap input{padding-left:41px;height:46px;min-height:46px;font-size:13px;background:#fff;border-color:#e0e5d9}.list-summary{margin-left:auto;text-align:right;white-space:nowrap}.list-summary strong{font-size:12px;display:block;font-weight:650}.list-summary>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.items{display:grid;gap:11px}.item{display:flex;align-items:flex-start;gap:15px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px 20px;transition:border-color .15s,box-shadow .15s}.item:hover{border-color:#c2d0b6;box-shadow:0 3px 15px #1b382a04}.item.done{background:#f0f3eb}.item.done .item-name{text-decoration:line-through;color:#78866e}.item-check{width:28px;height:28px;border:1.5px solid #c4cdbc;border-radius:9px;background:#fff;color:var(--green);margin-top:3px;padding:3px;flex-shrink:0}.item-check[aria-pressed="true"]{background:var(--lime);border-color:#b7d178}.item-check svg{width:19px;height:19px}.item-body{min-width:0;flex:1}.item-top{display:flex;align-items:center;gap:15px}.item-name{border:0;background:none;text-align:left;font-weight:650;font-size:15px;line-height:1.5;letter-spacing:-.15px;padding:0;overflow-wrap:anywhere;color:#2a3a2d;flex:1}.item-name:hover{color:#507344}.item-meta{color:#a0a69b;font-size:10px;letter-spacing:.4px;margin-top:6px;overflow-wrap:anywhere}.item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.item-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.fresh-link{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#5d7552;min-height:30px}.fresh-link svg{width:14px;height:14px}.fresh-link:hover{color:var(--green)}.quantity{display:flex;gap:3px;align-items:center;background:#f4f6ef;border:1px solid #e7ebdf;border-radius:10px;padding:2px;flex-shrink:0}.quantity button{width:31px;height:31px;border-radius:7px;background:transparent;display:flex;align-items:center;justify-content:center;color:#62755a}.quantity button:hover{background:#e4ead9}.quantity button svg{width:14px;height:14px}.quantity strong{min-width:28px;text-align:center;font-size:12px;font-weight:650}.item-actions{display:flex;gap:1px;align-items:center}.item-actions .icon-button{width:34px;height:34px;color:#a0a89b}.item-actions .icon-button:hover{color:var(--green)}.item-actions .trash:hover{color:var(--red);background:#fcf0eb}.item-actions svg{width:17px;height:17px}.unknown-badge{font-size:9px;padding:4px 7px;border-radius:6px;background:#faf0df;color:#a47b3d;font-weight:600;white-space:nowrap}.identify-button{background:#eef2e6;color:#5a704c;padding:6px 9px;border-radius:8px;font-size:11px;min-height:32px}.unknown-note{display:flex;align-items:center;gap:9px;font-size:11px;color:#957540;padding:0 3px 14px;line-height:1.5}.unknown-note svg{width:16px;height:16px}.list-foot{display:flex;align-items:center;gap:7px;justify-content:center;color:#99a091;font-size:10px;margin:24px 0}.list-foot svg{width:13px;height:13px}.empty-state{text-align:center;padding:70px 25px;background:#fff;border:1px dashed #d3ddc9;border-radius:20px}.empty-icon{display:flex;align-items:center;justify-content:center;background:#edf2e5;color:#809868;border-radius:22px;width:76px;height:76px;margin:0 auto 24px}.empty-icon svg{width:35px;height:35px}.empty-state h2{font-size:23px}.empty-state p{font-size:14px;color:var(--muted);line-height:1.7;max-width:370px;margin:0 auto 25px}.notice{background:#f5ecd9;color:#7f6533;padding:12px 48px;font-size:12px;line-height:1.5;border-bottom:1px solid #e9dfcb}.notice .text-button{margin-left:10px;min-height:20px}.scanner-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.scanner-card,.steps-card,.settings-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px}.scanner-card{text-align:center}.scanner-art{height:145px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(ellipse,#e7efdb,transparent 68%);margin:0 0 22px}.scanner-art svg{width:100px;height:100px;stroke-width:1;color:var(--green)}.scanner-beam{position:absolute;top:50%;height:2px;width:130px;background:#b9d87a;box-shadow:0 0 12px #98c451}.tag{font-size:8px;font-weight:650;letter-spacing:1.5px;color:#748969;background:#f0f4e7;border-radius:5px;padding:6px 8px;display:inline-block;margin-bottom:16px}.scanner-card h2{font-size:22px}.scanner-card>p{font-size:12px;line-height:1.7;color:var(--muted)}.device-data{border-top:1px solid var(--line);margin:25px 0 18px;text-align:left}.device-data>div{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:11px}.device-data dt{color:var(--muted)}.device-data dd{margin:0;font-weight:650;text-align:right}.scanner-card .small-note{font-size:10px}.steps-card>.eyebrow{color:#83966e;display:block;margin-bottom:25px}.step{display:flex;gap:20px;margin:24px 0 30px}.step>span{font-size:11px;background:#edf2e6;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0;color:#708659}.step p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:0}.tip{background:#f2f5e9;border-radius:14px;padding:18px}.tip strong{font-size:12px}.tip p{font-size:11px;color:#82906e;margin:8px 0 0;line-height:1.6}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-card p{font-size:13px;line-height:1.8;color:var(--muted)}.settings-card h2{font-size:22px}.setting-icon{width:42px;height:42px;background:#eff3e7;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:25px;color:#6f8757}.settings-card .small-note{display:block;margin-top:15px;font-size:11px}.install-card{background:#eaf0db;border-color:#dfe8cd}.install-card .setting-icon{background:#d8e4bf}.app-footer{display:flex;justify-content:space-between;margin:35px 0;font-size:11px;color:#91a084}.app-footer>span:first-child{font-weight:750;font-size:16px}.app-footer small{font-size:10px;font-weight:400;margin-left:10px}.app-footer>span:last-child{padding-top:4px}dialog{border:0;border-radius:24px;padding:0;width:calc(100% - 32px);max-width:460px;color:var(--ink);box-shadow:0 35px 100px #122c3440;max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#112f2866;backdrop-filter:blur(5px)}.dialog-content{padding:30px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}.dialog-heading h2{font-size:24px;margin:10px 0 0}.dialog-heading .eyebrow{font-size:8px;color:#81906d}.dialog-heading img{border-radius:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-actions button{flex:1;font-size:13px}.delete-symbol{width:50px;height:50px;border-radius:15px;background:#faede7;color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:24px}#delete-name{font-weight:650;overflow-wrap:anywhere}#delete-dialog .muted{font-size:13px}.install-steps{padding-left:22px;font-size:14px;line-height:1.7;margin:24px 0}.install-steps li{padding-left:5px;margin-bottom:15px}.platform-label{color:#879d6c;font-size:11px;font-weight:750;letter-spacing:1px;display:block;margin-top:25px}#install-dialog .wide{margin-top:12px}.toast{position:fixed;z-index:100;bottom:30px;left:calc(50% + 122px);transform:translateX(-50%);max-width:calc(100% - 35px);border-radius:14px;padding:15px 22px;background:var(--green);color:#fff;box-shadow:0 8px 30px #16372a33;font-size:13px;text-align:center;line-height:1.5}.toast.error{background:#8e4337}@media(min-width:1500px){.page-content{padding-top:60px}.page-heading{margin-bottom:35px}}@media(max-width:1100px){.sidebar{width:210px;padding:28px 15px}.workspace{margin-left:210px}.page-content{padding:35px 28px 65px}.topbar{padding:0 28px}.toast{left:calc(50% + 105px)}.scanner-layout{grid-template-columns:1fr}.login-story{padding:35px 8%}.page-heading h1{font-size:39px}.page-heading>.primary{font-size:12px;padding:12px 14px}}@media(max-width:760px){.login-layout{display:block;min-height:100dvh;background:var(--paper)}.login-story{display:none}.login-form-area{min-height:100dvh;padding:calc(36px + env(safe-area-inset-top)) 30px calc(55px + env(safe-area-inset-bottom))}.login-box{max-width:370px;padding-bottom:35px}.mobile-brand{display:flex;margin-bottom:54px}.login-box h2{font-size:38px}.login-box>.eyebrow{font-size:9px}.login-footer{bottom:calc(18px + env(safe-area-inset-bottom));font-size:10px}.sidebar{position:fixed;inset:auto 0 0;width:100%;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fafcf7f5;border-top:1px solid var(--line);backdrop-filter:blur(20px)}.sidebar>.brand,.sidebar-caption,.sidebar-bottom{display:none}.main-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.nav-button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:50px;padding:5px 3px;border-radius:12px;color:#8b9683;font-size:9px;position:relative}.nav-button.active{background:#eaf0dc;color:var(--green)}.nav-button svg{width:21px;height:21px}.nav-count{position:absolute;top:0;left:calc(50% + 9px);font-size:8px;width:auto;min-width:15px;height:15px;padding:0 3px;background:var(--green);color:white;border-radius:5px}.workspace{margin-left:0}.topbar{height:calc(71px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;position:sticky;top:0;background:#f6f7f2ed;backdrop-filter:blur(20px);z-index:5}.desktop-breadcrumb{display:none}.top-brand{display:flex;align-items:center;gap:8px;font-size:25px;letter-spacing:-1.5px}.top-brand img{border-radius:9px}.top-actions{gap:7px}.top-actions>.avatar{display:none}.connection{font-size:9px;gap:5px}.top-actions>.icon-button{width:32px;height:35px}.top-actions>.icon-button svg{width:17px;height:17px}.page-content{padding:28px 20px calc(115px + env(safe-area-inset-bottom));max-width:600px}.page-heading{display:block;margin-bottom:24px}.page-heading h1{font-size:36px;letter-spacing:-1.5px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:12px}.page-heading p{font-size:12px}.page-heading>.primary{margin-top:22px;width:100%;min-height:47px;font-size:13px}.install-banner{gap:10px;padding:14px;border-radius:16px;margin-bottom:24px}.install-banner strong{font-size:11px;line-height:1.4;display:block}.install-banner p{font-size:10px;line-height:1.5}.install-symbol{width:32px;height:38px;border-radius:10px}.install-symbol svg{width:18px}.install-banner>.secondary{font-size:10px;min-height:33px;padding:8px 10px}.install-banner>.icon-button{width:17px;margin-left:-3px}.install-banner>.icon-button svg{width:14px}.list-toolbar{gap:12px;margin-top:20px}.search-wrap input{font-size:12px;min-height:43px;height:43px}.search-wrap>span{top:12px}.list-summary strong{font-size:11px}.list-summary>span{font-size:9px}.item{padding:17px 14px;gap:11px;border-radius:16px}.item-check{width:25px;height:25px;border-radius:8px;padding:2px;margin-top:2px}.item-name{font-size:13px;line-height:1.45}.item-top{gap:8px;align-items:flex-start}.quantity{gap:0;padding:1px;border-radius:8px;margin-top:-2px}.quantity button{width:27px;height:29px}.quantity strong{min-width:20px;font-size:11px}.quantity button svg{width:12px;height:12px}.item-meta{font-size:9px;margin-top:5px;letter-spacing:.1px}.item-bottom{margin-top:11px;gap:5px}.fresh-link{font-size:10px}.item-actions .icon-button{width:31px;height:31px}.item-actions svg{width:16px;height:16px}.item-links{gap:3px 10px}.identify-button{font-size:10px;padding:6px 8px}.unknown-badge{font-size:8px}.unknown-note{font-size:10px}.list-foot{font-size:9px}.notice{padding:12px 20px;font-size:11px}.toast{left:50%;bottom:calc(87px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 36px);font-size:12px}.empty-state{padding:42px 20px}.empty-state h2{font-size:21px}.empty-state p{font-size:12px}.settings-grid{grid-template-columns:1fr;gap:15px}.settings-card{padding:25px;border-radius:18px}.settings-card h2{font-size:22px}.settings-card p{font-size:12px}.scanner-card,.steps-card{padding:25px;border-radius:18px}.app-footer{display:block;line-height:2}.app-footer>span{display:block}.dialog-content{padding:25px}.dialog-heading h2{font-size:22px}dialog{border-radius:23px;max-height:85dvh}.dialog-actions{flex-wrap:wrap}.dialog-actions button{min-height:46px}.scanner-layout{gap:15px}}@media(max-width:360px){.page-content{padding-left:14px;padding-right:14px}.install-symbol{display:none}.item{gap:8px;padding:15px 11px}.quantity button{width:24px}.item-name{font-size:12px}.item-actions{gap:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Touch controls: generous targets without overlapping adjacent actions. */
@media(pointer:coarse){
 .item-check{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-top:0}
 .quantity button,.item-actions .icon-button,.top-actions>.icon-button{width:44px;height:44px}
 .fresh-link,.identify-button{min-height:44px}
 .install-banner>.icon-button{min-width:44px;height:44px;margin-left:0}
 .item-top{flex-wrap:wrap}.item-name{flex-basis:100%;min-height:44px}
 .quantity{margin-top:0}.item-bottom{flex-wrap:wrap}
 .install-banner{flex-wrap:wrap}.install-banner>div:nth-child(2){flex:1;min-width:120px}
}

.push-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.push-actions .text-button{flex-basis:100%}

.connected-devices{margin-bottom:26px}.connected-devices>.eyebrow{display:block;margin-bottom:14px;color:#80906e}
.paired-device{position:relative;background:white;border:1px solid var(--line);border-radius:16px;padding:18px 60px 18px 20px;margin:10px 0}
.paired-device strong,.paired-device span,.paired-device small{display:block}.paired-device span{margin:7px 0}.paired-device small{color:var(--muted);font-size:11px}
.paired-device>.icon-button{position:absolute;right:10px;top:14px;color:var(--muted)}
.setup-code{font-family:ui-monospace,monospace;font-size:19px;letter-spacing:1px;padding:22px 12px;background:#eaf0dc;border-radius:14px;text-align:center;overflow-wrap:anywhere;margin:20px 0}
.setup-status{padding:20px;border-radius:14px;background:#eaf0dc;font-size:14px;line-height:1.7}
#setup-dialog{max-width:530px}#setup-dialog .muted{font-size:14px}

.account-entry,.account-options{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:16px}.account-options{border-top:1px solid var(--line);padding-top:18px}.account-options input,.account-options select{width:100%;min-height:46px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff}.account-options label{font-size:13px;font-weight:650}.account-options button{white-space:normal}.account-checkbox{display:flex;align-items:center;gap:8px;font-size:13px}.account-checkbox input{width:auto}.member-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.member-row button{font-size:12px}.dialog-content #privacy-text{max-height:50vh;overflow:auto;line-height:1.65;font-size:13px}.dialog-content #privacy-text p{margin-bottom:12px}#privacy-dialog .dialog-content{max-width:520px}#account-action-dialog .dialog-content{max-width:440px}select{font:inherit}select:focus-visible{outline:3px solid #8db269;outline-offset:3px}

/* Share the current shopping list. */
.setup-portal-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 16px;border-radius:12px;text-align:center;font-weight:650;font-size:13px;margin:14px 0}
.setup-portal-link svg{width:16px;height:16px}
.list-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.list-heading-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.list-heading-actions svg{width:16px;height:16px}
#share-text{width:100%;min-height:240px;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:15px;font-size:14px;line-height:1.6;font-family:inherit;white-space:pre-wrap;color:var(--ink);background:#fff}
@media(max-width:760px){.list-heading-actions{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.list-heading-actions button{width:100%;white-space:normal;min-height:48px;padding:10px 8px;font-size:12px}}
@media(max-width:360px){.list-heading-actions{grid-template-columns:1fr}}
/* The scanner reads this image directly from the phone screen. */
.setup-qr{display:block;width:min(100%,360px);height:auto;margin:18px auto;image-rendering:pixelated;background:#fff;border:8px solid #fff;border-radius:12px}
.setup-qr[hidden]{display:none}
.setup-fallback{margin-top:22px;border-top:1px solid #dce4d5;padding-top:16px}
.setup-fallback summary{cursor:pointer;font-weight:600}

/* Product interface: compact list and three primary destinations. */
:root{--paper:#f7f8f7;--lime:#e5efea;--line:#e0e5e2;--muted:#65736b}
.page-heading{margin-bottom:20px;gap:16px}.page-heading h1{font-size:28px;letter-spacing:-.6px}.page-heading .eyebrow:empty,.page-heading p:empty{display:none}
.page-content{max-width:1100px}.list-tabs{display:flex;gap:6px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.list-tabs .nav-button{width:auto;border-radius:0;padding:12px 16px;background:transparent;color:var(--muted);border-bottom:2px solid transparent}
.list-tabs .nav-button.active{color:var(--green);border-bottom-color:var(--green);background:transparent}
.items{gap:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:visible}.items:empty{display:none}
.item,.item:hover{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:14px 16px;gap:12px}.item:last-child{border-bottom:0}
.item-body{min-width:0}.item-top{flex-wrap:nowrap;align-items:center}.item-name{font-size:15px;flex:1;flex-basis:auto;min-height:44px}.quantity{flex-shrink:0}
.item-check{width:44px;height:44px;border-radius:6px;margin:0;display:flex;align-items:center;justify-content:center}
.item-meta{font-size:11px;color:var(--muted);margin-top:0}.item-bottom{margin-top:4px}.item-actions .icon-button{width:44px;height:44px}
.settings-card,.scanner-card,.connected-devices{border-radius:8px;box-shadow:none}.settings-card>span.setting-icon{display:none}
.settings-card h2,.scanner-card h2{font-size:19px}.scanner-layout{display:block}.scanner-card{max-width:none;text-align:left}
.scanner-card .device-data{margin-top:16px}.login-story .story-body h1{font-size:42px;line-height:1.15;letter-spacing:-1px}.login-story{background:var(--green)}
.primary,.secondary,input,select{border-radius:7px}.nav-button{border-radius:6px}.empty-state{padding:40px 16px}.empty-state h2{font-size:21px}
@media(max-width:760px){
.main-nav{grid-template-columns:repeat(3,1fr)}.page-heading h1{font-size:25px;letter-spacing:-.4px}.page-heading{margin-bottom:16px}
.page-content{padding-top:20px}.list-heading-actions{margin-top:14px}.list-toolbar{margin-bottom:12px}
.item{padding:12px;gap:10px}.item-top{flex-wrap:nowrap}.item-name{flex-basis:auto;font-size:14px;min-width:0}.quantity{margin-top:0}
.list-tabs .nav-button{font-size:13px;display:block}.item-meta{font-size:10px}.install-banner{margin-bottom:16px}
}

@media(min-width:761px){.sidebar>.main-nav{margin-top:40px}}

/* Keep mobile navigation outside the scrolling surface, including iOS bounce. */
@media(max-width:760px){
  body:has(#app-shell:not([hidden])){overflow:hidden;overscroll-behavior-y:none}
  .app-shell{position:fixed;inset:0;height:100dvh;min-height:0;overflow:hidden}
  .workspace{height:100%;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
  .sidebar{position:absolute;inset:auto 0 0;height:auto;min-height:0;background:#fafcf7;backdrop-filter:none;-webkit-backdrop-filter:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
  .page-content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}
.house-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.house-section h3{font-size:16px}.member-row{min-height:64px}.member-row strong,.member-row small{display:block}.member-row small{margin-top:5px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.house-request{padding:18px 0;border-bottom:1px solid var(--line)}.house-request:last-child{border-bottom:0}.house-request .dialog-actions{margin-top:12px}
#house-invite-url{font-size:12px}#house-requests-banner{margin-bottom:20px;border-radius:6px}
@media(max-width:760px){.list-heading-actions{grid-template-columns:1fr 1fr}.list-heading-actions #add-button{grid-column:1/-1}}

/* Compact house management: separate views and paginated members. */
#house-dialog{max-width:440px;max-height:calc(100dvh - 24px);overflow:hidden;overscroll-behavior:none}
#house-dialog .dialog-content{padding:20px;max-width:none;overflow:hidden}
#house-dialog .dialog-heading{margin-bottom:4px;align-items:center}
#house-dialog h2{font-size:22px;margin:0}
#house-current-name{font-size:13px;color:var(--muted);margin:0 0 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#house-picker{margin-bottom:12px}
#house-select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;padding:8px}
.house-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:12px}
.house-tabs button{flex:1;min-height:44px;background:transparent;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}
.house-tabs button[aria-pressed="true"]{color:var(--green);border-bottom-color:var(--green);font-weight:650}
#house-dialog .member-row{min-height:68px;padding:10px 0;border:0}
#house-dialog .member-row>div{min-width:0}
#house-dialog .member-row strong,#house-dialog .member-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#house-dialog .member-row small{font-size:12px}
.house-pager{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}
#house-members-error:empty{display:none}
#house-dialog .small-note{margin:0 0 12px;line-height:1.4}
#house-dialog .house-link-ready{font-weight:650;margin:0 0 4px}
#house-dialog .dialog-actions{margin-top:12px;display:flex;flex-wrap:nowrap;gap:8px}
#house-dialog .dialog-actions button{flex:1;min-width:0;padding:10px}
#house-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-height:600px){#house-dialog .dialog-content{padding:12px 16px}#house-current-name{margin-bottom:6px}#house-dialog .house-tabs{margin-bottom:6px}#house-picker{margin-bottom:6px}#house-dialog .small-note{margin-bottom:8px}}
#house-invite-controls:has(#house-invite-result:not([hidden]))>p{display:none}
@media(max-height:450px) and (min-width:600px){
 #house-dialog{max-width:640px}
 #house-dialog .dialog-content{display:grid;grid-template-columns:220px minmax(0,1fr);column-gap:24px}
 #house-dialog .dialog-heading{grid-column:1/-1}
 #house-current-name,#house-picker,.house-tabs{grid-column:1}
 #house-members-panel,#house-invite-controls{grid-column:2;grid-row:2/6}
}

/* Account categories share one consistent menu hierarchy. */
.account-menu-card{order:-1}
.account-identity{margin-bottom:20px}
.account-identity h2{margin:0 0 6px;font-size:24px}
.account-identity #account-email{margin:0;overflow-wrap:anywhere}
.account-menu{display:grid}
.account-menu-row{width:100%;min-height:58px;display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);background:transparent;text-align:left;font-size:14px;font-weight:550;color:var(--ink)}
.account-menu-row>span:nth-child(2){flex:1;min-width:0}
.account-menu-row>span:first-child{color:var(--muted)}
.account-menu-row .menu-chevron{margin-left:auto;color:var(--muted);display:flex}
.account-menu-row .menu-chevron svg{width:16px;height:16px}
.account-menu-row:hover{background:var(--paper)}
.account-menu-row.account-destructive,.account-menu-row.account-destructive>span:first-child{color:var(--red)}
.account-logout{margin-top:24px;font-size:14px;font-weight:550}
#logout-error:empty{display:none}

.revoke-warning-symbol{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff0ed;color:var(--red);border:2px solid #eab7ae;font-size:42px;font-weight:800;line-height:1;margin-bottom:20px}
#revoke-wait-message{font-size:15px;line-height:1.6}
#revoke-wait-message strong{display:block;color:var(--red);margin-bottom:6px}
#revoke-wait-dialog .small-note{margin-bottom:24px}

.paired-device .device-ota{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.device-ota small{overflow-wrap:anywhere;line-height:1.5}

.ota-banner{display:flex;align-items:center;gap:10px;background:#edf3e7;color:var(--green)}
.ota-banner>.text-button{margin-left:auto;white-space:nowrap}
.ota-changelog{margin:20px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ota-changelog ul{margin:0;padding-left:20px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.ota-changelog li+li{margin-top:8px}
.ota-progress-content{text-align:center}
.ota-spinner{width:64px;height:64px;border:5px solid var(--line);border-top-color:var(--green);border-radius:50%;margin:4px auto 24px;animation:ota-spin 1s linear infinite}
.ota-result{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:36px;font-weight:750;margin:4px auto 24px}
.ota-result.success{color:var(--green);background:#e9f2dc}.ota-result.error{color:var(--red);background:#fff0ed}
#ota-progress-message{font-size:15px;line-height:1.6}
@keyframes ota-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ota-spinner{animation:none}}
@media(max-width:760px){.ota-banner{flex-wrap:wrap}.ota-banner>.text-button{margin-left:0}}
