:root {
  color: var(--p-ink);
  background: var(--p-bg);
  font: 15px/1.46 var(--font-text);
  --line: var(--divider);
  --muted: var(--p-muted);
  --canvas: var(--p-bg);
  --control-line: #888d9c;
  --control-padding: 12px;
  --control-icon-inset: 14px;
  --select-arrow-half: 5px;
  --select-text-gap: 10px;
  --gutter: clamp(24px, 4vw, 64px);
  --workspace-edge: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  --panel-inset: clamp(16px, 2.4vw, 32px);
  --panel-radius: 12px;
  scroll-padding-top: 85px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: var(--p-accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: default; opacity: .7; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: var(--font-display); }
h1 { font-size: clamp(32px, 4vw, 60px); font-weight: 600; letter-spacing: -.055em; line-height: 1.03; overflow-wrap: anywhere; text-wrap: balance; }
h2 { font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -.033em; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; padding: 12px; z-index: 20; background: white; }
.no-script { padding: 24px; }
.muted { color: var(--muted); }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--canvas); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  padding: 0 17px; background: var(--rail); color: var(--rail-ink); z-index: 5;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 10px;
  min-height: 70px; color: inherit; font-size: 24px; font-weight: 650; letter-spacing: -.057em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; align-content: center; gap: 4px; width: 27px; height: 27px;
  padding-inline: 6px; border-radius: 6px; background: var(--p-accent); color: white;
}
.brand-mark::before, .brand-mark::after {
  content: ""; height: 2px; background: currentColor; border-radius: 1px;
}
.brand-mark::after { width: 65%; }
.sidebar :focus-visible { outline-color: var(--theme-highlight); outline-offset: -2px; }
.sidebar .brand { border-bottom: 1px solid var(--rail-line); }
.sidebar-nav { display: grid; grid-auto-rows: max-content; gap: 2px; padding: 18px 0; overflow-y: auto; scrollbar-color: #69716a transparent; scrollbar-width: thin; }
.sidebar-nav p { margin: 19px 0 5px; padding: 0 10px; font-size: 11px; font-weight: 650; color: var(--rail-muted); letter-spacing: .06em; text-transform: uppercase; }
.sidebar-nav p:first-child { margin-top: 0; }
.sidebar-nav a {
  display: flex; align-items: center; min-height: 34px; padding: 6px 10px;
  border-radius: 6px; color: var(--rail-ink); font-size: 14px; font-weight: 450;
  transition: background-color .16s ease, color .16s ease;
}
.sidebar-nav a:hover { background: #ffffff13; text-decoration: none; }
.sidebar-nav a[aria-current] {
  background: color-mix(in srgb, var(--p-accent) 28%, var(--rail));
  color: var(--theme-highlight); font-weight: 650; box-shadow: inset 2px 0 var(--theme-highlight);
}
.nav-glyph { display: inline-block; flex: none; width: 15px; height: 15px; position: relative; opacity: .8; }
.glyph-inbox { border: 1.5px solid currentColor; border-radius: 3px; }
.glyph-inbox::after { content: ""; position: absolute; inset: 3px 3px auto; border-bottom: 1.5px solid currentColor; border-radius: 50%; height: 5px; }
.account { display: flex; align-items: center; gap: 10px; margin-top: auto; border-top: 1px solid var(--rail-line); padding: 14px 7px; color: var(--rail-ink); font-size: 14px; }
.account span:nth-child(2) { display: grid; line-height: 1.3; }
.account small { font-size: 12px; color: var(--rail-muted); margin-top: 3px; }
.avatar { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 50%; font-size: 11px; background: #ffffff17; color: var(--theme-highlight); font-weight: 650; }
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; container: workspace / inline-size; }
.topbar, .content, .workspace-footer { padding-inline: var(--workspace-edge); }
.topbar {
  position: sticky; top: 0; z-index: 3;
  min-height: 70px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; border-bottom: 1px solid var(--line); background: var(--canvas); padding-block: 8px;
}
.crumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--muted); font-weight: 550; }
.crumb > span { display: none; }
.top-controls, .role-control { display: flex; align-items: center; gap: 12px; }
.role-control span { white-space: nowrap; color: var(--muted); font-size: 13px; }
.role-control select { width: auto; }
.icon-link { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--p-ink); position: relative; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.icon-link:hover { background: var(--theme-mist); }
.icon-link i { position: absolute; width: 6px; height: 6px; inset: 9px 10px auto auto; border-radius: 50%; background: var(--p-accent); }
.menu-toggle, .menu-scrim { display: none !important; }
.menu-icon {
  width: 15px; height: 11px; border-block: 1.5px solid currentColor; position: relative;
}
.menu-icon::before { content: ""; position: absolute; top: 50%; left: 0; right: 3px; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.content { flex: 1; min-width: 0; padding-block: clamp(32px, 4vw, 64px) 56px; }
.page-head { display: flex; align-items: start; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.page-head > div { min-width: 0; }
.page-head > :is(.button, .status) { flex-shrink: 0; margin-top: 6px; }
.page-head h1 { text-wrap: wrap; }
.page-head p { margin-top: 12px; color: var(--muted); max-width: 62ch; font-size: 16px; text-wrap: pretty; }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.3; transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.primary { background: var(--p-accent); color: white; }
.primary:hover { background: color-mix(in srgb, var(--p-accent), black 12%); }
.secondary { background: var(--paper); border-color: var(--control-line); color: var(--p-ink); }
.secondary:hover { background: var(--p-surface); border-color: var(--p-accent); }
.quiet { color: var(--p-accent); background: transparent; }
.quiet:hover { background: var(--theme-mist); }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--panel-radius); }
.panel-body { padding: var(--panel-inset); }
.panel-body:not(.stack) > :is(h2, h3) { margin-bottom: 12px; }
.notice {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px var(--panel-inset); margin-bottom: 16px;
}
.notice > div { min-width: 0; overflow-wrap: anywhere; }
.notice p { font-size: 14px; margin-top: 2px; }
.notice-attention { background: #f5efe3; border-color: #e7ddcd; box-shadow: inset 3px 0 #96703c; }
.revision-notice a { font-weight: 650; }
.revision-notice p { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; column-gap: 25px; row-gap: 0; padding: 0 var(--panel-inset); border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); border-bottom: 2px solid transparent; min-height: 54px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.tabs a[aria-current] { color: var(--p-accent); font-weight: 650; border-color: var(--p-accent); }
.tabs span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs a[aria-current] span { color: var(--p-accent); }
.filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end; gap: 12px; padding: 16px var(--panel-inset);
}
.filters[data-form="people-filter"] { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.filters > :is(.button, .filter-actions) { justify-self: end; }
.filter-actions { justify-content: flex-end; }
@container workspace (max-width: 800px) {
  .filters, .filters[data-form="people-filter"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters > .filter-actions { grid-column: 1 / -1; }
}
.filter-toggle { display: none; }
.filter-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.field { display: grid; min-width: 0; gap: 7px; color: var(--p-ink); font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
input:not([type="checkbox"], [type="radio"]), select, textarea {
  border: 1px solid var(--control-line); border-radius: 8px; width: 100%; min-width: 0; min-height: 44px;
  padding: 8px var(--control-padding); background: var(--paper); color: var(--p-ink); font-size: 15px; font-weight: 400;
}
select:not([multiple], [size]) {
  appearance: none;
  padding-inline-end: calc(var(--control-icon-inset) + 2 * var(--select-arrow-half) + var(--select-text-gap));
  background-image:
    linear-gradient(45deg, transparent 40%, var(--muted) 40% 62%, transparent 62%),
    linear-gradient(-45deg, transparent 40%, var(--muted) 40% 62%, transparent 62%);
  background-position: right calc(var(--control-icon-inset) + var(--select-arrow-half)) center, right var(--control-icon-inset) center;
  background-size: var(--select-arrow-half) 6px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
select:not(:disabled):hover { border-color: var(--p-accent); }
input[type="date"] { padding-inline-end: var(--control-icon-inset); }
@media (forced-colors: active) {
  select:not([multiple], [size]) {
    appearance: auto;
    background-image: none;
    padding-inline-end: var(--control-padding);
  }
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="file"] { max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-inline-end: 8px; padding: 5px 9px; border: 0; border-radius: 5px;
  background: var(--theme-mist); color: var(--p-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--theme-line); }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--p-accent); margin: 0; flex: none; }
.table-wrap { overflow-x: auto; --table-inset: var(--panel-inset); }
.panel-body .table-wrap { --table-inset: 12px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14px; overflow-wrap: anywhere; }
th { background: var(--stone); font-size: 11px; color: var(--muted); font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
th:first-child, td:first-child { padding-inline-start: var(--table-inset); }
th:last-child, td:last-child { padding-inline-end: var(--table-inset); }
.panel > :is(.table-wrap, .requests-table):first-child th:first-child { border-start-start-radius: calc(var(--panel-radius) - 1px); }
.panel > :is(.table-wrap, .requests-table):first-child th:last-child { border-start-end-radius: calc(var(--panel-radius) - 1px); }
.panel > :is(.table-wrap, .requests-table):first-child th { border-top: 0; }
.requests-table { container: requests / inline-size; }
.requests-table table { table-layout: fixed; }
.requests-table th:nth-child(2) { width: 16%; }
.requests-table th:nth-child(3) { width: 25%; }
.requests-table th:nth-child(4) { width: 17%; }
.requests-table th:nth-child(5) { width: 24%; }
.requests-table:has(th:nth-child(5)) th:nth-child(3) { width: 21%; }
.requests-table:has(th:nth-child(5)) th:nth-child(4) { width: 16%; }
.requests-table :is(th, td):nth-child(4) { text-align: end; font-variant-numeric: tabular-nums; }
.requests-table td:nth-child(4) { white-space: nowrap; }
tbody tr:hover { background: var(--canvas); }
.row-title { color: var(--p-ink); font-size: 15px; font-weight: 650; }
.requests-table .row-title { display: inline-block; }
.row-title:hover { color: var(--p-accent); }
.row-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.status:is(.active, .done, .attention, .danger)::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.status.active { color: var(--p-accent); }
.status.done { color: #14583b; }
.status.attention { color: #7a5419; }
.status.danger { color: #8d2923; }
.table-count { padding: 12px var(--panel-inset); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 32px var(--panel-inset); color: var(--muted); }
.empty strong { color: var(--p-ink); }
.empty p { margin-top: 4px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.workspace-footer a { padding-block: 10px; white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 14px; font-size: 14px; font-weight: 550; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.detail-footer { margin-top: 16px; }
.facts { display: grid; margin: 0 0 18px; }
.facts > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 7px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.attachments, .history, .timeline { margin: 0; padding: 0; list-style: none; }
.attachments li { padding: 8px 0; overflow-wrap: anywhere; }
.history li { padding: 11px 0; display: grid; gap: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history li:first-child { padding-top: 0; }
.history time, .history small { font-size: 13px; color: var(--muted); }
.timeline { padding-top: 6px; }
.timeline li { display: grid; position: relative; grid-template-columns: 26px minmax(0, 1fr); gap: 11px; align-items: start; padding: 9px 8px; border-radius: 7px; }
.timeline li + li { margin-top: 3px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; width: 1px; left: 20px; top: 35px; bottom: -8px; background: var(--theme-line); }
.step-marker, .wizard-steps span { display: grid; place-items: center; border: 1px solid var(--theme-line); background: var(--paper); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline strong, .timeline small { display: block; overflow-wrap: anywhere; }
.timeline small { color: var(--muted); font-size: 13px; }
.timeline .current { background: var(--p-surface); }
.timeline .current .step-marker, .wizard-steps [aria-current] span { background: var(--p-accent); color: white; border-color: var(--p-accent); }
.timeline .finished .step-marker { background: #e4f5ea; color: #14583b; }
.fields, .stack { display: grid; gap: 18px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack > .button { justify-self: start; }
.action-form { margin-top: 16px; display: grid; gap: 12px; }
.action-form #action-fields:empty { display: none; }
.wizard-layout { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.wizard-steps { display: grid; gap: 3px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.wizard-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; }
.wizard-steps [aria-current] { font-weight: 650; color: var(--p-accent); }
.wizard-steps span { flex: none; }
.wizard-steps button {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0;
  background: transparent; color: var(--p-accent); text-align: left;
}
.wizard-steps button:hover { text-decoration: underline; }
.wizard-form { padding: var(--panel-inset); }
.wizard-form h2 { margin-bottom: 16px; }
.wizard-form .form-hint { margin-top: -7px; }
.form-hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.attachment-field { grid-column: 1 / -1; }
.review-heading, .bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.review-heading { margin-bottom: 8px; }
.review-layout h3 { margin-bottom: 3px; }
@container workspace (max-width: 800px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.field-editor { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px 6px; background: var(--canvas); }
.field-editor legend { padding-inline: 5px; color: var(--muted); font-size: 12px; }
.field-editor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.field-editor-actions { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
[data-field-editors]:empty { display: none; }
.type-actions { border-top: 1px solid var(--line); padding-top: 14px; }
.new-type { max-width: 660px; }
.wizard-form .form-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.form-actions .primary:last-child { margin-inline-start: auto; }
.choices { display: grid; gap: 8px; }
.choice, .check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.choice { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.choice:hover, .choice:has(input:checked) { background: var(--p-surface); border-color: var(--p-accent); }
.choice span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.choice small { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 210px; }
.person-cell { display: flex; align-items: center; gap: 6px; }
.check-target { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 6px; }
.check-target:has(input:enabled):hover { background: var(--p-surface); cursor: pointer; }
td:has(> .check-target, > .person-cell .check-target) { padding-block: 4px; }
.bulk-toolbar { border-top: 1px solid var(--line); padding: 10px var(--panel-inset); color: var(--muted); font-size: 13px; background: var(--canvas); }
.bulk-access { border-top: 1px solid var(--line); }
.bulk-access[hidden] { display: none; }
.button:disabled { opacity: .6; cursor: default; }
details.panel-body { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details .access-tree, details .field { margin-top: 10px; }
details .form-actions { margin-top: 16px; }
.access-tree { display: grid; gap: 4px; }
.tree-branch { border: 1px solid var(--line); border-radius: 8px; padding: 3px 14px; background: var(--canvas); }
.tree-category, .tree-category > div { margin-left: 18px; }
.tree-category > div { border-left: 1px solid var(--line); padding-left: 10px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--line); overflow: clip; }
.nav-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 78px; padding: 16px var(--panel-inset); border: 0; border-radius: 0; color: var(--p-ink); transition: background-color .16s ease; }
.nav-card:hover { background: var(--p-surface); text-decoration: none; }
.nav-card:focus-visible { outline-offset: -3px; }
.nav-card span { color: var(--p-accent); }
.catalog-section { padding: var(--panel-inset); border-bottom: 1px solid var(--line); }
.catalog-section:last-child { border-bottom: 0; }
.catalog-section p { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.catalog-section a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px; }
.palette { display: flex; gap: 6px; flex-wrap: wrap; }
.palette button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border-radius: 8px; background: var(--paper); border: 1px solid var(--control-line); padding: 6px 11px; color: var(--p-ink); }
.palette button[aria-pressed="true"], .palette button:hover { background: var(--theme-mist); border-color: var(--p-accent); }
.palette i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--swatch); }
[data-theme-option="adskill"] { --swatch: var(--swatch-adskill); }
[data-theme-option="green"] { --swatch: var(--swatch-green); }
[data-theme-option="gold"] { --swatch: var(--swatch-gold); }
[data-theme-option="blue"] { --swatch: var(--swatch-blue); }
.notification-list a { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 18px var(--panel-inset); color: var(--p-ink); }
.notification-list a + a { border-top: 1px solid var(--line); }
.notification-list a:hover { background: var(--p-surface); text-decoration: none; }
.notification-list p, .notification-list time { color: var(--muted); font-size: 13px; margin-top: 3px; }
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.login-art { background: var(--rail); display: grid; align-content: space-between; gap: 16vh; padding: 25px clamp(22px, 5vw, 70px) 12vh; }
.login-art .brand { color: var(--rail-ink); }
.login-art .brand:focus-visible { outline-color: var(--theme-highlight); }
.login-path { background: var(--paper); border-radius: var(--panel-radius); padding: var(--panel-inset); max-width: 420px; width: 100%; }
.login-path strong { font-size: 22px; margin-right: 7px; }
.login-path ol { margin: 12px 0 0; padding-left: 20px; }
.login-path li { padding-block: 6px; }
.login-copy { align-self: center; padding: clamp(25px, 6vw, 80px); }
.login-copy p { margin: 12px 0 20px; color: var(--muted); max-width: 45ch; }
.toast { z-index: 15; position: fixed; right: 18px; bottom: 18px; max-width: min(390px, calc(100vw - 36px)); color: var(--rail-ink); background: var(--rail); padding: 13px 16px; border-radius: 9px; box-shadow: 0 6px 25px #25282425; font-size: 14px; }
@media (max-width: 1080px) {
  :root { --gutter: 28px; }
  .shell { grid-template-columns: 222px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; left: 0; width: min(268px, 86vw); }
  .sidebar-nav a { min-height: 44px; }
  .sidebar.is-open { display: flex; }
  .menu-toggle { display: inline-flex !important; }
  .menu-scrim { display: block !important; position: fixed; inset: 0; border: 0; background: #20231e70; z-index: 4; width: 100%; }
  .topbar { gap: 8px; }
  .crumb { margin-right: auto; }
  .role-control > span { display: none; }
}
@media (max-width: 620px) {
  :root { font-size: 15px; --gutter: 16px; --panel-inset: 16px; scroll-padding-top: 72px; }
  .content { padding-block: 32px 40px; }
  .topbar { min-height: 60px; }
  .top-controls { gap: 5px; flex: none; }
  .crumb { color: var(--p-ink); font-size: 14px; font-weight: 650; }
  .crumb > strong { display: none; }
  .crumb > span { display: inline; }
  .menu-toggle { width: 44px; padding: 0; flex: none; }
  .page-head, .notice { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-head { margin-bottom: 24px; }
  .page-head p { font-size: 15px; }
  .page-head > :is(.button, .status) { margin-top: 0; }
  .tabs { gap: 0 16px; }
  .tabs a { min-height: 44px; font-size: 13px; }
  .tabs:has(> a:nth-child(4):last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs a:has(span) { justify-content: space-between; }
  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 44px; padding: 8px var(--panel-inset);
    background: var(--paper); color: var(--p-ink); border: 0; border-radius: 8px 8px 0 0;
    font-weight: 650; text-align: left;
  }
  .filter-toggle::after {
    content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1px 1px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .filter-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  .filter-toggle[aria-expanded="false"] + .filters { display: none; }
  .filters { padding-block: 8px 16px; }
  .filters[data-form="people-filter"] > :is(.field:last-of-type, .button) { grid-column: 1 / -1; }
  table, tbody, tr { display: block; width: 100%; }
  thead { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
  tbody tr { padding: 12px var(--table-inset); border-top: 1px solid var(--line); }
  td, td:first-child, td:last-child { padding: 4px 0; }
  td { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 6px; border-top: 0; overflow-wrap: anywhere; font-size: 13px; }
  td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  td:first-child { display: block; min-width: 0; padding-bottom: 7px; }
  .detail-layout, .fields, .catalog-grid, .wizard-layout, .login { grid-template-columns: minmax(0, 1fr); }
  .field-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .field-editor-actions { justify-content: flex-start; }
  .form-actions .primary:last-child { width: 100%; margin-inline-start: 0; }
  .wizard-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; }
  .notification-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .notification-list a > div { grid-column: 1 / -1; grid-row: 2; }
  .login-art { padding: 14px 16px 24px; gap: 12px; }
  .login-copy { align-self: start; }
}
@media (max-width: 359px) {
  .topbar .crumb { display: none; }
  .filters, .filters[data-form="people-filter"] { grid-template-columns: minmax(0, 1fr); }
}
@container requests (max-width: 620px) {
  .requests-table :is(table, tbody) { display: block; width: 100%; }
  .requests-table thead { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .requests-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px;
    padding: 12px var(--table-inset); border-top: 1px solid var(--line);
  }
  .requests-table td { display: block; min-width: 0; padding: 0; border-top: 0; font-size: 13px; }
  .requests-table td:first-child { grid-column: 1 / -1; margin-bottom: 2px; }
  .requests-table td:nth-child(2) { grid-row: 3; color: var(--muted); }
  .requests-table td:nth-child(3) { grid-row: 2; grid-column: 1 / -1; }
  .requests-table td:nth-child(4) { grid-row: 3; grid-column: 2; color: var(--muted); }
  .requests-table td:nth-child(n+2):nth-child(-n+4)::before { content: none; }
  .requests-table td:nth-child(5) {
    display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 8px;
    grid-column: 1 / -1;
  }
  .requests-table td:nth-child(5)::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; } }

.request-header { margin-bottom: clamp(22px, 3vw, 36px); }
.request-context, .request-heading { display: flex; justify-content: space-between; align-items: center; gap: 7px 16px; flex-wrap: wrap; }
.request-identity { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.request-number { color: var(--p-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.request-identity > span:last-child { padding-left: 9px; border-left: 1px solid var(--line); }
.request-context .tags { gap: 11px; }
.request-heading { margin: 12px 0 24px; align-items: flex-start; }
.request-heading > div { flex: 1 1 300px; }
.request-heading > .button { min-width: 0; }
.request-heading h1 { font-size: clamp(30px, 3.65vw, 54px); text-wrap: wrap; }
.request-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.request-overview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px 18px;
  margin: 0; padding: 15px 0; border-block: 1px solid var(--line);
}
.request-overview dt, .route-heading > span { color: var(--muted); font-size: 12px; }
.request-overview dd { margin: 3px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.request-overview dd, .route-heading h2 { overflow-wrap: anywhere; }
.request-overview .overdue dd { color: #8d2923; }
.request-layout { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); }
.attachment-section h3 { margin-bottom: 5px; }
.route-heading { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.route-panel { background: var(--stone); }
.route-panel .timeline li { padding-block: 9px; }
.route-panel .timeline strong { font-weight: 650; }

@media (max-width: 900px) {
  .request-layout { grid-template-columns: minmax(0, 1.25fr) minmax(245px, 1fr); }
}
@media (max-width: 660px) {
  .request-layout { grid-template-columns: minmax(0, 1fr); }
  .request-layout .route-panel { grid-row: 1; }
  .request-heading { margin: 8px 0 13px; }
  .request-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
