.detail-period{margin:0}.baseline-section{display:flex;flex-direction:column;gap:8px}.baseline-section h3{margin:0;font-size:15px}.baseline-note{color:var(--text-muted);margin:0;font-size:13px}.chart-legend{color:var(--text-muted);font-size:12px;margin:0 0 -4px}.chart-band{fill:var(--text-muted);opacity:.35}:root{--explorer-health: #2b7a78;--explorer-activity: #4c9a2a;--explorer-place: #c97b2a;--explorer-self-report: #7a5bc7;--explorer-device-usage: #4a6fa5;--explorer-text: #7c7c88}.explorer{display:flex;flex-direction:column;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--border)}.explorer-header{display:flex;flex-direction:column;gap:2px}.explorer-header h3{margin:0;font-size:15px}.explorer-desc{margin:0;color:var(--text-muted);font-size:13px}.explorer-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px}.explorer-date-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-muted)}.explorer-date-field input:disabled{opacity:.5;cursor:not-allowed}.explorer-today-toggle{flex-direction:row;align-items:center;gap:6px;font-size:13px;color:var(--text)}.stream-chip-groups{display:flex;flex-wrap:wrap;gap:16px 24px}.stream-chip-group{display:flex;flex-direction:column;gap:6px}.stream-chip-group-label{font-size:11px;font-weight:600}.stream-chips{display:flex;flex-wrap:wrap;gap:6px;max-width:420px}.chip{border:1px solid var(--border);border-radius:999px;background:var(--bg);color:var(--text-muted);padding:4px 12px;font-size:12px}.chip.on{background:var(--bg-subtle);font-weight:600}.explorer-chart-wrap{width:100%}:root{--bg: #ffffff;--bg-subtle: #f7f7f8;--border: #e2e2e6;--text: #1c1c1e;--text-muted: #6b6b70;--accent: #2b6cb0;--badge-bg: #fdecec;--badge-text: #b3261e;--ok: #2f9e58;--ok-bg: #e9f7ee;--ok-soft: #6cb98a;--ok-soft-bg: #f2faf5;--warn: #b5690a;--warn-bg: #fdf1e3;--warn-row-bg: #fffaf0;--danger: #c0392b;--danger-bg: #fbeae8;--muted-cell: #9a9a9e;--muted-cell-bg: #f1f1f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:14px}button{font-family:inherit;font-size:14px;cursor:pointer;border:1px solid var(--border);background:var(--bg);border-radius:6px;padding:6px 12px;color:var(--text)}button:disabled{opacity:.5;cursor:not-allowed}button:hover:not(:disabled){background:var(--bg-subtle)}.link-button{border:none;background:none;color:var(--accent);padding:4px 6px}input,select{font-family:inherit;font-size:14px;border:1px solid var(--border);border-radius:6px;padding:6px 8px;background:var(--bg);color:var(--text)}label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-muted)}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:360px;border:1px solid var(--border);border-radius:10px;padding:32px}.login-card h1{font-size:20px;margin:0 0 8px}.login-sub{color:var(--text-muted);margin:0 0 24px}.login-card form{display:flex;flex-direction:column;gap:12px}.login-hint{color:var(--text-muted);margin:0}.login-error{color:var(--badge-text);margin-top:16px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;gap:24px;padding:12px 20px;border-bottom:1px solid var(--border)}.app-title{display:flex;flex-direction:column;gap:2px}.app-study-name{font-size:12px;color:var(--text-muted)}.app-tabs{display:flex;gap:4px;flex:1}.app-tab{border:none;background:none;border-radius:6px;padding:8px 14px;color:var(--text-muted)}.app-tab.active{background:var(--bg-subtle);color:var(--text);font-weight:600}.app-main{flex:1;padding:20px;overflow-x:auto}.page{display:flex;flex-direction:column;gap:16px;max-width:100%}.page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.page-header h2{margin:0;font-size:18px}.page-header-meta{display:flex;align-items:center;gap:12px;color:var(--text-muted);font-size:13px}.page-loading,.page-error,.picker-empty{color:var(--text-muted)}.page-error{color:var(--badge-text)}.controls-row{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end}.date-range{display:flex;gap:12px;align-items:flex-end}.date-range-warning{color:var(--badge-text);font-size:12px;align-self:center}.picker-list{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;border:1px solid var(--border);border-radius:6px;padding:8px 12px}.picker-item{flex-direction:row;align-items:center;gap:8px;font-size:14px;color:var(--text)}.stream-select{min-width:220px}.table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:8px}table{border-collapse:collapse;width:100%;font-size:13px}thead th{position:sticky;top:0;background:var(--bg-subtle);text-align:left;padding:8px 10px;border-bottom:1px solid var(--border);white-space:nowrap}tbody td{padding:8px 10px;border-bottom:1px solid var(--border);white-space:nowrap;vertical-align:middle}.badge-wrap{display:inline-flex;align-items:center;gap:6px}.status-text-danger{color:var(--danger);font-weight:600}.status-text-ok{color:var(--ok)}.badge{display:inline-block;background:var(--badge-bg);color:var(--badge-text);border-radius:4px;padding:2px 8px;font-size:12px;white-space:nowrap}.badge-warn{background:var(--warn-bg);color:var(--warn)}.heatmap-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:8px}.heatmap-table{border-collapse:separate;border-spacing:2px}.heatmap-corner,.heatmap-date-head{font-size:11px;color:var(--text-muted);font-weight:400;padding:4px;text-align:center;white-space:nowrap}.heatmap-row-label{font-size:12px;padding:4px 10px 4px 4px;white-space:nowrap;border:none}.heatmap-cell-wrap{padding:0;border:none}.heatmap-cell{border:none;border-radius:3px;padding:0;display:block}.chart-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.chart-svg{border:1px solid var(--border);border-radius:8px;background:var(--bg)}.chart-title{font-size:11px;fill:var(--text-muted)}.chart-tick{font-size:9px;fill:var(--text-muted)}.chart-gridline{stroke:var(--border);stroke-width:1}.chart-line{stroke:var(--accent);stroke-width:1.5}.chart-dot{fill:var(--accent)}.chart-empty{fill:var(--text-muted);font-size:12px}.export-columns{display:flex;flex-wrap:wrap;gap:24px}.export-column{min-width:220px}.export-column h3{font-size:13px;color:var(--text-muted);margin:0 0 8px}.export-progress{color:var(--text-muted)}.detail-meta{color:var(--text-muted);margin:0}.issue-log{border:1px solid var(--border);border-radius:8px;overflow:hidden}.issue-log-header{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--bg-subtle);border-bottom:1px solid var(--border)}.issue-log-header h3{margin:0;font-size:14px}.issue-count-badge{background:var(--danger-bg);color:var(--danger);border-radius:999px;padding:1px 9px;font-size:12px;font-weight:600}.issue-log-empty{margin:0;padding:14px;color:var(--text-muted)}.issue-log-error{color:var(--badge-text);margin:0}.issue-list{list-style:none;margin:0;padding:0}.issue-row{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--border)}.issue-row:last-child{border-bottom:none}.issue-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.issue-dot-danger{background:var(--danger)}.issue-dot-warn{background:var(--warn)}.issue-code{font-weight:600;flex-shrink:0}.issue-message{flex:1;color:var(--text)}.issue-resolve-btn{flex-shrink:0}.status-summary{margin:0;color:var(--text-muted);font-size:13px}.status-note{margin:0;color:var(--text-muted);font-size:12px}.status-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--text-muted)}.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-row-swatch{display:inline-block;width:14px;height:10px;border-radius:2px;background:var(--warn-row-bg);border:1px solid var(--warn)}.status-table .scope-group-head{text-align:center;background:var(--bg-subtle)}.status-cell{display:table-cell}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.status-dot-ok{background:var(--ok)}.status-dot-ok-soft{background:var(--ok-soft-bg);border:1px solid var(--ok-soft)}.status-dot-danger{background:var(--danger)}.status-dot-muted{background:var(--muted-cell)}.status-cell-ok-soft{color:var(--text-muted)}.status-cell-danger{color:var(--danger)}.status-cell-muted{color:var(--muted-cell)}tr.row-alert td{background:var(--warn-row-bg)}.sticky-col{position:sticky;z-index:2;background:var(--bg)}.sticky-col-code{left:0;min-width:64px}.sticky-col-label{left:64px;min-width:140px}thead .sticky-col{z-index:4;background:var(--bg-subtle)}tr.row-alert td.sticky-col{background:var(--warn-row-bg)}
