@font-face {
  font-family: "DM Sans";
  src: url("./vendor/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --surface: #fffefa;
  --rail: #f0eee7;
  --ink: #202331;
  --muted: #555863;
  --rule: #d5d2c9;
  --rule-light: #e8e4da;
  --navy: #293b5a;
  --navy-dark: #202f49;
  --focus: #405fa0;
  --accent: #e9eaf3;
  --subtle: #eeece5;
  --rust: #843e29;
  --warning: #f8efe3;
  --warn-ink: #783b25;
  --danger: #853a33;
  --sidebar-width: 14rem;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 515; }
h2 { font-size: 1.3rem; line-height: 1.26; letter-spacing: -.029em; }
h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -.012em; }
p { line-height: 1.6; }
svg { display: block; width: 1.2rem; height: 1.2rem; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .7rem; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.loading { margin: 4rem auto; text-align: center; color: var(--muted); }
.shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  padding: 1.55rem 1.05rem 1.15rem; background: var(--rail); border-right: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: .65rem; padding: .1rem .26rem 0; color: var(--ink); font-weight: 720; letter-spacing: -.036em; text-decoration: none; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; }
.nav-label, .eyebrow {
  text-transform: uppercase; letter-spacing: .135em; font: 600 .75rem var(--mono);
}
.nav-label { margin: 3rem .63rem .6rem; padding-bottom: .63rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.navigation { display: grid; gap: .2rem; }
.nav-button {
  width: 100%; display: flex; align-items: center; gap: .65rem; text-align: left;
  border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent;
  color: var(--muted); padding: .7rem .55rem; font-size: .9rem; font-weight: 570; min-height: 2.75rem;
}
.nav-button:hover { color: var(--ink); background: var(--subtle); }
.nav-button[aria-current="page"] { color: var(--navy-dark); border-left-color: var(--navy); background: var(--accent); font-weight: 700; }
.nav-button svg { width: 1.07rem; height: 1.07rem; }
.side-bottom { margin-top: auto; padding: .9rem .54rem .35rem; border-top: 1px solid var(--rule); }
.side-bottom strong { display: flex; align-items: center; gap: .42rem; font-size: .87rem; margin-bottom: .36rem; color: var(--ink); }
.side-bottom strong svg { color: var(--navy); width: .98rem; height: .98rem; }
.side-bottom p { color: var(--muted); font-size: .81rem; }
.main-column { min-width: 0; }
.topbar {
  min-height: 4.45rem; padding: .68rem clamp(1.25rem, 4vw, 3.55rem); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.crumb { display: flex; align-items: center; gap: .43rem; font-size: .875rem; color: var(--muted); }
.crumb svg { width: .85rem; height: .85rem; color: var(--muted); }
.crumb strong { color: var(--ink); font-weight: 645; }
.main { max-width: 96rem; margin: 0 auto; min-height: calc(100dvh - 4.45rem); padding: clamp(1.8rem, 4.4vw, 4rem) clamp(1.25rem, 4vw, 3.55rem) 3rem; outline: none; }
.hero { margin-bottom: 2rem; }
.eyebrow { color: var(--rust); display: flex; align-items: center; gap: .65rem; margin-bottom: .88rem; }
.eyebrow::before { content: ""; width: 1.2rem; height: 1px; background: currentColor; }
.hero p { margin-top: .85rem; color: var(--muted); max-width: 44rem; line-height: 1.65; }
.section-gap { margin-top: 1.2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 2.7rem; padding: .58rem .83rem;
  border: 1px solid var(--rule); border-radius: .26rem; background: var(--surface); color: var(--ink);
  font-size: .89rem; font-weight: 680; text-decoration: none; line-height: 1.2;
}
.button:hover { background: var(--subtle); border-color: #bbb8ae; }
.button svg { width: 1.05rem; height: 1.05rem; }
.button.primary { color: white; border-color: var(--navy-dark); background: var(--navy-dark); }
.button.primary:hover { background: #334b73; }
.button.accent { color: var(--navy-dark); border-color: #c4c8da; background: var(--accent); }
.button.accent:hover { background: #dedff0; }
.button.ghost { background: transparent; }
.button.ghost:hover { background: var(--subtle); }
.button.compact { min-height: 2.2rem; padding: .4rem .64rem; }
.button.destructive { color: var(--danger); }
.action-row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.end { justify-content: flex-end; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, .88fr); gap: 1.05rem; align-items: start; }
.layer { border: 1px solid var(--rule); border-radius: .22rem; background: var(--surface); min-width: 0; }
.layer-head {
  padding: 1.05rem 1.22rem; display: flex; align-items: flex-start; justify-content: space-between;
  gap: .8rem; border-bottom: 1px solid var(--rule-light);
}
.layer-head p { margin-top: .35rem; }
.layer[aria-label="Drive plan"] .layer-head { box-shadow: inset 0 2px 0 var(--navy); }
.head-title { display: flex; align-items: center; gap: .65rem; }
.head-icon {
  width: 1.8rem; height: 1.8rem; border: 1px solid #dcdce5; background: #f0f0f5; color: var(--navy);
  border-radius: .18rem; display: grid; place-items: center; flex: none;
}
.head-icon svg { width: 1.02rem; height: 1.02rem; }
.layer-body { padding: 1.12rem 1.22rem; }
.stack { display: grid; gap: .95rem; }
.stack-tight { display: grid; gap: .55rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); margin-bottom: 1.35rem; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; padding: .9rem 1.06rem .88rem; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat svg { color: var(--navy); width: 1.13rem; height: 1.13rem; margin-top: .14rem; }
.stat span { display: block; color: var(--muted); font-size: .875rem; }
.stat strong { display: block; margin-bottom: .12rem; font: 620 1.23rem/1.15 var(--mono); }
label, legend { font-weight: 650; font-size: .875rem; }
.field { display: grid; gap: .38rem; min-width: 0; }
.field input:not([type="checkbox"]), .field select, .field textarea, .search-input {
  min-width: 0; width: 100%; border: 1px solid #c8c4bb; border-radius: .22rem; background: #fff; color: var(--ink); padding: .65rem .75rem;
}
.field select {
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555863' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.05rem;
}
.field textarea { resize: vertical; min-height: 9.4rem; line-height: 1.65; }
#request-list { font-family: var(--mono); font-size: .875rem; }
.field textarea::placeholder { color: #6b6d77; }
.file-text { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; }
.check-field { display: flex; gap: .55rem; align-items: flex-start; font-weight: 530; }
.check-field input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); flex: none; margin-top: .14rem; }
.rule-title { display: flex; gap: .75rem; align-items: center; color: var(--muted); font-size: .84rem; }
.rule-title::after { content: ""; height: 1px; background: var(--rule-light); flex: 1; }
.empty { min-height: 19.5rem; display: grid; place-items: center; text-align: center; padding: 1.45rem; }
.empty-inner { max-width: 21rem; display: grid; justify-items: center; gap: .58rem; }
.empty-inner p { color: var(--muted); font-size: .94rem; }
.empty-inner .button { margin-top: .35rem; }
.drive-art { width: 9.1rem; height: 5.6rem; position: relative; margin-bottom: .2rem; display: grid; place-items: center; }
.drive-art::before {
  content: ""; position: absolute; inset: 0; background:
    linear-gradient(var(--rule-light) 1px, transparent 1px) 0 0 / .56rem .56rem,
    linear-gradient(90deg, var(--rule-light) 1px, transparent 1px) 0 0 / .56rem .56rem;
  mask-image: radial-gradient(ellipse, #000 40%, transparent 73%);
}
.drive-glyph {
  width: 4.6rem; height: 1.47rem; position: absolute; left: 50%; transform: translateX(-50%); border: 1px solid #596785;
  border-radius: .2rem; background: #eef0f6; box-shadow: 0 .14rem 0 #a8afc1;
}
.drive-glyph:first-child { top: 1.15rem; left: 46%; }
.drive-glyph:last-child { top: 2.85rem; left: 54%; background: #e3e7f3; }
.drive-glyph::before { content: ""; position: absolute; left: .51rem; top: .52rem; width: .29rem; height: .29rem; border-radius: 50%; background: var(--rust); }
.drive-glyph::after { content: ""; position: absolute; right: .54rem; top: .62rem; width: .81rem; height: 1px; background: #596785; }
.notice {
  padding: .7rem .82rem; border: 1px solid #d3d7e5; border-left: 2px solid var(--navy); border-radius: .16rem;
  background: #eff0f6; color: var(--navy-dark); font-size: .875rem; line-height: 1.52; overflow-wrap: anywhere;
}
.notice.warning { background: var(--warning); border-color: #e5d0b9; border-left-color: var(--rust); color: var(--warn-ink); }
.notice.error { color: var(--danger); background: #f8e9e6; border-color: #eacac4; border-left-color: var(--danger); }
.pill {
  padding: .19rem .44rem; border-radius: .17rem; border: 1px solid #d6d6e3; font-size: .78rem; font-weight: 670;
  display: inline-flex; align-items: center; background: #f0f0f6; color: var(--navy-dark);
}
.pill.warning { background: var(--warning); border-color: #e8d8c3; color: var(--warn-ink); }
.pill.error { background: #f8e9e6; border-color: #ebd5d0; color: var(--danger); }
.rows { display: grid; gap: .5rem; }
.row { border: 1px solid var(--rule-light); border-radius: .17rem; padding: .72rem .8rem; min-width: 0; }
.row > summary { cursor: pointer; overflow-wrap: anywhere; }
.row[open] > summary { margin-bottom: .75rem; }
.line { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; min-width: 0; }
.line-wrap { flex-wrap: wrap; }
.line > *, td { min-width: 0; overflow-wrap: anywhere; }
.starter {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1.1rem;
  margin-bottom: 1.35rem; padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid #d4d8e4; border-top: 2px solid var(--navy); background: #f0f1f7;
}
.starter-icon {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 1px solid #d0d6e6;
  border-radius: .24rem; color: var(--navy-dark); background: #e5e8f4;
}
.starter-icon svg { width: 1.44rem; height: 1.44rem; }
.starter p { margin: .27rem 0 .8rem; color: var(--muted); }
.starter .button.ghost { border-color: transparent; }
.request-import { column-gap: .7rem; }
.plan-overview { align-items: center; }
.plan-drive > .line { align-items: center; }
.plan-drive h3 { overflow-wrap: anywhere; }
.plan-files { margin-top: .55rem; }
.plan-files > summary, .plan-file > details > summary {
  cursor: pointer; color: var(--navy-dark); font-size: .875rem; line-height: 1.55; font-weight: 630;
}
.plan-file-list { margin-top: .35rem; }
.plan-file {
  display: grid; gap: .13rem; padding: .55rem 0; border-top: 1px solid var(--rule-light); min-width: 0;
}
.plan-file > details[open] > .record { margin-top: .45rem; }
.plan-file > details > summary { font-weight: 500; }
.pager { justify-content: space-between; margin-top: .55rem; border-top: 1px solid var(--rule-light); padding-top: .55rem; }
.review-filters .button[aria-pressed="true"] { background: var(--accent); color: var(--navy-dark); border-color: #a5acc3; }
#request-review, #request-review h2 { scroll-margin-top: 1rem; }
.record + .record { border-top: 1px solid var(--rule-light); padding-top: .65rem; margin-top: .65rem; }
.record ul { margin: .34rem 0; padding-left: 1.1rem; }
.record li { margin: .15rem 0; }
.share-reason { display: block; }
.flex-fill { flex: 1; min-width: 0; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.table-wrap { overflow: auto; max-height: 19rem; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; text-align: left; }
th, td { padding: .55rem .58rem; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
th { background: var(--subtle); position: sticky; top: 0; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem 1.2rem; margin-top: 1.5rem; padding-top: .83rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .83rem; }
.workspace-footer-note, .workspace-footer-links { display: flex; align-items: center; gap: .5rem; }
.workspace-footer-links { gap: 1rem; }
.workspace-footer-links a { text-underline-offset: .16em; }
.workspace-footer svg { width: .93rem; height: .93rem; color: var(--navy); }
dialog { width: min(47rem, calc(100vw - 2rem)); max-height: 90dvh; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: .32rem; }
dialog::backdrop { background: #202638a8; }
.dialog-head { position: sticky; z-index: 1; top: 0; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.dialog-head .button { min-width: 2.35rem; }
#dialog-content { padding: 1.15rem 1.25rem 1.35rem; }
#flash { margin-bottom: 1rem; }
progress { width: 100%; accent-color: var(--navy); }
@media (max-width: 1100px) {
  :root { --sidebar-width: 12.5rem; }
  .stat { padding-inline: .74rem; }
}
@media (max-width: 950px) {
  :root { --sidebar-width: 11.8rem; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: .72rem .9rem .58rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .brand { padding: 0; }
  .brand img { width: 2rem; height: 2rem; }
  .side-bottom, .nav-label { display: none; }
  .navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .63rem; gap: .26rem; }
  .nav-button { justify-content: center; gap: .3rem; padding: .36rem .24rem; font-size: .8rem; line-height: 1.16; text-align: center; flex-wrap: wrap; border-left: 0; border-bottom: 2px solid transparent; }
  .nav-button[aria-current="page"] { border-bottom-color: var(--navy); }
  .nav-button svg { width: .94rem; height: .94rem; }
  .topbar { min-height: auto; padding: .55rem .85rem; }
  .main { padding: 1.55rem .85rem 2rem; min-height: unset; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--rule); }
  .two-fields { grid-template-columns: 1fr; }
  .layer-body, .layer-head { padding: .9rem; }
  .starter { gap: .75rem; }
  .starter-icon { width: 2rem; height: 2rem; }
  .starter-icon svg { width: 1.13rem; height: 1.13rem; }
  .starter .action-row { align-items: stretch; flex-direction: column; }
  .review-filters { gap: .35rem; }
  .crumb { font-size: .78rem; gap: .35rem; }
}
