/*
 * video-log styles.
 *
 * PLACEHOLDER TOKENS: most of --vl-color-* below are stand-ins, not the real
 * Susquehanna University Design System. Swap this block once design tokens
 * are available (via Claude Design sync or exported CSS/Figma variables).
 *
 * The --vl-nav-* values are the exception: sampled from the footer nav
 * screenshot you provided, so the bottom nav should already match.
 */

:root {
  --vl-color-bg: #b0b2b5;
  --vl-color-surface: #ffffff;
  --vl-color-text: #1a1a1a;
  --vl-color-text-muted: #6b6b6b;
  --vl-color-border: #c6c9ce;
  --vl-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  --vl-color-primary: #8b0000;
  --vl-color-primary-text: #ffffff;
  --vl-color-danger: #b3261e;
  --vl-color-danger-bg: #fdecea;
  --vl-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --vl-nav-bg: #411c32;
  --vl-nav-text: #ffffff;
  --vl-nav-text-active: #ff6a14;
  --vl-nav-height: 60px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--vl-font-body);
  color: var(--vl-color-text);
  background: var(--vl-color-bg);
  padding-bottom: calc(var(--vl-nav-height) + 16px);
}

.vl-account-bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--vl-color-text-muted);
}

.vl-account-bar__status {
  text-align: right;
  flex: 1;
}

.vl-help-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--vl-color-border);
  background: var(--vl-color-surface);
  color: var(--vl-color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.vl-help-btn:hover {
  border-color: var(--vl-color-primary);
  color: var(--vl-color-primary);
}

.vl-account-bar a {
  color: var(--vl-color-primary-text);
  background: var(--vl-color-primary);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.vl-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

.vl-page h1 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 4px;
}

.vl-page-sub {
  color: var(--vl-color-text-muted);
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.vl-card {
  background: var(--vl-color-surface);
  border: 1px solid var(--vl-color-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--vl-card-shadow);
}

.vl-shots-toolbar {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.vl-shots-toolbar .vl-btn {
  min-width: 140px;
  box-shadow: var(--vl-card-shadow);
}

.vl-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 200;
}

.vl-modal-overlay.is-open {
  display: flex;
}

.vl-modal {
  position: relative;
  background: var(--vl-color-surface);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.vl-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--vl-color-text-muted);
  text-decoration: none;
}

.vl-help-modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.vl-help-modal__lead {
  margin-top: 0;
  color: var(--vl-color-text);
}

.vl-help-modal__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vl-color-primary);
  margin: 18px 0 8px;
}

.vl-help-modal__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vl-help-modal__list li {
  line-height: 1.4;
}

.vl-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.vl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.vl-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vl-color-text-muted);
}

.vl-field input,
.vl-field select,
.vl-field textarea {
  border: 1px solid var(--vl-color-border);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.vl-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vl-row > .vl-field {
  flex: 1 1 160px;
}

.vl-row > .vl-field--check {
  flex: 0 0 56px;
  align-items: center;
}

.vl-field--check input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.vl-check-group {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.vl-check-group .vl-field--check {
  flex: 0 0 44px;
}

.vl-btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--vl-color-primary);
  color: var(--vl-color-primary-text);
  text-decoration: none;
}

.vl-btn--ghost {
  background: transparent;
  color: var(--vl-color-text);
  border: 1px solid var(--vl-color-border);
}

.vl-btn--danger {
  background: var(--vl-color-danger);
}

.vl-btn--small {
  padding: 4px 10px;
  font-size: 0.8rem;
}

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

.vl-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--vl-color-border);
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--vl-color-surface);
  box-shadow: var(--vl-card-shadow);
}

.vl-list-item__meta {
  font-size: 0.8rem;
  color: var(--vl-color-text-muted);
}

.vl-list-item.is-ng {
  background: var(--vl-color-danger-bg);
}

.vl-list-item.is-keep {
  background: #e8f5e9;
}

.vl-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vl-color-border);
  color: var(--vl-color-text-muted);
}

.vl-badge--public {
  background: #e3f2e1;
  color: #2b6b25;
}

.vl-badge--keep {
  background: #cdeccf;
  color: #1f6b23;
}

.vl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vl-color-surface);
  border: 1px solid var(--vl-color-border);
}

.vl-table th,
.vl-table td {
  border-bottom: 1px solid var(--vl-color-border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 0.85rem;
}

.vl-table th {
  background: #fafafa;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--vl-color-text-muted);
}

.vl-table input,
.vl-table select,
.vl-table textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  background: transparent;
}

.vl-table input:focus,
.vl-table select:focus,
.vl-table textarea:focus {
  border-color: var(--vl-color-border);
  background: #fff;
}

.vl-table tr.is-ng {
  background: var(--vl-color-danger-bg);
}

.vl-table tr.is-keep {
  background: #e8f5e9;
}

.vl-table td.vl-table__actions {
  white-space: nowrap;
}

.vl-table__timecode {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--vl-color-text-muted);
}

.vl-table tbody tr[data-shot-id] {
  cursor: pointer;
}

.vl-table tbody tr[data-shot-id]:hover {
  outline: 2px solid var(--vl-color-primary);
  outline-offset: -2px;
}

.vl-table th:nth-child(1),
.vl-table td:nth-child(1) {
  width: 44px;
}

.vl-table th:nth-child(2),
.vl-table td:nth-child(2),
.vl-table th:nth-child(3),
.vl-table td:nth-child(3) {
  width: 34px;
}

.vl-table__col-check {
  width: 40px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}

.vl-checkbox-group {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
}

.vl-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
  color: var(--vl-color-text);
}

.vl-checkbox-group--stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.vl-checkbox-group--stack .vl-checkbox-row {
  display: flex;
  gap: 12px;
}

.vl-checkbox-group--stack label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
  color: var(--vl-color-text);
}

.vl-empty {
  color: var(--vl-color-text-muted);
  font-style: italic;
}

.vl-banner {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.vl-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.vl-toolbar input[type="search"] {
  flex: 1 1 200px;
  border: 1px solid var(--vl-color-border);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.vl-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vl-color-text-muted);
  white-space: nowrap;
}

.vl-toolbar select {
  border: 1px solid var(--vl-color-border);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

/* ── Fixed bottom nav ─────────────────────────────────────────────────────── */

.vl-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--vl-nav-height);
  background: var(--vl-nav-bg);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.vl-slate-footer-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--vl-nav-height);
  z-index: 99;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: #e3f2e1;
  color: #2b6b25;
  border-top: 1px solid #bfe3bc;
}

.vl-nav a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--vl-nav-text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vl-nav__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vl-nav a:hover,
.vl-nav a.is-active {
  color: var(--vl-nav-text-active);
}

/* ── Slate page: clapperboard, timecode clock, bordered fields ───────────── */

.vl-slateboard {
  max-width: 760px;
  margin: 0 auto;
  background: transparent;
}

.vl-slateboard__hinge {
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.vl-slateboard__hinge img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.vl-slateboard__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 240;
}

.vl-slateboard__top-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 8% 50%; /* matches the hinge pegs drawn into slate-bottom-2.png */
  /* Durations are set from JS (see slate.php) so they stay in sync with the
     matching setTimeout delays — same source of truth, ready to be sourced
     from Settings later. Fallbacks here match today's defaults. */
  transition: transform var(--vl-close-duration, 0.9s) ease;
}

.vl-slateboard__top-wrap.is-open {
  transform: rotate(-65deg);
  transition: transform var(--vl-open-duration, 0.4s) ease;
}

.vl-slateboard__bottom {
  position: absolute;
  inset: 0;
  z-index: 2; /* above the top piece — slate-bottom-2.png's hinge graphic must show over it */
}

.vl-slateboard__top,
.vl-slateboard__bottom {
  display: block;
  width: 100%;
  height: 100%;
}

.vl-slate-clock {
  position: relative;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  background: #000;
  color: #ff3232;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 3.6rem;
  letter-spacing: 2px;
  text-align: center;
  padding: 14px 0;
  border: 1px solid #000;
}

/* Take-in-progress modal reuses the .vl-keypad card exactly (same overlay,
   header, and display styling as the Scene/Take keypad and Shot Type
   picker) — only the display color is overridden here, to match the red
   timecode clock it sits under instead of the keypad's near-black digits. */
.vl-take-modal .vl-keypad__display {
  color: #ff3232;
}

.vl-take-modal .vl-btn-pill--block:last-child {
  margin-bottom: 0;
}

/* Same width as the clapper/clock above it, no gap — reads as one unit.
   Padding removed so the grid's own border touches the card's border
   directly (no inset gap); spacing is added back around the button only. */
.vl-card.vl-slate-fields {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.vl-slate-fields__actions {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.vl-slate-fields__project {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vl-color-text-muted);
}

.vl-take-timer {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--vl-color-primary);
}

.vl-slate-flash {
  position: fixed;
  inset: 0;
  background: #ff0000;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.05s linear;
}

.vl-slate-flash.is-flashing {
  opacity: 1;
}

.vl-slate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 3fr; /* Slate/Scene/Take narrow, Shot Type = 50% */
  border: 1px solid #000;
  background: #fff;
  margin-bottom: 16px;
}

.vl-slate-cell {
  position: relative;
  border: 1px solid #000;
  min-height: 72px;
}

.vl-slate-cell--span2 {
  grid-column: span 2;
}

.vl-slate-cell--full {
  grid-column: 1 / -1;
  min-height: 96px;
}

.vl-slate-cell--checks {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 24px;
}

.vl-slate-cell__label {
  position: absolute;
  left: 8px;
  bottom: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000;
  pointer-events: none;
  z-index: 1;
}

.vl-slate-cell__value {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font-size: 1.55rem;
  text-align: center;
  font-family: inherit;
  color: #000;
  padding: 10px 8px 24px;
}

.vl-slate-cell__value:focus {
  outline: 1px solid var(--vl-color-primary);
  outline-offset: -1px;
}

.vl-keypad-input,
.vl-picker-input {
  cursor: pointer;
  caret-color: transparent;
}

.vl-keypad-overlay {
  align-items: center;
}

.vl-keypad {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.vl-keypad__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}

.vl-keypad__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c7775;
}

.vl-keypad__display {
  font-size: 2.4rem;
  font-weight: 700;
  color: #231f20;
  line-height: 1.1;
}

.vl-keypad__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.vl-keypad__key {
  border: none;
  border-radius: 10px;
  background: #f4f2f1;
  color: #231f20;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px 0;
  cursor: pointer;
}

.vl-keypad__key:active {
  background: #e7e3e2;
}

.vl-keypad__key--muted {
  font-size: 0.9rem;
  color: #651c32;
}

.vl-keypad__done {
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
}

.vl-picker__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vl-picker__option {
  border: 1px solid var(--vl-color-border);
  border-radius: 10px;
  background: #f4f2f1;
  color: #231f20;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
}

.vl-picker__option:active {
  background: #e7e3e2;
}

.vl-picker__option.is-selected {
  border-color: #651c32;
  background: #651c32;
  color: #ffffff;
}

.vl-slate-cell__value--text {
  font-size: 1.8rem;
  line-height: 1.3;
  text-align: left;
  resize: none;
  padding: 6px 8px 20px;
}

.vl-slate-cell__checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

.vl-slate-cell__checks label {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .vl-slate-grid { grid-template-columns: repeat(2, 1fr); }
  /* --span2 keeps its base "span 2" rule here on purpose — on this 2-column
     mobile grid that means the full row width, so "Other" (and anything
     else using --span2) still reaches the right edge. */
}

/*
 * Shot Log card + modal redesign (see Shot Log.dc.html mockup, built in
 * Claude Design). Colors here are intentionally scoped to this page's own
 * classes rather than the shared --vl-color-* placeholder tokens above, so
 * Project/Slate/Settings keep their current look until a real site-wide
 * design system replaces those placeholders.
 */
.vl-shotlog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.vl-shotlog-header__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #231f20;
}

.vl-shotlog-header__project {
  color: #231f20;
  font-weight: 700;
}

.vl-shotlog-header__count {
  font-size: 0.8rem;
  color: #545859;
  white-space: nowrap;
  padding-top: 4px;
}

.vl-shotcards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.vl-shotcard {
  display: block;
  background: #ffffff;
  border: 1px solid var(--vl-color-border);
  border-left: 4px solid var(--vl-color-border);
  border-radius: 8px;
  box-shadow: var(--vl-card-shadow);
  padding: 14px 16px;
  margin: 0;
}

.vl-shotcard.is-keep {
  border-left-color: #3c7a45;
}

.vl-shotcard.is-ng {
  border-left-color: #9e292e;
}

.vl-shotcard__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.vl-shotcard__badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #651c32;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-shotcard__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.vl-shotcard__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vl-shotcard__field--full {
  margin-bottom: 12px;
}

.vl-shotcard__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c7775;
}

.vl-shotcard__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #231f20;
}

.vl-shotcard__value--timecode {
  color: #411c32;
  font-size: 0.85rem;
}

.vl-tc-group {
  display: flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.vl-tc-box {
  flex: 0 0 20px;
  width: 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #411c32;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  padding: 2px 0;
}

.vl-tc-box:hover {
  background: #f4f2f1;
}

.vl-tc-box:focus {
  border-color: var(--vl-color-border);
  background: #ffffff;
  outline: none;
}

.vl-tc-colon {
  flex: 0 0 auto;
  color: #411c32;
  font-weight: 700;
  font-size: 0.8rem;
}

.vl-tc-sep {
  flex: 0 0 auto;
  color: #7c7775;
  margin: 0 4px;
}

.vl-tc-boxed {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-tc-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--vl-color-border);
  border-radius: 6px;
  padding: 6px 8px;
}

.vl-tc-side-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c7775;
}

.vl-tc-arrow {
  flex: 0 0 auto;
  color: #7c7775;
  font-size: 0.9rem;
}

.vl-shotcard__value--input {
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 2px 4px;
  margin: -2px -4px;
  width: 100%;
  max-width: 90px;
}

select.vl-shotcard__value--input {
  max-width: 140px;
  cursor: pointer;
}

.vl-shotcard__value--full {
  max-width: 100%;
}

.vl-shotcard__value--input:disabled {
  color: #231f20;
  opacity: 1;
  cursor: default;
}

.vl-shotcard__value--input:not(:disabled):hover {
  background: #f4f2f1;
}

.vl-shotcard__value--input:not(:disabled):focus {
  border-color: var(--vl-color-border);
  background: #ffffff;
  outline: none;
}

.vl-shotcard__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.vl-shotcard__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.vl-shotcard__checkblock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vl-shotcard__checkgroup {
  display: flex;
  gap: 14px;
}

.vl-shotcard__statusgroup {
  display: flex;
  gap: 8px;
}

.vl-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
}

.vl-status-pill--ng {
  border: 1px solid #9e292e;
  color: #9e292e;
}

.vl-status-pill--ng.is-active {
  background: #9e292e;
  color: #ffffff;
}

.vl-status-pill--keep {
  border: 1px solid #3c7a45;
  color: #3c7a45;
}

.vl-status-pill--keep.is-active {
  background: #3c7a45;
  color: #ffffff;
}

.vl-status-pill:disabled {
  cursor: default;
  opacity: 0.6;
}

.vl-shotcard__checkitem {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c7775;
  cursor: pointer;
}

.vl-shotcard__checkitem--ng {
  color: #9e292e;
}

.vl-shotcard__checkitem--keep {
  color: #3c7a45;
}

.vl-shotcard__checkbox-input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 14px;
  height: 14px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.vl-shotcard__checkbox-input:disabled {
  cursor: default;
}

.vl-shotcard__checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--vl-color-border);
  border-radius: 3px;
  display: inline-block;
  position: relative;
}

.vl-shotcard__checkbox-input:checked ~ .vl-shotcard__checkbox {
  background: #651c32;
  border-color: #651c32;
}

.vl-shotcard__checkbox-input:checked ~ .vl-shotcard__checkbox::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vl-shotcard__checkbox-input:focus-visible ~ .vl-shotcard__checkbox {
  outline: 2px solid #651c32;
  outline-offset: 1px;
}

.vl-shotcard__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--vl-color-border);
}

.vl-shotcard__notetext {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: #231f20;
  margin-top: 2px;
  padding: 4px;
  margin-left: -4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  resize: none;
}

.vl-shotcard__notetext:disabled {
  color: #231f20;
  opacity: 1;
}

.vl-shotcard__notetext:not(:disabled):hover {
  background: #f4f2f1;
}

.vl-shotcard__notetext:not(:disabled):focus {
  border-color: var(--vl-color-border);
  background: #ffffff;
  outline: none;
}

.vl-add-shot-btn {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px dashed var(--vl-color-border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #411c32;
  cursor: pointer;
}

.vl-modal--shotlog {
  padding: 0;
  overflow: hidden;
  max-width: 640px;
}

.vl-shotmodal__header {
  background: #651c32;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vl-shotmodal__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.vl-shotmodal__title {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.vl-shotmodal__close {
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.85;
}

.vl-shotmodal__body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.vl-shotmodal__grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.vl-shotmodal__grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.vl-shotmodal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.vl-shotmodal__field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c7775;
}

.vl-shotmodal__field input,
.vl-shotmodal__field select,
.vl-shotmodal__field textarea {
  border: 1px solid var(--vl-color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
}

.vl-shotmodal__field input:disabled {
  color: #7c7775;
  background: #f4f2f1;
}

.vl-shotmodal__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: #efe6e3;
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.vl-shotmodal__bar-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vl-shotmodal__bar-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c7775;
}

.vl-shotmodal__bar-checks {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.vl-shotmodal__bar-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vl-shotmodal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.vl-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #7c7775;
  background: #e7e3e2;
  color: #231f20;
}

.vl-btn-pill--danger {
  border: none;
  background: #9e292e;
  color: #ffffff;
}

.vl-btn-pill--cta {
  border: 1px solid #ff6a14;
  background: #ff6a14;
  color: #ffffff;
}

.vl-btn-pill--cta:hover {
  background: #e65f10;
  border-color: #e65f10;
}

.vl-btn-pill--outline-maroon {
  border: 1px solid #651c32;
  background: #ffffff;
  color: #651c32;
}

.vl-btn-pill--outline-maroon:hover {
  background: #f4f2f1;
}

.vl-btn-pill--block {
  display: flex;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.vl-link-plain {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 4px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #411c32;
  text-decoration: none;
  cursor: pointer;
}

.vl-link-plain:hover {
  text-decoration: underline;
}

.vl-projects-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--vl-color-border);
  margin-bottom: 16px;
}

.vl-projects-tabs__btn {
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 8px 2px 10px;
  margin-bottom: -1px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #545859;
  cursor: pointer;
}

.vl-projects-tabs__btn.is-active {
  color: #651c32;
  border-bottom-color: #ff6a14;
}

.vl-projects-panel.is-hidden {
  display: none;
}

.vl-btn-pill--toolbar {
  margin-left: auto;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-color: var(--vl-color-border);
}

.vl-btn-pill--toolbar:hover {
  background: #dcd7d5;
}

.vl-viewtabs {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.vl-viewtabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #651c32;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: #ffffff;
  color: #651c32;
}

.vl-viewtabs__btn.is-active {
  background: #651c32;
  color: #ffffff;
}

.vl-viewtabs__btn:not(.is-active):hover {
  background: #f4f2f1;
}

.vl-shotmodal__footer .vl-btn-pill {
  padding: 10px 20px;
  font-size: 0.85rem;
  border: 1px solid var(--vl-color-border);
  background: #ffffff;
}

.vl-shotmodal__footer .vl-btn-pill--ghost {
  border: 1px solid var(--vl-color-border);
  background: #ffffff;
  color: #231f20;
}

.vl-shotmodal__footer .vl-btn-pill--primary {
  border: none;
  background: #651c32;
  color: #ffffff;
}

@media (max-width: 640px) {
  .vl-shotcard__notes,
  .vl-shotmodal__grid3,
  .vl-shotmodal__grid2 {
    grid-template-columns: 1fr;
  }
}

/*
 * List View: a Card/List toggle on the same page (no navigation). "Card"
 * is the normal stacked layout above; "List" reuses the exact same
 * .vl-shotcard forms (no duplicated fields, no staleness) with a class that
 * lays their existing sections out in one row instead of stacked, plus a
 * header row (built from the same classes, so its column widths line up)
 * with clickable, sortable column labels.
 */
.vl-sort-th {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vl-sort-th:hover {
  color: #651c32;
}

.vl-sort-th:hover .vl-sort-arrow {
  opacity: 1;
}

/* Every sortable header shows this neutral glyph at all times (not just on
   hover/click) — otherwise nothing on the page hints that a column heading
   is clickable at all. The active column's arrow (set via JS) overrides
   this with a bigger, solid, single-direction indicator. */
.vl-sort-arrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: #651c32;
  opacity: 0.45;
}

.vl-sort-arrow.is-active {
  font-size: 0.85rem;
  opacity: 1;
}

.vl-shotcard--header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin-bottom: 0;
  background: #eee;
  border: none;
  border-bottom: 2px solid var(--vl-color-border);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #545859;
}

.vl-shotcard--header[hidden] {
  display: none;
}

/* List View drops the colored square badge for a plain text cell, matching
   the print view's plain "Slate" column. */
#shotCards.is-list .vl-shotcard__badge,
.vl-shotcard--header .vl-shotcard__badge {
  background: transparent;
  color: #231f20;
  width: auto;
  height: auto;
  flex: 0 0 44px;
  min-width: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: flex-start;
  overflow: hidden;
}

.vl-shotcard--header .vl-shotcard__badge {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #545859;
}

.vl-shotcard--header .vl-shotcard__top,
.vl-shotcard--header .vl-shotcard__checks,
.vl-shotcard--header .vl-shotcard__notes {
  margin: 0;
  padding: 0;
  border: none;
}

/* Header and rows share one scroll container so they always move together
   horizontally — scrolling #shotCards alone (without the header) would let
   the two drift out of alignment the moment the row content is wider than
   the viewport. */
#shotListScroll.is-list {
  overflow-x: auto;
}

#shotCards.is-list {
  gap: 0;
}

#shotCards.is-list .vl-shotcard,
.vl-shotcard--header {
  min-width: 860px;
}

/* Plain table rows, not cards: no per-row shadow/radius/gap, just a
   dividing line, matching the look of the print view's table. */
#shotCards.is-list .vl-shotcard {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--vl-color-border);
}

#shotCards.is-list .vl-shotcard__top,
.vl-shotcard--header .vl-shotcard__top {
  margin-bottom: 0;
  flex: 0 0 auto;
  gap: 6px;
}

/* Edit is dropped from List View to save space — editing still works
   inline, and full editing is always available via Card View. Delete stays,
   sized down to fit the dense row. */
#shotCards.is-list .vl-shotcard__actions,
.vl-shotcard--header .vl-shotcard__actions {
  flex: 0 0 auto;
  gap: 0;
}

#shotCards.is-list .vl-shotcard__actions-edit,
.vl-shotcard--header .vl-shotcard__actions-edit {
  display: none;
}

#shotCards.is-list .vl-shotcard__actions .vl-btn-pill--danger {
  padding: 3px 10px;
  font-size: 0.7rem;
}

#shotCards.is-list .vl-shotcard__meta,
.vl-shotcard--header .vl-shotcard__meta {
  flex-wrap: nowrap;
  gap: 5px;
}

/* Fixed (not just minimum) widths, identical in the header and every row,
   so a select/input's natural content width can never nudge a column out
   of alignment with its header label. Scene/Take stay nested in .meta;
   Shot Type and Timecode are full-width fields in Card View, but in List
   View they become fixed-width columns like everything else — matched by
   the --shottype/--timecode modifier classes rather than nth-child, since
   they're no longer the 3rd/4th children of .meta. */
#shotCards.is-list .vl-shotcard__field,
.vl-shotcard--header .vl-shotcard__field {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}
#shotCards.is-list .vl-shotcard__field--full,
.vl-shotcard--header .vl-shotcard__field--full {
  margin-bottom: 0;
}
#shotCards.is-list .vl-shotcard__meta .vl-shotcard__field:nth-child(1),
.vl-shotcard--header .vl-shotcard__meta .vl-shotcard__field:nth-child(1) { flex-basis: 32px; }
#shotCards.is-list .vl-shotcard__meta .vl-shotcard__field:nth-child(2),
.vl-shotcard--header .vl-shotcard__meta .vl-shotcard__field:nth-child(2) { flex-basis: 32px; }
#shotCards.is-list .vl-shotcard__field--shottype,
.vl-shotcard--header .vl-shotcard__field--shottype { flex-basis: 90px; }
#shotCards.is-list .vl-shotcard__field--timecode,
.vl-shotcard--header .vl-shotcard__field--timecode { flex-basis: 150px; }

#shotCards.is-list .vl-shotcard__value--input,
.vl-shotcard--header .vl-shotcard__field .vl-sort-th {
  max-width: 100%;
}

#shotCards.is-list .vl-shotcard__value--full {
  max-width: 100%;
}

#shotCards.is-list .vl-tc-boxed {
  gap: 3px;
}

#shotCards.is-list .vl-tc-side {
  border: none;
  padding: 0;
}

#shotCards.is-list .vl-tc-side-label {
  display: none;
}

#shotCards.is-list .vl-tc-arrow {
  font-size: 0.7rem;
}

#shotCards.is-list .vl-shotcard__label {
  display: none;
}

#shotCards.is-list .vl-shotcard__checks,
.vl-shotcard--header .vl-shotcard__checks {
  flex: 0 0 auto;
  gap: 6px;
}

#shotCards.is-list .vl-shotcard__checkblock,
.vl-shotcard--header .vl-shotcard__checkblock {
  gap: 0;
}

#shotCards.is-list .vl-shotcard__checkgroup,
.vl-shotcard--header .vl-shotcard__checkgroup,
#shotCards.is-list .vl-shotcard__statusgroup,
.vl-shotcard--header .vl-shotcard__statusgroup {
  gap: 5px;
}

#shotCards.is-list .vl-shotcard__checkitem,
.vl-shotcard--header .vl-shotcard__checkitem {
  flex: 0 0 34px;
  min-width: 0;
  width: 34px;
  overflow: hidden;
}

.vl-shotcard--header .vl-shotcard__checkitem {
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

/* NG/Keep header labels are short text ("NG"/"Keep"), not checkboxes, so
   they don't need the fixed 34px column width CH1/CH2/MOS use. */
.vl-shotcard--header .vl-shotcard__checkitem--ng,
.vl-shotcard--header .vl-shotcard__checkitem--keep {
  flex: 0 0 auto;
  width: auto;
}

#shotCards.is-list .vl-status-pill {
  flex: 0 0 auto;
  padding: 2px 10px;
  font-size: 0.65rem;
}

/* List View rows tint their full row background for status, matching the
   density of a reference table — Card View uses a left accent stripe
   instead (see .vl-shotcard.is-keep/.is-ng above). */
#shotCards.is-list .vl-shotcard.is-keep {
  background: #e7f2e9;
}

#shotCards.is-list .vl-shotcard.is-ng {
  background: #fdecea;
}

#shotCards.is-list .vl-shotcard__notes,
.vl-shotcard--header .vl-shotcard__notes {
  border-top: none;
  padding-top: 0;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

#shotCards.is-list .vl-shotcard__notes textarea {
  height: 32px;
  overflow: hidden;
  resize: none;
}

/* Uniform, unbolded text sized like the print view — List View is meant to
   read like a dense reference table, not a stack of cards, so nothing here
   should compete visually the way a card's bold values do. */
#shotCards.is-list .vl-shotcard__badge,
#shotCards.is-list .vl-shotcard__value,
#shotCards.is-list .vl-shotcard__value--input,
#shotCards.is-list .vl-shotcard__checkitem,
#shotCards.is-list .vl-shotcard__notetext {
  font-size: 0.75rem;
  font-weight: 400;
}

/* Timecode reads smaller still and packed tighter — it's 8 boxes crammed
   into one column, the single biggest space cost in the row. */
#shotCards.is-list .vl-tc-group {
  gap: 0;
}

#shotCards.is-list .vl-tc-box {
  flex-basis: 15px;
  width: 15px;
  font-size: 0.65rem;
  font-weight: 400;
  padding: 2px 0;
}

#shotCards.is-list .vl-tc-colon {
  font-size: 0.65rem;
  font-weight: 400;
}

#shotCards.is-list .vl-tc-sep {
  margin: 0 2px;
}
