.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}


/* Mobile presentation of the existing workspace. Desktop 05/08 stay intact. */
.mobile-shot-materials,.quick-touch-hint{display:none}
@media(max-width:680px),(max-width:1024px) and (pointer:coarse){
  html:not(.hanabi-desktop) .layout>aside{position:fixed;z-index:40;inset:0 auto 0 0;display:flex;flex-direction:column;width:min(310px,90vw);height:100dvh;max-height:none;padding:16px;visibility:hidden;transform:translateX(-100%);border-right:1px solid var(--line);box-shadow:12px 0 40px #0007}
  html:not(.hanabi-desktop) .layout.project-drawer-open>aside{visibility:visible;transform:translateX(0)}
  html:not(.hanabi-desktop) .project-drawer-close,html:not(.hanabi-desktop) .project-drawer-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:8px}
  .project-drawer-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
  .project-drawer-close{align-self:flex-end;font-size:26px}
  .project-drawer-backdrop:not([hidden]){display:block;position:fixed;z-index:39;inset:0;background:#080c1299;border:0;border-radius:0}
  html:not(.hanabi-desktop) .project-navigation{display:block;flex:1;max-height:none;overflow:auto;white-space:normal}
  html:not(.hanabi-desktop) .project-group,html:not(.hanabi-desktop) .project-group[open]>.project-children{display:block}
  html:not(.hanabi-desktop) .project-navigation .project{width:100%;white-space:normal;text-align:left;font-size:16px;min-height:44px}
  html:not(.hanabi-desktop) .project-group>summary{font-size:16px;min-height:44px}
  html:not(.hanabi-desktop) .sidebar-footer{display:block;flex:none;overflow:visible;white-space:normal}
  html:not(.hanabi-desktop) .sidebar-footer .project{display:block;width:100%;min-height:44px;font-size:16px;text-align:left}
  html:not(.hanabi-desktop) .layout>main{padding:12px 12px max(24px,env(safe-area-inset-bottom));overflow-x:hidden}
  .top{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
  .top>div{flex:1;min-width:0}
  .top .eyebrow{display:none}
  .top h1{font-size:24px;line-height:1.35;margin:0;overflow-wrap:anywhere}
  .top .user{flex-basis:100%;font-size:14px;margin:0}
  button,input,select,textarea{font-size:16px}
  button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}
  .tabs{gap:16px;overflow-x:auto;min-width:0;max-width:100%}
  .tabs button{flex-shrink:0;font-size:16px;min-height:44px}
  .tabs .shot-style-switch{display:none}
  .shot-toolbar-actions{justify-content:flex-start;flex-wrap:wrap}
  .shot-mode-slot:has(.shot-reading-guide:not([hidden])){height:0;overflow:hidden;margin:0}
  .shot-reading-guide{display:none}
  .shots-table .shot-owner-list{flex-wrap:wrap;gap:8px 12px}
  .shots-table .shot-owner-name{font-size:18px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .shots-table .shotnum,.shots-table .shot-number-prefix,.shots-table .shot-number-key{white-space:normal;overflow-wrap:anywhere}
  .shots-table .shot-number-prefix{font-size:16px}
  .shots-table .shot-number-key{font-size:30px}
  .shots-table .shot-stage .shot-stage-select{min-height:44px;font-size:16px;max-width:100%}
  .shots-table .shot-actions{display:flex;flex-wrap:wrap;gap:8px}
  .shots-table .shot-actions button,.shot-card .shot-actions .shot-details-link{min-height:44px;font-size:16px;padding:8px 10px}
  .shots-table .shot-actions .shot-edit-link{min-width:44px;width:44px;margin-left:auto}
  .shot-card-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .shot-card-body{padding:12px;gap:12px}
  .shot-card-head{align-items:center}
  .shot-card-facts{font-size:16px;line-height:1.6}
  .mobile-shot-materials{display:block;border-top:1px solid var(--line);padding-top:4px}
  .mobile-shot-materials>summary{font-size:16px;min-height:44px;display:list-item;padding:10px 0;cursor:pointer}
  .mobile-shot-materials .desc,.mobile-shot-materials .shot-attachment,.mobile-shot-materials .shot-timing{display:block;width:auto;max-width:none;min-width:0;margin:8px 0;padding:0;border:0;font-size:17px;overflow-wrap:anywhere;white-space:normal}
  .mobile-shot-materials .shot-description{font-size:17px;line-height:1.65}
  /* 08 uses the same records as a vertical card, with every column reachable. */
  .shot-style-8{overflow:visible}
  .shot-style-8.shots-table table{min-width:0;width:100%}
  .shot-style-8 thead{display:none}
  .shot-style-8 tbody{gap:18px}
  .shot-style-8 tbody tr[data-shotrow]{min-width:0;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
  .shot-style-8 tbody tr[data-shotrow][hidden]{display:none}
  .shot-style-8 .shot-image-slot{max-height:none;width:100%;aspect-ratio:16/9}
  .shot-style-8 .shot-identity{grid-row:1}
  .shot-style-8 .shot-assignment{grid-row:2;gap:10px}
  .shot-style-8.shots-table tbody td.shot-timing{display:flex;flex-wrap:wrap;gap:8px 16px}
  .shot-style-8 .frame-value{font-size:18px}
  .shot-style-8 .frame-value:after{content:' 帧'}
  .shot-style-8 .shot-characters{font-size:16px}
  .shot-style-8 .shot-characters:after{content:' 个角色'}
  .shot-style-8 .shot-description{font-size:17px;line-height:1.65}
  .shot-style-8 .shot-operation{border-top:1px solid var(--line)!important;padding-top:10px!important}
  .shot-style-8.is-owner-batch.shots-table td.shot-selection{position:static;grid-row:1}
  .shot-style-8.is-owner-batch .shot-identity{grid-row:2}
  .shot-style-8.is-owner-batch .shot-assignment{grid-row:3}
  .shot-style-8 .quick-feedback-row .quick-feedback{width:100%}
  /* Inline composer has one scroll owner and survives viewport/keyboard resize. */
  .shot-card.writing{transform:none;box-shadow:none}
  .shot-card>.quick-feedback{position:static;max-height:none;overflow:visible;border:0;border-top:1px solid var(--accent);border-radius:0 0 var(--control-radius) var(--control-radius);box-shadow:none;padding:12px;width:100%}
  .quick-feedback .feedback-line{grid-template-columns:24px minmax(0,1fr)}
  .quick-feedback textarea{font-size:18px;min-height:52px}
  .quick-feedback .hint{font-size:14px;line-height:1.6}
  .quick-pointer-hint{display:none}
  .quick-touch-hint{display:inline}
  .quick-feedback footer button,.quick-feedback .quick-attachment-button{min-width:44px;min-height:44px}
  .quick-feedback .submit-feedback{background:#d84950;color:#fff;font-size:18px;padding:10px 28px}
  .quick-feedback details .bar{display:grid;grid-template-columns:minmax(0,1fr)}
  .quick-feedback details label{display:grid;grid-template-columns:48px minmax(0,1fr);max-width:100%;min-width:0}
  .quick-feedback input,.quick-feedback select{width:100%;min-width:0;max-width:100%}
  .quick-feedback .media-caption{font-size:16px}
  .quick-feedback .media-caption select{max-width:100%;min-height:44px}
  .single-shot-feedback .shot-feedback-header>.image-viewer-trigger,.shot-feedback-header .shot-preview,.shot-feedback-header>img,.shot-preview-empty{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
  .single-shot-feedback .shot-feedback-header>.image-viewer-trigger img{width:100%;height:100%;object-fit:contain}
  .single-shot-feedback .stage-summary button,.feedback-status-buttons button,.shot-feedback-nav button{min-height:44px;font-size:16px}
  .single-shot-feedback .stage-summary .tag{font-size:14px}
  .shot-feedback-info .hint,.feedback-entry .hint{font-size:15px;line-height:1.6}
  .feedback-side .gallery{grid-template-columns:minmax(0,1fr)}
  .feedback-side .feedback-text,.feedback-item .feedback-text{font-size:18px;line-height:1.65}
  .feedback-sides{grid-template-columns:minmax(0,1fr)}
  .feedback-side,.feedback-event,.shot-timeline{min-width:0}
  .feedback-side.is-empty{display:block}
  .feedback-side .gallery img{max-width:100%;height:auto;max-height:none}
  .feedback-side header{flex-wrap:wrap}
  .feedback-overview>summary.feedback-overview-summary{grid-template-columns:56px minmax(0,1fr);gap:8px}
  .overview-state{grid-column:2;font-size:14px}
  .overview-identity strong,.overview-text{font-size:17px}
  .overview-meta{font-size:14px}
  .overview-identity,.overview-latest{min-width:0;overflow-wrap:anywhere}
  #editor{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
  #fields{grid-template-columns:minmax(0,1fr)}
  .auth{width:calc(100% - 24px);max-width:430px;margin:24px auto;padding:20px}
  .image-viewer .bar{font-size:16px}
}

/* Phone workspace: viewport-sized shell, one content scroll, no page zoom. */
html.hanabi-mobile{touch-action:pan-y;overscroll-behavior:none}
html.hanabi-mobile body{height:var(--hanabi-mobile-height,100dvh);overflow:hidden}
html.hanabi-mobile .layout{height:var(--hanabi-mobile-height,100dvh);min-height:0;max-width:100%;overflow:hidden}
html.hanabi-mobile .layout>main{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(24px,env(safe-area-inset-bottom))}
html.hanabi-mobile .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;overflow:visible}
html.hanabi-mobile .tabs [data-tab]:not([data-tab=shots]):not([data-tab=notes]){display:none}
html.hanabi-mobile .tabs button{font-size:16px;min-width:0;min-height:44px;white-space:normal}
html.hanabi-mobile .tabs .shot-style-switch{display:none}
html.hanabi-mobile :is(input,select,textarea,[contenteditable=true]){font-size:18px}
html.hanabi-mobile #editor{max-height:calc(var(--hanabi-mobile-height,100dvh) - 16px);width:calc(100vw - 16px)}
html.hanabi-mobile #editor [contenteditable=true],html.hanabi-mobile .shot-inline-text[contenteditable=true],html.hanabi-mobile .shot-text-field.shot-inline-active{font-size:18px}
html.hanabi-mobile #toast{max-width:calc(100vw - 24px);right:12px;bottom:max(12px,calc(100dvh - var(--hanabi-mobile-height,100dvh) + 12px));z-index:100}
html.hanabi-mobile .shots-table table{min-width:0}
html.hanabi-mobile .shot-style-8 .shot-client-notes:before{content:'客户备注';display:block;color:var(--muted);font-size:14px;margin-bottom:4px}
html.hanabi-mobile .shot-style-8 .shot-remarks:before{content:'备注';display:block;color:var(--muted);font-size:14px;margin-bottom:4px}
html.hanabi-mobile .shot-card-grid{grid-template-columns:minmax(0,1fr)}
html.hanabi-mobile .shot-card-production{gap:12px}
html.hanabi-mobile .shot-card-production small{font-size:14px}
html.hanabi-mobile .shot-card-production .desc{min-width:0;max-width:none}
html.hanabi-mobile .shot-card-production :is(.shot-text-field,.shot-inline-text){font-size:17px;line-height:1.65}
html.hanabi-mobile .fb-board{font-size:17px;min-width:0}
html.hanabi-mobile .fb-board .fb-tablewrap{height:auto!important;max-height:none;overflow:visible;scrollbar-gutter:auto;border:0}
html.hanabi-mobile .fb-board .fb-table{display:block;table-layout:auto;width:100%!important;min-width:0;white-space:normal}
html.hanabi-mobile .fb-board colgroup{display:none}
html.hanabi-mobile .fb-board :is(thead,tbody){display:block;width:100%}
html.hanabi-mobile .fb-board thead tr{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:12px 0}
html.hanabi-mobile .fb-board th{display:block;position:static;width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--control-radius)}
html.hanabi-mobile .fb-board .fb-axis-corner{display:none}
html.hanabi-mobile .fb-board .fb-column-heading{height:auto;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:auto auto auto;gap:4px 8px}
html.hanabi-mobile .fb-board .fb-column-date{font-size:18px;grid-column:2;grid-row:1}
html.hanabi-mobile .fb-board .fb-column-meta{grid-column:2;grid-row:2;font-size:15px;white-space:normal;overflow:visible}
html.hanabi-mobile .fb-board .fb-column-end{grid-column:3;grid-row:1}
html.hanabi-mobile .fb-board .fb-column-footer{grid-column:1/-1;grid-row:3;width:100%;height:auto;min-height:44px;margin:4px 0 0;padding:0;background:transparent;flex-wrap:wrap}
html.hanabi-mobile .fb-board .fb-column-heading button{width:auto;min-width:44px;min-height:44px;height:auto;font-size:16px}
html.hanabi-mobile .fb-board tbody tr{display:block;margin:20px 0;border:1px solid var(--line);border-radius:var(--control-radius);overflow:clip;background:var(--surface)}
html.hanabi-mobile .fb-board tbody td{display:block;position:static;width:100%;min-width:0;height:auto;padding:12px;border:0;background:transparent;overflow-wrap:anywhere}
html.hanabi-mobile .fb-board .fb-identity{position:static;background:var(--surface-raised);border-bottom:1px solid var(--line)}
html.hanabi-mobile .fb-board .fb-identity label{font-size:22px;align-items:center;line-height:1.5}
html.hanabi-mobile .fb-board .fb-identity input{width:24px;height:24px}
html.hanabi-mobile .fb-board .fb-identity>button{margin:12px 0}
html.hanabi-mobile .fb-board .fb-shot-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html.hanabi-mobile .fb-board .fb-shot-info>div:nth-child(n+3){grid-column:1/-1}
html.hanabi-mobile .fb-board .fb-shot-info dt{font-size:14px}
html.hanabi-mobile .fb-board .fb-shot-info dd{font-size:17px}
html.hanabi-mobile .fb-board td[data-fb-date-cell]:before{content:attr(data-mobile-label);display:block;padding:4px 0 10px;font-size:16px;line-height:1.5;color:var(--text-secondary)}
html.hanabi-mobile .fb-board :is(.fb-sides,.fb-day-body){display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px;min-width:0}
html.hanabi-mobile .fb-board .fb-day-caption{display:none}
html.hanabi-mobile .fb-board .fb-opinion{width:100%;min-width:0;padding:0 12px}
html.hanabi-mobile .fb-board .fb-cell-empty .fb-empty{position:static;min-height:44px;inset:auto}
html.hanabi-mobile .fb-board .fb-empty .fb-write{min-height:44px;font-size:16px;border:1px dashed var(--line)!important}
html.hanabi-mobile .fb-board .fb-opinion>header{flex-wrap:wrap;gap:6px;min-height:44px}
html.hanabi-mobile .fb-board .fb-text{font-size:18px;line-height:1.7}
html.hanabi-mobile .fb-board .fb-opinion [data-fb-edit]{font-size:18px;line-height:1.7;max-width:100%;min-height:100px}
html.hanabi-mobile .fb-board .fb-media{grid-template-columns:minmax(0,1fr)}
html.hanabi-mobile .fb-board .fb-opinion[data-fb-multiple-media] .fb-ordered .fb-media{width:100%;max-width:100%}
html.hanabi-mobile .fb-board .fb-edit-actions{position:sticky;bottom:0;background:var(--fb-source);z-index:2;padding:10px 0}
html.hanabi-mobile .fb-board .fb-edit-actions .fb-save{min-height:44px;min-width:100px;font-size:18px;background:#d84950;border-color:#d84950;color:white;padding:10px 20px}
html.hanabi-mobile .fb-board .fb-save-shortcut{display:none}
html.hanabi-mobile .fb-board .fb-signals{gap:8px;flex-wrap:wrap;align-items:center}
html.hanabi-mobile .fb-board .fb-signal{width:44px;height:44px;flex:0 0 44px}
html.hanabi-mobile .fb-board .fb-round-owner{min-height:44px;max-width:100%;font-size:16px;padding:8px 0!important;flex:1 1 100%;justify-content:flex-start;text-align:left}
html.hanabi-mobile .fb-board .fb-card-tools button{width:44px;height:44px}
html.hanabi-mobile .fb-board :is(.fb-source,.fb-card-stage,.fb-opinion time){font-size:14px;white-space:normal;line-height:1.5}
html.hanabi-mobile .fb-board .fb-toolbar{gap:8px}
html.hanabi-mobile .fb-board .fb-toolbar button{font-size:16px;min-height:44px}
html.hanabi-mobile .fb-board .fb-searchbox{width:100%;min-width:0;flex-basis:100%}
html.hanabi-mobile .fb-board .fb-toolbar input{width:100%;min-width:0;font-size:18px}
html.hanabi-mobile .fb-board .fb-tip{font-size:15px;line-height:1.6}
html.hanabi-mobile .fb-column-tools-panel{max-width:calc(100vw - 24px);max-height:calc(var(--hanabi-mobile-height,100dvh) - 24px);overflow:auto}
html.hanabi-mobile .fb-column-tools-panel :is(label,button,textarea,input){font-size:16px;min-height:44px}

/* The phone feedback editor owns its screen; producer and emphasis stay with it. */
html.hanabi-mobile .fb-board .fb-mobile-editing{position:fixed;inset:0;z-index:95;display:flex;flex-direction:column;width:100vw;height:var(--hanabi-mobile-height,100dvh);max-height:var(--hanabi-mobile-height,100dvh);margin:0;padding:0 max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-radius:0;overflow:hidden;background:var(--surface)}
html.hanabi-mobile .fb-mobile-editing>.fb-mobile-editor-heading{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:60px;padding:max(8px,env(safe-area-inset-top)) 0 8px;border-bottom:1px solid var(--line)}
html.hanabi-mobile .fb-mobile-editor-heading button{min-height:44px;min-width:60px;font-size:17px}
html.hanabi-mobile .fb-mobile-editor-heading>div{display:grid;gap:2px;min-width:0}
html.hanabi-mobile .fb-mobile-editor-heading strong{font-size:20px;overflow-wrap:anywhere}
html.hanabi-mobile .fb-mobile-editor-heading span{font-size:14px;color:var(--muted)}
html.hanabi-mobile .fb-mobile-editing>header,html.hanabi-mobile .fb-mobile-editing>.fb-corner{display:none}
html.hanabi-mobile .fb-mobile-editor-body{display:flex;flex-direction:column;gap:12px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:12px 0}
html.hanabi-mobile .fb-board .fb-mobile-editing .fb-mobile-editor-body>[data-fb-edit]{order:-1;flex:1 0 auto;min-height:max(140px,calc(var(--hanabi-mobile-height,100dvh) * .42));background:var(--input-bg)!important;border-color:var(--line);color:var(--text)!important;caret-color:var(--text)!important;padding:12px;font-size:18px;line-height:1.7}
html.hanabi-mobile .fb-mobile-editor-body>.fb-media{flex-shrink:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
html.hanabi-mobile .fb-mobile-editing>.fb-signals{flex:0 0 auto;min-height:52px;padding:4px 0;gap:12px;border-top:1px solid var(--line);flex-wrap:nowrap}
html.hanabi-mobile .fb-mobile-editing>.fb-signals>[data-fb-status]{display:none}
html.hanabi-mobile .fb-mobile-editing .fb-round-owner{flex:1;min-width:0;margin:0;font-size:16px}
html.hanabi-mobile .fb-mobile-editing .fb-paint-bucket{width:80px;height:44px;min-width:80px;flex:0 0 80px;gap:5px;border:1px solid var(--line);border-radius:var(--control-radius)}
html.hanabi-mobile .fb-mobile-editing .fb-paint-bucket:after{content:'重点';font-size:16px}
html.hanabi-mobile .fb-mobile-editing .fb-paint-bucket:disabled{opacity:.45}
html.hanabi-mobile .fb-mobile-editing>.fb-edit-actions{position:static;flex:0 0 auto;padding:8px 0 0;background:transparent;border-top:0}
html.hanabi-mobile .fb-mobile-editing>.fb-edit-actions .fb-save{width:100%;font-size:18px;min-height:48px}
html.hanabi-mobile .fb-mobile-editing>.fb-error,html.hanabi-mobile .fb-mobile-editing>.fb-conflict{flex-shrink:0;max-height:22%;overflow:auto;font-size:15px;margin:4px 0}
html.hanabi-mobile body>.fb-owner-picker{z-index:145;width:min(320px,calc(100vw - 24px))!important;max-height:calc(var(--hanabi-mobile-height,100dvh) - 24px)!important;font-size:16px}
html.hanabi-mobile body>.fb-owner-picker label{font-size:17px;min-height:44px}
html.hanabi-mobile body>.fb-owner-picker input{width:22px;height:22px}
html.hanabi-mobile body>.fb-owner-picker button{font-size:17px;min-height:44px;width:100%;margin-top:8px}

.mobile-shot-summary{display:none}
html.hanabi-mobile .mobile-shot-summary{display:grid;gap:12px;margin:12px 0;white-space:normal}
html.hanabi-mobile .mobile-shot-summary .shot-owner-entry{width:100%;text-align:left;min-height:44px}
html.hanabi-mobile .mobile-shot-summary .shot-owner-name{font-size:18px}
html.hanabi-mobile .mobile-shot-summary .shot-stage{margin:0}
html.hanabi-mobile .mobile-shot-summary button.mobile-shot-feedback{min-height:44px;font-size:18px;width:100%;background:var(--accent);color:var(--window-bg)}

/* Content comes first on phones. Column maintenance is an explicit disclosure. */
.fb-mobile-manage{display:none}
html.hanabi-mobile .fb-board .fb-mobile-manage{display:inline-flex;align-items:center;margin-left:auto}
html.hanabi-mobile .fb-board .fb-toolbar .fb-mobile-manage{order:2;margin-left:0;background:transparent!important;border-color:transparent!important;color:var(--text-secondary)}
html.hanabi-mobile .fb-board .fb-toolbar .fb-feedback-filter{order:1;margin-left:auto}
html.hanabi-mobile .fb-board:not(.fb-mobile-tools-open) thead{display:none}
html.hanabi-mobile .fb-board .fb-tip{display:none}
html.hanabi-mobile .fb-board .fb-identity{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:center}
html.hanabi-mobile .fb-board .fb-identity label{grid-column:2;grid-row:1;font-size:18px}
html.hanabi-mobile .fb-board .fb-identity>button{grid-column:1;grid-row:1/3;margin:0}
html.hanabi-mobile .fb-board .fb-mobile-shot-details{grid-column:2;font-size:15px;margin:0}
html.hanabi-mobile .fb-mobile-shot-details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
html.hanabi-mobile .fb-mobile-shot-details>summary:after{content:'⌄';margin-left:8px}
html.hanabi-mobile .fb-mobile-shot-details[open]{grid-column:1/-1}
html.hanabi-mobile .fb-board tbody tr{margin-top:12px}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing) .fb-round-owner{flex:1 1 0;min-width:0}
html.hanabi-mobile .fb-board td[data-fb-date-cell]:has(.fb-opinion):before{display:none}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing)>.fb-media{grid-template-columns:repeat(2,minmax(0,1fr))}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing) .fb-media-preview{max-height:132px}

/* The editor reads like a page of text; attachment options stay beside thumbnails. */
html.hanabi-mobile .fb-board .fb-mobile-editing .fb-mobile-editor-body>[data-fb-edit]{background:transparent!important;border:0!important;border-radius:0;padding:4px 0}
html.hanabi-mobile .fb-mobile-editor-body>.fb-media{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:12px}
html.hanabi-mobile .fb-mobile-editor-body>.fb-media>.fb-attachment{grid-column:auto;max-width:112px}
html.hanabi-mobile .fb-mobile-editor-body .fb-media-preview{height:72px;aspect-ratio:auto}
html.hanabi-mobile .fb-mobile-editor-body .fb-media-remove{min-height:44px;min-width:44px}
html.hanabi-mobile .fb-mobile-attachment-options{margin:0;font-size:14px;color:var(--text-secondary)}
html.hanabi-mobile .fb-mobile-attachment-options>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
html.hanabi-mobile .fb-mobile-attachment-options[open]{position:relative;z-index:1}
html.hanabi-mobile .fb-mobile-attachment-options select{min-width:150px;max-width:calc(100vw - 48px)}
html.hanabi-mobile .fb-mobile-editor-body>.fb-media>.fb-attachment:has(.fb-mobile-attachment-options[open]){grid-column:1/-1;max-width:100%}
html.hanabi-mobile .fb-mobile-editor-body>.fb-media>.fb-attachment:has(.fb-mobile-attachment-options[open]) .fb-media-preview{max-width:112px}
html.hanabi-mobile .fb-mobile-editing>.fb-signals{border-top:0;min-height:44px}
html.hanabi-mobile .fb-mobile-editing .fb-paint-bucket{border:0}
html.hanabi-mobile .fb-mobile-editor-heading span{display:none}

/* Phone project chrome leaves the two working modules ahead of reference details. */
.mobile-sidebar-account{display:none}
html.hanabi-mobile .top{flex-wrap:nowrap;margin-bottom:8px;gap:10px;align-items:center}
html.hanabi-mobile .top h1{font-size:20px;line-height:1.4;margin:0}
html.hanabi-mobile .top .user{display:none}
html.hanabi-mobile .mobile-sidebar-account{display:block;color:var(--text-secondary);font-size:14px;line-height:1.5;padding:10px 12px;border-top:1px solid var(--line)}
html.hanabi-mobile #content{display:flex;flex-direction:column;min-width:0}
html.hanabi-mobile #content>.tabs{margin-top:0;gap:8px}
html.hanabi-mobile #content>.tabs button{padding:12px 8px}
html.hanabi-mobile #content>.project-info-fold{margin:0 0 8px}
html.hanabi-mobile .project-info-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 0;font-size:15px;color:var(--text-secondary);list-style:none}
html.hanabi-mobile .project-info-fold>summary::-webkit-details-marker{display:none}
html.hanabi-mobile .project-info-fold>summary>span:first-child:after{content:'⌄';display:inline-block;margin-left:8px}
html.hanabi-mobile .project-info-fold[open]>summary>span:first-child:after{transform:rotate(180deg)}
html.hanabi-mobile .project-info-fold>summary>.hint{float:none;display:inline;margin:0;font-size:14px}
html.hanabi-mobile .project-info-fold .panel{margin:0 0 10px;padding:12px;border-radius:8px}
html.hanabi-mobile .project-info-fold .project-info-actions{justify-content:space-between;gap:8px;margin-bottom:12px!important}
html.hanabi-mobile .project-info-actions h2{display:none}
html.hanabi-mobile .project-info-actions .push{margin-left:0}
html.hanabi-mobile .project-info-actions button{font-size:15px;min-height:44px;padding:8px 12px}
html.hanabi-mobile .project-info-fold .meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
html.hanabi-mobile .project-info-fold [data-project-field]{min-width:0;order:0}
html.hanabi-mobile .project-info-fold [data-project-field=fps]{order:-2}
html.hanabi-mobile .project-info-fold [data-project-field=maya_resolution]{order:-1}
html.hanabi-mobile .project-info-fold .project-duration{grid-column:auto}
html.hanabi-mobile .project-info-fold .project-info-path{order:1;grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
html.hanabi-mobile .project-info-fold .project-info-path.is-empty{display:none}
html.hanabi-mobile .project-info-fold .label{font-size:13px;line-height:1.5;margin-bottom:3px}
html.hanabi-mobile .project-info-fold .value{font-size:16px;line-height:1.5;word-break:normal;overflow-wrap:anywhere}
html.hanabi-mobile .project-info-fold .project-info-explanation{display:none}

/* Phone workflow: browse shots, open feedback, compose; reference stays in the drawer. */
html.hanabi-mobile .layout>main{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
html.hanabi-mobile #content>.tabs{position:fixed;z-index:20;left:0;right:0;bottom:auto;top:calc(var(--hanabi-mobile-height,100dvh) - 68px - env(safe-area-inset-bottom));height:calc(68px + env(safe-area-inset-bottom));padding:4px 12px max(4px,env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0;background:var(--surface);gap:12px}
html.hanabi-mobile #content>.tabs [data-tab]{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:8px;border-bottom:0;color:var(--text-secondary);font-size:15px}
html.hanabi-mobile #content>.tabs [data-tab]:not([data-tab=shots]):not([data-tab=notes]){display:none}
html.hanabi-mobile #content>.tabs [data-tab].active{background:var(--control-bg);color:var(--text);box-shadow:inset 0 3px 0 var(--accent)}
html.hanabi-mobile #toast{bottom:max(calc(80px + env(safe-area-inset-bottom)),calc(100dvh - var(--hanabi-mobile-height,100dvh) + 80px + env(safe-area-inset-bottom)))}
html.hanabi-mobile .layout>aside{overflow-y:auto;overscroll-behavior:contain}
html.hanabi-mobile .layout>aside>.project-info-fold{flex-shrink:0;margin:8px 0}
html.hanabi-mobile .layout>aside>.project-source-materials{flex-shrink:0;max-width:100%;margin:0}
html.hanabi-mobile .layout>aside .project-navigation{min-height:72px}
html.hanabi-mobile .shot-toolbar{margin-top:8px!important;gap:4px 8px}
html.hanabi-mobile .shot-toolbar .shot-search{flex-basis:100%}
html.hanabi-mobile .shot-data-controls{flex:1}
html.hanabi-mobile .mobile-shot-management{position:relative;flex:0 0 auto;margin-left:auto}
html.hanabi-mobile .mobile-shot-management>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;color:var(--text-secondary);font-size:14px;cursor:pointer;list-style:none}
html.hanabi-mobile .mobile-shot-management>summary:after{content:'⌄';margin-left:6px}
html.hanabi-mobile .mobile-shot-management[open]>.shot-toolbar-actions{position:absolute;z-index:12;right:0;top:100%;min-width:180px;display:grid;gap:8px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0006}
html.hanabi-mobile .shots-table{margin-top:4px}
html.hanabi-mobile .shot-style-8 tbody{gap:10px}
html.hanabi-mobile .shot-style-8 tbody tr[data-shotrow]{grid-template-columns:minmax(0,1fr);padding:12px;gap:0;border:1px solid var(--line);border-radius:10px;min-height:0}
html.hanabi-mobile .shot-style-8.shots-table tbody td.shot-identity{display:grid;grid-template-columns:104px minmax(0,1fr);gap:4px 12px;padding:0;min-width:0;grid-row:auto}
html.hanabi-mobile .shot-style-8 .shot-identity-head{grid-column:2;grid-row:1;min-width:0}
html.hanabi-mobile .shot-style-8 .shot-image-slot{grid-column:1;grid-row:1/3;align-self:start;width:104px;aspect-ratio:16/9;max-height:72px;margin:4px 0 0}
html.hanabi-mobile .shots-table .shotnum{display:block;line-height:1.3}
html.hanabi-mobile .shots-table :is(.shot-number-prefix,.shot-number-key){font-size:17px;font-weight:600;line-height:1.3}
html.hanabi-mobile .mobile-shot-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;margin:0;min-width:0;grid-column:2;grid-row:2}
html.hanabi-mobile .mobile-shot-summary>:first-child:not(.shot-stage){grid-column:1/-1}
html.hanabi-mobile .shots-table .mobile-shot-summary .shot-owner-entry{min-height:44px;padding:0!important;border:0!important;background:transparent!important}
html.hanabi-mobile .shots-table .mobile-shot-summary .shot-owner-list{display:flex;gap:2px 6px;flex-wrap:wrap}
html.hanabi-mobile .shots-table .mobile-shot-summary .shot-owner-name{font-size:13px;line-height:1.45;background:transparent;border:0;padding:0;color:var(--text-secondary)}
html.hanabi-mobile .mobile-shot-summary .shot-owner-name:before{display:none}
html.hanabi-mobile .mobile-shot-summary .shot-stage{align-self:center;min-width:0}
html.hanabi-mobile .shots-table .mobile-shot-summary .shot-stage-select{font-size:13px;min-height:44px;padding:4px;max-width:100%;width:100%;background:transparent;border-color:transparent}
html.hanabi-mobile .mobile-shot-summary button.mobile-shot-feedback{width:auto;min-height:44px;padding:4px 0;font-size:14px;background:transparent;color:var(--accent);border:0;white-space:nowrap}
html.hanabi-mobile .shot-style-8.shots-table tbody td.mobile-shot-detail-slot{padding:0;border:0;grid-column:1/-1;grid-row:auto;display:block}
html.hanabi-mobile .mobile-shot-materials{margin-top:6px;border-top:1px solid var(--line);padding-top:0}
html.hanabi-mobile .mobile-shot-materials>summary{min-height:44px;padding:10px 0;font-size:14px;color:var(--text-secondary)}
html.hanabi-mobile .shot-style-8.shots-table .mobile-shot-materials>td{display:block;position:static;width:100%;max-width:none;padding:8px 0;border:0;overflow-wrap:anywhere}
html.hanabi-mobile .shot-card-grid{gap:10px}
html.hanabi-mobile .shot-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:12px;min-height:0}
html.hanabi-mobile .shot-card>.shot-image-slot{width:104px;aspect-ratio:16/9;height:auto;max-height:72px;margin:4px 0 0}
html.hanabi-mobile .shot-card>.shot-card-body{padding:0;gap:4px;min-width:0}
html.hanabi-mobile .shot-card .mobile-shot-summary{grid-column:auto;grid-row:auto}
html.hanabi-mobile .shot-card .shot-card-head{margin:0}
html.hanabi-mobile .shot-card .mobile-shot-materials .shot-card-facts{display:flex;flex-wrap:wrap;font-size:14px}
html.hanabi-mobile .fb-board tbody tr{background:transparent;border:0;margin:12px 0 20px;overflow:visible}
html.hanabi-mobile .fb-board .fb-identity{padding:10px 0;border:0;background:transparent}
html.hanabi-mobile .fb-board tbody td[data-fb-date-cell]{padding:6px 0}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing){background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--fb-source);padding:0 12px}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing)>header{border-bottom:1px solid var(--line)}
html.hanabi-mobile .fb-board .fb-opinion:not(.fb-mobile-editing) .fb-source{padding:2px 6px;background:var(--fb-source);border-radius:4px}
