*{box-sizing:border-box}body{margin:0;background:#f8f7f3;color:#24251f;font:16px/1.5 system-ui,sans-serif}header,main{max-width:1180px;margin:auto;padding:20px clamp(16px,4vw,50px)}header,.heading,nav{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}header{border-bottom:1px solid #dedbd1}nav{justify-content:flex-start}a{color:#265338;text-underline-offset:3px}.brand{font-size:26px;font-weight:800;text-decoration:none;color:#20281e}.brand span{color:#ce6034}h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.05em;margin:18px 0}h2{letter-spacing:-.035em;font-size:26px;margin:28px 0 12px}h3{margin:0}form,label{display:grid;gap:7px}form{gap:14px}.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.box,.result{padding:22px;border:1px solid #dedbd1;border-radius:14px;background:#fff}.box h2{margin-top:0}.small{max-width:440px}input,select,textarea{font:inherit;max-width:100%;padding:9px;border:1px solid #bcbeb4;border-radius:7px;background:#fff}textarea{min-height:72px}button,.action{font:inherit;font-weight:600;justify-self:start;padding:9px 16px;border:0;border-radius:8px;background:#2f5036;color:white;cursor:pointer;text-decoration:none}button:disabled{opacity:.48;cursor:default}.quiet{background:#eaece5;color:#24402c}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.grid article,.card{border:1px solid #dcded4;border-radius:10px;overflow:hidden;background:#fff;align-content:start;min-width:0}.grid img{width:100%;height:136px;object-fit:cover;display:block}.grid article>div,.card span,.card small{padding:8px 12px}.card span{display:flex;align-items:center;gap:7px;overflow-wrap:anywhere}.card:has(:checked){outline:2px solid #397044}.notice{background:#f5ead3;padding:12px;border-radius:8px}.muted,small{color:#52594e}.choices{display:flex;gap:12px;flex-wrap:wrap}.choices label{display:flex;align-items:center}.choices img{width:40px;height:40px;object-fit:cover;border-radius:4px}details{margin:16px 0}summary{cursor:pointer;font-weight:600}summary+*{margin-top:12px}.result{margin:14px 0}.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}figure{margin:0}figure img{width:100%;max-height:340px;object-fit:contain}.box form+form{margin-top:14px}#trial{margin-top:18px}.card input{flex:0 0 auto}

.scene-preview { max-height: 520px; }
.scene-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.job-list { overflow-wrap: anywhere; }

.studio { --accent: #c84326; --ink: #181614; --line: #ded9d1; color: var(--ink); }
.studio-heading, .studio-account, .history-heading, .source-actions {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.studio-account { color: #59534c; overflow-wrap: anywhere; }
.studio a:not(.action), .studio .text-button { color: #963419; }
.studio h1 { font-size: clamp(36px, 5vw, 56px); margin: 18px 0 26px; }
.studio h2 { font-size: clamp(22px, 2.3vw, 28px); margin: 0 0 16px; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(252px, 30%); align-items: start; gap: 20px; }
.studio-steps { display: grid; gap: 18px; min-width: 0; }
.studio-panel, .studio .result { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.2vw, 26px); min-width: 0; }
.scene-grid, .source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.studio-option { display: grid; align-content: start; background: #faf8f4; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; gap: 0; }
.studio-option img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f2eee7; }
.studio-option span { display: flex; align-items: baseline; min-width: 0; gap: 6px; padding: 9px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.studio-option input { margin: 0; accent-color: var(--accent); }
.studio-option:has(:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fbebe6; }
.studio :focus-visible, .upload-zone:focus-within { outline: 3px solid #80402c; outline-offset: 3px; }
.upload-zone { position: relative; padding: 24px 14px; text-align: center; background: #faf8f4; border: 1px dashed #9b8174; border-radius: 12px; gap: 3px; }
.upload-zone span, #login p, .order-panel dt, .order-panel #trial p { font-size: 14px; color: #59534c; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: #fbebe6; }
#upload-status { margin: 0; }
#upload-status:empty { display: none; }
#upload-status.upload-error { color: #963419; }
.source-grid, .source-actions { margin-top: 14px; }
.source-actions { justify-content: flex-start; column-gap: 18px; }
.studio button:not(.quiet):not(.text-button), .studio .action { background: var(--accent); color: white; }
.studio button:hover:not(:disabled):not(.quiet):not(.text-button), .studio .action:hover { background: #a9371f; }
.studio .quiet { background: #f2eee7; color: var(--ink); }
.studio .text-button { background: transparent; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.order-panel { position: sticky; top: 16px; overflow-wrap: anywhere; }
.order-panel dl { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-panel dd { margin: 2px 0 12px; font-weight: 600; }
.order-panel dd:last-child { margin-bottom: 0; }
.order-panel #login h3 { font-size: 20px; }
.order-panel #login p, .order-panel #trial p { margin: 6px 0 12px; }
.order-panel form + form { margin-top: 12px; }
.order-panel #trial { margin: 0; }
.studio #results, .studio #history { margin-top: 24px; }
.studio .compare a { display: block; cursor: zoom-in; background: #f6f3ee; border-radius: 10px; overflow: hidden; }
.studio .compare img { display: block; height: auto; aspect-ratio: 1; }
.studio figcaption { color: #59534c; font-size: 14px; margin-top: 5px; }
.studio .action { display: inline-block; }
.history-heading h2 { margin: 0; }
.shoot-list { list-style: none; padding: 0; margin: 14px 0 0; }
.shoot-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.shoot-list a:hover strong { text-decoration: underline; }
.shoot-list img { border-radius: 7px; object-fit: cover; }
.shoot-list span { flex: 1; overflow-wrap: anywhere; }
.shoot-list strong, .shoot-list small { display: block; }
.studio [hidden] { display: none; }
@media (max-width: 760px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .order-panel { position: static; }
  .studio-account { margin-bottom: 14px; }
  .scene-grid, .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.choice-wrap { position: relative; min-width: 0; display: grid; }
.native-choice { position: absolute; inset: 0; border-radius: 10px; }

.order-panel .capacity { background: #f7f4ee; border-radius: 9px; padding: 10px 12px; margin: 0 0 16px; color: #59534c; font-size: 13px; }
.order-panel .capacity strong { color: #39332e; }
