:root {
  --surface: #f8f9fa;
  --surface-low: #f3f4f5;
  --card: #ffffff;
  --ink: #191c1d;
  --muted: #43474f;
  --line: #c3c6d0;
  --navy: #00274e;
  --navy-button: #0f3d6e;
  --red: #ba1a1a;
  --header: 64px;
  --footer: 56px;
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: 0 0 auto; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  height: var(--header);
  background: rgba(248, 249, 250, 0.94);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-bar, .footer-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand, .secure-pill, .primary-action, .secondary-action {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; min-width: 0; }

.brand-mark {
  width: 14px;
  height: 28px;
  border-radius: 3px;
  background: var(--red);
}

.brand-name, .brand-product { font-weight: 650; }

.brand-name { color: var(--navy); }

.brand-product { color: var(--muted); font-weight: 500; }

.brand-rule { width: 1px; height: 16px; background: var(--line); }

.secure-pill {
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(195, 198, 208, 0.7);
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 0.82rem;
}

.secure-pill strong, .tls-note strong { color: var(--ink); font-weight: 650; }

main { flex: 1; display: flex; align-items: center; padding: 32px 0; }

.entry {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(214, 224, 246, 0.7);
  color: #596376;
  font-size: 0.75rem;
  font-weight: 650;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead, .value-list p, .continuity, .access-card p, .card-foot {
  color: var(--muted);
  line-height: 1.5;
}

.lead { max-width: 540px; font-size: 1rem; }

.value-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }

.value-list li, .admin-note, .account-row {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(195, 198, 208, 0.55);
  border-radius: 10px;
  background: var(--card);
}

.value-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--navy);
}

.value-list h2, .access-card h2 { margin: 0 0 4px; font-size: 1rem; }

.continuity { display: flex; margin: 18px 0 0; font-size: 0.85rem; }

.access-column { display: grid; justify-items: center; }

.access-card {
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid rgba(195, 198, 208, 0.7);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.access-card h1, .access-card h2 { color: var(--ink); letter-spacing: -0.015em; }

.primary-action, .secondary-action, .text-action {
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-action {
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  background: var(--navy-button);
  color: #fff;
  cursor: pointer;
}

.primary-action:focus-visible, .secondary-action:focus-visible, .text-action:focus-visible, summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.centered-note, .card-foot { text-align: center; font-size: 0.85rem; }

.access-card hr { border: 0; border-top: 1px solid rgba(195, 198, 208, 0.7); margin: 18px 0; }

.help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
}

.tls-note {
  display: block;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(195, 198, 208, 0.45);
  border-radius: 10px;
  background: var(--surface-low);
  font-size: 0.85rem;
}

.card-foot { width: min(100%, 440px); margin: 14px 0 0; }

.narrow { display: flex; justify-content: center; }

.admin-note { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.account-row, .session-facts div { align-items: center; justify-content: space-between; }

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 0.75rem;
}

.session-facts { margin: 20px 0; display: grid; gap: 10px; }

.session-facts div {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid rgba(195, 198, 208, 0.55);
}

.session-facts dt { color: var(--muted); }

.session-facts dd { margin: 0; font-weight: 650; }

.secondary-action, .text-action {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-low);
  color: var(--ink);
  cursor: pointer;
}

.text-action { display: flex; align-items: center; }

.site-footer {
  height: var(--footer);
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(195, 198, 208, 0.45);
}

.footer-bar { color: var(--muted); font-size: 0.85rem; }

.footer-bar p { margin: 0; }

.footer-bar span { color: var(--ink); font-weight: 650; }

main:has(.workspace) { align-items: flex-start; }

.workspace {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.workspace-head,
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.record-head {
  padding-bottom: 16px;
  border-bottom: 3px solid var(--red);
}

.record-kind { margin: 10px 0 0; }

.record-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.primary-action.inline { width: auto; margin-top: 0; padding: 0 18px; }

.panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(195, 198, 208, 0.7);
  border-radius: 10px;
  background: var(--card);
}

.panel h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }

.agent-list, .member-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }

.agent-list a, .member-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(195, 198, 208, 0.7);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.field { display: block; margin: 16px 0 8px; font-weight: 650; }

.field-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}

.narrow-work { max-width: 640px; }

.workspace a { color: var(--navy); }

@media (max-width: 760px) {
  .shell { width: min(1180px, calc(100% - 32px)); }
  .secure-pill { display: none; }
  .header-bar { justify-content: flex-start; }
  .access-card { padding: 24px; }
}

@media (min-width: 1024px) {
  .entry { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr); gap: 64px; }
  .record-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
}
