:root {
  color-scheme: light;
  --ink: #1d211d;
  --muted: #687065;
  --paper: #F9F3EB;
  --panel: #fffdf7;
  --line: #d9d6c8;
  --green: #2f6f57;
  --amber: #b86f16;
  --red: #a23b35;
  --blue: #2d637d;
  --charcoal: #252821;
  --shadow: 0 18px 45px rgba(29, 33, 29, 0.08);
  --ops-bg: #16130d;
  --ops-surface: #231f18;
  --ops-surface-high: #39342d;
  --ops-line: #58423a;
  --ops-bone: #cdc6b6;
  --ops-ink: #1f1b11;
  --ops-text: #eae1d6;
  --ops-muted: #dfc0b6;
  --ops-orange: #FFAA6E;
  --primary-orange: #f16a33;
  --ops-cyan: #ACEFFF;
  --ops-cyan-ink: #00363b;
  --ops-orange-ink: #5d1900;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "Work Sans", sans-serif !important;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 40, 33, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--charcoal);
  color: white;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 320px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.67rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 0;
  background: var(--ops-bg);
  color: var(--ops-text);
  position: sticky;
  top: 0;
  z-index: 45;
}

.topbar h1,
.panel h2,
.empty h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.topbar__tools {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 0.5rem;
}

.brand-logo {
  display: block;
  flex: 1 1 auto;
  width: clamp(108px, 34vw, 280px);
  min-width: 0;
  max-width: 240px;
  height: auto;
}

.profile-menu {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sync-pill {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 0.55rem;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.sync-pill--reconnecting,
.sync-pill--loading {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.sync-pill--disconnected,
.sync-pill--local {
  background: var(--paper);
  color: var(--ops-bg);
}

.profile-trigger {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 50% !important;
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0;
  text-transform: uppercase;
}

.employee-home {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.employee-current-shift {
  width: 100%;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  font-size: clamp(1.6rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: left;
  text-transform: uppercase;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 0.45rem;
  width: min(280px, calc(100vw - 2rem));
  background: var(--ops-surface-high);
  color: var(--ops-text);
  padding: 0.65rem;
}

.profile-dropdown label {
  display: grid;
  gap: 0.3rem;
  color: var(--ops-muted);
  font-family: "Work Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-identity {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem;
  background: var(--ops-surface);
}

.profile-identity span {
  color: var(--ops-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-identity strong {
  color: var(--ops-text);
  font-size: 0.82rem;
}

.profile-dropdown select,
.profile-dropdown button {
  min-height: 40px;
  background: var(--ops-surface);
  color: var(--ops-text);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-nav {
  display: grid;
  gap: 0.35rem;
}

.profile-nav__item {
  background: var(--ops-surface);
  color: var(--ops-text);
  text-align: left;
}

.profile-nav__item.is-active {
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main {
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.notice {
  position: fixed;
  top: 68px;
  left: 0;
  z-index: 60;
  width: calc(100% - 2rem);
  margin: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d9b36c;
  border-left: 6px solid var(--amber);
  background: var(--ops-bg);
  color: var(--ops-bone);
  font-weight: 700;
  border-radius: 6px;
  animation: noticeFlash 1.6s ease-in-out both;
}

@keyframes noticeFlash {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  12%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--home {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.staff-dashboard .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.staff-dashboard .panel--wide {
  grid-column: 1 / -1;
}

.staff-dashboard .panel--launchers,
.staff-dashboard .panel--report-issue,
.staff-dashboard .panel--staff-notes,
.staff-dashboard .panel--resources {
  background: var(--paper);
}

.amenity-readiness-panel {
  background: #110e08 !important;
  color: var(--ops-bone, #cdc6b6);
  padding: 0.55rem !important;
}

.amenity-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.amenity-readiness {
  display: grid;
  min-width: 0;
  min-height: 82px;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  background: var(--ops-surface-high, #39342d);
  padding: 0.4rem;
  text-align: center;
}

.amenity-readiness__icon,
.amenity-readiness__state {
  display: grid;
  place-items: center;
}

.amenity-readiness__icon svg {
  width: 27px;
  height: 27px;
}

.amenity-readiness strong {
  overflow: hidden;
  width: 100%;
  font-size: 0.64rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amenity-readiness__state {
  color: #ff8f85;
}

.amenity-readiness.is-ready .amenity-readiness__state {
  color: #78d6a3;
}

.amenity-readiness__state svg {
  width: 21px;
  height: 21px;
}

.panel--attention {
  background: var(--ops-orange, #ffaa6e) !important;
  color: var(--ops-orange-ink, #5d1900);
}

.attention-count {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: #110e08;
  color: var(--paper);
  font-weight: 900;
}

.attention-list {
  display: grid;
  gap: 0.4rem;
  max-height: 300px;
  overflow: auto;
}

.attention-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.7rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.38);
  padding: 0.55rem;
}

.attention-row.is-urgent {
  background: #8f1919;
  color: white;
}

.attention-row > span,
.attention-row small {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.attention-row strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.attention-row small {
  text-align: right;
}

.attention-row.has-action small {
  grid-column: 2;
  text-align: left;
}

.attention-action {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: var(--primary-orange, #f16a33);
  color: #110e08;
  cursor: pointer;
}

.attention-action svg {
  width: 18px;
  height: 18px;
}

.panel--operational-reports {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.panel--operational-reports p,
.panel--operational-reports small {
  display: block;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.panel-actions a,
.panel-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--ops-surface);
  color: white;
  padding: 0.65rem 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.attention-empty {
  margin: 0;
  font-weight: 750;
}

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

.panel,
.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel--primary {
  grid-row: span 2;
}

.panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.counter {
  display: inline-grid;
  min-width: 2.4rem;
  min-height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-weight: 800;
  padding: 0 0.7rem;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.status-pill {
  min-height: 124px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  border-radius: 8px;
  background: white;
  padding: 0.8rem;
}

.status-pill strong,
.status-pill span,
.status-pill small {
  display: block;
}

.status-pill span {
  margin: 0.35rem 0;
  color: var(--blue);
  font-weight: 800;
  text-transform: capitalize;
}

.status-pill--available {
  border-left-color: var(--green);
}

.status-pill--available span {
  color: var(--green);
}

.status-pill--locked-out,
.status-pill--verification-required,
.status-pill--below-temp {
  border-left-color: var(--red);
}

.status-pill--locked-out span,
.status-pill--verification-required span,
.status-pill--below-temp span {
  color: var(--red);
}

.handoff {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.handoff h3 {
  margin: 0.8rem 0 0.35rem;
}

.handoff p,
.audit-list p,
.panel > p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
  color: var(--muted);
}

.launcher-grid {
  display: grid;
  gap: 0.6rem;
}

.launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: white;
  color: var(--ink);
}

.launcher small {
  color: var(--muted);
}

.issue-form,
.stack {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.resource-list,
.queue-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0.7rem;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 1.15rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
}

.resource-row,
.queue-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0.75rem;
}

.resource-row small,
.queue-item p,
.queue-item small,
.muted {
  color: var(--muted);
}

.resource-row small,
.queue-item p,
.queue-item small {
  grid-column: 1 / -1;
  margin: 0;
}

.run-shift-shell {
  --ops-bg: #16130d;
  --ops-surface: #231f18;
  --ops-surface-high: #39342d;
  --ops-line: #58423a;
  --ops-bone: #cdc6b6;
  --ops-ink: #1f1b11;
  --ops-text: #eae1d6;
  --ops-muted: #dfc0b6;
  --ops-orange: #FFAA6E;
  --ops-cyan: #ACEFFF;
  --ops-cyan-ink: #00363b;
  --ops-orange-ink: #5d1900;
  margin: -1rem calc(clamp(1rem, 4vw, 2.5rem) * -1) -2rem;
  min-height: calc(100vh - 148px);
  padding: 0 1rem 2.5rem;
  background: var(--ops-bg);
  color: var(--ops-text);
  font-family: "Work Sans", sans-serif;
}

.run-shift-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin: 0 -1rem 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  position: sticky;
  top: 58px;
  z-index: 35;
  border-bottom: 1px solid var(--ops-line);
  background: #110e08;
}

.run-shift-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.run-shift-name {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.run-shift-name strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-switch-button {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-orange, #f16a33);
  padding: 0;
}

.run-switch-button svg {
  width: 17px;
  height: 17px;
}

.run-shift-stat,
.run-shift-date {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.run-shift-date {
  align-items: center;
  flex: 0 0 auto;
}

.run-shift-stat span,
.run-shift-date span,
.run-kicker {
  color: var(--ops-muted);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.run-shift-stat strong,
.run-shift-date strong {
  color: var(--ops-orange);
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.run-shift-date strong {
  white-space: nowrap;
}

.run-shift-stat--cyan {
  color: var(--ops-cyan) !important;
}

.run-progress {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.run-progress__track {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  background: var(--ops-surface-high);
}

.run-progress__track::-webkit-progress-bar {
  background: var(--ops-surface-high);
}

.run-progress__track::-webkit-progress-value,
.run-progress__track::-moz-progress-bar {
  background: var(--ops-orange);
}

.run-progress strong {
  color: var(--ops-text);
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
}

.run-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.run-command-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 170px;
}

.run-command-card {
  border: 1px solid var(--ops-line);
  background: var(--ops-surface);
  box-shadow: 4px 4px 0 #000;
  padding: 1rem;
}

.run-command-card--primary {
  background: var(--ops-bone);
  color: var(--ops-ink);
}

.run-command-card h2 {
  margin: 0.25rem 0 0.6rem;
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.run-command-card p {
  margin: 0 0 0.9rem;
}

.run-command-card button,
.run-toggle-strip button,
.mini-list--bento button,
.task-details,
.subtask-panel button {
  border-radius: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.run-command-card > button {
  width: 100%;
  border: 2px solid #000;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  box-shadow: 4px 4px 0 #000;
}

.run-close {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.5rem 0.7rem;
  text-transform: uppercase;
}

.run-handoff-fab {
  position: static;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  border: 0;
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  padding: 0;
  text-transform: uppercase;
}

.run-action-dock {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 42;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  transform: translateX(-50%);
  border: 0;
  background: var(--ops-surface, #231f18);
  padding: 0.35rem;
}

.run-handoff-fab.is-confirming {
  width: auto;
  min-width: 74px;
  padding: 0 0.7rem;
}

.run-handoff-fab svg {
  width: 23px;
  height: 23px;
}

.run-toggle-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  max-width: 1120px;
  margin: 0 auto 0.8rem;
  border: 0;
  background: var(--ops-surface-high);
}

.run-toggle-strip button {
  border: 0;
  background: transparent;
  color: var(--ops-muted);
}

.run-toggle-strip button.is-active {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.mini-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.mini-list--bento {
  margin-top: 0;
}

.mini-list--bento button {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--ops-line);
  background: #110e08;
  color: var(--ops-text);
  min-height: 48px;
  text-align: left;
}

.mini-list--bento button span {
  color: var(--ops-muted);
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  text-transform: none;
}

.mini-list--bento button.is-active {
  border-color: #000;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.mini-list--bento button.is-active span {
  color: var(--ops-cyan-ink);
}

.tasks {
  display: grid;
  gap: 0.75rem;
}

.tasks--bento {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.task-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.task-card--bento {
  border: 0;
  border-radius: 0;
  color: var(--ops-ink);
  padding: 0.75rem;
}

.task-card--cyan {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.task-card--orange {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.task-card--paper {
  background: var(--paper);
  color: var(--ops-ink);
}

.task-card--bone {
  background: var(--ops-bone);
  color: var(--ops-ink);
}

.task-card--charcoal {
  background: var(--ops-surface-high);
  color: var(--ops-text);
}

.task-card.done,
.task-card.done-verified {
  background: #39342d;
  color: #9b9486;
  outline: 0;
}

.task-card.done .check-name,
.task-card.done-verified .check-name {
  max-width: 15rem;
  overflow: hidden;
  font-size: 0.8rem;
  text-wrap: nowrap;
}

.task-card__body {
  max-height: 1800px;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.task-card__body.is-hidden {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.task-card.blocked-missing-tool,
.task-card.blocked-missing-supply,
.task-card.blocked-unsafe,
.task-card.skipped-no-time {
  outline: 3px solid var(--ops-orange);
  outline-offset: 3px;
}

.task-card__main {
  display: grid;
  align-items: center;
}

.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.check-name {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  padding: 0 0 0rem;
  text-align: left;
}

.task-name-button {
  display: grid;
  gap: 0.2rem;
}

.task-name-button span {
  align-self: center;
}

.task-name-button small {
  font-family: "Work Sans", sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.82;
  text-transform: uppercase;
}

.check-name:hover,
.check-name[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.08);
  transform: none;
}

.task-check {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  justify-self: end;
}

.task-check input {
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  position: absolute;
}

.task-check span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
}

.task-check input:checked + span {
  background: #111;
}

.task-check input:checked + span::after {
  content: "";
  width: 14px;
  height: 8px;
  border-bottom: 3px solid var(--ops-orange);
  border-left: 3px solid var(--ops-orange);
  transform: rotate(-45deg) translate(1px, -1px);
}

.task-completed-by {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  justify-self: end;
  border-radius: 50% !important;
  background: #111;
  color: var(--ops-orange);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0;
  text-transform: uppercase;
}

.task-identity {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.task-name-input {
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  padding: 0 0 0.4rem;
  resize: vertical;
  text-transform: none;
}

.task-name-textarea {
  overflow-wrap: anywhere;
}

.task-card--charcoal .task-name-input {
  border-bottom-color: rgba(234, 225, 214, 0.22);
}

.task-name-input:focus {
  border-bottom-color: #000;
  box-shadow: 0 3px 0 #000;
  outline: 0;
}

.task-card--charcoal .task-name-input:focus {
  border-bottom-color: var(--ops-orange);
  box-shadow: 0 3px 0 var(--ops-orange);
}

.task-meta {
  display: grid;
  grid-template-columns: minmax(130px, 180px) auto auto;
  gap: 0.45rem;
  align-items: center;
}

.priority-select {
  flex: 0 0 auto;
  max-width: 3rem;
  margin-left: auto;
  min-height: 34px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.35rem 0.45rem;
  text-transform: uppercase;
}

.priority-pill {
  display: inline-grid;
  min-width: 3rem;
  min-height: 34px;
  place-items: center;
  justify-self: end;
  margin-left: auto;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-select option {
  background: #16130d;
  color: #eae1d6;
}

.priority-select--p1 {
  box-shadow: inset 4px 0 0 #93000a;
}

.priority-select--p2 {
  box-shadow: inset 4px 0 0 #a8390b;
}

.priority-select--p3 {
  box-shadow: inset 4px 0 0 #006b74;
}

.priority-select--p4 {
  box-shadow: inset 4px 0 0 #58423a;
}

.task-status,
.task-original {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.task-status {
  white-space: nowrap;
}

.task-details {
  min-height: 36px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.45rem 0.6rem;
}

.task-details:hover,
.subtask-panel button:hover,
.mini-list--bento button:hover,
.run-command-card > button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.task-original {
  opacity: 0.82;
}

.subtask-panel {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.task-card--charcoal .subtask-panel {
  border-color: transparent;
  background: transparent;
}

.subtask-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  gap: 0.55rem;
  align-items: center;
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subtask-panel__head span {
  white-space: nowrap;
}

.subtask-panel button {
  min-height: 34px;
  color: inherit;
  padding: 0.4rem 0.55rem;
}

.subtask-list,
.subtask__children {
  display: grid;
  gap: 0.35rem;
}

.subtask__children {
  margin-top: 0.35rem;
  padding-left: 0.5rem;
}

.subtask {
  border-radius: 0;
}

.task-card--charcoal .subtask {
  border-color: rgba(234, 225, 214, 0.18);
}

.subtask.is-done {
  color: #9b9486;
  opacity: 0.68;
}

.task-card--charcoal .subtask.is-done {
  color: #9b9486;
}

.subtask__row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.subtask__title {
  font-size: 1rem;
}

.subtask-count {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: "Work Sans", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.subtask__row > span:empty {
  display: none;
}

.subtask-name-input {
  min-height: 50px;
  font-size: 1rem;
}

.subtask__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.35rem;
}

.task-card__detail {
  margin-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.24);
  padding-top: 0.65rem;
}

.task-edit-label {
  color: inherit;
}

.subtask__detail {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.45rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 0.45rem;
}

.subtask__detail p {
  margin: 0;
}

.task-card--charcoal .task-card__detail {
  border-top-color: rgba(234, 225, 214, 0.24);
}

.task-card__detail p {
  margin: 0.35rem 0;
}

.task-card__detail ul {
  display: grid;
  gap: 0.3rem;
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}

.task-card__detail li span {
  opacity: 0.78;
}

.warning {
  border-left: 4px solid #93000a;
  background: #ffdad6;
  padding: 0.55rem 0.7rem;
  color: #690005;
}

.linked {
  color: var(--ops-cyan-ink);
}

.panel,
.notice,
.metric,
.resource-row,
.queue-item,
.task-card,
.run-command-card,
.run-toggle-strip,
.run-shift-bar,
.manager-modal__panel,
.reorder-board,
.reorder-row {
  border: 0 !important;
}

.task-name-input,
.priority-select,
.task-details,
.subtask-panel button,
.subtask__children {
  border: 0 !important;
}

.manager-fab {
  position: static;
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
  font-family: "Work Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}

.manager-fab.is-close-mode {
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
}

.manager-modal[hidden] {
  display: none;
}

.manager-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.employee-note-modal[hidden] {
  display: none;
}

.employee-note-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.manager-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 14, 8, 0.72);
}

.employee-note-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 14, 8, 0.72);
}

.manager-modal__panel {
  position: absolute;
  left: 50%;
  bottom: 5.25rem;
  display: grid;
  gap: 0.85rem;
  width: min(420px, calc(100vw - 2rem));
  border: 0;
  background: var(--ops-cyan, #83d3dc);
  color: var(--ops-cyan-ink, #00363b);
  padding: 1rem;
  transform: translateX(-50%);
}

.employee-note-modal__panel {
  position: absolute;
  left: 50%;
  bottom: 5.25rem;
  display: grid;
  gap: 0.75rem;
  max-height: min(70vh, 620px);
  width: min(420px, calc(100vw - 2rem));
  border: 0;
  background: var(--paper, #f9f3eb);
  color: var(--ops-ink, #1f1b11);
  overflow: auto;
  padding: 1rem;
  transform: translateX(-50%);
}

.manager-modal__head {
  display: block;
}

.manager-modal__head h2 {
  margin: 0.15rem 0 0;
  font-family: "Work Sans", sans-serif;
  line-height: 1;
}

.manager-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 0.55rem;
  align-items: end;
}

.manager-form input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ops-cyan-ink, #00363b);
}

.icon-action {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.manager-form button {
  background: var(--ops-surface, #231f18);
  color: white;
}

.icon-action--square {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
}

.icon-action svg {
  width: 22px;
  height: 22px;
}

.manager-mode-button.is-active {
  background: #39342d;
  color: var(--ops-text, #eae1d6);
}

.manager-mode-button {
  border: 0;
  background: var(--ops-surface, #231f18);
  color: var(--ops-text, #eae1d6);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 46px;
  text-transform: uppercase;
}

.manager-help {
  margin: 0;
  font-size: 0.85rem;
}

.note-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.note-list {
  display: grid;
  gap: 0.35rem;
}

.note-feed {
  display: grid;
  gap: 0.45rem;
  max-height: 320px;
  overflow: auto;
}

.activity-feed {
  display: grid;
  gap: 0.4rem;
  max-height: 360px;
  overflow: auto;
}

.activity-item {
  display: grid;
  gap: 0.15rem;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.45rem;
}

.activity-item strong {
  overflow-wrap: anywhere;
}

.activity-item small {
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.68;
  text-transform: uppercase;
}

.empty-note-feed {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.72;
}

.note-item {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.45rem;
  text-align: left;
  text-transform: none;
}

.note-item--editable {
  cursor: pointer;
}

.note-item--editable:hover {
  background: rgba(0, 0, 0, 0.18);
  transform: none;
}

.note-item strong {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.note-item small,
.note-item > span {
  display: block;
}

.note-item small {
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.68;
  text-transform: uppercase;
}

.note-item__text {
  overflow-wrap: anywhere;
}

.note-item__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.note-item__mentions em {
  background: rgba(0, 0, 0, 0.18);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.16rem 0.28rem;
  text-transform: uppercase;
}

.note-item__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.note-item__photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.note-item--editing textarea {
  min-height: 70px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  resize: vertical;
}

.note-item__actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.note-item__actions button {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: var(--ops-surface, #231f18);
  color: var(--ops-text, #eae1d6);
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.note-item__actions button[type="submit"] {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.note-item__actions svg {
  width: 18px;
  height: 18px;
}

.note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 0.45rem;
  align-items: start;
}

.note-form textarea {
  grid-column: 1 / 2;
  min-height: 46px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  resize: vertical;
}

.note-form__meta {
  grid-column: 1 / 2;
  display: grid;
  gap: 0.35rem;
}

.note-photo-picker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  padding: 0 0.4rem;
  text-transform: uppercase;
}

.note-photo-picker {
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
  cursor: pointer;
}

.note-photo-picker svg {
  width: 16px;
  height: 16px;
}

.note-photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.note-form button {
  display: grid;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  align-self: start;
  place-items: center;
  border: 0;
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
  padding: 0;
}

.note-form button svg {
  width: 21px;
  height: 21px;
}

.note-form button.is-saving,
.note-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.panel--tagged-notes {
  border: 0;
  border-radius: 0;
  background: var(--ops-cyan, #acefff);
  box-shadow: none;
  color: var(--ops-cyan-ink, #00363b);
}

.note-indicator {
  flex: 0 0 auto;
  width: 6px;
  height: 34px;
  background: currentColor;
  opacity: 0.82;
}

.day-condition-indicator {
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  color: currentColor;
}

.day-condition-indicator svg {
  width: 18px;
  height: 18px;
}

.run-chooser {
  position: fixed;
  inset: 0;
  z-index: 55;
}

.run-chooser__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(17, 14, 8, 0.78);
}

.run-chooser__panel {
  position: absolute;
  left: 50%;
  bottom: 5.25rem;
  display: grid;
  gap: 0.75rem;
  width: min(460px, calc(100vw - 2rem));
  max-height: min(74vh, 680px);
  overflow: auto;
  transform: translateX(-50%);
  border: 0;
  background: var(--paper, #f9f3eb);
  color: var(--ops-ink, #1f1b11);
  padding: 1rem;
}

.run-chooser__head {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.run-chooser__head h2,
.run-chooser__panel p {
  margin: 0;
}

.run-chooser__head > button {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: var(--primary-orange, #f16a33);
  color: var(--ops-orange-ink, #5d1900);
  padding: 0;
}

.run-chooser__list {
  display: grid;
  gap: 0.4rem;
}

.run-chooser__list button {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: var(--ops-cyan, #acefff);
  color: var(--ops-cyan-ink, #00363b);
  padding: 0.7rem;
  text-align: left;
}

.run-chooser__list button:nth-child(even) {
  background: var(--ops-orange, #ffaa6e);
  color: var(--ops-orange-ink, #5d1900);
}

.run-chooser__list button:disabled {
  background: #aaa49a;
  color: #39342d;
  opacity: 1;
}

.run-chooser__list span {
  font-weight: 800;
}

.run-chooser__list small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.schedule-import-panel {
  align-self: start;
  background: var(--ops-cyan, #acefff);
  color: var(--ops-cyan-ink, #00363b);
}

.schedule-horizon {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.schedule-horizon small {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-horizon strong {
  font-size: 0.82rem;
}

.schedule-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.4rem;
}

.schedule-month {
  display: grid;
  gap: 0.1rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.5rem;
}

.schedule-month strong {
  font-size: 0.82rem;
}

.schedule-month small {
  font-size: 0.62rem;
  font-weight: 700;
}

.schedule-import-summary,
.schedule-import-form {
  display: grid;
  gap: 0.35rem;
}

.schedule-import-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 0.75rem;
}

.schedule-import-form input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
}

.schedule-import-form button {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--ops-surface, #231f18);
  color: white;
  width: 44px;
  padding: 0;
  justify-content: center;
}

.staff-dashboard .resource-row {
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.07);
  padding: 0.55rem;
}

.staff-dashboard .resource-row.has-issue {
  background: var(--ops-orange, #ffaa6e);
  color: var(--ops-orange-ink, #5d1900);
}

.resource-state {
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-state.is-low {
  color: #8f1919;
}

.schedule-import-form button svg {
  width: 20px;
  height: 20px;
}

.reorder-board {
  display: grid;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--ops-text, #eae1d6);
  padding: 0;
}

.reorder-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.reorder-tree,
.reorder-children {
  display: grid;
  gap: 0.35rem;
}

.reorder-tree {
  min-height: 0.75rem;
}

.reorder-children:not(.is-empty) {
  padding-top: 0.35rem;
}

.reorder-children.is-empty {
  min-height: 0;
  padding-top: 0;
}

.reorder-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  border: 0;
  margin-left: 0;
  padding: 0.35rem;
}

.reorder-row--depth-1 { margin-left: 0.8rem; }
.reorder-row--depth-2 { margin-left: 1.6rem; }
.reorder-row--depth-3 { margin-left: 2.4rem; }
.reorder-row--depth-4 { margin-left: 3.2rem; }
.reorder-row--depth-5 { margin-left: 4rem; }
.reorder-row--depth-6 { margin-left: 4.8rem; }
.reorder-row--depth-7 { margin-left: 5.6rem; }
.reorder-row--depth-8 { margin-left: 6.4rem; }

.reorder-row.task-card--cyan {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.reorder-row.task-card--orange {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.reorder-row.task-card--paper {
  background: var(--paper);
  color: var(--ops-ink);
}

.reorder-row button {
  border: 0;
  border-radius: 0;
  background: var(--ops-surface-high, #39342d);
  color: var(--ops-text, #eae1d6);
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.reorder-row button:hover,
.icon-action:hover,
.manager-fab:hover {
  transform: none;
}

.manager-fab svg {
  width: 22px;
  height: 22px;
}

.reorder-row button:disabled {
  opacity: 0.45;
}

.reorder-row__drag {
  cursor: grab;
  background: transparent !important;
  color: inherit !important;
  min-height: 52px;
  padding: 0;
  touch-action: none;
  user-select: none;
}

.reorder-row__actions {
  display: grid;
  grid-auto-flow: column;
  gap: 0.35rem;
  align-items: stretch;
}

.reorder-row__main,
.reorder-row__count,
.reorder-row__delete {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  background: transparent !important;
  color: inherit !important;
  padding: 0;
}

.reorder-row__main svg,
.reorder-row__count svg,
.reorder-row__delete svg {
  width: 21px;
  height: 21px;
}

.reorder-row__count:not(.is-counted) {
  opacity: 0.68;
}

.reorder-row__title {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding-block: 0.35rem;
}

.reorder-row__title-input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
  color: inherit;
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.05;
  padding: 0.35rem 0.45rem;
}

.reorder-row__title-input:focus {
  outline: 2px solid currentColor;
  outline-offset: 0;
}

.reorder-node--chosen > .reorder-row,
.reorder-node--drag > .reorder-row {
  opacity: 0.92;
}

.reorder-node--ghost {
  opacity: 0.45;
}

.move-icon {
  display: grid;
  gap: 5px;
  justify-items: stretch;
  width: 26px;
  margin-inline: auto;
}

.move-icon span {
  display: block;
  height: 3px;
  background: currentColor;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--ops-bg);
  color: var(--ops-bone);
}

.login-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.brand-logo--login {
  width: min(100%, 280px);
  height: auto;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form input,
.login-form button {
  min-height: 48px;
  padding: 0.75rem;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
}

.login-form button {
  background: var(--ops-bg);
  color: var(--ops-bone);
  cursor: pointer;
}

@media (max-width: 980px) {
  .grid--home,
  .grid--owner,
  .grid--records,
  .run-bento,
  .tasks--bento {
    grid-template-columns: 1fr;
  }

  .run-command-stack {
    position: static;
  }

  .task-card__main,
  .task-meta,
  .subtask-panel__head,
  .subtask__row,
  .status-board,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .subtask__actions {
    justify-content: start;
  }

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

  .topbar__tools {
    grid-template-columns: 1fr auto;
  }

  .run-shift-bar {
    grid-template-columns: 1fr;
  }

  .check-row,
  .task-card__main {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 160px) 36px;
  }

  .subtask__row,
  .subtask-panel__head {
    grid-template-columns: minmax(0, 1fr) minmax(44px, auto) 34px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 0.4rem;
    padding-inline: 0.75rem;
  }

  .brand-logo {
    width: clamp(92px, 32vw, 150px);
  }

  .profile-menu {
    gap: 0.32rem;
  }

  .sync-pill {
    min-height: 24px;
    padding-inline: 0.35rem;
    font-size: 0.58rem;
  }

  .profile-trigger {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .panel,
  .empty {
    padding: 0.8rem;
  }

  .run-shift-shell {
    padding-inline: 0.8rem;
  }

  .run-shift-bar {
    grid-template-columns: 1fr;
    margin-inline: -0.8rem;
  }

  .schedule-import-form {
    grid-template-columns: 1fr;
  }

  .schedule-import-form button {
    justify-content: center;
    width: 100%;
  }

  .check-row,
  .task-card__main {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 112px) 32px;
  }

  .subtask__row,
  .subtask-panel__head {
    grid-template-columns: minmax(0, 1fr) minmax(36px, auto) 32px;
  }

  .task-card--bento,
  .run-command-card {
    padding: 0.8rem;
  }

  .reorder-board {
    padding: 0.65rem;
  }

  .reorder-board__head {
    grid-template-columns: 1fr;
  }

  .reorder-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.45rem;
    margin-left: 0;
    padding: 0.45rem;
  }

  .reorder-row--depth-1 { margin-left: 0.45rem; }
  .reorder-row--depth-2 { margin-left: 0.9rem; }
  .reorder-row--depth-3 { margin-left: 1.35rem; }
  .reorder-row--depth-4 { margin-left: 1.8rem; }
  .reorder-row--depth-5 { margin-left: 2.25rem; }
  .reorder-row--depth-6 { margin-left: 2.7rem; }
  .reorder-row--depth-7 { margin-left: 3.15rem; }
  .reorder-row--depth-8 { margin-left: 3.6rem; }

  .reorder-row__drag {
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .reorder-row__title {
    grid-column: 2;
  }

  .reorder-row__actions {
    grid-column: 3;
  }
}

.portal-page {
  display: grid;
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

main:has(.portal-page) {
  min-height: calc(100vh - 58px);
  padding: 0;
  background: var(--ops-bg);
}

.portal-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ops-text);
}

.portal-page__header h1,
.schedule-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.today-page,
.tools-page,
.schedule-page,
.profile-page,
.improvements-page {
  color: var(--ops-text);
}

.improvement-create,
.improvement-project__form,
.improvement-task,
.improvement-task-create {
  display: grid;
  gap: 0.55rem;
  align-items: end;
}

.improvement-create {
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1.2fr) 90px minmax(150px, 1fr) 150px 42px;
  padding: 1rem;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.improvement-create label,
.improvement-project__form label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 800;
}

.improvement-create input,
.improvement-create select,
.improvement-project input,
.improvement-project select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  font: inherit;
}

.improvement-create button,
.improvement-project button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  background: var(--ops-surface);
  color: white;
}

.improvement-create button svg,
.improvement-project button svg {
  width: 20px;
  height: 20px;
}

.improvement-list {
  display: grid;
  gap: 1rem;
}

.improvement-project {
  display: block;
  padding: 1rem;
  background: var(--paper);
  color: var(--ops-ink);
}

.improvement-project__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.improvement-project__summary::-webkit-details-marker {
  display: none;
}

.improvement-project__summary > span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.improvement-project__summary strong {
  font-size: 1rem;
}

.improvement-project__summary small {
  font-size: 0.62rem;
}

.improvement-project__summary b {
  flex: 0 0 auto;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.improvement-project[open] > :not(summary) {
  margin-top: 0.75rem;
}

.improvement-project:nth-child(even) {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.improvement-project--done {
  filter: grayscale(1);
  opacity: 0.72;
}

.improvement-project__form {
  grid-template-columns: minmax(260px, 2fr) 120px 80px minmax(150px, 1fr) 145px 42px;
}

.improvement-project__title {
  display: grid;
  gap: 0.25rem;
  align-self: stretch;
}

.improvement-project__title input {
  min-height: 38px;
  font-size: 1.05rem;
  font-weight: 900;
}

.improvement-project__title small {
  font-size: 0.62rem;
  font-weight: 750;
}

.improvement-tasks {
  display: grid;
}

.improvement-task {
  grid-template-columns: 120px minmax(260px, 1fr) 80px minmax(150px, 0.5fr) 145px 42px;
  padding: 0.48rem;
  background: rgba(255, 255, 255, 0.22);
}

.improvement-task:nth-child(even) {
  background: rgba(255, 255, 255, 0.38);
}

.improvement-task.is-done {
  opacity: 0.5;
}

.improvement-task.is-done .improvement-task__title {
  text-decoration: line-through;
}

.improvement-task-create {
  grid-template-columns: minmax(240px, 1fr) 90px 42px;
  justify-content: end;
  padding-top: 0.25rem;
}

@media (max-width: 900px) {
  .improvement-create,
  .improvement-project__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .improvement-project__title,
  .improvement-create label:first-child {
    grid-column: 1 / -1;
  }

  .improvement-task {
    grid-template-columns: 112px minmax(0, 1fr) 42px;
  }

  .improvement-task__title {
    grid-column: 2;
  }

  .improvement-task select[name="priority"],
  .improvement-task select[name="assigneeId"],
  .improvement-task input[name="dueDate"] {
    grid-row: 2;
  }

  .improvement-task button {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  .improvement-project__summary {
    align-items: start;
  }

  .improvement-project__summary b {
    max-width: 72px;
    text-align: right;
  }

  .improvement-create,
  .improvement-project__form,
  .improvement-task,
  .improvement-task-create {
    grid-template-columns: 1fr 42px;
  }

  .improvement-create label,
  .improvement-project__form label,
  .improvement-project__title,
  .improvement-task > input,
  .improvement-task > select,
  .improvement-task-create > input,
  .improvement-task-create > select {
    grid-column: 1;
  }

  .improvement-create button,
  .improvement-project__form button,
  .improvement-task button,
  .improvement-task-create button {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .improvement-task select[name="priority"],
  .improvement-task select[name="assigneeId"],
  .improvement-task input[name="dueDate"] {
    grid-row: auto;
  }
}

.today-checklist {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
  text-align: left;
}

.today-checklist strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.schedule-page__header {
  align-items: end;
}

.schedule-person-picker {
  width: min(340px, 100%);
  color: var(--ops-bone);
  font-size: 0.72rem;
  font-weight: 800;
}

.schedule-person-picker select {
  margin-top: 0.3rem;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  font-weight: 800;
}

.schedule-message {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
  font-weight: 800;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.schedule-summary > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.9rem;
}

.schedule-summary small,
.schedule-section label,
.profile-card small,
.profile-session small {
  font-size: 0.68rem;
  font-weight: 700;
}

.schedule-editor {
  display: grid;
  gap: 1rem;
}

.schedule-section {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--paper);
  color: var(--ops-ink);
}

.schedule-section:nth-child(even),
.profile-page .schedule-section {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.schedule-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.schedule-section__head button,
.schedule-save {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ops-surface);
  color: var(--ops-text);
  font-weight: 800;
}

.schedule-review--pending {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.schedule-review--reviewed {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.schedule-review--needs-changes {
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
}

.schedule-review > p,
.schedule-review > small {
  margin: 0;
}

.schedule-review__status {
  padding: 0.4rem 0.55rem;
  background: var(--ops-surface);
  color: var(--ops-text);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.schedule-review__stale {
  font-weight: 800;
}

.schedule-review__form,
.schedule-review__form label {
  display: grid;
  gap: 0.5rem;
}

.schedule-review__form textarea {
  min-height: 82px;
  resize: vertical;
}

.schedule-review__form > div {
  display: flex;
  justify-content: end;
  gap: 0.5rem;
}

.schedule-review__form button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
}

.schedule-review__form button:last-child {
  background: var(--ops-surface);
  color: var(--ops-text);
}

.schedule-review__form svg {
  width: 18px;
  height: 18px;
}

.schedule-section__head button svg,
.schedule-save svg,
.profile-session button svg {
  width: 20px;
  height: 20px;
}

.schedule-hours__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 0.55rem;
}

.schedule-hours__grid label,
.schedule-rule label {
  display: grid;
  gap: 0.25rem;
}

.schedule-rules,
.upcoming-shifts,
.profile-sessions {
  display: grid;
  gap: 0.45rem;
}

.schedule-rule {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(160px, 1.5fr) 42px;
  gap: 0.45rem;
  align-items: end;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.5);
}

.schedule-rule__notes {
  min-width: 0;
}

.schedule-rule__remove,
.profile-session button {
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
}

.schedule-save {
  justify-self: end;
  background: var(--primary-orange);
  color: var(--ops-orange-ink);
}

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

.upcoming-shift {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  background: var(--ops-surface);
  color: var(--ops-text);
}

.upcoming-shift small {
  color: var(--ops-bone);
}

.schedule-history__row,
.profile-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0;
}

.schedule-history__row small {
  text-align: right;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.profile-card > div {
  display: grid;
}

.profile-card__initial {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50% !important;
  background: var(--primary-orange);
  font-weight: 900;
}

.profile-session {
  grid-template-columns: minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.35);
  padding: 0.6rem;
}

.profile-session > div {
  display: grid;
}

@media (max-width: 760px) {
  .portal-page__header,
  .schedule-page__header {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-summary,
  .upcoming-shifts {
    grid-template-columns: 1fr;
  }

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

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

  .schedule-rule__notes {
    grid-column: 1 / -1;
  }

  .schedule-rule__remove {
    justify-self: end;
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .portal-page {
    padding: 0.8rem;
  }

  .schedule-section__head {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-section__head button {
    justify-content: center;
  }

  .schedule-rule {
    grid-template-columns: 1fr;
  }

  .schedule-rule__notes,
  .schedule-rule__remove {
    grid-column: 1;
  }

  .today-checklist {
    align-items: flex-start;
    flex-direction: column;
  }
}

.checklist-setup {
  display: grid;
  gap: 1rem;
  min-height: calc(100vh - 58px);
  background: var(--ops-bg);
  color: var(--ops-text);
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.checklist-setup__header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.checklist-setup__header h1,
.checklist-setup__header p {
  margin: 0;
}

.checklist-setup__header h1 {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  letter-spacing: 0;
}

.checklist-revision {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.1rem 0.55rem;
  align-items: baseline;
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  padding: 0.65rem 0.8rem;
}

.checklist-revision strong {
  font-size: 1.35rem;
}

.checklist-revision small {
  grid-column: 1 / -1;
}

.checklist-setup__actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 0.75rem;
}

.google-sheet-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1fr) minmax(260px, 1.15fr);
  gap: 0.75rem;
  align-items: stretch;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
  padding: 0.8rem;
}

.google-sheet-card--draft,
.google-sheet-card--blocked {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.google-sheet-card--uninitialized,
.google-sheet-card--unavailable,
.google-sheet-card--loading {
  background: var(--paper);
  color: var(--ops-ink);
}

.google-sheet-card__status,
.google-sheet-card__detail,
.google-sheet-card__actions {
  display: grid;
  align-content: center;
  gap: 0.3rem;
}

.google-sheet-card__status h2,
.google-sheet-card__status p,
.google-sheet-card__detail strong,
.google-sheet-card__detail small {
  margin: 0;
}

.google-sheet-card__status h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.google-sheet-card__status > span {
  width: fit-content;
  background: var(--ops-surface);
  color: var(--ops-bone);
  padding: 0.25rem 0.4rem;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.google-sheet-card__detail small {
  font-size: 0.7rem;
}

.google-sheet-card__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.google-sheet-card__actions a,
.google-sheet-card__actions button {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--ops-surface);
  color: var(--ops-bone);
  padding: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.google-sheet-card__actions svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.checklist-setup__actions > button,
.checklist-setup__actions form,
.checklist-preview header,
.checklist-setup__empty {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.checklist-setup__actions > button,
.checklist-setup__actions form button,
.checklist-preview header button {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  font-weight: 800;
}

.checklist-setup__actions > button {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.checklist-setup__actions svg,
.checklist-preview header button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.checklist-setup__actions form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.55rem;
}

.checklist-setup__actions label {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 800;
}

.checklist-setup__actions input {
  min-width: 0;
  background: var(--paper);
}

.checklist-profile-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.checklist-profile-key > div {
  display: grid;
  gap: 0.2rem;
  background: var(--ops-surface-high);
  padding: 0.7rem;
}

.checklist-profile-key strong {
  color: var(--ops-orange);
}

.checklist-profile-key span {
  color: var(--ops-bone);
  font-size: 0.76rem;
}

.checklist-setup__empty {
  padding: 1rem;
}

.checklist-setup__empty p {
  max-width: 760px;
  margin-bottom: 0;
}

.checklist-preview {
  display: grid;
  gap: 0.6rem;
}

.checklist-preview header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
}

.checklist-preview header > div {
  display: grid;
}

.checklist-preview header > div span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checklist-preview.is-blocked header {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.checklist-preview__errors,
.checklist-preview__changes,
.checklist-preview__unchanged {
  margin: 0;
  background: var(--paper);
  color: var(--ops-ink);
  padding: 0.8rem;
}

.checklist-preview__errors p {
  margin: 0 0 0.45rem;
}

.checklist-preview__changes {
  display: grid;
  gap: 0.35rem;
  max-height: 55vh;
  overflow: auto;
}

.checklist-preview__changes > div {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.5fr) minmax(180px, 1fr);
  gap: 0.5rem;
  align-items: center;
  background: rgba(172, 239, 255, 0.45);
  padding: 0.55rem;
}

.checklist-preview__changes small {
  overflow-wrap: anywhere;
}

.run-phase {
  display: grid;
  gap: 0.7rem;
}

.run-phase + .run-phase {
  margin-top: 1rem;
}

.run-phase__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--ops-surface-high);
  color: var(--ops-text);
  padding: 0.7rem 0.75rem;
}

.run-phase__header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.run-phase__header span {
  color: var(--ops-orange);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .google-sheet-card {
    grid-template-columns: 1fr;
  }

  .google-sheet-card__actions {
    grid-template-columns: 1fr 1fr;
  }

  .checklist-setup__actions,
  .checklist-profile-key {
    grid-template-columns: 1fr;
  }

  .checklist-setup__actions form {
    grid-template-columns: 1fr;
  }

  .checklist-setup__header {
    align-items: start;
  }

  .checklist-preview__changes > div {
    grid-template-columns: 1fr;
  }
}

.product-tracking {
  min-height: calc(100vh - 58px);
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--ops-bg);
  color: var(--ops-text);
}

main:has(.product-tracking) {
  padding: 0;
}

.product-tracking__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-tracking__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: 0;
}

.product-tracking .eyebrow {
  color: var(--ops-orange);
}

.product-import {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 0.5rem;
  align-items: end;
}

.product-import label,
.product-search,
.product-review-row label {
  display: grid;
  gap: 0.3rem;
  color: var(--ops-bone);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.product-import input,
.product-search input,
.product-review-row input,
.product-review-row select {
  background: var(--paper);
  color: var(--ops-ink);
}

.product-import button,
.product-review-tools button,
.product-load-more,
.product-review-row button {
  background: var(--primary-orange);
  color: var(--ops-ink);
  font-weight: 800;
}

.product-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-summary__stat {
  display: grid;
  gap: 0.15rem;
  min-height: 88px;
  align-content: center;
  padding: 0.8rem;
  background: var(--paper);
  color: var(--ops-ink);
}

.product-summary__stat:nth-child(2n) {
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.product-summary__stat.is-attention {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.product-summary__stat small {
  font-size: 0.65rem;
  font-weight: 750;
}

.product-summary__stat strong {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1rem;
  background: var(--ops-surface-high);
}

.product-tabs button {
  background: transparent;
  color: var(--ops-bone);
  font-weight: 750;
}

.product-tabs button.is-active {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.product-workspace {
  display: grid;
  gap: 1rem;
}

.product-search {
  max-width: 620px;
}

.spend-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.spend-breakdown > div {
  padding: 1rem;
  background: var(--ops-surface);
}

.spend-breakdown h2,
.product-sources h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.spend-bars {
  display: grid;
  gap: 0.45rem;
}

.spend-bar {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(80px, 2fr) auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.72rem;
}

.spend-bar progress {
  display: block;
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  background: var(--ops-surface-high);
}

.spend-bar progress::-webkit-progress-bar {
  background: var(--ops-surface-high);
}

.spend-bar progress::-webkit-progress-value,
.spend-bar progress::-moz-progress-bar {
  background: var(--ops-cyan);
}

.purchasing-needs {
  display: grid;
  gap: 0.75rem;
}

.purchasing-need {
  background: var(--paper);
  color: var(--ops-ink);
}

.purchasing-need.is-due .purchasing-need__summary {
  background: var(--ops-orange);
}

.purchasing-need__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.purchasing-need__summary h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.purchasing-need__metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
  max-width: 600px;
  font-size: 0.72rem;
}

.product-alternatives {
  display: grid;
}

.product-alternative {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  background: #ede5da;
}

.product-alternative:nth-child(2n) {
  background: #fffaf3;
}

.product-alternative.is-approved {
  background: #cce5bd;
}

.product-alternative > div,
.product-catalog__row > span:first-child {
  display: grid;
  gap: 0.15rem;
}

.product-alternative small,
.product-model small,
.product-catalog small {
  color: #675f55;
  font-size: 0.65rem;
}

.product-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ops-surface);
  color: white;
  font-weight: 800;
}

.product-alternative__metrics {
  text-align: right;
  font-size: 0.68rem;
}

.product-review-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-review-tools .product-search {
  flex: 1;
}

.product-review-import {
  display: grid;
  grid-template-columns: minmax(190px, 260px) auto;
  gap: 0.4rem;
  align-items: end;
}

.product-review-import label {
  display: grid;
  gap: 0.3rem;
  color: var(--ops-bone);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-review-import input {
  background: var(--paper);
  color: var(--ops-ink);
}

.product-review-import button {
  background: var(--primary-orange);
  color: var(--ops-ink);
  font-weight: 800;
}

.product-review-list {
  display: grid;
  gap: 0.5rem;
}

.product-review-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(120px, 1fr)) 90px;
  gap: 0.5rem;
  align-items: end;
  padding: 0.75rem;
  background: var(--ops-cyan);
  color: var(--ops-cyan-ink);
}

.product-review-row:nth-child(2n) {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
}

.product-review-row__identity {
  display: grid;
  gap: 0.2rem;
  grid-row: span 2;
  align-self: stretch;
}

.product-review-row__identity span {
  font-size: 0.68rem;
}

.product-review-row__notes {
  grid-column: 2 / span 4;
}

.product-review-row button {
  grid-column: 6;
}

.product-load-more {
  justify-self: center;
}

.product-catalog {
  display: grid;
  background: var(--paper);
  color: var(--ops-ink);
}

.product-catalog__head,
.product-catalog__row {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) minmax(120px, 1fr) 110px 70px 120px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
}

.product-catalog__head {
  background: var(--ops-orange);
  color: var(--ops-orange-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.product-catalog__row:nth-child(odd) {
  background: #ede5da;
}

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

.product-sources > div {
  padding: 1rem;
  background: var(--ops-surface);
}

.product-models,
.product-imports {
  display: grid;
  gap: 0.4rem;
}

.product-model,
.product-imports > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  background: var(--paper);
  color: var(--ops-ink);
}

.product-model__targets {
  color: #4d5c43;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-model__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.product-model__links a {
  padding: 0.3rem 0.45rem;
  background: var(--ops-surface);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.product-source-count,
.empty-inline {
  color: var(--ops-bone);
}

@media (max-width: 900px) {
  .product-tracking__header,
  .product-review-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .product-review-import {
    grid-template-columns: 1fr auto;
  }

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

  .product-summary__stat:first-child {
    grid-column: span 2;
  }

  .spend-breakdown,
  .product-sources {
    grid-template-columns: 1fr;
  }

  .product-review-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-review-row__identity,
  .product-review-row__notes,
  .product-review-row button {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .product-catalog {
    overflow-x: auto;
  }

  .product-catalog__head,
  .product-catalog__row {
    min-width: 780px;
  }
}

@media (max-width: 560px) {
  .product-tracking {
    padding: 0.8rem;
  }

  .product-import {
    grid-template-columns: 1fr;
  }

  .product-review-import {
    grid-template-columns: 1fr;
  }

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

  .purchasing-need__summary,
  .product-alternative {
    grid-template-columns: 1fr;
  }

  .purchasing-need__metrics {
    justify-content: flex-start;
  }

  .product-rank {
    width: 28px;
    height: 28px;
  }

  .product-alternative__metrics {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .schedule-import-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .schedule-import-form button {
    justify-self: end;
    width: 44px;
  }

  .attention-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attention-row small {
    grid-column: 2;
    text-align: left;
  }
}
