.chips { display: flex; gap: 8px; margin: 22px 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; color: var(--muted); }
.chips button.selected { background: var(--accent-soft); border-color: #316c57; color: var(--accent); }
.date-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin: -10px 0 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.date-range[hidden] { display: none; }
.date-range label { color: var(--muted); font-size: 12px; }
.date-range input { display: block; width: 100%; margin-top: 6px; padding: 10px; color: var(--ink); background: #0c1218; border: 1px solid var(--line); border-radius: 10px; color-scheme: dark; }
.date-range > span { padding-bottom: 10px; color: var(--muted); font-size: 12px; }
.date-range button { grid-column: 1 / -1; border: 0; border-radius: 11px; padding: 11px; color: #062018; background: var(--accent-strong); font-weight: 800; }
.date-error { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: 12px; }
.list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 15px; border-bottom: 1px solid var(--line); }
.list time { color: var(--muted); font-size: 12px; }
.list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list b { font-size: 14px; text-align: right; }
.plus { color: var(--accent); }
.hero-card { margin: 16px 0; }
.hero-card strong { display: block; font-size: 28px; margin: 7px 0; }
.hero-card.pale { background: var(--accent-soft); border-color: #285b49; }
.limit-card { margin: 14px 0 10px; padding: 20px; border: 1px solid #4d3d16; border-radius: 20px; background: linear-gradient(145deg, #322812, #1d180d); box-shadow: var(--shadow); }
.limit-card p, .limit-card span { display: block; margin: 0; color: #d5c28d; font-size: 12px; }
.limit-card strong { display: block; margin: 8px 0 5px; font-size: clamp(28px, 9vw, 38px); color: #fde68a; }
.limit-progress { height: 10px; margin-top: 16px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.09); }
.limit-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #fbbf24); }
.limit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.limit-stats article { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.limit-stats span { display: block; color: var(--muted); font-size: 12px; }
.limit-stats b { display: block; margin-top: 6px; font-size: 15px; }
.limit-history article { grid-template-columns: 112px minmax(0,1fr) auto; }
.limit-history time { line-height: 1.45; }
.breakdown article { display: grid; grid-template-columns: 88px 1fr 62px; gap: 8px; align-items: center; margin: 16px 0; font-size: 13px; }
.breakdown i { height: 9px; background: var(--surface-3); border-radius: 8px; overflow: hidden; }
.breakdown em { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), #22c55e); }
.breakdown b { text-align: right; }
.opening > p { font-size: 14px; line-height: 1.65; margin: 22px 0; }
.opening article { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 10px 0; }
.opening article > b { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.opening article span { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.primary { width: 100%; border: 0; border-radius: 14px; background: var(--accent-strong); color: #062018; padding: 14px; font-weight: 800; margin-top: 14px; }
nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: rgba(12,17,23,.92); border-top: 1px solid var(--line); padding: 8px max(8px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); backdrop-filter: blur(18px); }
nav[hidden] { display: none; }
nav button { width: min(76px, 19vw); border: 0; background: transparent; color: var(--muted); font-size: 20px; padding: 4px; }
nav span { display: block; font-size: 10px; margin-top: 2px; }
nav button.active { color: var(--accent); }
