:root{color:#1e293b;background:#f8fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f8fafc}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.7}.login-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:#fff}.login-card,.form-panel{width:min(100%,440px);padding:28px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 18px 45px #0f172a14}.login-card h1{margin:0 0 28px;color:#2563eb;font-size:32px;line-height:1.1;text-align:center}.login-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;color:#94a3b8;font-size:13px;font-weight:700}.login-divider:before,.login-divider:after{height:1px;background:#e2e8f0;content:""}.google-login-slot{display:grid;gap:10px;min-height:44px}.google-login-slot>div:first-child{min-height:44px}.google-loading{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:14px;font-weight:700}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:12px clamp(16px,4vw,32px);border-bottom:1px solid #e2e8f0;background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand-button{border:0;background:transparent;color:#2563eb;font-size:20px;font-weight:800}.main-content{width:min(100%,920px);margin:0 auto;padding:24px clamp(16px,4vw,32px) 48px}.page-stack{display:grid;gap:20px}.page-stack.narrow{width:min(100%,560px);margin:0 auto}.page-header,.detail-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.detail-header{padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.page-header h1,.detail-header h1,.form-panel h1{margin:0;color:#1e293b;font-size:clamp(22px,3vw,28px);line-height:1.15}.page-header p,.detail-header p{margin:4px 0 0;color:#64748b}.view-only{color:#64748b;font-size:11px;font-weight:800}.header-actions{display:flex;align-items:center;gap:10px}.return-header{display:flex}.primary-button,.icon-button,.icon-text-button,.mini-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;font-weight:700;text-decoration:none}.primary-button{min-height:48px;padding:12px 18px;background:#2563eb;color:#fff}.primary-button.success{background:#22c55e}.primary-button.danger{background:#ef4444}.primary-button.block,.text-button.block{width:100%}.icon-button{width:44px;height:44px;background:#2563eb;color:#fff;box-shadow:0 8px 18px #2563eb38}.icon-button.subtle,.icon-text-button.subtle{border:1px solid #e2e8f0;background:#fff;color:#334155;box-shadow:none}.icon-button.success-outline{border:1px solid #22c55e;background:#fff;color:#16a34a;box-shadow:none}.icon-text-button{min-height:40px;padding:8px 12px}.text-button{min-height:42px;padding:10px 12px;background:transparent;color:#64748b}.mini-button{min-height:36px;padding:8px 10px;color:#fff;font-size:13px;white-space:nowrap}.mini-button.success{background:#22c55e}.mini-button.warning{background:#f59e0b}.mini-button.danger{background:#ef4444}.segmented-control{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:8px;background:#e2e8f0}.segmented-control button{min-height:38px;border:0;border-radius:6px;background:transparent;color:#64748b;font-weight:700}.segmented-control button.active{background:#fff;color:#2563eb;box-shadow:0 2px 8px #0f172a1a}.list-card-stack,.group-stack{display:grid;gap:12px}.list-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:inherit;text-align:left}.list-card strong{display:block;color:#334155;font-size:16px}.list-card small{display:block;margin-top:4px;color:#94a3b8;font-size:13px}.primary-icon{color:#2563eb}.success-icon{color:#10b981}.muted-icon{color:#94a3b8}.loading-state,.empty-state{padding:40px 16px;color:#94a3b8;text-align:center}.notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:8px;font-weight:700}.notice.error{border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}.notice.success{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}.notice.info{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}.notice.with-actions button{border:0;background:transparent;color:#166534;font-weight:800;text-decoration:underline}label{display:grid;gap:8px;color:#64748b;font-size:14px;font-weight:700}.login-card,.form-panel{display:grid;gap:16px}input,select,textarea{width:100%;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1e293b;font-size:16px;outline:none}input,select{height:48px;padding:0 14px}textarea{min-height:100px;padding:12px 14px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.search-field{display:flex;align-items:center;gap:10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:0 12px}.search-field svg{color:#94a3b8;flex:0 0 auto}.search-field input{border:0;padding:0;box-shadow:none}.suggestion-box{display:grid;max-height:220px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.suggestion-box button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;border:0;border-bottom:1px solid #f1f5f9;background:#fff;color:#334155;text-align:left}.suggestion-box button:last-child{border-bottom:0}.suggestion-box svg{color:#2563eb}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.group-section h2{margin:0 0 8px;padding:0 8px;color:#64748b;font-size:12px;font-weight:900}.item-table{overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #f1f5f9}.item-row:last-child{border-bottom:0}.item-main{display:grid;gap:4px;min-width:0;border:0;background:transparent;color:inherit;text-align:left}.item-title-line{display:flex;align-items:center;gap:6px;min-width:0}.item-title-line strong{overflow:hidden;color:#334155;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.item-title-line svg{color:#2563eb;flex:0 0 auto}.item-meta{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:13px}.item-meta em{padding:2px 6px;border-radius:4px;background:#f0fdf4;color:#16a34a;font-size:10px;font-style:normal;font-weight:900}.item-price{color:#0f172a;font-weight:800;white-space:nowrap}.item-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.item-row.checked .item-title-line strong,.item-row.checked .item-price{color:#94a3b8;text-decoration:line-through}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:18px;background:#0f172a8c}.modal-panel{display:grid;gap:14px;width:min(100%,420px);padding:24px;border-radius:8px;background:#fff;box-shadow:0 24px 70px #0f172a3d}.modal-panel h2{margin:0;color:#1e293b;font-size:20px}.modal-text{color:#64748b}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.dialog-heading{display:flex;align-items:center;gap:8px;color:#2563eb}.detail-label{color:#94a3b8;font-size:12px;font-weight:800}.detail-value{margin:0;color:#1e293b;font-size:16px}.observation-box{margin:0;padding:14px;border-radius:8px;background:#f8fafc;color:#475569}.detail-date{margin-top:4px;color:#dc2626;font-size:12px;font-weight:800}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:720px){.topbar{min-height:58px}.main-content{padding-top:18px}.page-header,.detail-header{align-items:flex-start}.detail-header{grid-template-columns:auto 1fr auto}.form-grid.two{grid-template-columns:1fr}.item-row{grid-template-columns:1fr;align-items:start}.item-price{justify-self:start}.item-actions{justify-content:flex-start}.login-card,.form-panel{padding:22px}}
