:root {
  /* Brand tokens */
  --brand-midnight-navy: #0b2138;
  --brand-heritage-blue: #1c4a77;
  --brand-paper-ivory: #f5f1e8;
  --brand-aged-brass: #b69243;
  --brand-mineral-sage: #7b9887;
  --brand-oxblood: #a94b52;

  /* Product tokens */
  --color-canvas: #f5f1e8;
  --color-canvas-elevated: #fbf8f1;
  --color-surface: rgba(255, 252, 247, 0.88);
  --color-surface-strong: #fffdf9;
  --color-surface-soft: rgba(255, 250, 242, 0.75);
  --color-rail: linear-gradient(180deg, #0b2138 0%, #102a45 100%);
  --color-border: rgba(11, 33, 56, 0.12);
  --color-border-strong: rgba(11, 33, 56, 0.18);
  --color-text: #162536;
  --color-text-muted: rgba(22, 37, 54, 0.72);
  --color-text-soft: rgba(22, 37, 54, 0.56);
  --color-white: #ffffff;
  --color-success: #4f8766;
  --color-warning: #b57a2a;
  --color-danger: #a94b52;
  --color-shadow: 0 24px 60px rgba(11, 33, 56, 0.12);
  --color-shadow-tight: 0 16px 34px rgba(11, 33, 56, 0.08);

  --font-wordmark: "Playfair SC", "Times New Roman", serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  --radius-field: 14px;
  --radius-card: 16px;
  --radius-panel: 20px;
  --radius-pill: 999px;

  --rail-width: 252px;
  --content-max: 1520px;
}

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

html {
  color: var(--color-text);
  font-family: var(--font-ui);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(182, 146, 67, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(123, 152, 135, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f4eb 0%, #f5f1e8 100%);
  color: var(--color-text);
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: var(--brand-heritage-blue);
  text-decoration: none;
}

a:hover,
.text-link:hover,
.inline-link:hover {
  text-decoration: underline;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.5), transparent 20%),
    radial-gradient(circle at 85% 8%, rgba(182, 146, 67, 0.1), transparent 18%);
}

.experience {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 22px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: var(--color-shadow-tight);
  backdrop-filter: blur(14px);
}

.card--elevated {
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--color-shadow);
}

.card--brand {
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(13, 42, 68, 0.84), rgba(5, 22, 39, 0.94));
  overflow: hidden;
}

.secure-access,
.platform-shell {
  max-width: var(--content-max);
  margin: 0 auto;
}

.platform-shell {
  display: none;
}

body[data-app-state="signed-in"] .secure-access {
  display: none;
}

body[data-app-state="signed-in"] .platform-shell {
  display: block;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.03fr) minmax(420px, 0.87fr);
  gap: 20px;
  min-height: calc(100dvh - 44px);
}

.brand-panel,
.signin-panel {
  position: relative;
  min-height: 100%;
}

.brand-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 30px 24px;
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.brand-panel::before {
  background:
    linear-gradient(180deg, rgba(8, 24, 40, 0.08), rgba(8, 24, 40, 0.08)),
    url("/brand-login-hero.png");
  background-position:
    center,
    26% center;
  background-size:
    cover,
    cover;
  transform: scale(1.02);
}

.brand-panel::after {
  background:
    linear-gradient(
      180deg,
      rgba(7, 21, 35, 0.26) 0%,
      rgba(10, 30, 48, 0.34) 18%,
      rgba(10, 31, 49, 0.52) 42%,
      rgba(8, 24, 40, 0.76) 72%,
      rgba(6, 20, 34, 0.9) 100%
    ),
    linear-gradient(90deg, rgba(7, 21, 35, 0.46) 0%, rgba(7, 21, 35, 0.22) 38%, rgba(7, 21, 35, 0.1) 100%);
}

.brand-panel__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%);
  pointer-events: none;
}

.brand-panel__top,
.brand-panel__body,
.brand-panel__footer {
  position: relative;
  z-index: 1;
}

.wordmark-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(182, 146, 67, 0.5);
  border-radius: 22px;
  color: var(--brand-aged-brass);
  font-family: var(--font-wordmark);
  font-size: 2rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
}

.monogram--small {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.2rem;
}

.wordmark {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-wordmark);
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-accent-line {
  width: 72px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(182, 146, 67, 0.86), rgba(182, 146, 67, 0.2));
}

.brand-line {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  max-width: 30rem;
  text-wrap: balance;
}

.brand-panel__body {
  align-self: center;
  max-width: 31rem;
  padding-block: 0;
  transform: translateY(-18px);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0 0 var(--space-2);
  color: var(--brand-aged-brass);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.page-title {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.06;
}

.hero-title {
  max-width: 10ch;
  font-size: clamp(2.45rem, 3.15vw, 4.05rem);
  text-wrap: balance;
}

.hero-copy,
.section-copy,
.page-copy {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.brand-panel__body .hero-copy {
  margin-bottom: 78px;
}

.section-copy,
.page-copy {
  color: var(--color-text-muted);
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(182, 146, 67, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand-aged-brass);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item strong,
.entity-badge p,
.session-card p,
.metric-value,
.status-row span:first-child,
.task-list__row strong,
.audit-list__row span:first-child {
  display: block;
  font-weight: 700;
}

.entity-signoff {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 2px 0 4px;
}

.entity-badge .entity-signoff {
  font-weight: 500;
}

.trust-item small,
.entity-badge small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.legal-line {
  font-size: 0.74rem;
  line-height: 1.38;
}

.entity-badge {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.entity-badge__monogram {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(182, 146, 67, 0.4);
  color: var(--brand-aged-brass);
  font-family: var(--font-wordmark);
  font-size: 1.08rem;
  margin-top: 2px;
}

.signin-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 2.8vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 252, 247, 0.94)),
    radial-gradient(circle at top right, rgba(182, 146, 67, 0.12), transparent 22%);
}

.section-title {
  font-size: clamp(2.15rem, 2.35vw, 3.05rem);
  color: var(--brand-midnight-navy);
}

.section-copy {
  margin-top: 12px;
  max-width: 28rem;
  line-height: 1.52;
}

.signin-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group label,
.field-label-row {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-midnight-navy);
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 52px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-field);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.input-shell:focus-within {
  border-color: rgba(28, 74, 119, 0.42);
  box-shadow:
    0 0 0 4px rgba(28, 74, 119, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.input-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  outline: 0;
}

.input-shell input::placeholder {
  color: rgba(22, 37, 54, 0.42);
}

.input-icon {
  display: inline-flex;
  color: rgba(11, 33, 56, 0.42);
}

.input-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  min-height: 50px;
  border-radius: 16px;
  padding: 0 var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-weight: 700;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--full {
  width: 100%;
}

.button--primary {
  color: var(--color-white);
  background: linear-gradient(180deg, #245789 0%, #173f66 100%);
  box-shadow: 0 14px 28px rgba(20, 55, 89, 0.18);
}

.button--secondary {
  color: var(--brand-midnight-navy);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.72);
}

.button--ghost {
  min-height: 42px;
  color: var(--brand-midnight-navy);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.48);
}

.button--compact {
  padding-inline: 18px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.button__arrow {
  font-size: 1rem;
}

.text-link {
  padding: 0;
  color: var(--brand-heritage-blue);
  font-size: 0.92rem;
}

.divider {
  position: relative;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--color-border);
}

.divider span {
  position: relative;
  padding-inline: var(--space-2);
  background: rgba(255, 252, 247, 0.94);
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-field);
  background: rgba(182, 146, 67, 0.08);
  color: var(--brand-midnight-navy);
  line-height: 1.45;
}

.notice-strip__icon {
  color: var(--brand-aged-brass);
  font-size: 1rem;
}

.form-assist {
  margin: -6px 0 0;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  line-height: 1.52;
}

.support-block {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.support-block__title {
  margin: 0 0 var(--space-1);
  color: var(--brand-midnight-navy);
  font-weight: 700;
}

.brand-panel a,
.entity-badge a {
  color: rgba(255, 255, 255, 0.86);
}

.brand-panel a:hover,
.entity-badge a:hover {
  color: var(--color-white);
}

.shell-frame {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100vh - 2 * var(--space-4));
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(11, 33, 56, 0.1);
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 26px 70px rgba(11, 33, 56, 0.12);
}

.shell-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  color: var(--color-white);
  background: var(--color-rail);
}

.wordmark-lockup--rail .wordmark {
  font-size: 1.2rem;
}

.shell-nav {
  display: grid;
  gap: var(--space-1);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-2);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--color-white);
  background: rgba(28, 74, 119, 0.9);
}

.nav-item__icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item__icon svg,
.search-shell__icon svg,
.context-chip__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-rail__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.session-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-weight: 800;
}

.avatar--small {
  width: 36px;
  height: 36px;
  background: var(--brand-heritage-blue);
}

.session-card small,
.version-tag,
.environment-note,
.task-list__row small {
  color: var(--color-text-soft);
}

.shell-rail .session-card small,
.shell-rail .version-tag {
  color: rgba(255, 255, 255, 0.62);
}

.status-line {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 6px rgba(79, 135, 102, 0.14);
}

.version-tag {
  margin: var(--space-2) 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-main {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    var(--color-canvas);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 500px);
  padding: 0 var(--space-2);
  min-height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.search-shell input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.context-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-text);
}

.context-chip strong,
.context-chip small {
  display: block;
}

.context-chip small {
  color: var(--color-text-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge--neutral {
  color: var(--brand-midnight-navy);
  background: rgba(11, 33, 56, 0.07);
}

.badge--success,
.badge--success-soft {
  color: var(--color-success);
  background: rgba(79, 135, 102, 0.12);
}

.badge--warning {
  color: var(--color-warning);
  background: rgba(181, 122, 42, 0.12);
}

.badge--error,
.badge--alert {
  color: var(--brand-oxblood);
  background: rgba(169, 75, 82, 0.12);
}

.content-wrap {
  padding: var(--space-4);
  display: grid;
}

.workspace-view {
  display: none;
  gap: var(--space-3);
}

.workspace-view.is-active {
  display: grid;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: end;
}

.page-title {
  font-size: clamp(2.1rem, 2.4vw, 3rem);
  color: var(--brand-midnight-navy);
}

.page-copy {
  max-width: 44rem;
  margin-top: var(--space-1);
}

.page-intro__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.metric-grid,
.dashboard-grid {
  display: grid;
  gap: var(--space-3);
}

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

.dashboard-grid--primary {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
}

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

.metric-card,
.mini-surface,
.surface-table,
.attention-card {
  padding: var(--space-3);
}

.metric-card__header,
.card-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: start;
}

.metric-card__header {
  color: var(--color-text-muted);
  font-weight: 700;
}

.metric-icon {
  color: var(--brand-aged-brass);
}

.metric-value {
  margin: var(--space-2) 0 var(--space-1);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.2vw, 2.7rem);
}

.metric-meta {
  margin: 0;
  color: var(--color-text-muted);
}

.metric-meta--positive,
.positive {
  color: var(--color-success);
}

.negative {
  color: var(--brand-oxblood);
}

.mini-chart {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 42px;
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(28, 74, 119, 0.92), rgba(28, 74, 119, 0.34));
}

.mini-chart span:nth-child(1) { height: 16px; }
.mini-chart span:nth-child(2) { height: 19px; }
.mini-chart span:nth-child(3) { height: 17px; }
.mini-chart span:nth-child(4) { height: 24px; }
.mini-chart span:nth-child(5) { height: 22px; }
.mini-chart span:nth-child(6) { height: 31px; }
.mini-chart span:nth-child(7) { height: 38px; }

.card-header h3,
.mini-surface h3,
.surface-table h3,
.attention-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--brand-midnight-navy);
}

.card-header p,
.mini-surface p,
.surface-table p,
.attention-card p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
}

.surface-table table {
  width: 100%;
  margin-top: var(--space-3);
  border-collapse: collapse;
}

.surface-table th,
.surface-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 33, 56, 0.08);
  text-align: left;
}

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

.surface-table th {
  color: var(--color-text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono,
#context-time,
#snapshot-date,
#footer-timezone {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-3);
  color: var(--brand-heritage-blue);
  font-weight: 700;
}

.attention-list,
.audit-list,
.task-list {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.attention-list li,
.task-list__row,
.audit-list__row,
.status-row {
  display: grid;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(11, 33, 56, 0.08);
}

.attention-list li {
  grid-template-columns: 1fr auto;
}

.status-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.audit-list__row {
  grid-template-columns: minmax(0, 1.2fr) 60px auto;
}

.task-list__row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.task-date {
  color: var(--brand-heritage-blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-note {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(11, 33, 56, 0.14);
  border-radius: 18px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.48);
}

.resource-feedback {
  margin-top: var(--space-3);
  padding: 18px 20px;
  border: 1px dashed rgba(11, 33, 56, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--color-text-muted);
}

.resource-feedback strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-midnight-navy);
}

.resource-feedback p {
  margin: 0;
}

.shell-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-badge__icon {
  color: var(--brand-aged-brass);
}

@media (max-width: 1200px) {
  .access-layout,
  .shell-frame,
  .dashboard-grid--primary,
  .dashboard-grid--secondary,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .shell-rail {
    min-height: auto;
  }
}

@media (max-height: 960px), (max-width: 1480px) {
  .experience {
    padding: 18px;
  }

  .access-layout {
    min-height: calc(100dvh - 36px);
    gap: 16px;
  }

  .brand-panel {
    padding: 24px 24px 20px;
  }

  .signin-panel {
    padding: 24px 24px 22px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 2.95vw, 3.55rem);
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .trust-list {
    margin-top: 0;
    gap: 12px;
  }

  .trust-item small,
  .entity-badge small {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: clamp(1.98rem, 2.1vw, 2.7rem);
  }

  .section-copy {
    font-size: 0.98rem;
  }

  .signin-form {
    margin-top: 20px;
    gap: 16px;
  }

  .button,
  .input-shell {
    min-height: 48px;
  }

  .notice-strip {
    min-height: 42px;
  }
}

@media (max-height: 820px), (max-width: 1320px) {
  .experience {
    padding: 12px;
  }

  .access-layout {
    min-height: calc(100dvh - 24px);
    gap: 14px;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.85fr);
  }

  .brand-panel,
  .signin-panel {
    border-radius: 18px;
  }

  .brand-panel {
    padding: 20px 20px 16px;
  }

  .signin-panel {
    padding: 20px 20px 18px;
  }

  .monogram {
    width: 62px;
    height: 62px;
    font-size: 1.75rem;
  }

  .wordmark {
    font-size: 1.26rem;
  }

  .brand-line {
    font-size: 0.72rem;
    margin-top: 8px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 3vw, 3.1rem);
    max-width: 9ch;
  }

  .hero-copy,
  .section-copy,
  .support-block,
  .form-assist {
    font-size: 0.9rem;
  }

  .brand-panel__body .hero-copy {
    margin-bottom: 78px;
  }

  .brand-panel__body {
    padding-block: 0;
    transform: translateY(-12px);
  }

  .eyebrow {
    font-size: 1.16rem;
    margin-bottom: 12px;
  }

  .entity-signoff {
    font-size: 1.18rem;
  }

  .trust-list {
    margin-top: 0;
    gap: 10px;
  }

  .trust-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .trust-icon {
    width: 40px;
    height: 40px;
  }

  .trust-item small,
  .entity-badge small {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .entity-badge {
    padding-top: 12px;
  }

  .entity-badge__monogram {
    width: 42px;
    height: 42px;
  }

  .section-title {
    font-size: clamp(1.82rem, 2vw, 2.45rem);
  }

  .signin-form {
    margin-top: 18px;
    gap: 14px;
  }

  .field-group {
    gap: 8px;
  }

  .input-shell,
  .button {
    min-height: 44px;
  }

  .notice-strip {
    min-height: 40px;
    padding: 8px 12px;
  }

  .support-block {
    margin-top: 16px;
    padding-top: 12px;
  }
}

@media (max-width: 860px) {
  .experience {
    padding: var(--space-2);
  }

  .brand-panel,
  .signin-panel,
  .shell-rail,
  .content-wrap,
  .topbar {
    padding: var(--space-3);
  }

  .topbar,
  .page-intro,
  .shell-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__meta {
    justify-content: flex-start;
  }

  .context-chip {
    width: 100%;
  }
}
