@font-face {
  font-family: 'Inter Tight';
  src: url('/assets/inter-tight.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #111111;
  --surface: #141414;
  --surface-raised: #202020;
  --line: #383838;
  --control-border: #808080;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #aaaaaa;
  --lime: #6bd237;
  --on-lime: #000000;
  --focus: #6bd237;
  --button-focus: #ffffff;
  --error: #ff7373;
  --content-gutter: 24px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 100%;
}
:root[data-theme='light'] {
  color-scheme: light;
  --page: #f4f4f4;
  --surface: #ffffff;
  --surface-raised: #eeeeee;
  --line: #d8d8d8;
  --control-border: #767676;
  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #595959;
  --focus: #2e7d07;
  --button-focus: #111111;
  --error: #b3261e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { overflow-wrap: anywhere; }
.site-header {
  min-height: 80px;
  padding: 16px var(--content-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-link { font-size: 1rem; font-weight: 600; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-button, .secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 0.8125rem;
}
.demo-notice, .storage-notice {
  margin: 0;
  padding: 12px var(--content-gutter);
  background: var(--surface-raised);
  border-block: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.storage-notice { color: var(--error); }
.login-main {
  flex: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  width: calc(100% - var(--content-gutter) - var(--content-gutter));
  margin-inline: var(--content-gutter);
  padding-block: 32px 48px;
}
.login-card {
  width: min(100%, 560px);
  min-width: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card-heading { margin-bottom: 24px; }
.card-heading p { margin: 8px 0 0; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.role-picker { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.role-picker legend { margin-bottom: 8px; font-size: 0.875rem; font-weight: 700; }
.role-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}
.role-option:has(input:checked) { background: var(--surface-raised); border-color: var(--focus); }
.role-option input { margin: 4px 0 0; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--focus); }
.role-option strong { display: block; font-weight: 600; }
.role-option span span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.875rem; }
.form-field { margin-bottom: 20px; min-width: 0; }
.form-field > label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 700; }
.form-field input, select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: 4px;
}
.submit-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--lime);
  color: var(--on-lime);
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.submit-button:focus-visible { outline-color: var(--button-focus); }
.submit-button:disabled { background: var(--surface-raised); color: var(--text-muted); }
.field-error { color: var(--error); font-size: 0.875rem; }
.app-main {
  flex: 1;
  width: calc(100% - var(--content-gutter) - var(--content-gutter));
  margin: 32px var(--content-gutter) 48px;
  min-width: 0;
}
.workspace-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.workspace-heading p { margin: 8px 0 0; }
.badge { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); font-size: 0.8125rem; }
.feedback { color: var(--text-secondary); }
.feedback:not(:empty) { padding: 12px; background: var(--surface-raised); border-left: 3px solid var(--focus); }
.panel { margin-top: 24px; padding: 24px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel > p { margin: 8px 0 20px; }
.table-scroll { position: relative; width: 100%; overflow: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-raised); font-size: 0.875rem; font-weight: 700; }
td { min-width: 120px; max-width: 320px; overflow-wrap: anywhere; }
.inline-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 16px; margin-top: 24px; }
.inline-form .form-field { margin: 0; }
.inline-form .submit-button { width: auto; }
.run-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.assignment-form { display: flex; gap: 8px; align-items: center; min-width: 290px; }
.assignment-form select { flex: 1; width: auto; }
.assignment-form button { flex-shrink: 0; }
.site-footer { padding: 16px var(--content-gutter) 24px; color: var(--text-muted); text-align: center; font-size: 0.8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  :root { --content-gutter: 12px; }
  .site-header { min-height: 72px; padding-block: 12px; }
  .login-main { padding-block: 24px 32px; }
  .login-card { padding: 20px; }
  .login-card select { font-size: 1rem; }
  .role-option:has(input:not([value='driver'])) { display: none; }
}
