:root {
  --ink: #20231f;
  --ink-soft: #4f534c;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d8;
  --white: #fffdf8;
  --forest: #285f51;
  --forest-deep: #19473b;
  --teal-pale: #dbe9e3;
  --red: #9b3b31;
  --red-pale: #f2ddd8;
  --amber: #96611f;
  --amber-pale: #efe2c8;
  --blue: #355e73;
  --blue-pale: #dce7eb;
  --rule: #cbc6b9;
  --rule-dark: #4a4d47;
  --shadow: 0 22px 60px rgba(32, 35, 31, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(32,35,31,.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 24px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(40, 95, 81, .36);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-family: var(--serif);
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -.01em;
}
.wordmark i { margin: 0 2px; font-weight: 400; opacity: .5; }
.wordmark__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 15px;
  font-style: italic;
}
.wordmark--light { color: #f3f0e8; }

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 42%) 1fr;
}

.auth-intro {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  color: #f3f0e8;
  background: var(--ink);
}
.auth-intro::before,
.auth-intro::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.auth-intro::before {
  top: 25%;
  right: -11vw;
  width: 31vw;
  height: 31vw;
  border: 1px solid rgba(240,235,224,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 5vw rgba(240,235,224,.025), 0 0 0 10vw rgba(240,235,224,.018);
}
.auth-intro::after {
  right: 11%;
  bottom: 0;
  width: 1px;
  height: 48%;
  opacity: .3;
  background: linear-gradient(transparent, #e7e1d4);
  transform: rotate(28deg);
  transform-origin: bottom;
}
.auth-intro__copy { position: relative; z-index: 1; max-width: 600px; margin: 14vh 0 12vh; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow--light { color: #96c4b6; }
.auth-intro h1 {
  max-width: 620px;
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(45px, 5.5vw, 84px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}
.auth-intro__copy > p:last-child { max-width: 490px; color: #c5c5bc; font-size: 16px; }
.auth-intro__foot { margin: 0; color: #989a92; font-size: 11px; letter-spacing: .15em; }

.auth-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 7vw, 110px);
}
.auth-card { width: min(100%, 440px); }
.auth-card__head { margin-bottom: 38px; }
.section-number { margin: 0 0 12px; color: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.auth-card h2, .dialog h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.auth-card__head > p:last-child { margin: 0; color: var(--ink-soft); }

.field { margin-bottom: 22px; }
fieldset.field { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.field label, .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
}
.field__label-row { display: flex; justify-content: space-between; gap: 12px; }
.optional { color: #7a7d76; font-size: 11px; }
.field input, .field select, .field textarea, .control {
  width: 100%;
  border: 1px solid #bcb8ad;
  border-radius: 0;
  color: var(--ink);
  background: rgba(255,253,248,.72);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input, .field select, .control { height: 48px; padding: 0 13px; }
.field textarea { min-height: 108px; padding: 12px 13px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .control:hover { border-color: #807f78; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus, .control:focus { border-color: var(--forest); outline: 0; box-shadow: 0 0 0 3px rgba(40,95,81,.12); background: var(--white); }
.field__hint { margin: 7px 0 0; color: #70736c; font-size: 11px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .035em;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.button:hover { color: var(--white); background: var(--ink); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--primary { border-color: var(--forest-deep); color: var(--white); background: var(--forest-deep); }
.button--primary:hover { border-color: var(--ink); background: var(--ink); }
.button--danger { border-color: var(--red); color: var(--red); }
.button--danger:hover { color: var(--white); background: var(--red); }
.button--quiet { border-color: var(--rule); }
.button--small { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.button--wide { width: 100%; justify-content: space-between; margin-top: 8px; padding-inline: 19px; }

.text-button { padding: 0; border: 0; color: var(--forest); background: none; cursor: pointer; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}
.icon-button:hover { background: var(--paper-deep); }
.icon-button--light { border-color: var(--rule-dark); color: #efede7; }
.icon-button--light:hover { background: rgba(255,255,255,.07); }

.form-error { margin: 0 0 15px; padding: 11px 13px; border-left: 3px solid var(--red); color: #6f2b24; background: var(--red-pale); font-size: 12px; }
.loader { display: block; width: 25px; height: 25px; border: 2px solid var(--rule); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
.state-panel { display: grid; justify-items: center; gap: 12px; color: var(--ink-soft); text-align: center; }

.secret-block, .uri-details { margin-bottom: 18px; padding: 15px; border: 1px solid var(--rule); background: rgba(255,253,248,.6); }
.secret-block > span { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; }
.secret-block code, .uri-details code { display: block; overflow-wrap: anywhere; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; }
.uri-details summary { margin-bottom: 10px; cursor: pointer; font-size: 12px; font-weight: 650; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 270px;
  flex-direction: column;
  padding: 30px 23px 24px;
  color: #eeece5;
  background: var(--ink);
}
.sidebar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 160px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-left: 1px solid rgba(255,255,255,.08);
  content: "";
  pointer-events: none;
  transform: skewY(-32deg) translateY(45px);
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; }
.nav-close { display: none; }
.nav-list { margin-top: 69px; }
.nav-caption { margin: 0 11px 12px; color: #777b74; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.nav-caption--spaced { margin-top: 35px; }
.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  margin: 2px 0;
  padding: 11px;
  color: #aeafa9;
  text-decoration: none;
  transition: color .18s, background .18s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item[aria-current="page"] { color: #fff; background: rgba(122,180,161,.12); }
.nav-item[aria-current="page"]::after { justify-self: end; width: 5px; height: 5px; border-radius: 50%; background: #86bfad; content: ""; }
.nav-item__index { color: #6f746d; font-family: var(--mono); font-size: 9px; }
.sidebar__account {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
}
.account-monogram { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #686c64; color: #9bc0b5; font-family: var(--serif); }
.sidebar__account strong, .sidebar__account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__account strong { font-size: 12px; font-weight: 650; }
.sidebar__account div > span { color: #83877f; font-size: 10px; }

.workspace { min-height: 100vh; margin-left: 270px; }
.mobile-header { display: none; }
.content { width: min(100%, 1480px); min-height: 100vh; margin: 0 auto; padding: clamp(38px, 5.3vw, 82px) clamp(30px, 5vw, 74px) 80px; }
.screen-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.screen-header h1 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(42px, 5.5vw, 72px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.screen-header__intro { max-width: 680px; margin: 0; color: var(--ink-soft); }
.screen-header__meta { align-self: start; padding-top: 10px; color: #797b75; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }

.notice { margin-bottom: 24px; padding: 13px 15px; border-left: 3px solid var(--forest); background: var(--teal-pale); font-size: 12px; }
.notice--error { border-color: var(--red); color: #6c2a24; background: var(--red-pale); }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.compact-field { min-width: 190px; }
.compact-field label { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.compact-field select, .compact-field input { height: 40px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 0; background: rgba(255,253,248,.64); }
.compact-field input { width: min(270px, 72vw); }
.filter-note { width: 100%; margin: -2px 0 0; color: #74766f; font-size: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs li:not(:last-child)::after { color: #8a8b85; content: "/"; }
.breadcrumb-button { padding: 2px 1px; border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; font-size: 11px; }
.breadcrumb-button:hover { border-bottom-color: var(--ink); }

.data-list { border-top: 1px solid var(--ink); }
.data-list__head, .data-row { display: grid; grid-template-columns: 35px minmax(180px, 1fr) 120px 160px; gap: 12px; align-items: center; }
.data-list__head { min-height: 39px; color: #797b75; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.data-row { min-height: 58px; border-top: 1px solid var(--rule); }
.data-row:last-child { border-bottom: 1px solid var(--rule); }
.data-row:hover { background: rgba(255,253,248,.58); }
.data-row__name { display: flex; min-width: 0; gap: 11px; align-items: center; }
.data-row__name button { overflow: hidden; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.data-row__name button:hover { border-bottom-color: var(--ink); }
.file-glyph { position: relative; display: inline-block; width: 14px; height: 17px; flex: 0 0 auto; border: 1px solid #7b7d76; }
.file-glyph--dir { width: 17px; height: 13px; margin-top: 3px; border-color: var(--forest); background: rgba(40,95,81,.08); }
.file-glyph--dir::before { position: absolute; top: -4px; left: -1px; width: 8px; height: 4px; border: 1px solid var(--forest); border-bottom: 0; content: ""; }
.data-row__meta { color: #62655f; font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }
.check { display: inline-grid; width: 18px; height: 18px; place-items: center; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.truncated-note { margin: 15px 0; padding: 10px 12px; border-left: 2px solid var(--amber); color: #65491f; background: var(--amber-pale); font-size: 11px; }
.catalog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.catalog-pagination .button:first-child { justify-self: start; }
.catalog-pagination .button:last-child { justify-self: end; }
.catalog-pagination__status { color: #6c6f68; font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.request-drawer { position: sticky; top: 32px; padding: 24px; border: 1px solid var(--rule); background: rgba(255,253,248,.64); box-shadow: 10px 12px 0 var(--paper-deep); }
.panel-kicker { margin: 0 0 5px; color: var(--forest); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.request-drawer h2, .subsection-title { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.request-drawer__lead { margin: 0 0 20px; color: var(--ink-soft); font-size: 11px; }
.selection-list { display: grid; max-height: 230px; gap: 0; overflow: auto; margin: 0 0 19px; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.selection-item { display: grid; grid-template-columns: 1fr 25px; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.selection-item__text { min-width: 0; }
.selection-item strong, .selection-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-item strong { font-size: 11px; }
.selection-item span { color: #757870; font-family: var(--mono); font-size: 9px; }
.remove-selection { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.empty-selection { margin: 0 0 18px; padding: 20px 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: #777a73; font-size: 11px; text-align: center; }

.empty-state, .loading-state, .error-state { display: grid; min-height: 240px; place-content: center; justify-items: center; padding: 30px; border: 1px solid var(--rule); color: var(--ink-soft); text-align: center; }
.empty-state__mark { margin-bottom: 13px; color: var(--forest); font-family: var(--serif); font-size: 42px; font-style: italic; }
.empty-state h2, .error-state h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.empty-state p, .error-state p { max-width: 440px; margin: 0; font-size: 12px; }
.loading-state { gap: 12px; }

.request-list { display: grid; gap: 18px; }
.request-card { border: 1px solid var(--rule); background: rgba(255,253,248,.47); }
.request-card__head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding: 21px 23px 17px; border-bottom: 1px solid var(--rule); }
.request-card__title-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.request-card h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.02em; }
.request-card__meta { margin: 5px 0 0; color: #6c6f68; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; min-height: 23px; align-items: center; padding: 3px 8px; border: 1px solid currentColor; color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.status--pending { color: var(--amber); background: var(--amber-pale); }
.status--preparing { color: var(--blue); background: var(--blue-pale); }
.status--ready { color: var(--forest); background: var(--teal-pale); }
.status--rejected, .status--revoked, .status--failed, .status--expired { color: var(--red); background: var(--red-pale); }
.request-card__reason { margin: 0; padding: 17px 23px; color: var(--ink-soft); font-size: 12px; }
.request-card__reason strong { margin-right: 7px; color: var(--ink); }
.request-card__decision { margin: 0 23px 17px; padding: 10px 12px; border-left: 2px solid var(--red); color: #6e302a; background: var(--red-pale); font-size: 11px; }
.request-files { margin: 0; padding: 0 23px; list-style: none; }
.request-file { display: grid; grid-template-columns: minmax(0,1fr) 100px auto; gap: 16px; align-items: center; min-height: 49px; border-top: 1px solid var(--rule); }
.request-file__name { min-width: 0; }
.request-file__name strong, .request-file__name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-file__name strong { font-size: 11px; }
.request-file__name span { color: #74766f; font-family: var(--mono); font-size: 9px; }
.request-card__actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; padding: 18px 23px 21px; }
.progress-dots::after { display: inline-block; width: 1.5em; content: ""; animation: dots 1.3s steps(4,end) infinite; }

.admin-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0,1fr); gap: clamp(28px,4vw,60px); align-items: start; }
.admin-form { padding: 24px; border: 1px solid var(--rule); background: rgba(255,253,248,.6); }
.admin-form h2 { margin: 0 0 5px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.admin-form__intro { margin: 0 0 24px; color: var(--ink-soft); font-size: 11px; }
.checkbox-list { display: grid; gap: 7px; }
.checkbox-line { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.checkbox-line input { width: 16px; height: 16px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--forest); }
.user-list { border-top: 1px solid var(--ink); }
.user-card { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.user-card__head { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.user-card__identity strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.user-card__identity span { color: #73766e; font-size: 10px; }
.user-card__access { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.access-chip { display: inline-flex; padding: 3px 7px; border: 1px solid var(--rule); color: #5f625c; background: var(--white); font-size: 9px; }
.user-card__controls { display: flex; flex-wrap: wrap; gap: 8px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.audit-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.audit-table th { height: 39px; color: #74776f; font-size: 9px; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.audit-table td { padding: 13px 12px 13px 0; border-top: 1px solid var(--rule); vertical-align: top; font-size: 11px; }
.audit-table td:first-child { width: 155px; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
.audit-table code { display: block; max-width: 420px; overflow-wrap: anywhere; color: #555852; font-family: var(--mono); font-size: 9px; white-space: pre-wrap; }
.outcome { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.outcome--denied, .outcome--failed, .outcome--error { color: var(--red); }
.audit-note { max-width: 780px; margin: 0 0 20px; padding: 13px 15px; border-left: 3px solid var(--blue); color: #3c5662; background: var(--blue-pale); font-size: 11px; }

.dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; overflow-y: auto; padding: 25px; place-items: center; background: rgba(20,22,19,.7); }
.dialog { width: min(100%, 540px); max-height: calc(100vh - 50px); overflow-y: auto; padding: 27px; background: var(--paper); box-shadow: var(--shadow); }
.dialog__head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid var(--rule); }
.dialog h2 { font-size: 32px; }
.dialog .button-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; margin-top: 24px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%,100% { content: "..."; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#screen > * { animation: rise .3s ease both; }

@media (max-width: 1050px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .request-drawer { position: static; box-shadow: 8px 9px 0 var(--paper-deep); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-form { max-width: 620px; }
}

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 300px; padding: 28px; }
  .auth-intro__copy { margin: 60px 0 30px; }
  .auth-intro h1 { font-size: clamp(40px, 11vw, 66px); }
  .auth-intro__copy > p:last-child { display: none; }
  .auth-panel { min-height: auto; padding: 50px 25px 70px; }
  .sidebar { width: min(86vw, 300px); transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar[data-open="true"] { transform: translateX(0); }
  .nav-close { display: grid; }
  .nav-scrim { position: fixed; z-index: 20; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(22,24,21,.52); }
  .workspace { margin-left: 0; }
  .mobile-header { display: flex; height: 62px; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--rule); background: rgba(244,241,232,.95); }
  .mobile-header > span { font-family: var(--serif); font-size: 15px; }
  .mobile-header__rule { height: 1px; flex: 1; background: var(--rule); }
  .content { padding: 42px 20px 60px; }
  .screen-header { grid-template-columns: 1fr; gap: 8px; margin-bottom: 34px; }
  .screen-header__meta { display: none; }
  .data-list__head, .data-row { grid-template-columns: 30px minmax(150px,1fr) 96px; }
  .data-list__head > :last-child, .data-row > :last-child { display: none; }
}

@media (max-width: 540px) {
  .auth-intro { min-height: 250px; }
  .auth-intro__copy { margin: 40px 0 10px; }
  .auth-intro__foot { display: none; }
  .screen-header h1 { font-size: 45px; }
  .toolbar, .toolbar__group { align-items: stretch; flex-direction: column; }
  .compact-field, .compact-field input, .compact-field select { width: 100%; }
  .data-list__head, .data-row { grid-template-columns: 26px minmax(130px,1fr); }
  .data-list__head > :nth-child(3), .data-row > :nth-child(3) { display: none; }
  .request-card__head { grid-template-columns: 1fr; }
  .request-file { grid-template-columns: minmax(0,1fr) auto; }
  .request-file > :nth-child(2) { display: none; }
  .request-card__actions { justify-content: stretch; }
  .request-card__actions .button { flex: 1; }
  .user-card__head { align-items: flex-start; flex-direction: column; }
  .dialog-backdrop { padding: 12px; }
  .dialog { max-height: calc(100vh - 24px); padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
