:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #111c19;
  --muted: #62706b;
  --paper: #e9e9e1;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --line: #d5d7cf;
  --accent: #f0a63a;
  --accent-dark: #8e5311;
  --green: #217654;
  --green-dark: #13523a;
  --danger: #a33d35;
  --shadow: 0 24px 64px rgba(17, 28, 25, 0.11);
  --number-font: "DIN Alternate", "Avenir Next Condensed", "SF Pro Display", "PingFang SC", sans-serif;
}

/* Global materials workspace + target-review safety state */
.recipe-materials-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(20, 76, 59, 0.24);
  border-radius: 999px;
  color: var(--green-800, #154c3b);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.materials-main {
  display: grid;
  gap: 22px;
}

.materials-page-intro {
  align-items: center;
}

.material-structure-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(24, 91, 69, 0.18);
  border-radius: 22px;
  background: rgba(229, 240, 234, 0.86);
  color: #173c31;
}

.material-structure-notice strong,
.material-structure-notice p {
  display: block;
  margin: 0;
}

.material-structure-notice p {
  margin-top: 4px;
  color: #5d706a;
  font-weight: 650;
}

.material-structure-notice > span {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: #1d6d53;
  color: #fff;
  font-weight: 850;
}

.material-structure-notice.is-locked {
  border-color: rgba(166, 103, 23, 0.25);
  background: rgba(247, 235, 213, 0.9);
}

.material-structure-notice.is-locked > span {
  background: #8a5d1c;
}

.material-page-panel {
  border-radius: 30px;
}

.target-review-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border: 1px solid rgba(173, 101, 20, 0.34);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8e9, #f5e8ca);
  color: #5d3b0b;
  box-shadow: 0 12px 30px rgba(91, 61, 17, 0.09);
}

.target-review-notice[hidden] {
  display: none;
}

.target-review-notice strong,
.target-review-notice span {
  display: block;
}

.target-review-notice strong {
  font-size: 1.05rem;
}

.target-review-notice span {
  margin-top: 3px;
  color: #7a6543;
  font-weight: 650;
}

.target-review-notice a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: #173f32;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.recipe-row-status-pill.is-review {
  border-color: rgba(166, 103, 23, 0.28);
  background: #f7ead2;
  color: #75501a;
}

@media (max-width: 720px) {
  .recipe-page-intro,
  .materials-page-intro {
    align-items: stretch;
  }

  .recipe-materials-link {
    width: 100%;
    min-height: 44px;
  }

  .material-structure-notice,
  .target-review-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .material-structure-notice > span,
  .target-review-notice a {
    align-self: flex-start;
  }

  .target-review-notice a {
    width: 100%;
    text-align: center;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(233, 155, 45, 0.52);
  outline-offset: 3px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.26);
  color: #f5ac44;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connection-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.connection-status.is-online .status-dot {
  border-color: #70d6a8;
  background: #70d6a8;
  box-shadow: 0 0 0 4px rgba(112, 214, 168, 0.13);
}

.connection-status.is-offline .status-dot {
  border-color: #ff9c91;
  background: #ff9c91;
}

.outline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.outline-link::after {
  content: "↗";
  margin-left: 8px;
  font-size: 13px;
}

.outline-link:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
}

.toast {
  position: fixed;
  z-index: 50;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 18px;
  transform: translateY(16px);
  border-left: 4px solid var(--green);
  background: #17211e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  border-left-color: #e66d62;
}

/* Operator */

.operator-body {
  min-height: 100dvh;
  overflow: hidden;
  background: #dcdcd6;
}

.operator-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
}

.operator-header {
  position: relative;
  display: grid;
  min-height: 82px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding: calc(14px + env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) 14px max(26px, env(safe-area-inset-left));
  background: #16201d;
  color: #fff;
}

.operator-header .brand-lockup {
  grid-column: 2;
}

.operator-header .brand-lockup > div,
.admin-topbar .brand-lockup > div {
  text-align: center;
}

.operator-header .header-actions {
  position: absolute;
  right: max(26px, env(safe-area-inset-right));
}

.operator-header h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.025em;
}

.operator-header .eyebrow {
  color: rgba(255, 255, 255, 0.49);
}

.operator-main {
  display: grid;
  min-height: 0;
  gap: clamp(14px, 2vh, 22px);
  grid-template-rows: auto 1fr;
  padding: clamp(16px, 2.2vh, 24px) max(24px, env(safe-area-inset-right)) clamp(16px, 2.2vh, 24px) max(24px, env(safe-area-inset-left));
  background-color: #e8e7e1;
  background-image: linear-gradient(rgba(30, 43, 39, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 43, 39, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.batch-banner {
  display: grid;
  min-height: 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border: 1px solid rgba(23, 33, 30, 0.12);
  background: rgba(249, 248, 243, 0.88);
  text-align: center;
}

.batch-banner > div {
  display: grid;
  place-content: center;
  padding: 12px 20px;
}

.batch-banner > div + div {
  border-left: 1px solid rgba(23, 33, 30, 0.12);
}

.batch-banner h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.batch-total {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: center;
  gap: 0 8px;
  color: var(--muted);
}

.batch-total span {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.batch-total strong {
  color: var(--ink);
  font-size: clamp(62px, 7.6vw, 88px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.batch-total strong.number-long {
  font-size: clamp(48px, 5.8vw, 66px);
}

.batch-total strong.number-very-long {
  font-size: clamp(38px, 4.7vw, 52px);
}

.batch-total small {
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 850;
}

.material-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.7vw, 22px);
}

.material-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 16px;
  border: 1px solid rgba(19, 28, 25, 0.18);
  border-top: 8px solid rgba(19, 28, 25, 0.28);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(23, 33, 30, 0.11), inset 0 -5px 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.material-button:not(:disabled):active,
.material-button.is-pressed {
  transform: translateY(4px) scale(0.995);
  box-shadow: 0 5px 13px rgba(23, 33, 30, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.material-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.28) opacity(0.62);
}

.material-count {
  position: static;
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.material-count strong {
  font-size: clamp(92px, 10.5vw, 128px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.material-count strong.number-long {
  font-size: clamp(66px, 8.2vw, 94px);
}

.material-count strong.number-very-long {
  font-size: clamp(48px, 6vw, 70px);
}

.material-count small {
  font-size: 15px;
  font-weight: 900;
}

.material-name {
  margin-top: 18px;
  font-size: clamp(40px, 4.2vw, 50px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1;
}

.tap-hint {
  margin-top: 13px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.material-ash {
  border-top-color: #8a8e89;
  background: #d9dad6;
  color: #202825;
}

.material-slag {
  border-top-color: #8c5c35;
  background: #c69b73;
  color: #2b2018;
}

.material-coal {
  border-color: #171b19;
  border-top-color: #e99b2d;
  background: #323936;
  color: #fff;
}

.material-coal .tap-hint {
  color: rgba(255, 255, 255, 0.88);
}

.material-shale {
  border-top-color: #596f63;
  background: #9aab9f;
  color: #17211e;
}

.operator-footer {
  display: flex;
  min-height: 116px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px max(24px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #16201d;
}

.operator-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.complete-button {
  display: flex;
  width: min(640px, 100%);
  min-height: 70px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 23px 12px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
  color: #fff;
  cursor: pointer;
}

.complete-button:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.complete-button:disabled {
  background: #3a4541;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.39);
  cursor: not-allowed;
}

.complete-label {
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 950;
  letter-spacing: -0.025em;
}

.complete-meta {
  font-size: 13px;
  font-weight: 850;
}

/* Admin */

.admin-body {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(30, 43, 39, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 43, 39, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.admin-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  padding-top: env(safe-area-inset-top);
  background: rgba(22, 32, 29, 0.97);
  color: #fff;
  backdrop-filter: blur(14px);
}

.admin-topbar-inner {
  position: relative;
  display: grid;
  width: min(1380px, 100%);
  min-height: 78px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  padding: 14px max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left));
}

.admin-topbar-inner .brand-lockup {
  grid-column: 2;
}

.admin-topbar-inner .header-actions {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
}

.admin-topbar .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.admin-brand-title {
  margin: 0;
  font-size: 21px;
  font-weight: 850;
}

.admin-mobile-title {
  display: none;
}

.admin-main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 38px max(24px, env(safe-area-inset-right)) max(60px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.admin-intro {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 30px;
  text-align: center;
}

.admin-intro h1 {
  margin: 3px 0 8px;
  font-size: clamp(46px, 5.6vw, 68px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.admin-intro > div > p:last-child {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.sync-meta {
  min-width: 190px;
  padding: 13px 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.sync-meta span,
.sync-meta strong {
  display: block;
}

.sync-meta strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-metric {
  min-width: 0;
  padding: 30px 20px 34px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.hero-metric:first-child {
  border-left: 0;
}

.hero-metric > span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.hero-metric div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
}

.hero-metric strong {
  font-size: clamp(68px, 7vw, 92px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.hero-metric strong.number-long {
  font-size: clamp(52px, 5.6vw, 70px);
}

.hero-metric strong.number-very-long {
  font-size: clamp(40px, 4.4vw, 56px);
}

.hero-metric small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.hero-metric-primary {
  background: #17211e;
  color: #fff;
}

.hero-metric-primary > span,
.hero-metric-primary small {
  color: rgba(255, 255, 255, 0.56);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}

.dashboard-panel,
.history-section {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(23, 33, 30, 0.055);
}

.dashboard-panel {
  padding: 23px;
}

.panel-heading,
.history-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.panel-heading h2,
.history-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.panel-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--line);
}

.material-total-item {
  position: relative;
  min-width: 0;
  padding: 24px 15px 22px;
  border-left: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.material-total-item:first-child {
  border-left: 0;
}

.material-total-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #8a8e89;
  content: "";
}

.material-total-item.total-slag::before {
  background: #9d6b42;
}

.material-total-item.total-coal::before {
  background: #303936;
}

.material-total-item.total-shale::before {
  background: #71887b;
}

.material-total-item span,
.material-total-item strong,
.material-total-item small {
  display: block;
}

.material-total-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.material-total-item strong {
  margin-top: 20px;
  font-size: clamp(58px, 6vw, 80px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  line-height: 0.9;
  white-space: nowrap;
}

.material-total-item strong.number-long {
  font-size: clamp(44px, 4.8vw, 60px);
}

.material-total-item strong.number-very-long {
  font-size: clamp(34px, 3.7vw, 46px);
}

.material-total-item small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47a67d;
  box-shadow: 0 0 0 5px rgba(71, 166, 125, 0.12);
}

.current-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.current-breakdown > div {
  display: flex;
  min-height: 102px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.current-breakdown span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.current-breakdown strong {
  font-size: clamp(56px, 5.6vw, 68px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.current-breakdown strong.number-long {
  font-size: clamp(42px, 4.5vw, 52px);
}

.current-breakdown strong.number-very-long {
  font-size: clamp(34px, 3.6vw, 42px);
}

.current-panel .panel-heading h2 span {
  color: var(--green-dark);
  font-size: 1.2em;
  font-variant-numeric: tabular-nums;
}

.history-section {
  margin-top: 20px;
  overflow: hidden;
}

.history-heading {
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--line);
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.danger-link {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(163, 61, 53, 0.24);
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.danger-link:hover {
  background: rgba(163, 61, 53, 0.06);
}

.history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.history-table th,
.history-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e3e2dc;
  text-align: center;
  white-space: nowrap;
}

.history-table th:first-child,
.history-table td:first-child,
.history-table th:last-child,
.history-table td:last-child {
  text-align: center;
}

.history-table th {
  background: #eeede7;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.history-table td {
  background: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 800;
}

.batch-material-cell {
  font-size: clamp(26px, 2.7vw, 32px) !important;
  font-weight: 950 !important;
  letter-spacing: -0.045em;
}

.batch-material-cell.number-long {
  font-size: clamp(22px, 2.3vw, 27px) !important;
}

.batch-material-cell.number-very-long {
  font-size: clamp(18px, 1.9vw, 23px) !important;
}

.history-table tbody tr:hover td {
  background: #fff;
}

.history-table tbody tr:last-child td {
  border-bottom: 0;
}

.batch-number {
  font-size: clamp(24px, 2.5vw, 30px) !important;
  font-weight: 950;
}

.batch-total-cell {
  color: var(--green-dark);
  font-size: clamp(30px, 3vw, 36px) !important;
  font-weight: 950;
}

.batch-total-cell.number-long {
  font-size: clamp(25px, 2.6vw, 31px) !important;
}

.batch-total-cell.number-very-long {
  font-size: clamp(21px, 2.2vw, 26px) !important;
}

.batch-time {
  color: var(--muted);
  font-size: 16px !important;
  font-weight: 750 !important;
}

.batch-detail-cell {
  min-width: 138px;
}

.batch-detail-toggle {
  min-width: 104px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(19, 82, 58, 0.22);
  border-radius: 11px;
  background: rgba(33, 118, 84, 0.07);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.batch-detail-toggle:hover,
.batch-detail-toggle[aria-expanded="true"] {
  border-color: rgba(19, 82, 58, 0.42);
  background: rgba(33, 118, 84, 0.13);
}

.history-table .batch-detail-row > td,
.history-table .batch-detail-row:hover > td {
  padding: 0;
  border-bottom: 1px solid #d9dcd4;
  background: #f4f4ee;
  text-align: left;
  white-space: normal;
}

.batch-click-panel {
  padding: 22px 24px 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.batch-click-panel[aria-busy="true"] {
  color: var(--muted);
}

.batch-click-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.batch-click-summary strong {
  font-size: 19px;
  font-weight: 950;
}

.batch-click-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.batch-click-notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(240, 166, 58, 0.1);
  color: #73511d;
  font-size: 13px;
  line-height: 1.55;
}

.batch-click-columns,
.batch-click-item {
  display: grid;
  grid-template-columns: 72px 128px minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
}

.batch-click-columns {
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.batch-click-list {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #d9dcd4;
  border-radius: 13px;
  background: #fff;
  list-style: none;
  overscroll-behavior: contain;
}

.batch-click-item {
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid #e8e9e3;
}

.batch-click-item:last-child {
  border-bottom: 0;
}

.batch-click-sequence {
  color: #87918d;
  font-family: var(--number-font);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.batch-click-material {
  display: inline-flex;
  width: fit-content;
  min-width: 70px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.click-material-ash {
  border-color: #b9c1bc;
  background: #e3e7e3;
  color: #35413c;
}

.click-material-slag {
  border-color: #c48a57;
  background: #ead0b6;
  color: #663c1c;
}

.click-material-coal {
  border-color: #384640;
  background: #1d2925;
  color: #fff;
}

.click-material-shale {
  border-color: #7d9c8b;
  background: #c9d8d0;
  color: #294238;
}

.batch-click-time {
  color: #26342f;
  font-family: var(--number-font);
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.batch-click-load-more,
.batch-click-retry {
  min-height: 44px;
  border: 1px solid rgba(19, 82, 58, 0.24);
  border-radius: 11px;
  background: rgba(33, 118, 84, 0.08);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.batch-click-load-more {
  display: block;
  min-width: 250px;
  margin: 14px auto 0;
  padding: 0 18px;
}

.batch-click-retry {
  min-width: 92px;
  margin-top: 10px;
  padding: 0 16px;
}

.batch-click-load-more:hover,
.batch-click-retry:hover {
  border-color: rgba(19, 82, 58, 0.44);
  background: rgba(33, 118, 84, 0.14);
}

.batch-click-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.batch-click-load-more:focus-visible,
.batch-click-retry:focus-visible,
.batch-detail-toggle:focus-visible {
  outline: 3px solid rgba(33, 118, 84, 0.28);
  outline-offset: 2px;
}

.batch-click-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.history-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  padding: 44px;
  text-align: center;
}

.history-empty > span {
  color: #c5c5bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.history-empty h3 {
  margin: 13px 0 6px;
  font-size: 20px;
}

.history-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.history-empty a {
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.reset-dialog {
  width: min(470px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  color: var(--ink);
}

.reset-dialog::backdrop {
  background: rgba(11, 16, 14, 0.66);
  backdrop-filter: blur(3px);
}

.reset-dialog form {
  padding: 30px;
  text-align: center;
}

.dialog-warning {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto;
  border: 2px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font-size: 22px;
  font-weight: 900;
}

.reset-dialog h2 {
  margin: 18px 0 8px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.reset-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.reset-dialog label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.reset-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #bdbdb5;
  border-radius: 5px;
  background: #fff;
  text-align: center;
  text-transform: uppercase;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.dialog-actions button {
  min-height: 48px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.dialog-cancel {
  border: 1px solid var(--line);
  background: #f0efe9;
  color: var(--ink);
}

.dialog-danger {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.dialog-danger:disabled {
  border-color: #dddcd5;
  background: #dddcd5;
  color: #979790;
  cursor: not-allowed;
}

/* Premium industrial command center */

.operator-header,
.admin-topbar {
  border-bottom: 1px solid rgba(240, 166, 58, 0.16);
  background: linear-gradient(115deg, rgba(13, 23, 20, 0.99), rgba(24, 39, 34, 0.98));
  box-shadow: 0 12px 36px rgba(8, 14, 12, 0.16);
}

.brand-mark {
  border-color: rgba(240, 166, 58, 0.48);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.outline-link {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.operator-main {
  background-color: #e5e6de;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(240, 166, 58, 0.12), transparent 38%),
    linear-gradient(rgba(27, 43, 37, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 43, 37, 0.038) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.batch-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 0%, rgba(240, 166, 58, 0.2), transparent 38%),
    linear-gradient(122deg, #111d19 0%, #1e342c 100%);
  box-shadow: 0 18px 42px rgba(17, 28, 25, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.batch-banner::after {
  position: absolute;
  top: -70px;
  right: 12%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(240, 166, 58, 0.14);
  border-radius: 50%;
  content: "";
}

.batch-banner > div {
  position: relative;
  z-index: 1;
}

.batch-banner > div + div {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.batch-banner .section-kicker,
.batch-total,
.batch-total span,
.batch-total small {
  color: rgba(255, 255, 255, 0.62);
}

.batch-banner h2 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.batch-total strong {
  color: #f4ae48;
  font-family: var(--number-font);
  text-shadow: 0 5px 24px rgba(240, 166, 58, 0.2);
}

.material-grid {
  gap: clamp(14px, 1.8vw, 24px);
}

.material-button {
  isolation: isolate;
  border-width: 1px;
  border-top-width: 7px;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(17, 28, 25, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}

.material-button::before,
.material-button::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.material-button::before {
  top: -36%;
  left: -35%;
  width: 115%;
  height: 72%;
  transform: rotate(-10deg);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.material-button::after {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
}

@media (hover: hover) {
  .material-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(17, 28, 25, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 -6px 0 rgba(0, 0, 0, 0.08);
  }
}

.material-button:not(:disabled):active,
.material-button.is-pressed {
  transform: translateY(4px) scale(0.992);
}

.material-count,
.material-name,
.tap-hint {
  position: relative;
  z-index: 1;
}

.material-count strong,
.hero-metric strong,
.material-total-item strong,
.current-breakdown strong,
.batch-material-cell,
.batch-total-cell {
  font-family: var(--number-font);
}

.material-count strong {
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(15, 24, 21, 0.12);
}

.material-ash {
  border-top-color: #919b94;
  background: linear-gradient(145deg, #eff1ed 0%, #c8cec8 100%);
}

.material-slag {
  border-top-color: #955b2f;
  background: linear-gradient(145deg, #dcb086 0%, #b97a47 100%);
}

.material-coal {
  border-color: #0d1513;
  border-top-color: #f0a63a;
  background: linear-gradient(145deg, #34413d 0%, #17201d 100%);
  box-shadow: 0 22px 48px rgba(10, 16, 14, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -6px 0 rgba(0, 0, 0, 0.28);
}

.material-shale {
  border-top-color: #567566;
  background: linear-gradient(145deg, #b8c8be 0%, #7f998a 100%);
}

.operator-footer {
  background: linear-gradient(120deg, #0e1916, #162821);
}

.complete-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: linear-gradient(135deg, #2c8b65, #176947);
  box-shadow: 0 12px 28px rgba(9, 28, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.complete-button:disabled {
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, #35443f, #293630);
}

.admin-body {
  background-color: #e9e9e1;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(240, 166, 58, 0.09), transparent 30%),
    linear-gradient(rgba(24, 40, 34, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 34, 0.026) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.admin-intro h1 {
  text-shadow: 0 10px 34px rgba(17, 28, 25, 0.08);
}

.hero-metrics {
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-metric {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 28, 25, 0.09);
  border-radius: 18px;
  background: rgba(253, 252, 248, 0.92);
  box-shadow: 0 18px 46px rgba(17, 28, 25, 0.08), inset 0 1px 0 #fff;
}

.hero-metric:first-child {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(240, 166, 58, 0.25));
  content: "";
}

.hero-metric:nth-child(3)::before,
.hero-metric:nth-child(4)::before {
  background: linear-gradient(90deg, var(--green), rgba(33, 118, 84, 0.2));
}

.hero-metric-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 166, 58, 0.19), transparent 48%),
    linear-gradient(135deg, #101b18, #1d322a);
  box-shadow: 0 22px 54px rgba(12, 22, 18, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visualization-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.28fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-panel {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  margin: 0;
  padding: 27px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(240, 166, 58, 0.14), transparent 34%),
    linear-gradient(145deg, #111d19 0%, #172a23 100%);
  box-shadow: 0 26px 64px rgba(12, 23, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #fff;
}

.chart-panel::before {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.chart-heading,
.material-bar-chart,
.chart-legend,
.batch-trend-chart {
  position: relative;
  z-index: 1;
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chart-heading .section-kicker {
  margin-bottom: 7px;
  color: rgba(240, 166, 58, 0.82);
}

.chart-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.chart-insight {
  flex: 0 0 auto;
  max-width: 52%;
  overflow: hidden;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-bar-chart {
  display: grid;
  gap: 20px;
  margin-top: 31px;
}

.material-bar-row {
  display: grid;
  align-items: center;
  grid-template-columns: 90px minmax(90px, 1fr) auto;
  gap: 14px;
}

.material-bar-label {
  display: grid;
  align-items: center;
  grid-template-columns: 10px 1fr;
  gap: 2px 8px;
}

.material-bar-label i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--material-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--material-color) 16%, transparent);
}

.material-bar-label span {
  font-size: 15px;
  font-weight: 850;
}

.material-bar-label small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.material-bar-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

.material-bar-fill {
  display: block;
  width: var(--bar-width);
  height: 100%;
  transform-origin: left;
  border-radius: inherit;
  background: var(--bar-color);
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar-color) 74%, #10211b), var(--bar-color));
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar-color) 26%, transparent);
  animation: material-bar-reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--bar-delay) both;
}

.material-bar-row > strong {
  min-width: 48px;
  color: #fff;
  font-family: var(--number-font);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
  text-align: right;
}

.material-bar-row > strong.number-long {
  font-size: 27px;
}

.material-bar-row > strong.number-very-long {
  font-size: 22px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend-ash { background: #c8d0ca; }
.legend-slag { background: #d6955b; }
.legend-coal { background: #f0a63a; }
.legend-shale { background: #78a18a; }

.batch-trend-chart {
  display: grid;
  min-height: 302px;
  place-items: center;
  margin-top: 2px;
}

.batch-trend-chart:focus-visible {
  outline: 3px solid rgba(240, 166, 58, 0.72);
  outline-offset: 5px;
  border-radius: 12px;
}

.trend-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 4 7;
  vector-effect: non-scaling-stroke;
}

.chart-axis-label,
.chart-batch-label {
  fill: rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.chart-total-label {
  fill: #fff;
  font-family: var(--number-font);
  font-size: 19px;
  font-weight: 950;
}

.trend-bar-segment {
  stroke: #0b1612;
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: trend-bar-reveal 720ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.18));
}

.trend-bar-group:hover .trend-bar-segment {
  filter: brightness(1.12) drop-shadow(0 7px 12px rgba(0, 0, 0, 0.22));
}

.chart-empty-state {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
}

.chart-empty-state strong {
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--number-font);
  font-size: 72px;
  line-height: 0.9;
}

.chart-empty-state span {
  font-size: 13px;
  font-weight: 750;
}

.dashboard-panel,
.history-section {
  border-color: rgba(17, 28, 25, 0.09);
  border-radius: 20px;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 20px 54px rgba(17, 28, 25, 0.075), inset 0 1px 0 #fff;
}

.material-totals,
.current-breakdown {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff;
}

.material-total-item,
.current-breakdown > div {
  background: linear-gradient(145deg, #fff, #f5f4ef);
}

.history-table th {
  background: #e9e9e2;
}

.history-table tbody tr:hover td {
  background: #fffdf8;
}

.reset-dialog {
  border-radius: 20px;
}

@keyframes material-bar-reveal {
  from {
    transform: scaleX(0);
    opacity: 0.25;
  }
}

@keyframes trend-bar-reveal {
  from {
    transform: scaleY(0.06);
    opacity: 0.25;
  }
}

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

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

  .hero-metric:nth-child(3) {
    border: 1px solid rgba(17, 28, 25, 0.09);
  }

  .hero-metric:nth-child(4) {
    border: 1px solid rgba(17, 28, 25, 0.09);
  }
}

@media (orientation: portrait), (max-width: 820px) {
  .operator-body {
    overflow: auto;
  }

  .operator-shell {
    min-height: 100dvh;
  }

  .operator-main {
    min-height: 660px;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(230px, 1fr));
  }

  .operator-footer {
    gap: 9px;
  }

  .operator-note {
    text-align: center;
  }

  .complete-button {
    min-height: 74px;
  }

  .admin-main {
    padding-top: 28px;
  }

  .admin-intro {
    align-items: center;
  }

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

  .chart-panel {
    min-height: 0;
  }

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

  .material-total-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .material-total-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .history-table {
    min-width: 0;
  }

  .history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .history-table,
  .history-table tbody {
    display: block;
  }

  .history-table tbody {
    padding: 16px;
  }

  .history-table tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .history-table tr:last-child {
    margin-bottom: 0;
  }

  .history-table td,
  .history-table td:first-child,
  .history-table td:last-child {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 58px;
    padding: 9px 8px;
    border-right: 1px solid #e3e2dc;
    border-bottom: 1px solid #e3e2dc;
    text-align: center;
    white-space: normal;
  }

  .history-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 14px;
    font-weight: 850;
  }

  .history-table .batch-summary-row > td {
    gap: 3px;
    padding: 6px;
  }

  .history-table .batch-summary-row > td::before {
    font-size: 12px;
  }

  .history-table .batch-summary-row > .batch-number,
  .history-table .batch-summary-row > .batch-detail-cell {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .history-table .batch-summary-row > .batch-number {
    min-height: 58px;
  }

  .history-table .batch-summary-row > .batch-material-cell {
    min-height: 58px;
    font-size: clamp(22px, 5.8vw, 29px) !important;
  }

  .history-table .batch-summary-row > .batch-material-shale,
  .history-table .batch-summary-row > .batch-time {
    border-right: 0;
  }

  .history-table .batch-summary-row > .batch-total-cell,
  .history-table .batch-summary-row > .batch-time {
    grid-column: span 2;
    min-height: 62px;
  }

  .history-table .batch-summary-row > .batch-detail-cell {
    min-height: 56px;
    border-bottom: 0;
  }

  .history-table .batch-summary-row > .batch-detail-cell::before {
    display: none;
  }

  .history-table .batch-summary-row.details-open {
    margin-bottom: 0;
    border-bottom: 0;
  }

  .history-table .batch-detail-row {
    display: block;
    margin-bottom: 14px;
    border-top: 0;
  }

  .history-table .batch-detail-row > td,
  .history-table .batch-detail-row:hover > td {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .history-table .batch-detail-row > td::before {
    display: none;
  }

  .batch-detail-toggle {
    width: min(220px, 100%);
    min-height: 44px;
  }

  .batch-click-panel {
    padding: 17px 13px 18px;
  }

  .batch-click-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .batch-click-columns,
  .batch-click-item {
    grid-template-columns: 48px 78px minmax(130px, 1fr);
    gap: 8px;
  }

  .batch-click-columns {
    padding-right: 10px;
    padding-left: 10px;
  }

  .batch-click-item {
    min-height: 50px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .batch-click-material {
    min-width: 62px;
    padding: 0 8px;
  }

  .batch-click-time {
    font-size: 13px;
  }

  .batch-click-load-more {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 660px) {
  .operator-header,
  .admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .operator-header {
    min-height: 52px;
    padding: calc(6px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  }

  .operator-header h1 {
    font-size: 19px;
    letter-spacing: -0.035em;
  }

  .operator-header .eyebrow {
    display: none;
  }

  .operator-header .brand-lockup,
  .admin-topbar-inner .brand-lockup {
    grid-column: auto;
  }

  .operator-header .header-actions,
  .admin-topbar-inner .header-actions {
    position: static;
  }

  .operator-header .brand-mark,
  .admin-topbar .brand-mark,
  .connection-status {
    display: none;
  }

  .outline-link {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 13px;
  }

  .operator-main {
    min-height: 0;
    align-content: start;
    grid-template-rows: auto auto;
    gap: 9px;
    padding: 9px max(10px, env(safe-area-inset-right)) 9px max(10px, env(safe-area-inset-left));
  }

  .batch-banner {
    min-height: 52px;
    grid-template-columns: 1.08fr 0.92fr;
    border-radius: 14px;
  }

  .batch-banner > div {
    padding: 4px 8px;
  }

  .batch-banner .section-kicker {
    display: none;
  }

  .batch-banner h2 {
    font-size: clamp(25px, 7.4vw, 31px);
    line-height: 1;
    white-space: nowrap;
  }

  .batch-banner > .batch-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
  }

  .batch-total span {
    grid-column: auto;
    margin-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .batch-total strong {
    font-size: clamp(35px, 10.5vw, 43px);
    line-height: 0.88;
  }

  .batch-total strong.number-long {
    font-size: clamp(31px, 9.2vw, 39px);
  }

  .batch-total strong.number-very-long {
    font-size: clamp(25px, 7.4vw, 31px);
  }

  .batch-total small {
    padding-bottom: 1px;
    font-size: 11px;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(124px, auto));
    gap: 8px;
  }

  .material-button {
    min-height: 124px;
    padding: 11px 7px;
    border-top-width: 5px;
    border-radius: 14px;
  }

  .material-button::after {
    inset: 6px;
    border-radius: 9px;
  }

  .material-count {
    gap: 3px;
  }

  .material-count strong {
    font-size: clamp(54px, 16vw, 68px);
    line-height: 0.86;
  }

  .material-count strong.number-long {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .material-count strong.number-very-long {
    font-size: clamp(33px, 9.8vw, 42px);
  }

  .material-count small {
    font-size: 11px;
  }

  .material-name {
    margin-top: 8px;
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 0.95;
  }

  .tap-hint,
  .operator-note {
    display: none;
  }

  .operator-footer {
    min-height: 0;
    gap: 0;
    padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .complete-button {
    width: 100%;
    min-height: 56px;
    gap: 2px;
    padding: 6px 16px 8px;
    border-radius: 14px;
  }

  .complete-label {
    font-size: 23px;
    line-height: 1;
  }

  .complete-meta {
    font-size: 11px;
  }

  .admin-intro {
    display: block;
  }

  .sync-meta {
    margin-top: 20px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-metric {
    padding: 19px 17px;
  }

  .dashboard-panel {
    padding: 18px;
  }

  .history-heading {
    align-items: center;
    padding: 19px;
  }

  .history-actions {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }

  .chart-panel {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .chart-insight {
    align-self: flex-start;
  }

  .material-bar-row {
    grid-template-columns: 78px minmax(72px, 1fr) auto;
    gap: 10px;
  }

  .chart-legend {
    justify-content: flex-start;
  }
}

/* Mobile overview: compact industrial status strip */
@media (max-width: 660px) {
  .admin-body[data-admin-page="overview"] .admin-topbar-inner {
    min-height: 58px;
    gap: 10px;
    padding: 7px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left));
  }

  .admin-body[data-admin-page="overview"] .admin-topbar-inner .brand-lockup,
  .admin-body[data-admin-page="overview"] .admin-topbar .outline-link {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .admin-mobile-title {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(20px, 6.4vw, 25px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar-inner .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status {
    display: inline-flex;
    min-height: 34px;
    gap: 7px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar #connectionText {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status::after {
    content: "连接中";
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status.is-online::after {
    content: "实时";
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status.is-offline::after {
    content: "离线";
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .status-dot {
    width: 8px;
    height: 8px;
  }

  .admin-body[data-admin-page="overview"] .admin-main {
    padding-top: 12px;
  }

  .admin-body[data-admin-page="overview"] .admin-intro {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .hero-metrics {
    gap: 8px;
  }

  .admin-body[data-admin-page="overview"] .hero-metric {
    min-height: 126px;
    padding: 15px 9px 17px;
    border-radius: 14px;
  }

  .admin-body[data-admin-page="overview"] .hero-metric::before {
    height: 3px;
  }

  .admin-body[data-admin-page="overview"] .hero-metric > span {
    font-size: 12px;
    letter-spacing: 0.025em;
  }

  .admin-body[data-admin-page="overview"] .hero-metric div {
    gap: 5px;
    margin-top: 10px;
  }

  .admin-body[data-admin-page="overview"] .hero-metric strong {
    font-size: clamp(50px, 15.8vw, 62px);
  }

  .admin-body[data-admin-page="overview"] .hero-metric strong.number-long {
    font-size: clamp(39px, 12.2vw, 48px);
  }

  .admin-body[data-admin-page="overview"] .hero-metric strong.number-very-long {
    font-size: clamp(31px, 9.7vw, 39px);
  }

  .admin-body[data-admin-page="overview"] .hero-metric small {
    font-size: 12px;
  }

  .admin-body[data-admin-page="overview"] .hero-progress > b {
    font-size: clamp(28px, 8.8vw, 36px);
  }

  .admin-body[data-admin-page="overview"] .visualization-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .admin-body[data-admin-page="overview"] .chart-panel {
    padding: 19px 15px 17px;
  }

  .admin-body[data-admin-page="overview"] .chart-heading {
    align-items: center;
    flex-direction: row;
    gap: 9px;
  }

  .admin-body[data-admin-page="overview"] .chart-heading .section-kicker {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .chart-heading h2 {
    font-size: clamp(24px, 7.4vw, 29px);
  }

  .admin-body[data-admin-page="overview"] .chart-insight {
    max-width: 45%;
    min-height: 30px;
    align-self: center;
    padding: 7px 10px;
    font-size: 11px;
  }

  .admin-body[data-admin-page="overview"] .material-bar-chart {
    gap: 16px;
    margin-top: 22px;
  }

  .admin-body[data-admin-page="overview"] .material-bar-row {
    grid-template-columns: 70px minmax(54px, 1fr) auto;
    gap: 8px;
  }

  .admin-body[data-admin-page="overview"] .material-bar-label span {
    font-size: 14px;
  }

  .admin-body[data-admin-page="overview"] .material-bar-label small {
    font-size: 11px;
  }

  .admin-body[data-admin-page="overview"] .material-bar-row > strong {
    min-width: 43px;
    font-size: 29px;
  }
}

@media (max-width: 660px) and (max-height: 700px) {
  .operator-header {
    min-height: 52px;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .operator-main {
    gap: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .batch-banner {
    min-height: 50px;
  }

  .material-grid {
    grid-template-rows: repeat(2, minmax(116px, auto));
    gap: 7px;
  }

  .material-button {
    min-height: 116px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .material-count strong {
    font-size: clamp(49px, 14.5vw, 61px);
  }

  .material-name {
    margin-top: 6px;
    font-size: clamp(23px, 6.6vw, 28px);
  }

  .operator-footer {
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .complete-button {
    min-height: 52px;
  }

  .complete-label {
    font-size: 21px;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .operator-header {
    min-height: 50px;
    padding: calc(5px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 5px max(12px, env(safe-area-inset-left));
  }

  .operator-header .brand-mark,
  .operator-header .eyebrow,
  .connection-status {
    display: none;
  }

  .operator-header .brand-lockup {
    grid-column: 1;
  }

  .operator-header .brand-lockup > div {
    text-align: left;
  }

  .operator-header .header-actions {
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
  }

  .operator-main {
    min-height: 0;
    align-content: start;
    grid-template-rows: auto auto;
    gap: 7px;
    padding: 7px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left));
  }

  .batch-banner {
    min-height: 48px;
    border-radius: 12px;
  }

  .batch-banner > div {
    padding: 5px 9px;
  }

  .batch-banner .section-kicker {
    display: none;
  }

  .batch-banner h2 {
    font-size: 23px;
    line-height: 1;
  }

  .batch-total span {
    margin-bottom: 0;
    font-size: 9px;
  }

  .batch-total strong {
    font-size: 34px;
  }

  .batch-banner > .batch-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
  }

  .batch-total small {
    font-size: 10px;
  }

  .material-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(104px, auto);
    gap: 7px;
  }

  .material-button {
    min-height: 104px;
    padding: 8px 6px;
    border-top-width: 4px;
    border-radius: 12px;
  }

  .material-button::after {
    inset: 5px;
    border-radius: 8px;
  }

  .material-count strong {
    font-size: clamp(42px, 8.4vw, 56px);
  }

  .material-name {
    margin-top: 5px;
    font-size: clamp(21px, 4.1vw, 27px);
  }

  .tap-hint,
  .operator-note {
    display: none;
  }

  .operator-footer {
    min-height: 0;
    padding: 5px max(12px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .complete-button {
    min-height: 48px;
    padding: 5px 16px 7px;
  }

  .complete-label {
    font-size: 20px;
  }

  .complete-meta {
    font-size: 10px;
  }
}

/* Batch ratio controls and auditable undo */

.batch-progress-total {
  grid-template-columns: auto auto auto auto;
  column-gap: 7px;
}

.batch-progress-total > span {
  grid-column: 1 / -1;
}

.batch-progress-total > i,
.batch-progress-total > b {
  align-self: end;
  padding-bottom: 1px;
  font-family: var(--number-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.batch-progress-total > i {
  color: rgba(255, 255, 255, 0.34);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
}

.batch-progress-total > b {
  color: #fff;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.material-count {
  gap: clamp(7px, 0.8vw, 12px);
}

.material-count strong {
  font-size: clamp(70px, 8.2vw, 104px);
}

.material-count > i,
.material-count > b {
  position: relative;
  z-index: 1;
  font-family: var(--number-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.material-count > i {
  align-self: center;
  color: currentColor;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  opacity: 0.42;
}

.material-count > b {
  align-self: flex-end;
  padding-bottom: 3px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.06em;
  opacity: 0.78;
}

.material-count > b.number-long {
  font-size: clamp(34px, 4vw, 50px);
}

.material-count > b.number-very-long {
  font-size: clamp(27px, 3.2vw, 40px);
}

.material-button .tap-hint {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid rgba(17, 28, 25, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.04em;
}

.material-button.is-complete:disabled,
.material-button.is-zero-target:disabled {
  cursor: default;
  filter: none;
  opacity: 1;
}

.material-button.is-complete .tap-hint {
  border-color: rgba(13, 91, 58, 0.28);
  background: rgba(32, 125, 83, 0.14);
  color: #0d5b3a;
}

.material-coal.is-complete .tap-hint {
  border-color: rgba(112, 214, 168, 0.32);
  background: rgba(112, 214, 168, 0.14);
  color: #a4ecc9;
}

.material-button.is-over {
  border-color: #ba4a40;
  border-top-color: #dc5b4e;
  box-shadow: 0 0 0 4px rgba(186, 74, 64, 0.12), 0 18px 42px rgba(84, 24, 20, 0.16);
}

.material-button.is-over .tap-hint {
  border-color: rgba(163, 61, 53, 0.35);
  background: rgba(163, 61, 53, 0.14);
  color: #7d211a;
}

.material-coal.is-over .tap-hint {
  color: #ffb5ae;
}

.batch-actions {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: minmax(190px, 0.38fr) minmax(360px, 0.62fr);
  gap: 10px;
}

.batch-actions .complete-button {
  width: 100%;
}

.undo-button {
  display: flex;
  min-height: 70px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 18px 11px;
  border: 1px solid rgba(240, 166, 58, 0.32);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(240, 166, 58, 0.18), rgba(240, 166, 58, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  color: #f6b95f;
  cursor: pointer;
}

.undo-button:not(:disabled):active {
  transform: translateY(2px);
}

.undo-button:disabled {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.32);
  cursor: not-allowed;
}

.undo-label {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.undo-meta {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 25px 26px 23px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 166, 58, 0.13), transparent 35%),
    rgba(251, 250, 246, 0.96);
  box-shadow: 0 20px 54px rgba(17, 28, 25, 0.075), inset 0 1px 0 #fff;
}

.recipe-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  content: "";
}

.recipe-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.recipe-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.recipe-heading h2 span {
  color: var(--green-dark);
  font-family: var(--number-font);
  font-size: 1.14em;
}

.recipe-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.recipe-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(33, 118, 84, 0.25);
  border-radius: 999px;
  background: rgba(33, 118, 84, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-status.is-unconfigured,
.recipe-status.is-short {
  border-color: rgba(240, 166, 58, 0.3);
  background: rgba(240, 166, 58, 0.1);
  color: #805319;
}

.recipe-status.is-over {
  border-color: rgba(163, 61, 53, 0.3);
  background: rgba(163, 61, 53, 0.09);
  color: var(--danger);
}

.target-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.target-input-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-top: 4px solid #8a8e89;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f4f3ee);
  cursor: text;
}

.target-input-slag {
  border-top-color: #9d6b42;
}

.target-input-coal {
  border-top-color: #303936;
}

.target-input-shale {
  border-top-color: #71887b;
}

.target-input-name {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.target-input-control {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.target-input-control input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #cfd2ca;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--number-font);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  outline: 0;
}

.target-input-control input:focus {
  border-bottom-color: var(--accent);
}

.target-input-control small,
.target-input-current {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.target-input-current strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.recipe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
}

.recipe-summary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.recipe-summary > span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.recipe-summary strong {
  color: var(--green-dark);
  font-family: var(--number-font);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.recipe-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.save-target-button {
  min-width: 230px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #2c8b65, #176947);
  box-shadow: 0 10px 24px rgba(9, 44, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.save-target-button:disabled {
  background: #d5d7d0;
  box-shadow: none;
  color: #8a918d;
  cursor: not-allowed;
}

.recipe-form-message {
  min-height: 18px;
  margin: 9px 0 -5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recipe-form-message.is-error {
  color: var(--danger);
}

.recipe-form-message.is-success {
  color: var(--green-dark);
}

.hero-progress > i,
.hero-progress > b {
  font-family: var(--number-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.hero-progress > i {
  color: #9ca5a1;
  font-size: clamp(30px, 3.3vw, 42px);
}

.hero-progress > b {
  color: var(--green-dark);
  font-size: clamp(42px, 4.8vw, 62px);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.current-breakdown > div {
  gap: 5px;
}

.current-breakdown p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 0;
}

.current-breakdown p i,
.current-breakdown p b {
  font-family: var(--number-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.current-breakdown p i {
  color: #9ba49f;
  font-size: 25px;
}

.current-breakdown p b {
  color: #41514b;
  font-size: clamp(31px, 3.3vw, 41px);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.current-breakdown > div > small {
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.current-breakdown > div.is-complete > small {
  background: rgba(33, 118, 84, 0.1);
  color: var(--green-dark);
}

.current-breakdown > div.is-over > small {
  background: rgba(163, 61, 53, 0.09);
  color: var(--danger);
}

.batch-progress-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-family: var(--number-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.batch-progress-value strong {
  color: inherit;
  font-size: 1em;
  font-weight: 950;
}

.batch-progress-value i {
  color: #a4aca8;
  font-size: 0.66em;
  font-style: normal;
  font-weight: 500;
}

.batch-progress-value b {
  color: #59665f;
  font-size: 0.72em;
  font-weight: 900;
}

.batch-summary-row.target-unknown .batch-progress-value b {
  color: #a7ada9;
}

.batch-time time,
.batch-time small {
  display: block;
}

.batch-time small {
  margin-top: 5px;
  color: #89928e;
  font-size: 10px;
  line-height: 1.35;
}

.batch-detail-overview {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #d9dcd4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.batch-detail-recipe,
.batch-detail-timeline {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.batch-detail-recipe > span,
.batch-detail-timeline > span,
.batch-target-set-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.batch-detail-recipe > strong,
.batch-detail-timeline > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.batch-target-set-time {
  padding-left: 98px;
}

.batch-action-undo {
  background: #fff8f0;
}

.batch-action-undo .batch-click-material,
.batch-click-item.is-undone .batch-click-material {
  border-color: rgba(163, 61, 53, 0.25);
  background: rgba(163, 61, 53, 0.08);
  color: #8a3029;
}

.batch-click-item.is-undone {
  background: #f6f5f1;
  color: #818984;
}

/* Dated recipe planning */

.operator-production-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 9px;
  padding: 0 9px;
  transform: translateY(-3px);
  border: 1px solid rgba(240, 166, 58, 0.3);
  border-radius: 999px;
  background: rgba(240, 166, 58, 0.1);
  color: #f4bd6b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: none;
  vertical-align: middle;
}

.admin-body .toast {
  bottom: calc(94px + env(safe-area-inset-bottom));
}

.admin-main {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.admin-floating-nav {
  position: fixed;
  z-index: 45;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: 10px;
}

.admin-menu-toggle {
  display: inline-flex;
  min-width: 112px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid rgba(240, 166, 58, 0.38);
  border-radius: 18px;
  background: linear-gradient(135deg, #253b33, #12211c);
  box-shadow: 0 16px 42px rgba(8, 20, 15, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.admin-menu-toggle-icon {
  display: grid;
  width: 18px;
  gap: 3px;
}

.admin-menu-toggle-icon i {
  display: block;
  height: 2px;
  transform-origin: center;
  border-radius: 2px;
  background: #f0a63a;
  transition: transform 160ms ease, opacity 160ms ease;
}

.admin-floating-nav.is-open .admin-menu-toggle-icon i:first-child {
  transform: translateY(5px) rotate(45deg);
}

.admin-floating-nav.is-open .admin-menu-toggle-icon i:nth-child(2) {
  opacity: 0;
}

.admin-floating-nav.is-open .admin-menu-toggle-icon i:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.admin-menu-panel {
  width: min(286px, calc(100vw - 32px));
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(17, 28, 25, 0.11);
  border-radius: 19px;
  background: rgba(252, 251, 247, 0.98);
  box-shadow: 0 24px 64px rgba(8, 20, 15, 0.24), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
}

.admin-menu-panel a {
  display: grid;
  min-height: 64px;
  align-items: center;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
}

.admin-menu-panel a + a {
  border-top: 1px solid rgba(17, 28, 25, 0.07);
}

.admin-menu-panel a:hover,
.admin-menu-panel a:focus-visible {
  background: rgba(33, 118, 84, 0.07);
}

.admin-menu-panel a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(33, 118, 84, 0.14), rgba(240, 166, 58, 0.08));
  color: var(--green-dark);
}

.admin-menu-panel a > span:last-child {
  display: grid;
  gap: 2px;
}

.admin-menu-panel strong {
  font-size: 14px;
  font-weight: 950;
}

.admin-menu-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-menu-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 11px;
  background: #fff;
  color: var(--accent-dark);
  font-family: var(--number-font);
  font-size: 12px;
  font-weight: 950;
}

.recipe-main {
  width: min(1060px, 100%);
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: 30px max(24px, env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.recipe-page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.recipe-page-intro h1 {
  margin: 2px 0 7px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 950;
  letter-spacing: -0.052em;
  line-height: 1;
}

.recipe-page-intro > div:first-child > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.recipe-server-date {
  display: grid;
  min-width: 210px;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid rgba(17, 28, 25, 0.09);
  border-radius: 14px;
  background: rgba(251, 250, 246, 0.78);
  text-align: right;
}

.recipe-server-date span,
.recipe-server-date small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.recipe-server-date strong {
  font-size: 15px;
  font-weight: 950;
}

.recipe-date-toolbar {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(112px, 0.7fr) minmax(250px, 1.5fr) minmax(120px, 0.72fr) minmax(112px, 0.7fr);
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 17px;
  background: rgba(251, 250, 246, 0.93);
  box-shadow: 0 12px 34px rgba(17, 28, 25, 0.065), inset 0 1px 0 #fff;
}

.date-step-button,
.today-button,
.copy-recipe-button {
  min-height: 52px;
  border: 1px solid rgba(17, 28, 25, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f0efe9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.date-step-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.date-step-button span {
  color: var(--accent-dark);
  font-size: 20px;
}

.date-step-button small {
  font-size: 12px;
  font-weight: 850;
}

.today-button {
  border-color: rgba(33, 118, 84, 0.22);
  background: rgba(33, 118, 84, 0.07);
  color: var(--green-dark);
}

.date-step-button:disabled,
.today-button:disabled,
.copy-recipe-button:disabled {
  color: #949b97;
  cursor: not-allowed;
  opacity: 0.55;
}

.recipe-date-field {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 5px 13px;
  border: 1px solid rgba(17, 28, 25, 0.13);
  border-radius: 12px;
  background: #fff;
}

.recipe-date-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-date-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--number-font);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  outline: 0;
}

.recipe-context-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(17, 28, 25, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.recipe-context-strip.is-current {
  border-color: rgba(33, 118, 84, 0.24);
  background: rgba(33, 118, 84, 0.08);
  color: var(--green-dark);
}

.recipe-context-batch {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-recipe-panel {
  margin-bottom: 0;
}

.daily-recipe-panel .recipe-heading h2 {
  font-size: clamp(29px, 3.5vw, 42px);
}

.daily-recipe-panel .recipe-status.is-readonly {
  border-color: rgba(98, 112, 107, 0.24);
  background: rgba(98, 112, 107, 0.08);
  color: var(--muted);
}

.daily-recipe-panel input:disabled {
  -webkit-text-fill-color: #7c8581;
  opacity: 1;
}

.daily-recipe-panel input[aria-invalid="true"] {
  border-bottom-color: var(--danger);
  color: var(--danger);
}

.recipe-save-actions {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.copy-recipe-button {
  min-width: 145px;
  min-height: 52px;
  padding: 0 16px;
}

/* Multi-batch daily recipe schedule */

.recipe-plan-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 10px 12px 10px 17px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(120deg, rgba(236, 239, 232, 0.96), rgba(252, 250, 243, 0.98));
}

.recipe-plan-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.recipe-plan-summary > strong,
.recipe-plan-summary b {
  color: var(--ink);
  font-family: var(--number-font);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.recipe-plan-summary > strong {
  color: var(--green-dark);
  font-size: 31px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.recipe-plan-summary b {
  font-size: 18px;
}

.recipe-plan-summary i {
  color: #abb2ad;
  font-style: normal;
}

.add-recipe-row-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(33, 118, 84, 0.25);
  border-radius: 11px;
  background: #1f674b;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.recipe-plan-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.edit-all-batches-button,
.cancel-bulk-edit-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(33, 118, 84, 0.25);
  border-radius: 11px;
  background: rgba(33, 118, 84, 0.07);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.cancel-bulk-edit-button {
  min-height: 52px;
  border-color: rgba(17, 28, 25, 0.13);
  background: linear-gradient(145deg, #fff, #f0efe9);
  color: var(--ink);
}

.edit-all-batches-button:disabled,
.cancel-bulk-edit-button:disabled {
  color: #949b97;
  cursor: not-allowed;
  opacity: 0.55;
}

.add-recipe-row-button > span {
  font-family: var(--number-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.add-recipe-row-button:disabled {
  background: #c7cbc5;
  box-shadow: none;
  color: #838b87;
  cursor: not-allowed;
}

.recipe-table-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(17, 28, 25, 0.11);
  border-radius: 0 0 15px 15px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 16px 35px rgba(17, 28, 25, 0.07);
  scrollbar-color: rgba(33, 118, 84, 0.48) rgba(17, 28, 25, 0.06);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.recipe-table-scroll:focus-visible {
  outline: 4px solid rgba(233, 155, 45, 0.42);
  outline-offset: 3px;
}

.recipe-plan-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.recipe-plan-table th,
.recipe-plan-table td {
  height: 64px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(17, 28, 25, 0.085);
  text-align: center;
}

.recipe-plan-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 39px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: #17231f;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.recipe-plan-table thead th:first-child,
.recipe-plan-table tbody th {
  width: 105px;
}

.recipe-plan-table thead th:nth-last-child(3) {
  width: 78px;
}

.recipe-plan-table thead th:nth-last-child(2) {
  width: 105px;
}

.recipe-plan-table thead th:last-child {
  width: 72px;
}

.recipe-plan-table tbody tr:last-child > * {
  border-bottom: 0;
}

.recipe-plan-table tbody tr:nth-child(even) > * {
  background-color: rgba(239, 239, 233, 0.44);
}

.recipe-plan-table tbody tr.is-locked > * {
  background-color: rgba(229, 232, 226, 0.72);
}

.recipe-plan-table tbody tr.is-active-row > * {
  background-color: rgba(240, 166, 58, 0.075);
}

.recipe-batch-sequence {
  position: sticky;
  z-index: 1;
  left: 0;
  background: #f8f7f1;
  box-shadow: 1px 0 0 rgba(17, 28, 25, 0.1), 8px 0 14px rgba(17, 28, 25, 0.035);
  white-space: nowrap;
}

.recipe-batch-sequence span,
.recipe-batch-sequence small {
  display: block;
}

.recipe-batch-sequence span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.recipe-batch-sequence strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.recipe-batch-sequence small {
  margin-top: 1px;
  color: #8a938e;
  font-size: 9px;
  font-weight: 800;
}

.recipe-target-cell input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 6px;
  border: 1px solid #d3d7cf;
  border-bottom-width: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  text-align: center;
}

.recipe-target-ash input { border-bottom-color: #8f9691; }
.recipe-target-slag input { border-bottom-color: #a96b3b; }
.recipe-target-coal input { border-bottom-color: #27312d; }
.recipe-target-shale input { border-bottom-color: #6d897a; }

.recipe-target-cell input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f5;
  color: var(--danger);
}

.recipe-target-cell input:disabled {
  border-color: #d1d4cd;
  background: transparent;
  -webkit-text-fill-color: #5e6863;
  opacity: 1;
}

.recipe-row-total {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.recipe-row-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.recipe-row-status-pill.is-completed {
  border-color: rgba(33, 118, 84, 0.2);
  background: rgba(33, 118, 84, 0.11);
  color: var(--green-dark);
}

.recipe-row-status-pill.is-active {
  border-color: rgba(240, 166, 58, 0.32);
  background: rgba(240, 166, 58, 0.14);
  color: #85500e;
}

.recipe-row-status-pill.is-draft {
  border-color: rgba(163, 61, 53, 0.2);
  background: rgba(163, 61, 53, 0.075);
  color: #91372f;
}

.recipe-row-status-pill.is-pending {
  border-color: rgba(98, 112, 107, 0.18);
  background: rgba(98, 112, 107, 0.08);
  color: #59665f;
}

.delete-recipe-row-button {
  display: inline-grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(163, 61, 53, 0.15);
  border-radius: 9px;
  background: rgba(163, 61, 53, 0.055);
  color: #8f3730;
  cursor: pointer;
}

.delete-recipe-row-button span {
  font-family: var(--number-font);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.delete-recipe-row-button small {
  display: none;
}

.delete-recipe-row-button:disabled {
  border-color: transparent;
  background: transparent;
  color: #abb0ac;
  cursor: not-allowed;
}

.recipe-empty-state {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 5px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.recipe-empty-state strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.recipe-empty-state span {
  font-size: 12px;
  font-weight: 750;
}

.daily-recipe-footer {
  margin-top: 16px;
}

.operator-batch-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.operator-batch-context > span {
  white-space: nowrap;
}

.operator-batch-context .operator-production-date {
  min-height: 22px;
  margin-left: 0;
  padding: 0 7px;
  transform: none;
  border-color: rgba(33, 118, 84, 0.2);
  background: rgba(33, 118, 84, 0.08);
  color: var(--green-dark);
  font-size: 10px;
}

.batch-banner h2 > small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.38em;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.batch-banner h2 > small strong {
  color: #f4ae48;
  font-family: var(--number-font);
  font-size: 1.25em;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.draft-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  text-align: center;
}

.draft-dialog::backdrop {
  background: rgba(11, 16, 14, 0.66);
  backdrop-filter: blur(3px);
}

.draft-dialog h2 {
  margin: 18px 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.draft-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1020px) {
  .target-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-page-intro {
    align-items: start;
  }
}

@media (orientation: portrait), (max-width: 820px) {
  .batch-actions {
    width: 100%;
    grid-template-columns: minmax(160px, 0.38fr) minmax(300px, 0.62fr);
  }

  .recipe-panel {
    padding: 21px 20px 19px;
  }

  .recipe-main {
    padding-top: 23px;
  }

  .recipe-page-intro h1 {
    font-size: clamp(34px, 6vw, 46px);
  }

  .recipe-server-date {
    min-width: 190px;
  }

  .batch-detail-recipe,
  .batch-detail-timeline {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .batch-target-set-time {
    padding-left: 0;
  }
}

@media (max-width: 660px) {
  .batch-progress-total > span {
    display: none;
  }

  .batch-progress-total > i {
    font-size: 22px;
  }

  .batch-progress-total > b {
    font-size: clamp(26px, 7.8vw, 34px);
  }

  .material-count {
    gap: 5px;
  }

  .material-count strong {
    font-size: clamp(43px, 12.8vw, 55px);
  }

  .material-count > i {
    font-size: 20px;
  }

  .material-count > b {
    padding-bottom: 2px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .material-count > b.number-long {
    font-size: clamp(23px, 6.8vw, 29px);
  }

  .material-count > b.number-very-long {
    font-size: clamp(19px, 5.7vw, 24px);
  }

  .material-button .material-name {
    margin-top: 4px;
    font-size: clamp(23px, 6.7vw, 29px);
  }

  .material-button .tap-hint {
    display: inline-flex;
    min-height: 18px;
    margin-top: 5px;
    padding: 1px 7px;
    font-size: 9px;
    line-height: 1.15;
  }

  .batch-actions {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 7px;
  }

  .undo-button,
  .batch-actions .complete-button {
    min-height: 56px;
    padding: 6px 7px 8px;
    border-radius: 14px;
  }

  .undo-label {
    font-size: clamp(15px, 4.4vw, 18px);
    line-height: 1;
  }

  .undo-meta {
    font-size: 9px;
  }

  .batch-actions .complete-label {
    font-size: clamp(19px, 5.6vw, 23px);
  }

  .batch-actions .complete-meta {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .recipe-panel {
    margin-bottom: 14px;
    padding: 19px 14px 15px;
    border-radius: 16px;
  }

  .operator-production-date {
    min-height: 20px;
    margin-left: 4px;
    padding: 0 6px;
    transform: translateY(-2px);
    font-size: 9px;
  }

  .recipe-main {
    padding: 17px max(12px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .recipe-page-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .recipe-page-intro h1 {
    margin-bottom: 5px;
    font-size: clamp(29px, 8.5vw, 36px);
  }

  .recipe-page-intro > div:first-child > p:last-child {
    font-size: 11px;
    line-height: 1.4;
  }

  .recipe-server-date {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 11px;
    text-align: center;
  }

  .recipe-server-date strong {
    font-size: 13px;
  }

  .recipe-date-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-radius: 14px;
  }

  .recipe-date-field {
    grid-row: 1;
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 3px 10px;
  }

  .recipe-date-field input {
    min-height: 40px;
    font-size: 23px;
  }

  .date-step-button,
  .today-button {
    min-height: 44px;
    border-radius: 10px;
    font-size: 11px;
  }

  .date-step-button:first-child {
    grid-row: 2;
    grid-column: 1;
  }

  .today-button {
    grid-row: 2;
    grid-column: 2;
  }

  .date-step-button:last-child {
    grid-row: 2;
    grid-column: 3;
  }

  .date-step-button small {
    display: none;
  }

  .recipe-context-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    padding: 7px 10px;
    line-height: 1.35;
  }

  .recipe-context-batch {
    width: 100%;
    white-space: normal;
  }

  .daily-recipe-panel .recipe-heading h2 {
    max-width: calc(100% - 78px);
    font-size: 25px;
  }

  .daily-recipe-panel .recipe-heading p:last-child {
    max-width: calc(100% - 4px);
    padding-right: 0;
    font-size: 11px;
  }

  .recipe-plan-toolbar {
    min-height: 56px;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 7px 7px 10px;
    border-radius: 12px 12px 0 0;
  }

  .recipe-plan-summary {
    gap: 4px;
    font-size: 10px;
  }

  .recipe-plan-summary > strong {
    font-size: 26px;
  }

  .recipe-plan-summary b {
    font-size: 14px;
  }

  .recipe-plan-summary i {
    display: none;
  }

  .add-recipe-row-button {
    min-height: 42px;
    gap: 5px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .add-recipe-row-button > span {
    font-size: 20px;
  }

  .recipe-table-scroll {
    border-radius: 0 0 12px 12px;
  }

  .recipe-plan-table {
    min-width: 700px;
  }

  .recipe-plan-table th,
  .recipe-plan-table td {
    height: 56px;
    padding: 5px;
  }

  .recipe-plan-table thead th {
    height: 34px;
    font-size: 9px;
  }

  .recipe-plan-table thead th:first-child,
  .recipe-plan-table tbody th {
    width: 85px;
  }

  .recipe-plan-table thead th:nth-last-child(3) {
    width: 66px;
  }

  .recipe-plan-table thead th:nth-last-child(2) {
    width: 92px;
  }

  .recipe-plan-table thead th:last-child {
    width: 60px;
  }

  .recipe-batch-sequence strong {
    font-size: 21px;
  }

  .recipe-batch-sequence span {
    font-size: 10px;
  }

  .recipe-target-cell input {
    height: 40px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: 20px;
  }

  .recipe-row-total {
    font-size: 18px;
  }

  .recipe-row-status-pill {
    min-height: 25px;
    padding: 0 7px;
    font-size: 9px;
  }

  .delete-recipe-row-button {
    width: 38px;
    min-height: 38px;
    border-radius: 8px;
  }

  .daily-recipe-footer {
    margin-top: 12px;
  }

  .operator-batch-context {
    gap: 4px;
    margin-top: 2px;
    font-size: 9px;
  }

  .operator-batch-context > span {
    display: none;
  }

  .operator-batch-context .operator-production-date {
    min-height: 17px;
    padding: 0 5px;
    font-size: 8px;
  }

  .batch-banner h2 > small {
    font-size: 0.34em;
  }

  .recipe-save-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 7px;
  }

  .cancel-bulk-edit-button {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    font-size: 12px;
  }

  .copy-recipe-button,
  .recipe-save-actions .save-target-button {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    font-size: 12px;
  }

  .admin-floating-nav {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .admin-menu-toggle {
    min-width: 98px;
    min-height: 52px;
    padding: 0 15px;
    border-radius: 15px;
    font-size: 14px;
  }

  .admin-menu-panel {
    width: min(270px, calc(100vw - 24px));
    border-radius: 16px;
  }

  .admin-menu-panel a {
    min-height: 58px;
  }

  .admin-body .toast {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }

  .draft-dialog {
    padding: 24px 18px;
  }

  .draft-dialog .dialog-actions {
    gap: 8px;
  }

  .recipe-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .recipe-heading h2 {
    font-size: 25px;
  }

  .recipe-heading p:last-child {
    line-height: 1.45;
  }

  .recipe-status {
    position: absolute;
    top: 17px;
    right: 13px;
    min-height: 29px;
    padding: 0 10px;
    font-size: 10px;
  }

  .target-input-grid {
    gap: 8px;
    margin-top: 15px;
  }

  .target-input-card {
    gap: 4px;
    padding: 10px 11px 9px;
    border-radius: 11px;
  }

  .target-input-control input {
    min-height: 44px;
    font-size: 34px;
  }

  .recipe-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 13px;
  }

  .save-target-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .hero-progress > b {
    font-size: clamp(31px, 9vw, 43px);
  }

  .current-breakdown p b {
    font-size: 30px;
  }

  .batch-click-columns,
  .batch-click-item {
    grid-template-columns: 42px 104px minmax(138px, 1fr);
  }

  .batch-click-material {
    min-width: 92px;
    font-size: 11px;
  }

  .batch-click-time {
    font-size: 12px;
  }
}

@media (max-width: 660px) and (max-height: 700px) {
  .material-count strong {
    font-size: clamp(39px, 11.5vw, 49px);
  }

  .material-count > b {
    font-size: clamp(25px, 7.3vw, 31px);
  }

  .material-button .material-name {
    margin-top: 2px;
    font-size: clamp(21px, 6.1vw, 26px);
  }

  .material-button .tap-hint {
    margin-top: 3px;
  }

  .undo-button,
  .batch-actions .complete-button {
    min-height: 52px;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .material-count strong {
    font-size: clamp(34px, 6.8vw, 46px);
  }

  .material-count > i {
    font-size: 18px;
  }

  .material-count > b {
    font-size: clamp(22px, 4.5vw, 30px);
  }

  .material-button .material-name {
    margin-top: 2px;
    font-size: clamp(19px, 3.7vw, 24px);
  }

  .material-button .tap-hint {
    display: inline-flex;
    min-height: 17px;
    margin-top: 3px;
    padding: 1px 6px;
    font-size: 8px;
  }

  .batch-actions {
    width: 100%;
    grid-template-columns: minmax(150px, 0.34fr) minmax(300px, 0.66fr);
    gap: 7px;
  }

  .undo-button,
  .batch-actions .complete-button {
    min-height: 48px;
    padding: 4px 9px 6px;
    border-radius: 12px;
  }

  .undo-label {
    font-size: 16px;
  }

  .undo-meta,
  .batch-actions .complete-meta {
    font-size: 9px;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .admin-body[data-admin-page="overview"] .admin-topbar-inner {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  }

  .admin-body[data-admin-page="overview"] .admin-topbar-inner .brand-lockup,
  .admin-body[data-admin-page="overview"] .admin-topbar .outline-link {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .admin-mobile-title {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar-inner .header-actions {
    position: static;
    margin-left: auto;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status {
    display: inline-flex;
    min-height: 32px;
    gap: 7px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 850;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar #connectionText {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status::after {
    content: "连接中";
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status.is-online::after {
    content: "实时";
  }

  .admin-body[data-admin-page="overview"] .admin-topbar .connection-status.is-offline::after {
    content: "离线";
  }

  .admin-body[data-admin-page="overview"] .admin-main {
    padding-top: 12px;
  }

  .admin-body[data-admin-page="overview"] .admin-intro {
    display: none;
  }
}

@media (max-width: 660px), (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .admin-body[data-admin-page="overview"] .admin-topbar-inner .header-actions {
    margin-right: 44px;
  }

  .admin-body[data-admin-page="overview"] .admin-floating-nav {
    top: calc(env(safe-area-inset-top) + 12px);
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .admin-body[data-admin-page="overview"] .admin-menu-toggle {
    order: -1;
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    padding: 0;
    border-radius: 11px;
  }

  .admin-body[data-admin-page="overview"] .admin-menu-toggle > span:last-child {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .admin-menu-toggle-icon {
    width: 16px;
  }

  .admin-body[data-admin-page="overview"] .admin-menu-panel {
    width: min(270px, calc(100vw - 20px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Configurable materials · v1.9 */

.material-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  grid-template-rows: none;
  align-content: stretch;
}

.material-grid[data-material-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.material-button,
.material-button.is-short {
  border-color: #aeb5b1;
  border-top-color: #7e8882;
  background: linear-gradient(145deg, #eef0ee 0%, #cfd4d0 100%);
  color: #17211e;
}

.material-button:disabled {
  filter: none;
  opacity: 0.72;
}

.material-button.is-complete,
.material-button.is-complete:disabled {
  border-color: #164d39;
  border-top-color: #8fc9ae;
  background: linear-gradient(145deg, #2d795b 0%, #17583f 100%);
  box-shadow: 0 18px 42px rgba(18, 77, 55, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -6px 0 rgba(0, 0, 0, 0.15);
  color: #fff;
  filter: none;
  opacity: 1;
}

.material-button.is-complete .tap-hint {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.material-button.is-zero-target,
.material-button.is-zero-target:disabled {
  border-color: #c5cac7;
  border-top-color: #aeb5b1;
  background: linear-gradient(145deg, #eceeec, #dfe2df);
  color: #606a65;
  filter: none;
  opacity: 0.78;
}

.material-button.is-over {
  border-color: #747f79;
  border-top-color: #48544e;
  background: linear-gradient(145deg, #d7dbd8, #b9c0bc);
  box-shadow: 0 0 0 4px rgba(72, 84, 78, 0.13), 0 18px 42px rgba(17, 28, 25, 0.13);
}

.material-button.is-over .tap-hint {
  border-color: rgba(44, 55, 50, 0.2);
  background: rgba(44, 55, 50, 0.1);
  color: #26332d;
}

.material-button:focus-visible {
  outline: 4px solid #216b50;
  outline-offset: 4px;
}

.material-name {
  max-width: 100%;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.production-config-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 16px;
  background: rgba(248, 248, 243, 0.8);
  box-shadow: 0 12px 34px rgba(17, 28, 25, 0.055), inset 0 1px 0 #fff;
}

.production-config-tabs a {
  display: grid;
  min-height: 66px;
  align-items: center;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 11px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
}

.production-config-tabs a > span {
  grid-row: 1 / -1;
  font-family: var(--number-font);
  font-size: 25px;
  font-weight: 950;
}

.production-config-tabs a strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.production-config-tabs a small {
  font-size: 11px;
  font-weight: 750;
}

.production-config-tabs a[aria-current="page"],
.production-config-tabs a:hover,
.production-config-tabs a:focus-visible {
  border-color: rgba(32, 104, 77, 0.18);
  background: #1b2a25;
  color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.production-config-tabs a[aria-current="page"] strong,
.production-config-tabs a:hover strong,
.production-config-tabs a:focus-visible strong {
  color: #fff;
}

.material-config-panel {
  scroll-margin-top: 22px;
  margin-bottom: 28px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 20px;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 20px 54px rgba(17, 28, 25, 0.075), inset 0 1px 0 #fff;
}

.material-config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.material-config-heading h2,
.batch-config-section-heading h2 {
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.material-config-heading p:last-child,
.batch-config-section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.material-config-count {
  display: grid;
  min-width: 120px;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 13px;
  background: #eef0ec;
  color: var(--muted);
}

.material-config-count strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.material-config-count span {
  font-size: 12px;
  font-weight: 850;
}

.material-config-count small {
  grid-column: 1 / -1;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

.material-config-list {
  display: grid;
  gap: 8px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.material-config-item {
  display: grid;
  min-height: 68px;
  align-items: center;
  grid-template-columns: 50px minmax(190px, 1fr) auto auto;
  gap: 10px;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 12px;
  background: linear-gradient(120deg, #f4f5f1, #fff);
}

.material-config-order {
  color: #7b8580;
  font-family: var(--number-font);
  font-size: 21px;
  font-weight: 950;
}

.material-config-main-field {
  min-width: 0;
}

.material-name-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.material-name-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.material-name-field input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #ccd1cd;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.material-name-field input:focus {
  border-color: #226b50;
  outline: 3px solid rgba(34, 107, 80, 0.13);
}

.material-name-field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff8f6;
}

.material-id-caption {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 3px 0 0 121px;
  color: #929a95;
  font-family: var(--number-font);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-reorder-actions {
  display: flex;
  gap: 5px;
}

.material-reorder-actions button,
.remove-material-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(17, 28, 25, 0.13);
  border-radius: 9px;
  background: #ecefeb;
  color: #3d4943;
  font-weight: 950;
  cursor: pointer;
}

.material-reorder-actions button:disabled,
.remove-material-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.remove-material-button {
  min-width: 64px;
  background: #f2f1ed;
  color: #59645e;
  font-size: 11px;
}

.material-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}

.add-material-button,
.save-material-button,
.sync-recipe-row-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(30, 92, 69, 0.22);
  border-radius: 10px;
  background: #e4e8e4;
  color: #26342e;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.add-material-button > span {
  margin-right: 6px;
  font-family: var(--number-font);
  font-size: 20px;
}

.material-config-save {
  display: flex;
  align-items: center;
  gap: 13px;
}

.material-config-save > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.save-material-button {
  min-width: 180px;
  background: #1e674b;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  color: #fff;
}

.add-material-button:disabled,
.save-material-button:disabled,
.sync-recipe-row-button:disabled {
  background: #d4d7d2;
  box-shadow: none;
  color: #8a918d;
  cursor: not-allowed;
}

.batch-config-section {
  scroll-margin-top: 18px;
}

.batch-config-section-heading {
  margin: 0 2px 15px;
  text-align: center;
}

.recipe-plan-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.recipe-plan-table th,
.recipe-plan-table td {
  min-width: 112px;
}

.recipe-plan-table thead th:first-child,
.recipe-plan-table tbody th {
  min-width: 105px;
}

.recipe-plan-table thead th:nth-last-child(3),
.recipe-plan-table td:nth-last-child(3) {
  min-width: 78px;
}

.recipe-plan-table thead th:nth-last-child(2),
.recipe-plan-table td:nth-last-child(2) {
  min-width: 105px;
}

.recipe-plan-table thead th:last-child,
.recipe-plan-table td:last-child {
  min-width: 72px;
}

.recipe-target-cell.is-unavailable {
  color: #a6aca8;
  font-family: var(--number-font);
  font-size: 19px;
  font-weight: 900;
}

.recipe-target-cell input {
  border-bottom-color: #89928d;
}

.recipe-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sync-recipe-row-button {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 9px;
}

.recipe-row-status-pill.is-legacy {
  border-color: rgba(72, 86, 79, 0.18);
  background: rgba(72, 86, 79, 0.1);
  color: #47554e;
}

.material-totals {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.material-total-item::before {
  background: #89928d !important;
}

.current-breakdown {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.material-bar-label i,
.chart-legend i {
  background: #aab2ad;
}

.material-bar-progress {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  appearance: none;
  border: 0;
  background: transparent;
}

.material-bar-progress::-webkit-progress-bar {
  background: transparent;
}

.material-bar-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #66716b, #b4bcb7);
}

.material-bar-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #66716b, #b4bcb7);
}

.current-breakdown > div.is-complete {
  background: linear-gradient(145deg, #2d795b, #17583f);
  color: #fff;
}

.current-breakdown > div.is-complete span,
.current-breakdown > div.is-complete small,
.current-breakdown > div.is-complete p b,
.current-breakdown > div.is-complete p i {
  color: rgba(255, 255, 255, 0.82);
}

.current-breakdown > div.is-zero-target {
  background: #e9ebe8;
  color: #68716c;
}

.material-bar-chart {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-table {
  width: max-content;
  min-width: 100%;
}

.history-progress-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.history-progress-value i {
  color: #a2aaa5;
  font-style: normal;
}

.history-progress-value b {
  color: var(--muted);
  font-size: 0.62em;
}

.batch-material-cell.is-unavailable {
  color: #a9afab;
}

@media (max-width: 899px) {
  .material-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  }

  .material-config-panel {
    padding: 21px 18px;
  }

  .material-config-item {
    grid-template-columns: 42px minmax(150px, 1fr) auto auto;
  }

  .material-name-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .material-id-caption {
    margin-left: 0;
  }

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

@media (max-width: 660px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    align-content: start;
  }

  .material-grid[data-material-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-button {
    min-height: 116px;
  }

  .production-config-tabs {
    position: sticky;
    z-index: 4;
    top: 6px;
    gap: 5px;
    margin-bottom: 12px;
    padding: 5px;
    border-radius: 13px;
    backdrop-filter: blur(14px);
  }

  .production-config-tabs a {
    min-height: 52px;
    gap: 1px 7px;
    padding: 7px 9px;
  }

  .production-config-tabs a > span {
    font-size: 19px;
  }

  .production-config-tabs a strong {
    font-size: 12px;
  }

  .production-config-tabs a small {
    font-size: 8px;
  }

  .material-config-panel {
    margin-bottom: 20px;
    padding: 17px 12px 14px;
    border-radius: 16px;
  }

  .material-config-heading {
    gap: 8px;
  }

  .material-config-heading h2,
  .batch-config-section-heading h2 {
    font-size: 27px;
  }

  .material-config-heading p:last-child,
  .batch-config-section-heading p:last-child {
    font-size: 10px;
    line-height: 1.4;
  }

  .material-config-count {
    min-width: 86px;
    padding: 8px 9px;
  }

  .material-config-count strong {
    font-size: 26px;
  }

  .material-config-list {
    gap: 7px;
    margin-top: 14px;
  }

  .material-config-item {
    min-height: 62px;
    grid-template-columns: 30px minmax(0, 1fr) 72px 48px;
    gap: 5px;
    padding: 6px;
    border-radius: 10px;
  }

  .material-config-order {
    font-size: 16px;
  }

  .material-name-field > span,
  .material-id-caption {
    display: none;
  }

  .material-name-field input {
    min-height: 43px;
    padding: 0 9px;
    font-size: 16px;
  }

  .material-reorder-actions {
    gap: 3px;
  }

  .material-reorder-actions button {
    min-width: 34px;
    min-height: 40px;
  }

  .remove-material-button {
    min-width: 46px;
    min-height: 40px;
    padding: 0 4px;
    font-size: 9px;
  }

  .material-config-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 11px;
  }

  .material-config-save {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 0.55fr);
    gap: 7px;
  }

  .material-config-save > span {
    align-self: center;
    font-size: 9px;
    text-align: left;
  }

  .add-material-button,
  .save-material-button {
    min-height: 44px;
  }

  .save-material-button {
    min-width: 0;
    padding: 0 8px;
    font-size: 11px;
  }

  .batch-config-section-heading {
    margin-bottom: 10px;
  }

  .recipe-plan-table {
    min-width: 100%;
  }

  .recipe-plan-table th,
  .recipe-plan-table td {
    min-width: 98px;
  }

  .recipe-plan-table thead th:first-child,
  .recipe-plan-table tbody th {
    min-width: 85px;
  }

  .recipe-plan-table thead th:nth-last-child(3),
  .recipe-plan-table td:nth-last-child(3) {
    min-width: 66px;
  }

  .recipe-plan-table thead th:nth-last-child(2),
  .recipe-plan-table td:nth-last-child(2) {
    min-width: 92px;
  }

  .recipe-plan-table thead th:last-child,
  .recipe-plan-table td:last-child {
    min-width: 60px;
  }

  .history-table {
    width: 100%;
    min-width: 0;
  }

  .recipe-row-actions {
    flex-direction: column;
  }

  .sync-recipe-row-button {
    min-height: 30px;
  }

  .history-table .batch-summary-row > .batch-material-cell {
    display: none;
  }

  .history-table .batch-summary-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .material-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-rows: none;
  }
}

/* Keep configurable 1–8 material batches inside an iPad work surface. */

@media (min-width: 700px) and (max-width: 1199px) and (max-height: 1100px) {
  .operator-header {
    min-height: 68px;
    padding-top: calc(9px + env(safe-area-inset-top));
    padding-bottom: 9px;
  }

  .operator-main {
    min-height: 0;
    align-content: start;
    grid-template-rows: auto auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .batch-banner {
    min-height: 84px;
    border-radius: 16px;
  }

  .batch-banner > div {
    padding: 7px 14px;
  }

  .batch-banner .section-kicker {
    display: none;
  }

  .batch-banner h2 {
    font-size: 34px;
    line-height: 1;
  }

  .operator-batch-context {
    margin-top: 3px;
  }

  .batch-total strong {
    font-size: 50px;
  }

  .batch-progress-total > i {
    font-size: 29px;
  }

  .batch-progress-total > b {
    font-size: 38px;
  }

  .material-grid {
    gap: 12px;
  }

  .material-button {
    min-height: 150px;
    padding: 12px 10px;
    border-top-width: 5px;
    border-radius: 15px;
  }

  .material-button::after {
    inset: 6px;
    border-radius: 10px;
  }

  .material-count strong {
    font-size: 62px;
  }

  .material-count > i {
    font-size: 25px;
  }

  .material-count > b {
    font-size: 36px;
  }

  .material-button .material-name {
    margin-top: 6px;
    font-size: 29px;
  }

  .material-button .tap-hint {
    min-height: 22px;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 10px;
  }

  .operator-footer {
    min-height: 0;
    padding-top: 7px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }

  .operator-note {
    display: none;
  }

  .undo-button,
  .batch-actions .complete-button {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 8px;
  }
}

@media (min-width: 700px) and (max-width: 899px) and (orientation: portrait) {
  .material-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) and (max-height: 820px) {
  .operator-header {
    min-height: 60px;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .operator-main {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .batch-banner {
    min-height: 72px;
  }

  .batch-banner h2 {
    font-size: 30px;
  }

  .batch-total strong {
    font-size: 44px;
  }

  .batch-progress-total > i {
    font-size: 26px;
  }

  .batch-progress-total > b {
    font-size: 34px;
  }

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

  .material-button {
    min-height: 128px;
    padding: 9px 8px;
  }

  .material-count strong {
    font-size: 54px;
  }

  .material-count > i {
    font-size: 22px;
  }

  .material-count > b {
    font-size: 32px;
  }

  .material-button .material-name {
    margin-top: 4px;
    font-size: 25px;
  }

  .material-button .tap-hint {
    min-height: 20px;
    margin-top: 4px;
    font-size: 9px;
  }

  .operator-footer {
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .undo-button,
  .batch-actions .complete-button {
    min-height: 52px;
  }
}

/* Material silo fill · v1.9.3 */

.material-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.material-fill-body {
  fill: #55aa7f;
  filter: drop-shadow(0 -8px 18px rgba(28, 114, 80, 0.2));
}

.material-fill-surface {
  opacity: 0.92;
  stroke: #c9f2df;
  stroke-linecap: round;
  stroke-width: 2.2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 3px rgba(10, 70, 48, 0.38));
}

.material-fill-segments {
  fill: none;
  opacity: 0.76;
  pointer-events: none;
  stroke: rgba(235, 255, 245, 0.78);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 1199px), (max-height: 1100px) {
  .material-fill-segments {
    stroke-width: 0.6px;
  }

}

.material-button[data-fill-percent="0"] .material-fill-surface {
  opacity: 0;
}

.material-button::before,
.material-button::after {
  z-index: 1;
}

.material-count,
.material-name,
.tap-hint {
  z-index: 2;
}

.material-percent {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid rgba(16, 46, 35, 0.2);
  border-radius: 999px;
  background: rgba(244, 249, 246, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48), 0 3px 10px rgba(15, 35, 26, 0.14);
  color: #174a36;
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 6px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-button .material-name {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48), 0 3px 12px rgba(255, 255, 255, 0.36);
}

.material-button:not(:disabled):active .material-fill-body,
.material-button.is-pressed .material-fill-body {
  fill: #64b98e;
}

.material-button.is-complete,
.material-button.is-complete:disabled {
  border-color: #266c52;
  border-top-color: #8fd1b0;
  background: linear-gradient(145deg, #eef0ee 0%, #cfd4d0 100%);
  color: #10251d;
}

.material-button.is-complete .material-fill-body {
  fill: #4ca477;
}

.material-button.is-complete .material-percent {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(14, 67, 47, 0.58);
  color: #effff7;
}

.material-button.is-zero-target .material-percent,
.material-button.is-over .material-percent {
  border-color: rgba(37, 50, 44, 0.18);
  background: rgba(247, 249, 247, 0.78);
  color: #34433d;
}

.material-button.is-complete .tap-hint {
  border-color: rgba(16, 68, 48, 0.2);
  background: rgba(245, 255, 250, 0.56);
  color: #0b4b32;
}

.material-button.is-over .material-fill-body {
  fill: #737f79;
}

.material-button.is-over .material-fill-surface {
  stroke: #e2e7e4;
}

@media (max-width: 1199px), (max-height: 1100px) {
  .material-percent {
    top: 3px;
    right: 6px;
    padding: 3px 7px;
    font-size: 11px;
  }
}

/* Compact daily batch list + single-batch bottom drawer · v1.10.0 */

.recipe-batch-list-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 28, 25, 0.11);
  border-radius: 0 0 15px 15px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 16px 35px rgba(17, 28, 25, 0.07);
}

.recipe-batch-list {
  display: grid;
  width: 100%;
  max-height: min(52vh, 560px);
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  scrollbar-color: rgba(33, 118, 84, 0.4) transparent;
  scrollbar-width: thin;
}

.recipe-batch-list:empty {
  display: none;
}

.recipe-batch-list-item {
  width: 100%;
  min-width: 0;
}

.recipe-batch-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 74px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(249, 249, 245, 0.98), rgba(239, 241, 237, 0.95));
  box-shadow: inset 4px 0 0 #909994;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.recipe-batch-card:hover {
  border-color: rgba(33, 118, 84, 0.28);
  background: #fff;
}

.recipe-batch-card:focus-visible {
  outline: 4px solid rgba(233, 155, 45, 0.38);
  outline-offset: 2px;
}

.recipe-batch-list-item.is-active .recipe-batch-card {
  border-color: rgba(230, 151, 44, 0.32);
  box-shadow: inset 4px 0 0 #e49b32;
}

.recipe-batch-list-item.is-locked .recipe-batch-card {
  background: rgba(231, 234, 229, 0.9);
  box-shadow: inset 4px 0 0 #4f806d;
}

.recipe-batch-card-sequence,
.recipe-batch-card-content,
.recipe-batch-card-action {
  min-width: 0;
}

.recipe-batch-card-sequence {
  display: grid;
  align-content: center;
  gap: 1px;
  padding-right: 10px;
  border-right: 1px solid rgba(17, 28, 25, 0.1);
  color: var(--muted);
}

.recipe-batch-card-sequence > small,
.recipe-batch-card-sequence > i {
  color: #7e8983;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
}

.recipe-batch-card-sequence > span {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.recipe-batch-card-sequence strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.recipe-batch-card-content {
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
}

.recipe-batch-card-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-batch-card-topline > b {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  white-space: nowrap;
}

.recipe-batch-card-materials,
.recipe-batch-card-validation {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-batch-card-validation {
  color: #77827c;
  font-size: 9px;
}

.recipe-batch-card-validation.is-error {
  color: var(--danger);
}

.recipe-batch-card-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(33, 118, 84, 0.18);
  border-radius: 9px;
  background: rgba(33, 118, 84, 0.07);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.batch-editor-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(720px, 100%);
  max-width: none;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.batch-editor-dialog::backdrop {
  background: rgba(8, 18, 14, 0.56);
  backdrop-filter: blur(3px);
}

.batch-editor-sheet {
  display: grid;
  max-height: min(88dvh, 760px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #f6f5ee;
  box-shadow: 0 -26px 70px rgba(4, 13, 10, 0.28);
}

.batch-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 13px;
  border-bottom: 1px solid rgba(17, 28, 25, 0.09);
  background: linear-gradient(120deg, #15231e, #21342c);
  color: #fff;
}

.batch-editor-header .section-kicker {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.batch-editor-header h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.batch-editor-header p:last-child {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 750;
}

.batch-editor-close {
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.batch-editor-close:focus-visible,
.batch-editor-dialog button:focus-visible,
.batch-editor-dialog input:focus-visible {
  outline: 4px solid rgba(239, 168, 63, 0.48);
  outline-offset: 2px;
}

.batch-editor-overview {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(17, 28, 25, 0.08);
  background: rgba(226, 230, 223, 0.62);
}

.batch-editor-overview > div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.batch-editor-overview strong {
  color: var(--green-dark);
  font-family: var(--number-font);
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.batch-editor-overview small {
  font-size: 10px;
}

.batch-editor-body {
  min-height: 0;
  padding: 14px 20px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.batch-editor-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-editor-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(17, 28, 25, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.batch-editor-field.is-invalid {
  border-color: rgba(163, 61, 53, 0.34);
  background: #fff7f4;
}

.batch-editor-field-label {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.batch-editor-field-label strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-editor-field-label small {
  color: #7f8a84;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.batch-editor-input-wrap {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.batch-editor-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 6px;
  border: 1px solid #cfd5ce;
  border-bottom: 4px solid #89938e;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  text-align: center;
}

.batch-editor-input-wrap input[aria-invalid="true"] {
  border-color: var(--danger);
  color: var(--danger);
}

.batch-editor-input-wrap input:disabled {
  border-color: #cfd3cd;
  background: #e7e9e5;
  -webkit-text-fill-color: #68736d;
  opacity: 1;
}

.batch-editor-input-wrap small {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.batch-editor-message {
  min-height: 32px;
  margin: 10px 1px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.batch-editor-message.is-error {
  color: var(--danger);
}

.batch-editor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  gap: 10px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(17, 28, 25, 0.09);
  background: #eeeee8;
}

.batch-editor-dialog.is-primary-only .batch-editor-footer {
  grid-template-columns: minmax(0, 1fr);
}

.batch-editor-secondary-actions {
  display: flex;
  min-width: 0;
  gap: 7px;
}

.batch-editor-footer button {
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.batch-editor-footer .sync-recipe-row-button {
  flex: 1;
  border: 1px solid rgba(17, 28, 25, 0.14);
  background: #fff;
  color: var(--ink);
}

.delete-batch-editor-button {
  flex: 1;
  border: 1px solid rgba(163, 61, 53, 0.2);
  background: rgba(163, 61, 53, 0.06);
  color: #903a33;
}

.confirm-batch-editor-button {
  border: 1px solid rgba(33, 118, 84, 0.28);
  background: #1f674b;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  color: #fff;
}

.batch-editor-footer button:disabled {
  border-color: transparent;
  background: #d1d4cf;
  box-shadow: none;
  color: #858d88;
  cursor: not-allowed;
}

.has-batch-editor {
  overflow: hidden;
}

@media (min-width: 700px) {
  .batch-editor-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .recipe-plan-toolbar {
    min-height: 58px;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 8px 7px 11px;
  }

  .recipe-plan-summary {
    gap: 4px;
    font-size: 10px;
  }

  .recipe-plan-summary > strong {
    font-size: 27px;
  }

  .recipe-plan-summary b {
    font-size: 14px;
  }

  .add-recipe-row-button {
    min-height: 44px;
    gap: 5px;
    padding: 0 11px;
    font-size: 11px;
  }

  .recipe-batch-list {
    max-height: 350px;
    gap: 6px;
    padding: 6px;
  }

  .recipe-batch-card {
    min-height: 76px;
    grid-template-columns: 62px minmax(0, 1fr) 58px;
    gap: 8px;
    padding: 8px;
  }

  .recipe-batch-card-sequence {
    padding-right: 7px;
  }

  .recipe-batch-card-sequence strong {
    font-size: 24px;
  }

  .recipe-batch-card-action {
    min-height: 36px;
    padding: 0 5px;
    font-size: 9px;
  }

  .batch-editor-sheet {
    max-height: 90dvh;
    border-radius: 18px 18px 0 0;
  }

  .batch-editor-header {
    padding: 13px 13px 10px;
  }

  .batch-editor-header h2 {
    font-size: 22px;
  }

  .batch-editor-header p:last-child {
    max-width: 250px;
  }

  .batch-editor-overview {
    min-height: 52px;
    padding: 6px 13px;
  }

  .batch-editor-overview strong {
    font-size: 28px;
  }

  .batch-editor-body {
    padding: 10px 12px 7px;
  }

  .batch-editor-fields {
    gap: 7px;
  }

  .batch-editor-field {
    gap: 4px;
    padding: 8px;
    border-radius: 10px;
  }

  .batch-editor-input-wrap input {
    height: 48px;
    font-size: 25px;
  }

  .batch-editor-footer {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.78fr);
    gap: 7px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .batch-editor-footer button {
    min-height: 46px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 350px) {
  .recipe-batch-card {
    grid-template-columns: 56px minmax(0, 1fr) 54px;
    gap: 6px;
    padding: 7px;
  }

  .recipe-batch-card-materials {
    font-size: 9px;
  }

  .batch-editor-footer {
    grid-template-columns: 1fr;
  }

  .batch-editor-secondary-actions:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batch-editor-dialog,
  .batch-editor-sheet,
  .recipe-batch-card {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

/* Minimal material-column batch table · v1.10.1 */

.recipe-compact-table-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: min(46vh, 380px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d7dcd6;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: none;
  overscroll-behavior: contain;
  scrollbar-color: rgba(61, 82, 72, 0.34) transparent;
  scrollbar-width: thin;
}

.recipe-compact-table-shell.is-bulk-editing {
  border-color: rgba(33, 118, 84, 0.28);
}

.recipe-compact-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.recipe-compact-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.recipe-compact-table th,
.recipe-compact-table td {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e0e4df;
  border-bottom: 1px solid #e0e4df;
  text-align: center;
  text-overflow: ellipsis;
}

.recipe-compact-table tr > :last-child {
  border-right: 0;
}

.recipe-compact-table thead th {
  height: 35px;
  padding: 3px 2px;
  background: #e9ece8;
  color: #53615a;
  font-size: clamp(8px, 1.1vw, 11px);
  font-weight: 900;
  line-height: 1.05;
  vertical-align: middle;
}

.recipe-compact-table thead th:first-child {
  width: 50px;
  background: #dfe4df;
}

.recipe-compact-table thead th > span {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-compact-table tbody tr {
  height: 46px;
  background: #fff;
  cursor: pointer;
}

.recipe-compact-table tbody tr:nth-child(even) {
  background: #f7f8f5;
}

.recipe-compact-table tbody tr:hover {
  background: #eff4f0;
}

.recipe-compact-table tbody tr:focus-within > * {
  background-color: #eef4ef;
}

.recipe-compact-table tbody tr.is-active {
  box-shadow: inset 3px 0 0 #2f795b;
  background: #f0f6f2;
}

.recipe-compact-table tbody tr.is-completed {
  color: #66736c;
  background: #f4f6f3;
}

.recipe-compact-table tbody tr.is-invalid {
  box-shadow: inset 3px 0 0 #b54b42;
}

.recipe-compact-table tbody th,
.recipe-compact-table tbody td {
  height: 46px;
  padding: 0 2px;
  color: #18231f;
  font-family: var(--number-font);
  font-size: clamp(13px, 2.1vw, 18px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-compact-table tbody td {
  letter-spacing: -0.035em;
}

.recipe-compact-table tbody td.is-long-value {
  font-size: clamp(9px, 1.45vw, 13px);
  letter-spacing: -0.07em;
}

.recipe-compact-table tbody th {
  width: 50px;
  padding: 0;
  background: rgba(226, 230, 225, 0.58);
}

.recipe-compact-table tbody th button {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17231f;
  font: inherit;
  cursor: pointer;
}

.bulk-row-sequence {
  display: grid;
  width: 100%;
  height: 46px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.bulk-row-sequence.has-delete {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.bulk-row-sequence > strong {
  min-width: 0;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
}

.bulk-row-sequence .bulk-row-delete {
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8f3730;
  font-family: var(--number-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.bulk-row-delete:focus-visible,
.bulk-plan-input:focus-visible,
.edit-all-batches-button:focus-visible,
.cancel-bulk-edit-button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(224, 147, 43, 0.72);
  outline-offset: -2px;
}

.recipe-bulk-input-cell {
  padding: 2px !important;
}

.bulk-plan-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 38px;
  padding: 0 2px;
  border: 1px solid #cbd3cc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: clamp(11px, 1.8vw, 16px);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-align: center;
}

.bulk-plan-input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f5;
  color: var(--danger);
}

.bulk-plan-input:disabled {
  background: transparent;
  color: #66736c;
  -webkit-text-fill-color: #66736c;
  opacity: 1;
}

.bulk-plan-input::-webkit-inner-spin-button,
.bulk-plan-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.recipe-compact-table tbody th button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(224, 147, 43, 0.58);
  outline-offset: -3px;
}

.recipe-compact-table tbody th strong {
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 950;
}

.recipe-compact-table tbody tr:last-child > * {
  border-bottom: 0;
}

.recipe-compact-table-shell.is-bulk-editing .recipe-compact-table thead th:first-child,
.recipe-compact-table-shell.is-bulk-editing .recipe-compact-table tbody th {
  width: 82px;
}

.recipe-compact-table-shell .recipe-empty-state {
  min-height: 104px;
  border-top: 0;
}

@media (max-width: 660px) {
  .recipe-compact-table-shell {
    max-height: 310px;
    border-radius: 0 0 8px 8px;
  }

  .recipe-compact-table thead th,
  .recipe-compact-table thead th:first-child {
    height: 32px;
  }

  .recipe-compact-table thead th {
    padding: 2px 1px;
    font-size: clamp(7px, 2.15vw, 9px);
  }

  .recipe-compact-table thead th:first-child,
  .recipe-compact-table tbody th {
    width: 42px;
  }

  .recipe-compact-table tbody tr,
  .recipe-compact-table tbody th,
  .recipe-compact-table tbody td,
  .recipe-compact-table tbody th button {
    height: 42px;
  }

  .recipe-compact-table tbody th,
  .recipe-compact-table tbody td {
    padding: 0 1px;
    font-size: clamp(11px, 3.3vw, 15px);
  }

  .recipe-compact-table tbody th strong {
    font-size: 17px;
  }

  .recipe-compact-table tbody td.is-long-value {
    font-size: clamp(8px, 2.5vw, 10px);
  }

  .recipe-compact-table-shell.is-bulk-editing .recipe-compact-table tbody tr,
  .recipe-compact-table-shell.is-bulk-editing .recipe-compact-table tbody th,
  .recipe-compact-table-shell.is-bulk-editing .recipe-compact-table tbody td {
    height: 44px;
  }

  .recipe-plan-actions {
    gap: 6px;
  }

  .edit-all-batches-button,
  .add-recipe-row-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  .bulk-row-sequence {
    height: 44px;
  }

  .bulk-row-sequence .bulk-row-delete {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .bulk-plan-input {
    height: 34px;
    padding: 0 1px;
    border-radius: 5px;
    font-size: clamp(10px, 3.1vw, 14px);
  }
}

/* Priority-first admin information architecture · v1.11.0 */

.production-config-tabs a[aria-current] {
  border-color: rgba(32, 104, 77, 0.18);
  background: #1b2a25;
  color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.production-config-tabs a[aria-current] strong {
  color: #fff;
}

.production-config-tabs a:focus-visible {
  outline: 4px solid rgba(233, 155, 45, 0.72);
  outline-offset: 2px;
}

.batch-config-section {
  margin-bottom: 32px;
}

.material-config-details {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  scroll-margin-top: 86px;
}

.material-config-summary {
  position: relative;
  display: grid;
  min-height: 96px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.material-config-summary::-webkit-details-marker {
  display: none;
}

.material-config-summary::marker {
  content: "";
}

.material-config-summary:focus-visible {
  outline: 4px solid rgba(233, 155, 45, 0.42);
  outline-offset: -4px;
}

.material-config-summary .material-config-heading {
  min-width: 0;
}

.material-config-toggle-label {
  display: inline-flex;
  min-width: 92px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(33, 118, 84, 0.2);
  border-radius: 11px;
  background: rgba(33, 118, 84, 0.07);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.material-toggle-open {
  display: none;
}

.material-config-details[open] .material-toggle-closed {
  display: none;
}

.material-config-details[open] .material-toggle-open {
  display: inline;
}

.material-config-details[open] .material-config-summary {
  border-bottom: 1px solid rgba(17, 28, 25, 0.09);
}

.material-config-details > form {
  padding: 0 24px 24px;
}

.material-config-details[data-material-state="dirty"] .material-config-count,
.material-config-details[data-material-state="saving"] .material-config-count {
  border-color: rgba(222, 145, 40, 0.32);
  background: rgba(240, 166, 58, 0.1);
  color: #825316;
}

.material-config-details[data-material-state="conflict"] .material-config-count,
.material-config-details[data-material-state="invalid"] .material-config-count,
.material-config-details[data-material-state="offline"] .material-config-count {
  border-color: rgba(163, 61, 53, 0.26);
  background: rgba(163, 61, 53, 0.07);
  color: var(--danger);
}

.live-hero-metrics,
.history-hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-hero-metrics .hero-metric {
  min-height: 184px;
}

.live-hero-metrics .hero-metric::before {
  background: linear-gradient(90deg, #2c8d66, rgba(50, 150, 111, 0.25));
}

.live-dashboard {
  margin-top: 16px;
}

.live-dashboard .current-panel {
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 134, 97, 0.08), transparent 38%),
    rgba(253, 252, 248, 0.95);
}

.live-dashboard .panel-heading {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}

.live-dashboard .current-breakdown {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.history-hero-metrics {
  margin-top: 20px;
}

.history-hero-metrics .hero-metric {
  min-height: 138px;
  padding-top: 22px;
  padding-bottom: 24px;
  background: rgba(246, 246, 241, 0.9);
  box-shadow: 0 12px 34px rgba(17, 28, 25, 0.06), inset 0 1px 0 #fff;
}

.history-hero-metrics .hero-metric::before {
  background: linear-gradient(90deg, #818b85, rgba(129, 139, 133, 0.22));
}

.history-hero-metrics .hero-metric div {
  margin-top: 10px;
}

.history-hero-metrics .hero-metric strong {
  font-size: clamp(52px, 5.7vw, 72px);
}

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

@media (max-width: 660px) {
  .recipe-body .recipe-main {
    padding-top: 10px;
  }

  .recipe-body .recipe-page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .recipe-body .recipe-page-intro .section-kicker,
  .recipe-body .recipe-page-intro > div:first-child > p:last-child,
  .recipe-body .recipe-server-date span,
  .recipe-body .recipe-server-date small {
    display: none;
  }

  .recipe-body .recipe-page-intro h1 {
    margin: 0;
    font-size: clamp(22px, 6.5vw, 27px);
    line-height: 1;
  }

  .recipe-body .recipe-server-date {
    display: flex;
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    border-radius: 10px;
  }

  .recipe-body .recipe-server-date strong {
    font-size: 11px;
  }

  .recipe-body .production-config-tabs {
    top: 4px;
    margin-bottom: 8px;
    padding: 4px;
  }

  .recipe-body .production-config-tabs a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }

  .recipe-body .production-config-tabs a > span,
  .recipe-body .production-config-tabs a small {
    display: none;
  }

  .recipe-body .production-config-tabs a strong {
    font-size: 13px;
  }

  .recipe-body .batch-config-section,
  .recipe-body .material-config-details {
    scroll-margin-top: 70px;
  }

  .recipe-body .batch-config-section {
    margin-bottom: 18px;
  }

  .recipe-body .batch-config-section-heading {
    margin: 0 2px 6px;
    text-align: left;
  }

  .recipe-body .batch-config-section-heading .section-kicker,
  .recipe-body .batch-config-section-heading p:last-child {
    display: none;
  }

  .recipe-body .batch-config-section-heading h2 {
    margin: 0;
    font-size: 21px;
  }

  .recipe-body .recipe-date-toolbar {
    grid-template-columns: 44px minmax(0, 1fr) 72px 44px;
    gap: 5px;
    margin-bottom: 6px;
    padding: 5px;
    border-radius: 12px;
  }

  .recipe-body .recipe-date-field,
  .recipe-body .date-step-button:first-child,
  .recipe-body .today-button,
  .recipe-body .date-step-button:last-child {
    grid-row: auto;
    grid-column: auto;
  }

  .recipe-body .recipe-date-field {
    min-height: 44px;
    gap: 0;
    padding: 2px 6px;
  }

  .recipe-body .recipe-date-field > span {
    display: none;
  }

  .recipe-body .recipe-date-field input {
    min-height: 38px;
    font-size: clamp(16px, 5vw, 20px);
    text-align: center;
  }

  .recipe-body .date-step-button,
  .recipe-body .today-button {
    min-height: 44px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
  }

  .recipe-body .date-step-button span {
    font-size: 18px;
  }

  .recipe-body .recipe-context-strip {
    min-height: 32px;
    align-items: center;
    flex-direction: row;
    gap: 7px;
    margin-bottom: 6px;
    padding: 5px 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .recipe-body .recipe-context-label,
  .recipe-body .recipe-context-batch {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .recipe-body .daily-recipe-panel {
    padding: 12px 11px 11px;
  }

  .recipe-body .daily-recipe-panel .recipe-heading {
    min-height: 32px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .recipe-body .daily-recipe-panel .recipe-heading .section-kicker,
  .recipe-body .daily-recipe-panel .recipe-heading p:last-child {
    display: none;
  }

  .recipe-body .daily-recipe-panel .recipe-heading h2 {
    max-width: none;
    margin: 0;
    font-size: 20px;
  }

  .recipe-body .daily-recipe-panel .recipe-status {
    position: static;
    min-height: 28px;
    margin-left: auto;
  }

  .recipe-body .recipe-plan-toolbar {
    margin-top: 7px;
  }

  .recipe-body .material-config-details {
    margin-bottom: 0;
    padding: 0;
    border-radius: 14px;
  }

  .recipe-body .material-config-summary {
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .recipe-body .material-config-summary .section-kicker,
  .recipe-body .material-config-summary .material-config-heading p:last-child {
    display: none;
  }

  .recipe-body .material-config-summary .material-config-heading h2 {
    margin: 0;
    font-size: 20px;
  }

  .recipe-body .material-config-summary .material-config-count {
    min-width: 78px;
    padding: 6px 7px;
  }

  .recipe-body .material-config-summary .material-config-count strong {
    font-size: 22px;
  }

  .recipe-body .material-config-toggle-label {
    min-width: 72px;
    min-height: 44px;
    padding: 0 8px;
    font-size: 10px;
  }

  .recipe-body .material-config-details > form {
    padding: 0 10px 12px;
  }

  .admin-body[data-admin-page="overview"] .live-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body[data-admin-page="overview"] .live-hero-metrics .hero-metric {
    min-height: 112px;
    padding: 13px 8px 14px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard {
    margin-top: 8px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .panel-heading {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    text-align: left;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .panel-heading .section-kicker {
    display: none;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .panel-heading h2 {
    font-size: clamp(21px, 6.5vw, 26px);
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 11px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown > div {
    min-height: 84px;
    gap: 3px;
    padding: 7px 4px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown span {
    font-size: 11px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown strong {
    font-size: clamp(36px, 11vw, 46px);
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown p i {
    font-size: 18px;
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown p b {
    font-size: clamp(22px, 7vw, 29px);
  }

  .admin-body[data-admin-page="overview"] .live-dashboard .current-breakdown > div > small {
    min-height: 16px;
    padding: 2px 5px;
    font-size: 8px;
  }

  .admin-body[data-admin-page="overview"] .history-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .admin-body[data-admin-page="overview"] .history-hero-metrics .hero-metric {
    min-height: 96px;
    padding: 12px 8px 13px;
  }

  .admin-body[data-admin-page="overview"] .history-hero-metrics .hero-metric strong {
    font-size: clamp(40px, 12.5vw, 50px);
  }

  .admin-body[data-admin-page="overview"] .history-hero-metrics .hero-metric div {
    margin-top: 7px;
  }

  .admin-body[data-admin-page="overview"] .visualization-grid {
    margin-top: 10px;
  }

  .admin-body[data-admin-page="overview"] .dashboard-grid,
  .admin-body[data-admin-page="overview"] .history-section {
    margin-top: 12px;
  }
}
