.tabs .shot-style-switch {
  margin-left: auto;
  border: 1px solid #43566f;
  border-radius: 6px;
  width: 40px;
  height: 36px;
  padding: 6px;
  color: #bfd3ec;
  flex-shrink: 0;
}

.shot-style-switch svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.tabs button.shot-style-switch:hover:not(:disabled) {
  background: #2a3e55;
  border-color: #9ebde7;
}

.shots-table .shotnum,.shots-table .shot-number-prefix,.shots-table .shot-number-key {
  display: inline;
  white-space: nowrap;
  overflow-wrap: normal;
}

.shots-table .shot-number-prefix {
  font-size: 17px;
  font-weight: 400;
  color: #a6b4c7;
}

.shots-table .shot-number-key {
  font-size: 29px;
  font-weight: 750;
  color: #f5f8ff;
}

.shots-table .shot-owner-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.shots-table .shot-owner-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #283442;
  border: 1px solid #3c4d61;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 19px;
  font-weight: 500;
  color: #e0e8f3;
}

.shot-owner-name:before {
  content: '';
  width: 16px;
  height: 18px;
  flex-shrink: 0;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcc9d7' stroke-width='1.6'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E");
}

.shots-table .shot-stage .tag {
  font-size: 14px;
  color: #ffe3a7;
  background: #463820;
  border-color: #8c6e34;
}

.shots-table [data-stage='制作中'] .shot-stage .tag {
  color: #c4dcff;
  background: #243b59;
  border-color: #4e79ab;
}

.shots-table [data-stage='待确认'] .shot-stage .tag,
.shots-table [data-stage='待制作'] .shot-stage .tag {
  color: var(--muted);
  background: var(--input-bg);
  border-color: var(--line);
}

.shots-table [data-stage='需修改'] .shot-stage .tag {
  color: #ffd1c9;
  background: #4b2b28;
  border-color: #ab665b;
}

.shots-table [data-stage='已完成'] .shot-stage .tag {
  color: #bce8d4;
  background: #203d32;
  border-color: #477e68;
}

.shots-table .shot-details-link {
  border: 1px solid #425872;
  background: #222e3d;
  padding: 5px 8px;
  border-radius: 6px;
  color: #e0edff;
}

.shots-table .shot-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.shots-table .shot-operation {
  width: 205px;
}

.shot-style-5 {
  overflow: visible;
  border: 0;
  background: transparent;
}

.shot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 16px;
  align-items: start;
}

.shot-card {
  min-width: 0;
  position: relative;
  background: #1f2834;
  border: 1px solid #3c4d63;
  border-radius: 8px;
  transition: transform 120ms cubic-bezier(.16,1,.3,1),border-color 100ms,box-shadow 120ms;
}

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

.shot-card .shot-image-slot {
  margin: 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background: #0c1118;
}

.shot-card .shot-image-target {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16/9;
}

.shot-card .shot-image-target img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.shot-card-body {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.shot-card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
}

.shot-card-head .shot-stage {
  margin: 0;
}

.shot-card .shot-number-key {
  font-size: 25px;
}

.shot-card .shot-number-prefix {
  font-size: 14px;
}

.shot-card .shot-owner-list {
  gap: 8px 14px;
}

.shot-card .shot-owner-name:before {
  width: 13px;
  height: 15px;
}

.shot-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  color: #c0cddd;
}

.shot-card-facts>span {
  padding: 0;
  border: 0;
  background: transparent;
}

.shot-card-facts>span+span:before {
  content: "·";
  color: #8294aa;
  margin-right: 8px;
}

.shot-card-facts .duration {
  color: #b7e0dd;
  background: transparent;
}

.shot-style-5 .shot-selection {
  display: none;
}

.shot-style-5.is-owner-batch .shot-selection {
  display: flex;
  padding: 8px 12px;
  border-bottom: 1px solid #40556c;
  align-items: center;
  gap: 8px;
}

.shot-style-5 .grid-batch-all {
  display: none;
}

.shot-style-5.is-owner-batch .grid-batch-all {
  display: block;
  margin: 0 0 12px;
}

.shot-card.is-owner-selected {
  outline: 2px solid #9abfee;
}

.shot-card.writing {
  z-index: 20;
  transform: translateY(-8px);
  border-color: #d5eaff;
  outline: 2px solid #bbddff;
  outline-offset: -1px;
  box-shadow: 0 20px 42px #000a,0 0 8px 2px #badfff77,0 0 24px 5px #78baff40,0 0 46px 8px #72afff1f;
}

.shot-card.writing .shot-card-body {
  background: #253449;
}

.quick-feedback-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.quick-feedback-header strong {
  font-size: 20px;
}

.quick-feedback .hint {
  font-size: 14px;
}

.quick-feedback .feedback-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quick-feedback .feedback-line {
  display: grid;
  grid-template-columns: 25px minmax(0,1fr);
  gap: 6px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.quick-feedback .line-number {
  font-size: 20px;
  font-weight: 650;
  color: #d8e6fa;
  padding-top: 8px;
}

.quick-feedback .line-files {
  display: grid;
  gap: 8px;
}

.quick-feedback .feedback-media img,.quick-feedback .feedback-media video {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  background: #0c1118;
}

.quick-feedback .media-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.quick-feedback .media-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.quick-feedback .media-caption select {
  max-width: 120px;
  font-size: 14px;
  padding: 3px;
}

.quick-feedback .drop-target {
  background: #253d56;
  border-color: #93b8e8;
}

.quick-feedback footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.quick-feedback footer button {
  font-size: 14px;
}

.quick-feedback .quick-attachment-button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 24px;
  background: transparent;
  border-color: #435975;
  color: #cad8eb;
}

.quick-feedback .submit-feedback {
  margin-left: auto;
  background: #d84950;
  border-color: #d84950;
  color: white;
  font-size: 18px;
  font-weight: 650;
  padding: 8px 20px;
}

.quick-feedback details {
  font-size: 14px;
  margin-top: 10px;
}

.quick-feedback .quick-error:empty {
  display: none;
}

.quick-feedback .quick-error {
  font-size: 15px;
}

.quick-feedback-row td {
  padding: 10px!important;
}

.quick-feedback-row .quick-feedback {
  min-width: 0;
}

.gallery video,.image-tile video {
  max-width: 100%;
  max-height: 280px;
}

@media(max-width:650px) {
  .shot-card-grid {
    grid-template-columns: 1fr;
  }

  .quick-feedback {
    font-size: 17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .shot-card {
    transition: none;
  }
}

.shot-card .shot-image-slot,.shot-style-8 .shot-image-slot {
  max-height: none;
}

.shots-table .shot-actions button {
  font-size: 16px;
  min-height: 36px;
}

.shots-table .shot-stage .shot-stage-select {
  font-size: 14px;
  padding: 4px 7px;
}

.shot-card .shot-owner-name {
  font-size: 18px;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1.35;
}

.shot-card .shot-assignment {
  padding: 0;
  margin: 0;
}

.shot-card .shot-operation {
  width: auto;
  padding: 0;
  border: 0;
  border-top: 1px solid #384657;
  padding-top: 10px;
  margin-top: 2px;
  background: transparent;
}

.shot-card .shot-actions .quick-feedback-launch {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 18px;
  font-weight: 700;
  background: #b3cef3;
  color: #112238;
  border-color: #b3cef3;
}

.shot-card .shot-actions .shot-details-link {
  background: transparent;
  border-color: transparent;
  padding: 4px 6px;
  font-size: 16px;
  font-weight: 400;
}

.shot-card .shot-actions .shot-edit-link {
  margin-left: auto;
  color: #b2bed0;
  background: transparent;
  border-color: transparent;
}

.quick-feedback textarea {
  font: inherit;
  line-height: 1.6;
  padding: 6px;
  width: 100%;
  min-height: 46px;
  resize: none;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3b4c60;
  color: #edf2f8;
  margin: 0;
}

.quick-feedback {
  box-sizing: border-box;
  padding: 16px;
  background: #151e29;
  border: 1px solid #435975;
  border-radius: 7px;
  font-size: 18px;
  margin: 0;
}

.shot-card>.quick-feedback {
  position: absolute;
  top: calc(100% - 1px);
  left: -2px;
  right: -2px;
  z-index: 21;
  border: 3px solid #bbddff;
  border-top: 1px solid #6e97c5;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 22px 42px #000a,0 3px 8px 2px #badfff66,0 5px 24px 5px #78baff40;
  background: #172334;
  max-height: min(680px,80vh);
  overflow-y: auto;
}

.quick-feedback .feedback-media {
  border: 1px solid #435975;
  padding: 6px;
  border-radius: 6px;
  background: #1d2a3a;
  min-width: 0;
  cursor: grab;
  margin: 8px 0;
}

.shots-table .shot-actions .shot-edit-link {
  min-width: 28px;
  width: 28px;
  padding: 4px;
}

.shot-mode-slot:has(#owner-batch-toolbar[hidden]) {
  height: 0;
  margin: 0;
  overflow: hidden;
}

.tabs button.shot-style-switch {
  border: 1px solid #43566f;
  border-radius: 6px;
}

/* Approved 08: seven distributed columns and separate rounded shot rows. */

.shot-style-8 {
  --shot-grid-columns: 250px 110px 70px minmax(110px,1fr) 140px 140px 180px 175px;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: auto;
}

.shot-style-8.shots-table table {
  display: block;
  min-width: 1256px;
  border-collapse: separate;
  background: transparent;
}

.shot-style-8 colgroup {
  display: none;
}

.shot-style-8 thead {
  display: block;
  margin-bottom: 8px;
}

.shot-style-8 tbody {
  display: grid;
  gap: 8px;
}

.shot-style-8 thead tr,.shot-style-8 tbody tr[data-shotrow] {
  position: relative;
  display: grid;
  grid-template-columns: var(--shot-grid-columns);
  gap: 18px;
  padding: 12px 14px;
  align-items: center;
  border: 1px solid #3c4d63;
  border-radius: 8px;
  background: #1f2834;
  min-width: 1256px;
  box-sizing: border-box;
}

.shot-style-8 thead tr {
  background: #151f2b;
}

.shot-style-8.shots-table thead th,.shot-style-8.shots-table tbody td {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
  width: auto;
  background: transparent!important;
  overflow-wrap: anywhere;
  text-align: left;
  box-sizing: border-box;
}

.shot-style-8.shots-table thead th {
  font-size: 15px;
  font-weight: 500;
  color: #acbacd;
}

.shot-style-8.shots-table tbody td.shot-identity {
  display: grid;
  gap: 6px;
  padding: 0;
}

.shot-style-8 .shot-identity-head {
  margin: 0;
}

.shot-style-8 .shot-image-slot {
  max-height: 141px;
  aspect-ratio: 16/9;
}

.shot-style-8 .shot-image-target {
  width: 100%;
  height: 100%;
  background: #0c1118;
}

.shot-style-8 .shot-image-target img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.shot-style-8.shots-table tbody td.shot-timing {
  display: grid;
  gap: 7px;
}

.shot-style-8 .frame-value {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #b5c2d3;
}

.shot-style-8 .duration-value {
  font-size: 18px;
  font-weight: 400;
  color: #a8c7c6;
}

.shot-style-8 .shot-characters {
  font-size: 21px;
  font-weight: 400;
  color: #b7c5d7;
}

.shot-style-8 .shot-description {
  font-size: 18px;
  color: #d7e0ec;
}

.shot-style-8 .shot-value-empty {
  font-size: 16px;
  color: #90a0b5;
}

.shot-style-8 .shot-owner-list {
  gap: 6px;
  align-items: center;
}

.shot-style-8 .shot-owner-name {
  font-size: 19px;
  line-height: 1.35;
}

.shot-style-8 .shot-assignment {
  display: grid;
  gap: 12px;
}

.shot-style-8 .shot-stage {
  margin: 0;
}

.shot-style-8 .shot-stage .tag {
  display: block;
  text-align: left;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}

.shot-style-8 .shot-attachment img {
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
}

.shot-style-8 .shot-operation .shot-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

.shot-style-8 .shot-operation .shot-actions button {
  font-size: 14px;
  padding: 4px 6px;
  min-height: 30px;
}

.shot-style-8 .shot-operation .shot-actions .shot-edit-link {
  width: auto;
  min-width: 32px;
  background: transparent;
  border-color: transparent;
  color: #99a9bd;
}

.shot-style-8.shots-table th.shot-selection,.shot-style-8.shots-table td.shot-selection {
  display: none;
}

.shot-style-8.is-owner-batch.shots-table td.shot-selection {
  display: block;
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 0;
}

.shot-style-8.is-owner-batch .shot-identity-head {
  padding-left: 28px;
}

.shot-style-8.is-owner-batch th.shot-selection {
  display: block!important;
  position: absolute;
  left: 14px;
  top: 12px;
}

.shot-style-8.is-owner-batch thead th:nth-child(2) {
  padding-left: 28px;
}

.shot-style-8.is-owner-batch tr.is-owner-selected {
  outline: 2px solid #9abfee;
  outline-offset: -2px;
}

.shot-style-8 tbody tr.quick-feedback-row {
  display: block;
  border: 0;
  background: transparent;
}

.shot-style-8.shots-table tr.quick-feedback-row>td {
  display: block;
  padding: 0!important;
}

.shot-style-8 .quick-feedback-row .quick-feedback {
  border: 1px solid #435975;
  border-radius: 7px;
  margin: 0;
  width: calc(100vw - 280px);
}

@media(min-width:1700px) {
  .shot-style-8 {
    --shot-grid-columns: clamp(270px,18vw,360px) minmax(150px,.8fr) minmax(90px,.5fr) minmax(180px,1.3fr) minmax(160px,1fr) minmax(160px,1fr) minmax(210px,1.1fr) 215px;
  }

  .shot-style-8 .shot-image-slot {
    max-height: 185px;
  }

  .shot-style-8 .shot-attachment img {
    max-height: 95px;
  }
}

@media(max-width:650px) {
  .shot-style-8 .quick-feedback-row .quick-feedback {
    width: calc(100vw - 56px);
  }
}

/* Keep the eight visible columns aligned in the heading and every shot row. */
@media(min-width:681px) and (max-width:1400px){
  .shot-style-8{--shot-grid-columns:210px 105px 72px minmax(90px,1fr) 120px 100px 170px 175px}
  .shot-style-8.shots-table table,.shot-style-8 thead tr,.shot-style-8 tbody tr[data-shotrow]{min-width:1160px}
  .shot-style-8 thead tr,.shot-style-8 tbody tr[data-shotrow]{gap:12px;padding:12px}
  .shot-style-8 .shot-owner-name{font-size:18px}
  .shot-style-8 .shot-attachment{min-width:0}
  .shot-style-8 .attachment-previews{grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr))}
  .shot-style-8 .quick-feedback-row .quick-feedback{width:100%;min-width:0}
}
.shot-inline-text{white-space:pre-wrap;overflow-wrap:anywhere;min-height:28px;cursor:text}
.shot-inline-text[aria-readonly=true]{cursor:default}
.shot-inline-text[contenteditable=true]{background:#d6e3ef!important;color:#172f43!important;caret-color:#172f43;border:1px solid #91b9db;border-radius:4px;padding:8px;min-height:60px;font-size:14px;line-height:1.6}
.shot-style-8 .shot-client-notes,.shot-style-8 .shot-remarks{font-size:16px;color:var(--text-secondary)}
.shot-card .shot-card-characters{display:inline-flex;align-items:center;gap:3px;min-width:0}
.shot-card .shot-card-characters [data-shot-inline]{display:inline-block;min-width:18px;min-height:22px}
.shot-card .shot-card-characters [contenteditable=true]{min-width:60px;min-height:32px}
.shots-table .shot-col-client-notes{width:auto}

/* Only an active editor changes size; its ordinary text keeps the approved layout. */
.shot-style-8.shots-table tbody td:is(.desc,.shot-client-notes,.shot-remarks){position:relative}
.shot-text-field.shot-inline-active{box-sizing:border-box;width:min(100%,200px);max-width:100%;height:var(--shot-editor-height,112px);min-height:0;padding:8px;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;background:#d6e3ef!important;color:#172f43!important;caret-color:#172f43;border:1px solid #91b9db;border-radius:4px;font-size:14px;line-height:1.6;scrollbar-width:thin}
.shot-style-8 .shot-text-field.shot-inline-active{position:absolute;left:0;top:var(--shot-editor-top,0);z-index:3}
.shot-inline-ghost{visibility:hidden;pointer-events:none;user-select:none}
.shot-style-8 .shot-inline-active~.remarks-error{position:absolute;left:0;top:calc(var(--shot-editor-top,0px) + var(--shot-editor-height,112px) + 6px);z-index:4;width:max(100%,240px);max-width:320px;box-sizing:border-box;margin:0;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:4px}
.shot-card .shot-text-field.shot-inline-active{height:112px}
.shot-inline-text[data-shot-inline=character_count][contenteditable=true],.shot-card .shot-card-characters [data-shot-inline=character_count][contenteditable=true]{box-sizing:border-box;display:block;width:64px;min-width:0;max-width:100%;height:34px;min-height:34px;padding:4px 7px;white-space:nowrap;overflow:auto;font-size:16px;line-height:24px}
