:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #17253a;
  background: #f3f6fb;
  --muted: #516078;
  --line: #dce4ef;
  --accent: #234dba;
  --dark: #101e36;
  --accepted: #177c6d;
  --rejected: #bd4658;
  --unknown: #a76815;
  --pending: #758498;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: .16em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #738cf2;
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: 1.22rem; letter-spacing: -.018em; }
small { display: block; font-size: .82rem; color: var(--muted); }
button, .button {
  display: inline-block; cursor: pointer; font: inherit; font-weight: 650; padding: .57rem .9rem;
  border: 1px solid transparent; border-radius: 8px; background: var(--accent);
  color: white; text-decoration: none; width: fit-content; white-space: nowrap;
}
button:hover, .button:hover { filter: brightness(.94); }
.outline { background: white; color: var(--dark); border-color: var(--line); }
input, select { font: inherit; color: inherit; padding: .55rem .68rem; width: 100%; min-height: 44px; min-width: 0; border: 1px solid #afbfce; border-radius: 8px; background: white; }
label { display: grid; gap: .35rem; align-content: start; font-size: .9rem; font-weight: 600; }
label small { font-weight: 400; }
summary { cursor: pointer; }
.muted, .page-heading p, .card-heading p { color: var(--muted); }
.skip { position: fixed; top: -5rem; left: .5rem; z-index: 2; background: white; padding: .5rem; }
.skip:focus { top: .5rem; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 224px; padding: 1.6rem 1.05rem 1.05rem;
  background: var(--dark); color: #e6edfa; display: flex; flex-direction: column; gap: 2rem; overflow: auto;
}
.brand { display: block; width: fit-content; max-width: 100%; }
.brand-logo { display: block; width: 9rem; max-width: 100%; height: auto; }
.sidebar nav { display: grid; gap: .28rem; }
.sidebar nav a { color: #c4d2ed; text-decoration: none; border-radius: 8px; padding: .65rem .78rem; white-space: nowrap; font-weight: 550; }
.sidebar nav a:hover { background: #1b2f50; }
.sidebar nav a[aria-current] { background: #294775; color: white; }
.account { margin-top: auto; padding-top: 1rem; border-top: 1px solid #304261; display: grid; gap: .65rem; }
.account small { color: #b6c7e4; }
.account strong { overflow-wrap: anywhere; }
.account .outline { background: transparent; border-color: #536989; color: #e6edfa; font-size: .875rem; }
.workspace { margin-left: 224px; max-width: 1430px; padding: clamp(1.25rem, 4vw, 3.25rem); }
.page-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .9rem; margin-bottom: 1.6rem; }
.page-heading p { margin-top: .5rem; }
.segmented { background: #e7edf8; border-radius: 8px; color: #394e73; padding: .42rem .65rem; font-size: .875rem; }
.segmented { display: flex; padding: .2rem; }
.segmented a { padding: .35rem .65rem; border-radius: 6px; color: inherit; text-decoration: none; }
.segmented a[aria-current] { background: white; color: var(--dark); box-shadow: 0 1px 2px #253c5722; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.metric, .card { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 4px #24385208; }
.metric { padding: .85rem 1rem; display: grid; gap: .4rem; }
.metric span { color: var(--muted); font-size: .88rem; }
.metric strong { font-size: 2rem; line-height: 1.12; font-variant-numeric: tabular-nums; }
.card { margin-bottom: 1rem; min-width: 0; }
.padded, .card-heading { padding: 1.2rem 1.35rem; }
.card-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.card-heading p { margin-top: .2rem; font-size: .9rem; }
.padded > :not(:first-child) { margin-top: .8rem; }
.inset { padding: 0 1.35rem 1.2rem; }
.dot, .bar { background: var(--pending); }
.dot { display: inline-block; width: .56rem; height: .56rem; border-radius: 50%; margin-right: .38rem; vertical-align: .04em; }
.accepted { background: var(--accepted); }
.rejected { background: var(--rejected); }
.unknown { background: var(--unknown); }
.pending { background: var(--pending); }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 0 1.35rem .75rem; color: var(--muted); font-size: .85rem; }
.chart-scroll, .table-wrap { overflow-x: auto; }
.chart { display: flex; gap: .45rem; padding: 0 1.35rem .65rem; min-width: 390px; }
.chart[data-period="30"] { min-width: 720px; gap: .24rem; }
.chart-day { flex: 1; min-width: 0; text-align: center; }
.chart-day span { display: block; margin-top: .35rem; color: var(--muted); white-space: nowrap; font-size: .78rem; }
.bar-track { display: flex; flex-direction: column-reverse; height: 176px; border-bottom: 1px solid #c6d2e2; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #edf1f7 calc(25% - 1px) 25%); align-items: center; }
.bar { flex-shrink: 0; width: 70%; max-width: 55px; }
.outcomes { display: grid; gap: .65rem; }
.outcome { display: grid; grid-template-columns: 5rem 1fr minmax(2rem, auto); align-items: center; gap: .65rem; font-size: .9rem; }
.outcome strong { text-align: right; font-variant-numeric: tabular-nums; }
.outcome-track { overflow: hidden; height: .6rem; background: #edf1f7; border-radius: 8px; }
.outcome-fill { height: 100%; border-radius: inherit; }
.chart-data { margin: .2rem 1.35rem 1rem; }
.chart-data summary { color: var(--accent); font-size: .88rem; }
.empty { text-align: center; margin: 0 1.35rem 1.35rem; border: 1px dashed #cbd6e5; background: #f7f9fd; border-radius: 9px; padding: 2rem .85rem; }
.empty p { color: var(--muted); margin: .25rem 0 .65rem; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
th, td { padding: .66rem .85rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { color: #455675; background: #f5f7fc; font-weight: 650; }
.workspace > .card:not(.docs) table { white-space: nowrap; }
.status { display: inline-block; white-space: nowrap; border-radius: 20px; background: #f1f4fa; padding: .22rem .56rem; font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .9rem 1rem; margin-top: 1rem; }
.form-grid > .actions { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.create summary { color: var(--accent); font-weight: 700; }
.user { border-top: 1px solid var(--line); padding: .85rem 1.35rem; }
.user summary { display: grid; grid-template-columns: minmax(108px, 1.2fr) auto minmax(85px, 1fr); align-items: center; gap: .5rem 1.15rem; padding-left: .8rem; position: relative; }
.user summary::before { content: ''; position: absolute; top: .6rem; left: 0; border-left: 5px solid #58719a; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.user[open] summary::before { transform: rotate(90deg); }
.user summary::-webkit-details-marker { display: none; }
.user > p { margin-top: .9rem; }
.notice { background: #edf3ff; border: 1px solid #c8d8f2; border-radius: 8px; padding: .8rem; }
.notice.error { background: #fff1f3; border-color: #efc2ca; color: #8c2031; }
.key { display: block; margin-top: .45rem; overflow-wrap: anywhere; }
.doc-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-bottom: 1rem; }
.docs { scroll-margin-top: 1rem; }
.docs table { min-width: 440px; }
.docs table code { overflow-wrap: anywhere; }
.endpoint { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; background: #eef3fc; border-radius: 8px; padding: .65rem .8rem; }
.endpoint strong { color: #14695c; font-size: .85rem; }
.endpoint code { overflow-wrap: anywhere; }
figure { margin: 0; border-radius: 9px; overflow: hidden; background: var(--dark); color: #ecf2ff; }
figcaption { padding: .5rem .8rem; font-size: .83rem; background: #1b2d4b; color: #d6e4ff; }
pre { margin: 0; padding: .8rem; overflow: auto; font-size: .86rem; }
.auth { display: grid; place-items: center; padding: 1.1rem; background: #eaf0f9; }
.sign-in { width: min(100%, 420px); padding: 2rem; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 36px #1e385317; }
.sign-in .brand-logo { width: 11rem; margin-bottom: 1.4rem; }
.sign-in h1 { margin-bottom: .4rem; }
.sign-in-form { display: grid; gap: .85rem; margin-top: 1rem; }
.sign-in .notice { margin-top: .65rem; }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .sidebar { position: static; width: auto; padding: .75rem 1rem; gap: .55rem; display: grid; grid-template-columns: 1fr auto; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: .12rem; }
  .sidebar nav a { padding: .42rem .48rem; font-size: .87rem; }
  .account { border: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
  .account small { display: none; }
  .workspace { margin: 0; padding: 1rem; }
  .padded, .card-heading, .user { padding-inline: .9rem; }
  .user summary { gap: .4rem; font-size: .85rem; }
}

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; }
.call-form { display: grid; gap: .85rem; max-width: 28rem; }
.call-feedback { margin-bottom: 1rem; }
.allowance { font-variant-numeric: tabular-nums; }
.allowance strong { font-size: 1.8rem; margin-right: .2rem; }
.overview-grid meter { display: block; width: 100%; }
@media (max-width: 810px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.admin-profile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.admin-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-form { display: grid; gap: .75rem; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fd; }
.settings-form h3 { margin: 0; font-size: 1rem; }
.settings-form p { font-size: .88rem; }
.settings-form label { max-width: 24rem; }
.settings-form input[type="number"] { max-width: 9rem; }
.user summary .status { justify-self: start; }
.user[open] { background: #f8faff; }
.create > summary { display: list-item; }
.create > summary::before { content: none; }
@media (max-width: 810px) {
  .admin-settings { grid-template-columns: minmax(0, 1fr); }
}
