:root {
  --fw-bg: #f4f7fb;
  --fw-surface: #ffffff;
  --fw-border: #d8e2ef;
  --fw-text: #142033;
  --fw-muted: #64748b;
  --fw-primary: #0b1f3f;
  --fw-primary-strong: #12305a;
  --fw-danger: #b91c1c;
  --fw-danger-bg: #fef2f2;
  --fw-success: #047857;
  --fw-success-bg: #ecfdf5;
  --fw-shadow: 0 18px 42px rgba(15, 23, 42, .14);
  --fw-soft-shadow: 0 18px 48px rgba(15, 23, 42, .10);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fw-text);
  background: var(--fw-bg);
}

.fw-login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #071a35 0%, #0b1f3f 62%, #12305a 100%);
}

.fw-login-shell {
  display: grid;
  width: min(100%, 460px);
  gap: 20px;
}

.fw-brand {
  display: grid;
  gap: 8px;
  color: #fff;
  text-align: center;
}

.fw-brand h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.fw-brand p {
  margin: 0;
  color: #dbeafe;
  font-weight: 700;
  line-height: 1.45;
}

.fw-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--fw-border);
  border-radius: 14px;
  background: var(--fw-surface);
  box-shadow: var(--fw-shadow);
}

.fw-card h2,
.fw-page h1 {
  margin: 0;
  line-height: 1.15;
}

.fw-card p,
.fw-page p {
  margin: 0;
  color: var(--fw-muted);
  line-height: 1.5;
}

.fw-form {
  display: grid;
  gap: 14px;
}

.fw-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.fw-field-help {
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.fw-form-help {
  margin-top: -6px;
}

.fw-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  color: var(--fw-text);
  font: inherit;
}

.fw-input:focus {
  border-color: #93c5fd;
  outline: 3px solid #dbeafe;
}

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

.admin-users-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: start;
}

.admin-users-form-field {
  align-self: start;
  min-width: 0;
}

.admin-users-form-field .fw-field-helper {
  max-width: 58ch;
}

.fw-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fw-primary);
  border-radius: 10px;
  color: #fff;
  background: var(--fw-primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.fw-button:hover,
.fw-button:focus-visible {
  background: var(--fw-primary-strong);
  outline: none;
}

.fw-button:disabled {
  border-color: var(--fw-border);
  color: var(--fw-muted);
  background: #e5e7eb;
  cursor: not-allowed;
}

.fw-button-secondary {
  color: var(--fw-primary);
  background: #fff;
}

.fw-topbar .fw-button-secondary {
  display: inline-flex;
  width: 116px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-color: rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 24px rgba(0, 0, 0, .12);
}

.fw-topbar .fw-button-secondary:hover,
.fw-topbar .fw-button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, .58);
  background: linear-gradient(180deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .12));
}

.fw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

a.fw-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.fw-nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.fw-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #cfe0f7;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}

.fw-nav a:hover,
.fw-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .095);
  outline: none;
}

.fw-nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .11));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .10);
}

.fw-nav .fw-context-switch {
  border-color: rgba(191, 219, 254, .28);
  color: #eaf2ff;
  background: rgba(255, 255, 255, .075);
}

.fw-nav .fw-context-switch:hover,
.fw-nav .fw-context-switch:focus-visible {
  border-color: rgba(191, 219, 254, .48);
  background: rgba(255, 255, 255, .14);
}

.fw-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: .88;
}

.fw-nav a[aria-current="page"] .fw-nav-icon {
  opacity: 1;
}

.fw-admin-chip {
  display: inline-flex;
  width: clamp(220px, 23vw, 300px);
  min-height: 40px;
  align-items: center;
  gap: 9px;
  margin-left: 4px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.fw-admin-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 999px;
  color: #0b1f3f;
  background: linear-gradient(135deg, #dbeafe, #ffffff);
  font-size: 13px;
  font-weight: 950;
}

#fwUserName {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.fw-logout-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  line-height: 1;
}

.fw-textarea {
  min-height: 88px;
  resize: vertical;
}

.fw-check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--fw-muted);
  font-weight: 800;
}

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

.fw-list-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #f8fafc;
}

.fw-list-row-selected {
  border-color: #86efac;
  background: #f0fdf4;
}

.fw-list-row > div:first-child {
  display: grid;
  gap: 4px;
}

.fw-list-row span,
.fw-result span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 800;
}

.fw-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.fw-badge {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.fw-badge-success {
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-badge-muted {
  color: var(--fw-muted);
  background: #e5e7eb;
}

.fw-badge-protected {
  color: #92400e;
  background: #fef3c7;
}

.fw-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #f8fafc;
}

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

.fw-section-heading > div {
  display: grid;
  gap: 6px;
}

.fw-qr-panel {
  scroll-margin-top: 16px;
}

.fw-qr-details,
.fw-qr-sheet-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fw-qr-details div,
.fw-qr-sheet-details div {
  display: grid;
  gap: 4px;
}

.fw-qr-details dt,
.fw-qr-sheet-details dt {
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fw-qr-details dd,
.fw-qr-sheet-details dd {
  margin: 0;
  font-weight: 850;
}

.fw-qr-preview {
  display: grid;
  width: min(100%, 260px);
  place-items: center;
  padding: 14px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #fff;
}

.fw-qr-preview svg,
.fw-qr-sheet-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.fw-qr-warning {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e !important;
  background: #fffbeb;
  font-weight: 850;
}

.fw-qr-print-body {
  background: #eef5ff;
}

.fw-qr-sheet {
  display: grid;
  gap: 18px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 24px 18px;
}

.fw-qr-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.fw-qr-sheet-card {
  display: grid;
  gap: 22px;
  min-height: 1000px;
  padding: 42px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fw-soft-shadow);
}

.fw-qr-sheet-card header {
  display: grid;
  gap: 10px;
  text-align: center;
}

.fw-qr-sheet-card header strong {
  color: var(--fw-primary);
  font-size: 22px;
}

.fw-qr-sheet-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.fw-qr-sheet-image {
  display: grid;
  width: min(100%, 430px);
  place-self: center;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #fff;
}

.fw-qr-sheet-instruction {
  max-width: 620px;
  margin: 0 auto;
  color: var(--fw-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.fw-qr-sheet-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  background: #f8fafc;
}

.fw-qr-sheet-link h2 {
  margin: 0;
  font-size: 14px;
}

.fw-qr-sheet-link p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fw-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.fw-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--fw-border);
}

.fw-photo-panel {
  display: grid;
  flex-basis: 100%;
  gap: 10px;
  margin-top: 10px;
}

.fw-empty-state {
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 1px dashed #bfd0e6;
  border-radius: 12px;
  background: #f8fbff;
  text-align: center;
}

.fw-empty-state h3 {
  margin: 0;
  color: var(--fw-primary);
  font-size: 20px;
}

.fw-empty-state p,
.fw-muted-note {
  margin: 0;
  color: var(--fw-muted);
  line-height: 1.5;
}

.fw-session-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(184, 199, 218, .88);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

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

.fw-session-worker {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.fw-session-worker strong {
  color: var(--fw-primary);
  font-size: 20px;
  line-height: 1.2;
}

.fw-session-worker span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 800;
}

.fw-session-chips,
.fw-session-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-status-chip,
.fw-location-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.fw-status-chip-active {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.fw-status-chip-completed {
  border-color: #bbf7d0;
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-status-chip-cancelled {
  border-color: #fecaca;
  color: var(--fw-danger);
  background: var(--fw-danger-bg);
}

.fw-status-chip-duration,
.fw-status-chip-muted,
.fw-location-chip {
  border-color: #dbe4f0;
  color: #475569;
  background: #f8fafc;
}

.fw-job-visibility-badge {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.fw-job-visibility-visible {
  border-color: #bbf7d0;
  color: #047857;
  background: #ecfdf5;
}

.fw-job-visibility-hidden {
  border-color: #e2e8f0;
  color: #64748b;
  background: #f8fafc;
}

.fw-location-chip-on {
  border-color: #bbf7d0;
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-session-context {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fbff;
}

.fw-session-context span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 900;
}

.fw-session-context strong {
  color: var(--fw-text);
  font-size: 18px;
  line-height: 1.25;
}

.fw-session-context p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fw-muted);
  font-weight: 800;
  line-height: 1.45;
}

.fw-session-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fw-session-details div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e9f4;
  border-radius: 10px;
  background: #fbfdff;
}

.fw-session-details dt {
  color: var(--fw-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fw-session-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fw-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.fw-session-notes {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.fw-session-notes div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left: 3px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.fw-session-notes dt {
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 950;
}

.fw-session-notes dd,
.fw-session-notes p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fw-text);
  line-height: 1.5;
}

.fw-session-notes p {
  color: var(--fw-muted);
  font-weight: 800;
}

.fw-session-photos {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.fw-session-photos-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.fw-session-photos-head h3 {
  margin: 0;
  color: var(--fw-primary);
  font-size: 16px;
}

.fw-session-photo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fafc;
}

.fw-session-photo-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 950;
}

.fw-session-photo-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.fw-session-photo-meta strong,
.fw-session-photo-meta span {
  overflow-wrap: anywhere;
}

.fw-session-photo-meta strong {
  color: var(--fw-text);
  line-height: 1.35;
}

.fw-session-photo-meta span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 800;
}

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

.fw-page-intro > div {
  display: grid;
  gap: 6px;
}

.fw-page-intro h1,
.fw-page-intro p {
  margin: 0;
}

.fw-page-intro p {
  color: var(--fw-muted);
  font-weight: 750;
}

.fw-count-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.fw-session-filterbar {
  align-items: end;
}

.fw-session-filterbar .fw-field {
  min-width: 240px;
}

.fw-session-message {
  min-height: 18px;
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 800;
}

.fw-session-message:empty {
  display: none;
}

.fw-session-card {
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 0;
  border-color: rgba(184, 199, 218, .72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98));
  box-shadow: 0 20px 46px rgba(15, 23, 42, .10);
}

.fw-session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #10b981);
}

.fw-session-head,
.fw-session-context,
.fw-session-flow,
.fw-session-location,
.fw-session-notes,
.fw-session-photos {
  margin-left: 5px;
  padding-inline: 22px;
}

.fw-session-head {
  padding-top: 22px;
  padding-bottom: 2px;
}

.fw-session-worker strong {
  font-size: 22px;
  letter-spacing: 0;
}

.fw-session-worker span {
  color: #475569;
}

.fw-session-chips {
  justify-content: flex-end;
}

.fw-status-chip {
  min-height: 34px;
  padding-inline: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.fw-status-chip-duration {
  color: #0f172a;
  background: #eef2f7;
}

.fw-session-context {
  padding-block: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fw-session-context span {
  color: #2563eb;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fw-session-context strong {
  font-size: 19px;
}

.fw-session-context p {
  max-width: 820px;
  color: #334155;
  font-size: 15px;
}

.fw-session-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fw-session-flow div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding-block: 12px;
  border-top: 1px solid #dbe4f0;
  border-bottom: 1px solid #edf2f7;
}

.fw-session-flow span,
.fw-session-flow small {
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 850;
}

.fw-session-flow strong {
  overflow-wrap: anywhere;
  color: var(--fw-primary);
  font-size: 18px;
  line-height: 1.2;
}

.fw-session-location {
  padding-top: 0;
}

.fw-location-chip {
  min-height: 32px;
  background: rgba(248, 250, 252, .86);
}

.fw-session-notes {
  padding-top: 0;
}

.fw-session-notes div {
  padding: 0 0 0 12px;
  border-radius: 0;
  background: transparent;
}

.fw-session-notes p {
  padding-left: 12px;
  border-left: 3px solid #dbe4f0;
}

.fw-session-photos {
  gap: 0;
  padding-top: 2px;
  padding-bottom: 22px;
}

.fw-session-photos-head {
  padding: 14px 0 12px;
  border-top: 1px solid #e5edf6;
}

.fw-session-photos-head h3 {
  font-size: 15px;
}

.fw-session-photos .fw-photo-panel {
  margin-top: 0;
}

.fw-session-photo-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  border-color: #e1e9f4;
  background: rgba(248, 250, 252, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.fw-session-photo-thumb {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
}

.fw-session-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-session-photo-thumb-loaded {
  color: transparent;
  background: #e5edf7;
}

.fw-session-photo-thumb-fallback {
  color: #64748b;
  background: #eef4fb;
}

.fw-report-hero {
  gap: 20px;
  border-color: rgba(184, 199, 218, .78);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .99), rgba(248, 251, 255, .96));
  box-shadow: 0 22px 54px rgba(15, 23, 42, .10);
}

.fw-report-filter {
  display: grid;
  gap: 14px;
}

.fw-report-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.fw-report-actions {
  justify-content: flex-start;
}

.fw-report-range {
  min-height: 20px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.fw-report-range:empty {
  display: none;
}

.fw-report-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.fw-report-kpi {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(184, 199, 218, .78);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.fw-report-kpi::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: #2563eb;
}

.fw-report-kpi-green::after {
  background: #10b981;
}

.fw-report-kpi-warn::after {
  background: #f97316;
}

.fw-report-kpi-navy::after {
  background: var(--fw-primary);
}

.fw-report-kpi-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 950;
}

.fw-report-kpi-green .fw-report-kpi-icon {
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-report-kpi-warn .fw-report-kpi-icon {
  color: #c2410c;
  background: #fff7ed;
}

.fw-report-kpi-navy .fw-report-kpi-icon {
  color: var(--fw-primary);
  background: #eef2f7;
}

.fw-report-kpi span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 900;
}

.fw-report-kpi strong {
  color: var(--fw-primary);
  font-size: 34px;
  line-height: 1;
}

.fw-report-kpi small {
  color: var(--fw-muted);
  font-weight: 800;
}

.fw-report-section,
.fw-report-priority {
  gap: 16px;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .085);
}

.fw-report-priority {
  border-color: rgba(147, 197, 253, .9);
}

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

.fw-report-section-head h2,
.fw-report-section-head p {
  margin: 0;
}

.fw-report-section-head div {
  display: grid;
  gap: 6px;
}

.fw-report-section-head h2 {
  color: var(--fw-primary);
}

.fw-report-section-head p {
  color: var(--fw-muted);
  font-weight: 800;
}

.fw-report-table-wrap,
.fw-table-wrap {
  overflow-x: auto;
}

.fw-report-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}

.fw-report-table th {
  color: #475569;
  background: #f8fbff;
  font-size: 12px;
  text-transform: uppercase;
}

.fw-report-table td {
  background: #fff;
}

.fw-report-job-table td:first-child {
  min-width: 260px;
  font-weight: 850;
}

.fw-plan-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.fw-plan-chip-ok {
  border-color: #bbf7d0;
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-plan-chip-over {
  border-color: #fed7aa;
  color: #c2410c;
  background: #fff7ed;
}

.fw-plan-chip-muted {
  color: var(--fw-muted);
  background: #f8fafc;
}

.fw-report-empty {
  box-shadow: none;
}

.fw-alert {
  padding: 12px;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  color: var(--fw-text);
  background: #f8fafc;
}

.fw-alert:empty {
  display: none;
}

.fw-alert-danger {
  border-color: #fecaca;
  color: var(--fw-danger);
  background: var(--fw-danger-bg);
}

.fw-alert-success {
  border-color: #bbf7d0;
  color: var(--fw-success);
  background: var(--fw-success-bg);
}

.fw-page-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef5ff 0%, #f7f9fc 46%, #f4f7fb 100%);
}

.fw-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 68px;
  align-items: center;
  gap: 20px;
  padding: 13px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(96, 165, 250, .22), transparent 30%),
    linear-gradient(135deg, #061733 0%, #0b1f3f 54%, #12305a 100%);
  box-shadow: 0 16px 38px rgba(7, 26, 53, .22);
}

.fw-topbar strong {
  flex: 0 0 auto;
  font-size: 18px;
  letter-spacing: .01em;
}

.fw-page {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 18px;
}

.fw-page-wide {
  width: min(100%, 1180px);
}

.fw-dashboard-page {
  width: min(100%, 1180px);
  gap: 22px;
  padding-block: 34px 44px;
}

.fw-dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(184, 199, 218, .84);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
  box-shadow: 0 22px 60px rgba(15, 23, 42, .105);
}

.fw-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 210px;
  border-radius: 48px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(18, 48, 90, .10));
  transform: rotate(-12deg);
  z-index: -1;
}

.fw-dashboard-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.fw-dashboard-hero p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--fw-muted);
  font-size: 16px;
  line-height: 1.6;
}

.fw-dashboard-hero-icon,
.fw-dashboard-card-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

.fw-dashboard-hero-icon {
  width: 66px;
  height: 66px;
  color: #fff;
  background: linear-gradient(135deg, #0b1f3f, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
}

.fw-dashboard-hero-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fw-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fw-dashboard-card {
  position: relative;
  display: grid;
  min-height: 204px;
  gap: 20px;
  align-content: space-between;
  padding: 23px;
  border: 1px solid rgba(198, 212, 230, .86);
  border-radius: 20px;
  color: var(--fw-text);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fw-dashboard-card:hover,
.fw-dashboard-card:focus-visible {
  border-color: rgba(59, 130, 246, .45);
  box-shadow: 0 24px 54px rgba(15, 23, 42, .13);
  transform: translateY(-3px);
  outline: none;
}

.fw-dashboard-card:focus-visible {
  box-shadow:
    0 22px 48px rgba(15, 23, 42, .13),
    0 0 0 4px rgba(147, 197, 253, .45);
}

.fw-dashboard-card-icon {
  width: 52px;
  height: 52px;
  color: #12305a;
  background: #eaf3ff;
}

.fw-dashboard-card-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fw-dashboard-card-copy {
  display: grid;
  gap: 8px;
}

.fw-dashboard-card-copy strong {
  font-size: 19px;
  line-height: 1.2;
}

.fw-dashboard-card-copy span {
  color: var(--fw-muted);
  line-height: 1.5;
}

.fw-card-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #12305a;
  background: linear-gradient(180deg, #f8fafc, #eef4fb);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .24);
  font-size: 24px;
  line-height: 1;
}

.fw-accent-blue .fw-dashboard-card-icon { color: #1d4ed8; background: #dbeafe; }
.fw-accent-teal .fw-dashboard-card-icon { color: #0f766e; background: #ccfbf1; }
.fw-accent-violet .fw-dashboard-card-icon { color: #6d28d9; background: #ede9fe; }
.fw-accent-amber .fw-dashboard-card-icon { color: #b45309; background: #fef3c7; }
.fw-accent-green .fw-dashboard-card-icon { color: #047857; background: #d1fae5; }
.fw-accent-indigo .fw-dashboard-card-icon { color: #4338ca; background: #e0e7ff; }
.fw-accent-rose .fw-dashboard-card-icon { color: #be123c; background: #ffe4e6; }

.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.fw-metric {
  gap: 8px;
}

.fw-metric span {
  color: var(--fw-muted);
  font-size: 13px;
  font-weight: 900;
}

.fw-metric strong {
  font-size: 28px;
}

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

.fw-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.fw-table th,
.fw-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fw-border);
  text-align: left;
  vertical-align: top;
}

.fw-table th {
  color: var(--fw-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.fw-table td span {
  color: var(--fw-muted);
  font-size: 13px;
}

.fw-table-warning {
  background: #fff7ed;
}

.fw-jobs-page {
  width: min(100%, 1240px);
}

.fw-jobs-board {
  gap: 18px;
}

.fw-jobs-hero {
  align-items: center;
}

.fw-jobs-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e3ecf7;
  border-radius: 14px;
  background: #f8fbff;
}

.fw-jobs-table-wrap {
  border: 1px solid #e3ecf7;
  border-radius: 14px;
  background: #fff;
}

.fw-jobs-table {
  min-width: 980px;
}

.fw-jobs-table th {
  background: #f8fbff;
}

.fw-jobs-table td strong {
  display: block;
  color: var(--fw-text);
  line-height: 1.25;
}

.fw-jobs-table td small {
  display: block;
  margin-top: 4px;
  color: var(--fw-muted);
  font-size: 11px;
  font-weight: 750;
}

.fw-jobs-row-actions {
  align-items: flex-start;
  gap: 6px;
}

.fw-jobs-row-actions .fw-button {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
}

.fw-jobs-empty {
  margin: 0;
}

.fw-info-box {
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.fw-drawer[hidden],
.fw-drawer-backdrop[hidden],
.fw-drawer [hidden] {
  display: none !important;
}

.fw-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .38);
}

.fw-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(100%, 520px);
  display: grid;
  pointer-events: none;
}

.fw-drawer-panel {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid #d9e5f2;
  background: #fff;
  box-shadow: -22px 0 54px rgba(15, 23, 42, .18);
  pointer-events: auto;
}

.fw-drawer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid #e3ecf7;
  background: #f8fbff;
}

.fw-drawer-head h2 {
  margin: 0;
  color: var(--fw-primary);
}

.fw-drawer-head p {
  margin-top: 6px;
  color: var(--fw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.fw-drawer-form {
  align-content: start;
  overflow-y: auto;
  padding: 22px;
}

.fw-drawer-actions {
  position: sticky;
  bottom: -22px;
  margin: 8px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid #e3ecf7;
  background: rgba(255, 255, 255, .96);
}

.fw-worker-body {
  background:
    radial-gradient(circle at 50% -80px, rgba(37, 99, 235, .12), transparent 260px),
    linear-gradient(180deg, #eef5ff 0%, #f8fafc 45%, #f4f7fb 100%);
}

.fw-worker-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #061733 0%, #0b1f3f 62%, #12305a 100%);
  box-shadow: 0 12px 30px rgba(7, 26, 53, .20);
}

.fw-worker-header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fw-worker-header strong {
  line-height: 1.1;
}

.fw-worker-header #fwUserName {
  max-width: 230px;
  color: #cfe0f7;
  font-size: 12px;
}

.fw-worker-logout {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.fw-worker-page {
  display: grid;
  width: min(100%, 520px);
  gap: 16px;
  margin: 0 auto;
  padding: 18px 14px 136px;
}

.fw-worker-phone-shell {
  width: min(100%, 480px);
}

.fw-worker-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 226, 239, .96);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
}

.fw-worker-screen {
  border-radius: 26px;
}

.fw-worker-view[hidden] {
  display: none;
}

.fw-worker-title {
  display: grid;
  gap: 5px;
}

.fw-worker-title h1,
.fw-worker-card h2 {
  margin: 0;
  line-height: 1.12;
}

.fw-worker-kicker {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fw-worker-section-title {
  margin: 4px 0 -4px;
  color: var(--fw-primary);
  font-size: 20px;
  line-height: 1.2;
}

.fw-worker-empty,
.fw-worker-active,
.fw-worker-scan-result,
.fw-worker-summary {
  display: grid;
  gap: 16px;
}

.fw-worker-empty[hidden],
.fw-worker-active[hidden],
.fw-worker-scan-result[hidden],
.fw-worker-summary[hidden] {
  display: none;
}

.fw-worker-empty {
  text-align: center;
  min-height: 360px;
  align-content: center;
}

.fw-worker-empty-compact {
  min-height: 220px;
}

.fw-worker-empty-icon {
  display: inline-grid;
  width: 74px;
  height: 74px;
  place-items: center;
  justify-self: center;
  border-radius: 24px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 950;
}

.fw-worker-empty h2,
.fw-worker-status-card h2,
.fw-worker-summary h2 {
  margin: 0;
}

.fw-worker-empty p,
.fw-worker-status-card p {
  margin: 0;
  color: var(--fw-muted);
  line-height: 1.5;
}

.fw-worker-qr-cta {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  color: #0b1f3f;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  text-align: left;
}

.fw-worker-qr-cta strong {
  font-size: 18px;
}

.fw-worker-qr-cta span,
.fw-worker-muted {
  color: var(--fw-muted);
  line-height: 1.5;
}

.fw-worker-install-hint {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #1d4ed8 !important;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 850;
}

.fw-worker-primary-cta,
.fw-worker-danger-cta {
  min-height: 58px;
  display: inline-grid;
  width: 100%;
  place-items: center;
  padding: 15px 18px;
  border-radius: 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  text-align: center;
}

.fw-worker-primary-cta {
  border: 1px solid #1d4ed8;
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .28);
}

.fw-worker-danger-cta {
  border: 1px solid #b91c1c;
  color: #fff;
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  box-shadow: 0 16px 34px rgba(185, 28, 28, .26);
}

.fw-worker-scanner {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background: #eff6ff;
  text-align: left;
}

.fw-worker-scanner-fallback {
  border-color: #fed7aa;
  background: #fff7ed;
}

.fw-worker-scanner-detected {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fw-worker-scanner[hidden] {
  display: none;
}

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

.fw-worker-scanner video {
  width: 100%;
  min-height: 260px;
  border-radius: 16px;
  background: #071a35;
  object-fit: cover;
}

.fw-worker-scanner p {
  margin: 0;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.fw-worker-scanner-fallback p {
  color: #9a3412;
}

.fw-worker-scanner-detected p {
  color: #15803d;
}

.fw-worker-status-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 20px;
  background: #f8fafc;
}

.fw-worker-status-active {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #dcfce7, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 28px rgba(4, 120, 87, .10);
}

.fw-worker-status-badge,
.fw-worker-status-mini {
  display: inline-grid;
  width: max-content;
  min-height: 26px;
  place-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 950;
}

.fw-worker-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.fw-worker-time-grid div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.fw-worker-time-grid span,
.fw-worker-summary dt {
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 900;
}

.fw-worker-elapsed {
  color: #065f46;
  font-size: 42px;
  line-height: 1;
}

.fw-worker-primary-action,
.fw-worker-secondary-action,
.fw-worker-danger-action,
.fw-worker-secondary-link {
  min-height: 52px;
  display: inline-grid;
  width: 100%;
  place-items: center;
  padding: 13px 16px;
  border-radius: 16px;
  font: inherit;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.fw-worker-primary-action {
  border: 1px solid #1d4ed8;
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.fw-worker-primary-action:disabled {
  border-color: var(--fw-border);
  color: var(--fw-muted);
  background: #e5e7eb;
  box-shadow: none;
}

.fw-worker-secondary-action,
.fw-worker-secondary-link {
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.fw-worker-danger-action {
  border: 1px solid #b91c1c;
  color: #fff;
  background: #b91c1c;
  box-shadow: 0 14px 30px rgba(185, 28, 28, .24);
}

.fw-worker-info-note {
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  color: var(--fw-muted);
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.fw-worker-photo-panel,
.fw-worker-end-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--fw-border);
  border-radius: 20px;
  background: #ffffff;
}

.fw-worker-photo-panel h2,
.fw-worker-end-panel h2 {
  margin: 0;
}

.fw-worker-list,
.fw-worker-job-list,
.fw-worker-photo-list {
  display: grid;
  gap: 10px;
}

.fw-worker-recent-card,
.fw-worker-photo-card,
.fw-worker-job-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fw-border);
  border-radius: 18px;
  background: #f8fafc;
}

.fw-worker-recent-card {
  background: #fff;
}

.fw-worker-job-card {
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.fw-worker-job-card-selected {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, .25);
}

.fw-worker-recent-card strong,
.fw-worker-photo-card strong,
.fw-worker-job-card strong {
  display: block;
  color: var(--fw-text);
  line-height: 1.25;
}

.fw-worker-recent-card span,
.fw-worker-photo-card span,
.fw-worker-job-card span,
.fw-worker-recent-card small,
.fw-worker-photo-card small {
  color: var(--fw-muted);
  line-height: 1.45;
}

.fw-worker-small-button {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  font: inherit;
  font-weight: 900;
}

.fw-worker-bottom-nav {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(216, 226, 239, .94);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}

.fw-worker-bottom-nav button {
  min-height: 58px;
  display: grid;
  gap: 3px;
  place-items: center;
  align-content: center;
  border: 0;
  border-radius: 18px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.fw-worker-bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fw-worker-bottom-nav span {
  display: block;
}

.fw-worker-bottom-nav button:hover,
.fw-worker-bottom-nav button:focus-visible,
.fw-worker-bottom-nav-active {
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 18px rgba(37, 99, 235, .16);
  outline: none;
}

.fw-worker-bottom-nav button:active {
  transform: translateY(1px);
}

.fw-worker-account-card p {
  margin: 0;
  color: var(--fw-muted);
  font-weight: 850;
}

.fw-worker-account-card h1 {
  margin: 3px 0 0;
  line-height: 1.12;
}

/* Final Worker PWA density pass. Keep it scoped to the mobile worker app. */
.fw-worker-app .fw-worker-header {
  min-height: 56px;
  padding: 10px 15px;
}

.fw-worker-app .fw-worker-header strong {
  font-size: 15px;
}

.fw-worker-app .fw-worker-header #fwUserName {
  max-width: 260px;
  font-size: 11px;
}

.fw-worker-app .fw-worker-logout {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.fw-worker-app .fw-worker-page {
  gap: 12px;
  padding: 12px 12px 124px;
}

.fw-worker-app .fw-worker-card {
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}

.fw-worker-app .fw-worker-screen {
  border-radius: 20px;
}

.fw-worker-app .fw-worker-title {
  gap: 3px;
}

.fw-worker-app .fw-worker-title h1 {
  font-size: 24px;
}

.fw-worker-app .fw-worker-kicker {
  font-size: 10px;
}

.fw-worker-app .fw-worker-empty,
.fw-worker-app .fw-worker-active,
.fw-worker-app .fw-worker-summary {
  gap: 12px;
}

.fw-worker-app .fw-worker-empty {
  min-height: 270px;
}

.fw-worker-app .fw-worker-empty-compact {
  min-height: 170px;
}

.fw-worker-app .fw-worker-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.fw-worker-app .fw-worker-empty h2,
.fw-worker-app .fw-worker-status-card h2,
.fw-worker-app .fw-worker-summary h2 {
  font-size: 20px;
}

.fw-worker-app .fw-worker-install-hint,
.fw-worker-app .fw-worker-info-note {
  padding: 8px 10px;
  font-size: 12px;
}

.fw-worker-app .fw-worker-primary-cta,
.fw-worker-app .fw-worker-danger-cta {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 15px;
}

.fw-worker-app .fw-worker-status-card {
  gap: 7px;
  padding: 14px;
  border-radius: 16px;
}

.fw-worker-app .fw-worker-status-badge,
.fw-worker-app .fw-worker-status-mini {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 10px;
}

.fw-worker-app .fw-worker-time-grid {
  gap: 8px;
  margin-top: 6px;
}

.fw-worker-app .fw-worker-time-grid div {
  padding: 10px;
  border-radius: 14px;
}

.fw-worker-app .fw-worker-elapsed {
  font-size: 36px;
}

.fw-worker-app .fw-worker-primary-action,
.fw-worker-app .fw-worker-secondary-action,
.fw-worker-app .fw-worker-danger-action,
.fw-worker-app .fw-worker-secondary-link {
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 14px;
}

.fw-worker-app .fw-worker-photo-panel,
.fw-worker-app .fw-worker-end-panel {
  gap: 10px;
  padding: 13px;
  border-radius: 16px;
}

.fw-worker-app .fw-worker-list,
.fw-worker-app .fw-worker-job-list,
.fw-worker-app .fw-worker-photo-list {
  gap: 8px;
}

.fw-worker-app .fw-worker-recent-card,
.fw-worker-app .fw-worker-photo-card,
.fw-worker-app .fw-worker-job-card {
  gap: 8px;
  padding: 11px;
  border-radius: 14px;
}

.fw-worker-app .fw-worker-recent-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.fw-worker-app .fw-worker-small-button {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 12px;
}

.fw-worker-app .fw-worker-bottom-nav {
  bottom: calc(9px + env(safe-area-inset-bottom));
  gap: 5px;
  padding: 7px;
  border-radius: 22px;
}

.fw-worker-app .fw-worker-bottom-nav button {
  min-height: 50px;
  gap: 2px;
  border-radius: 16px;
}

.fw-worker-app .fw-worker-bottom-nav svg {
  width: 19px;
  height: 19px;
}

.fw-worker-account-help {
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.fw-worker-file-picker {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 950;
  text-align: center;
}

.fw-worker-photo-helper {
  margin: 0;
  color: var(--fw-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.fw-worker-photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fw-worker-photo-actions .fw-worker-file-picker {
  width: 100%;
  cursor: pointer;
}

.fw-worker-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.fw-worker-file-name {
  margin-top: -4px;
  color: var(--fw-muted);
  font-size: 12px;
  font-weight: 800;
}

/* Worker mockup alignment pass. */
.fw-worker-app .fw-worker-body,
.fw-worker-app {
  color: #0f172a;
}

.fw-worker-app .fw-worker-header {
  min-height: 52px;
  padding: 9px 14px;
  box-shadow: 0 8px 24px rgba(7, 26, 53, .18);
}

.fw-worker-app .fw-worker-header > div {
  gap: 2px;
}

.fw-worker-app .fw-worker-header strong {
  font-size: 14px;
  font-weight: 950;
}

.fw-worker-app .fw-worker-logout {
  opacity: .78;
}

.fw-worker-app .fw-worker-page {
  width: min(100%, 460px);
  padding: 10px 11px 118px;
}

.fw-worker-app .fw-worker-card {
  border-color: rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
}

.fw-worker-app .fw-worker-title h1 {
  font-size: 22px;
  letter-spacing: 0;
}

.fw-worker-app .fw-worker-kicker {
  color: #2563eb;
  letter-spacing: .07em;
}

.fw-worker-app .fw-alert {
  font-size: 12px;
}

.fw-worker-app .fw-worker-empty {
  min-height: 230px;
  gap: 10px;
}

.fw-worker-app #activeStartHint {
  min-height: 185px;
}

.fw-worker-app .fw-worker-empty p {
  max-width: 30ch;
  justify-self: center;
  font-size: 14px;
}

.fw-worker-app .fw-worker-start-recent {
  display: grid;
  gap: 8px;
  padding-top: 2px;
  text-align: left;
}

.fw-worker-app .fw-worker-start-recent h2 {
  margin: 0;
  color: var(--fw-primary);
  font-size: 15px;
}

.fw-worker-app .fw-worker-start-recent .fw-worker-empty-compact {
  min-height: 90px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbff;
}

.fw-worker-app .fw-worker-start-recent .fw-worker-empty-compact h2 {
  font-size: 14px;
}

.fw-worker-app .fw-worker-status-card {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #dcfce7 0%, #f8fffb 100%);
}

.fw-worker-app .fw-worker-status-card h2 {
  font-size: 21px;
}

.fw-worker-app .fw-worker-status-card p,
.fw-worker-app .fw-worker-status-card strong {
  line-height: 1.35;
}

.fw-worker-app .fw-worker-time-grid div {
  background: rgba(255, 255, 255, .86);
}

.fw-worker-app .fw-worker-elapsed {
  font-size: 34px;
  letter-spacing: 0;
}

.fw-worker-app .fw-worker-photo-panel,
.fw-worker-app .fw-worker-end-panel {
  border-color: #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.fw-worker-app .fw-textarea {
  min-height: 84px;
  border-radius: 12px;
}

.fw-worker-app .fw-worker-file-picker {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.fw-worker-app .fw-worker-recent-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 7px 18px rgba(15, 23, 42, .055);
}

.fw-worker-app .fw-worker-recent-card strong {
  font-size: 14px;
}

.fw-worker-app .fw-worker-recent-card span,
.fw-worker-app .fw-worker-recent-card small {
  font-size: 12px;
}

.fw-worker-app .fw-worker-account-card {
  min-height: 260px;
  align-content: center;
}

.fw-worker-app .fw-worker-account-card h1 {
  font-size: 24px;
}

.fw-worker-app .fw-worker-account-card p {
  line-height: 1.45;
}

.fw-worker-app .fw-worker-bottom-nav {
  right: max(10px, calc((100vw - 460px) / 2 + 10px));
  left: max(10px, calc((100vw - 460px) / 2 + 10px));
  bottom: calc(8px + env(safe-area-inset-bottom));
  border-color: rgba(226, 232, 240, .96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .17);
}

.fw-worker-app .fw-worker-bottom-nav button {
  min-height: 48px;
  font-size: 10px;
}

.fw-worker-app .fw-worker-bottom-nav svg {
  width: 18px;
  height: 18px;
}

/* 01N-L hard Worker mockup alignment. */
.fw-worker-app {
  background:
    radial-gradient(circle at 50% -120px, rgba(37, 99, 235, .10), transparent 260px),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.fw-worker-app .fw-worker-top,
.fw-worker-app .fw-worker-shell {
  width: min(100%, 420px);
  margin-inline: auto;
}

.fw-worker-app .fw-worker-top {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 0 0 16px 16px;
  background: #071a3a;
  box-shadow: 0 8px 22px rgba(7, 26, 58, .22);
}

.fw-worker-app .fw-worker-top strong {
  font-size: 13px;
}

.fw-worker-app .fw-worker-top #fwUserName {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
}

.fw-worker-app .fw-worker-top .fw-worker-logout {
  display: none;
}

.fw-worker-app .fw-worker-shell {
  gap: 10px;
  padding: 12px 12px 104px;
}

.fw-worker-app .fw-worker-view {
  min-height: calc(100dvh - 172px);
}

.fw-worker-app .fw-worker-card {
  padding: 15px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.fw-worker-app .fw-worker-title h1 {
  color: #071a3a;
  font-size: 21px;
  line-height: 1.14;
}

.fw-worker-app .fw-worker-kicker {
  color: #2563eb;
  font-size: 10px;
}

.fw-worker-app .fw-worker-home-screen .fw-worker-empty {
  min-height: auto;
  padding-top: 8px;
  text-align: center;
}

.fw-worker-app .fw-worker-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.fw-worker-app .fw-worker-empty-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fw-worker-app .fw-worker-qr-mark {
  color: #1d4ed8;
  background: #dbeafe;
}

.fw-worker-app .fw-worker-ok-mark {
  color: #059669;
  background: #dcfce7;
}

.fw-worker-app .fw-worker-empty h2 {
  max-width: 15em;
  justify-self: center;
  color: #071a3a;
  font-size: 20px;
  line-height: 1.18;
}

.fw-worker-app .fw-worker-empty p {
  max-width: 27ch;
  color: #475569;
  font-size: 13px;
}

.fw-worker-app .fw-worker-primary-cta,
.fw-worker-app .fw-worker-danger-cta {
  min-height: 50px;
  border-radius: 10px;
  font-size: 14px;
}

.fw-worker-app .fw-worker-primary-cta {
  background: linear-gradient(180deg, #1167f2, #0754d8);
  box-shadow: 0 10px 22px rgba(29, 78, 216, .24);
}

.fw-worker-app .fw-worker-danger-cta,
.fw-worker-app .fw-worker-danger-action {
  background: linear-gradient(180deg, #f3343f, #dc2626);
  box-shadow: 0 10px 22px rgba(220, 38, 38, .22);
}

.fw-worker-app .fw-worker-status-active {
  justify-items: center;
  padding: 14px;
  text-align: center;
  background: linear-gradient(180deg, #dcfce7, #eefdf4);
}

.fw-worker-app .fw-worker-status-badge {
  gap: 5px;
  color: #059669;
  background: transparent;
  font-size: 17px;
}

.fw-worker-app .fw-worker-status-card h2 {
  width: 100%;
  margin-top: 4px;
  text-align: left;
  font-size: 15px;
}

.fw-worker-app .fw-worker-status-card p,
.fw-worker-app .fw-worker-status-card strong {
  width: 100%;
  text-align: left;
  font-size: 12px;
}

.fw-worker-app .fw-worker-time-grid {
  width: 100%;
  margin-top: 4px;
}

.fw-worker-app .fw-worker-time-grid div {
  padding: 6px 0;
  background: transparent;
}

.fw-worker-app .fw-worker-elapsed {
  color: #020617;
  font-size: 34px;
  text-align: center;
}

.fw-worker-action-stack {
  display: grid;
  gap: 10px;
}

.fw-worker-session-note {
  min-height: 16px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.fw-worker-session-note:empty {
  display: none;
}

.fw-worker-app .fw-worker-secondary-action {
  min-height: 48px;
  border-color: #94a3b8;
  border-radius: 10px;
  color: #071a3a;
  background: #fff;
}

.fw-worker-app .fw-worker-photo-panel,
.fw-worker-app .fw-worker-end-panel {
  border-radius: 14px;
  background: #fff;
}

.fw-worker-app [data-session-mode-panel][hidden] {
  display: none;
}

.fw-worker-end-summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
}

.fw-worker-end-summary div {
  display: grid;
  gap: 2px;
}

.fw-worker-end-summary dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.fw-worker-end-summary dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.fw-worker-compact-photo-list {
  max-height: 180px;
  overflow: auto;
}

.fw-worker-app .fw-worker-start-recent {
  width: 100%;
  padding-top: 4px;
}

.fw-worker-app .fw-worker-start-recent h2 {
  color: #071a3a;
  font-size: 14px;
}

.fw-worker-app .fw-worker-recent-card {
  border-color: #e5edf7;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.fw-worker-app .fw-worker-bottom-nav {
  right: max(12px, calc((100vw - 420px) / 2 + 12px));
  left: max(12px, calc((100vw - 420px) / 2 + 12px));
  bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 7px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
}

.fw-worker-app .fw-worker-bottom-nav button {
  min-height: 46px;
  border-radius: 12px;
}

.fw-worker-app .fw-worker-bottom-nav-active {
  background: #eff6ff;
  box-shadow: none;
}

.fw-worker-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fw-worker-summary dl div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.fw-worker-summary dd {
  margin: 0;
  font-weight: 850;
}

/* 01N-O Worker component rebuild. Keep this scoped to Worker/PWA surfaces. */
.worker-login-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
  background: #f3f7fb;
}

.worker-login-shell {
  width: min(100%, 390px);
  gap: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
  overflow: hidden;
}

.worker-login-brand {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  color: #fff;
  background: #071a3a;
  text-align: left;
}

.worker-login-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: #0b5ee8;
  font-size: 24px;
  font-weight: 900;
}

.worker-login-brand h1 {
  font-size: 23px;
  line-height: 1.08;
}

.worker-login-brand p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
}

.worker-login-card {
  gap: 16px;
  padding: 26px 22px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.worker-login-title {
  text-align: center;
}

.worker-login-title h2 {
  font-size: 20px;
}

.worker-login-card .fw-field {
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.worker-login-card .fw-input {
  min-height: 42px;
  border-radius: 10px;
  font-size: 13px;
}

.worker-login-card .fw-button {
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1167f2, #0754d8);
  font-size: 14px;
}

.worker-login-card .fw-alert {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 12px;
}

.worker-login-card .fw-alert:empty {
  display: none;
}

.worker-app {
  --worker-blue: #075ee8;
  --worker-navy: #071a3a;
  --worker-bg: #f3f7fb;
  --worker-border: #e5edf7;
  --worker-text: #0f172a;
  --worker-muted: #64748b;
  --worker-green: #31bf6a;
  --worker-red: #ef2f3a;
  min-height: 100dvh;
  color: var(--worker-text);
  background: var(--worker-bg);
}

.worker-app .worker-topbar {
  width: min(100%, 390px);
  min-height: 52px;
  margin-inline: auto;
  padding: 0 16px;
  border-radius: 0;
  background: var(--worker-navy);
  box-shadow: 0 8px 18px rgba(7, 26, 58, .18);
}

.worker-app .worker-topbar strong {
  font-size: 13px;
  font-weight: 900;
}

.worker-app .worker-topbar #fwUserName {
  max-width: 260px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.2;
}

.worker-app .worker-topbar .fw-worker-logout {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.worker-app .worker-app-shell {
  width: min(100%, 390px);
  gap: 10px;
  margin-inline: auto;
  padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
}

.worker-app .worker-screen {
  min-height: calc(100dvh - 150px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--worker-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.worker-app .worker-screen-head {
  gap: 4px;
}

.worker-app .worker-eyebrow {
  color: var(--worker-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.worker-app .worker-screen h1,
.worker-app .worker-screen-head h1 {
  color: var(--worker-navy);
  font-size: 21px;
  line-height: 1.15;
}

.worker-helper,
.worker-app .worker-screen p,
.worker-app .fw-worker-account-help {
  color: var(--worker-muted);
  font-size: 13px;
  line-height: 1.4;
}

.worker-app .worker-status-message {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.worker-app .worker-status-message:empty {
  display: none;
}

.worker-app .worker-start-idle {
  min-height: auto;
  gap: 14px;
  padding: 8px 0 0;
  text-align: center;
}

.worker-app .worker-start-idle .fw-worker-empty-icon,
.worker-app .worker-session-empty .fw-worker-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.worker-app .worker-start-idle h2,
.worker-app .worker-session-empty h2,
.worker-app .worker-active-hint h2 {
  max-width: 16em;
  justify-self: center;
  color: var(--worker-navy);
  font-size: 20px;
  line-height: 1.18;
}

.worker-app .worker-primary-action,
.worker-app .fw-worker-primary-cta,
.worker-app .fw-worker-primary-action,
.worker-app .worker-secondary-action,
.worker-app .fw-worker-secondary-action,
.worker-app .worker-danger-action,
.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action,
.worker-app .fw-worker-secondary-link {
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
}

.worker-app .worker-primary-action,
.worker-app .fw-worker-primary-cta,
.worker-app .fw-worker-primary-action {
  border-color: #0754d8;
  color: #fff;
  background: linear-gradient(180deg, #1167f2, #0754d8);
}

.worker-app .worker-secondary-action,
.worker-app .fw-worker-secondary-action,
.worker-app .fw-worker-secondary-link {
  border-color: #94a3b8;
  color: var(--worker-navy);
  background: #fff;
}

.worker-app .worker-danger-action,
.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action {
  border-color: #dc2626;
  color: #fff;
  background: linear-gradient(180deg, #f3343f, #dc2626);
}

.worker-app .worker-recent-preview {
  width: 100%;
  padding-top: 4px;
}

.worker-app .worker-recent-preview h2,
.worker-app .fw-worker-section-title {
  margin: 0;
  color: var(--worker-navy);
  font-size: 14px;
  line-height: 1.2;
}

.worker-app .worker-active-hint,
.worker-app .worker-session-empty {
  min-height: 176px;
  align-content: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--worker-border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.worker-app .worker-session-overview {
  gap: 12px;
}

.worker-app .worker-state-card {
  gap: 13px;
  padding: 15px;
  border: 1px solid #bdebd0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), transparent),
    linear-gradient(180deg, #dcfce7, #f1fff6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 22px rgba(4, 120, 87, .08);
}

.worker-active-confirm {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #087f45;
  font-size: 18px;
  font-weight: 900;
}

.worker-active-confirm span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--worker-green);
  font-size: 22px;
}

.worker-session-context {
  display: grid;
  gap: 2px;
}

.worker-app .worker-session-context h2 {
  color: var(--worker-text);
  font-size: 15px;
  line-height: 1.2;
}

.worker-app .worker-session-context p,
.worker-app .worker-session-context strong {
  color: var(--worker-text);
  font-size: 12px;
  line-height: 1.35;
}

.worker-app .fw-worker-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.worker-app .fw-worker-time-grid div {
  padding: 4px 0;
  background: transparent;
}

.worker-app .fw-worker-time-grid span,
.worker-app .fw-worker-summary dt {
  color: var(--worker-muted);
  font-size: 10px;
  font-weight: 700;
}

.worker-app .fw-worker-elapsed {
  color: #020617;
  font-size: 36px;
  line-height: 1;
  text-align: center;
}

.worker-app .worker-action-stack {
  gap: 10px;
}

.worker-active-photos-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2ebf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
}

.worker-active-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.worker-active-photos-head h2 {
  margin: 0;
  color: var(--worker-navy);
  font-size: 13px;
  line-height: 1.2;
}

.worker-active-photos-head .fw-worker-session-note {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #0754d8;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 900;
}

.worker-app .worker-photo-screen,
.worker-app .worker-end-screen {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.worker-subscreen-head {
  min-height: 36px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 4px;
}

.worker-subscreen-head h1,
.worker-subscreen-head h2 {
  grid-column: 2;
  margin: 0;
  color: var(--worker-navy);
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

.worker-back-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--worker-navy);
  background: transparent;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.worker-app .fw-field {
  gap: 7px;
  color: var(--worker-text);
  font-size: 12px;
  font-weight: 850;
}

.worker-app .fw-input {
  min-height: 42px;
  border-color: var(--worker-border);
  border-radius: 10px;
  font-size: 13px;
}

.worker-app .fw-textarea {
  min-height: 88px;
  resize: vertical;
}

.worker-app .fw-worker-file-picker {
  min-height: 48px;
  border-color: #94a3b8;
  border-radius: 10px;
  color: var(--worker-navy);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.worker-app .fw-worker-photo-helper {
  color: var(--worker-muted);
  font-size: 12px;
  font-weight: 700;
}

.worker-app .fw-worker-photo-actions {
  gap: 9px;
}

.worker-app .fw-worker-file-name {
  color: var(--worker-muted);
  font-size: 12px;
  font-weight: 700;
}

.worker-app .fw-worker-info-note {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  color: #0754d8;
  background: #eaf2ff;
  font-size: 11px;
  line-height: 1.45;
}

.worker-app .worker-end-screen h3,
.worker-app .worker-start-work-panel h2 {
  margin: 0;
  color: var(--worker-text);
  font-size: 13px;
}

.worker-app .fw-worker-end-summary,
.worker-app .fw-worker-summary dl {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.worker-app .fw-worker-end-summary div,
.worker-app .fw-worker-summary dl div {
  min-height: 36px;
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
}

.worker-app .fw-worker-end-summary dt,
.worker-app .fw-worker-summary dt {
  color: var(--worker-muted);
  font-size: 11px;
  font-weight: 700;
}

.worker-app .fw-worker-end-summary dd,
.worker-app .fw-worker-summary dd {
  color: var(--worker-text);
  font-size: 13px;
  font-weight: 850;
}

.worker-complete-screen {
  justify-items: stretch;
  text-align: left;
}

.worker-complete-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  color: #fff;
  background: var(--worker-green);
  font-size: 24px;
  font-weight: 900;
}

.worker-app .worker-complete-screen h2 {
  color: #087f45;
  font-size: 18px;
  text-align: center;
}

.worker-app .worker-history-card,
.worker-app .fw-worker-job-card,
.worker-app .fw-worker-photo-card {
  min-height: 58px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--worker-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .045);
}

.worker-app .worker-photo-grid {
  display: flex;
  gap: 10px;
  margin-inline: -2px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.worker-app .worker-photo-grid::-webkit-scrollbar {
  display: none;
}

.worker-app .worker-photo-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  padding: 8px;
}

.worker-app .worker-photo-card button {
  grid-column: 2;
  justify-self: start;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.worker-app .worker-photo-card-compact {
  width: 124px;
  min-width: 124px;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  padding: 7px;
  border-radius: 16px;
  scroll-snap-align: start;
}

.worker-app .worker-photo-card-compact button {
  grid-column: auto;
  justify-self: stretch;
}

.worker-photo-thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(7, 94, 232, .06), transparent 48%),
    #f8fbff;
  overflow: hidden;
  font-size: 10px;
  font-weight: 850;
}

.worker-photo-card-compact .worker-photo-thumb {
  width: 100%;
  height: 92px;
  grid-row: auto;
  border-radius: 14px;
}

.worker-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.worker-photo-thumb-loaded {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.worker-photo-thumb-icon {
  color: #0754d8;
  font-size: 17px;
  line-height: 1;
}

.worker-photo-thumb-label {
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.worker-photo-thumb-fallback {
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(7, 94, 232, .08), transparent 48%),
    #eef4fb;
}

.worker-photo-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.worker-app .worker-photo-meta strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--worker-text);
  font-size: 11px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.worker-app .worker-photo-meta small {
  color: var(--worker-muted);
  font-size: 10px;
  line-height: 1.25;
}

.worker-app .worker-photo-preview-button {
  min-height: 28px;
  border-color: #dbe5f0;
  color: #0754d8;
  background: #f8fbff;
  box-shadow: none;
}

.worker-photo-empty {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px dashed #cbd8e7;
  border-radius: 12px;
  color: var(--worker-muted);
  background: #fbfdff;
}

.worker-photo-empty strong {
  color: var(--worker-navy);
  font-size: 12px;
}

.worker-photo-empty span {
  font-size: 11px;
  line-height: 1.35;
}

.worker-app .worker-history-card strong,
.worker-app .fw-worker-job-card strong,
.worker-app .fw-worker-photo-card strong {
  font-size: 13px;
  line-height: 1.2;
}

.worker-app .worker-history-card span,
.worker-app .worker-history-card small,
.worker-app .fw-worker-job-card span,
.worker-app .fw-worker-photo-card span,
.worker-app .fw-worker-photo-card small {
  font-size: 11px;
  line-height: 1.35;
}

.worker-app .fw-worker-status-mini {
  min-height: 18px;
  padding: 2px 7px;
  font-size: 9px;
}

.worker-app .worker-account-card {
  min-height: calc(100dvh - 150px);
  align-content: start;
}

.worker-app .worker-account-card h1 {
  margin: 4px 0 16px;
  color: var(--worker-navy);
  font-size: 21px;
}

.worker-app .worker-account-card p {
  font-size: 13px;
  line-height: 1.4;
}

.worker-app #workerAccountName {
  color: var(--worker-text);
  font-size: 17px;
  font-weight: 900;
}

.worker-app #workerAccountRole {
  color: var(--worker-muted);
  font-weight: 750;
}

.worker-app .worker-admin-switch {
  text-decoration: none;
}

.worker-app .worker-tabbar {
  right: max(10px, calc((100vw - 390px) / 2 + 10px));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(10px, calc((100vw - 390px) / 2 + 10px));
  height: 62px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--worker-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.worker-app .worker-tab {
  min-height: 48px;
  gap: 2px;
  border-radius: 12px;
  color: #64748b;
  font-size: 10px;
}

.worker-app .worker-tab svg {
  width: 19px;
  height: 19px;
}

.worker-app .worker-tab-active {
  color: var(--worker-blue);
  background: #eff6ff;
  box-shadow: none;
}

.worker-scan-shell {
  padding-bottom: 20px !important;
}

.worker-scan-status {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
}

.worker-scan-status[hidden] {
  display: none;
}

.worker-scan-status-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #075ee8;
  background: #dbeafe;
  font-size: 22px;
  font-weight: 950;
}

.worker-scan-status strong {
  display: block;
  color: var(--worker-text);
  font-size: 15px;
  line-height: 1.25;
}

.worker-scan-status p {
  margin: 3px 0 0;
  color: var(--worker-muted);
  font-size: 12px;
  line-height: 1.35;
}

.worker-scan-status-detected {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.worker-scan-status-detected .worker-scan-status-icon {
  color: #fff;
  background: #22c55e;
}

.worker-scan-status-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.worker-scan-status-error .worker-scan-status-icon {
  color: #fff;
  background: #ef4444;
}

.worker-app .worker-scan-screen {
  min-height: calc(100dvh - 88px);
}

.worker-app .worker-scan-object-card {
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.worker-app .worker-scan-object-card .fw-worker-status-badge {
  margin-bottom: 8px;
  color: #059669;
  background: transparent;
  font-size: 13px;
  padding: 0;
}

.worker-app .worker-scan-object-card strong,
.worker-app .worker-scan-object-card h2 {
  color: var(--worker-text);
  font-size: 14px;
  line-height: 1.25;
}

.worker-app .worker-scan-object-card p {
  font-size: 12px;
}

.worker-job-card {
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  cursor: pointer;
}

.worker-job-chevron {
  color: var(--worker-navy);
  font-size: 22px;
  line-height: 1;
}

.worker-app .fw-worker-job-card-selected {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, .22);
}

.worker-start-work-panel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.worker-start-work-panel[hidden] {
  display: none;
}

.worker-selected-job {
  padding: 10px;
  border-color: #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #0754d8;
  font-size: 12px;
}

@media (max-width: 640px) {
  .fw-login-body {
    padding: 18px;
  }

  .fw-brand h1 {
    font-size: 32px;
  }

  .fw-card {
    padding: 22px;
  }

  .admin-users-form-grid {
    grid-template-columns: 1fr;
  }

  .fw-topbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fw-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .fw-admin-chip {
    width: min(100%, 300px);
  }

  .fw-topbar .fw-button-secondary {
    width: 116px;
  }

  .fw-list-row {
    align-items: stretch;
    flex-direction: column;
  }

  .fw-jobs-filters {
    grid-template-columns: 1fr;
  }

  .fw-drawer {
    width: 100%;
  }

  .fw-drawer-head {
    display: grid;
    padding: 18px;
  }

  .fw-drawer-form {
    padding: 18px;
  }

  .fw-drawer-actions {
    bottom: -18px;
    margin: 8px -18px -18px;
    padding: 14px 18px;
  }

  .fw-session-head,
  .fw-session-photos-head {
    display: grid;
  }

  .fw-page-intro {
    display: grid;
  }

  .fw-session-filterbar .fw-field {
    min-width: 0;
  }

  .fw-session-details {
    grid-template-columns: 1fr;
  }

  .fw-session-head,
  .fw-session-context,
  .fw-session-flow,
  .fw-session-location,
  .fw-session-notes,
  .fw-session-photos {
    padding-inline: 16px;
  }

  .fw-session-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fw-report-filter-grid,
  .fw-report-kpis {
    grid-template-columns: 1fr;
  }

  .fw-report-kpi {
    min-height: 128px;
  }

  .fw-report-section-head {
    display: grid;
  }

  .fw-session-flow div {
    padding-block: 10px;
  }

  .fw-session-photo-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fw-session-photo-card .fw-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fw-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fw-actions .fw-button {
    width: 100%;
  }

  .fw-section-heading {
    display: grid;
  }

  .fw-qr-preview {
    width: 100%;
  }

  .fw-qr-sheet-card {
    min-height: auto;
    padding: 24px;
  }

  .fw-qr-sheet-card h1 {
    font-size: 28px;
  }

  .fw-qr-sheet-instruction {
    font-size: 17px;
  }

  .fw-worker-page {
    padding-inline: 12px;
  }

  .fw-worker-card {
    padding: 18px;
  }
}

@media (max-width: 1080px) {
  .fw-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .fw-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-report-filter-grid,
  .fw-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-dashboard-hero {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .fw-dashboard-page {
    padding-block: 22px 32px;
  }

  .fw-dashboard-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .fw-dashboard-hero h1 {
    font-size: 29px;
  }

  .fw-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .fw-report-filter-grid,
  .fw-report-kpis {
    grid-template-columns: 1fr;
  }

  .fw-dashboard-card {
    min-height: 168px;
  }
}

@media print {
  @page {
    margin: 14mm;
    size: A4;
  }

  body.fw-qr-print-body {
    background: #fff;
  }

  .fw-qr-sheet {
    width: 100%;
    padding: 0;
  }

  .fw-qr-sheet-actions,
  #qrError {
    display: none !important;
  }

  .fw-qr-sheet-card {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .fw-qr-sheet-image {
    width: 120mm;
    padding: 0;
    border: 0;
  }
}

/* 01S-A Worker reference mockup hard alignment: scale and density correction. */
.worker-login-page {
  padding: 18px;
  background:
    radial-gradient(circle at 50% -180px, rgba(7, 94, 232, .10), transparent 340px),
    #edf4fb;
}

.worker-login-shell {
  width: min(100%, 370px);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.worker-login-brand {
  min-height: 104px;
  padding: 18px 20px;
  gap: 12px;
}

.worker-login-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 22px;
}

.worker-login-brand h1 {
  font-size: 21px;
}

.worker-login-brand p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
}

.worker-login-card {
  gap: 13px;
  padding: 22px 20px 20px;
}

.worker-login-title h2 {
  font-size: 19px;
}

.worker-login-card .fw-input {
  min-height: 42px;
}

.worker-login-card .fw-button {
  min-height: 44px;
  font-size: 13px;
}

.worker-app .worker-topbar {
  width: min(100%, 390px);
  min-height: 52px;
  padding: 0 14px;
  box-shadow: 0 6px 16px rgba(7, 26, 58, .16);
}

.worker-app .worker-topbar strong {
  font-size: 14px;
  font-weight: 750;
}

.worker-app .worker-topbar #fwUserName {
  font-size: 11px;
  font-weight: 500;
}

.worker-app .worker-app-shell {
  gap: 10px;
  padding: 10px 10px calc(78px + env(safe-area-inset-bottom));
}

.worker-app .worker-screen {
  min-height: calc(100dvh - 142px);
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.worker-app .worker-screen-head {
  gap: 2px;
}

.worker-app .worker-screen h1,
.worker-app .worker-screen-head h1 {
  font-size: 20px;
  line-height: 1.15;
}

.worker-app .worker-eyebrow {
  font-size: 10px;
}

.worker-app .worker-state-card {
  gap: 9px;
  padding: 12px;
  border-radius: 13px;
}

.worker-active-confirm {
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.worker-active-confirm span {
  width: 36px;
  height: 36px;
  font-size: 19px;
}

.worker-session-context {
  gap: 1px;
}

.worker-app .worker-session-context h2 {
  font-size: 14px;
}

.worker-app .worker-session-context p,
.worker-app .worker-session-context strong {
  font-size: 12px;
}

.worker-app .fw-worker-time-grid {
  gap: 6px;
  margin-top: 0;
}

.worker-app .fw-worker-time-grid div {
  padding: 2px 0;
}

.worker-app .fw-worker-elapsed {
  font-size: 32px;
}

.worker-app .worker-primary-action,
.worker-app .fw-worker-primary-cta,
.worker-app .fw-worker-primary-action,
.worker-app .worker-secondary-action,
.worker-app .fw-worker-secondary-action,
.worker-app .worker-danger-action,
.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action,
.worker-app .fw-worker-secondary-link {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.worker-app .worker-danger-action,
.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action {
  min-height: 46px;
}

.worker-active-photos-panel {
  gap: 7px;
  padding: 10px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
}

.worker-active-photos-head h2 {
  font-size: 12px;
}

.worker-active-photos-head .fw-worker-session-note {
  min-height: 20px;
  min-width: auto;
  padding: 2px 7px;
  font-size: 10px;
}

.worker-app .worker-photo-grid {
  gap: 8px;
  padding-bottom: 4px;
}

.worker-app .worker-photo-card-compact {
  width: 96px;
  min-width: 96px;
  gap: 5px;
  padding: 6px;
  border-radius: 13px;
}

.worker-photo-card-compact .worker-photo-thumb {
  height: 68px;
  border-radius: 11px;
}

.worker-app .worker-photo-meta strong {
  font-size: 10.5px;
  line-height: 1.2;
}

.worker-app .worker-photo-meta small {
  font-size: 10px;
}

.worker-app .worker-photo-preview-button {
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  color: #0754d8;
  background: transparent;
  font-size: 10px;
}

.worker-photo-empty {
  padding: 8px;
}

.worker-app .worker-history-screen {
  gap: 10px;
}

.worker-app .worker-history-card {
  min-height: 76px;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
}

.worker-app .worker-history-card strong {
  font-size: 13px;
}

.worker-app .worker-history-card span,
.worker-app .worker-history-card small {
  font-size: 10.5px;
}

.worker-app .worker-history-card .fw-worker-small-button,
.worker-app .fw-worker-small-button {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}

.worker-app .worker-history-card .fw-worker-photo-list {
  gap: 6px;
  margin-top: 6px;
}

.worker-app .worker-history-card .worker-photo-card {
  min-height: 54px;
  padding: 7px;
}

.worker-app .worker-history-card .worker-photo-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.worker-app .worker-tabbar {
  right: max(10px, calc((100vw - 390px) / 2 + 10px));
  left: max(10px, calc((100vw - 390px) / 2 + 10px));
  bottom: calc(8px + env(safe-area-inset-bottom));
  height: 58px;
  gap: 3px;
  padding: 5px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
}

.worker-app .worker-tab {
  min-height: 46px;
  gap: 1px;
  border-radius: 11px;
  font-size: 10px;
}

.worker-app .worker-tab svg {
  width: 18px;
  height: 18px;
}

.worker-app .worker-tab-active {
  background: #edf5ff;
}

@media (max-width: 430px) {
  .worker-login-page {
    padding: 0;
  }

  .worker-login-shell {
    min-height: 100dvh;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 01T live Worker prototype wiring. Source of truth: frontend/prototypes/worker-mobile.* */
.worker-login-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% -180px, rgba(7, 94, 232, .10), transparent 340px),
    #eaf1f8;
}

.worker-login-shell {
  width: min(100%, 390px);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 226, 240, .95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, .13);
}

.worker-login-brand {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent),
    #071a3a;
  text-align: left;
}

.worker-login-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0b5ee8;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 18px rgba(0, 0, 0, .16);
}

.worker-login-brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.worker-login-brand p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.35;
}

.worker-login-card {
  gap: 14px;
  padding: 24px 22px 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.worker-login-title h2 {
  margin: 0;
  color: #071a3a;
  font-size: 20px;
  text-align: center;
}

.worker-login-card .fw-input {
  min-height: 42px;
  border-color: #d7e3f0;
  border-radius: 10px;
  background: #fbfdff;
  font-size: 13px;
}

.worker-login-card .fw-button {
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1167f2, #0754d8);
  font-size: 14px;
}

.worker-app {
  --worker-shell-max: 390px;
  --worker-tabbar-height: 62px;
  --worker-bottom-pad: calc(var(--worker-tabbar-height) + env(safe-area-inset-bottom) + 24px);
  min-height: 100dvh;
  color: #0f172a;
  background: #f3f7fb;
}

.worker-app.phone-app {
  width: min(100%, var(--worker-shell-max));
  margin-inline: auto;
  background: #f3f7fb;
}

.worker-app .app-topbar,
.worker-app .worker-topbar {
  width: min(100%, var(--worker-shell-max));
  min-height: 52px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  padding: 0 16px;
  border-radius: 0;
  color: #fff;
  background: #071a3a;
  box-shadow: none;
}

.worker-app .app-topbar strong,
.worker-app .worker-topbar strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

.worker-app .app-topbar span,
.worker-app .worker-topbar #fwUserName {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.worker-app .worker-topbar .fw-worker-logout {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.worker-app .worker-app-shell {
  width: min(100%, var(--worker-shell-max));
  display: grid;
  gap: 0;
  margin-inline: auto;
  padding: 0;
}

.worker-app [hidden],
.worker-app [data-worker-view][hidden],
.worker-app [data-session-mode-panel][hidden],
.worker-app .worker-view[hidden],
.worker-app .worker-session-mode[hidden],
.worker-app .app-screen[hidden],
.worker-app .worker-screen[hidden] {
  display: none !important;
}

.worker-app .app-screen,
.worker-app .worker-screen {
  min-height: calc(100dvh - 52px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 16px var(--worker-bottom-pad);
  border: 0;
  border-radius: 0;
  background: #f3f7fb;
  box-shadow: none;
}

.worker-app .worker-scan-screen {
  min-height: calc(100dvh - 52px);
  padding-bottom: 20px;
}

.worker-app .screen-head,
.worker-app .worker-screen-head {
  display: grid;
  gap: 4px;
}

.worker-app .screen-head span,
.worker-app .worker-eyebrow {
  color: #075ee8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.worker-app .screen-head h1,
.worker-app .worker-screen h1,
.worker-app .worker-screen-head h1 {
  margin: 0;
  color: #071a3a;
  font-size: 21px;
  line-height: 1.15;
}

.worker-app .subscreen-head,
.worker-app .worker-subscreen-head {
  min-height: 36px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
}

.worker-app .subscreen-head h1,
.worker-app .subscreen-head h2,
.worker-app .worker-subscreen-head h1,
.worker-app .worker-subscreen-head h2 {
  grid-column: 2;
  margin: 0;
  color: #071a3a;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

.worker-app .worker-back-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #071a3a;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
}

.worker-app .empty-state,
.worker-app .active-card,
.worker-app .recognized-card,
.worker-app .start-panel,
.worker-app .history-card,
.worker-app .worker-active-hint,
.worker-app .worker-session-empty,
.worker-app .worker-account-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.worker-app .empty-state,
.worker-app .worker-start-idle {
  justify-items: center;
  min-height: auto;
  text-align: center;
}

.worker-app .worker-start-idle p,
.worker-app .worker-helper,
.worker-app .fw-worker-account-help {
  max-width: 30ch;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.worker-app .worker-status-message {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.worker-app .worker-status-message:empty {
  display: none;
}

.worker-app .fw-worker-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.worker-app .worker-state-card,
.worker-app .active-card {
  gap: 13px;
  padding: 15px;
  border: 1px solid #bdebd0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56), transparent),
    linear-gradient(180deg, #dffbea, #f3fff7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 22px rgba(4, 120, 87, .08);
}

.worker-app .worker-active-confirm,
.worker-app .active-badge {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #087f45;
  font-size: 18px;
  font-weight: 900;
}

.worker-app .worker-active-confirm span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #31bf6a;
  font-size: 22px;
}

.worker-app .worker-session-context {
  display: grid;
  gap: 2px;
}

.worker-app .worker-session-context h2 {
  color: #0f172a;
  font-size: 14px;
}

.worker-app .worker-session-context p,
.worker-app .worker-session-context strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.3;
}

.worker-app .fw-worker-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.worker-app .fw-worker-time-grid div {
  padding: 2px 0;
  background: transparent;
}

.worker-app .fw-worker-time-grid span,
.worker-app .fw-worker-summary dt,
.worker-app .fw-worker-end-summary dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.worker-app .fw-worker-elapsed {
  color: #020617;
  font-size: 36px;
  line-height: 1;
  text-align: center;
}

.worker-app .fw-worker-primary-cta,
.worker-app .fw-worker-primary-action,
.worker-app .fw-worker-secondary-action,
.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action {
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
}

.worker-app .fw-worker-primary-cta,
.worker-app .fw-worker-primary-action {
  border-color: #0754d8;
  color: #fff;
  background: linear-gradient(180deg, #1167f2, #0754d8);
}

.worker-app .fw-worker-secondary-action {
  border-color: #94a3b8;
  color: #071a3a;
  background: #fff;
}

.worker-app .fw-worker-danger-cta,
.worker-app .fw-worker-danger-action {
  border-color: #dc2626;
  color: #fff;
  background: linear-gradient(180deg, #f3343f, #dc2626);
}

.worker-app .worker-photo-screen,
.worker-app .worker-end-screen {
  gap: 12px;
  padding-bottom: var(--worker-bottom-pad);
}

.worker-live-photo-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd8e7;
  border-radius: 14px;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(7, 94, 232, .055), transparent 45%),
    #fbfdff;
  font-size: 12px;
  font-weight: 800;
}

.worker-live-photo-preview-ready {
  align-content: end;
  justify-items: start;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 45%, rgba(7, 26, 58, .72)),
    linear-gradient(135deg, #dbeafe, #93c5fd 45%, #64748b);
  border-style: solid;
}

.worker-live-photo-preview-ready span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7, 26, 58, .78);
}

.worker-app .fw-textarea {
  min-height: 88px;
  resize: vertical;
}

.worker-app .fw-worker-end-summary,
.worker-app .fw-worker-summary dl {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.worker-app .fw-worker-end-summary div,
.worker-app .fw-worker-summary dl div {
  min-height: 36px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
}

.worker-app .worker-photo-grid,
.worker-app .fw-worker-photo-list {
  display: grid;
  gap: 8px;
}

.worker-app .worker-photo-card,
.worker-app .worker-photo-card-compact {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 12px;
}

.worker-app .worker-photo-thumb {
  width: 56px;
  height: 56px;
  grid-row: auto;
  border-radius: 11px;
}

.worker-app .worker-photo-card button,
.worker-app .worker-photo-preview-button {
  grid-column: auto;
  min-height: 28px;
  padding: 4px 7px;
  border: 0;
  color: #0754d8;
  background: transparent;
  font-size: 10.5px;
}

.worker-app .worker-history-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.worker-app .worker-history-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.worker-app .worker-history-action {
  align-self: start;
}

.worker-app .worker-history-photos {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 6px;
}

.worker-app .worker-history-photo-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid #edf2f7;
  box-shadow: none;
}

.worker-app .worker-history-photo-row .worker-photo-thumb {
  width: 52px;
  height: 52px;
}

.worker-app .worker-history-card strong {
  font-size: 14px;
}

.worker-app .worker-history-card span,
.worker-app .worker-history-card small {
  font-size: 11px;
}

.worker-app .fw-worker-small-button {
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
}

.worker-app .worker-account-card h1 {
  margin: 0 0 12px;
  font-size: 21px;
}

.worker-app #workerAccountName {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.worker-app .tabbar,
.worker-app .worker-tabbar {
  position: fixed;
  right: max(10px, calc((100vw - var(--worker-shell-max)) / 2 + 10px));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(10px, calc((100vw - var(--worker-shell-max)) / 2 + 10px));
  z-index: 20;
  height: var(--worker-tabbar-height);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.worker-app .tab,
.worker-app .worker-tab {
  min-height: 48px;
  gap: 2px;
  border-radius: 12px;
  color: #64748b;
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.worker-app .tab svg,
.worker-app .worker-tab svg {
  width: 19px;
  height: 19px;
}

.worker-app .tab.active,
.worker-app .worker-tab-active {
  color: #075ee8;
  background: #eff6ff;
}

.worker-app .worker-scan-object-card {
  gap: 4px;
  padding: 14px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.worker-app .fw-worker-job-card {
  min-height: 58px;
  border-radius: 12px;
}

.worker-app .worker-start-work-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.worker-app .worker-start-work-panel[hidden] {
  display: none;
}

@media (max-width: 430px) {
  .worker-login-page {
    padding: 0;
  }

  .worker-login-shell,
  .worker-app.phone-app {
    min-height: 100dvh;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}
