.button--danger {
  border-color: transparent;
  background: oklch(0.48 0.17 25);
  color: white;
  box-shadow: 0 1px 2px oklch(0.30 0.12 25 / 0.18);
}

.button--danger:hover {
  background: oklch(0.44 0.17 25);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-heading--actions,
.page-actions,
.task-title-line,
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.page-heading--actions {
  align-items: flex-start;
}

.page-actions,
.task-title-line {
  align-items: center;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-teal-700);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.feedback {
  margin-block-end: 18px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.feedback--success {
  border-color: color-mix(in oklch, var(--color-success) 18%, transparent);
  background: var(--color-success-bg);
  color: var(--color-success);
}

.feedback--error {
  border-color: color-mix(in oklch, var(--color-danger) 18%, transparent);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label,
.technician-picker legend {
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-ink);
  padding: 10px 12px;
  outline: 0;
  transition:
    background-color var(--motion-fast) var(--ease-out-quart),
    border-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input::placeholder {
  color: var(--color-ink-muted);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-focus);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-focus) 16%, transparent);
}

.field-error {
  color: var(--color-danger);
  font-size: 0.76rem;
  font-weight: 650;
}

.validation-summary {
  color: var(--color-danger);
  font-size: 0.82rem;
  font-weight: 650;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-inline-start: 20px;
}

.check-control {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 650;
}

.check-control input,
.technician-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-teal-600);
}

.auth-page {
  min-height: 100vh;
  background: var(--color-surface);
}

.auth-page::before {
  position: fixed;
  z-index: -1;
  inset-block: 0;
  inset-inline-start: 0;
  width: 46vw;
  background: var(--color-navy-950);
  content: "";
}

.auth-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.auth-brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  font-size: 0.96rem;
}

.auth-brand small {
  margin-block-start: 2px;
  color: oklch(0.80 0.02 250);
  font-size: 0.7rem;
}

.auth-main {
  min-height: calc(100vh - 76px);
  padding: 28px clamp(20px, 5vw, 72px) 64px;
}

.auth-experience {
  display: grid;
  width: min(100%, 1240px);
  min-height: min(690px, calc(100vh - 168px));
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  margin-inline: auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.auth-context {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(38px, 5vw, 72px);
  background: var(--color-navy-950);
  color: white;
}

.auth-context__status,
.directory-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.auth-context__status {
  margin-block-end: clamp(44px, 8vh, 88px);
  background: oklch(1 0 0 / 0.08);
  color: oklch(0.89 0.03 166);
}

.auth-context__status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal-600);
}

.auth-context__eyebrow {
  margin: 0 0 12px;
  color: oklch(0.76 0.07 166);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0;
}

.auth-context h2 {
  max-width: 14ch;
  margin: 0;
  font-size: 2.65rem;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

[dir="rtl"] .auth-context h2 {
  letter-spacing: 0;
}

.auth-context__copy {
  max-width: 52ch;
  margin: 24px 0 0;
  color: oklch(0.81 0.018 250);
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-block-start: 14px;
  border-block-start: 1px solid oklch(1 0 0 / 0.12);
}

.auth-benefits__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: oklch(1 0 0 / 0.08);
  color: var(--color-teal-200);
}

.auth-benefits__icon svg {
  width: 19px;
  height: 19px;
}

.auth-benefits strong,
.auth-benefits small {
  display: block;
}

.auth-benefits strong {
  font-size: 0.84rem;
}

.auth-benefits small {
  margin-block-start: 3px;
  color: oklch(0.75 0.018 250);
  font-size: 0.73rem;
  line-height: 1.45;
}

.auth-panel {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 76px);
  background: var(--color-surface);
}

.auth-panel__heading {
  margin-block-end: 32px;
}

.directory-chip {
  margin-block-end: 22px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

.directory-chip svg {
  width: 16px;
  height: 16px;
}

.directory-chip--local {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.auth-panel h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.auth-panel__heading p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--color-ink-muted);
  line-height: 1.65;
}

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

.auth-method {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-method legend {
  margin-block-end: 8px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-method__options {
  display: grid;
  gap: 8px;
}

.auth-method__option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.auth-method__option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.auth-method__surface {
  display: grid;
  min-height: 62px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  transition:
    border-color var(--motion-fast) var(--ease-out-quart),
    background-color var(--motion-fast) var(--ease-out-quart);
}

.auth-method__option:hover .auth-method__surface {
  border-color: var(--color-teal-200);
  background: color-mix(in oklch, var(--color-teal-100) 55%, white);
}

.auth-method__option > input:focus-visible + .auth-method__surface {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.auth-method__option > input:checked + .auth-method__surface {
  border-color: var(--color-teal-600);
  background: color-mix(in oklch, var(--color-teal-100) 65%, white);
}

.auth-method__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
}

.auth-method__option > input:checked + .auth-method__surface .auth-method__icon {
  background: var(--color-teal-600);
  color: var(--color-navy-950);
}

.auth-method__icon svg {
  width: 17px;
  height: 17px;
}

.auth-method__surface strong,
.auth-method__surface small {
  display: block;
}

.auth-method__surface strong {
  font-size: 0.78rem;
}

.auth-method__surface small {
  margin-block-start: 2px;
  color: var(--color-ink-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.auth-method__check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
}

.auth-method__option > input:checked + .auth-method__surface .auth-method__check {
  border: 4px solid var(--color-teal-600);
}

.auth-input {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  transition:
    background-color var(--motion-fast) var(--ease-out-quart),
    border-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart);
}

.auth-input:focus-within {
  border-color: var(--color-focus);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-focus) 16%, transparent);
}

.auth-input > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-inline-start: 14px;
  color: var(--color-ink-muted);
}

.field .auth-input input {
  min-height: 48px;
  border: 0;
  background: transparent;
  padding-inline: 11px;
  box-shadow: none;
}

.field .auth-input input:focus {
  border: 0;
  box-shadow: none;
}

.password-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline-end: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--color-surface-muted);
  color: var(--color-ink);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.password-toggle__hide,
.password-toggle[aria-pressed="true"] .password-toggle__show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__hide {
  display: block;
}

.auth-validation:not(:empty) {
  padding: 12px 14px;
  border: 1px solid color-mix(in oklch, var(--color-danger) 20%, transparent);
  border-radius: var(--radius-sm);
  background: var(--color-danger-bg);
}

.auth-remember {
  width: fit-content;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-block-start: 4px;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .auth-submit svg {
  transform: rotate(180deg);
}

.auth-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.auth-help svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-block-start: 1px;
}

.dev-role-lab {
  width: min(100%, 1240px);
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.dev-role-lab__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.dev-role-lab__heading h2 {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.dev-role-lab__heading p {
  max-width: 70ch;
  margin: 6px 0 0;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.dev-role-lab__environment {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-warning-bg);
  color: oklch(0.47 0.11 70);
  font-size: 0.66rem;
  font-weight: 800;
}

.dev-role-lab__environment > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dev-role-lab__safety {
  flex: 0 0 auto;
  color: var(--color-ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: end;
}

.dev-role-list {
  display: grid;
}

.dev-role-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 40px minmax(150px, 0.32fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
}

.dev-role-row + .dev-role-row {
  border-block-start: 1px solid var(--color-border);
}

.dev-role-row__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--color-navy-950);
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
}

.dev-role-row__identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dev-role-row__identity strong {
  font-size: 0.78rem;
}

.dev-role-row__identity code {
  width: fit-content;
  color: var(--color-teal-700);
  font-size: 0.69rem;
}

.dev-role-row > p {
  max-width: 72ch;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.dev-role-row > form {
  margin: 0;
}

.access-panel {
  text-align: center;
}

.access-panel__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-block-end: 18px;
  border-radius: 50%;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: 1.2rem;
  font-weight: 850;
}

.access-panel .button {
  margin-block-start: 24px;
}

.logout-form {
  margin: 0;
}

.topbar-logout {
  display: none;
  margin: 0;
}

.logout-button {
  width: 100%;
  border: 0;
  background: transparent;
}

.user-summary__identity {
  min-width: 0;
}

.user-summary__identity strong,
.user-summary__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 14px;
}

.map-summary > span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  font-size: 0.74rem;
}

.map-summary strong {
  color: var(--color-ink);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.task-map-workspace {
  --task-map-height: clamp(480px, calc(100dvh - 230px), 680px);

  position: relative;
  z-index: 0;
  display: grid;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  height: var(--task-map-height);
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  contain: paint;
}

.task-map-canvas-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  contain: layout paint;
}

.task-map-canvas,
.task-map-canvas.leaflet-container {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--color-surface-muted);
}

.task-map-canvas.is-unavailable {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--color-danger);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.map-reset-control {
  position: absolute;
  z-index: 800;
  inset-block-start: 12px;
  right: 12px;
  left: auto;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.map-reset-control:hover {
  border-color: var(--color-teal-600);
  color: var(--color-teal-700);
}

.task-map-empty {
  position: absolute;
  z-index: 700;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  display: grid;
  width: min(320px, calc(100% - 32px));
  gap: 5px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.94);
  color: var(--color-ink-muted);
  text-align: center;
  transform: translate(50%, -50%);
}

[dir="ltr"] .task-map-empty {
  transform: translate(-50%, -50%);
}

.task-map-empty strong {
  color: var(--color-ink);
  font-size: 0.84rem;
}

.task-map-empty span {
  font-size: 0.72rem;
  line-height: 1.55;
}

.task-map-list {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-inline-start: 1px solid var(--color-border);
  background: var(--color-surface);
}

.task-map-list__heading {
  position: sticky;
  z-index: 2;
  inset-block-start: 0;
  padding: 16px;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface);
}

.task-map-list__heading h2 {
  margin: 0;
  font-size: 0.9rem;
}

.task-map-list__heading span {
  display: block;
  margin-block-start: 4px;
  color: var(--color-ink-muted);
  font-size: 0.7rem;
}

.task-map-list__items {
  padding: 6px 12px 12px;
}

.map-task-item {
  padding: 10px 4px 12px;
  border-block-end: 1px solid var(--color-border);
}

.map-task-item.is-active {
  background: var(--color-teal-100);
}

.map-task-item__focus {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: start;
}

.map-task-item__focus > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.map-task-item__focus strong,
.map-task-item__focus small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-task-item__focus strong {
  font-size: 0.8rem;
}

.map-task-item__focus small {
  color: var(--color-ink-muted);
  font-size: 0.68rem;
}

.map-task-item__meta,
.map-task-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 8px;
}

.map-task-item__meta time {
  color: var(--color-ink-muted);
  font-size: 0.66rem;
}

.map-task-item__actions {
  justify-content: flex-start;
  margin-block-start: 10px;
}

.map-task-item__actions a {
  min-height: 32px;
  padding: 6px 8px;
  color: var(--color-teal-700);
  font-size: 0.69rem;
  font-weight: 750;
  text-decoration: none;
}

.task-map-marker-wrap {
  background: transparent;
  border: 0;
}

.task-map-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 8px;
  background: var(--color-info);
  box-shadow: 0 3px 6px oklch(0.18 0.025 250 / 0.30);
  transform: rotate(-45deg);
}

.task-map-marker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
}

.task-map-marker--new {
  background: var(--color-ink-muted);
}

.task-map-marker--assigned {
  background: var(--color-info);
}

.task-map-marker--working {
  background: var(--color-warning);
}

.task-map-marker--review {
  background: oklch(0.58 0.13 305);
}

.task-map-marker--done {
  background: var(--color-success);
}

.task-map-marker--rejected {
  background: var(--color-danger);
}

.task-map-popup {
  display: grid;
  width: min(260px, calc(100vw - 88px));
  max-width: 100%;
  gap: 7px;
  min-width: 0;
  color: var(--color-ink);
  font-family: var(--font-ui);
  text-align: start;
  overflow-wrap: anywhere;
}

.task-map-popup__label {
  color: var(--color-ink-muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.task-map-popup > strong {
  font-size: 0.86rem;
}

.task-map-popup__location {
  color: var(--color-ink-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.task-map-popup > .status-badge {
  width: fit-content;
}

.task-map-popup dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  margin: 2px 0 0;
  font-size: 0.68rem;
}

.task-map-popup dt {
  color: var(--color-ink-muted);
  font-weight: 650;
}

.task-map-popup dd {
  min-width: 0;
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.task-map-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: 3px;
}

.task-map-popup__actions a {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}

.task-map-workspace .leaflet-pane,
.task-map-workspace .leaflet-tile,
.task-map-workspace .leaflet-marker-icon,
.task-map-workspace .leaflet-marker-shadow,
.task-map-workspace .leaflet-tile-container,
.task-map-workspace .leaflet-pane > svg,
.task-map-workspace .leaflet-pane > canvas,
.task-map-workspace .leaflet-zoom-box,
.task-map-workspace .leaflet-image-layer,
.task-map-workspace .leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.task-map-workspace .leaflet-container {
  overflow: hidden;
  background: oklch(0.91 0.01 240);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.task-map-workspace .leaflet-tile,
.task-map-workspace .leaflet-marker-icon,
.task-map-workspace .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.task-map-workspace .leaflet-tile {
  visibility: hidden;
}

.task-map-workspace .leaflet-tile-loaded {
  visibility: inherit;
}

.task-map-workspace .leaflet-zoom-animated {
  transform-origin: 0 0;
}

.task-map-workspace .leaflet-pane {
  z-index: 400;
}

.task-map-workspace .leaflet-tile-pane {
  z-index: 200;
}

.task-map-workspace .leaflet-overlay-pane {
  z-index: 400;
}

.task-map-workspace .leaflet-shadow-pane {
  z-index: 500;
}

.task-map-workspace .leaflet-marker-pane {
  z-index: 600;
}

.task-map-workspace .leaflet-tooltip-pane {
  z-index: 650;
}

.task-map-workspace .leaflet-popup-pane {
  z-index: 700;
}

.task-map-workspace .leaflet-control {
  position: relative;
  z-index: 800;
  float: left;
  clear: both;
  pointer-events: auto;
}

.task-map-workspace .leaflet-top,
.task-map-workspace .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.task-map-workspace .leaflet-top {
  top: 0;
}

.task-map-workspace .leaflet-right {
  right: 0;
}

.task-map-workspace .leaflet-bottom {
  bottom: 0;
}

.task-map-workspace .leaflet-left {
  left: 0;
}

.task-map-workspace .leaflet-right .leaflet-control {
  float: right;
}

.task-map-workspace .leaflet-top .leaflet-control {
  margin-top: 12px;
}

.task-map-workspace .leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.task-map-workspace .leaflet-left .leaflet-control {
  margin-left: 12px;
}

.task-map-workspace .leaflet-right .leaflet-control {
  margin-right: 12px;
}

.task-map-workspace .leaflet-bar {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
}

.task-map-workspace .leaflet-bar a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  font: 700 18px/1 Arial, sans-serif;
  text-decoration: none;
}

.task-map-workspace .leaflet-bar a:last-child {
  border-block-end: 0;
}

.task-map-workspace .leaflet-bar a:hover {
  background: var(--color-surface-muted);
}

.task-map-workspace .leaflet-control-attribution {
  padding: 2px 6px;
  background: oklch(1 0 0 / 0.84);
  color: var(--color-ink-muted);
  font-size: 0.6rem;
}

.task-map-workspace .leaflet-control-attribution a {
  color: var(--color-teal-700);
}

.task-map-workspace .leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.task-map-workspace .leaflet-popup-content-wrapper {
  border-radius: 11px;
  background: var(--color-surface);
  box-shadow: 0 4px 8px oklch(0.18 0.025 250 / 0.22);
  text-align: start;
}

.task-map-workspace .leaflet-popup-tip-container {
  position: absolute;
  inset-inline-start: 50%;
  width: 40px;
  height: 20px;
  margin-inline-start: -20px;
  overflow: hidden;
  pointer-events: none;
}

.task-map-workspace .leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  background: var(--color-surface);
  box-shadow: 2px 2px 5px oklch(0.18 0.025 250 / 0.15);
  transform: rotate(45deg);
}

.task-map-workspace .leaflet-popup-close-button {
  position: absolute;
  z-index: 1;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.task-map-workspace .leaflet-popup-content {
  margin: 14px 16px;
}

.task-map-workspace .leaflet-control-attribution {
  max-width: calc(100% - 72px);
  line-height: 1.25;
  text-align: end;
  white-space: normal;
}

.task-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.field--search {
  grid-column: span 2;
}

.check-field--filter {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface-muted);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.check-field--filter input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-teal-700);
}

.task-filter-panel {
  margin-block-end: 16px;
}

.task-filter-panel > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  list-style: none;
}

.task-filter-panel > summary::-webkit-details-marker {
  display: none;
}

.task-filter-panel > summary svg {
  width: 20px;
  height: 20px;
  transition: transform var(--motion-fast) ease-out;
}

.task-filter-panel[open] > summary svg {
  transform: rotate(180deg);
}

.task-filter-panel[open] > .task-filter {
  margin-block-start: 8px;
}

.task-filter__actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
}

[data-task-results] {
  transition: opacity var(--motion-fast) ease-out;
}

[data-task-results][aria-busy="true"] {
  cursor: progress;
  opacity: 0.58;
  pointer-events: none;
}

.task-filter.is-loading {
  cursor: progress;
}

.async-feedback {
  margin-block-end: 14px;
}

.results-heading {
  min-height: 44px;
  align-items: center;
  color: var(--color-ink-muted);
  font-size: 0.82rem;
}

.operations-list {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.operation-item {
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(120px, 0.42fr)
    minmax(132px, 0.42fr)
    minmax(120px, 0.38fr)
    minmax(150px, 0.55fr)
    minmax(44px, auto);
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.operation-item + .operation-item {
  border-block-start: 1px solid var(--color-border);
}

.operation-item__main {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.operation-item__content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.operation-item__content strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-item__content > span {
  overflow: hidden;
  color: var(--color-ink-muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-item__reference,
.operation-item__due {
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.row-action--label {
  width: auto;
  min-width: 44px;
  padding-inline: 10px;
  color: var(--color-teal-700);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.inline-team-editor {
  grid-column: 1 / -1;
  margin: 2px -16px -14px;
  border-block-start: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.inline-team-editor[hidden],
.detail-team-editor[hidden] {
  display: none;
}

.inline-team-editor__loading {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.inline-team-editor .team-assignment {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inline-team-editor .team-assignment__task {
  padding: 14px 18px;
}

.inline-team-editor .technician-picker {
  max-height: 320px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
  overflow-y: auto;
  padding-block: 10px 14px;
}

.inline-team-editor .form-actions {
  position: static;
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
  background: var(--color-surface);
}

.detail-team-editor {
  margin-block-end: 18px;
}

.detail-team-editor .team-assignment {
  overflow: hidden;
}

.muted {
  color: var(--color-ink-muted);
  font-size: 0.74rem;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  font-weight: 850;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state h2 {
  font-size: 1.05rem;
}

.empty-state p {
  color: var(--color-ink-muted);
  font-size: 0.84rem;
}

.empty-state .button {
  margin-block-start: 12px;
}

.task-form {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.task-form > .validation-summary {
  margin: 20px 22px 0;
}

.form-section {
  padding: 24px 22px 28px;
}

.form-section + .form-section {
  border-block-start: 1px solid var(--color-border);
}

.form-section__heading {
  margin-block-end: 18px;
}

.form-section__heading h2 {
  margin: 0;
  font-size: 0.96rem;
}

.form-section__heading--with-copy p {
  max-width: 68ch;
  margin: 7px 0 0;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

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

.field--wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border-block-start: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.task-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  align-items: start;
  gap: 20px;
}

.task-details-main {
  display: grid;
  gap: 20px;
}

.workflow-panel {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.workflow-panel__heading,
.evidence-section__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workflow-panel__heading > div,
.evidence-section__heading > div {
  display: grid;
  gap: 5px;
}

.workflow-panel__heading p,
.evidence-section__heading p {
  max-width: 64ch;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.workflow-time,
.evidence-section__heading > span {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
  border-block-start: 1px solid var(--color-border);
  border-block-end: 1px solid var(--color-border);
  list-style: none;
}

.workflow-progress__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--color-ink-muted);
  text-align: center;
}

.workflow-progress__step::before {
  position: absolute;
  z-index: 0;
  inset-block-start: 6px;
  inset-inline-start: 0;
  width: 50%;
  height: 2px;
  background: var(--color-border);
  content: "";
}

.workflow-progress__step::after {
  position: absolute;
  z-index: 0;
  inset-block-start: 6px;
  inset-inline-start: 50%;
  width: 50%;
  height: 2px;
  background: var(--color-border);
  content: "";
}

.workflow-progress__step:first-child::before,
.workflow-progress__step:last-child::after {
  display: none;
}

.workflow-progress__step > span {
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-border);
  outline: 1px solid var(--color-border);
}

.workflow-progress__step strong {
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.workflow-progress__step--complete,
.workflow-progress__step--current {
  color: var(--color-ink);
}

.workflow-progress__step--complete > span,
.workflow-progress__step--current > span {
  background: var(--color-teal-600);
  outline-color: var(--color-teal-600);
}

.workflow-progress__step--complete::before,
.workflow-progress__step--complete::after,
.workflow-progress__step--current::before {
  background: var(--color-teal-600);
}

.workflow-primary-action,
.submit-review-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.workflow-primary-action > div,
.submit-review-action > div {
  display: grid;
  gap: 4px;
}

.workflow-primary-action strong,
.submit-review-action strong,
.review-workspace__heading strong {
  font-size: 0.86rem;
}

.workflow-primary-action span,
.submit-review-action span,
.review-workspace__heading span {
  color: var(--color-ink-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.rejection-notice {
  margin: 18px 20px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.rejection-notice strong {
  font-size: 0.82rem;
}

.rejection-notice p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.field-workspace,
.review-workspace {
  display: grid;
  gap: 0;
}

.evidence-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
}

.evidence-upload input[type="file"] {
  min-height: 48px;
  padding: 7px;
}

.evidence-upload input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-inline-end: 10px;
  padding-inline: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--color-surface-muted);
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.field-hint {
  color: var(--color-ink-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.submit-review-action {
  border-block-start: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.review-workspace {
  padding: 18px 20px 20px;
}

.review-workspace__heading {
  display: grid;
  gap: 4px;
  margin-block-end: 16px;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-block-start: 14px;
}

.workflow-message {
  margin: 0;
  padding: 17px 20px;
  color: var(--color-ink-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.55;
}

.workflow-message--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.detail-section,
.activity-panel,
.danger-zone,
.team-assignment {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

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

.detail-grid > div {
  min-width: 0;
  padding: 18px 20px;
}

.detail-grid > div:nth-child(odd) {
  border-inline-end: 1px solid var(--color-border);
}

.detail-grid > div:nth-child(n + 3) {
  border-block-start: 1px solid var(--color-border);
}

.detail-grid dt {
  margin-block-end: 7px;
  color: var(--color-ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-grid a {
  color: var(--color-teal-700);
}

.detail-map-link {
  margin: 4px 20px 20px;
}

.detail-description {
  margin: 0 20px 20px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--color-border);
}

.detail-description h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
}

.detail-description p {
  max-width: 72ch;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.84rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-carousel {
  padding: 18px 20px 20px;
}

.evidence-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-navy-950);
  touch-action: pan-y;
}

.evidence-carousel__slides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-carousel__slide {
  min-width: 0;
}

.evidence-carousel__slide[hidden] {
  display: none;
}

.evidence-carousel__expand {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0;
  background: var(--color-navy-950);
  color: white;
  cursor: zoom-in;
}

.evidence-carousel__expand > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evidence-carousel__expand-label {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: oklch(0.17 0.03 250 / 0.88);
  color: white;
  font-size: 0.72rem;
  font-weight: 750;
}

.evidence-carousel__expand-label svg {
  width: 17px;
  height: 17px;
}

.evidence-carousel__metadata {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--color-surface);
}

.evidence-carousel__metadata strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-carousel__metadata > span {
  flex: 0 0 auto;
  color: var(--color-ink-muted);
  font-size: 0.68rem;
}

.evidence-carousel__controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-block-start: 12px;
}

.evidence-carousel__nav,
.evidence-lightbox__nav,
.evidence-lightbox__close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.evidence-carousel__nav {
  background: var(--color-surface-muted);
  color: var(--color-ink);
}

.evidence-carousel__nav:hover {
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

.evidence-carousel__nav:disabled,
.evidence-lightbox__nav:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.evidence-carousel__nav svg,
.evidence-lightbox__nav svg,
.evidence-lightbox__close svg {
  width: 22px;
  height: 22px;
}

.evidence-carousel__counter {
  color: var(--color-ink-muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.evidence-carousel__thumbnails {
  display: flex;
  gap: 8px;
  margin-block-start: 12px;
  padding-block-end: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.evidence-carousel__thumbnail {
  width: 72px;
  height: 56px;
  flex: 0 0 auto;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--color-surface-muted);
  cursor: pointer;
}

.evidence-carousel__thumbnail.is-active {
  border-color: var(--color-teal-600);
}

.evidence-carousel__thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.evidence-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: white;
}

.evidence-lightbox::backdrop {
  background: oklch(0.08 0.02 250 / 0.94);
}

.evidence-lightbox__surface {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: 56px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: oklch(0.12 0.025 250);
}

.evidence-lightbox__close {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  background: oklch(1 0 0 / 0.12);
  color: white;
}

.evidence-lightbox__close:hover,
.evidence-lightbox__nav:hover {
  background: oklch(1 0 0 / 0.2);
}

.evidence-lightbox__nav {
  background: oklch(1 0 0 / 0.12);
  color: white;
}

.evidence-lightbox__nav--previous {
  grid-row: 2;
  grid-column: 1;
}

.evidence-lightbox__nav--next {
  grid-row: 2;
  grid-column: 3;
}

.evidence-lightbox__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-row: 2;
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-self: stretch;
  gap: 12px;
  margin: 0;
}

.evidence-lightbox__figure img {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  align-self: center;
  object-fit: contain;
}

.evidence-lightbox__figure figcaption {
  max-width: min(80ch, 100%);
  color: oklch(0.88 0.01 250);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  unicode-bidi: plaintext;
}

.evidence-lightbox__counter {
  grid-row: 3;
  grid-column: 2;
  color: oklch(0.82 0.012 250);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

[dir="rtl"] .evidence-carousel__nav svg,
[dir="rtl"] .evidence-lightbox__nav svg {
  transform: scaleX(-1);
}

.compact-empty-state {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 22px 20px;
  color: var(--color-ink-muted);
}

.compact-empty-state strong {
  color: var(--color-ink);
  font-size: 0.82rem;
}

.compact-empty-state span {
  font-size: 0.74rem;
  line-height: 1.55;
}

.note-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
}

.note-composer textarea {
  min-height: 88px;
}

.notes-list {
  border-block-start: 1px solid var(--color-border);
}

.notes-list li {
  padding: 16px 20px;
}

.notes-list li + li {
  border-block-start: 1px solid var(--color-border);
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.note-meta strong {
  font-size: 0.76rem;
}

.note-meta time,
.notes-empty {
  color: var(--color-ink-muted);
  font-size: 0.7rem;
}

.notes-list p {
  max-width: 72ch;
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.notes-empty {
  margin: 0;
  padding: 18px 20px 22px;
  border-block-start: 1px solid var(--color-border);
}

.activity-detail {
  color: var(--color-danger) !important;
  line-height: 1.5;
}

.activity-panel {
  overflow: hidden;
}

.activity-list {
  margin: 0;
  padding: 8px 20px 20px;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding-block: 12px;
}

.activity-list li + li {
  border-block-start: 1px solid var(--color-border);
}

.activity-dot {
  width: 9px;
  height: 9px;
  margin-block-start: 5px;
  border-radius: 50%;
  background: var(--color-teal-600);
}

.activity-list li > div {
  display: grid;
  gap: 3px;
}

.activity-list strong {
  font-size: 0.78rem;
}

.activity-list span,
.activity-list time,
.activity-empty {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.activity-empty {
  padding: 20px;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block-start: 20px;
  padding: 18px 20px;
}

.danger-zone > div {
  display: grid;
  gap: 4px;
}

.danger-zone strong {
  font-size: 0.86rem;
}

.danger-zone span {
  color: var(--color-ink-muted);
  font-size: 0.74rem;
}

.team-assignment {
  overflow: hidden;
}

.team-assignment > .validation-summary,
.team-assignment > .field-error {
  display: block;
  margin: 18px 20px 0;
}

.team-assignment__task {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-block-end: 1px solid var(--color-border);
}

.team-assignment__task span {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.team-assignment__task strong {
  font-size: 0.96rem;
}

.technician-picker {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 16px 20px 22px;
  border: 0;
}

.technician-picker legend {
  width: auto;
  margin: 0 0 8px;
  padding: 0;
}

.technician-option {
  display: grid;
  grid-template-columns: 24px 38px 1fr;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-block-end: 1px solid var(--color-border);
}

.technician-option > span:not(.presence-avatar):not(.technician-option__check) {
  display: grid;
  gap: 3px;
}

.technician-option strong {
  font-size: 0.84rem;
}

.technician-option small {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-teal-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employees-heading {
  align-items: center;
  margin-block-end: 24px;
}

.employees-heading__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-state {
  display: flex;
  min-width: 218px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.directory-state__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
}

.directory-state strong,
.directory-state small {
  display: block;
}

.directory-state strong {
  font-size: 0.78rem;
}

.directory-state small {
  margin-block-start: 2px;
  color: var(--color-ink-muted);
  font-size: 0.68rem;
}

.employee-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.employee-search {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.search-input {
  position: relative;
}

.search-input svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 13px;
  width: 18px;
  height: 18px;
  color: var(--color-ink-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.field .search-input input {
  padding-inline-start: 42px;
}

.employee-count {
  flex: 0 0 auto;
  margin: 0 0 11px;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.employee-table-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
}

.employee-table th {
  padding: 12px 16px;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: start;
  text-transform: uppercase;
}

.employee-table td {
  padding: 15px 16px;
  border-block-end: 1px solid var(--color-border);
  font-size: 0.78rem;
  vertical-align: middle;
}

.employee-table tbody tr:last-child td {
  border-block-end: 0;
}

.employee-identity {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 11px;
}

.employee-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  font-size: 0.72rem;
  font-weight: 850;
}

.employee-identity strong,
.employee-identity small {
  display: block;
}

.employee-identity strong {
  font-size: 0.82rem;
}

.employee-identity small {
  margin-block-start: 2px;
  color: var(--color-ink-muted);
  font-size: 0.69rem;
}

.account-source {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  margin-block-start: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 750;
  white-space: nowrap;
}

.account-source--directory {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.account-source--local {
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

.account-source--hybrid {
  background: var(--color-warning-bg);
  color: oklch(0.47 0.11 70);
}

.role-badge,
.account-state,
.current-account {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.role-badge {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.role-badge--admin {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.role-badge--technician {
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

.role-badge--employee {
  background: var(--color-warning-bg);
  color: oklch(0.52 0.12 70);
}

.account-state {
  padding-inline: 0;
  color: var(--color-success);
}

.account-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.account-state.is-inactive {
  color: var(--color-danger);
}

.employee-date {
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.employee-actions,
.employee-role-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-actions {
  flex-wrap: wrap;
}

.employee-role-form select {
  min-width: 142px;
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 6px 9px;
  font-size: 0.72rem;
}

.button--compact {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.71rem;
}

.button--quiet-danger {
  border-color: var(--color-danger-bg);
  background: var(--color-surface);
  color: var(--color-danger);
}

.button--quiet-danger:hover {
  border-color: var(--color-danger);
  background: var(--color-danger-bg);
}

.current-account {
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
}

.employee-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 42px 20px;
  color: var(--color-ink-muted);
  text-align: center;
}

.employee-empty svg {
  width: 32px;
  height: 32px;
  margin-block-end: 6px;
}

.employee-empty strong {
  color: var(--color-ink);
}

.identity-form {
  width: min(100%, 920px);
}

.identity-form--compact {
  width: min(100%, 760px);
}

.credential-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-block-end: 1px solid var(--color-border);
}

.credential-account__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

.credential-account__icon svg {
  width: 20px;
  height: 20px;
}

.credential-account > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.credential-account strong,
.credential-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credential-account strong {
  font-size: 0.86rem;
}

.credential-account small {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.credential-account > .account-source {
  margin-block-start: 0;
}

.credential-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 22px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-info-bg);
  color: var(--color-info);
  font-size: 0.75rem;
  line-height: 1.55;
}

.credential-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-block-start: 1px;
}

.pending-access {
  width: min(100%, 520px);
  margin: clamp(36px, 10vh, 100px) auto 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}

.pending-access__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.pending-access__icon svg {
  width: 24px;
  height: 24px;
}

.pending-access h1 {
  margin: 0;
  font-size: 1.65rem;
}

.pending-access > p:not(.eyebrow) {
  margin: 10px auto 0;
  color: var(--color-ink-muted);
  line-height: 1.65;
}

.pending-access__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
  border-block: 1px solid var(--color-border);
}

.pending-access__details > div {
  padding: 16px 10px;
}

.pending-access__details > div + div {
  border-inline-start: 1px solid var(--color-border);
}

.pending-access__details dt {
  color: var(--color-ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.pending-access__details dd {
  margin: 5px 0 0;
  font-size: 0.8rem;
  font-weight: 750;
}

.task-state-dot--new {
  background: var(--color-ink-muted);
}

.task-state-dot--assigned {
  background: var(--color-info);
}

.task-state-dot--rejected {
  background: var(--color-danger);
}

.results-heading--board {
  margin-block-start: 2px;
}

.results-heading--board span {
  font-size: 0.7rem;
}

.page-heading--kanban {
  align-items: end;
  margin-block-end: 14px;
}

.page-heading--kanban h1 {
  font-size: 1.45rem;
}

.page-heading--kanban p {
  margin-block-start: 3px;
}

.kanban-filter-wrap .task-filter-panel {
  margin-block-end: 14px;
}

.kanban-filter-wrap .task-filter {
  grid-template-columns:
    minmax(220px, 1.7fr)
    repeat(4, minmax(112px, 1fr))
    minmax(118px, auto)
    auto;
  gap: 8px;
  padding: 12px;
}

.kanban-filter-wrap .field--search,
.kanban-filter-wrap .task-filter__actions {
  grid-column: auto;
}

.kanban-filter-wrap .field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kanban-filter-wrap .task-filter__actions {
  align-items: stretch;
  gap: 6px;
}

.kanban-filter-wrap .task-filter__actions .button {
  min-height: 42px;
  padding-inline: 10px;
  white-space: nowrap;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(184px, 1fr));
  gap: 10px;
  padding: 3px 2px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.kanban-lane {
  --lane-color: var(--color-ink-muted);
  --lane-soft: var(--color-surface-muted);

  min-width: 0;
  min-height: 300px;
  scroll-snap-align: start;
}

.kanban-lane--assigned {
  --lane-color: var(--color-info);
  --lane-soft: var(--color-info-bg);
}

.kanban-lane--working {
  --lane-color: oklch(0.58 0.14 75);
  --lane-soft: var(--color-warning-bg);
}

.kanban-lane--review {
  --lane-color: oklch(0.55 0.16 305);
  --lane-soft: oklch(0.96 0.025 305);
}

.kanban-lane--done {
  --lane-color: var(--color-success);
  --lane-soft: var(--color-success-bg);
}

.kanban-lane--rejected {
  --lane-color: var(--color-danger);
  --lane-soft: var(--color-danger-bg);
}

.kanban-lane__header {
  display: grid;
  min-height: 36px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 4px 7px;
}

.kanban-lane__header .task-state-dot {
  width: 7px;
  height: 7px;
  background: var(--lane-color);
}

.kanban-lane__header h2 {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.35;
}

.kanban-lane__count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--lane-color) 10%, white);
  color: color-mix(in oklch, var(--lane-color) 80%, var(--color-ink));
  font-size: 0.62rem;
  font-weight: 800;
}

.kanban-lane__body {
  display: grid;
  min-height: 260px;
  align-content: start;
  gap: 8px;
  padding: 4px;
  border: 1px dashed transparent;
  border-radius: 10px;
  transition:
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out;
}

.kanban-lane.is-drop-available .kanban-lane__body {
  border-color: color-mix(in oklch, var(--lane-color) 44%, transparent);
  background: color-mix(in oklch, var(--lane-soft) 70%, transparent);
}

.kanban-lane.is-drag-over .kanban-lane__body {
  border-color: var(--lane-color);
  background: var(--lane-soft);
}

.kanban-empty {
  display: grid;
  min-height: 66px;
  place-items: center;
  padding: 10px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  color: var(--color-ink-muted);
  font-size: 0.66rem;
  text-align: center;
}

.kanban-card {
  --card-status-border:
    color-mix(in oklch, var(--lane-color) 42%, var(--color-border));

  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--card-status-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 2px 6px oklch(0.22 0.025 250 / 0.10);
  transition:
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    opacity var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
}

.kanban-card[draggable="true"] {
  cursor: grab;
}

.kanban-card[draggable="true"]:active {
  cursor: grabbing;
}

.kanban-card:hover,
.kanban-card:focus-within {
  border-color: var(--lane-color);
  box-shadow: 0 3px 7px oklch(0.22 0.025 250 / 0.14);
}

.kanban-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.985);
}

.kanban-card.is-updating {
  cursor: progress;
  opacity: 0.58;
  pointer-events: none;
}

.kanban-card__topline,
.kanban-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kanban-card__topline time {
  margin-inline-start: auto;
  color: var(--color-ink-muted);
  font-size: 0.57rem;
}

.kanban-card__drag-handle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline-end: -5px;
  border-radius: 6px;
  color: var(--color-ink-muted);
}

.kanban-card__drag-handle svg {
  width: 17px;
  height: 17px;
}

.task-type-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding-inline: 7px;
  border-radius: 6px;
  background: var(--color-info-bg);
  color: var(--color-info);
  font-size: 0.57rem;
  font-weight: 750;
}

.task-type-badge--sitesurvey {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.task-type-badge--maintenance {
  background: var(--color-warning-bg);
  color: oklch(0.43 0.10 70);
}

.task-type-badge--dismantling {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.kanban-card__title {
  display: block;
  margin-block: 8px 7px;
  color: var(--color-ink);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.kanban-card__title:hover {
  color: var(--color-teal-700);
}

.kanban-card__context {
  display: grid;
  gap: 4px;
}

.kanban-card__context > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--color-ink-muted);
  font-size: 0.62rem;
}

.kanban-card__context svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.kanban-card__context bdi {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card__team {
  margin-block-start: 8px;
}

.kanban-card__team .person-chip {
  min-height: 22px;
  font-size: 0.58rem;
}

.kanban-card__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-block-start: 8px;
  padding-block-start: 7px;
  border-block-start: 1px solid var(--color-border);
}

.kanban-card__actions a,
.kanban-card__actions button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding-inline: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-teal-700);
  cursor: pointer;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 750;
  text-decoration: none;
}

.kanban-card__actions button svg {
  width: 14px;
  height: 14px;
}

.kanban-card__actions a:hover,
.kanban-card__actions button:hover {
  background: var(--color-teal-100);
}

.kanban-card__actions a:focus-visible,
.kanban-card__actions button:focus-visible {
  outline: 2px solid var(--color-teal-700);
  outline-offset: 1px;
}

.kanban-card .inline-team-editor:not([hidden]) {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-block-start: 10px;
}

.kanban-move-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 8px 24px oklch(0.15 0.03 250 / 0.22);
}

.kanban-move-dialog::backdrop {
  background: oklch(0.12 0.025 250 / 0.52);
}

.kanban-move-dialog > form {
  padding: 18px;
}

.kanban-move-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kanban-move-dialog__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.kanban-move-dialog__header p,
.kanban-move-dialog__description {
  margin: 4px 0 0;
  color: var(--color-ink-muted);
  font-size: 0.73rem;
}

.kanban-move-dialog__statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 16px;
}

.kanban-move-option {
  --move-color: var(--color-ink-muted);
  --move-soft: var(--color-surface-muted);

  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding-inline: 11px;
  border: 1px solid color-mix(
    in oklch,
    var(--move-color) 34%,
    var(--color-border)
  );
  border-radius: 9px;
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: start;
}

.kanban-move-option > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--move-color);
}

.kanban-move-option:hover,
.kanban-move-option:focus-visible {
  border-color: var(--move-color);
  background: var(--move-soft);
}

.kanban-move-option--assigned {
  --move-color: var(--color-info);
  --move-soft: var(--color-info-bg);
}

.kanban-move-option--working {
  --move-color: oklch(0.58 0.14 75);
  --move-soft: var(--color-warning-bg);
}

.kanban-move-option--review {
  --move-color: oklch(0.55 0.16 305);
  --move-soft: oklch(0.96 0.025 305);
}

.kanban-move-option--done {
  --move-color: var(--color-success);
  --move-soft: var(--color-success-bg);
}

.kanban-move-option--rejected {
  --move-color: var(--color-danger);
  --move-soft: var(--color-danger-bg);
}

.kanban-rejection-panel {
  display: grid;
  gap: 7px;
  margin-block-start: 16px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--color-border);
}

.kanban-rejection-panel[hidden] {
  display: none;
}

.kanban-rejection-panel label {
  font-size: 0.72rem;
  font-weight: 750;
}

.kanban-rejection-panel textarea {
  width: 100%;
  resize: vertical;
}

.kanban-rejection-panel .button {
  justify-self: end;
}

.kanban-move-dialog__footer {
  display: flex;
  justify-content: flex-end;
  margin-block-start: 14px;
}

.report-filter-panel {
  margin-block: 24px 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.report-presets {
  display: flex;
  min-height: 54px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 14px;
  border-block-end: 1px solid var(--color-border);
}

.report-presets > span {
  margin-inline-end: 4px;
  color: var(--color-ink-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.report-presets button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 720;
}

.report-presets button:hover {
  background: var(--color-surface-muted);
  color: var(--color-ink);
}

.report-presets button.is-active {
  border-color: var(--color-navy-900);
  background: var(--color-navy-900);
  color: white;
}

.report-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 14px;
  padding: 16px;
}

.report-result-count {
  min-height: 34px;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-block-end: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.report-kpis article {
  display: flex;
  min-width: 0;
  min-height: 92px;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
}

.report-kpis article + article {
  border-inline-start: 1px solid var(--color-border);
}

.report-kpis span {
  overflow: hidden;
  color: var(--color-ink-muted);
  font-size: 0.67rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-kpis strong {
  color: var(--color-ink);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}

.report-kpi--done strong {
  color: var(--color-success);
}

.report-kpi--working strong {
  color: oklch(0.49 0.12 75);
}

.report-kpi--review strong {
  color: oklch(0.50 0.13 305);
}

.report-kpi--overdue strong {
  color: var(--color-danger);
}

.report-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block-end: 16px;
}

.report-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block-end: 16px;
}

.report-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.report-panel + .report-panel--task-list,
.report-panel--overdue {
  margin-block-end: 16px;
}

.report-panel > header {
  min-height: 52px;
  padding: 15px 17px;
  border-block-end: 1px solid var(--color-border);
}

.report-panel h2 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 780;
}

.metric-list {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.metric-row {
  display: grid;
  gap: 7px;
}

.metric-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-row span,
.metric-row strong {
  font-size: 0.69rem;
}

.metric-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-surface-muted);
}

.metric-track > span {
  display: block;
  width: var(--metric-value);
  height: 100%;
  border-radius: inherit;
  background: var(--color-info);
}

.metric-row--new .metric-track > span {
  background: var(--color-ink-muted);
}

.metric-row--working .metric-track > span {
  background: var(--color-warning);
}

.metric-row--review .metric-track > span {
  background: oklch(0.58 0.13 305);
}

.metric-row--done .metric-track > span {
  background: var(--color-success);
}

.metric-row--rejected .metric-track > span {
  background: var(--color-danger);
}

.report-panel__empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  color: var(--color-ink-muted);
  font-size: 0.74rem;
  text-align: center;
}

.performance-list {
  display: grid;
}

.performance-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.performance-row + .performance-row {
  border-block-start: 1px solid var(--color-border);
}

.performance-row__identity {
  min-width: 0;
}

.performance-row__identity strong,
.performance-row__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-row__identity strong {
  font-size: 0.75rem;
}

.performance-row__identity small {
  margin-block-start: 3px;
  color: var(--color-ink-muted);
  font-size: 0.64rem;
}

.performance-row__percent {
  color: var(--color-teal-700);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.performance-row .metric-track {
  grid-column: 2 / -1;
}

.report-task-list {
  display: grid;
}

.report-task-list > a {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  color: inherit;
  text-decoration: none;
}

.report-task-list > a + a {
  border-block-start: 1px solid var(--color-border);
}

.report-task-list > a:hover {
  background: var(--color-surface-muted);
}

.report-task-list > a > span:first-child {
  min-width: 0;
}

.report-task-list strong,
.report-task-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-task-list strong {
  font-size: 0.76rem;
}

.report-task-list small {
  margin-block-start: 4px;
  color: var(--color-ink-muted);
  font-size: 0.65rem;
}

.report-task-list time {
  color: var(--color-ink-muted);
  font-size: 0.67rem;
}

.report-panel--overdue > header {
  color: var(--color-danger);
}

.map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-block: -4px 14px;
  color: var(--color-ink-muted);
  font-size: 0.68rem;
}

.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.technician-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-ink-muted);
}

.technician-legend-dot--live {
  background: var(--color-success);
}

.technician-legend-dot--recent {
  background: var(--color-warning);
}

.task-map-list__heading--team {
  border-block-start: 1px solid var(--color-border);
}

.technician-map-list {
  display: grid;
  padding: 6px 12px 12px;
}

.technician-map-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 5px;
  border: 0;
  border-block-end: 1px solid var(--color-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: start;
}

.technician-map-item:hover,
.technician-map-item.is-active {
  background: var(--color-teal-100);
}

.technician-map-item > span:nth-child(2) {
  min-width: 0;
}

.technician-map-item strong,
.technician-map-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technician-map-item strong {
  font-size: 0.74rem;
}

.technician-map-item small,
.technician-map-item time {
  color: var(--color-ink-muted);
  font-size: 0.62rem;
}

.technician-map-avatar,
.technician-map-marker {
  display: inline-grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--color-ink-muted);
  color: white;
  font-size: 0.66rem;
  font-weight: 850;
}

.technician-map-avatar {
  width: 34px;
  height: 34px;
}

.technician-map-marker-wrap {
  border: 0;
  background: transparent;
}

.technician-map-marker {
  width: 34px;
  height: 34px;
  box-shadow: 0 3px 6px oklch(0.18 0.025 250 / 0.28);
}

.technician-map-avatar--live,
.technician-map-marker--live {
  background: var(--color-success);
}

.technician-map-avatar--recent,
.technician-map-marker--recent {
  background: var(--color-warning);
  color: var(--color-navy-950);
}

.technician-map-marker--live {
  animation: technician-location-pulse 2s ease-out infinite;
}

.technician-freshness {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.technician-freshness > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.technician-freshness--live {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.technician-freshness--recent {
  background: var(--color-warning-bg);
  color: oklch(0.43 0.10 70);
}

@keyframes technician-location-pulse {
  0%,
  100% {
    box-shadow:
      0 3px 6px oklch(0.18 0.025 250 / 0.28),
      0 0 0 0 oklch(0.46 0.12 150 / 0.28);
  }

  55% {
    box-shadow:
      0 3px 6px oklch(0.18 0.025 250 / 0.28),
      0 0 0 10px oklch(0.46 0.12 150 / 0);
  }
}

/* Contemporary product surfaces: one restrained vocabulary across every tool. */
.auth-page {
  background: var(--color-bg);
}

.auth-context {
  background: var(--color-navy-950);
}

.auth-context__status {
  background: oklch(1 0 0 / 0.07);
  color: oklch(0.88 0.055 166);
}

.auth-benefits__icon {
  background: oklch(1 0 0 / 0.065);
}

.directory-chip {
  border: 1px solid color-mix(in oklch, currentColor 14%, transparent);
}

.password-toggle,
.row-action,
.kanban-card__actions a,
.kanban-card__actions button,
.report-presets button {
  transition:
    background-color var(--motion-fast) var(--ease-out-quart),
    color var(--motion-fast) var(--ease-out-quart);
}

.dev-role-lab,
.task-filter,
.operations-list,
.task-form,
.workflow-panel,
.detail-section,
.activity-panel,
.danger-zone,
.team-assignment,
.employee-table-wrap,
.task-map-workspace,
.report-filter-panel,
.report-kpis,
.report-panel {
  border-color: color-mix(in oklch, var(--color-border) 78%, white);
  box-shadow: var(--shadow-xs);
}

.dev-role-lab__heading,
.form-actions,
.submit-review-action {
  background: color-mix(in oklch, var(--color-surface-muted) 68%, white);
}

.task-filter-panel > summary {
  border-color: color-mix(in oklch, var(--color-border) 78%, white);
  box-shadow: var(--shadow-xs);
}

.check-field--filter,
.map-summary > span {
  border-color: transparent;
  background: var(--color-surface-muted);
}

.operation-item {
  transition: background-color var(--motion-fast) var(--ease-out-quart);
}

.operation-item:hover {
  background: color-mix(in oklch, var(--color-teal-100) 32%, white);
}

.operation-item + .operation-item,
.employee-table td,
.report-task-list > a + a,
.performance-row + .performance-row,
.dev-role-row + .dev-role-row {
  border-color: color-mix(in oklch, var(--color-border) 72%, white);
}

.inline-team-editor {
  background: color-mix(in oklch, var(--color-surface-muted) 70%, white);
}

.workflow-progress__step > span {
  border-color: var(--color-surface);
}

.workflow-message--success,
.rejection-notice {
  border: 1px solid color-mix(in oklch, currentColor 18%, transparent);
}

.evidence-carousel__viewport {
  background: var(--color-navy-950);
}

.employee-tools {
  border-color: color-mix(in oklch, var(--color-border) 78%, white);
  box-shadow: var(--shadow-xs);
}

.employee-table th {
  background: color-mix(in oklch, var(--color-surface-muted) 72%, white);
  letter-spacing: 0;
  text-transform: none;
}

.employee-table tbody tr {
  transition: background-color var(--motion-fast) var(--ease-out-quart);
}

.employee-table tbody tr:hover {
  background: color-mix(in oklch, var(--color-teal-100) 28%, white);
}

.employee-role-form select {
  border-color: transparent;
  background: var(--color-surface-muted);
  transition:
    background-color var(--motion-fast) var(--ease-out-quart),
    border-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart);
}

.employee-role-form select:focus {
  border-color: var(--color-focus);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-focus) 16%, transparent);
  outline: 0;
}

.kanban-lane__body {
  padding: 6px;
  border-color: transparent;
  background: color-mix(in oklch, var(--lane-soft) 36%, transparent);
}

.kanban-empty {
  border-color: transparent;
  background: oklch(1 0 0 / 0.48);
}

.kanban-card {
  border-color: color-mix(in oklch, var(--lane-color) 24%, var(--color-border));
  box-shadow: var(--shadow-xs);
}

.kanban-card:hover,
.kanban-card:focus-within {
  box-shadow: var(--shadow-sm);
}

.kanban-card__actions {
  border-color: color-mix(in oklch, var(--color-border) 70%, white);
}

.kanban-move-dialog {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px oklch(0.15 0.03 250 / 0.22);
}

.report-presets button.is-active {
  border-color: var(--color-teal-700);
  background: var(--color-teal-700);
}

.report-kpis article + article,
.report-panel > header {
  border-color: color-mix(in oklch, var(--color-border) 72%, white);
}

.metric-track {
  background: color-mix(in oklch, var(--color-surface-muted) 78%, var(--color-border));
}

.report-task-list > a,
.task-map-item,
.technician-map-item {
  transition: background-color var(--motion-fast) var(--ease-out-quart);
}

.report-task-list > a:hover,
.task-map-item:hover,
.task-map-item.is-active,
.technician-map-item:hover,
.technician-map-item.is-active {
  background: color-mix(in oklch, var(--color-teal-100) 42%, white);
}

.task-map-workspace .leaflet-bar {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 901px) {
  .field {
    gap: 5px;
  }

  .field label,
  .technician-picker legend {
    font-size: 0.7rem;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
  }

  .field textarea {
    min-height: 88px;
  }

  .task-filter {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 9px;
    padding: 12px;
  }

  .check-field--filter {
    min-height: 38px;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 0.7rem;
  }

  .check-field--filter input {
    width: 16px;
    height: 16px;
  }

  .task-filter-panel {
    margin-block-end: 12px;
  }

  .task-filter-panel > summary {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.74rem;
  }

  .task-filter-panel > summary svg {
    width: 17px;
    height: 17px;
  }

  .task-filter__actions {
    gap: 6px;
  }

  .results-heading {
    min-height: 36px;
    font-size: 0.74rem;
  }

  .operation-item {
    min-height: 66px;
    gap: 10px;
    padding: 9px 13px;
  }

  .operation-item__main {
    min-height: 40px;
    gap: 9px;
  }

  .operation-item__content {
    gap: 3px;
  }

  .operation-item__content strong {
    font-size: 0.8rem;
  }

  .operation-item__content > span,
  .operation-item__reference,
  .operation-item__due {
    font-size: 0.68rem;
  }

  .row-action--label {
    min-width: 38px;
    font-size: 0.66rem;
  }

  .empty-state {
    min-height: 220px;
    gap: 7px;
    padding-block: 28px;
  }

  .form-section {
    padding: 17px 18px 20px;
  }

  .form-section__heading {
    margin-block-end: 13px;
  }

  .form-grid {
    gap: 13px;
  }

  .form-actions {
    gap: 7px;
    padding: 12px 18px;
  }

  .task-details-layout,
  .task-details-main {
    gap: 14px;
  }

  .workflow-progress {
    padding: 14px 16px;
  }

  .workflow-primary-action,
  .submit-review-action {
    gap: 14px;
    padding: 13px 16px;
  }

  .evidence-upload,
  .review-workspace {
    padding: 14px 16px;
  }

  .detail-grid > div {
    padding: 13px 16px;
  }

  .detail-grid dt {
    margin-block-end: 5px;
    font-size: 0.66rem;
  }

  .detail-grid dd {
    font-size: 0.78rem;
  }

  .detail-map-link,
  .detail-description {
    margin-inline: 16px;
    margin-block-end: 16px;
  }

  .detail-description {
    padding-block-start: 14px;
  }

  .evidence-carousel {
    padding: 14px 16px 16px;
  }

  .evidence-carousel__metadata {
    min-height: 46px;
    padding: 8px 11px;
  }

  .evidence-carousel__controls {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    margin-block-start: 8px;
  }

  .evidence-carousel__nav {
    width: 38px;
    height: 38px;
  }

  .danger-zone {
    gap: 14px;
    margin-block-start: 14px;
    padding: 13px 16px;
  }

  .team-assignment__task {
    padding: 14px 16px;
  }

  .technician-picker {
    padding: 11px 16px 16px;
  }

  .technician-option {
    grid-template-columns: 22px 32px 1fr;
    min-height: 54px;
    gap: 9px;
  }

  .technician-option strong {
    font-size: 0.77rem;
  }

  .technician-option small {
    font-size: 0.66rem;
  }

  .employees-heading {
    margin-block-end: 16px;
  }

  .directory-state {
    min-width: 190px;
    gap: 8px;
    padding: 8px 11px;
  }

  .employee-tools {
    gap: 14px;
    margin-block-end: 12px;
    padding: 11px 12px;
  }

  .employee-table th {
    padding: 9px 12px;
    font-size: 0.64rem;
  }

  .employee-table td {
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .employee-identity {
    gap: 8px;
  }

  .employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .employee-role-form select,
  .button--compact {
    min-height: 34px;
  }

  .task-map-workspace {
    --task-map-height: clamp(480px, calc(100dvh - 312px), 680px);

    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  }

  .task-map-list__heading {
    padding: 11px 13px;
  }

  .task-map-list__items,
  .technician-map-list {
    padding: 4px 9px 9px;
  }

  .technician-map-item {
    min-height: 54px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding-block: 6px;
  }

  .report-filter-panel {
    margin-block: 16px 12px;
  }

  .report-presets {
    min-height: 44px;
    gap: 5px;
    padding: 6px 11px;
  }

  .report-presets button {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.64rem;
  }

  .report-filter {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 9px;
    padding: 11px 12px;
  }

  .report-kpis {
    margin-block-end: 12px;
  }

  .report-kpis article {
    min-height: 72px;
    gap: 4px;
    padding: 10px 12px;
  }

  .report-kpis strong {
    font-size: 1.25rem;
  }

  .report-breakdown-grid,
  .report-performance-grid {
    gap: 12px;
    margin-block-end: 12px;
  }

  .report-panel + .report-panel--task-list,
  .report-panel--overdue {
    margin-block-end: 12px;
  }

  .report-panel > header {
    min-height: 44px;
    padding: 11px 13px;
  }

  .metric-list {
    gap: 10px;
    padding: 12px 13px;
  }

  .performance-row {
    gap: 8px;
    padding: 9px 13px;
  }

  .report-task-list > a {
    min-height: 54px;
    gap: 11px;
    padding: 8px 13px;
  }
}

@media (max-width: 1180px) {
  .auth-experience {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }

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

  .field--search {
    grid-column: 1 / -1;
  }

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

  .report-kpis article:nth-child(4) {
    border-inline-start: 0;
  }

  .report-kpis article:nth-child(n + 4) {
    border-block-start: 1px solid var(--color-border);
  }

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

  .report-breakdown-grid .report-panel:last-child {
    grid-column: 1 / -1;
  }

  .operation-item {
    grid-template-columns: minmax(240px, 1fr) 120px 132px 110px 44px;
  }

  .operation-item > .technician-list {
    display: none;
  }
}

@media (min-width: 701px) {
  .task-filter-panel[open] > summary {
    display: none;
  }

  .task-filter-panel[open] > .task-filter {
    margin-block-start: 0;
  }
}

@media (max-width: 900px) {
  .report-breakdown-grid,
  .report-performance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-breakdown-grid .report-panel:last-child {
    grid-column: auto;
  }

  .task-map-workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .task-map-canvas-wrap,
  .task-map-canvas {
    height: clamp(420px, 56dvh, 540px);
    min-height: 0;
  }

  .task-map-list {
    height: auto;
    max-height: 380px;
    border-block-start: 1px solid var(--color-border);
    border-inline-start: 0;
  }

  .topbar-logout {
    display: block;
  }

  .auth-context {
    padding: 38px;
  }

  .auth-context h2 {
    font-size: 2.15rem;
  }

  .employees-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .employees-heading__actions {
    justify-content: space-between;
  }

  .employee-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-count {
    margin: 0;
  }

  .employee-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .dev-role-row {
    grid-template-columns: 40px minmax(140px, 0.4fr) minmax(220px, 1fr);
  }

  .dev-role-row > form {
    grid-column: 2 / -1;
  }

  .employee-table,
  .employee-table tbody,
  .employee-table tr,
  .employee-table td {
    display: block;
    width: 100%;
  }

  .employee-table thead {
    display: none;
  }

  .employee-table tbody {
    display: grid;
    gap: 12px;
  }

  .employee-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }

  .employee-table td {
    display: grid;
    gap: 6px;
    padding: 0;
    border: 0;
  }

  .employee-table td:first-child,
  .employee-table td:last-child {
    grid-column: 1 / -1;
  }

  .employee-table td::before {
    color: var(--color-ink-muted);
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .employee-table td:first-child::before {
    display: none;
  }

  .task-details-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-panel {
    order: 2;
  }
}

@media (max-width: 700px) {
  .page-heading--kanban {
    align-items: stretch;
  }

  .kanban-filter-wrap .task-filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .kanban-filter-wrap .field--search,
  .kanban-filter-wrap .task-filter__actions {
    grid-column: auto;
  }

  .kanban-filter-wrap .field > label {
    position: static;
    width: auto;
    height: auto;
    padding: initial;
    margin: initial;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .kanban-filter-wrap .task-filter__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-heading--board {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .kanban-board {
    grid-template-columns: repeat(6, minmax(min(84vw, 290px), 1fr));
  }

  .kanban-lane {
    min-height: 330px;
  }

  .kanban-lane__body {
    min-height: 290px;
  }

  .kanban-card__actions a,
  .kanban-card__actions button {
    min-height: 36px;
  }

  .kanban-move-dialog {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .report-presets {
    align-items: stretch;
  }

  .report-presets > span {
    width: 100%;
  }

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

  .report-filter .task-filter__actions {
    grid-column: auto;
  }

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

  .report-kpis article,
  .report-kpis article:nth-child(4) {
    border-inline-start: 0;
  }

  .report-kpis article:nth-child(even) {
    border-inline-start: 1px solid var(--color-border);
  }

  .report-kpis article:nth-child(n + 3) {
    border-block-start: 1px solid var(--color-border);
  }

  .report-task-list > a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }

  .report-task-list > a > span:first-child {
    grid-column: 1 / -1;
  }

  .report-task-list > a > time {
    justify-self: end;
  }

  .map-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-summary > span {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-map-canvas-wrap,
  .task-map-canvas {
    height: clamp(340px, 52dvh, 440px);
    min-height: 0;
  }

  .task-map-list {
    max-height: none;
  }

  .map-reset-control {
    inset-block-start: 10px;
    right: 10px;
    left: auto;
  }

  .technician-map-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .technician-map-item time {
    grid-column: 2;
    justify-self: start;
  }

  .auth-page::before {
    width: 100%;
    height: 68px;
    inset-block-end: auto;
  }

  .auth-topbar {
    min-height: 68px;
    padding-inline: 16px;
  }

  .auth-brand small {
    display: none;
  }

  .auth-main {
    min-height: calc(100vh - 68px);
    padding: 16px 14px 40px;
  }

  .auth-experience {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-context {
    padding: 24px 20px;
  }

  .auth-context__status {
    margin-block-end: 18px;
  }

  .auth-context__eyebrow,
  .auth-context__copy,
  .auth-benefits {
    display: none;
  }

  .auth-context h2 {
    max-width: 24ch;
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .auth-panel {
    padding: 30px 20px 26px;
  }

  .auth-panel h1 {
    font-size: 1.7rem;
  }

  .auth-panel__heading {
    margin-block-end: 26px;
  }

  .directory-chip {
    margin-block-end: 16px;
  }

  .dev-role-lab__heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .dev-role-lab__safety {
    text-align: start;
  }

  .dev-role-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px 16px;
  }

  .dev-role-row > p,
  .dev-role-row > form {
    grid-column: 2 / -1;
  }

  .dev-role-row .button {
    width: 100%;
  }

  .employees-heading__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .employees-heading__actions .directory-state,
  .employees-heading__actions .button {
    width: 100%;
  }

  .credential-account {
    flex-wrap: wrap;
    padding: 16px;
  }

  .credential-account > .account-source {
    margin-inline-start: 54px;
  }

  .credential-note {
    margin-inline: 16px;
  }

  .employee-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-search .button {
    width: 100%;
  }

  .employee-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-table td,
  .employee-table td:first-child,
  .employee-table td:last-child {
    grid-column: auto;
  }

  .employee-actions,
  .employee-role-form {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-role-form select,
  .employee-actions .button,
  .employee-actions form {
    width: 100%;
  }

  .pending-access {
    margin-block-start: 28px;
  }

  .pending-access__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .pending-access__details > div + div {
    border-block-start: 1px solid var(--color-border);
    border-inline-start: 0;
  }

  .page-heading--actions,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions,
  .page-heading--actions > .button,
  .danger-zone .button {
    width: 100%;
  }

  .page-actions .button {
    flex: 1;
  }

  .task-filter {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .field--search,
  .task-filter__actions {
    grid-column: auto;
  }

  .task-filter__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-team-editor .technician-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .inline-team-editor .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .operations-list {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .operation-item {
    grid-template:
      "main main" auto
      "status due" auto
      "reference action" auto / minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }

  .operation-item + .operation-item {
    border-block-start: 1px solid var(--color-border);
  }

  .operation-item__main {
    grid-area: main;
  }

  .operation-item__reference {
    grid-area: reference;
  }

  .operation-item > .status-badge {
    grid-area: status;
    width: fit-content;
  }

  .operation-item__due {
    grid-area: due;
    justify-self: end;
  }

  .operation-item > .row-action {
    grid-area: action;
    justify-self: end;
  }

  .operation-item__content strong,
  .operation-item__content > span {
    white-space: normal;
  }

  .form-section {
    padding: 20px 16px 24px;
  }

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

  .field--wide {
    grid-column: auto;
  }

  .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px;
  }

  .form-actions--sticky {
    position: sticky;
    z-index: 10;
    inset-block-end: calc(82px + env(safe-area-inset-bottom));
  }

  .team-assignment {
    overflow: visible;
  }

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

  .workflow-panel__heading,
  .evidence-section__heading,
  .workflow-primary-action,
  .submit-review-action,
  .note-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-time,
  .evidence-section__heading > span {
    white-space: normal;
  }

  .workflow-progress {
    padding-inline: 10px;
  }

  .workflow-progress__step strong {
    font-size: 0.65rem;
  }

  .workflow-primary-action .button,
  .submit-review-action .button {
    width: 100%;
  }

  .evidence-upload,
  .note-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-upload .button,
  .note-composer .button {
    width: 100%;
  }

  .review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-carousel {
    padding-inline: 16px;
  }

  .evidence-carousel__metadata {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .evidence-lightbox__surface {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .detail-grid > div:nth-child(odd) {
    border-inline-end: 0;
  }

  .detail-grid > div + div {
    border-block-start: 1px solid var(--color-border);
  }

  .technician-picker {
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .auth-brand > span:last-child {
    display: none;
  }

  .page-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .task-filter__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-presets button {
    flex: 1 1 calc(50% - 7px);
  }

  .report-kpis article {
    min-height: 80px;
    padding: 11px 12px;
  }

  .report-kpis strong {
    font-size: 1.3rem;
  }

  .technician-option {
    grid-template-columns: 22px 36px 1fr;
    gap: 9px;
  }

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

  .evidence-carousel__expand {
    aspect-ratio: 4 / 3;
  }

  .evidence-lightbox__surface {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding-inline:
      max(6px, env(safe-area-inset-left))
      max(6px, env(safe-area-inset-right));
  }
}

/* HorizonScope reference language for forms, tables, and data workspaces. */
.field input,
.field select,
.field textarea,
.auth-input,
.auth-method__surface,
.employee-role-form select {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-ink-muted);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.auth-input:hover,
.employee-role-form select:hover {
  border-color: color-mix(in oklch, var(--color-border) 58%, var(--color-teal-700));
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.auth-input:focus-within,
.employee-role-form select:focus {
  border-color: var(--color-teal-700);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-teal-700) 13%, transparent);
}

.button,
.auth-submit,
.kanban-move-option {
  border-radius: 6px;
}

.check-field--filter,
.map-summary > span,
.directory-state,
.status-note {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.auth-experience,
.dev-role-lab,
.task-filter,
.operations-list,
.task-form,
.workflow-panel,
.detail-section,
.activity-panel,
.danger-zone,
.team-assignment,
.employee-tools,
.employee-table-wrap,
.task-map-workspace,
.report-filter-panel,
.report-kpis,
.report-panel {
  border-color: var(--color-border);
  box-shadow: none;
}

.auth-experience {
  border: 1px solid var(--color-border);
}

.task-filter-panel > summary {
  border-color: var(--color-border);
  box-shadow: none;
}

.operation-item:hover,
.employee-table tbody tr:hover,
.report-task-list > a:hover,
.task-map-item:hover,
.task-map-item.is-active,
.technician-map-item:hover,
.technician-map-item.is-active {
  background: var(--color-surface-muted);
}

.operations-list,
.employee-table-wrap {
  border-radius: 15px;
}

.employee-table th {
  border-color: var(--color-border);
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

[dir="rtl"] .employee-table th {
  letter-spacing: 0;
}

.employee-table td,
.employee-table th,
.operation-item + .operation-item,
.report-task-list > a + a,
.performance-row + .performance-row {
  border-color: var(--color-border);
}

.role-badge,
.account-source,
.status-badge,
.task-type-badge,
.person-chip {
  box-shadow: none;
}

.kanban-lane__body {
  background: color-mix(in oklch, var(--lane-soft) 26%, var(--color-bg));
}

.kanban-card {
  box-shadow: none;
}

.kanban-card:hover,
.kanban-card:focus-within {
  box-shadow: none;
}

.report-presets button.is-active {
  border-color: var(--color-teal-700);
  background: var(--color-teal-700);
}

.report-panel > header,
.report-kpis article + article,
.task-map-list__heading,
.task-map-list__heading--team {
  border-color: var(--color-border);
}

.metric-track {
  background: var(--color-surface-muted);
}

.task-map-workspace .leaflet-bar {
  border-color: var(--color-border);
  box-shadow: none;
}

/* Compact two-row filters and searchable select controls. */
.task-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.task-filter__row {
  min-width: 0;
}

.task-filter__row--primary {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.65fr)
    repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
}

.task-filter__row--primary .field--search {
  grid-column: auto;
}

.task-filter__row--secondary {
  display: flex;
  align-items: end;
  gap: 9px;
}

.task-filter__row--secondary > .field {
  width: min(180px, 100%);
  flex: 0 1 180px;
}

.task-filter__row--secondary .check-field--filter {
  flex: 0 0 auto;
}

.task-filter__row--secondary .task-filter__actions {
  grid-column: auto;
  margin-inline-start: auto;
}

.kanban-filter-wrap .task-filter {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.kanban-filter-wrap .task-filter__row {
  width: 100%;
  grid-column: 1 / -1;
}

.kanban-filter-wrap .field > label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.kanban-filter-wrap .task-filter__actions {
  align-items: flex-end;
}

.searchable-select {
  position: relative;
  min-width: 0;
}

.searchable-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.searchable-select__trigger {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: start;
  transition:
    border-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart),
    background-color var(--motion-fast) var(--ease-out-quart);
}

.searchable-select__trigger:hover {
  border-color: color-mix(
    in oklch,
    var(--color-border) 58%,
    var(--color-teal-700)
  );
}

.searchable-select__trigger:focus-visible,
.searchable-select.is-open .searchable-select__trigger {
  border-color: var(--color-teal-700);
  outline: 0;
  box-shadow: 0 0 0 3px
    color-mix(in oklch, var(--color-teal-700) 13%, transparent);
}

.searchable-select__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.searchable-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select__chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-out-quart);
}

.searchable-select.is-open .searchable-select__chevron {
  transform: rotate(180deg);
}

.searchable-select__popover {
  position: fixed;
  z-index: var(--z-dropdown);
  display: flex;
  max-height: 320px;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
  box-shadow: 0 6px 14px oklch(0.20 0.025 166 / 0.14);
}

.searchable-select__popover[hidden] {
  display: none;
}

.searchable-select__search {
  position: relative;
  flex: 0 0 auto;
}

.searchable-select__search svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 10px;
  width: 16px;
  height: 16px;
  color: var(--color-ink-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.searchable-select__input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  padding-inline-start: 34px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface-muted);
  color: var(--color-ink);
  font-size: 0.78rem;
  outline: 0;
}

.searchable-select__input::placeholder {
  color: var(--color-ink-muted);
  opacity: 1;
}

.searchable-select__input:focus {
  border-color: var(--color-teal-700);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px
    color-mix(in oklch, var(--color-teal-700) 13%, transparent);
}

.searchable-select__list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.searchable-select__option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: start;
}

.searchable-select__option:hover,
.searchable-select__option.is-active {
  background: var(--color-surface-muted);
}

.searchable-select__option[aria-selected="true"] {
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  font-weight: 700;
}

.searchable-select__check {
  flex: 0 0 auto;
  opacity: 0;
}

.searchable-select__option[aria-selected="true"]
  .searchable-select__check {
  opacity: 1;
}

.searchable-select__empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--color-ink-muted);
  font-size: 0.78rem;
  text-align: center;
}

.task-location-picker {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}

.task-location-picker__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.task-location-picker__heading h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.9rem;
}

.task-location-picker__heading p {
  max-width: 70ch;
  margin: 5px 0 0;
  color: var(--color-ink-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.task-location-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 18px;
  border-block-end: 1px solid var(--color-border);
}

.task-location-search .button {
  min-height: 38px;
}

.task-location-results {
  display: grid;
  max-height: 230px;
  overflow-y: auto;
  padding: 5px;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-surface);
}

.task-location-results[hidden] {
  display: none;
}

.task-location-result {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.task-location-result:hover,
.task-location-result:focus-visible {
  background: var(--color-teal-100);
}

.task-location-result strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.task-location-result span {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.task-location-results__empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--color-ink-muted);
  font-size: 0.78rem;
  text-align: center;
}

.task-location-picker__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  min-height: 340px;
}

.task-location-map.task-map-workspace {
  --task-map-height: 340px;

  display: block;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  height: var(--task-map-height);
  min-width: 0;
  min-height: 340px;
  grid-template-columns: none;
  overflow: hidden;
  border-inline-end: 1px solid var(--color-border);
  border-block: 0;
  border-inline-start: 0;
  border-radius: 0;
  background: var(--color-surface-muted);
  contain: layout paint;
}

.task-location-map.task-map-workspace.is-unavailable {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--color-danger);
  font-size: 0.8rem;
  text-align: center;
}

.task-location-picker__controls {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  background: var(--color-surface);
}

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

.task-location-picker__controls .field-hint {
  margin: -3px 0 0;
}

.task-location-picker__clear {
  justify-self: start;
}

.task-location-picker__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.task-location-picker__status.is-error {
  color: var(--color-danger);
}

.task-location-picker .leaflet-container {
  font-family: inherit;
}

@media (max-width: 900px) {
  .task-filter__row--primary,
  .task-filter__row--secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .task-filter__row--secondary > .field {
    width: 100%;
  }

  .task-filter__row--secondary .task-filter__actions {
    width: 100%;
    margin-inline-start: 0;
  }

  .task-filter__actions .button {
    flex: 1 1 0;
  }

  .searchable-select__trigger,
  .searchable-select__input,
  .searchable-select__option {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .task-location-picker__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-location-map.task-map-workspace {
    --task-map-height: 300px;

    min-height: 300px;
    border-inline-end: 0;
    border-block-end: 1px solid var(--color-border);
  }
}

@media (max-width: 540px) {
  .task-location-picker__heading,
  .task-location-search,
  .task-location-picker__controls {
    padding-inline: 14px;
  }

  .task-location-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-location-search .button {
    width: 100%;
  }

  .task-coordinate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-location-map.task-map-workspace {
    --task-map-height: 270px;

    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kanban-card,
  .kanban-lane__body {
    transition: none;
  }

  .field input,
  .field select,
  .field textarea {
    transition: none;
  }

  .task-filter-panel > summary svg {
    transition: none;
  }

  .evidence-carousel__thumbnail {
    scroll-behavior: auto;
  }

  .technician-map-marker--live {
    animation: none;
  }

  .metric-track > span {
    transition: none;
  }

  .searchable-select__trigger,
  .searchable-select__chevron {
    transition: none;
  }

  .task-location-result {
    transition: none;
  }
}
