@font-face {
  font-family: AGS;
  src: local("Inter"), local("Aptos"), local("Segoe UI");
}
/* The public-demo banner stays visible on cockpit and worker screens. */
#showroom-notice { position: fixed; top: 0; left: 0; right: 0; z-index: 50; min-height: 52px; padding: 10px 24px; display: flex; align-items: center; gap: 24px; background: #101923; color: #fbfaf6; font-size: 12px; }
#showroom-notice a { color: #d7b978; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; }
body.showroom-mode { padding-top: 52px; }
.showroom-mode .sidebar { top: 52px; }
.showroom-mode .auth-screen, .showroom-mode .app-shell { min-height: calc(100vh - 52px); }
@media (max-width: 640px) {
  #showroom-notice { min-height: 96px; padding: 8px 16px; gap: 8px; align-items: flex-start; flex-direction: column; font-size: 11px; }
  #showroom-notice a { min-height: 24px; }
  body.showroom-mode { padding-top: 96px; }
  .showroom-mode .sidebar { top: 96px; }
}
:root {
  font-family:
    AGS,
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172e27;
  background: #f5f5f0;
  font-synthesis: none;
  --green: #163f35;
  --green2: #245a48;
  --muted: #67736d;
  --line: #dce2d9;
  --paper: #fff;
  --soft: #edf1e9;
  --amber: #a55816;
  --red: #a8392c;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.06em;
  font-weight: 620;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.13rem;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin-bottom: 8px;
}
h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p {
  margin-bottom: 16px;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #be852c;
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.preline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip-link:focus-visible {
  top: 8px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #f4f5ef;
  padding: 36px 22px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-symbol {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #6e9081;
  border-radius: 11px;
  background: #245246;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1;
}
.brand-word {
  font-size: 1.7rem;
  letter-spacing: -0.055em;
  font-weight: 650;
  line-height: 1;
}
.brand-caption {
  font-size: 0.72rem;
  color: #b1c3b8;
  line-height: 1.4;
  max-width: 100px;
  margin-top: 5px;
}
.workspace-label {
  padding: 29px 12px 22px;
  margin-top: 26px;
  border-top: 1px solid #36584c;
}
.workspace-label .eyebrow {
  color: #9eb9aa;
  margin-bottom: 4px;
  font-size: 0.65rem;
}
.workspace-name {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #c5d5ca;
  border-radius: 8px;
}
.nav a:hover {
  background: #234e40;
  color: white;
}
.nav a.active {
  background: #e8eedf;
  color: #163f35;
  font-weight: 600;
}
.nav .nav-count {
  margin-left: auto;
  border-radius: 5px;
  font-size: 0.72rem;
  padding: 0 6px;
  background: #d48a38;
  color: #142e25;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 4px 0;
}
.sidebar-footnote {
  font-size: 0.75rem;
  color: #afc2b6;
  padding: 18px 12px 0;
  border-top: 1px solid #36584c;
  line-height: 1.65;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf6;
  gap: 12px;
}
.breadcrumb {
  min-width: 0;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #293d31;
  font-weight: 500;
}
.top-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cockpit-language select {
  width: 116px;
  min-height: 40px;
  font-size: 0.85rem;
}
.auth-language {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 430px;
  margin-bottom: 24px;
}
.private-label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #e3e8dc;
  border: 1px solid #d4dccf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 650;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 39px 44px 60px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: #213a2e;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.45;
  min-height: 42px;
}
.button:hover {
  background: #f0f3ed;
  border-color: #afc0ae;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.primary:hover {
  background: #285943;
}
.button.danger {
  color: var(--red);
  border-color: #e6c2bb;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.small {
  padding: 6px 11px;
  min-height: 35px;
  font-size: 0.8rem;
}
.button.icon-only {
  padding: 8px;
  min-width: 38px;
}
.button-group {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  margin-bottom: 28px;
  overflow: hidden;
}
.stat {
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #526459;
  margin-bottom: 15px;
}
.stat-title .icon {
  color: #718272;
  width: 18px;
}
.stat-value {
  font-size: 2.15rem;
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.stat-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 9px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 25px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel + .panel {
  margin-top: 24px;
}
.panel-header {
  padding: 22px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  margin: 0;
}
.panel-header p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 5px 0 0;
}
.panel-body {
  padding: 23px;
}
.text-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #386245;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
}
.station-row {
  display: grid;
  grid-template-columns: 42px minmax(130px, 1fr) auto 24px;
  gap: 14px;
  align-items: center;
  padding: 21px 23px;
  border-bottom: 1px solid #e8ece4;
  transition: background 0.15s;
}
.station-row:last-child {
  border-bottom: 0;
}
.station-row:hover {
  background: #f6f8f1;
}
.station-icon {
  width: 41px;
  height: 43px;
  background: #f1f3eb;
  border: 1px solid #e0e7d9;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #597252;
}
.station-row h3 {
  font-size: 0.9rem;
  font-weight: 600;
}
.station-row p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--muted);
}
.station-row .chevron {
  color: #92a08f;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 0.73rem;
  font-weight: 550;
  border-radius: 5px;
  background: #edf2e8;
  color: #446441;
  white-space: nowrap;
}
.badge.warning {
  color: #925719;
  background: #fcf0d9;
}
.badge.critical {
  color: #a3352b;
  background: #fbeae5;
}
.badge.neutral {
  color: #657069;
  background: #f0f1ef;
}
.badge.dot:before {
  content: "";
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.alert-item {
  padding: 19px 22px;
  border-bottom: 1px solid #e8ece4;
}
.alert-item:last-child {
  border-bottom: 0;
}
.alert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.alert-item h3 {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.alert-item p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--muted);
}
.alert-item .button-group {
  margin-top: 14px;
}
.activity-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 17px 23px;
  border-bottom: 1px solid #e8ece4;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff3e9;
  color: #5e7852;
}
.activity-icon .icon {
  width: 14px;
  height: 14px;
}
.activity-row p {
  font-size: 0.825rem;
  margin: 0;
}
.activity-row .meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.activity-row time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}
.note-card {
  padding: 24px;
  background: #e9eee1;
  border: 1px solid #d6dfcd;
  border-radius: var(--radius);
  margin-top: 24px;
}
.note-card .icon {
  margin-bottom: 12px;
  color: #5b7251;
}
.note-card h3 {
  font-size: 0.9rem;
}
.note-card p {
  font-size: 0.8rem;
  color: #5f6e55;
  margin: 0;
  line-height: 1.75;
}
.empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #85927e;
}
.empty h3 {
  color: #41543e;
  margin-bottom: 7px;
  font-size: 0.95rem;
}
.empty p {
  font-size: 0.875rem;
  max-width: 420px;
  margin: 0 auto 18px;
}
.empty p:last-child {
  margin-bottom: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search {
  max-width: 360px;
  flex: 1;
  position: relative;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
  width: 18px;
}
.search input {
  padding-left: 40px;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.station-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.station-card:hover {
  border-color: #94aa88;
  box-shadow: 0 5px 20px #173e3508;
}
.station-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.station-card h2 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}
.station-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.station-card-footer {
  border-top: 1px solid #e5e9df;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.station-card-footer span {
  font-size: 0.78rem;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 27px;
  overflow: auto;
}
.tabs a {
  padding: 13px 1px;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.instruction {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.instruction:last-child {
  border-bottom: 0;
}
.instruction-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.instruction-title {
  display: flex;
  gap: 13px;
  align-items: start;
}
.step-number {
  font-size: 0.75rem;
  color: #718369;
  border: 1px solid #dbe3d4;
  border-radius: 7px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.instruction h3 {
  margin: 0 0 8px;
}
.instruction-text {
  color: #54614f;
  font-size: 0.9rem;
  margin: 17px 0 0;
  line-height: 1.8;
}
.lang-tags {
  display: flex;
  gap: 6px;
  margin-top: 13px;
  font-size: 0.7rem;
  color: #637458;
}
.lang-tags span {
  border: 1px solid #e2e7dd;
  padding: 1px 6px;
  border-radius: 4px;
}
.qr-preview {
  text-align: center;
  padding: 22px;
}
.qr-preview img {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  background: white;
}
.qr-preview p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 13px 0 20px;
}
.definition {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  font-size: 0.8rem;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
  max-width: 170px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 550;
}
.field small {
  font-size: 0.75rem;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd9ca;
  border-radius: 7px;
  padding: 11px 12px;
  color: #243b2c;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #8a9586;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.check-field label {
  cursor: pointer;
}
.field-error,
.form-error {
  padding: 12px 14px;
  border: 1px solid #e7bab1;
  background: #fff0eb;
  color: #953e32;
  border-radius: 7px;
  font-size: 0.875rem;
  margin-bottom: 18px;
}
.form-error:empty {
  display: none;
}
.notice {
  background: #f1f4ea;
  border: 1px solid #dce5cd;
  color: #546548;
  border-radius: 8px;
  padding: 14px 17px;
  font-size: 0.825rem;
  margin-bottom: 22px;
  line-height: 1.7;
}
.notice.warning {
  background: #fff7e8;
  border-color: #ebd6ae;
  color: #815a27;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.825rem;
}
th {
  background: #fafbf7;
  color: #64705d;
  font-weight: 500;
  font-size: 0.74rem;
  white-space: nowrap;
}
th,
td {
  padding: 15px 21px;
  border-bottom: 1px solid #e6eae0;
}
tbody tr:last-child td {
  border: 0;
}
td .sub {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 4px;
}
.filter-select {
  width: auto;
  min-width: 170px;
  max-width: 260px;
  font-size: 0.8rem;
  padding: 9px 11px;
}
.table-wrap .badge {
  white-space: normal;
}
.settings-stack {
  max-width: 760px;
}
.danger-zone {
  border-top: 1px solid #ead6cd;
  margin-top: 25px;
  padding-top: 22px;
}
.danger-zone h3 {
  color: var(--red);
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(350px, 0.85fr) minmax(450px, 1fr);
}
.auth-aside {
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 54px 60px;
}
.auth-aside .brand {
  margin-bottom: auto;
}
.auth-story {
  padding: 80px 0;
}
.auth-story .eyebrow {
  color: #baceac;
  font-size: 0.72rem;
}
.auth-story h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
  max-width: 440px;
  font-weight: 550;
}
.auth-story p {
  color: #b7ccba;
  max-width: 360px;
  line-height: 1.85;
  font-size: 0.95rem;
  margin-top: 25px;
}
.auth-aside-footer {
  font-size: 0.75rem;
  color: #b7ccba;
  border-top: 1px solid #426453;
  padding-top: 20px;
}
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 55px;
  background: #fafaf6;
}
.auth-form {
  width: 100%;
  max-width: 430px;
}
.auth-form h2 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 27px;
}
.auth-form .button {
  width: 100%;
  margin-top: 5px;
}
.auth-caption {
  font-size: 0.75rem !important;
  text-align: center;
  margin: 23px 0 0 !important;
}
.setup-form {
  max-width: 520px;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.loading-screen p {
  font-size: 0.9rem;
  color: var(--muted);
}
dialog {
  width: min(600px, calc(100% - 30px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: #223829;
  box-shadow: 0 24px 90px #08281940;
  background: #fff;
}
dialog::backdrop {
  background: #102b2366;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 24px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 1.25rem;
  margin: 0;
}
.dialog-body {
  padding: 25px 26px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.dialog-body .qr-large {
  width: 230px;
  max-width: 100%;
  display: block;
  margin: 0 auto 18px;
}
.dialog-body .qr-title {
  text-align: center;
}
.dialog-body .qr-url {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
  background: #143f35;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 35px #0e291e30;
  z-index: 100;
  max-width: calc(100% - 30px);
  font-size: 0.875rem;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #853e32;
}
.worker-page {
  min-height: 100vh;
  background: #f3f5ee;
}
.worker-header {
  background: var(--green);
  color: white;
  padding: 22px 24px 75px;
}
.worker-top {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.worker-top .brand-symbol {
  width: 31px;
  height: 31px;
  font-size: 1.2rem;
}
.worker-top .brand-word {
  font-size: 1.3rem;
}
.worker-top select {
  background: #214d40;
  border-color: #52715b;
  color: white;
  font-size: 0.8rem;
  padding: 8px 10px;
  max-width: 140px;
}
.worker-main {
  max-width: 680px;
  margin: -45px auto 0;
  padding: 0 20px 50px;
}
.worker-identity {
  background: white;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
}
.worker-identity h1 {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}
.worker-identity p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.worker-identity .eyebrow {
  margin-bottom: 12px;
  color: #5e7651;
}
.worker-tabs {
  gap: 20px;
  font-size: 0.85rem;
  justify-content: space-between;
}
.worker-tabs button {
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  white-space: nowrap;
}
.worker-tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.worker-instruction {
  margin-bottom: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.worker-instruction h2 {
  font-size: 1.05rem;
  margin: 0;
}
.worker-instruction .instruction-text {
  font-size: 1rem;
  color: #334931;
  margin-bottom: 22px;
  margin-top: 18px;
  line-height: 1.8;
}
.worker-instruction .button-group {
  gap: 8px;
}
.worker-instruction .button {
  font-size: 0.8rem;
  padding: 10px 12px;
}
.worker-instruction .badge {
  margin-top: 16px;
  margin-right: 6px;
}
.worker-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 13px;
}
.worker-subtitle h2 {
  margin: 0;
}
.worker-subtitle .small {
  font-size: 0.75rem;
}
.worker-status {
  font-size: 0.8rem;
  color: #68745e;
  margin: 14px 0 0;
}
.worker-footnote {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
  padding-top: 20px;
  line-height: 1.7;
}
.question-answer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.memory-note {
  border-left: 2px solid #a0b38f;
  padding: 0 0 0 15px;
  margin: 20px 0;
}
.memory-note p {
  margin-bottom: 7px;
  font-size: 0.9rem;
}
.memory-note time {
  font-size: 0.75rem;
  color: var(--muted);
}
.worker-enter {
  max-width: 430px;
  margin: 30px auto;
}
.worker-enter .button {
  width: 100%;
}
.progress-track {
  background: #e8ede2;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 19px;
}
.progress-track span {
  background: #55784b;
  height: 100%;
  display: block;
  transition: width 0.3s;
}
.poll-status {
  font-size: 0.7rem;
  color: #64735d;
}
.page-footer {
  margin-top: 25px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media (min-width: 1500px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 365px;
  }
  .content {
    padding-top: 44px;
  }
  .station-row {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
  .stat {
    padding: 19px;
  }
  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-aside {
    padding: 40px;
  }
  .station-row {
    grid-template-columns: 35px minmax(90px, 1fr) auto 14px;
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .station-icon {
    width: 35px;
    height: 38px;
  }
  .station-row .badge {
    font-size: 0.65rem;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}
@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .dashboard-side .note-card {
    margin: 0;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .station-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .station-aside .panel + .panel {
    margin-top: 0;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .auth-aside {
    padding: 32px;
  }
  .auth-main {
    padding: 36px;
  }
  .auth-story h1 {
    font-size: 3rem;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 10px 0 45px #143f3520;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    height: 67px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    font-size: 0.8rem;
  }
  .private-label {
    display: none;
  }
  .top-right {
    gap: 8px;
  }
  .content {
    padding: 27px 20px 40px;
  }
  .page-heading {
    align-items: start;
    gap: 15px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 1.75rem;
  }
  .page-heading p {
    font-size: 0.85rem;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .page-heading > .button .icon {
    width: 16px;
  }
  .dashboard-side {
    display: block;
  }
  .dashboard-side .note-card {
    margin-top: 20px;
  }
  .station-grid {
    gap: 15px;
  }
  .station-card {
    padding: 18px;
  }
  .auth-screen {
    display: block;
  }
  .auth-aside {
    padding: 24px;
    min-height: auto;
  }
  .auth-aside .brand {
    margin: 0;
  }
  .auth-story {
    padding: 26px 0 0;
  }
  .auth-story h1 {
    font-size: 2.4rem;
    max-width: none;
    margin: 0;
  }
  .auth-story p,
  .auth-aside-footer {
    display: none;
  }
  .auth-story .eyebrow {
    display: none;
  }
  .auth-main {
    padding: 32px 23px;
  }
  .auth-form {
    max-width: 520px;
  }
  .station-aside {
    grid-template-columns: 1fr 1fr;
  }
  .activity-row {
    padding: 17px;
  }
  .panel-header {
    padding: 20px;
  }
  .stat-value {
    font-size: 1.85rem;
  }
  .page-footer {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .station-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .button {
    margin-top: 1px;
  }
  .stat {
    padding: 18px;
  }
  .stat-title {
    font-size: 0.78rem;
  }
  .stat-note {
    font-size: 0.7rem;
  }
  .station-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 18px 15px;
    gap: 10px;
  }
  .station-row .chevron {
    display: none;
  }
  .station-row h3 {
    font-size: 0.825rem;
  }
  .station-row p {
    font-size: 0.72rem;
  }
  .panel-header h2 {
    font-size: 1rem;
  }
  .station-aside {
    grid-template-columns: 1fr;
  }
  .station-aside .panel + .panel {
    margin-top: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tabs {
    gap: 21px;
  }
  .topbar .breadcrumb > span {
    display: none;
  }
  .worker-main {
    padding: 0 14px 35px;
  }
  .worker-identity {
    padding: 24px;
  }
  .worker-instruction {
    padding: 20px;
  }
  .worker-instruction .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .worker-instruction .button-group .button:last-child {
    grid-column: 1/-1;
  }
  .worker-tabs {
    gap: 9px;
  }
  .worker-tabs button {
    font-size: 0.75rem;
  }
  .worker-top {
    gap: 10px;
  }
  .dialog-body {
    padding: 22px;
  }
  .activity-row time {
    font-size: 0.65rem;
  }
  .page-footer {
    display: block;
  }
  .page-footer span {
    display: block;
    margin-bottom: 6px;
  }
  .qr-preview {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > dialog[open] {
    display: block !important;
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    max-height: none;
  }
  dialog::backdrop {
    display: none;
  }
  .dialog-header,
  .dialog-footer,
  .no-print {
    display: none !important;
  }
  .dialog-body {
    padding: 60px;
  }
  .dialog-body .qr-large {
    width: 300px;
  }
  .dialog-body .qr-title {
    font-size: 28px;
  }
}

.spaced {
  margin-top: 24px;
}
.auth-caption .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.button.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .button.mobile-menu {
    display: inline-flex;
  }
}

.voice-input {
  flex-basis: 100%;
  min-width: 0;
}
.voice-input [hidden] {
  display: none;
}
.voice-status {
  margin: 8px 0 3px;
  overflow-wrap: anywhere;
}
.voice-status:empty {
  display: none;
}
