/* schedule.css - Stripboard & Schedule (Lína Style) */
/* Updated: Panel styling, fixed column alignment, normalized heights */

/* ===============================
   PAGE LAYOUT
   =============================== */

.schedule-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-width: 0px !important;
}

.schedule-header {
  border-bottom: 0px !important;
}

.schedule-canvas {
  flex: 1;
  overflow: auto;
  background: transparent !important;
  padding: 20px;
}

/* Header icon with gradient */
.schedule-header-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-muted, #b8956e));
  border-radius: 8px;
}

.schedule-header-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* Tool buttons */
.schedule-header .tool-btn {
  width: 36px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.schedule-header .tool-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}

.schedule-header .tool-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===============================
   VIEW TOGGLE
   =============================== */

.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-input, #1a1a1e);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
}

.view-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.view-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ===============================
   EMPTY STATE
   =============================== */

.view-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}

/* ===============================
   STRIPBOARD LAYOUT - Two Panel Design
   =============================== */

.stripboard-layout {
  display: flex;
  gap: 20px;
  height: 100%;
  min-height: 400px;
}

/* Shared panel styling */
.schedule-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.panel-count {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* ===============================
   UNSCHEDULED PANEL
   =============================== */

.unscheduled-panel {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
}

.pool-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.pool-empty {
  text-align: center;
  padding: 24px 12px;
  font-size: 12px;
  color: var(--text-tertiary, #666);
  font-style: italic;
}

.pool-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 12px;
  cursor: grab;
  border: 1px solid rgba(0,0,0,0.2);
}

.pool-strip:hover {
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1));
}

.pool-strip.dragging {
  opacity: 0.4;
}

.pool-strip .ps-num {
  font-weight: 700;
  font-size: 14px;
  min-width: 24px;
}

.pool-strip .ps-loc {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
  font-size: 11px;
}

.pool-list.drag-over {
  background: rgba(46, 204, 113, 0.1);
}

/* ===============================
   STRIPBOARD PANEL
   =============================== */

.stripboard-panel {
  flex: 1;
  min-width: 0;
}

/* Stripboard header - column labels */
.stripboard-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.stripboard-header > div {
  flex-shrink: 0;
  text-align: center;
}

.stripboard-header .sh-num { width: 64px; }
.stripboard-header .sh-info { width: 70px; }
.stripboard-header .sh-loc { flex: 1; text-align: left; padding: 0 14px; }
.stripboard-header .sh-pg { width: 60px; }
.stripboard-header .sh-cast { width: 170px; text-align: left; padding-left: 8px; }

.stripboard {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.stripboard.drag-over {
  background: rgba(46, 204, 113, 0.05);
}

.sb-empty {
  padding: 60px 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===============================
   BOARD STRIPS - Base
   =============================== */

.board-strip {
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  font-size: 12px;
  cursor: grab;
  position: relative;
  height: 52px;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  overflow: hidden;
}

.board-strip:hover {
  z-index: 1;
}

.board-strip.dragging {
  opacity: 0.4;
}

.board-strip.drag-above {
  box-shadow: inset 0 3px 0 var(--accent);
}

.board-strip.drag-below {
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* ===============================
   SCENE STRIPS
   =============================== */

.scene-strip {
  height: 52px;
}

.scene-strip .strip-scene-num {
  width: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border-right: 1px solid rgba(0,0,0,0.1);
}

.scene-strip .scene-num-text {
  font-family: "Unbounded", var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.scene-strip .strip-info {
  width: 70px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border-right: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.05);
}

.scene-strip .strip-ie {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.scene-strip .strip-dn {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}

.scene-strip .strip-loc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px;
  min-width: 0;
  overflow: hidden;
}

.scene-strip .strip-loc-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.scene-strip .strip-loc-main {
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-strip .strip-loc-sub {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.scene-strip .strip-loc-project {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.scene-strip .strip-tag {
  font-size: 9px;
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.scene-strip .strip-tag.tag-warn {
  background: rgba(231, 76, 60, 0.25);
  color: #171717;
}

.scene-strip .strip-tag.tag-note {
  background: rgba(52, 152, 219, 0.25);
  color: #aed6f1;
}

.scene-strip .strip-pages {
  width: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  border-left: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
}

.scene-strip .strip-cast {
  width: 170px;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding: 6px 8px;
  padding-right: 40px; /* Leave room for menu button */
  border-left: 1px solid rgba(0,0,0,0.08);
}

.scene-strip .cast-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 0 4px;
}

/* Strip Menu Button */
.strip-menu {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-strip:hover .strip-menu {
  opacity: 0.7;
}

.strip-menu:hover {
  opacity: 1 !important;
  background: rgba(0,0,0,0.3);
}

.strip-menu-light {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.1);
}

.strip-menu-light:hover {
  background: rgba(255,255,255,0.2);
}

/* ===============================
   DAY BREAK STRIPS - Aligned with scene columns
   =============================== */

.day-strip {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
  color: #fff !important;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: stretch;
}

.day-strip:first-child {
  margin-top: 0;
}

/* Title cell - spans scene number + I/E columns */
.day-strip .day-title-cell {
  width: 134px; /* 64px + 70px to match scene-num + strip-info */
  min-width: 134px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(0,0,0,0.15);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.day-strip .day-break-title {
  font-family: "Unbounded", var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.day-strip .day-break-date {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

/* Spacer - takes up the location column */
.day-strip .day-spacer {
  flex: 1;
  min-width: 0;
}

/* Pages cell - aligns with strip-pages column */
.day-strip .day-pages-cell {
  width: 60px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* Complexity cell - aligns with cast column + menu area */
.day-strip .day-complexity-cell {
  width: 170px; /* matches strip-cast (130px + 40px padding-right) */
  min-width: 170px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 8px; /* match strip-cast padding-left */
  border-left: 1px solid rgba(255,255,255,0.1);
}

.day-strip .day-complexity-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 70px;
}

.day-strip .day-complexity-pill:hover {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.25);
}

.day-strip .day-stat-value {
  font-family: "Unbounded", var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.day-strip .complexity-pct {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

.day-strip .day-stat-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  margin-top: 1px;
}

/* ===============================
   MEAL & BANNER STRIPS - Same height
   =============================== */

.meal-strip {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  height: 52px;
  border: 1px solid var(--border) !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 44px 0 16px;
}

.meal-strip .meal-label {
  font-weight: 500;
  font-size: 12px;
}

.meal-strip .meal-duration {
  opacity: 0.7;
  font-size: 11px;
}

.banner-strip {
  background: linear-gradient(90deg, rgba(209,139,60,0.15), rgba(209,139,60,0.08)) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(209,139,60,0.3) !important;
  height: 52px;
  justify-content: center;
  align-items: center;
  padding: 0 44px 0 16px;
}

.banner-strip .banner-text {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================
   FORMS IN MODALS
   =============================== */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input, #1a1a1e);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(209, 139, 60, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-input-sm {
  width: 90px;
  padding: 6px 10px;
  text-align: center;
  background: var(--bg-input, #1a1a1e);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
}

.form-input-sm:focus {
  outline: none;
  border-color: var(--accent);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  background: var(--bg-input, #1a1a1e);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:hover {
  border-color: var(--accent-muted);
  background: var(--bg-elevated);
}

.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.radio-option span {
  font-weight: 500;
  font-size: 14px;
}

.radio-option small {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.strip-edit-preview {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.1);
}

.strip-edit-stats {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===============================
   COMPLEXITY MODAL
   =============================== */

.complexity-modal {
  max-width: 440px;
}

.complexity-header {
  text-align: center;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 18px;
  color: #fff;
}

.complexity-score {
  font-family: "Unbounded", var(--font-ui);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.complexity-tier {
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.complexity-explanation {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg-input, #1a1a1e);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.complexity-summary {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.complexity-details {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.complexity-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 12px 14px;
  background: var(--bg-elevated);
  transition: color 0.15s ease;
}

.complexity-details summary:hover {
  color: var(--text-primary);
}

.complexity-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.complexity-breakdown {
  padding: 14px;
}

.complexity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.complexity-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.complexity-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.complexity-table tbody tr:last-child td {
  border-bottom: none;
}

.complexity-table .points-col {
  text-align: right;
  font-weight: 500;
}

.complexity-table tfoot tr {
  background: var(--bg-elevated);
}

.complexity-table .total-row td {
  font-weight: 600;
  border-top: 2px solid var(--border);
  padding: 10px;
}

.complexity-note {
  font-size: 12px;
  color: var(--text-tertiary, #888);
  line-height: 1.5;
  text-align: center;
}

/* ===============================
   SETTINGS MODAL - Compact with Tabs
   =============================== */

.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.settings-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-tab:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.settings-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.settings-tab-content {
  min-height: 150px;
}

.date-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-row-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-row-compact label {
  width: 70px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.date-row-compact input {
  width: 130px;
}

.date-row-compact span {
  color: var(--text-secondary);
  font-size: 12px;
}

.weight-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.weight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-input, #1a1a1e);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.weight-item label {
  font-size: 11px;
  color: var(--text-primary);
}

.weight-item input {
  width: 50px;
  padding: 4px 6px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
}

.weight-item input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===============================
   CALENDAR VIEW
   =============================== */

.calendar-view {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1px;
  background: var(--border);
}

.cal-hcell {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.cal-cell {
  min-height: 100px;
  padding: 10px;
  background: var(--bg-panel);
}

.cal-cell.has-day {
  background: var(--bg-elevated);
}

.cal-date {
  font-size: 12px;
  color: var(--text-tertiary, #666);
  margin-bottom: 8px;
}

.cal-day {
  font-size: 11px;
  padding: 10px;
  background: var(--bg-input, #1a1a1e);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* ===============================
   LIST VIEW
   =============================== */

.list-view {
  padding: 20px;
}

.sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.sched-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sched-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.sched-table tbody tr:last-child td {
  border-bottom: none;
}

.sched-table tbody tr:hover {
  background: var(--bg-elevated);
}

/* ===============================
   LOADING STATE
   =============================== */

.schedule-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  gap: 14px;
}

.schedule-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 900px) {
  .stripboard-cols .sb-info { display: none; }
  .stripboard-cols .sb-pg { display: none; }
  .stripboard-cols .sb-cast { width: 90px; }
  .scene-strip .strip-info { display: none; }
  .scene-strip .strip-pages { display: none; }
  .scene-strip .strip-cast { width: 90px; min-width: 90px; }
  .scene-strip .strip-scene-num { width: 56px; min-width: 56px; }
  .scene-strip .scene-num-text { font-size: 16px; }
  .day-strip .day-title-cell { width: 56px; min-width: 56px; }
  .day-strip .day-pages-cell { display: none; }
  .day-strip .day-complexity-cell { width: 90px; min-width: 90px; }
  .day-strip .day-stat-value { font-size: 14px; }
}

@media (max-width: 768px) {
  .stripboard-layout { 
  flex-direction: column;
  gap: 16px;
  }
  .unscheduled-panel {
  width: 100%;
  min-width: 100%;
  max-height: 150px;
  }
  .pool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  }
  .pool-strip { flex: 0 0 auto; margin-bottom: 0; }
  .scene-strip .strip-cast { display: none; }
  .stripboard-cols .sb-cast { display: none; }
  .day-strip .day-complexity-cell { display: none; }
  .day-strip .day-title-cell { flex: 1; width: auto; }
}

/* ===============================
   PRINT STYLES
   =============================== */

@media print {
  .schedule-page > .screenplay-header { display: none; }
  .unscheduled-panel { display: none; }
  .stripboard-panel { border: none; }
  .stripboard { overflow: visible; }
  .strip-menu { display: none !important; }
  .board-strip {
  break-inside: avoid;
  box-shadow: none !important;
  }
  .day-strip .day-date-input {
  border: none;
  background: transparent;
  padding: 0;
  }
}

/* ===============================
   BUTTON VARIANTS
   =============================== */

.btn-danger {
  background: #3a1f1f;
  border-color: #6a2a2a;
  color: #f2bcbc;
}

.btn-danger:hover {
  background: #4a2424;
  border-color: #8a3a3a;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  height: auto;
}

/* Orphaned strips — scene no longer in active draft */
.scene-strip.strip-orphaned {
  opacity: 0.55;
  border: 1px dashed rgba(231, 76, 60, 0.5);
}

.scene-strip.strip-orphaned .strip-ie,
.scene-strip.strip-orphaned .strip-dn,
.scene-strip.strip-orphaned .strip-loc-main,
.scene-strip.strip-orphaned .strip-loc-project,
.scene-strip.strip-orphaned .strip-pages,
.scene-strip.strip-orphaned .strip-cast {
  opacity: 0.5;
  font-style: italic;
}

.scene-strip .strip-tag.tag-orphan {
  background: rgba(231, 76, 60, 0.4);
  color: #171717;
  font-weight: 600;
}
