:root{--bg:#faf9f7;--surface:#fff;--border:#e5e7eb;--text:#1f2937;--text-muted:#6b7280;--text-faint:#9ca3af;--accent:#2563eb;--accent-hover:#1d4ed8}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--text);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5}button{font:inherit;cursor:pointer}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.app{flex-direction:column;min-height:100%;display:flex}.header{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;justify-content:space-between;align-items:center;padding:12px 24px;display:flex;position:sticky;top:0}.header h1{margin:0;font-size:18px;font-weight:600}.header-actions{align-items:center;gap:12px;display:flex}.signout{border:1px solid var(--border);color:var(--text-muted);background:0 0;border-radius:6px;padding:6px 12px}.signout:hover{color:var(--text);border-color:var(--text-muted)}.main{flex:1;width:100%;max-width:960px;margin:0 auto;padding:24px}.range-bar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.range-bar label{color:var(--text-muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.range-bar input[type=date]{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;padding:6px 8px}.range-bar button{background:var(--accent);color:#fff;border:none;border-radius:6px;align-self:flex-end;padding:8px 16px;font-weight:500}.range-bar button:hover:not(:disabled){background:var(--accent-hover)}.range-bar button:disabled{opacity:.5;cursor:default}.center{min-height:60vh;color:var(--text-muted);justify-content:center;align-items:center;display:flex}.empty{text-align:center;color:var(--text-muted);padding:64px 16px}.empty .empty-icon{margin-bottom:8px;font-size:48px}.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:16px;padding:12px 16px}.history-table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px;overflow-x:auto}.history-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.history-table th,.history-table td{text-align:center;border-bottom:1px solid var(--border);padding:8px 6px;font-size:14px}.history-table th{color:var(--text-muted);text-transform:none;font-size:12px;font-weight:600}.history-table tr:last-child td{border-bottom:none}.history-table .date-cell{text-align:left;white-space:nowrap;min-width:64px;color:var(--text);font-weight:500}.history-table .cell{min-width:56px}.history-table .cell.empty{color:var(--text-faint)}.history-table .cell.extra{color:var(--text-muted);white-space:nowrap;font-size:12px}.history-table .cell.has-annotation{cursor:help}.history-table .cell.has-annotation .annotation{color:var(--text-muted);font-size:11px;display:none}@media (hover:hover) and (pointer:fine){.history-table .cell.has-annotation:hover .annotation{display:inline}}.history-table .cell.has-annotation.revealed .annotation{display:inline}.legend{border-top:1px solid var(--border);color:var(--text-muted);flex-wrap:wrap;justify-content:center;gap:12px 20px;margin-top:12px;padding-top:10px;font-size:12px;display:flex}.legend-item{white-space:nowrap}
