/* Phase 66: Shot list width, Spatial AR/VR pins, specialty creator flow */

body.cbs-phase60 #shotlist-app .card,
#shotlist-app .card {
  width: min(100%, 1640px);
  max-width: none;
}

#shotlist-app .shotlist-wide-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(249,246,239,.98));
  box-shadow: inset 0 0 0 1px rgba(156,119,69,.08);
}

#shotlist-app .shotlist-wide-table {
  min-width: 1180px;
}

#shotlist-app .shotlist-wide-table th,
#shotlist-app .shotlist-wide-table td {
  white-space: nowrap;
}

#shotlist-app .shotlist-wide-table td:nth-child(5),
#shotlist-app .shotlist-wide-table th:nth-child(5) {
  min-width: 240px;
  white-space: normal;
}

#shotlist-app .shotlist-wide-table input,
#shotlist-app .shotlist-wide-table select {
  max-width: 100%;
}

#shotlist-app .shotlist-wide-table td:nth-child(5) input {
  min-width: 220px;
  width: 100%;
}

#shotlist-app .shotlist-summary-row {
  align-items: center;
}

.spx-creator-flow {
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(121, 88, 48, .18);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,249,240,.9));
}

.spx-creator-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.spx-creator-head h3 {
  margin: 0;
  color: #2e2013;
  font-size: 1rem;
}

.spx-creator-head p {
  margin: 4px 0 0;
  color: #6f604d;
  font-size: .8rem;
}

.spx-creator-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .95fr;
  gap: 12px;
}

.spx-creator-card {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(121, 88, 48, .16);
}

.spx-creator-card h4 {
  margin: 0 0 8px;
  color: #2e2013;
  font-size: .82rem;
}

.spx-creator-form {
  display: grid;
  gap: 8px;
}

.spx-creator-form label {
  display: grid;
  gap: 4px;
  font-size: .74rem;
  font-weight: 800;
  color: #664730;
}

.spx-creator-form input {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(121, 88, 48, .18);
  padding: 9px 11px;
  font: inherit;
  color: #2f2114;
  background: rgba(255,255,255,.92);
}

.spx-checklist {
  display: grid;
  gap: 8px;
}

.spx-check {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: .76rem;
  color: #5d4836;
}

.spx-check input {
  margin-top: 2px;
}

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

.spx-next {
  border-radius: 12px;
  padding: 10px;
  background: #fff9ea;
  border: 1px solid rgba(145, 96, 32, .16);
}

.spx-next strong {
  display: block;
  color: #3a250f;
  font-size: .74rem;
}

.spx-next span {
  display: block;
  margin-top: 4px;
  color: #7a634d;
  font-size: .72rem;
  line-height: 1.35;
}

#spatial-app .scc-ar-shell {
  position: absolute;
  right: 16px;
  bottom: 84px;
  z-index: 65;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

#spatial-app .scc-ar-panel,
#spatial-app .scc-ar-list {
  pointer-events: auto;
  border-radius: 18px;
  border: 1px solid rgba(120, 86, 38, .22);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,239,225,.95));
  box-shadow: 0 18px 42px rgba(50, 31, 10, .14);
  backdrop-filter: blur(10px);
}

#spatial-app .scc-ar-panel {
  padding: 13px;
}

#spatial-app .scc-ar-kicker {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: #9a5b18;
}

#spatial-app .scc-ar-title {
  margin: 5px 0 4px;
  color: #2d1c0d;
  font-size: 1rem;
  font-weight: 900;
}

#spatial-app .scc-ar-copy {
  color: #6b5948;
  font-size: .76rem;
  line-height: 1.45;
}

#spatial-app .scc-ar-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

#spatial-app .scc-ar-btn {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(121, 88, 48, .18);
  background: rgba(255,255,255,.88);
  color: #3e2917;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

#spatial-app .scc-ar-btn.active {
  background: #201812;
  color: #fff7df;
}

#spatial-app .scc-ar-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#spatial-app .scc-ar-stat {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(121, 88, 48, .16);
  text-align: center;
}

#spatial-app .scc-ar-stat strong {
  display: block;
  color: #2d1c0d;
  font-size: 1rem;
}

#spatial-app .scc-ar-stat span {
  color: #796652;
  font-size: .68rem;
}

#spatial-app .scc-ar-list {
  max-height: 44vh;
  overflow: auto;
  padding: 12px;
}

#spatial-app .scc-ar-list-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

#spatial-app .scc-ar-pin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed rgba(121, 88, 48, .16);
}

#spatial-app .scc-ar-pin-row:first-of-type {
  border-top: none;
}

#spatial-app .scc-ar-pin-row strong {
  display: block;
  color: #2d1c0d;
  font-size: .76rem;
}

#spatial-app .scc-ar-pin-row span {
  display: block;
  margin-top: 3px;
  color: #7a634d;
  font-size: .68rem;
}

#spatial-app .scc-ar-pin-actions {
  display: flex;
  gap: 6px;
}

#spatial-app .scc-ar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff6dc;
  border: 1px solid rgba(145, 96, 32, .16);
  color: #7b4c12;
  font-size: .66rem;
  font-weight: 900;
}

#spatial-app .idt.scc-ar-pin {
  box-shadow: 0 18px 34px rgba(49, 30, 12, .18);
  border-width: 2px;
}

#spatial-app .idt.scc-ar-pin .idt-type-badge {
  font-weight: 900;
}

#spatial-app .idt.scc-ar-pin--camera { border-color: rgba(59,130,246,.58); }
#spatial-app .idt.scc-ar-pin--talent { border-color: rgba(236,72,153,.56); }
#spatial-app .idt.scc-ar-pin--hazard { border-color: rgba(239,68,68,.58); }
#spatial-app .idt.scc-ar-pin--prop { border-color: rgba(245,158,11,.58); }
#spatial-app .idt.scc-ar-pin--note { border-color: rgba(34,197,94,.58); }

#spatial-app .idt.scc-ar-pin.is-located {
  animation: sccLocatePulse 1s ease 2;
}

@keyframes sccLocatePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,176,64,.45); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(255,176,64,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,176,64,0); }
}

@media (max-width: 920px) {
  .spx-creator-grid {
    grid-template-columns: 1fr;
  }

  #spatial-app .scc-ar-shell {
    right: 10px;
    bottom: 72px;
    width: min(320px, calc(100vw - 20px));
  }
}

@media (max-width: 560px) {
  #shotlist-app .shotlist-wide-table {
    min-width: 980px;
  }

  .spx-creator-flow {
    margin: 0 12px 12px;
    padding: 12px;
  }

  #spatial-app .scc-ar-shell {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 84px;
  }

  #spatial-app .scc-ar-toolbar,
  #spatial-app .scc-ar-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
