:root {
  color-scheme: light;
  --ink: #18221f;
  --muted: #65736f;
  --line: #dce4df;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --good: #0f766e;
  --warn: #a16207;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background: #eef3f0;
  color: var(--ink);
}

body.board-dark {
  --ink: #eef7f2;
  --muted: #a9bbb4;
  --line: #32443d;
  --surface: #17211e;
  --surface-soft: #111a17;
  background: #0d1512;
}

.first-board-tour {
  position: fixed;
  z-index: 1200;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 42px);
  width: min(420px, calc(100vw - 32px));
}

.first-board-tour[hidden] { display: none; }

.first-board-tour-card {
  padding: 21px;
  border: 2px solid transparent;
  border-radius: 18px;
  color: #edf8f0;
  background: linear-gradient(145deg, #173d30, #0b211b) padding-box, linear-gradient(125deg, var(--brand-accent), #78d4a6, var(--brand-primary), var(--brand-accent)) border-box;
  box-shadow: 0 22px 58px rgba(4, 19, 13, .52), 0 0 0 5px rgba(255, 255, 255, .05);
  animation: first-board-tour-in .42s cubic-bezier(.2, .9, .2, 1) both, first-board-tour-glow 2.4s ease-in-out infinite alternate;
}

.first-board-tour-progress { margin: 0 0 8px; color: var(--brand-accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.first-board-tour-card h2 { margin: 0; color: #fff; font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.first-board-tour-card > p:not(.first-board-tour-progress) { margin: 9px 0 18px; color: #d4e7da; line-height: 1.5; }
.first-board-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-secondary { padding: 9px 0; border: 0; color: #c7ddd0; background: transparent; cursor: pointer; font-weight: 700; }
.tour-secondary:hover { color: #fff; text-decoration: underline; }
.first-board-tour-target { position: relative; z-index: 1100; outline: 3px solid var(--brand-accent); outline-offset: 7px; border-radius: 12px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 30%, transparent), 0 0 30px color-mix(in srgb, var(--brand-accent) 58%, transparent); animation: first-board-tour-target 1.3s ease-in-out infinite alternate; }
@keyframes first-board-tour-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes first-board-tour-glow { to { box-shadow: 0 24px 64px rgba(4, 19, 13, .6), 0 0 0 7px color-mix(in srgb, var(--brand-accent) 18%, transparent); } }
@keyframes first-board-tour-target { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-primary) 27%, transparent), 0 0 42px color-mix(in srgb, var(--brand-accent) 82%, transparent); } }

@media (max-width: 680px) {
  .first-board-tour { right: 16px; bottom: 16px; }
  .first-board-tour-actions { align-items: stretch; flex-direction: column-reverse; }
  .first-board-tour-actions .primary-action { width: 100%; }
}

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

select {
  color-scheme: light;
}

select option,
select optgroup {
  background: #f8fafc;
  color: #18221f;
}

select option:checked {
  background: #dcebe4;
  color: #18221f;
}

button,
a {
  border-radius: 8px;
}

.app-shell {
  min-height: 100vh;
  padding: 20px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.brand,
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-link,
.display-logo-link,
.proshop-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.brand img,
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.app-shell[data-view="manager"] .brand-logo,
.app-shell[data-view="wide"] .brand-logo,
.app-shell[data-view="employees"] .brand-logo,
.app-shell[data-view="history-stats"] .brand-logo {
  width: 96px;
  height: 96px;
}

.app-shell[data-view="manager"] .brand-lockup,
.app-shell[data-view="wide"] .brand-lockup,
.app-shell[data-view="employees"] .brand-lockup,
.app-shell[data-view="history-stats"] .brand-lockup {
  min-height: 106px;
}

.brand p,
.eyebrow,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Barlow", Arial, sans-serif;
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 30px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-actions,
.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.display-launchers {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
}

.display-launchers a {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
  font-weight: 900;
}

.header-day-indicator {
  display: flex;
  justify-content: center;
  transform: translateX(-96px);
}

.nav-actions a,
.config-menu summary,
button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
  text-decoration: none;
  cursor: pointer;
}

.config-menu {
  position: relative;
}

.config-menu summary {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  list-style: none;
  font-weight: 900;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.config-menu summary::-webkit-details-marker {
  display: none;
}

.config-menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 190px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 35, 27, 0.14);
}

.config-menu:not([open]) .config-menu-items {
  display: none;
}

.config-menu-items a,
.config-menu-items button {
  width: 100%;
  text-align: left;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
}

.user-chip-copy {
  display: grid;
  gap: 1px;
}

.user-chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-badge {
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 12%, white);
  color: var(--brand-primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

button:hover,
.nav-actions a:hover,
.config-menu summary:hover {
  border-color: var(--brand-primary);
}

.theme-toggle {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
  color: var(--ink);
  font-weight: 800;
}

.board-dark .nav-actions a,
.board-dark .config-menu summary,
.board-dark .config-menu-items,
.board-dark .library-manage-link,
.board-dark button,
.board-dark input,
.board-dark select,
.board-dark textarea,
.board-dark .user-chip {
  background: var(--surface);
  color: var(--ink);
}

.board-dark input,
.board-dark select,
.board-dark textarea,
.board-dark .date-strip input,
.board-dark .start-time input,
.board-dark .setup-grid input,
.board-dark .setup-grid select,
.board-dark .setup-grid textarea,
.board-dark #job-search,
.board-dark .job-card input,
.board-dark #job-manager-search,
.board-dark .job-manager-form input,
.board-dark .job-manager-form select,
.board-dark .job-manager-form textarea,
.board-dark .history-filters input,
.board-dark .history-filters select,
.board-dark .mobile-job-card #mobile-job-search,
.board-dark .mobile-job-notes input,
.board-dark .employee-form input,
.board-dark .employee-form select {
  background: #101815;
  color: var(--ink);
}

.board-dark .employee-editor-top,
.board-dark .employee-avatar,
.board-dark .employee-photo-preview {
  background: var(--surface-soft);
  border-color: var(--line);
}

.board-dark .panel,
.board-dark .mobile-summary,
.board-dark .mobile-person,
.board-dark .modal-card {
  background: var(--surface);
  border-color: var(--line);
}

.board-dark .employee-lane {
  background: var(--surface-soft);
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.setup-panel {
  margin-top: 18px;
  border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 5%, var(--surface)), var(--surface) 42%),
    var(--surface);
}

.compact {
  margin-bottom: 18px;
}

.planner-side {
  padding-top: 46px;
}

.planner-side-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px;
}

.planner-side-tabs button {
  min-height: 42px;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
  color: var(--muted);
  font-weight: 900;
}

.planner-side-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand-primary) 34%, var(--line));
}

.planner-side-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.planner-side-card[hidden] {
  display: none;
}

.date-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  min-height: 38px;
}

.app-shell[data-view="manager"] .date-strip,
.app-shell[data-view="wide"] .date-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
}

.day-controls,
.board-actions,
.date-strip-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.day-controls {
  min-width: 0;
}

.board-actions {
  justify-content: flex-end;
}

.date-strip-end {
  justify-content: flex-end;
  min-width: 0;
}

.wide-planner-link {
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 58%, var(--line));
  border-radius: 8px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--brand-accent) 22%, var(--surface));
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.date-strip input,
.start-time input,
.setup-grid input,
.setup-grid select,
.setup-grid textarea,
#job-search,
.job-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
}

.date-strip input {
  width: 142px;
  padding: 7px 8px;
}

.date-strip button {
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1;
}

.date-strip .icon-button {
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.job-library-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.job-suggester-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 8px;
}

.job-suggester-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.library-manage-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.job-suggester-page-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-suggester-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.job-suggester-mode-tabs button {
  min-width: 88px;
  min-height: 32px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-suggester-mode-tabs button.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.combined-job-editor-open {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.job-suggester-page-tabs button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
  color: var(--muted);
  font-weight: 900;
}

.job-suggester-page-tabs button.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.job-suggester-page-tabs button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.date-context {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 32%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 10%, white);
  color: var(--brand-primary);
  min-width: 220px;
  text-align: center;
  padding: 15px 28px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}

.date-context.is-muted {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 24px;
}

#save-status {
  color: var(--muted);
  font-size: 14px;
}

.readonly-banner {
  margin: 0 0 12px;
  border: 1px solid #ead69a;
  border-radius: 8px;
  background: #fff8df;
  color: #6f5306;
  padding: 10px 12px;
  font-weight: 700;
}

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

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#clear-current-setup {
  border-color: color-mix(in srgb, #d64545 35%, var(--line));
  color: #9d2323;
  background: color-mix(in srgb, #d64545 8%, var(--surface));
}

.start-time {
  display: grid;
  width: 140px;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

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

.planner-setup-required {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 230px;
  align-content: center;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 52%, var(--line));
  border-radius: 10px;
  padding: 28px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface-soft));
  text-align: center;
}

.planner-setup-required[hidden] {
  display: none;
}

.planner-setup-required > span {
  font-size: 2rem;
}

.planner-setup-required h3,
.planner-setup-required p {
  margin: 0;
}

.planner-setup-required p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.employee-lane-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.employee-lane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.employee-lane.is-selected {
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.employee-lane.is-drop-target {
  border-color: #c99216;
  background: color-mix(in srgb, #c99216 16%, var(--surface-soft));
  box-shadow: inset 0 0 0 2px #c99216, 0 0 0 3px color-mix(in srgb, #c99216 22%, transparent);
}

.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.select-lane {
  border: 1px solid color-mix(in srgb, #c99216 58%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, #c99216 14%, transparent);
  color: #c99216;
  width: 100%;
  padding: 7px 9px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.add-card {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.cards {
  display: grid;
  gap: 7px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(160px, 4fr) minmax(180px, 6fr) 32px;
  gap: 6px;
  align-items: center;
}

.job-card input[data-card-title] {
  border-color: color-mix(in srgb, var(--brand-primary) 48%, #0f172a);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 86%, #0f172a), #10211d);
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.job-card input[data-card-title]::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.remove-card {
  padding: 0;
  color: #8f1d1d;
}

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

.setup-grid label {
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
}

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

.setup-card {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 84%, var(--surface)), var(--surface-soft)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.board-dark .setup-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, #24342f), var(--surface-soft));
}

.setup-card[data-tooltip] {
  isolation: isolate;
}

.setup-card[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -10px;
  width: 18px;
  height: 18px;
  border-left: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 9%, #ffffff);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) rotate(45deg);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 22;
}

.setup-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 10px);
  max-width: 440px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 9%, #ffffff);
  box-shadow: 0 18px 42px rgba(11, 27, 20, 0.22);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
  z-index: 21;
}

.setup-card[data-tooltip]:hover::before,
.setup-card[data-tooltip]:hover::after,
.setup-card[data-tooltip]:focus-within::before,
.setup-card[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}

.setup-card[data-tooltip]:hover::after,
.setup-card[data-tooltip]:focus-within::after {
  transform: translateY(0);
}

.board-dark .setup-card[data-tooltip]::before,
.board-dark .setup-card[data-tooltip]::after {
  background: #172722;
  border-color: #5d8376;
  color: #f3fff9;
}

.setup-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  font-size: 18px;
  font-weight: 900;
}

.setup-icon {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.setup-icon::before,
.setup-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.setup-image-icon {
  box-shadow: 0 10px 22px rgba(10, 24, 18, 0.18);
}

.setup-image-icon::before,
.setup-image-icon::after {
  display: none;
}

.setup-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.setup-card select,
.setup-card textarea {
  min-height: 66px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.setup-reminder {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 52%, var(--line));
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--brand-accent) 16%, var(--surface));
  color: color-mix(in srgb, var(--brand-primary) 80%, var(--ink));
  font-size: 13px;
  font-weight: 900;
}

.setup-reminder.is-empty {
  border-color: var(--line);
  background: color-mix(in srgb, var(--muted) 7%, var(--surface));
  color: var(--muted);
}

.setup-card-greens .setup-icon::before,
.setup-card-fairways .setup-icon::before {
  inset: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 76%, #4ade80);
}

.setup-card-greens .setup-icon::after,
.setup-card-fairways .setup-icon::after {
  left: 10px;
  right: 10px;
  top: 23px;
  height: 3px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -7px 0 rgba(255, 255, 255, 0.48), 0 7px 0 rgba(255, 255, 255, 0.48);
}

.setup-card-direction .setup-icon::before,
.setup-card-fairway-direction .setup-icon::before {
  left: 9px;
  right: 9px;
  top: 23px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.setup-card-direction .setup-icon::after,
.setup-card-fairway-direction .setup-icon::after {
  right: 9px;
  top: 16px;
  width: 15px;
  height: 15px;
  border-top: 4px solid var(--brand-accent);
  border-right: 4px solid var(--brand-accent);
  transform: rotate(45deg);
}

.setup-card-cleanup .setup-icon::before {
  left: 12px;
  top: 23px;
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-primary);
  transform: rotate(-22deg);
}

.setup-card-cleanup .setup-icon::after {
  right: 11px;
  top: 12px;
  width: 10px;
  height: 25px;
  border-radius: 999px;
  background: var(--brand-accent);
  transform: rotate(-22deg);
}

.setup-card-pin .setup-icon::before {
  left: 22px;
  top: 10px;
  width: 4px;
  height: 31px;
  border-radius: 999px;
  background: var(--brand-primary);
}

.setup-card-pin .setup-icon::after {
  left: 25px;
  top: 10px;
  width: 16px;
  height: 14px;
  border-radius: 2px 9px 9px 2px;
  background: var(--brand-accent);
}

.setup-card-cart .setup-icon::before {
  left: 10px;
  right: 10px;
  top: 17px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand-primary);
}

.setup-card-cart .setup-icon::after {
  left: 13px;
  bottom: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-accent);
  box-shadow: 17px 0 0 var(--brand-accent);
}

.setup-card-start .setup-icon::before {
  left: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid var(--brand-primary);
}

.setup-card-start .setup-icon::after {
  left: 22px;
  top: 14px;
  width: 4px;
  height: 17px;
  border-radius: 999px;
  background: var(--brand-accent);
  transform: rotate(42deg);
  transform-origin: bottom;
}

.setup-card-range .setup-icon::before {
  left: 12px;
  bottom: 12px;
  width: 27px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-primary);
  transform: rotate(-18deg);
}

.setup-card-range .setup-icon::after {
  right: 12px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.setup-card-notes {
  min-height: 0;
}

.setup-card-notes .setup-icon::before {
  left: 12px;
  top: 10px;
  width: 25px;
  height: 29px;
  border: 3px solid var(--brand-primary);
  border-radius: 3px;
  background: transparent;
}

.setup-card-notes .setup-icon::after {
  left: 17px;
  top: 19px;
  width: 16px;
  height: 3px;
  background: var(--brand-accent);
  box-shadow: 0 7px 0 var(--brand-accent);
}

.job-library {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  margin-top: 10px;
}

.new-job-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0;
}

.wide-action {
  width: 100%;
  margin: 10px 0;
  font-weight: 800;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.new-job-form input,
.job-dialog-form input,
.job-dialog-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
  color: #18221f;
}

.board-dark .new-job-form input,
.board-dark .job-dialog-form input,
.board-dark .job-dialog-form select {
  background: #f8fafc;
  border-color: #8bd6be;
  color: #18221f;
}

.job-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 148px;
  overflow: auto;
}

.job-categories button {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.job-categories button.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.job-library-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--brand-primary) 4%, var(--surface));
    cursor: grab;
  }

.job-library-card:active,
.job-library-card.is-dragging {
    cursor: grabbing;
  }

.job-library-card.is-dragging {
    opacity: 0.55;
  }

.job-library-pick {
    min-width: 0;
    display: grid;
    gap: 3px;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: inherit;
  }

.job-library-pick strong {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

.job-library span {
    color: var(--muted);
    font-size: 12px;
  }

.job-library-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
  }

.job-library-card-actions a {
    min-height: 26px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

.job-library-card-actions a:hover {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface));
  }

.board-dark .job-library-card {
    background: linear-gradient(135deg, #1b2b26, #13211d);
    border-color: #3f5f55;
  }

.board-dark .job-library-pick {
    background: transparent;
    border: 0;
    color: var(--ink);
  }

.board-dark .job-library-card-actions a {
    background: #22342e;
    border-color: #5d8376;
    color: #f3fff9;
  }

.job-suggester {
  display: grid;
  gap: 12px;
}

.job-suggester-head {
  display: grid;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.job-suggester-head strong {
  font-family: "Barlow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.05;
}

.job-suggester-head span,
.job-suggester-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.job-suggester-edit-drop {
  min-width: 58px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 46%, var(--line));
  background: color-mix(in srgb, var(--brand-accent) 16%, var(--surface));
  color: var(--ink);
  font-weight: 900;
}

.job-suggester-edit-drop.is-drop-target {
  border-style: solid;
  border-color: #c99216;
  background: color-mix(in srgb, #c99216 18%, var(--surface));
  box-shadow: inset 0 0 0 2px #c99216;
}

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

.job-suggester-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
  cursor: grab;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.job-suggester-row:active,
.job-suggester-row.is-dragging {
  cursor: grabbing;
}

.job-suggester-row.is-dragging {
  opacity: 0.55;
}

.job-suggester-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 42%, var(--surface));
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.job-suggester-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.job-suggester-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.job-suggester-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.job-suggester-side {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.job-suggester-side b {
  color: color-mix(in srgb, var(--brand-primary) 70%, var(--ink));
  font-family: "Barlow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.job-suggester-side small {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.job-suggester-row.is-green {
  border-color: color-mix(in srgb, #16a34a 28%, var(--line));
  background: rgba(22, 163, 74, 0.12);
}

.job-suggester-row.is-yellow {
  border-color: color-mix(in srgb, #eab308 34%, var(--line));
  background: rgba(234, 179, 8, 0.14);
}

.job-suggester-row.is-red {
  border-color: color-mix(in srgb, #dc2626 34%, var(--line));
  background: rgba(220, 38, 38, 0.12);
}

.wide-job-card {
  width: min(620px, 100%);
}

.wide-job-palette-shell {
  pointer-events: none;
  display: block;
  padding: 0;
}

.wide-job-palette {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 92vw);
  max-height: min(760px, calc(100vh - 24px));
  overflow: auto;
  pointer-events: auto;
}

.wide-setup-card {
  width: min(460px, 100%);
}

.wide-job-card #wide-job-search,
.wide-job-notes input,
.wide-setup-editor select,
.wide-setup-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
  color: var(--ink);
}

.board-dark .wide-job-card #wide-job-search,
.board-dark .wide-job-notes input,
.board-dark .wide-setup-editor select,
.board-dark .wide-setup-editor textarea {
  border-color: #5d8376;
  background: #101815;
  color: #f3fff9;
}

.board-dark .wide-setup-editor select option,
.board-dark .wide-setup-editor select optgroup {
  background: #101815;
  color: #f3fff9;
}

.board-dark .wide-setup-editor select option:checked {
  background: #214337;
  color: #ffffff;
}

.wide-setup-editor {
  display: grid;
  gap: 12px;
}

.wide-setup-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wide-setup-editor textarea {
  min-height: 120px;
  resize: vertical;
}

.wide-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.wide-setup-actions #wide-setup-save {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.wide-job-library {
  max-height: 300px;
}

.wide-job-library [draggable="true"] {
  cursor: grab;
}

.wide-job-library [draggable="true"]:active,
.wide-job-library .is-dragging {
  cursor: grabbing;
}

.wide-existing-jobs {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.wide-existing-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wide-existing-empty {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.wide-existing-job {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}

.wide-existing-job div {
  display: grid;
  gap: 2px;
}

.wide-existing-job strong {
  font-size: 14px;
}

.wide-existing-job span {
  color: var(--muted);
  font-size: 12px;
}

.wide-existing-job button {
  border-color: #f2b7b7;
  color: #9d2323;
  background: #fff6f6;
}

.wide-job-notes {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

#wide-job-dialog.wide-job-palette-shell:not([hidden]) {
  display: block;
  pointer-events: none;
  padding: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 15, 0.45);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 22px 80px rgba(15, 30, 25, 0.24);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.job-dialog-form {
  display: grid;
  gap: 10px;
}

.job-dialog-prompt {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.job-dialog-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.translation-row div,
.dialog-actions {
  display: flex;
  gap: 8px;
}

.translation-row input {
  min-width: 0;
}

.translation-row button {
  white-space: nowrap;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.display-shell {
  width: 100vw;
  height: 100vh;
  padding-inline: var(--display-side-margin, 0px);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 28%, #101715), #101715 64%),
    #101715;
  color: #f4faf6;
}

.proshop-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 25, 18, 0.58), rgba(255, 255, 255, 0.18) 42%, rgba(12, 31, 23, 0.52)),
    linear-gradient(180deg, rgba(255, 248, 220, 0.16), rgba(5, 22, 17, 0.36)),
    url("../img/proshop/proshop-course-bg.png") center / cover no-repeat;
  color: #14221d;
}

.proshop-board {
  height: 100%;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  background:
    radial-gradient(circle at 13% 12%, rgba(255, 215, 128, 0.3), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(125, 211, 252, 0.2), transparent 32%);
}

.proshop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
}

.proshop-brand,
.proshop-weather-hero,
.proshop-status-tile,
.proshop-cart-history,
.proshop-maintenance,
.proshop-forecast-card {
  border: 1px solid rgba(20, 34, 29, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(6, 20, 14, 0.24);
  backdrop-filter: blur(16px) saturate(1.12);
}

.proshop-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 18px 4px 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(249, 255, 242, 0.3)),
    rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

.proshop-logo {
  width: 198px;
  height: 158px;
  object-fit: contain;
}

.proshop-logo-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.proshop-brand p,
.proshop-section-head p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-primary) 78%, #174d3f);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.proshop-brand h1 {
  font-size: 52px;
  line-height: 0.9;
  color: #10251d;
}

.proshop-brand span {
  display: block;
  margin-top: 3px;
  color: #52645d;
  font-size: 18px;
  font-weight: 800;
}

.proshop-weather-hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(140deg, rgba(5, 56, 50, 0.93), rgba(14, 116, 104, 0.9) 52%, rgba(245, 158, 11, 0.82)),
    rgba(15, 118, 110, 0.9);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  text-align: center;
}

.proshop-weather-hero::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.proshop-weather-hero > * {
  position: relative;
  z-index: 1;
}

.proshop-weather-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.proshop-weather-hero-icon img,
.proshop-status-icon img,
.proshop-history-icon img,
.proshop-weather-chip-icon img,
.proshop-forecast-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proshop-weather-hero span {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.proshop-weather-hero strong {
  font-family: "Barlow", Arial, sans-serif;
  font-size: 58px;
  line-height: 0.9;
}

.proshop-weather-hero small {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.proshop-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.proshop-status-tile {
  position: relative;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 16px 112px 16px 18px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.proshop-status-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.22), transparent 35%);
  pointer-events: none;
}

.proshop-status-tile span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.proshop-status-tile strong {
  position: relative;
  z-index: 1;
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 0.95;
}

.proshop-status-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 14px 34px rgba(5, 17, 12, 0.28);
  z-index: 1;
}

.proshop-status-flip {
  display: grid;
}

.proshop-status-flip span {
  grid-area: 1 / 1;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  opacity: 0;
  animation: proshop-status-flip 8s infinite;
}

.proshop-status-flip span:first-child {
  opacity: 1;
}

.proshop-status-flip span:nth-child(2) {
  animation-delay: 4s;
}

.tone-pin {
  background: linear-gradient(135deg, #0f766e, #14b8a6 58%, #fbbf24);
}

.tone-cart {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8 58%, #fde68a);
}

.tone-cart-path-only {
  background: linear-gradient(135deg, #7f1d1d, #ef4444 58%, #f97316);
}

.tone-cart-off-path {
  background: linear-gradient(135deg, #14532d, #22c55e 58%, #a3e635);
}

.tone-tee {
  background: linear-gradient(135deg, #174d3f, #0ea5e9 62%, #f59e0b);
}

.tone-range {
  background: linear-gradient(135deg, #92400e, #f59e0b 58%, #fde047);
}

@keyframes proshop-status-flip {
  0%,
  42% {
    opacity: 1;
    transform: translateY(0);
  }

  50%,
  92% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.proshop-main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, 0.78fr);
  gap: 12px;
}

.proshop-maintenance,
.proshop-forecast-card,
.proshop-cart-history {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(249, 255, 242, 0.26)),
    rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.proshop-section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.proshop-section-head h2 {
  font-size: 28px;
  color: #14221d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.proshop-job-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.proshop-job-cloud article {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 6px solid color-mix(in srgb, var(--brand-accent) 70%, #f59e0b);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(236, 253, 245, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.proshop-job-cloud strong {
  font-size: 20px;
  line-height: 1.05;
}

.proshop-job-cloud span,
.proshop-more,
.proshop-empty {
  color: #5b6b64;
  font-size: 14px;
  font-weight: 700;
}

.proshop-side-stack {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.proshop-cart-history {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.proshop-cart-history .proshop-section-head {
  margin-bottom: 0;
}

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

.proshop-history-tile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 9px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(238, 247, 241, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.proshop-history-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(20, 34, 29, 0.14);
}

.proshop-history-tile span {
  color: #52645d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.proshop-history-tile strong {
  color: #14221d;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 29px;
  line-height: 0.95;
}

.proshop-history-tile em {
  color: #5b6b64;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.proshop-weather-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.proshop-weather-chip {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid rgba(20, 34, 29, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(236, 253, 245, 0.32));
}

.proshop-weather-chip-icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(20, 34, 29, 0.13);
}

.proshop-weather-metrics span {
  color: #52645d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.proshop-weather-metrics strong {
  color: #0f766e;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 28px;
  line-height: 0.9;
}

.proshop-outlook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.forecast-day {
  min-height: 122px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border-radius: 8px;
  padding: 8px 7px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(12, 31, 23, 0.16);
}

.proshop-forecast-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.forecast-day span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.forecast-day strong {
  font-family: "Barlow", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.forecast-day b {
  font-size: 17px;
}

.forecast-day small {
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
}

.forecast-day.tone-sun {
  background: linear-gradient(135deg, #d97706, #facc15);
}

.forecast-day.tone-cloud {
  background: linear-gradient(135deg, #475569, #94a3b8);
}

.forecast-day.tone-rain {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.forecast-day.tone-storm {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
}

.wide-shell {
  min-width: 1280px;
}

.wide-layout {
  display: grid;
  gap: 10px;
}

.wide-date-strip {
  margin-bottom: 0;
}

.wide-panel {
  padding: 12px;
}

.wide-board {
  overflow: auto;
  max-height: calc(100vh - 166px);
}

.wide-grid {
  display: grid;
  grid-template-columns: 168px repeat(3, minmax(126px, 1fr)) minmax(92px, 0.72fr) repeat(2, minmax(126px, 1fr));
  gap: 6px;
  min-width: 1080px;
}

.wide-corner,
.wide-day-head,
.wide-employee-name,
.wide-day-cell,
.wide-setup-label,
.wide-setup-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wide-corner,
.wide-employee-name,
.wide-setup-label {
  position: sticky;
  left: 0;
  z-index: 2;
}

.wide-corner {
  top: 0;
  z-index: 4;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wide-day-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 10px;
}

.wide-day-head strong {
  font-family: "Barlow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.wide-day-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wide-day-head.is-center,
.wide-day-cell.is-center {
  border-color: color-mix(in srgb, var(--brand-primary) 62%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface));
}

.wide-employee-name {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  font-weight: 900;
}

.wide-employee-history {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-weight: 900;
  line-height: 1.1;
}

.wide-employee-history:hover {
  color: var(--brand-primary);
}

.wide-day-cell,
.wide-setup-cell {
  min-height: 70px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 7px;
  text-align: left;
}

.wide-setup-label,
.wide-setup-cell {
  min-height: 52px;
  background: color-mix(in srgb, var(--brand-accent) 7%, var(--surface));
}

.wide-setup-label {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: color-mix(in srgb, var(--brand-primary) 72%, var(--ink));
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.wide-setup-label.is-tall,
.wide-setup-cell.is-tall {
  min-height: 76px;
}

.wide-setup-cell {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.wide-setup-cell.is-center {
  border-color: color-mix(in srgb, var(--brand-primary) 62%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
}

.wide-day-cell.is-drop-target,
.wide-setup-cell.is-drop-target {
  border-color: #c99216;
  background: color-mix(in srgb, #c99216 16%, var(--surface));
  box-shadow: inset 0 0 0 2px #c99216;
}

.wide-job {
  display: grid;
  gap: 1px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
  padding: 5px 6px;
}

.wide-job[draggable="true"],
.wide-setup-cell[draggable="true"] {
  cursor: grab;
}

.wide-job.is-dragging,
.wide-setup-cell.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
}

.wide-job strong {
  font-size: 13px;
  line-height: 1.1;
}

.wide-job em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.1;
}

.wide-empty {
  color: var(--muted);
  font-weight: 800;
}

.display-board {
  width: calc(100% / var(--display-scale, 1));
  height: calc(100% / var(--display-scale, 1));
  padding: 20px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  transform: scale(var(--display-scale, 1));
  transform-origin: top left;
}

.display-layout-crew_grid {
  padding: 14px 18px;
  gap: 10px;
}

.display-layout-name_band,
.display-layout-job_max {
  padding: 12px 16px;
  gap: 9px;
}

.display-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid color-mix(in srgb, var(--brand-accent) 55%, rgba(255, 255, 255, 0.16));
  padding-bottom: 8px;
  min-height: 104px;
}

.display-layout-crew_grid .display-head,
.display-layout-name_band .display-head,
.display-layout-job_max .display-head {
  min-height: 72px;
  padding-bottom: 6px;
}

.display-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.display-logo {
  width: 135px;
  height: 135px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.display-layout-crew_grid .display-logo,
.display-layout-name_band .display-logo,
.display-layout-job_max .display-logo {
  width: 82px;
  height: 82px;
}

.display-head p {
  margin: 0 0 2px;
  color: #b8c9c2;
  font-size: 24px;
  font-weight: 700;
}

.display-layout-crew_grid .display-head p,
.display-layout-name_band .display-head p,
.display-layout-job_max .display-head p {
  font-size: 18px;
}

.display-head h1 {
  font-size: 52px;
  line-height: 0.95;
  color: #fff;
}

.display-layout-crew_grid .display-head h1,
.display-layout-name_band .display-head h1,
.display-layout-job_max .display-head h1 {
  font-size: 38px;
}

.display-time-stack {
  display: grid;
  justify-items: end;
  align-self: stretch;
  align-content: space-between;
  min-width: 190px;
}

.display-header-right {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.display-current-time,
.display-start-time {
  display: grid;
  justify-items: end;
}

.display-current-time span,
.display-start-time span {
  color: #b8c9c2;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 800;
}

.display-current-time strong {
  color: var(--brand-accent);
  font-size: 54px;
  font-family: "Barlow", Arial, sans-serif;
}

.display-layout-crew_grid .display-current-time strong,
.display-layout-name_band .display-current-time strong,
.display-layout-job_max .display-current-time strong {
  font-size: 38px;
}

.display-start-time {
  text-align: right;
}

.display-start-time strong {
  color: #f7fbf6;
  font-size: 24px;
  font-family: "Barlow", Arial, sans-serif;
  line-height: 1;
}

.display-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 16px;
}

.display-layout-crew_grid .display-grid,
.display-layout-name_band .display-grid,
.display-layout-job_max .display-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
}

.display-layout-job_max .display-grid {
  grid-template-rows: minmax(0, 1fr);
}

.display-layout-mow_direction {
  padding: 16px 20px;
  gap: 10px;
}

.display-layout-mow_direction .display-head {
  min-height: 82px;
  padding-bottom: 6px;
}

.display-layout-mow_direction .display-logo {
  width: 96px;
  height: 96px;
}

.display-layout-mow_direction .display-head p {
  font-size: 20px;
}

.display-layout-mow_direction .display-head h1 {
  font-size: 42px;
}

.display-layout-mow_direction .display-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.22fr);
  gap: 12px;
}

.display-layout-mow_direction .display-side {
  height: 100%;
  grid-template-rows: minmax(0, 30fr) minmax(0, 45fr) minmax(0, 25fr);
}

.display-layout-mow_direction .display-side > * { min-height: 0; }

.display-layout-mow_direction .display-panel {
  padding: 14px;
}

.display-layout-mow_direction .display-employee {
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 10px 12px;
}

.display-layout-mow_direction .display-name-chip {
  padding: 7px 12px;
  font-size: 34px;
}

.display-layout-mow_direction .job-title-chip {
  padding: 6px 8px;
  font-size: 20px;
}

.display-layout-mow_direction .job-note-chip {
  padding: 6px 8px;
  font-size: 16px;
}

.mow-header-status {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 150px;
  gap: 8px;
  align-self: center;
  min-width: 0;
  margin-right: 28px;
}

.mow-header-box {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.mow-header-box span {
  color: #b8c9c2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mow-header-box strong {
  overflow: hidden;
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mow-header-weather { background: linear-gradient(135deg, rgba(249, 194, 80, 0.18), rgba(255, 255, 255, 0.05)); text-align: center; }
.mow-header-weather strong { font-size: 48px; }
.mow-header-weather.tone-cold { background: linear-gradient(135deg, rgba(55, 137, 255, 0.28), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-cold strong { color: #9fd3ff; }
.mow-header-weather.tone-cool { background: linear-gradient(135deg, rgba(46, 183, 255, 0.25), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-cool strong { color: #8ce2ff; }
.mow-header-weather.tone-mild { background: linear-gradient(135deg, rgba(57, 191, 129, 0.24), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-mild strong { color: #96f5c1; }
.mow-header-weather.tone-warm { background: linear-gradient(135deg, rgba(249, 194, 80, 0.28), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-warm strong { color: #ffe88e; }
.mow-header-weather.tone-hot { background: linear-gradient(135deg, rgba(249, 122, 53, 0.30), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-hot strong { color: #ffc18b; }
.mow-header-weather.tone-extreme { background: linear-gradient(135deg, rgba(231, 62, 62, 0.34), rgba(255, 255, 255, 0.05)); }
.mow-header-weather.tone-extreme strong { color: #ff9c9c; }
.mow-header-events {
  transform: translateX(-180px);
  background: linear-gradient(135deg, rgba(74, 177, 130, 0.18), rgba(255, 255, 255, 0.05));
}
.mow-header-events strong { font-size: 28px; }

.display-assignments {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

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

.display-assignments.display-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.display-layout-crew_grid .display-assignments,
.display-layout-name_band .display-assignments,
.display-layout-job_max .display-assignments {
  grid-row: 2;
}

.display-layout-job_max .display-assignments {
  grid-row: 1;
}

.display-column {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(var(--display-row-count, 1), minmax(0, 1fr));
  gap: 9px;
  align-content: stretch;
}

.display-employee {
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 36%, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: stretch;
}

.display-layout-crew_grid .display-employee {
  grid-template-columns: 104px 1fr;
  gap: 8px;
  padding: 8px;
}

.display-layout-name_band .display-employee,
.display-layout-job_max .display-employee {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
}

.display-employee strong {
  align-self: start;
}

.display-name-chip {
  color: var(--brand-accent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 55%, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-accent) 14%, rgba(255, 255, 255, 0.06));
  padding: 7px 12px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  text-align: center;
}

.display-layout-crew_grid .display-name-chip {
  padding: 7px 8px;
  font-size: 27px;
}

.display-layout-name_band .display-name-chip,
.display-layout-job_max .display-name-chip {
  width: 100%;
  padding: 6px 8px;
  font-size: 25px;
}

.display-employee div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-content: start;
  align-items: stretch;
}

.display-card,
.job-title-chip,
.job-note-chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  font-size: 20px;
  line-height: 1.1;
}

.display-layout-crew_grid .job-title-chip {
  font-size: 18px;
}

.display-layout-name_band .display-card,
.display-layout-job_max .display-card {
  display: grid;
  gap: 4px;
}

.display-layout-name_band .job-title-chip {
  font-size: 18px;
}

.display-layout-job_max .job-title-chip {
  font-size: 16px;
  padding: 5px 7px;
}

.display-layout-crew_grid .job-note-chip,
.display-layout-name_band .job-note-chip {
  font-size: 14px;
}

.display-layout-job_max .job-note-chip {
  font-size: 12px;
  padding: 4px 6px;
}

.display-card {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.job-title-chip {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 36%, rgba(255, 255, 255, 0.16));
}

.job-note-chip {
  color: #f8f2d2;
  border-color: color-mix(in srgb, var(--brand-accent) 46%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--brand-accent) 16%, rgba(255, 255, 255, 0.05));
  font-size: 16px;
}

.display-employee.has-translation .translate-card {
  display: grid;
  position: relative;
}

.translate-card b {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  min-width: 0;
}

.translate-card .lang-es {
  grid-area: 1 / 1;
  opacity: 0;
}

.translate-card .lang-en {
  grid-area: 1 / 1;
  opacity: 1;
}

.display-board.show-spanish .translate-card .lang-en {
  opacity: 0;
}

.display-board.show-spanish .translate-card .lang-es {
  opacity: 1;
}

.display-side {
  min-height: 0;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto 1fr;
}

.display-layout-crew_grid .display-side,
.display-layout-name_band .display-side {
  grid-row: 1;
  grid-template-rows: auto;
}

.display-layout-job_max .display-side {
  display: none;
}

.display-layout-crew_grid .display-side > .display-panel:not(.display-setup-panel),
.display-layout-name_band .display-side > .display-panel:not(.display-setup-panel) {
  display: none;
}

.display-panel {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 32%, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.display-panel h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--brand-accent);
}

.display-panel-eyebrow {
  margin: 0 0 4px;
  color: #b8c9c2;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.display-layout-crew_grid .display-setup-panel,
.display-layout-name_band .display-setup-panel {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.6fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}

.display-setup-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.display-layout-crew_grid .display-setup-header,
.display-layout-name_band .display-setup-header {
  align-items: center;
}

.display-layout-crew_grid .display-setup-header h2,
.display-layout-name_band .display-setup-header h2 {
  margin: 0;
  font-size: 19px;
}

.display-layout-crew_grid .display-panel-eyebrow,
.display-layout-name_band .display-panel-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
}

.display-setup-day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 48%, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 14%, rgba(255, 255, 255, 0.04));
  color: #fff7d0;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.display-layout-crew_grid .display-setup-day-chip,
.display-layout-name_band .display-setup-day-chip {
  min-width: 104px;
  padding: 6px 8px;
  font-size: 12px;
}

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

.display-layout-crew_grid .display-setup-grid,
.display-layout-name_band .display-setup-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.display-setup-card {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.display-layout-crew_grid .display-setup-card,
.display-layout-name_band .display-setup-card {
  min-height: 0;
  gap: 4px;
  padding: 7px 8px;
}

.display-setup-card span {
  color: #b8c9c2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.display-layout-crew_grid .display-setup-card span,
.display-layout-name_band .display-setup-card span {
  font-size: 10px;
}

.display-setup-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
}

.display-layout-crew_grid .display-setup-card strong,
.display-layout-name_band .display-setup-card strong {
  font-size: 16px;
}

.display-setup-card.tone-cart {
  background: linear-gradient(135deg, rgba(189, 148, 14, 0.16), rgba(255, 255, 255, 0.04));
}

.display-setup-card.tone-pin {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(255, 255, 255, 0.04));
}

.display-setup-card.tone-greens {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(255, 255, 255, 0.04));
}

.display-setup-card.tone-fairways {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.04));
}

.display-setup-card.tone-range {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(255, 255, 255, 0.04));
}

.display-setup-card.tone-start {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.04));
}

.display-setup-notes {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.mow-direction-panel {
  min-height: 0;
  display: block;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, rgba(35, 154, 90, 0.20), transparent 54%), rgba(255, 255, 255, 0.055);
}

.mow-direction-heading {
  width: 100%; display: flex; align-items: start; justify-content: space-between; gap: 12px;
}

.mow-direction-heading h2 { margin: 0; font-size: 20px; }

.mow-direction-status {
  padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--brand-accent) 56%, rgba(255, 255, 255, 0.18)); border-radius: 999px;
  color: #fff4c7; background: color-mix(in srgb, var(--brand-accent) 14%, rgba(255, 255, 255, 0.05)); font-size: 12px; font-weight: 900; text-transform: uppercase;
}

.mow-direction-visual { width: min(100%, 390px); height: auto; min-height: 0; aspect-ratio: 1; justify-self: center; align-self: center; }
.mow-direction-visual svg { display: block; width: 100%; height: 100%; }
.mow-direction-ring { fill: rgba(8, 27, 19, 0.36); stroke: rgba(221, 255, 232, 0.78); stroke-width: 3; }
.mow-direction-item.has-cleanup .mow-direction-ring {
  stroke: #7dff9b;
  stroke-width: 6;
}
.mow-direction-spoke { fill: none; stroke: rgba(215, 234, 222, 0.48); stroke-width: 5; stroke-linecap: round; }
.mow-direction-arrowhead { fill: #c9dacd; }
.mow-direction-arrowhead.is-active { fill: #ffe36b; stroke: #fff6a5; stroke-width: 5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(255, 218, 72, 0.88)); }
.mow-direction-center { fill: #fff8d6; }

.mow-direction-copy { display: grid; gap: 6px; min-width: 0; }

.mow-direction-split {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mow-direction-split.is-single { grid-template-columns: minmax(0, 1fr); }

.mow-direction-split:not(.is-single) .mow-direction-item {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(4, 22, 14, 0.28);
}

.mow-direction-item {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 4px;
}

.mow-direction-title {
  margin: 0 0 -2px;
  color: #fff7d0;
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(17px, 1.05vw, 25px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.mow-direction-split.is-single .mow-direction-visual { width: min(100%, 390px); }

.mow-direction-readout {
  width: 100%; display: grid; justify-items: center; gap: 2px; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px;
  background: rgba(4, 22, 14, 0.42); text-align: center;
}
.mow-direction-readout span { color: #b8c9c2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.mow-direction-readout strong { color: #fff; font-family: "Barlow", Arial, sans-serif; font-size: clamp(24px, 1.5vw, 34px); line-height: 1; }
.mow-direction-item.has-direction .mow-direction-readout strong { color: #9effb8; }
.mow-direction-cleanup {
  display: block;
  color: #9effb8;
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(16px, 0.95vw, 22px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.mow-direction-note { display: none; }

.display-layout-mow_direction .mow-direction-setup-panel { gap: 10px; padding: 12px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-header { align-items: center; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-header h2 { margin: 0; font-size: 22px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-panel-eyebrow { margin-bottom: 1px; font-size: 10px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-day-chip { min-width: 94px; padding: 5px 7px; font-size: 11px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(62px, auto); gap: 10px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-card { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 9px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-card span { font-size: 10px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-card strong { overflow-wrap: anywhere; font-size: 22px; line-height: 1.02; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-notes { grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 58px; padding: 8px 9px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-notes > span { font-size: 10px; }
.display-layout-mow_direction .mow-direction-setup-panel .display-setup-notes > div { font-size: 14px; line-height: 1.2; }

.display-layout-mow_direction .mow-direction-setup-panel {
  display: block;
  padding: 0;
}

.mow-setup-grid {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mow-setup-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.mow-setup-card.size-wide { grid-column: 1 / -1; min-height: 0; }
.mow-setup-card.size-compact { grid-column: span 1; }
.mow-setup-card.size-surface { grid-column: span 3; }
.mow-setup-card.size-half { grid-column: span 2; }
.mow-setup-card span { color: #b8c9c2; font-size: clamp(12px, 0.72vw, 16px); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.mow-setup-card strong { overflow-wrap: anywhere; color: #fff; font-family: "Barlow", Arial, sans-serif; font-size: clamp(26px, 1.45vw, 38px); line-height: 1.03; }
.mow-surface-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mow-surface-values strong { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mow-surface-values small { color: #b8c9c2; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: clamp(10px, 0.62vw, 14px); font-weight: 900; letter-spacing: 0.05em; line-height: 1; text-transform: uppercase; }
.mow-setup-card.tone-cart { background: linear-gradient(135deg, rgba(189, 148, 14, 0.18), rgba(255, 255, 255, 0.045)); }
.mow-setup-card.tone-pin { background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(255, 255, 255, 0.045)); }
.mow-setup-card.tone-surfaces { background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.12)); }
.mow-setup-card.tone-range { background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(255, 255, 255, 0.045)); }
.mow-setup-card.tone-start { background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.045)); }

.mow-direction-notes {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.mow-direction-notes > span {
  color: #b8c9c2;
  font-size: clamp(12px, 0.72vw, 16px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mow-direction-notes > div { color: #fff; font-size: 30px; line-height: 1.2; overflow: hidden; }
.mow-direction-notes.is-empty > div { color: #c9d6d1; }

.display-layout-mow_direction .mow-direction-panel { padding: 8px; }

.display-layout-crew_grid .display-setup-notes,
.display-layout-name_band .display-setup-notes {
  gap: 3px;
  padding: 7px 9px;
}

.display-setup-notes > span {
  color: #b8c9c2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.display-layout-crew_grid .display-setup-notes > span,
.display-layout-name_band .display-setup-notes > span {
  font-size: 10px;
}

.display-setup-notes > div {
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.display-layout-crew_grid .display-setup-notes > div,
.display-layout-name_band .display-setup-notes > div {
  font-size: 14px;
  line-height: 1.2;
}

.display-setup-notes.is-empty > div {
  color: #c9d6d1;
}

.setup-list {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 5px 9px;
  margin: 0;
  font-size: 18px;
}

.setup-list dt {
  color: #b8c9c2;
  font-weight: 800;
}

.setup-list dd {
  margin: 0;
}

.setup-note-translation {
  display: grid;
  position: relative;
}

.setup-note-translation b {
  font-weight: 500;
}

.weather-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 19px;
}

.weather-row strong {
  font-size: 40px;
  color: #fff;
}

.event-block {
  display: grid;
  gap: 5px;
  font-size: 17px;
  margin-bottom: 8px;
}

.event-block strong {
  color: #b8c9c2;
}

.display-footer {
  display: flex;
  justify-content: space-between;
  color: #b8c9c2;
  font-size: 18px;
  border-top: 2px solid color-mix(in srgb, var(--brand-accent) 55%, rgba(255, 255, 255, 0.16));
  padding-top: 8px;
}

.display-layout-job_max .display-footer {
  display: none;
}

.mobile-shell {
  width: min(100vw, 520px);
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px;
  overflow-x: clip;
  background: #1f5b37;
  color: #9b7a05;
}

body.mobile-board-view {
  overflow-x: hidden;
  background: #1f5b37;
  color: #9b7a05;
}

.mobile-shell *,
.mobile-shell *::before,
.mobile-shell *::after {
  min-width: 0;
}

.mobile-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  text-align: center;
}

.mobile-head > a {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
  color: #8a6900;
}

.mobile-head #board-theme-toggle,
.mobile-head .theme-toggle {
  display: none !important;
}

.mobile-date-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
  justify-self: center;
  width: min(100%, 230px);
}

.mobile-date-stack h1 {
  margin: 0;
  width: 100%;
  font-size: 26px;
  line-height: 1;
  color: #a98705;
  text-align: center;
  overflow-wrap: anywhere;
}

.mobile-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  background: #d6b23d;
  border-color: #8a6900;
  color: #234329;
}

.mobile-head input,
.mobile-setup-field select,
.mobile-setup-field textarea {
  border: 1px solid #7b6414;
  border-radius: 8px;
  padding: 9px 10px;
  width: 100%;
  max-width: 100%;
  background: #eef4df;
  color: #7b6414;
}

.mobile-summary,
.mobile-person,
.mobile-setup-card {
  background: #e5efd4;
  border: 1px solid #7b6414;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  color: #8a6900;
  box-shadow: none;
}

.mobile-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-person h2 {
  font-size: 20px;
  margin: 0;
  color: #7b6414;
  overflow-wrap: anywhere;
}

.mobile-person p {
  margin: 6px 0;
}

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

.mobile-person-head button {
  padding: 7px 10px;
  font-weight: 800;
  background: #d6b23d;
  border-color: #8a6900;
  color: #234329;
}

.mobile-job-list {
  display: grid;
  gap: 7px;
}

.mobile-job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
}

.mobile-job-item {
  display: grid;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 10px;
  background: #f2f7e8;
  border-color: #9a7b16;
  color: #7b6414;
  overflow: hidden;
}

.mobile-job-delete {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: #7b6414;
  color: #5d210d;
  background: #d6b23d;
  font-size: 24px;
  font-weight: 900;
}

.mobile-job-item strong {
  font-size: 16px;
}

.mobile-job-item span {
  color: #8a6900;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mobile-job-card {
  width: 100%;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.mobile-board-view .modal-shell {
  padding: 10px;
  overflow-x: hidden;
}

.mobile-board-view .modal-card {
  max-width: calc(100vw - 20px);
}

.mobile-job-card #mobile-job-search,
.mobile-job-notes input {
  width: 100%;
  border: 1px solid #7b6414;
  border-radius: 8px;
  padding: 11px 12px;
  background: #eef4df;
  color: #7b6414;
}

.mobile-job-library {
  max-height: 40vh;
}

.mobile-job-library button {
  min-height: 44px;
  overflow-wrap: anywhere;
}

.mobile-job-categories {
  max-height: 132px;
}

.mobile-job-categories button {
  overflow-wrap: anywhere;
}

.mobile-job-notes {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #8a6900;
  font-size: 13px;
}

#mobile-job-remove {
  width: 100%;
  margin-top: 10px;
}

#mobile-status {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
  color: #a98705;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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

.mobile-setup-head h2 {
  margin: 0;
  font-size: 40px;
  color: #7b6414;
}

.mobile-setup-head span {
  color: #8a6900;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.mobile-setup-field {
  display: grid;
  gap: 8px;
  color: #8a6900;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.mobile-setup-field span {
  display: block;
  text-align: center;
}

.mobile-setup-field select,
.mobile-setup-field textarea {
  min-height: 58px;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  text-align-last: center;
}

.mobile-setup-field textarea {
  min-height: 140px;
  text-align: left;
  text-align-last: auto;
}

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

@media (max-width: 430px) {
  .mobile-shell {
    width: 100vw;
    padding: 10px;
  }

  .mobile-head {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .mobile-date-stack h1 {
    font-size: 24px;
  }

  .mobile-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .mobile-setup-grid {
    grid-template-columns: 1fr;
  }
}

.app-shell[data-view="history"] .brand-logo {
  width: 96px;
  height: 96px;
}

.app-shell[data-view="history"] .brand-lockup {
  min-height: 106px;
}

.history-browser {
  display: grid;
  gap: 14px;
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 11%, var(--surface)), var(--surface) 62%),
    var(--surface);
}

.history-hero h2 {
  font-size: 34px;
}

.history-stat-grid,
.history-day-summary,
.history-filtered-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.history-stat-grid article,
.history-stat-grid a,
.history-day-summary article,
.history-filtered-stats article,
.history-setup-ribbon article {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--brand-primary) 6%, var(--surface));
}

.history-stat-grid a {
  color: var(--ink);
  text-decoration: none;
}

.history-stat-grid a:hover {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 11%, var(--surface));
}

.history-stat-grid span,
.history-day-summary span,
.history-filtered-stats span,
.history-setup-ribbon span,
.history-list span,
.history-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-stat-grid strong,
.history-day-summary strong,
.history-filtered-stats strong {
  display: block;
  margin-top: 2px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.history-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) repeat(2, 150px) auto;
  gap: 10px;
  align-items: end;
}

.history-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.history-filters input,
.history-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
  color: var(--ink);
}

.history-export-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-export-actions button {
  border-color: color-mix(in srgb, var(--brand-accent) 50%, var(--line));
  background: color-mix(in srgb, var(--brand-accent) 14%, var(--surface));
  font-size: 13px;
  font-weight: 800;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(300px, 370px);
  gap: 14px;
  align-items: start;
}

.history-left,
.history-right {
  position: sticky;
  top: 14px;
}

.history-panel-head,
.history-detail-head,
.history-person-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.history-detail-head {
  margin-bottom: 12px;
}

.history-detail-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.history-detail-actions button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.history-detail-actions a {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 42%, var(--line));
  border-radius: 8px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--brand-primary) 11%, var(--surface));
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding-right: 2px;
}

.history-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: var(--surface);
}

.history-list button.is-selected {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.history-list strong {
  font-size: 16px;
}

.history-list-date {
  color: var(--brand-primary);
}

.history-empty {
  margin: 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.history-setup-ribbon {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.history-setup-ribbon article {
  display: grid;
  gap: 3px;
  min-height: 70px;
}

.history-setup-ribbon strong {
  font-size: 15px;
  line-height: 1.15;
}

.history-daily-note {
  border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, var(--line));
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface));
}

.history-daily-note p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}

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

.history-people article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  background: var(--surface-soft);
}

.history-people article.is-inactive {
  border-style: dashed;
}

.history-person-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-job-pill {
    display: grid;
    gap: 2px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
    border-radius: 8px;
    padding: 7px 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
  }

.history-job-pill b {
  font-size: 14px;
}

.history-job-pill em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.history-trends {
  display: grid;
  gap: 16px;
}

.history-trend-block {
  display: grid;
  gap: 8px;
}

.history-trend-block h3 {
  margin: 0;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 20px;
}

.history-bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(70px, 1.2fr) auto;
  gap: 7px;
  align-items: center;
}

.history-bar-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.history-bar-row a.history-bar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.history-bar-row a.history-bar-label:hover {
  text-decoration: underline;
}

.history-bar-row div {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface-soft));
  overflow: hidden;
}

.history-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.history-bar-row strong {
  font-size: 12px;
  text-align: right;
}

.history-bar-row em {
  display: none;
}

.history-month-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.history-month-grid button {
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 5px;
  background: color-mix(in srgb, var(--brand-primary) var(--heat), var(--surface));
}

.history-month-grid strong {
  font-size: 13px;
  line-height: 1;
}

.history-month-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.history-stat-sheet {
  display: grid;
  gap: 14px;
}

.employee-leaderboard-page {
  display: grid;
  gap: 16px;
}

.employee-leaderboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.employee-leaderboard-hero h2 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.95;
}

.employee-leaderboard-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.employee-jumpbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.employee-jumpbar a {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.employee-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.employee-overview-grid article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  align-content: center;
}

.employee-overview-grid span,
.employee-leaderboard-card li span,
.employee-matrix-table td span,
.employee-pill-list em {
  color: var(--muted);
}

.employee-overview-grid strong {
  font-family: "Barlow", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.employee-stats-section {
  display: grid;
  gap: 16px;
}

.employee-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-leaderboard-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--line));
  border-radius: 10px;
  background: var(--surface-soft);
}

.employee-leaderboard-card h3 {
  margin: 0;
}

.employee-leaderboard-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.employee-leaderboard-card li a,
.employee-matrix-table a,
.employee-pill-list a {
  color: var(--brand-primary);
  font-weight: 800;
  text-decoration: none;
}

.employee-leaderboard-card li span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.employee-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.employee-matrix-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
}

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

.employee-matrix-table th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.employee-matrix-table tr:hover td {
  background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

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

.employee-pill-list {
  display: grid;
  gap: 9px;
}

.employee-pill-list a,
.employee-pill-list > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.employee-pill-list span span,
.employee-pill-list a span {
  color: var(--warn);
  font-weight: 900;
}

.history-stat-loading {
  min-height: 180px;
}

.history-stat-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 10%, var(--surface)), var(--surface) 62%),
    var(--surface);
}

.history-stat-hero h2 {
  font-size: 34px;
}

.history-stat-hero p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.history-stat-actions,
.history-stat-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.history-stat-actions a,
.history-stat-links a {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, var(--line));
  border-radius: 8px;
  padding: 9px 11px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.history-stat-links {
  display: grid;
}

.history-stat-links a {
  display: grid;
  gap: 3px;
}

.history-stat-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.history-stat-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.history-stat-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.history-stat-layout-wide {
  grid-template-columns: 1fr;
}

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

.history-stat-bars {
  display: grid;
  gap: 8px;
}

.history-stat-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.history-stat-list article {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.history-stat-list a {
  color: var(--brand-primary);
  font-weight: 900;
  text-decoration: none;
}

.history-stat-list span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.job-insight-grid,
.job-cadence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.job-insight-grid article,
.job-cadence-grid article {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line));
  border-radius: 8px;
  padding: 11px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}

.job-insight-grid span,
.job-cadence-grid span,
.job-month-average span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-insight-grid strong,
.job-cadence-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.05;
}

.job-insight-grid em,
.job-cadence-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.job-month-year-matrix {
  display: grid;
  gap: 5px;
  overflow-x: auto;
}

.job-month-year-row {
  display: grid;
  grid-template-columns: 58px repeat(12, minmax(42px, 1fr)) 58px;
  gap: 5px;
  min-width: 720px;
}

.job-month-year-row > * {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.job-month-year-row span {
  background: color-mix(in srgb, var(--brand-accent) var(--heat), var(--surface));
}

.job-month-year-head > * {
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface));
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.job-month-average {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.job-month-average article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: var(--surface);
}

.job-month-average strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 16px;
}

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

.employee-ranking-list article {
  display: grid;
  grid-template-columns: 58px minmax(160px, 1fr) minmax(180px, 2fr) 82px;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.employee-ranking-list b {
  color: var(--muted);
  font-size: 13px;
}

.employee-ranking-list a {
  color: var(--brand-primary);
  font-weight: 900;
  text-decoration: none;
}

.employee-ranking-list div {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
  overflow: hidden;
}

.employee-ranking-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.employee-ranking-list strong {
  text-align: right;
  font-size: 18px;
}

.employee-ranking-list span {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.seasonality-table {
  display: grid;
  gap: 5px;
  overflow-x: auto;
}

.seasonality-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) repeat(12, minmax(48px, 1fr)) 70px;
  gap: 5px;
  min-width: 900px;
  align-items: stretch;
}

.seasonality-row > * {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 6px;
  background: var(--surface);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.seasonality-row a {
  color: var(--brand-primary);
  text-align: left;
  text-decoration: none;
}

.seasonality-row span {
  background: color-mix(in srgb, var(--brand-accent) var(--heat), var(--surface));
}

.seasonality-head > * {
  background: color-mix(in srgb, var(--brand-primary) 11%, var(--surface));
  color: var(--muted);
  text-transform: uppercase;
}

.cart-path-impact {
  display: grid;
  gap: 14px;
}

.cart-path-impact p {
  margin: 0;
  max-width: 980px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.cart-path-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cart-path-callouts article {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--brand-primary) 6%, var(--surface));
}

.cart-path-callouts span,
.cart-path-callouts em,
.cart-path-month span,
.cart-path-probability em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-path-callouts strong {
  display: block;
  margin: 3px 0;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 28px;
}

.cart-path-probability {
  display: grid;
  gap: 8px;
}

.cart-path-probability article {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 70px 80px;
  gap: 10px;
  align-items: center;
}

.cart-path-month strong {
  display: block;
  font-size: 16px;
}

.cart-path-meter {
  height: 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface-soft));
  overflow: hidden;
}

.cart-path-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.cart-path-probability b {
  text-align: right;
}

.employees-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.settings-panel {
  max-width: 760px;
}

.settings-save-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--good) 52%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--good) 14%, var(--surface));
  box-shadow: 0 16px 34px rgba(18, 41, 29, 0.24);
  color: var(--ink);
  animation: settings-toast-in 180ms ease-out;
}

.settings-save-toast[hidden] { display: none; }
.settings-save-toast-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--good); color: #fff; font-size: 21px; font-weight: 900; }
.settings-save-toast strong, .settings-save-toast span { display: block; }
.settings-save-toast strong { font-size: 15px; }
.settings-save-toast div span { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.25; }
.settings-save-toast button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.settings-save-toast button:hover { background: rgba(0, 0, 0, 0.07); color: var(--ink); }
.settings-save-toast.is-error { border-color: #b42318; background: #fff1f0; }
.settings-save-toast.is-error .settings-save-toast-icon { background: #b42318; }

@keyframes settings-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.employee-section-head {
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.employee-add-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 9px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-primary) 30%, transparent);
  font-size: 0.95rem;
}

.employee-add-button > span:first-child {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.employee-add-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.app-shell[data-view="jobs"] .section-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: end;
}

.job-manager-status {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.job-manager-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.job-library-add-menu {
  position: relative;
}

.job-library-add-trigger {
  align-items: center;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 32px;
  font-weight: 900;
  height: 50px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  width: 50px;
}

.job-library-add-trigger::-webkit-details-marker {
  display: none;
}

.job-library-add-menu-items {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 12;
}

.job-library-add-menu-items button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 10px;
  text-align: left;
}

.job-library-add-menu-items button:hover {
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
}

.primary-action {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 900;
}

.job-manager-search-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.job-manager-hide-inactive {
  align-items: center;
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  min-height: 38px;
  padding: 6px 11px;
  white-space: nowrap;
}

.job-manager-hide-inactive input {
  accent-color: var(--brand-primary);
  height: 16px;
  width: 16px;
}

.job-manager-filter-categories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  min-height: 74px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 8px;
}

.job-manager-filter-categories button,
.job-manager-categories label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.job-manager-filter-categories button.is-active,
.job-manager-categories label.is-selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.jobs-manager-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.job-manager-row.is-inactive {
  opacity: 0.58;
}

.job-manager-row {
  position: relative;
}

.job-manager-row.is-selected .job-manager-pick {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.job-manager-pick {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  text-align: left;
  align-items: start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 8%, #fff), #fff);
  min-height: 116px;
  padding: 10px 10px 38px;
}

.job-manager-row-actions {
  bottom: 9px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  position: absolute;
  right: 9px;
}

.job-manager-row-actions a {
  align-items: center;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
  border-radius: 7px;
  color: var(--brand-primary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 28px;
}

.job-manager-row-actions svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 15px;
}

.job-manager-row-actions a:hover {
  background: color-mix(in srgb, var(--brand-primary) 16%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.job-manager-card {
    width: min(680px, calc(100vw - 28px));
    max-height: min(820px, calc(100vh - 28px));
    overflow: auto;
  }

.job-manager-stats-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

.job-manager-stats-link:hover {
    text-decoration: underline;
  }

.job-reporting-estimate {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
    padding: 12px;
  }

.job-reporting-estimate small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

.job-reporting-backfill {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start !important;
    gap: 9px !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    line-height: 1.4;
  }

.job-reporting-backfill input {
    width: 18px;
    height: 18px;
    margin: 0;
  }

.history-reporting-disclosure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line));
    border-radius: 9px;
    background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

.history-reporting-disclosure strong {
    flex: 0 0 auto;
    color: var(--ink);
  }

.history-reporting-note {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

.combined-job-card {
    width: min(920px, calc(100vw - 28px));
    height: min(760px, calc(100vh - 28px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    position: relative;
  }

.combined-job-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 14px;
    min-height: 0;
    overflow: hidden;
  }

#combined-job-form {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }

.combined-job-list,
.combined-job-library,
.combined-job-members {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
  }

.combined-job-list {
    margin-top: 10px;
  }

.combined-job-list button,
.combined-job-library-item,
.combined-job-member-item {
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--surface);
    text-align: left;
  }

.combined-job-list button.is-inactive {
    opacity: 0.55;
  }

.combined-job-list button.is-selected {
    background: color-mix(in srgb, var(--brand-primary) 14%, var(--surface));
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
  }

.combined-job-list span,
.combined-job-library-item span,
.combined-job-member-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

.combined-job-member-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr);
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
  }

.combined-job-name-label {
    background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 26%, var(--line));
    border-radius: 8px;
    color: var(--ink) !important;
    font-size: 14px !important;
    font-weight: 900;
    padding: 10px;
  }

.combined-job-name-label input {
    background: #fff !important;
    border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line)) !important;
    color: var(--ink);
    font-size: 19px !important;
    font-weight: 900;
    padding: 12px !important;
  }

.combined-job-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

.combined-job-builder-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

.combined-job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
  }

.combined-job-categories button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
  }

.combined-job-categories button.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
  }

.combined-job-library,
.combined-job-members {
    min-height: 280px;
    padding: 8px;
    border: 1px dashed color-mix(in srgb, var(--brand-primary) 28%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-primary) 4%, var(--surface));
  }

.combined-job-library.is-drop-target,
.combined-job-members.is-drop-target {
    border-style: solid;
    border-color: var(--brand-primary);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-primary) 48%, transparent);
  }

.combined-job-library-item {
    cursor: grab;
  }

.combined-job-member-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    cursor: grab;
  }

.combined-job-member-item span {
    grid-column: 1;
  }

.combined-job-member-item button {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 7px;
  }

#combined-job-form .job-manager-actions {
  background: var(--surface);
  border-top: 1px solid var(--line);
  bottom: 0;
  margin-top: 4px;
  padding-top: 10px;
  position: sticky;
  z-index: 4;
}

.history-reporting-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.history-reporting-groups h4 {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.combined-job-toast {
  background: color-mix(in srgb, var(--good) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--good) 52%, var(--line));
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  max-width: min(340px, calc(100% - 36px));
  padding: 12px 14px;
  position: absolute;
  right: 18px;
  top: 76px;
  z-index: 8;
}

.combined-job-toast.is-error {
  background: #fff1f0;
  border-color: #b42318;
  color: #b42318;
}

.job-manager-pick-main,
.job-manager-pick-side {
  display: grid;
  gap: 5px;
}

.job-manager-pick-main strong {
  font-size: 15px;
}

.job-manager-pick-main span {
  color: var(--muted);
  font-size: 12px;
}

.job-manager-pick-side {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-items: start;
}

.job-manager-pick-side em,
.job-manager-pick-side b {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--brand-accent) 18%, #fff);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.job-manager-pick-side b {
  background: #fff1f0;
  color: #b42318;
}

.job-manager-staleness-badge {
  background: #eef8df !important;
  color: #355724 !important;
}

.job-manager-form {
  display: grid;
  gap: 10px;
}

.job-manager-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

#job-manager-search,
.job-manager-form input,
.job-manager-form select,
.job-manager-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
  font: inherit;
}

.job-manager-form textarea {
  min-height: 96px;
  resize: vertical;
}

.job-manager-category-editor {
  display: grid;
  gap: 8px;
}

.job-manager-category-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.job-manager-category-title small {
  font-size: 12px;
}

.job-manager-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-manager-categories label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.job-manager-categories input {
  width: auto;
  accent-color: var(--brand-primary);
}

.job-manager-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.job-manager-toggle input {
  width: auto;
}

.job-manager-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.job-manager-confirmation {
  border: 1px solid color-mix(in srgb, var(--good) 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--good) 12%, var(--surface));
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  margin: 8px 0 12px;
  padding: 9px 10px;
}

.job-manager-confirmation.is-error {
  border-color: #b42318;
  background: #fff1f0;
  color: #b42318;
}

.job-category-management {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
}

.job-category-manager-card {
  width: min(620px, calc(100vw - 28px));
}

.job-category-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.job-category-create-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
}

.job-category-manager-list {
  display: grid;
  gap: 8px;
  max-height: min(560px, 66vh);
  overflow: auto;
}

.job-category-manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
  padding: 8px 10px;
}

.job-category-manager-row span {
  display: grid;
  gap: 2px;
}

.job-category-manager-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.job-category-manager-row button {
  padding: 7px 10px;
}

.board-dark .job-manager-filter-categories button,
.board-dark .job-manager-categories label,
.board-dark .combined-job-categories button,
.board-dark .job-categories button,
.board-dark .wide-job-categories button,
.board-dark .mobile-job-categories button {
  background: #22342e;
  border-color: #5d8376;
  color: #f3fff9;
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.08);
}

.board-dark .job-manager-filter-categories button:hover,
.board-dark .job-manager-categories label:hover,
.board-dark .combined-job-categories button:hover,
.board-dark .job-categories button:hover,
.board-dark .wide-job-categories button:hover,
.board-dark .mobile-job-categories button:hover {
  background: #2a433a;
  border-color: #8bd6be;
  color: #ffffff;
}

.board-dark .job-manager-filter-categories button.is-active,
.board-dark .job-manager-categories label.is-selected,
.board-dark .combined-job-categories button.is-active,
.board-dark .job-categories button.is-active,
.board-dark .wide-job-categories button.is-active,
.board-dark .mobile-job-categories button.is-active {
  background: #34d399;
  border-color: #6ee7b7;
  color: #06231a;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.22);
}

.board-dark .job-manager-pick {
  background: linear-gradient(135deg, #1b2b26, #13211d);
  border-color: #3f5f55;
}

.board-dark .job-library-add-menu-items {
  background: #172722;
  border-color: #3f5f55;
}

.board-dark .job-library-add-menu-items button {
  color: #f3fff9;
}

.board-dark .job-library-add-menu-items button:hover {
  background: #22342e;
}

.board-dark .job-manager-hide-inactive {
  background: #22342e;
  border-color: #5d8376;
  color: #f3fff9;
}

.board-dark .job-manager-row-actions a {
  background: #22342e;
  border-color: #5d8376;
  color: #a7f3d0;
}

.board-dark .job-manager-pick-side em {
  background: #29483f;
  border: 1px solid #6fb89f;
  color: #ecfff7;
}

.board-dark .job-manager-staleness-badge {
  background: #31451f !important;
  border-color: #9acd73;
  color: #f3ffe8 !important;
}

.board-dark .job-manager-confirmation {
  background: #16392f;
  border-color: #43c59e;
  color: #eafff6;
}

.board-dark .job-manager-confirmation.is-error {
  background: #3b1717;
  border-color: #ef8d8d;
  color: #ffdede;
}

.board-dark .combined-job-toast {
  background: #16392f;
  border-color: #43c59e;
  color: #eafff6;
}

.board-dark .combined-job-toast.is-error {
  background: #3b1717;
  border-color: #ef8d8d;
  color: #ffdede;
}

.board-dark .combined-job-list button.is-selected {
  background: #214337;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.board-dark .combined-job-name-label {
  background: #17352d;
  border-color: #5d8376;
  color: #f3fff9 !important;
}

.board-dark .combined-job-name-label input {
  background: #10231d !important;
  border-color: #8bd6be !important;
  color: #f3fff9;
}

.board-dark .job-category-manager-row {
  background: #172722;
  border-color: #3f5f55;
}

.job-manager-form .check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
}

.job-manager-form .check-row input {
  width: auto;
}

.danger-action {
  border-color: #b42318;
  color: #b42318;
}

.danger-action:hover {
  border-color: #b42318;
  background: #fff1f0;
}

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

.inactive-employees-list {
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.employee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.employee-row.is-inactive {
  opacity: 0.78;
}

.employee-pick {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
}

.employee-pick-copy {
  display: grid;
  gap: 2px;
}

.employee-pick-copy small {
  color: var(--muted);
  font-size: 12px;
}

.employee-row.is-inactive .employee-pick {
  border-style: dashed;
  background: color-mix(in srgb, var(--muted) 7%, var(--surface));
}

.employee-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.employee-history-link:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.employee-order-actions {
  display: flex;
  gap: 6px;
}

.employee-order-actions button {
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 800;
}

.employees-list span {
  color: var(--muted);
}

.employee-form {
  display: grid;
  gap: 10px;
}

.employee-editor-card {
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.employee-editor-top {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface));
}

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

.employee-form-wide {
  grid-column: 1 / -1;
}

.employee-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.employee-form input,
.employee-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfb;
}

.employee-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.employee-avatar,
.employee-photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, var(--line));
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--brand-primary) 22%, #ffffff) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 98%, color-mix(in srgb, var(--accent) 18%, #ffffff) 0 36%, transparent 37%),
    color-mix(in srgb, var(--brand-primary) 9%, var(--surface));
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.employee-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.employee-avatar img,
.employee-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-photo-placeholder > span {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 28%, #ffffff);
  box-shadow: 0 42px 0 16px color-mix(in srgb, var(--accent) 18%, #ffffff);
}

.employee-form .check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
}

.employee-form .check-row input {
  width: auto;
}

.error,
.loading {
  padding: 20px;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .header-day-indicator,
  .topbar-actions {
    justify-content: flex-start;
  }

  .planner-layout,
  .history-layout,
  .history-hero,
  .history-filters,
  .history-stat-layout,
  .employees-layout,
  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .app-shell[data-view="jobs"] .section-head {
    grid-template-columns: 1fr;
  }

  .employee-section-head,
  .employee-form-grid,
  .employee-editor-top {
    grid-template-columns: 1fr;
  }

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

  .employee-order-actions {
    justify-self: stretch;
  }

  .job-manager-status {
    justify-self: start;
  }

  .history-left,
  .history-right {
    position: static;
  }

  .history-stat-grid,
  .history-stat-metrics,
  .history-day-summary,
  .history-filtered-stats,
  .history-setup-ribbon,
  .history-people,
  .employee-leaderboard-hero,
  .employee-overview-grid,
  .employee-leaderboard-grid,
  .employee-bottom-grid {
    grid-template-columns: 1fr;
  }

  .employee-jumpbar {
    justify-content: flex-start;
  }

  .history-stat-hero,
  .history-stat-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .history-stat-hero {
    display: grid;
  }

  .history-stat-list article {
    grid-template-columns: 1fr;
  }

  .history-stat-list span {
    grid-column: 1;
  }

  .cart-path-callouts,
  .cart-path-probability article,
  .job-insight-grid,
  .job-cadence-grid,
  .combined-job-layout,
  .combined-job-member-head,
  .combined-job-builder,
  .job-suggester-controls {
    grid-template-columns: 1fr;
  }

  .cart-path-probability b {
    text-align: left;
  }

  .job-month-average {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-lanes {
    grid-template-columns: 1fr;
  }

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

  .employee-lane-column {
    display: contents;
  }

  .job-suggester-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
}

@media (max-width: 680px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    grid-template-columns: 1fr 32px;
  }

  .job-card input[data-card-title],
  .job-card input[data-card-notes] {
    grid-column: 1;
  }

  .job-card .remove-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
  }
}

/* Role-aware mobile day view: crew read updates, planners assign work. */
body.mobile-board-view {
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--brand-primary) 24%, transparent), transparent 32%),
    #091713;
  color: #eff9f4;
}

.mobile-board-view .mobile-shell {
  width: min(100%, 520px);
  max-width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px 12px 28px;
  overflow-x: clip;
  background: transparent;
  color: #eff9f4;
}

.mobile-board-view .mobile-head {
  display: block;
  margin: 0 0 12px;
  text-align: left;
}

.mobile-app-bar,
.mobile-date-controls,
.mobile-sync-row,
.mobile-crew-heading,
.mobile-plan-summary,
.mobile-setup-summary,
.mobile-job-card,
.mobile-job-card-actions {
  display: flex;
  align-items: center;
}

.mobile-app-bar {
  gap: 10px;
  min-height: 42px;
  margin-bottom: 10px;
}

.mobile-hub-link,
.mobile-full-planner-link,
.mobile-board-view .mobile-nav-arrow,
.mobile-sync-row button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 48%, #557164);
  border-radius: 11px;
  background: #112d25;
  color: #d9f6e7;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.mobile-app-title {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.mobile-app-title strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.1;
}

.mobile-app-title span {
  overflow: hidden;
  color: #aac5ba;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-date-controls {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  margin-bottom: 10px;
}

.mobile-board-view .mobile-nav-arrow {
  width: 38px;
  height: 42px;
  border-radius: 11px;
  background: #112d25;
  color: #d9f6e7;
  font-size: 24px;
}

.mobile-date-stack {
  display: grid;
  width: 100%;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, #3c5e51);
  border-radius: 11px;
  background: #153a30;
  text-align: center;
}

.mobile-date-stack > span {
  color: #f4c86a;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-board-view .mobile-date-stack input {
  width: 100%;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f6fbf8;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.mobile-board-view .mobile-date-stack input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.mobile-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #26493d;
  border-radius: 12px;
  background: #0c211b;
}

.mobile-view-tabs button {
  min-height: 36px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9fb9ae;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-view-tabs button.is-active {
  background: #285d4a;
  color: #ffffff;
}

.mobile-sync-row {
  justify-content: flex-end;
  gap: 8px;
  min-height: 30px;
  padding: 7px 1px 0;
}

.mobile-sync-row span {
  flex: 1;
  color: #99b5aa;
  font-size: 0.69rem;
  font-weight: 700;
}

.mobile-sync-row button {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 16px;
}

.mobile-plan-summary {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 1px solid #305a4c;
  border-radius: 13px;
  background: linear-gradient(135deg, #173b30, #102820);
}

.mobile-plan-summary p,
.mobile-plan-summary strong,
.mobile-plan-summary span {
  margin: 0;
}

.mobile-plan-summary p {
  color: #a9c3b7;
  font-size: 0.68rem;
  font-weight: 700;
}

.mobile-plan-summary strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 0.85rem;
}

.mobile-plan-summary > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  background: #21483a;
  color: #bdf1d6;
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-setup-summary {
  width: 100%;
  justify-content: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 11px;
  border: 1px solid #456755;
  border-radius: 12px;
  background: #152f27;
  color: #eaf8f1;
  text-align: left;
}

.mobile-setup-summary:disabled {
  opacity: 1;
}

.mobile-setup-summary-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: #f4c86a;
  color: #182b22;
}

.mobile-setup-summary > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mobile-setup-summary strong { font-size: 0.78rem; }
.mobile-setup-summary small {
  overflow: hidden;
  color: #b1cbbf;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-setup-summary b { margin-left: auto; color: #8ee6b5; font-size: 0.72rem; }

.mobile-view-content { min-width: 0; }
.mobile-section-label {
  margin: 0 2px 8px;
  color: #a6c2b6;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-crew-list { display: grid; gap: 9px; }

.mobile-crew-group,
.mobile-empty-day,
.mobile-board-view .mobile-setup-card {
  margin: 0;
  padding: 12px;
  border: 1px solid #31574a;
  border-radius: 14px;
  background: linear-gradient(145deg, #162f27, #10241e);
  color: #eff9f4;
  box-shadow: none;
}

.mobile-crew-heading { justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.mobile-crew-heading > div { min-width: 0; }
.mobile-crew-heading h2 { margin: 0; color: #fff; font-size: 0.95rem; }
.mobile-crew-heading span { display: block; margin-top: 1px; color: #9bb8ac; font-size: 0.68rem; }

.mobile-add-job,
.mobile-empty-lane,
.mobile-empty-day button {
  min-height: 34px;
  border: 1px solid #3f8b6a;
  border-radius: 9px;
  background: #24553f;
  color: #d5f7e5;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-add-job { padding: 6px 8px; }
.mobile-empty-lane { width: 100%; padding: 9px; border-style: dashed; background: rgba(29, 65, 51, 0.35); color: #b6d7c6; }

.mobile-job-list { display: grid; gap: 7px; }
.mobile-view-content .mobile-job-card {
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #2b4e42;
  border-radius: 10px;
  background: #0d211b;
  color: #f8fffb;
}

.mobile-job-card-copy { min-width: 0; }
.mobile-job-card-copy strong { display: block; color: #fff; font-size: 0.82rem; line-height: 1.2; }
.mobile-job-card-copy span { display: block; margin-top: 2px; color: #a6c1b5; font-size: 0.7rem; line-height: 1.25; }
.mobile-job-assigned { flex: 0 0 auto; color: #8fe5b5; font-size: 0.65rem; font-weight: 800; }

.mobile-job-card-actions { gap: 6px; }
.mobile-job-edit,
.mobile-view-content .mobile-job-delete {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #3e8368;
  border-radius: 8px;
  background: #1f4b3a;
  color: #d9fae8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-view-content .mobile-job-delete {
  width: 32px;
  padding: 0;
  border-color: #884f47;
  background: #41211e;
  color: #ffb1a2;
  font-size: 1.1rem;
}

.mobile-empty-day { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; text-align: center; }
.mobile-empty-day > span { color: #f4c86a; font-size: 2rem; }
.mobile-empty-day h2 { margin: 0; color: #fff; font-size: 1rem; }
.mobile-empty-day p { margin: 0; color: #aac5ba; font-size: 0.77rem; line-height: 1.45; }
.mobile-empty-day button { margin-top: 4px; padding: 7px 11px; }

.mobile-board-view .mobile-setup-head { margin-bottom: 12px; }
.mobile-board-view .mobile-setup-head h2 { color: #fff; font-size: 1.05rem; }
.mobile-board-view .mobile-setup-head span { color: #8ee6b5; font-size: 0.7rem; }
.mobile-board-view .mobile-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-board-view .mobile-setup-field { gap: 5px; color: #c8ded3; font-size: 0.65rem; font-weight: 800; text-align: left; }
.mobile-board-view .mobile-setup-field span { text-align: left; }
.mobile-board-view .mobile-setup-field select,
.mobile-board-view .mobile-setup-field textarea {
  min-height: 42px;
  padding: 7px 8px;
  border-color: #426858;
  background: #0c2019;
  color: #f2fbf6;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-align-last: left;
}
.mobile-board-view .mobile-setup-field textarea { min-height: 92px; }

/* Assignment editor: a deliberate phone sheet instead of a cramped picker. */
.mobile-board-view #mobile-job-dialog.modal-shell {
  align-items: end;
  padding: 0;
}

.mobile-board-view #mobile-job-dialog .modal-backdrop {
  background: rgba(1, 10, 7, 0.72);
  backdrop-filter: blur(3px);
}

.mobile-board-view #mobile-job-dialog .mobile-job-sheet {
  display: grid;
  width: min(100%, 520px);
  max-width: 520px;
  height: min(720px, 94dvh);
  max-height: min(720px, 94dvh);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3a7962;
  border-bottom: 0;
  border-radius: 21px 21px 0 0;
  background: #0a1d17;
  box-shadow: 0 -20px 64px rgba(0, 0, 0, 0.42);
}

.mobile-board-view #mobile-job-dialog .modal-head {
  align-items: center;
  margin: 0;
  padding: 16px 16px 11px;
  border-bottom: 1px solid #234b3e;
}

.mobile-board-view #mobile-job-dialog .modal-head::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #5c8e7c;
  content: "";
  transform: translateX(-50%);
}

.mobile-board-view #mobile-job-dialog .modal-head .eyebrow {
  margin: 0 0 3px;
  color: #9ec9b6;
  font-size: 0.67rem;
  font-weight: 800;
}

.mobile-board-view #mobile-job-dialog .modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
}

.mobile-job-close {
  width: 36px;
  height: 36px;
  border: 1px solid #3d725f;
  border-radius: 10px;
  background: #15382d;
  color: #ecfff5;
  font-size: 1.35rem;
}

.mobile-job-sheet-body {
  display: grid;
  min-height: 0;
  gap: 10px;
  padding: 13px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.mobile-job-search-field,
.mobile-job-notes {
  display: grid;
  gap: 5px;
  color: #b8d5c7;
  font-size: 0.69rem;
  font-weight: 800;
}

.mobile-board-view #mobile-job-dialog #mobile-job-search,
.mobile-board-view #mobile-job-dialog .mobile-job-notes input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #3e725f;
  border-radius: 10px;
  background: #102a21;
  color: #f2fff8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.mobile-board-view #mobile-job-dialog #mobile-job-search::placeholder,
.mobile-board-view #mobile-job-dialog .mobile-job-notes input::placeholder { color: #8eaca0; }

.mobile-board-view #mobile-job-dialog .mobile-job-categories {
  display: flex;
  max-height: none;
  gap: 6px;
  padding: 0 1px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-board-view #mobile-job-dialog .mobile-job-categories::-webkit-scrollbar { display: none; }

.mobile-board-view #mobile-job-dialog .mobile-job-categories button {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #396a59;
  border-radius: 999px;
  background: #132f25;
  color: #cce6da;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-board-view #mobile-job-dialog .mobile-job-categories button.is-active {
  border-color: #6de0aa;
  background: #2a7657;
  color: #fff;
}

.mobile-job-selection {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px dashed #426e5e;
  border-radius: 10px;
  background: #0d241c;
  color: #acc8bb;
  font-size: 0.73rem;
  line-height: 1.3;
}

.mobile-job-selection.has-selection {
  border-style: solid;
  border-color: #4ba97b;
  background: #143c2e;
}

.mobile-job-selection span { display: block; color: #9ab8aa; font-size: 0.63rem; font-weight: 800; }
.mobile-job-selection strong { display: block; margin-top: 2px; color: #fff; font-size: 0.83rem; }

.mobile-job-result-count {
  margin: 0;
  color: #97b9aa;
  font-size: 0.67rem;
  font-weight: 700;
}

.mobile-board-view #mobile-job-dialog .mobile-job-library {
  display: grid;
  max-height: none;
  gap: 7px;
}

.mobile-board-view #mobile-job-dialog .mobile-job-library button {
  display: grid;
  width: 100%;
  min-height: 54px;
  gap: 2px;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  border: 1px solid #2d594a;
  border-radius: 10px;
  background: #10271f;
  color: #f2fff8;
  text-align: left;
}

.mobile-board-view #mobile-job-dialog .mobile-job-library button.is-selected {
  border-color: #70d9a8;
  background: #1d5a43;
  box-shadow: inset 0 0 0 1px rgba(152, 244, 193, 0.2);
}

.mobile-board-view #mobile-job-dialog .mobile-job-library button strong { color: inherit; font-size: 0.8rem; line-height: 1.2; }
.mobile-board-view #mobile-job-dialog .mobile-job-library button span { color: #a9c8b9; font-size: 0.65rem; }
.mobile-job-empty { margin: 0; padding: 16px 4px; color: #a9c3b7; font-size: 0.77rem; text-align: center; }

.mobile-job-sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 8px;
  padding: 11px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #234b3e;
  background: #0d251d;
}

.mobile-job-cancel,
.mobile-job-save,
.mobile-board-view #mobile-job-dialog #mobile-job-remove {
  min-height: 45px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-job-cancel { border: 1px solid #436b5b; background: #17372c; color: #d7eee2; }
.mobile-job-save { border: 1px solid #73e0aa; background: #39a56f; color: #062218; }
.mobile-job-save:disabled { border-color: #3b6656; background: #244438; color: #8ca99d; }
.mobile-board-view #mobile-job-dialog #mobile-job-remove { grid-column: 1 / -1; width: 100%; margin: 0; border: 1px solid #95544c; background: #48231f; color: #ffb8aa; }

@media (max-width: 350px) {
  .mobile-board-view .mobile-setup-grid { grid-template-columns: 1fr; }
  .mobile-app-title span { display: none; }
}

/* Balanced Crew TV is additive: legacy display layout rules above remain available. */
.display-layout-balanced_tv {
  padding: 14px 20px;
  gap: 10px;
}

.display-layout-balanced_tv .display-head {
  min-height: 84px;
  padding-bottom: 7px;
}

.display-layout-balanced_tv .display-logo {
  width: 86px;
  height: 86px;
}

.display-layout-balanced_tv .display-brand { gap: 13px; }
.display-layout-balanced_tv .display-head p { font-size: 19px; }
.display-layout-balanced_tv .display-head h1 {
  max-width: 760px;
  overflow: hidden;
  font-size: 40px;
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-layout-balanced_tv .display-header-right {
  min-width: 0;
  gap: 12px;
}

.balanced-header-status {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 116px;
  gap: 8px;
  align-self: center;
}

.balanced-header-event,
.balanced-header-weather {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(74, 177, 130, 0.18), rgba(255, 255, 255, 0.05));
}

.balanced-header-weather {
  justify-items: center;
  background: linear-gradient(135deg, rgba(249, 194, 80, 0.20), rgba(255, 255, 255, 0.05));
}

.balanced-header-event span,
.balanced-header-weather span {
  color: #b8c9c2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.balanced-header-event strong {
  overflow: hidden;
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balanced-header-weather strong {
  color: var(--brand-accent);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.display-layout-balanced_tv .display-time-stack {
  min-width: 150px;
  align-content: center;
  gap: 4px;
}

.display-layout-balanced_tv .display-current-time strong { font-size: 42px; line-height: 0.95; }
.display-layout-balanced_tv .display-current-time span,
.display-layout-balanced_tv .display-start-time span { font-size: 13px; }
.display-layout-balanced_tv .display-start-time strong { font-size: 21px; }

.display-layout-balanced_tv .display-grid {
  grid-template-columns: minmax(0, 7fr) minmax(470px, 3fr);
  gap: 12px;
}

.display-layout-balanced_tv .display-side {
  height: 100%;
  grid-template-rows: minmax(0, 21fr) minmax(0, 53fr) minmax(0, 26fr);
  gap: 9px;
}

.display-layout-balanced_tv .display-side > * { min-height: 0; }

.display-layout-balanced_tv .display-employee {
  min-width: 0;
  grid-template-columns: minmax(174px, 25%) minmax(0, 1fr);
  gap: 11px;
  padding: 9px 10px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(105deg, rgba(33, 106, 80, 0.13), rgba(255, 255, 255, 0.045));
}

.display-layout-balanced_tv .display-name-chip {
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: 90px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 10px;
  font-size: 32px;
  line-height: 0.98;
  overflow-wrap: normal;
  text-wrap: balance;
}

.display-layout-balanced_tv .display-card-list {
  min-width: 0;
  align-content: center;
  gap: 6px;
  overflow: hidden;
}

.display-layout-balanced_tv .display-card,
.display-layout-balanced_tv .translate-card b {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.display-layout-balanced_tv .job-title-chip,
.display-layout-balanced_tv .job-note-chip {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.display-layout-balanced_tv .job-title-chip {
  display: -webkit-box;
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(24px, 1.42vw, 30px);
  font-weight: 700;
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.display-layout-balanced_tv .job-note-chip {
  display: -webkit-box;
  color: #e8dfb4;
  font-size: clamp(17px, 0.98vw, 20px);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.display-layout-balanced_tv .display-employee.is-off {
  border-color: rgba(168, 184, 176, 0.18);
  background: rgba(139, 151, 145, 0.055);
}

.display-layout-balanced_tv .display-employee.is-off .display-name-chip {
  border-color: rgba(190, 202, 196, 0.28);
  background: rgba(190, 202, 196, 0.08);
  color: #bdc9c3;
}

.display-layout-balanced_tv .display-employee.is-off .job-title-chip {
  align-self: center;
  color: #bdc9c3;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.balanced-setup-panel {
  min-height: 0;
  padding: 0;
}

.balanced-setup-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.display-layout-balanced_tv .balanced-setup-grid .mow-setup-card {
  min-width: 0;
  justify-content: center;
  gap: 3px;
  padding: 9px 11px;
}

.display-layout-balanced_tv .balanced-setup-grid .mow-setup-card.size-half {
  grid-column: span 1;
}

.display-layout-balanced_tv .balanced-setup-grid .mow-setup-card span { font-size: 12px; }
.display-layout-balanced_tv .balanced-setup-grid .mow-setup-card strong {
  overflow: hidden;
  font-size: clamp(23px, 1.4vw, 31px);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mow-direction-active-axis line {
  stroke: #ffe36b;
  stroke-width: 11;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(255, 218, 72, 0.82));
}

.mow-direction-active-axis polygon,
.mow-direction-rotation polygon {
  fill: #ffe36b;
  stroke: #fff6a5;
  stroke-width: 4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255, 218, 72, 0.82));
}

.mow-direction-rotation path {
  fill: none;
  stroke: #ffe36b;
  stroke-width: 11;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(255, 218, 72, 0.82));
}

.mow-direction-rotation.is-counterclockwise {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleX(-1);
}

.display-layout-balanced_tv .mow-direction-panel {
  padding: 8px;
  border-radius: 10px;
}

.display-layout-balanced_tv .mow-direction-visual { width: min(100%, 330px); }
.display-layout-balanced_tv .mow-direction-split.is-single .mow-direction-visual { width: min(100%, 330px); }
.display-layout-balanced_tv .mow-direction-split:not(.is-single) .mow-direction-visual { width: min(100%, 220px); }
.display-layout-balanced_tv .mow-direction-readout { padding: 7px; }
.display-layout-balanced_tv .mow-direction-readout strong { font-size: clamp(23px, 1.3vw, 31px); }
.display-layout-balanced_tv .mow-direction-cleanup { font-size: 18px; }

.balanced-priority-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding: 4px 12px;
  overflow: hidden;
}

.balanced-priority-row {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.balanced-priority-row:first-child { border-top: 0; }
.balanced-priority-row span {
  color: #aebfb7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.balanced-priority-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 0.92vw, 20px);
  font-weight: 700;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.balanced-priority-row.is-priority strong {
  color: #fff3b5;
  font-size: clamp(18px, 1vw, 22px);
}

.display-layout-balanced_tv .display-footer { font-size: 14px; }
