/* Kit 0.1.20, assembled from the template library. In the library, change it there and assemble again. */
:root {
  --primary: #0b7285;
  --accent: #d88934;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --ink: #182d35;
  --muted: #536971;
  --line: #dbe5e8;
  --tint: #e5f3f4;
  --good: #167449;
  --bad: #ac3f2d;
  --radius: 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
:root[data-theme="dark"] {
  --bg: #101d24;
  --surface: #192b34;
  --ink: #ecf4f5;
  --muted: #b1c5cc;
  --line: #334b55;
  --tint: #203f49;
  --good: #81dbad;
  --bad: #ffb19d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  min-height: 42px;
}
button:disabled { opacity: .55; cursor: wait; }
button.secondary, a.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
a { color: var(--primary); }
:focus-visible { outline: 3px solid #f0a529; outline-offset: 3px; }
input, select, textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
input[type="checkbox"] { width: auto; display: inline; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
textarea { min-height: 100px; resize: vertical; }
h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.8px; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 0 0 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 18px; }
small, .muted { color: var(--muted); }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 26px 18px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 750; margin-bottom: 30px; }
.brand-mark { color: white; background: var(--primary); border-radius: 10px; padding: 8px 12px; font-size: 22px; }
nav { display: grid; gap: 4px; }
nav a { color: var(--muted); padding: 10px 14px; text-decoration: none; font-size: 14px; border-radius: 8px; }
nav a:hover, nav a[aria-current="page"] { background: var(--tint); color: var(--primary); font-weight: 650; }
.nav-gap { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.workspace { min-width: 0; }
.topbar {
  display: flex; gap: 16px; justify-content: space-between; padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}
.topbar .tools { display: flex; align-items: center; gap: 10px; }
.topbar select { width: auto; }
main { max-width: 1440px; margin: auto; padding: 32px; }
.heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
.heading p { max-width: 780px; font-size: 14px; color: var(--muted); }
.actions, .filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 16px 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.pagination-summary { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.filters label { flex: 1; min-width: 135px; }
.filters button { flex: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.card, .panel {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: var(--space, 24px);
}
.card { color: var(--ink); text-decoration: none; position: relative; overflow: hidden; }
.card:first-child { border-top: 3px solid var(--primary); }
.card .value { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; margin: 12px 0 8px; }
.card .label { color: var(--muted); font-size: 13px; }
.card .delta { font-size: 12px; color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }
.chart { width: 100%; height: 210px; color: var(--primary); }
.chart text { fill: var(--muted); font-size: 12px; }
.chart-grid { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: var(--tint); font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td button { padding: 5px 10px; min-height: 32px; }
form.panel { max-width: 800px; display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.notice { padding: 12px 18px; border-radius: 8px; background: var(--tint); color: var(--muted); font-size: 13px; }
.error { color: var(--bad); white-space: pre-wrap; }
.signin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin { width: min(100%, 460px); }
.signin form { display: grid; gap: 18px; }
.signin h1 { margin-top: 26px; }
#toast { position: fixed; right: 20px; bottom: 20px; max-width: 90vw; z-index: 20; }
#toast:not(:empty) { padding: 14px 22px; background: var(--ink); color: var(--bg); border-radius: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-menu { display: none; }
@media (max-width: 1050px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  main, .topbar { padding: 22px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 12px; gap: 8px; }
  .topbar .brand-label { display: none; }
  .topbar .tools { gap: 6px; }
  .topbar button { padding: 8px 10px; }
  main { padding: 20px 14px; }
  .heading { display: block; }
  .cards { gap: 10px; }
  .card { padding: 16px; }
  .card .value { font-size: 23px; }
  .card .label { font-size: 12px; }
  .panel { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 12px; border-bottom: 1px solid var(--line); }
  td { padding: 6px; border: 0; display: grid; grid-template-columns: 45% 55%; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .table-wrap { overflow: hidden; }
}

.card { display: block; text-align: left; width: 100%; }
.card .delta, .card .good, .card .bad { display: block; }
[hidden] { display: none !important; }

fieldset {
  min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
}
fieldset label + label { margin-top: 12px; }
[data-setting] { min-width: 0; }
/* The system palette also covers the document before its local module has executed. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #101d24;
    --surface: #192b34;
    --ink: #ecf4f5;
    --muted: #b1c5cc;
    --line: #334b55;
    --tint: #203f49;
    --good: #81dbad;
    --bad: #ffb19d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.chart-panel { min-width: 0; overflow: hidden; position: relative; }
.chart-panel h2 { overflow-wrap: anywhere; }
.chart { overflow: hidden; height: auto; max-height: 340px; }
.chart .axis-desktop, .chart .axis-mobile { font-size: 20px; }
.axis-mobile { display: none; }
.chart-info {
  position: absolute;
  z-index: 1;
  top: 55px;
  left: 12px;
  right: 12px;
  pointer-events: none;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.chart-point, .axis-label { cursor: pointer; }
.legend { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .axis-desktop { display: none; }
  .axis-mobile { display: block; }
}
