:root {
  color-scheme: light;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  color: #17202a;
  background: #eef1f0;
  --ink: #17202a;
  --muted: #53636a;
  --line: #ccd8d5;
  --surface: #f4f7f6;
  --paper: #ffffff;
  --blue: #0f47af;
  --blue-dark: #092f70;
  --green: #078930;
  --green-dark: #056b26;
  --yellow: #f6d447;
  --focus: rgba(15, 71, 175, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #eef1f0;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue-dark);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(calc(100% - 3rem), 78rem);
  margin: 0 auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid #d6dfdc;
}

.site-utility {
  color: rgba(255, 255, 255, 0.9);
  background: var(--blue-dark);
}

.site-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6.2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
}

.brand-text {
  display: grid;
  gap: 0.06rem;
  line-height: 1;
}

.brand-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-name {
  color: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  gap: 0.25rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--blue);
  background: #f2f5fb;
  border-bottom-color: var(--yellow);
}

.site-nav-link.is-current {
  color: var(--blue-dark);
  border-bottom-color: var(--green);
}

.site-accent {
  height: 0.45rem;
  background: linear-gradient(
    105deg,
    var(--green) 0 52%,
    var(--yellow) 52% 67%,
    var(--blue) 67% 100%
  );
}

.welcome-page,
.admin-page {
  width: min(100%, 78rem);
  min-height: calc(100vh - 9.1rem);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.welcome-card,
.decision-card,
.results-card,
.human-review-card {
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  box-shadow: 0 0.45rem 1.25rem rgba(23, 32, 42, 0.06);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2rem;
  min-height: 17rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.75rem);
  color: #ffffff;
  background: var(--blue-dark);
  border: 0;
  box-shadow: 0 0.9rem 2rem rgba(9, 47, 112, 0.18);
}

.hero-panel::after {
  position: absolute;
  top: -20%;
  right: -8rem;
  width: 24rem;
  height: 140%;
  content: "";
  background: linear-gradient(
    135deg,
    rgba(7, 137, 48, 0.82) 0 48%,
    rgba(246, 212, 71, 0.9) 48% 55%,
    rgba(15, 71, 175, 0) 55%
  );
  transform: skewX(-18deg);
}

.hero-copy,
.hero-signpost {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 46rem;
}

.hero-panel .eyebrow {
  color: var(--yellow);
}

.hero-panel h1 {
  max-width: 40rem;
  color: #ffffff;
}

.hero-panel .intro {
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.hero-actions .navigation-button {
  margin-top: 0;
}

.hero-manual-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.4rem 0;
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 0.24em;
}

.hero-manual-link:hover,
.hero-manual-link:focus-visible {
  color: var(--yellow);
}

.hero-manual-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero-signpost {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-signpost-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-signpost strong {
  margin: 0.45rem 0 0.2rem;
  color: var(--yellow);
  font-size: clamp(3.6rem, 8vw, 5.8rem);
  line-height: 0.86;
}

.hero-signpost > span:last-child {
  max-width: 10rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-page {
  padding-bottom: 4rem;
}

.admin-auth-card {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  box-shadow: 0 0.45rem 1.25rem rgba(23, 32, 42, 0.06);
}

.admin-auth-copy h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.admin-auth-copy .section-intro {
  max-width: 58rem;
  margin: 0.7rem 0 0;
}

.admin-auth-logged-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.auth-option {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
}

.auth-option h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.auth-option p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-option .navigation-button,
.auth-option .print-button {
  justify-self: start;
  margin-top: 0.25rem;
}

.local-login-form {
  display: grid;
  gap: 0.85rem;
}

.local-login-form .navigation-button {
  margin-top: 0.1rem;
}

.admin-auth-logged-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #edf7f0;
  border: 1px solid #b8d8c0;
  border-left: 4px solid var(--green);
}

.auth-session-label {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#admin-auth-user {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

#admin-auth-user-context {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-auth-card > .admin-status {
  margin: 0;
}

.admin-card {
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.admin-management-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
}

.admin-management-card .hero-copy {
  min-width: 0;
}

.admin-management-card h1 {
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  overflow-wrap: anywhere;
}

.admin-management-sections {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.admin-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-management-section {
  height: 100%;
}

.admin-card .admin-section {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  color: var(--ink);
}

.admin-card > .navigation-button {
  grid-column: 1;
  justify-self: start;
  margin-top: 1.75rem;
}

.assessment-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.assessment-hero .hero-copy {
  max-width: 58rem;
}

.assessment-hero .admin-section {
  grid-column: 1;
  grid-row: auto;
}

.assessment-hero > .navigation-button {
  margin-top: 0;
}

.catalog-last-update {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.6rem 0.85rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--yellow);
}

.catalog-last-update span {
  color: var(--yellow);
  font-weight: 700;
}

.admin-section {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
}

.admin-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.admin-section .section-intro {
  margin-bottom: 0;
}

.assessment-manager {
  margin-top: 1.25rem;
  color: var(--ink);
}

.assessment-tool-picker,
.assessment-list-status {
  grid-column: 1 / -1;
}

.assessment-tool-picker select {
  min-height: 3rem;
  font-weight: 700;
}

.usability-card {
  margin-top: 1.5rem;
  padding: 1.25rem 0 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--green);
}

.usability-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.usability-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.assessment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assessment-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.16;
}

.assessment-scale {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  background: #e8effa;
  border: 1px solid #c3d3ed;
}

.assessment-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.55fr);
  align-items: end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.admin-field {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.admin-field > span {
  font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  background: var(--paper);
  border: 1px solid #aebfbb;
  border-radius: 0.1rem;
}

.admin-field textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.5;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.admin-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
}

.assessment-list-status {
  margin: 0;
  white-space: nowrap;
}

.assessment-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1.25rem;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}

.review-group > h4 {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.review-group-intro {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.assessment-history-details,
.catalog-metadata-details {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.assessment-history-details > summary,
.catalog-metadata-details > summary {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
}

.assessment-history-details > summary:focus-visible,
.catalog-metadata-details > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.assessment-form {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.assessment-form-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

.assessment-tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.assessment-restore-button {
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
}

.assessment-tool-context,
.assessment-last-updated {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.assessment-last-updated {
  font-size: 0.78rem;
}

.maintenance-status {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  background: var(--surface);
  border-left: 3px solid var(--line);
}

.maintenance-status.is-phased-out {
  color: #7a3f00;
  font-weight: 750;
  background: #fff5df;
  border-left-color: #d09b00;
}

.assessment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  color: var(--blue-dark);
  background: #e8effa;
  border: 1px solid #c3d3ed;
}

.assessment-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.assessment-history-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.assessment-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.assessment-history-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.assessment-history-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.assessment-history {
  display: grid;
  gap: 0.7rem;
  max-height: 24rem;
  margin-top: 0.75rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.assessment-history-item {
  padding: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
}

.assessment-history-item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
}

.assessment-history-item-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.assessment-history-fields {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.assessment-history-field {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.assessment-history-label {
  color: var(--muted);
  font-weight: 750;
}

.assessment-history-value {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.assessment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.catalog-metadata-panel {
  margin-top: 1.5rem;
  padding: 1.15rem;
  background: #f7fbf8;
  border: 1px solid #b8d8c0;
  border-left: 4px solid var(--green);
}

.catalog-metadata-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.metadata-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
}

.metadata-heading .section-intro {
  max-width: 56rem;
}

.metadata-research-summary {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  background: var(--paper);
  border: 1px solid var(--line);
}

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

.assessment-form-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.assessment-form-actions .navigation-button {
  margin-top: 0;
}

.admin-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.admin-status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.iram-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.iram-revision-label {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.iram-revision-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.iram-revision-form .admin-field {
  min-width: min(100%, 15rem);
}

.iram-revision-form .print-button {
  min-height: 2.65rem;
}

.data-preservation-note {
  margin: 0.55rem 0 0;
  color: var(--green-dark);
  font-size: 0.82rem;
  line-height: 1.45;
}

.catalog-refresh-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 0.85rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: #163c6b;
  background: #edf4ff;
  border: 1px solid #b8cce8;
  border-left: 5px solid var(--blue);
}

.catalog-refresh-progress.is-complete {
  color: var(--green-dark);
  background: #edf8f0;
  border-color: #b8dec1;
  border-left-color: var(--green);
}

.catalog-refresh-progress.is-error {
  color: #8b2f2f;
  background: #fff0f0;
  border-color: #e8bcbc;
  border-left-color: #b64040;
}

.catalog-refresh-progress-indicator {
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid rgba(15, 71, 175, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: catalog-refresh-spin 0.8s linear infinite;
}

.catalog-refresh-progress.is-complete .catalog-refresh-progress-indicator,
.catalog-refresh-progress.is-error .catalog-refresh-progress-indicator {
  border: 0;
  animation: none;
}

.catalog-refresh-progress.is-complete .catalog-refresh-progress-indicator::before {
  content: "✓";
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
}

.catalog-refresh-progress.is-error .catalog-refresh-progress-indicator::before {
  content: "!";
  color: #b64040;
  font-size: 1.25rem;
  font-weight: 900;
}

.catalog-refresh-progress-copy strong,
.catalog-refresh-progress-copy span {
  display: block;
}

.catalog-refresh-progress-copy strong {
  font-size: 0.95rem;
}

.catalog-refresh-progress-copy span {
  margin-top: 0.2rem;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
}

.catalog-refresh-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: #6b4b00;
  background: #fff5d8;
  border: 1px solid #e8d18c;
  font-size: 0.85rem;
  line-height: 1.45;
}

.catalog-refresh-progress progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 0.45rem;
  accent-color: var(--blue);
}

.catalog-refresh-progress.is-complete progress {
  accent-color: var(--green);
}

.catalog-refresh-progress.is-error progress {
  accent-color: #b64040;
}

@keyframes catalog-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-refresh-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.catalog-refresh-summary > div {
  display: grid;
  gap: 0.15rem;
  min-height: 4.4rem;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}

.catalog-refresh-summary strong {
  color: var(--blue-dark);
  font-size: 1.3rem;
}

.catalog-refresh-summary span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.audit-log-section {
  border-top: 4px solid var(--green);
}

.logbook-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.logbook-choice {
  min-height: 2.7rem;
  padding: 0.55rem 0.85rem;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.logbook-choice.is-active {
  color: #ffffff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.logbook-choice:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.logbook-description {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.audit-log-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.audit-log-entry {
  padding: 0.95rem 1rem;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}

.audit-log-entry.is-error {
  border-left-color: #bb4949;
}

.audit-log-entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.audit-log-entry-heading strong {
  color: var(--blue-dark);
}

.audit-log-entry-heading time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.audit-log-entry-meta,
.audit-log-entry-summary {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.audit-log-entry-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.audit-log-entry-summary {
  color: var(--ink);
  font-size: 0.9rem;
}

.audit-log-entry-details {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.audit-log-entry-details summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-log-entry-details pre {
  max-height: 22rem;
  margin: 0.65rem 0 0;
  overflow: auto;
  padding: 0.75rem;
  color: #27424a;
  font: 0.75rem/1.45 Consolas, "Cascadia Code", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f6f5;
  border: 1px solid #d8e2df;
}

.access-user-list,
.deletion-request-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.red-flag-list {
  display: grid;
  gap: 0.75rem;
  /* Five complete tool rows are visible; additional rows scroll inside this field. */
  max-height: 44rem;
  margin-top: 1rem;
  padding: 0.15rem 0.65rem 0.15rem 0.15rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.access-user-row,
.red-flag-row,
.deletion-request-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: #fbfcfc;
  border: 1px solid var(--line);
}

.deletion-request-row {
  display: grid;
  gap: 0.55rem;
  border-left: 4px solid var(--yellow);
}

.deletion-request-approved {
  border-left-color: var(--green);
}

.deletion-request-rejected {
  border-left-color: #9aa8af;
}

.deletion-request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.deletion-request-heading strong {
  color: var(--blue-dark);
}

.deletion-request-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.5rem;
  color: #755300;
  font-size: 0.76rem;
  font-weight: 800;
  background: #fff6d8;
  border: 1px solid #e7c96a;
}

.deletion-request-status.status-approved {
  color: var(--green-dark);
  background: #edf4ee;
  border-color: #a9c9af;
}

.deletion-request-status.status-rejected {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}

.deletion-request-meta,
.deletion-request-reason,
.deletion-request-decision {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.deletion-request-reason {
  color: var(--ink);
}

.deletion-request-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.deletion-request-controls textarea,
.deletion-request-form textarea {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
  border: 1px solid #aebfbb;
}

.deletion-request-controls textarea:focus,
.deletion-request-form textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.deletion-request-form {
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
  margin-top: 1.1rem;
}

.deletion-request-form .admin-field {
  display: grid;
}

.access-user-row {
  border-left: 4px solid var(--blue);
}

.red-flag-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 1.2fr);
  border-left: 4px solid var(--line);
}

.red-flag-list > .red-flag-row {
  min-height: 8rem;
}

.red-flag-row.is-flagged {
  border-left-color: #b64040;
  background: #fff8f8;
}

.access-user-copy,
.red-flag-row-heading {
  min-width: 0;
}

.access-user-copy strong,
.red-flag-row-heading strong {
  display: block;
  color: var(--blue-dark);
}

.access-user-copy p,
.red-flag-row-heading span {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.access-user-controls,
.red-flag-row-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.role-select {
  min-width: 10rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
  border: 1px solid #aebfbb;
}

.role-badge {
  display: inline-flex;
  padding: 0.5rem 0.7rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  background: #e8effa;
  border: 1px solid #c3d3ed;
}

.role-administrator {
  color: #6e2730;
  background: #fff0f1;
  border-color: #e0a5ac;
}

.red-flag-row-controls {
  align-items: stretch;
}

.red-flag-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.red-flag-row-controls textarea {
  flex: 1 1 16rem;
  min-height: 4rem;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
  border: 1px solid #aebfbb;
}

.red-flag-row-controls textarea:focus,
.role-select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.navigation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.78rem 1.05rem;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 0.1rem;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.navigation-button::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
}

.navigation-button:hover,
.navigation-button:focus-visible {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.navigation-button:focus-visible,
.print-button:focus-visible,
.danger-button:focus-visible,
.choice-button:focus-visible,
.site-nav-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.decision-card,
.results-card,
.human-review-card {
  margin-top: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: var(--paper);
}

.decision-card {
  border-left: 5px solid var(--green);
}

.results-card {
  border-left: 5px solid var(--blue);
}

.human-review-card {
  border-left: 5px solid #d09b00;
  background: #fffaf0;
}

.human-review-index {
  color: #5c3800;
  background: #f6d447;
  border-top-color: #d09b00;
}

.human-review-text {
  max-width: 62rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  color: #5c3800;
  line-height: 1.6;
  border-top: 1px solid #e7c96a;
}

.section-heading {
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 50rem;
}

.step-index {
  padding-top: 0.45rem;
  color: var(--blue);
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  border-top: 4px solid var(--yellow);
}

.section-heading h2,
.results-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.section-intro {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.choice-list,
.bucket-choice-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

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

.bucket-choice-list {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.choice-button {
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 0.1rem;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.choice-button:hover {
  color: var(--blue-dark);
  border-color: rgba(15, 71, 175, 0.55);
}

.choice-button.is-active {
  color: var(--blue-dark);
  background: #edf4ee;
  border-color: rgba(7, 137, 48, 0.45);
  border-left-color: var(--green);
}

.bucket-button,
.origin-button {
  min-height: 4.8rem;
}

.choice-label {
  font-size: 1.05rem;
  font-weight: 800;
}

.choice-state {
  color: #76858a;
  font-size: 0.82rem;
  font-weight: 700;
}

.choice-button.is-active .choice-state {
  color: var(--green-dark);
}

.threshold-button {
  min-height: 4.4rem;
}

.threshold-button .choice-label {
  line-height: 1.35;
}

.sustainability-choice-list .choice-label {
  color: var(--green-dark);
}

.selection-summary {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #e1e8e5;
}

.risk-warning {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  color: #6b4300;
  background: #fff6d8;
  border: 1px solid #e7c96a;
  border-left: 5px solid #d09b00;
}

.risk-warning strong {
  display: block;
  color: #5c3800;
  font-size: 0.95rem;
}

.risk-warning p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.world-map-panel {
  margin-top: 1.2rem;
  padding: 1.15rem;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}

.world-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.world-map-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.world-map-intro {
  max-width: 48rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.world-map-selection {
  flex: 0 0 auto;
  max-width: 18rem;
  padding: 0.45rem 0.7rem;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  background: #e8effa;
  border: 1px solid #c3d3ed;
}

.world-map-frame {
  margin-top: 1rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #b9cfd5;
  border-radius: 0.35rem;
}

.world-map {
  display: block;
  width: 100%;
  height: auto;
}

.map-ocean {
  fill: #ffffff;
}

.map-world-base {
  opacity: 0.96;
  filter: grayscale(1);
  pointer-events: none;
}

.map-origin-overlays {
  pointer-events: none;
}

.map-region-overlay {
  opacity: 0;
  transition: opacity 180ms ease, filter 180ms ease;
}

.map-region-image {
  display: block;
  pointer-events: none;
}

.map-region-overlay.is-highlighted {
  opacity: 0.72;
  filter: drop-shadow(0 0 5px rgba(7, 137, 48, 0.65));
}

.map-boundary {
  fill: none;
  stroke: #91afb7;
  stroke-width: 2;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.world-map.is-border-active .map-boundary {
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-dasharray: 8 5;
  filter: drop-shadow(0 0 6px rgba(246, 212, 71, 0.9));
}

.origin-map-unknown-marker circle {
  fill: #fff5f5;
  stroke: #b64040;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.origin-map-unknown-marker {
  display: none;
}

.origin-map-unknown-marker.is-visible {
  display: inline;
}

.origin-map-unknown-marker text {
  fill: #b64040;
  font-size: 2.1rem;
  font-weight: 900;
  font-family: "Segoe UI", Inter, sans-serif;
}

.world-map-legend {
  display: flex;
  gap: 0.8rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.world-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.world-map-swatch {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 0.15rem;
}

.world-map-swatch-region {
  background: #37a968;
  border: 1px solid #056b26;
}

.world-map-swatch-border {
  background: transparent;
  border: 3px solid var(--yellow);
}

.world-map-swatch-unknown {
  color: #b64040;
  font-size: 0.8rem;
  font-weight: 900;
  background: #fff5f5;
  border: 1px solid #b64040;
}

.world-map-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sort-control {
  display: grid;
  min-width: 14rem;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.sort-control select {
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid #aebfbb;
  border-radius: 0.1rem;
}

.sort-control select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--blue);
}

.tool-count {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
  background: #e8effa;
  border: 1px solid #c3d3ed;
}

.print-button {
  padding: 0.55rem 0.85rem;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--blue);
  border-radius: 0.1rem;
  cursor: pointer;
}

.print-button:hover:not(:disabled) {
  color: #ffffff;
  background: var(--blue);
}

.print-button:disabled {
  color: #9aa8af;
  background: var(--surface);
  border-color: #d7e0e3;
  cursor: not-allowed;
}

.export-status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.danger-button {
  padding: 0.55rem 0.85rem;
  color: #8c1d2c;
  font-size: 0.88rem;
  font-weight: 800;
  background: #fff5f5;
  border: 1px solid #c95663;
  border-radius: 0.1rem;
  cursor: pointer;
}

.danger-button:hover:not(:disabled) {
  color: #ffffff;
  background: #a52d3d;
}

.danger-button:disabled {
  color: #9aa8af;
  background: var(--surface);
  border-color: #d7e0e3;
  cursor: not-allowed;
}

.tool-list-state {
  margin: 1.35rem 0 0;
  padding: 1.15rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed #c9d5d2;
}

.tool-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.tool-item {
  display: grid;
  grid-template-columns: minmax(10rem, 1.35fr) repeat(5, minmax(0, 0.9fr)) minmax(12rem, 1.4fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-left: 3px solid #b8cbdc;
}

.tool-list-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  min-height: 5.3rem;
  padding: 0.8rem 0.9rem;
  border-right: 1px solid var(--line);
}

.tool-list-block:last-child {
  border-right: 0;
}

.tool-block-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tool-block-value {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.3;
}

.tool-block-secondary {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.tool-name-block {
  background: #f4f8fb;
}

.tool-item.is-phased-out {
  border-left-color: #d09b00;
}

.tool-item.is-red-flagged {
  border-left: 4px solid #b64040;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.4rem;
  color: #7a3f00;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
  background: #fff1c7;
  border: 1px solid #e2bd54;
}

.red-flag-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.4rem;
  color: #8c1d2c;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
  background: #fff0f1;
  border: 1px solid #df9ea7;
}

.tool-red-flag-note {
  color: #8c1d2c;
  font-weight: 750;
}

.tool-score-block {
  background: #f5f8fd;
}

.tool-score-block .tool-block-value {
  color: var(--blue-dark);
  font-size: 1rem;
}

.tool-app-type-block .tool-block-value {
  color: var(--green-dark);
}

.tool-origin-block .tool-block-value {
  color: var(--blue-dark);
}

.hybrid-eu-server-badge {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.22rem 0.52rem;
  border: 1px solid #b7d9c1;
  border-radius: 999px;
  background: #eaf7ee;
  color: #235c36;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.tool-user-level-block .tool-block-value {
  color: var(--green-dark);
}

.tool-cost-block {
  background: #fffaf0;
}

.tool-cost-block .tool-block-value {
  color: #805800;
  font-size: 0.96rem;
}

.tool-extra-info-block {
  background: #f2faf4;
}

.tool-sustainability-value {
  color: var(--green-dark);
  white-space: nowrap;
}

.noscript-message {
  margin: 1.25rem 0 0;
  padding: 1rem;
  color: #7a3e00;
  background: #fff4e8;
  border: 1px solid #f1cfad;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-dark);
  border-top: 0.45rem solid var(--green);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 0.82rem;
}

.print-area {
  display: none;
}

.print-review-note {
  margin: 0 0 0.35cm;
  padding: 0.22cm 0.28cm;
  color: #3d2a00;
  background: #fffaf0;
  border: 1px solid #d09b00;
  border-left: 4px solid #d09b00;
  font-size: 8.5pt;
  line-height: 1.35;
}

.print-review-note h2 {
  margin: 0 0 0.1cm;
  color: #5c3800;
  font-size: 10pt;
}

.print-review-note p {
  margin: 0.08cm 0 0;
}

.print-review-fields {
  margin-top: 0.18cm !important;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .admin-management-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-management-card .hero-signpost {
    min-height: 0;
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-left: 0;
  }

  .admin-management-card .hero-signpost strong {
    font-size: 3.6rem;
  }

  .admin-management-card .hero-signpost > span:last-child {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 2rem), 78rem);
  }

  .site-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
  }

  .primary-nav {
    align-self: stretch;
    margin-top: 0.8rem;
  }

  .site-nav-link {
    min-height: 3rem;
    padding: 0 0.7rem;
  }

  .welcome-page,
  .admin-page {
    width: min(100%, 78rem);
    min-height: 0;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-panel,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .admin-auth-logged-out {
    grid-template-columns: 1fr;
  }

  .admin-management-grid {
    grid-template-columns: 1fr;
  }

  .admin-auth-logged-in {
    align-items: flex-start;
    flex-direction: column;
  }

  .assessment-heading,
  .assessment-toolbar,
  .assessment-workspace,
  .assessment-fields {
    grid-template-columns: 1fr;
  }

  .access-user-row,
  .red-flag-row,
  .deletion-request-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .access-user-controls,
  .red-flag-row-controls,
  .deletion-request-controls {
    justify-content: flex-start;
  }

  .deletion-request-controls {
    grid-template-columns: 1fr;
  }

  .assessment-heading {
    flex-direction: column;
  }

  .metadata-heading {
    display: flex;
  }

  .audit-log-entry-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

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

  .world-map-heading {
    flex-direction: column;
  }

  .world-map-selection {
    max-width: none;
    text-align: left;
  }

  .assessment-list-status {
    white-space: normal;
  }

  .assessment-history-field {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .hero-signpost {
    min-height: 0;
    padding-top: 1.1rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-left: 0;
  }

  .admin-card .admin-section {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-card > .navigation-button {
    grid-column: 1;
  }

  .choice-list {
    grid-template-columns: 1fr;
  }

  .choice-button {
    min-height: auto;
  }

  .results-heading {
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-start;
  }

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

  .tool-name-block {
    grid-column: 1 / -1;
  }

  .tool-extra-info-block {
    grid-column: 1 / -1;
  }

  .tool-list-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-list-block:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  .site-utility-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.45rem 0;
  }

  .bucket-choice-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .step-index {
    font-size: 1.35rem;
  }

  .catalog-refresh-summary {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@page {
  size: A4 landscape;
  margin: 1.2cm;
}

@media print {
  body {
    min-width: 0;
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumb {
    display: none !important;
  }

  .welcome-page > *:not(.print-area) {
    display: none !important;
  }

  .welcome-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .print-area {
    display: block !important;
    color: var(--ink);
  }

  .print-area h1 {
    margin: 0 0 0.35cm;
    font-size: 20pt;
    letter-spacing: normal;
  }

  .print-criteria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2cm 0.6cm;
    margin-bottom: 0.35cm;
    font-size: 8.5pt;
  }

  .print-criteria p {
    margin: 0;
  }

  .print-count {
    margin: 0 0 0.35cm;
    font-size: 9pt;
    font-weight: 700;
  }

  .print-review-note {
    page-break-inside: avoid;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.5pt;
  }

  .print-table th,
  .print-table td {
    padding: 0.13cm 0.16cm;
    vertical-align: top;
    text-align: left;
    border: 1px solid #aebbc0;
    overflow-wrap: anywhere;
  }

  .print-table th {
    color: #ffffff;
    background: var(--blue);
  }

  .print-table tbody tr:nth-child(even) {
    background: #f1f5f6;
  }

  .print-table th:nth-child(1),
  .print-table td:nth-child(1) {
    width: 16%;
  }

  .print-table th:nth-child(2),
  .print-table td:nth-child(2) {
    width: 12%;
  }

  .print-table th:nth-child(3),
  .print-table td:nth-child(3) {
    width: 8%;
  }

  .print-table th:nth-child(4),
  .print-table td:nth-child(4) {
    width: 10%;
  }

  .print-table th:nth-child(5),
  .print-table td:nth-child(5) {
    width: 10%;
  }

  .print-table th:nth-child(6),
  .print-table td:nth-child(6) {
    width: 8%;
  }

  .print-table th:nth-child(7),
  .print-table td:nth-child(7) {
    width: 9%;
  }

  .print-table th:nth-child(8),
  .print-table td:nth-child(8) {
    width: 9%;
  }

  .print-table th:nth-child(9),
  .print-table td:nth-child(9) {
    width: 18%;
  }

  .print-table thead {
    display: table-header-group;
  }

  .print-table tr {
    page-break-inside: avoid;
  }
}

/* Claude reference design: calm blue palette, lime accent, compact choices. */
:root {
  --ink: #14243a;
  --muted: #5b6b80;
  --line: #d9e1ea;
  --surface: #f3f6f9;
  --paper: #ffffff;
  --blue: #0072bc;
  --blue-dark: #003a70;
  --green: #8dc63f;
  --green-dark: #527c23;
  --yellow: #8dc63f;
  --focus: rgba(0, 114, 188, 0.3);
}

body {
  background: var(--surface);
}

.site-header {
  border-bottom-color: var(--line);
}

.site-accent {
  height: 0.3rem;
  background: linear-gradient(105deg, var(--green) 0 20%, var(--blue) 20% 100%);
}

.hero-panel {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
}

.hero-panel::after {
  display: none;
}

.welcome-card,
.decision-card,
.results-card,
.human-review-card {
  border-radius: 0.75rem;
}

.choice-list,
.bucket-choice-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.choice-button {
  flex: 0 1 auto;
  width: auto;
  min-width: 5rem;
  min-height: 2.75rem;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.choice-button:hover {
  color: var(--blue-dark);
  background: #e6f1fa;
  border-color: var(--blue);
}

.choice-button.is-active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.bucket-button,
.origin-button,
.threshold-button {
  min-height: 2.75rem;
}

.choice-label {
  font-size: 0.94rem;
  font-weight: 700;
}

.choice-state {
  display: none;
}

.choice-button.is-active .choice-state {
  color: #ffffff;
}
