/* UGTLD M30 academic product layer.
 * Additive tokens and shell rules only. Scientific modules keep their existing
 * data contracts and rendering; this layer makes the three product tiers and
 * project stages legible without replacing the mature workspaces.
 */
:root {
  --m30-navy: #173F32;
  --m30-blue: #286C53;
  --m30-teal: #4D8970;
  --m30-bg: #F7F9F6;
  --m30-surface: #FFFFFF;
  --m30-surface-muted: #F0F4F0;
  --m30-text: #23312A;
  --m30-text-muted: #66746D;
  --m30-border: #DEE7DF;
  --m30-success: #287A61;
  --m30-warning: #805C21;
  --m30-error: #B34C4C;
  --m30-radius-sm: 6px;
  --m30-radius-md: 8px;
  --m30-radius-lg: 10px;
  --m30-shadow-sm: 0 1px 2px rgba(35, 49, 42, .04);
  --m30-shadow-md: 0 6px 18px rgba(35, 49, 42, .08);
  --m30-space-1: 4px;
  --m30-space-2: 8px;
  --m30-space-3: 12px;
  --m30-space-4: 16px;
  --m30-space-5: 24px;
  --m30-space-6: 32px;
  --m30-content-max: 1280px;
  --m30-project-rail: 216px;
  --m30-font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --m30-font-body: 16px;
  --m30-font-navigation: 15px;
  --m30-font-label: 14px;
  --m30-font-control: 15px;
  --m30-font-table: 15px;
  --m30-line-body: 1.6;
}

/* The existing application shell remains the owner of height and scrolling. */
body.m30-ui { color: var(--m30-text); background: var(--m30-bg); font-family: var(--m30-font-family); font-size: var(--m30-font-body); line-height: var(--m30-line-body); }
body.m30-ui :where(button, input, select, textarea) { font-family: inherit; }
body.m30-ui :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(40, 108, 83, .25);
  outline-offset: 2px;
}
.m30-layer-marker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--m30-border);
  border-radius: var(--m30-radius-sm);
  color: var(--m30-text-muted);
  background: var(--m30-surface-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* A compact, persistent project-stage rail. It only appears once the existing
 * context bar reports an active project, so public and project-list views stay
 * uncluttered. Each destination is an existing route owned by Navigation.go.
 */
#m30-project-stage-rail {
  display: none;
  position: fixed;
  z-index: 30;
  top: 126px;
  left: 256px;
  width: var(--m30-project-rail);
  padding: var(--m30-space-3);
  border: 1px solid var(--m30-border);
  border-radius: var(--m30-radius-md);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--m30-shadow-sm);
}
body.m30-project-mode #m30-project-stage-rail { display: block; }
.m30-stage-kicker {
  margin: 2px 8px 8px;
  color: var(--m30-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.m30-stage-group { margin: 0 0 8px; }
.m30-stage-group:last-child { margin-bottom: 0; }
.m30-stage-subroute {
  display: none;
  margin: 2px 8px 2px 40px;
  padding: 5px 7px;
  border-left: 2px solid transparent;
  color: var(--m30-text-muted);
  font-size: 13px;
  text-decoration: none;
}
.m30-stage-group.is-expanded .m30-stage-subroute { display: block; }
.m30-stage-subroute:hover,
.m30-stage-subroute.is-active { border-left-color: var(--m30-teal); color: var(--m30-navy); background: #F2F7F2; }
.m30-stage-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--m30-radius-sm);
  background: transparent;
  color: var(--m30-text-muted);
  cursor: pointer;
  text-align: left;
}
.m30-stage-button:hover { background: var(--m30-surface-muted); color: var(--m30-navy); }
.m30-stage-button.is-active {
  border-color: #C5DCCB;
  background: #EDF4EE;
  color: var(--m30-navy);
}
.m30-stage-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EDF4EE;
  color: var(--m30-blue);
  font-size: 12px;
  font-weight: 800;
}
.m30-stage-button.is-active .m30-stage-index { background: var(--m30-teal); color: white; }
.m30-stage-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.m30-stage-detail { display: block; margin-top: 2px; color: var(--m30-text-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }

body.m30-project-mode .platform-workspace { padding-left: calc(var(--m30-project-rail) + 40px); }
body.m30-project-mode .ugtld-context-bar { margin-left: calc(-1 * (var(--m30-project-rail) + 40px)); padding-left: calc(var(--m30-project-rail) + 56px); }
.m30-project-identity {
  display: none;
  max-width: var(--m30-content-max);
  margin: 0 auto 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--m30-border);
  color: var(--m30-text-muted);
  font-size: 13px;
}
body.m30-project-mode .m30-project-identity { display: flex; align-items: center; gap: 8px; }
.m30-project-identity strong { color: var(--m30-navy); font-size: 14px; }

/* Shared scientific surfaces: subtle borders, predictable density, no visual
 * changes to canvas/3D internals. */
body.m30-ui :where(.ugtld-v1-surface, .platform-card, .platform-page > article, .platform-page-section > article) {
  border-color: var(--m30-border);
  border-radius: var(--m30-radius-md);
  box-shadow: var(--m30-shadow-sm);
}
body.m30-ui :where(.ugtld-page-heading h1, .platform-page-title) { color: var(--m30-navy); letter-spacing: 0; }
body.m30-ui :where(.ugtld-kicker, .platform-rail-section-label) { color: var(--m30-text-muted); }
body.m30-ui :where(.ugtld-btn-primary, .fr-cta) { background: var(--m30-navy); border-color: var(--m30-navy); }
body.m30-ui :where(.ugtld-btn-primary, .fr-cta):hover { background: var(--m30-blue); border-color: var(--m30-blue); }
body.m30-ui :where(.ugtld-btn-secondary, .ugtld-btn-tertiary) { color: var(--m30-blue); }

/* The current production runtime renders the same three layers through the
 * lightweight m11 shell. Keep that shell as the owner of routing and data,
 * while giving it the M30 academic palette and the fixed five-stage rail. */
body.m30-ui .m11-root { color: var(--m30-text); background: var(--m30-bg); font-family: var(--m30-font-family); font-size: var(--m30-font-body); line-height: var(--m30-line-body); }
body.m30-ui .m11-top { border-bottom-color: var(--m30-border); box-shadow: none; }
body.m30-ui .m11-brand { color: var(--m30-navy); }
body.m30-ui .m11-brand small { color: var(--m30-text-muted); letter-spacing: .08em; }
body.m30-ui .m11-top nav a { color: var(--m30-text-muted); }
body.m30-ui .m11-top nav a.active,
body.m30-ui .m11-top nav a:hover { background: #EDF4EE; color: var(--m30-navy); }
body.m30-ui .m11-side { background: var(--m30-navy); }
body.m30-ui .m11-side h3 { color: #BFD6C6; }
body.m30-ui .m11-side a { color: #E4EFE7; }
body.m30-ui .m11-side a.active,
body.m30-ui .m11-side a:hover { background: #286C53; color: #FFFFFF; }
body.m30-ui .m11-main { max-width: 1600px; }
body.m30-ui .m11-main h1 { color: var(--m30-navy); }
body.m30-ui .m11-hero { background: var(--m30-navy); }
body.m30-ui .m11-public-band { background: var(--m30-bg); }
body.m30-ui .m11-public-band .m11-card:hover { transform: none; box-shadow: var(--m30-shadow-sm); }
body.m30-ui .m11-public-footer { border-top-color: var(--m30-border); color: var(--m30-text-muted); }
body.m30-ui .m11-card,
body.m30-ui .m11-table,
body.m30-ui .m11-project-context,
body.m30-ui .m11-workflow-panel { border-color: var(--m30-border); border-radius: var(--m30-radius-md); box-shadow: var(--m30-shadow-sm); }
body.m30-ui .m11-card h2,
body.m30-ui .m11-card h3,
body.m30-ui .m11-project-context strong { color: var(--m30-navy); }
body.m30-ui .m11-btn.primary { background: var(--m30-teal); border-color: var(--m30-teal); color: #FFFFFF; }
body.m30-ui .m11-btn.primary:hover { background: var(--m30-navy); border-color: var(--m30-navy); }
body.m30-ui .m11-table th { background: var(--m30-surface-muted); color: var(--m30-text-muted); }
body.m30-ui .m11-tabs a.active { border-bottom-color: var(--m30-teal); color: var(--m30-navy); }
/* M31: make the existing project navigation the single source of truth. The
 * legacy workflow panel remains useful as an in-page status summary, while
 * the project rail owns navigation and secondary links stay grouped below it. */
body.m30-ui .m11-side { padding: 16px 12px 24px; }
body.m30-ui .m11-side .m30-stage-button { font-size: 14px; }
body.m30-ui .m11-side > h3 { margin-top: 16px; }
body.m30-ui .m11-side > a { font-size: 14px; }
body.m30-ui .m11-main { min-width: 0; }
body.m30-ui .m11-main > .m11-lead { max-width: 920px; }
body.m30-ui .m11-main :where(.m11-table, .m11-figure, .m11-chart, .m11-data-panel) { max-width: 100%; overflow-x: auto; }
body.m30-ui .m11-workflow-panel { background: var(--m30-surface-muted); }
body.m30-ui .m11-workflow-step.active a { border-color: #8FC5C4; box-shadow: inset 0 -2px var(--m30-teal); }
body.m30-ui .m11-workflow-step[data-state="BLOCKED"] a,
body.m30-ui .m11-workflow-step[data-state="UNAVAILABLE"] a { background: #FBFAF6; }
body.m30-ui .m11-status,
body.m30-ui .m11-badge { border-radius: var(--m30-radius-sm); }
body.m30-ui :where(.m11-card, .m11-project-context, .m11-workflow-panel, .m11-table) { overflow-wrap: anywhere; }
body.m30-ui #m30-project-stage-rail { position: static; display: none; width: auto; margin: 0 -2px 18px; padding: 8px 6px; border: 0; border-bottom: 1px solid rgba(223,230,236,.22); border-radius: 0; background: transparent; box-shadow: none; }
body.m30-ui.m30-project-mode #m30-project-stage-rail { display: block; }
body.m30-ui.m30-m11-project-mode .m11-side[data-m30-project-nav="hidden"] > :not(.m11-context):not(#m30-project-stage-rail):not(:first-child) { display: none; }
body.m30-ui.m30-m11-project-mode .m11-side[data-m30-project-nav="hidden"] > .m11-context { display: block; }
body.m30-ui.m30-m11-project-mode .m11-side[data-m30-project-nav="hidden"] > #m30-project-stage-rail { display: block; }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-kicker { color: #BFD6C6; }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button { color: #E4EFE7; }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button:hover { background: #286C53; color: #FFFFFF; }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button.is-active { border-color: #7FAE8D; background: #286C53; color: #FFFFFF; }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-index { background: #DDEADF; color: var(--m30-navy); }
body.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button.is-active .m30-stage-index { background: #FFFFFF; color: var(--m30-teal); }
/* Project Workspace has one authoritative navigation surface. */
body.m30-ui.m30-m11-project-mode .m11-side > :not(#m30-project-stage-rail) { display: none; }
body.m30-ui.m30-m11-project-mode .m11-side { padding: 12px 10px; }
body.m30-ui.m30-m11-project-mode .m11-side #m30-project-stage-rail { margin-top: 0; }
body.m30-ui.m30-m11-project-mode .m11-main { min-width: 0; }

@media (max-width: 1120px) {
  #m30-project-stage-rail { left: 92px; width: 190px; }
  body.m30-project-mode .platform-workspace { padding-left: 216px; }
  body.m30-project-mode .ugtld-context-bar { margin-left: -216px; padding-left: 232px; }
  body.m30-ui .m11-main { padding-inline: 28px; }
}
@media (max-width: 760px) {
  #m30-project-stage-rail {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    margin: 8px 12px;
    padding: 6px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .m30-stage-kicker { display: inline-block; margin: 0 8px; vertical-align: middle; }
  .m30-stage-group { display: inline-block; margin: 0 4px 0 0; vertical-align: middle; }
  .m30-stage-button { display: inline-flex; width: auto; min-height: 32px; padding: 5px 8px; }
  .m30-stage-detail { display: none; }
  .m30-stage-subroute { display: none !important; }
  body.m30-project-mode .platform-workspace { padding-left: 0; }
  body.m30-project-mode .ugtld-context-bar { margin-left: 0; padding-left: 16px; }
  .m30-project-identity { margin-inline: 12px; }
  body.m30-ui .m11-main { padding: 24px 16px 40px; }
  body.m30-ui .m11-top { min-height: 60px; height: auto; align-items: flex-start; padding-block: 10px; }
  body.m30-ui .m11-top nav { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  body.m30-ui .m11-top nav a { white-space: nowrap; }
  body.m30-ui .m11-side { padding: 10px 12px 16px; }
  body.m30-ui .m11-side h3 { margin: 12px 10px 5px; }
  body.m30-ui:not(.m30-m11-project-mode) .m11-side {
    display: flex;
    align-items: center;
    gap: 4px;
    position: sticky;
    top: 68px;
    z-index: 15;
    height: 48px;
    max-height: 48px;
    padding: 6px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--m30-border);
    scrollbar-width: thin;
  }
  body.m30-ui:not(.m30-m11-project-mode) .m11-side h3 { display: none; }
  body.m30-ui:not(.m30-m11-project-mode) .m11-side > a {
    flex: 0 0 auto;
    min-height: 34px;
    align-items: center;
    margin: 0;
    padding: 7px 10px;
    white-space: nowrap;
  }
  body.m30-ui .m11-main h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body.m30-ui *, body.m30-ui *::before, body.m30-ui *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* M35 Stage 2: tune the mature specialist workspaces without replacing their
 * existing renderers, result models or scientific controls. */
body.m30-ui #page-structure,
body.m30-ui #page-engineering,
body.m30-ui #page-biological-context,
body.m30-ui #page-figures,
body.m30-ui #page-reports { max-width: 1880px; margin-inline: auto; }

body.m30-ui #page-structure #structureStudioContext { box-shadow: none; }
body.m30-ui #page-structure .platform-section-header,
body.m30-ui #page-engineering .platform-section-header { margin: 18px 0 12px; padding: 12px 0; border-bottom: 1px solid var(--m30-border); }
body.m30-ui #page-structure .struct-viewer-container {
  grid-template-columns: minmax(205px, 238px) minmax(440px, 1fr) minmax(230px, 278px);
  gap: 10px;
  min-height: 600px;
  max-height: 76vh;
}
body.m30-ui #page-structure .struct-panel {
  border-color: var(--m30-border);
  border-radius: var(--m30-radius-sm);
  background: #fff;
  padding: 14px;
}
body.m30-ui #page-structure .struct-panel--center { padding: 10px; }
body.m30-ui #page-structure .struct-viewer-status,
body.m30-ui #page-structure .struct-viewer-fileinfo { color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui #page-structure .struct-viewer-canvas { min-height: 510px; border-color: var(--m30-border); background: #F7F9F6; }
body.m30-ui #page-structure .struct-viewer-empty { min-height: 510px; }
body.m30-ui #page-structure .struct-panel h4 { color: var(--m30-navy); font-size: 13px; }
body.m30-ui #page-structure .struct-divider { border-color: var(--m30-border); }
body.m30-ui #page-structure .struct-mode-btn.active { background: var(--m30-navy); border-color: var(--m30-navy); }
body.m30-ui #page-structure .struct-mode-btn:hover { border-color: var(--m30-teal); }
body.m30-ui #page-structure .struct-bottom-bar { align-items: center !important; gap: 20px; padding: 12px 0; border-top: 1px solid var(--m30-border); }

body.m30-ui #page-biological-context .ugtld-v1-surface { max-width: none; }
body.m30-ui #page-biological-context .ugtld-biological-overview { margin: 12px 0 18px; }
body.m30-ui #page-biological-context .ugtld-table-shell { overflow-x: auto; border: 1px solid var(--m30-border); border-radius: var(--m30-radius-sm); background: #fff; }
body.m30-ui #page-biological-context .ugtld-table { min-width: 850px; box-shadow: none; border: 0; }
body.m30-ui #page-biological-context .ugtld-table th { position: sticky; top: 0; z-index: 1; background: #EDF4EE; color: var(--m30-navy); }
body.m30-ui #page-biological-context .ugtld-table td { line-height: 1.45; }
body.m30-ui #page-biological-context .ugtld-empty-state { max-width: none; text-align: left; }

body.m30-ui #page-engineering .platform-section-header { align-items: center; }
body.m30-ui #page-engineering .platform-section-info h3 { color: var(--m30-navy); font-size: 20px; }
body.m30-ui #page-engineering .platform-section-info p { max-width: 820px; color: var(--m30-text-muted); line-height: 1.55; }
body.m30-ui #page-engineering .platform-card {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--m30-border);
  border-radius: var(--m30-radius-sm);
  box-shadow: none;
}
body.m30-ui #page-engineering .platform-card > h3 { color: var(--m30-navy); font-size: 16px; }
body.m30-ui #page-engineering .platform-mutation-control-group label { color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui #page-engineering .platform-mutation-tab.active { background: var(--m30-navy); border-color: var(--m30-navy); }
body.m30-ui #page-engineering .platform-mutation-tab:hover { border-color: var(--m30-teal); color: var(--m30-navy); }
body.m30-ui #page-engineering #foldxMutationTable { min-width: 1080px; }
body.m30-ui #page-engineering #foldxMutationTable th { position: sticky; top: 0; z-index: 1; background: #EDF4EE; color: var(--m30-navy); }
body.m30-ui #page-engineering #foldxMutationTable td { font-size: 12px; }
body.m30-ui #page-engineering .platform-mutation-weights { border-top-color: var(--m30-border) !important; }

body.m30-ui #page-figures .platform-page-header,
body.m30-ui #page-reports .platform-page-header { margin-bottom: 18px; }
body.m30-ui #page-figures .platform-page-title,
body.m30-ui #page-reports .platform-page-title { color: var(--m30-navy); font-size: 25px; }
body.m30-ui #page-figures .platform-card,
body.m30-ui #page-reports .platform-card { border: 1px solid var(--m30-border); border-radius: var(--m30-radius-sm); box-shadow: none; }
body.m30-ui #page-reports .ugtld-research-package-hero { border-color: var(--m30-border); border-radius: var(--m30-radius-sm); background: #fff; }
body.m30-ui #page-reports .ugtld-research-package-hero .platform-card-header { border-bottom-color: var(--m30-border) !important; }
body.m30-ui #page-reports .platform-card-header { background: #F2F6F2 !important; border-bottom-color: var(--m30-border) !important; }
body.m30-ui #page-reports .reports-card { border-color: var(--m30-border); border-radius: var(--m30-radius-sm); transition: none; }
body.m30-ui #page-reports .reports-card:hover { box-shadow: none; }
body.m30-ui #page-reports .reports-card-meta,
body.m30-ui #page-reports .reports-card-actions { flex-wrap: wrap; }
body.m30-ui #page-reports .ugtld-legacy-report-tools { margin-top: 18px; border-top: 1px solid var(--m30-border); }
body.m30-ui #page-reports .ugtld-legacy-report-tools > summary { padding: 12px 0; color: var(--m30-teal); cursor: pointer; font-weight: 650; }

body.m30-ui .m11-main [data-surface="project-report"],
body.m30-ui .m11-main [data-surface="candidate-report"],
body.m30-ui .m11-main [data-surface="biology-resolution"],
body.m30-ui .m11-main [data-surface="candidate-biology"],
body.m30-ui .m11-main [data-surface="structure-config"] { max-width: 1480px; }
body.m30-ui .m11-main [data-surface="project-report"] > .m11-card { margin: 12px 0; padding: 16px 18px; }
body.m30-ui .m11-main [data-surface="project-report"],
body.m30-ui .m11-main [data-surface="research-package"] { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.m30-ui .m11-main [data-surface="project-report"] > .m11-card { border: 0; border-bottom: 1px solid var(--m30-border); border-radius: 0; background: transparent; box-shadow: none; }
body.m30-ui .m11-main [data-surface="research-package"] > .m11-card { margin-block: 14px; box-shadow: none; }
body.m30-ui .m11-main [data-surface="project-report"] h2,
body.m30-ui .m11-main [data-surface="candidate-report"] h2,
body.m30-ui .m11-main [data-surface="biology-resolution"] h2 { color: var(--m30-navy); font-size: 19px; }
body.m30-ui .m11-main .m11-report :where(.m11-table, .m11-card) { margin-block: 12px; }
body.m30-ui .m11-main .m11-report .m11-table { font-size: 12px; }
body.m30-ui .m11-main .m11-report .m11-table th { position: sticky; top: 68px; z-index: 2; background: #EDF4EE; color: var(--m30-navy); }
body.m30-ui .m11-main .m11-report .m11-note { border-left-color: var(--m30-teal); background: #F1F6F1; }
body.m30-ui .m11-main .m11-report .m11-actions { gap: 8px; }
body.m30-ui .m11-main .m11-report [data-state="DATA_UNAVAILABLE"],
body.m30-ui .m11-main .m11-report [data-state="NOT_ANALYZED"] { background: #F8F7F1; }
body.m30-ui .m11-main .m11-chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); min-width: 0; }
body.m30-ui .m11-main .m11-chart-card { min-width: 0; }
body.m30-ui .m11-main .m11-chart-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body.m30-ui .m11-main .m11-chart-svg { display: block; width: 640px; max-width: none; height: auto; }

body.m30-ui .m11-main .m11-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 12px 18px;
  max-width: 1680px;
}
body.m30-ui .m11-main .m11-workbench-toolbar { grid-column: 1 / -1; padding: 8px 0 12px; border-bottom: 1px solid var(--m30-border); }
body.m30-ui .m11-main .m11-workbench-toolbar button { min-height: 34px; border: 1px solid #CAD9CE; border-radius: 5px; background: #fff; color: var(--m30-navy); }
body.m30-ui .m11-main .m11-workbench-toolbar button:hover { background: #EDF4EE; }
body.m30-ui .m11-main .m11-wb-viewer { grid-column: 1; grid-row: span 4; height: clamp(480px, 66vh, 760px); min-height: 480px; border-color: var(--m30-border); border-radius: var(--m30-radius-sm); }
body.m30-ui .m11-main #m11-wb-state { grid-column: 2; align-self: start; margin: 0; padding: 12px; border-left: 3px solid var(--m30-teal); background: #F1F6F1; color: var(--m30-text); font-size: 13px; line-height: 1.55; }
body.m30-ui .m11-main .m11-workbench-layers { grid-column: 2; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--m30-border); background: #fff; font-size: 12px; }
body.m30-ui .m11-main .m11-workbench > label { grid-column: 2; display: grid; gap: 6px; color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui .m11-main .m11-workbench > label select { min-height: 36px; border: 1px solid #CAD9CE; border-radius: 5px; background: #fff; color: var(--m30-text); }
body.m30-ui .m11-main .m11-workbench > pre { grid-column: 2; min-height: 44px; white-space: pre-wrap; overflow-wrap: anywhere; }
body.m30-ui .m11-main .m11-workbench > .m11-actions,
body.m30-ui .m11-main .m11-workbench > .m11-grid,
body.m30-ui .m11-main .m11-workbench > .m11-note,
body.m30-ui .m11-main .m11-workbench > .m11-provenance { grid-column: 1 / -1; }
body.m30-ui .m11-main .m11-workbench > .m11-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }

@media (max-width: 1360px) {
  body.m30-ui #page-structure .struct-viewer-container { grid-template-columns: 205px minmax(360px, 1fr) 235px; }
}
@media (max-width: 1100px) {
  body.m30-ui #page-structure .struct-viewer-container { grid-template-columns: minmax(0, 1fr); max-height: none; }
  body.m30-ui #page-structure .struct-panel--center { min-height: 480px; }
  body.m30-ui .m11-main .m11-workbench { grid-template-columns: minmax(0, 1fr); }
  body.m30-ui .m11-main .m11-workbench > * { grid-column: 1 !important; grid-row: auto !important; }
  body.m30-ui .m11-main .m11-wb-viewer { height: min(68vh, 640px); min-height: 420px; }
}
@media (max-width: 700px) {
  body.m30-ui #page-structure .struct-viewer-canvas,
  body.m30-ui #page-structure .struct-viewer-empty { min-height: 380px; }
  body.m30-ui #page-engineering .platform-card { padding: 14px; }
  body.m30-ui .m11-main .m11-workbench > .m11-grid { grid-template-columns: 1fr; }
  body.m30-ui #page-biological-context .ugtld-page-heading { align-items: flex-start; }
}

/* M35: dense research software surfaces. Public/editorial M34 rules remain
 * unchanged; these selectors are scoped to the authenticated m11 workspace. */
body.m30-ui .m11-main { width: 100%; max-width: 1640px; min-width: 0; margin-inline: auto; padding: 28px clamp(24px, 3vw, 56px) 56px; }
body.m30-ui .m11-main > .m11-lead { margin-bottom: 18px; }
body.m30-ui .m11-project-context { min-height: 66px; padding: 12px 16px; margin-bottom: 12px; }
body.m30-ui .m11-project-context strong { font-size: 15px; }
body.m30-ui .m11-project-context dl div { padding-left: 12px; }
body.m30-ui .m11-workflow-panel { display: none; }
body.m30-ui .m35-workspace-sample { max-width: 1540px; }
body.m30-ui .m35-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 10px 0 22px; }
body.m30-ui .m35-section-heading h2 { margin: 4px 0 6px; color: var(--m30-navy); font-size: 24px; line-height: 1.25; }
body.m30-ui .m35-section-heading p { max-width: 720px; margin: 0; color: var(--m30-text-muted); font-size: 13px; line-height: 1.6; }
body.m30-ui .m35-section-kicker { color: var(--m30-teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
body.m30-ui .m35-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.m30-ui .m35-list-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--m30-border); border-bottom: 1px solid var(--m30-border); margin-bottom: 14px; }
body.m30-ui .m35-list-toolbar label { display: grid; gap: 5px; min-width: 170px; color: var(--m30-text-muted); font-size: 11px; font-weight: 700; }
body.m30-ui .m35-list-toolbar input, body.m30-ui .m35-list-toolbar select { min-height: 36px; border: 1px solid #C9D8CE; border-radius: 5px; padding: 0 10px; background: #fff; color: var(--m30-text); font: inherit; font-weight: 500; }
body.m30-ui .m35-live-count { margin-left: auto; padding-bottom: 9px; color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui .m35-project-table-wrap, body.m30-ui .m35-table-scroll { overflow-x: auto; border: 1px solid var(--m30-border); background: var(--m30-surface); }
body.m30-ui .m35-project-table-wrap .m11-table, body.m30-ui .m35-table-scroll .m11-table { min-width: 820px; border: 0; box-shadow: none; }
body.m30-ui .m35-project-table-wrap .m11-table th, body.m30-ui .m35-table-scroll .m11-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #F0F5F1; font-size: 11px; letter-spacing: .02em; }
body.m30-ui .m35-project-table-wrap .m11-table td, body.m30-ui .m35-table-scroll .m11-table td { padding: 13px 12px; font-size: 12px; }
body.m30-ui .m35-row-meta { display: block; margin-top: 3px; color: var(--m30-text-muted); font-size: 10px; }
body.m30-ui .m35-row-action { color: var(--m30-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
body.m30-ui .m35-row-action { color: var(--m30-teal); }
body.m30-ui .m35-row-action:hover { color: var(--m30-navy); text-decoration: underline; }
body.m30-ui .m35-status-chip { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; background: #EDF4EE; color: #286C53; font-size: 10px; font-weight: 750; }
body.m30-ui .m35-status-chip[data-state="ARCHIVED"] { background: #F1F2EF; color: #67736C; }
body.m30-ui .m35-context-line { display: flex; flex-wrap: wrap; gap: 18px; padding: 11px 0; border-top: 1px solid var(--m30-border); border-bottom: 1px solid var(--m30-border); color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui .m35-context-line span { display: grid; gap: 3px; }
body.m30-ui .m35-context-line b { color: var(--m30-navy); font-size: 10px; }
body.m30-ui .m35-science-note { display: flex; gap: 12px; margin: 14px 0; padding: 10px 12px; border-left: 3px solid var(--m30-teal); background: #F1F6F1; color: var(--m30-text-muted); font-size: 12px; line-height: 1.55; }
body.m30-ui .m35-science-note strong { flex: 0 0 auto; color: var(--m30-navy); }
body.m30-ui .m35-table-toolbar { border-top: 0; }
body.m30-ui .m35-data-status { margin: 10px 0; color: var(--m30-text-muted); font-size: 12px; }
body.m30-ui .m35-summary-strip { display: flex; align-items: center; gap: 0; margin-bottom: 14px; border: 1px solid var(--m30-border); background: var(--m30-surface); }
body.m30-ui .m35-summary-strip > div { min-width: 118px; padding: 13px 16px; border-right: 1px solid var(--m30-border); }
body.m30-ui .m35-summary-strip strong { display: block; color: var(--m30-navy); font-size: 20px; }
body.m30-ui .m35-summary-strip span { color: var(--m30-text-muted); font-size: 11px; }
body.m30-ui .m35-summary-strip .m35-summary-note { flex: 1; border-right: 0; color: var(--m30-text-muted); font-size: 11px; line-height: 1.5; }
body.m30-ui .m35-axis-line { display: grid; gap: 3px; min-width: 150px; }
body.m30-ui .m35-axis-line i { display: block; font-style: normal; color: var(--m30-text-muted); font-size: 10px; white-space: nowrap; }
body.m30-ui .m35-axis-line i::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #B5C1BA; }
body.m30-ui .m35-axis-line i[data-state="AVAILABLE"]::before { background: var(--m30-success); }
body.m30-ui .m35-axis-line i[data-state="UNAVAILABLE"]::before, body.m30-ui .m35-axis-line i[data-state="NOT_RUN"]::before { background: var(--m30-warning); }
body.m30-ui .m35-fixture-banner { display: flex; gap: 12px; align-items: baseline; margin: -10px 0 18px; padding: 9px 12px; border-left: 3px solid #B57B35; background: #FFF8EA; color: #6E542E; font-size: 12px; line-height: 1.5; }
body.m30-ui .m35-fixture-banner strong { color: #805C21; }
body.m30-ui .m35-inline-status { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #D7B676; border-radius: 4px; background: #FFF8EA; color: #805C21; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.m30-ui .m35-state-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--m30-text-muted); font-size: 11px; white-space: nowrap; }
body.m30-ui .m35-state-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #B5C1BA; }
body.m30-ui .m35-state-dot[data-state="AVAILABLE"]::before { background: var(--m30-success); }
body.m30-ui .m35-state-dot[data-state="UNAVAILABLE"]::before, body.m30-ui .m35-state-dot[data-state="NOT_RUN"]::before { background: var(--m30-warning); }
body.m30-ui .m35-context-line { max-width: 1180px; }
body.m30-ui .m35-table-scroll { max-width: 1460px; }
body.m30-ui .m35-table-scroll .m11-table { width: 100%; }
/* M35R2 review pass: keep the workspace rail quiet and reserve density for data. */
body.m35-workspace-ui .m11-side { background: #EEF3EE; border-right: 1px solid #D9E3DA; }
body.m35-workspace-ui .m11-side h3 { color: #66746D; }
body.m35-workspace-ui .m11-side a { color: #365044; }
body.m35-workspace-ui .m11-side a.active,
body.m35-workspace-ui .m11-side a:hover { background: #DDEBE0; color: #173F32; }
body.m35-workspace-ui .m11-side a.active { background: #D5E6D9; color: #173F32; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-kicker { color: #66746D; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button:not(.is-active) { color: #365044; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button:hover { background: #DDEBE0; color: #173F32; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button.is-active { background: #286C53; color: #FFFFFF; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button.is-active .m30-stage-detail { color: #DCEBE1; }
body.m35-workspace-ui.m30-ui .m11-side #m30-project-stage-rail .m30-stage-button.is-active .m30-stage-index { color: #286C53; background: #FFFFFF; }
body.m35-workspace-ui #m30-project-stage-rail .m30-stage-subroute { display: none; }
body.m35-workspace-ui #m30-project-stage-rail .m30-stage-group.is-expanded .m30-stage-subroute { display: block; }
body.m35-workspace-ui #m30-project-stage-rail .m30-stage-subroute { color: #DDEAE1; border-left-color: transparent; background: transparent; }
body.m35-workspace-ui #m30-project-stage-rail .m30-stage-subroute:hover,
body.m35-workspace-ui #m30-project-stage-rail .m30-stage-subroute.is-active { color: var(--m30-navy); border-left-color: var(--m30-teal); background: #F2F7F2; }
body.m35-workspace-ui .m35-workspace-sample { max-width: 1640px; }
body.m35-workspace-ui .m35-section-heading p { font-size: 14px; }
body.m35-workspace-ui .m35-list-toolbar label { font-size: 12px; }
body.m35-workspace-ui .m35-project-table-wrap .m11-table,
body.m35-workspace-ui .m35-table-scroll .m11-table { font-size: 14px; }
body.m35-workspace-ui .m35-project-table-wrap .m11-table th,
body.m35-workspace-ui .m35-table-scroll .m11-table th { padding: 12px 14px; font-size: 12px; }
body.m35-workspace-ui .m35-project-table-wrap .m11-table td,
body.m35-workspace-ui .m35-table-scroll .m11-table td { padding: 14px; font-size: 14px; line-height: 1.45; }
body.m35-workspace-ui .m35-project-table-wrap .m11-table { min-width: 1280px; table-layout: fixed; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(1) { width: 230px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(2) { width: 150px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(3) { width: 180px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(4) { width: 140px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(5) { width: 110px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(6) { width: 110px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(7) { width: 220px; }
body.m35-workspace-ui .m35-project-table-wrap th:nth-child(8) { width: 170px; }
body.m35-workspace-ui .m35-project-table-wrap th { white-space: nowrap; }
body.m35-workspace-ui .m35-project-table-wrap td:nth-child(5),
body.m35-workspace-ui .m35-project-table-wrap td:nth-child(6) { white-space: nowrap; }
body.m35-workspace-ui .m35-project-table-wrap .m35-status-chip { white-space: nowrap; }
body.m35-workspace-ui .m35-row-meta { font-size: 12px; }
body.m35-workspace-ui .m35-project-table-wrap { max-height: min(62vh, 660px); overflow: auto; scrollbar-gutter: stable; }
body.m35-workspace-ui .m35-project-table-wrap:focus-visible { outline: 3px solid #286C53; outline-offset: 2px; }
body.m35-workspace-ui .m35-table-scroll-hint { display: none; margin: 7px 0 0; color: var(--m30-text-muted); font-size: var(--m30-type-meta); }
@media (max-width: 1440px) {
  body.m35-workspace-ui .m35-table-scroll-hint { display: block; }
}
body.m35-workspace-ui #m35-ugt-table-scroll { max-height: min(66vh, 680px); overflow: auto; overscroll-behavior: contain; }
body.m35-workspace-ui #m35-ugt-table-scroll .m11-table { min-width: 1280px; max-width: none; overflow: visible; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(1) { width: 190px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(2) { width: 190px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(3) { width: 220px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(4) { width: 180px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(5) { width: 200px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:nth-child(6) { width: 190px; }
body.m35-workspace-ui #m35-ugt-table-scroll th:last-child { width: 110px; }
body.m35-workspace-ui #m35-ugt-table-scroll .m11-table thead { position: sticky; top: 0; z-index: 2; }
body.m35-workspace-ui #m35-ugt-table-scroll .m11-table thead th { position: static; }
body.m35-workspace-ui #m35-candidate-fixture .m11-table { min-width: 1100px; table-layout: fixed; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(1) { width: 16%; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(2),
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(3),
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(4) { width: 10%; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(5) { width: 8%; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(6) { width: 12%; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(7) { width: 14%; }
body.m35-workspace-ui #m35-candidate-fixture th:nth-child(8) { width: 20%; }
body.m35-workspace-ui #m35-candidate-fixture .m35-state-dot { font-size: 12px; }
body.m35-workspace-ui .m35-axis-line i { font-size: 12px; }
body.m35-workspace-ui .m35-context-line { max-width: none; font-size: 13px; }
@media (max-width: 800px) {
  body.m30-ui .m11-main { padding: 22px 16px 40px; }
  body.m30-ui .m35-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  body.m30-ui .m35-live-count { margin-left: 0; }
  body.m30-ui .m35-summary-strip { overflow-x: auto; }
  body.m30-ui .m35-summary-strip > div { min-width: 112px; }
  body.m30-ui .m35-summary-strip .m35-summary-note { min-width: 220px; }
  body.m30-ui .m35-context-line { gap: 12px; }
  body.m30-ui .m35-science-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  body.m35-workspace-ui .m11-side { background: #EEF3EE; }
  body.m35-workspace-ui #m35-ugt-table-scroll .m11-table,
  body.m35-workspace-ui #m35-candidate-fixture .m11-table { min-width: 1120px; }
}

/* M34 workspace refinement: apply the shared botanical editorial system to the
 * existing m11 public and workspace routes without changing their data contracts. */
.m11-root { background: #F8FAF7; color: #24342B; }
.m11-top { background: rgba(248,250,247,.97); border-bottom-color: #DFE7E0; }
.m11-top nav a { color: #66756B; }
.m11-top nav a.active, .m11-top nav a:hover { color: #173F32; background: #EDF4EE; }
.m11-side { background: #173F32; }
.m11-card { border-color: #DFE7E0; box-shadow: none; }
.m11-card h2, .m11-card h3 { color: #173F32; }
.m11-main h1 { font-size: 30px; letter-spacing: -.01em; }
.m11-main > .m11-lead { color: #66756B; }
.m11-table { border-color: #DFE7E0; box-shadow: none; }
.m11-table th { background: #EDF4EE; color: #55655B; }
.m11-table td { border-bottom-color: #E8EFE9; }
.m11-btn.primary { background: #286C53; border-color: #286C53; }
.m11-btn.primary:hover { background: #173F32; border-color: #173F32; }
.m11-tabs a.active { border-bottom-color: #4D8970; color: #173F32; }
.m11-note { background: #EDF4EE; border-left-color: #4D8970; color: #55655B; }
.m11-root :where(.m11-card, .m11-report, .m11-chart-card, .m11-project-context, .m11-workflow-panel) { border-radius: 7px; }
.m11-root .m11-hero { min-height: 320px; padding: 58px clamp(24px,6vw,88px); background: #EDF4EE; color: #24342B; border-bottom: 1px solid #DFE7E0; }
.m11-root .m11-hero h1 { color: #173F32; max-width: 760px; }
.m11-root .m11-hero p { color: #55655B; }
.m11-root .m11-hero .m11-btn { background: #fff; color: #173F32; border-color: #C7D9CB; }
.m11-root .m11-hero .m11-btn.primary { background: #173F32; border-color: #173F32; color: #fff; }
.m11-root .m11-public-band { background: #F8FAF7; }
.m11-root .m11-flow { gap: 0; background: transparent; border: 0; border-top: 1px solid #173F32; border-bottom: 1px solid #DFE7E0; }
.m11-root .m11-flow div { padding: 15px 14px; border-right: 1px solid #DFE7E0; color: #55655B; }
.m11-root .m11-flow div:last-child { border-right: 0; }
.m11-root .m11-card { border-color: #DFE7E0; box-shadow: none; }
.m11-root .m11-card h2, .m11-root .m11-card h3 { color: #173F32; }
.m11-root .m11-m34-home-hero,.m11-root .m11-m34-platform-hero { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:7vw;align-items:center;min-height:0;padding:76px clamp(28px,6vw,96px);background:#F8FAF7;border-bottom:1px solid #DFE7E0; }
.m11-root .m11-m34-home-copy>span,.m11-root .m11-m34-kicker { display:block;margin:0 0 13px;color:#4D8970;font-size:11px;font-weight:750;letter-spacing:.12em; }
.m11-root .m11-m34-home-copy h1,.m11-root .m11-m34-platform-hero h1 { max-width:760px;margin:0 0 22px;color:#173F32;font-size:clamp(42px,5.2vw,70px);line-height:1.12;letter-spacing:-.03em;text-wrap:balance; }
.m11-root .m11-m34-home-copy h1 em { color:#286C53;font-style:normal; }
.m11-root .m11-m34-home-copy>p,.m11-root .m11-m34-platform-hero>div>p { max-width:650px;color:#66756B;font-size:18px;line-height:1.8; }
.m11-root .m11-m34-home-copy>small { display:block;max-width:560px;margin-top:20px;color:#66756B;font-size:12px; }
.m11-root .m11-m34-brief { padding:26px 28px;background:#fff;border:1px solid #DFE7E0;border-radius:8px;box-shadow:0 8px 24px rgba(23,63,50,.06); }
.m11-root .m11-m34-brief>span { color:#4D8970;font-size:12px; }
.m11-root .m11-m34-brief h2 { margin:20px 0;color:#173F32;font-size:25px;line-height:1.4; }
.m11-root .m11-m34-brief dl,.m11-root .m11-m34-platform-hero dl,.m11-root .m11-m34-axis dl { margin:0; }
.m11-root .m11-m34-brief dl div,.m11-root .m11-m34-platform-hero dl div,.m11-root .m11-m34-axis dl div { display:grid;grid-template-columns:62px 1fr;gap:14px;padding:11px 0;border-top:1px solid #DFE7E0; }
.m11-root .m11-m34-brief dt,.m11-root .m11-m34-platform-hero dt,.m11-root .m11-m34-axis dt { color:#4D8970;font-size:12px; }
.m11-root .m11-m34-brief dd,.m11-root .m11-m34-platform-hero dd,.m11-root .m11-m34-axis dd { margin:0;color:#24342B;font-size:13px; }

/* M84.3 project creation: keep the five-stage flow legible and task-focused. */
.m11-project-wizard { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.m11-project-wizard .m11-wizard-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--m30-border); background: transparent; }
.m11-wizard-step { min-width: 0; border-right: 0; }
.m11-wizard-step:last-child { border-right: 0; }
.m11-wizard-step button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 9px; align-items: center; width: 100%; min-height: 68px; padding: 10px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--m30-text-muted); text-align: left; cursor: pointer; font: inherit; }
.m11-wizard-step button:disabled { cursor: not-allowed; opacity: 1; }
.m11-wizard-step button > span { grid-row: span 2; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #E6EEE8; color: var(--m30-text-muted); font-size: 12px; font-weight: 800; }
.m11-wizard-step button strong { display: block; min-width: 0; color: inherit; font-size: 15px; line-height: 1.3; }
.m11-wizard-step button small { display: block; min-width: 0; color: var(--m30-text-muted); font-size: 13px; line-height: 1.4; }
.m11-wizard-step.is-current button { border-bottom-color: var(--m30-blue); color: var(--m30-navy); background: transparent; }
.m11-wizard-step.is-current button > span { background: var(--m30-blue); color: #FFF; }
.m11-wizard-step.is-complete button { color: #286C53; }
.m11-wizard-step.is-complete button > span { background: #D6E9DA; color: #286C53; }
.m11-wizard-heading { display: flex; justify-content: flex-end; align-items: center; gap: 20px; min-height: 34px; padding: 10px 0 4px; }
.m11-wizard-mode { flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--m30-text-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.m11-wizard-panel { margin: 0; padding: 18px 0 20px; border: 0; border-radius: 0; background: transparent; }
.m11-wizard-panel h3 { margin: 0 0 6px; font-size: 20px; color: var(--m30-navy); }
.m11-wizard-help { margin: 0 0 20px; color: var(--m30-text-muted); font-size: 15px; line-height: 1.65; }
.m11-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.m11-field { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--m30-text); font-size: 15px; }
.m11-field-wide { grid-column: 1 / -1; }
.m11-field-label { display: flex; align-items: baseline; gap: 7px; color: var(--m30-navy); font-size: 15px; font-weight: 700; }
.m11-field-label em { color: var(--m30-text-muted); font-size: 14px; font-style: normal; font-weight: 500; }
.m11-field input, .m11-field select, .m11-field textarea { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #C9D8CD; border-radius: 6px; background: #FFF; color: var(--m30-text); font: inherit; line-height: 1.45; }
.m11-field textarea { min-height: 92px; resize: vertical; }
.m11-field input:focus, .m11-field select:focus, .m11-field textarea:focus { border-color: var(--m30-blue); outline: 3px solid rgba(40,108,83,.15); }
.m11-field small { color: var(--m30-text-muted); font-size: 14px; line-height: 1.55; }
.m11-field [aria-invalid="true"] { border-color: var(--m30-error); background: #FFF9F8; }
.m11-wizard-summary { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--m30-teal); background: #F4F8F4; color: var(--m30-text-muted); font-size: 14px; line-height: 1.65; }
.m11-wizard-summary strong { color: var(--m30-navy); }
.m11-wizard-status { margin: 0 0 16px; padding: 9px 0 9px 12px; border-left: 2px solid var(--m30-teal); background: transparent; color: var(--m30-text-muted); font-size: 14px; line-height: 1.55; }
.m11-wizard-status[data-state="error"] { border-left-color: var(--m30-error); background: #FFF7F6; color: #8D3D3D; }
.m11-wizard-status[data-state="saved"] { border-left-color: var(--m30-success); }
.m11-wizard-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 22px; }
.m11-wizard-actions .m11-btn { min-width: 96px; }
.m11-wizard-actions .m11-wizard-action-spacer { flex: 1 1 auto; }
.m11-wizard-actions .m11-btn:disabled { cursor: not-allowed; opacity: 1; }
.m11-project-wizard [hidden] { display: none !important; }
@media (max-width: 760px) {
  .m11-project-wizard { margin: 0 -1px; }
  .m11-project-wizard .m11-wizard-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--m30-border); }
  .m11-wizard-step { border-right: 0; border-bottom: 0; }
  .m11-wizard-step button { min-height: 72px; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 6px 2px; }
  .m11-wizard-step button > span { grid-row: auto; width: 22px; height: 22px; }
  .m11-wizard-step button strong { max-width: 100%; font-size: 13px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
  .m11-wizard-step button small { display: none; }
  .m11-wizard-heading { padding: 22px 18px 16px; }
  .m11-wizard-heading h2 { font-size: 20px; }
  .m11-wizard-mode { font-size: 13px; }
  .m11-wizard-panel { margin: 0 14px 14px; padding: 18px 15px; }
  .m11-form-grid { grid-template-columns: 1fr; gap: 15px; }
  .m11-field-wide { grid-column: auto; }
  .m11-wizard-status { margin: 0 14px 14px; }
  .m11-wizard-actions { padding: 0 14px 20px; }
  .m11-wizard-actions .m11-wizard-action-spacer { display: none; }
}
.m11-root .m11-m34-brief>small { display:block;margin-top:15px;padding-top:13px;border-top:1px solid #DFE7E0;color:#66756B;font-size:11px; }
.m11-root .m11-m34-home-follow,.m11-root .m11-m34-axis { display:grid;grid-template-columns:.9fr 1.1fr;gap:7vw;align-items:start;padding-top:68px;padding-bottom:68px; }
.m11-root .m11-m34-home-follow h2,.m11-root .m11-m34-spine h2,.m11-root .m11-m34-axis h2,.m11-root .m11-m34-platform-section h2 { max-width:720px;margin:0;color:#173F32;font-size:clamp(27px,3.4vw,42px);line-height:1.26;text-wrap:balance; }
.m11-root .m11-m34-home-follow>p,.m11-root .m11-m34-axis>div>p,.m11-root .m11-m34-platform-section>p { max-width:620px;margin:22px 0 0;color:#66756B;font-size:16px;line-height:1.85; }
.m11-root .m11-m34-spine>div:first-child { margin-bottom:24px; }
.m11-root .m11-m34-spine ol { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none;border-top:1px solid #173F32; }
.m11-root .m11-m34-spine li { min-width:0;padding:17px 12px 12px 0;border-right:1px solid #DFE7E0; }
.m11-root .m11-m34-spine li+li { padding-left:14px; }
.m11-root .m11-m34-spine li:last-child { border-right:0; }
.m11-root .m11-m34-spine li b { display:block;margin-bottom:20px;color:#4D8970;font:12px var(--font-mono); }
.m11-root .m11-m34-spine li strong { display:block;color:#173F32;font-size:14px; }
.m11-root .m11-m34-spine li small { display:block;margin-top:7px;color:#66756B;font-size:11px; }
.m11-root .m11-m34-axis { background:#EDF4EE; }
.m11-root .m11-m34-platform-hero { grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);padding-block:66px; }
.m11-root .m11-m34-platform-hero h1 { font-size:clamp(40px,4.8vw,64px); }
.m11-root .m11-m34-platform-hero dl { border-top:1px solid #173F32; }
.m11-root .m11-m34-platform-section { padding:66px clamp(28px,6vw,96px);border-bottom:1px solid #DFE7E0; }
.m11-root .m11-m34-platform-section>p { margin-top:14px; }
.m11-root .m11-m34-three { display:grid;grid-template-columns:repeat(3,1fr);margin-top:32px;border-top:1px solid #173F32;border-bottom:1px solid #DFE7E0; }
.m11-root .m11-m34-three>div { padding:20px 18px 20px 0;border-right:1px solid #DFE7E0; }
.m11-root .m11-m34-three>div+div { padding-left:18px; }
.m11-root .m11-m34-three>div:last-child { border-right:0; }
.m11-root .m11-m34-three b,.m11-root .m11-m34-data-ledger b { color:#173F32;font-size:15px; }
.m11-root .m11-m34-three p { color:#66756B;font-size:13px; }
.m11-root .m11-m34-data-ledger { margin-top:28px;border-top:1px solid #173F32; }
.m11-root .m11-m34-data-ledger>div { display:grid;grid-template-columns:150px 1.2fr 1fr;gap:20px;padding:14px 0;border-bottom:1px solid #DFE7E0;align-items:center; }
.m11-root .m11-m34-data-ledger span { color:#24342B;font-size:13px; }
.m11-root .m11-m34-data-ledger small { color:#66756B;font-size:12px; }
.m11-root .m11-m34-workbenches { display:grid;grid-template-columns:1fr 1fr;gap:40px;background:#EDF4EE; }
.m11-root .m11-m34-workbenches article { padding:22px 24px 22px 0;border-top:1px solid #173F32; }
.m11-root .m11-m34-workbenches article+article { padding-left:24px;border-left:1px solid #C7D9CB; }
.m11-root .m11-m34-workbenches h2 { margin:0;color:#173F32;font-size:25px; }
.m11-root .m11-m34-workbenches p { max-width:560px;color:#66756B;font-size:14px;line-height:1.8; }
@media (max-width: 760px) {
  .m11-root .m11-hero { min-height: 0; padding: 42px 20px; }
  .m11-root .m11-hero h1 { font-size: 38px; }
  .m11-root .m11-flow { grid-template-columns: 1fr; }
  .m11-root .m11-flow div { border-right: 0; border-bottom: 1px solid #DFE7E0; text-align: left; }
  .m11-root .m11-flow div:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .m11-root .m11-m34-home-hero,.m11-root .m11-m34-platform-hero { grid-template-columns:1fr;gap:28px;padding:42px 20px; }
  .m11-root .m11-m34-home-copy h1,.m11-root .m11-m34-platform-hero h1 { font-size:clamp(38px,11vw,52px); }
  .m11-root .m11-m34-home-follow,.m11-root .m11-m34-axis { grid-template-columns:1fr;gap:12px;padding:48px 20px; }
  .m11-root .m11-m34-spine ol,.m11-root .m11-m34-three,.m11-root .m11-m34-workbenches { grid-template-columns:1fr; }
  .m11-root .m11-m34-spine li,.m11-root .m11-m34-spine li+li { padding:12px 0;border-right:0;border-bottom:1px solid #DFE7E0; }
  .m11-root .m11-m34-spine li b { display:inline-block;margin:0 12px 0 0; }
  .m11-root .m11-m34-spine li strong { display:inline; }
  .m11-root .m11-m34-spine li small { margin-left:34px; }
  .m11-root .m11-m34-platform-section { padding:48px 20px; }
  .m11-root .m11-m34-three>div,.m11-root .m11-m34-three>div+div { padding:15px 0;border-right:0;border-bottom:1px solid #DFE7E0; }
  .m11-root .m11-m34-data-ledger>div { grid-template-columns:1fr;gap:4px; }
  .m11-root .m11-m34-workbenches article+article { padding-left:0;border-left:0; }
}

/* M89: readable, shared workspace rhythm and real-artifact figure gallery. */
:root {
  --m30-type-page: clamp(28px, 2.15vw, 32px);
  --m30-type-section: clamp(22px, 1.9vw, 28px);
  --m30-type-card: 20px;
  --m30-type-body: 16px;
  --m30-type-secondary: 15px;
  --m30-type-meta: 14px;
  --m30-layout-gutter: clamp(18px, 2.5vw, 36px);
}
body.m11-active .m11-main {
  width: 100%;
  max-width: 1440px;
  padding: 32px var(--m30-layout-gutter) 64px;
}
body.m11-active .m11-main h1 {
  margin-bottom: 10px;
  font-size: var(--m30-type-page);
  line-height: 1.12;
}
body.m11-active .m11-main > .m11-lead {
  max-width: 78ch;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.65;
}
body.m11-active .m11-main { font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif; font-size: var(--m30-type-body); line-height: 1.65; }
body.m11-active .m11-main :where(label, input, select, textarea, button, a) { font-size: var(--m30-type-secondary); }
body.m11-active .m11-main :where(p, li, label, input, select, textarea, button, a) {
  line-height: 1.5;
}
body.m11-active .m11-main :where(.m11-card p, .m11-note, .m11-state span) {
  font-size: var(--m30-type-body);
}
body.m11-active .m11-main :where(.m11-card h2, .m11-card h3, .m11-report h2, .m11-report h3) {
  font-size: var(--m30-type-card);
  line-height: 1.3;
}
body.m11-active .m11-main .m11-table {
  font-size: 15px;
  overflow-wrap: normal;
  word-break: normal;
}
body.m11-active .m11-main .m11-table th { font-size: var(--m30-font-label); }
body.m11-active .m11-main .m11-table td { font-size: var(--m30-font-table); }
body.m11-active .m11-main .m11-table th,
body.m11-active .m11-main .m11-table td {
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}
body.m11-active .m11-root .m11-btn { min-height: 40px; padding-inline: 14px; border-radius: 5px; font-size: 14px; font-weight: 600; transition: background-color .14s ease, border-color .14s ease, color .14s ease; }
body.m11-active .m11-root .m11-btn:not(.primary) { border-color: #D4DED7; background: #fff; color: var(--m30-text); }
body.m11-active .m11-root .m11-btn:not(.primary):hover:not(:disabled) { border-color: #AFC4B5; background: #F7FAF7; color: var(--m30-navy); }
body.m11-active .m11-root .m11-btn.primary { background: var(--m30-navy); border-color: var(--m30-navy); color: #fff; }
body.m11-active .m11-root .m11-btn.primary:hover:not(:disabled) { background: var(--m30-blue); border-color: var(--m30-blue); }
body.m11-active .m11-root .m11-btn:active:not(:disabled) { background-color: #EAF1EC; }
body.m11-active .m11-root .m11-btn:disabled,
body.m11-active .m11-root .m11-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; border-color: #D9E2DB; background: #F3F6F3; color: #59675E; }
body.m11-active .m11-main :where(input, select, textarea):disabled { cursor: not-allowed; opacity: 1; border-color: #D9E2DB; background: #F3F6F3; color: #59675E; }
body.m11-active .m11-main .m11-wizard-step button:disabled { opacity: 1; color: var(--m30-text-muted); }
body.m11-active .m11-root :where(.m11-btn, input, select, textarea, a, button):focus-visible { outline: 3px solid var(--m30-blue); outline-offset: 2px; }
body.m11-active .m11-root .m11-side :where(a, button):focus-visible { outline-color: #FFFFFF; }
body.m35-workspace-ui.m30-ui .m11-root .m11-side :where(a, button):focus-visible { outline-color: var(--m30-navy); }
body.m11-active .m11-root .m11-side a,
body.m11-active .m11-root .m11-top nav a { font-size: var(--m30-font-navigation); }
body.m11-active .m11-root .m11-side a { font-size: var(--m30-font-navigation); }
body.m11-active .m11-root .m11-project-context,
body.m11-active .m11-root .m11-workflow-panel,
body.m11-active .m11-root .m11-card { box-shadow: none; }
body.m11-active .m11-main .m11-app-resource { max-width: 1540px; }
body.m11-active .m11-main .m11-resource-intro { padding: 0 0 16px; margin-bottom: 16px; border: 0; border-bottom: 1px solid var(--m30-border); border-radius: 0; background: transparent; }
body.m11-active .m11-main .m11-resource-intro h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.m11-active .m11-main .m11-resource-intro .m11-eyebrow { display: none; }
body.m11-active .m11-main .m11-resource-intro .m11-eyebrow { color: var(--m30-text-muted); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
body.m11-active .m11-main .m11-resource-intro p { max-width: 78ch; margin: 0; color: var(--m30-text-muted); font-size: var(--m30-font-body); line-height: var(--m30-line-body); }
body.m11-active .m11-main .m11-resource-badge { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--m30-text-muted); font-size: 14px; font-weight: 500; }
body.m11-active .m11-main > .m11-lead { color: var(--m30-text-muted); font-size: var(--m30-font-body); line-height: var(--m30-line-body); }
body.m11-active .m11-main :where(.m11-app-ugt-controls label, .m11-species-controls label, .m86-biology-mode label, .m862-biology-toolbar label) { color: var(--m30-text); font-size: var(--m30-font-label); line-height: 1.45; }
body.m11-active .m11-main :where(.m11-app-ugt-controls input, .m11-app-ugt-controls select, .m11-species-controls input, .m11-species-controls select, .m86-biology-mode select, .m862-biology-toolbar input) { min-height: 42px; border-radius: 5px; color: var(--m30-text); font-size: var(--m30-font-control); }
body.m11-active .m11-main :where(.m11-app-ugt-table td, .m11-species-table td) { font-size: var(--m30-font-table); line-height: 1.5; }
body.m11-active .m11-main .m11-app-ugt-controls { padding: 16px; gap: 12px; border-radius: 6px; box-shadow: none; }
body.m11-active .m11-main :where(.m86-biology-mode, .m862-biology-toolbar) { padding: 14px 0; border: 0; border-top: 1px solid var(--m30-border); border-bottom: 1px solid var(--m30-border); border-radius: 0; background: transparent; }
body.m11-active .m11-main .m862-dataset-facts p { padding: 10px 0; border: 0; border-bottom: 1px solid var(--m30-border); border-radius: 0; background: transparent; }
body.m11-active .m11-main .m11-operation-status { min-height: 0; padding: 9px 0 9px 12px; border-left: 2px solid #8A9A90; border-bottom: 1px solid var(--m30-border); background: transparent; color: var(--m30-text); font-size: 14px; line-height: 1.55; }
body.m11-active .m11-main .m11-operation-status[data-state="success"] { border-left-color: var(--m30-success); color: #245640; }
body.m11-active .m11-main .m11-operation-status[data-state="warning"] { border-left-color: var(--m30-warning); color: #78531F; }
body.m11-active .m11-main .m11-operation-status[data-state="error"] { border-left-color: var(--m30-error); background: transparent; color: #7D3535; }
body.m11-active .m11-main .m11-note { padding: 9px 0 9px 12px; border-left: 2px solid #8A9A90; background: transparent; color: var(--m30-text); font-size: 14px; line-height: 1.55; }
body.m11-active #m11-project-list {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
body.m11-active #m11-project-list .m11-table {
  min-width: 900px;
  table-layout: auto;
}
body.m11-active #m11-project-list .m35-project-table-wrap .m11-table {
  min-width: 1280px;
  table-layout: fixed;
}
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(1) { width: 230px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(2) { width: 150px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(3) { width: 180px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(4) { width: 140px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(5) { width: 110px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(6) { width: 110px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(7) { width: 220px; }
body.m11-active #m11-project-list .m35-project-table-wrap th:nth-child(8) { width: 170px; }
body.m11-active .m89-figure-center {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  color: var(--m30-text);
}
.m89-figure-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 180px)) minmax(220px, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--m30-border);
  border-bottom: 1px solid var(--m30-border);
  background: var(--m30-surface);
}
.m89-figure-overview article { display: grid; gap: 6px; align-content: center; min-width: 0; padding: 16px 18px; border-right: 1px solid var(--m30-border); }
.m89-figure-overview article span { color: var(--m30-text-muted); font-size: var(--m30-type-meta); }
.m89-figure-overview article strong { color: var(--m30-navy); font-size: 26px; font-weight: 700; line-height: 1.1; }
.m89-figure-overview > p { align-self: center; max-width: 58ch; margin: 0; padding: 14px 20px; color: var(--m30-text-muted); font-size: var(--m30-type-secondary); line-height: 1.55; }
.m89-figure-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.m89-figure-filters button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--m30-border); border-radius: 5px; background: #fff; color: var(--m30-text-muted); font: inherit; font-size: var(--m30-type-secondary); cursor: pointer; }
.m89-figure-filters button:hover { border-color: #A7C4B0; color: var(--m30-navy); }
.m89-figure-filters button[aria-pressed="true"] { border-color: var(--m30-navy); background: var(--m30-navy); color: #fff; }
.m89-figure-summary { margin: 0 0 28px; padding: 18px 0 20px; border-bottom: 1px solid var(--m30-border); }
.m89-figure-summary h2,.m89-figure-section > header h2 { margin: 0; color: var(--m30-navy); font-size: var(--m30-type-section); line-height: 1.25; }
.m89-figure-summary > p,.m89-figure-section > header p { margin: 7px 0 0; color: var(--m30-text-muted); font-size: var(--m30-type-secondary); line-height: 1.55; }
.m89-figure-summary-values { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 16px; }
.m89-figure-summary-values > div { display: grid; gap: 3px; min-width: 138px; }
.m89-figure-summary-values strong { color: var(--m30-navy); font-size: 22px; }
.m89-figure-summary-values span,.m89-figure-summary-values p { color: var(--m30-text-muted); font-size: var(--m30-type-meta); }
.m89-figure-sections { display: grid; gap: 34px; }
.m89-figure-section { min-width: 0; }
.m89-figure-section[hidden] { display: none !important; }
.m89-figure-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid var(--m30-border); }
.m89-figure-section > header > span { flex: 0 0 auto; color: var(--m30-text-muted); font-size: var(--m30-type-meta); font-variant-numeric: tabular-nums; }
.m89-figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m89-figure-card { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 1.15fr); min-width: 0; overflow: hidden; border-top: 1px solid var(--m30-border); border-bottom: 1px solid var(--m30-border); background: var(--m30-surface); }
.m89-figure-card.is-compact { grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); }
.m89-figure-preview { display: grid; place-items: center; min-width: 0; min-height: 220px; padding: 12px; background: #F1F5F1; }
.m89-preview-trigger { display: grid; gap: 9px; place-items: center; width: 100%; min-height: 180px; padding: 16px; border: 0; background: transparent; color: var(--m30-text-muted); font: inherit; font-size: var(--m30-type-meta); cursor: pointer; }
.m89-preview-mark { display: grid; place-items: center; width: min(100%, 240px); aspect-ratio: 1.56; border: 1px solid #CCD9D0; background: #fff; color: var(--m30-teal); font-size: 19px; font-weight: 750; letter-spacing: .04em; }
.m89-preview-trigger:hover .m89-preview-mark { border-color: var(--m30-teal); }
.m89-no-preview { display: grid; gap: 7px; max-width: 30ch; color: var(--m30-text-muted); font-size: var(--m30-type-meta); line-height: 1.5; text-align: center; }
.m89-no-preview strong { color: var(--m30-text); font-size: var(--m30-type-secondary); }
.m89-figure-content { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 17px 18px; }
.m89-figure-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m89-figure-heading h3 { min-width: 0; margin: 0; color: var(--m30-navy); font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; text-wrap: pretty; }
.m89-availability { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--m30-border); border-radius: 4px; color: var(--m30-text-muted); font-size: 12px; font-weight: 700; }
.m89-availability[data-state="AVAILABLE"] { border-color: #BCD7C4; background: #EDF4EE; color: #286C53; }
.m89-availability[data-state="UNAVAILABLE"],.m89-availability[data-state="NOT_VERIFIED"] { border-color: #E2D5B5; background: #FBF7EC; color: #785A20; }
.m89-figure-meta { display: grid; gap: 9px; margin: 0; }
.m89-figure-meta > div { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.m89-figure-meta dt { color: var(--m30-text-muted); font-size: var(--m30-type-meta); }
.m89-figure-meta dd { min-width: 0; margin: 0; color: var(--m30-text); font-size: var(--m30-type-secondary); overflow-wrap: anywhere; }
.m89-figure-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 2px; }
.m89-figure-action { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 11px; border: 1px solid var(--m30-border); border-radius: 4px; background: #fff; color: var(--m30-blue); font: inherit; font-size: var(--m30-type-secondary); font-weight: 650; text-decoration: none; cursor: pointer; }
.m89-figure-action:hover { border-color: var(--m30-teal); color: var(--m30-navy); }
.m89-figure-action.is-primary { border-color: var(--m30-navy); background: var(--m30-navy); color: #fff; }
.m89-figure-empty,.m89-figure-error { grid-column: 1 / -1; padding: 18px 0; border-top: 1px solid var(--m30-border); border-bottom: 1px solid var(--m30-border); background: transparent; color: var(--m30-text-muted); }
.m89-figure-empty strong,.m89-figure-error strong { display: block; color: var(--m30-navy); font-size: 16px; }
.m89-figure-empty p,.m89-figure-error p { margin: 5px 0; font-size: var(--m30-type-secondary); line-height: 1.55; }
.m89-figure-empty ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 5px 22px; margin: 13px 0 0; padding-left: 19px; }
.m89-figure-empty li { color: var(--m30-text); font-size: var(--m30-type-meta); }
.m89-figure-empty li span { margin-left: 8px; color: var(--m30-text-muted); }
.m89-figure-source-note { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--m30-border); color: var(--m30-text-muted); font-size: var(--m30-type-meta); line-height: 1.5; overflow-wrap: anywhere; }
.m89-figure-dialog { width: min(1100px, calc(100vw - 32px)); max-width: 1100px; max-height: min(92vh, 900px); padding: 0; border: 1px solid var(--m30-border); background: #fff; color: var(--m30-text); }
.m89-figure-dialog::backdrop { background: rgba(23, 40, 31, .62); }
.m89-figure-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--m30-border); }
.m89-figure-dialog-head strong { min-width: 0; color: var(--m30-navy); font-size: 16px; overflow-wrap: anywhere; }
.m89-figure-dialog-head button { min-height: 34px; padding: 5px 10px; border: 1px solid var(--m30-border); background: #fff; color: var(--m30-navy); cursor: pointer; }
.m89-figure-dialog-body { display: grid; place-items: center; min-height: 240px; padding: 14px; overflow: auto; }
.m89-figure-image { display: block; width: auto; max-width: 100%; max-height: 76vh; object-fit: contain; }
.m89-figure-pdf { width: 100%; height: min(76vh, 740px); border: 0; }
.m89-figure-summary-state[data-state="empty"] { color: #785A20; }
.m89-figure-error { display: grid; gap: 10px; }
@media (max-width: 1100px) {
  .m89-figure-overview { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .m89-figure-overview > p { grid-column: 1 / -1; border-top: 1px solid var(--m30-border); }
  .m89-figure-card,.m89-figure-card.is-compact { grid-template-columns: minmax(140px, .75fr) minmax(0, 1.25fr); }
}
@media (max-width: 760px) {
  body.m11-active .m11-main { padding: 24px 18px 42px; }
  body.m11-active .m11-main h1 { font-size: clamp(28px, 8vw, 34px); }
  .m89-figure-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m89-figure-overview article { padding: 12px; }
  .m89-figure-overview article strong { font-size: 22px; }
  .m89-figure-grid { grid-template-columns: 1fr; }
  .m89-figure-card,.m89-figure-card.is-compact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 520px) {
  body.m11-active .m11-main { padding: 22px 14px 36px; }
  body.m11-active .m11-main > .m11-lead { font-size: var(--m30-font-body); }
  .m89-figure-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m89-figure-overview article { padding: 10px 8px; }
  .m89-figure-overview article span { font-size: 12px; }
  .m89-figure-overview article strong { font-size: 20px; }
  .m89-figure-overview > p { padding: 11px 12px; }
  .m89-figure-section > header { align-items: flex-start; }
  .m89-figure-card,.m89-figure-card.is-compact { grid-template-columns: 1fr; }
  .m89-figure-preview { min-height: 130px; }
  .m89-preview-trigger { min-height: 120px; }
  .m89-preview-mark { width: min(100%, 180px); }
  .m89-figure-content { padding: 14px; }
  .m89-figure-meta > div { grid-template-columns: 1fr; gap: 3px; }
  .m89-figure-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m89-figure-action { justify-content: center; text-align: center; }
  body.m11-active #m11-project-list .m11-table { min-width: 880px; }
}
@media (prefers-reduced-motion: reduce) {
  .m89-figure-filters button,.m89-preview-trigger,.m89-preview-mark { transition: none !important; }
}

/* M90R: visual reduction and interaction clarity.
 * Keep the established M30 tokens and component owners; remove container
 * chrome where spacing and a quiet rule already express the grouping.
 */
body.m11-active .m11-main > #m11-recent-project + .m11-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
body.m11-active .m11-main > #m11-recent-project + .m11-grid .m11-card {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--m30-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.m11-active .m11-main > #m11-recent-project + .m11-grid .m11-card h2,
body.m11-active .m11-main > #m11-recent-project + .m11-grid .m11-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}
body.m11-active .m11-main > #m11-recent-project + .m11-grid .m11-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Filter/configuration groups are still clearly bounded by rules, but no
 * longer read as nested cards around every control. */
body.m11-active .m11-main :where(
  .m11-app-ugt-controls,
  .m11-species-controls,
  .m86-biology-mode,
  .m862-biology-toolbar,
  .m862-upload-form,
  .m862-run-form
) {
  padding-inline: 0;
  border: 0;
  border-top: 1px solid var(--m30-border);
  border-bottom: 1px solid var(--m30-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.m11-active .m11-main .m11-app-ugt-pool {
  padding-inline: 0;
  border: 0;
  border-top: 1px solid var(--m30-border);
  border-bottom: 1px solid var(--m30-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.m11-active .m11-main :where(.m11-app-ugt-detail-grid > div, .m862-dataset-facts p) {
  padding-inline: 0;
  border: 0;
  border-top: 1px solid var(--m30-border);
  border-radius: 0;
  background: transparent;
}

/* At small widths navigation wraps into usable rows; only scientific tables
 * retain intentional horizontal scrolling. */
@media (max-width: 760px) {
  body.m11-active:not(.m30-m11-project-mode) .m11-side {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px 4px;
    overflow-x: hidden;
  }
  body.m11-active:not(.m30-m11-project-mode) .m11-side > a {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
    margin: 0;
    padding: 8px 9px;
    white-space: normal;
    line-height: 1.3;
  }
  body.m11-active .m11-top {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  body.m11-active .m11-top nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0;
  }
  body.m11-active .m11-main > #m11-recent-project + .m11-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
