:root{--bg: #ffffff;--text: #191919;--text-secondary: #787774;--border: #ebebea;--accent-in: #e03e3e;--accent-out: #0b6e99;--easing: cubic-bezier(.2, 0, 0, 1);--header-h: 56px;--legend-h: 64px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,Segoe UI,Hiragino Kaku Gothic ProN,system-ui,sans-serif;font-size:14px;line-height:1.6;overscroll-behavior:none;-webkit-font-smoothing:antialiased}body{height:100dvh;overflow:hidden;touch-action:manipulation}#app{display:flex;flex-direction:column;width:100%;max-width:480px;margin:0 auto;height:100dvh;border-left:1px solid var(--border);border-right:1px solid var(--border)}button{font:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer}.app-header{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);padding:0 20px;padding-top:env(safe-area-inset-top);border-bottom:1px solid var(--border);font-size:15px;font-weight:500}.app-title{display:flex;align-items:center;gap:8px}.app-year{color:var(--text-secondary);font-size:13px}.back-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;font-size:18px;transition:background .15s var(--easing)}.back-btn:active{background:var(--border)}.app-legend{height:var(--legend-h);padding:8px 20px;padding-bottom:calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:2px;font-size:12px;color:var(--text-secondary)}.legend-row{display:flex;align-items:center;gap:6px}.legend-row span+span{margin-right:12px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%}.dot-in{background:var(--accent-in)}.dot-out{background:var(--accent-out)}.legend-note{font-size:11px}.sheet{position:fixed;left:50%;transform-origin:bottom;bottom:0;width:100%;max-width:480px;height:100dvh;margin-left:-240px;background:var(--bg);border-top:1px solid var(--border);border-left:1px solid var(--border);border-right:1px solid var(--border);border-radius:12px 12px 0 0;transition:transform .32s var(--easing);display:flex;flex-direction:column;pointer-events:auto;z-index:10}@media(max-width:479px){.sheet{left:0;margin-left:0}}.sheet-handle{height:28px;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none}.sheet-handle>div{width:36px;height:4px;background:#d3d3d0;border-radius:2px}.sheet-content{padding:0 24px 32px;overflow-y:auto;flex:1}.sheet-title{font-size:24px;font-weight:600;margin:4px 0 0}.sheet-sub{color:var(--text-secondary);margin:0 0 24px}.sheet-stat{display:flex;align-items:baseline;justify-content:space-between;padding:12px 0}.stat-label{color:var(--text-secondary)}.stat-value{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}.stat-in{color:var(--accent-in)}.stat-out{color:var(--accent-out)}.sheet-section-title{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary);margin:24px 0 8px;font-weight:500}.sheet-list{list-style:none;padding:0;margin:0}.sheet-list li{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}.sheet-list li.empty{color:var(--text-secondary);font-style:italic}.sheet hr{border:none;border-top:1px solid var(--border);margin:8px 0}
