:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #142c31;
  background: #f1f3ec;
  --ink: #142c31;
  --muted: #4b6566;
  --line: #d8e0d8;
  --paper: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, dd, button { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.12; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #208576; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; background: #fff; padding: .65rem; z-index: 2; }
.skip-link:focus { top: .5rem; }

.site-header { background: var(--ink); color: white; }
.header-inner, .shell { max-width: 52rem; margin: 0 auto; padding: .8rem 1rem; }
.header-inner, .page-heading, .dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; letter-spacing: .08em; font-weight: 750; }
.brand-mark { width: .75rem; height: .75rem; background: #d8efb7; border-radius: 50%; }
.shell { padding-block: 1.5rem 3rem; }
.page-heading { margin-block: .15rem 1rem; }
.page-heading p { margin-top: .3rem; color: var(--muted); }
.page-heading .sample-data { display: inline-block; padding: .2rem .55rem; border-radius: .35rem; background: #fff2ce; color: #573e00; font-size: .9rem; font-weight: 650; }
.page-heading > *, .dialog-heading > * { min-width: 0; }
.button {
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #a9bfba;
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.button:disabled { cursor: default; opacity: .55; }
.button-primary { color: white; background: #206255; border-color: #206255; }
.button-header { color: white; background: transparent; border-color: #799590; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.sign-in { max-width: 31rem; margin: 1rem auto; }
.sign-in p { margin: .75rem 0 1rem; color: var(--muted); }
.sign-in form > button { margin-top: .75rem; }
.fleet-toolbar { display: flex; gap: .7rem; align-items: end; margin-bottom: 1rem; }
.fleet-toolbar label { flex: 1; }
.view-tabs { display: flex; gap: .5rem; margin-bottom: .8rem; }
.view-tabs [aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.files-search { display: grid; gap: .65rem; grid-template-columns: 2fr 1fr auto; align-items: end; margin-block: .75rem .45rem; }
.file-pagination { display: flex; gap: .6rem; margin-top: .75rem; }
.file-link { color: #185e54; }
.task-section { margin-block: .65rem 1rem; }
.task-filters { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; margin-block: .7rem .35rem; }
.cards { list-style: none; padding: 0; margin: 0; }
.cards > li { border-top: 1px solid var(--line); padding-block: .75rem; }
.cards > li:last-child { padding-bottom: .25rem; }
.task-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.card-title { display: block; font-weight: 700; }
.muted, .card-meta { color: var(--muted); font-size: .9rem; }
.next-action { white-space: pre-wrap; margin-top: .35rem; }
.task-row .button { align-self: start; }
.registers { display: grid; gap: .65rem; }
.registers summary { min-height: 44px; padding: .55rem 0; cursor: pointer; font-weight: 700; }
.registers .panel { padding-block: .3rem; }
.more { margin-block: .75rem .25rem; }
.message {
  padding: .7rem .85rem;
  background: #e8f2e8;
  border: 1px solid #c0d5c1;
  border-radius: .5rem;
  margin-bottom: .8rem;
}
.message-error { background: #fff3ee; border-color: #edc8bc; color: #823022; }

label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 650; min-width: 0; }
input, select, textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #a9bfba;
  border-radius: .5rem;
  padding: .45rem .55rem;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}
textarea { resize: vertical; }
dialog {
  max-width: 34rem;
  width: calc(100% - 1.5rem);
  max-height: min(92vh, 48rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
}
dialog::backdrop { background: #142c31a0; }
.dialog-heading { margin-bottom: .75rem; }
.form-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .8rem; }
.wide { grid-column: 1 / -1; }

@media (max-width: 24rem) {
  .shell, .header-inner { padding-inline: .7rem; }
  .panel { padding-inline: .75rem; }
  .task-filters { grid-template-columns: 1fr; }
  .files-search { grid-template-columns: 1fr; }
}
