:root {
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: rgba(228, 232, 240, 0.94);
  --blue: #5874bd;
  --blue-soft: #edf3ff;
  --green: #66c2a5;
  --purple: #9351d6;
  --orange: #ee9b5f;
  --shadow: 0 24px 70px rgba(12, 18, 32, 0.28);
  --red: #b84242;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #111827;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.78) 0%, rgba(8, 13, 24, 0.48) 42%, rgba(8, 13, 24, 0.18) 100%),
    url("walker-index.jpg") center / cover no-repeat fixed;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: #063b43;
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.workplace-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #fff;
  background: #087f73;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(4, 34, 43, 0.24);
  font-weight: 800;
  line-height: 1.35;
}

.workplace-toast.is-error { background: #a92737; }

.notification-panel[aria-busy="true"] .notification-list:empty::before {
  content: "Loading priority actions...";
  display: block;
  padding: 14px;
  color: var(--muted);
  background: linear-gradient(90deg, #f3f7f8 20%, #fff 50%, #f3f7f8 80%);
  background-size: 200% 100%;
  border-radius: 12px;
  animation: workplaceLoad 1.1s linear infinite;
}

@keyframes workplaceLoad { to { background-position: -200% 0; } }

body.workplace-modal-open {
  overflow: hidden;
}

.witness-statement-card {
  width: min(92vw, 680px);
}

.witness-statement-context {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d6e4e4;
  border-radius: 14px;
  background: #f4faf9;
}

.witness-statement-context strong {
  color: #102f35;
  font-size: 17px;
}

.witness-statement-context span,
.witness-statement-context p {
  margin: 0;
  color: #536c72;
  line-height: 1.45;
}

.witness-statement-card > label {
  display: block;
  margin-bottom: 7px;
  color: #294c52;
  font-weight: 800;
}

.witness-statement-card textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

.received-record-row.is-witness-request {
  border-left: 4px solid #0aa88f;
  background: #f1fbf9;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.walker-shell {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: grid;
  align-items: center;
  padding: clamp(18px, 4vw, 56px);
}

body.walker-app-active {
  background:
    linear-gradient(180deg, rgba(246, 251, 252, 0.94), rgba(234, 246, 248, 0.98)),
    url("walker-index.jpg") center / cover no-repeat fixed;
  overscroll-behavior-y: none;
}

body.walker-app-active .walker-shell {
  min-height: 100svh;
  align-items: start;
  padding: 0;
}

body.walker-app-active .app-panel {
  width: 100%;
  min-height: 100svh;
  padding: clamp(14px, 3.6vw, 28px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.portal-panel {
  width: min(100%, 540px);
  padding: clamp(18px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.restore-panel {
  display: grid;
  gap: 12px;
}

.restore-panel .hero-copy {
  margin: 14px 0 4px;
}

.session-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 12px;
  color: #4d65a9;
  background: #f3f6ff;
  border: 1px solid #dce6ff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.loader-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(102, 194, 165, 0.45);
  animation: sessionPulse 1.2s ease-in-out infinite;
}

@keyframes sessionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 194, 165, 0.45);
    transform: scale(0.92);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(102, 194, 165, 0);
    transform: scale(1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 194, 165, 0);
    transform: scale(0.92);
  }
}

.brand-row,
.portal-head,
.walker-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-head {
  justify-content: space-between;
  gap: 14px;
}

.walker-menu-btn,
.walker-menu-close {
  flex: 0 0 auto;
  border: 1px solid #dce6ff;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.walker-menu-btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 11px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(88, 116, 189, 0.12);
}

.walker-menu-btn span {
  width: 22px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: #142032;
}

.walker-menu-btn:hover,
.walker-menu-btn:focus-visible,
.walker-menu-close:hover,
.walker-menu-close:focus-visible {
  border-color: rgba(88, 116, 189, 0.45);
  outline: none;
}

.brand-mark,
.walker-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.walker-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(88, 116, 189, 0.22);
  box-shadow: 0 10px 26px rgba(88, 116, 189, 0.18);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.walker-avatar:hover,
.walker-avatar:focus-visible {
  border-color: rgba(88, 116, 189, 0.5);
  box-shadow: 0 14px 32px rgba(88, 116, 189, 0.26);
  outline: none;
  transform: translateY(-1px);
}

.walker-avatar.has-photo {
  background: #ffffff;
  padding: 2px;
}

.walker-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.walker-copy {
  min-width: 0;
}

.walker-copy h1 {
  max-width: 320px;
  overflow: hidden;
  color: #101828;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 0;
}

.walker-meta-chip {
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #4d65a9;
  background: #f3f6ff;
  border: 1px solid #dce6ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.walker-meta-chip.is-email {
  max-width: 230px;
  overflow: hidden;
  color: var(--muted);
  background: #f7f9ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 2px;
  color: #5f82e6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 8vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.app-panel h1 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 430px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.muted,
.status-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.status-line {
  min-height: 20px;
}

.activation-resume-btn {
  margin-top: 2px;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form label {
  color: #4b5872;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 14px;
  outline: none;
  font-weight: 700;
}

.login-form input:focus {
  border-color: rgba(88, 116, 189, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 116, 189, 0.14);
}

.primary-btn,
.ghost-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.primary-btn {
  margin-top: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #6f8dde);
  box-shadow: 0 14px 28px rgba(88, 116, 189, 0.22);
}

.ghost-btn {
  color: #5874bd;
  background: #ffffff;
  border-color: var(--line);
}

.activation-backdrop {
  position: fixed;
  inset: 0;
  /* Shared navigation lives at z-index 12000. Dialogs must always sit above it. */
  z-index: 12100;
  display: grid;
  place-items: start center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(18, 25, 39, 0.58);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.activation-backdrop[hidden] {
  display: none;
}

.activation-card {
  width: min(420px, 100%);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.activation-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.activation-card label {
  color: #4b5872;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activation-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 14px;
  outline: none;
  font-weight: 700;
}

.activation-card textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  color: var(--text);
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 14px;
  outline: none;
  font: inherit;
  resize: vertical;
}

.activation-card input:focus,
.activation-card textarea:focus {
  border-color: rgba(88, 116, 189, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 116, 189, 0.14);
}

.activation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.infraction-review-card {
  width: min(560px, 100%);
}

@media (max-width: 620px) {
  #infractionModal {
    place-items: start center;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  #infractionModal .infraction-review-card {
    width: 100%;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(4, 31, 36, 0.3);
  }

  #infractionModal .infraction-review-card h2 {
    font-size: 1.3rem;
    line-height: 1.12;
  }

  #infractionModal .infraction-review-body {
    gap: 8px;
    padding: 13px;
    border-radius: 15px;
  }

  #infractionModal .infraction-review-body p {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  #infractionModal .performance-training-callout {
    gap: 9px;
    padding: 12px;
  }

  #infractionModal .activation-actions {
    position: sticky;
    bottom: -16px;
    margin: 2px -16px -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
  }
}

.announcement-card {
  width: min(720px, 100%);
  gap: 16px;
  padding: 0;
  overflow: hidden auto;
}

.announcement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  background: linear-gradient(135deg, #e9faf6 0%, #eef7ff 100%);
  border-bottom: 1px solid var(--line);
}

.announcement-head .eyebrow {
  margin: 0 0 4px;
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.announcement-body {
  padding: 2px 22px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.announcement-attachments {
  display: grid;
  gap: 12px;
  padding: 0 22px;
}

.announcement-attachments[hidden] {
  display: none;
}

.announcement-image {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfe4e0;
  border-radius: 18px;
}

.announcement-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ffffff;
}

.announcement-image figcaption,
.announcement-file {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.announcement-file {
  background: #f4faf8;
  border: 1px solid #d5e9e5;
  border-radius: 12px;
}

.announcement-file a {
  color: #087d70;
  font-weight: 900;
}

.announcement-file.is-email-only {
  color: #6b7280;
}

.announcement-actions {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  width: min(620px, calc(100vw - 24px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.announcement-actions .primary-btn {
  min-width: 108px;
  min-height: 48px;
}

/* Full-screen, image-first announcements */
.activation-backdrop:has(.announcement-card) {
  place-items: start center;
  padding: 0;
  background: rgba(8, 18, 24, 0.92);
}

.announcement-card {
  position: relative;
  display: block;
  width: min(760px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: #07191a;
  box-shadow: none;
}

.announcement-hero {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: #650700;
}

.announcement-hero[hidden] {
  display: none;
}

.announcement-hero img {
  display: block;
  width: 100%;
  height: 100dvh;
  object-fit: contain;
  object-position: center;
}

.announcement-content {
  display: grid;
  gap: 14px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  color: var(--text);
  background: #fff;
}

.announcement-content.is-image-only {
  display: block;
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.announcement-content.is-image-only .announcement-actions {
  height: auto;
  min-height: 66px;
  margin: 0;
  overflow: visible;
}

.announcement-card.has-hero-image .announcement-content {
  border-radius: 24px 24px 0 0;
}

.announcement-dismiss-choice {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  padding: 6px 10px;
  color: #20343a !important;
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.announcement-dismiss-choice input {
  flex: 0 0 22px;
  appearance: auto;
  pointer-events: auto;
  cursor: pointer;
  width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  accent-color: #079b88;
}

.announcement-history-thumbnail {
  display: grid !important;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  color: #087d70 !important;
  border-radius: 12px;
  background: #dff5f1;
  font-size: 1.1rem !important;
  font-weight: 950;
}

.announcement-history-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-history-chevron {
  color: #07877a !important;
  font-size: 1.6rem !important;
  font-weight: 900;
}

@media (min-width: 780px) {
  .announcement-card {
    margin: 20px 0;
    height: calc(100dvh - 40px);
    max-height: calc(100dvh - 40px);
    border-radius: 24px;
  }

  .announcement-hero,
  .announcement-hero img {
    min-height: calc(100dvh - 40px);
    height: calc(100dvh - 40px);
  }
}

.uniform-order-card {
  width: min(520px, 100%);
  gap: 14px;
}

.received-records-card {
  width: min(680px, 100%);
  gap: 14px;
}

.received-records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.received-records-list {
  display: grid;
  gap: 9px;
}

.received-record-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #d9e7ef;
  border-radius: 16px;
}

.received-record-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #08766c;
  background: #e8faf5;
  border: 1px solid #bde9df;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.received-record-copy {
  min-width: 0;
}

.received-record-copy strong,
.received-record-copy span {
  display: block;
}

.received-record-copy strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.received-record-copy span {
  max-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.received-record-status {
  justify-self: end;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #4d65a9;
  background: #eef3ff;
  border: 1px solid #dce6ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.received-record-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #ffffff;
  background: #08766c;
  border: 1px solid #08766c;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.received-record-action.is-muted {
  color: var(--muted);
  background: #ffffff;
  border-color: var(--line);
}

.received-record-empty {
  padding: 18px;
  color: var(--muted);
  background: #f8fbff;
  border: 1px dashed #cfdce8;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.uniform-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uniform-order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.uniform-order-meta {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 16px;
}

.uniform-order-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uniform-order-meta strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.uniform-order-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #dce6ff;
  color: #4d65a9;
}

.uniform-order-status.is-complete {
  color: #28785c;
  background: #eef8f3;
  border-color: #d6eee3;
}

.uniform-order-status.is-cancel {
  color: #a23434;
  background: #fff0f0;
  border-color: #f0cbcb;
}

.uniform-order-items {
  display: grid;
  gap: 8px;
}

.uniform-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 16px;
}

.uniform-order-item strong,
.uniform-order-item span {
  display: block;
  margin: 0;
}

.uniform-order-item strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.3;
}

.uniform-order-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.uniform-order-empty {
  padding: 14px;
  color: var(--muted);
  background: #f7f9ff;
  border: 1px dashed #d9e0ef;
  border-radius: 16px;
  line-height: 1.45;
}

.infraction-review-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7f9ff;
  border: 1px solid #d9e0ef;
  border-radius: 16px;
  color: var(--text);
}

.infraction-review-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.infraction-review-body strong {
  color: var(--text);
}

.performance-training-callout {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  color: #123a38;
  background: linear-gradient(135deg, #e6faf5 0%, #f2f9ff 100%);
  border: 1px solid #bce8dd;
  border-radius: 15px;
}

.performance-visual {
  margin: 0 0 18px;
  overflow: hidden;
  background: #082f37;
  border: 1px solid #8ecfc8;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(7, 47, 55, 0.16);
}

.performance-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.performance-visual-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #eafafa;
  background: rgba(2, 28, 34, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
}

.performance-visual-actions a {
  padding: 8px 11px;
  color: #073940;
  background: #dff8f3;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.performance-training-callout span,
.performance-training-callout strong,
.performance-training-callout p {
  display: block;
  margin: 0;
}

.performance-training-callout span {
  color: #08766c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-training-callout strong {
  margin-top: 3px;
  color: #0b2928;
  font-size: 1rem;
}

.performance-training-callout p {
  margin-top: 4px;
  color: #55706f;
  font-size: 0.82rem;
}

.performance-training-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.performance-training-callout-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #08766c, #0a9687);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.performance-training-callout-actions a:hover,
.performance-training-callout-actions a:focus-visible {
  background: #075f57;
}

.ack-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  background: rgba(88, 116, 189, 0.08);
  border: 1px solid rgba(88, 116, 189, 0.18);
  border-radius: 16px;
  color: #4b5872;
  font-size: 0.86rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.ack-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.notification-panel {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tag {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-overview {
  margin-top: 14px;
  padding: clamp(14px, 2vw, 18px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(101, 194, 165, 0.16), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
  border: 1px solid #d8e8e6;
  border-top: 4px solid #18aa96;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(3, 17, 25, 0.1);
}

.home-overview-head,
.home-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-overview-head h2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.home-overview-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.home-live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #08776a;
  background: #e9f8f5;
  border: 1px solid #c8e9e3;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-live-status span {
  width: 7px;
  height: 7px;
  background: #16a38f;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(22, 163, 143, 0.12);
}

.home-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.home-summary-card {
  display: block;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce8e7;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 51, 57, 0.06);
  color: inherit;
  text-decoration: none;
}

.home-summary-card.is-week {
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.home-summary-card.is-week:hover,
.home-summary-card.is-week:focus-visible {
  border-color: #aebfe8;
  box-shadow: 0 11px 24px rgba(65, 89, 153, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.home-summary-card::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 12px;
  background: #18aa96;
  border-radius: 999px;
}

.home-summary-card.is-week::before { background: #5874bd; }
.home-summary-card.is-action::before { background: #ee9b5f; }

.home-summary-card > span,
.home-summary-card > strong,
.home-summary-card > small {
  display: block;
}

.home-summary-card > span {
  color: #577078;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-summary-card > strong {
  margin-top: 4px;
  overflow: hidden;
  color: #13282e;
  font-size: 1.08rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-summary-card > small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-head {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce9e7;
}

.home-quick-head h3 {
  margin: 0;
  color: #13282e;
  font-size: 1rem;
}

.home-quick-head button {
  padding: 6px 10px;
  color: #0b776b;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.home-quick-head button:hover,
.home-quick-head button:focus-visible {
  background: #e7f7f4;
  outline: none;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.home-quick-card {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 1px solid #d8e5e4;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.home-quick-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 2;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  color: #ffffff;
  background: linear-gradient(135deg, #ee6b54, #c9374f);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(180, 39, 63, 0.28);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.home-quick-badge.is-alert {
  min-width: 26px;
  height: 26px;
  padding: 0;
  background: linear-gradient(135deg, #ff8a45, #d53a4e);
  font-size: 0.92rem;
}

.home-quick-card.home-assignment-card.is-assigned {
  border-color: #75cfc2;
  background: linear-gradient(125deg, #ffffff 22%, #edfbf8 100%);
  box-shadow: 0 10px 24px rgba(7, 119, 107, 0.12);
}

.home-quick-card.home-assignment-card.is-assigned::after {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  background: #20aa98;
  border-radius: 0 4px 4px 0;
}

.home-quick-card:hover,
.home-quick-card:focus-visible {
  border-color: #91d5ca;
  box-shadow: 0 10px 22px rgba(16, 77, 72, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.home-quick-card.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.home-quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #0b776b;
  background: #e8f8f5;
  border-radius: 12px;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.home-quick-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-quick-icon.is-clock { color: #3e5fa8; background: #edf3ff; }
.home-quick-icon.is-truck { color: #315ea5; background: #edf3ff; }
.home-quick-icon.is-milk { color: #087467; background: #e4f8f4; }
.home-quick-icon.is-uniform { color: #9a5b28; background: #fff4e9; }
.home-quick-icon.is-voice { color: #7440a8; background: #f6edff; }
.home-quick-icon.is-writeup { color: #8c3445; background: #fff0f3; }
.home-quick-icon.is-performance { color: #4b5598; background: #f0f1ff; }
.home-quick-icon.is-hub-load-out { color: #08766b; background: linear-gradient(135deg, #dcf8f3, #eaf4ff); }

.home-performance-spotlight {
  grid-column: 1 / -1;
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(250, 204, 21, 0.2), transparent 28%),
    linear-gradient(135deg, #effcf8 0%, #e2f7f0 58%, #fff9df 100%);
  border-color: #9eddd2;
  box-shadow: 0 12px 28px rgba(8, 118, 107, 0.12);
}

.home-performance-spotlight:hover,
.home-performance-spotlight:focus-visible {
  border-color: #60cbbb;
  box-shadow: 0 15px 32px rgba(8, 118, 107, 0.17);
}

.home-performance-trophy {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #9a6500;
  background: linear-gradient(145deg, #fff4bd, #ffe381);
  border: 1px solid #f1cf5a;
  border-radius: 17px;
  box-shadow: 0 8px 18px rgba(154, 101, 0, 0.14);
}

.home-performance-trophy svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-performance-copy,
.home-performance-result {
  min-width: 0;
}

.home-performance-copy strong,
.home-performance-copy small,
.home-performance-result strong,
.home-performance-result small {
  display: block;
}

.home-performance-copy strong {
  color: #0b5f58;
  font-size: 1.02rem;
}

.home-performance-copy small {
  margin-top: 5px;
  color: #57736f;
  font-size: 0.75rem;
  font-weight: 800;
}

.home-performance-result {
  min-width: 110px;
  padding: 9px 12px;
  text-align: right;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(126, 205, 192, 0.7);
  border-radius: 13px;
}

.home-performance-result strong {
  color: #08766b;
  font-size: 0.95rem;
}

.home-performance-result small {
  margin-top: 3px;
  color: #6a6854;
  font-size: 0.7rem;
  font-weight: 850;
}

.home-performance-spotlight.is-recognition .home-performance-result strong {
  color: #916000;
}

.home-quick-card.is-hub-load-out.is-assigned,
.hub-load-out-tool.is-assigned {
  border-color: #61cdbd;
  background: linear-gradient(135deg, #ffffff, #e7faf7);
  box-shadow: 0 10px 24px rgba(8, 118, 107, 0.12);
}

.home-quick-card strong,
.home-quick-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-card strong {
  color: #172a30;
  font-size: 0.87rem;
}

.home-quick-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}


.announcement-history-card {
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden auto;
}

.announcement-history-list {
  display: grid;
  gap: 9px;
}

.announcement-history-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px;
  color: inherit;
  text-align: left;
  background: #f4faf8;
  border: 1px solid #d4e7e3;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
}

.announcement-history-row > div {
  min-width: 0;
}

.announcement-history-row strong,
.announcement-history-row span {
  display: block;
}

.announcement-history-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-history-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.announcement-history-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

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

.section-head h2 {
  font-size: 1.1rem;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

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

.notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f7f9ff;
  border: 1px solid #dfe6f5;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
}

.notification-row.is-uniform {
  border-left-color: var(--orange);
}

.notification-row.is-voice {
  border-left-color: var(--purple);
}

.notification-row.is-writeup {
  border-left-color: #0f766e;
}

.notification-row.is-performance,
.notification-row.is-performance_result {
  border-left-color: #0f8f82;
}

.notification-row.is-infraction,
.notification-row.is-infraction_result {
  border-left-color: var(--red);
}

.notification-row.is-incident_request {
  border-left-color: var(--green);
}

.notification-row.is-milk {
  border-left-color: #0f9f8b;
  background: linear-gradient(135deg, #f0fdfa 0%, #f7fbff 100%);
}

.notification-row.is-announcement {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 16px;
  border-left-color: #0aa68f;
  background: linear-gradient(135deg, #ecfbf7 0%, #f7fbff 100%);
}

.notification-row.is-announcement > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-row.is-announcement > .notification-action {
  align-self: start;
  margin-top: 2px;
  color: #075f57;
  background: #ffffff;
  border: 1px solid #b9ddd7;
}

.notification-announcement-image {
  display: block;
  width: min(560px, 100%);
  height: auto;
  max-height: 360px;
  margin-top: 12px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #cde7e1;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 75, 71, 0.08);
}

.notification-announcement-image:focus-visible {
  outline: 3px solid rgba(10, 166, 143, 0.32);
  outline-offset: 3px;
}

.notification-row strong,
.notification-row p {
  display: block;
  margin: 0;
}

.notification-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.notification-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #ffffff;
  background: #5874bd;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.tool-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.walker-menu-tools {
  margin-top: 16px;
}

.tool-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

button.tool-card {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(88, 116, 189, 0.42);
  box-shadow: 0 16px 36px rgba(88, 116, 189, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.primary-tool {
  border-color: rgba(88, 116, 189, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.tool-card.is-disabled {
  display: none;
}

.walker-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 20, 26, 0.44);
  backdrop-filter: blur(7px);
}

.walker-menu-drawer {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(390px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(222, 232, 241, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(12, 18, 32, 0.32);
  overflow-y: auto;
}

.walker-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.walker-menu-head h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
}

.walker-menu-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.walker-menu-logout {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.walker-menu-photo {
  width: 100%;
  text-align: left;
}

.walker-menu-install {
  width: 100%;
  text-align: left;
}

.walker-menu-photo.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.install-icon {
  background: #eaf3ff;
}

.install-icon::before {
  content: "";
  width: 24px;
  height: 18px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: translateY(5px);
}

.install-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 19px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: translateY(-4px) rotate(-45deg);
}

.photo-icon {
  background: #eaf8f4;
}

.photo-icon::before {
  content: "";
  width: 26px;
  height: 21px;
  border: 3px solid var(--green);
  border-radius: 7px;
}

.photo-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: -7px 8px 0 -2px var(--green), 8px 8px 0 -2px var(--blue);
}

.logout-icon {
  background: #fff0f0;
}

.logout-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid var(--red);
  border-radius: 8px;
}

.logout-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 3px;
  background: var(--red);
  border-radius: 999px;
  transform: translateX(8px);
  box-shadow: 5px 0 0 var(--red);
}

.tool-card strong,
.tool-card small {
  display: block;
}

.tool-card strong {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.tool-card small {
  color: var(--muted);
  line-height: 1.35;
}

.tool-icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 16px;
}

.milk-route-tool {
  border-color: rgba(15, 159, 139, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.milk-route-icon {
  background: #dff8f2;
}

.milk-route-icon::before {
  content: "";
  width: 20px;
  height: 27px;
  border: 3px solid #0f8f82;
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(to top, rgba(15, 159, 139, 0.22) 0 45%, transparent 45%);
}

.milk-route-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 12px;
  height: 5px;
  border: 3px solid #0f8f82;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.schedule-icon::before {
  content: "";
  width: 25px;
  height: 23px;
  border: 3px solid var(--blue);
  border-top-width: 8px;
  border-radius: 8px;
}

.schedule-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 7px 0 var(--blue);
}

.voice-icon {
  background: #f1e7ff;
}

.voice-icon::before {
  content: "";
  width: 25px;
  height: 20px;
  border: 3px solid var(--purple);
  border-radius: 8px 8px 8px 3px;
}

.voice-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-left: 3px solid var(--purple);
  border-bottom: 3px solid var(--purple);
  transform: skewY(-22deg);
}

.track-icon {
  background: #eaf8f4;
}

.track-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.track-icon::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 3px;
  background: var(--green);
  border-radius: 999px;
  transform: rotate(45deg);
}

.writeup-icon {
  background: #eef3ff;
}

.writeup-icon::before {
  content: "";
  width: 23px;
  height: 29px;
  border: 3px solid var(--blue);
  border-radius: 8px;
}

.writeup-icon::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 8px 0 var(--blue);
}

.performance-icon {
  background: #eaf8f4;
}

.performance-icon::before {
  content: "";
  width: 27px;
  height: 18px;
  border-left: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  transform: translateY(3px) skewX(-18deg);
}

.performance-icon::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 13px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: -9px 8px 0 -2px var(--blue);
}

.clock-mobile-icon {
  background: #eaf8f4;
}

.clock-mobile-icon::before {
  content: "";
  width: 18px;
  height: 26px;
  border: 3px solid var(--green);
  border-radius: 7px;
}

.clock-mobile-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: translate(2px, 4px) rotate(-45deg);
}

.hub-load-out-icon {
  background: linear-gradient(135deg, #dff8f4, #e8f2ff);
}

.hub-load-out-icon::before {
  content: "H";
  color: #08766b;
  font-size: 1.05rem;
  font-weight: 950;
}

.uniform-icon {
  background: #fff1e8;
}

.uniform-icon::before {
  content: "";
  width: 25px;
  height: 28px;
  border: 3px solid var(--orange);
  border-radius: 6px 6px 10px 10px;
}

.uniform-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 15px;
  height: 3px;
  background: var(--orange);
  border-radius: 999px;
}

.general-notice {
  position: fixed;
  left: clamp(10px, 3vw, 28px);
  right: clamp(10px, 3vw, 28px);
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 680px;
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

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

/* Unified Walker home card — profile, daily summary and services share one surface. */
.home-primary-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #f7fcfb;
  border: 1px solid rgba(7, 155, 141, 0.24);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(6, 78, 83, 0.16);
}

.home-primary-card > .portal-head {
  position: relative;
  padding: 22px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 15%, rgba(153, 246, 228, 0.28), transparent 27%),
    linear-gradient(125deg, #064e53 0%, #087f73 54%, #0aa890 100%);
}

.home-primary-card > .portal-head::after {
  content: "";
  position: absolute;
  right: 21%;
  bottom: -44px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  pointer-events: none;
}

.home-primary-card .portal-head .eyebrow {
  color: #bff7ec;
}

.home-primary-card .walker-copy h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.home-primary-card .walker-avatar {
  border-color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(145deg, #10b7a5, #65c89f);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.home-primary-card .walker-meta-chip {
  color: #ecfffb;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.home-primary-card .walker-meta-chip.is-email {
  color: #d9fff7;
  background: rgba(15, 23, 42, 0.16);
}

.home-primary-card > .home-overview {
  margin-top: 0;
  padding: clamp(18px, 2.5vw, 26px);
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 231, 202, 0.18), transparent 34%),
    linear-gradient(145deg, #ffffff, #f3fbf9);
  border: 0;
  border-top: 1px solid rgba(167, 226, 216, 0.72);
  border-radius: 0;
  box-shadow: none;
}

.home-primary-card .home-overview-head .eyebrow {
  color: #087f73;
}

.home-primary-card .home-live-status {
  color: #075b5a;
  background: #e8f8f5;
  border-color: #bfe8df;
}

.home-primary-card .home-live-status span {
  background: #079b8d;
  box-shadow: 0 0 0 4px rgba(7, 155, 141, 0.13);
}

.home-primary-card .home-summary-card {
  border-color: #d2e8e4;
  box-shadow: 0 9px 24px rgba(6, 78, 83, 0.07);
}

.home-primary-card .home-summary-card::before { background: #0aa890; }
.home-primary-card .home-summary-card.is-week::before { background: #4f9f78; }
.home-primary-card .home-summary-card.is-action::before { background: #fb7185; }

.home-primary-card .home-quick-head {
  border-top-color: #d2e8e4;
}

.home-primary-card .home-quick-head button {
  color: #075b5a;
  background: #e8f8f5;
  border: 1px solid #c8e9e3;
}

.home-primary-card .home-quick-card {
  border-color: #d2e8e4;
  box-shadow: 0 7px 18px rgba(6, 78, 83, 0.05);
}

.home-primary-card .home-quick-card:hover,
.home-primary-card .home-quick-card:focus-visible {
  border-color: #7ed3c5;
  box-shadow: 0 12px 25px rgba(7, 155, 141, 0.12);
}

.home-primary-card .home-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.home-primary-card .home-quick-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.home-quick-icon.is-schedule { color: #087f73; background: linear-gradient(145deg, #dcf7f1, #effbf8); }
.home-quick-icon.is-truck { color: #075b5a; background: linear-gradient(145deg, #d5f3ed, #e8f8f5); }
.home-quick-icon.is-uniform { color: #c2410c; background: linear-gradient(145deg, #ffedd5, #fff7ed); }
.home-quick-icon.is-voice { color: #7e22ce; background: linear-gradient(145deg, #f3e8ff, #faf5ff); }
.home-quick-icon.is-writeup { color: #be123c; background: linear-gradient(145deg, #ffe4e6, #fff1f2); }
.home-quick-icon.is-performance { color: #0f766e; background: linear-gradient(145deg, #ccfbf1, #ecfdf8); }

@media (max-width: 620px) {
  body.walker-app-active .app-panel {
    background: #edf7f5;
  }

  .home-primary-card {
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(6, 78, 83, 0.14);
  }

  .home-primary-card > .portal-head {
    padding: 18px;
  }

  .home-primary-card > .home-overview {
    padding: 16px;
  }
}

.notice-item strong {
  margin-bottom: 2px;
}

.notice-item span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .workplace-toast { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
  html {
    background: #eef7f8;
  }

  body {
    overflow-x: hidden;
    background:
      linear-gradient(180deg, rgba(8, 13, 24, 0.06) 0%, rgba(8, 13, 24, 0.24) 31%, rgba(8, 13, 24, 0.86) 100%),
      url("walker-index.jpg") center top / cover no-repeat;
    background-attachment: scroll;
  }

  body.walker-app-active {
    background: #eef7f8;
    overscroll-behavior-y: none;
  }

  .walker-shell {
    align-items: end;
    padding: 30vh 10px calc(10px + env(safe-area-inset-bottom));
  }

  body.walker-app-active .walker-shell {
    align-items: start;
    padding: 0;
  }

  .portal-panel {
    width: 100%;
    padding: 14px;
    border-radius: 22px 22px 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 44px rgba(12, 18, 32, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .activation-backdrop,
  .general-notice {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.walker-app-active .app-panel {
    min-height: 100svh;
    padding: 12px;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-head {
    align-items: center;
    flex-direction: row;
  }

  .portal-head .walker-menu-btn {
    display: none;
  }

  .walker-identity {
    width: 100%;
    align-items: flex-start;
  }

  .walker-copy {
    flex: 1 1 auto;
  }

  .walker-copy h1 {
    max-width: none;
    overflow: visible;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .home-overview {
    padding: 13px;
  }

  .home-overview-head small {
    max-width: 250px;
  }

  .home-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
  }

  .home-summary-card {
    min-height: 102px;
    padding: 10px;
    border-radius: 14px;
  }

  .home-summary-card::before {
    width: 22px;
    margin-bottom: 9px;
  }

  .home-summary-card > strong {
    font-size: 0.9rem;
  }

  .home-summary-card > small {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .home-quick-card {
    min-height: 68px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .home-quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .home-quick-icon svg {
    width: 19px;
    height: 19px;
  }

  .home-performance-spotlight {
    min-height: 82px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
  }

  .home-performance-trophy {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .home-performance-trophy svg {
    width: 25px;
    height: 25px;
  }

  .home-performance-result {
    min-width: 82px;
    padding: 8px;
  }

  .announcement-history-row {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    gap: 9px;
  }

  .notification-row {
    grid-template-columns: 1fr;
  }

  .notification-row.is-announcement {
    grid-template-columns: 1fr;
  }

  .notification-row.is-announcement > .notification-action {
    width: 100%;
    margin-top: 4px;
  }

  .notification-announcement-image {
    width: 100%;
    max-height: none;
  }

  .uniform-order-head,
  .uniform-order-summary,
  .uniform-order-item {
    grid-template-columns: 1fr;
  }

  .received-records-head {
    align-items: stretch;
    flex-direction: column;
  }

  .received-record-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .received-record-status,
  .received-record-action {
    grid-column: 2;
    justify-self: stretch;
  }

  .ghost-btn,
  .primary-btn {
    width: 100%;
  }

  .walker-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .walker-menu-drawer {
    inset: auto 8px 8px 8px;
    width: auto;
    max-height: min(82vh, 680px);
    border-radius: 24px 24px 18px 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .walker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.72rem;
    line-height: 1;
  }

  .app-panel h1 {
    font-size: 1.25rem;
  }

  .walker-meta-chip.is-email {
    max-width: 210px;
  }

  .hero-copy {
    margin: 10px 0 12px;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .tool-card {
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 15px;
  }

  .tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .tool-card strong {
    margin-bottom: 2px;
    font-size: 0.96rem;
  }

  .tool-card small {
    font-size: 0.78rem;
    line-height: 1.28;
  }
}

@media (hover: none) and (pointer: coarse) {
  body,
  body.walker-app-active {
    background-attachment: scroll;
  }

  .portal-panel,
  .activation-backdrop,
  .general-notice {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

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

/* Workplace photo backdrop shared with the full employee portal. */
body.walker-app-active {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(3, 17, 25, 0.48) 0%, rgba(3, 17, 25, 0.64) 100%),
    url("walker-index.jpg") center / cover no-repeat fixed !important;
}

body.walker-app-active .walker-shell {
  justify-items: center;
  padding: clamp(12px, 2.2vw, 28px);
}

body.walker-app-active .app-panel {
  width: min(100%, 980px);
  min-height: auto;
  padding: clamp(10px, 2vw, 18px);
  background: rgba(239, 247, 247, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(3, 17, 25, 0.34);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.walker-app-active .portal-head,
body.walker-app-active .notification-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 38px rgba(3, 17, 25, 0.13);
}

body.walker-app-active .portal-head {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

@media (max-width: 620px) {
  html {
    background: #07151d;
  }

  body.walker-app-active {
    background:
      linear-gradient(180deg, rgba(3, 17, 25, 0.38) 0%, rgba(3, 17, 25, 0.62) 100%),
      url("walker-index.jpg") center / cover no-repeat fixed !important;
  }

  body.walker-app-active .walker-shell {
    padding: 8px;
  }

  body.walker-app-active .app-panel {
    width: 100%;
    min-height: calc(100svh - 16px);
    padding: 8px;
    border-radius: 22px;
    background: rgba(239, 247, 247, 0.84);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (hover: none) and (pointer: coarse) {
  body.walker-app-active {
    background-attachment: scroll;
  }
}

@media (max-width: 380px) {
  .walker-shell {
    padding-top: 26vh;
  }

  body.walker-app-active .walker-shell {
    padding-top: 8px;
  }

  .tool-card small {
    display: none;
  }

  .tool-card {
    min-height: 62px;
  }
}

/* Received records card lists */
#receivedRecordsModal {
  padding: 18px;
}

.received-records-card {
  width: min(820px, 100%);
  max-height: min(86dvh, 820px);
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-top: 4px solid #0aa58f;
  border-radius: 24px;
}

.is-performance .received-records-card {
  border-top-color: #5874bd;
}

.received-records-head {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  padding: 18px 20px 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 249, 247, 0.96));
  border-bottom: 1px solid #d5e7e4;
}

.is-performance .received-records-head {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.96));
}

.received-records-head h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.record-back-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #08766b;
  background: #ffffff;
  border: 1px solid #c5e1dc;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.record-back-btn > span {
  font-size: 1.08rem;
}

.received-records-list {
  gap: 10px;
  overflow: auto;
  padding: 14px;
  overscroll-behavior: contain;
}

.received-record-row {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  min-height: 78px;
  gap: 11px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, #f4fbf9);
  border: 1px solid #d5e7e3;
  border-left: 5px solid #0aa58f;
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(9, 72, 67, 0.06);
}

.is-performance .received-record-row {
  background: linear-gradient(135deg, #ffffff, #f4f7ff);
  border-color: #d9e2f5;
  border-left-color: #5874bd;
}

.received-record-row.is-policy {
  border-left-color: #8a5bd0;
}

.received-record-row.is-new {
  box-shadow: 0 10px 24px rgba(9, 72, 67, 0.11);
}

.received-record-row.is-read {
  background: #f8fafb;
  box-shadow: none;
}

.received-record-index {
  width: 40px;
  height: 40px;
  color: #08766b;
  background: #e5f8f4;
  border-color: #c2e9e1;
  border-radius: 13px;
}

.is-performance .received-record-index {
  color: #4d65a9;
  background: #edf3ff;
  border-color: #d7e2fa;
}

.received-record-copy strong {
  font-size: 1rem;
}

.received-record-copy span {
  max-height: none;
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.received-record-status {
  color: #586779;
  background: #f1f5f7;
  border-color: #dbe4e8;
}

.received-record-row.is-new .received-record-status {
  color: #a6414c;
  background: #fff0f1;
  border-color: #f0cdd1;
}

.received-record-action {
  min-height: 38px;
  padding: 0 14px;
  background: linear-gradient(135deg, #08766b, #0aa58f);
  border-color: #08766b;
  border-radius: 11px;
}

.is-performance .received-record-action:not(.is-muted) {
  background: linear-gradient(135deg, #4f67ad, #6d84d0);
  border-color: #4f67ad;
}

@media (max-width: 620px) {
  #receivedRecordsModal {
    align-items: end;
    padding: 0;
  }

  .received-records-card {
    width: 100%;
    max-height: calc(92dvh - env(safe-area-inset-top));
    border-radius: 24px 24px 0 0;
  }

  .received-records-head {
    padding: 15px 14px 12px;
  }

  .record-back-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .record-back-btn strong {
    display: none;
  }

  .received-records-list {
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
  }

  .received-record-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .received-record-index {
    width: 36px;
    height: 36px;
  }

  .received-record-status,
  .received-record-action {
    grid-column: 2;
    justify-self: start;
  }

  .received-record-action {
    width: 100%;
  }
}

/* Mobile stability: avoid fixed-background and full-panel blur repaints. */
@media (max-width: 620px), (hover: none) and (pointer: coarse) {
  body.walker-app-active {
    background:
      linear-gradient(180deg, rgba(3, 17, 25, 0.42) 0%, rgba(3, 17, 25, 0.64) 100%),
      url("walker-index.jpg") center top / cover no-repeat scroll !important;
    background-attachment: scroll !important;
  }

  body.walker-app-active .app-panel {
    background: rgba(239, 247, 247, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.walker-app-active .portal-head,
  body.walker-app-active .home-overview,
  body.walker-app-active .notification-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Final theme guard: legacy active-panel rules must not wash out the unified profile header. */
body.walker-app-active .home-primary-card > .portal-head {
  padding: 22px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(153, 246, 228, 0.27), transparent 30%),
    linear-gradient(125deg, #064e53 0%, #087f73 54%, #0aa890 100%) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.walker-app-active .home-primary-card .portal-head .eyebrow {
  color: #bff7ec;
}

body.walker-app-active .home-primary-card .walker-copy h1 {
  color: #ffffff;
}

body.walker-app-active .home-primary-card .walker-meta-chip {
  color: #ecfffb;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

body.walker-app-active .home-primary-card .walker-meta-chip.is-email {
  color: #d9fff7;
  background: rgba(15, 23, 42, 0.2);
}

@media (max-width: 620px) {
  body.walker-app-active .home-primary-card > .portal-head {
    padding: 18px;
  }

  body.walker-app-active .home-primary-card .walker-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }
}
