/* Material 3 Expressive: semantic roles, adaptive navigation and accessible states. */
:root {
  --container-radius: 0;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #182c2a;
  background: #f6f8f4;
  --md-primary: #006b56;
  --md-on-primary: #fff;
  --md-primary-container: #b4f1d6;
  --md-on-primary-container: #00382b;
  --md-secondary-container: #dce9df;
  --md-tertiary-container: #ffdf9e;
  --md-surface: #f6f8f4;
  --md-surface-low: #eef2ec;
  --md-surface-container: #e8eee7;
  --md-surface-high: #e2e9e1;
  --md-on-surface: #182c2a;
  --md-on-surface-variant: #4e6059;
  --md-outline: #73847a;
  --md-outline-variant: #c2cec3;
  --md-error: #a3352b;
  --md-motion: 220ms cubic-bezier(0.2, 0, 0, 1);
  --green: var(--md-primary);
  --muted: var(--md-on-surface-variant);
  --line: var(--md-outline-variant);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
.button {
  min-height: 48px;
  max-width: 100%;
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--container-radius);
  background: transparent;
  color: var(--md-primary);
  padding: 12px 22px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
  letter-spacing: 0.1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition:
    background var(--md-motion),
    border-radius var(--md-motion),
    box-shadow var(--md-motion),
    transform var(--md-motion);
}
button:hover,
.button:hover {
  background: #006b5610;
}
button:active,
.button:active {
  border-radius: var(--container-radius);
  transform: scale(0.98);
  background: #006b5620;
}
button:disabled {
  background: #182c2a14 !important;
  color: #182c2a66 !important;
  border-color: transparent;
  cursor: wait;
  transform: none;
}
.primary {
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-color: transparent;
}
.primary:hover {
  background: #005441;
  box-shadow: 0 2px 6px #00382b25;
}
.primary:active {
  background: #004334;
}
.amber {
  background: var(--md-tertiary-container);
  color: #533e0a;
  border-color: transparent;
}
.danger {
  color: var(--md-error);
  border-color: #d9ada6;
}
.md-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  vertical-align: middle;
}
.button-label {
  min-width: 0;
}
.wide {
  width: 100%;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin: 10px 0 16px;
}
h2 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.45px;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
  line-height: 26px;
  margin: 0 0 10px;
}
p {
  font-size: 15px;
  line-height: 1.6;
  margin: 8px 0;
}
small,
.muted {
  color: var(--md-on-surface-variant);
}
small {
  font-size: 12px;
  line-height: 1.5;
}
.eyebrow {
  color: var(--md-primary);
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: -0.3px;
}
.brand small {
  font-size: 11px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  background: var(--md-surface-low);
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 10;
}
.sidebar .brand {
  padding: 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  height: 56px;
  justify-content: flex-start;
  gap: 16px;
  border: 0;
  color: var(--md-on-surface-variant);
  padding: 12px 24px;
}
.sidebar nav button.active {
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
}
.sidebar nav button.active .md-icon {
  stroke-width: 2.4;
}
.sidebar footer {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.sidebar footer strong {
  font-size: 14px;
  color: var(--md-primary);
}
.sidebar footer p {
  font-size: 12px;
}
.workspace {
  margin-left: 272px;
}
.topbar {
  min-height: 88px;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--md-surface);
  border-bottom: 1px solid var(--md-surface-high);
}
.workspace > .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar select {
  border: 0;
  background: var(--md-surface-container);
  border-radius: var(--container-radius);
  padding-left: 22px;
}
.topbar .identity > div strong {
  font-size: 14px;
}
.topbar button[data-action="logout"] {
  border: 0;
  padding: 12px;
}
.topbar button[data-action="logout"] .button-label {
  display: none;
}
.content {
  max-width: 1320px;
  padding: 36px 40px 64px;
  margin: auto;
}
.content > .row:first-child {
  align-items: flex-start;
  gap: 24px;
}
.content > .row:first-child > div:first-child {
  flex: 1;
  min-width: 220px;
}
.content > .row:first-child > div:last-child {
  width: 168px;
}
.content > .row:first-child h1 {
  max-width: 680px;
}
.content > .row:first-child input {
  font-size: 14px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  min-width: 0;
  max-width: 100%;
}
.stack {
  display: grid;
  gap: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.card {
  background: #fff;
  border: 0;
  border-radius: var(--container-radius);
  padding: 28px;
  min-width: 0;
  box-shadow: none;
}
.card > .row:first-child h2 {
  margin-bottom: 0;
}
.card > .row:first-child {
  margin-bottom: 16px;
}
.stat {
  position: relative;
  background: var(--md-surface-container);
  min-height: 188px;
  padding: 22px;
}
.stat:first-child {
  background: var(--md-primary-container);
}
.stat:nth-child(3) {
  background: #f8edda;
}
.stat:nth-child(4) {
  background: #e4eaf7;
}
.stat-symbol {
  width: 40px;
  height: 40px;
  border-radius: var(--container-radius);
  background: #ffffff80;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--md-primary);
}
.stat:nth-child(3) .stat-symbol {
  color: #78530a;
}
.stat:nth-child(4) .stat-symbol {
  color: #385378;
}
.stat > span:first-of-type {
  font-size: 11px;
  letter-spacing: 0.65px;
  font-weight: 650;
}
.stat strong {
  display: block;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 6px 0;
}
.stat strong small {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.stat > span:last-child {
  font-size: 12px;
  color: var(--md-on-surface-variant);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  background: var(--md-secondary-container);
  color: #234638;
  padding: 6px 12px;
  border-radius: var(--container-radius);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill.pending {
  background: #ffedc4;
  color: #755009;
}
.pill.gray {
  background: var(--md-surface-container);
  color: var(--muted);
}
.notice {
  display: block;
  background: #f8edda;
  color: #604916;
  border: 0;
  border-radius: var(--container-radius);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
}
.notice::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.item {
  padding: 20px 0;
  border-bottom: 1px solid var(--md-surface-high);
  overflow-wrap: anywhere;
}
.item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.item strong {
  font-weight: 600;
}
.item > .row {
  align-items: flex-start;
}
.item > .row > strong {
  flex: 1;
  min-width: 180px;
  font-size: 18px;
  line-height: 1.5;
}
.item .muted {
  font-size: 13px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--md-secondary-container);
  color: var(--md-on-primary-container);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
}
.identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--md-on-surface-variant);
  margin: 24px 0 8px;
  letter-spacing: 0.1px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--md-outline);
  border-radius: var(--container-radius);
  background: transparent;
  padding: 15px 16px;
  color: var(--md-on-surface);
  transition:
    border var(--md-motion),
    background var(--md-motion);
  font-size: 16px;
  line-height: 24px;
}
input:not([type="checkbox"]):hover,
textarea:hover,
select:hover {
  border-color: var(--md-on-surface);
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--md-primary);
  outline-offset: -2px;
  border-color: var(--md-primary);
}
input::placeholder,
textarea::placeholder {
  color: #65766d;
}
input[type="hidden"] {
  display: none;
}
input[type="file"] {
  border: 1px dashed var(--md-outline-variant);
  background: var(--md-surface-low);
  padding: 12px;
  font-size: 13px;
}
input::file-selector-button {
  border: 0;
  padding: 10px 14px;
  border-radius: var(--container-radius);
  background: var(--md-secondary-container);
  color: var(--md-on-primary-container);
  margin-right: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
textarea {
  min-height: 132px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--md-primary);
  margin: 12px 0;
}
label.check {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  min-height: 56px;
  font-size: 15px;
  line-height: 1.5;
}
form .primary {
  margin-top: 24px;
}
form > button {
  margin-top: 16px;
}
.approveSummary,
.transition {
  padding: 4px 20px 24px;
  background: var(--md-surface-low);
  border-radius: var(--container-radius);
  margin-top: 20px;
}
.media {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.media > * {
  max-width: 100%;
}
audio {
  width: 100%;
  margin: 16px 0;
  border-radius: var(--container-radius);
}
img.photo {
  display: block;
  max-height: 320px;
  max-width: 100%;
  border-radius: var(--container-radius);
  margin: 12px 0;
}
video {
  width: 100%;
  border-radius: var(--container-radius);
}
progress {
  width: 100%;
  height: 12px;
  accent-color: var(--md-primary);
  border: 0;
  border-radius: var(--container-radius);
  overflow: hidden;
  background: var(--md-secondary-container);
}
progress::-webkit-progress-bar {
  background: var(--md-secondary-container);
}
progress::-webkit-progress-value {
  background: var(--md-primary);
  border-radius: var(--container-radius);
}
.guard {
  max-width: 600px;
  margin: auto;
  padding: 20px 24px 48px;
}
.guard .topbar {
  padding: 0 0 20px;
  background: transparent;
  border: 0;
  min-height: 72px;
}
.guard > .row:first-of-type {
  background: var(--md-surface-container);
  padding: 8px 12px 8px 16px;
  border-radius: var(--container-radius);
  margin-bottom: 28px;
  gap: 4px;
}
.guard > .row:first-of-type button {
  border: 0;
  font-size: 12px;
  min-height: 48px;
  padding: 8px;
}
.guard > .row:first-of-type button .md-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.guard > .row:nth-of-type(2) .avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--container-radius);
  background: var(--md-primary-container);
  font-size: 24px;
}
.guard h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 6px 0;
}
.guard > .muted {
  margin-bottom: 24px;
}
.guard .shift {
  background: var(--md-primary-container);
  border: 0;
  color: var(--md-on-primary-container);
  border-radius: var(--container-radius);
  padding: 28px;
}
.guard .shift h2 {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.6px;
}
.guard .shift .muted {
  color: #315b4b;
}
.guard .shift .pill {
  background: #ffffff70;
  color: #00382b;
}
.guard .shift button {
  width: 100%;
  min-height: 64px;
  margin-top: 20px;
  font-size: 18px;
}
.guard .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.guard .actions button {
  min-height: 136px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  border: 0;
  border-radius: var(--container-radius);
  padding: 24px;
  font-size: 18px;
  font-weight: 550;
  line-height: 24px;
  letter-spacing: -0.2px;
  background: var(--md-surface-container);
  color: var(--md-on-surface);
}
.guard .actions button[data-page="round"] {
  background: #dce7f4;
  color: #263e5c;
  border-radius: var(--container-radius);
}
.guard .actions button[data-page="report"] {
  background: #ffe0a3;
  color: #583b00;
  border-radius: var(--container-radius);
}
.guard .actions button[data-page="instructions"] {
  background: #e9ddff;
  color: #49316c;
  border-radius: var(--container-radius);
}
.guard .actions button.amber {
  background: var(--md-tertiary-container);
  color: #543c03;
  border-radius: var(--container-radius);
}
.guard .actions button:active {
  border-radius: var(--container-radius);
}
.guard .actions .md-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.guard .call {
  width: 100%;
  min-height: 56px;
  background: var(--md-secondary-container);
  color: var(--md-on-primary-container);
  border: 0;
  margin-top: 8px;
}
.guard > .source {
  margin-top: 24px;
}
.guard .back {
  margin: 0 0 20px;
  border: 0;
  padding-left: 4px;
}
.guard #record {
  min-height: 80px;
  font-size: 20px;
  border-radius: var(--container-radius);
  margin: 20px 0 12px;
  user-select: none;
  -webkit-user-select: none;
}
.guard #record:active {
  border-radius: var(--container-radius);
  background: var(--md-error);
}
.guard #record .md-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.guard #recordStatus {
  display: block;
  text-align: center;
}
.guard form button {
  min-height: 56px;
}
.guard .item.row .pill {
  flex-shrink: 0;
}
.back {
  margin-bottom: 20px;
}
.login {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 24px 16px;
  display: block;
}
.login > .brand {
  margin: 0 0 28px;
}
.login-intro {
  display: none;
}
.login-intro h1 {
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -2px;
  font-weight: 450;
  margin: 0 0 24px;
}
.login-intro h1 span {
  color: var(--md-primary);
}
.login-intro > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 340px;
}
.login-art {
  margin-top: 40px;
  width: 216px;
  height: 180px;
  background: var(--md-primary-container);
  border-radius: var(--container-radius);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--md-primary);
}
.login-art > .md-icon {
  width: 100px;
  height: 100px;
  stroke-width: 1.1;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  right: -16px;
  bottom: 16px;
  background: var(--md-tertiary-container);
  border: 8px solid var(--md-surface);
  border-radius: 50%;
}
.login > .card {
  background: white;
  padding: 24px;
  border-radius: var(--container-radius);
}
.login .card h1 {
  font-size: 32px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.login .notice {
  margin-top: 24px;
}
.login footer {
  grid-column: 1/-1;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 24px;
}
.login .card details {
  margin-top: 20px;
}
.login .signup-card {
  padding-bottom: 28px;
}
.signup-step {
  margin: 12px 0 0;
  color: var(--md-primary);
  font-size: 14px;
  font-weight: 600;
}
.signup-entry {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--md-outline-variant);
}
.signup-entry .muted {
  margin: 0 0 10px;
}
.text-action {
  margin-top: 12px;
  color: var(--md-primary);
  background: transparent;
  border-color: transparent;
}
.text-action:hover {
  background: var(--md-primary-container);
}
.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.location-row .label {
  min-width: 0;
}
.location-row input {
  width: 100%;
}
.location-action {
  margin-top: 16px;
  color: var(--md-primary);
  background: var(--md-primary-container);
  border-color: transparent;
}
.signup-confirm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  line-height: 1.4;
}
.signup-confirm input {
  min-height: auto;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
}
.login .card .eyebrow {
  letter-spacing: 0.5px;
}
.login form .primary {
  min-height: 56px;
}
.login input {
  min-height: 56px;
  font-size: 16px;
}
.source {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.sheet article {
  background: white;
  text-align: center;
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--container-radius);
  padding: 32px;
}
.sheet img {
  width: 180px;
  max-width: 100%;
}
.sheet h2 {
  font-size: 20px;
}
.empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-radius: var(--container-radius);
  background: var(--md-surface-low);
  margin: 16px 0;
}
.timeline {
  border-left: 2px solid var(--md-primary-container);
  padding-left: 24px;
  margin: 24px 0;
}
.timeline p {
  position: relative;
  padding: 4px 0 14px;
}
.timeline p::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--md-primary);
}
details {
  border-radius: var(--container-radius);
}
details summary {
  cursor: pointer;
  padding: 16px 0;
  min-height: 48px;
  color: var(--md-primary);
  font-size: 14px;
  font-weight: 600;
}
details[open] {
  padding-bottom: 8px;
}
details p {
  font-size: 14px;
}
pre {
  padding: 20px;
  background: var(--md-surface-low);
  border-radius: var(--container-radius);
  font-size: 12px;
  line-height: 1.6;
  max-width: 100%;
  overflow: auto;
}
a {
  color: var(--md-primary);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  background: #253a33;
  color: #eff5ef;
  border-radius: var(--container-radius);
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 12px #162c2a25;
  z-index: 30;
  display: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--md-primary);
  outline-offset: 4px;
}
#dashboardPage,
#guardPage {
  animation: enter 240ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes enter {
  from {
    opacity: 0.6;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 840px) and (max-width: 1199px) {
  .sidebar {
    width: 104px;
    padding: 24px 8px;
    gap: 32px;
  }
  .sidebar .brand {
    justify-content: center;
    padding: 0;
  }
  .sidebar .brand > div,
  .sidebar footer {
    display: none;
  }
  .sidebar nav {
    gap: 16px;
  }
  .sidebar nav button {
    height: auto;
    min-height: 80px;
    padding: 8px 4px;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--container-radius);
    font-size: 11px;
    line-height: 16px;
  }
  .sidebar nav button.active {
    background: transparent;
  }
  .sidebar nav button .md-icon {
    box-sizing: content-box;
    padding: 8px 20px;
    border-radius: var(--container-radius);
  }
  .sidebar nav button.active .md-icon {
    background: var(--md-primary-container);
  }
  .workspace {
    margin-left: 104px;
  }
  .content {
    padding: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    min-height: 176px;
  }
  .topbar {
    padding: 16px 28px;
  }
  .login {
    column-gap: 32px;
    padding: 36px;
    grid-template-columns: 1fr 400px;
  }
  .login-intro h1 {
    font-size: 52px;
  }
}
@media (max-width: 839px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px 24px 4px;
    background: var(--md-surface);
    gap: 0;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar footer {
    display: none;
  }
  .sidebar nav {
    position: fixed;
    inset: auto 0 0;
    background: var(--md-surface-container);
    display: flex;
    justify-content: space-around;
    gap: 0;
    padding: 8px 8px max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    border-radius: 0;
  }
  .sidebar nav button {
    flex: 1;
    min-width: 0;
    min-height: 64px;
    height: auto;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--container-radius);
    padding: 0 4px;
    font-size: 12px;
    line-height: 16px;
  }
  .sidebar nav button .md-icon {
    padding: 5px 18px;
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    border-radius: var(--container-radius);
  }
  .sidebar nav button.active {
    background: transparent;
  }
  .sidebar nav button.active .md-icon {
    background: var(--md-primary-container);
  }
  .sidebar nav button.active .button-label {
    font-weight: 700;
  }
  .workspace {
    margin: 0;
  }
  .workspace > .topbar {
    position: static;
    min-height: 72px;
    padding: 16px 24px;
    border-bottom: 0;
    align-items: center;
  }
  .topbar .identity > div {
    display: none;
  }
  .topbar .identity {
    gap: 4px;
  }
  .topbar .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .topbar select {
    max-width: 100%;
    font-size: 14px;
    min-height: 48px;
    padding: 10px 12px;
  }
  .content {
    padding: 20px 24px 120px;
  }
  .content > .row:first-child > div:first-child {
    flex-basis: 100%;
  }
  .content > .row:first-child > div:last-child {
    width: 180px;
  }
  .content > .row:first-child {
    gap: 12px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    min-height: 184px;
    padding: 20px;
  }
  .stat strong {
    font-size: 36px;
  }
  .stat strong small {
    font-size: 22px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px;
  }
  .sheet {
    grid-template-columns: 1fr 1fr;
  }
  #toast {
    bottom: 104px;
  }
  body:has(.guard) #toast,
  body:has(.login) #toast {
    bottom: 24px;
  }
}
@media (max-width: 430px) {
  .sidebar {
    padding: 20px 20px 0;
  }
  .workspace > .topbar {
    padding: 12px 20px;
    gap: 8px;
  }
  .topbar .identity .avatar {
    display: none;
  }
  .content {
    padding: 20px 16px 112px;
  }
  .content > .row:first-child h1 {
    font-size: 34px;
  }
  .card {
    padding: 22px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
    min-height: 184px;
    border-radius: var(--container-radius);
  }
  .stat > span:first-of-type {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .stat strong {
    font-size: 34px;
  }
  .stat > span:last-child {
    font-size: 11px;
  }
  .guard {
    padding: 16px 16px 40px;
  }
  .guard .brand strong {
    font-size: 17px;
  }
  .guard .brand img {
    width: 38px;
    height: 38px;
  }
  .guard > .row:first-of-type {
    padding: 8px 10px;
  }
  .guard > .row:first-of-type small {
    font-size: 11px;
  }
  .guard h1 {
    font-size: 32px;
  }
  .guard .shift {
    padding: 24px;
  }
  .guard .shift h2 {
    font-size: 26px;
  }
  .guard .actions button {
    padding: 22px 20px;
    font-size: 17px;
    min-height: 132px;
  }
  .sheet {
    grid-template-columns: 1fr;
  }
  .source {
    font-size: 11px;
  }
  .approveSummary,
  .transition {
    padding: 2px 16px 20px;
  }
  h2 {
    font-size: 22px;
    line-height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active,
  .button:active {
    transform: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .back,
  #toast,
  button,
  .content > .row,
  .content > .notice {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .sheet {
    grid-template-columns: 1fr 1fr;
  }
  .sheet article {
    break-inside: avoid;
    border-radius: 0;
  }
  .sheet img {
    width: 170px;
  }
  body {
    background: white;
    color: black;
  }
  .card {
    box-shadow: none;
  }
}
/* Keep the text label on the guard's shared-phone sign-out control. */
.guard .topbar button[data-action="logout"] .button-label {
  display: inline;
}
.guard .topbar button[data-action="logout"] .md-icon {
  display: none;
}
.guard .topbar button[data-action="logout"] {
  font-size: 13px;
}
.off-duty .off-duty-identity {
  margin: 24px 0 32px;
}
.off-duty .shift {
  margin-top: 24px;
}
.off-duty .call {
  margin-top: 20px;
}
.off-duty .shift {
  min-height: clamp(300px, 43svh, 430px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
}
.off-duty .shift > .row {
  align-items: flex-start;
  gap: 16px;
}
.off-duty .shift h2 {
  max-width: 190px;
  font-size: 34px;
  line-height: 1.12;
}
.off-duty .shift .primary {
  min-height: 72px;
  font-size: 22px;
}
.off-duty .call {
  min-height: 64px;
  font-size: 18px;
}
.message-history {
  margin-top: 20px;
}
.message-page h1 {
  font-size: 30px;
}
.message-page .pill {
  white-space: normal;
}
.off-duty .primary .md-icon {
  display: none;
}
.on-duty .duty-identity {
  margin: 24px 0 28px;
}
.guard .duty-card {
  padding: 28px;
  border-radius: var(--container-radius);
}
.guard .duty-card h2 {
  max-width: 240px;
}
.guard .duty-card > button[data-action="shift"] {
  background: #263e5c;
  color: #ffffff;
}
.shift-facts {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.shift-facts > div {
  display: grid;
  gap: 5px;
}
.shift-facts span {
  font-size: 13px;
  color: #315b4b;
}
.shift-facts strong {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.4;
}
.shift-facts .elapsed {
  border-top: 1px solid #006b5620;
  border-bottom: 1px solid #006b5620;
  padding: 16px 0;
}
.shift-facts #shiftTimer {
  font-size: 44px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 1px;
}
.guard .actions button[data-page="message"] {
  background: #bceee3;
  color: #124e43;
  border-radius: var(--container-radius);
}

.guard .actions #patrolCountdown {
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.guard .actions button.patrol-soon {
  box-shadow: inset 0 0 0 3px #986500;
}
.guard .actions button.patrol-due {
  background: #ffdad6;
  color: #690005;
  box-shadow: inset 0 0 0 3px #b3261e;
}

.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guard .greeting-row .back {
  margin: 0;
  flex-shrink: 0;
  padding: 8px;
}
.greeting-row h1 {
  margin: 0;
}
.checkpoint-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.checkpoint-choice {
  display: flex;
  width: 100%;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
  padding: 16px;
  border: 2px solid transparent;
  background: #fff0bd;
  color: #584300;
}
.checkpoint-choice:not(:disabled):hover,
.checkpoint-choice:not(:disabled):active {
  background: #fff0bd;
}
.checkpoint-choice[aria-pressed="true"],
.checkpoint-choice[aria-pressed="true"]:hover,
.checkpoint-choice[aria-pressed="true"]:active {
  border-color: #315c95;
  background: #dce7f4;
  color: #263e5c;
}
.checkpoint-choice:disabled {
  opacity: 1;
  color: #315b4b !important;
  background: #ccebd9 !important;
  cursor: default;
}
.checkpoint-choice:not(:disabled) .pill {
  background: #ffe49a;
  color: #584300;
}
.checkpoint-choice:disabled .pill {
  background: #b5dfc6;
  color: #164c35;
}
.patrol-card progress {
  background: #fff0bd;
}
.patrol-card progress::-webkit-progress-bar {
  background: #fff0bd;
}
.patrol-card progress::-moz-progress-bar {
  background: var(--md-primary);
}
#manualDialog {
  width: calc(100% - 32px);
  max-width: 390px;
  border: 0;
  border-radius: var(--container-radius);
  padding: 24px;
  color: var(--md-on-surface);
}
#manualDialog::backdrop {
  background: #0d292b80;
}

.scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}
.guard .scan-actions button {
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  padding: 20px;
  border: 0;
  border-radius: var(--container-radius);
  font-size: 17px;
  line-height: 1.4;
  background: #dce7f4;
  color: #263e5c;
}
.guard .scan-actions button[data-action="nfc"] {
  background: #e9ddff;
  color: #49316c;
}
.guard .scan-actions button:disabled {
  cursor: default;
}
.manual-code-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.manual-code-link[aria-disabled="true"] {
  color: #64736b;
  cursor: default;
}

.message-page .duty-identity {
  margin: 24px 0 28px;
}
.report-card #typedReport summary {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-card audio {
  width: 100%;
  margin: 8px 0;
}
.report-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.report-photo-actions button {
  min-height: 80px;
  padding: 16px 12px;
  border-radius: var(--container-radius);
}
#photoDialog {
  width: calc(100% - 32px);
  max-width: 440px;
  border: 0;
  border-radius: var(--container-radius);
  padding: 24px;
}
#photoDialog::backdrop {
  background: #0d292b80;
}
#photoPreview {
  width: 100%;
  border-radius: var(--container-radius);
  background: #102a25;
}

.guard #record.is-recording {
  background: #9c4146;
  color: white;
}
#recordStatus {
  font-variant-numeric: tabular-nums;
}

.photo-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.photo-dialog-actions button {
  min-height: 56px;
  padding: 12px;
}

.report-photo-actions small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 13px;
}

.confirmation-dialog {
  width: calc(100% - 40px);
  max-width: 390px;
  padding: 28px;
  border: 0;
  border-radius: var(--container-radius);
  background: #fffdf5;
  color: var(--md-on-surface);
  box-shadow: 0 16px 48px #102a2533;
}
.confirmation-dialog::backdrop {
  background: #102a2580;
}
.confirmation-dialog h2 {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.3;
}
.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.confirmation-actions button {
  min-height: 56px;
  padding: 12px;
}
.confirmation-actions .end-confirm {
  background: #9c4146;
  color: white;
}

.report-card #submitReport:disabled {
  cursor: default;
}

.shift-report-history {
  margin-top: 16px;
}
.shift-report-history > summary {
  padding: 4px 0;
  font-size: 16px;
}
.shift-report-entry {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  min-height: 48px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
}
.shift-report-entry + .shift-report-entry {
  border-top: 1px solid var(--md-outline-variant);
}
.shift-report-entry:active {
  border-radius: 0;
  transform: none;
}
#shiftReportDialog {
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 85svh;
  overflow: auto;
  padding: 28px;
  border: 0;
  border-radius: var(--container-radius);
  background: #fffdf5;
  color: var(--md-on-surface);
}
#shiftReportDialog::backdrop {
  background: #102a2580;
}
.report-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-history-media audio {
  width: 100%;
  margin: 12px 0;
}

.saved-report .report-datetime {
  font-size: clamp(14px, 3.7vw, 18px);
  font-weight: 550;
  line-height: 1.4;
}
.saved-report audio {
  display: block;
  width: 100%;
  margin: 16px 0;
}
.saved-report textarea[readonly] {
  min-height: 140px;
  background: #f1f5f2;
  resize: vertical;
}
.saved-attachment {
  margin: 16px 0;
}
#savedReportPhotos .photo {
  width: 100%;
  height: auto;
  max-height: none;
}

#instructionPlayback audio,
#instructionPreview,
#shiftInstructionPreview {
  width: 100%;
  margin: 12px 0;
}
.instruction-copy {
  white-space: pre-wrap;
}
#recordInstructions.recording {
  background: #9c4146;
  color: white;
}
#recordShiftInstructions.is-recording {
  background: #9c4146;
  color: white;
}
#shiftInstructionStatus {
  display: block;
  text-align: center;
}

[data-message-media] audio {
  display: block;
  width: 100%;
  margin: 12px 0;
}

#chatMessages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-bubble {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-wrap: anywhere;
}
.chat-bubble + .chat-bubble {
  border-top: 1px solid var(--md-outline-variant);
}
.chat-bubble strong {
  font-size: 14px;
}
.chat-bubble small {
  display: block;
  font-size: 12px;
  color: var(--md-on-surface-variant);
  margin-top: 8px;
}
.chat-text {
  white-space: pre-wrap;
  margin: 8px 0;
}
.conversation {
  margin: 24px 8px;
}
#chatSelect {
  width: 100%;
}

.off-duty .call:disabled {
  cursor: default;
}

.message-unread {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffdf9e;
  color: #3c2b00;
  border-radius: var(--container-radius);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}
/* Supervisor uses the guard's mobile canvas on every screen, including desktop. */
.supervisor-mobile {
  width: 100%;
  max-width: 600px;
}
.supervisor-mobile .grid,
.supervisor-mobile .stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.supervisor-mobile .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.supervisor-mobile .stat {
  min-height: 140px;
  padding: 18px;
}
.supervisor-mobile .stat strong {
  font-size: 32px;
}
.supervisor-mobile .stat span {
  font-size: 12px;
  line-height: 1.5;
}
.supervisor-mobile .card {
  padding: 20px;
  min-width: 0;
}
.supervisor-mobile .row {
  flex-wrap: wrap;
  gap: 12px;
}
.supervisor-mobile .row > * {
  min-width: 0;
}
.supervisor-mobile .item {
  overflow-wrap: anywhere;
}
.supervisor-mobile input,
.supervisor-mobile select,
.supervisor-mobile textarea,
.supervisor-mobile audio {
  max-width: 100%;
  min-width: 0;
}
.supervisor-mobile .media {
  flex-wrap: wrap;
}
.supervisor-mobile .media button {
  max-width: 100%;
  white-space: normal;
}
.supervisor-mobile .sheet {
  grid-template-columns: minmax(0, 1fr);
}
.supervisor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}
.supervisor-heading h2 {
  margin: 0;
}
.supervisor-filters {
  margin: 12px 0;
}
.supervisor-mobile .supervisor-actions button {
  min-height: 110px;
  font-size: 17px;
}
.supervisor-mobile .supervisor-actions button[data-page="message"] {
  background: #dce9ff;
  color: #193b64;
}
.supervisor-mobile .supervisor-actions button[data-page="incidents"] {
  background: #ffdad6;
  color: #73332d;
}
.supervisor-mobile .supervisor-actions button[data-page="instructionSetup"] {
  background: #e9def8;
  color: #4e386b;
}
.supervisor-mobile .supervisor-actions button[data-page="patrols"] {
  background: #d0edda;
  color: #174b35;
}
.supervisor-mobile .supervisor-actions button[data-page="summaries"] {
  background: #fff0c2;
  color: #5c4600;
}
.supervisor-mobile .supervisor-actions button[data-page="admin"] {
  background: #d7edf0;
  color: #254d55;
}
@media (max-width: 420px) {
  .supervisor-mobile {
    padding: 16px 16px 40px;
  }
  .supervisor-mobile .card {
    padding: 16px;
  }
  .supervisor-mobile .stat {
    padding: 14px;
  }
}

/* Guard color semantics: blue choices; amber pending; red attention; green active/completed. */
.guard:not(.supervisor-mobile) {
  --guard-navigation: #dce7f4;
  --guard-on-navigation: #263e5c;
}
.guard:not(.supervisor-mobile) .actions button[data-page],
.guard:not(.supervisor-mobile) .scan-actions button,
.guard:not(.supervisor-mobile) .report-photo-actions button,
.guard:not(.supervisor-mobile) button[data-page="message"] {
  background: var(--guard-navigation);
  color: var(--guard-on-navigation);
}
.guard:not(.supervisor-mobile) .actions button[data-page] {
  border-radius: var(--container-radius);
}
.guard.off-duty .shift {
  background: var(--guard-navigation);
}
.guard:not(.supervisor-mobile) .actions button.patrol-soon {
  background: #fff0bd;
  color: #584300;
  box-shadow: inset 0 0 0 3px #986500;
}
.guard:not(.supervisor-mobile) .actions button.patrol-due {
  background: #ffdad6;
  color: #690005;
  box-shadow: inset 0 0 0 3px #b3261e;
}

/* Supervisor navigation is neutral; dashboard color represents recorded status. */
.supervisor-mobile .supervisor-actions button[data-page],
.supervisor-mobile .report-photo-actions button {
  background: #dce7f4;
  color: #263e5c;
  border-radius: var(--container-radius);
}
.supervisor-mobile .stat[data-tone] {
  background: #ccebd9;
  color: #164c35;
}
.supervisor-mobile .stat[data-tone="attention"] {
  background: #ffdad6;
  color: #690005;
}

/* Today's supervisor overview: three vertical KPIs, actions, then detail cards. */
.supervisor-mobile .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 24px;
}
.supervisor-mobile .stats .stat {
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  border-radius: var(--container-radius);
  min-height: 190px;
}
.supervisor-mobile .stats .stat strong {
  font-size: clamp(20px, 5.8vw, 30px);
  white-space: nowrap;
  margin: 12px 0;
}
.supervisor-mobile .stats .stat span {
  font-size: 11px;
  line-height: 1.45;
}
.supervisor-mobile .stats .stat > span:first-of-type {
  min-height: 32px;
  font-weight: 650;
}
.supervisor-mobile .stats .stat-symbol {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.supervisor-quick-start {
  margin-bottom: 24px;
}
.supervisor-quick-start h2 {
  margin-bottom: 12px;
}
.supervisor-quick-start .actions {
  margin-top: 0;
}

.supervisor-mobile .stats .stat {
  min-height: 104px;
  padding: 14px 8px;
}
.supervisor-mobile .stats .kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
}
.supervisor-mobile .stats .kpi-label .md-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.supervisor-mobile .stats .kpi-label span {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}
.supervisor-mobile .stats .stat strong {
  font-size: clamp(19px, 5.5vw, 28px);
  margin: 12px 0 0;
}

/* Read-only KPI strip, visually distinct from the rounded action tiles. */
.supervisor-mobile .stats {
  gap: 0;
  background: #f3ecdf;
  border-radius: 0;
}
.supervisor-mobile .stats .stat[data-tone] {
  background: transparent;
  color: #263e5c;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  cursor: default;
}
.supervisor-mobile .stats .stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12.5%;
  height: 75%;
  width: 1px;
  background: #cbd5de;
  pointer-events: none;
}
.supervisor-mobile .stats .kpi-caution {
  display: inline-flex;
  flex-shrink: 0;
  color: #b3261e;
}

.supervisor-mobile .stats .kpi-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 3px;
  margin-top: 12px;
}
.supervisor-mobile .stats .kpi-value strong {
  margin: 0;
}
.supervisor-mobile .stats .kpi-value .kpi-qualifier {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.overview-shift-picker {
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.overview-shift-picker > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 0 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #263e5c;
  cursor: pointer;
  list-style: none;
}
.overview-shift-picker > summary::-webkit-details-marker {
  display: none;
}
.shift-picker-label {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.shift-picker-label strong {
  font-size: 16px;
  font-weight: 650;
}
.shift-picker-label > span {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.shift-picker-label small {
  font-size: 10px;
  font-weight: 400;
}
.shift-picker-arrow {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 120ms ease;
}
.overview-shift-picker[open] .shift-picker-arrow {
  transform: rotate(180deg);
}
.overview-shift-picker > summary:focus-visible {
  outline: 2px solid #315c95;
  outline-offset: 4px;
}
.shift-picker-options {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: #fff;
  padding: 6px;
  border: 1px solid #cbd5de;
  border-radius: var(--container-radius);
  box-shadow: 0 6px 18px #102a2520;
}
.shift-picker-options button {
  width: 100%;
  padding: 12px;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--container-radius);
  font-size: 13px;
}
.shift-picker-options button[aria-pressed="true"] {
  background: #dce7f4;
  font-weight: 650;
}

.supervisor-heading:has(.overview-shift-picker) {
  gap: 8px;
}
.supervisor-heading:has(.overview-shift-picker) h2 {
  font-size: clamp(16px, 4.5vw, 22px);
}
.overview-shift-picker > summary {
  gap: 5px;
  padding-left: 0;
}
.shift-picker-label strong {
  font-size: 14px;
}

.overview-date-picker {
  position: relative;
  min-width: 0;
}
.overview-date-picker > summary {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 600;
  padding: 8px 0;
}
.overview-date-picker > summary::-webkit-details-marker {
  display: none;
}
.overview-calendar {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 11;
  width: 250px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background: white;
  border: 1px solid #cbd5de;
  border-radius: var(--container-radius);
  box-shadow: 0 6px 18px #102a2520;
}
.overview-calendar button {
  margin-top: 12px;
}
.overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.overview-row + .overview-row {
  border-top: 1px solid #dce2df;
}
.overview-row small {
  display: block;
  margin-top: 5px;
  color: #52655d;
}
.supervisor-mobile .supervisor-actions button {
  position: relative;
}

.overview-row > div {
  flex: 1;
  min-width: 0;
}
.overview-row > button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 12px;
}
.overview-row > button .button-label {
  white-space: nowrap;
}
.overview-date-picker > summary {
  color: #263e5c;
}

.overview-date-picker[open] .shift-picker-arrow {
  transform: rotate(180deg);
}

/* Supervisor Home: consistent spacing and hierarchy, isolated from other pages. */
.supervisor-home {
  padding-top: 16px;
  color: #182c2a;
}
.supervisor-home .topbar {
  padding-bottom: 16px;
}
.supervisor-home .duty-identity {
  margin: 16px 0 20px;
}
.supervisor-home .duty-identity .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 1px;
}
.supervisor-home .greeting-row h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.supervisor-home .supervisor-quick-start {
  margin: 0 0 24px;
}
.supervisor-home .supervisor-actions {
  gap: 12px;
  margin: 0;
  grid-auto-rows: 116px;
}
.supervisor-home .supervisor-actions button[data-page] {
  height: 116px;
  min-height: 116px;
  padding: 18px 20px;
  display: grid;
  grid-template-rows: 28px 1fr;
  gap: 8px;
  align-items: start;
  justify-content: stretch;
  font-size: 16px;
  line-height: 21px;
  font-weight: 550;
  letter-spacing: 0;
}
.supervisor-home .supervisor-actions .md-icon {
  width: 26px;
  height: 26px;
}
.supervisor-home .supervisor-actions .button-label {
  align-self: end;
}
.supervisor-home .supervisor-heading {
  margin: 0 0 8px;
  min-height: 48px;
  gap: 8px;
}
.supervisor-home .overview-date-picker > summary,
.supervisor-home .overview-shift-picker > summary {
  min-height: 48px;
  padding: 8px 0;
  gap: 4px;
}
.supervisor-home .overview-date-picker > summary {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}
.supervisor-home .shift-picker-arrow {
  width: 24px;
  height: 24px;
}
.supervisor-home .shift-picker-label {
  gap: 4px;
}
.supervisor-home .shift-picker-label strong {
  font-size: 13px;
}
.supervisor-home .shift-picker-label > span {
  font-size: 12px;
}
.supervisor-home #dashboardPage {
  animation: none;
}
.supervisor-home .stats {
  margin: 0 0 20px;
}
.supervisor-home .stats .stat[data-tone] {
  min-height: 116px;
  padding: 14px 10px;
}
.supervisor-home .stats .kpi-label {
  min-height: 32px;
  gap: 5px;
  align-items: center;
}
.supervisor-home .stats .kpi-label .md-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.supervisor-home .stats .kpi-label span {
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
}
.supervisor-home .stats .kpi-value {
  margin-top: 12px;
  column-gap: 4px;
  row-gap: 4px;
}
.supervisor-home .stats .kpi-value strong {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.supervisor-home .stats .kpi-value .kpi-qualifier {
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.supervisor-home #dashboardPage > .grid {
  gap: 16px;
}
.supervisor-home #dashboardPage > .grid > .card {
  padding: 16px;
  border-radius: var(--container-radius);
}
.supervisor-home #dashboardPage > .grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #182c2a;
  letter-spacing: 0;
}
.supervisor-home .overview-row {
  align-items: start;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 0;
}
.supervisor-home .overview-row:last-child {
  padding-bottom: 0;
}
.supervisor-home .overview-row > div {
  flex: 1 0 100%;
}
.supervisor-home .overview-row strong {
  font-size: 15px;
  line-height: 22px;
  font-weight: 550;
  color: #182c2a;
}
.supervisor-home .overview-row small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  color: #52655d;
}
.supervisor-home .overview-row .overview-row-action {
  margin-left: auto;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.supervisor-home .supervisor-filters {
  margin: 20px 0 0;
}
.supervisor-home .supervisor-filters > summary {
  font-size: 12px;
  line-height: 20px;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 500;
}
@media (min-width: 440px) {
  .supervisor-home .supervisor-actions {
    grid-auto-rows: 120px;
  }
  .supervisor-home .supervisor-actions button[data-page] {
    height: 120px;
    min-height: 120px;
  }
  .supervisor-home .stats .kpi-label span {
    font-size: 12px;
  }
  .supervisor-home #dashboardPage > .grid > .card {
    padding: 20px;
  }
}

/* Full square-corner action tiles with aligned labels. */
.supervisor-home .supervisor-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: 8px;
}
.supervisor-home .supervisor-actions button[data-page] {
  height: 92px;
  min-height: 92px;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: #dce7f4;
  box-shadow: none;
  grid-template-rows: 24px 16px;
  align-content: center;
  gap: 6px;
  justify-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}
.supervisor-home .supervisor-actions .action-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: #263e5c;
}
.supervisor-home .supervisor-actions button[data-page]:hover {
  background: #cddded;
}
.supervisor-home .supervisor-actions button:focus-visible {
  outline: 2px solid #263e5c;
  outline-offset: 2px;
}
.supervisor-home .supervisor-actions .md-icon {
  width: 24px;
  height: 24px;
}
.supervisor-home .supervisor-actions .button-label {
  align-self: start;
  display: block;
  text-align: center;
  white-space: nowrap;
  height: 16px;
  line-height: 16px;
}
.supervisor-home .supervisor-actions .message-unread {
  top: 0;
  right: 0;
  padding: 2px 5px;
  font-size: 10px;
}

/* Compact, collapsible supervisor attention list. */
.supervisor-home .attention-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.supervisor-home .attention-section > summary::-webkit-details-marker { display: none; }
.supervisor-home .attention-section > summary h2 { margin: 0; }
.supervisor-home .attention-section > summary svg { flex-shrink: 0; }
.supervisor-home .attention-section[open] > summary svg { transform: rotate(180deg); }
.supervisor-home .attention-section .overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 10px 0;
}
.supervisor-home .attention-section .overview-row > div { min-width: 0; }
.supervisor-home .attention-section .overview-row small { margin-top: 3px; }
.supervisor-home .attention-section .overview-row .overview-row-action {
  margin: 0;
  padding: 0 0 0 4px;
  min-height: 44px;
}

.supervisor-home .attention-section > summary { padding: 0; }
.supervisor-home .attention-section[open] { padding-bottom: 0; }

/* Keep attention descriptions compact while preserving full text for Review. */
.supervisor-home .attention-section .overview-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Align the Review label with the description while keeping a 44px touch target. */
.supervisor-home .attention-section .overview-row .overview-row-action {
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 0;
  line-height: 22px;
}

.supervisor-home .attention-tools, .supervisor-home .attention-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.supervisor-home .attention-tools select { width: auto; min-height: 44px; padding: 8px; font-size: 12px; }
.supervisor-home .attention-pagination { border-top: 1px solid #dde2de; margin-top: 8px; }
.supervisor-home .attention-pagination button { min-height: 44px; padding: 8px 4px; border: 0; font-size: 12px; }

.supervisor-home .attention-sort-picker { width: max-content; margin-left: auto; }
.supervisor-home .attention-sort-picker > summary { font-size: 13px; font-weight: 500; }
.supervisor-home .attention-sort-picker[open] { padding-bottom: 0; }

/* Stable three-row attention panel and quiet text pagination. */
.supervisor-home .attention-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
}
.supervisor-home .attention-heading h2 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.supervisor-home .attention-sort-picker > summary {
  min-height: 44px;
  padding: 0;
  gap: 2px;
  font-size: 12px;
  white-space: nowrap;
}
.supervisor-home .attention-list { height: 192px; }
.supervisor-home .attention-list .overview-row {
  box-sizing: border-box;
  height: 64px;
  padding: 10px 0;
  grid-template-rows: 22px 18px;
  column-gap: 8px;
  row-gap: 3px;
}
.supervisor-home .attention-list .overview-row > div { display: contents; }
.supervisor-home .attention-list .overview-row strong { grid-column: 1; grid-row: 1; }
.supervisor-home .attention-list .overview-row small {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supervisor-home .attention-list .overview-row .overview-row-action {
  grid-column: 2;
  grid-row: 1 / 3;
}
.supervisor-home .attention-footer { height: 44px; }
.supervisor-home .attention-pagination { margin-top: 0; border-top: 0; }
.supervisor-home .attention-pagination button,
.supervisor-home .attention-pagination button:hover,
.supervisor-home .attention-pagination button:disabled {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.supervisor-home .attention-pagination button:disabled {
  cursor: default;
  color: #78817e !important;
  background: transparent !important;
}
@media (min-width: 440px) {
  .supervisor-home .attention-heading h2 { font-size: 18px; }
  .supervisor-home .attention-sort-picker > summary { font-size: 13px; }
}

/* A direct calendar surface for the overview date, without a nested native picker. */
.supervisor-home .overview-date-picker > summary { gap: 8px; }
.overview-calendar-icon { width: 22px; height: 22px; flex: 0 0 22px; color: #526b80; }
.overview-date-picker[open] > summary { color: #006b56; }
.supervisor-home .overview-calendar {
  width: 304px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid #dce2df;
  border-radius: var(--container-radius);
  box-shadow: 0 12px 32px #182c2a22;
  top: calc(100% + 4px);
}
.overview-calendar .calendar-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.overview-calendar .calendar-month strong { font-size: 15px; }
.overview-calendar .calendar-month button { width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--container-radius); font-size: 26px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { text-align: center; font-size: 11px; color: #63736e; padding: 6px 0; }
.overview-calendar .calendar-days button { width: 100%; min-height: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: var(--container-radius); font-size: 13px; color: #263e5c; }
.overview-calendar .calendar-days button[aria-current="date"] { box-shadow: inset 0 0 0 1px #006b56; }
.overview-calendar .calendar-days button[aria-pressed="true"] { background: #006b56; color: #fff; }
.calendar-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid #e4e8e5; padding-top: 10px; margin-top: 10px; }
.calendar-footer label { font-size: 11px; color: #63736e; }
.calendar-footer input { margin-top: 4px; min-height: 40px; padding: 6px 8px; font-size: 12px; width: 160px; }
.overview-calendar .calendar-footer button { margin: 0; min-height: 44px; border: 0; padding: 8px; font-size: 13px; }

/* Keep guard identity and attendance together in compact rows. */
.supervisor-home .guards-this-shift .overview-row > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.supervisor-home .guards-this-shift .overview-row strong { flex-shrink: 0; }
.supervisor-home .guards-this-shift .overview-row small { margin-top: 0; min-width: 0; }

.guard-thumbnail { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; overflow: hidden; background: #dce7f4; color: #263e5c; align-self: center; }
.guard-thumbnail .md-icon { width: 20px; height: 20px; }
.guard-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Center guard identity; give problem reports a consistent leading icon. */
.supervisor-home .guards-this-shift .overview-row > div { align-items: center; }
.supervisor-home .attention-list .attention-report-row { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 4px; }
.supervisor-home .attention-list .attention-report-row .attention-report-icon { grid-column: 1; grid-row: 1 / 3; color: #526b80; display: flex; align-items: center; align-self: stretch; }
.attention-report-icon .md-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.supervisor-home .attention-list .attention-report-row strong { grid-column: 2; }
.supervisor-home .attention-list .attention-report-row small { grid-column: 2 / -1; }
.supervisor-home .attention-list .attention-report-row .overview-row-action { grid-column: 3; }
.supervisor-mobile .last-record-received { margin: 20px 0 8px; text-align: center; font-size: 12px; line-height: 18px; color: #526b80; }
.problem-list + .problem-list { margin-top: 16px; }
.problem-list h2 { font-size: 18px; margin: 0 0 8px; }
.problem-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 64px; padding: 10px 0; text-align: left; border: 0; border-bottom: 1px solid #dde2e5; border-radius: 0; background: transparent; box-shadow: none; color: #263e5c; }
.problem-row:last-child { border-bottom: 0; }
.problem-file .md-icon { width: 30px; height: 30px; }
.problem-overview { flex: 1; min-width: 0; display: grid; gap: 4px; }
.problem-overview strong, .problem-overview small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.problem-overview small { font-weight: 400; font-size: 12px; color: #526b80; }
.message-recipient { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.message-picker { min-width: 0; }
.message-picker summary { min-height: 44px; }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox-heading h2 { margin: 0; font-size: 16px; }
.inbox-heading .message-picker summary { font-size: 12px; gap: 2px; white-space: nowrap; }
.inbox-pagination { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.inbox-pagination button, .inbox-pagination button:hover, .inbox-pagination button:disabled { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; min-height: 44px; padding: 8px 4px; font-size: 12px; }
.inbox-pagination button:disabled { color: #78817e !important; cursor: default; }
.received-inbox { margin-top: 20px; }
.inbox-row { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid #dce2e5; border-radius: 0; background: transparent; padding: 12px 0; box-shadow: none; }
.inbox-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.inbox-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.inbox-copy small { font-weight: 400; color: #526b80; }
.messaging-disabled .supervisor-home .supervisor-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guard .actions .emergency-action, .guard .actions .emergency-action:hover { background: #b3261e; color: #fff; }
.confirmation-actions .end-confirm { background: #263e5c; color: #fff; }

/* Problems: consistent vertical rhythm and compact, clearly interactive rows. */
.supervisor-problems .duty-identity { margin: 16px 0 24px; }
.supervisor-problems .duty-identity .eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: 1px; }
.supervisor-problems .greeting-row h1 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.5px; }
.supervisor-problems .problem-index { display: grid; gap: 16px; }
.supervisor-problems .problem-list { padding: 16px; border-radius: var(--container-radius); }
.supervisor-problems .problem-list + .problem-list { margin-top: 0; }
.supervisor-problems .problem-list h2 { margin: 0 0 8px; color: #263e5c; font-size: 16px; line-height: 24px; font-weight: 600; }
.problem-count { font-weight: 400; color: #526b80; }
.supervisor-problems .problem-row { min-height: 64px; margin: 0; padding: 12px 0; gap: 8px; line-height: 20px; }
.supervisor-problems .problem-row:hover { background: #f1f5f8; box-shadow: none; }
.supervisor-problems .problem-row:active { transform: none; border-radius: 0; background: #e7eef5; }
.supervisor-problems .problem-row:focus-visible { outline: 2px solid #006b56; outline-offset: 3px; }
.supervisor-problems .problem-file { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; color: #526b80; }
.supervisor-problems .problem-overview { gap: 2px; }
.supervisor-problems .problem-overview strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.supervisor-problems .problem-overview small { font-size: 12px; line-height: 18px; }
.problem-chevron { width: 18px; height: 18px; flex: 0 0 18px; color: #526b80; }
.supervisor-problems .problem-list .empty { margin: 0; padding: 12px 0 4px; text-align: left; font-size: 14px; line-height: 20px; color: #526b80; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.supervisor-problems .problem-index .last-record-received { margin: 0; padding: 4px 8px 12px; }

/* Shared signed-in header geometry: page content must not move the identity. */
html { scrollbar-gutter: stable; }
.guard { padding-top: 16px; }
.guard > .topbar { box-sizing: border-box; height: 72px; min-height: 72px; padding: 0 0 16px; flex-wrap: nowrap; }
.guard > .duty-identity, .guard > .off-duty-identity { margin: 16px 0 24px; }
.guard > .duty-identity > .eyebrow, .guard > .off-duty-identity > .eyebrow { margin: 0 0 8px; font-size: 11px; line-height: 16px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guard .greeting-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 8px; height: 44px; }
.guard .greeting-row h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guard .greeting-row .back { justify-self: end; margin: 0; min-height: 44px; max-width: 104px; padding: 8px; white-space: nowrap; }
.owner-page-identity { min-height: 88px; align-items: center; }
.owner-page-identity .eyebrow { margin: 0 0 8px; }
.owner-page-identity h1 { margin: 0; font-size: 28px; line-height: 36px; }
.owner-page-title { margin: 20px 0 12px; }
.problem-detail > .muted:first-child { margin: 0 0 16px; }
.problem-written { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.problemResolve { margin-top: 20px; }
.problemResolve .primary { margin-top: 16px; }
.resolution-detail > .muted:first-child { margin: 0 0 16px; }
.resolution-comments { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Reports and settings share the spacing and surfaces of the Problems journey. */
.supervisor-standard > .supervisor-heading { margin: 0 0 16px; }
.supervisor-standard > .supervisor-heading h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.supervisor-standard #dashboardPage > .card, .supervisor-standard #dashboardPage > .grid { margin-top: 0 !important; }
.supervisor-standard .card { padding: 16px; border-radius: var(--container-radius); }
.supervisor-standard .card h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.supervisor-standard .empty { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 12px 0; text-align: left; }
.supervisor-standard .settings-index .actions { margin: 0; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 92px; }
.supervisor-standard .settings-index .actions button { display: grid; height: 92px; min-height: 92px; padding: 12px 4px; border: 0; border-radius: 0; grid-template-rows: 24px 32px; align-content: center; justify-items: center; gap: 6px; font-size: 12px; line-height: 16px; text-align: center; background: #dce7f4; color: #263e5c; box-shadow: none; }
.supervisor-standard .settings-index .actions .button-label { align-self: start; line-height: 16px; text-align: center; }
.supervisor-standard .settings-index .actions button { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; font-weight: 550; letter-spacing: 0; }
.supervisor-standard .settings-index .actions .action-icon { display: grid; place-items: center; width: 24px; height: 24px; background: transparent; color: #263e5c; }
.supervisor-standard .settings-index .actions button:hover { background: #cddded; }
.supervisor-standard .settings-index .actions .md-icon { width: 24px; height: 24px; margin: 0; }
.daily-reports-card > .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.daily-reports-card > .row button { width: 100%; margin: 0; }
.daily-reports-card > .item { padding: 16px 0; }
.reports-date-picker > summary { font-size: 13px; min-height: 44px; gap: 4px; }
.reports-date-options { position: absolute; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid #dde2e5; border-radius: var(--container-radius); padding: 16px; box-shadow: 0 6px 20px #182c2a18; width: 240px; }
.report-period { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.report-range, .report-view-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.report-view-actions { margin-top: 20px; }
.report-view-actions button { padding: 12px 8px; font-size: 14px; }
.guard .report-view-actions button { box-sizing: border-box; height: 52px; min-height: 52px; margin: 0; padding: 12px 8px; line-height: 20px; border-radius: var(--container-radius); align-self: stretch; }
.report-period-note { font-size: 12px; line-height: 18px; color: #526b80; margin: 16px 0 0; }
.activity-report { margin-top: 16px; }
.activity-counts { margin: 16px 0; }
.activity-counts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dde2e5; }
.activity-counts dd { margin: 0; font-weight: 600; }
.activity-counts dd { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.activity-caution { display: inline-flex; color: #b3261e; }
.activity-caution .md-icon { width: 18px; height: 18px; }
.activity-record { padding: 12px 0; border-bottom: 1px solid #dde2e5; overflow-wrap: anywhere; }
.activity-record small { display: block; margin-top: 4px; }
.activity-report > small { display: block; margin-top: 16px; }
/* Settings uses the same fixed-width action tiles as the supervisor home. */
.supervisor-standard .settings-index .settings-tabs { margin: 0 0 20px; }
.supervisor-standard .settings-index .settings-tabs button { grid-template-rows: 24px 20px; min-height: 84px; gap: 8px; }
.supervisor-standard .settings-index .settings-tabs button[aria-selected="true"] { outline: 2px solid #183c62; outline-offset: -2px; background: #cbdcf0; }
.supervisor-standard .settings-index .settings-tabs .button-label { font-size: 13px; line-height: 20px; }
#settings-panel { display: grid; gap: 16px; min-width: 0; }
#settings-panel .card { margin: 0; }
#settings-panel .settings-fields { display: grid; gap: 14px; padding: 16px 0; min-width: 0; }
#settings-panel label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
#settings-panel input, #settings-panel select, #settings-panel textarea { width: 100%; min-width: 0; box-sizing: border-box; }
#settings-panel small, #settings-panel .settings-helper { color: #596775; font-size: 12px; font-weight: 400; line-height: 1.5; }
#settings-panel .settings-time-row, #settings-panel .settings-button-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#settings-panel .settings-button-row button { margin: 0; min-height: 44px; font-size: 13px; }
#settings-panel .settings-shift { border-bottom: 1px solid #e1e5e9; padding: 12px 0; }
#settings-panel summary { font-weight: 600; cursor: pointer; padding: 8px 0; }
#settings-panel summary small { margin-left: 8px; white-space: nowrap; }
#settings-panel fieldset { border: 1px solid #e1e5e9; padding: 12px; border-radius: var(--container-radius); }
#settings-panel .settings-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 400; }
#settings-panel .settings-check input { width: 20px; height: 20px; }
#settings-panel .settings-common .card { border: 0; padding: 8px 0; box-shadow: none; }
#settings-panel .settings-status:empty { display: none; }
#settings-panel .settings-status { font-size: 14px; margin: 12px 0 0; }
#settings-panel .settings-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#settings-panel .checkpoint-edit { border-bottom: 1px solid #e1e5e9; }
.qr-print-frame { position: fixed; width: 1px; height: 1px; bottom: 0; border: 0; }
#settings-panel .shift-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
#settings-panel .shift-editor-heading h2 { margin: 0; }
#settings-panel .shift-text-action { background: transparent; border: 0; box-shadow: none; border-radius: 0; color: #006b56; min-height: 44px; padding: 8px 0; margin: 0; font-size: 14px; }
#settings-panel .settings-shift { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#settings-panel .settings-shift + .settings-shift { border-top: 1px solid #e5e8eb; }
#settings-panel .settings-shift > summary { box-sizing: border-box; min-height: 44px; margin: 0; padding: 12px 0; line-height: 20px; font-size: 14px; }
#settings-panel .settings-shift .settings-fields { gap: 12px; padding: 6px 0 12px; }
#settings-panel .settings-shift label { margin: 0; gap: 4px; }
#settings-panel .settings-shift input:not([type="checkbox"]) { height: 48px; min-height: 48px; padding: 10px 12px; margin: 0; }
#settings-panel .settings-shift textarea { height: 88px; min-height: 88px; margin: 0; padding: 10px 12px; }
#settings-panel .settings-shift fieldset { border: 0; border-radius: 0; padding: 0; margin: 0; min-width: 0; }
#settings-panel .settings-shift legend { padding: 0; margin-bottom: 2px; font-size: 14px; font-weight: 600; }
#settings-panel .settings-shift .settings-check { min-height: 44px; }
#settings-panel .settings-shift .settings-check input { margin: 0; }
#settings-panel .shift-save-row { margin-top: 8px; }
#settings-panel .shift-save-row button { width: 100%; min-height: 48px; margin: 0; }
#settings-panel .shift-save-row button:disabled { background: #e6e8ea; color: #737a80; border-color: transparent; cursor: default; box-shadow: none; }
#settings-panel .shift-draft { font-size: 11px; font-weight: 400; color: #805700; margin-left: 8px; }
.checkpoint-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#settings-panel .checkpoint-heading h2 { margin: 0; font-size: 20px; }
.checkpoint-count { font-size: 14px; font-weight: 400; color: #596775; }
#settings-panel .checkpoint-text-action { background: transparent; border: 0; box-shadow: none; padding: 8px 0; margin: 0; min-height: 44px; font-size: 14px; color: #006b56; }
.checkpoint-tools { margin-bottom: 4px; }
#settings-panel .checkpoint-search { margin: 0 0 12px; font-size: 13px; }
#settings-panel .checkpoint-search input { margin: 0; min-height: 44px; padding: 10px 12px; }
#settings-panel .checkpoint-list-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 0; margin: 0; text-align: left; color: #263e5c; border: 0; border-bottom: 1px solid #e2e6ea; background: transparent; box-shadow: none; }
#settings-panel .checkpoint-list-row:last-child { border-bottom: 0; }
#settings-panel .checkpoint-list-row:hover { background: #f2f5f8; }
.checkpoint-symbol { display: flex; flex: 0 0 24px; color: #526b80; }
.checkpoint-symbol .md-icon { width: 24px; height: 24px; }
.checkpoint-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.checkpoint-chevron { font-size: 24px; font-weight: 400; color: #526b80; }
#settings-panel .checkpoint-empty { font-size: 14px; line-height: 1.5; margin: 12px 0 4px; color: #596775; }
#settings-panel .checkpoint-status { font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.checkpoint-status:empty { display: none; }
#settings-panel #checkpoint-editor { gap: 12px; padding: 12px 0; }
#settings-panel #checkpoint-editor input { margin: 0; height: 48px; padding: 10px 12px; }
#settings-panel #checkpoint-editor button { min-height: 48px; margin: 0; }
#settings-panel #checkpoint-save:disabled { background: #e6e8ea; color: #737a80; cursor: default; border-color: transparent; }
.checkpoint-tag-section { border-top: 1px solid #e2e6ea; padding-top: 16px; margin-top: 4px; }
.checkpoint-tag-section h3 { font-size: 16px; margin: 0 0 12px; }
.checkpoint-qr { display: flex; justify-content: center; min-height: 136px; align-items: center; font-size: 13px; }
.checkpoint-qr img { width: 136px; height: 136px; }
.checkpoint-code { text-align: center; margin: 8px 0 16px; font-size: 12px; overflow-wrap: anywhere; }
.checkpoint-code span { color: #596775; display: block; margin-bottom: 4px; }
.team-avatar { position: relative; display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; background: #e4edf6; color: #526b80; overflow: hidden; }
.team-avatar .md-icon { width: 24px; height: 24px; }
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-row-text { display: grid; flex: 1; min-width: 0; gap: 3px; }
#settings-panel .team-row-text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
#settings-panel .team-row { min-height: 64px; }
#settings-panel #team-editor { gap: 12px; padding: 12px 0 0; }
#settings-panel #team-editor input,#settings-panel #team-editor select { margin: 0; min-height: 48px; padding: 10px 12px; }
#settings-panel #team-save { margin: 0; min-height: 48px; }
#settings-panel #team-save:disabled { background: #e6e8ea; color: #737a80; cursor: default; border-color: transparent; }
#settings-panel .shifts-panel #save-shifts { min-height: 48px; width: 100%; margin: 0; }
#settings-panel .shifts-panel #save-shifts:disabled { background: #e6e8ea; color: #737a80; border-color: transparent; cursor: default; }
#settings-panel .shifts-panel .settings-fields { padding-bottom: 0; }
.gps-record { padding: 16px 0; border-bottom: 1px solid #dde2e5; }
.gps-record h3 { font-size: 16px; margin: 0 0 8px; }
.gps-record small { display: block; line-height: 1.5; color: #596775; }
.property-editor { margin-bottom: 20px; }
.property-editor form,.property-editor label { display: grid; gap: 8px; }
.property-editor form { gap: 12px; }
.property-editor iframe { width: 100%; height: 260px; border: 1px solid #dde2e5; }
.property-editor .property-confirm { display: flex; align-items: center; }
.property-confirm input { width: 22px; flex: 0 0 22px; }
.property-editor small { color: #596775; line-height: 1.5; }
.attention-footer > .checkpoint-text-action { background: transparent; border: 0; font-size: 12px; padding: 8px 0; min-height: 44px; color: #006b56; }
#qr-print-preview { width: min(720px,94vw); max-height: 90vh; overflow: auto; padding: 20px; }
.qr-preview-toolbar h2 { margin: 0 0 12px; }
.qr-preview-toolbar p { font-size: 13px; line-height: 1.5; }
.qr-preview-toolbar > div { display: flex; gap: 12px; }
.qr-print-sheet { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.qr-print-sheet article { text-align: center; border: 1px dashed #aeb6bd; padding: 16px; break-inside: avoid; }
.qr-print-sheet article h2 { font-size: 18px; }
.qr-print-sheet img { display: block; width: 160px; height: 160px; margin: 0 auto 8px; }
.qr-print-sheet code { display: block; overflow-wrap: anywhere; }
#settings-panel .checkpoint-delete { margin: 16px 0 0; padding: 10px 0; background: transparent; border: 0; color: #a3352b; min-height: 44px; }
.checkpoint-delete-dialog .settings-button-row { display: flex; gap: 12px; }
@media print {
  body:has(#qr-print-preview) > :not(#qr-print-preview) { display: none !important; }
  body:has(#qr-print-preview) { background: white; overflow: visible; }
  #qr-print-preview[open] { position: static; display: block; width: 100%; max-width: none; height: auto; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; box-shadow: none; }
  #qr-print-preview::backdrop, .qr-preview-toolbar { display: none; }
  .qr-print-sheet { display: block; }
  .qr-print-sheet article { display: inline-block; vertical-align: top; width: 46%; margin: 1%; box-sizing: border-box; color: black; }
}
.owner-mode { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin:0 0 16px; padding:0; border-bottom:1px solid #dce3e5; color:#53656b; font-size:13px; }
.owner-mode .owner-mode-switch { background:transparent; border:0; border-radius:0; min-height:44px; padding:6px 0 6px 8px; color:var(--primary,#006b59); font-size:13px; box-shadow:none; }
.owner-mobile #ownerContent { display:grid; gap:16px; }
.owner-mobile #ownerOverview { display:grid; gap:16px; }
.owner-mobile .card { margin:0; padding:18px 16px; border-radius:0; }
.owner-mobile .card h2 { font-size:20px; line-height:1.35; margin:0 0 12px; }
.owner-mobile .card p { margin:0 0 12px; line-height:1.5; }
.owner-mobile .card p:last-child { margin-bottom:0; }
.owner-mobile .owner-actions { margin:0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.owner-mobile .owner-actions button { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:24px 18px; justify-content:stretch; justify-items:center; align-content:center; text-align:center; padding:12px 3px; min-height:84px; gap:8px; }
.owner-mobile .owner-actions .button-label { font-size:12px; line-height:18px; min-height:18px; }
.owner-mobile .owner-actions .action-icon { height:24px; }
.owner-mobile .owner-actions svg { width:24px; height:24px; }
.owner-link-row { display:flex; align-items:center; justify-content:space-between; width:100%; gap:12px; padding:12px 0; min-height:56px; border:0; border-top:1px solid #e2e8ea; background:transparent; border-radius:0; box-shadow:none; text-align:left; color:var(--text,#162d3d); }
.owner-link-row > span:first-child { min-width:0; display:grid; gap:3px; }
.owner-link-row strong { font-size:14px; line-height:20px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-link-row small { color:#586a72; font-size:12px; font-weight:400; line-height:18px; }
.owner-link-row > span:last-child { font-size:24px; font-weight:400; }
.owner-link-row:hover { background:#f5f8fa; }
.team-actions { display:flex; align-items:center; gap:10px; }
.team-remove { width:100%; min-height:44px; margin-top:12px; border:1px solid #a84a43; border-radius:0; background:white; color:#8e342d; font-weight:700; }
.team-remove[data-confirm="true"] { background:#fbe9e7; }
.owner-fact { display:flex; align-items:center; gap:10px; padding:12px 0; margin:4px 0; font-size:14px; }
.owner-fact svg { width:22px; height:22px; }
.owner-freshness { color:#586a72; font-size:13px; }
.owner-concern { color:#923b35; font-size:13px; }
.owner-mobile .owner-text-action { background:transparent; border:0; text-align:left; padding:8px 0; min-height:44px; color:#006b59; }
.owner-mobile .last-record-received { margin:0; }
.owner-mobile .owner-billing-state { border-left:3px solid #c7d6df; padding:12px; background:#f4f6f7; margin:16px 0; }
.owner-mobile .owner-billing-state strong { display:block; margin-bottom:8px; }
.owner-mobile .owner-current { display:grid; gap:4px; }
.owner-mobile .owner-current h2 { margin-bottom:4px; }
.owner-mobile .owner-current .muted { font-size:13px; }
.owner-evidence-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.owner-evidence-links button { min-height:52px; padding:8px; border:1px solid #c7dce5; border-radius:0; background:#e9f4fb; color:#173957; font-weight:700; font-size:13px; line-height:18px; }
.owner-evidence { display:grid; gap:0; }
.owner-evidence h3 { margin:18px 0 4px; font-size:16px; }
.owner-evidence-row,.owner-source-row { display:grid; gap:3px; padding:12px 0; border-top:1px solid #e2e8ea; }
.owner-evidence-row strong,.owner-source-row strong { font-size:14px; }
.owner-evidence-row span { font-size:15px; font-weight:700; }
.owner-evidence-row small,.owner-source-row small { color:#586a72; font-size:12px; line-height:17px; }
.owner-problem-list { padding-top:14px; }
.owner-problem-row { display:flex; width:100%; min-height:60px; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border:0; border-top:1px solid #e2e8ea; border-radius:0; background:transparent; box-shadow:none; color:var(--text,#162d3d); text-align:left; }
.owner-problem-row > span:first-child { min-width:0; display:grid; gap:3px; }
.owner-problem-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.owner-problem-row small { color:#586a72; font-size:12px; line-height:17px; }
.owner-problem-row > span:last-child { font-size:24px; font-weight:400; }
.owner-problem-row:hover { background:#f5f8fa; }
.owner-problem-detail .back { margin:0 0 12px; }
.owner-problem-copy { white-space:pre-wrap; }
.owner-media { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 12px; }
.owner-media button { min-height:40px; border-radius:0; }
.owner-resolution { margin-top:18px; padding-top:16px; border-top:1px solid #d9e1e4; }
.owner-subscription dl { margin:16px 0; }
.owner-subscription dl > div { border-bottom:1px solid #e2e8ea; padding:12px 0; }
.owner-subscription dt { font-size:12px; color:#586a72; margin-bottom:4px; }
.owner-subscription dd { margin:0; font-size:14px; }
.owner-mobile #ownerPropertyEditor:empty { display:none; }
.owner-mobile #ownerSupervisors { margin-top:16px; }
.owner-account .greeting-row h1 { overflow-wrap:anywhere; }
.owner-health .owner-kpi { margin:16px 0 0; border:1px solid #e3e8e9; padding:0; border-radius:0; background:white; }
.owner-kpi .health-summary { display:grid; grid-template-columns:56px minmax(0,1fr); gap:8px 12px; padding:16px 12px; }
.health-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:50%; background:#e7f4f2; color:#087e70; align-self:center; }
.health-icon svg { width:34px; height:34px; }
.health-main { display:grid; gap:5px; min-width:0; }
.health-main > strong { font-size:15px; line-height:20px; font-weight:600; }
.health-main > small { font-size:12px; line-height:18px; color:#586772; font-weight:400; }
.health-value { font-size:36px; line-height:1.15; font-weight:650; letter-spacing:-.8px; }
.health-value.risk-value { font-size:25px; letter-spacing:-.3px; }
.health-value.health-empty { font-size:21px; line-height:1.25; letter-spacing:0; color:#586772; }
.health-main .health-value { overflow-wrap:anywhere; }
.health-bar { grid-column:1/-1; display:flex; height:7px; background:#e9eef0; overflow:hidden; margin-top:5px; }
.health-bar span { height:100%; }
.health-caption { grid-column:1/-1; font-size:12px; color:#586772; line-height:18px; font-weight:400; }
.owner-mobile .health-period { font-size:12px; color:#586772; }
.health-description { grid-column:1/-1; color:#586772; font-size:13px; line-height:19px; font-weight:400; }
.problemResolve select { width:100%; margin-bottom:12px; }
