/* site.css - layout for the account / list / staff pages; the report itself uses the viewer's app.css */
a { color: var(--accent); }
.top .brand { color: var(--text-primary); text-decoration: none; }
.site-nav { display: flex; gap: 14px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; }
.page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.report-page { max-width: 1500px; margin: 0 auto; padding: 12px 16px 32px; }
.narrow { max-width: 420px; margin: 40px auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 4px; color: var(--text-secondary); }
.stack input, .stack textarea, .stack select { width: 100%; box-sizing: border-box; }
textarea { font: inherit; color: inherit; background: var(--surface-1); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.inline-form { display: inline; margin: 0; }
.row-btn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-btn label { display: flex; gap: 6px; align-items: center; color: var(--text-secondary); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.linkish { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 600; }
.btn { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-1);
  color: var(--text-primary); text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.notice { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 4px; }
.notice.bad { border-left-color: var(--critical); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.pill.warn { border-color: var(--critical); color: var(--critical); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list th.num, table.list td.num { text-align: right; }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin: 4px 0 8px; }
.report-head h1 { margin-bottom: 2px; }
.chart-img { width: 100%; height: auto; display: block; }
.filters .btn { padding: 4px 10px; }
.subnav { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; padding-bottom: 6px; flex-wrap: wrap; }
.subnav a { text-decoration: none; color: var(--text-secondary); font-weight: 600; }
.subnav a.on { color: var(--text-primary); border-bottom: 2px solid var(--accent); }
/* notes */
.notes { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.notes li { border-left: 3px solid var(--border); padding: 4px 0 4px 10px; }
.note-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.note-meta a.pill { text-decoration: none; }
.note-text { white-space: pre-wrap; margin-top: 2px; }
.note-form textarea { min-height: 64px; }
/* share */
.share-link { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
/* light / dark: chart images exist in both themes, show the matching one */
.chart-img.theme-dark { display: none; }
:root[data-theme="dark"] .chart-img.theme-dark { display: block; }
:root[data-theme="dark"] .chart-img.theme-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chart-img.theme-dark { display: block; }
  :root:not([data-theme="light"]) .chart-img.theme-light { display: none; }
}
.theme-toggle { margin-left: 4px; width: 34px; height: 30px; padding: 0; border-radius: 15px; font-size: 15px; line-height: 1; }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
}
code.select { user-select: all; word-break: break-all; }
.progress .indeterminate { width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { margin-left: -35%; } to { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress .indeterminate { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 600px) { .filters { position: static; } }
