.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--nav-bg);
  border-right: 1px solid var(--border);
  padding: 0.75rem 0.875rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease,
              border-color 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
html.is-nav-collapsed .app-sidebar {
  width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  border: 0;
  pointer-events: none;
}
.app-nav-toggle,
.board-rail-toggle,
.board-inspect-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  pointer-events: auto;
  flex-shrink: 0;
}
.app-nav-toggle {
  position: fixed;
  left: calc(var(--sidebar-w) - 1rem);
  top: 1rem;
  z-index: 80;
  transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-nav-toggle.is-in-header {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
}
.app-nav-toggle .nav-icon,
.board-rail-toggle .nav-icon,
.board-inspect-toggle .nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.app-nav-toggle .nav-icon-show { display: none; }
html.is-nav-collapsed .app-nav-toggle:not(.is-in-header) {
  left: 0.7rem;
}
html.is-nav-collapsed .app-nav-toggle .nav-icon-hide { display: none; }
html.is-nav-collapsed .app-nav-toggle .nav-icon-show { display: block; }
html.is-nav-collapsed .app-main:not(:has(.app-nav-toggle.is-in-header)) {
  padding-left: 3rem;
}
html.is-nav-collapsed .app-main:not(:has(.app-nav-toggle.is-in-header)) .prod-context {
  margin-left: -3rem;
  padding-left: 3rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  color: var(--text);
}

.app-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-sm);
  corner-shape: squircle;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.app-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.app-brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.nav-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.25rem;
}

.nav-block + .nav-block {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.nav-block .nav-section-link {
  margin: 0 0 0.15rem;
}

.nav-section-link,
.nav-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.75rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-section-link {
  text-decoration: none;
  border-radius: var(--r-md);
  corner-shape: squircle;
}

.nav-section-link:hover,
.nav-section-link.active {
  color: var(--text);
  background: var(--nav-hover-bg);
}

.nav-section-label {
  margin-top: 0.85rem;
}

.nav-item.nav-prod {
  padding-left: 0.95rem;
  font-size: 0.8125rem;
  color: var(--text);
}

.nav-prod-tree {
  display: flex;
  flex-direction: column;
  margin: 0.05rem 0 0.2rem 0.95rem;
  padding: 0.1rem 0 0.15rem 0.7rem;
  border-left: 2px solid var(--border);
  gap: 0.05rem;
}

.nav-item.nav-prod-sub {
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-item.nav-prod-sub.active {
  color: var(--text);
}

.nav-item.nav-settings {
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.app-sidebar-footer {
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.app-user-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  padding: 0.15rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-md);
  corner-shape: squircle;
}

.app-user:hover {
  background: var(--nav-hover-bg);
}

.app-avatar {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-user-name {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-theme-btn {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.app-theme-btn:hover {
  color: var(--text);
  background: transparent;
}

.app-logout {
  flex-shrink: 0;
  padding: 0.15rem 0.2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.app-logout:hover {
  color: var(--text);
}

.app-theme-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: none;
}

.app-theme-btn .app-theme-sun { display: block; }
.app-theme-btn .app-theme-moon { display: none; }
.app-theme-btn.is-dark .app-theme-sun { display: none; }
.app-theme-btn.is-dark .app-theme-moon { display: block; }

.app-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2rem 3rem;
}

.app-main:has(.prod-context) {
  padding-top: 1.25rem;
}

.page-back {
  margin: 0 0 0.85rem;
}

.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  font-size: 0.95rem;
}

.prod-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  margin: -1.25rem -2rem 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.prod-context::before,
.prod-context::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: var(--bg);
  pointer-events: none;
}

.prod-context::before {
  bottom: 100%;
  height: 3rem;
}

.prod-context::after {
  top: 100%;
  height: 0;
}

.prod-context-main {
  display: flex;
  align-items: baseline;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  min-width: 0;
}

.prod-context-title {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  min-width: 0;
  max-width: 100%;
}

.prod-context-name,
.prod-context-module {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-context-name {
  flex: 0 1 auto;
}

.prod-context-module {
  flex: 0 1 auto;
}

.prod-context-sep {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 500;
}

.prod-context-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.prod-context-back {
  flex-shrink: 0;
}

.prod-context-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

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

.prod-context-actions .btn-ghost,
.prod-context-actions .btn-secondary,
.prod-context-actions .mail-select-all {
  flex-shrink: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.page-header > div:first-child:has(> .app-nav-toggle) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
}
.page-header > div:first-child:has(> .app-nav-toggle) .app-nav-toggle {
  grid-row: 1 / span 2;
}

.app-main:has(.prod-context) .page-header {
  position: sticky;
  top: var(--prod-sticky-offset, 4.125rem);
  z-index: 25;
  isolation: isolate;
  background: var(--bg);
  padding-top: 0.15rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.page-header > div:first-child:not(.page-actions):not(:has(.page-title:not(:empty))):not(:has(.page-subtitle)):not(:has(.day-view-switch)):not(:has(.day-strip)) {
  display: none;
}

.page-header:not(:has(.page-title:not(:empty))):not(:has(.page-subtitle)):not(:has(.day-view-switch)):not(:has(.day-strip)) {
  justify-content: flex-end;
}

.app-main:has(.prod-context) .page-header:not(:has(.page-title:not(:empty))) {
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.page-title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
}

.page-title:empty {
  display: none;
}

.page-subtitle {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: var(--text-dim);
}

.day-weather-row {
  align-items: start;
}

.day-weather-row .gcl-name,
.day-weather-row .gcl-fn {
  font-weight: 500;
  white-space: normal;
  line-height: 1.4;
}

.day-weather-row .gcl-fn {
  margin-top: 0.2rem;
}

.day-weather-card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.day-weather-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.weather-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.weather-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.day-weather-temps {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.day-weather-temps-sep {
  color: var(--text-dim);
  font-weight: 500;
}

.day-weather-cond {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.day-weather-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.day-weather-part {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.day-weather-part .weather-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.day-weather-part-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.day-weather-part-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.day-weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .day-weather-parts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.safety-manual {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.safety-manual label {
  display: grid;
  gap: 0.3rem;
}

.safety-manual label span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.safety-manual .btn-secondary {
  justify-self: start;
  margin-top: 0.15rem;
}

.day-safety-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.day-safety-edit .btn-ghost {
  flex-shrink: 0;
}

.day-safety-field.is-off-call select,
.day-safety-field.is-off-call .app-select-trigger {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
  background: var(--danger-dim);
}

.hospital-alternative {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  margin: 0.6rem 0;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--card);
  color: var(--text);
}

.hospital-alternative:hover {
  border-color: var(--primary);
}

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

.call-mail-status {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.call-mail-status.is-sent {
  color: var(--success);
  font-weight: 600;
}

.day-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.day-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 18%, var(--border));
}

.day-chip.is-current {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: var(--primary);
  background: var(--primary-dim);
}

.day-chip.is-sent {
  background: var(--success-dim);
  border-color: color-mix(in srgb, var(--success) 36%, var(--border));
  color: var(--success);
}

.day-chip.is-sent.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent);
}

.day-chip.is-sent.is-pending {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 36%, var(--border));
  color: var(--danger);
}

.day-chip.is-sent.is-pending.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}

.day-chip.is-sent.is-stale {
  background: color-mix(in srgb, #c9a227 16%, var(--surface));
  border-color: color-mix(in srgb, #c9a227 40%, var(--border));
  color: #8a6a12;
}

.day-chip.is-sent.is-stale.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9a227 40%, transparent);
}

.day-chip-hint {
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: none;
}

.list-row.day-sent {
  background: var(--success-dim);
}

.list-row.day-sent .list-row-icon {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.day-crew-table tr.gcl-row.mail-sent {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--text-dim) 45%, transparent);
}

.day-crew-table tr.gcl-row.mail-read {
  background: var(--success-dim);
  box-shadow: inset 3px 0 0 var(--success);
}

.day-crew-table .col-pickup,
.day-crew-table .col-travel,
.day-crew-table col.day-col-action {
  width: 9.5rem;
}

.day-crew-table thead th.col-pickup,
.day-crew-table thead th.col-travel,
.day-crew-table thead th.col-on-set,
.day-crew-table thead th.col-free,
.day-crew-table thead th.col-hotel {
  font-size: var(--text-list-head);
  font-weight: 600;
  text-align: center;
}

.day-crew-table td.col-pickup,
.day-crew-table td.col-travel,
.day-crew-table td.col-on-set,
.day-crew-table td.col-free,
.day-crew-table td.col-hotel {
  text-align: center;
}

.day-crew-table .pickup-btn,
.day-crew-table .travel-btn {
  width: 100%;
  white-space: normal;
  line-height: 1.15;
  height: auto;
  min-height: 1.75rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.72rem;
}

.day-crew-table .col-hotel,
.day-crew-table col.day-col-hotel {
  width: 3.5rem;
}

.day-crew-table .col-on-set,
.day-crew-table .col-free,
.day-crew-table col.day-col-time {
  width: 5.35rem;
}

.day-crew-table .pickup-btn,
.day-crew-table .travel-btn,
.day-crew-table .input-field,
.day-crew-table .hotel-stay-btn {
  box-sizing: border-box;
  height: 1.75rem;
  min-height: 1.75rem;
  line-height: 1;
}

.day-crew-table .pickup-btn {
  height: auto;
  min-height: 1.75rem;
  max-height: 2.55rem;
  white-space: normal;
  line-height: 1.15;
}

.day-crew-table input[type="time"] {
  width: 100%;
  max-width: 5.35rem;
  padding: 0 0.2rem;
  text-align: center;
}

.day-crew-table input[type="time"]::-webkit-datetime-edit {
  margin: 0 auto;
  padding: 0;
}

.day-crew-table input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.day-crew-table td.col-hotel {
  overflow: visible;
}

.day-crew-table tr:has(.hotel-stay.is-open) {
  position: relative;
  z-index: 6;
}

.hotel-stay {
  position: relative;
  width: 2.85rem;
}

.hotel-stay-btn {
  width: 100%;
  padding: 0 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.hotel-stay-btn:hover,
.hotel-stay.is-open .hotel-stay-btn {
  border-color: var(--primary);
}

.hotel-stay-menu {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.2rem);
  left: 0;
  min-width: 13rem;
  padding: 0.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
}

.hotel-stay.is-open .hotel-stay-menu {
  display: block;
}

.hotel-stay-option {
  display: block;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hotel-stay-option:hover,
.hotel-stay-option.is-selected {
  background: var(--nav-hover-bg);
}

.hotel-stay-option.is-selected {
  background: var(--success-dim);
  color: var(--success);
}

input.call-time-input.call-out {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--text-dim) 55%, transparent);
}

input.call-time-input.call-green {
  background: var(--success-dim);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  box-shadow: inset 3px 0 0 var(--success);
}

.time-own {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.time-own input[type="time"] {
  min-width: 0;
  flex: 1 1 auto;
}
.time-own.is-own input[type="time"] {
  opacity: 0.35;
}
.time-own-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border, #ccc);
  background: #fff;
  color: #111;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.32rem;
  line-height: 1;
  cursor: pointer;
}
.time-own-btn.is-on {
  background: #111;
  color: #fff;
  border-color: #111;
}

.page-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-search {
  width: min(22rem, 42vw);
  min-width: 10rem;
}

.page-search-count {
  min-width: 1.75rem;
  justify-content: center;
}

.app-main:has(.crew-directory) .page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: var(--bg);
  margin-bottom: 1.25rem;
  padding-top: 0.15rem;
  padding-bottom: 1rem;
}

.app-main:has(.crew-directory) .gcl-section .gcl-section-head {
  top: var(--prod-sticky-offset, 4.125rem);
  z-index: 22;
}

.app-main:has(.crew-directory) .crew-list-head {
  z-index: 20;
}

.crew-list-head,
a.list-row.crew-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.15fr) minmax(12rem, 1.25fr) minmax(7.5rem, 0.85fr);
  align-items: center;
  gap: 0.65rem 1rem;
}

.crew-list-head {
  padding: 0.35rem 1.25rem;
  font-size: var(--text-list-head);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: calc(var(--prod-sticky-offset, 4.125rem) + var(--gcl-section-head-height, 3.4rem));
  z-index: 19;
}

a.list-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  margin: -0.875rem 0 -0.875rem -1.25rem;
  padding: 0.875rem 0.75rem 0.875rem 1.25rem;
  color: inherit;
}

a.list-row-main:hover {
  color: inherit;
}

.crew-col { min-width: 0; }

.crew-col-name .gcl-name,
.crew-col-contact .gcl-email,
.crew-col-contact .gcl-phone,
.crew-col-name .gcl-fn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-col-name .gcl-name {
  font-size: var(--text-content);
}

.crew-col-name .gcl-fn,
.crew-col-contact .gcl-email,
.crew-col-contact .gcl-phone {
  font-size: var(--text-content);
}

.crew-col-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.badge-aid {
  background: var(--success-dim);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
}

@media (max-width: 860px) {
  .crew-list-head,
  a.list-row.crew-row {
    grid-template-columns: minmax(10rem, 1.2fr) minmax(10rem, 1.2fr);
  }
  .crew-list-head > :last-child,
  .crew-col-meta { display: none; }
}

@media (max-width: 560px) {
  .crew-list-head,
  a.list-row.crew-row { grid-template-columns: 1fr; }
  .crew-list-head > :nth-child(2) { display: none; }
  .form-row.times-row { grid-template-columns: 1fr; }
  .form-row.times-row-dismiss { max-width: none; }
}

a.list-row.crew-row.is-hidden,
.swipe-row.is-hidden {
  display: none;
}

.swipe-row {
  position: relative;
  overflow: hidden;
}

.swipe-row-action {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  z-index: 0;
  opacity: 0;
}

.swipe-row.is-open .swipe-row-action,
.swipe-row.is-swiping .swipe-row-action {
  opacity: 1;
}

.swipe-row-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  padding: 0 1.15rem;
  border: 0;
  background: var(--danger);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.swipe-row-delete:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.swipe-row-front {
  position: relative;
  z-index: 1;
  background: var(--card);
  touch-action: pan-y;
  will-change: transform;
}

.swipe-row.is-settling .swipe-row-front {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.swipe-row.is-open .swipe-row-front,
.swipe-row.is-armed .swipe-row-front {
  background: var(--card);
}

.swipe-row.is-removing {
  pointer-events: none;
  transition: height 200ms ease, opacity 180ms ease;
}

.swipe-row .list-row {
  border-bottom: 1px solid var(--border);
}

.gcl-section .crew-section-body > .swipe-row:last-child .list-row,
.gcl-section .crew-section-body > .swipe-row:last-child .swipe-row-front {
  border-bottom: none;
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
}

.gcl-section .crew-section-body > .swipe-row:last-child .swipe-row-delete {
  border-bottom-right-radius: var(--r-xl);
}

.card.gcl-section,
.card.day-block {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.gcl-section .gcl-section-head,
.day-block .gcl-section-head,
.collapsible-header {
  position: sticky;
  top: var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem));
  z-index: 21;
  isolation: isolate;
  background: var(--card);
  border: 1px solid var(--border);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
}

.gcl-section .crew-section-body,
.day-block .day-block-body {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
}

.gcl-section .crew-section-body::before,
.gcl-section .crew-section-body::after,
.day-block .day-block-body::before,
.day-block .day-block-body::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: var(--r-xl);
  height: var(--r-xl);
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, transparent var(--r-xl), var(--bg) calc(var(--r-xl) + 0.6px));
}

.gcl-section .crew-section-body::before,
.day-block .day-block-body::before { left: -1px; }

.gcl-section .crew-section-body::after,
.day-block .day-block-body::after {
  right: -1px;
  background: radial-gradient(circle at 0 0, transparent var(--r-xl), var(--bg) calc(var(--r-xl) + 0.6px));
}

.gcl-section .crew-section-body > .list-row:last-child {
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
}

.collapsible-section:not(.is-open) .collapsible-header {
  border-radius: var(--r-xl);
  corner-shape: squircle;
  border-bottom: none;
}

.collapsible-section.is-open .collapsible-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--border);
}

.collapsible-section .table-header {
  position: sticky;
  top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + 3.5rem);
  z-index: 19;
  background: var(--surface-2);
}

.day-block {
  margin-bottom: 1.5rem;
}

.crew-section,
.day-block {
  --block-pad-x: 1.25rem;
  --block-chevron-slot: 1.6rem;
  --gcl-handle-w: 1.25rem;
  --mail-col-w: 2.25rem;
}

.day-block-body {
  padding: 1rem var(--block-pad-x, 1.25rem) 1.25rem;
}

.day-block-body.day-block-table {
  padding: 0;
  --day-person-col: 12rem;
}

.day-info-list {
  font-size: 0.8em;
  color: var(--text);
}

.day-loc-grid {
  display: flex;
  flex-direction: column;
}

.day-loc-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0.75rem var(--block-pad-x, 1.25rem);
  align-items: start;
}

.day-loc-kicker,
button.day-loc-kicker {
  display: block;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.day-loc-body .gcl-name {
  font-weight: 600;
}

@media (max-width: 720px) {
  .day-loc-card {
    grid-template-columns: 1fr;
  }
}

.day-safety-pair.is-visible {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

#weather-section .gcl-section-head,
.day-weather-section .gcl-section-head {
  position: relative;
  top: auto;
}

.collapsible-section .collapsible-header {
  position: relative;
  top: auto;
}

#safety-section {
  position: relative;
  z-index: 24;
  overflow: visible;
}

#safety-section .day-block-body,
#safety-section .day-info-list,
#safety-section .day-info-row,
#safety-section .day-safety-field {
  overflow: visible;
}

#times-section {
  position: relative;
  z-index: 20;
}

.day-info-row {
  display: grid;
  grid-template-columns: var(--day-person-col) minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  min-height: 3.35rem;
  padding: 0.4rem 0.5rem 0.4rem 0;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}

a.day-info-row {
  cursor: pointer;
}

a.day-info-row:hover {
  background: var(--nav-hover-bg);
}

a.day-info-row:hover .day-info-empty-hint {
  color: var(--primary);
}

.day-info-label {
  display: block;
  width: 100%;
  padding: 0 0.5rem 0 var(--block-pad-x, 1.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

button.day-info-label {
  appearance: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

button.day-info-label:hover {
  color: var(--primary);
}

.day-info-body {
  min-width: 0;
  padding-right: 0.5rem;
}

.day-dept-note {
  font-weight: 500;
  white-space: pre-wrap;
}

#dept-notes-section,
#dept-notes-section .day-block-body,
#dept-notes-section .day-info-list,
#dept-notes-section .day-info-row {
  overflow: visible;
}

.day-dept-name-wrap {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.day-dept-name-wrap.is-open {
  z-index: 28;
}

input.day-dept-name {
  cursor: text;
}

.day-dept-name,
.day-dept-info {
  appearance: none;
  width: 100%;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  border-radius: 0;
}

.day-dept-name {
  font-weight: 700;
  text-align: left;
  cursor: text;
}

.day-dept-info {
  font-weight: 500;
  min-height: 1.3em;
  resize: none;
  field-sizing: content;
  white-space: pre-wrap;
}

.day-dept-name::placeholder,
.day-dept-info::placeholder {
  color: var(--text-placeholder, var(--text-dim));
  font-weight: 500;
  font-style: italic;
}

.day-info-row[data-ghost] .day-dept-name,
.day-info-row[data-ghost] .day-dept-info {
  color: var(--text-placeholder, var(--text-dim));
  font-weight: 500;
  font-style: italic;
}

.day-dept-pick {
  display: none;
  position: absolute;
  left: var(--block-pad-x, 1.25rem);
  right: 0.5rem;
  top: calc(100% + 0.2rem);
  z-index: 26;
  max-height: 14rem;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.day-dept-name-wrap.is-open .day-dept-pick {
  display: grid;
  gap: 0.2rem;
}

.day-dept-pick .day-live-item {
  width: 100%;
}

.day-info-empty-hint {
  color: var(--text-placeholder, var(--text-dim));
  font-weight: 500;
  font-style: italic;
}

.hotel-name-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.hotel-headcount-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

#hotels-container {
  --day-hotel-nr-col: 3.25rem;
  --day-guest-col: calc(var(--day-person-col) - var(--day-hotel-nr-col));
}

#hotels-container .day-info-row {
  grid-template-columns: var(--day-hotel-nr-col) var(--day-guest-col) minmax(0, 1fr);
}

#hotels-container .day-info-label {
  padding-right: 0.25rem;
}

.hotel-guest-col {
  min-width: 0;
  padding-right: 0.6rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.hotel-parking-row .hotel-guest-col,
.hotel-parking-row .day-info-body .gcl-fn {
  font-weight: 500;
  color: var(--text-muted);
}

.hotel-headcount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.hotel-info-badge {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: default;
}

.hotel-info-badge:hover,
.hotel-info-badge:focus-visible {
  border-color: var(--text-dim);
  color: var(--text);
}

.hotel-info-badge[hidden] {
  display: none;
}

.hotel-cat-popover {
  position: fixed;
  z-index: 80;
  min-width: 12.5rem;
  padding: 0.55rem 0.7rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
  color: var(--text);
}

.hotel-cat-popover[hidden] {
  display: none;
}

.hotel-cat-popover table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.hotel-cat-popover th {
  text-align: left;
  font-weight: 700;
  padding: 0 0 0.35rem;
  color: var(--text-dim);
}

.hotel-cat-popover td {
  padding: 0.15rem 0;
  border-bottom: none;
}

.hotel-cat-popover tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.hotel-cat-popover td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding-left: 1rem;
}

.pickup-source-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pickup-source-row select {
  flex: 1;
}

.pickup-address-popover {
  z-index: 1100;
  max-width: 18rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.pickup-travel-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.pickup-travel-hint.is-clear { color: #1b7f4a; }
.pickup-travel-hint.is-busy { color: #b8860b; }
.pickup-travel-hint.is-jam { color: #c0392b; }

.pickup-warnings {
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pickup-warning {
  padding: 0.45rem 0.65rem;
  border-left: 3px solid #c9a227;
  background: color-mix(in srgb, #c9a227 12%, var(--card));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
}

.pickup-warning.is-bad {
  border-left-color: #c0392b;
  background: color-mix(in srgb, #c0392b 10%, var(--card));
}

.pickup-suggest-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pickup-place-line {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.gcl-section .day-info-row:last-child {
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  corner-shape: squircle;
}

.day-block-body.catering-body {
  padding-left: var(--block-pad-x, 1.25rem);
  padding-right: var(--block-pad-x, 1.25rem);
}

.catering-board {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.9fr) minmax(0, 1.7fr);
  gap: 0.5rem 2rem;
  align-items: start;
}

.catering-vendors {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.catering-vendor {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.15rem 0;
  color: inherit;
  text-decoration: none;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.catering-vendor:hover .catering-vendor-name {
  color: var(--primary);
}

.catering-vendor-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.catering-vendor-line {
  color: var(--text-dim);
  font-size: 0.8em;
  line-height: 1.35;
}

.catering-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.75rem;
}

.catering-stat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: baseline;
  column-gap: 0.75rem;
  min-height: 2.15rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--border);
}

.catering-stat.has-tip {
  cursor: help;
}

.catering-stat-count,
.catering-reply-m {
  position: relative;
}

.catering-tip {
  display: none;
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 0.3rem);
  bottom: auto;
  z-index: 8;
  min-width: 12rem;
  max-width: 22rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-line;
}

.catering-reply-m .catering-tip {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.catering-stat:hover .catering-tip,
.catering-stat:focus-within .catering-tip {
  display: block;
}

.catering-stat-label {
  min-width: 0;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.catering-stat-count {
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.catering-stat.is-zero .catering-stat-label,
.catering-stat.is-zero .catering-stat-count {
  color: var(--text-dim);
  font-weight: 500;
}

.catering-stat-hero .catering-stat-label {
  font-weight: 700;
}

.catering-stat-hero .catering-stat-count {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.catering-stat-hero.is-zero .catering-stat-count {
  font-weight: 700;
}

.catering-stat-replies {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
}

.catering-stat-replies .catering-stat-count {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 1.15rem;
}

.catering-reply-m {
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.catering-reply-m.is-short {
  color: var(--danger);
}

.catering-reply-m.is-ok {
  color: var(--success);
}

.catering-reply-of {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.catering-stat-replies.is-zero .catering-reply-m,
.catering-stat-replies.is-zero .catering-reply-of {
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .form-row.times-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row.times-row-dismiss { max-width: none; }
  .catering-board {
    grid-template-columns: 1fr;
  }
}

.day-block .accordion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.day-block .location-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.day-block .location-item:last-child {
  border-bottom: 0;
}

.day-block .location-item:hover {
  box-shadow: none;
  background: var(--nav-hover-bg);
}

.gcl-table,
.day-crew-table,
.transpo-table,
.walkie-talkie-table {
  font-size: var(--text-table);
}

.gcl-table thead th,
.day-crew-table thead th,
.transpo-table .table-header,
.walkie-talkie-table .table-header {
  padding: 0.3rem 0.5rem;
  line-height: 1.2;
}

.gcl-table thead th,
.day-crew-table thead th,
.transpo-table .table-header,
.walkie-talkie-table .table-header,
.crew-list-head,
.scheduler-table-head,
.live-table-head,
.report-table-head,
.collapsible-section .table-header,
.table-header,
.board-table th {
  font-size: var(--text-col-head);
  font-weight: 600;
}

.gcl-table td,
.day-crew-table td,
.transpo-table .vehicle-type,
.transpo-table .vehicle-plate,
.transpo-table .vehicle-driver,
.transpo-table .vehicle-info,
.walkie-talkie-table .table-row {
  font-size: inherit;
  color: var(--text);
}

.day-crew-table {
  table-layout: fixed;
  width: 100%;
}

.day-crew-table .gcl-line {
  cursor: default;
}

.day-crew-table th,
.day-crew-table td {
  vertical-align: middle;
}

.day-crew-table .gcl-person,
.day-crew-table col.day-col-person {
  width: var(--day-person-col);
  min-width: var(--day-person-col);
  max-width: var(--day-person-col);
  line-height: 1.3;
}

.app-main .day-crew-table th.gcl-person,
.app-main .day-crew-table td.gcl-person {
  padding-left: var(--block-pad-x, 1.25rem);
}

.day-crew-table col.day-col-fill,
.day-crew-table th.day-col-fill,
.day-crew-table td.day-col-fill {
  width: auto;
  padding: 0;
  border: 0;
}

.day-crew-table col.day-col-mail,
.day-crew-table th.col-mail,
.day-crew-table td.col-mail {
  width: 2.4rem;
  min-width: 2.4rem;
  max-width: 2.4rem;
  padding: 0 0.35rem;
  text-align: center;
}

.day-crew-table .co-production-cell,
.day-crew-table col.day-col-co {
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.day-crew-table td.co-production-cell {
  position: relative;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.day-crew-table td.co-production-yes::before,
.day-crew-table td.co-production-no::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.day-crew-table td.co-production-yes::before {
  content: "c/o";
  color: var(--text-dim);
}

.day-crew-table tbody tr:hover td.co-production-no::before {
  content: "c/o";
  color: color-mix(in srgb, var(--text-dim) 32%, transparent);
}

.day-crew-table tbody td {
  height: 3.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.gcl-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem var(--block-pad-x, 1.25rem);
  padding-right: calc(var(--block-pad-x, 1.25rem) + var(--block-chevron-slot, 1.35rem));
  border-bottom: 1px solid var(--border);
}

.gcl-section-head .crew-section-header {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
}

.gcl-head-aside {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.gcl-restore-order {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.75rem;
  white-space: nowrap;
}

.gcl-restore-order[hidden] {
  display: none !important;
}

.crew-section-header {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-feature-settings: var(--font-features);
  font-variant-numeric: var(--font-nums);
  color: inherit;
}

.crew-section-header:hover {
  background: var(--nav-hover-bg);
}

.crew-section-header .card-section-title {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.day-block .crew-section-header .card-section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-section-header.crew-section-header {
  position: relative;
  padding-right: calc(var(--block-pad-x, 1.25rem) + var(--block-chevron-slot, 1.35rem));
}

.gcl-section-head .crew-chevron,
.card-section-header.crew-section-header .crew-chevron {
  position: absolute;
  right: var(--block-pad-x, 1.25rem);
  top: 50%;
  z-index: 2;
}

.crew-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
  transform: translateY(-50%);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.crew-section.is-collapsed .crew-chevron {
  transform: translateY(-50%) rotate(-90deg);
}

.crew-section.is-collapsed .crew-section-body {
  display: none;
}

.crew-section.is-collapsed .crew-section-header,
.crew-section.is-collapsed .gcl-section-head {
  border-bottom: none;
}

.crew-section.is-collapsed .gcl-section-head {
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  corner-shape: squircle;
}

.crew-section.is-hidden,
.list-row.is-hidden {
  display: none;
}

.gcl-table {
  table-layout: fixed;
  width: 100%;
  min-width: 46rem;
}

html.is-gcl-scroll-days .app-main {
  overflow-x: auto;
}

html.is-gcl-scroll-days .gcl-table {
  width: max(100%, calc(39.5rem + 3rem * var(--gcl-days, 8)));
  min-width: calc(39.5rem + 3rem * var(--gcl-days, 8));
}

html.is-gcl-scroll-days .prod-context,
html.is-gcl-scroll-days .gcl-section-head {
  left: 0;
}

.gcl-table col.gcl-col-handle { width: var(--gcl-handle-w, 1.25rem); }
.gcl-table col.gcl-col-person { width: 16rem; }
.gcl-table col.gcl-col-contact { width: var(--gcl-contact-w, 14rem); }
.gcl-table col.gcl-col-co,
.gcl-table col.gcl-col-day,
.gcl-table col.gcl-col-actions { width: 3rem; }
.gcl-table col.gcl-col-mail { width: var(--mail-col-w, 2.25rem); }

.gcl-table .gcl-person {
  width: 16rem;
  min-width: 14rem;
}

.gcl-table th.gcl-contact,
.gcl-table td.gcl-contact {
  width: var(--gcl-contact-w, 14rem);
  min-width: var(--gcl-contact-w, 14rem);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: left;
  vertical-align: middle;
  position: sticky;
  left: calc(var(--gcl-handle-w, 1.25rem) + 16rem);
  z-index: 11;
  background: var(--card);
}

.gcl-table th.gcl-handle,
.gcl-table td.gcl-handle {
  position: sticky;
  left: 0;
  z-index: 13;
  background: var(--card);
}

.gcl-table th.gcl-person,
.gcl-table td.gcl-person {
  position: sticky;
  left: var(--gcl-handle-w, 1.25rem);
  z-index: 12;
  background: var(--card);
  padding-left: 0;
}

html.is-gcl-scrolled-x .gcl-table th.gcl-person,
html.is-gcl-scrolled-x .gcl-table td.gcl-person,
html.is-gcl-scrolled-x .gcl-table th.gcl-contact,
html.is-gcl-scrolled-x .gcl-table td.gcl-contact {
  box-shadow: 6px 0 10px color-mix(in srgb, var(--bg) 55%, transparent);
}

html.is-gcl-scrolled-x .app-main .gcl-table thead th.gcl-person,
html.is-gcl-scrolled-x .app-main .gcl-table thead th.gcl-contact {
  box-shadow:
    6px 0 10px color-mix(in srgb, var(--bg) 55%, transparent),
    0 1px 0 var(--border);
}

.app-main .gcl-table thead th.gcl-handle,
.app-main .gcl-table thead th.gcl-person,
.app-main .gcl-table thead th.gcl-contact {
  z-index: 20;
  background: var(--surface-2);
}

.app-main .gcl-table tr:hover td.gcl-handle,
.app-main .gcl-table tr:hover td.gcl-person,
.app-main .gcl-table tr:hover td.gcl-contact {
  background: var(--nav-hover-bg);
}

.app-main .gcl-table tr.gcl-add-row td.gcl-handle,
.app-main .gcl-table tr.gcl-add-row td.gcl-person,
.app-main .gcl-table tr.gcl-add-row td.gcl-contact,
.app-main .gcl-table tr.gcl-add-row:hover td.gcl-handle,
.app-main .gcl-table tr.gcl-add-row:hover td.gcl-person,
.app-main .gcl-table tr.gcl-add-row:hover td.gcl-contact {
  background: var(--primary-dim);
}

.gcl-section:has(.search-results.show),
.gcl-section:has(.search-results.force-show) {
  position: relative;
  z-index: 24;
}

.gcl-table td.gcl-person:has(.search-results.show),
.gcl-table td.gcl-person:has(.search-results.force-show) {
  z-index: 24;
  overflow: visible;
}

.app-main .gcl-table,
.app-main .day-crew-table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-main .gcl-table thead th,
.app-main .day-crew-table thead th {
  position: sticky;
  top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + var(--gcl-section-head-height, 3.4rem));
  z-index: 19;
  background: var(--surface-2);
  box-shadow: 0 1px 0 var(--border);
}

.gcl-section .gcl-table tr:last-child td:first-child,
.gcl-section .day-crew-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--r-xl);
}

.gcl-section .day-crew-table tr:last-child td:last-child,
.gcl-section .gcl-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--r-xl);
}

.gcl-table th,
.gcl-table td {
  vertical-align: middle;
}

.gcl-table .day-header,
.gcl-table .on-call-day,
.gcl-table .co-production-cell,
.gcl-table .gcl-actions,
.gcl-table .col-mail {
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  box-sizing: border-box;
}

.gcl-table .col-mail {
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
}

.gcl-table tbody tr.gcl-row:not(.gcl-add-row) > .on-call-day {
  border-left: 1px solid var(--border);
}

.gcl-table td.on-call-yes,
.gcl-table td.on-call-no {
  position: relative;
  overflow: hidden;
}

.gcl-table td.on-call-yes::before,
.gcl-table td.on-call-no::before {
  content: attr(data-cal);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.gcl-table td.on-call-yes::before {
  color: color-mix(in srgb, var(--success) 14%, var(--success-dim));
}

.gcl-table td.on-call-no::before {
  color: color-mix(in srgb, var(--danger) 14%, var(--danger-dim));
}

.gcl-table tr.gcl-row:hover td.on-call-yes::before {
  content: "✓";
}

.gcl-table tr.gcl-row:hover td.on-call-no::before {
  content: "✗";
}

.app-main .gcl-table tr:hover td.on-call-yes,
.app-main .gcl-table td.on-call-yes:hover {
  background-color: var(--success-dim);
  color: var(--success);
}

.app-main .gcl-table tr:hover td.on-call-no,
.app-main .gcl-table td.on-call-no:hover {
  background-color: var(--danger-dim);
  color: var(--danger);
}

.gcl-table td.co-production-cell {
  position: relative;
  cursor: pointer;
  background: transparent;
}

.gcl-table tr.gcl-add-row td.co-production-cell,
.gcl-table tr.gcl-add-row:hover td.co-production-cell {
  cursor: default;
  background: var(--primary-dim);
}

.gcl-table td.co-production-yes::before,
.gcl-table td.co-production-no::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.gcl-table td.co-production-yes::before {
  content: "c/o";
  color: var(--text-dim);
}

.gcl-table tr.gcl-row:hover td.co-production-no::before {
  content: "c/o";
  color: color-mix(in srgb, var(--text-dim) 32%, transparent);
}

.app-main .gcl-table tr.gcl-add-row:hover td {
  background: var(--primary-dim);
}

.app-main .gcl-table th.gcl-handle,
.app-main .gcl-table td.gcl-handle,
.gcl-table .gcl-handle {
  width: var(--gcl-handle-w, 1.25rem);
  min-width: var(--gcl-handle-w, 1.25rem);
  max-width: var(--gcl-handle-w, 1.25rem);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  text-align: center;
  color: var(--text-dim);
  cursor: grab;
}

.gcl-table td.gcl-handle i {
  display: block;
  line-height: 1;
}

.gcl-row td,
.day-crew-table tbody td {
  height: 3.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.day-crew-table tbody tr.day-empty-row td {
  height: 3.35rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: left;
  padding-left: var(--block-pad-x, 1.25rem);
}

.day-crew-table tbody tr.day-empty-row.is-off {
  display: none;
}

.gcl-person,
.gcl-contact {
  line-height: 1.3;
}

.gcl-line {
  display: block;
  width: 100%;
  min-height: 1.3em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-feature-settings: var(--font-features);
  font-variant-numeric: var(--font-nums);
  text-align: left;
  color: inherit;
}

.gcl-line {
  cursor: text;
}

.gcl-name {
  font-weight: 700;
  color: var(--text);
  font-size: var(--text-content);
}

.gcl-fn,
.gcl-cast,
.gcl-email,
.gcl-phone {
  color: var(--text-dim);
  font-weight: 500;
  font-size: var(--text-content);
}

.gcl-table .gcl-email,
.gcl-table .gcl-phone {
  white-space: nowrap;
}

.gcl-deal {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.78rem;
}

.gcl-import-hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.deal-pop {
  margin-top: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 0.55rem;
  max-width: 22rem;
}

.deal-pop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.deal-pop-grid label,
.deal-ot-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.deal-pop-actions {
  display: flex;
  justify-content: flex-end;
}

.gcl-inline-input {
  display: block;
  width: 100%;
  height: 1.3em;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--primary);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-feature-settings: var(--font-features);
  font-variant-numeric: var(--font-nums);
  line-height: 1.3;
}

.gcl-add-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.app-main .gcl-table .input.gcl-add-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 2rem;
  min-height: 2rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  corner-shape: initial;
  background: var(--surface-2);
  background-clip: padding-box;
  border: 1px solid var(--border);
}

.gcl-mehrere-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.gcl-add-row td {
  background: var(--primary-dim);
  border-top: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--border));
}

.gcl-add-row td.gcl-handle {
  color: var(--primary);
}

.gcl-add-row .gcl-add-icon {
  display: block;
  line-height: 1;
  opacity: 0.85;
}

.gcl-actions {
  text-align: center;
}
.gcl-actions [data-action="viewer"].is-copied {
  color: var(--success);
}

.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: -0.75rem 0 1.75rem;
  padding: 0.25rem;
  width: fit-content;
  max-width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  corner-shape: squircle;
}

.settings-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: calc(var(--r-md) - 2px);
  corner-shape: squircle;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.settings-nav-item:hover {
  color: var(--text);
  background: var(--nav-hover-bg);
}

.settings-nav-item.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.app-main header {
  color: var(--text);
  text-align: left;
  margin-bottom: 1.5rem;
}

.app-main header h1 {
  text-shadow: none;
  font-size: 2.25rem;
}

.app-main header p {
  color: var(--text-dim);
}

.flash-stack { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.flash {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  corner-shape: squircle;
  border: 1px solid var(--border);
  background: var(--surface);
}

.flash.success {
  background: var(--success-dim);
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
  color: var(--success);
}

.flash.error,
.flash.danger {
  background: var(--danger-dim);
  border-color: var(--danger-border);
  color: var(--danger);
}

.grid-2, .grid-3, .grid-4, .stat-grid, .card-grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stat-card,
.action-tile {
  padding: 1.25rem;
}

.stat-card h3,
.action-tile h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-card p,
.action-tile p,
.meta {
  color: var(--text-dim);
  font-size: 0.875rem;
}

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

.form-grid .span-2 { grid-column: span 2; }

.form-stack { display: flex; flex-direction: column; gap: 1rem; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-dim);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, #0c0d10 72%, transparent);
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

[data-theme="dark"] .modal-backdrop {
  background: color-mix(in srgb, #000 86%, transparent);
}

.modal-backdrop.open { display: flex; }

#companyFormModal { z-index: 50; }

.modal-panel {
  width: min(520px, 100%);
  max-height: min(90vh, 880px);
  overflow: auto;
  padding: 1.25rem;
  border-radius: var(--r-xl);
  corner-shape: squircle;
  box-shadow: var(--shadow-lift), 0 28px 80px rgba(0, 0, 0, 0.34);
  border: 1px solid var(--border);
}

.modal-panel-wide {
  width: min(1080px, 100%);
}

.crew-import-zone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
}

.crew-import-zone strong {
  color: var(--text);
  font-size: 0.92rem;
}

.crew-import-zone span {
  font-size: 0.8rem;
}

.crew-import-zone.is-hover {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.crew-import-status:not(:empty) {
  color: var(--success);
  font-weight: 650;
}

.crew-form-card {
  width: 100%;
  max-width: none;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.35rem 0.75rem;
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.choice-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.choice-pill:hover { color: var(--text); }
.choice-pill.is-on,
.choice-pill:has(input:checked) {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
  border-color: transparent;
}
.license-pills .choice-pill { min-width: 2.6rem; justify-content: center; }

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

.first-aider-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.first-aider-row .first-aider-checkbox,
.first-aider-row .first-aider-pill {
  margin: 0 0 0.55rem;
  flex: 0 0 auto;
}

.first-aider-until {
  flex: 1 1 auto;
  min-width: 0;
}

.department-function-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.department-function-row .app-select,
.department-function-row select,
.department-function-row .fn-combo {
  flex: 1;
  min-width: 0;
}

.fn-combo {
  position: relative;
}

.fn-combo-menu {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  padding: 0.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  corner-shape: squircle;
  box-shadow: var(--shadow-lift);
}

.fn-combo.is-open .fn-combo-menu {
  display: block;
}

.fn-combo-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: var(--text-ui);
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: calc(var(--r-md) - 4px);
  corner-shape: squircle;
  cursor: pointer;
}

.fn-combo-option:hover,
.fn-combo-option.is-selected {
  background: var(--primary-dim);
  color: var(--primary);
}

.modal-panel h2,
.modal-panel h3 { margin: 0 0 0.75rem; }

/* Legacy-Klassen der alten Callsheet-Seiten auf Tokens mappen */
.form-section,
.section,
.company-form,
.production-info,
.company-card,
.production-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-section h2,
.section h2 { margin: 0 0 1rem; font-size: 1.15rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group > label,
.form-group > .label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.form-group small { color: var(--text-dim); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-row-3 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); }
.form-row.times-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-row.times-row-dismiss { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.form-group select,
.form-group textarea,
.company-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.company-form textarea,
.company-form select,
.department-function-row select,
.department-function-row input,
.production-row select,
.production-row input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-feature-settings: var(--font-features);
  font-variant-numeric: var(--font-nums);
  font-size: 0.875rem;
  border-radius: var(--r-md);
  corner-shape: squircle;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.form-group input.is-empty,
.form-group input.is-inherited,
.form-group .input-field.is-empty,
.form-group .input-field.is-inherited,
.company-form input.is-empty,
.company-form input.is-inherited {
  color: var(--text-placeholder, var(--text-dim));
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
}

.form-group .checkbox-item,
.form-group .first-aider-checkbox {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.btn-edit,
.btn-view { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--r-md);
  corner-shape: squircle;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--r-md);
  corner-shape: squircle;
  background: var(--danger);
  color: #fff;
  border: 0;
}

.no-data { text-align: center; padding: 2rem; color: var(--text-dim); }

.productions-grid,
.companies-grid,
.action-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.productions-grid,
.companies-grid,
.action-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.quick-actions { margin-bottom: 2rem; }
.quick-actions h2,
.section h2 { margin-bottom: 1rem; }

.action-card {
  display: block;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
  color: var(--text);
}

.action-card:hover {
  color: var(--text);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  transform: none;
}

.action-card h3 { margin: 0.4rem 0 0.2rem; }
.action-card p { color: var(--text-dim); font-size: 0.875rem; }

.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.public-card {
  width: min(640px, 100%);
  padding: 2rem;
  text-align: center;
}

.login-page {
  text-align: left;
}

.login-brand {
  text-align: center;
}

.login-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 200px;
  margin: 0 auto;
  object-fit: contain;
}

.login-app-name {
  margin: 0.85rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.login-page .app-select-trigger,
.login-page .app-select-menu,
.login-page .app-select-option {
  corner-shape: initial;
}

.login-or {
  margin: 1rem 0 0.65rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

.login-passkey-error {
  margin: 0.55rem 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

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

.passkey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.passkey-row:last-child {
  border-bottom: 0;
}

.privacy-header,
.callsheet-header,
.generator-header,
.notice-header {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

.callsheet-header h1,
.privacy-header h1,
.generator-header h1 {
  color: var(--text) !important;
  text-shadow: none;
}

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

.app-main th,
.app-main td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text);
  font-size: var(--text-table);
}

.app-main th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
}

.app-main tr:hover td {
  background: var(--nav-hover-bg);
}

/* Alte Lila/Blau-Palette der Legacy-Seiten auf Jobs-Tokens ziehen */
.app-main [style*="#667eea"],
.app-main [style*="#764ba2"],
.app-main [style*="#007bff"] {
  color: inherit;
}

.callsheet-container,
.notice-container,
.generator-container,
.contract-container {
  background: var(--card) !important;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
}

.section-header {
  background: var(--surface-2) !important;
  border-left: 4px solid var(--primary) !important;
  color: var(--text) !important;
}

.first-aider-section,
.search-section,
.certificate-field {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  border-radius: var(--r-md) !important;
  color: var(--text) !important;
}

@media (max-width: 960px) {
  .app-shell { flex-direction: column; }
  .app-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .app-nav { flex-direction: column; flex-wrap: nowrap; max-height: 42vh; }
  .app-sidebar-footer { margin-top: 0; }
  .stat-grid,
  .stats-grid,
  .grid-2,
  .grid-3,
  .form-row:not(.times-row),
  .form-row-3,
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .app-main { padding: 1.5rem 1rem 2rem; }
  .app-main:has(.prod-context) { padding-top: 1.25rem; }
  .prod-context {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  html.is-nav-collapsed .app-main:not(:has(.app-nav-toggle.is-in-header)) {
    padding-left: 2.75rem;
  }
  html.is-nav-collapsed .app-main:not(:has(.app-nav-toggle.is-in-header)) .prod-context {
    margin-left: -2.75rem;
    padding-left: 2.75rem;
  }
  .page-title { font-size: 1.75rem; }
}

.work-history-card {
  margin-bottom: 1.5rem;
}

.gi-section-hint {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
}

.modal-overlay:has(.crew-message-modal) {
  align-items: center;
  padding: 1rem;
}

.modal-overlay .modal-content {
  width: min(520px, 100%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  corner-shape: squircle;
  padding: 0;
}

.modal-overlay .modal-header,
.modal-overlay .modal-body {
  padding: 1rem 1.15rem;
}

.modal-overlay .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-overlay .modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-overlay .btn-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.catalog-pick-list {
  max-height: 18rem;
  overflow: auto;
  margin: 0.75rem 0 0;
}

.catalog-pick-item,
.day-pick-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  corner-shape: squircle;
  margin-bottom: 0.5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.catalog-pick-item:hover,
.day-pick-option:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

.day-pick-label {
  font-weight: 600;
}

.day-pick-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.day-pick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.caterer-new-fields {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pin-status {
  min-height: 1.1rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--success);
}

.set-pin-input,
.base-pin-input,
.parking-pin-input {
  width: 100%;
  margin-top: 0.4rem;
}

.day-info-row.is-nav .gcl-fn {
  color: var(--primary);
}

.day-crew-table tr.gcl-row.mail-read.meal-ordered {
  box-shadow: inset 3px 0 0 var(--success), inset -3px 0 0 var(--primary);
}

.day-crew-table tr.gcl-row.mail-read.meal-pending {
  box-shadow: inset 3px 0 0 var(--success), inset -3px 0 0 var(--warning, #c48a1a);
}

.meal-setup {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.meal-toggle,
.meal-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.dish-list {
  display: grid;
  gap: 0.75rem;
}

.dish-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}

.dish-row-head {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.dish-row .dish-name {
  width: 100%;
  min-width: 0;
}

.dish-remove {
  appearance: none;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-sm);
}

.dish-remove:hover {
  color: var(--danger, #c44);
}

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

.dish-add-row .input-field {
  flex: 1;
  min-width: 0;
}

.dish-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.dish-flag-kicker {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.dish-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}

.dish-flag:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
}

.dish-add-btn {
  justify-self: start;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
}

.meal-deadline-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
}

.meal-orders,
.meal-order-line {
  font-size: 0.85rem;
}

.meal-order-line + .meal-order-line {
  margin-top: 0.25rem;
}

.mail-notice {
  text-align: left;
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  background: #fff8e8;
  border: 1px solid #ead8a8;
  border-radius: 16px;
}

.mail-notice-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a1a;
}

.mail-notice-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
}

.meal-confirm {
  text-align: left;
  margin-top: 1.5rem;
}

.meal-confirm-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.meal-confirm-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.meal-choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.meal-choice.is-blocked {
  opacity: 0.45;
}

.meal-confirm-ok {
  color: var(--success);
  font-weight: 600;
}

.meal-confirm-error {
  color: var(--danger, #b42318);
  font-weight: 600;
}

.prod-identity {
  padding: 1.15rem 1.25rem 1.2rem;
  margin-bottom: 1rem;
}

.prod-identity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prod-identity-kicker {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.prod-identity-edit {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--text-dim);
  border-radius: 999px;
}

.prod-identity-edit:hover {
  color: var(--text);
  background: var(--surface-2);
}

.prod-identity-edit svg {
  width: 1.05rem;
  height: 1.05rem;
}

.prod-identity-name {
  margin: 0.2rem 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prod-identity-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.prod-workflow {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.prod-split {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.prod-split-nav {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.prod-split-nav .prod-board-card {
  padding: 0.8rem 0.9rem;
  gap: 0.5rem;
}

.prod-split-nav .prod-board-card h3 {
  font-size: 0.92rem;
}

.prod-split-nav .prod-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prod-split-nav .prod-mini-tile {
  flex: 1 1 4.2rem;
  min-width: 0;
  padding: 0.4rem 0.45rem;
}

.prod-split-nav .prod-mini-tile strong {
  font-size: 1.1rem;
}

.prod-split .scheduler {
  margin: 0;
  min-width: 0;
}

.prod-split .scheduler-cell {
  min-height: 3.55rem;
}

.prod-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prod-board-card {
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.prod-board-card h3 {
  margin: 0;
  font-size: 1rem;
}

.prod-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.55rem;
}

.prod-mini-tile {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  corner-shape: squircle;
  background: var(--surface-2);
}

.prod-mini-tile strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prod-mini-tile span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.prod-board-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.95rem;
}

.prod-board-stats strong {
  font-weight: 700;
}

@media (max-width: 900px) {
  .prod-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .prod-board {
    grid-template-columns: 1fr;
  }
}

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

.db-board-card {
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.db-board-head {
  color: inherit;
  text-decoration: none;
}

.db-board-head h3 {
  margin: 0;
  font-size: 1rem;
}

.db-board .prod-mini-tile {
  color: inherit;
  text-decoration: none;
}

.db-board .prod-mini-tile:hover {
  background: var(--nav-hover-bg);
}

.crew-section,
#clients,
#agencies,
#caterers {
  scroll-margin-top: 5rem;
}

@media (max-width: 720px) {
  .db-board {
    grid-template-columns: 1fr;
  }
}

.scheduler {
  --scheduler-pad-x: 1.25rem;
}

.scheduler-head {
  align-items: flex-start;
  padding-left: var(--scheduler-pad-x);
  padding-right: var(--scheduler-pad-x);
}

.scheduler-head .scheduler-hint {
  margin: 0.35rem 0 0;
  max-width: 34rem;
}

.scheduler-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

.scheduler-body {
  padding: 1rem var(--scheduler-pad-x) 1.25rem;
}

.scheduler-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.scheduler-weekdays,
.scheduler-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.scheduler-weekdays {
  margin: 0 0 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scheduler-weekdays span {
  text-align: left;
}

.scheduler-cell {
  position: relative;
  overflow: hidden;
  min-height: 4.6rem;
  padding: 0.35rem 0.3rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.2rem;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.scheduler-cell::before {
  content: attr(data-cal);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: var(--text-dim);
  opacity: 0.42;
  z-index: 0;
}

.scheduler-cell:not(.is-shoot):not(.is-off):not(.is-unplanned):not(.has-prod):not(.has-overlap) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.scheduler-cell:not(.is-shoot):not(.is-off):not(.is-unplanned):not(.has-prod):not(.has-overlap):hover,
.scheduler-cell:not(.is-shoot):not(.is-off):not(.is-unplanned):not(.has-prod):not(.has-overlap).is-paint {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-color: color-mix(in srgb, var(--border) 55%, transparent);
}

.scheduler-cell.is-shoot::before,
.scheduler-cell.is-off::before,
.scheduler-cell.is-unplanned::before {
  content: attr(data-mark);
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.scheduler-cell.is-shoot:hover::before,
.scheduler-cell.is-off:hover::before,
.scheduler-cell.is-unplanned:hover::before {
  content: attr(data-cal);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.scheduler-cell:hover,
.scheduler-cell.is-paint {
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
}

.scheduler-cell.is-outside {
  opacity: 0.45;
}

.scheduler-cell.is-today:not(.is-shoot):not(.is-off):not(.is-unplanned) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent);
}

.scheduler-cell.is-shoot {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  background: var(--success-dim);
}

.scheduler-cell.is-shoot::before {
  color: var(--success);
  opacity: 0.92;
}

.scheduler-cell.is-today.is-shoot {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--success) 55%, transparent);
}

.scheduler-cell.is-unplanned {
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
  background: var(--danger-dim);
}

.scheduler-cell.is-unplanned::before {
  color: var(--danger);
  opacity: 0.88;
}

.scheduler-cell.is-today.is-unplanned {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 50%, transparent);
}

.scheduler-cell.is-off {
  border-color: color-mix(in srgb, var(--text-dim) 28%, var(--border));
  background: color-mix(in srgb, var(--text-dim) 12%, var(--surface));
}

.scheduler-cell.is-off::before {
  color: var(--text-dim);
  opacity: 0.88;
}

.scheduler-cell.is-today.is-off {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-dim) 45%, transparent);
}

.scheduler-cell.is-done.is-shoot,
.scheduler-cell.is-done.is-unplanned,
.scheduler-cell.is-done.is-off {
  border-color: color-mix(in srgb, var(--text-dim) 18%, var(--border));
  background: color-mix(in srgb, var(--text-dim) 7%, var(--surface));
}

.scheduler-cell.is-done.is-shoot::before,
.scheduler-cell.is-done.is-unplanned::before,
.scheduler-cell.is-done.is-off::before {
  color: var(--text-dim);
  opacity: 0.42;
}

.scheduler-cell.is-shoot:hover,
.scheduler-cell.is-shoot.is-paint {
  background: color-mix(in srgb, var(--success) 22%, var(--surface));
}

.scheduler-cell.is-unplanned:hover,
.scheduler-cell.is-unplanned.is-paint {
  background: color-mix(in srgb, var(--danger) 18%, var(--surface));
}

.scheduler-cell.is-off:hover,
.scheduler-cell.is-off.is-paint,
.scheduler-cell.is-done.is-shoot:hover,
.scheduler-cell.is-done.is-shoot.is-paint,
.scheduler-cell.is-done.is-unplanned:hover,
.scheduler-cell.is-done.is-unplanned.is-paint {
  background: color-mix(in srgb, var(--text-dim) 18%, var(--surface));
}

.scheduler-cell-day,
.scheduler-cell-mark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.scheduler.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.scheduler-table-head,
.scheduler-table-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(10rem, 1.4fr) minmax(8.5rem, 1.3fr) minmax(4.4rem, 0.55fr) minmax(4.8rem, 0.6fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 1.25rem;
}

.scheduler-table-head {
  align-items: center;
}

.scheduler-table-head,
.live-table-head {
  color: var(--text-dim);
  font-size: var(--text-list-head);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
}

.scheduler-table-row {
  border-bottom: 1px solid var(--border);
}

.scheduler-table-chip {
  display: flex;
  align-items: center;
}

.scheduler-table-date {
  min-width: 0;
}

.scheduler-day-chip,
.scheduler-off-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.4rem;
  height: 1.7rem;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.scheduler-day-chip {
  color: var(--success);
  background: var(--success-dim);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

.scheduler-day-chip.is-unplanned {
  color: var(--danger);
  background: var(--danger-dim);
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
}

.scheduler-off-chip {
  color: var(--text-dim);
  background: color-mix(in srgb, var(--text-dim) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--text-dim) 28%, var(--border));
}

.scheduler-day-chip.is-done,
.scheduler-off-chip.is-done {
  color: var(--text-dim);
  background: color-mix(in srgb, var(--text-dim) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--text-dim) 18%, var(--border));
}

.scheduler-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.scheduler-daily-cell {
  align-items: flex-start;
}

.scheduler-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.scheduler-status.is-sent {
  color: var(--success);
}

.scheduler-status.is-created {
  color: var(--text);
}

.scheduler-status.is-changed {
  color: var(--danger);
}

.scheduler-status.is-create {
  color: var(--text-muted);
  font-weight: 650;
}

.scheduler-daily {
  min-width: 0;
}

.scheduler-daily summary {
  list-style: none;
}

.scheduler-daily summary::-webkit-details-marker {
  display: none;
}

.scheduler-daily summary::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.15rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.scheduler-daily[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.scheduler-daily-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.scheduler-daily-panel a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.scheduler-daily-panel a span:nth-child(2),
.scheduler-daily-panel a span:last-child {
  color: var(--text-dim);
  font-weight: 500;
}

.scheduler-daily-panel a:hover {
  color: var(--text);
}

.scheduler-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
}

.pdf-view {
  margin-top: 0.85rem;
}

.pdf-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pdf-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pdf-version {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
}

.pdf-version span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pdf-version.is-current {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.pdf-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pdf-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.scheduler-cell:disabled {
  opacity: 1;
  cursor: default;
}

@media (max-width: 720px) {
  .scheduler-cell {
    min-height: 3.6rem;
    padding: 0.3rem;
  }

  .scheduler-table-head,
  .scheduler-table-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.day-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0.7rem 0 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.day-view-tab {
  min-height: 1.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
}

.day-view-tab:hover {
  color: var(--text);
}

.day-view-tab.is-current {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.live-hint {
  margin: 0.85rem 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 42rem;
}

.live-trips {
  margin-bottom: 1.25rem;
}

.live-trip-run {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(6rem, 0.6fr) minmax(8rem, 1fr) minmax(10rem, 1.4fr) 5.5rem;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}

.live-trip-run:last-child {
  border-bottom: 0;
}

.live-trip-time {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.live-trip-arrive,
.live-trip-from,
.live-trip-people {
  color: var(--text-dim);
}

.live-trip-status {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-dim);
  text-align: right;
}

.live-trip-run.is-running .live-trip-status {
  color: var(--warning);
}

.live-trip-run.is-done {
  opacity: 0.72;
}

.live-hours {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.live-trip-line {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.live-section {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem 0.4rem;
}

.live-table-head,
.live-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.5fr) 6.2rem minmax(6.5rem, 0.8fr) minmax(9rem, 1fr) 4.5rem 5.5rem minmax(5.5rem, 0.7fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.1rem;
}

.report-table-head,
.report-row {
  grid-template-columns: minmax(10rem, 1.5fr) 6.2rem 6.2rem 6.2rem 4.5rem 5.5rem;
}

.live-totals {
  margin: -0.35rem 0 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.live-hours,
.live-ot {
  font-variant-numeric: tabular-nums;
}

.deal-ot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.deal-ot-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 3.6rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.live-table-head {
  color: var(--text-dim);
  font-size: var(--text-list-head);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
}

.live-row {
  border-bottom: 1px solid var(--border);
}

.live-row.is-done {
  opacity: 0.72;
}

.live-person {
  min-width: 0;
}

.live-plan {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.live-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.live-ampel {
  font-size: 0.75rem;
  font-weight: 650;
}

.ampel-green { color: var(--success); }
.ampel-yellow { color: var(--warning); }
.ampel-red { color: var(--danger); }
.ampel-done { color: var(--text-dim); }

.mail-select-all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: var(--mail-col-w, 2.25rem);
  min-width: var(--mail-col-w, 2.25rem);
  margin: 0;
  padding: 0.1rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.mail-select-all input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mail-select-all-label {
  display: block;
}

.mail-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  cursor: pointer;
}

.mail-check input,
.col-mail .mail-receive-input,
.col-mail .mail-dept-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

th.col-mail {
  position: relative;
}

.mail-check-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-dim);
  opacity: 0.72;
}

.mail-check-icon svg {
  width: 100%;
  height: 100%;
}

.mail-check-dept,
th.col-mail {
  cursor: pointer;
}

.mail-check-dept.is-all .mail-check-icon,
.mail-select-all.is-all .mail-check-icon,
th.col-mail.is-all .mail-check-icon {
  color: var(--success);
  opacity: 1;
}

.mail-check-dept.is-none .mail-check-icon,
.mail-select-all.is-none .mail-check-icon,
th.col-mail.is-none .mail-check-icon {
  color: var(--danger);
  opacity: 1;
}

.mail-check-dept.is-mixed .mail-check-icon,
.mail-select-all.is-mixed .mail-check-icon,
th.col-mail.is-mixed .mail-check-icon {
  color: var(--text-dim);
  opacity: 0.85;
}

.col-mail .mail-check {
  width: 100%;
}

td.col-mail {
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.mail-dot {
  display: none;
  position: absolute;
  top: 0.18rem;
  right: 0.12rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--surface);
}

.mail-dot.is-pending,
.mail-dot.is-stale,
.mail-dot.is-confirmed {
  display: block;
}

.mail-dot.is-pending { background: var(--danger); }
.mail-dot.is-stale { background: #d4a017; }
.mail-dot.is-confirmed { background: var(--success); }

.meal-mark {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  max-width: 7.2rem;
  color: var(--text-muted);
}
.meal-mark.is-on { color: var(--primary); }
.meal-mark.is-missing { color: var(--warning, #c48a1a); }

td.col-mail.mail-yes::before,
td.col-mail.mail-no::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

td.col-mail.mail-yes::before {
  content: "✓";
  color: var(--success);
}

td.col-mail.mail-no::before {
  content: "✗";
  color: var(--danger);
}

td.col-mail.mail-yes:hover {
  background: var(--success-dim);
}

td.col-mail.mail-no:hover {
  background: var(--danger-dim);
}

.mail-send-modal {
  max-width: 28rem;
}

.mail-send-modal .modal-body {
  padding: 1.1rem 1.25rem 0.4rem;
}

.mail-send-modal .modal-body p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mail-send-modal .mail-send-except {
  color: var(--text-muted);
}

.mail-send-modal .mail-send-except span:first-child {
  font-weight: 600;
  color: var(--text-dim);
}

.mail-send-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.15rem;
}

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

@media (max-width: 720px) {
  .live-table-head,
  .live-row,
  .report-table-head,
  .report-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .live-table-head { display: none; }

  .live-trip-run {
    grid-template-columns: 1fr 1fr;
  }
}

.day-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, max-height 0.36s ease, transform 0.28s ease, margin 0.28s ease, border-color 0.28s ease;
}

.day-reveal.is-visible {
  max-height: 48rem;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#weather-section.day-reveal {
  margin-bottom: 0;
  border-color: transparent;
}

#weather-section.day-reveal.is-visible {
  margin-bottom: 1.5rem;
  border-color: var(--border);
}

#safety-from-location.day-reveal.is-visible {
  margin-top: 0;
  max-height: 64rem;
}

.gi-n {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: var(--primary);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  pointer-events: none;
}

.gi-n::before {
  content: attr(data-n);
  font-size: var(--text-ui);
  font-weight: 600;
  line-height: 1;
}

.day-picked.has-bar,
.day-loc-card.has-bar,
.hotel-info-row.has-bar,
.catering-vendor.has-bar {
  position: relative;
  padding-left: 48px;
}

.day-live-pick {
  position: relative;
  width: 100%;
}

.day-info-body .day-live-pick {
  max-width: 28rem;
}

.day-live-search {
  width: 100%;
}

.day-live-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 24;
  max-height: 16rem;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.day-live-pick.is-open .day-live-results {
  display: grid;
  gap: 0.35rem;
}

.meal-setup.is-on {
  display: grid;
}

.meal-setup:not(.is-on) {
  display: none;
}

.lunch-meal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.day-create-box {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}

.day-create-box[hidden] {
  display: none;
}

.day-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

#travel-table .input-field {
  min-width: 5.5rem;
  width: 100%;
}

#travel-table .travel-table-place {
  min-width: 4.5rem;
  text-transform: uppercase;
}

.day-live-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
}

.day-live-item:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

.day-live-item.is-picked {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
}

.day-live-check {
  width: 1.1rem;
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
}

.day-live-label {
  font-weight: 600;
}

.day-live-detail {
  margin-top: 0.12rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.day-weather-section .day-weather-card {
  padding: 0 var(--block-pad-x, 1.25rem) 1rem;
}

.hospital-alternative-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

#doctor-manual {
  margin-top: 0.35rem;
}

.list-row[data-prod-id] .list-row-icon {
  background: color-mix(in srgb, var(--prod-color) 18%, var(--surface-2));
  color: var(--prod-color);
}

.overview-cal {
  margin-top: 1.5rem;
}

.overview-cal .scheduler-cell {
  cursor: default;
}

.overview-cal .scheduler-cell.has-prod {
  border-color: color-mix(in srgb, var(--prod-color) 42%, var(--border));
  background: color-mix(in srgb, var(--prod-color) 28%, var(--surface));
}

.overview-cal .scheduler-cell.has-prod::before {
  color: var(--prod-color);
  opacity: 0.7;
}

.overview-cal .scheduler-cell.has-prod:hover {
  background: color-mix(in srgb, var(--prod-color) 38%, var(--surface));
}

.overview-cal .scheduler-cell.has-overlap {
  border-color: color-mix(in srgb, var(--prod-color-a) 36%, var(--prod-color-b));
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--prod-color-a) 34%, var(--surface)) 0 0.55rem,
    color-mix(in srgb, var(--prod-color-b) 34%, var(--surface)) 0.55rem 1.1rem
  );
}

.overview-cal .scheduler-cell.has-overlap::before {
  opacity: 0.7;
}

.overview-cal .scheduler-cell.has-overlap:hover {
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--prod-color-a) 46%, var(--surface)) 0 0.55rem,
    color-mix(in srgb, var(--prod-color-b) 46%, var(--surface)) 0.55rem 1.1rem
  );
}

[data-hint] {
  position: relative;
  cursor: help;
}

[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: 14rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--text) 18%, transparent);
}

.board-page { display: grid; gap: 1.25rem; }
.board-plan {
  --board-bar-h: 2.75rem;
  --board-inspect-w: 18rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 10rem);
  border: 1px solid var(--border);
  background: var(--card);
}
.board-plan.is-inspecting {
  grid-template-columns: auto minmax(0, 1fr) var(--board-inspect-w);
}
.board-rail {
  position: relative;
  z-index: 9;
  width: var(--board-rail-w, 12rem);
  border-right: 1px solid var(--border);
  min-height: 100%;
  background: var(--bg);
  min-width: 0;
  overflow: visible;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease,
              border-color 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.board-plan.is-rail-off .board-rail {
  width: 0;
  opacity: 0;
  border-right-width: 0;
  overflow: hidden;
  pointer-events: none;
}
.board-rail-head,
.board-stage-bar,
.board-inspector > h3:first-child {
  box-sizing: border-box;
  height: var(--board-bar-h, 2.75rem);
  min-height: var(--board-bar-h, 2.75rem);
  max-height: var(--board-bar-h, 2.75rem);
  border-bottom: 1px solid var(--border);
}
.board-rail-head {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible;
}
.board-rail-toggle {
  position: absolute;
  top: calc((var(--board-bar-h, 2.75rem) - 2rem) / 2);
  right: -1rem;
  z-index: 12;
}
.board-rail-toggle .nav-icon-show,
.board-inspect-toggle .nav-icon-show { display: none; }
.board-plan.is-rail-off .board-rail-toggle,
.board-stage-bar .board-rail-toggle {
  position: relative;
  top: auto;
  right: auto;
}
.board-plan.is-rail-off .board-rail-toggle .nav-icon-hide,
.board-stage-bar .board-rail-toggle .nav-icon-hide { display: none; }
.board-plan.is-rail-off .board-rail-toggle .nav-icon-show,
.board-stage-bar .board-rail-toggle .nav-icon-show { display: block; }
.board-inspect-toggle {
  position: absolute;
  top: calc((var(--board-bar-h, 2.75rem) - 2rem) / 2);
  left: -1rem;
  z-index: 12;
}
.board-plan.is-inspect-off .board-inspect-toggle,
.board-stage-bar .board-inspect-toggle {
  position: relative;
  top: auto;
  left: auto;
}
.board-plan.is-inspect-off .board-inspect-toggle .nav-icon-hide,
.board-stage-bar .board-inspect-toggle .nav-icon-hide { display: none; }
.board-plan.is-inspect-off .board-inspect-toggle .nav-icon-show,
.board-stage-bar .board-inspect-toggle .nav-icon-show { display: block; }
.board-rail-list { list-style: none; margin: 0; padding: 0; }
.board-rail-item {
  display: grid;
  grid-template-columns: 1.1rem 1.15rem 2.6rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.48rem 0.65rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.board-rail-item:hover { background: var(--surface-2); }
.board-rail-item.is-on { background: var(--primary-dim); }
.board-rail-item.is-drop {
  background: var(--primary-dim);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.board-plan-shot.is-dragging { opacity: 0.55; }
.board-rail-no { font-variant-numeric: tabular-nums; font-size: var(--text-table); }
.board-rail-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-table);
  font-weight: 650;
}
.board-rail-create {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
.board-rail-day {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.board-rail-day:hover { background: var(--surface-2); }
.board-rail-day.is-on { background: var(--primary-dim); }
.board-rail-day strong { font-size: var(--text-table); }
.board-stage { min-width: 0; padding-bottom: 1.5rem; position: relative; }
.board-tools { margin-top: 1.25rem; }
.board-tool-hint { margin: 0.45rem 0.75rem 0.35rem; }
.board-create { padding: 1.15rem 1.25rem; display: grid; gap: 0.85rem; }
.board-create .btn-primary { justify-self: start; }
.board-scene-list { display: grid; gap: 0; }
.board-scene { padding: 0 0 1rem; display: grid; gap: 0.75rem; overflow: visible; }
.board-scene.is-stage { padding-bottom: 0.5rem; }
.board-scene > :not(.board-scene-head):not(.board-stage-head) { padding-left: 1.15rem; padding-right: 1.15rem; }
.board-scene.is-dragging,
.board-block.is-dragging,
.board-strip-row.is-dragging { opacity: 0.4; transform: scale(0.99); }
.board-scene-head {
  display: flex; gap: 0.6rem; align-items: center;
  position: sticky;
  top: var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem));
  z-index: 4;
  margin: 0;
  padding: 0.75rem 1.15rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.board-scene-check {
  width: 1.35rem; height: 1.35rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: transparent;
  font-size: 0.75rem; font-weight: 800;
}
.board-scene-check.is-on {
  color: var(--bg);
  background: var(--success);
  border-color: var(--success);
}
.board-open-badge { background: var(--danger-dim); color: var(--danger); }
.board-shot-edit.is-open {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--danger) 7%, var(--card));
}
.board-shot-open { font-size: 0.75rem; font-weight: 700; color: var(--danger); }
.board-drop-line {
  height: 3px;
  margin: 0.15rem 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--primary);
  list-style: none;
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.board-strip-row { transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease; }
.board-scene-no { width: 5.5rem; flex-shrink: 0; }
.board-scene-name { flex: 1; }
.board-thumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.board-thumb { position: relative; margin: 0; width: 7.5rem; height: 5.5rem; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.board-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-thumb-del {
  position: absolute; top: 0.2rem; right: 0.2rem;
  width: 1.4rem; height: 1.4rem; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text); cursor: pointer;
}
.board-drop {
  position: relative;
  min-width: 12rem; min-height: 5.5rem; display: grid; place-items: center;
  padding: 0.6rem; border: 1px dashed var(--border); border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 0.8rem; text-align: center; cursor: pointer;
}
.board-inspector .board-drop {
  min-width: 0;
  width: 100%;
}
.board-drop.is-over { border-color: var(--primary); background: var(--primary-dim); }
.board-drop-preview {
  width: 100%;
  height: 6.2rem;
  object-fit: cover;
  border-radius: calc(var(--r-sm) - 2px);
  display: block;
}
.board-drop:has(.board-drop-preview) {
  padding: 0.25rem;
  min-height: 0;
}
.board-drop:has(.board-drop-preview) > span {
  position: absolute;
  inset: auto 0.35rem 0.35rem;
  padding: 0.15rem 0.35rem;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  font-size: 0.68rem;
}
.board-scene-days { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.board-editors { padding-bottom: 1rem; }
.board-editor-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.25rem 1rem; }
.board-editor-row { display: flex; gap: 0.6rem; align-items: center; }
.board-editor-row .meta,
.board-editor-pill .meta { margin-left: 0.15rem; font-weight: 500; color: inherit; opacity: 0.7; }
.board-editor-pill { padding: 0.4rem 0.8rem; }
.board-day .board-note { margin: 0 0 0.85rem; color: var(--text-muted); }
.board-livebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.board-livebar-lg { margin: 0 0 1.25rem; }
.board-next-box { padding: 0.15rem 0; }
.board-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.board-block {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}
.board-block.is-current { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-dim); }
.board-block.is-done { opacity: 0.62; }
.board-block.is-lunch { background: var(--surface-2); }
.board-block-cover { width: 4.5rem; height: 3.2rem; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
.board-block-main { flex: 1; min-width: 0; }
.board-block-title { font-weight: 700; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.board-day .gcl-section-head .crew-section-header { flex: 0 1 auto; }
.board-block-clock { font-size: var(--text-table); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.board-mins { width: 4.5rem; }
.board-block-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.board-insert-hint { margin: 0 0 0.45rem; }
.board-day .board-strip-row[data-id] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.board-strip-row.is-insert-after {
  box-shadow: inset 0 -3px 0 var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.board-strip-row.is-insert-after::after {
  content: 'Neue Zeile kommt hierhin';
  grid-column: 1 / -1;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.15rem 0 0;
}
.board-note-title {
  min-width: 12rem;
  flex: 1;
  font-weight: 700;
}
.board-strip-row.is-note .board-block-title { width: 100%; }
.board-add-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.9rem; }
.board-add-row .input-field { min-width: 14rem; }
.board-delta {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.board-delta.is-behind { background: var(--danger-dim); color: var(--danger); }
.board-delta.is-ahead { background: var(--success-dim); color: var(--success); }
.board-delta.is-even { background: var(--surface-2); color: var(--text-muted); }
.board-live-shell { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.15rem 3rem; }
.board-live-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.board-live-body { margin: 0; background: var(--bg); }
.board-live-page { max-width: 40rem; margin: 0 auto; padding: 0 0 5rem; }
.board-live-sticky {
  position: sticky; top: 0; z-index: 5;
  padding: 0.85rem 1rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.board-anchor-row {
  display: grid;
  gap: 0;
  margin: 0 -1rem 0.55rem;
}
.board-anchor-row .board-pace-banner {
  margin: 0;
  min-height: 2.15rem;
}
.board-tab[data-panel="shotlist"] .board-anchor-row {
  position: sticky;
  top: 0;
  z-index: 4;
}
.board-unit-tabs {
  display: flex; gap: 0.35rem;
  margin: 0.55rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
}
.board-unit-tabs[hidden] { display: none; }
.board-unit-tabs button {
  flex: 1; border: 0; background: none; padding: 0.55rem 0.4rem;
  color: var(--text-muted); font-weight: 700; cursor: pointer;
}
.board-unit-tabs button.is-on { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.board-day .gcl-section-head .board-unit-tabs {
  flex: 1 1 12rem;
  max-width: 22rem;
  margin: 0;
  border-bottom: 0;
  position: relative;
  z-index: 22;
}
.board-day .gcl-section-head .board-unit-tabs button {
  min-height: 2.4rem;
  border-radius: var(--r-sm);
}
.board-unit-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.85rem; }
.board-unit-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.board-unit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 650;
}
.board-unit-tools [data-add-unit],
.board-unit-tools [data-remove-unit] {
  min-width: 2rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.board-strip-row.is-parallel {
  margin-left: 1.15rem;
  padding-left: 0.35rem;
  opacity: 0.92;
}
.board-block-clock.is-parallel-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.board-block-cover.is-empty.is-ghost { background: transparent; }
.board-parallel-mark {
  display: grid;
  grid-template-columns: 8px 12px;
  align-items: start;
  gap: 0.15rem;
  width: 1.4rem;
  flex-shrink: 0;
}
.board-parallel-sq {
  width: 8px; height: 8px;
  background: var(--text);
  display: block;
}
.board-parallel-arm {
  width: 10px; height: 10px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  display: block;
  margin-top: 1px;
}
.board-parallel-badge { font-size: 0.68rem; letter-spacing: 0.02em; }
.board-live-tabs {
  position: relative;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.board-live-ink {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 25%;
  background: var(--primary);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.board-live-tabs button {
  flex: 1 1 25%;
  width: 25%;
  border: 0;
  background: none;
  padding: 0.7rem 0.2rem;
  color: var(--text-muted);
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.board-live-tabs button.is-on { color: var(--text); }
.board-tab { display: none; padding: 1rem; }
.board-tab.is-on { display: block; }
.board-sheet-card,
[data-board-sheet] { display: grid; gap: 0; }
.board-sheet-clocks { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; padding: 0.75rem 0.15rem; }
.board-sheet-clocks-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 0.85rem 0.15rem 1rem; }
.board-sheet-clocks strong,
.board-sheet-name strong,
.board-block-title,
.board-banner-title { font-size: var(--text-content); font-weight: 750; }
.board-sheet-talent { padding: 0.7rem 0.15rem; border-top: 1px solid var(--border); }
.board-sheet-talent.is-self {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  margin: 0 -0.4rem;
  padding: 0.75rem 0.4rem;
  border-radius: var(--r-sm);
}
.board-filter-row { display: flex; gap: 0.35rem; padding: 0.45rem 0 0.15rem; }
.board-filter-row button {
  flex: 1; border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 0.4rem 0.6rem; font-weight: 700; cursor: pointer;
  color: var(--text-muted);
}
.board-filter-row button.is-on { color: var(--text); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--card)); }
.is-focus-clock {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 0.35rem 0.45rem;
}
.is-focus-clock .board-delta { transform: scale(1.15); }
.board-jump {
  position: sticky; top: 8.5rem; z-index: 4; margin: 0 0 0.6rem auto;
  display: block; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; padding: 0.35rem 0.75rem; font-weight: 700;
}
.board-strip, .board-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.board-banner {
  display: flex; gap: 0.7rem; align-items: baseline;
  position: sticky;
  top: 8.15rem;
  z-index: 3;
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.55rem 0.55rem;
  background: #111;
  color: #fff;
  border-bottom: 0;
}
.board-banner .meta,
.board-banner .badge { color: #fff; border-color: color-mix(in srgb, #fff 35%, transparent); }
.board-day .board-banner { top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + 3.4rem); }
.board-banner-title { font-weight: 800; letter-spacing: -0.03em; }
.board-strip-row {
  display: grid;
  grid-template-columns: 1rem 0.28rem 3.2rem 3rem 1fr auto;
  gap: 0.5rem; align-items: start;
  padding: 0.62rem 0.35rem;
  border-top: 1px solid var(--border);
}
.board-strip-row.is-current { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.board-strip-row.is-done { opacity: 0.55; }
.board-strip-row.is-skipped { opacity: 0.45; text-decoration: line-through; }
.board-strip-row.is-dragging { opacity: 0.4; }
.board-strip-row.is-mine, .board-banner.is-mine {
  background: color-mix(in srgb, var(--primary) 9%, transparent);
}
.board-live-page[data-filterable="1"][data-filter="all"] .board-strip-row:not(.is-mine),
.board-live-page[data-filterable="1"][data-filter="all"] .board-banner:not(.is-mine) {
  opacity: 0.55;
}
.board-color { display: block; width: 0.28rem; min-height: 2.6rem; border-radius: 99px; }
.board-color.is-none { background: transparent; }
.board-block-cover.is-empty { background: var(--surface-2); border-radius: var(--r-xs); }
.board-shot-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.board-strip-actions { display: flex; flex-direction: column; gap: 0.25rem; }
.board-scene-meta, .board-shot-edit, .board-kit-add { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.board-shot-edit { padding: 0.55rem 0; border-top: 1px dashed var(--border); }
.board-shot-edit .input-field { min-width: 5.5rem; }
.board-fps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.board-fps-custom { width: 4.4rem; min-width: 4.4rem !important; }
.board-shot-edit .choice-pills { align-items: center; }
.board-scene-meta .choice-pills { margin-top: 0.15rem; }

.board-list-head,
.board-stage-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #111;
  color: #fff;
  font-size: var(--text-list-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
}
[data-theme="dark"] .board-list-head,
[data-theme="dark"] .board-stage-head {
  background: #fff;
  color: #111;
}
.board-stage-head .input-field {
  background: transparent;
  border-color: transparent;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-content);
  padding-left: 0.2rem;
}
.board-stage-head .board-scene-check {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.board-stage-head .btn-ghost { color: inherit; }

.board-shot-lines { list-style: none; margin: 0; padding: 0; }
.board-shot-line { border-top: 1px solid var(--border); }
.board-shot-row {
  display: grid;
  gap: 0.35rem 0.45rem;
  padding: 0.55rem 0;
  min-height: 3rem;
  cursor: pointer;
}
.board-shot-main {
  display: grid;
  grid-template-columns: 1.1rem 3.2rem 3.4rem minmax(0, 1.1fr) minmax(0, 0.8fr) 2.2rem;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}
.board-shot-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding-left: calc(1.1rem + 3.2rem + 0.9rem);
  min-width: 0;
}
.board-shot-cover,
.board-block-cover-btn {
  display: block;
  width: 3.2rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.board-shot-cover img,
.board-block-cover-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-shot-cover.is-empty { background: var(--surface-2); }
.board-day-pills { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; }
.board-day-pills .choice-pill { min-height: 1.85rem; padding: 0.25rem 0.55rem; font-size: 0.72rem; }
.board-day-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.2rem 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.board-day-group-label {
  min-width: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}
.board-day-group .choice-pill { border-color: transparent; background: transparent; }
.board-take-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.board-take {
  width: 1.7rem; height: 1.7rem; padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.board-take.is-add,
.board-take.is-del { color: var(--text-muted); font-weight: 600; }
.board-take.is-circle {
  border-color: var(--text);
  border-width: 2px;
  background: var(--text);
  color: var(--bg);
}
.board-take-flag.is-circle { font-weight: 750; }
.board-shot-note { width: 100%; min-width: 12rem; }
.board-drop-shot { min-width: 7rem; min-height: 2.4rem; }
.board-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 9, 12, 0.9);
  overflow: hidden;
  touch-action: none;
}
.board-lightbox.is-on { display: grid; }
.board-lightbox img {
  max-width: min(96vw, 72rem);
  max-height: 92vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.board-lightbox.is-zoomed img {
  cursor: zoom-out;
  transition: none;
}
.board-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.board-story-zoom {
  position: fixed;
  z-index: 240;
  display: none;
  pointer-events: none;
  padding: 0.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}
.board-story-zoom.is-on { display: block; }
.board-story-zoom img {
  display: block;
  max-width: min(22rem, 70vw);
  max-height: min(16rem, 46vh);
  width: auto;
  height: auto;
  object-fit: contain;
}
.board-shot-cover,
.board-block-cover-btn,
.board-thumb button { cursor: zoom-in; }
.board-thumb > button:not(.board-thumb-del) { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.board-thumb-del { z-index: 1; }
.board-shot-no,
.board-shot-name,
.board-shot-mins { font-size: var(--text-content); font-weight: 700; }
.board-shot-kit,
.board-shot-mins { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.board-shot-line .board-shot-edit { display: none; }
.board-shot-line.is-open-edit .board-shot-edit { display: flex; }
.board-shot-line.is-open { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.board-shot-line.is-linked .board-shot-no,
.board-plan-shot.is-linked .board-col-shotno,
.board-day-row.is-linked {
  box-shadow: inset 1px 0 0 var(--primary);
}
.board-shot-line.is-linked .board-shot-no { padding-left: 0.35rem; }

.dnd-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  color: var(--text-dim);
  cursor: grab;
  user-select: none;
  font-size: 0.72rem;
  letter-spacing: -0.08em;
}
.dnd-handle:active { cursor: grabbing; }
.dnd-handle.is-off { visibility: hidden; pointer-events: none; }
.dnd-ghost { opacity: 0.38; background: var(--surface-2); }
.dnd-chosen { background: var(--primary-dim); }
.dnd-fallback {
  opacity: 0.95;
  background: var(--card);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-lift);
  border-radius: var(--r-sm);
}
.board-day-row.dnd-fallback {
  display: grid;
  grid-template-columns: 0.9rem 3.4rem 2.6rem minmax(8rem, 1fr) 2.8rem;
  align-items: center;
  box-sizing: border-box;
  width: var(--board-dnd-w, 42rem);
  min-height: 2.7rem;
  margin: 0;
  font-size: 0.68rem;
  pointer-events: none;
}
.board-day-row.dnd-fallback.is-lunch,
.board-day-row.dnd-fallback.is-transpo,
.board-day-row.dnd-fallback.is-move,
.board-day-row.dnd-fallback.is-wrap {
  background: #111;
  color: #fff;
}
.board-day-row.dnd-fallback .board-day-insert-hit,
.board-day-row.dnd-fallback .board-day-del {
  display: none;
}
.sortable-ghost,
.crew-item.sortable-ghost { opacity: 0.38; background: var(--surface-2); }
.is-linked-peer { outline: 1px dashed var(--primary); outline-offset: -1px; }

.board-live-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.board-day-nav {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
}
.board-day-nav[hidden] { display: none; }
.board-editor-list { padding: 0.65rem 0.75rem 1rem; }

.board-mode-tabs {
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
}
.board-mode-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 0;
}
.board-mode-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: var(--primary);
  transform: translateX(0);
  transition: transform 0.22s ease;
  pointer-events: none;
}
.board-mode-tabs[data-mode="days"] .board-mode-ink {
  transform: translateX(100%);
}
.board-mode-tabs button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-col-head);
  font-weight: 650;
  line-height: 1.2;
  padding: 0 0.45rem;
  height: 100%;
  cursor: pointer;
}
.board-mode-tabs button.is-on {
  color: var(--text);
}
.board-plan[data-board-ui="v2"] .board-rail-item {
  grid-template-columns: 1.1rem 2rem minmax(0, 1fr);
}
.board-plan[data-board-ui="v2"] .board-rail-no {
  font-weight: 700;
}
.board-stage-bar {
  display: grid;
  grid-template-columns: minmax(2.4rem, 1fr) auto minmax(2.4rem, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.7rem;
  position: sticky;
  top: var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem));
  z-index: 8;
  overflow: visible;
  background: var(--card);
}
.board-stage-bar:has(.board-rail-toggle) {
  padding-left: 0.45rem;
}
.board-stage-bar:has(.board-inspect-toggle) {
  padding-right: 0.45rem;
}
.board-plan.is-inspecting:not(.is-inspect-off) .board-stage-bar {
  padding-right: 1.6rem;
}
.board-stage-bar .board-rail-toggle {
  grid-column: 1;
  justify-self: start;
}
.board-stage-bar h2,
.board-stage-title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-size: var(--text-ui);
  font-weight: 650;
  color: inherit;
  line-height: 1.2;
  text-align: center;
  max-width: min(28rem, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-stage-bar > .board-stage-tools,
.board-stage-bar > .btn-primary {
  grid-column: 3;
  justify-self: end;
}
.board-stage-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.board-table-wrap {
  overflow: auto;
  min-width: 0;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.board-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-table);
}
.board-table { display: table; }
.board-table-scenes { min-width: 0; }
.board-table.board-table-shots {
  table-layout: auto;
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}
.board-table thead { display: table-header-group; }
.board-table tbody { display: table-row-group; }
.board-table tr,
.board-table .board-plan-scene,
.board-table .board-plan-shot {
  display: table-row;
  cursor: pointer;
}
.board-table th,
.board-table td {
  display: table-cell;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-table th { font-size: var(--text-col-head); }
.board-table td { font-size: var(--text-table); }
.board-table tr { cursor: pointer; }
.board-table tr.is-on { background: var(--primary-dim); }
.board-table-shots tr.is-on > *,
.board-table-shots tr.is-on .is-sticky {
  background: var(--primary-dim);
}
.board-table .input-field,
.board-table select.input-field,
.board-table .app-select-trigger {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 2rem;
  height: 2rem;
  padding: 0.28rem 0.4rem;
  font-size: var(--text-table);
}
.board-table .app-select-trigger { padding-right: 0.45rem; }
.board-col-handle { width: 2rem; }
.board-col-scene { width: 3.1rem; }
.board-col-name { width: 16%; }
.board-col-desc,
.board-col-desc td,
td.board-col-desc,
th.board-col-desc {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-col-page { width: 3.2rem; }
.board-col-count {
  width: 2.4rem;
  min-width: 2.4rem;
  max-width: 2.4rem;
}
.board-table-scenes .board-col-count {
  width: 2.4rem;
  min-width: 0;
  max-width: 2.4rem;
}
.board-table-scenes .board-col-desc {
  width: auto;
  min-width: 0;
}
.board-col-cast { width: 5rem; }
.board-col-shotno,
.board-col-prep { width: 4.4rem; min-width: 4.4rem; }
.board-table th.board-col-page,
.board-table td.board-col-page,
.board-table th.board-col-count,
.board-table td.board-col-count,
.board-table th.board-col-shotno,
.board-table td.board-col-shotno,
.board-table th.board-col-prep,
.board-table td.board-col-prep,
.board-table th.board-col-setup,
.board-table td.board-col-setup,
.board-table th.board-col-cam,
.board-table td.board-col-cam,
.board-table th.board-col-size,
.board-table td.board-col-size,
.board-table th.board-col-lens,
.board-table td.board-col-lens,
.board-table th.board-col-cast,
.board-table td.board-col-cast,
.board-table th.board-col-est,
.board-table td.board-col-est,
.board-table th.board-col-mark,
.board-table td.board-col-mark,
.board-table th.board-col-circle,
.board-table td.board-col-circle,
.board-table th.board-col-story,
.board-table td.board-col-story,
.board-table th.board-col-gear {
  text-align: center;
}
.board-table td.board-col-gear {
  text-align: left;
}
.board-col-setup,
.board-col-cam { width: 3.2rem; min-width: 3.2rem; }
.board-col-mark,
.board-col-done { width: 2.8rem; min-width: 2.8rem; max-width: 3rem; }
.board-col-circle {
  width: 2.4rem;
  min-width: 2.4rem;
  max-width: 2.4rem;
}
.board-col-tip {
  position: relative;
  cursor: help;
}
.board-col-tip-pop {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.3rem);
  transform: translateX(-50%);
  z-index: 8;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.board-col-tip:hover .board-col-tip-pop,
.board-col-tip:focus .board-col-tip-pop,
.board-col-tip:focus-within .board-col-tip-pop {
  display: block;
}
.board-col-size { width: 4.2rem; min-width: 4.2rem; }
.board-col-gear { width: 8.5rem; min-width: 8.5rem; }
.board-col-lens { width: 6.5rem; min-width: 6.5rem; }
.board-col-est { width: 3.5rem; min-width: 3.5rem; }
.board-col-cast { min-width: 5rem; }
.board-col-nickname { width: 8rem; min-width: 7rem; }
.board-col-desc { width: 18rem; min-width: 16rem; }
.board-col-story { width: 8rem; min-width: 8rem; }
.board-col-color {
  width: 0.55rem;
  min-width: 0.55rem;
  padding: 0 !important;
  position: relative;
}
td.board-col-color button.board-color-swatch {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 0 !important;
  corner-shape: initial;
  background: var(--border);
  cursor: pointer;
}
td.board-col-color button.board-color-swatch.has-color {
  background: repeating-linear-gradient(
    -45deg,
    var(--swatch) 0 0.55rem,
    #fff 0.55rem 1.1rem
  );
}
.board-dot-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.board-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}
.board-dot.is-on { border-color: var(--text); }
.board-icon-btn {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.board-icon-btn.is-on {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
}
.board-icon-btn svg { width: 0.95rem; height: 0.95rem; display: block; }
.board-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}
.board-shot-no-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
}
.board-table .board-cell-value,
.board-table .board-shot-no-btn,
.board-table .board-cell-edit,
.board-table .board-color-swatch,
.board-table .board-cell-stack,
.board-table .board-pick,
.board-inspector .board-pick,
.board-stage-title {
  border-radius: 0 !important;
  corner-shape: initial !important;
}
.board-cell-value {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-col-shotno .board-shot-no-btn,
.board-col-shotno .input-field,
.board-col-prep .input-field,
.board-col-est .input-field,
.board-col-setup .board-cell-value,
.board-col-cam .board-cell-value,
.board-col-size .board-cell-value,
.board-col-lens .board-cell-value,
.board-col-cast .board-cell-value,
.board-col-prep .board-cell-value,
.board-col-est .board-cell-value,
.board-col-mark {
  text-align: center;
  width: 100%;
}
.board-table-shots th.board-col-size,
.board-table-shots td.board-col-size,
.board-table-shots th.board-col-gear,
.board-table-shots td.board-col-gear,
.board-table-shots th.board-col-lens,
.board-table-shots td.board-col-lens {
  overflow: visible;
  text-overflow: clip;
}
.board-col-gear .board-cell-value,
.board-col-gear .board-cell-stack {
  text-align: left;
  align-items: flex-start;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.board-col-mark svg { display: block; margin: 0 auto; }
.board-table .board-cell-value,
.board-table .board-shot-no-btn,
.board-inspector .board-pick {
  font-size: var(--text-table);
}
.board-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06rem;
  white-space: normal;
  line-height: 1.2;
}
.board-col-desc .board-cell-value {
  text-align: left;
  white-space: pre-wrap;
  overflow: hidden;
  display: block;
}
.board-col-nickname .board-cell-value { text-align: left; }
.board-cell-edit {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  padding: 0;
  border-radius: 0;
  corner-shape: initial;
}
.board-cell-edit.is-multi {
  display: block;
  resize: none;
  min-height: 2.6rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow: hidden;
}
.board-pick-menu {
  display: flex;
  flex-direction: column;
  min-width: 9.5rem;
  width: max-content;
  max-width: 14rem;
  min-height: 9.5rem;
  max-height: 16rem;
  padding: 0.2rem 0;
  overflow: hidden;
}
.board-pick-menu [data-kit-list] {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.board-pick-menu .board-vis-item,
.board-pick-menu .board-kit-add,
.board-pick-menu .board-kit-add-input,
.board-pick-menu .board-menu-x {
  border-radius: 0 !important;
  corner-shape: initial;
}
.board-pick-menu .board-vis-item.is-on,
.board-pick-menu .board-kit-row.is-on {
  background: var(--primary-dim);
}
.board-pick-menu .board-kit-row.is-on .board-vis-item { background: transparent; }
.board-pick-menu .board-vis-mark { visibility: hidden; width: 0; flex: 0; padding: 0; }
.board-plan-shot.is-ok,
.board-plan-scene.is-ok,
.board-rail-item.is-ok,
.board-day-card.is-ok,
.board-rail-day.is-ok { background: color-mix(in srgb, var(--success) 11%, transparent); }
.board-plan-shot.is-late,
.board-plan-scene.is-late,
.board-rail-item.is-late,
.board-day-card.is-late,
.board-rail-day.is-late { background: color-mix(in srgb, var(--danger) 11%, transparent); }
.board-table-shots th,
.board-table-shots td {
  background-color: var(--card);
}
.board-table-shots thead th {
  position: sticky;
  top: 0;
  z-index: 7;
  background: var(--card);
  background-clip: padding-box;
  box-shadow: 0 1px 0 var(--border);
}
.board-table-shots thead th.is-sticky {
  z-index: 9;
}
.board-table-shots tbody .is-sticky {
  position: sticky;
  z-index: 1;
  background: var(--card);
  background-clip: padding-box;
}
.board-table-shots tbody .board-col-handle.is-sticky { z-index: 2; }
.board-table-shots .is-sticky-end {
  box-shadow: 8px 0 10px -6px color-mix(in srgb, var(--text) 22%, transparent);
}
.board-plan-shot.is-ok .is-sticky {
  background: color-mix(in srgb, var(--success) 11%, var(--card));
}
.board-plan-shot.is-late .is-sticky {
  background: color-mix(in srgb, var(--danger) 11%, var(--card));
}
.board-table-shots tr.is-on.is-ok > *,
.board-table-shots tr.is-on.is-ok .is-sticky {
  background: color-mix(in srgb, var(--success) 11%, var(--primary-dim));
}
.board-table-shots tr.is-on.is-late > *,
.board-table-shots tr.is-on.is-late .is-sticky {
  background: color-mix(in srgb, var(--danger) 11%, var(--primary-dim));
}
.board-shot-empty {
  display: block;
  text-align: center;
  color: var(--text-muted);
}
.board-plan[data-density="image"] .board-table-shots td { height: 5.6rem; }
.board-shot-cover {
  display: block;
  width: 7.2rem;
  height: 5rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  overflow: hidden;
}
.board-shot-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-menu {
  position: absolute;
  z-index: 80;
  min-width: 12rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.45rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.board-float { z-index: 220; }
.board-abc {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.board-vis-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.38rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-size: var(--text-col-head);
  font-weight: 600;
}
.board-vis-mark {
  width: 0.9rem;
  flex: 0 0 0.9rem;
  text-align: center;
  color: var(--success);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}
.board-kit-row {
  display: flex;
  align-items: center;
}
.board-kit-row .dnd-handle {
  flex: 0 0 1.1rem;
  color: var(--text-muted);
  cursor: grab;
  font-size: 0.65rem;
  padding: 0 0.15rem 0 0.35rem;
  line-height: 1;
}
.board-kit-row .board-vis-item { flex: 1; min-width: 0; padding-left: 0.35rem; }
.board-kit-add,
.board-kit-add-input {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-col-head);
  font-weight: 600;
  text-align: left;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}
.board-kit-add-input {
  color: inherit;
  cursor: text;
  outline: 0;
}
.board-menu-item.is-on { background: var(--primary-dim); font-weight: 650; }
.board-menu-setup {
  display: grid;
  grid-template-columns: repeat(10, 2.1rem);
  min-width: 0;
  padding: 0.4rem;
  gap: 0.05rem;
}
.board-menu-setup .board-menu-item { width: auto; padding: 0.28rem 0; justify-content: center; text-align: center; }
.board-menu-setup .board-menu-item:first-child { grid-column: 1 / -1; }
.board-menu-cam {
  display: grid;
  grid-template-columns: repeat(7, 2rem);
  min-width: 0;
  padding: 0.4rem;
}
.board-menu-cam .board-menu-item { justify-content: center; padding: 0.28rem 0; }
.board-menu label,
.board-menu button.board-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.board-menu-add {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
}
.board-menu-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.board-inspector {
  position: relative;
  z-index: 9;
  width: var(--board-inspect-w);
  min-width: var(--board-inspect-w);
  border-left: 1px solid var(--border);
  background: var(--bg);
  min-height: 100%;
  padding: 0 1rem 1.5rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  overflow-x: hidden;
  overflow-y: visible;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease,
              border-color 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.board-plan.is-inspect-off .board-inspector {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  overflow: hidden;
  border-left-width: 0;
  pointer-events: none;
}
.board-inspector[hidden] { display: none; }
.board-inspector h3 {
  position: relative;
  overflow: visible;
  margin: 0 -1rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--text-col-head);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.board-clock-read {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.board-avail-read {
  display: block;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}
.board-avail-read .is-over { color: var(--danger); }
.board-pace-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + var(--board-bar-h, 2.75rem));
  z-index: 7;
  min-height: 1.55rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.board-pace-banner.is-behind { background: #c81e1e; }
.board-pace-banner.is-ahead { background: #15803d; }
.board-pace-banner.is-ontime { background: #3f4a5a; }
.board-day-strip {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
}
.board-day-block {
  display: flex;
  flex-direction: column;
  position: relative;
}
.board-day-strip .board-day-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.9rem 3.4rem 2.6rem minmax(0, 1fr) 2.8rem;
  align-items: stretch;
  min-height: 1.35rem;
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: var(--card);
}
.board-day-strip .board-day-row[data-block-id] {
  cursor: grab;
}
.board-day-strip .board-day-handle,
.board-day-strip .board-day-handle-slot {
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.55rem;
  line-height: 1;
}
.board-day-strip .board-day-handle {
  opacity: 0;
  cursor: grab;
}
.board-day-strip .board-day-row:hover .board-day-handle {
  opacity: 1;
}
.board-day-strip .board-day-row-clock,
.board-day-strip .board-day-row-no,
.board-day-strip .board-day-row-dur,
.board-day-strip input.board-day-row-dur,
.board-day-strip input.board-day-row-clock {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0.06rem 0.28rem;
  border: 0;
  border-radius: 0;
  background: var(--card);
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 1.15;
  white-space: nowrap;
}
.board-day-strip .board-day-row-clock {
  justify-content: flex-start;
}
.board-day-strip .board-day-row-no {
  justify-content: flex-start;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.board-day-strip .board-day-row-dur,
.board-day-strip input.board-day-row-dur {
  justify-content: flex-end;
  width: 100%;
  text-align: right;
  -moz-appearance: textfield;
}
.board-day-strip input.board-day-row-dur::-webkit-outer-spin-button,
.board-day-strip input.board-day-row-dur::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.board-day-strip .board-day-row-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.08rem 0.28rem;
}
.board-day-strip .board-day-shot-text {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
  flex: 1;
}
.board-day-strip .board-day-row-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.72;
}
.board-day-strip .board-day-row.is-shot .board-day-row-sub {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.78;
}
.board-day-strip .board-day-thumb,
.board-day-strip .board-day-thumb.is-empty {
  display: block;
  width: 5.2rem;
  height: 3.5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.board-plan[data-density="image"] .board-day-strip .board-day-row.is-shot {
  min-height: 3.9rem;
}
.board-day-strip .board-day-inline-title,
.board-day-strip .board-day-factor-title {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-align: inherit;
}
.board-day-strip .board-day-row.is-shot .board-day-inline-title {
  text-align: left;
  font-weight: 700;
}
.board-day-strip .board-day-banner-head {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
}
.board-day-strip .board-day-banner-no {
  flex-shrink: 0;
  font-weight: 750;
}
.board-day-strip .board-day-row.is-banner .board-day-inline-title {
  width: auto;
  min-width: 4rem;
  max-width: 22rem;
  text-align: center;
}
.board-day-strip .board-day-row.is-factor {
  min-height: 1.35rem;
}
.board-day-strip .board-day-row.is-banner {
  position: sticky;
  top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + var(--board-bar-h, 2.75rem) + 1.55rem);
  z-index: 6;
  min-height: 2.7rem;
  background: #111;
  color: #fff;
}
.board-stage:not(:has(.board-pace-banner)) .board-day-strip .board-day-row.is-banner {
  top: calc(var(--prod-stick-below, var(--prod-sticky-offset, 4.125rem)) + var(--board-bar-h, 2.75rem));
}
.board-day-strip .board-day-row.is-banner .board-day-handle-slot,
.board-day-strip .board-day-row.is-banner .board-day-row-clock,
.board-day-strip .board-day-row.is-banner .board-day-row-no,
.board-day-strip .board-day-row.is-banner .board-day-row-dur,
.board-day-strip .board-day-row.is-banner .board-day-row-main,
.board-day-strip .board-day-row.is-banner .board-day-inline-title {
  background: #111;
  color: #fff;
}
.board-day-strip .board-day-row.is-banner .board-day-row-main {
  justify-content: center;
}
.board-day-strip .board-day-row.is-banner .board-day-row-no,
.board-day-strip .board-day-row.is-factor .board-day-row-no {
  display: none;
}
.board-day-strip .board-day-row.is-banner .board-day-row-main,
.board-day-strip .board-day-row.is-factor .board-day-row-main {
  grid-column: 3 / 5;
}
.board-day-strip .board-day-row.is-banner .board-day-row-main {
  display: grid;
  justify-items: center;
  gap: 0.02rem;
  text-align: center;
}
.board-day-strip .board-day-row.is-banner strong,
.board-day-strip .board-day-row.is-banner .board-day-inline-title,
.board-day-strip .board-day-row.is-banner .board-day-banner-no {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.board-day-strip .board-day-row.is-shot .board-day-row-main {
  justify-content: flex-start;
}
.board-day-strip .board-day-row.is-shot.is-on,
.board-day-strip .board-day-row.is-shot.is-on .board-day-handle,
.board-day-strip .board-day-row.is-shot.is-on .board-day-row-clock,
.board-day-strip .board-day-row.is-shot.is-on .board-day-row-no,
.board-day-strip .board-day-row.is-shot.is-on .board-day-row-dur,
.board-day-strip .board-day-row.is-shot.is-on input.board-day-row-dur,
.board-day-strip .board-day-row.is-shot.is-on .board-day-inline-title {
  background: var(--primary-dim);
}
.board-day-strip .board-day-row.is-factor.is-on {
  box-shadow: inset 0 0 0 1px var(--primary);
}
.board-day-strip .board-day-row.is-prep .board-day-row-main,
.board-day-strip .board-day-row.is-turnaround .board-day-row-main {
  background-color: #fff;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.09) 0,
    rgba(0, 0, 0, 0.09) 1px,
    transparent 1px,
    transparent 7px
  );
}
.board-day-strip .board-day-row.is-prep .board-day-handle,
.board-day-strip .board-day-row.is-prep .board-day-row-clock,
.board-day-strip .board-day-row.is-prep .board-day-row-no,
.board-day-strip .board-day-row.is-prep .board-day-row-dur,
.board-day-strip .board-day-row.is-prep input.board-day-row-dur,
.board-day-strip .board-day-row.is-turnaround .board-day-handle,
.board-day-strip .board-day-row.is-turnaround .board-day-row-clock,
.board-day-strip .board-day-row.is-turnaround .board-day-row-no,
.board-day-strip .board-day-row.is-turnaround .board-day-row-dur,
.board-day-strip .board-day-row.is-turnaround input.board-day-row-dur {
  background: #fff;
}
.board-day-strip .board-day-row.is-lunch,
.board-day-strip .board-day-row.is-transpo,
.board-day-strip .board-day-row.is-move,
.board-day-strip .board-day-row.is-wrap {
  background: #111;
  color: #fff;
}
.board-day-strip .board-day-row.is-lunch .board-day-handle,
.board-day-strip .board-day-row.is-lunch .board-day-row-clock,
.board-day-strip .board-day-row.is-lunch .board-day-row-no,
.board-day-strip .board-day-row.is-lunch .board-day-row-dur,
.board-day-strip .board-day-row.is-lunch input.board-day-row-dur,
.board-day-strip .board-day-row.is-lunch .board-day-row-main,
.board-day-strip .board-day-row.is-transpo .board-day-handle,
.board-day-strip .board-day-row.is-transpo .board-day-row-clock,
.board-day-strip .board-day-row.is-transpo .board-day-row-no,
.board-day-strip .board-day-row.is-transpo .board-day-row-dur,
.board-day-strip .board-day-row.is-transpo input.board-day-row-dur,
.board-day-strip .board-day-row.is-transpo .board-day-row-main,
.board-day-strip .board-day-row.is-move .board-day-handle,
.board-day-strip .board-day-row.is-move .board-day-row-clock,
.board-day-strip .board-day-row.is-move .board-day-row-no,
.board-day-strip .board-day-row.is-move .board-day-row-dur,
.board-day-strip .board-day-row.is-move input.board-day-row-dur,
.board-day-strip .board-day-row.is-move .board-day-row-main,
.board-day-strip .board-day-row.is-wrap .board-day-handle,
.board-day-strip .board-day-row.is-wrap .board-day-row-clock,
.board-day-strip .board-day-row.is-wrap .board-day-row-no,
.board-day-strip .board-day-row.is-wrap .board-day-row-dur,
.board-day-strip .board-day-row.is-wrap input.board-day-row-dur,
.board-day-strip .board-day-row.is-wrap .board-day-row-main {
  background: #111;
  color: #fff;
}
.board-day-strip .board-day-row.is-lunch .board-day-row-main,
.board-day-strip .board-day-row.is-transpo .board-day-row-main,
.board-day-strip .board-day-row.is-move .board-day-row-main,
.board-day-strip .board-day-row.is-wrap .board-day-row-main {
  justify-content: center;
  text-align: center;
}
.board-day-strip .board-day-row.is-info,
.board-day-strip .board-day-row.is-note {
  background: #fff;
  color: #111;
}
.board-day-strip .board-day-row.is-info .board-day-row-clock,
.board-day-strip .board-day-row.is-info .board-day-row-dur,
.board-day-strip .board-day-row.is-info input.board-day-row-dur,
.board-day-strip .board-day-row.is-info .board-day-row-main,
.board-day-strip .board-day-row.is-note .board-day-row-clock,
.board-day-strip .board-day-row.is-note .board-day-row-dur,
.board-day-strip .board-day-row.is-note input.board-day-row-dur,
.board-day-strip .board-day-row.is-note .board-day-row-main {
  background: #fff;
  color: #111;
  justify-content: flex-start;
  text-align: left;
}
.board-day-factor-title {
  display: inline-block;
  padding: 0.08rem 0.55rem;
  background: color-mix(in srgb, #fff 86%, transparent);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board-day-strip .board-day-row.is-lunch .board-day-factor-title,
.board-day-strip .board-day-row.is-transpo .board-day-factor-title,
.board-day-strip .board-day-row.is-move .board-day-factor-title,
.board-day-strip .board-day-row.is-wrap .board-day-factor-title {
  background: transparent;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}
.board-day-strip .board-day-row.is-info .board-day-factor-title,
.board-day-strip .board-day-row.is-note .board-day-factor-title {
  background: transparent;
  color: #111;
  padding-left: 0;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
}
.board-day-strip .board-day-del {
  position: absolute;
  right: 3.3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
}
.board-day-strip .board-day-row.is-factor:hover .board-day-del {
  opacity: 1;
}
.board-day-strip .board-day-row.is-lunch .board-day-del,
.board-day-strip .board-day-row.is-transpo .board-day-del,
.board-day-strip .board-day-row.is-move .board-day-del,
.board-day-strip .board-day-row.is-wrap .board-day-del {
  color: #fff;
}
.board-day-strip > .board-day-insert-hit {
  position: relative;
  display: block;
  height: 0.55rem;
  top: auto;
  z-index: 2;
}
.board-day-row .board-day-insert-hit {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: -3px;
  height: 6px;
  z-index: 3;
}
.board-day-insert-hit {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.board-day-insert-hit::before,
.board-day-insert-hit::after {
  content: '';
  position: absolute;
  display: none;
  pointer-events: none;
}
.board-day-insert-hit::before {
  left: 4.6rem;
  right: 4.4rem;
  top: 50%;
  height: 1px;
  background: var(--primary);
  transform: translateY(-50%);
}
.board-day-insert-hit::after {
  content: '+';
  left: 50%;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--card);
}
.board-day-insert-hit:hover::before,
.board-day-insert-hit:hover::after,
.board-day-insert-hit:focus-visible::before,
.board-day-insert-hit:focus-visible::after {
  display: block;
}
.board-day-insert-hit:focus-visible {
  outline: none;
}
.board-field { display: grid; gap: 0.28rem; }
.board-field > span,
.board-field-row > span {
  font-size: var(--text-col-head);
  color: var(--text-muted);
}
.board-inspector .input-field,
.board-inspector textarea.input-field,
.board-inspector .app-select-trigger {
  font-size: var(--text-ui);
}
.board-field-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}
.board-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}
.board-compact {
  display: grid;
  gap: 0.28rem;
  justify-items: stretch;
  min-width: 0;
}
.board-compact > span {
  font-size: var(--text-col-head);
  color: var(--text-muted);
  text-align: center;
}
.board-compact .input-field,
.board-compact .app-select-trigger {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.board-page-count {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}
.board-page-count > span:first-child {
  font-size: var(--text-col-head);
  color: var(--text-muted);
}
.board-page-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}
.board-eighths {
  color: var(--text-muted);
  font-size: var(--text-ui);
}
.board-step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
.board-plain {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: var(--text-ui);
  font-variant-numeric: tabular-nums;
  text-align: center;
  border-radius: 0 !important;
  corner-shape: initial !important;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  cursor: pointer;
}
.board-step .board-plain {
  width: 2.4rem;
  flex: 0 0 auto;
}
.board-digits {
  font-variant-numeric: tabular-nums;
}
.board-time-input {
  width: 3.2rem;
  max-width: 3.2rem;
  justify-self: center;
  text-align: center;
  cursor: text;
}
.board-pick {
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: var(--text-ui);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-table .board-time-input {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  text-align: center;
}
.board-step > button:not(.board-plain) {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
}
.board-step strong {
  display: block;
  width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.board-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.board-pill {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: var(--text-table);
  font-weight: 650;
  cursor: pointer;
}
.board-pill.is-on {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
}
.board-col-mark {
  text-align: center;
  color: var(--text);
}
.board-col-mark svg {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  vertical-align: middle;
}
.board-inspector-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.board-inspector-actions > .btn-ghost,
.board-inspector-actions > .btn-primary {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  white-space: nowrap;
}
.board-table-days { width: 100%; min-width: 36rem; }
.board-table-days th,
.board-table-days td { white-space: nowrap; }
.board-table-days .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.board-table-days tr.is-on { background: var(--primary-dim); }
.board-days-stage { padding: 0.85rem; display: grid; gap: 0.45rem; }
.board-day-card {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.board-empty-box { padding: 1.5rem 1rem; }
.board-empty-box .btn-primary { margin-top: 0.85rem; }
.nav-section-link .nav-unread {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.board-day-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}
.board-day-stat {
  display: grid;
  gap: 0.1rem;
}
.board-day-stat strong {
  font-size: var(--text-ui);
  font-variant-numeric: tabular-nums;
}
.board-time-defined {
  cursor: help;
}
.board-assign-pop {
  position: fixed;
  z-index: 230;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(34rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px color-mix(in srgb, #0c0d10 22%, transparent);
  overflow: hidden;
}
.board-assign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem 0.45rem;
}
.board-assign-head h3 {
  margin: 0;
  font-size: var(--text-ui);
  font-weight: 650;
}
.board-assign-search {
  margin: 0 0.8rem 0.55rem;
}
.board-assign-list {
  overflow: auto;
  padding: 0 0.4rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}
.board-assign-scene {
  border-radius: var(--r-sm);
}
.board-assign-scene-row,
.board-assign-shot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.board-assign-scene-row { cursor: pointer; font-weight: 650; }
.board-assign-shot { padding-left: 1.7rem; font-size: var(--text-table); }
.board-assign-shot.is-taken { color: var(--text-muted); }
.board-assign-badge {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.board-assign-empty { padding: 0.8rem 0.6rem; color: var(--text-muted); }
.list-row.is-unread { background: var(--primary-dim); }
.board-vis-pop { position: absolute; right: 0.8rem; top: 3.2rem; }

@media (max-width: 900px) {
  .prod-board { grid-template-columns: 1fr 1fr; }
  .board-plan,
  .board-plan.is-inspecting { grid-template-columns: 1fr; }
  .board-rail { border-right: 0; border-bottom: 1px solid var(--border); }
  .board-inspector.is-open {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: auto;
    max-width: none;
    min-height: 100%;
    border-left: 0;
    padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
    overflow: auto;
  }
  .board-plan.is-inspect-off .board-inspector.is-open {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  .prod-board { grid-template-columns: 1fr; }
  .board-block { flex-wrap: wrap; }
}

@media (pointer: coarse), (max-width: 720px), (min-width: 768px) and (max-width: 1180px) {
  .board-rail-item,
  .board-rail-day { min-height: 3rem; padding: 0.65rem 0.75rem; }
  .board-rail-create .input-field,
  .board-shot-row .board-shot-name,
  .board-block-title { font-size: 1rem; }
  .choice-pill { min-height: 2.5rem; padding: 0.55rem 0.9rem; }
  .board-live-tabs button,
  .board-filter-row button,
  .board-day-nav { min-height: 2.75rem; font-size: 1rem; }
  .board-strip-row {
    min-height: 3.5rem;
    padding: 0.8rem 0.45rem;
    gap: 0.6rem;
  }
  .board-block-cover,
  .board-block-cover-btn { width: 5rem; height: 3.6rem; }
  .board-strip-actions .btn-ghost,
  .board-strip-actions .btn-primary { min-height: 2.5rem; min-width: 2.75rem; }
  .board-live-page { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .board-live-sticky { padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)); }
  .board-day .board-add-row {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin: 0 -0.2rem;
    padding: 0.7rem 0.2rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .board-day.is-inserting .board-add-row {
    box-shadow: 0 -10px 28px color-mix(in srgb, var(--primary) 16%, transparent);
  }
  .board-day.is-inserting [data-add-note] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}

@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {
  .board-plan { grid-template-columns: auto minmax(0, 1fr); }
  .board-plan.is-inspecting { grid-template-columns: auto minmax(0, 1fr) auto; }
  .page-subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .app-nav-toggle,
  .board-rail,
  .board-rail-toggle,
  .board-inspector,
  .board-inspect-toggle,
  .board-plan,
  .board-live-ink,
  .board-tab.is-on {
    transition: none;
    animation: none;
  }
}

.gcl-food-dash {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.gcl-food-dash .card-section-title {
  margin: 0 0 0.85rem;
}

.gcl-food-dash .catering-stats {
  max-width: 42rem;
}

.crew-message-modal {
  width: min(36rem, 100%);
  max-width: 36rem;
  max-height: calc(100dvh - 2rem);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.crew-message-modal .modal-body {
  display: grid;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.crew-message-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--border);
}

.crew-message-status {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.crew-message-status.is-error {
  color: var(--danger);
}

.crew-message-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crew-message-token {
  min-height: 1.85rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.crew-message-token:hover {
  border-color: var(--text);
}

.crew-message-modal textarea.input {
  min-height: 12rem;
  resize: vertical;
}

.crew-profile-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.crew-profile-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.crew-profile-form .span-2 {
  grid-column: 1 / -1;
}

.crew-profile-ok {
  margin: 0.75rem 0 0;
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 720px) {
  .crew-profile-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.board-live-page { max-width: 42rem; }
.board-live-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.8rem;
}
.board-live-headbar-main {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}
.board-live-prod {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-live-dayline {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
}
.board-live-setphone {
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0.25rem 0.15rem 0.25rem 0.6rem;
  text-decoration: none;
  color: inherit;
  text-align: right;
}
.board-live-setphone span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.board-live-setphone strong {
  font-size: 0.92rem;
  font-weight: 800;
}
.board-live-setphone:not(.is-off) strong { color: var(--primary); }
.board-live-setphone.is-off { pointer-events: none; opacity: 0.45; }

.pocket-card,
.pocket-block {
  margin: 0;
  padding: 0.85rem 0 1.05rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.pocket-block:first-child { padding-top: 0.15rem; }
.pocket-kicker,
.pocket-loc-head,
.pocket-crew-head {
  margin: 0 0 0.7rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
}
.pocket-weather {
  display: grid;
  gap: 0.7rem;
}
.pocket-weather-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pocket-weather-main strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.pocket-weather-main .weather-icon {
  width: 2.15rem;
  height: 2.15rem;
  color: #111;
}
.pocket-weather-parts {
  display: flex;
  justify-content: space-evenly;
  gap: 0.4rem;
}
.pocket-weather-part {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  min-width: 4.5rem;
  text-align: center;
}
.pocket-weather-part .weather-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #111;
}
.pocket-weather-part span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pocket-weather-part em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
}
.pocket-weather-sun {
  display: flex;
  justify-content: space-evenly;
  gap: 0.8rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}
.pocket-weather-meta {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}
.pocket-times {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 0.45rem;
}
.pocket-times + .pocket-times { margin-top: 0.85rem; }
.pocket-times > div {
  flex: 0 1 auto;
  min-width: 4.4rem;
  text-align: center;
}
.pocket-times > div > span:first-child {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  text-align: center;
}
.pocket-times > div strong {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
}
.pocket-times .board-delta,
.pocket-times .board-delta-slot {
  display: inline-block;
  min-width: 3ch;
  margin: 0.15rem 0 0 0.15rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: inherit;
  vertical-align: baseline;
}
.pocket-lunch-choice,
.pocket-note,
.pocket-kv strong,
.pocket-kv-row strong,
.pocket-spot strong,
.pocket-loc-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111;
}
.pocket-note {
  margin: 0 0 0.45rem;
}
.pocket-note:last-child { margin-bottom: 0; }
.pocket-place,
.pocket-person,
.pocket-spot {
  display: grid;
  gap: 0.12rem;
  padding: 0.75rem 0;
  border-bottom: 0;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.pocket-crew-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1.3fr) minmax(5rem, 1.1fr) minmax(5.2rem, 1fr) 4.4rem;
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.4rem 0.1rem;
  border: 0;
  color: #111;
  font-size: 1.15rem;
  font-weight: 800;
}
.pocket-crew-row strong,
.pocket-crew-row span,
.pocket-crew-row a,
.pocket-crew-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
}
.pocket-crew-row em { text-align: right; }
.pocket-place em,
.pocket-spot em {
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 750;
  color: #111;
  text-decoration: underline;
}
.pocket-person.is-self,
.pocket-crew-row.is-self {
  background: transparent;
  box-shadow: inset 3px 0 0 #111;
  padding-left: 0.7rem;
  border-radius: 0;
}
.pocket-kv { display: grid; gap: 0.65rem; }
.pocket-kv > div,
.pocket-kv-row {
  display: grid;
  gap: 0.15rem;
}
.pocket-kv span,
.pocket-kv-row span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}
.pocket-kv a { color: inherit; font-weight: 800; text-decoration: underline; }
.pocket-rule { display: none; }
.pocket-loc-name { margin: 0 0 0.45rem; }
.pocket-spot-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pocket-crew-head { text-align: center; }
.pocket-crew-head:first-child { margin-top: 0; }
.pocket-crew-phone { color: inherit; }
.pocket-confetti {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.always-listed-cell {
  width: 3.4rem;
  min-width: 3.4rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.always-listed-cell::after { content: "auch NC"; }
.always-listed-yes { background: #111; color: #fff; }
.always-listed-no { background: #fff; color: #111; opacity: 0.38; }
.pocket-pdf,
.board-live-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  margin: 1rem 0 0;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.board-live-pdf {
  margin: 0;
  min-height: 2.2rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
}
.board-live-pdf.is-off,
.board-live-pdf[hidden] { display: none; }
.board-live-page .dnd-handle,
.board-live-page .board-color { display: none; }

.board-strip-row.is-shot,
.board-strip-row.is-scene { background: #fff; color: #111; }
.board-strip-row.is-lunch,
.board-strip-row.is-move,
.board-strip-row.is-transpo,
.board-strip-row.is-wrap,
.board-strip-row.is-bar {
  background: #111;
  color: #fff;
  border-top-color: #111;
  grid-template-columns: 3.6rem 1fr auto;
  align-items: center;
}
.board-live-page .board-tab[data-panel="shotlist"] { padding: 0; }
.board-live-page .board-tab[data-panel="shotlist"] .board-anchor-row { margin: 0; }
.board-live-page .board-pace-banner,
.board-live-page .board-jump,
.board-live-page .board-strip-row.is-bar,
.board-live-page .board-banner {
  border-radius: 0;
}
.board-live-page .board-jump {
  margin: 0;
  width: 100%;
  border-radius: 0;
}
.board-live-page .board-strip-row.is-bar {
  grid-template-columns: 3.6rem 1fr auto;
  align-items: center;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0;
  min-height: 3.1rem;
}
.board-live-page .board-strip-row.is-bar .board-block-clock { color: #fff; font-weight: 800; }
.board-live-page .board-bar-mins {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.board-live-page .board-strip-row.is-shot,
.board-live-page .board-strip-row.is-scene {
  grid-template-columns: 3.6rem 3.2rem 1fr auto;
  padding: 0.7rem 1rem;
  border-radius: 0;
  border-top: 1px solid #111;
}
.board-live-page .board-strip-row.is-note {
  grid-template-columns: 3.6rem 1fr;
  padding: 0.7rem 1rem;
  border-radius: 0;
}
.board-live-page .badge { border-radius: 0; }
.board-strip-row.is-lunch .board-block-title,
.board-strip-row.is-move .board-block-title,
.board-strip-row.is-transpo .board-block-title,
.board-strip-row.is-wrap .board-block-title,
.board-strip-row.is-prep .board-block-title,
.board-strip-row.is-turnaround .board-block-title,
.board-banner .board-banner-title {
  justify-content: center;
  text-align: center;
  width: 100%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.board-strip-row.is-prep,
.board-strip-row.is-turnaround {
  background-color: #fff;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.09) 0,
    rgba(0, 0, 0, 0.09) 1px,
    transparent 1px,
    transparent 7px
  );
}
.board-strip-row.is-note,
.board-strip-row.is-info {
  background: #fff;
  color: #111;
}
.board-strip-row.is-note .board-block-title,
.board-strip-row.is-info .board-block-title {
  justify-content: flex-start;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.board-note-title { text-transform: uppercase; letter-spacing: 0.06em; }
.board-tab.is-on { animation: pocketIn 0.28s ease; }
@keyframes pocketIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .board-live-page { max-width: 52rem; }
  .board-live-tabs button { font-size: 0.92rem; }
}

@media (pointer: coarse) {
  .board-day-strip .board-day-handle,
  .board-day-strip .board-day-row.is-factor .board-day-del {
    opacity: 0.55;
  }
  .board-day-strip .board-day-handle {
    width: 1.6rem;
    height: 2rem;
    display: grid;
    place-items: center;
  }
  .gcl-table,
  .board-table-wrap,
  html.is-gcl-scroll-days .app-main {
    -webkit-overflow-scrolling: touch;
  }
  .prod-mini-tile,
  a.list-row.crew-row,
  .db-board-card {
    min-height: 3.4rem;
  }
}

@media (max-width: 720px) {
  .app-sidebar {
    padding: 0.45rem 0.7rem 0.55rem;
    gap: 0.35rem;
  }
  .app-nav {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
    gap: 0.2rem;
  }
  .nav-block {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0;
  }
  .nav-block + .nav-block {
    border-top: 0;
    padding-top: 0;
  }
  .nav-section-link,
  .nav-item {
    min-height: 2.4rem;
    padding: 0.4rem 0.65rem;
  }
  .nav-item.nav-prod { display: none; }
  .nav-prod-tree {
    display: flex;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .app-sidebar-footer { padding-top: 0.4rem; }
  .app-main:has(.gcl-table),
  .app-main:has(.board-table-wrap) {
    overflow-x: auto;
  }
  .board-live-prod { font-size: 0.98rem; }
  .board-live-tabs button { font-size: 0.74rem; padding: 0.75rem 0.1rem; }
  .pocket-times { justify-content: space-evenly; }
  .board-anchor-clocks { grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; }
  .board-jump { top: 11.5rem; }
}

.pocket-meal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.45);
}
.pocket-meal-overlay[hidden] { display: none; }
.pocket-meal-card {
  width: min(28rem, 100%);
  max-height: min(86vh, 42rem);
  overflow: auto;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  border-radius: 0;
  padding: 1.1rem 1.15rem 1.25rem;
}
.pocket-meal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pocket-meal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.pocket-meal-x {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.pocket-meal-deadline,
.pocket-meal-error {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 650;
}
.pocket-meal-error { color: var(--danger, #b42318); }
.pocket-meal-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.pocket-meal-choice {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.pocket-meal-choice strong { font-size: 1rem; }
.pocket-meal-choice span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pocket-meal-choice.is-blocked { opacity: 0.45; cursor: not-allowed; }
.pocket-meal-later {
  margin-top: 0.9rem;
  width: 100%;
  border: 0;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.pocket-rate-stars {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.pocket-rate-star {
  flex: 1;
  min-height: 2.6rem;
  border: 1px solid #111;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pocket-wrap-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.72);
}
.pocket-wrap-overlay[hidden] { display: none; }
.pocket-wrap-card {
  position: relative;
  width: min(26rem, 100%);
  padding: 2.2rem 1.4rem 1.8rem;
  text-align: center;
  background: #ffe14a;
  color: #111;
  border: 3px solid #111;
}
.pocket-wrap-card .pocket-meal-x {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
}
.pocket-wrap-bang {
  font-size: clamp(3.2rem, 16vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}
.pocket-wrap-line {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.meal-rate-flag {
  margin-top: 0.15rem;
}
.meal-ratings {
  font-size: 0.88rem;
  font-weight: 750;
}
