.production-panel {
  margin-top:38px;
  border-top:1px solid var(--line);
  padding-top:30px;
  font-size:13px;
  line-height:1.8;
  color:var(--ink)
}

.production-heading,.production-shot-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}
.production-heading {
  margin-bottom:24px
}
.production-heading h2 {
  font-size:20px;
  line-height:1.5
}
.production-heading p {
  color:#4f6259;
  margin-top:7px;
  max-width:70ch
}
.production-panel .button {
  font-size:12px;
  min-height:38px
}
.production-panel h3 {
  font-size:16px;
  line-height:1.6
}
.production-panel h4 {
  font-size:14px;
  margin-bottom:12px
}

.production-muted,.production-shot-overview,.production-panel figcaption {
  color:#4f6259;
  font-size:12px;
  line-height:1.8;
  margin:10px 0;
  max-width:76ch
}
.production-error {
  color:#963c28;
  background:#fff7f2;
  border:1px solid #e7c8bc;
  border-radius:8px;
  padding:12px 15px;
  margin:14px 0;
  overflow-wrap:anywhere
}
.production-dirty {
  padding:12px 14px;
  border:1px solid #dfd0a8;
  border-radius:8px;
  background:#fffbef;
  color:#6f561b;
  margin:18px 0
}
.production-dirty[hidden] {
  display:none
}

.production-shot {
  padding:27px 0;
  border-top:1px solid var(--line)
}
.production-shot-number {
  color:#476556;
  font-size:12px
}
.production-shot-heading h3 {
  margin-top:3px
}
.production-shot-overview {
  display:flex;
  gap:18px;
  flex-wrap:wrap
}
.production-shot-requirements {
  margin:18px 0
}
.production-shot-requirements summary,.production-import summary {
  cursor:pointer;
  color:#315c49;
  padding:8px 0;
  font-weight:500
}
.production-shot-columns {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:36px;
  margin-top:18px
}
.production-shot-columns>section {
  min-width:0
}
.production-shot-reference {
  border-right:1px solid var(--line);
  padding-right:30px
}
.production-shot-columns .field {
  margin-top:16px
}
.production-shot-reference figure {
  margin:0
}
.production-shot-reference figure img {
  max-height:220px;
  max-width:100%;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f5f8f6
}
.production-candidate {
  display:block;
  max-height:150px;
  max-width:100%;
  object-fit:contain;
  margin:8px 0;
  border:1px solid var(--line)
}
.production-shot video,.production-result video {
  width:100%;
  max-height:260px;
  background:#17211b;
  border-radius:8px
}
.production-result {
  margin-top:20px;
  max-width:650px
}

.production-field-pair {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,.45fr);
  gap:18px
}
.production-panel .field-label {
  font-size:12px;
  color:#375344
}
.production-panel input,.production-panel select,.production-panel textarea {
  font-size:13px;
  color:var(--ink);
  caret-color:var(--green);
  max-width:100%
}
.production-panel input[type=file] {
  display:block;
  margin:12px 0;
  width:100%;
  font-size:12px
}
.production-panel input[type=number] {
  width:100%
}
.production-panel .field-hint {
  font-size:12px;
  color:#4f6259
}
.production-panel textarea {
  resize:vertical;
  min-height:90px
}
.production-check {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:14px 0;
  color:#3f584a;
  font-size:12px;
  cursor:pointer
}
.production-check input {
  margin-top:5px;
  width:16px;
  height:16px;
  accent-color:var(--green);
  flex:none
}
.production-shot-reference>.button {
  margin:5px 8px 5px 0
}
.production-generate-options {
  padding:4px 0 15px
}
.production-import {
  margin-top:18px;
  border-top:1px solid var(--line);
  padding-top:10px
}
.production-assembly {
  border-top:1px solid var(--line)
}
.production-assembly>p {
  max-width:76ch;
  margin-top:9px
}
.production-return {
  margin:28px 0;
  padding:18px;
  background:#f3f8f5;
  border:1px solid var(--line);
  border-radius:9px;
  font-size:13px;
  line-height:1.8
}
.production-return .button {
  margin-top:12px;
  font-size:12px
}

.production-panel :focus-visible {
  outline:2px solid #24745c;
  outline-offset:3px
}
.production-panel ::selection {
  background:#d5e9df
}
.production-panel .button:disabled {
  opacity:.5;
  cursor:not-allowed
}
.production-panel select {
  min-height:40px
}

.production-panel [hidden] {
  display:none!important
}

@media(max-width:1050px) {
  .production-shot-columns {
    gap:22px
  }
  .production-shot-reference {
    padding-right:20px
  }
  .production-field-pair {
    grid-template-columns:1fr
  }
  
}

@media(max-width:760px) {
  .production-heading {
    flex-direction:column;
    gap:12px
  }
  .production-heading h2 {
    font-size:19px
  }
  .production-shot-columns {
    grid-template-columns:1fr;
    gap:26px
  }
  .production-shot-reference {
    border-right:0;
    padding-right:0
  }
  .production-shot-video {
    padding-top:22px;
    border-top:1px solid var(--line)
  }
  .production-shot-overview {
    gap:10px
  }
  .production-panel .button {
    white-space:normal
  }
  .production-shot-heading .tag {
    max-width:40%;
    text-align:right
  }
  .production-shot-reference figure img {
    max-height:230px
  }
  .production-result video {
    max-height:360px
  }
  
}

.production-director  {
   display:grid;
   grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);
   gap:28px;
   margin:26px 0 36px;
   align-items:start;
   
}

.production-director-stage,.production-director-inspector  {
   min-width:0;
   
}

.production-stage-heading  {
   display:flex;
   justify-content:space-between;
   gap:14px;
   background:#f6f8f4;
   padding:14px 18px;
   border-radius:14px 14px 0 0;
   font-size:12px;
   color:#61756c;
   
}

.production-stage-heading strong  {
   color:#253e35;
   overflow-wrap:anywhere;
   
}

.production-stage-heading>span  {
   flex-shrink:0;
   
}

.production-viewer  {
   min-height:360px;
   height:440px;
   display:flex;
   align-items:center;
   justify-content:center;
   background:#eaf0e9;
   overflow:hidden;
   
}

.production-viewer>video  {
   width:100%;
   height:100%;
   object-fit:contain;
   background:#182c24;
   
}

.production-viewer figure  {
   height:100%;
   width:100%;
   position:relative;
   margin:0;
   display:flex;
   align-items:center;
   justify-content:center;
   padding:22px 22px 56px;
   
}

.production-viewer figure img  {
   display:block;
   width:100%;
   height:100%;
   object-fit:contain;
   
}

.production-viewer figure figcaption  {
   position:absolute;
   bottom:10px;
   left:14px;
   right:14px;
   margin:0;
   text-align:center;
   font-size:12px;
   line-height:1.65;
   color:#e8f1eb;
   background:#263e35;
   padding:5px 9px;
   border-radius:6px;
   
}

.production-viewer-empty  {
   display:flex;
   flex-direction:column;
   align-items:center;
   justify-content:center;
   gap:15px;
   padding:34px;
   text-align:center;
   color:#4c685a;
   max-width:390px;
   
}

.production-viewer-empty strong  {
   font-size:17px;
   color:#253e35;
   
}

.production-viewer-empty p  {
   font-size:13px;
   line-height:1.8;
   
}

.production-viewer-footer  {
   display:flex;
   justify-content:space-between;
   gap:14px;
   background:#f6f8f4;
   padding:12px 16px;
   border-radius:0 0 14px 14px;
   color:#61756c;
   font-size:12px;
   font-variant-numeric:tabular-nums;
   
}

.production-filmstrip  {
   display:flex;
   gap:12px;
   padding:18px 3px 6px;
   overflow-x:auto;
   scrollbar-width:thin;
   scrollbar-color:#b7c9bd transparent;
   scroll-snap-type:x proximity;
   
}

.production-film-button  {
   flex:0 0 calc((100% - 24px)/3);
   min-width:126px;
   max-width:210px;
   padding:6px;
   margin:0;
   border:1px solid #e3eae3;
   border-radius:11px;
   background:#fff;
   color:#253e35;
   text-align:left;
   cursor:pointer;
   scroll-snap-align:start;
   transition:background 160ms ease-out,border-color 160ms ease-out;
   
}

.production-film-button:hover  {
   background:#f6f8f4;
   border-color:#a6bcad;
   
}

.production-film-button.active  {
   background:#eaf3ec;
   border-color:#267762;
   
}

.production-film-button:disabled  {
   cursor:wait;
   opacity:.6;
   
}

.production-film-image  {
   height:84px;
   display:flex;
   align-items:center;
   justify-content:center;
   position:relative;
   border-radius:7px;
   background:#e8eee7;
   overflow:hidden;
   
}

.production-film-image img  {
   width:100%;
   height:100%;
   object-fit:contain;
   
}

.production-film-placeholder  {
   color:#738c7e;
   
}

.production-film-time  {
   position:absolute;
   right:5px;
   bottom:5px;
   padding:1px 5px;
   font-size:12px;
   background:#263e35;
   color:#f7faf7;
   border-radius:4px;
   font-variant-numeric:tabular-nums;
   
}

.production-film-button>strong  {
   display:block;
   overflow:hidden;
   text-overflow:ellipsis;
   white-space:nowrap;
   font-size:12px;
   margin:8px 3px 2px;
   
}

.production-film-button>small  {
   display:block;
   font-size:12px;
   color:#526b5e;
   margin:0 3px 3px;
   
}

.production-director-inspector  {
   border-left:1px solid #e3eae3;
   padding-left:26px;
   
}

.production-director-inspector>h3  {
   margin:0 0 6px;
   font-size:17px;
   
}

.production-director-inspector>.field  {
   margin:15px 0;
   
}

.production-director-inspector .field input,.production-director-inspector .field textarea  {
   width:100%;
   box-sizing:border-box;
   
}

.production-director-reference  {
   margin:14px 0;
   
}

.production-director-reference summary  {
   cursor:pointer;
   font-size:12px;
   color:#205b4c;
   padding:7px 0;
   
}

.production-director-reference[open] summary  {
   margin-bottom:10px;
   
}

.production-director-next  {
   margin-top:20px;
   border-top:1px solid #e3eae3;
   padding-top:18px;
   
}

.production-director-next>.button  {
   margin-bottom:9px;
   width:100%;
   
}

.production-director-next p  {
   margin:5px 0 0;
   
}

.production-management-heading  {
   padding-top:8px;
   
}

.production-management-heading h3  {
   margin:0;
   
}

.production-shot  {
   scroll-margin-top:24px;
   
}

.production-shot.selected>.production-shot-heading .production-shot-number  {
   color:#205b4c;
   background:#eaf3ec;
   border-radius:5px;
   padding:3px 8px;
   
}

.production-assembly  {
   border:0;
   background:#f6f8f4;
   border-radius:14px;
   padding:24px;
   margin-top:18px;
   
}

@media(max-width:1050px)  {
   .production-director  {
     grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr);
     gap:20px;
     
  }
   .production-director-inspector  {
     padding-left:20px;
     
  }
   .production-viewer  {
     height:380px;
     
  }
   .production-film-button  {
     min-width:115px;
     
  }
   
}

@media(max-width:760px)  {
   .production-director  {
     grid-template-columns:1fr;
     
  }
   .production-director-inspector  {
     border-left:0;
     padding:20px 0 0;
     border-top:1px solid #e3eae3;
     
  }
   .production-viewer  {
     height:400px;
     min-height:280px;
     
  }
   .production-viewer-empty  {
     padding:24px;
     
  }
   .production-viewer-footer  {
     flex-direction:column;
     gap:4px;
     
  }
   .production-film-button  {
     min-width:118px;
     
  }
   .production-stage-heading  {
     padding:12px;
     
  }
   .production-assembly  {
     padding:18px;
     
  }
   
}

@media(prefers-reduced-motion:reduce)  {
   .production-film-button  {
     transition:none;
     
  }
   
}

/* Image layout */
.image-layout-panel { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top:72px; }
.layout-heading,.layout-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.layout-heading h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.layout-heading p { margin: 0 0 22px; color: #4f6259; font-size: 14px; line-height: 1.7; max-width: 68ch; }
.layout-workspace { display: grid; grid-template-columns: minmax(140px,.45fr) minmax(260px,1.4fr) minmax(250px,.9fr); gap: 24px; align-items: start; }
.layout-preview { margin: 0; min-width: 0; position: sticky; top: 20px; }
.layout-canvas-wrap { background: #edf1ec; padding: 24px; min-height: 360px; display: flex; justify-content: center; align-items: center; border-radius: 0 0 14px 14px; }
.layout-canvas-wrap canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: 620px; object-fit: contain; cursor: grab; touch-action: none; box-shadow: 0 12px 28px #263e3514; }
.layout-canvas-wrap canvas:active { cursor: grabbing; }
.layout-canvas-wrap canvas:focus-visible { outline: 2px solid #267762; outline-offset: 5px; }
.layout-preview figcaption { font-size: 12px; color: #4f6259; line-height: 1.65; margin-top: 10px; }
.layout-settings { min-width: 0; }
.layout-settings h3,.layout-save-area h3,.layout-result h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.layout-settings h4 { margin: 20px 0 10px; font-size: 13px; }
.layout-settings .field { margin-bottom: 14px; }
.layout-settings input,.layout-settings textarea,.layout-settings select { width: 100%; min-width: 0; box-sizing: border-box; }
.layout-settings input[type=color] { width: 80px; height: 38px; padding: 4px; cursor: pointer; }
.layout-number-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
.layout-geometry,.layout-background { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.layout-settings summary { cursor: pointer; min-height: 32px; font-size: 13px; color: var(--ink); line-height: 1.6; }
.layout-settings details[open]>summary { margin-bottom: 14px; }
.layout-muted { color: #4f6259; font-size: 12px; line-height: 1.75; max-width: 70ch; }
.layout-background-preview { max-width: 100%; max-height: 180px; object-fit: contain; display: block; margin: 12px 0; }
.layout-error { color: #8c312c; background: #fff5f3; padding: 12px 14px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.layout-save-area { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.layout-save-status { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 600; }
.layout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.layout-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.layout-result>img { display: block; max-width: min(100%,480px); max-height: 560px; object-fit: contain; }
.image-layout-panel button:disabled,.image-layout-panel input:disabled,.image-layout-panel select:disabled { cursor: not-allowed; }
.image-layout-panel :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.image-layout-panel input,.image-layout-panel textarea { caret-color: var(--green); }
.image-layout-panel ::selection { background: #d5e9db; color: #153826; }
.image-layout-panel [hidden] { display: none; }
.layout-purpose-bar { display:flex; align-items:center; gap:16px; border-bottom:1px solid #e3eae3; margin:0 0 24px; padding:0 0 14px; flex-wrap:wrap; }
.layout-purpose-bar strong { font-size:13px; color:#205b4c; padding:8px 13px; background:#eaf3ec; border-radius:8px; }
.layout-purpose-bar>span { color:#61756c; font-size:12px; flex:1; overflow-wrap:anywhere; }
.layout-source { min-width:0; }
.layout-source h3 { margin:0 0 14px; font-size:14px; }
.layout-source figure { margin:0; }
.layout-source figure img { display:block; width:100%; max-height:180px; object-fit:contain; background:#f6f8f4; border-radius:12px; }
.layout-source figcaption,.layout-source-dimensions { font-size:12px; color:#61756c; margin:8px 0 12px; line-height:1.6; }
.layout-source-rule { margin-top:24px; padding-top:20px; border-top:1px solid #e3eae3; }
.layout-source-rule strong { display:block; font-size:12px; color:#205b4c; }
.layout-source-rule p { color:#61756c; font-size:12px; line-height:1.8; margin-top:6px; }
.layout-canvas-heading { display:flex; gap:12px; justify-content:space-between; padding:14px 16px; background:#f6f8f4; border-radius:14px 14px 0 0; color:#61756c; font-size:12px; }
.layout-canvas-heading strong { font-size:12px; color:#253e35; }
.layout-canvas-heading span { font-variant-numeric:tabular-nums; }
.layout-original-preview { display:block; max-width:100%; max-height:620px; object-fit:contain; }
.layout-settings { padding-left:22px; border-left:1px solid #e3eae3; }
.layout-color-swatches,.layout-text-actions { display:flex; gap:9px; flex-wrap:wrap; }
.layout-color-swatch { width:30px; height:30px; padding:0; border:1px solid #c6d2ca; border-radius:50%; background:var(--swatch); cursor:pointer; }
.layout-color-swatch[aria-pressed=true] { outline:2px solid #267762; outline-offset:3px; }
.layout-color-swatch:disabled { cursor:not-allowed; opacity:.6; }
.layout-text-actions .button { font-size:12px; }
.layout-save-area { background:#f6f8f4; border:0; border-radius:14px; padding:20px 24px; }
.layout-save-area .production-check { margin:10px 0; }
.layout-result { border-radius:14px; }
.layout-result-choice { margin:0 0 24px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.layout-result-choice h3 { margin:0 0 8px; font-size:16px; line-height:1.5; }
.layout-result-choice .production-check { margin:12px 0; }
.image-layout-simple .layout-heading h2 { font-size:20px; }
.image-layout-simple .layout-heading p { color:var(--muted); }
.image-layout-simple .layout-workspace { grid-template-columns:minmax(240px,1.25fr) minmax(250px,.85fr); }
.image-layout-simple .layout-source { grid-column:1/-1; display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:8px 18px; align-items:start; }
.image-layout-simple .layout-source>h3 { grid-column:1/-1; margin:0; }
.image-layout-simple .layout-source figure { grid-column:1; grid-row:2/5; }
.image-layout-simple .layout-source figure img { max-height:90px; }
.image-layout-simple .layout-source-rule { margin:0; padding:0; border:0; grid-column:2; grid-row:2/4; }
.image-layout-simple .layout-source>.layout-muted { grid-column:2/4; margin:0; }
.image-layout-simple .layout-source-dimensions { grid-column:3; grid-row:2; }
.image-layout-simple .layout-source>.button { grid-column:3; grid-row:3; }
.image-layout-simple .layout-save-area { background:var(--hover,#f7f8f9); }
.image-layout-simple .layout-source-toggle { grid-column:1/-1; min-width:0; }
.image-layout-simple .layout-result-toggle { margin:0 0 20px; }
.image-layout-simple .layout-source-toggle>summary,
.image-layout-simple .layout-result-toggle>summary,
.image-layout-simple .layout-background-toggle>summary,
.image-layout-simple .layout-text-advanced>summary { min-height:36px; padding:7px 0; color:var(--muted,#5c646a); font-size:14px; line-height:1.5; cursor:pointer; }
.image-layout-simple .layout-source-toggle[open]>summary,
.image-layout-simple .layout-result-toggle[open]>summary,
.image-layout-simple .layout-background-toggle[open]>summary,
.image-layout-simple .layout-text-advanced[open]>summary { color:var(--ink,#242529); }
.image-layout-simple .layout-source-toggle>.layout-source { padding-top:12px; }
.image-layout-simple .layout-result-toggle .layout-result-choice { margin:0; padding:12px 0; border-top:0; }
.image-layout-simple .layout-background-toggle { margin-top:16px; }
.image-layout-simple .layout-background-toggle>.layout-background { margin:0; padding-top:12px; border-top:0; }
.image-layout-simple .layout-text-advanced { margin:8px 0 12px; }
@media (max-width:760px) {
 .image-layout-simple .layout-workspace { grid-template-columns:1fr; }
 .image-layout-simple .layout-source { grid-template-columns:72px minmax(0,1fr); }
 .image-layout-simple .layout-source-rule { grid-column:2; }
 .image-layout-simple .layout-source-dimensions { grid-column:2; grid-row:4; }
 .image-layout-simple .layout-source>.button { grid-column:2; grid-row:5; justify-self:start; }
 .image-layout-simple .layout-source>.layout-muted { grid-column:1/-1; }
}
@media (max-width: 1250px) { .layout-workspace { grid-template-columns:minmax(240px,1.3fr) minmax(230px,1fr); gap:22px; } .layout-source { grid-column:1/-1; display:grid; grid-template-columns:100px 1fr auto; gap:8px 18px; align-items:start; } .layout-source>h3 { grid-column:1/-1; margin:0; } .layout-source figure { grid-column:1; grid-row:2/5; } .layout-source figure img { max-height:100px; } .layout-source-rule { margin:0; padding:0; border:0; grid-column:2; grid-row:2/4; } .layout-source>.layout-muted { grid-column:2/4; margin:0; } .layout-source-dimensions { grid-column:3; grid-row:2; } .layout-source>.button { grid-column:3; grid-row:3; } }
@media (max-width: 760px) { .layout-workspace { grid-template-columns:1fr; } .layout-preview { position:static; } .layout-settings { padding-left:0; border-left:0; border-top:1px solid #e3eae3; padding-top:22px; } .layout-canvas-wrap canvas,.layout-original-preview { max-height:480px; } .layout-source { grid-template-columns:82px 1fr; } .layout-source-rule { grid-column:2; } .layout-source-dimensions { grid-column:2; grid-row:4; } .layout-source>.button { grid-column:2; grid-row:5; justify-self:start; } .layout-source>.layout-muted { grid-column:1/-1; } }
@media (max-width: 600px) { .layout-heading { flex-direction:column; gap:0; margin-bottom:16px; } .layout-heading h2 { font-size:20px; } .layout-canvas-wrap { padding:12px; min-height:240px; } .layout-purpose-bar { gap:10px; } .layout-purpose-bar>.button { width:100%; justify-content:flex-start; } .layout-save-area { padding:16px; } .layout-actions .button { flex-grow:1; } }
.layout-preset-row { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; }
.layout-preset-chip { font-size:12px; padding:4px 10px; min-height:30px; border:1px solid #ced8d1; border-radius:999px; background:#f7faf8; color:#1f3b2c; }
.layout-preset-chip[aria-pressed="true"] { border-color:#267762; background:#e7f3ee; font-weight:600; }
.layout-style-check { grid-column:1/-1; display:flex; align-items:center; gap:6px; margin:4px 0; font-size:13px; color:#2b3a33; }
.layout-text-style { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; align-items:end; margin:8px 0; }
