:root {
  color: #18231d;
  background: #f5f7f1;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

a,
input,
select,
button,
textarea {
  font: inherit;
}

a {
  text-decoration: none;
}

.appFrame {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr);
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #cbd7c8;
  background: #ffffff;
}

.brandBlock {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brandBlock strong,
.brandBlock span,
.userRole strong,
.userRole span,
.projectSelect span {
  display: block;
}

.brandBlock strong {
  font-size: 1.04rem;
}

.brandBlock span,
.userRole span,
.projectSelect span {
  color: #587065;
  font-size: 0.78rem;
}

.brandMark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #7da08f;
  border-radius: 8px;
  color: #254536;
  font-weight: 800;
  background: #e9f1e8;
}

.projectLocaleGroup {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.projectSelect select {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 10px;
  color: #18231d;
  background: #fbfcf8;
}

.localeToggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(54px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 8px;
  background: #f4f8f0;
}

.localeToggle button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #315244;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
}

.localeToggle button[aria-pressed="true"] {
  color: #ffffff;
  background: #315244;
}

.userRole {
  justify-self: end;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #d5dfd3;
  border-radius: 8px;
  background: #fbfcf8;
}

.textButton {
  min-height: 32px;
  border: 1px solid #7da08f;
  border-radius: 6px;
  padding: 6px 10px;
  color: #173527;
  background: #ffffff;
  cursor: pointer;
}

.actingRoleSelect {
  display: grid;
  gap: 4px;
  min-width: 180px;
  margin-top: 8px;
}

.actingRoleSelect select {
  min-height: 34px;
  border: 1px solid #cbd7c8;
  border-radius: 6px;
  background: #ffffff;
}

.reviewTaskQueue,
.controlQualityBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.reviewTaskCard {
  min-width: 190px;
  padding: 12px;
  border: 1px solid #cbd7c8;
  border-radius: 6px;
  background: #ffffff;
}

.statusBanner {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: #173527;
  background: #e7f0e5;
  border-bottom: 1px solid #c5d7c0;
}

.offlineIndicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  border: 1px solid #b98d45;
  border-radius: 999px;
  padding: 4px 10px;
  color: #5b3c0b;
  background: #fff4d8;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.offlineIndicator--online {
  border-color: #6d9c84;
  color: #173527;
  background: #edf7ed;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
}

.sideNav {
  padding: 14px;
  border-right: 1px solid #cbd7c8;
  background: #edf3eb;
}

.navItem {
  display: block;
  width: 100%;
  min-height: 70px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  color: #263a30;
  background: transparent;
}

.navItem span,
.navItem small {
  display: block;
}

.navItem span {
  font-weight: 750;
}

.navItem small {
  margin-top: 4px;
  color: #5b7065;
  line-height: 1.35;
}

.navItem:hover,
.navItem.active {
  border-color: #8caf9d;
  background: #ffffff;
}

.contentArea {
  min-width: 0;
  padding: 22px;
}

.pageHeader {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #cbd7c8;
  padding-bottom: 18px;
}

.pageHeader h1 {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.pageHeader p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #4b5f54;
  line-height: 1.5;
}

.glossaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.glossaryCard,
.termPanel,
.validationMessageCard {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.glossaryCard div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.glossaryCard strong {
  font-size: 1.22rem;
  color: #173527;
}

.glossaryCard span,
.glossaryCard small {
  color: #587065;
}

.glossaryCard p,
.termPanel dd,
.validationMessageCard p {
  line-height: 1.45;
}

.termWorkbench {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.termPanel h2,
.validationMessagePanel h2 {
  margin: 0 0 12px;
}

.termPanel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.termPanel dt {
  font-weight: 760;
  color: #173527;
}

.termPanel dd {
  margin: 3px 0 0;
  color: #4b5f54;
}

.validationMessagePanel {
  margin-top: 16px;
}

.validationMessageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.validationMessageCard h3 {
  margin: 0 0 10px;
}

.trainingModeBanner,
.realDataGatePanel,
.contextualHelpShell,
.academyGlossaryShell {
  margin-bottom: 14px;
}

.trainingModeBanner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #9b3d3d;
  border-radius: 8px;
  padding: 16px;
  color: #351b1b;
  background: #fff3ed;
}

.trainingModeBanner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.trainingModeBanner p,
.realDataGatePanel p,
.contextualHelpCard p,
.contextualHelpCard small,
.roleChecklistCard p,
.roleChecklistCard small,
.academyGlossaryShell p {
  line-height: 1.45;
}

.trainingModeFlags,
.statusRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trainingModeFlags {
  justify-content: flex-end;
  min-width: 220px;
}

.realDataGatePanel,
.roleChecklistGrid,
.contextualHelpGrid,
.practiceLinkGrid {
  display: grid;
  gap: 12px;
}

.realDataGatePanel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.realDataGatePanel article,
.roleChecklistCard,
.contextualHelpCard,
.practiceLinkCard,
.academyGlossaryShell {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  background: #ffffff;
}

.realDataGatePanel article,
.roleChecklistCard,
.contextualHelpCard,
.academyGlossaryShell {
  padding: 14px;
}

.practiceLinkGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.practiceLinkCard {
  min-height: 106px;
  padding: 12px;
  color: #263a30;
}

.practiceLinkCard span,
.practiceLinkCard small {
  display: block;
  color: #587065;
  font-size: 0.8rem;
}

.practiceLinkCard strong {
  display: block;
  margin: 6px 0;
}

.roleChecklistGrid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 14px;
}

.roleChecklistHeader,
.sectionHeading,
.contextualHelpCard > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.roleChecklistCard h2,
.contextualHelpCard h3,
.sectionHeading h2,
.realDataGatePanel h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

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

.roleChecklistCard li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.roleChecklistCard li > span {
  display: inline-flex;
  justify-content: center;
  border: 1px solid #cbd7c8;
  border-radius: 6px;
  padding: 2px 4px;
  color: #263a30;
  background: #f6f9f4;
  font-size: 0.72rem;
  font-weight: 760;
}

.contextualHelpGrid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contextualHelpCard {
  display: grid;
  gap: 8px;
}

.inlineAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 8px;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.offlineStatusGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.offlineStatusGrid .metricCard {
  min-height: 124px;
}

.offlineStatusGrid p,
.dataTable small {
  overflow-wrap: anywhere;
}

.metric-strip,
.guardrailGrid,
.aiAssistBoundaryStrip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-strip article,
.guardrailGrid span {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.metric-strip span,
.guardrailGrid span {
  color: #52685d;
  font-size: 0.8rem;
  font-weight: 700;
}

.metric-strip strong {
  display: block;
  margin-top: 4px;
}

.metricCard,
.noticePanel,
.ledgerPanel,
.adminGrid article,
.fastEntryPanel,
.exceptionPanel,
.receiptDetail,
.tableShell {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  background: #ffffff;
}

.metricCard {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  padding: 18px;
}

.metricCard h2,
.noticePanel h2,
.ledgerPanel h2,
.adminGrid h2,
.fastEntryPanel h2,
.exceptionPanel h2,
.receiptDetail h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.metricCard p,
.noticePanel p,
.ledgerPanel p,
.adminGrid p,
.exceptionList p,
.receiptDetail p {
  margin: 0;
  color: #4b5f54;
  line-height: 1.5;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.statusPill--ok {
  color: #17432c;
  background: #d8ead9;
}

.statusPill--warn {
  color: #594600;
  background: #fff1b8;
}

.statusPill--hold {
  color: #5b2530;
  background: #f4d0d6;
}

.statusPill--info {
  color: #214160;
  background: #dbeaf7;
}

.noticePanel,
.ledgerPanel {
  margin-top: 14px;
  padding: 18px;
}

.panel,
.builderPanel,
.workflowPanel,
.permissionMatrix article {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  background: #ffffff;
}

.panel,
.builderPanel,
.workflowPanel {
  margin-bottom: 14px;
  padding: 16px;
}

.toolbar.dense {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar.dense div,
.toolbar.dense strong,
.toolbar.dense span {
  display: block;
}

.toolbar.dense div {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.toolbar.dense strong {
  margin-bottom: 4px;
  color: #263a30;
}

.toolbar.dense span {
  color: #52685d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.section-heading h2,
.builderPanel h2,
.workflowPanel h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.section-heading p,
.builderPanel p,
.workflowPanel p {
  margin: 0;
  color: #4b5f54;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
}

.tableShell {
  margin-top: 14px;
  overflow-x: auto;
}

.drillholeToolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px)) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.drillholeToolbar label span,
.drillholeDetail dt {
  display: block;
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.drillholeToolbar select {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 10px;
  color: #18231d;
  background: #fbfcf8;
}

.drillholeToolbar strong {
  align-self: center;
  color: #4b5f54;
  font-size: 0.9rem;
}

.receiptGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.surveySummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.surveyGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.loggingGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
}

.loggingCommandBar,
.quickAddGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 180px)) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.loggingCommandBar label span,
.quickAddGrid label span,
.attachmentTray label span {
  display: block;
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.loggingCommandBar input,
.loggingCommandBar select,
.quickAddGrid input,
.quickAddGrid select,
.attachmentTray input {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 10px;
  color: #18231d;
  background: #fbfcf8;
}

.commandButtons,
.shortcutStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.commandButtons button,
.quickAddGrid button {
  min-height: 38px;
  border: 1px solid #7da08f;
  border-radius: 6px;
  padding: 0 12px;
  color: #173527;
  background: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.shortcutStrip {
  margin-bottom: 12px;
}

.shortcutStrip span {
  border: 1px solid #cbd7c8;
  border-radius: 999px;
  padding: 5px 8px;
  color: #263a30;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
}

.shortcutStrip strong {
  color: #4b5f54;
  font-size: 0.9rem;
}

.tableLaneTabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tableLaneTabs button {
  min-height: 54px;
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 8px 10px;
  color: #263a30;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.tableLaneTabs button[aria-pressed="true"] {
  border-color: #7da08f;
  background: #e7f0e5;
}

.tableLaneTabs span,
.tableLaneTabs small {
  display: block;
}

.tableLaneTabs span {
  font-weight: 800;
}

.tableLaneTabs small {
  margin-top: 2px;
  color: #52685d;
}

.loggingWorkbenchGrid {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(300px, 370px);
  gap: 14px;
  align-items: start;
}

.depthRulerPanel,
.validationSidePanel {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.depthRuler {
  position: relative;
  min-height: 284px;
  margin-top: 14px;
  border-left: 2px solid #52685d;
  padding-left: 74px;
}

.depthTick {
  position: absolute;
  left: 0;
  width: 62px;
  border-top: 1px solid #b9c9bd;
  padding-top: 2px;
  color: #52685d;
  font-size: 0.72rem;
  font-weight: 750;
}

.depthBand {
  position: absolute;
  left: 76px;
  right: 0;
  min-height: 30px;
  border: 1px solid #cbd7c8;
  border-radius: 6px;
  padding: 5px 8px;
  overflow: hidden;
  color: #173527;
  background: #eef4ec;
  cursor: pointer;
  text-align: left;
}

.depthBand--ok {
  border-color: #78a878;
  background: #d8ead9;
}

.depthBand--warn {
  border-color: #d3a72d;
  background: #fff1b8;
}

.depthBand--hold {
  border-color: #bf5b6a;
  background: #f4d0d6;
}

.depthBand span,
.depthBand small {
  display: block;
}

.depthBand span {
  font-size: 0.82rem;
  font-weight: 800;
}

.depthBand small {
  color: #4b5f54;
  font-size: 0.72rem;
}

.intervalWorkspaceGrid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.quickAddGrid {
  grid-template-columns: repeat(3, minmax(100px, 1fr)) minmax(150px, 180px);
  margin-bottom: 0;
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.editableIntervalTable table {
  min-width: 1280px;
}

.editableIntervalTable input,
.editableIntervalTable select,
.editableIntervalTable textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 8px;
  color: #18231d;
  background: #fbfcf8;
}

.editableIntervalTable textarea {
  min-height: 68px;
  padding: 8px;
  resize: vertical;
}

.editableIntervalTable select + select,
.editableIntervalTable select + input,
.editableIntervalTable select + textarea {
  margin-top: 6px;
}

.depthPairInputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 6px;
}

.validationSidePanel h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.loggingDictionaryList {
  margin-top: 14px;
}

.attachmentTray {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid #e3e9e1;
  padding-top: 14px;
}

.attachmentTray p {
  margin: 0;
  color: #4b5f54;
  line-height: 1.45;
}

.physicalGrid,
.evidenceGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
}

.samplingDispatchWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.labImportWizard,
.assayReviewWorkbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.complianceWorkbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.workbenchPanel,
.workbenchCard {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  background: #ffffff;
}

.workbenchPanel {
  padding: 16px;
}

.reviewCardGrid,
.ledgerTraceGrid,
.permissionRail {
  display: grid;
  gap: 10px;
}

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

.workbenchCard {
  padding: 12px;
}

.workbenchCard span,
.workbenchCard small,
.ledgerTraceGrid span,
.ledgerTraceGrid strong,
.permissionRail strong,
.permissionRail span {
  display: block;
}

.workbenchCard span,
.ledgerTraceGrid span,
.permissionRail span {
  color: #52685d;
  font-size: 0.78rem;
}

.workbenchCard strong {
  display: block;
  margin: 6px 0;
  font-size: 1.18rem;
}

.ledgerTraceGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.ledgerTraceGrid article,
.permissionRail article {
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.spatialToolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.spatialToolbar label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

.spatialToolbar span {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.spatialToolbar strong {
  color: #52685d;
}

.spatialWorkbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.mapPanel,
.mapSidePanel {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  background: #ffffff;
}

.mapPanel {
  padding: 14px;
}

.mapPanelHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mapPanelHeader h2,
.mapSidePanel h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mapPanelHeader p,
.mapSidePanel p,
.mapSidePanel li,
.mapSidePanel dd {
  color: #4b5f54;
  line-height: 1.45;
}

.utmMap {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
}

.mapBackground {
  fill: #f6f8f2;
}

.mapGridLine {
  stroke: #d5dfd1;
  stroke-width: 1;
}

.mapBoundary {
  fill: rgba(84, 125, 104, 0.12);
  stroke-width: 3;
}

.mapBoundary--anm {
  stroke: #637d95;
}

.mapBoundary--project {
  stroke: #7da08f;
}

.mapHole circle {
  stroke: #ffffff;
  stroke-width: 2;
}

.mapHole text {
  fill: #18231d;
  font-size: 18px;
  font-weight: 800;
}

.mapHole--ok circle {
  fill: #567d55;
}

.mapHole--warn circle {
  fill: #a06b35;
}

.mapHole--hold circle {
  fill: #a4495b;
}

.mapHole--info circle {
  fill: #587b91;
}

.mapCoordinateStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: #52685d;
  font-size: 0.82rem;
  font-weight: 750;
}

.mapSidePanel {
  padding: 14px;
}

.mapSidePanel dl {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.mapSidePanel dt {
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mapSidePanel dd {
  margin: 3px 0 0;
}

.wizardSteps,
.reviewLensBar,
.basketGrid {
  display: grid;
  gap: 8px;
}

.wizardSteps button,
.reviewLensBar button,
.basketGrid button {
  min-height: 46px;
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 8px 10px;
  color: #263a30;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.wizardSteps button[disabled] {
  color: #64746b;
  background: #f4f6f2;
  cursor: not-allowed;
}

.wizardSteps span:not(.statusPill),
.wizardSteps small,
.reviewLensBar button,
.basketGrid button span,
.basketGrid button strong {
  display: block;
}

.wizardSteps span:not(.statusPill),
.wizardSteps small {
  margin-top: 4px;
  color: #52685d;
  font-size: 0.76rem;
  line-height: 1.3;
}

.columnMappingGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.columnMappingGrid label span {
  display: block;
  color: #52685d;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.columnMappingGrid select {
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 8px;
  color: #18231d;
  background: #fbfcf8;
}

.reviewLensBar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.reviewLensBar button[aria-pressed="true"],
.basketGrid button[aria-pressed="true"] {
  border-color: #7da08f;
  background: #e7f0e5;
}

.familySplit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.familySplit article {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.familySplit h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.familySplit p {
  margin: 0;
  color: #4b5f54;
  line-height: 1.45;
}

.reeBasketCalculationView {
  margin-bottom: 14px;
}

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

.basketGrid button span {
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.basketGrid button strong {
  margin-top: 4px;
  font-size: 1rem;
}

.sourceTraceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sourceTraceGrid article {
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.sourceTraceGrid strong,
.sourceTraceGrid span {
  display: block;
}

.sourceTraceGrid span {
  margin-top: 4px;
  color: #4b5f54;
  font-size: 0.82rem;
  line-height: 1.35;
}

.sampleBuilderGrid,
.dispatchBuilderGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr)) repeat(2, minmax(130px, auto));
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.sampleBuilderGrid--void {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 2fr) minmax(150px, auto);
}

.sampleBuilderGrid label span,
.dispatchBuilderGrid label span,
.selectionList small {
  display: block;
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sampleBuilderGrid input,
.sampleBuilderGrid select,
.dispatchBuilderGrid input,
.dispatchBuilderGrid select {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 10px;
  color: #18231d;
  background: #fbfcf8;
}

.builderActions,
.exportButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.builderActions button,
.sampleBuilderGrid button,
.exportButtons button {
  min-height: 38px;
  border: 1px solid #7da08f;
  border-radius: 6px;
  padding: 0 12px;
  color: #173527;
  background: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.builderActions button:disabled,
.sampleBuilderGrid button:disabled,
.exportButtons button:disabled,
.selectionList input:disabled {
  border-color: #d6ddd4;
  color: #64746b;
  background: #f4f6f2;
  cursor: not-allowed;
}

.qaqcWarningList,
.selectionList {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.qaqcWarningList li,
.selectionList label,
.dispatchComposition,
.reservedBlockPreview {
  display: grid;
  gap: 4px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.selectionList label {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.selectionList small {
  text-transform: none;
}

.dispatchComposition strong,
.reservedBlockPreview strong,
.dispatchComposition span,
.reservedBlockPreview span {
  display: block;
}

.dispatchComposition span,
.reservedBlockPreview span {
  color: #4b5f54;
  line-height: 1.4;
}

.statusTimeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(82px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.statusTimeline span {
  border: 1px solid #cbd7c8;
  border-radius: 999px;
  padding: 6px 8px;
  color: #263a30;
  background: #f5f7f1;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}

.permissionMatrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.permissionMatrix article {
  padding: 14px;
}

.permissionMatrix strong,
.permissionMatrix span,
.intervalSelectionTable td span {
  display: block;
}

.permissionMatrix span {
  margin-top: 4px;
  color: #4b5f54;
  line-height: 1.45;
}

.compactTable table {
  min-width: 520px;
}

.physicalGrid td span,
.evidenceGrid td span {
  display: block;
  margin-top: 2px;
  color: #52685d;
  font-size: 0.82rem;
}

.physicalPanel,
.evidencePanel {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.physicalPanel h2,
.evidencePanel h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.physicalPanel dl,
.evidencePanel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.physicalPanel dd,
.evidencePanel dd {
  margin: 4px 0 0;
  color: #4b5f54;
  line-height: 1.45;
}

.surveyTable {
  margin-top: 14px;
}

.coordinatePair {
  display: block;
  margin-top: 2px;
  color: #4b5f54;
  font-size: 0.88rem;
}

.surveyQueue .statusPill {
  justify-self: start;
}

.dictionaryList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.dictionaryList span {
  border: 1px solid #cbd7c8;
  border-radius: 999px;
  padding: 5px 8px;
  color: #263a30;
  background: #f5f7f1;
  font-size: 0.78rem;
  font-weight: 700;
}

.loggingDictionary p {
  margin: 0;
  color: #4b5f54;
  line-height: 1.5;
}

.fastEntryPanel,
.exceptionPanel,
.receiptDetail {
  padding: 16px;
}

.fastEntryFields {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.fastEntryFields span,
.receiptDetail dt {
  display: block;
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fastEntryFields input,
.fastEntryFields select {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 6px;
  padding: 0 10px;
  color: #18231d;
  background: #fbfcf8;
}

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

.exceptionList li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #e3e9e1;
  padding-bottom: 10px;
}

.exceptionList li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.exceptionList span:not(.statusPill) {
  color: #52685d;
  font-size: 0.82rem;
}

.receiptTable {
  margin-bottom: 14px;
}

.drillholeGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}

.rowButton {
  color: #173527;
  font-weight: 750;
  text-decoration: underline;
}

.drillholeDetail {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.drillholeDetail h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.drillholeDetail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.drillholeDetail dd {
  margin: 4px 0 0;
}

.drillholeDetail p {
  margin: 0 0 14px;
  color: #4b5f54;
  line-height: 1.5;
}

.workflowTimeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.workflowTimeline li span {
  display: block;
  margin-top: 2px;
  color: #4b5f54;
  line-height: 1.4;
}

.drillholeDetailGrid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
}

.drillholeGrid td small {
  display: block;
  margin-top: 2px;
  color: #52685d;
  font-size: 0.82rem;
}

.drillholeDetailPanel {
  display: grid;
  gap: 12px;
}

.detailHeader,
.sectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.detailHeader h2,
.sectionHeader h2 {
  margin: 0;
  font-size: 1.08rem;
}

.detailHeader p,
.sectionHeader p {
  margin: 4px 0 0;
  color: #52685d;
  line-height: 1.45;
}

.detailSnapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detailSnapshot div {
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.warningBadgeRow,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.warningBadgeRow span {
  border: 1px solid #d5b55b;
  border-radius: 999px;
  padding: 4px 8px;
  color: #5a4600;
  background: #fff6cf;
  font-size: 0.76rem;
  font-weight: 750;
}

.actionGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.actionGrid button {
  min-height: 48px;
  border: 1px solid #8caf9d;
  border-radius: 8px;
  padding: 8px 10px;
  color: #173527;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.actionGrid button:disabled {
  border-color: #d6ddd4;
  color: #64746b;
  background: #f4f6f2;
  cursor: not-allowed;
}

.actionGrid span,
.actionGrid small,
.detailTabs span,
.detailTabs small {
  display: block;
}

.actionGrid span,
.detailTabs span {
  font-weight: 800;
}

.actionGrid small,
.detailTabs small {
  margin-top: 3px;
  color: #52685d;
  line-height: 1.3;
}

.responsibilityNote {
  margin: 0;
  color: #52685d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.detailWorkbench {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.workflowPanel,
.sectionDetailPanel {
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.workflowPanel .workflowTimeline {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}

.workflowEvent {
  border-left: 3px solid #9cb6a8;
  padding: 0 0 12px 12px;
}

.workflowEvent--blocker {
  border-left-color: #bf5b6a;
}

.detailTabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.detailTabs button {
  min-height: 52px;
  border: 1px solid #cbd7c8;
  border-radius: 8px;
  padding: 8px 10px;
  color: #263a30;
  background: #fbfcf8;
  cursor: pointer;
  text-align: left;
}

.detailMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.detailMetricGrid article {
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.detailMetricGrid span {
  display: block;
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 750;
}

.detailMetricGrid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.detailRows {
  margin-top: 10px;
}

.detailRows table {
  min-width: 620px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e3e9e1;
  text-align: left;
  vertical-align: top;
}

th {
  color: #52685d;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ledgerPanel dl,
.adminGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ledgerPanel dl {
  margin: 0 0 16px;
}

.ledgerPanel dt {
  color: #52685d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ledgerPanel dd {
  margin: 6px 0 0;
}

.adminGrid {
  margin-top: 14px;
}

.adminGrid article {
  padding: 16px;
}

.footer {
  padding: 12px 20px;
  border-top: 1px solid #cbd7c8;
  color: #587065;
  background: #ffffff;
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .userRole {
    justify-self: stretch;
    min-width: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sideNav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #cbd7c8;
  }

  .navItem {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .statusBanner,
  .pageHeader,
  .metricCard {
    flex-direction: column;
    align-items: stretch;
  }

  .sideNav,
  .projectLocaleGroup,
  .metricGrid,
  .offlineStatusGrid,
  .realDataGatePanel,
  .practiceLinkGrid,
  .roleChecklistGrid,
  .contextualHelpGrid,
  .metric-strip,
  .guardrailGrid,
  .aiAssistBoundaryStrip,
  .glossaryGrid,
  .termWorkbench,
  .validationMessageGrid,
  .surveySummary,
  .toolbar.dense,
  .samplingDispatchWorkspace,
  .spatialToolbar,
  .spatialWorkbench,
  .mapCoordinateStrip,
  .labImportWizard,
  .assayReviewWorkbench,
  .columnMappingGrid,
  .reviewLensBar,
  .familySplit,
  .basketGrid,
  .sourceTraceGrid,
  .complianceWorkbench,
  .reviewCardGrid,
  .ledgerTraceGrid,
  .sampleBuilderGrid,
  .sampleBuilderGrid--void,
  .dispatchBuilderGrid,
  .statusTimeline,
  .permissionMatrix,
  .drillholeToolbar,
  .loggingCommandBar,
  .quickAddGrid,
  .tableLaneTabs,
  .loggingWorkbenchGrid,
  .drillholeGrid,
  .detailWorkbench,
  .detailTabs,
  .detailSnapshot,
  .actionGrid,
  .detailMetricGrid,
  .surveyGrid,
  .loggingGrid,
  .physicalGrid,
  .evidenceGrid,
  .receiptGrid,
  .fastEntryFields,
  .drillholeDetail dl,
  .ledgerPanel dl,
  .adminGrid {
    grid-template-columns: 1fr;
  }

  .contentArea {
    padding: 16px;
  }
}
