:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --panel: #ffffff;
  --panel-soft: #fbfaf7;
  --line: #d9d8d2;
  --text: #15202b;
  --muted: #667085;
  --blue: #1e5fae;
  --blue-deep: #164a88;
  --blue-soft: #eaf1fb;
  --green: #147d4d;
  --amber: #c98a06;
  --gold: #d8aa4d;
  --gold-bright: #f2d287;
  --gold-dark: #8d6222;
  --login-dark: #10150d;
  --danger: #b42318;
  --radius: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 180ms ease;
}

body.auth-screen {
  min-height: 100vh;
  overflow-x: hidden;
  background: #10160d;
  color: #fff;
}

html.entity-onboarding-route body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #10160d;
  color: #fff;
}

body.work-screen {
  --panel: #fffaf0;
  --panel-soft: #f7f2e7;
  --line: rgba(181, 137, 55, 0.26);
  --text: #101820;
  --muted: #4d5a6d;
  --hv-text: #101820;
  --hv-heading: #101820;
  --hv-label: #354154;
  --hv-muted: #4d5a6d;
  --hv-panel-title: #a97815;
  --hv-content-bg: #f7f2e7;
  --hv-card-bg: #fffaf0;
  --hv-card-border: rgba(181, 137, 55, 0.28);
  --hv-gold: #d8ad4f;
  --hv-gold-soft: #f1dfb8;
  --hv-deep-green: #03160f;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(1, 5, 5, 0.72), rgba(2, 7, 5, 0.88)),
    url("/assets/login/harvestor-bg-2026.png") center bottom / cover no-repeat fixed;
  color: #f3e7ca;
}

.work-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(216, 170, 77, 0.22), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.74));
}

body.auth-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 205, 105, 0.34), rgba(255, 177, 61, 0.12) 18%, transparent 38%),
    linear-gradient(90deg, rgba(3, 7, 4, 0.58), rgba(4, 7, 4, 0.2) 48%, rgba(5, 8, 5, 0.42)),
    linear-gradient(180deg, rgba(5, 7, 4, 0.18), rgba(5, 7, 4, 0.72));
  mix-blend-mode: normal;
  animation: sunPulse 7s ease-in-out infinite alternate;
}

html.entity-onboarding-route body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 5, 0.76), rgba(8, 8, 6, 0.22) 52%, rgba(4, 6, 4, 0.36)),
    linear-gradient(180deg, rgba(5, 7, 4, 0.08), rgba(5, 7, 4, 0.72));
}

.login-bg,
.login-particles {
  display: none;
}

.auth-screen .login-bg {
  display: block;
  position: fixed;
  inset: -3%;
  z-index: -3;
  background: url("/assets/login/harvestor-bg-2026.png") center center / cover no-repeat;
  animation: slowCinematicPan 28s ease-in-out infinite alternate;
  will-change: transform;
}

html.entity-onboarding-route .login-bg {
  display: block;
  position: fixed;
  inset: -3%;
  z-index: -3;
  background: url("/assets/login/harvestor-bg-2026.png") center center / cover no-repeat;
  filter: saturate(1.05) contrast(1.04);
}

.auth-screen .login-particles {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 220, 140, 0.2) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.16;
  animation: dustFloat 40s linear infinite;
}

html.entity-onboarding-route .login-particles {
  display: none;
}
button, input, select, a { font: inherit; }
textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.sysadmin-panel {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 170, 77, 0.46);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.sysadmin-panel > .section-head {
  margin: 0;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(216, 170, 77, 0.42);
  background:
    linear-gradient(135deg, rgba(16, 21, 13, 0.98), rgba(18, 63, 43, 0.94)),
    url("/assets/login/harvestor-bg-2026.png") center / cover no-repeat;
  color: #fff7df;
}

.sysadmin-panel > .section-head h2 {
  color: #fff7df;
}

.sysadmin-panel > .section-head .eyebrow {
  color: var(--gold-bright);
}

.sysadmin-console {
  display: grid;
  gap: 16px;
}

.sysadmin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.sysadmin-tabs button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.sysadmin-tabs button.active {
  border-color: rgba(20, 125, 77, 0.32);
  background: #e7f6ed;
  color: var(--green);
}

.sysadmin-card .row-copy {
  gap: 8px;
}

.sysadmin-card {
  border-left: 4px solid var(--amber);
}

.sysadmin-card.is-approved {
  border-left-color: var(--green);
  background: #fbfefb;
}

.sysadmin-card .form-actions {
  gap: 10px;
}

.sysadmin-card .button.primary {
  background: var(--green);
  border: 1px solid var(--green);
}

.sysadmin-card .button.ghost {
  background: #fffdf8;
  border-color: rgba(141, 98, 34, 0.24);
  color: var(--gold-dark);
}

.sysadmin-password-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 28px 34px;
}

.sysadmin-password-brand {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(216, 170, 77, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0, #f6efe0);
}

.sysadmin-password-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.sysadmin-password-brand h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.sysadmin-password-grid {
  display: grid;
  gap: 14px;
}

.sysadmin-password-grid label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.sysadmin-password-grid input {
  min-height: 52px;
  border: 1px solid #c9c4b8;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--text);
  font-size: 18px;
}

.sysadmin-password-grid input:focus {
  outline: 3px solid rgba(216, 170, 77, 0.3);
  border-color: var(--gold-dark);
}

.sysadmin-password-actions {
  justify-content: start;
}

.sysadmin-password-actions .button.primary {
  min-width: 220px;
  min-height: 52px;
  background: var(--green);
  border: 1px solid var(--green);
  color: #ffffff;
  font-weight: 850;
}

.sysadmin-icon-action.button.ghost {
  border-color: rgba(242, 210, 135, 0.5);
  color: #fff7df;
}

@media (max-width: 620px) {
  .sysadmin-panel {
    width: min(calc(100vw - 18px), 1040px);
  }

  .sysadmin-panel > .section-head,
  .sysadmin-password-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sysadmin-password-brand {
    grid-template-columns: 48px 1fr;
  }

  .sysadmin-password-logo {
    width: 48px;
    height: 48px;
  }

  .sysadmin-password-actions .button.primary {
    width: 100%;
  }
}

body.sysadmin-screen {
  background:
    radial-gradient(circle at 78% 5%, rgba(20, 125, 77, 0.28), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(216, 170, 77, 0.18), transparent 25%),
    linear-gradient(135deg, #020504, #07110e 54%, #020303);
  color: #e9f3ea;
}

.sysadmin-screen.work-screen::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(3, 18, 14, 0.08) 55%, rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
}

.sysadmin-screen .shell {
  width: min(1480px, calc(100vw - 28px));
  padding: 14px 0 28px;
  background: transparent;
  box-shadow: none;
}

.sysadmin-screen .shell > .topbar {
  display: none;
}

.sysadmin-screen .sysadmin-panel {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(216, 170, 77, 0.14);
  border-radius: 8px;
  background: rgba(4, 12, 10, 0.82);
  color: #e9f3ea;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

.sysadmin-screen .sysadmin-panel > .section-head {
  display: none;
}

.sysadmin-screen .sysadmin-console {
  display: block;
}

.hv-admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 28px);
  background:
    radial-gradient(circle at 38% 0%, rgba(20, 125, 77, 0.16), transparent 32%),
    rgba(1, 5, 4, 0.9);
}

.hv-admin-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 22px 16px 18px;
  border-right: 1px solid rgba(242, 210, 135, 0.12);
  background:
    radial-gradient(circle at 28% 10%, rgba(75, 209, 126, 0.11), transparent 24%),
    linear-gradient(90deg, rgba(216, 170, 77, 0.11), transparent 1px) left top / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(1, 18, 13, 0.86)),
    url("/assets/login/harvestor-bg-2026.png") 28% bottom / 360px auto no-repeat;
  box-shadow: inset -1px 0 0 rgba(86, 210, 117, 0.06);
}

.hv-admin-sidebar::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(1, 12, 8, 0.96) 58%);
  pointer-events: none;
}

.hv-admin-brand,
.hv-admin-nav,
.hv-admin-sidebar-card,
.hv-admin-system-ok {
  position: relative;
  z-index: 1;
}

.hv-admin-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(242, 210, 135, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 83, 49, 0.42), rgba(4, 10, 8, 0.68)),
    rgba(255, 255, 255, 0.03);
  color: #f6c85f;
  letter-spacing: 3px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.hv-admin-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.hv-admin-brand span {
  display: block;
  font-size: 11px;
  color: #f8eed3;
}

.hv-admin-brand-copy {
  min-width: 0;
}

.hv-admin-sidebar-live {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(86, 210, 117, 0.28);
  border-radius: 999px;
  background: rgba(21, 97, 59, 0.18);
  color: #75e69b !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.hv-admin-sidebar-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56d275;
  box-shadow: 0 0 12px rgba(86, 210, 117, 0.8);
}

.hv-admin-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 14px rgba(242, 198, 93, 0.2));
}

.hv-admin-nav {
  display: grid;
  gap: 7px;
}

.hv-admin-nav-group {
  margin: 8px 8px 2px;
  color: #75857b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hv-admin-nav button,
.hv-admin-tabbar button,
.hv-admin-outline,
.hv-admin-icon-button,
.hv-admin-row-action,
.hv-admin-actions button,
.hv-admin-hero-actions button,
.hv-admin-gold-link,
.hv-admin-danger-link,
.hv-admin-primary {
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0;
}

.hv-admin-nav button {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(0, 0, 0, 0.1);
  color: #d7dfd7;
  font-weight: 760;
  text-align: left;
  overflow: hidden;
}

.hv-admin-nav button::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.hv-admin-nav button.active,
.hv-admin-nav button:hover {
  border-color: rgba(82, 221, 139, 0.42);
  background:
    radial-gradient(circle at 18% 50%, rgba(86, 210, 117, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(15, 83, 49, 0.9), rgba(4, 42, 31, 0.72));
  color: #ffffff;
  box-shadow: 0 0 30px rgba(20, 125, 77, 0.18);
}

.hv-admin-nav button.active::before {
  background: linear-gradient(180deg, #f2d287, #4fd77e);
  box-shadow: 0 0 16px rgba(242, 210, 135, 0.55);
}

.hv-admin-nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 170, 77, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 210, 135, 0.1), rgba(86, 210, 117, 0.05)),
    rgba(3, 10, 8, 0.72);
  color: #f2d287;
}

.hv-admin-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hv-admin-nav button.active .hv-admin-nav-icon,
.hv-admin-nav button:hover .hv-admin-nav-icon {
  border-color: rgba(242, 210, 135, 0.58);
  background: rgba(242, 210, 135, 0.12);
  color: #f8d978;
}

.hv-admin-nav-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hv-admin-nav-text strong,
.hv-admin-nav-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-admin-nav-text strong {
  color: inherit;
  font-size: 14px;
}

.hv-admin-nav-text small {
  color: #8d9c92;
  font-size: 11px;
  font-weight: 700;
}

.hv-admin-nav button.active .hv-admin-nav-text small,
.hv-admin-nav button:hover .hv-admin-nav-text small {
  color: #b8d6c0;
}

.hv-admin-nav-badge {
  min-width: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(242, 210, 135, 0.24);
  border-radius: 999px;
  background: rgba(242, 210, 135, 0.1);
  color: #f2d287;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.hv-admin-sidebar-card {
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(242, 210, 135, 0.22);
  border-radius: 8px;
  background: rgba(5, 16, 12, 0.74);
}

.hv-admin-field-visual {
  height: 86px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.52)),
    url("/assets/login/harvestor-bg-2026.png") center bottom / cover no-repeat;
}

.hv-admin-brandline {
  margin: 0;
  color: #f2c65d;
  font-size: 18px;
  letter-spacing: 8px;
}

.hv-admin-sidebar-card span,
.hv-admin-system-ok {
  color: #d9e2d9;
  font-size: 13px;
}

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

.hv-admin-sidebar-metrics small {
  display: grid;
  gap: 1px;
  padding: 8px;
  border: 1px solid rgba(242, 210, 135, 0.13);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #9baa9e;
  font-size: 11px;
}

.hv-admin-sidebar-metrics b {
  color: #f8eed3;
  font-size: 16px;
}

.hv-admin-system-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hv-admin-system-ok span,
.hv-admin-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d275;
  box-shadow: 0 0 14px rgba(86, 210, 117, 0.8);
}

.hv-admin-main {
  min-width: 0;
  padding: 18px 24px 28px;
  background:
    radial-gradient(circle at 55% 0%, rgba(32, 101, 72, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(3, 7, 7, 0.94), rgba(4, 15, 12, 0.94));
}

.hv-admin-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.hv-admin-breadcrumb,
.hv-admin-topbar span,
.hv-admin-card p,
.hv-admin-card small,
.hv-admin-table span,
.hv-admin-stat-list span {
  color: #9aa89e;
}

.hv-admin-breadcrumb {
  margin: 0 0 8px;
  font-size: 13px;
}

.hv-admin-topbar h2 {
  margin: 0 0 4px;
  color: #fbf8ef;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.hv-admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv-admin-global-search {
  position: relative;
  display: block;
}

.hv-admin-global-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hv-admin-global-search input,
.hv-admin-filter-row input,
.hv-admin-filter-row select,
.hv-admin-password-box input {
  min-height: 42px;
  border: 1px solid rgba(242, 210, 135, 0.16);
  border-radius: 7px;
  background: rgba(2, 8, 7, 0.72);
  color: #f4f7f1;
}

.hv-admin-global-search input {
  width: 300px;
  padding: 0 14px;
}

.hv-admin-global-search input:focus,
.hv-admin-filter-row input:focus,
.hv-admin-filter-row select:focus {
  outline: 2px solid rgba(216, 170, 77, 0.26);
  border-color: rgba(242, 210, 135, 0.45);
}

.hv-admin-icon-button,
.hv-admin-outline,
.hv-admin-hero-actions button {
  min-height: 40px;
  border: 1px solid rgba(242, 210, 135, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: #f4dfaa;
  padding: 0 14px;
  font-weight: 760;
}

.hv-admin-identity {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #fff7df;
}

.hv-admin-identity .hv-admin-logo {
  border: 1px solid rgba(216, 170, 77, 0.38);
  border-radius: 50%;
}

.hv-admin-identity strong,
.hv-admin-identity span {
  display: block;
}

.hv-admin-identity span {
  font-size: 12px;
}

.hv-admin-status {
  min-height: 22px;
  margin: 0 0 10px;
  color: #8fa095;
  font-size: 13px;
}

.hv-admin-tabbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(242, 210, 135, 0.13);
}

.hv-admin-tabbar button {
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #d6ded7;
  padding: 0 2px;
  font-weight: 760;
}

.hv-admin-tabbar button.active {
  color: #f4c85f;
  border-color: #f4c85f;
}

.hv-admin-tabbar > span {
  margin-left: auto;
  color: #87958b;
  font-size: 12px;
}

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

.hv-admin-kpi,
.hv-admin-card,
.hv-admin-hero-card {
  border: 1px solid rgba(242, 210, 135, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 31, 27, 0.82), rgba(5, 16, 13, 0.9)),
    rgba(8, 17, 15, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.24);
}

.hv-admin-kpi {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hv-admin-kpi::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  left: 18px;
  top: 18px;
  border-radius: 50%;
  background: rgba(82, 221, 139, 0.16);
  filter: blur(1px);
}

.hv-admin-kpi.tone-gold::before { background: rgba(216, 170, 77, 0.2); }
.hv-admin-kpi.tone-red::before { background: rgba(217, 75, 54, 0.22); }

.hv-admin-kpi span,
.hv-admin-kpi strong,
.hv-admin-kpi small {
  position: relative;
}

.hv-admin-kpi span {
  color: #c3cdc5;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.hv-admin-kpi strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.hv-admin-kpi small {
  color: #72df8d;
}

.hv-admin-dashboard-grid,
.hv-admin-detail-grid,
.hv-admin-user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
}

.hv-admin-page-grid.single {
  display: grid;
  gap: 14px;
}

.hv-admin-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hv-admin-card,
.hv-admin-hero-card {
  padding: 16px;
}

.hv-admin-card.compact {
  padding: 14px;
}

.hv-admin-card h3,
.hv-admin-hero-card h3 {
  margin: 0;
  color: #f8f3e8;
  font-size: 18px;
}

.hv-admin-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}

.hv-admin-card-head h3 span {
  color: #d8aa4d;
  font-size: 14px;
}

.hv-admin-card-head p,
.hv-admin-card p {
  margin: 4px 0 0;
}

.hv-admin-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.hv-admin-filter-row input {
  min-width: 250px;
  padding: 0 12px;
}

.hv-admin-filter-row select {
  padding: 0 30px 0 12px;
}

.hv-admin-workspace-gate {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 8px 0 18px;
}

.hv-admin-workspace-gate label {
  display: grid;
  gap: 8px;
}

.hv-admin-workspace-gate span,
.hv-admin-workspace-required p,
.hv-admin-workspace-picker span,
.hv-admin-workspace-picker small {
  color: rgba(229, 235, 226, 0.68);
}

.hv-admin-workspace-gate select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(216, 170, 77, 0.25);
  border-radius: 8px;
  background: rgba(2, 12, 10, 0.72);
  color: #f7f4e9;
  padding: 0 14px;
}

.hv-admin-workspace-required {
  border: 1px solid rgba(216, 170, 77, 0.24);
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(6, 40, 29, 0.74), rgba(2, 10, 9, 0.86));
  padding: 22px;
}

.hv-admin-workspace-required h4 {
  margin: 0 0 8px;
  color: #f7f4e9;
  font-size: 22px;
}

.hv-admin-workspace-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hv-admin-workspace-picker button {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(216, 170, 77, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #f7f4e9;
  padding: 16px;
}

.hv-admin-workspace-picker button:hover {
  border-color: rgba(216, 170, 77, 0.55);
  background: rgba(20, 83, 55, 0.36);
}

.hv-admin-invite-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid rgba(82, 221, 139, 0.24);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(9, 55, 38, 0.7), rgba(3, 15, 13, 0.84));
}

.hv-admin-invite-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.hv-admin-role-management {
  border-color: rgba(216, 170, 77, 0.24);
}

.hv-admin-role-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.hv-admin-invite-form label,
.hv-admin-role-form label,
.hv-admin-invite-result label {
  display: grid;
  gap: 7px;
}

.hv-admin-invite-form label span,
.hv-admin-role-form label span,
.hv-admin-invite-result label span {
  color: rgba(229, 235, 226, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.hv-admin-invite-form input,
.hv-admin-invite-form select,
.hv-admin-role-form select,
.hv-admin-invite-result input {
  min-height: 42px;
  border: 1px solid rgba(216, 170, 77, 0.24);
  border-radius: 8px;
  background: rgba(2, 12, 10, 0.75);
  color: #f7f4e9;
  padding: 0 12px;
}

.hv-admin-checkline {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.hv-admin-checkline input {
  min-height: 0;
}

.hv-admin-invite-actions {
  display: grid;
  gap: 8px;
  align-content: end;
}

.hv-admin-invite-result {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(216, 170, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.hv-admin-invite-result.is-sensitive {
  border-color: rgba(216, 170, 77, 0.48);
}

.hv-admin-invite-result strong {
  color: #f4c85f;
}

.hv-admin-token-import {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(216, 170, 77, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(17, 56, 38, 0.64), rgba(2, 13, 11, 0.88));
}

.hv-admin-token-import-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  gap: 12px;
}

.hv-admin-token-import-grid.compact {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) minmax(150px, 0.8fr);
}

.hv-admin-rfid-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.hv-admin-token-import.compact-action {
  margin: 0;
}

.hv-admin-token-import label,
.hv-admin-token-assign {
  display: grid;
  gap: 7px;
}

.hv-admin-token-import label span {
  color: rgba(229, 235, 226, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.hv-admin-token-import input,
.hv-admin-token-import select,
.hv-admin-token-import textarea,
.hv-admin-token-toolbar input,
.hv-admin-token-toolbar select,
.hv-admin-token-assign select {
  min-height: 42px;
  border: 1px solid rgba(216, 170, 77, 0.22);
  border-radius: 8px;
  background: rgba(2, 12, 10, 0.78);
  color: #f7f4e9;
  padding: 0 12px;
}

.hv-admin-token-import textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.hv-admin-token-result {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(82, 221, 139, 0.25);
  border-radius: 8px;
  background: rgba(30, 108, 66, 0.2);
}

.hv-admin-token-result strong {
  color: #72e39a;
}

.hv-admin-token-table td strong,
.hv-admin-token-table td span {
  display: block;
}

.hv-admin-token-table td strong {
  color: #f8f4e8;
}

.hv-admin-token-table td span {
  color: rgba(229, 235, 226, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.hv-admin-token-assign {
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
}

.hv-admin-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-admin-token-actions button,
.hv-admin-token-user-list button {
  min-height: 34px;
  border: 1px solid rgba(216, 170, 77, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0dca0;
  font-weight: 760;
}

.hv-admin-token-user-list {
  display: grid;
  gap: 10px;
}

.hv-admin-token-user-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.hv-admin-token-user-list article > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hv-admin-primary {
  min-height: 42px;
  border: 1px solid rgba(82, 221, 139, 0.36);
  background: linear-gradient(135deg, #0f6b43, #0b4d35);
  color: #f8fff9;
  padding: 0 14px;
  font-weight: 820;
}

.hv-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(242, 210, 135, 0.08);
  border-radius: 8px;
}

.hv-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.hv-admin-table th,
.hv-admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(242, 210, 135, 0.08);
  color: #d9e3dc;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.hv-admin-table th {
  color: #b6c0b8;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 760;
}

.hv-admin-table tr:hover td {
  background: rgba(82, 221, 139, 0.035);
}

.hv-admin-table strong,
.hv-admin-table span {
  display: block;
}

.hv-admin-actions {
  white-space: nowrap;
}

.hv-admin-actions button,
.hv-admin-row-action,
.hv-admin-card-footer button {
  min-height: 34px;
  border: 1px solid rgba(216, 170, 77, 0.42);
  background: rgba(216, 170, 77, 0.08);
  color: #f4c85f;
  padding: 0 10px;
  font-weight: 760;
}

.hv-admin-chip,
.hv-admin-role,
.hv-admin-mfa {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.hv-admin-chip.is-ok {
  background: rgba(60, 190, 91, 0.17);
  color: #70e38b;
}

.hv-admin-chip.is-warn {
  background: rgba(216, 170, 77, 0.18);
  color: #f4c85f;
}

.hv-admin-chip.is-danger {
  background: rgba(218, 74, 56, 0.17);
  color: #ff866e;
}

.hv-admin-chip.is-muted,
.hv-admin-mfa.off {
  background: rgba(255, 255, 255, 0.08);
  color: #aeb8b0;
}

.hv-admin-token-support-details {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.hv-admin-token-support-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #d7dfd7;
}

.hv-admin-token-support-details span {
  display: block;
  margin-top: 4px;
  color: #aeb8b0;
  font-size: 12px;
}

.hv-admin-role.role-owner { background: rgba(124, 91, 255, 0.25); color: #bca8ff; }
.hv-admin-role.role-admin { background: rgba(52, 132, 223, 0.22); color: #93c9ff; }
.hv-admin-role.role-supervisor { background: rgba(216, 170, 77, 0.2); color: #f2c65d; }
.hv-admin-role.role-controller { background: rgba(41, 198, 196, 0.18); color: #80e4e1; }
.hv-admin-role.role-worker { background: rgba(255, 255, 255, 0.1); color: #d7dfd7; }

.hv-admin-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #70e38b;
  font-size: 12px;
}

.hv-admin-stat-list {
  display: grid;
  gap: 9px;
}

.hv-admin-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(242, 210, 135, 0.13);
}

.hv-admin-stat-list strong {
  color: #f4f6ee;
  text-align: right;
}

.hv-admin-stat-list .total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(242, 210, 135, 0.2);
  border-bottom: 0;
}

.hv-admin-gold-link,
.hv-admin-danger-link {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(216, 170, 77, 0.45);
  background: rgba(216, 170, 77, 0.06);
  color: #f4c85f;
  font-weight: 820;
  margin-top: 12px;
}

.hv-admin-danger-link {
  border-color: rgba(218, 74, 56, 0.46);
  color: #ff866e;
}

.hv-admin-event-list {
  display: grid;
  gap: 8px;
}

.hv-admin-event-list article {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(242, 210, 135, 0.08);
}

.hv-admin-event-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.hv-admin-event-dot.is-ok { background: rgba(60, 190, 91, 0.22); }
.hv-admin-event-dot.is-warn { background: rgba(216, 170, 77, 0.24); }
.hv-admin-event-dot.is-danger { background: rgba(218, 74, 56, 0.25); }

.hv-admin-event-list strong,
.hv-admin-event-list small,
.hv-admin-event-list time {
  display: block;
}

.hv-admin-event-list time {
  color: #aeb8b0;
  font-size: 12px;
  text-align: right;
}

.hv-admin-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(480px, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.hv-admin-hero-title,
.hv-admin-user-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hv-admin-avatar,
.hv-admin-photo {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(82, 221, 139, 0.26), rgba(216, 170, 77, 0.15));
  color: #f7f2de;
  font-weight: 850;
}

.hv-admin-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.hv-admin-avatar.workspace,
.hv-admin-photo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font-size: 24px;
}

.hv-admin-hero-title p,
.hv-admin-user-header p {
  margin: 4px 0 0;
  color: #b6c0b8;
}

.hv-admin-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hv-admin-hero-meta span,
.hv-admin-profile-grid span {
  display: block;
  color: #91a096;
  font-size: 12px;
}

.hv-admin-hero-meta strong,
.hv-admin-profile-grid strong {
  color: #f4f6ee;
  font-size: 14px;
}

.hv-admin-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
}

.hv-admin-hero-actions.vertical {
  grid-template-columns: 1fr;
}

.hv-admin-hero-actions .danger {
  border-color: rgba(218, 74, 56, 0.44);
  color: #ff866e;
}

.hv-admin-user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #f5f8f1;
  cursor: pointer;
  padding: 0;
}

.hv-admin-role-cards,
.hv-admin-settings-grid,
.hv-admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hv-admin-role-cards article,
.hv-admin-settings-grid article,
.hv-admin-profile-grid div {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(242, 210, 135, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hv-admin-check {
  color: #70e38b;
  font-weight: 820;
}

.hv-admin-dash {
  color: #818e86;
}

.hv-admin-password-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0;
}

.hv-admin-password-box span {
  grid-column: 1 / -1;
  color: #aeb8b0;
  font-size: 12px;
}

.hv-admin-password-box input {
  padding: 0 10px;
}

.hv-admin-password-box button {
  border: 1px solid rgba(216, 170, 77, 0.4);
  border-radius: 7px;
  background: rgba(216, 170, 77, 0.08);
  color: #f4c85f;
  padding: 0 12px;
}

.hv-admin-related {
  display: grid;
  gap: 8px;
}

.hv-admin-related button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #f4f6ee;
  text-align: left;
  cursor: pointer;
}

.hv-admin-related small {
  grid-column: 2;
}

.danger-zone button {
  width: 100%;
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(218, 74, 56, 0.32);
  border-radius: 8px;
  background: rgba(218, 74, 56, 0.08);
  color: #ff866e;
  text-align: left;
}

.danger-zone button span {
  color: #c3aaa7;
  font-size: 12px;
}

.hv-admin-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hv-admin-timeline article {
  display: grid;
  grid-template-columns: 150px 18px 1fr auto;
  gap: 10px;
  align-items: center;
  color: #d9e3dc;
}

.hv-admin-timeline article > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8aa4d;
}

.hv-admin-timeline time,
.hv-admin-timeline small,
.hv-admin-empty {
  color: #9ba89f;
}

.hv-admin-empty {
  padding: 16px;
}

@media (max-width: 1180px) {
  .hv-admin-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .hv-admin-brand-copy,
  .hv-admin-sidebar-live,
  .hv-admin-nav-text,
  .hv-admin-nav-badge,
  .hv-admin-nav-group,
  .hv-admin-sidebar-card {
    display: none;
  }
  .hv-admin-brand {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 54px;
    padding: 8px;
  }
  .hv-admin-nav button {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    min-height: 48px;
    padding: 8px;
  }
  .hv-admin-dashboard-grid,
  .hv-admin-detail-grid,
  .hv-admin-user-grid,
  .hv-admin-hero-card {
    grid-template-columns: 1fr;
  }
  .hv-admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sysadmin-screen .shell {
    width: 100vw;
    padding: 0;
  }
  .hv-admin-shell {
    grid-template-columns: 1fr;
  }
  .hv-admin-sidebar {
    position: static;
    grid-template-rows: auto auto;
    background: rgba(0, 0, 0, 0.84);
  }
  .hv-admin-brand-copy,
  .hv-admin-nav-text,
  .hv-admin-nav-badge,
  .hv-admin-nav-group {
    display: block;
  }
  .hv-admin-sidebar-live {
    display: inline-flex;
  }
  .hv-admin-brand {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
  }
  .hv-admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hv-admin-nav button {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 54px;
  }
  .hv-admin-nav-badge {
    display: none;
  }
  .hv-admin-main {
    padding: 14px;
  }
  .hv-admin-topbar,
  .hv-admin-top-actions,
  .hv-admin-filter-row,
  .hv-admin-workspace-gate,
  .hv-admin-invite-form,
  .hv-admin-role-form,
  .hv-admin-invite-result,
  .hv-admin-token-import-grid,
  .hv-admin-token-import-grid.compact,
  .hv-admin-rfid-action-grid,
  .hv-admin-token-assign,
  .hv-admin-hero-meta,
  .hv-admin-role-cards,
  .hv-admin-settings-grid,
  .hv-admin-profile-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .hv-admin-global-search input,
  .hv-admin-filter-row input {
    width: 100%;
    min-width: 0;
  }
  .hv-admin-kpis {
    grid-template-columns: 1fr;
  }
}

.terminal-kiosk-screen .menu-grid,
.terminal-kiosk-screen .bottom-tabs,
.terminal-kiosk-screen #header-refresh-btn,
.terminal-kiosk-screen #header-terminal-btn,
.terminal-kiosk-screen #sandbox-context-badge,
.terminal-kiosk-screen .terminal-kiosk-head,
.terminal-kiosk-screen #terminal-assignment-summary,
.terminal-kiosk-screen .terminal-scan-form label span,
.terminal-kiosk-screen .terminal-worker-panel .eyebrow,
.terminal-kiosk-screen #terminal-worker-state,
.terminal-kiosk-screen #terminal-token-raw {
  display: none !important;
}

.terminal-kiosk-screen.work-screen .shell {
  width: min(980px, calc(100vw - 24px));
  padding: 10px 0 28px;
}

.terminal-kiosk-screen .context-card {
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid rgba(216, 170, 77, 0.26);
  border-radius: 8px;
}

.terminal-kiosk-screen .context-card .copy {
  display: none;
}

.terminal-kiosk-screen .context-card {
  grid-template-columns: 140px minmax(220px, 1fr) auto;
}

.terminal-kiosk-screen .context-pills {
  justify-content: end;
}

.terminal-kiosk-screen .app-language-switch {
  display: grid;
  width: 292px;
  height: 56px;
  flex: 0 0 292px;
  border: 1px solid rgba(216, 170, 77, 0.44);
  background: rgba(1, 8, 8, 0.86);
}

.terminal-kiosk-screen .app-language-switch button {
  min-height: 56px;
  font-size: 18px;
  font-weight: 950;
}

.terminal-kiosk-shell {
  display: grid;
  gap: 16px;
  padding: 12px 0 0;
}

.terminal-kiosk-head,
.terminal-worker-panel,
.terminal-history {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 170, 77, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.terminal-kiosk-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

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

.terminal-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.terminal-kiosk-head h2,
.terminal-worker-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.terminal-status {
  margin: 0;
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(63, 185, 119, 0.24), transparent 58%),
    #103b29;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.02em;
}

.terminal-clock {
  margin: 0;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(216, 170, 77, 0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 170, 77, 0.16), transparent 58%),
    rgba(1, 8, 8, 0.92);
  color: #f7e4b0;
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.02em;
}

.terminal-scan-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: stretch;
}

.terminal-scan-form label {
  display: block;
}

.terminal-scan-form input {
  width: 100%;
  min-height: 84px;
  border-radius: 8px;
  border: 2px solid rgba(242, 210, 135, 0.7);
  background: #ffffff;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
}

.terminal-scan-form .button {
  min-width: 0;
  min-height: 84px;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
}

.terminal-worker-state {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
}

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

.terminal-action {
  min-height: 138px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #e7e9ed;
  color: #5f6876;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  cursor: not-allowed;
}

.terminal-worker-panel {
  background: rgba(255, 255, 255, 0.96);
}

.terminal-worker-panel h3 {
  font-size: clamp(30px, 4vw, 44px);
}

.terminal-worker-panel .copy {
  font-size: 20px;
}

.terminal-worker-header {
  min-width: 0;
  display: block;
}

.terminal-worker-session {
  margin: 8px 0 0;
  color: rgba(248, 231, 181, 0.9);
  font-size: clamp(16px, 1.7vw, 26px);
  font-weight: 850;
}

.terminal-cancel-selection {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: clamp(110px, 10vw, 160px);
  min-height: clamp(44px, 5.2vh, 64px);
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(246, 211, 111, 0.58);
  border-radius: 14px;
  background: rgba(5, 10, 8, 0.94);
  color: #f8e7b5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-cancel-selection span {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal-cancel-selection strong {
  width: clamp(30px, 2.8vw, 40px);
  height: clamp(30px, 2.8vw, 40px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(246, 211, 111, 0.14);
  color: #8cff76;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1;
}

.terminal-timeout-track {
  position: relative;
  height: 14px;
  margin: 12px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-timeout-track span {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cff76 0%, #f6d36f 64%, #ff9b2f 100%);
  box-shadow: 0 0 18px rgba(140, 255, 118, 0.28);
  transition: width 250ms linear;
}

.terminal-action strong {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.terminal-action span {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 850;
}

.terminal-action span:empty {
  display: none;
}

.terminal-action.active {
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.terminal-action-in.active {
  background: linear-gradient(180deg, #1d9a63, #0f6e45);
}

.terminal-action-out.active {
  background: linear-gradient(180deg, #d47a18, #9f5207);
}

.terminal-recent-list {
  display: grid;
  gap: 8px;
  color: rgba(246, 238, 219, 0.72);
}

.terminal-recent-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .terminal-kiosk-head,
  .terminal-scan-form,
  .terminal-action-grid,
  .terminal-recent-list article {
    grid-template-columns: 1fr;
  }

  .terminal-kiosk-head {
    align-items: start;
  }

  .terminal-kiosk-screen .context-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .terminal-kiosk-screen .work-brand-block {
    display: none;
  }

  .terminal-kiosk-screen .context-pills {
    justify-content: stretch;
  }

  .terminal-kiosk-screen .app-language-switch {
    width: 100%;
    flex-basis: auto;
  }

  .terminal-status {
    min-height: 76px;
    font-size: 24px;
  }

  .terminal-clock {
    min-height: 74px;
    font-size: clamp(30px, 9vw, 46px);
  }

  .terminal-action {
    min-height: 120px;
  }
}

.shell {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 40px;
  display: grid;
  gap: 14px;
}

.auth-screen .shell {
  min-height: 100vh;
  width: min(1120px, calc(100vw - 32px));
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 22px 0 24px;
}

html.entity-onboarding-route .shell {
  width: min(1160px, calc(100vw - 40px));
  min-height: 100vh;
  padding: 22px 0 36px;
  align-items: start;
  gap: 28px;
}

.work-screen .shell {
  width: min(1180px, calc(100vw - 16px));
  min-height: 100vh;
  padding: 0 8px calc(96px + env(safe-area-inset-bottom));
  gap: 0;
  background:
    linear-gradient(180deg, rgba(1, 8, 8, 0.86), rgba(2, 9, 8, 0.62) 68%, rgba(2, 5, 3, 0.24)),
    radial-gradient(circle at 50% 8%, rgba(216, 170, 77, 0.14), transparent 26%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.auth-screen .topbar {
  position: relative;
  align-self: start;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

html.entity-onboarding-route .topbar {
  position: relative;
  align-self: start;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  justify-content: stretch;
  gap: 20px;
  color: rgba(245, 234, 210, 0.88);
  text-shadow: none;
}

.work-screen .topbar {
  display: none;
}

.work-screen:has(#password-change-panel:not(.hidden)) .topbar,
.work-screen:has(#workspace-panel:not(.hidden)) .topbar {
  display: flex;
  align-items: center;
}

.work-screen:has(#password-change-panel:not(.hidden)) .topbar > :not(#logout-btn),
.work-screen:has(#workspace-panel:not(.hidden)) .topbar > :not(#logout-btn) {
  display: none;
}

.auth-screen .topbar > div:first-child {
  display: none;
}

html.entity-onboarding-route .topbar > .topbar-brand-block {
  display: block !important;
}

.auth-screen .brand,
.auth-screen .eyebrow {
  color: rgba(250, 238, 205, 0.78);
}

.brand,
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.topbar h1,
.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(30px, 5vw, 42px);
}

.auth-screen .topbar h1 {
  max-width: 560px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
}

html.entity-onboarding-route .topbar h1 {
  display: none;
}

.language-switch {
  display: none;
  width: 360px;
  height: 56px;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(216, 170, 77, 0.38);
  background: linear-gradient(180deg, rgba(28, 28, 23, 0.9), rgba(12, 14, 11, 0.88));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.auth-screen .language-switch {
  display: grid;
}

html.entity-onboarding-route .language-switch {
  display: grid;
  width: 256px;
  height: 44px;
}

.language-switch button {
  border: 0;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid rgba(216, 170, 77, 0.22);
  background: transparent;
  color: rgba(250, 238, 205, 0.82);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-switch button:first-child {
  border-left: 0;
}

.language-switch button.active {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(216, 170, 77, 0.12), rgba(216, 170, 77, 0.04));
  color: var(--gold-bright);
  box-shadow: inset 0 0 18px rgba(216, 170, 77, 0.08), 0 0 26px rgba(216, 170, 77, 0.16);
}

.source-truth-panel {
  max-width: 1040px;
  margin: 0 auto;
}

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

.source-status-grid article,
.source-truth-grid article,
.source-callout {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 14px;
}

.source-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-status-grid strong {
  display: block;
  margin-top: 6px;
}

.compact-review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.entity-admin-review-card {
  align-items: flex-start;
}

.source-truth-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.source-truth-grid ul {
  margin: 0;
  padding-left: 20px;
}

.source-truth-grid li + li {
  margin-top: 6px;
}

.source-question-list {
  display: grid;
  gap: 10px;
}

.source-json-output {
  width: 100%;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.onboarding-step-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 14px;
}

.compact-head {
  margin-bottom: 0;
}

.compact-list {
  gap: 8px;
}

.panel,
.context-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.auth-screen #auth-panel,
.auth-screen #password-change-panel {
  justify-self: center;
  width: min(600px, 100%);
  padding: 30px 44px 28px;
  border: 1px solid rgba(216, 170, 77, 0.48);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 170, 77, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(31, 31, 23, 0.86), rgba(7, 12, 9, 0.92));
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  animation: cardReveal 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.login-logo {
  display: none;
}

.login-logo-badge {
  display: none;
}

.auth-screen .login-logo-badge {
  display: grid;
  position: relative;
  place-items: center;
  width: min(238px, 68%);
  min-height: 154px;
  margin: 0 auto 18px;
  padding: 12px 18px;
  border: 1px solid rgba(216, 170, 77, 0.75);
  background: linear-gradient(145deg, rgba(18, 20, 17, 0.98), rgba(42, 41, 33, 0.84));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 8px rgba(255, 255, 255, 0.03);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  overflow: hidden;
}

.auth-screen .login-logo-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 221, 135, 0.18) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: badgeShimmer 5s ease-in-out infinite;
}

.auth-screen .login-logo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.48));
}

.login-divider {
  display: none;
}

.auth-screen .login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 12px 14px;
  color: var(--gold-bright);
}

.auth-screen .login-divider::before,
.auth-screen .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 170, 77, 0.54), transparent);
}

.auth-screen .login-divider span {
  position: relative;
  width: 18px;
  height: 24px;
  background:
    radial-gradient(ellipse at 34% 18%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    radial-gradient(ellipse at 66% 28%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    radial-gradient(ellipse at 34% 40%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    radial-gradient(ellipse at 66% 50%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    radial-gradient(ellipse at 34% 62%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    radial-gradient(ellipse at 66% 72%, var(--gold-bright) 0 2.8px, transparent 3.2px),
    linear-gradient(var(--gold-bright), var(--gold-bright)) center 3px / 2px 18px no-repeat;
  opacity: 0.82;
}

.auth-screen #auth-panel .section-head,
.auth-screen #password-change-panel .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

#password-change-panel {
  color: #fff5da;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 170, 77, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(31, 31, 23, 0.96), rgba(7, 12, 9, 0.98));
}

.auth-screen #auth-panel .section-head {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.auth-screen #auth-panel .eyebrow,
.auth-screen #auth-panel h2,
.auth-screen #password-change-panel .login-logo-badge {
  display: none;
}

.auth-screen #password-change-panel .eyebrow {
  color: var(--gold-bright);
  letter-spacing: 0.12em;
}

.auth-screen #password-change-panel h2 {
  margin: 0;
  color: #fff5da;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
}

#password-change-panel h2,
#password-change-panel .eyebrow,
#password-change-panel .copy,
#password-change-panel label,
#password-change-panel .status-line {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
}

.auth-screen #auth-panel .copy,
.auth-screen #auth-panel .status-line,
.auth-screen #password-change-panel .copy,
.auth-screen #password-change-panel .status-line {
  color: rgba(250, 238, 205, 0.86);
}

.auth-screen #password-change-panel .copy {
  align-self: end;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.auth-screen #auth-panel label,
.auth-screen #password-change-panel label {
  color: rgba(250, 238, 205, 0.9);
  font-size: 15px;
  font-weight: 600;
}

#password-change-panel label {
  color: rgba(255, 245, 218, 0.94);
}

.auth-screen #auth-panel input,
.auth-screen #password-change-panel input {
  min-height: 52px;
  border: 1px solid rgba(216, 170, 77, 0.56);
  border-radius: 4px;
  background: rgba(3, 6, 4, 0.42);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 18px;
}

#password-change-panel input {
  background: rgba(3, 6, 4, 0.82);
  color: #fffaf0;
  caret-color: var(--gold-bright);
}

.auth-screen #auth-panel input::placeholder,
.auth-screen #password-change-panel input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.auth-screen #auth-panel input:focus,
.auth-screen #password-change-panel input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(216, 170, 77, 0.16), 0 0 28px rgba(216, 170, 77, 0.13);
}

.auth-screen #auth-panel .button.primary,
.auth-screen #password-change-panel .button.primary {
  min-height: 54px;
  border: 1px solid rgba(255, 230, 162, 0.55);
  border-radius: 4px;
  background: linear-gradient(135deg, #9b6d26, #f0ce7b 52%, #9b6d26);
  color: #070907;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 20px;
  font-weight: 800;
}

.auth-screen #auth-panel .button.primary:hover,
.auth-screen #password-change-panel .button.primary:hover,
.language-switch button:hover {
  filter: brightness(1.08);
}

.auth-screen #auth-panel .status-line,
.auth-screen #password-change-panel .status-line {
  position: relative;
  margin-top: 14px;
}

.auth-screen #auth-panel .status-line {
  text-align: center;
}

.secure-onboarding-badge {
  display: none;
}

html.entity-onboarding-route .secure-onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: rgba(245, 234, 210, 0.82);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.entity-onboarding-screen.auth-screen::before {
  background:
    linear-gradient(90deg, rgba(4, 7, 5, 0.76), rgba(8, 8, 6, 0.22) 52%, rgba(4, 6, 4, 0.36)),
    linear-gradient(180deg, rgba(5, 7, 4, 0.08), rgba(5, 7, 4, 0.72));
  animation: none;
}

.entity-onboarding-screen .login-bg {
  filter: saturate(1.05) contrast(1.04);
  transform: none;
}

.entity-onboarding-screen .login-particles {
  display: none;
}

.entity-onboarding-screen .shell {
  width: min(1160px, calc(100vw - 40px));
  min-height: 100vh;
  padding: 22px 0 36px;
  align-items: start;
  gap: 28px;
}

.entity-onboarding-screen .topbar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  justify-content: stretch;
  gap: 20px;
  color: rgba(245, 234, 210, 0.88);
  text-shadow: none;
}

.entity-onboarding-screen .topbar > .topbar-brand-block {
  display: block !important;
}

.entity-onboarding-screen .brand {
  margin: 0;
  color: var(--gold-bright);
  font-size: 20px;
  letter-spacing: 0.34em;
}

html.entity-onboarding-route .brand {
  margin: 0;
  color: var(--gold-bright);
  font-size: 20px;
  letter-spacing: 0.34em;
}

.entity-onboarding-screen .topbar h1 {
  display: none;
}

.entity-onboarding-screen .language-switch {
  width: 256px;
  height: 44px;
}

.entity-onboarding-screen .secure-onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: rgba(245, 234, 210, 0.82);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.entity-onboarding-screen .secure-onboarding-badge::before,
html.entity-onboarding-route .secure-onboarding-badge::before,
.premium-data-note span::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid rgba(216, 170, 77, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(216, 170, 77, 0.8) 46% 54%, transparent 55%),
    linear-gradient(45deg, transparent 38%, rgba(216, 170, 77, 0.8) 39% 47%, transparent 48%);
}

.entity-onboarding-screen #auth-panel {
  display: none !important;
}

html.entity-onboarding-route #auth-panel {
  display: none !important;
}

html.entity-onboarding-route #entity-registration-request-panel.hidden {
  display: grid !important;
}

.premium-entity-onboarding {
  justify-self: center;
  width: min(1040px, 100%);
  padding: 38px 48px 0;
  border: 1px solid rgba(216, 170, 77, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 25, 20, 0.94), rgba(9, 12, 10, 0.96)),
    rgba(12, 13, 10, 0.94);
  color: rgba(247, 242, 232, 0.94);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.premium-registration-request {
  justify-self: center;
  width: min(920px, 100%);
  padding: 42px 52px 36px;
  border: 1px solid rgba(216, 170, 77, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 25, 20, 0.94), rgba(9, 12, 10, 0.96)),
    rgba(12, 13, 10, 0.94);
  color: rgba(247, 242, 232, 0.94);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.registration-request-hero {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(216, 170, 77, 0.24);
}

.registration-request-intro {
  max-width: 640px;
  margin: 26px 0 30px 92px;
  color: rgba(247, 242, 232, 0.86);
  font-size: 18px;
  line-height: 1.58;
}

.registration-request-form {
  gap: 20px;
}

.premium-registration-request label {
  gap: 9px;
  color: rgba(247, 242, 232, 0.9);
  font-weight: 700;
}

.premium-registration-request input {
  min-height: 56px;
  border: 1px solid rgba(216, 170, 77, 0.43);
  border-radius: 6px;
  background: rgba(6, 8, 6, 0.48);
  color: #f8f3e8;
  font-size: 18px;
}

.premium-registration-request input::placeholder {
  color: rgba(247, 242, 232, 0.45);
}

.premium-registration-request input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(216, 170, 77, 0.18);
  outline: none;
}

.premium-registration-request .premium-continue-button {
  width: min(100%, 420px);
  justify-self: end;
}

.premium-registration-request .status-line {
  color: rgba(246, 238, 219, 0.72);
}

.premium-onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 28px;
}

.premium-onboarding-title {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.premium-onboarding-icon {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(216, 170, 77, 0.58);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(216, 170, 77, 0.12), rgba(216, 170, 77, 0.03)),
    rgba(18, 18, 14, 0.96);
  box-shadow: 0 0 34px rgba(216, 170, 77, 0.18), inset 0 0 0 10px rgba(216, 170, 77, 0.03);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.premium-onboarding-icon:not(.premium-harvestor-mark)::before {
  content: "";
  position: absolute;
  inset: 19px 17px 15px;
  border: 2px solid var(--gold);
  border-top: 0;
}

.premium-onboarding-icon:not(.premium-harvestor-mark)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  width: 26px;
  height: 20px;
  border: 2px solid var(--gold);
  border-bottom: 0;
  transform: perspective(30px) rotateX(32deg);
}

.premium-harvestor-mark {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 238, 191, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(37, 38, 31, 0.98), rgba(7, 9, 8, 0.96));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(216, 170, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 10px rgba(216, 170, 77, 0.035);
}

.premium-harvestor-mark svg {
  width: 58px;
  height: 58px;
}

.premium-harvestor-mark .mark-halo {
  fill: none;
  stroke: rgba(216, 170, 77, 0.32);
  stroke-width: 1.2;
}

.premium-harvestor-mark .mark-roof,
.premium-harvestor-mark .mark-barn,
.premium-harvestor-mark .mark-door,
.premium-harvestor-mark .mark-field,
.premium-harvestor-mark .mark-sun {
  fill: none;
  stroke: #d8aa4d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.premium-harvestor-mark .mark-field,
.premium-harvestor-mark .mark-sun {
  stroke: rgba(255, 220, 144, 0.86);
  stroke-width: 1.8;
}

.premium-onboarding-title .eyebrow {
  color: rgba(216, 170, 77, 0.86);
}

.premium-onboarding-title h2 {
  color: #f5f2ec;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
}

.premium-subtitle {
  margin: 8px 0 0;
  color: var(--gold-bright);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}

.premium-intro {
  max-width: 620px;
  margin: -6px 0 28px 108px;
  color: rgba(246, 238, 219, 0.78);
  line-height: 1.55;
}

.premium-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 86px);
  gap: 14px;
  align-items: start;
  color: rgba(245, 238, 223, 0.52);
}

.premium-stepper li {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
  min-width: 0;
}

.premium-stepper li + li::before {
  content: "";
  position: absolute;
  right: 58px;
  top: 16px;
  width: 66px;
  height: 1px;
  background: rgba(216, 170, 77, 0.44);
}

.premium-stepper span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #f7f0e1;
  font-weight: 900;
}

.premium-stepper strong {
  max-width: 86px;
  font-size: 13px;
  text-align: center;
  line-height: 1.2;
}

.premium-stepper .active {
  color: var(--gold-bright);
}

.premium-stepper .active span {
  background: linear-gradient(135deg, #a7782b, #f4d37e);
  color: #17120a;
}

.premium-form-head {
  margin: 0 -48px 26px;
  padding: 24px 48px 0;
  border-top: 1px solid rgba(216, 170, 77, 0.26);
}

.premium-form-head h3 {
  color: var(--gold-bright);
  font-size: 21px;
}

.premium-form-head .copy {
  color: rgba(246, 238, 219, 0.72);
}

.premium-entity-onboarding form {
  gap: 22px 30px;
}

.premium-entity-onboarding .advanced-onboarding-drafts {
  display: none;
}

.premium-entity-onboarding label {
  gap: 9px;
  color: rgba(247, 242, 232, 0.9);
  font-weight: 700;
}

.premium-entity-onboarding input,
.premium-entity-onboarding select,
.premium-entity-onboarding textarea {
  min-height: 52px;
  border: 1px solid rgba(216, 170, 77, 0.43);
  border-radius: 6px;
  background: rgba(6, 8, 6, 0.48);
  color: #f8f3e8;
}

.premium-entity-onboarding textarea {
  min-height: 108px;
  resize: vertical;
}

.premium-entity-onboarding input::placeholder,
.premium-entity-onboarding textarea::placeholder {
  color: rgba(247, 242, 232, 0.45);
}

.premium-entity-onboarding input:focus,
.premium-entity-onboarding select:focus,
.premium-entity-onboarding textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(216, 170, 77, 0.18);
  outline: none;
}

.premium-entity-onboarding small {
  color: rgba(246, 238, 219, 0.66);
  font-weight: 500;
}

.premium-entity-onboarding .checkbox {
  padding: 12px 0;
  border-top: 1px solid rgba(216, 170, 77, 0.16);
}

.premium-entity-onboarding .form-actions {
  align-items: center;
  justify-content: space-between;
  margin: 6px -48px 0;
  padding: 24px 48px 28px;
  border-top: 1px solid rgba(216, 170, 77, 0.24);
}

.premium-data-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 360px);
  gap: 16px;
  align-items: center;
  color: rgba(246, 238, 219, 0.72);
}

.premium-data-note p {
  margin: 0;
  line-height: 1.5;
}

.premium-continue-button.button.primary {
  min-width: min(100%, 420px);
  min-height: 58px;
  border: 1px solid rgba(255, 230, 162, 0.58);
  border-radius: 6px;
  background: linear-gradient(135deg, #9f7129, #f4d37e 52%, #a2742b);
  color: #110e08;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  font-weight: 900;
}

.premium-review-note {
  margin: -14px 0 0;
  color: rgba(246, 238, 219, 0.64);
  text-align: center;
}

@keyframes slowCinematicPan {
  from { transform: scale(1.03) translate3d(-0.5%, -0.3%, 0); }
  to { transform: scale(1.08) translate3d(0.7%, 0.4%, 0); }
}

@keyframes sunPulse {
  from { opacity: 0.62; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.04); }
}

@keyframes dustFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-90px, -120px, 0); }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes badgeShimmer {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.context-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.work-screen .app {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-screen .context-card {
  min-height: 78px;
  max-height: 94px;
  margin: 0;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(220px, 1fr) minmax(210px, 310px) max-content;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 170, 77, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 54%),
    radial-gradient(circle at 76% 20%, rgba(216, 170, 77, 0.13), transparent 34%),
    radial-gradient(circle at 12% 85%, rgba(19, 111, 67, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(4, 15, 14, 0.98), rgba(1, 8, 8, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 10px 26px rgba(0, 0, 0, 0.24);
}

.work-brand-block,
.work-logo {
  display: none;
}

.work-screen .work-brand-block {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(216, 170, 77, 0.32);
}

.work-screen .work-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: -6px 0;
  filter: drop-shadow(0 0 16px rgba(216, 170, 77, 0.32));
}

.work-screen .work-brand-block span {
  color: #f8e6b7;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(216, 170, 77, 0.24);
}

.work-screen .context-identity {
  min-width: 0;
}

.work-screen .context-card .eyebrow {
  display: none;
}

.work-screen .context-card h2 {
  margin: 0;
  color: #f6d783;
  font-size: clamp(22px, 1.55vw, 28px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-screen .context-card .copy {
  margin: 3px 0 0;
  color: #f3dfab;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sandbox-context-badge {
  display: grid;
  grid-template-columns: 28px minmax(0, max-content) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  max-width: 310px;
  min-height: 48px;
  padding: 8px 12px;
  align-items: center;
  border: 1px solid rgba(242, 210, 135, 0.48);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 170, 77, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(37, 31, 14, 0.66), rgba(5, 28, 22, 0.78)),
    rgba(0, 0, 0, 0.36);
  color: #faedd0;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.09),
    inset 0 0 18px rgba(30, 116, 72, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.sandbox-context-badge::before {
  content: "";
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(246, 211, 111, 0.54);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(246, 211, 111, 0.24), rgba(6, 19, 15, 0.88)),
    rgba(5, 15, 13, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.12),
    0 0 16px rgba(216, 170, 77, 0.18);
}

.sandbox-context-badge::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: center;
  width: 11px;
  height: 11px;
  border-left: 2px solid #f6d36f;
  border-bottom: 2px solid #f6d36f;
  transform: rotate(-45deg);
}

.sandbox-context-badge strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #f6c95d;
  font-size: 13px;
  letter-spacing: 0.24em;
  line-height: 1;
  white-space: nowrap;
}

.sandbox-context-badge span {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #f4ead0;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.context-farm-switcher {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 310px;
  min-height: 48px;
}

.context-farm-switcher.hidden {
  display: none;
}

.context-farm-switcher label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.context-farm-switcher span,
.context-farm-switcher small {
  color: #f6c95d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.context-farm-switcher small {
  min-height: 12px;
  color: rgba(244, 234, 208, 0.72);
  letter-spacing: 0;
  text-transform: none;
}

.context-farm-switcher select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(242, 210, 135, 0.48);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 170, 77, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(37, 31, 14, 0.72), rgba(5, 28, 22, 0.84));
  color: #faedd0;
  font-size: 15px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.09),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.work-screen .context-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.work-screen .app-language-switch {
  display: grid;
  grid-template-columns: repeat(4, 46px);
  width: 184px;
  height: 44px;
  flex: 0 0 184px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 170, 77, 0.54);
  border-radius: 12px;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(8, 16, 14, 0.96), rgba(1, 8, 8, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
}

.work-screen .app-language-switch button {
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(216, 170, 77, 0.22);
  border-radius: 0;
  background: transparent;
  color: #f1e6ca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.work-screen .app-language-switch button:first-child {
  border-radius: 11px 0 0 11px;
}

.work-screen .app-language-switch button:last-child {
  border-right: 0;
  border-radius: 0 11px 11px 0;
}

.work-screen .app-language-switch button.active {
  color: #f6d36f;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 238, 178, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(89, 65, 24, 0.72), rgba(28, 23, 10, 0.7));
  box-shadow:
    inset 0 0 0 1px rgba(246, 211, 111, 0.62),
    inset 0 0 28px rgba(216, 170, 77, 0.16);
}

.work-screen .pill {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #d8aa4d;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.work-screen .pill.subtle {
  background: transparent;
  color: #d8aa4d;
}

.work-screen .pill::before {
  content: none;
}

.app-logout {
  display: none;
}

.work-screen .app-logout {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8aa4d;
  cursor: pointer;
}

.work-screen .app-logout.hidden {
  display: none;
}

.work-screen .app-logout::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.work-screen .app-logout::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.work-screen .app-logout:hover,
.work-screen .app-logout:focus-visible {
  color: #f2d287;
  filter: drop-shadow(0 0 10px rgba(216, 170, 77, 0.42));
  outline: none;
}

.header-icon {
  display: none;
}

.work-screen .header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(216, 170, 77, 0.48);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 228, 145, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(7, 14, 13, 0.98), rgba(2, 8, 7, 0.96));
  color: #efbd4c;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.header-logout {
  display: none;
}

.work-screen .header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(216, 170, 77, 0.54);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(28, 20, 9, 0.98), rgba(5, 12, 10, 0.96));
  color: #f6d36f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.work-screen .header-logout.hidden {
  display: none;
}

.work-screen .header-logout svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-screen .header-logout:hover,
.work-screen .header-logout:focus-visible {
  border-color: rgba(246, 211, 111, 0.86);
  color: #ffe08a;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(246, 211, 111, 0.18),
    0 0 22px rgba(216, 170, 77, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.work-screen .header-icon.hidden {
  display: none;
}

.work-screen .header-icon svg,
.bottom-tab svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-screen .header-icon:hover,
.work-screen .header-icon:focus-visible {
  border-color: rgba(246, 211, 111, 0.86);
  color: #f9d875;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 228, 145, 0.25), transparent 48%),
    linear-gradient(180deg, rgba(24, 20, 10, 0.98), rgba(3, 10, 8, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(246, 211, 111, 0.18),
    0 0 22px rgba(216, 170, 77, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.34);
  outline: none;
}

.work-screen .header-icon.is-refreshing svg {
  animation: harvestor-refresh-spin 0.85s linear infinite;
}

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

.copy,
.status-line,
.row-copy span,
.stat-card span,
.detail-card span,
.empty {
  color: var(--muted);
  line-height: 1.45;
}

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

.worker-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 780px;
}

.worker-tool-actions .button {
  min-height: 44px;
  white-space: nowrap;
}

.worker-admin-tools {
  position: relative;
}

.worker-admin-tools summary {
  cursor: pointer;
  list-style: none;
}

.worker-admin-tools summary::-webkit-details-marker {
  display: none;
}

.worker-admin-tools summary::after {
  content: "v";
  margin-left: 8px;
  font-size: 12px;
}

.worker-admin-tools[open] summary::after {
  content: "^";
}

.worker-admin-tool-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: min(280px, calc(100vw - 48px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 190, 130, 0.78);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 18px 34px rgba(47, 36, 16, 0.18);
}

.worker-admin-tool-menu .button {
  width: 100%;
  justify-content: flex-start;
}

.worker-tool-actions .button.active {
  border-color: rgba(181, 137, 55, 0.85);
  background: linear-gradient(135deg, rgba(216, 173, 79, 0.96), rgba(172, 121, 25, 0.94));
  color: #111827;
  box-shadow: 0 12px 26px rgba(146, 92, 13, 0.2);
}

.communication-panel {
  display: grid;
  gap: 18px;
}

.communication-notification-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 137, 55, 0.28);
  border-radius: 8px;
  background: rgba(12, 21, 20, 0.72);
  color: #f7ead1;
}

.communication-notification-panel strong,
.communication-notification-panel span {
  display: block;
}

.communication-notification-panel .status-line {
  margin: 3px 0 0;
  color: rgba(247, 234, 209, 0.72);
}

.communication-compose {
  display: grid;
  gap: 12px;
  align-items: end;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 10, 0.96) 18%);
}

.communication-target-field {
  min-width: 0;
}

.communication-compose-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.communication-compose-actions .button {
  min-width: 180px;
}

.communication-compose-actions .status-line {
  margin: 0;
}

.communication-lists {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.7fr);
  margin-top: 16px;
  min-height: min(68vh, 760px);
}

.communication-thread-panel {
  min-width: 0;
}

.communication-lists h4 {
  margin: 0 0 8px;
}

.communication-current-thread {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 8px;
}

.communication-current-thread h4,
.communication-current-thread .status-line {
  margin: 0;
}

.communication-channel-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid rgba(181, 137, 55, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--hv-text);
  padding: 12px;
  cursor: pointer;
}

.communication-channel-button strong,
.communication-channel-button span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.communication-channel-button span {
  color: var(--hv-muted);
}

.communication-channel-button.active {
  border-color: rgba(181, 137, 55, 0.72);
  background: linear-gradient(135deg, rgba(246, 213, 122, 0.68), rgba(255, 250, 240, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.5);
}

.communication-thread-shell {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  min-height: min(68vh, 760px);
}

.communication-thread-shell #communication-list {
  min-height: 320px;
  max-height: 58vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px;
}

.communication-message-row {
  display: flex;
  align-items: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.communication-message-row.is-mine {
  justify-content: flex-end;
}

.communication-message-row.is-theirs {
  justify-content: flex-start;
}

.communication-bubble {
  width: min(76%, 720px);
  border: 1px solid rgba(236, 196, 99, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(8, 18, 16, 0.9);
  color: var(--hv-text);
}

.communication-message-row.is-mine .communication-bubble {
  border-color: rgba(246, 211, 111, 0.28);
  background: linear-gradient(180deg, rgba(34, 31, 16, 0.92), rgba(13, 23, 17, 0.94));
}

.communication-message-row.is-theirs .communication-bubble {
  border-color: rgba(86, 210, 117, 0.22);
  background: linear-gradient(180deg, rgba(10, 28, 22, 0.9), rgba(5, 15, 13, 0.94));
}

.communication-bubble-head,
.communication-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.communication-bubble-head strong {
  color: var(--hv-heading);
}

.communication-bubble-head small {
  color: var(--hv-muted);
}

.communication-bubble p {
  margin: 8px 0 10px;
  color: var(--hv-text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.communication-original {
  margin: 8px 0;
  color: var(--hv-muted);
}

.communication-original summary {
  cursor: pointer;
  color: #f7d982;
  font-weight: 800;
}

.communication-original p {
  color: var(--hv-muted);
  font-size: 14px;
}

.communication-translation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 160px;
}

.communication-inbox-row .button {
  min-height: 40px;
}

.nav-unread-badge,
.bottom-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0bd3f;
  color: #07100d;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255, 232, 160, 0.5), 0 8px 20px rgba(240, 189, 63, 0.22);
}

.menu-item .nav-unread-badge {
  position: absolute;
  top: 10px;
  right: 14px;
}

.bottom-tab .bottom-unread-badge {
  position: absolute;
  top: 8px;
  right: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.narrow {
  max-width: 420px;
}

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

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.field-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c7c1;
  border-radius: 6px;
  padding: 14px 15px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 174, 0.14);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.work-screen .view label,
.work-screen .view label span,
.work-screen .view .checkbox span {
  color: var(--hv-label);
  font-weight: 900;
  text-shadow: none;
}

.work-screen .view input,
.work-screen .view select,
.work-screen .view textarea {
  color: var(--hv-text);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(60, 67, 78, 0.34);
  font-weight: 750;
}

.work-screen .view input::placeholder,
.work-screen .view textarea::placeholder {
  color: #69758a;
  opacity: 1;
}

.work-screen .view input[readonly] {
  color: #17221d;
  background: rgba(255, 255, 255, 0.86);
}

.work-screen .view .detail-card,
.work-screen .view .empty,
.work-screen .view .list-row {
  color: var(--hv-text);
}

.work-screen .view .detail-card strong,
.work-screen .view .row-copy strong,
.work-screen .view .stat-card strong,
.work-screen .view .empty strong {
  color: var(--hv-heading);
  font-weight: 900;
}

.work-screen .view .detail-card span,
.work-screen .view .detail-card small,
.work-screen .view .row-copy span,
.work-screen .view .row-copy small,
.work-screen .view .stat-card span,
.work-screen .view .status-line,
.work-screen .view .empty {
  color: var(--hv-muted);
}

.work-screen .view .detail-card .detail-label,
.work-screen .view .stat-card .detail-label {
  color: var(--hv-label);
}

.app {
  display: grid;
  gap: 14px;
}

.context-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pill.subtle {
  background: var(--blue-soft);
  color: var(--blue);
}

.menu-grid,
.big-actions,
.stats-grid,
.detail-grid,
.list {
  display: grid;
  gap: 12px;
}

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

.work-screen .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 18px;
}

.menu-item,
.big-action,
.list-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.menu-item,
.big-action,
.row-button {
  cursor: pointer;
}

.menu-item {
  position: relative;
  padding: 16px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.work-screen .menu-item {
  position: relative;
  min-height: 66px;
  padding: 0 42px 0 86px;
  display: grid;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(181, 117, 37, 0.58);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(216, 170, 77, 0.08), transparent 30%),
    rgba(1, 10, 10, 0.74);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.34), 0 0 18px rgba(0, 0, 0, 0.18);
}

.work-screen .menu-item::before {
  content: "";
  position: absolute;
  left: 68px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(216, 170, 77, 0.62), transparent);
}

.work-screen .menu-item::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-54%);
  color: #d8aa4d;
  font-size: 32px;
  font-weight: 300;
}

.work-screen .menu-item:hover,
.work-screen .menu-item.active {
  border-color: rgba(239, 201, 120, 0.86);
  background:
    linear-gradient(90deg, rgba(216, 170, 77, 0.16), rgba(216, 170, 77, 0.03) 46%, transparent),
    rgba(1, 10, 10, 0.86);
}

.menu-item strong,
.big-action strong,
.row-copy strong,
.stat-card strong,
.detail-card strong {
  display: block;
}

.work-screen .menu-item strong {
  color: #e8d6b4;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-screen .menu-item span:not(.menu-icon) {
  display: none;
}

.menu-item span,
.big-action span {
  color: var(--muted);
}

.menu-item.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.work-screen .menu-item.active {
  border-color: rgba(216, 170, 77, 0.74);
  background:
    linear-gradient(90deg, rgba(216, 170, 77, 0.16), transparent 48%),
    rgba(1, 10, 10, 0.82);
}

.menu-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.76)) drop-shadow(0 0 9px rgba(245, 190, 67, 0.46));
}

.work-screen .menu-icon {
  opacity: 0.96;
}

.menu-icon::before,
.menu-icon::after {
  content: none;
}

.menu-icon.people { background-image: url("assets/menu-icons/people.svg"); }
.menu-icon.work { background-image: url("assets/menu-icons/tractor.svg"); }
.menu-icon.dashboard { background-image: url("assets/menu-icons/dashboard.svg"); }
.menu-icon.reports { background-image: url("assets/menu-icons/report.svg"); }
.menu-icon.payments { background-image: url("assets/menu-icons/payments.svg"); }
.menu-icon.settings { background-image: url("assets/menu-icons/target.svg"); }
.menu-icon.devices { background-image: url("assets/menu-icons/device.svg"); }
.menu-icon.support { background-image: url("assets/menu-icons/support.svg"); }
.menu-icon.messages { background-image: url("assets/menu-icons/messages.svg"); }

.bottom-tabs {
  display: none;
}

.work-screen .bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(560px, 100vw);
  min-height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(var(--bottom-tab-count, 4), minmax(0, 1fr));
  border-top: 1px solid rgba(216, 170, 77, 0.48);
  background: rgba(1, 8, 8, 0.94);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.36);
}

.bottom-tab {
  position: relative;
  min-height: 64px;
  border: 0;
  border-left: 1px solid rgba(216, 170, 77, 0.22);
  background: transparent;
  color: rgba(232, 214, 180, 0.82);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
}

.bottom-tab:first-child {
  border-left: 0;
}

.bottom-tab svg {
  width: 25px;
  height: 25px;
  color: #d8aa4d;
}

.bottom-tab.active {
  color: #f2d287;
  background: radial-gradient(circle at 50% 0%, rgba(216, 170, 77, 0.26), transparent 60%);
}

@media (max-width: 1024px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1025px) {
  .work-screen .shell {
    width: min(1500px, calc(100vw - 32px));
    padding: 18px 0 34px;
  }

  .work-screen .app {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 18px 22px;
    align-items: start;
  }

  .work-screen .context-card {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid rgba(216, 170, 77, 0.2);
    border-radius: 8px;
  }

  .work-screen .menu-grid {
    grid-column: 1;
    grid-row: 2 / span 20;
    position: sticky;
    top: 18px;
    margin: 0;
    padding: 16px;
    gap: 10px;
    border: 1px solid rgba(216, 170, 77, 0.2);
    border-radius: 8px;
    background:
      radial-gradient(circle at 20% 0%, rgba(35, 135, 82, 0.18), transparent 42%),
      linear-gradient(180deg, rgba(5, 18, 16, 0.92), rgba(1, 8, 8, 0.96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .work-screen .menu-item {
    min-height: 58px;
    padding: 0 38px 0 66px;
    border-radius: 6px;
  }

  .work-screen .menu-item::before {
    left: 52px;
  }

  .work-screen .menu-icon {
    left: 16px;
  }

.work-screen .view {
  grid-column: 2;
  min-width: 0;
}

  .work-screen .view > .panel,
  .work-screen .view > article.panel,
  .work-screen #worker-detail-panel,
  .work-screen .detail-form {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(247, 242, 231, 0.96));
    border: 1px solid var(--hv-card-border);
    border-radius: 14px;
    color: var(--hv-text);
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .work-screen .view > .panel h3,
  .work-screen .view > article.panel h3,
  .work-screen #worker-detail-panel h3 {
    color: var(--hv-panel-title);
    font-weight: 900;
    text-shadow: none;
  }

  .work-screen .view > .panel .eyebrow,
  .work-screen .view > article.panel .eyebrow,
  .work-screen .detail-label {
    color: var(--hv-label);
    letter-spacing: 0.12em;
    font-weight: 800;
    text-shadow: none;
  }

  .work-screen .view > .panel .copy,
  .work-screen .view > article.panel .copy,
  .work-screen .detail-card span,
  .work-screen .detail-form p {
    color: var(--hv-muted);
  }

  .work-screen .bottom-tabs {
    display: none;
  }

  .terminal-kiosk-screen.work-screen .shell {
    width: min(860px, 100vw);
  }

  .terminal-kiosk-screen.work-screen .app {
    display: block;
  }
}

@media (max-width: 1024px) {
  .work-screen .menu-grid {
    display: none;
  }

  .work-screen.mobile-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }

  .work-screen.mobile-menu-open .menu-grid {
    display: grid;
    position: fixed;
    left: 50%;
    bottom: 76px;
    z-index: 19;
    width: min(430px, calc(100vw - 18px));
    max-height: calc(100vh - 156px);
    overflow: auto;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(216, 170, 77, 0.42);
    border-radius: 10px 10px 8px 8px;
    background:
      radial-gradient(circle at 30% 0%, rgba(216, 170, 77, 0.18), transparent 42%),
      linear-gradient(180deg, rgba(4, 14, 13, 0.98), rgba(1, 8, 8, 0.98));
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.48), 0 0 34px rgba(26, 116, 75, 0.22);
  }

  .work-screen.mobile-menu-open .bottom-tabs {
    z-index: 21;
  }

  .work-screen .view:not(#view-home) {
    margin-top: 10px;
  }
}

.work-screen #view-home {
  display: grid;
}

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

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

.big-action {
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 6px;
}

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

.stat-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--panel-soft);
}

.stat-card strong {
  font-size: 28px;
  margin-bottom: 6px;
}

.list-row {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.inventory-row {
  flex-wrap: wrap;
}

.row-button {
  width: 100%;
}

.row-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-meta-stack {
  flex-direction: column;
  align-items: flex-end;
}

.worker-attendance-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 2px;
}

.worker-attendance-filter button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid rgba(181, 137, 55, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--hv-muted);
  font-weight: 900;
}

.worker-attendance-filter button.active {
  border-color: rgba(181, 137, 55, 0.58);
  background: linear-gradient(180deg, #f4d06b, #b7831d);
  color: #101813;
  box-shadow: 0 10px 22px rgba(181, 137, 55, 0.18);
}

.worker-row.is-at-work {
  border-color: rgba(15, 118, 68, 0.28);
}

.worker-row.is-away {
  border-color: rgba(180, 35, 24, 0.22);
}

.worker-row.is-archived {
  opacity: 0.76;
}

.worker-directory-group {
  display: grid;
  gap: 8px;
}

.worker-directory-group + .worker-directory-group {
  margin-top: 14px;
}

.worker-directory-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--hv-muted);
  font-weight: 900;
}

.worker-directory-heading strong {
  color: var(--hv-text);
}

.inline-assign,
.inline-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-assign select {
  flex: 1 1 280px;
}

.status-line.compact {
  margin: 0;
  flex: 1 1 100%;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f6;
  color: #344054;
}

.status-chip.ok {
  background: #e7f6ed;
  color: var(--green);
}

.status-chip.away {
  background: #fee4e2;
  color: #b42318;
}

.attendance-chip {
  min-width: 86px;
  justify-content: center;
}

.status-chip.warn {
  background: #fff3db;
  color: var(--amber);
}

.status-chip.muted {
  background: #f0f1f3;
  color: #667085;
}

.status-chip.neutral {
  background: #eef2f6;
  color: #344054;
}

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

.detail-card {
  border: 1px solid rgba(181, 137, 55, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.92);
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.report-filter-card {
  border-color: rgba(216, 170, 77, 0.78);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 170, 77, 0.18), transparent 42%),
    rgba(255, 248, 225, 0.97);
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 700;
}

.detail-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(181, 137, 55, 0.24);
  border-radius: 14px;
  padding: 16px;
}

.rfid-action-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 242, 231, 0.98));
  color: #172033;
}

.rfid-action-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 173, 79, 0.08), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(3, 22, 15, 0.04), transparent 38%);
}

.rfid-action-panel > * {
  position: relative;
}

.rfid-panel-head {
  display: grid;
  gap: 4px;
}

.rfid-panel-head p,
.rfid-action-form p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.work-screen .view .rfid-action-panel p,
.work-screen .view .rfid-action-panel span,
.work-screen .view .rfid-action-panel small,
.work-screen .view .rfid-action-panel label,
.work-screen .view .rfid-action-panel label span,
.work-screen .view .rfid-action-panel .status-line {
  color: #344054;
  opacity: 1;
  text-shadow: none;
}

.work-screen .view .rfid-action-panel .detail-label,
.work-screen .view .rfid-action-form label,
.work-screen .view .rfid-action-form label span {
  color: #1d2939;
  font-weight: 950;
}

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

.rfid-action-form {
  border: 1px solid rgba(181, 137, 55, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(247, 242, 231, 0.92));
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 8px 22px rgba(3, 22, 15, 0.08);
}

.rfid-action-form.unified-rfid-form {
  grid-column: 1 / -1;
}

.rfid-action-form input {
  border-color: rgba(181, 137, 55, 0.3);
  background: #fffefa;
  color: #111827;
  font-weight: 800;
}

.hv-rfid-primary.button.primary {
  border: 1px solid rgba(255, 220, 130, 0.64);
  border-radius: 12px;
  background: linear-gradient(180deg, #f0c866, #b98728);
  color: #07120d;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(120, 82, 20, 0.22);
}

.hv-rfid-primary.button.primary:hover,
.hv-rfid-primary.button.primary:focus-visible {
  background: linear-gradient(180deg, #f8d77c, #c69231);
  outline: none;
}

.hv-rfid-secondary.button.ghost {
  border: 1px solid rgba(181, 137, 55, 0.28);
  border-radius: 12px;
  background: rgba(3, 22, 15, 0.06);
  color: #17221d;
  font-weight: 800;
}

.hv-rfid-secondary.button.ghost.danger-soft {
  border-color: rgba(180, 35, 24, 0.24);
  color: #7b241d;
  background: rgba(180, 35, 24, 0.06);
}

.tag-inventory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.tag-inventory-summary small {
  color: rgba(95, 110, 135, 0.82);
}

.tag-inventory-list {
  display: grid;
  gap: 8px;
}

.compact-tag-row.inventory-row {
  grid-template-columns: minmax(240px, 1fr) minmax(120px, max-content) minmax(220px, max-content);
  align-items: center;
  padding: 12px 14px;
}

.compact-tag-row .row-copy {
  gap: 2px;
}

.compact-tag-row .row-copy small {
  color: rgba(95, 110, 135, 0.82);
}

.compact-tag-row .inline-actions,
.compact-tag-row .inline-assign {
  justify-content: end;
}

.tag-show-more {
  width: 100%;
  margin-top: 10px;
}

.button.ghost.danger-soft {
  border-color: rgba(180, 35, 24, 0.26);
  color: #7b241d;
  background: rgba(180, 35, 24, 0.06);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.manual-entry-panel {
  overflow: hidden;
}

.manual-session-panel,
.manual-rfid-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(246, 211, 111, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(86, 210, 117, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(2, 22, 15, 0.98), rgba(1, 12, 10, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.07);
}

.manual-session-current,
.manual-rfid-state {
  display: grid;
  gap: 5px;
}

.manual-session-current span,
.manual-rfid-state span,
.manual-session-controls label span,
.manual-rfid-input-wrap span {
  color: #f4d985;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-session-current strong,
.manual-rfid-state strong {
  color: #fff7d9;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.05;
}

.manual-session-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.manual-session-controls label {
  display: none;
}

.manual-rfid-input-wrap {
  display: grid;
  gap: 8px;
}

.manual-worker-fallback {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(86, 210, 117, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(86, 210, 117, 0.16), transparent 36%),
    rgba(1, 12, 9, 0.82);
}

.manual-worker-fallback label {
  display: grid;
  gap: 8px;
}

.manual-worker-fallback span {
  color: #f4d985;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-worker-fallback p {
  margin: 0;
  color: rgba(255, 248, 223, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.manual-session-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.manual-session-product {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(246, 211, 111, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 18, 15, 0.98), rgba(0, 8, 7, 0.98));
  color: #fff8df;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.06);
}

.manual-session-product strong {
  font-size: 15px;
  line-height: 1.15;
}

.manual-session-product span {
  color: #f4d985;
  font-size: 13px;
  font-weight: 800;
}

.manual-session-product.is-selected {
  border-color: rgba(86, 210, 117, 0.78);
  background:
    radial-gradient(circle at 90% 10%, rgba(86, 210, 117, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(2, 38, 25, 0.98), rgba(1, 14, 10, 0.99));
  box-shadow: 0 0 0 2px rgba(86, 210, 117, 0.12), inset 0 1px 0 rgba(255, 239, 181, 0.08);
}

.manual-session-empty {
  margin: 0;
  color: rgba(255, 248, 223, 0.72);
  font-weight: 700;
}

.manual-worker-field,
.manual-product-field {
  display: none !important;
}

.manual-rfid-input-wrap {
  display: grid;
  gap: 8px;
}

.manual-rfid-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
  gap: 12px;
  align-items: end;
}

.manual-session-controls .button,
.manual-rfid-panel .button {
  min-height: 54px;
  white-space: nowrap;
}

.manual-rfid-panel {
  border-color: rgba(86, 210, 117, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(86, 210, 117, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(2, 24, 16, 0.98), rgba(1, 10, 8, 0.99));
}

.manual-rfid-panel.is-loaded {
  border-color: rgba(246, 211, 111, 0.55);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-rfid-input-wrap input,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-worker-fallback select,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-controls select {
  min-height: 60px;
  border-color: rgba(246, 211, 111, 0.34);
  background: rgba(0, 6, 5, 0.72);
  color: #fffdf3;
  font-size: 18px;
  font-weight: 850;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-worker-fallback select {
  min-height: 64px;
  border-color: rgba(86, 210, 117, 0.58);
  background: rgba(0, 20, 13, 0.94);
  color: #fffdf3;
  font-size: 19px;
}

.manual-rfid-input-wrap input {
  letter-spacing: 0.04em;
}

.manual-rfid-entry-row .button {
  min-height: 60px;
  padding-inline: 18px;
}

.manual-entry-awaiting .manual-entry-context,
.manual-entry-awaiting .manual-stepper-card,
.manual-entry-awaiting .manual-entry-actions,
.manual-entry-awaiting > label,
.manual-entry-awaiting .manual-entry-preview,
.manual-entry-awaiting #work-status {
  display: none;
}

.manual-entry-form {
  display: grid;
  gap: 18px;
}

.manual-queue-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216, 170, 77, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(26, 134, 82, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(5, 33, 24, 0.92), rgba(1, 10, 8, 0.94));
  color: #f8f0d8;
}

.manual-queue-panel.is-offline {
  border-color: rgba(245, 176, 62, 0.62);
}

.manual-queue-panel.has-failed {
  border-color: rgba(255, 107, 107, 0.74);
}

.manual-queue-summary,
.manual-queue-metrics,
.manual-queue-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manual-queue-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-queue-summary span,
.manual-queue-metrics span {
  color: rgba(248, 224, 158, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-queue-summary strong {
  color: #fff9e8;
  font-size: 15px;
  line-height: 1.25;
}

.manual-queue-metrics {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.manual-queue-metrics span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(216, 170, 77, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.manual-queue-detail {
  display: grid;
  gap: 8px;
  max-height: min(38vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.manual-queue-entry {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(216, 170, 77, 0.22);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
}

.manual-queue-entry.is-failed {
  border-color: rgba(255, 107, 107, 0.5);
}

.manual-queue-entry strong,
.manual-queue-entry span,
.manual-queue-entry small {
  display: block;
  overflow-wrap: anywhere;
}

.manual-queue-entry small {
  color: rgba(248, 240, 216, 0.62);
}

.manual-entry-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.manual-stepper-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(246, 211, 111, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 170, 77, 0.16), transparent 36%),
    radial-gradient(circle at 90% 92%, rgba(86, 210, 117, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(3, 18, 13, 0.96), rgba(1, 8, 7, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 242, 190, 0.08);
}

.manual-stepper-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #f4d985;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.manual-stepper-head small {
  color: rgba(237, 225, 190, 0.72);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.manual-stepper-control {
  display: grid;
  grid-template-columns: minmax(76px, 104px) minmax(0, 1fr) minmax(76px, 104px);
  gap: clamp(10px, 2vw, 20px);
  align-items: center;
}

.manual-stepper-button {
  min-height: clamp(76px, 12vw, 112px);
  border: 1px solid rgba(246, 211, 111, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 111, 70, 0.98), rgba(8, 54, 36, 0.98));
  color: #fff7d9;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.manual-stepper-button:active {
  transform: translateY(1px);
  filter: brightness(1.12);
}

.manual-quantity-field {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #f6ddb0;
}

.manual-quantity-field span {
  color: rgba(246, 221, 176, 0.78) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
.manual-quantity-field input {
  width: min(100%, 360px);
  min-height: clamp(86px, 14vw, 132px);
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid rgba(246, 211, 111, 0.48);
  border-radius: 0;
  background: transparent;
  color: #fffdf3;
  text-align: center;
  font-size: clamp(54px, 12vw, 104px);
  font-weight: 950;
  line-height: 1;
  box-shadow: none;
  appearance: textfield;
}

.manual-quantity-field input::-webkit-outer-spin-button,
.manual-quantity-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.manual-quantity-field strong {
  color: #f4d985;
  font-size: clamp(18px, 3vw, 28px);
}

.manual-quick-add {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.manual-quick-add button {
  min-height: 56px;
  border: 1px solid rgba(86, 210, 117, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 52, 36, 0.96), rgba(4, 24, 19, 0.98));
  color: #ddf4df;
  font-weight: 900;
  cursor: pointer;
}

.manual-tare-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(246, 211, 111, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 83, 55, 0.88), rgba(9, 31, 24, 0.94)),
    rgba(10, 35, 27, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.manual-tare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-tare-head > div {
  display: grid;
  gap: 4px;
}

.manual-tare-head span,
.manual-tare-grid label span {
  color: #f6d36f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-tare-head strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.manual-tare-head small {
  color: rgba(255, 247, 217, 0.84);
  font-weight: 700;
  text-align: right;
}

.manual-tare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(96px, 0.6fr);
  gap: 10px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-grid select,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-grid input {
  min-height: 54px;
  border: 1px solid rgba(246, 211, 111, 0.36);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.manual-box-count-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.manual-box-count-controls button {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(246, 211, 111, 0.36);
  background: rgba(246, 211, 111, 0.12);
  color: #fff7d9;
  font-size: 1.05rem;
  font-weight: 900;
}

.manual-box-count-controls button:disabled,
.manual-tare-grid input:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.manual-entry-preview {
  min-height: 96px;
}

.manual-entry-actions {
  display: grid;
}

.manual-save-button.button.primary {
  min-height: 68px;
  width: 100%;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: 0.02em;
}

.manual-save-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(520px, calc(100vw - 28px));
  min-height: 58px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(246, 211, 111, 0.56);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 85, 48, 0.98), rgba(4, 38, 26, 0.98));
  color: #fff7d9;
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.manual-save-toast.hidden {
  display: none;
}

.worker-collections-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(246, 211, 111, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(86, 210, 117, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(4, 22, 16, 0.96), rgba(1, 10, 8, 0.98));
}

.worker-collections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worker-collections-head > div {
  display: grid;
  gap: 4px;
}

.worker-collections-head strong {
  color: #fff7d9;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.worker-collections-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.compact-worker-collection-row {
  min-height: 58px;
}

.compact-worker-collection-row.is-active {
  align-items: stretch;
  flex-direction: column;
}

.worker-collection-value {
  margin-left: auto;
}

.worker-collection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.worker-collection-actions .button {
  min-height: 44px;
}

.worker-harvest-inline-edit,
.worker-harvest-inline-delete {
  grid-column: 1 / -1;
}

.report-schedule-row {
  align-items: stretch;
}

.report-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-schedule-actions .button {
  min-height: 42px;
  padding: 0 12px;
}

.button.danger-soft {
  border-color: rgba(255, 133, 133, 0.45);
  color: #ffd2c8;
}

.checkbox {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.health-box {
  border-radius: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

.health-box.ok {
  border-color: #b7d4c3;
  background: #edf8f1;
  color: var(--green);
}

.health-box.error {
  border-color: #f0c7c3;
  background: #fff4f2;
  color: var(--danger);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--panel-soft);
}

@media (max-width: 1180px) {
  .work-screen .context-card {
    max-height: none;
    grid-template-columns: minmax(230px, 260px) minmax(210px, 1fr) max-content;
  }

  .work-screen .work-brand-block {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .work-screen .work-logo {
    width: 72px;
    height: 72px;
    margin: -4px 0;
  }

  .sandbox-context-badge {
    grid-column: 2 / 4;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .work-screen .context-card {
    grid-template-columns: minmax(168px, 200px) minmax(180px, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .work-screen .work-brand-block {
    grid-template-columns: 56px minmax(0, 1fr);
    min-width: 0;
    padding-right: 14px;
  }

  .work-screen .work-logo {
    width: 62px;
    height: 62px;
    margin: -2px 0;
  }

  .work-screen .context-card h2 {
    font-size: 24px;
  }

  .work-screen .context-card .copy {
    font-size: 14px;
  }

  .sandbox-context-badge {
    grid-column: 1 / -1;
    max-width: none;
    min-height: 72px;
    padding: 12px 14px;
  }

  .work-screen .context-pills {
    justify-content: flex-end;
  }

  .menu-grid,
  .big-actions,
  .stats-grid,
  .detail-grid,
  .manual-entry-context,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .manual-tare-head,
  .manual-tare-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manual-tare-head small {
    text-align: left;
  }

  .shell {
    width: min(calc(100vw - 20px), 980px);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .context-card {
    display: grid;
  }

  .work-screen .context-card {
    grid-template-columns: 1fr;
  }

  .work-screen .work-brand-block {
    width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 170, 77, 0.36);
  }

  .sandbox-context-badge {
    grid-column: auto;
  }

  .work-screen .context-pills {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .work-screen .app-language-switch {
    width: 100%;
    flex-basis: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .work-screen .header-icon {
    flex: 1 1 0;
    width: auto;
    min-width: 56px;
    height: 48px;
  }

  .menu-grid,
  .big-actions,
  .stats-grid,
  .detail-grid,
  .manual-entry-context,
  .manual-rfid-entry-row,
  .source-status-grid,
  .source-truth-grid,
  .communication-compose,
  .communication-lists,
  .two-col {
    grid-template-columns: 1fr;
  }

  .list-row,
  .form-actions {
    display: grid;
  }

  .manual-stepper-card {
    padding: 16px;
  }

  .manual-stepper-head {
    display: grid;
  }

  .manual-stepper-control {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
  }

  .manual-stepper-button {
    min-height: 78px;
  }

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

  .row-meta-stack {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .auth-screen .shell {
    width: min(calc(100vw - 32px), 620px);
    padding: 24px 0 30px;
    gap: 18px;
  }

  .auth-screen .topbar {
    display: flex;
  }

  .auth-screen .language-switch {
    width: min(calc(100vw - 48px), 360px);
    height: 52px;
  }

  .auth-screen #auth-panel,
  .auth-screen #password-change-panel {
    width: 100%;
    padding: 28px;
  }

  .auth-screen .login-logo-badge {
    width: min(240px, 78%);
    min-height: 164px;
    margin-bottom: 22px;
    padding: 14px 18px;
  }

  .auth-screen #auth-panel .section-head,
  .auth-screen #password-change-panel .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .auth-screen #auth-panel input,
  .auth-screen #password-change-panel input,
  .auth-screen #auth-panel .button.primary,
  .auth-screen #password-change-panel .button.primary {
    min-height: 54px;
    font-size: 16px;
  }

  .auth-screen #password-change-panel h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .auth-screen #password-change-panel .copy {
    font-size: 16px;
  }
}

@media (max-width: 920px) {
  .entity-onboarding-screen .shell,
  html.entity-onboarding-route .shell {
    width: min(calc(100vw - 28px), 760px);
  }

  .entity-onboarding-screen .topbar,
  html.entity-onboarding-route .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .entity-onboarding-screen .language-switch,
  html.entity-onboarding-route .language-switch {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 360px);
  }

  .entity-onboarding-screen .secure-onboarding-badge,
  html.entity-onboarding-route .secure-onboarding-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .premium-entity-onboarding,
  .premium-registration-request {
    padding: 30px 30px 28px;
  }

  .premium-onboarding-hero,
  .registration-request-hero {
    grid-template-columns: 1fr;
  }

  .premium-intro,
  .registration-request-intro {
    margin-left: 0;
  }

  .premium-form-head,
  .premium-entity-onboarding .form-actions {
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 640px) {
  .entity-onboarding-screen .shell,
  html.entity-onboarding-route .shell {
    width: min(calc(100vw - 18px), 560px);
    padding-top: 14px;
    gap: 16px;
  }

  .entity-onboarding-screen .topbar,
  html.entity-onboarding-route .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .entity-onboarding-screen .secure-onboarding-badge,
  html.entity-onboarding-route .secure-onboarding-badge {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }

  .entity-onboarding-screen .brand,
  html.entity-onboarding-route .brand {
    font-size: 17px;
    letter-spacing: 0.25em;
  }

  .premium-entity-onboarding,
  .premium-registration-request {
    padding: 22px 18px 24px;
    border-radius: 8px;
    width: min(100%, calc(100vw - 18px));
  }

  .premium-onboarding-title {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .premium-onboarding-icon {
    width: 62px;
    height: 62px;
  }

  .premium-harvestor-mark svg {
    width: 50px;
    height: 50px;
  }

  .premium-onboarding-title h2 {
    font-size: 28px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .premium-subtitle {
    font-size: 17px;
    line-height: 1.35;
  }

  .registration-request-intro {
    margin-top: 22px;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: center;
  }

  .premium-stepper {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  .premium-stepper li + li::before {
    right: calc(50% + 20px);
    width: calc(100% - 40px);
  }

  .premium-stepper strong {
    max-width: 100%;
    font-size: 11px;
  }

  .premium-form-head,
  .premium-entity-onboarding .form-actions {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .premium-entity-onboarding form.two-col {
    grid-template-columns: 1fr;
  }

  .premium-entity-onboarding .form-actions {
    display: grid;
    gap: 18px;
  }

  .premium-data-note {
    grid-template-columns: 30px 1fr;
  }

  .premium-continue-button.button.primary {
    min-width: 0;
    width: 100%;
  }

  .premium-registration-request .premium-continue-button {
    justify-self: stretch;
  }

  .registration-request-hero {
    overflow: hidden;
  }

  .registration-request-hero .premium-onboarding-title {
    min-width: 0;
  }

  .registration-request-hero .premium-stepper strong {
    overflow-wrap: break-word;
  }
}

@media (min-width: 721px) and (max-height: 850px) {
  .auth-screen .shell {
    padding: 16px 0 18px;
    gap: 10px;
  }

  .auth-screen .language-switch {
    width: 352px;
    height: 46px;
  }

  .auth-screen #auth-panel {
    width: min(548px, 100%);
    padding: 20px 38px 18px;
  }

  .auth-screen .login-logo-badge {
    width: 184px;
    min-height: 118px;
    margin-bottom: 10px;
    padding: 8px 14px;
  }

  .auth-screen .login-divider {
    margin: 0 12px 10px;
  }

  .auth-screen .login-divider span {
    height: 20px;
    transform: scale(0.9);
  }

  .auth-screen #auth-panel .section-head {
    margin-bottom: 12px;
  }

  .auth-screen #auth-panel .stack {
    gap: 8px;
  }

  .auth-screen #auth-panel input,
  .auth-screen #auth-panel .button.primary {
    min-height: 44px;
  }

  .auth-screen #auth-panel input {
    font-size: 16px;
  }

  .auth-screen #auth-panel .button.primary {
    font-size: 17px;
  }

  .auth-screen #auth-panel .status-line {
    margin-top: 6px;
    font-size: 13px;
  }

  .auth-screen #auth-panel .copy {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .auth-screen .shell {
    width: min(calc(100vw - 24px), 620px);
  }

  .auth-screen #auth-panel {
    padding: 22px 20px;
  }

  .auth-screen .login-logo-badge {
    width: min(204px, 78%);
    min-height: 136px;
    margin-bottom: 14px;
  }

  .auth-screen #auth-panel .copy {
    font-size: 14px;
  }

  .language-switch button {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen .login-bg,
  .auth-screen .login-particles,
  body.auth-screen::before,
  .auth-screen #auth-panel,
  .auth-screen .login-logo-badge::after {
    animation: none;
  }
}

/* WO-HV541 - Harvestor Visual System 2.0: unify the operational shell with
   the premium dark command-center identity while leaving terminal/sysadmin
   special-purpose surfaces scoped to their existing systems. */
body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: dark;
  --panel: rgba(6, 14, 12, 0.92);
  --panel-soft: rgba(10, 22, 18, 0.86);
  --line: rgba(236, 196, 99, 0.18);
  --text: #f7f2e7;
  --muted: #9aa89e;
  --blue: #d8aa4d;
  --blue-deep: #af7a24;
  --blue-soft: rgba(216, 170, 77, 0.13);
  --green: #56d275;
  --amber: #f0c866;
  --danger: #ff7a66;
  --hv-text: #f7f2e7;
  --hv-heading: #fff9e8;
  --hv-label: #e5c477;
  --hv-muted: #a8b7ad;
  --hv-panel-title: #f2cf78;
  --hv-content-bg: rgba(3, 9, 8, 0.94);
  --hv-card-bg: rgba(9, 19, 16, 0.92);
  --hv-card-border: rgba(236, 196, 99, 0.2);
}

body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background:
    radial-gradient(circle at 48% 0%, rgba(86, 210, 117, 0.15), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(216, 170, 77, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.78));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
  min-height: 104px;
  max-height: 124px;
  grid-template-columns: minmax(340px, 390px) minmax(230px, 1fr) minmax(220px, 320px) max-content;
  padding: 12px 20px;
  border-color: rgba(236, 196, 99, 0.28);
  background:
    linear-gradient(112deg, rgba(0, 0, 0, 0.42), transparent 56%),
    radial-gradient(circle at 74% 14%, rgba(236, 196, 99, 0.16), transparent 32%),
    radial-gradient(circle at 15% 84%, rgba(86, 210, 117, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 19, 16, 0.98), rgba(2, 8, 7, 0.96));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-right: 20px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
  width: 98px;
  height: 98px;
  margin: -8px 0;
  filter: drop-shadow(0 0 22px rgba(216, 170, 77, 0.42));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
  color: #fff1bd;
  font-size: 20px;
  letter-spacing: 0.28em;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
  color: #fff7dc;
  font-size: clamp(24px, 1.75vw, 34px);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy {
  color: #b8c9bc;
}

@media (min-width: 1025px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app {
    grid-template-columns: minmax(280px, 322px) minmax(0, 1fr);
    gap: 20px 24px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid {
    padding: 18px;
    border-color: rgba(236, 196, 99, 0.22);
    background:
      radial-gradient(circle at 24% 0%, rgba(86, 210, 117, 0.18), transparent 40%),
      linear-gradient(180deg, rgba(6, 18, 16, 0.96), rgba(1, 7, 7, 0.98));
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item {
    min-height: 66px;
    border-radius: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #worker-detail-panel,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-form {
    border-color: rgba(236, 196, 99, 0.18);
    border-radius: 12px;
    background:
      radial-gradient(circle at 92% 8%, rgba(216, 170, 77, 0.08), transparent 32%),
      radial-gradient(circle at 12% 0%, rgba(86, 210, 117, 0.07), transparent 28%),
      linear-gradient(180deg, rgba(10, 21, 18, 0.94), rgba(5, 12, 10, 0.96));
    color: var(--hv-text);
    box-shadow:
      0 22px 70px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 239, 181, 0.05);
  }
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item {
  border-color: rgba(216, 170, 77, 0.32);
  background:
    linear-gradient(90deg, rgba(216, 170, 77, 0.08), transparent 36%),
    rgba(2, 10, 9, 0.72);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active {
  border-color: rgba(246, 211, 111, 0.72);
  background:
    radial-gradient(circle at 18% 50%, rgba(86, 210, 117, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(216, 170, 77, 0.18), rgba(216, 170, 77, 0.04) 48%, transparent),
    rgba(4, 18, 15, 0.9);
  box-shadow: inset 0 0 28px rgba(216, 170, 77, 0.06), 0 0 28px rgba(86, 210, 117, 0.08);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item strong {
  color: #f2e4c0;
  font-weight: 820;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active strong,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover strong {
  color: #fff6db;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 12px rgba(245, 190, 67, 0.58));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .section-head {
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(236, 196, 99, 0.12);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel h3,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel h3,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #worker-detail-panel h3 {
  color: var(--hv-heading);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel .eyebrow,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel .eyebrow,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-label {
  color: var(--hv-label);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .muted,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .copy,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .status-line,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .detail-card span,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .row-copy span,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .row-copy small,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .stat-card span {
  color: var(--hv-muted);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea {
  border-color: rgba(236, 196, 99, 0.2);
  background: rgba(2, 8, 7, 0.76);
  color: var(--hv-heading);
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.04);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input::placeholder,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea::placeholder {
  color: rgba(184, 201, 188, 0.72);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input:focus,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select:focus,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea:focus {
  border-color: rgba(246, 211, 111, 0.72);
  box-shadow: 0 0 0 3px rgba(216, 170, 77, 0.16), 0 0 28px rgba(86, 210, 117, 0.08);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary {
  border: 1px solid rgba(255, 230, 162, 0.62);
  background: linear-gradient(180deg, #f2d27a, #b7802d);
  color: #06100c;
  font-weight: 900;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.ghost {
  border: 1px solid rgba(236, 196, 99, 0.24);
  background: rgba(4, 12, 10, 0.78);
  color: #f4dfaa;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.ghost:hover,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary:hover {
  filter: brightness(1.08);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .rfid-action-form,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .health-box {
  border-color: rgba(236, 196, 99, 0.17);
  background:
    linear-gradient(180deg, rgba(13, 26, 22, 0.84), rgba(5, 13, 11, 0.88));
  color: var(--hv-text);
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.04);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-filter-card {
  border-color: rgba(216, 170, 77, 0.72);
  background:
    radial-gradient(circle at 96% 12%, rgba(216, 170, 77, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(47, 35, 10, 0.94), rgba(10, 18, 13, 0.94));
  color: #fff6d8;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-row.is-at-work,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip:has(.status-chip.ok) {
  border-color: rgba(86, 210, 117, 0.34);
  background:
    radial-gradient(circle at 96% 50%, rgba(86, 210, 117, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 24, 0.9), rgba(5, 15, 12, 0.92));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-row.is-away {
  border-color: rgba(216, 170, 77, 0.16);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-row.is-selected {
  border-color: rgba(246, 211, 111, 0.72);
  box-shadow: inset 3px 0 0 rgba(246, 211, 111, 0.88), 0 0 28px rgba(216, 170, 77, 0.12);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .row-button:hover,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip:hover,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button:hover {
  border-color: rgba(246, 211, 111, 0.46);
  background:
    linear-gradient(180deg, rgba(18, 35, 29, 0.94), rgba(7, 18, 15, 0.96));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-layout {
  display: grid;
  gap: 16px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel {
  border: 1px solid rgba(236, 196, 99, 0.18);
  border-radius: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 82% 10%, rgba(86, 210, 117, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(10, 22, 19, 0.92), rgba(4, 12, 10, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.05);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head strong {
  display: block;
  color: var(--hv-heading);
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1.1;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span {
  border: 1px solid rgba(236, 196, 99, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(2, 8, 7, 0.58);
  color: var(--hv-muted);
  font-weight: 800;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong {
  display: inline;
  color: #f6d36f;
  font-size: inherit;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays {
  margin-bottom: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays span {
  color: rgba(247, 242, 231, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day {
  min-height: 98px;
  border: 1px solid rgba(236, 196, 99, 0.15);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 12, 10, 0.72);
  color: var(--hv-text);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-weekend {
  background:
    repeating-linear-gradient(135deg, rgba(240, 200, 102, 0.12) 0 6px, rgba(4, 12, 10, 0.72) 6px 13px),
    rgba(4, 12, 10, 0.72);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-today {
  border-color: rgba(246, 211, 111, 0.66);
  box-shadow: 0 0 0 1px rgba(246, 211, 111, 0.18), 0 0 24px rgba(216, 170, 77, 0.1);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.has-activity {
  border-color: rgba(86, 210, 117, 0.38);
  background:
    radial-gradient(circle at 90% 10%, rgba(86, 210, 117, 0.16), transparent 38%),
    rgba(5, 18, 13, 0.88);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head strong {
  color: var(--hv-heading);
  font-size: 18px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span {
  color: rgba(247, 217, 130, 0.72);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span {
  color: #75e69b;
  font-size: 16px;
  font-weight: 900;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small {
  color: rgba(168, 183, 173, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel {
  border: 1px solid rgba(236, 196, 99, 0.18);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0.94), rgba(3, 10, 8, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.05);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head h4 {
  margin: 4px 0 0;
  color: var(--hv-heading);
  font-size: 22px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head p {
  max-width: 430px;
  margin: 0;
  color: var(--hv-muted);
  font-weight: 750;
  line-height: 1.35;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) repeat(3, minmax(128px, 1fr)) minmax(160px, 1.2fr) minmax(118px, auto);
  gap: 10px;
  align-items: end;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(86, 210, 117, 0.24);
  border-radius: 10px;
  background: rgba(16, 83, 48, 0.18);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 196, 99, 0.14);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-head strong {
  color: var(--hv-heading);
  font-size: 15px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-head span {
  color: var(--hv-muted);
  font-size: 13px;
  font-weight: 700;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-list {
  display: grid;
  gap: 10px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row {
  padding: 12px;
  border: 1px solid rgba(236, 196, 99, 0.14);
  border-radius: 10px;
  background: rgba(2, 8, 7, 0.46);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date {
  display: grid;
  gap: 3px;
  align-self: center;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date strong {
  color: var(--hv-heading);
  font-size: 15px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date span {
  color: #75e69b;
  font-size: 13px;
  font-weight: 900;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label {
  display: grid;
  gap: 6px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label span,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label span {
  color: #f7d982;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form input,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row input {
  min-height: 46px;
  border-radius: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form button,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row button {
  min-height: 48px;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-actions button {
  flex: 1 1 110px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-entry-row {
  align-items: stretch;
  flex-direction: column;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-entry-actions .compact-button {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work > article:nth-of-type(2) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #work-recent-list {
  max-height: min(54vh, 620px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-admin-tool-menu {
  border-color: rgba(236, 196, 99, 0.24);
  background: rgba(4, 12, 10, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button {
  border-color: rgba(236, 196, 99, 0.2);
  background: rgba(4, 12, 10, 0.74);
  color: var(--hv-muted);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button.active {
  border-color: rgba(246, 211, 111, 0.68);
  background: linear-gradient(180deg, #f2d27a, #b7802d);
  color: #06100c;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip {
  border: 1px solid rgba(236, 196, 99, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #d5dfd7;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.ok {
  border-color: rgba(86, 210, 117, 0.36);
  background: rgba(39, 126, 73, 0.18);
  color: #75e69b;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.away,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.warn {
  border-color: rgba(240, 200, 102, 0.38);
  background: rgba(216, 170, 77, 0.13);
  color: #f7d982;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.muted,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.neutral {
  border-color: rgba(168, 183, 173, 0.18);
  background: rgba(168, 183, 173, 0.08);
  color: #a8b7ad;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-lists {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.7fr);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-thread-panel {
  padding: 14px;
  border: 1px solid rgba(236, 196, 99, 0.14);
  border-radius: 10px;
  background: rgba(4, 12, 10, 0.58);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-lists h4 {
  color: var(--hv-heading);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button.active {
  border-color: rgba(86, 210, 117, 0.42);
  background:
    radial-gradient(circle at 94% 18%, rgba(86, 210, 117, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(17, 40, 30, 0.92), rgba(5, 16, 12, 0.94));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .rfid-action-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 170, 77, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(9, 20, 17, 0.94), rgba(5, 13, 11, 0.96));
  color: var(--hv-text);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel p,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel span,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel small,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel label,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel label span,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel .status-line {
  color: var(--hv-muted);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-panel .detail-label,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-form label,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .rfid-action-form label span {
  color: var(--hv-label);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .health-box.ok {
  border-color: rgba(86, 210, 117, 0.34);
  background: rgba(39, 126, 73, 0.15);
  color: #75e69b;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .health-box.error {
  border-color: rgba(255, 122, 102, 0.3);
  background: rgba(180, 35, 24, 0.14);
  color: #ff9b8c;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .access-next-steps {
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .access-next-steps span:not(.detail-label),
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .access-next-steps small {
  display: block;
  line-height: 1.45;
}

html.theme-field-light body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen),
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: light;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(244, 248, 242, 0.94);
  --line: rgba(19, 91, 59, 0.18);
  --text: #18261e;
  --muted: #526257;
  --blue: #176b45;
  --blue-deep: #0d4c32;
  --blue-soft: rgba(23, 107, 69, 0.1);
  --green: #0f7a47;
  --amber: #8c6415;
  --danger: #b42318;
  --hv-text: #17251d;
  --hv-heading: #08190f;
  --hv-label: #0d6b42;
  --hv-muted: #516256;
  --hv-panel-title: #0b5134;
  --hv-content-bg: #f4f7ef;
  --hv-card-bg: #ffffff;
  --hv-card-border: rgba(18, 91, 58, 0.2);
  background: linear-gradient(180deg, #fbfff6 0%, #e9f0e1 100%);
}

html.theme-field-light body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(221, 233, 211, 0.92));
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #worker-detail-panel,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) #worker-detail-panel {
  border-color: rgba(18, 91, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 241, 0.97));
  color: var(--hv-text);
  box-shadow: 0 16px 44px rgba(36, 60, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item strong,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item strong,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel h3,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel h3,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel h3,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel h3 {
  color: var(--hv-heading);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .rfid-action-form,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .rfid-action-form,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty {
  border-color: rgba(18, 91, 58, 0.16);
  background: #ffffff;
  color: var(--hv-text);
  box-shadow: 0 8px 24px rgba(34, 63, 43, 0.08);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active {
  border-color: rgba(13, 107, 66, 0.48);
  background: linear-gradient(90deg, rgba(23, 107, 69, 0.14), rgba(232, 190, 76, 0.1));
  box-shadow: inset 4px 0 0 rgba(13, 107, 66, 0.72), 0 10px 26px rgba(34, 63, 43, 0.1);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea {
  border-color: rgba(13, 107, 66, 0.28);
  background: #ffffff;
  color: #08190f;
  box-shadow: inset 0 1px 0 rgba(8, 25, 15, 0.04);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input:focus,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select:focus,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea:focus,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input:focus,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select:focus,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea:focus {
  border-color: #0d6b42;
  box-shadow: 0 0 0 4px rgba(13, 107, 66, 0.16);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary {
  border-color: rgba(6, 82, 48, 0.42);
  background: linear-gradient(180deg, #1f8a59, #0d5f3a);
  color: #ffffff;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.ghost,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.ghost {
  border-color: rgba(13, 107, 66, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #0d5134;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip {
  border-color: rgba(13, 107, 66, 0.2);
  background: rgba(13, 107, 66, 0.08);
  color: #0d5134;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel {
  border-color: rgba(18, 91, 58, 0.2);
  background: #ffffff;
  color: #17251d;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head strong,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head strong,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head strong,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head strong {
  color: #08190f;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays span,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small {
  color: #4e5f54;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day {
  border-color: rgba(18, 91, 58, 0.14);
  background: #f7faf2;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-weekend,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-weekend {
  background: repeating-linear-gradient(135deg, rgba(18, 91, 58, 0.1), rgba(18, 91, 58, 0.1) 8px, rgba(255, 255, 255, 0.88) 8px, rgba(255, 255, 255, 0.88) 16px);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-today,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-today {
  border-color: rgba(193, 138, 18, 0.74);
  box-shadow: inset 0 0 0 2px rgba(193, 138, 18, 0.38);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.has-activity,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.has-activity {
  background: linear-gradient(180deg, rgba(13, 107, 66, 0.14), rgba(255, 255, 255, 0.96));
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span {
  color: #0b5134;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form {
  border-color: rgba(18, 91, 58, 0.18);
  background: #ffffff;
  color: #08190f;
  box-shadow: 0 8px 24px rgba(34, 63, 43, 0.08);
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head h4,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date strong,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head h4,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date strong {
  color: #08190f;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head p,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label span,
html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head p,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label span {
  color: #0d5134;
}

html.theme-field-light .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date span,
body.work-screen.theme-field-light:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date span {
  color: #0b5134;
}

html.theme-high-contrast body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen),
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: light;
  --panel: #ffffff;
  --panel-soft: #f6f6f6;
  --line: #000000;
  --text: #000000;
  --muted: #242424;
  --blue: #000000;
  --blue-deep: #000000;
  --blue-soft: #eeeeee;
  --green: #000000;
  --amber: #000000;
  --danger: #000000;
  --hv-text: #000000;
  --hv-heading: #000000;
  --hv-label: #000000;
  --hv-muted: #222222;
  --hv-panel-title: #000000;
  --hv-content-bg: #ffffff;
  --hv-card-bg: #ffffff;
  --hv-card-border: #000000;
  background: #ffffff;
}

html.theme-high-contrast body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background: #ffffff;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active {
  background: #000000;
  color: #ffffff;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head strong,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head strong,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head strong,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head strong,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small {
  color: #000000;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-weekend,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-weekend {
  background: #f0f0f0;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-today,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day.is-today {
  outline: 4px solid #000000;
  outline-offset: -6px;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head h4,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head p,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date strong,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label span,
html.theme-high-contrast .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head h4,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head p,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date strong,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-date span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form label span,
body.work-screen.theme-high-contrast:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row label span {
  color: #000000;
}

@media (max-width: 1180px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-note {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel {
    padding: 12px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-head {
    display: grid;
    gap: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-note {
    grid-column: auto;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form input,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row input,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form button,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row button,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-entry-actions .compact-button {
    min-height: 54px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* WO-HV543 - Dashboard command center content layer. */
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-home.dashboard-command-view {
  gap: 0;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-panel {
  padding: clamp(18px, 2vw, 28px);
  border-color: rgba(236, 196, 99, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(86, 210, 117, 0.08), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(216, 170, 77, 0.12), transparent 30%),
    linear-gradient(180deg, #101417 0%, #0b0f12 100%);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head {
  margin-bottom: 16px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card {
  min-width: 0;
  border: 1px solid rgba(236, 196, 99, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(26, 35, 39, 0.94), rgba(18, 24, 27, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.04), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card {
  position: relative;
  min-height: 118px;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon copy";
  align-items: center;
  column-gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  opacity: 0.16;
  background: currentColor;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card.is-green {
  color: #75e69b;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card.is-gold {
  color: #f4c957;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 196, 99, 0.2);
  border-radius: 10px;
  background: rgba(7, 12, 14, 0.72);
  box-shadow: inset 0 0 20px rgba(236, 196, 99, 0.04);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon::before,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("assets/menu-icons/dashboard.svg") center / contain no-repeat;
  mask: url("assets/menu-icons/dashboard.svg") center / contain no-repeat;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon.clock::before { -webkit-mask-image: url("assets/dashboard-icons/labor-hours.svg"); mask-image: url("assets/dashboard-icons/labor-hours.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.clock::before { -webkit-mask-image: url("assets/dashboard-icons/labor-hours.svg"); mask-image: url("assets/dashboard-icons/labor-hours.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon.people::before { -webkit-mask-image: url("assets/dashboard-icons/at-work.svg"); mask-image: url("assets/dashboard-icons/at-work.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.person-plus::before { -webkit-mask-image: url("assets/menu-icons/people.svg"); mask-image: url("assets/menu-icons/people.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon.person::before { -webkit-mask-image: url("assets/dashboard-icons/away.svg"); mask-image: url("assets/dashboard-icons/away.svg"); opacity: 0.72; }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon.basket::before,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.basket::before { -webkit-mask-image: url("assets/dashboard-icons/harvest-volume.svg"); mask-image: url("assets/dashboard-icons/harvest-volume.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.message::before { -webkit-mask-image: url("assets/menu-icons/messages.svg"); mask-image: url("assets/menu-icons/messages.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.rfid::before { -webkit-mask-image: url("assets/menu-icons/device.svg"); mask-image: url("assets/menu-icons/device.svg"); }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon.report::before { -webkit-mask-image: url("assets/menu-icons/report.svg"); mask-image: url("assets/menu-icons/report.svg"); }

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card .detail-label {
  grid-area: label;
  color: rgba(215, 226, 218, 0.76);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card strong {
  grid-area: value;
  color: #f8fbf7;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card small {
  grid-area: copy;
  color: currentColor;
  font-size: 12px;
  font-weight: 750;
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "chart products"
    "employees labor"
    "employees actions";
  gap: 12px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-card { grid-area: chart; }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-products-card { grid-area: products; }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-employees-card { grid-area: employees; }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-card { grid-area: labor; }
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-actions-card { grid-area: actions; }

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card {
  min-height: 0;
  padding: 14px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head strong {
  color: #f4c957;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .compact-button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart {
  position: relative;
  height: clamp(230px, 30vh, 330px);
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  align-items: end;
  gap: 14px;
  padding: 16px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background:
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 25%),
    linear-gradient(180deg, rgba(10, 15, 18, 0.38), rgba(7, 11, 13, 0.74));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar {
  height: 100%;
  min-height: 156px;
  min-width: 0;
  display: grid;
  grid-template-rows: 28px 1fr 28px;
  align-items: end;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar:focus-visible {
  outline: 2px solid rgba(244, 201, 87, 0.82);
  outline-offset: 4px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar.is-selected > span {
  box-shadow:
    0 0 0 3px rgba(244, 201, 87, 0.28),
    0 0 24px rgba(244, 201, 87, 0.34);
  filter: saturate(1.18);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar strong {
  color: #dce7de;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar > span {
  width: min(54px, 74%);
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #75e69b, #2d7a42);
  box-shadow: 0 0 18px rgba(86, 210, 117, 0.18);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar.is-today > span {
  background: linear-gradient(180deg, #f4c957, #b7802d);
  box-shadow: 0 0 22px rgba(244, 201, 87, 0.24);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar small {
  color: rgba(215, 226, 218, 0.72);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover {
  position: absolute;
  z-index: 6;
  left: 14px;
  right: 14px;
  top: 12px;
  display: grid;
  gap: 8px;
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 14px 44px 14px 14px;
  border: 1px solid rgba(244, 201, 87, 0.62);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(244, 201, 87, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(7, 31, 20, 0.98), rgba(3, 13, 10, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover strong {
  color: #f4c957;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list {
  display: grid;
  gap: 6px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list div {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list span {
  min-width: 0;
  color: #f8fbf7;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list b {
  color: #75e69b;
  font-weight: 950;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 201, 87, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: #f4c957;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-list,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-strip,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-summary,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-quick-actions {
  display: grid;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 19px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row strong,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-main strong,
.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button strong {
  color: #f8fbf7;
  font-weight: 850;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row b {
  color: #75e69b;
  font-weight: 900;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-list {
  margin: 14px 0;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 201, 87, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 201, 87, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(4, 28, 19, 0.9), rgba(2, 13, 10, 0.94));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-panel h4 {
  margin: 0;
  color: #fff7d9;
  font-size: clamp(20px, 2.5vw, 28px);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-items {
  display: grid;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-actions .button {
  min-height: 42px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  text-align: left;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 201, 87, 0.44), rgba(84, 63, 24, 0.7));
  color: #fff4cd;
  font-size: 12px;
  font-weight: 950;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-main small {
  color: rgba(215, 226, 218, 0.62);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric {
  display: grid;
  grid-template-columns: 12px minmax(78px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #75e69b;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric strong {
  color: #f8fbf7;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric span:last-child {
  color: rgba(215, 226, 218, 0.72);
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button {
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(236, 196, 99, 0.16);
  border-radius: 9px;
  background: rgba(7, 12, 14, 0.66);
  color: #f4c957;
  cursor: pointer;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon {
  width: 30px;
  height: 30px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon::before {
  width: 18px;
  height: 18px;
}

.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-empty-state {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed rgba(236, 196, 99, 0.18);
  border-radius: 9px;
  color: rgba(215, 226, 218, 0.72);
  background: rgba(7, 12, 14, 0.52);
}

/* WO-HV558 - Worker portal keeps the same premium shell while removing admin surfaces. */
.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view {
  gap: 14px;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
  font-size: clamp(24px, 1.7vw, 32px);
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy {
  color: rgba(215, 226, 218, 0.7);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-panel {
  border-color: rgba(236, 196, 99, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(86, 210, 117, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 26, 22, 0.96), rgba(8, 13, 13, 0.98));
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-kpis {
  margin-bottom: 12px;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view .detail-card {
  border-color: rgba(236, 196, 99, 0.14);
  background: rgba(7, 12, 14, 0.56);
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view .list {
  gap: 8px;
}

.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view .list-row {
  border-color: rgba(236, 196, 99, 0.12);
  background: rgba(7, 12, 14, 0.54);
}

@media (max-width: 1180px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    grid-template-columns: minmax(260px, 320px) minmax(210px, 1fr) max-content;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 860px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-summary {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals {
    justify-content: flex-start;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-weekdays,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-grid {
    gap: 5px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day {
    min-height: 82px;
    padding: 7px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-day-head span,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small {
    display: none;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    max-height: none;
    grid-template-columns: minmax(220px, 280px) minmax(180px, 1fr);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-lists {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-actions,
  .work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "products"
      "employees"
      "labor"
      "actions";
  }
}

@media (max-width: 720px) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .shell {
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    padding: 14px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    width: 64px;
    height: 64px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
    font-size: 17px;
    letter-spacing: 0.2em;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .section-head {
    align-items: stretch;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card {
    min-height: 92px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 12px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card strong {
    font-size: 30px;
  }

  .work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-actions,
  .work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-profile-summary {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart {
    grid-template-columns: repeat(7, minmax(28px, 1fr));
    gap: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-row {
    grid-template-columns: 1fr;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-actions {
    justify-content: stretch;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-actions .button {
    flex: 1 1 110px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

/* Sysadmin is a desktop control plane. Keep this override at the end so
   the app/mobile shell cannot collapse it into the narrow phone layout. */
body.sysadmin-screen.work-screen {
  min-width: 1180px;
  overflow-x: auto;
}

body.sysadmin-screen.work-screen .shell,
body.sysadmin-screen .shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: block;
  padding: 0;
  margin: 0;
  gap: 0;
  background: transparent;
  box-shadow: none;
}

body.sysadmin-screen .sysadmin-panel {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 7, 6, 0.94);
}

body.sysadmin-screen .sysadmin-console {
  min-height: 100vh;
}

body.sysadmin-screen .hv-admin-shell {
  width: 100%;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
}

body.sysadmin-screen .hv-admin-sidebar {
  min-height: 100vh;
  padding: 24px 18px 20px;
}

body.sysadmin-screen .hv-admin-main {
  min-width: 0;
  padding: 22px 28px 32px;
  overflow: hidden;
}

body.sysadmin-screen .hv-admin-topbar {
  grid-template-columns: minmax(0, 1fr) minmax(430px, auto);
  align-items: start;
}

body.sysadmin-screen .hv-admin-topbar h2 {
  max-width: 100%;
  font-size: clamp(30px, 2.3vw, 44px);
  line-height: 1.02;
  overflow-wrap: normal;
}

body.sysadmin-screen .hv-admin-top-actions {
  justify-content: end;
  min-width: 0;
}

body.sysadmin-screen .hv-admin-global-search input {
  width: min(330px, 25vw);
}

body.sysadmin-screen .hv-admin-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

body.sysadmin-screen .hv-admin-detail-grid,
body.sysadmin-screen .hv-admin-user-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

body.sysadmin-screen .hv-admin-kpis {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

body.sysadmin-screen .hv-admin-filter-row {
  flex-wrap: wrap;
}

body.sysadmin-screen .hv-admin-table {
  min-width: 940px;
}

body.sysadmin-screen .hv-admin-users-table {
  min-width: 1120px;
}

body.sysadmin-screen .hv-admin-card,
body.sysadmin-screen .hv-admin-hero-card {
  min-width: 0;
}

body.sysadmin-screen .hv-admin-hero-card {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.25fr) minmax(260px, auto);
}

body.sysadmin-screen .hv-admin-hero-actions {
  justify-self: end;
}

@media (max-width: 1320px) {
  body.sysadmin-screen.work-screen {
    min-width: 1080px;
  }

  body.sysadmin-screen .hv-admin-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  body.sysadmin-screen .hv-admin-main {
    padding: 20px 22px 28px;
  }

  body.sysadmin-screen .hv-admin-dashboard-grid,
  body.sysadmin-screen .hv-admin-detail-grid,
  body.sysadmin-screen .hv-admin-user-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  body.sysadmin-screen .hv-admin-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.sysadmin-screen .hv-admin-top-actions {
    justify-content: space-between;
  }

  body.sysadmin-screen .hv-admin-global-search input {
    width: min(420px, 42vw);
  }

  body.sysadmin-screen .hv-admin-hero-card {
    grid-template-columns: minmax(260px, 1fr);
  }

  body.sysadmin-screen .hv-admin-hero-actions {
    justify-self: stretch;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
}

@media (max-width: 900px) {
  body.sysadmin-screen.work-screen {
    min-width: 0;
    overflow-x: hidden;
  }

  body.sysadmin-screen .hv-admin-shell {
    grid-template-columns: 1fr;
  }

  body.sysadmin-screen .hv-admin-sidebar {
    min-height: auto;
  }

  body.sysadmin-screen .hv-admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.sysadmin-screen .hv-admin-nav-text,
  body.sysadmin-screen .hv-admin-nav-group {
    display: block;
  }

  body.sysadmin-screen .hv-admin-sidebar-live {
    display: inline-flex;
  }

  body.sysadmin-screen .hv-admin-nav button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  body.sysadmin-screen .hv-admin-main {
    padding: 14px;
  }

  body.sysadmin-screen .hv-admin-kpis,
  body.sysadmin-screen .hv-admin-dashboard-grid,
  body.sysadmin-screen .hv-admin-detail-grid,
  body.sysadmin-screen .hv-admin-user-grid,
  body.sysadmin-screen .hv-admin-role-cards,
  body.sysadmin-screen .hv-admin-settings-grid,
  body.sysadmin-screen .hv-admin-profile-grid {
    grid-template-columns: 1fr;
  }

  body.sysadmin-screen .hv-admin-top-actions,
  body.sysadmin-screen .hv-admin-filter-row,
  body.sysadmin-screen .hv-admin-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.sysadmin-screen .hv-admin-global-search input {
    width: 100%;
  }
}

/* WO-HV439 premium Harvestor tablet terminal. Scoped to the terminal kiosk body class. */
body.terminal-kiosk-screen.work-screen {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62) 52%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, rgba(3, 8, 5, 0.5), rgba(0, 0, 0, 0.92)),
    url("/assets/login/harvestor-bg-2026.png") center center / cover no-repeat fixed;
}

body.terminal-kiosk-screen.work-screen::before {
  background:
    radial-gradient(circle at 48% 18%, rgba(112, 255, 102, 0.12), transparent 28%),
    radial-gradient(circle at 72% 44%, rgba(216, 168, 77, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.72));
}

.terminal-kiosk-screen .topbar,
.terminal-kiosk-screen .context-card,
.terminal-kiosk-screen .menu-grid,
.terminal-kiosk-screen .bottom-tabs,
.terminal-kiosk-screen .terminal-history,
.terminal-kiosk-screen #logout-btn,
.terminal-kiosk-screen #app-logout-btn,
.terminal-kiosk-screen #terminal-assignment-summary {
  display: none !important;
}

.terminal-kiosk-screen.work-screen .shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: clamp(10px, 1vw, 18px);
}

.terminal-kiosk-screen.work-screen .app {
  display: block;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.terminal-kiosk-screen .view:not(#view-terminal) {
  display: none !important;
}

.terminal-kiosk-screen .terminal-kiosk-shell {
  width: min(1880px, calc(100vw - clamp(20px, 2vw, 38px)));
  min-height: calc(100vh - clamp(20px, 2vw, 38px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) minmax(132px, 1fr) auto auto minmax(0, auto) auto;
  gap: clamp(8px, 0.9vh, 16px);
  color: #f5f5ef;
}

.terminal-kiosk-screen .terminal-kiosk-head {
  min-height: clamp(96px, 12vh, 150px);
  display: grid !important;
  grid-template-columns: minmax(86px, 142px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding: clamp(12px, 1.2vw, 22px) clamp(18px, 2vw, 36px);
  border: 1px solid rgba(214, 168, 77, 0.38);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 10, 8, 0.96), rgba(8, 14, 11, 0.78)),
    radial-gradient(circle at 76% 0%, rgba(214, 168, 77, 0.18), transparent 34%);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-kiosk-screen .terminal-logo {
  width: clamp(90px, 8vw, 140px);
  height: clamp(68px, 7vw, 112px);
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.65));
  cursor: default;
  user-select: none;
}

.terminal-admin-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.terminal-admin-menu.hidden {
  display: none !important;
}

.terminal-admin-card {
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(214, 168, 77, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(11, 20, 17, 0.98), rgba(4, 10, 8, 0.98)),
    radial-gradient(circle at 76% 8%, rgba(214, 168, 77, 0.18), transparent 32%);
  color: #f8f2e6;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.terminal-admin-card input {
  background: rgba(255, 255, 255, 0.96);
  color: #111820;
}

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

.terminal-kiosk-screen #terminal-screen-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: #f8e7b5;
  font-size: clamp(25px, 2.55vw, 46px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.78);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.terminal-language-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 10px;
  min-width: clamp(280px, 23vw, 360px);
  padding: 10px;
  border: 1px solid rgba(214, 168, 77, 0.32);
  border-radius: 10px;
  background: rgba(3, 7, 6, 0.78);
}

.terminal-language-switch button {
  position: relative;
  min-height: clamp(48px, 5.4vh, 64px);
  border-radius: 8px;
  border: 1px solid rgba(214, 168, 77, 0.24);
  background: rgba(4, 8, 7, 0.9);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-language-switch button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(40px, 3.8vw, 56px);
  height: clamp(27px, 2.55vw, 38px);
  transform: translate(-50%, -50%);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.48);
}

.terminal-language-switch button::after {
  content: attr(data-lang);
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  color: #f8e7b5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.terminal-language-switch button[data-lang="pl"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23fff' d='M0 0h60v20H0z'/%3E%3Cpath fill='%23dc143c' d='M0 20h60v20H0z'/%3E%3C/svg%3E");
  background-size: cover;
}

.terminal-language-switch button[data-lang="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='4.8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='8' d='M30 0v40M0 20h60'/%3E%3C/svg%3E");
  background-size: cover;
}

.terminal-language-switch button[data-lang="es"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23aa151b' d='M0 0h60v40H0z'/%3E%3Cpath fill='%23f1bf00' d='M0 10h60v20H0z'/%3E%3Cg transform='translate(15 14)'%3E%3Cpath fill='%23c60b1e' stroke='%237b1b16' stroke-width='.7' d='M0 0h8v8c0 3-1.8 4.8-4 6-2.2-1.2-4-3-4-6z'/%3E%3Cpath fill='%23f8d34f' d='M1.2 1.2h2.2v3H1.2zM4.6 1.2h2.2v3H4.6zM1.2 5.2h5.6v2H1.2z'/%3E%3Cpath fill='%234f8f3a' d='M2.1 8.6h3.8v1.8H2.1z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.terminal-language-switch button[data-lang="ua"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%230057b7' d='M0 0h60v20H0z'/%3E%3Cpath fill='%23ffd700' d='M0 20h60v20H0z'/%3E%3C/svg%3E");
  background-size: cover;
}

.terminal-language-switch button.active {
  border-color: rgba(242, 210, 122, 0.95);
  background: rgba(40, 31, 10, 0.82);
  box-shadow: 0 0 0 1px rgba(242, 210, 122, 0.32), 0 0 28px rgba(242, 210, 122, 0.28);
}

.terminal-online {
  min-width: clamp(168px, 13vw, 218px);
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding-left: clamp(14px, 1.5vw, 26px);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.terminal-online svg,
.terminal-status-footer svg,
.terminal-ready-icon svg,
.terminal-helper svg,
.terminal-input-icon,
.terminal-scan-form button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terminal-online svg {
  width: 54px;
  height: 54px;
  color: #8cff76;
  filter: drop-shadow(0 0 16px rgba(140, 255, 118, 0.34));
}

.terminal-online strong {
  display: block;
  color: #8cff76;
  font-size: clamp(18px, 1.35vw, 25px);
  font-weight: 900;
}

.terminal-online small {
  display: block;
  color: #e8dfca;
  font-size: clamp(14px, 1.05vw, 19px);
}

.terminal-kiosk-screen .terminal-ready-panel {
  width: min(1420px, 86vw);
  margin: 0 auto;
  align-self: center;
  height: clamp(126px, 17vh, 210px);
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(110px, 13vw, 190px) 1fr;
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
  padding: clamp(18px, 2vw, 32px) clamp(28px, 4vw, 72px);
  border: 1px solid rgba(116, 255, 116, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 44%, rgba(140, 255, 118, 0.14), transparent 18%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(13, 72, 38, 0.86), rgba(7, 42, 24, 0.78));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55), inset 0 0 42px rgba(99, 217, 87, 0.13);
}

.terminal-ready-icon {
  width: clamp(92px, 10vw, 160px);
  height: clamp(92px, 10vw, 160px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(140, 255, 118, 0.82);
  color: #8cff76;
  background: radial-gradient(circle, rgba(140, 255, 118, 0.16), rgba(5, 20, 12, 0.86));
  box-shadow: 0 0 44px rgba(140, 255, 118, 0.3), inset 0 0 30px rgba(140, 255, 118, 0.2);
}

.terminal-ready-icon svg {
  width: 62%;
  height: 62%;
  stroke-width: 2.8;
}

.terminal-kiosk-screen .terminal-status {
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f5ef;
  font-size: clamp(52px, 5.8vw, 104px);
  font-weight: 950;
  line-height: 0.92;
  text-align: left;
  letter-spacing: 0.02em;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.82);
}

.terminal-ready-panel small {
  display: block;
  margin-top: 12px;
  color: #8cff76;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 650;
}

.terminal-kiosk-screen .terminal-clock {
  width: min(1420px, 86vw);
  height: clamp(126px, 17vh, 210px);
  min-height: 0;
  margin: 0 auto;
  align-self: center;
  padding: clamp(14px, 1.8vw, 28px) clamp(24px, 4vw, 72px);
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(214, 168, 77, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 210, 122, 0.13), transparent 44%),
    linear-gradient(180deg, rgba(9, 12, 10, 0.9), rgba(3, 6, 5, 0.86));
  box-shadow: 0 18px 68px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-clock-time {
  color: #f2d27a;
  font-size: clamp(72px, 9.5vw, 158px);
  font-weight: 950;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.36), 0 0 34px rgba(242, 210, 122, 0.22);
}

.terminal-clock-date {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  gap: 24px;
  align-items: center;
  width: min(760px, 72vw);
  margin-top: clamp(12px, 1.5vh, 24px);
  color: #f8e7b5;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 750;
  letter-spacing: 0.24em;
  text-align: center;
}

.terminal-clock-date::before,
.terminal-clock-date::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 168, 77, 0.7));
}

.terminal-clock-date::after {
  background: linear-gradient(90deg, rgba(214, 168, 77, 0.7), transparent);
}

.terminal-kiosk-screen .terminal-scan-form {
  width: min(1420px, 86vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 20vw, 320px);
  gap: clamp(16px, 1.8vw, 28px);
  align-items: stretch;
}

.terminal-kiosk-screen .terminal-scan-form label {
  position: relative;
  display: block;
  min-height: clamp(88px, 12vh, 146px);
}

.terminal-kiosk-screen .terminal-scan-form label > span {
  display: none !important;
}

.terminal-input-icon {
  position: absolute;
  left: clamp(22px, 2.1vw, 38px);
  top: 50%;
  width: clamp(48px, 5vw, 76px);
  height: clamp(48px, 5vw, 76px);
  transform: translateY(-50%);
  color: #d6a84d;
  pointer-events: none;
}

.terminal-kiosk-screen .terminal-scan-form input {
  width: 100%;
  min-height: clamp(88px, 12vh, 146px);
  padding: 0 clamp(22px, 2.3vw, 40px) 0 clamp(92px, 8vw, 140px);
  border-radius: 14px;
  border: 1px solid rgba(214, 168, 77, 0.62);
  background: rgba(5, 10, 8, 0.9);
  color: #f5f5ef;
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 52px rgba(0, 0, 0, 0.42);
}

.terminal-kiosk-screen .terminal-scan-form input::placeholder {
  color: rgba(245, 245, 239, 0.74);
}

.terminal-kiosk-screen .terminal-scan-form input:focus {
  outline: 3px solid rgba(242, 210, 122, 0.34);
  border-color: rgba(242, 210, 122, 0.96);
}

.terminal-kiosk-screen .terminal-scan-form input[readonly] {
  cursor: default;
  caret-color: transparent;
  user-select: none;
}

.terminal-kiosk-screen:not(.terminal-manual-entry) .terminal-scan-form input {
  touch-action: manipulation;
}

body.terminal-manual-entry.terminal-kiosk-screen .terminal-scan-form input {
  border-color: rgba(140, 255, 118, 0.92);
  background:
    radial-gradient(circle at 94% 50%, rgba(140, 255, 118, 0.12), transparent 28%),
    rgba(5, 10, 8, 0.94);
}

.terminal-kiosk-screen .terminal-scan-form .button {
  min-height: clamp(88px, 12vh, 146px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(255, 229, 156, 0.74);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #f2d27a, #b7802d);
  color: #050806;
  font-size: clamp(24px, 3vw, 54px);
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.54), 0 0 28px rgba(242, 210, 122, 0.16);
}

.terminal-kiosk-screen .terminal-scan-form .button span {
  min-width: 0;
}

.terminal-kiosk-screen .terminal-scan-form .button svg {
  width: clamp(34px, 3vw, 48px);
  height: clamp(34px, 3vw, 48px);
  stroke-width: 2.7;
}

.terminal-helper {
  width: min(1420px, 86vw);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f2d27a;
  font-size: clamp(16px, 1.3vw, 24px);
  font-weight: 650;
}

.terminal-helper svg {
  width: 32px;
  height: 32px;
}

.terminal-kiosk-screen .terminal-worker-panel {
  width: min(1420px, 86vw);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 1.6vw, 28px);
  border: 1px solid rgba(214, 168, 77, 0.5);
  border-radius: 16px;
  background: rgba(5, 10, 8, 0.9);
  color: #f5f5ef;
}

.terminal-kiosk-screen .terminal-worker-panel.hidden {
  display: none;
}

.terminal-kiosk-screen .terminal-worker-panel h3 {
  font-size: clamp(28px, 3.4vw, 52px);
  color: #f8e7b5;
}

.terminal-kiosk-screen .terminal-action-grid {
  gap: clamp(14px, 1.6vw, 24px);
}

.terminal-kiosk-screen .terminal-action {
  min-height: clamp(120px, 16vh, 190px);
  border-radius: 16px;
  background: rgba(20, 24, 21, 0.82);
  border-color: rgba(214, 168, 77, 0.34);
}

.terminal-kiosk-screen .terminal-action strong {
  font-size: clamp(38px, 5vw, 74px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-kiosk-shell {
  grid-template-rows: auto minmax(104px, auto) minmax(0, 1fr);
  gap: clamp(8px, 1vh, 14px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-clock,
body.terminal-worker-selected.terminal-kiosk-screen .terminal-scan-form,
body.terminal-worker-selected.terminal-kiosk-screen .terminal-helper,
body.terminal-worker-selected.terminal-kiosk-screen .terminal-status-footer {
  display: none !important;
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-ready-panel {
  height: auto;
  min-height: clamp(92px, 13vh, 144px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel {
  align-self: stretch;
  min-height: 0;
  grid-template-rows: auto auto auto;
  gap: clamp(10px, 1.3vh, 18px);
  padding: clamp(16px, 2vw, 34px);
  overflow: hidden;
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel .eyebrow,
body.terminal-worker-selected.terminal-kiosk-screen #terminal-worker-state,
body.terminal-worker-selected.terminal-kiosk-screen #terminal-token-raw {
  display: none !important;
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel h3 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.95;
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel .copy {
  color: rgba(248, 231, 181, 0.72);
  font-size: clamp(18px, 2.2vw, 32px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-session {
  font-size: clamp(16px, 1.7vw, 28px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action-grid {
  min-height: 0;
  flex: 1 1 auto;
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action {
  min-height: clamp(142px, 25vh, 292px);
  border-radius: 18px;
  opacity: 0.52;
  filter: saturate(0.5);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action strong {
  font-size: clamp(48px, 7.5vw, 118px);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action.active {
  opacity: 1;
  filter: none;
  cursor: pointer;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.54), 0 0 34px rgba(140, 255, 118, 0.22);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action-in.active {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #24b96e, #087643);
  border-color: rgba(140, 255, 118, 0.92);
}

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action-out.active {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #ff9b2f, #aa4e05);
  border-color: rgba(255, 198, 91, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.54), 0 0 34px rgba(255, 165, 48, 0.26);
}

.terminal-status-footer {
  min-height: clamp(76px, 10vh, 126px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: clamp(12px, 1vw, 22px) clamp(18px, 2vw, 38px);
  border: 1px solid rgba(214, 168, 77, 0.46);
  border-radius: 14px;
  background: rgba(5, 10, 8, 0.86);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.terminal-status-footer article {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(48px, 4.8vw, 74px) 1fr;
  gap: clamp(12px, 1.3vw, 24px);
  align-items: center;
  padding: 0 clamp(12px, 1.5vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.terminal-status-footer article:first-child {
  border-left: 0;
}

.terminal-status-footer svg {
  width: clamp(46px, 4.8vw, 72px);
  height: clamp(46px, 4.8vw, 72px);
  color: #d6a84d;
}

.terminal-status-footer article:nth-child(-n+2) svg,
.terminal-status-footer article:nth-child(-n+2) strong {
  color: #8cff76;
}

.terminal-status-footer strong,
.terminal-status-footer small {
  display: block;
}

.terminal-status-footer strong {
  color: #f2d27a;
  font-size: clamp(15px, 1.3vw, 24px);
  font-weight: 900;
  white-space: nowrap;
}

.terminal-status-footer small {
  margin-top: 4px;
  color: #d6ccba;
  font-size: clamp(13px, 1.1vw, 20px);
}

@media (max-width: 1366px), (max-height: 820px) {
  body.terminal-kiosk-screen.work-screen {
    overflow: hidden;
  }

  .terminal-kiosk-screen.work-screen .shell {
    height: 100vh;
    min-height: 0;
    padding: 8px;
  }

  .terminal-kiosk-screen .terminal-kiosk-shell {
    width: calc(100vw - 16px);
    height: calc(100vh - 22px);
    min-height: 0;
    grid-template-rows: 82px 138px 154px 88px 26px minmax(0, auto) 76px;
    gap: 6px;
  }

  .terminal-kiosk-screen .terminal-kiosk-head {
    min-height: 0;
    height: 82px;
    grid-template-columns: 92px minmax(240px, 1fr) auto auto;
    padding: 8px 18px;
  }

  .terminal-language-switch {
    min-width: 276px;
    gap: 8px;
    padding: 8px;
  }

  .terminal-kiosk-screen #terminal-screen-title {
    font-size: clamp(28px, 3vw, 38px);
  }

  .terminal-kiosk-screen .terminal-logo {
    width: 78px;
    height: 62px;
  }

  .terminal-language-switch button {
    min-height: 42px;
  }

  .terminal-online {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    min-width: 170px;
  }

  .terminal-online svg {
    width: 42px;
    height: 42px;
  }

  .terminal-kiosk-screen .terminal-ready-panel,
  .terminal-kiosk-screen .terminal-clock,
  .terminal-kiosk-screen .terminal-scan-form,
  .terminal-helper,
  .terminal-kiosk-screen .terminal-worker-panel {
    width: min(1180px, 86vw);
  }

  .terminal-kiosk-screen .terminal-ready-panel {
    min-height: 0;
    height: 138px;
    grid-template-columns: 110px 1fr;
    padding: 16px 34px;
  }

  .terminal-ready-icon {
    width: 92px;
    height: 92px;
  }

  .terminal-kiosk-screen .terminal-status {
    font-size: clamp(48px, 6vw, 74px);
  }

  .terminal-ready-panel small {
    margin-top: 8px;
    font-size: clamp(18px, 2vw, 25px);
  }

  .terminal-kiosk-screen .terminal-clock {
    min-height: 0;
    height: 154px;
    padding: 12px 34px;
  }

  .terminal-clock-time {
    font-size: clamp(72px, 10vw, 126px);
  }

  .terminal-clock-date {
    margin-top: 10px;
    font-size: clamp(20px, 2.1vw, 30px);
  }

  .terminal-kiosk-screen .terminal-scan-form label,
  .terminal-kiosk-screen .terminal-scan-form input,
  .terminal-kiosk-screen .terminal-scan-form .button {
    min-height: 88px;
  }

  .terminal-helper {
    margin-top: 0;
    font-size: 18px;
  }

  .terminal-helper svg {
    width: 26px;
    height: 26px;
  }

  .terminal-status-footer {
    min-height: 0;
    height: 76px;
    padding: 8px 18px;
  }

  .terminal-status-footer article {
    grid-template-columns: 42px 1fr;
    padding: 0 16px;
  }

  .terminal-status-footer svg {
    width: 38px;
    height: 38px;
  }

  .terminal-status-footer strong {
    font-size: 15px;
  }

  .terminal-status-footer small {
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .terminal-kiosk-screen .terminal-kiosk-head {
    grid-template-columns: 90px 1fr;
  }

  .terminal-language-switch,
  .terminal-online {
    grid-column: span 1;
  }

  .terminal-online {
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }

  .terminal-kiosk-screen .terminal-scan-form {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .terminal-status-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .terminal-status-footer article:nth-child(3) {
    border-left: 0;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  body.terminal-kiosk-screen.work-screen {
    overflow: hidden;
    background-attachment: scroll;
  }

  .terminal-kiosk-screen.work-screen .shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
  }

  .terminal-kiosk-screen .terminal-kiosk-shell {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    grid-template-rows: minmax(128px, auto) minmax(104px, auto) minmax(118px, auto) minmax(148px, auto);
    gap: 7px;
    overflow: hidden;
  }

  .terminal-kiosk-screen .terminal-kiosk-head {
    height: auto;
    min-height: 0;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }

  .terminal-kiosk-screen .terminal-logo {
    width: 44px;
    height: 36px;
  }

  .terminal-kiosk-screen #terminal-screen-title {
    font-size: clamp(21px, 5.4vw, 32px);
    line-height: 1.02;
  }

  .terminal-language-switch {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .terminal-language-switch button {
    min-height: 32px;
  }

  .terminal-language-switch button::before {
    width: 38px;
    height: 25px;
  }

  .terminal-online {
    grid-column: 1 / -1;
    grid-template-columns: 30px 1fr;
    min-width: 0;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .terminal-online svg {
    width: 28px;
    height: 28px;
  }

  .terminal-online strong {
    font-size: 20px;
  }

  .terminal-online small {
    display: none;
  }

  .terminal-kiosk-screen .terminal-ready-panel,
  .terminal-kiosk-screen .terminal-clock,
  .terminal-kiosk-screen .terminal-scan-form,
  .terminal-helper,
  .terminal-kiosk-screen .terminal-worker-panel {
    width: 100%;
  }

  .terminal-kiosk-screen .terminal-ready-panel {
    height: auto;
    min-height: 104px;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .terminal-ready-icon {
    width: 50px;
    height: 50px;
  }

  .terminal-kiosk-screen .terminal-status {
    font-size: clamp(34px, 9vw, 56px);
  }

  .terminal-ready-panel small {
    margin-top: 4px;
    font-size: clamp(15px, 3.8vw, 21px);
  }

  .terminal-kiosk-screen .terminal-clock {
    height: auto;
    min-height: 118px;
    padding: 12px;
    border-radius: 14px;
  }

  .terminal-clock-time {
    font-size: clamp(56px, 15vw, 104px);
    letter-spacing: 0.02em;
  }

  .terminal-clock-date {
    width: 100%;
    gap: 10px;
    margin-top: 6px;
    font-size: clamp(17px, 4.4vw, 26px);
    letter-spacing: 0.12em;
  }

  .terminal-kiosk-screen .terminal-scan-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .terminal-kiosk-screen .terminal-scan-form label,
  .terminal-kiosk-screen .terminal-scan-form input,
  .terminal-kiosk-screen .terminal-scan-form .button {
    min-height: 68px;
  }

  .terminal-input-icon {
    left: 18px;
    width: 40px;
    height: 40px;
  }

  .terminal-kiosk-screen .terminal-scan-form input {
    padding-left: 72px;
    border-radius: 12px;
    font-size: clamp(24px, 6vw, 36px);
  }

  .terminal-kiosk-screen .terminal-scan-form .button {
    width: 100%;
    border-radius: 12px;
    font-size: clamp(28px, 7vw, 46px);
  }

  .terminal-helper {
    display: none !important;
  }

  .terminal-status-footer {
    display: none !important;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-kiosk-shell {
    grid-template-rows: minmax(104px, auto) minmax(90px, auto) minmax(0, 1fr);
    gap: 7px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-language-switch {
    display: none;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-online {
    grid-column: auto;
    border-top: 0;
    padding: 0;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-ready-panel {
    min-height: 88px;
    padding: 10px 12px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-status {
    font-size: clamp(38px, 11vw, 64px);
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-ready-panel small {
    display: none;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel {
    width: 100%;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel h3 {
    font-size: clamp(30px, 8.2vw, 52px);
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-panel .copy {
    font-size: clamp(14px, 3.8vw, 21px);
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-worker-session {
    margin-top: 4px;
    font-size: clamp(13px, 3.6vw, 18px);
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-cancel-selection {
    min-width: 92px;
    min-height: 38px;
    gap: 5px;
    padding: 5px 7px 5px 10px;
    border-radius: 12px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-cancel-selection span {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-cancel-selection strong {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-timeout-track {
    height: 12px;
    margin: 8px 0 4px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-action-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.terminal-worker-selected.terminal-kiosk-screen .terminal-action {
    min-height: clamp(104px, 19vh, 156px);
    border-radius: 14px;
  }

body.terminal-worker-selected.terminal-kiosk-screen .terminal-action strong {
    font-size: clamp(42px, 11vw, 72px);
  }
}

@media (max-width: 720px) {
  html:has(body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)),
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
    overflow-x: hidden;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    min-height: auto;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    display: none;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-identity {
    min-width: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-identity .eyebrow {
    display: none;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
    font-size: 24px;
    line-height: 1.05;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 48px 48px;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
    width: 100%;
    height: 42px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
    min-width: 0;
    height: 42px;
    padding: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout {
    width: 48px;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout span {
    display: none;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work {
    gap: 14px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-panel {
    padding: 16px;
    overflow: visible;
  }

  .manual-session-panel,
  .manual-rfid-panel {
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .manual-session-controls {
    grid-template-columns: 1fr;
  }

  .manual-session-current strong,
  .manual-rfid-state strong {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-rfid-input-wrap input,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-controls select {
    min-height: 58px;
    font-size: 16px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-panel .section-head {
    padding-bottom: 2px;
    margin-bottom: -2px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-panel .section-head h3 {
    font-size: 21px;
    line-height: 1.12;
  }

  .manual-entry-form {
    gap: 12px;
    padding-bottom: 18px;
  }

  .manual-entry-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .manual-worker-field,
  .manual-mode-field {
    order: 1;
  }

  .manual-recorded-at-field {
    display: none;
  }

  .manual-entry-context label {
    min-width: 0;
    gap: 5px;
  }

  .manual-entry-context label span,
  .manual-entry-form > label span {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context select,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 32px 0 11px;
    border-radius: 7px;
    font-size: 13px;
  }

  .manual-stepper-card {
    gap: 12px;
    padding: 14px;
    border-color: rgba(246, 211, 111, 0.48);
    background:
      radial-gradient(circle at 50% 0%, rgba(246, 211, 111, 0.14), transparent 36%),
      linear-gradient(180deg, rgba(3, 22, 15, 0.98), rgba(1, 10, 8, 0.99));
  }

  .manual-stepper-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px;
    font-size: 13px;
  }

  .manual-stepper-head small {
    font-size: 12px;
  }

  .manual-stepper-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .manual-quantity-field {
    grid-column: 1 / -1;
    order: -1;
    gap: 3px;
    min-height: 126px;
    padding: 10px 12px 8px;
    border: 1px solid rgba(246, 211, 111, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 239, 181, 0.05);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
  .manual-quantity-field input {
    width: 100%;
    min-height: 74px;
    padding: 0 8px;
    border-bottom-color: rgba(246, 211, 111, 0.36);
    font-size: clamp(54px, 17vw, 76px);
  }

  .manual-quantity-field strong {
    font-size: 22px;
  }

  .manual-stepper-button {
    min-height: 72px;
    border-color: rgba(246, 211, 111, 0.62);
    font-size: 46px;
  }

  .manual-quick-add {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .manual-quick-add button {
    min-height: 56px;
    padding: 0 4px;
    border-color: rgba(86, 210, 117, 0.48);
    font-size: 14px;
  }

  .manual-entry-preview {
    min-height: 72px;
    padding: 12px;
  }

  .manual-entry-preview span:last-child {
    display: none;
  }

  #view-work:not(.hidden) .manual-save-button.button.primary {
    min-height: 62px;
    border-radius: 8px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .manual-entry-form {
    gap: 6px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tabs {
    left: 0;
    width: 100vw;
    transform: none;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-panel {
    padding: 14px;
  }

  .manual-entry-context {
    gap: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context select,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context input {
    min-height: 50px;
    font-size: 12px;
  }

  .manual-stepper-card {
    gap: 8px;
    padding: 10px 12px;
  }

  .manual-stepper-control {
    gap: 8px;
  }

  .manual-quantity-field {
    min-height: 108px;
    padding: 8px 10px 6px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
  .manual-quantity-field input {
    min-height: 58px;
    font-size: clamp(50px, 15vw, 64px);
  }

  .manual-quantity-field strong {
    font-size: 20px;
  }

  .manual-stepper-button {
    min-height: 60px;
    font-size: 40px;
  }

  .manual-quick-add {
    gap: 5px;
  }

  #view-work:not(.hidden) .manual-save-button.button.primary {
    min-height: 56px;
  }
}

@media (min-width: 721px) and (max-width: 1024px) and (orientation: landscape) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .shell {
    width: min(1008px, calc(100vw - 16px));
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tabs {
    width: min(520px, 100vw);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel .section-head,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-form {
    grid-column: 1 / -1;
  }

  .manual-session-panel,
  .manual-rfid-panel {
    min-height: 0;
    margin-bottom: 0;
  }

  .manual-session-current strong,
  .manual-rfid-state strong {
    font-size: 30px;
  }

  .manual-entry-form {
    gap: 8px;
  }

  .manual-stepper-card {
    gap: 12px;
    padding: 18px;
  }

  .manual-quantity-field {
    gap: 4px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
  .manual-quantity-field input {
    min-height: 92px;
    font-size: 76px;
  }

  .manual-stepper-button {
    min-height: 88px;
    font-size: 56px;
  }

  .manual-quick-add button {
    min-height: 56px;
  }

  #view-work:not(.hidden) .manual-save-button.button.primary {
    min-height: 56px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  html:has(body.work-entry-lock),
  body.work-entry-lock {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.work-entry-lock .shell {
    max-height: 100dvh;
    overflow: hidden;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work:not(.hidden) {
    display: grid;
    min-height: 0;
    height: calc(100dvh - 250px);
    max-height: calc(100dvh - 250px);
    overflow: hidden;
    gap: 12px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work > article {
    min-height: 0;
    overflow: hidden;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work > article:nth-of-type(2) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #work-recent-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work > article:nth-of-type(2) .section-head {
    margin-bottom: 8px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work > article:nth-of-type(2) .section-head h3 {
    font-size: 18px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work:not(.hidden) {
    grid-template-rows: minmax(0, 1fr) minmax(132px, 24vh);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel .section-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel .section-head h3 {
    font-size: 20px;
  }

  .manual-session-panel,
  .manual-rfid-panel {
    min-height: 0;
    margin-bottom: 0;
    padding: 12px;
  }

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

  .manual-session-product {
    min-height: 58px;
    padding: 10px 11px;
  }

  .manual-session-current strong,
  .manual-rfid-state strong {
    font-size: 22px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-form {
    grid-column: 1 / -1;
    min-height: 0;
    gap: 8px;
    padding-bottom: 0;
  }

  .manual-entry-context {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .manual-stepper-card {
    gap: 8px;
    padding: 12px;
  }

  .manual-stepper-control {
    grid-template-columns: minmax(62px, 0.42fr) minmax(0, 1fr) minmax(62px, 0.42fr);
    gap: 8px;
  }

  .manual-quantity-field {
    min-height: 96px;
    padding: 7px 10px 5px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
  .manual-quantity-field input {
    min-height: 54px;
    font-size: 58px;
  }

  .manual-stepper-button {
    min-height: 76px;
    font-size: 46px;
  }

  .manual-quick-add {
    gap: 6px;
  }

  .manual-quick-add button {
    min-height: 46px;
  }

  #view-work:not(.hidden) .manual-save-button.button.primary {
    min-height: 54px;
  }

  .manual-entry-preview {
    min-height: 58px;
    padding: 10px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) and (orientation: landscape) {
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work:not(.hidden) {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 29vw);
    grid-template-rows: minmax(0, 1fr);
    height: calc(100dvh - 206px);
    max-height: calc(100dvh - 206px);
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel {
    display: grid;
    grid-template-columns: minmax(210px, 0.75fr) minmax(210px, 0.85fr) minmax(320px, 1.25fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel .section-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-panel .section-head h3 {
    font-size: 18px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-work .manual-entry-form {
    grid-column: auto;
    min-height: 0;
    gap: 8px;
    padding-bottom: 0;
  }

  .manual-session-panel,
  .manual-rfid-panel {
    gap: 8px;
    padding: 10px;
  }

  .manual-session-products {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .manual-session-product {
    min-height: 54px;
    padding: 9px 10px;
  }

  .manual-session-current strong,
  .manual-rfid-state strong {
    font-size: 20px;
  }

  .manual-rfid-entry-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .manual-entry-context {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context select,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-entry-context input,
  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-rfid-input-wrap input {
    min-height: 46px;
    font-size: 13px;
  }

  .manual-rfid-entry-row .button,
  .manual-rfid-panel .button {
    min-height: 46px;
  }

  .manual-stepper-card {
    gap: 8px;
    padding: 10px;
  }

  .manual-stepper-head {
    font-size: 12px;
  }

  .manual-stepper-control {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    gap: 7px;
  }

  .manual-quantity-field {
    min-height: 86px;
    padding: 6px 8px 5px;
  }

  .work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input,
  .manual-quantity-field input {
    min-height: 50px;
    font-size: 52px;
  }

  .manual-stepper-button {
    min-height: 68px;
    font-size: 40px;
  }

  .manual-quick-add {
    gap: 5px;
  }

  .manual-quick-add button {
    min-height: 42px;
    font-size: 13px;
  }

  .manual-entry-preview {
    min-height: 52px;
    padding: 8px 10px;
  }

  #view-work:not(.hidden) .manual-save-button.button.primary {
    min-height: 50px;
    font-size: 18px;
  }
}

/* Production mobile/tablet header fit: keep the workspace chrome readable and
   prevent the logo, farm name, sandbox badge and action buttons from colliding. */
body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
  overflow: hidden;
}

@media (min-width: 901px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    min-height: 106px;
    max-height: none;
    grid-template-columns: minmax(290px, 360px) minmax(220px, 1fr) minmax(190px, 300px) max-content;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    justify-self: end;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    min-height: auto;
    max-height: none;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    grid-template-columns: 72px minmax(0, 1fr);
    padding-right: 14px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    width: 76px;
    height: 76px;
    margin: -4px 0;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-identity {
    align-self: center;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    grid-column: 1 / -1;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 56px 56px minmax(96px, auto);
    gap: 10px;
    align-items: stretch;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout {
    height: 54px;
    min-height: 54px;
  }
}

@media (max-width: 720px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    min-height: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    overflow: visible;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    display: grid;
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 196, 99, 0.28);
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    display: block;
    width: 58px;
    height: 58px;
    margin: 0;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: 0.18em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
    max-width: 100%;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    width: 100%;
    max-width: none;
    min-height: 62px;
    padding: 11px 12px;
    column-gap: 10px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge::before,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge::after {
    grid-column: 1;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge span {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 12px;
    line-height: 1.15;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher {
    width: 100%;
    max-width: none;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher select {
    min-height: 58px;
    font-size: 16px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
    grid-column: 1 / -1;
    width: 100%;
    height: 54px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex-basis: auto;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
    height: 54px;
    font-size: 14px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout {
    width: 100%;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 10px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout span {
    display: none;
  }
}

@media (max-width: 390px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    padding: 12px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    width: 52px;
    height: 52px;
  }

  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
    font-size: 15px;
    letter-spacing: 0.14em;
  }
}

/* Canonical runtime themes. data-theme on <html> is the source of truth; the
   legacy body/html classes above remain only for older cached app bundles. */
html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: dark;
  --hv-theme-canvas: #06100d;
  --hv-theme-surface: rgba(8, 20, 17, 0.96);
  --hv-theme-surface-soft: rgba(13, 29, 24, 0.92);
  --hv-theme-surface-raised: rgba(17, 35, 29, 0.96);
  --hv-theme-border: rgba(236, 196, 99, 0.22);
  --hv-theme-border-strong: rgba(246, 211, 111, 0.5);
  --hv-theme-text: #f4ead1;
  --hv-theme-heading: #fff7dc;
  --hv-theme-muted: #b8c9bc;
  --hv-theme-label: #f2cf78;
  --hv-theme-accent: #d8aa4d;
  --hv-theme-accent-strong: #f2d27a;
  --hv-theme-focus: rgba(246, 211, 111, 0.22);
  --hv-theme-shadow: 0 20px 64px rgba(0, 0, 0, 0.34);
  --hv-theme-input: rgba(2, 8, 7, 0.78);
  --hv-theme-danger: #ff9b8c;
  background:
    linear-gradient(180deg, rgba(1, 5, 5, 0.74), rgba(2, 7, 5, 0.9)),
    url("/assets/login/harvestor-bg-2026.png") center bottom / cover no-repeat fixed;
}

html[data-theme="light"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: light;
  --hv-theme-canvas: #eef4e9;
  --hv-theme-surface: rgba(255, 255, 255, 0.97);
  --hv-theme-surface-soft: rgba(245, 249, 241, 0.97);
  --hv-theme-surface-raised: #ffffff;
  --hv-theme-border: rgba(18, 91, 58, 0.2);
  --hv-theme-border-strong: rgba(13, 107, 66, 0.5);
  --hv-theme-text: #17251d;
  --hv-theme-heading: #08190f;
  --hv-theme-muted: #516256;
  --hv-theme-label: #0d6b42;
  --hv-theme-accent: #176b45;
  --hv-theme-accent-strong: #0d5f3a;
  --hv-theme-focus: rgba(13, 107, 66, 0.18);
  --hv-theme-shadow: 0 18px 54px rgba(31, 61, 39, 0.14);
  --hv-theme-input: #ffffff;
  --hv-theme-danger: #b42318;
  --panel: var(--hv-theme-surface);
  --panel-soft: var(--hv-theme-surface-soft);
  --line: var(--hv-theme-border);
  --text: var(--hv-theme-text);
  --muted: var(--hv-theme-muted);
  --hv-text: var(--hv-theme-text);
  --hv-heading: var(--hv-theme-heading);
  --hv-label: var(--hv-theme-label);
  --hv-muted: var(--hv-theme-muted);
  --hv-panel-title: var(--hv-theme-accent);
  --hv-content-bg: var(--hv-theme-canvas);
  --hv-card-bg: var(--hv-theme-surface);
  --hv-card-border: var(--hv-theme-border);
  background:
    linear-gradient(180deg, rgba(250, 253, 247, 0.78), rgba(232, 241, 226, 0.9)),
    url("/assets/login/harvestor-bg-light-2026.webp") center bottom / cover no-repeat fixed;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  color-scheme: light;
  --hv-theme-canvas: #ffffff;
  --hv-theme-surface: #ffffff;
  --hv-theme-surface-soft: #ffffff;
  --hv-theme-surface-raised: #ffffff;
  --hv-theme-border: #000000;
  --hv-theme-border-strong: #000000;
  --hv-theme-text: #000000;
  --hv-theme-heading: #000000;
  --hv-theme-muted: #161616;
  --hv-theme-label: #000000;
  --hv-theme-accent: #000000;
  --hv-theme-accent-strong: #000000;
  --hv-theme-focus: #ffde00;
  --hv-theme-shadow: none;
  --hv-theme-input: #ffffff;
  --hv-theme-danger: #000000;
  background: #ffffff;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--hv-theme-accent) 14%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--hv-theme-canvas) 20%, transparent), var(--hv-theme-canvas));
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background: #ffffff;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #worker-detail-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-form,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-thread-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view [role="dialog"] {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface);
  color: var(--hv-theme-text);
  box-shadow: var(--hv-theme-shadow);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--hv-theme-accent) 13%, transparent), transparent 36%),
    linear-gradient(180deg, var(--hv-theme-surface-raised), var(--hv-theme-surface));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--hv-theme-accent) 10%, transparent), transparent 40%),
    var(--hv-theme-surface);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
  border-color: var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view h2,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view h3,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view h4,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .row-copy strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card strong {
  color: var(--hv-theme-heading);
  text-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .copy,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .muted,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .status-line,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view small,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .row-copy span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .detail-card span {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .eyebrow,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-label,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) label > span {
  color: var(--hv-theme-label);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .detail-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .stat-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .health-box,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .rfid-action-form,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-editor-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-row,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-form,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-collections-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-notification-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-filter-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-schedule-row {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric strong {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card > div {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card > div > :is(.detail-label, strong, small) {
  grid-area: auto;
  display: block;
  min-width: 0;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card > div > :is(.detail-label, small) {
  overflow-wrap: anywhere;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card > div > strong {
  overflow-wrap: normal;
  word-break: normal;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card .detail-label,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card small,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric span:last-child,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar small,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-main small {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-icon,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-empty-state,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-raised);
  color: var(--hv-theme-accent);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover strong {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-panel {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view .detail-card,
html[data-theme] body.work-screen.worker-portal-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-portal-view .list-row {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .row-button:hover,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button:hover,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-channel-button.active {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 12%, var(--hv-theme-surface-raised));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover strong {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item::before {
  background: linear-gradient(180deg, transparent, var(--hv-theme-border-strong), transparent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item::after {
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon svg,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout svg {
  stroke: currentColor;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button.active {
  background: var(--hv-theme-accent);
  color: var(--hv-theme-surface-raised);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #context-farm-select {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-input);
  color: var(--hv-theme-heading);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input::placeholder,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea::placeholder {
  color: var(--hv-theme-muted);
  opacity: 0.78;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view input:focus,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view select:focus,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view textarea:focus,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) button:focus-visible,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) a:focus-visible {
  border-color: var(--hv-theme-border-strong);
  outline: 3px solid var(--hv-theme-focus);
  outline-offset: 2px;
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary {
  border-color: var(--hv-theme-border-strong);
  background: var(--hv-theme-accent-strong);
  color: var(--hv-theme-surface-raised);
}

html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary {
  color: #06100c;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.ghost {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-rfid-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-stepper-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-panel {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-summary strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-entry strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-head strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-collections-head strong {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-summary span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-metrics span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-entry small,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-head small {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-metrics span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-entry {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-raised);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-panel.has-failed,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-panel.has-storage-error,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-queue-entry.is-failed {
  border-color: var(--hv-theme-danger);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-stepper-button,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quick-add button,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-box-count-controls button {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 16%, var(--hv-theme-surface-raised));
  color: var(--hv-theme-heading);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-quantity-field input {
  border-color: var(--hv-theme-border-strong);
  background: transparent;
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-save-toast {
  border-color: var(--hv-theme-border-strong);
  background: var(--hv-theme-accent-strong);
  color: var(--hv-theme-surface-raised);
  box-shadow: var(--hv-theme-shadow);
}

html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-save-toast {
  color: #06100c;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-filter-card,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #report-schedules-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #report-archive-panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #reports-lite-panel {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface);
  color: var(--hv-theme-text);
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .context-card,
  .menu-grid,
  .view > .panel,
  .view > article.panel,
  .menu-item,
  .list-row,
  .detail-card,
  .dashboard-card,
  .dashboard-kpi-card,
  .manual-session-panel,
  .manual-rfid-panel,
  .manual-stepper-card,
  .manual-tare-panel,
  .manual-queue-panel,
  .manual-queue-entry,
  .manual-save-toast,
  .report-filter-card,
  [role="dialog"]
) {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .button.primary,
html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button.active,
html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-save-toast {
  background: #000000;
  color: #ffffff;
}

html[data-theme="light"] body.auth-screen,
html[data-theme="light"].entity-onboarding-route body {
  color-scheme: light;
  background: #eef4e9;
  color: #17251d;
}

html[data-theme="light"] body.auth-screen .login-bg,
html[data-theme="light"].entity-onboarding-route .login-bg {
  background-image: url("/assets/login/harvestor-bg-light-2026.webp");
  filter: saturate(0.86) contrast(0.96);
}

html[data-theme="light"] body.auth-screen::before,
html[data-theme="light"].entity-onboarding-route body::before {
  background: linear-gradient(90deg, rgba(249, 252, 246, 0.7), rgba(237, 245, 232, 0.5), rgba(230, 240, 224, 0.76));
}

html[data-theme="light"] body.auth-screen :is(#auth-panel, #password-change-panel, #workspace-panel) {
  border-color: rgba(18, 91, 58, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #17251d;
  box-shadow: 0 28px 90px rgba(31, 61, 39, 0.2);
}

html[data-theme="light"] body.auth-screen :is(#auth-panel, #password-change-panel, #workspace-panel) :is(h2, label, .section-head, .copy, .status-line) {
  color: #17251d;
}

html[data-theme="light"] body.auth-screen :is(#auth-panel, #password-change-panel, #workspace-panel) :is(input, select) {
  border-color: rgba(18, 91, 58, 0.28);
  background: #ffffff;
  color: #08190f;
}

html[data-theme="high-contrast"] body.auth-screen,
html[data-theme="high-contrast"].entity-onboarding-route body {
  color-scheme: light;
  background: #ffffff;
  color: #000000;
}

html[data-theme="high-contrast"] body.auth-screen .login-bg,
html[data-theme="high-contrast"].entity-onboarding-route .login-bg,
html[data-theme="high-contrast"] body.auth-screen::before,
html[data-theme="high-contrast"].entity-onboarding-route body::before {
  display: none;
}

html[data-theme="high-contrast"] body.auth-screen :is(#auth-panel, #password-change-panel, #workspace-panel) {
  border: 3px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

/* The synthetic worker demo is a normal themed work surface, not a terminal
   kiosk. Keep its single-purpose navigation quiet without inheriting the
   terminal rule that hides every view except #view-terminal. */
body.worker-demo-screen .menu-grid,
body.worker-demo-screen .bottom-tabs,
body.worker-demo-screen #header-refresh-btn,
body.worker-demo-screen #header-terminal-btn {
  display: none !important;
}

body.worker-demo-screen #view-worker-demo {
  display: grid;
  width: min(1040px, 100%);
  margin-inline: auto;
}

@media (min-width: 721px) and (max-width: 900px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    grid-template-columns: minmax(220px, 1fr) repeat(3, 56px) minmax(88px, auto);
  }
}

@media (max-width: 720px) {
  body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Dashboard workspace polish.
   Keep the operational DOM and role model intact while making the everyday
   owner/manager shell calmer, denser and equally usable in light and dark. */
html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  --hv-theme-canvas: #0b1410;
  --hv-theme-surface: #111d17;
  --hv-theme-surface-soft: #15231c;
  --hv-theme-surface-raised: #192920;
  --hv-theme-border: rgba(222, 235, 226, 0.12);
  --hv-theme-border-strong: rgba(112, 195, 147, 0.52);
  --hv-theme-text: #e4ede7;
  --hv-theme-heading: #f7faf8;
  --hv-theme-muted: #9eafa4;
  --hv-theme-label: #d9b65f;
  --hv-theme-accent: #69bd8d;
  --hv-theme-accent-strong: #7acb9c;
  --hv-theme-success: #65ca8b;
  --hv-theme-warning: #ddb85b;
  --hv-theme-focus: rgba(105, 189, 141, 0.24);
  --hv-theme-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  --hv-theme-input: #101b16;
  background: var(--hv-theme-canvas);
}

html[data-theme="light"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  --hv-theme-canvas: #f2f5f1;
  --hv-theme-surface: #ffffff;
  --hv-theme-surface-soft: #f7faf7;
  --hv-theme-surface-raised: #ffffff;
  --hv-theme-border: #dce5dd;
  --hv-theme-border-strong: #86b79a;
  --hv-theme-text: #26362c;
  --hv-theme-heading: #13241a;
  --hv-theme-muted: #637369;
  --hv-theme-label: #735a20;
  --hv-theme-accent: #246e49;
  --hv-theme-accent-strong: #1f6542;
  --hv-theme-success: #237d4d;
  --hv-theme-warning: #9a6a18;
  --hv-theme-focus: rgba(36, 110, 73, 0.18);
  --hv-theme-shadow: 0 8px 28px rgba(28, 58, 39, 0.08);
  --hv-theme-input: #ffffff;
  background: var(--hv-theme-canvas);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen)::before {
  background:
    radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--hv-theme-accent) 9%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--hv-theme-canvas) 96%, transparent), var(--hv-theme-canvas));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .shell {
  width: min(1680px, calc(100vw - 32px));
  padding: 16px 0 32px;
  background: transparent;
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app {
  gap: 16px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
  grid-template-areas: "brand identity workspace actions";
  grid-template-columns: minmax(200px, 230px) minmax(220px, 1fr) minmax(190px, 250px) max-content;
  min-height: 80px;
  max-height: none;
  gap: 16px;
  padding: 10px 14px;
  overflow: visible;
  border: 1px solid var(--hv-theme-border);
  border-radius: 16px;
  background: var(--hv-theme-surface);
  box-shadow: var(--hv-theme-shadow);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
  grid-area: brand;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding-right: 14px;
  border-color: var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
  width: 58px;
  height: 58px;
  margin: 0;
  filter: drop-shadow(0 4px 9px rgba(18, 42, 27, 0.16));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
  font-size: 14px;
  letter-spacing: 0.17em;
  text-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-identity {
  grid-area: identity;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--hv-theme-heading);
  font-size: clamp(21px, 1.5vw, 26px);
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card .copy {
  margin-top: 4px;
  color: var(--hv-theme-muted);
  font-size: 13px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher {
  grid-area: workspace;
  width: 100%;
  max-width: 250px;
  min-height: 42px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge {
  grid-template-columns: 24px minmax(0, max-content) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  border-color: var(--hv-theme-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hv-theme-warning) 8%, var(--hv-theme-surface-soft));
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge::before {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  border-color: color-mix(in srgb, var(--hv-theme-warning) 48%, var(--hv-theme-border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--hv-theme-warning) 10%, var(--hv-theme-surface-raised));
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge::after {
  width: 9px;
  height: 9px;
  border-color: var(--hv-theme-warning);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge strong {
  color: var(--hv-theme-warning);
  font-size: 11px;
  letter-spacing: 0.16em;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge span {
  color: var(--hv-theme-muted);
  font-size: 10px;
  line-height: 1.15;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher {
  gap: 3px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher small {
  color: var(--hv-theme-muted);
  font-size: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher select {
  min-height: 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
  grid-area: actions;
  gap: 6px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
  width: 160px;
  height: 40px;
  flex-basis: 160px;
  grid-template-columns: repeat(4, 40px);
  border-radius: 10px;
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
  height: 38px;
  font-size: 12px;
  text-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout {
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon {
  width: 40px;
  min-width: 40px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon svg,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout svg {
  width: 20px;
  height: 20px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #header-theme-toggle {
  width: auto;
  min-width: 116px;
  gap: 7px;
  padding: 0 11px;
  color: var(--hv-theme-accent);
}

.header-theme-label {
  display: inline-block;
  max-width: 108px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout {
  min-width: 100px;
  padding: 0 12px;
  color: var(--hv-theme-accent);
  font-size: 12px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(.header-icon, .header-logout):hover {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 9%, var(--hv-theme-surface-raised));
  color: var(--hv-theme-accent);
  box-shadow: none;
}

@media (min-width: 1025px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid {
    top: 16px;
    max-height: calc(100dvh - 32px);
    gap: 4px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--hv-theme-border);
    border-radius: 14px;
    background: var(--hv-theme-surface);
    box-shadow: var(--hv-theme-shadow);
    scrollbar-gutter: stable;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item {
    min-height: 54px;
    align-content: center;
    gap: 2px;
    padding: 7px 30px 7px 50px;
    overflow: hidden;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--hv-theme-muted);
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item::before {
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--hv-theme-accent);
    opacity: 0;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active::before {
    opacity: 1;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item::after {
    right: 11px;
    color: var(--hv-theme-muted);
    font-size: 19px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item:hover,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item.active {
    border-color: var(--hv-theme-border);
    background: color-mix(in srgb, var(--hv-theme-accent) 9%, var(--hv-theme-surface-soft));
    box-shadow: none;
    color: var(--hv-theme-accent);
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item strong {
    color: var(--hv-theme-heading);
    font-size: 14px;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item > span:not(.menu-icon):not(.nav-unread-badge) {
    display: block;
    overflow: hidden;
    color: var(--hv-theme-muted);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon {
    left: 14px;
    width: 25px;
    height: 25px;
    background-color: currentColor;
    background-image: none !important;
    filter: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.dashboard {
    -webkit-mask: url("assets/menu-icons/dashboard.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/dashboard.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.people {
    -webkit-mask: url("assets/menu-icons/people.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/people.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.work {
    -webkit-mask: url("assets/menu-icons/tractor.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/tractor.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.messages {
    -webkit-mask: url("assets/menu-icons/messages.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/messages.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.reports {
    -webkit-mask: url("assets/menu-icons/report.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/report.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.payments {
    -webkit-mask: url("assets/menu-icons/payments.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/payments.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.settings {
    -webkit-mask: url("assets/menu-icons/target.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/target.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.devices {
    -webkit-mask: url("assets/menu-icons/device.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/device.svg") center / contain no-repeat;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-icon.support {
    -webkit-mask: url("assets/menu-icons/support.svg") center / contain no-repeat;
    mask: url("assets/menu-icons/support.svg") center / contain no-repeat;
  }
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel {
  padding: 20px;
  border: 1px solid var(--hv-theme-border);
  border-radius: 16px;
  background: var(--hv-theme-surface);
  box-shadow: var(--hv-theme-shadow);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-panel {
  padding: clamp(18px, 1.6vw, 24px);
  background: var(--hv-theme-surface);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-color: var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head h3 {
  font-size: clamp(25px, 2vw, 30px);
  line-height: 1.1;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head .eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head .muted {
  margin: 6px 0 0;
  font-size: 14px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #refresh-btn {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 9px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card {
  --kpi-accent: var(--hv-theme-accent);
  min-height: 98px;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 11px;
  padding: 13px;
  border-radius: 13px;
  background: var(--hv-theme-surface-soft);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card.is-green {
  --kpi-accent: var(--hv-theme-success);
  color: var(--kpi-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card.is-gold {
  --kpi-accent: var(--hv-theme-warning);
  color: var(--kpi-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card::after {
  right: -18px;
  bottom: -30px;
  width: 82px;
  height: 82px;
  background: var(--kpi-accent);
  opacity: 0.07;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon {
  width: 42px;
  height: 42px;
  border-color: color-mix(in srgb, var(--kpi-accent) 32%, var(--hv-theme-border));
  border-radius: 11px;
  color: var(--kpi-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon::before {
  width: 21px;
  height: 21px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-copy,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card > div {
  gap: 3px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card .detail-label {
  color: var(--hv-theme-muted);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.07em;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card strong {
  color: var(--hv-theme-heading);
  font-size: clamp(27px, 2.1vw, 34px);
  line-height: 1;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card small {
  color: var(--hv-theme-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card {
  padding: 15px;
  border-radius: 13px;
  background: var(--hv-theme-surface-soft);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head {
  min-height: 32px;
  margin-bottom: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head .detail-label {
  color: var(--hv-theme-label);
  font-size: 11px;
  letter-spacing: 0.09em;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card-head strong {
  color: var(--hv-theme-heading);
  font-size: clamp(24px, 2vw, 32px);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart {
  height: clamp(200px, 24vh, 270px);
  gap: 10px;
  padding: 14px 10px 8px;
  overflow: hidden;
  border-radius: 11px;
  background-color: var(--hv-theme-surface-raised);
  background-image: repeating-linear-gradient(
    to top,
    color-mix(in srgb, var(--hv-theme-border) 68%, transparent) 0 1px,
    transparent 1px 25%
  );
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart > .dashboard-empty-state {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 100%;
  align-self: stretch;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar > span {
  background: linear-gradient(180deg, color-mix(in srgb, var(--hv-theme-success) 80%, white), var(--hv-theme-success));
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar.is-today > span {
  background: linear-gradient(180deg, color-mix(in srgb, var(--hv-theme-warning) 76%, white), var(--hv-theme-warning));
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-empty-state {
  min-height: 112px;
  border-color: var(--hv-theme-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hv-theme-surface-raised) 74%, transparent);
  color: var(--hv-theme-muted);
  text-align: center;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric {
  border-color: var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-icon {
  background: color-mix(in srgb, var(--hv-theme-accent) 10%, var(--hv-theme-surface-raised));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row b,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list b {
  color: var(--hv-theme-success);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-product-row strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-main strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list span {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-avatar {
  background: color-mix(in srgb, var(--hv-theme-accent) 18%, var(--hv-theme-surface-raised));
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-labor-metric > span:first-child {
  background: var(--hv-theme-success);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button {
  border-color: var(--hv-theme-border);
  border-radius: 10px;
  background: var(--hv-theme-surface-raised);
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-action-button:hover {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 8%, var(--hv-theme-surface-raised));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-harvest-popover-list div {
  border-color: var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tabs {
  border-color: var(--hv-theme-border);
  background: color-mix(in srgb, var(--hv-theme-surface) 94%, transparent);
  box-shadow: 0 -10px 30px color-mix(in srgb, var(--hv-theme-canvas) 32%, transparent);
  backdrop-filter: blur(14px);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tab {
  border-color: var(--hv-theme-border);
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tab svg {
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .bottom-tab.active {
  color: var(--hv-theme-heading);
  background: color-mix(in srgb, var(--hv-theme-accent) 10%, transparent);
}

@media (min-width: 1281px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    grid-template-areas: "brand identity workspace actions";
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    grid-template-areas:
      "brand identity"
      "workspace actions";
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 10px 14px;
    padding: 12px 14px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher {
    max-width: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(3, 40px) minmax(92px, auto);
    width: 100%;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #header-theme-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .header-theme-label {
    display: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "products"
      "employees"
      "labor"
      "actions";
  }
}

@media (max-width: 1024px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .shell {
    width: min(100%, calc(100vw - 20px));
    padding-top: 10px;
  }

  html[data-theme] body.work-screen.mobile-menu-open:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-grid {
    border-color: var(--hv-theme-border);
    background: var(--hv-theme-surface);
    box-shadow: var(--hv-theme-shadow);
  }
}

@media (max-width: 720px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .shell {
    width: 100%;
    padding: 8px 8px calc(84px + env(safe-area-inset-bottom));
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card {
    grid-template-areas:
      "brand"
      "identity"
      "workspace"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
    border-radius: 13px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--hv-theme-border);
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-logo {
    width: 45px;
    height: 45px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .work-brand-block span {
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-card h2 {
    font-size: 21px;
    -webkit-line-clamp: 1;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .sandbox-context-badge,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-farm-switcher {
    max-width: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .context-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
    height: 40px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #header-theme-toggle {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-logout span,
  .header-theme-label {
    display: none;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-panel {
    padding: 13px;
    border-radius: 13px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head {
    align-items: flex-start;
    gap: 10px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-head h3 {
    font-size: 24px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card {
    min-height: 84px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 11px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-icon {
    width: 40px;
    height: 40px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-card strong {
    font-size: 28px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-card {
    padding: 12px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart {
    height: 220px;
    gap: 6px;
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (min-width: 461px) and (max-width: 720px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .context-card,
  .menu-grid,
  .view > .panel,
  .view > article.panel,
  .menu-item,
  .dashboard-card,
  .dashboard-kpi-card,
  .dashboard-chart,
  .dashboard-empty-state
) {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

@media (max-width: 1280px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-command-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "products"
      "employees"
      "labor"
      "actions";
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Leadership inspection polish — shared form rhythm, accessible targets and
   final theme overrides for legacy dark-only component rules. */
[data-status-tone="error"] {
  color: var(--hv-theme-danger, #b42318) !important;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  --hv-theme-success: #000000;
  --hv-theme-warning: #000000;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .header-icon,
  .header-logout,
  .app-language-switch,
  .app-language-switch button,
  #context-farm-select
) {
  min-height: 44px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-icon {
  width: 44px;
  min-width: 44px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
  width: 176px;
  height: 44px;
  flex-basis: 176px;
  grid-template-columns: repeat(4, 44px);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch button {
  height: 42px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view :is(
  .button,
  .compact-button,
  .worker-attendance-filter button,
  .report-schedule-actions .button,
  .manual-queue-summary .button,
  .advance-request-actions .button
) {
  min-height: 44px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select
) {
  min-height: 48px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view label {
  gap: 7px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .checkbox {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .checkbox input {
  width: 22px;
  min-height: 22px;
  height: 22px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel > .section-head,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel > .section-head {
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--hv-theme-border);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .section-head .muted {
  max-width: 72ch;
  margin: 6px 0 0;
  line-height: 1.55;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view form.stack {
  gap: 16px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view .full-width {
  grid-column: 1 / -1;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .form-actions {
  gap: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list {
  gap: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .list-row {
  min-height: 64px;
  padding: 13px 14px;
  border-radius: 12px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-style: dashed;
  border-radius: 12px;
  line-height: 1.5;
  text-align: center;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-form-section {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--hv-theme-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--hv-theme-accent) 5%, var(--hv-theme-surface-soft));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-form-section strong {
  color: var(--hv-theme-heading);
  font-size: 14px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-form-section span {
  color: var(--hv-theme-muted);
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-primary-actions {
  align-items: center;
  padding-top: 2px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-refresh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-refresh-actions .status-line {
  max-width: 220px;
  margin: 0;
  font-size: 12px;
  text-align: right;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #refresh-btn {
  min-height: 44px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  #reports-lite-summary,
  #reports-lite-breakdown,
  #report-schedule-list,
  #report-archive-list
) {
  margin-top: 18px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-worker-fallback,
  .communication-compose,
  .advance-request-panel,
  .worker-admin-tool-menu
) {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-compose {
  padding: 14px;
  border: 1px solid var(--hv-theme-border);
  border-radius: 12px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-worker-fallback span,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-worker-fallback p,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .advance-request-panel h4 {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-worker-fallback p {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .worker-row.is-at-work,
  .dashboard-worker-chip:has(.status-chip.ok)
) {
  border-color: color-mix(in srgb, var(--hv-theme-success) 40%, var(--hv-theme-border));
  background: color-mix(in srgb, var(--hv-theme-success) 8%, var(--hv-theme-surface-soft));
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip:has(.status-chip.ok):hover {
  border-color: color-mix(in srgb, var(--hv-theme-success) 62%, var(--hv-theme-border));
  background: color-mix(in srgb, var(--hv-theme-success) 13%, var(--hv-theme-surface-raised));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
}

html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button.active {
  border-color: #f2d27a;
  background: #f2d27a;
  color: #06100c;
}

html[data-theme="light"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button.active {
  border-color: #176b45;
  background: #176b45;
  color: #ffffff;
}

html[data-theme="light"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .status-chip.muted,
  .status-chip.neutral
) {
  border-color: #b8cec1;
  background: #e4efe9;
  color: #405449;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-session-current span,
  .manual-rfid-state span,
  .manual-session-controls label span,
  .manual-rfid-input-wrap span,
  .manual-session-product span
) {
  color: var(--hv-theme-label);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-session-current strong,
  .manual-rfid-state strong,
  .manual-session-product strong
) {
  color: var(--hv-theme-heading);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-product {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-raised);
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-product.is-selected {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 12%, var(--hv-theme-surface-raised));
  box-shadow: 0 0 0 2px var(--hv-theme-focus);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-empty {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-bubble,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-message-row.is-mine .communication-bubble,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-message-row.is-theirs .communication-bubble {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
  box-shadow: none;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-message-row.is-mine .communication-bubble {
  border-color: var(--hv-theme-border-strong);
  background: color-mix(in srgb, var(--hv-theme-accent) 10%, var(--hv-theme-surface-soft));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .communication-bubble-head strong,
  .communication-bubble p
) {
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .communication-bubble-head small,
  .communication-bubble-meta,
  .communication-original,
  .communication-original p
) {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .communication-original summary {
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals span {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-raised);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-totals strong,
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics span {
  color: var(--hv-theme-accent);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-calendar-metrics small {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-worker-chip {
  border-color: var(--hv-theme-border);
  background: var(--hv-theme-surface-soft);
  color: var(--hv-theme-text);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-tare-head span,
  .manual-tare-grid label span
) {
  color: var(--hv-theme-label);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-tare-head small {
  color: var(--hv-theme-muted);
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.warn {
  border-color: color-mix(in srgb, var(--hv-theme-warning) 46%, var(--hv-theme-border));
  background: color-mix(in srgb, var(--hv-theme-warning) 13%, var(--hv-theme-surface-raised));
  color: var(--hv-theme-warning);
}

html[data-theme="dark"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .status-chip.warn {
  color: #ffe29a;
}

html[data-theme="light"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) {
  --hv-theme-muted: #526258;
  --hv-theme-warning: #7a500d;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-attendance-filter button.active {
  background: #000000;
  color: #ffffff;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-session-product,
  .communication-bubble,
  .communication-message-row.is-mine .communication-bubble,
  .communication-message-row.is-theirs .communication-bubble,
  .dashboard-worker-chip,
  .worker-calendar-totals span
) {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-product.is-selected {
  background: #000000;
  color: #ffffff;
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .manual-session-product.is-selected :is(strong, span) {
  color: #ffffff;
}

@media (min-width: 1025px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item {
    min-height: 62px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .menu-item > span:not(.menu-icon):not(.nav-unread-badge) {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #header-theme-toggle {
    min-width: 150px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .header-theme-label {
    max-width: 150px;
  }
}

html[data-theme="high-contrast"] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .manual-worker-fallback,
  .communication-compose,
  .advance-request-panel,
  .worker-admin-tool-menu,
  .worker-row.is-at-work,
  .dashboard-worker-chip:has(.status-chip.ok),
  .report-form-section
) {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
}

@media (min-width: 1120px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-support:not(.hidden),
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) #view-settings:not(.hidden) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .app-language-switch {
    width: 100%;
    flex-basis: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > .panel,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .view > article.panel {
    padding: 16px;
    border-radius: 13px;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-primary-actions,
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-primary-actions .button {
    width: 100%;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .report-schedule-actions {
    justify-content: flex-start;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-refresh-actions {
    width: 100%;
    justify-content: space-between;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-refresh-actions .status-line {
    text-align: left;
  }
}

@media (max-width: 460px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart {
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .dashboard-chart-bar {
    min-width: 44px;
  }
}

/* WO-HV647 - Inline harvest corrections and audit-safe delete controls. */
html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .harvest-inline-edit,
  .harvest-inline-delete
) {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--premium-line, rgba(196, 153, 59, 0.28));
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-edit label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-edit label > span {
  color: var(--premium-gold, #d5ad55);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-edit input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-edit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) :is(
  .harvest-entry-actions,
  .harvest-inline-edit-actions
) .compact-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-delete > p:first-child {
  margin: 0;
  color: var(--premium-danger, #a72828);
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 390px) {
  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .harvest-inline-edit-actions {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-collection-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  html[data-theme] body.work-screen:not(.terminal-kiosk-screen):not(.sysadmin-screen) .worker-hours-create-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
