*{box-sizing:border-box}html,body{color:#111827;background:#f3f4f6;min-height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body{min-height:100vh}.shell{justify-content:center;padding:12px;display:flex}.card{background:#fff;border-radius:16px;width:100%;max-width:520px;padding:16px;box-shadow:0 8px 24px #00000014}.titleRow{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px;display:flex}.editableTitle{cursor:pointer;border-bottom:1px dashed #0000;transition:border-color .15s}.editableTitle:hover{border-bottom-color:#9ca3af}.inlineRenameForm{display:inline-flex}.inlineRenameInput{width:100%;color:inherit;background:0 0;border:none;border-bottom:2px solid #2563eb;outline:none;padding:0;font-size:1.6rem;font-weight:700}.titleButtons{flex-shrink:0;align-items:center;gap:6px;display:flex}.modeButton{cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;padding:0;font-size:16px;display:flex}.modeButton.active{background:#dbeafe;border-color:#2563eb}.modeButton.warning{background:#fff7ed;border-color:#fb923c}.modeButton.warning .icon{color:#c2410c}.modeButton:disabled{opacity:.3;cursor:default}.icon{color:#2563eb;flex-shrink:0;width:18px;height:18px}.iconSmall{width:14px;height:14px}h1{margin:0;font-size:22px}.muted{color:#6b7280;margin:2px 0 0;font-size:14px}.errorText{color:#dc2626;margin:8px 0;font-size:14px}.changeNotice{top:max(12px, env(safe-area-inset-top));z-index:1200;color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;align-items:center;gap:8px;width:min(520px,100vw - 24px);margin:0;padding:10px 12px;font-size:14px;line-height:1.35;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 10px 28px #1e40af2e}.changeNotice span{flex:1;min-width:0}.changeNoticeIcon{color:#1d4ed8}.changeNoticeClose{color:#1e40af;cursor:pointer;background:0 0;border:0;border-radius:6px;width:28px;min-width:28px;height:28px;font-size:18px;line-height:1}.changeNoticeClose:hover{background:#dbeafe}.input{background:#fff;border:1px solid #d1d5db;border-radius:10px;outline:none;width:100%;min-height:42px;padding:10px 12px;font-size:15px}.input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.primary,.secondary,.delete,.installButton,.priceSave{cursor:pointer;border:0;border-radius:10px;min-height:42px;padding:10px 14px;font-size:14px}.primary,.installButton,.priceSave{color:#fff;background:#2563eb;font-weight:600}.secondary{color:#111827;background:#e5e7eb}.fullWidth{width:100%}.toolbarRow{align-items:flex-start;gap:6px;margin-bottom:14px;display:flex}.toolbarRow .comboBox{flex:1;margin-bottom:0}.checkModeToolbar{justify-content:flex-end}.storeSelectRow{margin-top:16px}.storeSelect{background:#fff;border:1px solid #d1d5db;border-radius:10px;width:100%;min-width:0;height:40px;padding:0 12px;font-size:16px}.sortButton{cursor:pointer;color:#374151;background:#f9fafb;border:1px solid #d1d5db;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:48px;min-width:48px;min-height:42px;padding:0;font-size:14px;display:flex}.sortButton:hover{color:#2563eb;border-color:#2563eb}.sortButton.active{color:#fff;background:#2563eb;border-color:#2563eb}.groupLetter{color:#2563eb;border:2px solid;border-radius:4px;justify-content:center;align-items:center;width:22px;height:22px;font-size:14px;font-weight:700;line-height:1;display:flex}.groupBlock{margin-bottom:8px;list-style:none}.groupHeader{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e5e7eb;margin-bottom:4px;padding:6px 4px 4px;font-size:13px;font-weight:600}.groupList{margin:0;padding:0;list-style:none}.comboBox{margin-bottom:14px;position:relative}.comboInputWrap{gap:6px;display:flex}.comboInput{flex:1}.comboButton{width:48px;min-width:48px;padding:0;font-size:22px;line-height:1}.comboDropdown{z-index:50;background:#fff;border:1px solid #d1d5db;border-radius:10px;max-height:260px;margin:4px 0 0;padding:4px 0;list-style:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 20px #0000001a}.comboOption{cursor:pointer;padding:10px 14px;font-size:15px}.comboOption:hover,.comboHighlight{color:#1d4ed8;background:#eff6ff}.list{margin:0 0 12px;padding:0;list-style:none}.listItemWrap{border-top:1px solid #e5e7eb;padding:0}.listItemWrap:first-child{border-top:0}.listItem{justify-content:space-between;align-items:center;gap:8px;padding:10px 0;display:flex}.historyList .listItem{border-top:1px solid #e5e7eb;padding:10px 0}.historyList .listItem:first-child{border-top:0}.itemMain{cursor:pointer;flex:1;align-items:center;gap:10px;min-width:0;display:flex}.itemNameCol{flex-direction:column;flex:1;min-width:0;display:flex}.itemDescription{color:#9ca3af;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:12px;line-height:1.3;overflow:hidden}.itemMain input[type=checkbox]{accent-color:#2563eb;flex-shrink:0;width:20px;height:20px}.itemName{font-size:15px;line-height:1.3}.itemName.clickable{cursor:pointer;border-bottom:1px dashed #0000}.itemName.clickable:hover{border-bottom-color:#9ca3af}.itemNameButton{width:fit-content;max-width:100%;color:inherit;text-align:left;cursor:pointer;text-overflow:ellipsis;background:0 0;border:0;border-bottom:1px dashed #0000;padding:0;display:inline;overflow:hidden}.itemNameButton:hover,.itemNameButton.active{color:#1d4ed8;border-bottom-color:#2563eb}.nameInput{background:#fff;border:1px solid #2563eb;border-radius:4px;outline:none;width:100%;min-width:0;padding:1px 4px;font-size:15px;line-height:1.3}.itemDetails{flex-shrink:0;gap:4px;display:flex}.quantityInput{text-align:center;-moz-appearance:textfield;background:#fff;border:1px solid #2563eb;border-radius:6px;outline:none;width:40px;padding:4px;font-size:13px}.quantityInput::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.quantityInput::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.quantityDisplay{text-align:center;cursor:pointer;color:#374151;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;width:40px;padding:4px;font-size:13px;line-height:1.4}.quantityDisplay:hover{border-color:#2563eb}.checked .quantityDisplay{opacity:.4}.sizeInput{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;outline:none;width:80px;padding:4px 6px;font-size:13px}.sizeInput:focus{border-color:#2563eb}.checked .quantityInput,.checked .sizeInput{opacity:.4}.checked .itemName{color:#9ca3af;text-decoration:line-through}.itemMeta{color:#6b7280;white-space:nowrap;flex-shrink:0;font-size:13px}.itemPrice.higher{color:#dc2626;font-weight:600}.itemSubInfo{color:#9ca3af;margin-top:1px;font-size:12px;display:block}.checked .itemSubInfo{text-decoration:line-through}.expandButton{color:#2563eb;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;width:28px;min-width:28px;height:28px;padding:0;display:flex}.expandButton:hover{background:#eff6ff}.detailPane{border-top:1px dashed #e5e7eb;grid-template-columns:1fr 1fr;gap:8px;padding:8px 0 10px;display:grid}.detailField{flex-direction:column;gap:2px;display:flex}.detailLabel{color:#9ca3af;text-transform:uppercase;letter-spacing:.03em;font-size:11px;font-weight:600}.detailInput{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;outline:none;width:100%;padding:5px 8px;font-size:13px}.detailInput:focus{border-color:#2563eb}select.detailInput{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;padding-right:24px}.pricePane{border-top:1px dashed #e5e7eb;flex-direction:column;gap:8px;padding:10px 0 12px;display:flex}.pricePaneHeader{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.latestPrice{color:#6b7280;text-align:right;font-size:12px}.priceForm{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.priceInput{-moz-appearance:textfield;background:#f9fafb;border:1px solid #d1d5db;border-radius:6px;outline:none;min-width:0;padding:8px 10px;font-size:15px}.priceInput::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.priceInput::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.priceInput:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f}.priceSave{white-space:nowrap}.priceError{color:#b91c1c;margin:0;font-size:12px;line-height:1.4}.priceHistoryList{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.priceHistoryList li{color:#6b7280;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;font-size:12px;display:grid}.priceHistoryList span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.priceDelete{color:#991b1b;background:#fee2e2;border:0;border-radius:6px;width:22px;min-width:22px;height:22px;padding:0;font-size:16px;line-height:1}.priceDelete:hover{background:#fecaca}.settingsView{flex-direction:column;gap:14px;display:flex}.notificationSettings{justify-content:space-between;align-items:center;gap:10px;padding-bottom:2px;display:flex}.loginForm{flex-direction:column;gap:10px;margin-top:12px;display:flex}.loginInput{border:1px solid #d1d5db;border-radius:10px;outline:none;padding:10px 12px;font-size:15px}.loginInput:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.switchAuth{text-align:center;color:#6b7280;margin-top:12px;font-size:14px}.linkButton{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;font-weight:600;text-decoration:underline}.linkButton:hover{color:#1d4ed8}.oauthDivider{align-items:center;gap:12px;margin:16px 0 12px;display:flex}.oauthDivider:before,.oauthDivider:after{content:"";background:#d1d5db;flex:1;height:1px}.oauthDivider span{color:#6b7280;white-space:nowrap;font-size:13px}.oauthButtons{flex-direction:column;gap:8px;display:flex}.oauthBtn{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:10px;width:100%;padding:10px 12px;font-size:15px;font-weight:600;transition:background .15s,border-color .15s}.oauthBtn:hover{background:#f9fafb;border-color:#9ca3af}.oauthBtn.google{color:#4285f4}.oauthBtn.microsoft{color:#00a4ef}.oauthBtn.apple{color:#000}.listPicker{flex-direction:column;gap:8px;margin:12px 0;padding:0;list-style:none;display:flex}.listPicker li{margin:0;padding:0;list-style:none}.listPickerBtn{text-align:left;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:10px;width:100%;padding:12px 16px;font-size:16px;transition:background .15s,border-color .15s}.listPickerBtn:hover{background:#eff6ff;border-color:#2563eb}.listOwnerLabel{color:#6b7280;font-size:13px;font-weight:400}.listPickerForm{border-top:1px solid #e5e7eb;flex-direction:column;gap:10px;margin-top:16px;padding-top:16px;display:flex}.listPickerForm .loginInput{width:100%}.shareSection{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;margin-top:12px;padding:12px}.sharedUsersList{margin:8px 0;padding:0;list-style:none}.sharedUserItem{background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:6px;padding:8px 10px;font-size:14px;display:flex}.removeShareBtn{color:#ef4444;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:16px;line-height:1}.removeShareBtn:hover{background:#fef2f2}.shareForm{flex-direction:column;gap:8px;margin-top:8px;display:flex}.dataPorter{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;padding:12px}.dataPorterButtons{gap:8px;margin-top:8px;display:flex}.dataPorterBtn{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;padding:9px 12px;font-size:14px;font-weight:500;display:flex}.dataPorterBtn:hover{background:#f3f4f6}.dataPorterBtn:disabled{opacity:.5;cursor:not-allowed}.dataPorterStatus{color:#6b7280;margin:8px 0 0;font-size:13px}.dialogOverlay{z-index:1000;background:#0006;justify-content:center;align-items:center;padding:20px;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.dialogBox{background:#fff;border-radius:14px;width:100%;max-width:340px;padding:24px;animation:.2s slideUp;box-shadow:0 8px 30px #0003}.dialogTitle{color:#111827;margin:0 0 8px;font-size:17px;font-weight:700}.dialogText{color:#6b7280;margin:0 0 20px;font-size:14px;line-height:1.4}.dialogButtons{flex-direction:column;gap:8px;display:flex}.dialogBtn{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:10px;width:100%;padding:11px;font-size:15px;font-weight:600;transition:background .15s}.dialogBtn:hover{background:#f3f4f6}.dialogBtnPrimary{color:#fff;background:#2563eb;border-color:#2563eb}.dialogBtnPrimary:hover{background:#1d4ed8}.dialogBtnDanger{color:#dc2626;background:#fff;border-color:#dc2626}.dialogBtnDanger:hover{color:#fff;background:#dc2626}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.logoutButton{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #dc2626;border-radius:10px;width:100%;margin-top:4px;padding:10px;font-size:15px;font-weight:600}.logoutButton:hover{color:#fff;background:#dc2626}.deleteListButton{color:#fff;background:#dc2626;border-color:#dc2626}.deleteListButton:hover{background:#b91c1c;border-color:#b91c1c}.catEditor{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:14px;padding:12px}.catToggle{cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:4px;width:100%;padding:0;display:flex}.catToggle.open{margin-bottom:12px}.catTitle{margin:0;font-size:15px;font-weight:600}.catError{color:#dc2626;margin:0 0 6px;font-size:13px}.catAddRow{gap:6px;margin-bottom:8px;display:flex}.catInput{min-height:34px;padding:6px 10px;font-size:14px}.catAddButton{width:40px;min-width:40px;min-height:34px;padding:0;font-size:20px;line-height:1}.catList{margin:0;padding:0;list-style:none}.catItem{border-top:1px solid #e5e7eb;align-items:center;gap:8px;padding:6px 0;display:flex}.catItem:first-child{border-top:0}.catName{cursor:pointer;border-bottom:1px dashed #0000;flex:1;font-size:14px}.catName:hover{border-bottom-color:#9ca3af}.catEmpty{color:#9ca3af;text-align:center;padding:8px 0;font-size:13px}.delete{color:#991b1b;background:#fee2e2;width:38px;min-width:38px;padding:0;font-size:20px;line-height:1}.emptyBox{color:#6b7280;text-align:center;padding:16px 0}.historyToggle{color:#6b7280;cursor:pointer;background:0 0;border:0;border-top:2px solid #e5e7eb;align-items:center;gap:6px;width:100%;margin-top:8px;padding:10px 0 4px;font-size:14px;font-weight:600;display:flex}.chevron{color:#2563eb;align-items:center;transition:transform .15s;display:inline-flex;transform:rotate(0)}.chevron.open{transform:rotate(90deg)}.historySortRow{margin-bottom:6px;display:flex}.historySortBtn{color:#6b7280;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;display:flex}.historySortBtn:hover{background:#f3f4f6}.historyList{margin-bottom:0}.historyItem{color:#6b7280}.historyItem .itemName{flex:1;min-width:0}.addBack{color:#2563eb;cursor:pointer;background:#dbeafe;border:0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:30px;min-width:30px;height:30px;padding:0;font-size:18px;line-height:1;display:flex}.delete.small{width:30px;min-width:30px;height:30px;min-height:30px;font-size:16px}@media (max-width:480px){.card{border-radius:12px;padding:12px}.titleRow{flex-direction:column;align-items:stretch}}
