:root,:root[data-theme=dark]{--color-background: #0b0b0c;--color-surface: #141415;--color-surface-raised: #1c1c1e;--color-border: rgba(255, 255, 255, .07);--color-border-strong: rgba(255, 255, 255, .12);--color-sheen: rgba(255, 255, 255, .035);--color-text: #f4f4f5;--color-muted: #8b8b90;--color-faint: #55555b;--color-accent: #f4f4f5;--color-accent-text: #0b0b0c;--color-positive: #4fd1a1;--color-overdue: #ff5d5d;--color-soon: #f5b73b;--color-later: #4fd1a1;--chart-1: #f5c542;--chart-2: #3ddc97;--chart-3: #4f8cff;--chart-4: #ff6b8a;--chart-5: #b18cff;--card-art-front: linear-gradient(135deg, #2a2a2d, #0f0f10);--card-art-back: linear-gradient(135deg, #1f1f22, #09090a);--shadow-card: 0 10px 30px rgba(0, 0, 0, .45);color-scheme:dark}:root[data-theme=light]{--color-background: #f3f3f1;--color-surface: #ffffff;--color-surface-raised: #f6f6f4;--color-border: rgba(0, 0, 0, .07);--color-border-strong: rgba(0, 0, 0, .12);--color-sheen: rgba(0, 0, 0, .015);--color-text: #111113;--color-muted: #6e6e73;--color-faint: #a1a1a6;--color-accent: #111113;--color-accent-text: #ffffff;--color-positive: #12a571;--color-overdue: #e5484d;--color-soon: #d98e04;--color-later: #12a571;--chart-1: #e0a800;--chart-2: #12a571;--chart-3: #2f6fea;--chart-4: #e54875;--chart-5: #8b5cf6;--card-art-front: linear-gradient(135deg, #3a3a3e, #121214);--card-art-back: linear-gradient(135deg, #5a5a60, #2a2a2e);--shadow-card: 0 10px 24px rgba(0, 0, 0, .18);color-scheme:light}:root{--font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;--radius-large: 18px;--radius: 12px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--color-background);color:var(--color-text);font-family:var(--font-sans);font-size:15px;line-height:1.35;-webkit-font-smoothing:antialiased}h1,h2{margin:0;font-weight:400}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:none;background:none;padding:0}.screen{display:flex;flex-direction:column;gap:14px;padding:14px 16px calc(28px + env(safe-area-inset-bottom));max-width:640px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;min-height:36px}.breadcrumb{display:inline-flex;align-items:center;gap:8px;color:var(--color-muted);font-size:14px}.breadcrumb svg{width:16px;height:16px;flex-shrink:0}.page-title{font-size:34px;font-weight:400;letter-spacing:-.025em;line-height:1.1;word-break:break-word}.page-title-muted{color:var(--color-faint)}.icon-button{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-muted)}.icon-button svg{width:18px;height:18px}.panel,.stat-card,.section,.chart-card{position:relative;border:1px solid var(--color-border);border-radius:var(--radius-large);background:linear-gradient(180deg,var(--color-sheen),transparent 55%),var(--color-surface)}.stat-row{display:flex;gap:10px;margin:0 -16px;padding:0 16px 2px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.stat-row::-webkit-scrollbar{display:none}.stat-card{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;min-width:168px;padding:16px 18px;overflow:hidden;scroll-snap-align:start}.stat-card-wide{min-width:300px;padding-right:128px}.stat-card-block{min-width:0;width:100%;padding-right:128px}.stat-label{color:var(--color-muted);font-size:14px}.stat-value{font-size:30px;font-weight:500;letter-spacing:-.02em;line-height:1.1;white-space:nowrap}.stat-value-text{font-size:22px;overflow:hidden;text-overflow:ellipsis}.stat-note,.mono{font-family:var(--font-mono);font-size:12px;color:var(--color-muted)}.stat-note-positive{color:var(--color-positive)}.stat-note-negative{color:var(--color-overdue)}.card-art{position:absolute;right:-6px;top:18px;width:128px;height:84px;pointer-events:none}.card-art-back,.card-art-front{position:absolute;width:112px;height:70px;border-radius:10px;border:1px solid var(--color-border-strong);box-shadow:var(--shadow-card)}.card-art-back{right:0;top:0;background:var(--card-art-back);transform:rotate(-8deg)}.card-art-front{right:14px;top:14px;background:var(--card-art-front);transform:rotate(-14deg)}.card-art-chip{position:absolute;left:12px;top:24px;width:18px;height:14px;border-radius:3px;background:linear-gradient(135deg,#d9d9dc,#8d8d92)}.card-art-number{position:absolute;right:10px;bottom:8px;font-family:var(--font-mono);font-size:7px;letter-spacing:.08em;color:#ffffff8c}.chart-card{display:flex;flex-direction:column;gap:6px;padding:16px 14px 12px 18px}.chart-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.chart-heading{display:flex;flex-direction:column;gap:6px;min-width:0}.chart-svg{display:block;width:100%;height:auto;margin-top:6px;overflow:visible}.chart-grid-line{stroke:var(--color-border);stroke-width:1}.chart-axis-label{fill:var(--color-faint);font-family:var(--font-mono);font-size:9px}.chart-line{fill:none;stroke-width:2.2;stroke-linecap:round}.chart-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:4px}.chart-legend-item{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;color:var(--color-muted)}.currency-switch{display:flex;gap:4px;flex-shrink:0}.currency-chip{padding:4px 9px;border-radius:8px;border:1px solid var(--color-border);font-family:var(--font-mono);font-size:11px;color:var(--color-muted)}.currency-chip-active{border-color:var(--color-border-strong);background:var(--color-surface-raised);color:var(--color-text)}.dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:currentColor;box-shadow:0 0 10px currentColor}.section-label{display:block;margin:8px 0 8px 4px;font-family:var(--font-mono);font-size:12px;letter-spacing:.02em;color:var(--color-faint)}.server-list{display:flex;flex-direction:column;margin:0;padding:4px;list-style:none}.server-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:var(--radius);text-align:left;transition:background .15s ease}.server-row:active{background:var(--color-surface-raised)}.server-row-inactive{opacity:.45}.server-row-main,.server-row-side{display:flex;flex-direction:column;gap:2px;min-width:0}.server-row-main{flex:1}.server-row-side{align-items:flex-end;flex-shrink:0}.server-name{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-provider{color:var(--color-muted);font-size:13px}.server-amount{font-family:var(--font-mono);font-size:13px;color:var(--color-text)}.server-due{font-family:var(--font-mono);font-size:11px}.status-overdue{color:var(--color-overdue)}.status-soon{color:var(--color-soon)}.status-later{color:var(--color-later)}.status-inactive{color:var(--color-faint)}.status-text-later,.status-text-inactive{color:var(--color-muted)}.status-text-overdue{color:var(--color-overdue)}.status-text-soon{color:var(--color-soon)}.detail-header{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.status-badge{display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;border:1px solid var(--color-border);background:var(--color-surface);font-family:var(--font-mono);font-size:12px}.section{display:flex;flex-direction:column;padding:2px 16px}.form-section{gap:12px;padding:16px}.section-title{margin:8px 0 -4px 4px;font-family:var(--font-mono);font-size:12px;color:var(--color-faint)}.info-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--color-border)}.info-row:last-child{border-bottom:none}.info-label{color:var(--color-muted);font-size:14px}.info-value{text-align:right;word-break:break-word;font-size:14px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.secondary-button,.destructive-button{padding:12px;border-radius:var(--radius);border:1px solid var(--color-border);background:var(--color-surface);font-size:14px;font-weight:500}.secondary-button-wide{grid-column:1 / -1}.destructive-button{color:var(--color-overdue)}.secondary-button:active,.destructive-button:active{background:var(--color-surface-raised)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-family:var(--font-mono);font-size:12px;color:var(--color-muted)}.field input,.field select,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface-raised);outline:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:border-color .15s ease}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--color-border-strong)}.field input::placeholder,.field textarea::placeholder{color:var(--color-faint)}.field textarea{resize:vertical}.segmented{display:flex;gap:4px;padding:3px;border-radius:var(--radius);border:1px solid var(--color-border);background:var(--color-surface-raised)}.segment{flex:1;padding:8px 4px;border-radius:9px;font-size:14px;color:var(--color-muted)}.segment-active{background:var(--color-accent);color:var(--color-accent-text);font-weight:500}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:7px 12px;border-radius:999px;border:1px solid var(--color-border);font-family:var(--font-mono);font-size:12px;color:var(--color-muted)}.chip-active{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-accent-text)}.toggle-row{display:flex;justify-content:space-between;align-items:center;min-height:36px}.toggle-row input{width:22px;height:22px;accent-color:var(--color-positive)}.hint-text{margin:0;color:var(--color-muted);font-family:var(--font-mono);font-size:12px;text-align:center}.error-text{margin:0;color:var(--color-overdue);text-align:center}.empty-state{margin:0;padding:28px 20px;color:var(--color-muted);text-align:center}
