@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-bold.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-bold.woff2") format("woff2");
}

:root {
  --brand-blue: #2fa0d8;
  --brand-blue-dark: #1f7cab;
  --brand-navy: #102d42;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --text: #2a3138;
  --text-soft: #5a6470;
  --success: #22a36a;
  --warning: #d99026;
  --warning-soft: #fbedd6;
  --danger: #d84d4d;
  --ink-950: #102d42;
  --ink-900: #16394f;
  --ink-800: #1f627f;
  --ink-700: #39758f;
  --ink-500: #687d89;
  --paper: var(--surface-alt);
  --paper-strong: var(--surface);
  --paper-muted: #eaf0f4;
  --line: #d7e1e7;
  --line-dark: #aebfc9;
  --amber: var(--brand-blue);
  --amber-soft: #dff1f9;
  --green: var(--success);
  --green-soft: #dcf2e8;
  --red: var(--danger);
  --red-soft: #f9e3e3;
  --blue-soft: #dceff8;
  --white: var(--surface);
  --shadow-sm: 0 1px 2px rgb(10 30 43 / 7%), 0 8px 20px rgb(10 30 43 / 5%);
  --shadow-lg: 0 22px 70px rgb(10 30 43 / 18%);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --accent: var(--brand-blue);
  --accent-soft: var(--blue-soft);
  --focus-ring: #0c5d83;
  --touch-target: 44px;
  --rail-width: 256px;
  --content-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(16 43 63 / 2%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgb(16 43 63 / 2%) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}

a {
  color: var(--ink-800);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

.icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Application frame */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.rail {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: #edf1ed;
  background:
    radial-gradient(circle at 80% 4%, rgb(47 160 216 / 18%), transparent 24%),
    linear-gradient(155deg, var(--brand-navy), #16394f 58%, #0d2737);
  border-right: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 10px 0 30px rgb(10 30 43 / 10%);
}

.rail::after {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 58px;
  height: 78px;
  border-right: 1px solid rgb(255 255 255 / 6%);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  content: "";
  transform: skewY(-12deg);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px 21px;
  color: white;
  text-decoration: none;
}

.brand:hover {
  color: white;
}

.brand img {
  border-radius: 7px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand small {
  margin-top: 4px;
  color: #bdcbd2;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tenant-stamp {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0 3px 22px;
  padding: 14px 14px 13px 17px;
  overflow: hidden;
  color: var(--ink-950);
  background: var(--amber);
  border-radius: 3px 9px 9px 3px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
}

.tenant-stamp::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--paper-strong);
  content: "";
}

.tenant-stamp__eyebrow {
  color: rgb(10 30 43 / 67%);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tenant-stamp strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-stamp > span:last-of-type {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.tenant-stamp a {
  width: max-content;
  margin-top: 5px;
  color: var(--ink-950);
  font-size: 0.72rem;
  font-weight: 700;
}

.rail-nav {
  display: grid;
  gap: 3px;
}

.rail-nav__item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  color: #c8d4d9;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.rail-nav__item:hover {
  color: white;
  background: rgb(255 255 255 / 7%);
  transform: translateX(2px);
}

.rail-nav__item.is-active {
  color: var(--ink-950);
  background: var(--paper-strong);
  box-shadow: 0 5px 18px rgb(0 0 0 / 14%);
}

.rail-nav__item small {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  color: currentcolor;
  background: rgb(128 128 128 / 16%);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-align: center;
}

.rail__footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 7px 4px;
}

.operator__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink-950);
  background: var(--green-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 800;
}

.operator > span:last-child {
  display: grid;
  min-width: 0;
}

.operator strong {
  overflow: hidden;
  color: white;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator small {
  color: #9fb0ba;
  font-size: 0.67rem;
}

.logout-form {
  padding: 0 7px;
}

.text-action {
  padding: 0;
  color: #b5c5cc;
  background: none;
  border: 0;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.workbench {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
}

.workbench__masthead {
  display: grid;
  width: min(100%, var(--content-width));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 0 auto;
  padding: 34px 38px 25px;
  border-bottom: 1px solid var(--line);
}

.masthead-copy h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.masthead-copy > p:last-child:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 0.93rem;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.menu-toggle,
.rail-scrim {
  display: none;
}

.workbench__content {
  width: min(100%, var(--content-width));
  flex: 1;
  margin: 0 auto;
  padding: 30px 38px 50px;
}

.workbench__footer {
  display: flex;
  width: min(100%, var(--content-width));
  justify-content: space-between;
  margin: auto auto 0;
  padding: 17px 38px 25px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Controls */

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  color: white;
  background: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgb(10 30 43 / 12%);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  color: white;
  background: var(--ink-800);
  box-shadow: 0 6px 18px rgb(10 30 43 / 18%);
  transform: translateY(-1px);
}

.button--primary {
  color: var(--ink-950);
  background: var(--brand-blue);
  border-color: var(--brand-blue-dark);
}

.button--primary:hover {
  color: var(--ink-950);
  background: #58b4df;
}

.button--quiet {
  color: var(--ink-900);
  background: var(--paper-strong);
  border-color: var(--line-dark);
  box-shadow: none;
}

.button--quiet:hover {
  color: var(--ink-950);
  background: white;
}

.button--danger {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.button--small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.71rem;
}

.button[disabled],
.button.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  color: var(--ink-700);
  background: var(--paper-muted);
  border: 1px solid rgb(16 43 63 / 10%);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.status__dot {
  width: 6px;
  height: 6px;
  background: currentcolor;
  border-radius: 50%;
}

.status--success {
  color: var(--green);
  background: var(--green-soft);
}

.status--warning {
  color: #815811;
  background: var(--warning-soft);
}

.status--danger {
  color: var(--red);
  background: var(--red-soft);
}

.status--info {
  color: var(--ink-700);
  background: var(--blue-soft);
}

.notice-stack {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(calc(100% - 76px), calc(var(--content-width) - 76px));
  gap: 8px;
  margin: 18px auto 0;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
  color: var(--ink-900);
  background: var(--blue-soft);
  border-left: 4px solid var(--ink-700);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 0.81rem;
}

.notice--success {
  background: var(--green-soft);
  border-color: var(--green);
}

.notice--warning {
  background: var(--warning-soft);
  border-color: var(--warning);
}

.impersonation-banner {
  position: sticky;
  z-index: 20;
  top: 0;
  min-width: 0;
  padding: 14px clamp(18px, 3vw, 38px);
  color: var(--text);
  background:
    linear-gradient(90deg, rgb(217 144 38 / 14%) 1px, transparent 1px) 0 0 / 18px 18px,
    #fff6e8;
  border-width: 0 0 2px 6px;
  border-style: solid;
  border-color: var(--warning);
  border-radius: 0;
  box-shadow: 0 8px 22px rgb(42 49 56 / 12%);
}

.impersonation-banner > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.impersonation-banner strong,
.impersonation-banner span {
  overflow-wrap: anywhere;
}

.impersonation-banner strong::before {
  display: inline-block;
  margin-right: 9px;
  padding: 2px 5px;
  color: #fff;
  background: #83500e;
  border-radius: 2px;
  content: "VER COMO";
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  vertical-align: 0.1em;
}

.impersonation-banner .button {
  border-color: #8f5a13;
}

.notice--error,
.notice--danger {
  background: var(--red-soft);
  border-color: var(--red);
}

.notice__close {
  padding: 0 3px;
  color: currentcolor;
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Editorial surface primitives */

.panel {
  background: rgb(255 255 255 / 96%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 21px 16px;
  border-bottom: 1px solid var(--line);
}

.panel__header h2,
.panel__header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.2;
}

.panel__header p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.panel__body {
  padding: 21px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--ink-500);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.23rem;
}

.rule-title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.empty-state {
  display: grid;
  max-width: 520px;
  justify-items: center;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
}

.empty-state__mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--ink-700);
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-state h3 {
  margin: 16px 0 5px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 0.84rem;
}

/* Dashboard */

.dispatch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 1px;
  overflow: hidden;
  color: white;
  background: rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dispatch::after {
  position: absolute;
  top: -55px;
  right: 28%;
  width: 130px;
  height: 260px;
  background: rgb(228 166 59 / 12%);
  content: "";
  transform: rotate(28deg);
  pointer-events: none;
}

.dispatch__main,
.dispatch__aside {
  position: relative;
  z-index: 1;
  padding: 27px;
  background: var(--ink-900);
}

.dispatch__aside {
  background: var(--ink-800);
}

.dispatch__aside .section-label {
  color: #b9c8ce;
}

.dispatch .eyebrow {
  color: var(--amber);
}

.dispatch h2 {
  max-width: 660px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.dispatch__main > p:last-of-type {
  max-width: 650px;
  margin: 13px 0 0;
  color: #bdcbd2;
  font-size: 0.86rem;
}

.dispatch__aside strong {
  display: block;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dispatch__aside p {
  margin: 8px 0 16px;
  color: #ced9dd;
  font-size: 0.78rem;
}

.dispatch__aside a {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 17px 18px;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  right: -17px;
  bottom: -17px;
  width: 53px;
  height: 53px;
  border: 10px solid var(--paper-muted);
  border-radius: 50%;
  content: "";
}

.metric-card__label {
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 9px 0 5px;
  font-family: var(--serif);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-card small {
  color: var(--ink-500);
  font-size: 0.7rem;
}

.metric-card--warning {
  border-top: 4px solid var(--amber);
}

.metric-card--success {
  border-top: 4px solid var(--green);
}

.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 24px;
}

.queue-list,
.alert-list,
.timeline,
.requirement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(155px, 0.7fr) minmax(200px, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.queue-item:last-child {
  border-bottom: 0;
}

.queue-item > div {
  min-width: 0;
}

.queue-item strong,
.queue-item a {
  display: block;
  overflow: hidden;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-item {
  position: relative;
  padding: 15px 18px 15px 36px;
  border-bottom: 1px solid var(--line);
}

.alert-item::before {
  position: absolute;
  top: 20px;
  left: 19px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  content: "";
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.88rem;
}

.alert-item p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 0.72rem;
}

/* Lists and tables */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 17px;
  padding: 14px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-bar .field {
  min-width: 150px;
  flex: 0 1 230px;
}

.filter-bar .field--search {
  min-width: 240px;
  flex-grow: 1;
}

.filter-bar .field__label {
  font-size: 0.63rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.data-table th {
  padding: 11px 15px;
  color: var(--ink-500);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 15px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 120ms ease;
}

.data-table tbody tr:hover {
  background: white;
}

.data-table .cell-title {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.data-table .cell-title a {
  color: inherit;
}

.data-table .cell-muted {
  color: var(--ink-500);
}

.data-table .cell-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.row-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 15px;
  color: var(--ink-500);
  font-size: 0.72rem;
}

.pagination__link {
  padding: 6px 10px;
  color: var(--ink-800);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.pagination__link.is-disabled {
  opacity: 0.45;
}

/* Records */

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 19px;
  align-items: start;
}

.record-sections {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 19px;
}

.record-sections > .panel,
.record-sections .panel__body {
  min-width: 0;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.definition-grid > div {
  min-height: 84px;
  padding: 15px 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.definition-grid > div:nth-child(2n) {
  border-right: 0;
}

.definition-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.definition-grid dt {
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.record-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 15px;
}

.operational-record-header {
  overflow: hidden;
  border-color: rgb(39 100 89 / 28%);
  background: linear-gradient(135deg, rgb(255 250 240 / 98%), rgb(230 240 233 / 82%));
}

.operational-record-header .record-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.operational-record-header .record-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 16px 19px;
  border-right: 1px solid var(--line);
}

.operational-record-header .record-grid > div:last-child {
  border-right: 0;
}

.operational-record-header strong,
.operational-record-header small {
  overflow-wrap: anywhere;
}

.lifecycle-panel {
  border-color: rgb(154 64 50 / 22%);
  box-shadow: inset 4px 0 0 rgb(154 64 50 / 38%);
}

.record-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.record-card + .record-card {
  margin-top: 13px;
}

.record-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.record-card__header h3,
.record-card__header p {
  margin: 0;
}

.state-tabs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
  padding: 6px;
  background: rgb(233 225 210 / 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.state-tab {
  display: inline-flex;
  flex: 1 1 9rem;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 11px;
  color: var(--ink-700);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.state-tab span {
  display: grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 99px;
  background: rgb(16 43 63 / 8%);
  font-family: var(--mono);
}

.state-tab:hover,
.state-tab:focus-visible,
.state-tab.is-active {
  color: var(--ink-950);
  background: var(--paper-strong);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-sm);
}

.state-tab.is-active span {
  color: var(--paper-strong);
  background: var(--green);
}

.activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-list span {
  color: var(--ink-500);
  font-size: 0.7rem;
  text-align: right;
}

@media (max-width: 760px) {
  .operational-record-header .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operational-record-header .record-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .record-card__header,
  .activity-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-list span {
    text-align: left;
  }
}

.action-stack {
  display: grid;
  gap: 8px;
}

.action-stack .button {
  width: 100%;
}

.cnae-picker__select {
  min-height: 48px;
  font-variant-numeric: tabular-nums;
}

.cnae-picker [data-cnae-status] {
  display: block;
  min-height: 1.2em;
}

.modal-context-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.modal-context-path > div {
  min-width: 0;
  padding: 9px 11px;
  background: #f3f8fa;
  border-left: 3px solid var(--brand-blue);
  border-radius: 4px;
}

.modal-context-path dt {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-context-path dd {
  margin: 3px 0 0;
  color: var(--ink-800);
  font-size: 0.82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.lifecycle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 12px;
  background: #f7fafb;
  border: 1px solid #d2e0e7;
  border-radius: 8px;
}

.lifecycle-toolbar__state,
.lifecycle-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lifecycle-toolbar__state > span:first-child {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifecycle-primary-action,
.lifecycle-primary-action .button {
  width: auto;
  margin: 0;
}

.lifecycle-special-menu {
  position: relative;
}

.lifecycle-special-menu__trigger {
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.lifecycle-special-menu__panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: min(16rem, calc(100vw - 48px));
  padding: 7px;
  background: var(--paper-strong);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgb(12 48 65 / 18%);
}

.lifecycle-menu-action {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink-800);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.lifecycle-menu-action:hover,
.lifecycle-menu-action:focus-visible {
  background: var(--blue-soft);
}

.lifecycle-menu-action--danger {
  color: var(--red);
}

.lifecycle-menu-action--danger:hover,
.lifecycle-menu-action--danger:focus-visible {
  color: #8f1919;
  background: var(--red-soft);
}

.lifecycle-confirmation {
  margin: 0;
}

@media (max-width: 640px) {
  .lifecycle-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lifecycle-toolbar__actions,
  .lifecycle-primary-action,
  .lifecycle-primary-action .button {
    width: 100%;
  }

  .lifecycle-toolbar__actions {
    justify-content: space-between;
  }
}

.timeline-item {
  position: relative;
  padding: 0 0 21px 27px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 6px;
  bottom: -5px;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--paper-strong);
  border: 2px solid var(--green);
  border-radius: 50%;
  content: "";
}

.timeline-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.83rem;
}

.timeline-item p {
  margin: 3px 0;
  color: var(--ink-500);
  font-size: 0.7rem;
}

.timeline-item time {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.62rem;
}

/* Forms */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(230px, 1fr);
  gap: 20px;
  align-items: start;
}

.form-sections {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label,
.field > label:first-child {
  color: var(--ink-800);
  font-size: 0.72rem;
  font-weight: 800;
}

.field__required {
  color: var(--red);
}

.field__control {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgb(10 30 43 / 4%);
  transition: border 120ms ease, box-shadow 120ms ease;
}

.field__control:hover {
  border-color: var(--ink-500);
}

.field__control:focus {
  border-color: var(--ink-700);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(228 166 59 / 33%);
}

textarea.field__control {
  min-height: 116px;
  resize: vertical;
}

select.field__control {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-700) 50%),
    linear-gradient(135deg, var(--ink-700) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field__help {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.67rem;
}

.admin-form-layout {
  max-width: 1120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 750;
}

.choice-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.company-master {
  overflow: hidden;
  border-top: 3px solid var(--ink-800);
}

.company-master__header {
  background:
    linear-gradient(115deg, transparent 0 72%, rgb(228 166 59 / 12%) 72%),
    var(--paper-strong);
}

.company-master__body {
  display: grid;
  gap: 22px;
}

.profile-summary {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--paper-strong);
  background: var(--ink-900);
  border-radius: var(--radius);
}

.profile-summary > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 15px 17px;
  border-right: 1px solid rgb(255 255 255 / 15%);
}

.profile-summary > div:last-child {
  border-right: 0;
}

.profile-summary span {
  color: rgb(255 255 255 / 65%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-summary strong {
  font-family: var(--serif);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.company-master__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.company-master__grid--collections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-section,
.profile-collection {
  min-width: 0;
}

.profile-section {
  padding: 18px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-section > header {
  margin-bottom: 16px;
}

.profile-section h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1rem;
}

.profile-section > header p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 0.69rem;
}

.profile-form {
  gap: 13px;
}

.profile-verification-meta {
  margin-top: 18px;
}

.profile-collection .admin-disclosure {
  margin-top: 16px;
}

.profile-collection .data-table {
  min-width: 520px;
}

.admin-step-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: admin-step;
  list-style: none;
}

.admin-step-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  align-items: center;
  counter-increment: admin-step;
}

.admin-step-list li::before {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: span 2;
  place-items: center;
  color: var(--ink-950);
  background: var(--accent-soft);
  border-radius: 50%;
  content: counter(admin-step);
  font: 800 0.68rem/1 var(--mono);
}

.admin-step-list span {
  color: var(--ink-500);
  font-size: 0.68rem;
}

.compact-admin-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.admin-submit-field {
  align-self: end;
}

.context-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink-800);
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 800 0.7rem/1 var(--mono);
}

.dossier-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dossier-index > span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}

.hierarchy-stack,
.assignment-list {
  display: grid;
  gap: 14px;
}

.hierarchy-card {
  overflow: hidden;
  background: var(--paper-muted);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.hierarchy-card__header,
.assignment-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.hierarchy-card__header {
  padding: 18px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hierarchy-card__header h3,
.assignment-card h4,
.context-form h4 {
  margin: 3px 0 0;
  color: var(--ink-950);
  font-family: var(--serif);
}

.hierarchy-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.context-form {
  padding: 15px;
  background: rgb(255 255 255 / 74%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.context-form h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.admin-disclosure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-disclosure summary {
  padding: 14px 16px;
  color: var(--ink-800);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.admin-disclosure__body {
  padding: 16px;
}

.assignment-list {
  padding: 16px 20px 20px;
}

.assignment-card {
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.assignment-card__copy p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 0.67rem;
}

.admin-disclosure--group {
  width: min(100%, 720px);
}

.hierarchy-card__notice,
.empty-inline {
  margin: 0;
  padding: 16px 20px;
  color: var(--ink-500);
  font-size: 0.72rem;
}

.hierarchy-empty {
  box-shadow: none;
}

.field__error {
  margin: 0;
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 700;
}

.field.has-error .field__control {
  border-color: var(--red);
}

.checkbox-field {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.checkbox-field label {
  color: var(--ink-700);
  font-size: 0.78rem;
}

.file-control {
  padding: 16px;
  background: var(--paper);
  border: 1px dashed var(--line-dark);
}

.form-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.context-note {
  padding: 18px;
  color: var(--ink-700);
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
}

.context-note h3 {
  margin: 0 0 6px;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1rem;
}

.context-note p {
  margin: 0;
}

/* Authentication and tenant selection */

.auth-page,
.candidate-page {
  min-height: 100vh;
  color: var(--ink-950);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(450px, 1.15fr);
  background: var(--surface-alt);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 25% 20%, rgb(47 160 216 / 24%), transparent 24%),
    linear-gradient(145deg, var(--brand-navy), var(--brand-blue-dark));
}

.auth-story::after {
  position: absolute;
  right: -80px;
  bottom: 6%;
  width: 320px;
  height: 420px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50% 0 0 50%;
  content: "";
  transform: rotate(-17deg);
}

.auth-story .brand {
  position: relative;
  z-index: 1;
  width: max-content;
}

.auth-story__copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.auth-story__copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.87;
}

.auth-story__copy h1 em {
  display: block;
  color: var(--amber);
  font-weight: 500;
}

.auth-story__copy p {
  max-width: 440px;
  margin: 25px 0 0;
  color: #c5d1d6;
  font-size: 0.9rem;
}

.auth-story__folio {
  position: relative;
  z-index: 1;
  color: #91a6b1;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-desk {
  display: grid;
  place-items: center;
  padding: 38px;
}

.auth-card {
  width: min(100%, 430px);
  padding: clamp(0px, 2vw, 24px);
}

.auth-card__index {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 7px;
  color: var(--ink-500);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.auth-card > p {
  margin: 11px 0 27px;
  color: var(--ink-500);
  font-size: 0.84rem;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form .button {
  width: 100%;
  margin-top: 5px;
}

.auth-help {
  margin-top: 23px;
  padding-top: 16px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.tenant-page {
  min-height: 100vh;
  padding: clamp(30px, 6vw, 75px);
  background:
    linear-gradient(100deg, transparent 68%, rgb(47 160 216 / 10%) 68%),
    var(--paper);
}

.tenant-page__header {
  display: flex;
  max-width: 1100px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 44px;
}

.tenant-page__header h1 {
  max-width: 680px;
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.tenant-page .operator strong {
  color: var(--ink-950);
}

.tenant-page .operator small {
  color: var(--ink-500);
}

.tenant-empty {
  max-width: 720px;
  margin: 0 auto;
}

.tenant-grid {
  display: grid;
  max-width: 1100px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.tenant-card {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  color: var(--ink-950);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tenant-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 65px;
  height: 6px;
  background: var(--amber);
  content: "";
}

.tenant-card__code {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.tenant-card h2 {
  margin: 24px 0 6px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.05;
}

.tenant-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.tenant-card form,
.tenant-card .button {
  width: 100%;
  margin-top: auto;
}

/* Candidate portal */

.candidate-page {
  background:
    linear-gradient(90deg, var(--ink-900) 0, var(--ink-900) 12px, transparent 12px),
    var(--paper);
}

.candidate-header {
  display: flex;
  max-width: 1160px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 25px 32px 19px;
  border-bottom: 1px solid var(--line);
}

.candidate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-950);
  text-decoration: none;
}

.candidate-brand img {
  border-radius: 6px;
}

.candidate-brand strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.candidate-header__help {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.candidate-main {
  display: grid;
  max-width: 1160px;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(25px, 5vw, 70px);
  margin: 0 auto;
  padding: 42px 32px 70px;
}

.candidate-progress {
  position: sticky;
  top: 25px;
  align-self: start;
}

.candidate-progress__number {
  display: block;
  font-family: var(--serif);
  font-size: 3.3rem;
  line-height: 0.9;
}

.candidate-progress__label {
  display: block;
  margin: 7px 0 12px;
  color: var(--ink-500);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: var(--paper-muted);
  border-radius: 7px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.candidate-progress p {
  margin: 17px 0 0;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.candidate-content {
  min-width: 0;
}

.candidate-content > .eyebrow {
  color: var(--green);
}

.candidate-content > h1 {
  max-width: 750px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.93;
}

.candidate-content > .lede {
  max-width: 680px;
  margin: 16px 0 30px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.application-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 20px;
  color: white;
  background: var(--ink-900);
  border-radius: var(--radius);
}

.application-note span {
  color: #aebfc7;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-note strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.application-note small {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.requirement-list {
  display: grid;
  gap: 10px;
}

.requirement-item {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.requirement-item__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--ink-700);
  background: var(--paper-muted);
  border-radius: 50%;
}

.requirement-item.is-complete .requirement-item__icon {
  color: var(--green);
  background: var(--green-soft);
}

.requirement-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.requirement-item p {
  margin: 2px 0 0;
  color: var(--ink-500);
  font-size: 0.7rem;
}

.candidate-section {
  margin-top: 31px;
}

.candidate-section h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.privacy-note {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  color: var(--ink-500);
  background: var(--paper-muted);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}

.privacy-note .icon {
  flex: 0 0 auto;
  color: var(--green);
}

/* Administrative group hierarchy */

.metric-grid--groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-tree {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.group-tree__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.group-tree__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.group-tree__header p:last-child {
  margin: 0;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.company-call-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
  background: rgb(255 250 240 / 64%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.company-call-filter-status {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
}

.company-call-filter-status p {
  margin: 0;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.company-call-stack {
  display: grid;
  gap: 14px;
}

.company-call-stack > .call-branch {
  margin: 0;
}

.company-filter-empty {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.company-calls-workspace [hidden] {
  display: none !important;
}

.company-branch {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.company-branch__header,
.dossier-branch__header,
.action-branch__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.company-branch__header {
  padding: 20px 22px;
  color: var(--paper-strong);
  background: var(--ink-900);
}

.company-branch__header h3 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
}

.company-branch__code,
.branch-kicker {
  color: var(--ink-500);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.company-branch__code {
  color: var(--amber);
  font-family: var(--mono);
}

.call-branch {
  min-width: 0;
  margin: 16px 20px;
  overflow: hidden;
  background: #f6fafb;
  border: 1px solid #b9ccd5;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

details.call-branch > summary,
.call-branch__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

details.call-branch > summary::-webkit-details-marker {
  display: none;
}

.call-branch__header > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.call-branch__header strong,
.call-branch__header h4 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.call-branch__header small {
  overflow-wrap: anywhere;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.company-calls-workspace .call-branch__header {
  color: var(--paper-strong);
  background: var(--ink-900);
}

.company-calls-workspace .call-branch__header strong {
  color: white;
}

.company-calls-workspace .call-branch__header .branch-kicker,
.company-calls-workspace .call-branch__header small {
  color: var(--amber);
}

.call-branch__body {
  min-width: 0;
  background: #f6fafb;
  border-top: 1px solid #cfdee4;
}

.call-branch:focus-within {
  border-color: var(--brand-blue-dark);
  box-shadow: 0 0 0 3px rgb(47 160 216 / 18%);
}

.call-branch > summary:focus-visible,
.dossier-branch > summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}

.dossier-branch {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}

details.dossier-branch {
  padding: 0;
}

details.dossier-branch > summary {
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

details.dossier-branch > summary::-webkit-details-marker {
  display: none;
}

.dossier-branch__body {
  min-width: 0;
  margin: 0 18px 18px;
}

.dossier-branch__header h4 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.company-action-table-wrap {
  margin-top: 14px;
}

.company-action-table {
  min-width: 48rem;
}

.company-action-table__identity strong,
.company-action-table__identity span {
  display: block;
}

.company-action-table__identity strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.company-action-table__identity span {
  margin-top: 3px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.company-action-table__actions,
.company-group-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.company-action-table__actions {
  justify-content: flex-end;
}

[data-action-groups-toggle][hidden] {
  display: none !important;
}

.company-action-table__actions .group-create {
  min-width: 8rem;
  margin-top: 0;
}

.company-action-table__actions .group-create summary {
  padding: 8px 11px;
  text-align: center;
}

.company-action-groups-cell {
  padding: 0 !important;
  background: rgb(233 225 210 / 32%);
}

.company-action-groups-cell > .table-wrap {
  margin: 12px;
  box-shadow: none;
}

.company-group-table {
  min-width: 62rem;
}

.company-group-table__actions {
  justify-content: flex-end;
}

.icon-action {
  position: relative;
  display: inline-grid;
  flex: 0 0 var(--touch-target);
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  place-items: center;
  color: var(--ink-900);
  background: var(--paper-strong);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.icon-action:hover,
.icon-action:focus-visible {
  color: var(--ink-950);
  background: var(--blue-soft);
  border-color: var(--brand-blue-dark);
  transform: translateY(-1px);
}

.icon-action--danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgb(216 77 77 / 42%);
}

.icon-action--danger:hover,
.icon-action--danger:focus-visible {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.icon-action--primary {
  color: #0f6c4d;
  background: var(--green-soft);
  border-color: rgb(36 108 84 / 42%);
}

.icon-action--info {
  color: var(--brand-blue-dark);
  background: var(--blue-soft);
  border-color: rgb(47 160 216 / 42%);
}

.app-floating-tooltip {
  position: fixed;
  z-index: 250;
  width: max-content;
  max-width: min(13rem, calc(100vw - 16px));
  padding: 6px 8px;
  color: white;
  background: var(--ink-950);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
}

.app-floating-tooltip[data-placement="bottom"] {
  transform: translateY(-4px);
}

.app-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.action-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
}

.action-branch {
  padding: 16px;
  background: rgb(233 225 210 / 48%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.action-branch__header h5 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.group-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.group-card {
  display: grid;
  grid-template-columns: minmax(10rem, 1.2fr) minmax(9rem, 1fr) minmax(10rem, 1.15fr) auto auto auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.group-card__identity strong,
.group-card__datum strong {
  display: block;
  margin-top: 2px;
}

.group-card__identity strong {
  font-family: var(--serif);
  font-size: 0.92rem;
}

.group-card__datum span {
  display: block;
  color: var(--ink-500);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.group-card__datum strong {
  font-size: 0.72rem;
  font-weight: 650;
}

.group-card__state {
  justify-self: end;
}

.group-card__actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.group-card__action {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.group-card__actions .group-card__action {
  grid-column: auto;
  padding-top: 0;
  border-top: 0;
}

.group-card__action .checkbox-field {
  align-items: center;
  color: var(--ink-500);
  font-size: 0.7rem;
}

.branch-empty,
.company-branch__empty {
  margin: 14px 0 0;
  padding: 14px;
  color: var(--ink-500);
  background: rgb(255 250 240 / 55%);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}

.company-branch__empty {
  margin: 18px 22px 22px;
}

.group-create {
  margin-top: 13px;
  background: var(--paper-strong);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
}

.group-create summary {
  padding: 11px 13px;
  color: var(--ink-800);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.group-create[open] summary {
  color: var(--ink-950);
  background: var(--amber-soft);
  border-bottom: 1px solid var(--line);
}

.group-create .form-grid {
  padding: 16px;
}

/* Company application marketplace */

.marketplace-page {
  --content-width: 1680px;
}

.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.marketplace-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marketplace-tree {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.marketplace-tree__header {
  padding: 19px 20px 17px;
  background:
    linear-gradient(135deg, rgb(228 166 59 / 12%), transparent 55%),
    var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.marketplace-tree__header h2 {
  margin: 4px 0 5px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.marketplace-tree__header > p:last-child {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.7rem;
  line-height: 1.45;
}

.marketplace-tree__body {
  padding: 15px;
}

.marketplace-tree__calls,
.marketplace-tree__dossiers,
.marketplace-tree__actions,
.marketplace-tree__groups {
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketplace-tree__calls {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.marketplace-tree__call {
  min-width: 0;
  overflow: hidden;
  background: #f4f8f9;
  border: 1px solid #b8cbd4;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.marketplace-tree__call-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 12px;
  list-style: none;
  cursor: pointer;
}

.marketplace-tree__call-heading::-webkit-details-marker,
.marketplace-tree__dossier > details > summary::-webkit-details-marker {
  display: none;
}

.marketplace-tree__call-heading:focus-visible,
.marketplace-tree__dossier > details > summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}

.marketplace-tree__call > .marketplace-tree__dossiers {
  padding: 10px;
  border-top: 1px solid #cfdee4;
}

.marketplace-tree__empty-branch {
  padding: 12px;
  color: var(--ink-500);
  font-size: 0.68rem;
}

.marketplace-tree__dossiers {
  display: grid;
  gap: 13px;
}

.marketplace-tree__dossier {
  overflow: hidden;
  background: rgb(255 253 250 / 74%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.marketplace-tree__dossier > details {
  min-width: 0;
}

.marketplace-tree__dossier-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
}

.marketplace-tree__identity,
.marketplace-tree__group-main {
  display: grid;
  min-width: 0;
}

.marketplace-tree__identity strong,
.marketplace-tree__group-main strong {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.3;
}

.marketplace-tree__level {
  color: var(--ink-500);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marketplace-tree__actions {
  display: grid;
  gap: 12px;
  padding: 12px 10px 12px 17px;
}

.marketplace-tree__action {
  position: relative;
  min-width: 0;
}

.marketplace-tree__action::before {
  position: absolute;
  inset: 0 auto 0 -8px;
  width: 2px;
  background: var(--amber);
  content: "";
}

.marketplace-tree__action-heading {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 1px 4px 8px;
}

.marketplace-tree__action-heading strong {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.25;
}

.marketplace-tree__action-heading small {
  overflow: hidden;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-tree__groups {
  display: grid;
  gap: 6px;
}

.marketplace-tree__group {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  align-items: center;
  padding: 10px;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.marketplace-tree__group:hover {
  color: var(--ink-950);
  background: var(--paper-strong);
  border-color: var(--line-dark);
  transform: translateX(2px);
}

.marketplace-tree__group:focus-visible,
.marketplace-tabs__item:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.marketplace-tree__group--selected {
  color: var(--ink-950);
  background: var(--amber-soft);
  border-color: #c88b22;
  box-shadow: inset 4px 0 0 var(--green), 0 4px 12px rgb(10 30 43 / 8%);
}

.marketplace-tree__group--selected::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 7px solid var(--green);
  border-bottom: 6px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.marketplace-tree__group > small {
  grid-column: 1 / -1;
  color: var(--ink-500);
  font-size: 0.61rem;
}

.marketplace-state {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  color: var(--ink-700);
  background: var(--paper-muted);
  border: 1px solid rgb(16 43 63 / 10%);
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.marketplace-state::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: currentcolor;
  border-radius: 50%;
  content: "";
}

.marketplace-state--active,
.marketplace-state--open,
.marketplace-state--confirmed,
.marketplace-state--enrolled {
  color: var(--green);
  background: var(--green-soft);
}

.marketplace-state--closed,
.marketplace-state--discarded,
.marketplace-state--released {
  color: var(--ink-700);
  background: var(--paper-muted);
}

.marketplace-state--cancelled {
  color: var(--red);
  background: var(--red-soft);
}

.marketplace-state--preselected,
.marketplace-state--waitlist,
.marketplace-state--place_offered,
.marketplace-state--place_accepted,
.marketplace-state--pending,
.marketplace-state--incomplete {
  color: #7b5310;
  background: var(--amber-soft);
}

.marketplace-content {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.marketplace-group-summary {
  position: relative;
  padding: 22px 24px;
  overflow: hidden;
  background:
    linear-gradient(110deg, var(--paper-strong) 0 72%, rgb(36 108 84 / 8%) 72%),
    var(--paper-strong);
}

.marketplace-group-summary::after {
  position: absolute;
  top: -46px;
  right: 4%;
  width: 105px;
  height: 180px;
  border: 1px solid rgb(36 108 84 / 18%);
  content: "";
  pointer-events: none;
  transform: rotate(24deg);
}

.marketplace-group-summary__heading {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.marketplace-group-summary__actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.person-autosave-status {
  align-items: flex-start;
  background: var(--surface-muted, #f3f4f6);
  border: 1px solid var(--border-color, #d9dde3);
  border-radius: 0.7rem;
  display: grid;
  gap: 0.15rem 0.6rem;
  grid-template-columns: 0.65rem 1fr;
  padding: 0.8rem 0.9rem;
}

.person-autosave-status > span {
  background: #77808e;
  border-radius: 999px;
  grid-row: 1 / span 2;
  height: 0.55rem;
  margin-top: 0.35rem;
  width: 0.55rem;
}

.person-autosave-status strong,
.person-autosave-status small {
  grid-column: 2;
}

.person-autosave-status[data-state="saving"] > span {
  background: #c27a22;
}

.person-autosave-status[data-state="saved"] > span {
  background: #138a5b;
}

.person-autosave-status[data-state="error"] > span {
  background: #c83d3d;
}

.marketplace-group-summary__heading h2 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.marketplace-group-summary__path {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 12px 0 18px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.marketplace-group-summary__path span,
.marketplace-group-summary__path strong {
  overflow-wrap: anywhere;
}

.marketplace-group-summary__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.marketplace-group-summary__facts > div {
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.marketplace-group-summary__facts > div:first-child {
  padding-left: 0;
}

.marketplace-group-summary__facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.marketplace-group-summary__facts dt {
  color: var(--ink-500);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marketplace-group-summary__facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.marketplace-tabs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px;
  background: rgb(233 225 210 / 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.marketplace-tabs__item {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 9rem;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: var(--ink-700);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.marketplace-tabs__item:hover {
  color: var(--ink-950);
  background: rgb(255 250 240 / 70%);
}

.marketplace-tabs__item strong {
  display: grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 2px 6px;
  background: rgb(16 43 63 / 8%);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.63rem;
}

.marketplace-tabs__item--current {
  color: var(--ink-950);
  background: var(--paper-strong);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-sm);
}

.marketplace-tabs__item--current strong {
  color: var(--paper-strong);
  background: var(--green);
}

.marketplace-results {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.marketplace-results__header {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 2px 3px;
  border-bottom: 1px solid var(--line-dark);
}

.marketplace-results__header h2 {
  margin: 3px 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.marketplace-results__header > span {
  margin-bottom: 10px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.62rem;
  white-space: nowrap;
}

.marketplace-table-wrap {
  min-width: 0;
  border-top: 4px solid var(--ink-800);
}

.marketplace-table {
  min-width: 720px;
}

.marketplace-table tbody th {
  padding: 13px 15px;
  color: var(--ink-950);
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-size: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  vertical-align: middle;
  white-space: normal;
}

.marketplace-table tbody tr:last-child th {
  border-bottom: 0;
}

.marketplace-table__candidate,
.marketplace-table__contact,
.marketplace-table__state {
  min-width: 0;
}

.marketplace-table__candidate strong,
.marketplace-table__candidate small,
.marketplace-table__contact span,
.marketplace-table__contact small,
.marketplace-table__state small {
  display: block;
}

.marketplace-table__candidate strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.2;
}

.marketplace-table__candidate small,
.marketplace-table__contact small,
.marketplace-table__state small {
  margin-top: 4px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.marketplace-table__contact span {
  color: var(--ink-900);
  font-weight: 650;
}

.marketplace-table__date time,
.marketplace-date-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marketplace-table__date time {
  color: var(--ink-800);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.marketplace-date-sort {
  color: inherit;
  text-decoration: none;
}

.marketplace-date-sort span {
  color: var(--brand-blue-dark);
  font-size: 0.9rem;
}

.requirement-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid currentcolor;
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.requirement-badge > span {
  width: 7px;
  height: 7px;
  background: currentcolor;
  border-radius: 50%;
}

.requirement-badge--success {
  color: var(--green);
  background: var(--green-soft);
}

.requirement-badge--warning {
  color: #9a5d00;
  background: var(--amber-soft);
}

.requirement-badge--danger {
  color: #9b2d2d;
  background: #fff0ed;
}

.requirement-badge--neutral {
  color: var(--ink-600);
  background: var(--paper-muted);
}

.requirement-cell {
  min-width: 180px;
  vertical-align: top;
}

.marketplace-readiness-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketplace-readiness-info {
  --touch-target: 34px;
}

.candidate-incident-groups {
  display: grid;
  gap: 12px;
}

.candidate-incident-group {
  padding: 15px 16px;
  background: var(--paper-muted);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
}

.candidate-incident-group h3 {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--serif);
  font-size: 1rem;
}

.candidate-incident-group ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-600);
  font-size: 0.76rem;
}

.requirement-details {
  margin-top: 7px;
  max-width: 220px;
  color: var(--ink-600);
  font-size: 0.68rem;
}

.requirement-details summary {
  cursor: pointer;
  font-weight: 700;
}

.requirement-details ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.requirement-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.requirement-summary {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
}

.requirement-summary h3 {
  margin: 0 0 10px;
  color: var(--ink-600);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirement-summary-grid--compact {
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--line);
}

.requirement-summary-grid--compact .requirement-summary {
  padding: 14px 18px;
}

.enrollment-warning {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.enrollment-warning strong {
  display: block;
  color: var(--ink-900);
  font-family: var(--serif);
}

.enrollment-warning p {
  margin: 4px 0 0;
  color: var(--ink-600);
  font-size: 0.78rem;
  line-height: 1.45;
}

.snapshot-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 96%), rgb(223 241 249 / 82%)),
    var(--paper);
  box-shadow: var(--shadow-sm);
}

.snapshot-masthead h2 {
  margin: 3px 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.snapshot-masthead > div > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-600);
}

.snapshot-masthead dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 72%);
}

.snapshot-masthead dl div {
  padding: 12px;
}

.snapshot-masthead dl div + div {
  border-left: 1px solid var(--line);
}

.snapshot-masthead dt,
.snapshot-status-grid span {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.snapshot-masthead dd {
  margin: 5px 0 0;
  color: var(--ink-900);
  font-weight: 800;
}

.snapshot-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.snapshot-version {
  margin: 0;
  overflow: hidden;
}

.snapshot-version--original {
  border-top: 4px solid var(--ink-500);
}

.snapshot-version--current {
  border-top: 4px solid var(--green);
}

.snapshot-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.snapshot-status-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 13px;
  background: var(--paper);
}

.snapshot-status-grid small {
  color: var(--ink-500);
  font-size: 0.66rem;
}

.snapshot-version__meta > p,
.snapshot-version__meta > time {
  display: block;
  margin: 0;
}

.snapshot-version__meta > time {
  margin-top: 3px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.snapshot-confirmation {
  margin-top: 12px !important;
  padding: 9px 11px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: var(--ink-700);
  font-size: 0.74rem;
}

.snapshot-original-data {
  margin-top: 16px;
}

.snapshot-original-data summary {
  cursor: pointer;
  font-weight: 750;
}

.snapshot-original-data dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  background: var(--line);
}

.snapshot-original-data dl div {
  min-width: 0;
  padding: 10px;
  background: var(--paper-muted);
}

.snapshot-original-data dt {
  color: var(--ink-500);
  font-size: 0.65rem;
}

.snapshot-original-data dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

.snapshot-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.snapshot-fields-form .form-actions {
  margin-top: 20px;
}

.snapshot-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.snapshot-document {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-muted);
}

.snapshot-document__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.snapshot-document h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.snapshot-document > p {
  overflow-wrap: anywhere;
  color: var(--ink-600);
  font-size: 0.75rem;
}

.snapshot-document .admin-disclosure {
  margin-top: 12px;
}

.snapshot-history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.snapshot-history li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-history__number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.snapshot-history p,
.snapshot-history time {
  margin: 2px 0 0;
  color: var(--ink-500);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .snapshot-masthead,
  .snapshot-compare-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .snapshot-masthead {
    padding: 20px;
  }

  .snapshot-masthead dl,
  .snapshot-status-grid,
  .snapshot-fields-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-masthead dl div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .snapshot-history li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .snapshot-history time {
    grid-column: 2;
  }
}

.marketplace-table__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.marketplace-table__actions form {
  display: inline-flex;
  margin: 0;
}

@media (min-width: 1200px) {
  .marketplace-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .marketplace-table thead th:nth-child(1) {
    width: 42%;
  }

  .marketplace-table thead th:nth-child(2) {
    width: 20%;
  }

  .marketplace-table thead th:nth-child(3) {
    width: 24%;
  }

  .marketplace-table thead th:nth-child(4) {
    width: 14%;
  }

  .marketplace-table th,
  .marketplace-table td {
    padding-right: 10px;
    padding-left: 10px;
  }

  .marketplace-table__candidate {
    overflow-wrap: anywhere;
  }

  .marketplace-table__actions {
    flex-wrap: wrap;
  }

}

.marketplace-empty {
  display: grid;
  min-width: 0;
  justify-items: center;
  padding: clamp(28px, 6vw, 58px) 24px;
  text-align: center;
}

.marketplace-empty__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--ink-800);
  background: var(--amber-soft);
  border: 1px solid #d3a24e;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.marketplace-empty h2,
.marketplace-empty h3 {
  margin: 13px 0 5px;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
}

.marketplace-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.marketplace-empty--tree {
  padding: 24px 8px;
}

.marketplace-empty--prompt {
  min-height: 310px;
  align-content: center;
  background:
    linear-gradient(120deg, transparent 0 72%, rgb(228 166 59 / 12%) 72%),
    var(--paper-strong);
}

.marketplace-empty--prompt .marketplace-kicker {
  margin-top: 13px;
}

@media (max-width: 760px) {
  .marketplace-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketplace-tree {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .marketplace-group-summary {
    padding: 19px;
  }

  .marketplace-group-summary__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketplace-group-summary__facts > div,
  .marketplace-group-summary__facts > div:first-child,
  .marketplace-group-summary__facts > div:last-child {
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketplace-group-summary__facts > div:last-child {
    border-bottom: 0;
  }

  .marketplace-tabs__item {
    flex-basis: calc(50% - 4px);
  }

  .marketplace-results__header {
    align-items: start;
  }

  .marketplace-table-wrap {
    overflow: visible;
    border-top-width: 3px;
    box-shadow: none;
  }

  .marketplace-table {
    min-width: 0;
  }

  .marketplace-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .marketplace-table tbody {
    display: grid;
    gap: 12px;
  }

  .marketplace-table tbody tr {
    display: grid;
    overflow: hidden;
    background: var(--paper-strong);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }

  .marketplace-table tbody th,
  .marketplace-table tbody td {
    display: grid;
    grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    min-width: 0;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
  }

  .marketplace-table tbody tr > :last-child {
    border-bottom: 0;
  }

  .marketplace-table tbody th::before,
  .marketplace-table tbody td::before {
    grid-row: 1 / span 2;
    align-self: start;
    color: var(--ink-500);
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .marketplace-readiness-cell {
    grid-template-columns: minmax(8rem, 0.42fr) auto minmax(0, 1fr) !important;
    justify-content: start;
  }

  .marketplace-table__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .marketplace-tree__body {
    padding-right: 12px;
    padding-left: 12px;
  }

  .marketplace-group-summary__heading,
  .marketplace-results__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .marketplace-tabs__item {
    flex-basis: 100%;
  }

  .marketplace-table tbody th,
  .marketplace-table tbody td,
  .marketplace-readiness-cell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .marketplace-table tbody th::before,
  .marketplace-table tbody td::before {
    grid-row: auto;
  }
}

/* Responsive */

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desk-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .rail {
    position: fixed;
    left: 0;
    width: min(86vw, var(--rail-width));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app-shell.is-menu-open .rail {
    transform: translateX(0);
  }

  .rail-scrim {
    position: fixed;
    z-index: 25;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgb(10 30 43 / 58%);
    border: 0;
  }

  .app-shell.is-menu-open .rail-scrim {
    display: block;
  }

  .workbench__masthead {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 24px 22px 20px;
  }

  .menu-toggle {
    display: grid;
    width: 41px;
    height: 41px;
    place-content: center;
    gap: 4px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .menu-toggle > span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--ink-900);
  }

  .masthead-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .workbench__content {
    padding: 24px 22px 42px;
  }

  .workbench__footer {
    padding: 17px 22px 25px;
  }

  .notice-stack {
    width: calc(100% - 44px);
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 330px;
    padding: 33px;
  }

  .auth-story__copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .auth-story__copy p,
  .auth-story__folio {
    display: none;
  }

  .tenant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-main {
    grid-template-columns: 1fr;
  }

  .candidate-progress {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 18px;
    align-items: center;
  }

  .candidate-progress__number {
    grid-row: span 2;
  }

  .candidate-progress__label {
    margin: 0 0 7px;
  }

  .candidate-progress p {
    grid-column: 1 / -1;
  }

  .company-dossier-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .company-dossier-filter .field {
    width: 100%;
  }

  .company-dossier-filter p {
    margin: 0;
  }
}

@media (max-width: 620px) {
  .workbench__masthead {
    gap: 14px;
  }

  .masthead-copy h1 {
    font-size: 2rem;
  }

  .masthead-actions {
    grid-column: 1 / -1;
  }

  .masthead-actions .button {
    flex: 1;
  }

  .dispatch,
  .metric-grid,
  .record-aside,
  .definition-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dispatch__main,
  .dispatch__aside {
    padding: 21px;
  }

  .metric-card {
    min-height: 110px;
  }

  .group-tree__header,
  .company-branch__header,
  .dossier-branch__header,
  .action-branch__header,
  .group-card,
  .group-card__actions,
  .group-card__action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .group-tree__header {
    align-items: start;
  }

  .company-branch__header,
  .dossier-branch,
  .company-branch__empty {
    margin-right: 0;
    margin-left: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .action-list {
    padding-left: 10px;
  }

  .group-card__state {
    justify-self: start;
  }

  .group-card__actions,
  .group-card__action {
    justify-content: stretch;
  }

  .group-card__actions > *,
  .group-card__action .button,
  .group-create .button {
    width: 100%;
  }

  .group-card__actions .group-card__action {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .company-action-table__actions,
  .company-group-table__actions,
  .company-group-table__actions form {
    align-items: stretch;
    flex-direction: column;
  }

  .company-action-table__actions > *,
  .company-group-table__actions .button {
    width: 100%;
  }

  .queue-item {
    grid-template-columns: 1fr auto;
  }

  .queue-item > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .definition-grid > div,
  .definition-grid > div:nth-child(2n),
  .definition-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .definition-grid > div:last-child {
    border-bottom: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .auth-desk {
    padding: 35px 23px;
  }

  .tenant-page {
    padding: 28px 20px;
  }

  .tenant-page__header {
    display: block;
    margin-bottom: 30px;
  }

  .tenant-grid {
    grid-template-columns: 1fr;
  }

  .tenant-card {
    min-height: 200px;
  }

  .candidate-header,
  .candidate-main {
    padding-right: 22px;
    padding-left: 28px;
  }

  .candidate-header__help {
    display: none;
  }

  .application-note,
  .requirement-item {
    grid-template-columns: 1fr;
  }

  .requirement-item__icon {
    display: none;
  }
}

/* Persistent desktop navigation rail */

.rail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 21px;
}

.rail-brand .brand {
  min-width: 0;
  flex: 1;
  padding-bottom: 0;
}

.brand--rail {
  display: grid;
  grid-template-columns: minmax(0, 150px);
  gap: 4px;
  align-content: center;
}

.brand--rail img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.brand--rail .brand__symbol {
  display: none;
}

.rail-brand__product {
  display: block;
  color: #bdcbd2;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  color: #c8d4d9;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 180ms ease;
}

.rail-toggle:hover {
  color: var(--white);
  background: rgb(255 255 255 / 11%);
}

.rail-toggle .icon {
  transition: transform 180ms ease;
}

.tenant-stamp__compact {
  display: none;
}

.logout-form {
  padding: 0;
}

.logout-action {
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.logout-form__label {
  color: inherit;
}

.rail-collapsed .app-shell {
  --rail-width: 72px;
}

.rail-collapsed .rail {
  --rail-compact-size: 44px;

  padding-inline: 10px;
}

.rail-collapsed .rail::after {
  display: none;
}

.rail-collapsed .rail-brand {
  flex-direction: column;
  margin-bottom: 14px;
}

.rail-collapsed .rail-brand .brand {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  min-height: var(--rail-compact-size);
  flex: 0 0 auto;
  justify-content: center;
  padding: 0;
}

.rail-collapsed .brand__wordmark,
.rail-collapsed .rail-brand__product,
.rail-collapsed .tenant-stamp__eyebrow,
.rail-collapsed .tenant-stamp__name,
.rail-collapsed .tenant-stamp__code,
.rail-collapsed .tenant-stamp a,
.rail-collapsed .rail-nav__label,
.rail-collapsed .rail-nav__count,
.rail-collapsed .rail-navigation__label,
.rail-collapsed .operator > .operator__copy,
.rail-collapsed .logout-action > .logout-form__label {
  display: none;
}

.rail-collapsed .brand--rail {
  display: flex;
}

.rail-collapsed .brand--rail .brand__symbol {
  display: block;
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
}

.rail-collapsed .rail-toggle {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  min-height: var(--rail-compact-size);
  flex-basis: var(--rail-compact-size);
}

.rail-collapsed .rail-toggle .icon {
  transform: rotate(180deg);
}

.rail-collapsed .tenant-stamp {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  min-height: var(--rail-compact-size);
  place-items: center;
  margin: 0 auto 18px;
  padding: 0;
  border-radius: 9px;
}

.rail-collapsed .tenant-stamp::before {
  width: 3px;
}

.rail-collapsed .tenant-stamp__compact {
  display: grid;
  place-items: center;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 800;
}

.rail-collapsed .rail-nav__item {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  min-height: var(--rail-compact-size);
  justify-content: center;
  gap: 0;
  margin-inline: auto;
  padding: 0;
}

.rail-collapsed .rail-nav__item:hover {
  transform: none;
}

.rail-collapsed .rail__footer {
  justify-items: center;
}

.rail-collapsed .logout-form {
  width: var(--rail-compact-size);
}

.rail-collapsed .operator {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
  min-height: var(--rail-compact-size);
  justify-content: center;
  padding: 0;
}

.rail-collapsed .operator__avatar {
  width: var(--rail-compact-size);
  height: var(--rail-compact-size);
}

.rail-collapsed .rail--admin .rail-nav__item.is-active::before {
  inset-block: 8px;
  left: -9px;
}

.snapshot-current-data,
.snapshot-document-list {
  margin: 16px 0 0;
  padding: 0;
}

.snapshot-current-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.snapshot-current-data > div {
  min-width: 0;
  padding: 10px;
  background: var(--paper-muted);
}

.snapshot-current-data dt,
.snapshot-readonly-field small,
.snapshot-document-list small {
  color: var(--ink-500);
  font-size: 0.65rem;
}

.snapshot-current-data dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

.snapshot-readonly-field {
  justify-content: center;
  padding: 11px 13px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
}

.snapshot-readonly-field strong,
.snapshot-readonly-field small {
  display: block;
}

.snapshot-document-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.snapshot-document-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-document-list span,
.snapshot-document-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .rail-collapsed .app-shell {
    --rail-width: 256px;
  }

  .rail-toggle {
    display: none;
  }

  .rail-collapsed .rail {
    padding: 22px 16px 16px;
  }

  .rail-collapsed .rail::after {
    display: block;
  }

  .rail-collapsed .rail-brand {
    flex-direction: row;
    margin-bottom: 21px;
  }

  .rail-collapsed .rail-brand .brand {
    width: auto;
    height: auto;
    min-height: 0;
    flex: 1;
    justify-content: flex-start;
    padding: 0 6px;
  }

  .rail-collapsed .brand__wordmark,
  .rail-collapsed .rail-brand__product,
  .rail-collapsed .tenant-stamp__eyebrow,
  .rail-collapsed .tenant-stamp__name,
  .rail-collapsed .tenant-stamp__code,
  .rail-collapsed .tenant-stamp a,
  .rail-collapsed .rail-nav__label,
  .rail-collapsed .rail-nav__count,
  .rail-collapsed .rail-navigation__label,
  .rail-collapsed .operator > .operator__copy,
  .rail-collapsed .logout-action > .logout-form__label {
    display: initial;
  }

  .rail-collapsed .operator > .operator__copy {
    display: grid;
  }

  .rail-collapsed .brand--rail {
    display: grid;
  }

  .rail-collapsed .brand__wordmark,
  .rail-collapsed .rail-brand__product {
    display: block;
  }

  .rail-collapsed .brand--rail .brand__symbol {
    display: none;
  }

  .rail-collapsed .tenant-stamp {
    width: auto;
    height: auto;
    min-height: 0;
    place-items: initial;
    margin: 0 3px 22px;
    padding: 14px 14px 13px 17px;
    border-radius: 3px 9px 9px 3px;
  }

  .rail-collapsed .tenant-stamp__compact {
    display: none;
  }

  .rail-collapsed .rail-nav__item {
    width: 100%;
    height: auto;
    min-height: 42px;
    justify-content: flex-start;
    gap: 12px;
    margin-inline: 0;
    padding: 9px 11px;
  }

  .rail-collapsed .rail__footer {
    justify-items: stretch;
  }

  .rail-collapsed .rail__footer > .rail-nav__item,
  .rail-collapsed .logout-form,
  .rail-collapsed .logout-action {
    width: 100%;
  }

  .rail-collapsed .operator {
    width: auto;
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    padding: 9px 7px 4px;
  }

  .rail-collapsed .operator__avatar {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 540px) {
  .snapshot-current-data {
    grid-template-columns: minmax(0, 1fr);
  }

  .snapshot-document-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Administration desk — editorial control room */

.admin-page {
  background:
    linear-gradient(90deg, rgb(16 43 63 / 2.5%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgb(16 43 63 / 2.5%) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

.rail--admin {
  background:
    radial-gradient(circle at 12% 8%, rgb(47 160 216 / 22%), transparent 25%),
    linear-gradient(168deg, #081d2b 0%, var(--ink-950) 48%, #123c53 100%);
}

.rail--admin .tenant-stamp {
  color: var(--paper-strong);
  background: transparent;
  border: 1px solid rgb(47 160 216 / 48%);
  border-left: 4px solid var(--amber);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 3%);
}

.rail--admin .tenant-stamp::before {
  display: none;
}

.rail--admin .tenant-stamp__eyebrow,
.rail--admin .tenant-stamp > span:last-of-type {
  color: #c7d1d5;
}

.admin-pulse,
.admin-section {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-pulse {
  position: relative;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  color: var(--paper-strong);
  background:
    linear-gradient(115deg, transparent 0 61%, rgb(47 160 216 / 8%) 61% 61.5%, transparent 61.5%),
    radial-gradient(circle at 88% 12%, rgb(47 160 216 / 24%), transparent 30%),
    var(--ink-950);
  border-color: rgb(10 30 43 / 70%);
  border-radius: var(--radius-lg);
}

.admin-pulse::after {
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 260px;
  height: 180px;
  border: 1px solid rgb(255 255 255 / 8%);
  content: "";
  transform: rotate(-8deg);
  pointer-events: none;
}

.admin-pulse--error {
  max-width: 780px;
  background: linear-gradient(135deg, var(--ink-950), #3c2525);
}

.admin-pulse--error h2 {
  max-width: 16ch;
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.admin-pulse--error p:not(.admin-kicker) {
  max-width: 60ch;
  color: #d6dcde;
}

.admin-pulse--error code {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 9px;
  color: var(--amber-soft);
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-sm);
}

.admin-pulse__heading,
.admin-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-pulse__heading {
  position: relative;
  z-index: 1;
  padding-bottom: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.admin-kicker {
  margin: 0 0 5px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-pulse h2,
.admin-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.admin-pulse h2 {
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.admin-cutoff {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  color: #aebfc7;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.admin-cutoff time {
  color: var(--paper-strong);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.admin-scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(135px, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgb(255 255 255 / 14%);
}

.admin-total-card,
.admin-metric-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 25px 22px;
  background: rgb(7 26 39 / 83%);
}

.admin-total-card {
  background: rgb(255 255 255 / 9%);
}

.admin-total-card p,
.admin-metric-card p {
  margin: 0;
  color: #cfdbdf;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-total-card strong,
.admin-metric-card strong {
  margin: 13px 0 9px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.admin-total-card small {
  align-self: end;
  margin-top: 18px;
  color: #9eb0b8;
  font-size: 0.68rem;
  line-height: 1.35;
}

.admin-metric-card__code {
  position: absolute;
  top: 11px;
  right: 12px;
  color: rgb(47 160 216 / 72%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.admin-delta {
  width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid currentcolor;
  border-radius: 2px;
}

.admin-delta--up {
  color: #9fd4b9;
}

.admin-delta--down {
  color: #efada1;
}

.admin-delta--neutral {
  color: #b7c4ca;
}

.admin-section {
  margin-top: 22px;
  padding: clamp(22px, 2.5vw, 34px);
  background: rgb(255 255 255 / 94%);
  border-radius: var(--radius-lg);
}

.admin-section__header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-section__header h2 {
  color: var(--ink-950);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.admin-section__header > p {
  max-width: 48ch;
  margin: 2px 0 0;
  color: var(--ink-500);
  font-size: 0.76rem;
  text-align: right;
}

.activity-ruler {
  position: relative;
  display: grid;
  min-width: 920px;
  height: 190px;
  grid-template-columns: repeat(24, minmax(34px, 1fr));
  gap: 1px;
  margin-top: 22px;
  padding: 14px 12px 8px;
  overflow: hidden;
  background: var(--ink-950);
  border: 1px solid var(--ink-950);
  border-radius: var(--radius-sm);
}

.activity-ruler::before {
  position: absolute;
  z-index: 0;
  top: 48px;
  right: 12px;
  left: 12px;
  height: 1px;
  background: rgb(255 255 255 / 7%);
  box-shadow: 0 40px rgb(255 255 255 / 7%), 0 80px rgb(255 255 255 / 7%);
  content: "";
  pointer-events: none;
}

.admin-section--activity {
  overflow-x: auto;
}

.activity-ruler__hour {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  grid-template-rows: minmax(90px, 1fr) auto auto;
  align-items: end;
  justify-items: center;
  gap: 4px;
  color: #a9bbc3;
  border-left: 1px solid rgb(255 255 255 / 6%);
}

.activity-ruler__hour:nth-child(6n + 1) {
  border-left-color: rgb(47 160 216 / 62%);
}

.activity-ruler__bar {
  width: 64%;
  min-height: 2px;
  height: max(2px, var(--activity-level));
  background: var(--brand-blue);
  box-shadow: 0 0 16px rgb(47 160 216 / 28%);
}

.activity-ruler__hour strong,
.activity-ruler__hour small {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.activity-ruler__hour strong {
  color: #dbe2e4;
  font-size: 0.64rem;
}

.activity-ruler__hour small {
  font-size: 0.58rem;
}

.activity-table-wrap {
  max-height: 250px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-800);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.activity-table th,
.activity-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--paper-muted);
}

.activity-table th:first-child,
.activity-table td:first-child {
  text-align: left;
}

.activity-table thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: var(--paper-strong);
  background: var(--ink-900);
}

.admin-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 22px;
}

.admin-operations-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-count-stamp {
  display: grid;
  min-width: 46px;
  height: 32px;
  place-items: center;
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.admin-count-stamp--alert {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgb(163 62 54 / 35%);
}

.admin-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-feed li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 15px 2px;
  border-bottom: 1px solid var(--paper-muted);
}

.admin-feed li:last-child {
  border-bottom: 0;
}

.admin-feed__mark {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.admin-feed strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.admin-feed p {
  margin: 2px 0 0;
  color: var(--ink-500);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.admin-feed__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.admin-feed__meta code {
  color: var(--ink-700);
  font: inherit;
}

.admin-attention-list {
  margin: 0;
}

.admin-attention-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--paper-muted);
}

.admin-attention-list dt {
  color: var(--ink-700);
  font-size: 0.78rem;
}

.admin-attention-list dd {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-attention-list .is-critical dt,
.admin-attention-list .is-critical dd {
  color: var(--red);
}

.admin-empty-state {
  padding: 48px 20px;
  color: var(--ink-500);
  text-align: center;
}

/* Operations center */

.operations-center {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.operations-center > .admin-section,
.operations-center__grid > .admin-section {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.operations-center__header {
  padding: clamp(22px, 3vw, 34px);
  color: var(--paper-strong);
  background: var(--ink-950);
  border: 1px solid var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.operations-center__header h2,
.operations-center__header > p {
  color: inherit;
}

.operations-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.operations-summary a {
  display: grid;
  min-height: 142px;
  align-content: start;
  gap: 7px;
  padding: 20px;
  color: var(--ink-900);
  text-decoration: none;
  background: var(--paper-strong);
}

.operations-summary a:hover {
  color: var(--ink-950);
  background: var(--amber-soft);
}

.operations-summary span,
.operations-summary small {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.operations-summary span {
  font-weight: 700;
}

.operations-summary strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
}

.operations-summary small {
  margin-top: auto;
}

.operations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operations-tabs--workspace {
  margin-bottom: 22px;
}

.operations-tabs a {
  display: inline-flex;
  min-height: var(--touch-target);
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--paper-strong);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.operations-tabs a:hover,
.operations-tabs a[aria-current="page"] {
  color: var(--paper-strong);
  background: var(--ink-950);
  border-color: var(--ink-950);
}

.operations-tabs a[aria-disabled="true"] {
  color: var(--ink-500);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.operations-tabs span {
  min-width: 1.6rem;
  padding: 2px 5px;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-align: center;
  border: 1px solid currentcolor;
  border-radius: 999px;
}

.operations-center__grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.operations-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.operations-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0 12px 12px;
  border-bottom: 1px solid var(--paper-muted);
  border-left: 4px solid var(--line-dark);
}

.operations-item--warning {
  border-left-color: var(--warning);
}

.operations-item--critical {
  border-left-color: var(--danger);
}

.operations-item strong,
.operations-item p {
  display: block;
  margin: 5px 0 0;
}

.operations-item p,
.operations-item__meta {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.operations-item__meta {
  display: grid;
  min-width: 128px;
  align-content: space-between;
  justify-items: end;
  gap: 8px;
  font-family: var(--mono);
  text-align: right;
}

.operations-table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}

.operations-table small {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.67rem;
  line-height: 1.35;
}

.operations-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  margin: 20px 0;
}

.operations-filters .button {
  min-height: var(--touch-target);
}

.funnel-stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.funnel-stages article,
.funnel-metrics article {
  padding: 18px;
  background: var(--paper-strong);
}

.funnel-stages article {
  display: grid;
  min-height: 178px;
  align-content: start;
  gap: 7px;
}

.funnel-stages article > span {
  color: var(--brand-blue);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.funnel-stages strong,
.funnel-metrics strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.funnel-stages h4,
.funnel-stages p,
.funnel-stages small,
.funnel-metrics p,
.funnel-metrics small {
  margin: 0;
}

.funnel-stages h4 {
  color: var(--ink-900);
  font-size: 0.82rem;
}

.funnel-stages p,
.funnel-stages small,
.funnel-metrics p,
.funnel-metrics small {
  color: var(--ink-500);
  font-size: 0.7rem;
}

.funnel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.funnel-metrics article {
  display: grid;
  min-height: 138px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* End operations center */

.admin-empty-state strong {
  color: var(--ink-800);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.admin-empty-state p {
  margin: 6px 0 0;
  font-size: 0.78rem;
}

.admin-empty-state--clear {
  margin-top: 18px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgb(36 108 84 / 20%);
  border-radius: var(--radius);
}

/* Nextfen admin visual system — compact operational directories */

.admin-page {
  color: var(--text);
  font-family: var(--body);
  background: var(--surface-alt);
}

.admin-page .workbench,
.admin-page .workbench__content,
.admin-page .panel,
.admin-page .filter-bar,
.admin-page .responsive-card-table {
  min-width: 0;
}

.rail--admin {
  background: var(--brand-navy);
  border-right: 3px solid var(--brand-blue);
}

.rail--admin .rail-navigation {
  min-height: 0;
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.rail-nav--secondary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.rail-navigation__label {
  padding: 0 11px 5px;
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail--admin .rail__footer {
  flex: 0 0 auto;
  margin-top: 12px;
}

.rail--admin .rail-nav__item {
  position: relative;
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
}

.rail--admin .rail-nav__item.is-active {
  color: var(--white);
  background: rgb(47 160 216 / 16%);
  border-color: rgb(47 160 216 / 40%);
  box-shadow: none;
}

.rail--admin .rail-nav__item.is-active::before {
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 3px;
  background: var(--brand-blue);
  border-radius: 0 3px 3px 0;
  content: "";
}

.rail :is(a, button):focus-visible,
.button:not(.button--quiet):focus-visible,
.button--danger:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-ring);
}

.rail--admin .operator__avatar {
  color: var(--brand-navy);
  background: var(--blue-soft);
}

.admin-page .workbench__masthead {
  min-height: 118px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 22px;
  background: rgb(255 255 255 / 82%);
}

.admin-page .masthead-copy h1 {
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.admin-page .masthead-copy > p:last-child:not(.eyebrow) {
  margin-top: 7px;
  font-family: var(--body);
  line-height: 1.45;
}

.admin-page .eyebrow,
.directory-result-count,
.admin-page .section-label {
  color: var(--brand-blue-dark);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-page .workbench__content {
  padding-top: 24px;
}

.admin-page .panel {
  background: rgb(255 255 255 / 98%);
  border-color: #d6e1e7;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgb(10 30 43 / 5%), 0 7px 18px rgb(10 30 43 / 4%);
}

.admin-page .panel + .panel,
.admin-page details.panel + .panel,
.admin-page .filter-bar + .panel,
.admin-page .directory-result-count + .panel {
  margin-top: 18px;
}

.admin-page .panel__header {
  min-height: 68px;
  align-items: center;
  padding: 16px 19px;
}

.admin-page .panel__header h2,
.admin-page .panel__header h3 {
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.012em;
}

.admin-page .panel__header p {
  max-width: 70ch;
  color: var(--text-soft);
  line-height: 1.4;
}

.admin-page .panel__body {
  padding: 18px 19px;
}

.admin-audit-intro {
  border-top: 3px solid var(--brand-blue) !important;
}

.admin-audit-intro .panel__body {
  color: var(--text-soft);
  background: #f4f9fc;
}

.admin-page .filter-bar,
.filter-bar--admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #eef5f8;
  border-color: #cbdce5;
  border-top: 3px solid var(--brand-blue);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
}

.admin-page .filter-bar .field,
.admin-page .filter-bar .field--search {
  width: 100%;
  min-width: 0;
}

.admin-page .filter-bar .field--search {
  grid-column: span 2;
}

.admin-page .filter-bar .button {
  width: 100%;
}

.directory-result-count {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin: -3px 0 13px;
  color: var(--text-soft);
}

.directory-result-count::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--brand-blue);
  border-radius: 50%;
  content: "";
}

.admin-page .field__label,
.admin-page .field > label:first-child {
  color: #314b5a;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-page .field__control {
  min-height: var(--touch-target);
  color: var(--text);
  border-color: #aebfc9;
  border-radius: 5px;
}

.admin-page .field__control:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgb(12 93 131 / 18%);
}

.admin-page .field__control:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.admin-page .field__control[readonly] {
  color: var(--text-soft);
  background: #edf2f5;
}

.admin-page .button {
  min-height: var(--touch-target);
  padding: 9px 15px;
  color: var(--white);
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  border-radius: 5px;
  box-shadow: 0 2px 7px rgb(31 124 171 / 18%);
}

.admin-page .button:hover {
  color: var(--white);
  background: #145f84;
  border-color: #145f84;
}

.admin-page .button--quiet {
  color: #174c66;
  background: var(--white);
  border-color: #9eb5c2;
  box-shadow: none;
}

.admin-page .button--quiet:hover {
  color: var(--brand-navy);
  background: #e9f4f9;
  border-color: var(--brand-blue-dark);
}

.admin-page .button--danger {
  color: var(--white);
  background: #b63232;
  border-color: #9c2929;
  box-shadow: none;
}

.admin-page .button--danger:hover {
  background: #8e2525;
  border-color: #8e2525;
}

.admin-page .button--small {
  min-height: 38px;
}

.admin-page .notice {
  border-radius: 5px;
  box-shadow: none;
}

.admin-page .notice__close,
.admin-page .menu-toggle,
.rail--admin .text-action {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
}

.admin-page .notice--success {
  color: #155d3d;
  background: #e1f3e9;
  border-color: #188052;
}

.admin-page .notice--warning {
  color: #67420b;
  background: #fff2d9;
  border-color: #a9660b;
}

.admin-page .notice--danger,
.admin-page .notice--error {
  color: #7f2222;
  background: #fde9e9;
  border-color: #ae3030;
}

.admin-page .status {
  padding: 4px 8px;
  color: #43545e;
  background: #edf1f3;
  border-color: #c6d0d5;
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 700;
}

.admin-page .status--success {
  color: #12663f;
  background: #e1f3e9;
  border-color: #9bcfb5;
}

.admin-page .status--warning {
  color: #704806;
  background: #fff0d4;
  border-color: #dec08b;
}

.admin-page .status--danger {
  color: #922929;
  background: #fde7e7;
  border-color: #e2abab;
}

.admin-page .status--info {
  color: #185d7a;
  background: #e0f1f8;
  border-color: #a4ccdd;
}

.admin-page .table-wrap,
.admin-page .responsive-card-table {
  max-width: 100%;
  overflow-x: auto;
  border-color: #d3dfe5;
}

.admin-page .data-table {
  color: var(--text);
  font-family: var(--body);
  font-variant-numeric: tabular-nums;
}

.admin-page .data-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 10px 13px;
  color: #48606d;
  background: #edf3f6;
  border-color: #bfcfd7;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.075em;
}

.admin-page .data-table td {
  max-width: 34rem;
  padding: 11px 13px;
  color: #3f4b52;
  overflow-wrap: anywhere;
}

.admin-page .data-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.admin-page .data-table tbody tr:hover {
  background: #f1f8fb;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.admin-page .data-table .cell-title {
  color: var(--text);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-page .data-table small,
.admin-page .field__help {
  color: var(--text-soft);
}

.admin-page .admin-groups-table .group-directory-cell {
  min-width: 8.5rem;
  vertical-align: top;
}

.admin-page .admin-groups-table .group-directory-cell--dossier,
.admin-page .admin-groups-table .group-directory-cell--state,
.admin-page .admin-groups-table .group-directory-cell--operation {
  min-width: 0;
  white-space: nowrap;
}

.admin-page .admin-groups-table .group-directory-cell--dates {
  min-width: 10.5rem;
  white-space: nowrap;
}

.admin-page .admin-groups-table .group-directory-cell > .cell-title,
.admin-page .admin-groups-table .group-directory-cell > small {
  display: block;
}

.admin-page .admin-groups-table .group-directory-cell > small {
  margin-top: 3px;
}

.admin-page .data-table code,
.admin-page .data-table time {
  font-family: var(--mono);
  font-size: 0.69rem;
}

.admin-page .row-link {
  min-height: var(--touch-target);
  padding: 7px 3px;
  color: #17688f;
}

.admin-page .row-link:hover {
  color: #104f6d;
}

.admin-page .pagination {
  min-height: 52px;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

.admin-page .pagination__link {
  display: inline-flex;
  min-width: 96px;
  min-height: var(--touch-target);
  align-items: center;
  justify-content: center;
  color: #174c66;
  border-color: #aebfc9;
  border-radius: 5px;
}

.admin-page .pagination__link:not(.is-disabled):hover {
  background: #e8f4f9;
  border-color: var(--brand-blue-dark);
}

.admin-page .pagination__link.is-disabled {
  color: #6d7980;
  background: #edf1f3;
  opacity: 1;
}

.admin-page .empty-state,
.admin-page .admin-empty-state {
  max-width: 620px;
  min-height: 220px;
  align-content: center;
  padding: 38px 24px;
  background: #f7fafb;
  border: 1px dashed #b8cbd5;
  box-shadow: none;
}

.admin-page .empty-state h2,
.admin-page .empty-state h3,
.admin-page .admin-empty-state strong {
  color: var(--text);
  font-family: var(--serif);
}

.admin-page .admin-disclosure,
.admin-page .hierarchy-card,
.admin-page .assignment-card {
  min-width: 0;
}

.call-record-header,
.call-record-sections,
.call-dossiers-panel,
.call-dossier-stack,
.call-directory-table,
.call-form,
.call-dossier-form,
.call-action-summary {
  min-width: 0;
}

.record-breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.record-breadcrumbs a {
  color: var(--brand-blue-dark);
}

.call-dossier-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.call-dossier-card {
  border-left: 4px solid var(--brand-blue);
}

.call-action-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.call-action-summary > div {
  display: grid;
  min-width: 0;
}

.call-action-summary strong,
.call-directory-table td,
.call-directory-table th {
  overflow-wrap: anywhere;
}

.admin-page details > summary {
  min-height: var(--touch-target);
  list-style: none;
  outline-offset: -3px;
}

.admin-page details > summary::-webkit-details-marker {
  display: none;
}

.hierarchy-card {
  position: relative;
  border-color: #bfd0d9;
  box-shadow: 0 2px 9px rgb(10 30 43 / 5%);
}

.hierarchy-card > summary {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  cursor: pointer;
}

.hierarchy-card > summary::after,
.assignment-card > summary::after,
.admin-disclosure > summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-blue-dark);
  border-bottom: 2px solid var(--brand-blue-dark);
  content: "";
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.hierarchy-card[open] > summary::after,
.assignment-card[open] > summary::after,
.admin-disclosure[open] > summary::after {
  transform: rotate(225deg);
}

.hierarchy-card > summary strong,
.assignment-card > summary strong {
  display: block;
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.hierarchy-card > summary > span:nth-child(2),
.assignment-card > summary > span:nth-child(2) {
  color: var(--text-soft);
  font-size: 0.7rem;
  text-align: right;
}

.hierarchy-card__actions {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  background: #f5f9fb;
}

.assignment-list {
  position: relative;
  gap: 12px;
  padding-left: 36px;
}

.assignment-list::before {
  position: absolute;
  inset: 16px auto 20px 23px;
  width: 1px;
  background: #b7d8e7;
  content: "";
}

.assignment-card__toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.assignment-card__toolbar > .assignment-card {
  min-width: 0;
}

.assignment-card__create {
  margin-top: 7px;
}

.assignment-card {
  position: relative;
  display: block;
  padding: 0;
  border-left: 3px solid var(--brand-blue);
}

.assignment-card::before {
  position: absolute;
  top: 24px;
  left: -16px;
  width: 13px;
  height: 1px;
  background: #b7d8e7;
  content: "";
}

.assignment-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto) 16px;
  gap: 14px;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
}

.admin-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
}

.admin-disclosure[open] > summary {
  color: var(--brand-navy);
  background: #eaf5fa;
}

.admin-page .context-form,
.admin-page .action-stack form {
  min-width: 0;
  padding: 14px;
  background: #f7fafb;
  border: 1px solid #d2e0e7;
  border-radius: 6px;
}

.admin-page .action-stack {
  min-width: 0;
}

.admin-page .checkbox-field {
  min-height: var(--touch-target);
  align-items: center;
  color: #3d505b;
}

.admin-page .checkbox-field input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--brand-blue-dark);
}

.impersonation-banner {
  min-height: 68px;
  color: #4c330b;
  background: #fff3dc;
  border-color: #ad6b0d;
}

.impersonation-banner strong::before {
  color: var(--white);
  background: #71460b;
}

.impersonation-banner .button {
  min-height: var(--touch-target);
}

.admin-pulse {
  background: var(--brand-navy);
  border-top: 4px solid var(--brand-blue);
}

.activity-ruler__bar {
  background: var(--brand-blue);
}

@media (max-width: 768px) {
  .admin-page .workbench__masthead {
    min-height: auto;
    align-items: start;
  }

  .admin-page .filter-bar,
  .filter-bar--admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .filter-bar .field--search {
    grid-column: 1 / -1;
  }

  .hierarchy-card > summary,
  .assignment-card > summary {
    grid-template-columns: minmax(0, 1fr) 16px;
  }

  .hierarchy-card > summary > span:nth-child(2),
  .assignment-card > summary > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .hierarchy-card > summary::after,
  .assignment-card > summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .hierarchy-card__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-context-path {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .responsive-card-table {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .admin-page .activity-table-wrap.responsive-card-table {
    max-height: none;
    overflow: visible;
  }

  .admin-page .responsive-card-table .data-table,
  .admin-page .responsive-card-table tbody,
  .admin-page .responsive-card-table tr,
  .admin-page .responsive-card-table td,
  .admin-page .responsive-card-table tbody th {
    display: block;
    width: 100%;
  }

  .admin-page .responsive-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-page .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-page .responsive-card-table tr {
    padding: 8px 14px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }

  .admin-page .responsive-card-table .data-table td,
  .admin-page .responsive-card-table .data-table tbody th {
    display: block;
    max-width: none;
    padding: 10px 0;
    text-align: left;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .admin-page .responsive-card-table .data-table td::before,
  .admin-page .responsive-card-table .data-table tbody th::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-500);
    content: attr(data-label);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-page .responsive-card-table .data-table td:last-child {
    border-bottom: 0;
  }

  .admin-page .responsive-card-table .data-table .cell-actions {
    width: auto;
  }

  .admin-page .responsive-card-table .admin-groups-table .group-directory-cell {
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .admin-page .filter-bar,
  .filter-bar--admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .filter-bar .field--search {
    grid-column: auto;
  }

  .assignment-list {
    padding-right: 12px;
    padding-left: 25px;
  }

  .assignment-list::before {
    left: 14px;
  }

  .assignment-card::before {
    left: -12px;
    width: 9px;
  }

  .admin-page .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-page .pagination > span:nth-child(2) {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1120px) {
  .operations-summary,
  .funnel-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operations-center__grid {
    grid-template-columns: 1fr;
  }

  .admin-scoreboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-total-card {
    grid-column: 1 / -1;
    min-height: 160px;
  }

  .admin-operations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .operations-summary,
  .funnel-metrics,
  .operations-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-item {
    grid-template-columns: 1fr;
  }

  .operations-item__meta {
    justify-items: start;
    text-align: left;
  }

  .admin-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-pulse__heading,
  .admin-section__header {
    display: grid;
  }

  .admin-cutoff,
  .admin-section__header > p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .operations-summary,
  .funnel-stages,
  .funnel-metrics,
  .operations-filters {
    grid-template-columns: 1fr;
  }

  .operations-summary a,
  .funnel-stages article,
  .funnel-metrics article {
    min-height: 0;
  }

  .operations-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .operations-tabs a {
    justify-content: space-between;
  }

  .admin-pulse,
  .admin-section {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  .admin-scoreboard {
    grid-template-columns: 1fr;
  }

  .admin-total-card,
  .admin-metric-card,
  .admin-total-card {
    grid-column: auto;
    min-height: 134px;
  }

  .admin-feed li {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .admin-feed__meta {
    grid-column: 2;
    justify-items: start;
  }
}

/* Student common profile */

.student-profile-page {
  --student-accent: #e5a92d;
  --student-ink: #123247;
  background:
    linear-gradient(90deg, var(--student-ink) 0, var(--student-ink) 10px, transparent 10px),
    radial-gradient(circle at 92% 8%, rgb(47 160 216 / 13%), transparent 24rem),
    var(--paper);
}

.student-header {
  display: flex;
  width: min(calc(100% - 64px), 1240px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line-dark);
}

.student-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--student-ink);
  text-decoration: none;
}

.student-brand:hover {
  color: var(--student-ink);
}

.student-brand img {
  border-radius: 7px;
  box-shadow: 0 7px 18px rgb(16 45 66 / 16%);
}

.student-brand span {
  display: grid;
  line-height: 1.05;
}

.student-brand strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.student-brand small {
  margin-top: 4px;
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-nav,
.student-nav form {
  display: flex;
  align-items: center;
}

.student-nav {
  gap: 22px;
}

.student-nav a,
.student-nav button {
  color: var(--student-ink);
  font-size: 0.73rem;
  font-weight: 700;
}

.student-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.student-nav a[aria-current="page"] {
  border-bottom-color: var(--student-accent);
}

.student-nav button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.student-profile-shell {
  display: grid;
  width: min(calc(100% - 64px), 1240px);
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 100px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 96px;
}

/* Student applications */

.student-applications-shell {
  width: min(calc(100% - 64px), 1060px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 96px;
}

.student-applications-intro {
  display: grid;
  max-width: 760px;
  gap: 10px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.student-applications-intro h1 {
  margin: 0;
  color: var(--student-ink);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.student-applications-intro > p:last-child {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.7;
}

.student-applications-intro a {
  color: var(--student-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.student-application-list {
  display: grid;
  gap: 18px;
}

.student-application-card {
  padding: clamp(22px, 4vw, 34px);
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.student-application-card__heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.student-application-card__number {
  padding-top: 3px;
  color: var(--student-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.student-application-card__title h2 {
  margin: 4px 0 0;
  color: var(--student-ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.student-application-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0 58px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.student-application-meta div {
  padding: 14px 16px;
  background: var(--paper-muted);
}

.student-application-meta dt,
.student-dossier-progress span {
  color: var(--ink-500);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-application-meta dd {
  margin: 4px 0 0;
  color: var(--student-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.student-dossier-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 26px;
  align-items: center;
  margin: 18px 0 0 58px;
  padding: 18px 20px;
  color: white;
  background: var(--student-ink);
  border-radius: var(--radius);
}

.student-dossier-state h3 {
  margin: 5px 0 0;
  color: white;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.student-dossier-state > p {
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.7rem;
  text-align: right;
}

.student-dossier-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
}

.student-dossier-progress strong {
  grid-row: 1 / 3;
  color: var(--student-accent);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.student-dossier-progress span {
  color: rgb(255 255 255 / 66%);
  line-height: 1.35;
}

.student-dossier-progress progress {
  width: 100%;
  height: 5px;
  margin-top: 5px;
  accent-color: var(--student-accent);
}

.student-applications-note {
  max-width: 720px;
  margin: 24px 0 0 58px;
  padding-left: 14px;
  color: var(--ink-500);
  border-left: 3px solid var(--student-accent);
  font-size: 0.7rem;
  line-height: 1.55;
}

.student-applications-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: clamp(28px, 6vw, 56px);
  background: rgb(255 255 255 / 75%);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-lg);
}

.student-applications-empty > span {
  color: var(--student-accent);
  font-family: var(--mono);
  font-size: 2.8rem;
}

.student-applications-empty h2 {
  margin: 0;
  color: var(--student-ink);
  font-family: var(--serif);
}

.student-applications-empty p {
  margin: 6px 0 0;
  color: var(--ink-500);
}

.student-profile-status {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 24px 22px 22px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(150deg, rgb(255 255 255 / 8%), transparent 45%),
    var(--student-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.student-profile-status::after {
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border: 22px solid rgb(229 169 45 / 14%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.student-profile-status__index {
  position: absolute;
  top: 12px;
  right: 16px;
  margin: 0;
  color: rgb(255 255 255 / 14%);
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.student-profile-status > .eyebrow {
  position: relative;
  margin: 0 0 7px;
  color: var(--student-accent);
}

.student-profile-status h2 {
  position: relative;
  max-width: 220px;
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.student-profile-status__verification {
  margin: 10px 0 22px;
  color: #c4d3da;
  font-size: 0.72rem;
}

.student-profile-status__count {
  margin: 0 0 9px;
  color: white;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-profile-status ul {
  max-height: min(33vh, 270px);
  margin: 0;
  padding: 0 0 0 17px;
  overflow: auto;
  color: #c4d3da;
  font-size: 0.7rem;
}

.student-profile-status li + li {
  margin-top: 7px;
}

.student-profile-status__complete {
  padding: 13px;
  color: #dff6e9;
  background: rgb(34 163 106 / 18%);
  border-left: 3px solid var(--green);
  font-size: 0.74rem;
}

.student-section-nav {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.student-section-nav a {
  padding: 5px 0;
  color: #d8e2e7;
  font-size: 0.69rem;
  text-decoration: none;
}

.student-section-nav a:hover {
  color: var(--student-accent);
}

.student-profile-content {
  min-width: 0;
  animation: student-profile-arrive 380ms ease-out both;
}

.student-support-notice {
  max-width: 790px;
  margin: 0 0 24px;
}

.student-support-notice form {
  margin-left: auto;
}

.student-support-notice .button {
  white-space: nowrap;
}

@keyframes student-profile-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-profile-intro {
  max-width: 790px;
  padding-bottom: clamp(42px, 7vw, 76px);
}

.student-profile-intro > .eyebrow {
  margin: 0 0 8px;
  color: var(--ink-700);
}

.student-profile-intro h1 {
  margin: 0;
  color: var(--student-ink);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.student-profile-intro > p:last-child {
  max-width: 620px;
  margin: 25px 0 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.student-profile-section {
  padding: 34px 0 54px;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: 20px;
}

.student-profile-section__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-bottom: 26px;
}

.student-profile-section__heading > span {
  padding-top: 4px;
  color: var(--student-accent);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
}

.student-profile-section__heading .eyebrow {
  margin: 0 0 3px;
  color: var(--ink-500);
}

.student-profile-section__heading h2 {
  margin: 0;
  color: var(--student-ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.student-section-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  padding-left: 57px;
}

.student-section-form--single {
  grid-template-columns: minmax(0, 1fr);
}

.student-employment-details {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-dark);
}

[data-student-employment-details][hidden] {
  display: none;
}

.student-extra-field-form {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-dark);
}

.student-extra-field-form label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-recommendation {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  color: #0b7250;
  background: #e3f6ed;
  border: 1px solid #acdcca;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-recommendation-help {
  color: #0b7250;
}

.student-section-form .field__control {
  background: rgb(255 255 255 / 80%);
  border-color: var(--line-dark);
}

.student-autosave-status {
  min-height: 1.1rem;
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 0.68rem;
}

.student-autosave-status[data-state="saving"] {
  color: var(--brand-blue-dark);
}

.student-autosave-status[data-state="saved"] {
  color: var(--green);
}

.student-autosave-status[data-state="error"] {
  color: var(--danger);
}

.field__control[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(173 45 45 / 12%);
}

.student-section-form__actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
}

.student-autosave-ready
  .student-section-form[data-student-autosave-form]
  .student-section-form__actions {
  display: none;
}

.student-email-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 20px;
  margin: 0 0 22px 57px;
  padding: 18px 20px;
  background: rgb(255 255 255 / 84%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.student-email-card span,
.student-email-card small {
  display: block;
  color: var(--ink-500);
  font-size: 0.67rem;
}

.student-email-card strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--student-ink);
  font-size: 0.9rem;
}

.student-email-card p {
  margin: 0;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.student-email-card small {
  grid-column: 1 / -1;
}

.student-document-list {
  display: grid;
  gap: 14px;
  padding-left: 57px;
}

.student-document-upload {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  margin: 0 0 18px 57px;
  padding: 20px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.student-document-upload h3,
.student-document-upload p {
  margin: 0;
}

.student-document-upload h3 {
  color: var(--student-ink);
  font-family: var(--serif);
}

.student-document-upload > div > p:last-child {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 0.72rem;
}

.student-document-upload .student-document-form {
  margin-top: 0;
}

.student-document-card {
  padding: 19px;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.student-document-card > header,
.student-document-card > header > div,
.student-document-current {
  display: flex;
  align-items: center;
}

.student-document-card > header,
.student-document-current {
  justify-content: space-between;
  gap: 18px;
}

.student-document-card > header > div {
  min-width: 0;
  gap: 11px;
}

.student-document-card > header > div > span {
  color: var(--student-accent);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.student-document-card h3 {
  margin: 0;
  color: var(--student-ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.student-document-current {
  margin: 16px 0;
  padding: 11px 13px;
  background: var(--paper-muted);
  border-radius: var(--radius-sm);
}

.student-document-current strong,
.student-document-current small {
  display: block;
}

.student-document-current strong {
  overflow-wrap: anywhere;
  font-size: 0.73rem;
}

.student-document-current small,
.student-document-current a,
.student-document-delete button {
  color: var(--ink-500);
  font-size: 0.65rem;
}

.student-document-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}

.student-document-form > .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.student-document-delete {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  text-align: right;
}

.student-document-delete label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 0.65rem;
}

.student-document-delete button {
  padding: 0;
  color: var(--red);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.student-document-empty,
.student-privacy-note {
  margin-left: 57px;
  padding: 18px;
  background: var(--paper-muted);
  border-radius: var(--radius);
}

.student-document-empty strong {
  color: var(--student-ink);
  font-family: var(--serif);
}

.student-document-empty p,
.student-privacy-note {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.student-document-empty p {
  margin: 6px 0 0;
}

.student-privacy-note {
  margin-top: 14px;
  border-left: 3px solid var(--student-accent);
}

@media (max-width: 900px) {
  .student-profile-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-profile-status {
    position: relative;
    top: auto;
  }

  .student-profile-status ul {
    max-height: none;
  }

  .student-section-nav {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .student-profile-page {
    background:
      linear-gradient(90deg, var(--student-ink) 0, var(--student-ink) 6px, transparent 6px),
      var(--paper);
  }

  .student-header,
  .student-profile-shell,
  .student-applications-shell {
    width: min(calc(100% - 38px), 1240px);
  }

  .student-header {
    align-items: flex-start;
  }

  .student-nav {
    display: grid;
    justify-items: end;
    gap: 7px;
  }

  .student-profile-shell {
    gap: 42px;
    padding-top: 28px;
  }

  .student-support-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-support-notice form {
    margin-left: 0;
  }

  .student-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    overflow-x: visible;
  }

  .student-applications-shell {
    padding-top: 32px;
  }

  .student-applications-intro h1 {
    font-size: clamp(3rem, 17vw, 4.3rem);
  }

  .student-application-card__heading {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .student-application-card__heading > .status {
    grid-column: 2;
    justify-self: start;
  }

  .student-application-meta,
  .student-dossier-state,
  .student-applications-note {
    margin-left: 0;
  }

  .student-application-meta,
  .student-dossier-state {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-dossier-state > p {
    text-align: left;
  }

  .student-profile-intro h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .student-section-form,
  .student-document-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-section-form,
  .student-document-list {
    padding-left: 0;
  }

  .student-document-upload {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
  }

  .student-email-card,
  .student-document-empty,
  .student-privacy-note {
    margin-left: 0;
  }

  .student-email-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-document-card > header {
    align-items: flex-start;
  }

  .student-document-current {
    align-items: flex-start;
  }

  .student-document-delete {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .student-section-form__actions .button,
  .student-document-form > .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hierarchy-card__actions,
  .compact-admin-form,
  .assignment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hierarchy-card__header,
  .hierarchy-card__actions,
  .assignment-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .assignment-card__toolbar {
    gap: 6px;
  }

  .admin-disclosure--group {
    width: 100%;
  }

  .admin-submit-field .button,
  .form-actions .button {
    width: 100%;
  }

  .workbench__masthead,
  .workbench__content,
  .workbench__footer {
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .filter-bar,
  .action-stack,
  .notice--warning,
  .admin-pulse {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .filter-bar,
  .notice--warning {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-bar .field,
  .filter-bar .field--search,
  .filter-bar .button,
  .impersonation-banner form,
  .impersonation-banner .button {
    width: 100%;
    min-width: 0;
  }

  .action-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-pulse,
  .admin-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .call-branch {
    margin-right: 0;
    margin-left: 0;
  }

  details.call-branch > summary,
  .call-branch__header,
  .marketplace-tree__call-heading,
  .dossier-branch__header,
  .call-action-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .call-record-header,
  .call-dossiers-panel,
  .marketplace-tree__call,
  .marketplace-tree__dossier,
  .call-directory-table {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .company-master__grid,
  .company-master__grid--collections {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-summary > div:nth-child(2) {
    border-right: 0;
  }

  .profile-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }
}

@media (max-width: 430px) {
  .profile-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-summary > div,
  .profile-summary > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .profile-summary > div:last-child {
    border-bottom: 0;
  }

  .profile-section {
    padding: 15px;
  }
}

/* Admin requirement configuration */

.requirement-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  background: #cbdce5;
  border: 1px solid #cbdce5;
  border-radius: 9px;
}

.requirement-overview article {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: #f8fbfc;
}

.requirement-overview span,
.requirement-overview small,
.requirement-family header span,
.requirement-items small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.requirement-overview strong {
  color: var(--brand-navy);
  font-family: var(--mono);
  font-size: 1.55rem;
  line-height: 1;
}

.requirements-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
}

.requirements-workspace__aside {
  position: sticky;
  top: 18px;
}

.requirement-create {
  width: min(100%, 660px);
}

.requirement-create > summary {
  white-space: nowrap;
}

.field__control--code {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.requirement-family-list {
  display: grid;
  gap: 14px;
  background: #f3f7f9;
}

.requirement-family {
  padding: 17px;
  background: var(--white);
  border: 1px solid #d7e2e8;
  border-left: 3px solid var(--brand-blue);
  border-radius: 7px;
}

.requirement-family > header,
.requirement-draft__heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.requirement-family h3,
.requirement-draft p {
  margin: 0;
}

.requirement-draft {
  display: grid;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dce6eb;
}

.requirement-draft__heading > span {
  padding: 4px 8px;
  color: #76500c;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  background: #fff5da;
  border: 1px solid #ead6a1;
  border-radius: 999px;
}

.requirement-items,
.requirement-principles ol {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.requirement-items li,
.requirement-principles li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.requirement-items li > span,
.requirement-principles li > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--brand-blue-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  background: var(--blue-soft);
  border-radius: 50%;
}

.requirement-items li > div,
.requirement-principles p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.requirement-add-item {
  padding: 14px;
  background: #f6fafc;
  border: 1px solid #d9e5eb;
  border-radius: 7px;
}

.requirement-impact {
  padding: 15px;
  background: #eef8f4;
  border: 1px solid #c6e1d7;
  border-radius: 7px;
}

.requirement-impact dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  margin: 10px 0 14px;
  overflow: hidden;
  background: #c6e1d7;
  border: 1px solid #c6e1d7;
  border-radius: 5px;
}

.requirement-impact dl > div {
  padding: 10px;
  background: var(--white);
}

.requirement-impact dt {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.requirement-impact dd {
  margin: 3px 0 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.requirement-impact form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.requirement-assignments {
  display: grid;
  gap: 24px;
}

.requirement-assignment-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.requirement-principles strong {
  color: var(--brand-navy);
}

.admin-document-review {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.admin-document-review .admin-disclosure__body {
  min-width: min(380px, 70vw);
}

/* Shared creation dialogs */

.app-modal {
  width: min(44rem, calc(100vw - 32px));
  max-width: none;
  max-height: min(48rem, calc(100vh - 32px));
  padding: 0;
  color: var(--ink-950);
  background: transparent;
  border: 0;
  overflow: visible;
}

.app-modal::backdrop {
  background: rgb(10 30 43 / 58%);
  backdrop-filter: blur(2px);
}

.app-modal__surface {
  display: grid;
  max-height: min(48rem, calc(100vh - 32px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.app-modal__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 18px;
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.app-modal__header h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.25;
}

.app-modal__header p {
  max-width: 58ch;
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.app-modal__close {
  display: grid;
  flex: 0 0 var(--touch-target);
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  place-items: center;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.app-modal__close:hover {
  color: var(--ink-950);
  background: var(--paper-muted);
  border-color: var(--line-dark);
}

.app-modal__body {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-modal--danger .app-modal__surface {
  border-color: rgb(216 77 77 / 55%);
}

.app-modal--danger .app-modal__header {
  background: var(--red-soft);
  border-bottom-color: rgb(216 77 77 / 34%);
}

.app-modal--danger .app-modal__header h2 {
  color: #8e2727;
}

.app-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.student-completion-link {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.student-completion-link__status {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  color: var(--ink-700);
  background: var(--paper);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.student-completion-link__url {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.student-completion-link__url label,
.student-completion-link__meta dt {
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-completion-link__url > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.student-completion-link__url input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-completion-link__meta {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-completion-link__meta > div {
  min-width: 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.student-completion-link__meta dd {
  min-width: 0;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-950);
  font-weight: 700;
}

.student-completion-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.student-completion-link__url .button,
.student-completion-link__actions .button {
  min-height: var(--touch-target);
}

@media (max-width: 900px) {
  .company-call-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .company-call-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .app-modal__surface {
    max-height: calc(100vh - 20px);
    border-radius: var(--radius);
  }

  .app-modal__header,
  .app-modal__body {
    padding: 18px;
  }

  .app-modal__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .app-modal__actions .button {
    width: 100%;
  }

  .student-completion-link__url > div,
  .student-completion-link__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-completion-link__url .button,
  .student-completion-link__actions .button {
    width: 100%;
  }

  .student-completion-link__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1080px) {
  .requirements-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .requirements-workspace__aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .requirement-overview,
  .requirement-impact dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requirement-assignment-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body,
  .admin-page {
    color: #000;
    background: #fff !important;
  }

  .rail,
  .rail-scrim,
  .masthead-actions,
  .menu-toggle,
  .workbench__footer,
  .button,
  .filter-bar,
  .pagination,
  .notice-stack {
    display: none !important;
  }

  .impersonation-banner {
    position: static;
    display: flex !important;
    color: #000;
    background: #fff !important;
    border: 2px solid #555;
    box-shadow: none;
  }

  .impersonation-banner form {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .workbench__masthead,
  .workbench__content {
    padding-right: 0;
    padding-left: 0;
  }

  .panel,
  .table-wrap {
    break-inside: avoid;
    border-color: #aaa;
    box-shadow: none;
  }

  .workbench__masthead {
    min-height: 0;
    border-color: #777;
  }

  .data-table th {
    color: #000;
    background: #eee !important;
  }
}

/* Student secure access */

.student-access-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink-950);
  background: linear-gradient(
    135deg,
    var(--brand-navy),
    var(--ink-900) 58%,
    var(--ink-950)
  );
}

.student-access-page #main-content {
  min-height: 100vh;
}

.student-access-shell {
  position: relative;
  display: grid;
  width: min(100%, 34rem);
  min-height: 100vh;
  align-content: center;
  gap: 24px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 74px) 24px;
}

.student-access-shell::before,
.student-access-shell::after {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
  content: "";
  transform: rotate(32deg);
}

.student-access-shell::before {
  top: -190px;
  left: -130px;
  border: 1px solid var(--ink-700);
}

.student-access-shell::after {
  right: -190px;
  bottom: -170px;
  border: 1px solid var(--brand-blue-dark);
}

.student-access-brand,
.student-access-card,
.student-access-footnote {
  position: relative;
  z-index: 1;
}

.student-access-brand {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.student-access-brand:hover {
  color: var(--white);
}

.student-access-brand img {
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.student-access-brand span {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.student-access-brand strong {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1rem;
}

.student-access-brand small {
  margin-top: 5px;
  color: var(--line);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.student-access-card {
  width: 100%;
  padding: clamp(27px, 6vw, 42px);
  background: var(--paper-strong);
  border-top: 5px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.student-access-card > .eyebrow {
  margin: 0 0 14px;
}

.student-access-card > h1,
.student-access-status h1 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.student-access-intro {
  margin: 15px 0 0;
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.65;
}

.student-access-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.student-access-form .field {
  min-width: 0;
}

.student-access-form .button {
  width: 100%;
  min-height: var(--touch-target);
}

.student-access-alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: var(--danger);
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.student-access-text-link {
  display: block;
  margin-top: 16px;
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.student-access-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 4px;
  color: var(--ink-400);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.student-access-divider::before,
.student-access-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.student-access-logout {
  margin-top: 14px;
}

.student-access-logout .button {
  width: 100%;
}

.student-access-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.student-access-status > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.student-access-status p {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.student-access-status--success > span {
  color: var(--green);
  background: var(--green-soft);
}

.student-access-status--warning > span {
  color: var(--warning);
  background: var(--warning-soft);
}

.student-access-secondary {
  width: 100%;
  margin-top: 26px;
}

.student-access-footnote {
  margin: 0;
  color: var(--line);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 560px) {
  .student-access-shell {
    width: min(100%, 34rem);
    gap: 18px;
    padding: 24px 16px;
  }

  .student-access-card {
    padding: 25px 21px 27px;
  }

  .student-access-card > h1,
  .student-access-status h1 {
    font-size: clamp(1.75rem, 10vw, 2.35rem);
  }

  .student-access-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Company global candidate profile */

.company-profile-page {
  --content-width: 1560px;
  --student-accent: #e5a92d;
  --student-ink: #123247;
}

.company-profile-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
}

.company-profile-context > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.company-profile-context strong {
  overflow-wrap: anywhere;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.company-profile-context small {
  color: var(--ink-500);
  font-size: 0.7rem;
}

.company-profile-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.company-profile-content,
.company-profile-form,
.company-profile-fieldset {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.company-profile-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.company-profile-fieldset:disabled {
  opacity: 0.78;
}

.company-profile-panel {
  scroll-margin-top: 18px;
}

.company-profile-panel .panel__header h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.protected-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.protected-profile-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 16px 18px;
  background: var(--paper-muted);
}

.protected-profile-grid span,
.protected-profile-grid small {
  color: var(--ink-500);
  font-size: 0.64rem;
}

.protected-profile-grid span {
  font-family: var(--mono);
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.protected-profile-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 0.82rem;
}

.company-profile-save {
  position: sticky;
  z-index: 3;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  background: rgb(255 250 240 / 92%);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.company-document-list,
.company-document-empty,
.company-document-note {
  margin-left: 0;
  padding-left: 0;
}

.company-document-note {
  padding: 16px;
}

@media (max-width: 980px) {
  .company-profile-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-profile-workspace .student-profile-status {
    position: static;
  }

  .protected-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .company-profile-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-profile-save,
  .company-profile-save .button {
    width: 100%;
  }
}
