/*
 * Compact Sabinok dashboard styling based on E-11 lambda-home.
 * The header keeps tab overflow within the navigation at narrow widths.
 * Forms, table legends, and charts share readable contrast and spacing.
 * CSS is bundled with the Lambda and served separately from private pages.
 * No fonts, stylesheets, or scripts are required from third-party hosts.
 */
:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #17252e;
  background: #fff;
  --accent: #175374;
  --edge: #d8e1e6;
  --quiet: #485d69;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid #145a86; outline-offset: 2px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .5rem; background: white; z-index: 10; }
.skip-link:focus { top: .5rem; }
.bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem max(1rem, calc((100vw - 70rem) / 2));
  background: #f4f7f9;
  border-bottom: 1px solid var(--edge);
}
.brand { font-weight: 700; white-space: nowrap; text-decoration: none; color: inherit; }
.tabs { display: flex; min-width: 0; overflow-x: auto; flex: 1; }
.tabs a, .tabs button { padding: .5rem .75rem; text-decoration: none; white-space: nowrap; }
.tabs form { display: flex; }
.tabs button { border: 0; border-radius: 0; }
.tabs a[aria-current] { color: #143349; box-shadow: inset 0 -3px var(--accent); }
main, footer { max-width: 70rem; padding: 1.25rem 1rem; margin: auto; }
footer { border-top: 1px solid var(--edge); color: var(--quiet); font-size: .85rem; }
h1 { margin: 0 0 .55rem; line-height: 1.2; overflow-wrap: anywhere; }
h2 { margin: 1.2rem 0 .4rem; font-size: 1.15rem; overflow-wrap: anywhere; }
p { margin: .4rem 0 .9rem; overflow-wrap: anywhere; }
.welcome { padding: 2rem 0; }
.actions, .settings-form { display: flex; gap: .55rem; align-items: end; flex-wrap: wrap; }
button, .button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-block; min-height: 2.5rem; padding: .35rem .7rem; border: 1px solid #97afbc; border-radius: .2rem;
  color: #143349; background: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
}
button:disabled { opacity: .55; cursor: default; }
.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.plain { background: transparent; border-color: transparent; }
label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; }
label.checkbox { flex-direction: row; align-items: baseline; }
input, textarea, select {
  min-width: 0; max-width: 100%; padding: .35rem; color: inherit;
  border: 1px solid #97afbc; border-radius: .2rem;
}
.stack { display: grid; gap: .65rem; justify-items: start; max-width: 36rem; }
.stack label { width: 100%; }
.question-list { padding-left: 1.5rem; }
.question { display: grid; gap: .4rem; max-width: 46rem; padding: .5rem 0; }
.table-scroll { overflow-x: auto; }
.request-list { list-style: none; padding: 0; max-width: 40rem; }
.request-list li { padding: .7rem 0; border-bottom: 1px solid var(--edge); }
.request-list h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
table { border-collapse: collapse; margin-bottom: .75rem; }
caption { text-align: left; white-space: normal; }
th, td { border-bottom: 1px solid var(--edge); text-align: left; padding: .3rem .6rem; white-space: nowrap; }
thead { background: #f4f7f9; }
.notice { border-left: 3px solid var(--accent); padding: .4rem .75rem; background: #f4f7f9; }
.run { border-top: 1px solid var(--edge); margin-top: 1rem; padding: 0 0 .75rem; }
.muted { color: var(--quiet); }
.settings-form input { width: 8rem; }
.score-chart { max-width: 48rem; margin: 1rem 0 1.5rem; }
.score-chart h3 { margin: 0; }
.score-chart > svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin: 0; }
.chart-legend label { display: inline-flex; flex-direction: row; font-weight: 400; align-items: center; gap: .35rem; }
.score-chart g[hidden] { display: none; }
.axis { fill: none; stroke: #99adb8; }
.series { fill: none; stroke-width: 2.5; }
@media (max-width: 38rem) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .tabs { grid-row: 2; grid-column: 1 / -1; }
}

.edit-mark { stroke: #6b7780; stroke-width: 1; stroke-dasharray: 2 3; }
#accounts th { position: relative; }
#accounts td { vertical-align: top; }
#accounts input[type=number] { width: 6rem; }
#accounts details { max-width: 25rem; white-space: normal; }
.resize-column { position: absolute; inset: 0 0 0 auto; width: .5rem; cursor: col-resize; touch-action: none; }
.run-header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .5rem; }
.run-header h2 { margin: 0; }
.run-header .actions { margin-left: auto; align-items: center; }
.run-header .button, .run-header button { padding: .2rem .5rem; }
.run { padding-bottom: .4rem; margin-top: .5rem; }
#question-table { width: 60%; max-width: 60%; table-layout: fixed; }
#question-status { min-height: 1.5em; }
#question-table td { white-space: normal; padding: .2rem .3rem; }
#question-table th:last-child { width: 5rem; }
.question-text { display: block; width: 100%; min-height: 2rem; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; resize: none; overflow: hidden; border-color: transparent; background: transparent; }
.question-text:focus { border-color: #97afbc; background: white; }
.priming-text { width: 100%; min-height: 4rem; font: inherit; }
.documents { width: 100%; }
.documents td:first-child { white-space: normal; overflow-wrap: anywhere; }
.time-zone-picker { position: relative; margin-left: auto; white-space: nowrap; }
.time-zone-picker summary { cursor: pointer; }
.time-zone-picker > div { position: absolute; top: 2rem; right: 0; padding: .8rem; border: 1px solid var(--edge); background: white; z-index: 5; }
.time-zone-picker input { width: 18rem; max-width: 75vw; }
#time-zones { max-height: 18rem; overflow-y: auto; overflow-x: hidden; }
#time-zones button { display: block; width: 100%; text-align: left; white-space: normal; border: 0; }
#time-zones button[aria-pressed="true"] { background: #dcecf6; font-weight: bold; }
.time-zone-picker > div { width: min(27rem, 90vw); white-space: normal; }
.effective-user { margin: .6rem auto; max-width: 68rem; }
.date-tick { font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.generation-form { margin-top: 1rem; }
dialog { border: 1px solid var(--edge); border-radius: .3rem; padding: 1.2rem; max-width: min(90vw, 36rem); }
dialog::backdrop { background: #17252e66; }
.admin-sort[aria-sort], th[aria-sort] .admin-sort { text-decoration: underline; }
