*{box-sizing:border-box}html,body,#root{width:100%;max-width:100%}:root{--page-padding-x: 16px;--page-padding-top: 24px;--page-padding-bottom: 92px;--page-content-width: 720px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202124;background:#f3f3f5}body{margin:0;min-width:320px}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}.app{width:100%;min-height:100vh;max-width:720px;margin:0 auto;background:#fff;display:flex;flex-direction:column}.header{padding:22px 20px 16px;border-bottom:1px solid #eee;display:flex;flex-direction:column;align-items:center;text-align:center}.header>div{width:100%}.header h1{margin:0;font-size:25px;font-weight:750;text-align:center}.header p{width:100%;margin:4px 0 0;color:#777;font-size:14px;text-align:left}.content{flex:1;padding:16px 16px 90px}.input-wrap{position:relative;z-index:10}.add-box{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border:1px solid #ddd;border-radius:15px;background:#fafafa}.add-box:focus-within{border-color:#aaa;background:#fff}.add-box>span{font-size:25px;color:#777}.add-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px}.product-picker-open{flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #e2e2e2;border-radius:10px;background:#fff;color:#666;font-size:23px;line-height:1;cursor:pointer}.product-picker-open:active{background:#f0f0f0}.product-picker-checkbox{flex:0 0 20px;width:20px;height:20px;margin:0 2px 0 0;accent-color:#333;cursor:pointer}.products-add-button:disabled{opacity:.45;cursor:not-allowed}.suggestions{position:absolute;top:58px;left:0;right:0;overflow:hidden;border:1px solid #e3e3e3;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0000001a}.suggestion{width:100%;min-height:52px;padding:10px 16px;border:0;border-bottom:1px solid #eee;background:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left}.suggestion:last-child{border-bottom:0}.suggestion:active{background:#f4f4f4}.suggestion small{color:#888}.message{margin-top:12px;padding:11px 14px;border-radius:12px;background:#f1f1f3;color:#444;font-size:14px}.items{margin-top:14px}.item{width:100%;min-height:58px;padding:10px 4px;border:0;border-bottom:1px solid #eee;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left}.item:active{background:#f6f6f6}.item.purchase-animate{animation:purchase-item-out .6s ease forwards}.item.restore-animate{animation:restore-item-in .6s ease}@keyframes purchase-item-out{0%{background:#fff}20%{background:#eaf4ff}to{background:#fff}}@keyframes restore-item-in{0%{background:#fff}20%{background:#eaf4ff}to{background:#fff}}.item.restore-animate .item-name{text-decoration:none}.item.restore-animate .item-name:after{content:"";position:absolute;z-index:2;left:0;top:50%;width:100%;height:2px;background:#777;transform:scaleX(1);transform-origin:left center;animation:restore-strike .6s ease forwards}@keyframes restore-strike{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes purchase-strike{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.item.purchase-animate,.item.restore-animate{animation:none}.item.purchase-animate .item-name:after{animation:none;transform:scaleX(1)}}.item-name-block{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.item-name{position:relative;display:inline-block;font-size:17px}.item-note{margin-top:2px;color:#777;font-size:13px;line-height:1.25;font-weight:400;white-space:pre-line;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;max-width:100%}.item.purchase-animate .item-name:after{content:"";position:absolute;z-index:2;left:0;top:50%;width:100%;height:2px;background:#777;transform:scaleX(0);transform-origin:left center;animation:purchase-strike .6s ease forwards}.item-meta{color:#777;font-size:14px;white-space:nowrap}.purchased{margin-top:18px;border-top:1px solid #eee}.purchased summary{min-height:50px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-size:14px;font-weight:650;color:#777}.purchased summary::-webkit-details-marker{display:none}.purchased summary:before{content:"›";display:inline-block;font-size:20px;transform:rotate(90deg)}.purchased:not([open]) summary:before{transform:rotate(0)}.count{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#eee;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.purchased-item{color:#888}.purchased-item .item-name{text-decoration:line-through}.empty{text-align:center;padding:80px 20px;color:#777}.empty-icon{font-size:48px;margin-bottom:12px}.empty h2{margin:0 0 6px;color:#333;font-size:19px}.empty p{margin:0;font-size:14px}.loading{padding:50px 20px;text-align:center;color:#888}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(720px,100%);height:70px;display:grid;grid-template-columns:repeat(3,1fr);background:#fffffff5;border-top:1px solid #e8e8e8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.bottom-nav button{border:0;background:transparent;color:#888;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.bottom-nav button span{font-size:22px}.bottom-nav button small{font-size:11px}.bottom-nav button.active{color:#111;font-weight:600}@media(min-width:521px){body{background:#eee}.app{max-width:900px;min-height:100vh;box-shadow:0 0 24px #00000014}.items{margin-top:16px}.item{min-height:54px;padding:8px 12px;gap:16px}.item-main{flex:1;min-width:0;padding:6px 4px;border:0;background:transparent;color:#222;text-align:left;cursor:pointer}.item-main:hover{color:#000}.item-name{font-size:16px}.item-meta-button{flex:0 0 auto;padding:6px 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:#777;font-size:14px;white-space:nowrap;cursor:pointer}.item-meta-button:hover{border-color:#ddd;background:#f5f5f5}.item-meta{font-size:14px}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--ui-input);box-sizing:border-box}.auth-card{width:100%;max-width:460px;box-sizing:border-box;padding:42px 40px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:18px;box-shadow:var(--ui-shadow)}.auth-logo{margin-bottom:36px;text-align:center;font-size:36px;line-height:1.1;font-weight:800;color:var(--ui-text)}.auth-card form{display:flex;flex-direction:column;gap:20px}.auth-card label{display:flex;flex-direction:column;gap:8px;font-size:16px;font-weight:600;color:var(--ui-text)}.auth-card input{width:100%;box-sizing:border-box;padding:15px 16px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-input);color:var(--ui-text);font:inherit;font-size:17px;outline:none;transition:border-color .15s,box-shadow .15s}.auth-card input::placeholder{color:var(--ui-muted)}.auth-card input:focus{border-color:var(--ui-action);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-action) 12%,transparent)}.auth-button{width:100%;margin-top:4px;padding:15px 20px;border:0;border-radius:12px;background:var(--ui-action);color:var(--danger-text);font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:background .15s,transform .05s}.auth-button:hover{filter:brightness(.92)}.auth-button:active{transform:translateY(1px)}.auth-button:disabled{opacity:.65;cursor:default}.auth-error{padding:11px 13px;border-radius:10px;background:var(--danger-soft-bg);color:var(--danger-soft-text);font-size:14px}@media(max-width:520px){.auth-page{padding:80px 16px 16px;align-items:flex-start}.auth-card{padding:32px 24px;border-radius:16px}.auth-logo{font-size:32px;margin-bottom:30px}}.swipe-row{position:relative;width:100%;overflow:hidden;border-radius:12px;margin-bottom:8px;background:#fff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.swipe-content{position:relative;z-index:2;width:100%;margin:0;user-select:none;-webkit-user-select:none;will-change:transform;touch-action:pan-y}.swipe-delete{position:absolute;z-index:3;top:0;right:0;bottom:0;width:0;overflow:hidden;display:flex;align-items:center;justify-content:flex-end;background:transparent;box-sizing:border-box}.swipe-delete button{flex:0 0 85px;width:85px;height:100%;padding:0;border:0;color:#fff;font-size:15px;font-weight:700;white-space:nowrap}.swipe-delete button:first-child{background:#1976d2}.swipe-delete button:last-child{background:#d92d20}.swipe-delete-name{display:none}.header{position:relative;align-items:center;padding:22px 23px 16px}.header-title{width:100%}.header-title h1{text-align:center}.list-selector{display:block;margin:8px 0 0;padding:7px 32px 7px 12px;border:1px solid #e2e2e2;border-radius:10px;background:#f7f7f7;color:#333;font-size:15px;font-weight:500;cursor:pointer;outline:none}.list-selector:focus{border-color:#cfcfcf}.list-menu{position:relative;width:max-content;margin-top:8px}.list-selector{min-width:150px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:8px 12px;border:1px solid #e2e2e2;border-radius:10px;background:#f7f7f7;color:#333;font-size:15px;font-weight:500;cursor:pointer}.list-arrow{width:8px;height:8px;border-right:2px solid #555;border-bottom:2px solid #555;transform:rotate(45deg);transition:transform .15s ease;flex-shrink:0;margin-top:-4px}.list-arrow.open{transform:rotate(225deg);margin-top:4px}.list-dropdown{position:absolute;z-index:20;top:calc(100% + 6px);left:0;min-width:220px;padding:6px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;box-shadow:0 8px 24px #0000001f}.list-option,.list-new{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:0;border-radius:9px;background:transparent;padding:10px 12px;color:#222;font-size:15px;text-align:left;cursor:pointer}.list-option:hover,.list-new:hover{background:#f5f7fa}.list-option.active{background:#f0f5ff}.list-check{font-size:18px;font-weight:700}.list-divider{height:1px;margin:6px 4px;background:#eee}.list-new{justify-content:flex-start;gap:8px;font-weight:600}.list-new-plus{font-size:21px;line-height:16px}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:#00000047}.modal-card{width:min(100%,360px);box-sizing:border-box;padding:22px;border-radius:16px;background:#fff;box-shadow:0 16px 45px #0000002e}.modal-card h2{margin:0 0 18px;font-size:20px}.modal-input{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #ddd;border-radius:10px;outline:none;font-size:16px}.modal-input:focus{border-color:#aaa}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.modal-cancel,.modal-create{padding:10px 15px;border-radius:10px;border:0;font-size:15px;cursor:pointer}.modal-cancel{background:#f1f1f1;color:#333}.modal-create{background:#222;color:#fff}.modal-create:disabled{opacity:.4;cursor:default}.list-option{display:flex;align-items:center;width:100%;padding:0}.list-option-main{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:0;background:transparent;color:#222;font-size:15px;text-align:left;cursor:pointer}.list-option-content{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.25}.list-option-name{font-size:15px;color:#222}.list-option-meta{margin-top:2px;font-size:12px;color:#888;font-weight:400}.list-more{flex:0 0 36px;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#777;font-size:20px;cursor:pointer}.list-more:hover{background:#e9edf2}.list-option{position:relative}.list-actions{position:absolute;z-index:30;right:6px;top:42px;width:170px;padding:5px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;box-shadow:0 8px 22px #00000024}.list-actions button{width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#333;font-size:14px;text-align:left;cursor:pointer}.list-actions button:hover{background:#f3f4f6}.list-actions .list-action-delete{color:#d92d20}.list-form-error{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 11px;border:1px solid #f3c7c3;border-radius:9px;background:#fff5f4;color:#c62828;font-size:13px;line-height:18px;box-sizing:border-box}.delete-list-text{margin:0 0 20px;color:#555;font-size:14px;line-height:21px}.modal-delete{padding:10px 18px;border:0;border-radius:9px;background:#d92d20;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.modal-delete:hover{background:#b42318}.profile-panel{position:fixed;z-index:50;left:50%;bottom:70px;transform:translate(-50%);width:min(720px,100%);box-sizing:border-box;padding:18px 20px 16px;background:#fffffffa;border-top:1px solid #e5e5e5;box-shadow:0 -8px 24px #00000014;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.profile-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.profile-avatar{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f0f0f0;color:#333;font-size:20px;font-weight:700}.profile-name{font-size:17px;font-weight:700;color:#222}.profile-login{margin-top:2px;color:#888;font-size:13px}.profile-info{margin-bottom:14px;padding:12px 14px;border-radius:10px;background:#f7f7f7}.profile-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.profile-row span{color:#777}.profile-row strong{color:#333;font-weight:600}.profile-logout{width:100%;padding:11px 14px;border:0;border-radius:10px;background:#f1f1f1;color:#333;font-size:14px;font-weight:600;cursor:pointer}.profile-logout:hover{background:#e8e8e8}.bottom-nav{z-index:60}.profile-page{min-height:calc(100vh - 70px);box-sizing:border-box;padding:32px 20px 90px}.profile-page-inner{width:min(var(--page-content-width),100%);margin:0 auto}.profile-page-header{text-align:center;margin-bottom:28px}.profile-page-header .profile-avatar{margin:0 auto 14px;width:64px;height:64px;font-size:28px}.profile-page-header h2{margin:0;font-size:24px;color:#222}.profile-page-header p{margin:5px 0 0;color:#888;font-size:14px}.profile-card{padding:14px 16px;border-radius:12px;background:var(--ui-surface)}.profile-logout{margin-top:18px;width:100%;padding:13px;border:0;border-radius:11px;background:#f1f1f1;color:#333;font-size:15px;font-weight:600}.bottom-nav-admin{grid-template-columns:repeat(4,1fr)}.users-page{min-height:calc(100vh - 70px);box-sizing:border-box;padding:28px 20px 90px}.users-page-inner{width:min(720px,100%);margin:0 auto}.users-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.users-page-header h2{margin:0;font-size:24px;color:#222}.users-page-header p{margin:5px 0 0;color:#888;font-size:14px}.users-add-button{flex-shrink:0;border:0;border-radius:10px;padding:10px 13px;background:#222;color:#fff;font-size:13px;font-weight:600}.users-list{display:flex;flex-direction:column;gap:8px}.user-card{width:100%;display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;text-align:left;box-sizing:border-box}.user-card-avatar{width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f0f0f0;color:#555;font-size:18px;font-weight:600}.user-card-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.user-card-main strong{color:#222;font-size:15px;font-weight:600}.user-card-main small{color:#888;font-size:13px}.user-card-role{flex-shrink:0;color:#777;font-size:12px}.user-card-arrow{flex-shrink:0;color:#aaa;font-size:22px;line-height:1}.users-empty{padding:40px 20px;text-align:center;color:#999;font-size:14px}@media(max-width:520px){.users-page-header{align-items:flex-start}.users-add-button{padding:9px 10px;font-size:12px}.user-card-role{display:block;margin-top:4px;font-size:12px;color:#888}}.users-add-button-bottom{margin-top:14px}.user-form{margin-top:14px;padding:18px;border:1px solid #e8e8e8;border-radius:14px;background:#fff}.user-form-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.user-form-header h3{margin:0;font-size:18px;color:#222}.user-form-close{border:0;background:transparent;color:#999;font-size:26px;line-height:1;padding:2px 4px}.user-form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.user-form-field span{font-size:13px;color:#666}.user-form-field input,.user-form-field select{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#222;font-size:15px;outline:none}.user-form-field input:focus,.user-form-field select:focus{border-color:#aaa}.user-form-error{margin:4px 0 12px;color:#c33;font-size:13px}.user-form-actions{display:flex;gap:8px;margin-top:18px}.user-form-actions button{flex:1;border:0;border-radius:9px;padding:11px 14px;font-size:14px;font-weight:600}.user-form-cancel{background:#f1f1f1;color:#555}.user-form-submit{background:#222;color:#fff}.role-select{position:relative;width:100%}.role-select-button{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#222;font-size:15px;text-align:left}.role-select-button.open{border-color:#aaa}.role-select-arrow{color:#777;font-size:18px;line-height:1}.role-select-menu{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 5px);padding:4px;border:1px solid #ddd;border-radius:9px;background:#fff;box-shadow:0 5px 18px #00000014}.role-select-menu button{width:100%;display:block;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:#222;font-size:14px;text-align:left}.role-select-menu button:hover,.role-select-menu button.selected{background:#f1f1f1}.role-select-menu button.selected{font-weight:600}.user-delete-button{width:100%;margin-top:12px;padding:11px 14px;border:0;border-radius:9px;background:#fff0f0;color:#c33;font-size:14px;font-weight:600}.user-delete-overlay{position:fixed;z-index:100;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:#00000059}.user-delete-dialog{width:min(420px,100%);padding:20px;box-sizing:border-box;border-radius:14px;background:#fff;box-shadow:0 10px 40px #00000026}.user-delete-dialog h3{margin:0 0 8px;color:#222;font-size:18px}.user-delete-dialog p{margin:0;color:#666;font-size:14px;line-height:1.45}.user-delete-actions{display:flex;gap:8px;margin-top:20px}.user-delete-actions button{flex:1;border:0;border-radius:9px;padding:11px 14px;font-size:14px;font-weight:600}.user-delete-cancel{background:#f1f1f1;color:#555}.user-delete-confirm{background:#d64545;color:#fff}.list-access{margin:18px 0;padding:14px 16px;border:1px solid #e8e8e8;border-radius:12px;background:#fafafa}.list-access-title{margin-bottom:10px;font-size:13px;font-weight:600;color:#666}.list-access-option{display:flex;align-items:center;gap:10px;min-height:36px;font-size:14px;color:#222;cursor:pointer}.list-access-option input{width:17px;height:17px;margin:0;accent-color:#222}.list-members{margin-top:14px;padding:12px;border:1px solid #e5e5e5;border-radius:12px;background:#fafafa}.list-members-title{margin-bottom:8px;font-size:14px;font-weight:600;color:#555}.list-member-option{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 4px;cursor:pointer}.list-member-option input{width:18px;height:18px;flex-shrink:0}.list-member-option span{display:flex;flex-direction:column;gap:2px;font-size:15px;color:var(--ui-text)}.list-member-option small{font-size:12px;color:#999}.list-access-label{margin-left:5px;color:#999;font-weight:400;white-space:nowrap}.list-access-popover{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:110;width:min(90vw,360px);max-height:70vh;overflow-y:auto;box-sizing:border-box;padding:20px;border-radius:16px;background:#fff;box-shadow:0 16px 45px #00000038}.list-access-popover-title{margin-bottom:16px;font-size:19px;font-weight:600;color:#222}.list-access-owner,.list-access-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eee;font-size:15px;color:#222}.list-access-owner{padding-top:0}.list-access-member:last-child{border-bottom:0}.list-access-role{flex:0 0 auto;font-size:12px;color:#888}.list-access-login{flex:0 0 auto;font-size:12px;color:#999}.list-access-view{position:relative;width:min(100%,360px);padding:24px}.list-access-view h2{margin:0 0 20px;font-size:21px;line-height:1.25}.list-access-view-owner{display:flex;align-items:baseline;gap:7px;padding-bottom:13px;border-bottom:1px solid #e8e8e8;font-size:15px}.list-access-view-owner strong{font-weight:600;color:#222}.list-access-view-owner span{color:#888}.list-access-view-member{padding:11px 0;border-bottom:1px solid #eee;font-size:15px;color:#333}.list-access-view-member:last-of-type{border-bottom:0}.list-access-view .modal-button{width:100%;margin-top:18px;padding:10px 16px;border:0;border-radius:10px;background:#222;color:#fff;font-size:15px;font-weight:500;cursor:pointer}.list-access-view .modal-button:hover{background:#333}.list-access-view .modal-button{width:auto;min-width:100px;margin-top:18px;padding:9px 18px}.list-access-view{text-align:left}.list-access-view .modal-button{display:block;margin:18px auto 0}.profile-page{min-height:calc(100vh - 70px);box-sizing:border-box;padding:24px 16px 92px}.profile-user-card{display:flex;align-items:center;gap:14px;padding:18px;margin-bottom:24px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;box-sizing:border-box}.profile-user-card .profile-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:50%;background:var(--ui-hover);color:var(--ui-text);font-size:25px;font-weight:700}.profile-user-info{min-width:0}.profile-user-info h2{margin:0;font-size:21px;line-height:1.25;color:var(--ui-text)}.profile-user-info p{margin:3px 0 7px;color:var(--ui-muted);font-size:14px}.profile-role{display:inline-block;padding:4px 9px;border-radius:7px;background:var(--ui-hover);color:var(--ui-muted);font-size:12px;font-weight:500}.profile-lists-section{margin-bottom:22px}.profile-lists-section h3{margin:0 0 11px 3px;font-size:16px;font-weight:600;color:var(--ui-text)}.profile-actions{display:flex;flex-direction:column;gap:8px}.profile-action{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:0 15px;box-sizing:border-box;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);font-size:15px;text-align:left;cursor:pointer}.profile-action-icon{width:24px;flex:0 0 24px;text-align:center;color:var(--ui-muted);font-size:18px}.profile-action>span:nth-child(2){flex:1}.profile-action-arrow{flex:0 0 auto;color:var(--ui-muted);font-size:22px;line-height:1}.profile-action:hover{background:var(--ui-hover)}.profile-logout{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:7px;padding:0 15px;box-sizing:border-box;border:0;border-radius:12px;background:var(--danger-soft-bg);color:var(--danger-soft-text);font-size:15px;font-weight:600;cursor:pointer}.bottom-nav{z-index:60;height:70px;grid-template-columns:repeat(3,1fr)}.bottom-nav-admin{grid-template-columns:repeat(3,1fr)}@media(max-width:380px){.profile-page{padding-left:12px;padding-right:12px}.profile-user-card{padding:15px}}.item-details-editor{display:flex;align-items:center;gap:6px;margin-left:auto}.item-name-edit-fields{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}.item-name-input,.item-note-input{width:100%;min-width:0;height:34px;padding:0 8px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;font-size:15px;box-sizing:border-box}.item-note-input{color:#666}.item-quantity-input{width:64px;height:34px;padding:0 8px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;font-size:15px;text-align:right;box-sizing:border-box}.item-unit-select{height:34px;min-width:64px;padding:0 6px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;font-size:15px;box-sizing:border-box}.item-details-save,.item-details-cancel{width:34px;height:34px;padding:0;border:0;border-radius:8px;font-size:18px;line-height:34px;text-align:center;cursor:pointer}.item-details-save{background:#e8f5e9;color:#2e7d32}.item-details-cancel{background:#f1f1f3;color:#777}.page-container{min-height:calc(100vh - 70px);box-sizing:border-box;padding:var(--page-padding-top) var(--page-padding-x) var(--page-padding-bottom)}.page-content{width:min(var(--page-content-width),100%);margin:0 auto}@media(max-width:520px){:root{--page-padding-top: 20px}}.products-page{min-height:calc(100vh - 70px);box-sizing:border-box;padding:24px 16px 92px}.products-page-inner{width:100%;margin:0 auto}.products-sticky-header{position:sticky;top:0;z-index:20;margin-top:-24px;padding-top:24px;padding-bottom:14px;background:#fff}.products-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.products-page-header h2{margin:0;font-size:21px;line-height:1.25;color:#222}.products-page-header p{margin:4px 0 0;color:#888;font-size:14px}.products-page-close{width:36px;height:36px;flex:0 0 36px;border:1px solid #e8e8e8;border-radius:10px;background:#fff;color:#777;font-size:23px;line-height:1;cursor:pointer}.products-toolbar{display:flex;gap:8px;margin-bottom:0}.products-toolbar input{flex:1;min-width:0;height:56px!important;min-height:56px!important;max-height:56px!important;box-sizing:border-box;padding:0 15px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface);color:var(--ui-text);font-size:17px;line-height:1.2;outline:none}.products-toolbar input:focus{border-color:var(--ui-muted)}.products-add-button{flex:0 0 auto;min-height:46px;padding:0 14px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface);color:var(--ui-text);font-size:14px;cursor:pointer}.products-add-button:hover{background:var(--ui-input)}.products-list{display:flex;flex-direction:column;gap:8px}.products-empty{padding:28px 16px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-surface);color:var(--ui-muted);font-size:14px;text-align:center}.product-card{display:flex;align-items:center;gap:12px;min-height:58px;padding:9px 12px;box-sizing:border-box;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.product-card-main{flex:1;min-width:0}.product-card-main strong{display:block;overflow:hidden;color:var(--ui-text);font-size:17px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.product-card-main small{display:block;margin-top:3px;color:var(--ui-muted);font-size:11px}.product-card-actions{display:flex;flex:0 0 auto;gap:4px}.product-card-actions button{min-height:34px;padding:0 8px;border:0;background:var(--ui-hover);color:var(--ui-muted);font-size:12px;cursor:pointer}.product-card-actions button:hover{background:var(--ui-hover)}.product-form,.product-edit{margin-bottom:12px;padding:15px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-surface)}.product-form-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.product-form-header h3{margin:0;color:var(--ui-text);font-size:16px}.product-form-close{width:32px;height:32px;border:0;border-radius:8px;background:var(--ui-hover);color:var(--ui-muted);font-size:20px;line-height:1;cursor:pointer}.product-form-field{display:block}.product-form-field>span{display:block;margin-bottom:6px;color:var(--ui-muted);font-size:13px}.product-form-field input,.product-edit input{width:100%;height:44px;box-sizing:border-box;padding:0 12px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);font-size:15px;outline:none}.product-form-field input:focus,.product-edit input:focus{border-color:var(--ui-muted)}.product-form-error{margin-top:8px;color:#b33;font-size:13px}.product-form-actions,.product-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.product-form-cancel,.product-form-submit,.product-delete-submit{min-height:38px;padding:0 13px;border-radius:9px;font-size:13px;cursor:pointer}.product-form-cancel{border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-muted)}.product-form-submit{border:1px solid var(--ui-border);background:var(--ui-hover);color:var(--ui-text)}.product-delete-submit{border:0;background:var(--ui-hover);color:var(--ui-muted)}.product-delete-confirm{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:#00000040}.product-delete-card{width:min(360px,100%);padding:18px;box-sizing:border-box;border-radius:15px;background:var(--ui-surface);box-shadow:var(--ui-shadow)}.product-delete-card h3{margin:0 0 7px;color:var(--ui-text);font-size:17px}.product-delete-card p{margin:0;color:var(--ui-muted);font-size:13px}@media(max-width:520px){.products-toolbar{flex-direction:column}.products-add-button{width:100%}.products-toolbar input{height:56px;font-size:17px}.product-card{align-items:center}.product-card-main strong{font-size:20px}.product-card-actions{flex-direction:column}.product-card-actions button{min-width:76px}}@media(max-width:520px){.item{min-height:62px;padding:9px 4px;gap:12px}.item-main{flex:1;min-width:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:#222;text-align:left}.item-name{font-size:20px;line-height:1.25}.item-meta-button{flex:0 0 auto;min-width:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:#777;font-size:16px;line-height:1.25}.item-meta-button:hover,.item-meta-button:active{border:0;background:transparent}}@media(max-width:520px){.item-name-input,.item-note-input,.item-quantity-input,.item-unit-select{font-size:16px}}@media(max-width:520px){.product-edit{width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-sizing:border-box}.product-edit input{display:block;width:100%;min-width:0;height:52px;box-sizing:border-box;padding:0 14px;font-size:16px;line-height:1.2}.product-edit-actions{width:100%;justify-content:flex-end}}@media(min-width:521px){.product-card:has(.product-edit){align-items:stretch}.product-card .product-edit{flex:1 1 auto;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-sizing:border-box}.product-card .product-edit input{display:block;width:100%;height:46px;box-sizing:border-box;padding:0 12px;font-size:16px}.product-card .product-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}}.password-page{min-height:calc(100vh - 70px);box-sizing:border-box;padding:24px 16px 92px}.password-page-inner{width:min(520px,100%);margin:0 auto}.password-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.password-page-header h2{margin:0;font-size:21px;line-height:1.25;color:var(--ui-text)}.password-page-close{flex:0 0 auto;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);font-size:28px;line-height:36px;cursor:pointer}.password-page-close:hover{background:var(--ui-hover);color:var(--ui-text)}.password-form{display:flex;flex-direction:column;gap:16px}.password-field{display:block}.password-field>span{display:block;margin-bottom:7px;color:var(--ui-muted);font-size:14px;line-height:1.3}.password-input-wrap{position:relative;width:100%}.password-input-wrap input{width:100%;height:52px;box-sizing:border-box;padding:0 48px 0 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-input);color:var(--ui-text);font-size:16px;line-height:1.2;outline:none}.password-input-wrap input:focus{border-color:var(--ui-muted)}.password-visibility{position:absolute;top:50%;right:4px;width:42px;height:42px;padding:0;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer}.password-visibility svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-visibility:hover{background:var(--ui-hover)}.password-error{margin-top:-4px;color:var(--danger-soft-text);font-size:14px;line-height:1.35}.password-submit{width:100%;height:48px;margin-top:2px;padding:0 16px;border:0;border-radius:10px;background:var(--ui-text);color:var(--ui-surface);font-size:16px;cursor:pointer}.password-submit:disabled{opacity:.6;cursor:default}@media(max-width:520px){.password-page{padding:20px 16px 92px}.password-input-wrap input{height:54px;font-size:16px}.password-submit{height:52px}}.password-message{margin-top:-4px;padding:11px 12px;border-radius:9px;background:var(--ui-surface);color:var(--ui-text);font-size:14px;line-height:1.35}.password-success-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:#00000059}.password-success-dialog{width:min(360px,100%);box-sizing:border-box;padding:24px 20px 18px;border-radius:14px;background:var(--ui-surface);box-shadow:var(--ui-shadow);text-align:center}.password-success-title{margin-bottom:20px;color:var(--ui-text);font-size:18px;line-height:1.35;font-weight:600}.password-success-button{min-width:90px;height:42px;padding:0 18px;border:0;border-radius:9px;background:var(--ui-text);color:var(--ui-surface);font-size:16px;cursor:pointer}.password-success-button:hover{background:var(--ui-muted)}.password-success-button:active{transform:translateY(1px)}@media(max-width:520px){.password-success-dialog{width:min(340px,calc(100vw - 32px));padding:22px 18px 16px}.password-success-title{font-size:17px}}.profile-action-value{flex:0 0 auto;color:var(--ui-muted);font-size:14px;white-space:nowrap}.theme-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:#00000059}.theme-dialog{width:min(380px,100%);box-sizing:border-box;padding:20px;border-radius:14px;background:#fff;box-shadow:0 12px 40px #0000002e}.theme-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.theme-dialog-header h3{margin:0;color:#222;font-size:19px;line-height:1.3}.theme-dialog-close{width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#777;font-size:26px;line-height:1;cursor:pointer}.theme-dialog-close:hover{background:#f4f4f4}.theme-options{display:flex;flex-direction:column;gap:4px}.theme-option{width:100%;min-height:50px;display:flex;align-items:center;gap:12px;padding:0 12px;box-sizing:border-box;border:1px solid transparent;border-radius:10px;background:transparent;color:#333;font-size:16px;text-align:left;cursor:pointer}.theme-option:hover{background:#f6f6f6}.theme-option.active{border-color:#e1e1e1;background:#f8f8f8}.theme-radio{width:20px;height:20px;flex:0 0 20px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1.5px solid #999;border-radius:50%;color:#333;font-size:12px;line-height:1}.theme-option.active .theme-radio{border-color:#333}.theme-dialog-close-button{display:block;min-width:90px;height:42px;margin:16px auto 0;padding:0 18px;border:0;border-radius:9px;background:#222;color:#fff;font-size:15px;cursor:pointer}.theme-dialog-close-button:hover{background:#333}@media(max-width:520px){.profile-action-value{font-size:13px}.theme-dialog{width:min(360px,calc(100vw - 32px));padding:18px}}:root[data-theme=dark]{color:#f1f1f1;background:#121212}:root[data-theme=dark] body{background:#121212;color:#f1f1f1}:root[data-theme=dark] .app{background:#121212}:root[data-theme=dark] .header{border-bottom-color:#303030;background:#121212}:root[data-theme=dark] .header h1,:root[data-theme=dark] .header p{color:#f1f1f1}:root[data-theme=dark] .header p{color:#a8a8a8}:root[data-theme=dark] .add-box{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .add-box:focus-within{border-color:#666;background:#252525}:root[data-theme=dark] .add-box input{color:#f1f1f1}:root[data-theme=dark] .add-box input::placeholder{color:#888}:root[data-theme=dark] .suggestions{border-color:#383838;background:#1e1e1e;box-shadow:0 8px 24px #00000059}:root[data-theme=dark] .suggestion{border-bottom-color:#333;background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .suggestion:active{background:#2a2a2a}:root[data-theme=dark] .suggestion small{color:#999}:root[data-theme=dark] .message{background:#292929;color:#ddd}:root[data-theme=dark] .item{border-bottom-color:#303030;background:#121212;color:#f1f1f1}:root[data-theme=dark] .item:active{background:#1e1e1e}:root[data-theme=dark] .item-meta{color:#aaa}:root[data-theme=dark] .bottom-nav{border-top-color:#303030;background:#181818}:root[data-theme=dark] .profile-page,:root[data-theme=dark] .products-page,:root[data-theme=dark] .password-page,:root[data-theme=dark] .users-page{background:#121212;color:#f1f1f1}:root[data-theme=dark] .products-sticky-header{background:#121212}:root[data-theme=dark] .product-picker-open{border-color:#454545;background:#2a2a2a;color:#aaa}:root[data-theme=dark] .product-picker-open:active{background:#383838}:root[data-theme=dark] .product-picker-checkbox{appearance:none;display:grid;place-content:center;border:1px solid #626262;border-radius:4px;background:#292929}:root[data-theme=dark] .product-picker-checkbox:before{content:"✓";color:#202020;font-size:15px;font-weight:700;transform:scale(0)}:root[data-theme=dark] .product-picker-checkbox:checked{border-color:#888;background:#aaa}:root[data-theme=dark] .product-picker-checkbox:checked:before{transform:scale(1)}:root[data-theme=dark] .product-card,:root[data-theme=dark] .product-form,:root[data-theme=dark] .product-edit{border-color:#363636;background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .products-page-header h2,:root[data-theme=dark] .password-page-header h2{color:#f1f1f1}:root[data-theme=dark] .product-card-main strong,:root[data-theme=dark] .product-card-main span{color:#f1f1f1}:root[data-theme=dark] .products-toolbar input,:root[data-theme=dark] .product-form-field input,:root[data-theme=dark] .product-edit input,:root[data-theme=dark] .password-input-wrap input{border-color:#3a3a3a;background:#252525;color:#f1f1f1}:root[data-theme=dark] .products-toolbar input::placeholder,:root[data-theme=dark] .password-input-wrap input::placeholder{color:#888}:root[data-theme=dark] .theme-dialog{background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .theme-dialog-header h3{color:#f1f1f1}:root[data-theme=dark] .theme-option{color:#f1f1f1}:root[data-theme=dark] .theme-option:hover{background:#292929}:root[data-theme=dark] .theme-option.active{border-color:#444;background:#292929}:root[data-theme=dark] .theme-radio{border-color:#777;color:#f1f1f1}:root[data-theme=dark] .theme-option.active .theme-radio{border-color:#ddd}:root[data-theme=dark] .theme-dialog-close{color:#aaa}:root[data-theme=dark] .theme-dialog-close:hover{background:#303030}@media(prefers-color-scheme:dark){:root:not([data-theme]){color:#f1f1f1;background:#121212}:root:not([data-theme]) body{background:#121212;color:#f1f1f1}:root:not([data-theme]) .app{background:#121212}:root:not([data-theme]) .header{border-bottom-color:#303030;background:#121212}:root:not([data-theme]) .header h1{color:#f1f1f1}:root:not([data-theme]) .header p{color:#a8a8a8}:root:not([data-theme]) .add-box{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .add-box:focus-within{border-color:#666;background:#252525}:root:not([data-theme]) .add-box input{color:#f1f1f1}:root:not([data-theme]) .add-box input::placeholder{color:#888}:root:not([data-theme]) .suggestions{border-color:#383838;background:#1e1e1e}:root:not([data-theme]) .suggestion{border-bottom-color:#333;background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .suggestion small,:root:not([data-theme]) .item-meta{color:#999}:root:not([data-theme]) .item{border-bottom-color:#303030;background:#121212;color:#f1f1f1}:root:not([data-theme]) .bottom-nav{border-top-color:#303030;background:#181818}:root:not([data-theme]) .profile-page,:root:not([data-theme]) .products-page,:root:not([data-theme]) .password-page,:root:not([data-theme]) .users-page{background:#121212;color:#f1f1f1}:root:not([data-theme]) .products-sticky-header{background:#121212}:root:not([data-theme]) .product-picker-open{border-color:#454545;background:#2a2a2a;color:#aaa}:root:not([data-theme]) .product-picker-open:active{background:#383838}:root:not([data-theme]) .product-picker-checkbox{appearance:none;display:grid;place-content:center;border:1px solid #626262;border-radius:4px;background:#292929}:root:not([data-theme]) .product-picker-checkbox:before{content:"✓";color:#202020;font-size:15px;font-weight:700;transform:scale(0)}:root:not([data-theme]) .product-picker-checkbox:checked{border-color:#888;background:#aaa}:root:not([data-theme]) .product-picker-checkbox:checked:before{transform:scale(1)}:root:not([data-theme]) .product-card,:root:not([data-theme]) .product-form,:root:not([data-theme]) .product-edit{border-color:#363636;background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .products-page-header h2,:root:not([data-theme]) .password-page-header h2{color:#f1f1f1}:root:not([data-theme]) .products-toolbar input,:root:not([data-theme]) .product-form-field input,:root:not([data-theme]) .product-edit input,:root:not([data-theme]) .password-input-wrap input{border-color:#3a3a3a;background:#252525;color:#f1f1f1}:root:not([data-theme]) .theme-dialog{background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .theme-dialog-header h3,:root:not([data-theme]) .theme-option{color:#f1f1f1}:root:not([data-theme]) .theme-option:hover{background:#292929}:root:not([data-theme]) .theme-option.active{border-color:#444;background:#292929}:root:not([data-theme]) .theme-radio{border-color:#777;color:#f1f1f1}:root:not([data-theme]) .theme-dialog-close{color:#aaa}}:root[data-theme=dark] .list-selector{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .list-arrow{border-color:#aaa}:root[data-theme=dark] .list-dropdown{border-color:#383838;background:#1e1e1e;box-shadow:0 8px 24px #00000059}:root[data-theme=dark] .list-option,:root[data-theme=dark] .list-new,:root[data-theme=dark] .list-option-main{color:#f1f1f1}:root[data-theme=dark] .list-option-name{color:#f1f1f1}:root[data-theme=dark] .list-option-meta,:root[data-theme=dark] .list-access-label,:root[data-theme=dark] .list-more{color:#999}:root[data-theme=dark] .list-option:hover,:root[data-theme=dark] .list-new:hover{background:#292929}:root[data-theme=dark] .list-option.active{background:#292929}:root[data-theme=dark] .list-divider{background:#383838}:root[data-theme=dark] .list-more:hover{background:#303030}:root[data-theme=dark] .item-main{color:#f1f1f1}:root[data-theme=dark] .item-name{color:#f1f1f1}:root[data-theme=dark] .purchased{border-top-color:#303030}@keyframes purchase-item-out-dark{0%{background:transparent}20%{background:#ffffff14}to{background:transparent}}@keyframes restore-item-in-dark{0%{background:transparent}20%{background:#ffffff14}to{background:transparent}}:root[data-theme=dark] .item.purchase-animate{animation-name:purchase-item-out-dark}:root[data-theme=dark] .item.restore-animate{animation-name:restore-item-in-dark}:root[data-theme=dark] .purchased summary{color:#aaa}:root[data-theme=dark] .purchased-item{color:#999}:root[data-theme=dark] .purchased-item .item-name{color:#777}:root[data-theme=dark] .count{background:#e5e5e5;color:#222}:root[data-theme=dark] .bottom-nav{background:#181818f5;border-top-color:#303030}:root[data-theme=dark] .bottom-nav button.active{color:#f1f1f1}@media(prefers-color-scheme:dark){:root:not([data-theme]) .list-selector{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .list-arrow{border-color:#aaa}:root:not([data-theme]) .list-dropdown{border-color:#383838;background:#1e1e1e;box-shadow:0 8px 24px #00000059}:root:not([data-theme]) .list-option,:root:not([data-theme]) .list-new,:root:not([data-theme]) .list-option-main{color:#f1f1f1}:root:not([data-theme]) .list-option-name{color:#f1f1f1}:root:not([data-theme]) .list-option-meta,:root:not([data-theme]) .list-access-label,:root:not([data-theme]) .list-more{color:#999}:root:not([data-theme]) .list-option:hover,:root:not([data-theme]) .list-new:hover{background:#292929}:root:not([data-theme]) .list-option.active{background:#292929}:root:not([data-theme]) .list-divider{background:#383838}:root:not([data-theme]) .list-more:hover{background:#303030}:root:not([data-theme]) .item-main{color:#f1f1f1}:root:not([data-theme]) .item-name{color:#f1f1f1}:root:not([data-theme]) .purchased{border-top-color:#303030}:root:not([data-theme]) .purchased summary{color:#aaa}:root:not([data-theme]) .purchased-item{color:#999}:root:not([data-theme]) .purchased-item .item-name{color:#777}:root:not([data-theme]) .count{background:#e5e5e5;color:#222}:root:not([data-theme]) .bottom-nav{background:#181818f5;border-top-color:#303030}:root:not([data-theme]) .bottom-nav button{color:#999}:root:not([data-theme]) .bottom-nav button.active{color:#f1f1f1}}:root[data-theme=dark] .profile-card{background:#1e1e1e}:root[data-theme=dark] .profile-user-card{background:#1e1e1e;border-color:#363636}:root[data-theme=dark] .profile-user-card .profile-avatar{background:#292929;color:#f1f1f1}@media(prefers-color-scheme:dark){:root:not([data-theme]) .profile-user-card .profile-avatar{background:#292929;color:#f1f1f1}}:root[data-theme=dark] .products-page-header h2{color:#f1f1f1}:root[data-theme=dark] .products-page-header p{color:#999}:root[data-theme=dark] .products-page-close{border-color:#3a3a3a;background:#1e1e1e;color:#aaa}:root[data-theme=dark] .products-toolbar input{border-color:#3a3a3a;background:#252525;color:#f1f1f1}:root[data-theme=dark] .products-toolbar input:focus{border-color:#666}:root[data-theme=dark] .products-toolbar input::placeholder{color:#888}:root[data-theme=dark] .products-add-button{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .products-add-button:hover{background:#292929}:root[data-theme=dark] .products-empty{border-color:#363636;background:#1e1e1e;color:#999}:root[data-theme=dark] .product-card{border-color:#363636;background:#1e1e1e}:root[data-theme=dark] .product-card-main strong{color:#f1f1f1}:root[data-theme=dark] .product-card-main small{color:#999}:root[data-theme=dark] .product-card-actions button{background:#292929;color:#bbb}:root[data-theme=dark] .product-card-actions button:hover{background:#333}@media(prefers-color-scheme:dark){:root:not([data-theme]) .products-page-header h2{color:#f1f1f1}:root:not([data-theme]) .products-page-header p{color:#999}:root:not([data-theme]) .products-page-close{border-color:#3a3a3a;background:#1e1e1e;color:#aaa}:root:not([data-theme]) .products-toolbar input{border-color:#3a3a3a;background:#252525;color:#f1f1f1}:root:not([data-theme]) .products-toolbar input:focus{border-color:#666}:root:not([data-theme]) .products-toolbar input::placeholder{color:#888}:root:not([data-theme]) .products-add-button{border-color:#3a3a3a;background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .products-add-button:hover{background:#292929}:root:not([data-theme]) .products-empty{border-color:#363636;background:#1e1e1e;color:#999}:root:not([data-theme]) .product-card{border-color:#363636;background:#1e1e1e}:root:not([data-theme]) .product-card-main strong{color:#f1f1f1}:root:not([data-theme]) .product-card-main small{color:#999}:root:not([data-theme]) .product-card-actions button{background:#292929;color:#bbb}:root:not([data-theme]) .product-card-actions button:hover{background:#333}}:root[data-theme=dark] .item-name-input,:root[data-theme=dark] .item-note-input,:root[data-theme=dark] .item-quantity-input,:root[data-theme=dark] .item-unit-select{border-color:#555;background:#252525;color:#f1f1f1}:root[data-theme=dark] .item-details-save{background:#203523;color:#7bdc86}:root[data-theme=dark] .item-details-cancel{background:#292929;color:#aaa}@media(prefers-color-scheme:dark){:root:not([data-theme]) .item-note-input,:root:not([data-theme]) .item-quantity-input,:root:not([data-theme]) .item-unit-select{border-color:#555;background:#252525;color:#f1f1f1}:root:not([data-theme]) .item-details-save{background:#203523;color:#7bdc86}:root:not([data-theme]) .item-details-cancel{background:#292929;color:#aaa}}:root[data-theme=dark] .item-meta-button:hover{border-color:#444;background:#292929;color:#aaa}@media(prefers-color-scheme:dark){:root:not([data-theme]) .item.purchase-animate{animation-name:purchase-item-out-dark}:root:not([data-theme]) .item.restore-animate{animation-name:restore-item-in-dark}}@media(prefers-color-scheme:dark){:root:not([data-theme]) .item-meta-button:hover{border-color:#444;background:#292929;color:#aaa}}:root[data-theme=dark] .swipe-row{background:#121212}@media(prefers-color-scheme:dark){:root:not([data-theme]) .swipe-row{background:#121212}}:root[data-theme=dark] .purchased .swipe-row{background:#121212}:root[data-theme=dark] .purchased .swipe-content{background:#121212}@media(prefers-color-scheme:dark){:root:not([data-theme]) .purchased .swipe-row{background:#121212}:root:not([data-theme]) .purchased .swipe-content{background:#121212}}:root[data-theme=dark] .purchased .count{background:#292929;color:#f1f1f1}@media(prefers-color-scheme:dark){:root:not([data-theme]) .purchased .count{background:#292929;color:#f1f1f1}}:root[data-theme=dark] .item{border-bottom:0}@media(prefers-color-scheme:dark){:root:not([data-theme]) .item{border-bottom:0}}.item{border-bottom:0}.bottom-nav button .bottom-nav-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center}.bottom-nav button .bottom-nav-icon svg{width:26px;height:26px;display:block;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button.active{color:#1976d2}.bottom-nav button.active .bottom-nav-icon svg{stroke-width:2.1}.bottom-nav button.active:nth-child(1) .bottom-nav-icon svg rect{fill:currentColor}.bottom-nav button.active:nth-child(2) .bottom-nav-icon svg path{fill:currentColor}.bottom-nav button.active:nth-child(3) .bottom-nav-icon svg circle,.bottom-nav button.active:nth-child(3) .bottom-nav-icon svg path{fill:currentColor}:root[data-theme=dark] .bottom-nav button{color:#999}:root[data-theme=dark] .bottom-nav button.active{color:#1976d2}@media(prefers-color-scheme:dark){:root:not([data-theme]) .bottom-nav button{color:#999}:root:not([data-theme]) .bottom-nav button.active{color:#1976d2}}@media(prefers-color-scheme:dark){:root:not([data-theme]) .item-name-input,:root:not([data-theme]) .item-note-input{border-color:#555;background:#252525;color:#f1f1f1}}:root[data-theme=dark] .list-actions{border-color:#383838;background:#1e1e1e;box-shadow:0 8px 22px #00000059}:root[data-theme=dark] .list-actions button{color:#f1f1f1}:root[data-theme=dark] .list-actions button:hover{background:#292929}:root[data-theme=dark] .list-actions .list-action-delete{color:#ff6b6b}@media(prefers-color-scheme:dark){:root:not([data-theme]) .list-actions{border-color:#383838;background:#1e1e1e;box-shadow:0 8px 22px #00000059}:root:not([data-theme]) .list-actions button{color:#f1f1f1}:root:not([data-theme]) .list-actions button:hover{background:#292929}:root:not([data-theme]) .list-actions .list-action-delete{color:#ff6b6b}}:root[data-theme=dark] .list-access-modal{background:#1e1e1e;color:#f1f1f1}:root[data-theme=dark] .list-access-modal h2{color:#f1f1f1}:root[data-theme=dark] .list-access-modal .list-access-view-owner{border-bottom-color:#383838}:root[data-theme=dark] .list-access-modal .list-access-view-owner strong,:root[data-theme=dark] .list-access-modal .list-access-view-member{color:#f1f1f1}:root[data-theme=dark] .list-access-modal .list-access-view-owner span{color:#999}:root[data-theme=dark] .list-access-modal .list-access-view-member{border-bottom-color:#383838}@media(prefers-color-scheme:dark){:root:not([data-theme]) .list-access-modal{background:#1e1e1e;color:#f1f1f1}:root:not([data-theme]) .list-access-modal h2{color:#f1f1f1}:root:not([data-theme]) .list-access-modal .list-access-view-owner{border-bottom-color:#383838}:root:not([data-theme]) .list-access-modal .list-access-view-owner strong,:root:not([data-theme]) .list-access-modal .list-access-view-member{color:#f1f1f1}:root:not([data-theme]) .list-access-modal .list-access-view-owner span{color:#999}:root:not([data-theme]) .list-access-modal .list-access-view-member{border-bottom-color:#383838}}:root[data-theme=dark] .modal-card{background:#1e1e1e;color:#f1f1f1;box-shadow:0 16px 45px #00000073}:root[data-theme=dark] .modal-card h2{color:#f1f1f1}:root[data-theme=dark] .modal-card input,:root[data-theme=dark] .modal-card select,:root[data-theme=dark] .modal-card textarea{border-color:#555;background:#252525;color:#f1f1f1}:root[data-theme=dark] .modal-card .modal-cancel{background:#303030;color:#f1f1f1}:root[data-theme=dark] .modal-card .list-access,:root[data-theme=dark] .modal-card .list-members{border-color:#383838;background:#252525}:root[data-theme=dark] .modal-card .list-access-title,:root[data-theme=dark] .modal-card .list-members-title{color:#aaa}:root[data-theme=dark] .modal-card .list-access-option,:root[data-theme=dark] .modal-card .list-member-option{color:#f1f1f1}:root[data-theme=dark] .modal-card .delete-list-text{color:#bbb}@media(prefers-color-scheme:dark){:root:not([data-theme]) .modal-card{background:#1e1e1e;color:#f1f1f1;box-shadow:0 16px 45px #00000073}:root:not([data-theme]) .modal-card h2{color:#f1f1f1}:root:not([data-theme]) .modal-card input,:root:not([data-theme]) .modal-card select,:root:not([data-theme]) .modal-card textarea{border-color:#555;background:#252525;color:#f1f1f1}:root:not([data-theme]) .modal-card .modal-cancel{background:#303030;color:#f1f1f1}:root:not([data-theme]) .modal-card .list-access,:root:not([data-theme]) .modal-card .list-members{border-color:#383838;background:#252525}:root:not([data-theme]) .modal-card .list-access-title,:root:not([data-theme]) .modal-card .list-members-title{color:#aaa}:root:not([data-theme]) .modal-card .list-access-option,:root:not([data-theme]) .modal-card .list-member-option{color:#f1f1f1}:root:not([data-theme]) .modal-card .delete-list-text{color:#bbb}}:root[data-theme=dark] .modal-card .list-member-option span{color:#f1f1f1}@media(prefers-color-scheme:dark){:root:not([data-theme]) .modal-card .list-member-option span{color:#f1f1f1}}:root[data-theme=dark] .users-page-header h2,:root[data-theme=dark] .user-card-main strong{color:#f1f1f1}:root[data-theme=dark] .user-card{border-color:#383838;background:#1e1e1e}:root[data-theme=dark] .user-card-avatar{background:#303030;color:#f1f1f1}:root[data-theme=dark] .user-card-role{color:#aaa}:root[data-theme=dark] .user-card-arrow{color:#777}@media(prefers-color-scheme:dark){:root:not([data-theme]) .users-page-header h2,:root:not([data-theme]) .user-card-main strong{color:#f1f1f1}:root:not([data-theme]) .user-card{border-color:#383838;background:#1e1e1e}:root:not([data-theme]) .user-card-avatar{background:#303030;color:#f1f1f1}:root:not([data-theme]) .user-card-role{color:#aaa}:root:not([data-theme]) .user-card-arrow{color:#777}}:root[data-theme=dark] .user-form{border-color:#383838;background:#1e1e1e}:root[data-theme=dark] .user-form-header h3{color:#f1f1f1}:root[data-theme=dark] .user-form-field span{color:#aaa}:root[data-theme=dark] .user-form-field input,:root[data-theme=dark] .user-form-field select{border-color:#555;background:#252525;color:#f1f1f1}:root[data-theme=dark] .role-select-button{border-color:#555;background:#252525;color:#f1f1f1}:root[data-theme=dark] .role-select-menu{border-color:#555;background:#252525;box-shadow:0 8px 22px #00000059}:root[data-theme=dark] .role-select-menu button{color:#f1f1f1}:root[data-theme=dark] .role-select-menu button:hover,:root[data-theme=dark] .role-select-menu button.selected{background:#303030}:root[data-theme=dark] .user-form-cancel{background:#303030;color:#f1f1f1}:root[data-theme=dark] .user-delete-button{background:#3a2020;color:#ff6b6b}@media(prefers-color-scheme:dark){:root:not([data-theme]) .user-form{border-color:#383838;background:#1e1e1e}:root:not([data-theme]) .user-form-header h3{color:#f1f1f1}:root:not([data-theme]) .user-form-field span{color:#aaa}:root:not([data-theme]) .user-form-field input,:root:not([data-theme]) .user-form-field select{border-color:#555;background:#252525;color:#f1f1f1}:root:not([data-theme]) .role-select-button{border-color:#555;background:#252525;color:#f1f1f1}:root:not([data-theme]) .role-select-arrow{color:#aaa}:root:not([data-theme]) .role-select-menu{border-color:#555;background:#252525;box-shadow:0 8px 22px #00000059}:root:not([data-theme]) .role-select-menu button{color:#f1f1f1}:root:not([data-theme]) .role-select-menu button:hover,:root:not([data-theme]) .role-select-menu button.selected{background:#303030}:root:not([data-theme]) .user-form-cancel{background:#303030;color:#f1f1f1}:root:not([data-theme]) .user-delete-button{background:#3a2020;color:#ff6b6b}}.role-select-arrow{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#777;transition:transform .15s ease}.role-select-arrow svg{width:16px;height:16px;display:block;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.role-select-arrow.open{transform:rotate(180deg)}:root[data-theme=dark] .role-select-arrow{color:#aaa}@media(prefers-color-scheme:dark){:root:not([data-theme]) .role-select-arrow{color:#aaa}}.user-form .password-input-wrap{position:relative;width:100%}.user-form .password-input-wrap input{width:100%;box-sizing:border-box;padding-right:52px}.user-form .password-input-wrap .password-visibility{z-index:2;right:4px}:root[data-theme=dark] .user-form .password-visibility{color:#aaa}@media(prefers-color-scheme:dark){:root:not([data-theme]) .user-form .password-visibility{color:#aaa}}.user-list-item{display:flex;flex-direction:column;width:100%}.user-list-item .user-form{margin-top:8px}.user-list-item{overflow:hidden;border:1px solid #e8e8e8;border-radius:12px;background:#fff}.user-list-item .user-card{border:0;border-radius:0;background:transparent}.user-list-item .user-form{margin-top:0;border:0;border-top:1px solid #e8e8e8;border-radius:0;background:transparent}:root[data-theme=dark] .user-list-item{border-color:#363636;background:#1f1f1f}:root[data-theme=dark] .user-list-item .user-form{border-top-color:#363636}@media(prefers-color-scheme:dark){:root:not([data-theme]) .user-list-item{border-color:#363636;background:#1f1f1f}:root:not([data-theme]) .user-list-item .user-form{border-top-color:#363636}}.item-name-editor{flex:1;min-width:0;margin-left:0}:root[data-theme=light] .product-picker-checkbox{accent-color:#777}:root[data-theme=light] .users-add-button{background:#4a4a4a}@media(prefers-color-scheme:light){:root:not([data-theme]) .product-picker-checkbox{accent-color:#777}:root:not([data-theme]) .users-add-button{background:#4a4a4a}}:root{--ui-surface: #ffffff;--ui-input: #fafafa;--ui-border: #dddddf;--ui-text: #202124;--ui-muted: #777777;--ui-action: #2878e8;--ui-hover: #f3f4f6;--ui-shadow: 0 8px 24px rgba(0, 0, 0, .1);--danger-bg: #d92d20;--danger-hover: #b42318;--danger-text: #ffffff;--danger-soft-bg: #fff0f0;--danger-soft-text: #b42318}:root[data-theme=dark]{--ui-surface: #1e1e1e;--ui-input: #252525;--ui-border: #3a3a3a;--ui-text: #f1f1f1;--ui-muted: #aaaaaa;--ui-action: #4d91f5;--ui-hover: #303030;--ui-shadow: 0 8px 24px rgba(0, 0, 0, .35);--danger-bg: #b42318;--danger-hover: #912018;--danger-text: #ffffff;--danger-soft-bg: #3a2020;--danger-soft-text: #ff8a80}@media(prefers-color-scheme:dark){:root:not([data-theme]){--ui-surface: #1e1e1e;--ui-input: #252525;--ui-border: #3a3a3a;--ui-text: #f1f1f1;--ui-muted: #aaaaaa;--ui-action: #4d91f5;--ui-hover: #303030;--ui-shadow: 0 8px 24px rgba(0, 0, 0, .35);--danger-bg: #b42318;--danger-hover: #912018;--danger-text: #ffffff;--danger-soft-bg: #3a2020;--danger-soft-text: #ff8a80}}.swipe-delete button:last-child,.template-editor .template-row-actions button:last-child,.modal-delete,.user-delete-confirm{background:var(--danger-bg);color:var(--danger-text)}.swipe-delete button:last-child:hover,.template-editor .template-row-actions button:last-child:hover,.modal-delete:hover,.user-delete-confirm:hover{background:var(--danger-hover)}.list-actions .list-action-delete,.product-delete-submit{color:var(--danger-soft-text)}.user-delete-button{background:var(--danger-soft-bg);color:var(--danger-soft-text)}.templates-page{--templates-section-gap: 20px;--templates-header-gap: 16px;--templates-card-gap: 12px}.templates-page-inner{display:flex;flex-direction:column;gap:var(--templates-section-gap)}.templates-page-header{display:flex;flex-direction:column;align-items:flex-start;gap:var(--templates-header-gap)}.templates-page-header h2,.templates-page-header .products-add-button{margin:0}.templates-list{display:flex;flex-direction:column;gap:var(--templates-card-gap)}@media(max-width:520px){.templates-page{--templates-section-gap: 16px;--templates-header-gap: 12px;--templates-card-gap: 10px}}.template-editor{display:flex;flex-direction:column;gap:16px;padding:18px;margin:0;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text)}.template-editor input,.template-editor select,.template-editor textarea{box-sizing:border-box;min-width:0;padding:10px 12px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-input);color:var(--ui-text);font:inherit}.template-editor input::placeholder,.template-editor textarea::placeholder{color:var(--ui-muted);opacity:1}.template-editor input:focus,.template-editor select:focus,.template-editor textarea:focus{outline:2px solid var(--ui-muted);outline-offset:1px}.template-editor>input,.template-editor textarea{width:100%}.template-editor textarea{resize:vertical}.template-editor-items{display:flex;flex-direction:column;gap:0}.template-editor-item{position:relative;display:flex;align-items:center;gap:8px;min-width:0;padding:10px 0;border:0;border-radius:0;touch-action:pan-y;user-select:none;-webkit-user-select:none}.template-row-name{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}.template-row-name strong{overflow-wrap:anywhere;font-weight:600}.template-row-name small{color:var(--ui-muted);font-size:13px;line-height:1.25;overflow-wrap:anywhere}.template-row-meta{flex:0 0 auto;min-width:0;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-text);text-align:right;white-space:nowrap}.template-row-quantity-editor{display:flex;align-items:center;flex:0 1 auto;gap:5px;min-width:0}.template-row-quantity-editor .item-quantity-input{width:66px;flex:0 1 66px}.template-row-quantity-editor .item-unit-select{width:68px;min-width:58px;flex:0 1 68px}.template-row-name-editor{display:flex;flex:1 1 auto;flex-direction:row;align-items:center;gap:6px;min-width:0}.template-row-name-fields{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-width:0}.template-row-edit-actions{display:flex;flex:0 0 auto;gap:6px}.template-row-actions{position:absolute;z-index:2;top:50%;right:0;display:flex;align-items:center;gap:0;overflow:hidden;transform:translateY(-50%)}.template-actions-open .template-row-meta{visibility:hidden}.template-editor .template-row-actions button{flex:0 0 85px;width:85px;min-height:44px;padding:0;border:0;border-radius:0;color:var(--ui-text);font-size:15px;font-weight:700;white-space:nowrap}.template-editor .template-row-actions button:first-child{background:var(--ui-action)}.template-editor button{min-height:38px;padding:8px 12px;border-radius:7px;cursor:pointer}.template-editor button:disabled,.template-card-actions button:disabled{cursor:not-allowed;opacity:.5}.template-editor-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.template-editor-actions button{border:1px solid var(--ui-border);background:var(--ui-hover);color:var(--ui-text);box-shadow:none}.template-editor-actions button:hover:not(:disabled){filter:brightness(.96)}.template-editor-actions button:last-child{font-weight:600}.template-editor>.products-add-button{align-self:flex-start;width:auto;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px}.template-input-wrap{position:relative;z-index:5}.template-input-wrap .suggestions{z-index:20;border-color:var(--ui-border);background:var(--ui-surface);box-shadow:var(--ui-shadow)}.template-input-wrap .suggestion{border-bottom-color:var(--ui-border);background:var(--ui-surface);color:var(--ui-text)}.template-input-wrap .suggestion:active{background:var(--ui-hover)}.template-input-wrap .suggestion small{color:var(--ui-muted)}.template-input-wrap .add-box>span{display:none}.template-input-wrap .add-box input{width:auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--ui-text);font:inherit}.template-input-wrap .add-box input:focus{outline:none}.template-input-wrap .product-picker-open{flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text)}.template-input-wrap .product-picker-open:hover{background:var(--ui-hover)}.templates-list{display:flex;flex-direction:column;gap:10px}.template-card-swipe{position:relative;overflow:hidden;border-radius:10px;touch-action:pan-y}.template-card-swipe-actions{position:absolute;inset:0 0 0 auto;width:170px;display:flex;align-items:stretch;justify-content:flex-end}.template-card-swipe-actions button{flex:0 0 85px;width:85px;padding:0 6px;border:0;color:var(--danger-text);font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}.template-card-swipe-actions button:first-child{background:var(--ui-action)}.template-card-swipe-actions button:last-child{background:var(--danger-bg)}.template-card{position:relative;z-index:1;width:100%;display:block;padding:16px 18px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;transition:transform .2s ease}.template-card.is-dragging{transition:none}.template-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.template-card-info{display:flex;flex-direction:column;gap:4px;min-width:0}.template-card-info strong{min-width:0;overflow-wrap:anywhere}.template-card-info span,.template-card-info p{color:var(--ui-muted);font-size:.9em}.template-card-info p{margin:5px 0 0;overflow-wrap:anywhere}.template-card-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.template-card-actions button{padding:7px 11px;border:1px solid var(--ui-border);background:var(--ui-hover);color:var(--ui-text);cursor:pointer}.template-card-actions button:hover:not(:disabled){filter:brightness(.96)}.template-card-details{margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-border);cursor:default}.template-card-items{display:flex;flex-direction:column;gap:10px}.template-card-item{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-card-item .item-name-block{min-width:0}.template-card-item .item-name,.template-card-item .item-note{overflow-wrap:anywhere}.template-card-item .item-note,.template-card-item .item-meta{color:var(--ui-muted)}.template-card-description{margin:14px 0 0;color:var(--ui-muted);font-size:.9em;white-space:pre-wrap;overflow-wrap:anywhere}.transfer-list-dropdown .list-option{padding:13px 12px}.transfer-list-option-text{display:inline-flex;align-items:baseline;gap:6px}@media(max-width:680px){.template-editor{padding:12px}.template-editor-item{gap:6px;padding:10px 8px}.template-row-quantity-editor{gap:4px}.template-row-quantity-editor .item-quantity-input{width:54px;flex-basis:54px}.template-row-quantity-editor .item-unit-select{width:58px;min-width:52px;flex-basis:58px}}@media(max-width:520px){.template-card{padding:13px 14px}.template-card-header{align-items:center;flex-direction:row}.template-card-actions{width:auto;margin-left:auto}.template-card-actions button{flex:0 0 auto}}.swipe-delete button:first-child,.template-editor .template-row-actions button:first-child,.template-card-swipe-actions button:first-child,.template-card-actions button:first-child,.product-card-actions button:first-child{border-radius:10px 0 0 10px}.swipe-delete button:last-child,.template-editor .template-row-actions button:last-child,.template-card-swipe-actions button:last-child,.template-card-actions button:last-child,.product-card-actions button:last-child{border-radius:0 10px 10px 0}.swipe-delete button:only-child,.template-editor .template-row-actions button:only-child,.template-card-swipe-actions button:only-child,.template-card-actions button:only-child,.product-card-actions button:only-child{border-radius:12px}.template-card-actions,.product-card-actions{gap:0}.ui-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:7px 12px;cursor:pointer}.ui-switch-row span{flex:1;color:var(--ui-text);font-size:15px}.ui-switch{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 46px;width:46px;height:26px;margin:0;border:1px solid transparent;border-radius:999px;cursor:pointer;transition:background-color .18s ease,border-color .18s ease}.ui-switch:before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;transition:transform .18s ease,background-color .18s ease}.ui-switch:checked:before{transform:translate(20px)}.ui-switch:disabled{cursor:not-allowed;opacity:.45}.ui-switch:focus-visible{outline:2px solid var(--ui-text);outline-offset:3px}:root:not([data-theme=dark]) .ui-switch{background:#d6d6dc;border-color:#c5c5cc}:root:not([data-theme=dark]) .ui-switch:before{background:#fff;box-shadow:0 1px 2px #0003}:root:not([data-theme=dark]) .ui-switch:checked{background:#2684e8;border-color:#2684e8}:root[data-theme=dark] .ui-switch{background:#303238;border-color:#45464d}:root[data-theme=dark] .ui-switch:before{background:#e5e5e8;box-shadow:0 1px 3px #00000073}:root[data-theme=dark] .ui-switch:checked{background:#20b8a5;border-color:#20b8a5}.profile-notifications{margin-top:0}.profile-notifications>summary.profile-action{list-style:none}.profile-notifications>summary.profile-action::-webkit-details-marker{display:none}.profile-notifications[open]>summary .profile-action-arrow{transform:rotate(90deg)}.profile-notifications>summary .profile-action-arrow{transition:transform .18s ease}.profile-notifications .ui-switch-row{margin:0 4px}.profile-notifications .ui-switch-row:first-of-type{margin-top:8px}.profile-notifications>p{margin:8px 12px;color:var(--ui-muted);font-size:13px}@media(prefers-color-scheme:dark){:root:not([data-theme]) .ui-switch{background:#303238;border-color:#45464d}:root:not([data-theme]) .ui-switch:before{background:#e5e5e8;box-shadow:0 1px 3px #00000073}:root:not([data-theme]) .ui-switch:checked{background:#20b8a5;border-color:#20b8a5}}.profile-theme{margin-top:0}.profile-theme>summary.profile-action{list-style:none}.profile-theme>summary.profile-action::-webkit-details-marker{display:none}.profile-theme[open]>summary .profile-action-arrow{transform:rotate(90deg)}.profile-theme>summary .profile-action-arrow{transition:transform .18s ease}.profile-theme .ui-switch-row{margin:0 4px}.profile-theme .ui-switch-row:first-of-type{margin-top:8px}.profile-password .password-form{padding:12px 14px 16px}.profile-password .password-input-wrap{width:calc(100% - 8px);margin:0 4px}.profile-password .password-submit{display:block;width:fit-content;min-width:0;margin:2px auto 0;background:var(--ui-action);color:#fff}.user-form-field input,.user-form-field select{width:calc(100% - 8px);margin-left:4px;margin-right:4px}.profile-users .user-form{padding:12px 14px 16px}.profile-password[open]>summary .profile-action-arrow,.profile-users[open]>summary .profile-action-arrow{transform:rotate(90deg)}.profile-password>summary .profile-action-arrow,.profile-users>summary .profile-action-arrow{transition:transform .18s ease}.profile-users .users-page-inner{width:calc(100% - 36px);max-width:none;box-sizing:border-box;margin:0 auto}.profile-users .users-page-inner{padding-top:10px}.profile-password .password-fields-card{display:flex;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-hover)}.profile-password .password-fields-card{background:var(--ui-surface);border-color:var(--ui-border);border-radius:12px}.profile-password .password-submit{background:var(--ui-action);color:#fff}.user-card-arrow{transition:transform .2s ease}.user-card-arrow.is-open{transform:rotate(90deg)}.profile-theme .profile-settings-card,.profile-notifications .profile-settings-card{display:flex;flex-direction:column;gap:2px;box-sizing:border-box;width:calc(100% - 36px);margin:8px auto 12px;padding:8px 14px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.profile-settings-card>p{margin:8px 0;color:var(--ui-muted)}.profile-actions>.profile-theme{margin-top:16px}.profile-action-icon svg{display:block;width:24px;height:24px}.profile-version{margin-top:4px;padding:0 4px 2px;color:var(--ui-muted);font-size:11px;line-height:1.4;text-align:right}
