
/* v5.7.0 Apple-inspired workspace redesign and scale-ready shell */
:root {
  --apple-page: #f5f5f7;
  --apple-panel: #ffffff;
  --apple-panel-soft: #fbfbfd;
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-line: rgba(0, 0, 0, .10);
  --apple-blue: #0071e3;
  --apple-blue-soft: #eaf3ff;
  --apple-green: #2f7d50;
  --apple-red: #b42318;
  --apple-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  --apple-focus: 0 0 0 4px rgba(0, 113, 227, .14);
}
.dashboard-shell-v22 {
  background: var(--apple-page);
  color: var(--apple-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.app-shell-v22 {
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar-v22 {
  border-right: 1px solid var(--apple-line);
  background: rgba(245, 245, 247, .86);
  color: var(--apple-ink);
  backdrop-filter: saturate(180%) blur(18px);
}
.side-brand-v22 {
  color: var(--apple-ink);
}
.side-brand-v22 span {
  background: linear-gradient(145deg, #1d1d1f, #6e6e73);
  color: #fff;
}
.sidebar-v22 nav a,
.side-foot-v22 a {
  color: rgba(29, 29, 31, .72);
  background: transparent;
  border-radius: 8px;
}
.sidebar-v22 nav a:hover,
.sidebar-v22 nav a:focus-visible,
.sidebar-v22 nav a[aria-current="page"] {
  border-color: transparent;
  background: rgba(255, 255, 255, .78);
  color: var(--apple-blue);
  box-shadow: none;
}
.sidebar-v22 nav a[aria-current="page"]::after {
  display: none;
}
.topbar-v22 {
  min-height: 76px;
  border-bottom: 1px solid var(--apple-line);
  background: rgba(245, 245, 247, .82);
  backdrop-filter: saturate(180%) blur(18px);
}
.topbar-v22 h1 {
  color: var(--apple-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}
.eyebrow,
.section-kicker {
  color: var(--apple-muted);
  letter-spacing: 0;
}
.work-main-v22 {
  padding: 24px;
}
.dashboard-section-v22 {
  scroll-margin-top: 96px;
}
.section-title-v22,
.section-head-v22 {
  align-items: end;
}
.section-title-v22 h2,
.section-head-v22 h2 {
  color: var(--apple-ink);
  font-size: 32px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}
.section-title-v22 p,
.section-head-v22 p,
.hint,
.empty-v22,
.small,
.block-meta,
.drawer-title-v556 small {
  color: var(--apple-muted);
}
.dashboard-card-v22,
.gangue-folder,
.block-card,
.research-block-v22,
.record-section,
.metric-result-card-v22,
.folder-section,
.calendar-collapse-v22,
.create-panel-v22 {
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: var(--apple-panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.dashboard-card-v22:hover,
.gangue-folder:hover,
.block-card:hover,
.research-block-v22:hover {
  border-color: rgba(0, 113, 227, .22);
  box-shadow: var(--apple-shadow);
  transform: none;
}
.metric-grid-v22,
.overview-grid-v22,
.recent-block-grid-v22,
.gangue-overview-grid-v22 {
  gap: 12px;
}
.global-search-v22,
.search-field-v22 {
  min-width: 0;
}
.search-field-v22 input,
.block-toolbar input,
input,
textarea,
select {
  border-color: var(--apple-line);
  border-radius: 8px;
  background: #fff;
  color: var(--apple-ink);
}
.search-field-v22 input:focus,
.block-toolbar input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--apple-blue);
  box-shadow: var(--apple-focus);
}
button,
.chip-button,
.top-actions-v22 a,
.top-actions-v22 button,
.card-actions-v22 a,
.record-tabbar button {
  min-height: 36px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
  color: var(--apple-blue);
  box-shadow: none;
  font-weight: 750;
}
button:hover,
.chip-button:hover,
.top-actions-v22 a:hover,
.top-actions-v22 button:hover,
.card-actions-v22 a:hover,
.record-tabbar button:hover {
  border-color: rgba(0, 113, 227, .34);
  background: var(--apple-blue-soft);
  box-shadow: none;
}
button[type="submit"],
.record-savebar-v543 button.primary {
  border-color: var(--apple-blue);
  background: var(--apple-blue);
  color: #fff;
}
button.danger,
.danger-soft,
.delete-block,
.delete-lab-image {
  border-color: rgba(180, 35, 24, .20);
  background: #fff5f4;
  color: var(--apple-red);
}
.block-toolbar {
  position: sticky;
  top: 76px;
  z-index: 9;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: rgba(251, 251, 253, .90);
  backdrop-filter: saturate(180%) blur(16px);
}
.block-filter-panel-v31,
.lab-image-filter-panel {
  position: sticky;
  top: 154px;
  z-index: 8;
  padding: 12px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: rgba(251, 251, 253, .90);
  backdrop-filter: saturate(180%) blur(16px);
}
.research-block-v22,
.block-card {
  overflow: hidden;
}
.block-head {
  border-bottom-color: var(--apple-line);
  background: linear-gradient(180deg, #fff, #fbfbfd);
}
.block-title strong,
.research-block-v22 h3,
.gangue-folder-title strong {
  color: var(--apple-ink);
  font-weight: 850;
  letter-spacing: 0;
}
.badge,
.block-meta span,
.config-chips-v22 span,
.age-progress-v22 span,
.folder-badges span,
.export-check,
.export-count-v311 {
  border-color: var(--apple-line);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--apple-muted);
}
.age-progress-v22 .done,
.strength-bar-v22.filled b {
  color: var(--apple-green);
}
.age-progress-v22 .due,
.strength-bar-v22.due b {
  color: var(--apple-red);
}
.gangue-folder-head {
  background: linear-gradient(180deg, #fff, #fbfbfd);
}
.record-details[open]::before,
.record-details[open]:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}
.record-details[open] .record-drawer-body {
  position: fixed;
  z-index: 90;
  inset: 0 0 0 auto;
  width: min(980px, calc(100vw - 28px));
  border-left: 1px solid var(--apple-line);
  background: var(--apple-page);
  box-shadow: -26px 0 70px rgba(0, 0, 0, .22);
}
.drawer-top-v22 {
  min-height: 58px;
  border-bottom: 1px solid var(--apple-line);
  background: rgba(245, 245, 247, .86);
  backdrop-filter: saturate(180%) blur(18px);
}
.drawer-title-v556 strong {
  color: var(--apple-ink);
  letter-spacing: 0;
}
.record-drawer-body .record-tabbar {
  top: 58px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--apple-line);
  background: rgba(245, 245, 247, .90);
  backdrop-filter: saturate(180%) blur(18px);
}
.record-drawer-body .record-tabbar button {
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--apple-muted);
}
.record-drawer-body .record-tabbar button.active {
  border-color: var(--apple-blue);
  background: var(--apple-blue);
  color: #fff;
  box-shadow: none;
}
.record-form,
.record-panel {
  background: transparent;
}
.record-section {
  margin: 12px;
  padding: 16px;
}
.record-section h4 {
  border-bottom-color: var(--apple-line);
  color: var(--apple-ink);
}
.record-savebar-v543 {
  right: 0;
  bottom: 0;
  left: 0;
  margin: 12px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: rgba(251, 251, 253, .92);
  backdrop-filter: saturate(180%) blur(18px);
}
.record-details.is-dirty-v552 .record-savebar-v543,
.record-details.is-dirty-v552 .drawer-top-v22 {
  border-color: rgba(255, 159, 10, .42);
  background: rgba(255, 251, 235, .94);
}
.metric-result-card-v22,
.specimen-row-v22:not(.head) {
  background: #fff;
}
.metric-result-help-v33,
.specimen-summary-v22,
.specimen-actions-v52 {
  border-color: var(--apple-line);
  border-radius: 8px;
  background: #f5f5f7;
}
.specimen-primary-v559 input {
  border-color: rgba(0, 113, 227, .24);
  color: var(--apple-ink);
}
.converted-strength-pill-v33,
.specimen-converted-v559 .converted-strength-pill-v33 {
  border-color: rgba(47, 125, 80, .18);
  background: #f1faf4;
  color: var(--apple-green);
}
.result-primary-pill-v73 {
  border-color: rgba(47, 125, 80, .28);
  background: #eaf7ef;
  color: var(--apple-green);
}
.specimen-raw-v73 input {
  border-color: var(--apple-line);
  background: #f5f5f7;
  color: var(--apple-muted);
}
.record-loading-v57,
.record-load-error-v57 {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
}
.record-loading-v57[hidden],
.record-load-error-v57[hidden] {
  display: none;
}
.record-loading-v57 > div,
.record-load-error-v57 > div {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--apple-shadow);
}
.record-loading-v57 strong,
.record-load-error-v57 strong {
  font-size: 20px;
  color: var(--apple-ink);
}
.record-loading-v57 span,
.record-load-error-v57 span {
  color: var(--apple-muted);
}
.record-load-error-v57 a {
  color: var(--apple-blue);
  font-weight: 750;
}
@media (max-width: 980px) {
  .app-shell-v22 {
    display: block;
  }
  .sidebar-v22 {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
  }
  .sidebar-v22 nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .topbar-v22,
  .block-toolbar,
  .block-filter-panel-v31,
  .lab-image-filter-panel {
    position: static;
  }
  .work-main-v22 {
    padding: 14px;
  }
}
@media (max-width: 640px) {
  .sidebar-v22 {
    grid-template-columns: 1fr;
  }
  .side-foot-v22 {
    display: none;
  }
  .topbar-v22 {
    padding: 12px;
  }
  .section-title-v22 h2,
  .section-head-v22 h2 {
    font-size: 25px;
  }
  .record-details[open] .record-drawer-body {
    width: 100vw;
  }
  .drawer-top-v22,
  .record-section,
  .record-savebar-v543 {
    margin: 0;
    border-radius: 0;
  }
}

/* v5.8.0 scale-ready block index */
.block-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto auto auto minmax(260px, max-content);
}
.block-view-toggle-v58 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  background: #f5f5f7;
}
.block-view-toggle-v58 button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--apple-muted);
  font-size: 12px;
}
.block-view-toggle-v58 button.active,
.block-view-toggle-v58 button[aria-pressed="true"] {
  background: #fff;
  color: var(--apple-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.block-list-shell-v58 {
  overflow: auto;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
}
.block-pagination-v60 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--apple-muted);
  font-size: 12px;
}
.block-pagination-v60 label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.block-pagination-v60 select {
  min-height: 30px;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  padding: 0 28px 0 10px;
  background: #fff;
}
[data-block-list-fragment].is-loading-v60 {
  opacity: .62;
  pointer-events: none;
}
.lazy-panel-v60 {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fbfbfd;
}
.lazy-panel-v60 p {
  margin: 0;
  color: var(--apple-muted);
}
.record-history-v61 {
  display: grid;
  gap: 10px;
}
.history-entry-v61 {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
}
.history-entry-v61 > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.history-entry-v61 p {
  margin: 0;
  color: var(--apple-muted);
  font-size: 13px;
}
.history-diff-v61 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.history-diff-v61 pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--apple-ink);
  font-size: 11px;
  white-space: pre-wrap;
}
.block-list-head-v58,
.block-row-v58 {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 78px minmax(260px, 1.8fr) minmax(130px, .8fr) minmax(120px, .75fr) minmax(130px, .85fr) minmax(120px, .8fr) minmax(148px, .8fr);
  gap: 10px;
  align-items: center;
}
.block-list-head-v58 {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid var(--apple-line);
  background: #f5f5f7;
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 850;
}
.block-index-v58[data-view="table"] {
  display: grid;
}
.block-index-v58[data-view="table"] .block-index-item-v58 {
  min-width: 1040px;
  border-bottom: 1px solid var(--apple-line);
  background: #fff;
}
.block-index-v58[data-view="table"] .block-index-item-v58:last-child {
  border-bottom: 0;
}
.block-index-v58[data-view="table"] .block-index-item-v58:hover {
  background: #fbfbfd;
}
.block-row-v58 {
  padding: 12px;
}
.block-row-main-v58 {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--apple-ink);
}
.block-row-main-v58 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
}
.block-row-main-v58 small,
.block-row-cell-v58 small {
  overflow: hidden;
  color: var(--apple-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-row-cell-v58 {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.block-row-cell-v58 b {
  overflow: hidden;
  color: var(--apple-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-row-cell-v58.ok b {
  color: var(--apple-green);
}
.block-row-cell-v58.warn b {
  color: var(--apple-red);
}
.block-row-actions-v58 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.block-row-actions-v58 a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  background: #fff;
  color: var(--apple-blue);
  font-size: 12px;
  font-weight: 800;
}
.block-row-actions-v58 a:hover {
  border-color: rgba(0, 113, 227, .34);
  background: var(--apple-blue-soft);
}
.block-index-v58[data-view="table"] .block-card-view-v58 {
  display: none;
}
.block-list-shell-v58[data-view="cards"] {
  overflow: visible;
  border: 0;
  background: transparent;
}
.block-list-shell-v58[data-view="cards"] .block-list-head-v58 {
  display: none;
}
.block-index-v58[data-view="cards"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.block-index-v58[data-view="cards"] .block-index-item-v58 {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.block-index-v58[data-view="cards"] .block-row-v58 {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.block-index-v58[data-view="cards"] .block-row-main-v58,
.block-index-v58[data-view="cards"] .block-row-cell-v58,
.block-index-v58[data-view="cards"] .block-row-actions-v58 {
  display: none;
}
.block-index-v58[data-view="cards"] .block-card-view-v58 {
  display: block;
}
.block-card-view-v58 .research-block-v22 {
  height: 100%;
}
.block-card-compact-v511 {
  min-height: 100%;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--apple-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8f8fb);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.block-card-compact-v511 p,
.block-card-compact-v511 h3,
.block-card-compact-v511 small {
  margin: 0;
}
.block-card-compact-v511 p {
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 800;
}
.block-card-compact-v511 h3 {
  color: var(--apple-ink);
  font-size: 17px;
  line-height: 1.25;
}
.block-card-compact-v511 small {
  color: var(--apple-muted);
  font-size: 12px;
}
.block-card-compact-meta-v511 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.block-card-compact-meta-v511 span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.block-card-compact-meta-v511 b {
  color: var(--apple-ink);
  font-size: 13px;
}
.block-card-compact-meta-v511 .ok b {
  color: var(--apple-green);
}
.block-card-compact-meta-v511 .warn b {
  color: var(--apple-red);
}
.block-card-compact-actions-v511 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.block-card-compact-actions-v511 a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 113, 227, .22);
  border-radius: 999px;
  background: var(--apple-blue-soft);
  color: var(--apple-blue);
  font-size: 12px;
  font-weight: 850;
}
@media (max-width: 1180px) {
  .block-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .block-view-toggle-v58,
  .block-toolbar .archive-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .block-toolbar {
    grid-template-columns: 1fr;
  }
  .block-list-shell-v58 {
    margin: 0 -2px;
  }
  .block-list-head-v58,
  .block-row-v58,
  .block-index-v58[data-view="table"] .block-index-item-v58 {
    min-width: 900px;
  }
}

/* v5.9.0 operational command cards */
.block-ops-summary-v59 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 12px;
}
.ops-card-v59 {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
  color: var(--apple-ink);
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
}
a.ops-card-v59 {
  color: var(--apple-ink);
}
.ops-card-v59:hover,
.ops-card-v59:focus-visible,
.ops-card-v59.active {
  border-color: rgba(0, 113, 227, .36);
  background: #fbfdff;
  box-shadow: var(--apple-shadow);
  outline: none;
}
.ops-card-v59 span {
  color: var(--apple-muted);
  font-size: 13px;
  font-weight: 850;
}
.ops-card-v59 strong {
  color: var(--apple-ink);
  font-size: 32px;
  line-height: 1;
  font-weight: 850;
}
.ops-card-v59 small {
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 750;
}
.ops-card-v59.danger strong {
  color: var(--apple-red);
}
.ops-card-v59.warn strong {
  color: #b76e00;
}
.ops-card-v59.ok strong {
  color: var(--apple-green);
}
.ops-card-v59.neutral {
  cursor: pointer;
}
@media (max-width: 1180px) {
  .block-ops-summary-v59 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .block-ops-summary-v59 {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .ops-card-v59 {
    min-width: min(156px, 44vw);
    min-height: 86px;
    flex: 0 0 min(156px, 44vw);
    padding: 12px;
    scroll-snap-align: start;
  }
  .ops-card-v59 strong {
    font-size: 26px;
  }
}

/* v5.11.0 card-first system workspace */
.workspace-command-v511 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 14px;
  margin-bottom: 18px;
}
.command-hero-v511,
.command-card-v511,
.gangue-archive-card-v511 {
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfbfd);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.command-hero-v511 {
  min-height: 248px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, .08), transparent 42%),
    linear-gradient(180deg, #fff, #f5f5f7);
}
.command-hero-v511 h2 {
  max-width: 760px;
  margin: 0;
  color: var(--apple-ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}
.command-hero-v511 p:not(.eyebrow) {
  max-width: 720px;
  color: var(--apple-muted);
  font-size: 16px;
  line-height: 1.65;
}
.command-actions-v511,
.command-card-grid-v511,
.gangue-card-metrics-v511,
.gangue-card-recent-v511 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.command-actions-v511 a,
.command-link-v511,
.gangue-card-open-v511 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 113, 227, .24);
  border-radius: 999px;
  background: #fff;
  color: var(--apple-blue);
  font-weight: 800;
}
.command-card-grid-v511 {
  display: grid;
  grid-template-columns: 1fr;
}
.command-card-v511 {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.command-card-v511 > span,
.gangue-archive-card-v511 > div:first-child span {
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.command-card-v511 strong {
  color: var(--apple-ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
}
.command-card-v511.urgent strong {
  color: var(--apple-red);
}
.command-card-v511.calm strong {
  color: var(--apple-blue);
}
.command-card-v511 p,
.gangue-archive-card-v511 p {
  color: var(--apple-muted);
  line-height: 1.55;
}
.command-list-v511 {
  display: grid;
  gap: 7px;
}
.command-list-v511 a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
  color: var(--apple-ink);
}
.command-list-v511 b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-list-v511 small {
  color: var(--apple-muted);
}
.mini-meter-v511 {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8e8ed;
}
.mini-meter-v511 i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--apple-blue);
}
.gangue-card-index-v511 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.gangue-archive-card-v511 {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.gangue-archive-card-v511.needs-action {
  border-color: rgba(180, 35, 24, .18);
  background: linear-gradient(180deg, #fff, #fff8f7);
}
.gangue-archive-card-v511 h3 {
  margin: 4px 0;
  color: var(--apple-ink);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}
.gangue-card-metrics-v511 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gangue-card-metrics-v511 span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--apple-line);
  border-radius: 8px;
  background: #fff;
}
.gangue-card-metrics-v511 b {
  color: var(--apple-ink);
  font-size: 24px;
  line-height: 1;
}
.gangue-card-metrics-v511 small {
  color: var(--apple-muted);
  font-weight: 800;
}
.gangue-card-metrics-v511 .warn b {
  color: var(--apple-red);
}
.gangue-card-metrics-v511 .ok b {
  color: var(--apple-green);
}
.gangue-card-recent-v511 a,
.gangue-card-recent-v511 small {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 800;
}
.block-view-toggle-v511 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  background: #f5f5f7;
}
.block-view-toggle-v511 .chip-button {
  min-height: 30px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
}
.block-view-toggle-v511 .chip-button.active {
  border-color: #fff;
  background: #fff;
  color: var(--apple-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.block-list-shell-v58[data-view="cards"] .block-index-v58 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.block-index-v58[data-view="cards"] .block-index-item-v58 {
  min-width: 0;
}
.block-index-v58[data-view="cards"] .block-card-view-v58 {
  display: none;
}
.block-index-v58[data-view="cards"] .block-row-v58 {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--apple-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8f8fb);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.block-index-v58[data-view="cards"] .block-row-v58 > .export-check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
.block-index-v58[data-view="cards"] .block-row-main-v58 {
  grid-column: 1 / -1;
  padding-right: 82px;
}
.block-index-v58[data-view="cards"] .block-row-main-v58,
.block-index-v58[data-view="cards"] .block-row-cell-v58 {
  display: grid;
}
.block-index-v58[data-view="cards"] .block-row-actions-v58 {
  grid-column: 1 / -1;
  display: flex;
}
.block-index-v58[data-view="cards"] .block-row-main-v58 strong {
  white-space: normal;
}
.block-index-v58[data-view="cards"] .block-row-cell-v58 {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.block-index-v58[data-view="cards"] .block-row-cell-v58:last-of-type {
  grid-column: 1 / -1;
}
.block-index-v58[data-view="cards"] .block-row-actions-v58 a {
  background: var(--apple-blue-soft);
  color: var(--apple-blue);
}
.table-wrap-v56 {
  overflow-x: auto;
  margin-top: 14px;
}
.review-package-table-v56 {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}
.review-package-table-v56 th,
.review-package-table-v56 td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.review-package-table-v56 code {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.workspace-review-gate-v57 {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}
.workspace-review-gate-v57.ok {
  border-color: rgba(47, 128, 103, .28);
  background: #eef8f3;
  color: #285947;
}
.workspace-review-gate-v57.development {
  border-color: rgba(176, 126, 24, .3);
  background: #fff8e8;
  color: #815d18;
}
.workspace-review-gate-v57.blocked {
  border-color: rgba(180, 35, 24, .24);
  background: #fff5f4;
  color: #8a231c;
}
.workspace-review-gate-v57 small {
  color: inherit;
  opacity: .8;
}
.workspace-review-cards-v57 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.workspace-review-card-v57 {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
}
.workspace-review-card-v57 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.workspace-review-card-v57 strong,
.review-file-name {
  overflow-wrap: anywhere;
}
.workspace-review-card-v57 code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-button:disabled,
.chip-button[aria-disabled="true"] {
  opacity: .5;
  filter: saturate(.45);
  cursor: not-allowed;
  box-shadow: none;
}
.chip-button.danger {
  border-color: rgba(180, 35, 24, .3);
  background: rgba(180, 35, 24, .1);
  color: #b42318;
}
@media (max-width: 1120px) {
  .workspace-command-v511 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .command-hero-v511,
  .command-card-v511,
  .gangue-archive-card-v511 {
    padding: 14px;
  }
  .gangue-card-metrics-v511 {
    grid-template-columns: 1fr;
  }
  .block-view-toggle-v511,
  .archive-actions {
    width: 100%;
  }
  .block-view-toggle-v511 .chip-button {
    flex: 1;
  }
}

/* v5.14.8 workspace cleanup */
.workspace-module-v5148 {
  display: none;
}

.workspace-module-v5148.active {
  display: block;
}

.workspace-module-v5148[hidden] {
  display: none !important;
}

.sidebar-v22 nav a,
.top-actions-v22 a,
.top-actions-v22 button,
.search-field-v22 button,
.archive-actions .chip-button,
.block-actions button,
.block-actions a,
.actions button,
.actions .btn,
.floating-quicknav-v549 a {
  min-height: 44px;
}

.sidebar-v22 nav a:focus-visible,
.top-actions-v22 a:focus-visible,
.top-actions-v22 button:focus-visible,
.search-field-v22 button:focus-visible,
.archive-actions .chip-button:focus-visible,
.block-actions button:focus-visible,
.block-actions a:focus-visible,
.actions button:focus-visible,
.actions .btn:focus-visible,
.floating-quicknav-v549 a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 125, 103, .32);
  outline-offset: 2px;
}

.sidebar-v22 nav a[aria-current="page"] {
  position: relative;
  border-color: rgba(47, 125, 103, .22);
  background: #e6f4ee;
  color: #17624e;
  box-shadow: inset 3px 0 0 #2f7d67;
}

.sidebar-v22 nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #2f7d67;
}

.search-field-v22 button[data-search-submit] {
  width: auto;
  min-width: 54px;
  padding: 0 10px;
}

.dashboard-section-v22 {
  scroll-margin-top: 110px;
}

.block-row-main-v58 strong,
.block-card-compact-v511 h3,
.bar-group-v23 > strong span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chart-values-v251 span,
.column-v23 b,
.strength-bar-v22 b,
.strength-bar-v22 em {
  font-size: max(12px, 1em);
}

.chart-toolbar-v251 button,
.chart-toolbar-v251 select,
.chart-toolbar-v251 input,
.chart-modal-panel-v251 > button,
.chart-selector-v49 summary,
.chart-selector-tools-v49 input,
.chart-selector-tools-v49 button,
.chart-current-v22 select,
.search-field-v22 input,
.search-field-v22 button {
  min-height: 44px;
}

.record-table-wrap,
.specimen-table-v22,
.review-package-table-v56,
.task-table-v22 {
  max-width: 100%;
  overflow-x: auto;
}

.floating-quicknav-v549 {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(2, minmax(46px, auto));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--apple-line, #c9ded6);
  border-radius: 8px;
  background: rgba(251, 251, 253, .88);
  box-shadow: var(--apple-shadow, 0 18px 44px rgba(20, 60, 50, .18));
  backdrop-filter: saturate(180%) blur(18px);
}

.floating-quicknav-v549 a,
.floating-quicknav-v549 a[href="#new-block"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--apple-blue, #2f8067);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

.floating-quicknav-v549 a:hover,
.floating-quicknav-v549 a:focus-visible {
  border-color: rgba(47, 125, 103, .28);
  background: rgba(47, 125, 103, .08);
}

@media (max-width: 760px) {
  .work-main-v22 {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .floating-quicknav-v549 {
    right: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(420px, calc(100vw - 20px));
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }

  body.record-drawer-open .floating-quicknav-v549 {
    display: none;
  }

  .block-filter-panel-v31,
  .lab-image-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .block-filter-panel-v31,
  .lab-image-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body:has(.workspace-preview-banner-v1) button[disabled],
body:has(.workspace-preview-banner-v1) input[disabled][aria-disabled="true"],
body:has(.workspace-preview-banner-v1) input[type="file"][disabled],
body:has(.workspace-preview-banner-v1) a[data-preview-disabled-action="1"] {
  opacity: .45;
  filter: saturate(.35);
  cursor: not-allowed;
  pointer-events: none;
}

body:has(.workspace-preview-banner-v1) button[disabled] {
  background: #eef2f0 !important;
  border-color: #cbd8d3 !important;
  color: #6e7c77 !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .workspace-review-cards-v57 {
    grid-template-columns: 1fr;
  }
  .review-package-table-v56 {
    min-width: 0;
  }
  .review-package-table-v56 thead {
    display: none;
  }
  .review-package-table-v56,
  .review-package-table-v56 tbody,
  .review-package-table-v56 tr,
  .review-package-table-v56 td {
    display: block;
    width: 100%;
  }
  .review-package-table-v56 tr {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
  }
  .review-package-table-v56 td {
    border: 0;
    padding: 4px 0;
  }
  .review-package-table-v56 td:nth-child(1)::before {
    content: "文件";
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }
  .review-package-table-v56 td:nth-child(2)::before {
    content: "类型";
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-right: 8px;
  }
  .review-package-table-v56 td:nth-child(3)::before {
    content: "大小";
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-right: 8px;
  }
  .review-package-table-v56 td:nth-child(4)::before {
    content: "生成时间";
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-right: 8px;
  }
  .review-package-table-v56 td:nth-child(5) {
    display: none;
  }
  .review-package-table-v56 td:nth-child(6) .archive-actions {
    justify-content: stretch;
  }
  .review-package-table-v56 td:nth-child(6) .chip-button {
    flex: 1 1 120px;
    justify-content: center;
  }
}

@media print {
  .floating-quicknav-v549 {
    display: none;
  }
}

/* v6.2 cohesive laboratory workspace */
:root {
  --lab-page: #edf3ef;
  --lab-page-warm: #f6f3ec;
  --lab-surface: #ffffff;
  --lab-surface-soft: #f7faf8;
  --lab-ink: #17312a;
  --lab-ink-strong: #0b211b;
  --lab-muted: #60736c;
  --lab-line: rgba(32, 77, 64, .14);
  --lab-line-strong: rgba(32, 77, 64, .24);
  --lab-green: #176b52;
  --lab-green-strong: #0f5541;
  --lab-green-soft: #e3f2eb;
  --lab-mint: #8fd2b8;
  --lab-amber: #c98327;
  --lab-amber-soft: #fff2dc;
  --lab-red: #b33b2e;
  --lab-red-soft: #fff0ed;
  --lab-blue: #356f94;
  --lab-blue-soft: #eaf3f8;
  --lab-sidebar: #102f27;
  --lab-sidebar-deep: #09231d;
  --lab-radius-sm: 10px;
  --lab-radius: 16px;
  --lab-radius-lg: 22px;
  --lab-shadow-sm: 0 1px 2px rgba(15, 58, 46, .05), 0 8px 22px rgba(15, 58, 46, .06);
  --lab-shadow: 0 20px 55px rgba(15, 58, 46, .12);
  --lab-focus: 0 0 0 4px rgba(23, 107, 82, .18);
}

html {
  scroll-padding-top: 112px;
}

body.dashboard-shell-v22 {
  min-width: 320px;
  background:
    radial-gradient(circle at 76% -10%, rgba(143, 210, 184, .28), transparent 31rem),
    radial-gradient(circle at 10% 105%, rgba(201, 131, 39, .11), transparent 34rem),
    linear-gradient(135deg, var(--lab-page), var(--lab-page-warm));
  color: var(--lab-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

body.dashboard-shell-v22::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(23, 107, 82, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 107, 82, .04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

::selection {
  background: rgba(23, 107, 82, .2);
  color: var(--lab-ink-strong);
}

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

.skip-link-v62 {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--lab-green-strong);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--lab-shadow);
  transform: translateY(-160%);
  transition: transform .18s ease;
}

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

.app-shell-v22 {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-v22 {
  min-width: 0;
}

.sidebar-v22 {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px 18px;
  border-right: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(143, 210, 184, .18), transparent 18rem),
    linear-gradient(165deg, var(--lab-sidebar), var(--lab-sidebar-deep));
  color: #f2faf6;
  box-shadow: 14px 0 40px rgba(6, 35, 28, .12);
  backdrop-filter: none;
}

.side-brand-v22 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
}

.side-brand-v22:hover {
  background: rgba(255, 255, 255, .06);
}

.side-brand-v22 .side-brand-mark-v62 {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: linear-gradient(145deg, #b4ebd4, #6bb99c);
  color: #0b3529;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(0, 0, 0, .14);
}

.side-brand-v22 .side-brand-copy-v62 {
  min-width: 0;
  display: grid;
  gap: 2px;
  background: transparent;
  color: inherit;
}

.side-brand-copy-v62 strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-brand-copy-v62 small {
  color: rgba(224, 242, 234, .62);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-v22 nav {
  display: grid;
  gap: 7px;
}

.sidebar-v22 nav a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: rgba(226, 242, 235, .72);
  font-size: 14px;
  font-weight: 780;
  box-shadow: none;
}

.side-nav-index-v62 {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: rgba(226, 242, 235, .56);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.sidebar-v22 nav a:hover,
.sidebar-v22 nav a:focus-visible {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.sidebar-v22 nav a[aria-current="page"] {
  border-color: rgba(173, 229, 207, .24);
  background: linear-gradient(135deg, rgba(153, 221, 195, .2), rgba(255, 255, 255, .08));
  color: #fff;
  box-shadow: inset 3px 0 0 #9cd9c1, 0 10px 22px rgba(0, 0, 0, .12);
}

.sidebar-v22 nav a[aria-current="page"]::before,
.sidebar-v22 nav a[aria-current="page"]::after {
  display: none;
}

.sidebar-v22 nav a[aria-current="page"] .side-nav-index-v62 {
  background: #a8e1ca;
  color: #0a3a2c;
}

.side-foot-v22 {
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.side-foot-v22 a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: rgba(226, 242, 235, .68);
}

.side-foot-v22 a:hover,
.side-foot-v22 a:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.topbar-v22 {
  position: sticky;
  top: 0;
  z-index: 32;
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(320px, 480px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--lab-line);
  background: rgba(247, 250, 248, .86);
  box-shadow: 0 10px 28px rgba(15, 58, 46, .06);
  backdrop-filter: saturate(150%) blur(20px);
}

.topbar-heading-v62 {
  min-width: 0;
}

.topbar-v22 .eyebrow {
  margin: 0 0 2px;
  color: var(--lab-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.topbar-v22 h1 {
  overflow: hidden;
  margin: 0;
  color: var(--lab-ink-strong);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 900;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-summary-v62 {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--lab-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-context-v62 {
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 8px 12px;
  border-left: 1px solid var(--lab-line);
}

.topbar-context-v62 span {
  color: var(--lab-muted);
  font-size: 10px;
  font-weight: 800;
}

.topbar-context-v62 [data-current-module-label] {
  color: var(--lab-green-strong);
  font-size: 13px;
  font-weight: 900;
}

.global-search-v22 {
  display: grid;
  gap: 4px;
}

.search-field-v22 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--lab-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 2px rgba(15, 58, 46, .04), 0 6px 16px rgba(15, 58, 46, .04);
}

.search-field-v22:focus-within {
  border-color: var(--lab-green);
  box-shadow: var(--lab-focus);
}

.search-field-v22 input,
.search-field-v22 input:focus {
  min-width: 0;
  height: 38px;
  padding: 0 6px 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-field-v22 kbd {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lab-line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--lab-surface-soft);
  color: var(--lab-muted);
  font: 800 11px/1 ui-monospace, monospace;
}

.search-field-v22 button {
  min-width: 54px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--lab-green-soft);
  color: var(--lab-green-strong);
}

.search-field-v22 button[data-search-clear][hidden] {
  display: none;
}

.search-status-v550 {
  min-height: 16px;
  padding-left: 6px;
  color: var(--lab-muted);
  font-size: 10px;
}

.top-actions-v22 {
  gap: 8px;
}

.top-actions-v22 a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
}

.top-actions-v22 .top-action-quiet-v62 {
  border-color: var(--lab-line-strong);
  background: #fff;
  color: var(--lab-green-strong);
}

.top-actions-v22 .top-action-primary-v62 {
  border-color: var(--lab-green);
  background: linear-gradient(145deg, var(--lab-green), var(--lab-green-strong));
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 107, 82, .2);
}

.work-main-v22 {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 26px clamp(18px, 2.4vw, 38px) 90px;
}

.workspace-module-v5148.active {
  animation: lab-module-enter .24s ease both;
}

@keyframes lab-module-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-section-v22 {
  scroll-margin-top: 118px;
}

.dashboard-section-v22 > * + * {
  margin-top: 16px;
}

.dashboard-card-v22,
.gangue-folder,
.block-card,
.research-block-v22,
.record-section,
.metric-result-card-v22,
.folder-section,
.calendar-collapse-v22,
.create-panel-v22,
.gangue-archive-card-v511 {
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--lab-shadow-sm);
}

.dashboard-card-v22:hover,
.gangue-folder:hover,
.block-card:hover,
.research-block-v22:hover,
.gangue-archive-card-v511:hover {
  border-color: var(--lab-line-strong);
  box-shadow: var(--lab-shadow);
}

.section-title-v22,
.section-head-v22 {
  gap: 18px;
  align-items: end;
}

.section-title-v22 h2,
.section-head-v22 h2 {
  color: var(--lab-ink-strong);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 920;
  letter-spacing: -.035em;
}

.section-title-v22 p,
.section-head-v22 p,
.hint,
.empty-v22,
.small,
.block-meta,
.drawer-title-v556 small {
  color: var(--lab-muted);
}

.metric-grid-v22 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric-card-v22 {
  position: relative;
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(255, 255, 255, .92);
  color: var(--lab-ink);
  box-shadow: var(--lab-shadow-sm);
  text-decoration: none;
}

.metric-card-v22::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--lab-green);
}

.metric-card-v22.info::before { background: var(--lab-blue); }
.metric-card-v22.warn::before,
.metric-card-v22.warning::before { background: var(--lab-amber); }
.metric-card-v22.danger::before { background: var(--lab-red); }

.metric-card-v22:hover {
  border-color: var(--lab-line-strong);
  box-shadow: var(--lab-shadow);
  transform: translateY(-2px);
}

.metric-card-v22 span {
  color: var(--lab-muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card-v22 strong {
  color: var(--lab-ink-strong);
  font-size: clamp(28px, 3vw, 42px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.metric-card-v22 small {
  color: var(--lab-muted);
  line-height: 1.45;
}

.overview-grid-v22 {
  gap: 16px;
}

.age-coverage-card-v251,
#today-tasks,
#gangue-overview,
#recent-blocks,
.calendar-collapse-v22 {
  padding: clamp(16px, 2vw, 24px);
}

.heatmap-tools-v49,
.block-toolbar,
.block-filter-panel-v31,
.lab-image-filter-panel {
  border-color: var(--lab-line);
  border-radius: 14px;
  background: rgba(247, 250, 248, .94);
  box-shadow: 0 10px 28px rgba(15, 58, 46, .07);
}

.heatmap-row-v23 {
  border-radius: 12px;
}

.heat-cell-v23 {
  border-radius: 10px;
}

.heat-cell-v23.done {
  background: var(--lab-green-soft);
  color: var(--lab-green-strong);
}

.heat-cell-v23.due {
  background: var(--lab-red-soft);
  color: var(--lab-red);
}

.heat-cell-v23.future {
  background: var(--lab-blue-soft);
  color: var(--lab-blue);
}

.task-row-v22,
.gangue-summary-v22,
.research-block-v22 {
  border-color: var(--lab-line);
  border-radius: 14px;
  background: var(--lab-surface);
}

.task-row-v22 .task-block-name-v63 {
  min-width: 0;
  display: grid;
  gap: 2px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.task-block-label-v63,
.task-block-code-v63 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-block-label-v63 {
  color: var(--lab-ink-strong);
  line-height: 1.4;
}

.task-block-code-v63 {
  color: var(--lab-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.research-block-v22 {
  padding: 18px;
}

.research-block-v22 h3,
.block-title strong,
.gangue-folder-title strong {
  color: var(--lab-ink-strong);
}

.config-chips-v22 span,
.age-progress-v22 span,
.folder-badges span,
.badge,
.block-meta span,
.export-check,
.export-count-v311 {
  border-color: var(--lab-line);
  background: var(--lab-surface-soft);
  color: var(--lab-muted);
}

.card-actions-v22 a,
.chip-button,
button,
.actions .btn,
.record-tabbar button {
  border-color: var(--lab-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--lab-green-strong);
  font-weight: 800;
}

.card-actions-v22 a:hover,
.chip-button:hover,
button:hover,
.actions .btn:hover,
.record-tabbar button:hover {
  border-color: rgba(23, 107, 82, .36);
  background: var(--lab-green-soft);
}

button[type="submit"],
.record-savebar-v543 button.primary {
  border-color: var(--lab-green);
  background: linear-gradient(145deg, var(--lab-green), var(--lab-green-strong));
  color: #fff;
}

button.danger,
.danger-soft,
.delete-block,
.delete-lab-image {
  border-color: rgba(179, 59, 46, .22);
  background: var(--lab-red-soft);
  color: var(--lab-red);
}

input,
textarea,
select {
  border-color: var(--lab-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--lab-ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--lab-green);
  box-shadow: var(--lab-focus);
}

.gangue-folder-head,
.block-head {
  border-bottom-color: var(--lab-line);
  background: linear-gradient(180deg, #fff, var(--lab-surface-soft));
}

.record-details[open]::before,
.record-details[open]:before {
  background: rgba(4, 25, 20, .48);
  backdrop-filter: blur(10px);
}

.record-details[open] .record-drawer-body {
  width: min(1040px, calc(100vw - 32px));
  border-left-color: var(--lab-line-strong);
  background: var(--lab-page);
  box-shadow: -34px 0 90px rgba(5, 34, 27, .28);
}

.drawer-top-v22,
.record-drawer-body .record-tabbar,
.record-savebar-v543 {
  border-color: var(--lab-line);
  background: rgba(247, 250, 248, .92);
}

.record-drawer-body .record-tabbar button.active {
  border-color: var(--lab-green);
  background: var(--lab-green);
  color: #fff;
}

.floating-quicknav-v549 {
  border-color: var(--lab-line-strong);
  border-radius: 16px;
  background: rgba(248, 251, 249, .94);
  box-shadow: 0 18px 48px rgba(10, 55, 43, .22);
}

.floating-quicknav-v549 a,
.floating-quicknav-v549 a[href="#new-block"] {
  gap: 4px;
  border-radius: 11px;
  color: var(--lab-muted);
}

.floating-quicknav-v549 a span {
  color: rgba(96, 115, 108, .65);
  font-size: 9px;
}

.floating-quicknav-v549 a[aria-current="page"] {
  background: var(--lab-green);
  color: #fff;
}

.floating-quicknav-v549 a[aria-current="page"] span {
  color: rgba(255, 255, 255, .7);
}

.floating-quicknav-v549 .mobile-session-v62 {
  color: var(--lab-red);
}

.block-view-toggle-v58 button.active,
.block-view-toggle-v58 button[aria-pressed="true"] {
  background: var(--lab-green-soft);
  color: var(--lab-green-strong);
  box-shadow: inset 0 0 0 1px rgba(28, 112, 86, .14);
}

.block-row-actions-v58 a {
  border-color: var(--lab-line-strong);
  background: var(--lab-surface-soft);
  color: var(--lab-green-strong);
}

.block-row-actions-v58 a:hover,
.block-row-actions-v58 a:focus-visible {
  border-color: rgba(28, 112, 86, .28);
  background: var(--lab-green-soft);
  color: var(--lab-green-strong);
}

@media (max-width: 1260px) {
  .app-shell-v22 {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .topbar-v22 {
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 460px) auto;
  }

  .topbar-context-v62 {
    display: none;
  }

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

@media (max-width: 1080px) {
  .topbar-v22 {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-search-v22 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-actions-v22 {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 154px;
  }

  .app-shell-v22 {
    display: block;
  }

  .sidebar-v22 {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 12px 32px rgba(5, 34, 27, .2);
  }

  .side-brand-v22 {
    grid-template-columns: 36px;
    padding: 2px;
  }

  .side-brand-v22 .side-brand-mark-v62 {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }

  .side-brand-copy-v62 {
    display: none !important;
  }

  .sidebar-v22 nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .sidebar-v22 nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-v22 nav a {
    min-height: 38px;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .side-nav-index-v62 {
    display: none;
  }

  .side-foot-v22 {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .side-foot-v22 a:first-child {
    display: none;
  }

  .side-foot-v22 a {
    min-height: 36px;
    padding: 0 8px;
  }

  .topbar-v22 {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
  }

  .global-search-v22 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-actions-v22 {
    grid-column: 2;
    grid-row: 1;
  }

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

  .block-toolbar,
  .block-filter-panel-v31,
  .lab-image-filter-panel {
    position: static;
  }

  .task-row-v22:not(.head) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    padding: 12px;
  }

  .task-row-v22:not(.head) .task-block-name-v63 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .task-row-v22:not(.head) .task-block-label-v63,
  .task-row-v22:not(.head) .task-block-code-v63 {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .task-row-v22:not(.head) .task-date-v63 {
    grid-column: 1;
    grid-row: 2;
  }

  .task-row-v22:not(.head) .task-project-v63 {
    grid-column: 2;
    grid-row: 2;
  }

  .task-row-v22:not(.head) .task-gangue-v63 {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .task-row-v22:not(.head) .status-pill-v22 {
    grid-column: 1;
    grid-row: 4;
    align-self: center;
  }

  .task-row-v22:not(.head) .task-action-form-v22,
  .task-row-v22:not(.head) .task-record-link-v63 {
    grid-column: 2;
    grid-row: 4;
    width: 100%;
  }

  .task-row-v22:not(.head) .task-action-form-v22 button,
  .task-row-v22:not(.head) .task-record-link-v63 {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .side-foot-v22 {
    display: none;
  }

  .floating-quicknav-v549 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.dashboard-shell-v22::before {
    display: none;
  }

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

  .side-foot-v22 {
    display: none;
  }

  .topbar-v22 {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .topbar-heading-v62,
  .global-search-v22,
  .top-actions-v22 {
    grid-column: 1;
    grid-row: auto;
  }

  .topbar-summary-v62 {
    display: none;
  }

  .top-actions-v22 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions-v22 a {
    justify-content: center;
  }

  .block-toolbar .archive-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .block-toolbar .archive-actions .chip-button,
  .block-toolbar .archive-actions .export-count-v311 {
    width: auto;
    flex: 0 0 auto;
  }

  .work-main-v22 {
    padding: 16px 12px calc(112px + env(safe-area-inset-bottom));
  }

  .metric-grid-v22 {
    gap: 9px;
  }

  .metric-card-v22 {
    min-height: 124px;
    padding: 14px;
  }

  .metric-card-v22 strong {
    font-size: 30px;
  }

  .section-title-v22,
  .section-head-v22 {
    align-items: start;
  }

  .section-title-v22 h2,
  .section-head-v22 h2 {
    font-size: 25px;
  }

  .research-block-v22,
  .age-coverage-card-v251,
  #today-tasks,
  #gangue-overview,
  #recent-blocks,
  .calendar-collapse-v22 {
    padding: 14px;
  }

  .record-details[open] .record-drawer-body {
    width: 100vw;
  }

  .floating-quicknav-v549 {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px;
  }

  .floating-quicknav-v549 a {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 5px 3px;
    line-height: 1.05;
  }
}

@media (max-width: 430px) {
  .search-field-v22 {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .search-field-v22 kbd {
    display: none;
  }

  .search-field-v22 button {
    min-width: 48px;
    padding: 0 8px;
  }

  .metric-grid-v22 {
    grid-template-columns: 1fr;
  }

  .metric-card-v22 {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .metric-card-v22 small {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .sidebar-v22,
  .topbar-v22,
  .metric-card-v22,
  .dashboard-card-v22 {
    forced-color-adjust: auto;
  }
}

@media print {
  .skip-link-v62,
  .sidebar-v22,
  .topbar-v22,
  .floating-quicknav-v549 {
    display: none !important;
  }

  .app-shell-v22 {
    display: block;
  }

  .work-main-v22 {
    width: 100%;
    padding: 0;
  }
}
