
:root{--bg:#f5f5ee;--ink:#203a32;--muted:#7a857d;--line:#e3e7dd;--orange:#ef9861;--green:#142723}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Yu Gothic UI","Meiryo",sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,select,summary,.upload{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d77839;outline-offset:3px}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:var(--green);color:#e9efe7;padding:35px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-size:24px;font-weight:750;letter-spacing:2px;color:inherit;text-decoration:none;flex-wrap:wrap}.brand-mark{background:var(--orange);color:var(--green);width:32px;height:34px;border-radius:9px;display:grid;place-items:center;letter-spacing:0}.brand-sub{font-size:9px;letter-spacing:5px;display:block;width:100%;padding-left:44px;margin-top:-6px;color:#82998e}.workspace{border:1px solid #34463d;padding:14px 12px;margin:38px 0 26px;font-size:12px;border-radius:8px;display:flex;justify-content:space-between;color:#b8c8bd}nav{display:grid;gap:8px}.nav{background:none;border:0;color:#9fb3a7;padding:15px 12px;text-align:left;border-radius:7px;display:flex;gap:13px;align-items:center;font-size:13px}.nav.active{background:#2b4136;color:#fff}.nav.active>span{color:var(--orange)}.nav small{margin-left:auto;background:#395245;border-radius:5px;padding:1px 6px}.side-note{margin-top:auto;padding:50px 10px;color:#758e80}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.side-note .eyebrow{font-size:8px}.side-note p{font-size:21px;line-height:1.7;color:#afc0b3}.mini-lines{display:flex;gap:6px;align-items:end;height:40px}.mini-lines i{border:1px solid #496050;width:27px;height:30px;border-radius:4px}.mini-lines i:nth-child(2){height:40px}.mini-lines i:nth-child(3){height:20px}.user{border-top:1px solid #34463d;padding-top:24px;display:flex;gap:10px;align-items:center;font-size:12px}.user small{display:block;color:#93a699;margin-top:4px;font-size:10px}.user>span:last-child{margin-left:auto}.avatar{background:#475d4b;border-radius:50%;width:33px;height:33px;display:grid;place-items:center}main{margin-left:228px;padding:0 42px;max-width:1800px}.topbar{height:79px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px}.topbar b{margin:0 17px;color:#c2cabe}.top-right{display:flex;align-items:center;gap:18px}.demo-tag{background:#e7eadf;color:#647362;border-radius:4px;padding:5px 8px}.availability{display:flex;align-items:center;gap:7px}.availability i{width:6px;height:6px;background:#a6aea4;border-radius:50%}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:35px 0 29px}.page-heading .eyebrow{color:#91a08f;font-size:9px}h1{font-size:33px;letter-spacing:1px;margin:10px 0}p{line-height:1.7}.page-heading p{color:var(--muted);font-size:12px;margin:0}.heading-index{font-size:10px;letter-spacing:2px;color:#9fa99a}.studio{display:grid;grid-template-columns:minmax(340px,470px) minmax(340px,1fr);gap:26px;align-items:start}.editor,.preview-panel,.recent,.collection-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.section-title h2{font-size:14px;margin:0}.section-title>span{font-size:8px;letter-spacing:1.5px;color:#9ba79a}.mode-tabs{display:flex;background:#f0f3ed;padding:4px;border-radius:7px;margin-bottom:23px}.mode-tabs button{flex:1;border:0;background:none;padding:12px;border-radius:5px;font-size:13px;font-weight:700}.mode-tabs button span{font-weight:400;margin-left:8px;font-size:11px}.mode-tabs button.selected{background:#fff;box-shadow:0 2px 4px #1835260c}.field{margin-bottom:21px}label{display:block;font-size:12px;font-weight:650;margin-bottom:9px}.label-line{display:flex;justify-content:space-between;align-items:center}.label-line>span{font-size:10px;color:#9da799}.label-line label{margin-bottom:9px}select,input[type=number],textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:12px;background:#fff;color:var(--ink)}select{font-size:12px}textarea{resize:vertical;line-height:1.9;min-height:125px;font-size:12px}textarea::placeholder,input::placeholder{color:#a0a79c}.hint{font-size:10px;color:var(--muted);margin:8px 0 0}.prompt-chips{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.prompt-chips button{font-size:10px;padding:6px 8px;border:0;border-radius:4px;background:#f2f4ed;color:#77856f}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.upload{border:1px dashed #cbd6c5;background:#fafbf7;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:112px;gap:7px;text-align:center;padding:15px}.upload:hover{background:#edf3e8;border-color:#79906e}.upload-symbol{font-size:23px;line-height:1;color:#83977a}.upload strong{font-size:11px}.upload small{font-size:9px;color:#9ba693}.file-input{position:absolute;width:1px;height:1px;clip-path:inset(50%)}.upload:has(+input:focus-visible),.reference-grid>div:focus-within .upload{outline:3px solid var(--orange)}.required{font-size:9px;color:#b35a28;margin-left:8px}.attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.attachment{border:1px solid var(--line);border-radius:6px;padding:7px;display:flex;align-items:center;gap:8px;max-width:100%;font-size:10px}.attachment img{width:44px;height:44px;object-fit:cover;border-radius:4px}.attachment span{overflow:hidden;text-overflow:ellipsis;max-width:180px;white-space:nowrap}.attachment button{border:0;background:#f0f2ed;border-radius:50%;width:22px;height:22px}.attachment audio{max-width:220px;height:30px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ratios{display:flex;gap:8px}.ratios button{flex:1;border:1px solid var(--line);background:#fff;border-radius:6px;padding:10px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px}.ratios button.selected{border-color:#54745a;background:#f1f5ee}.ratio-icon{display:inline-block;border:1px solid #8b9d84;border-radius:2px}.wide{width:18px;height:11px}.tall{width:10px;height:16px}.square{width:13px;height:13px}details{border-top:1px solid var(--line);padding:15px 0}summary{display:flex;justify-content:space-between;list-style:none;font-size:11px;color:#7a8973}details .field{margin-top:16px}.generate{width:100%;background:var(--green);color:#fff;border:0;border-radius:7px;padding:17px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:10px}.generate>span:first-child{color:var(--orange);font-size:17px}.generate>span:last-child{margin-left:auto}.generate:disabled{opacity:.55;cursor:wait}.demo-caption{font-size:9px;text-align:center;color:#99a191;line-height:1.8;margin:10px 0 0}.error{color:#a54d2a;background:#fff1e9;padding:10px;border-radius:5px;font-size:12px}.result-column{display:grid;gap:23px}.preview-stage{aspect-ratio:16/10;position:relative;overflow:hidden;border-radius:8px;background:#183e39}.landscape{position:absolute;inset:0;background:linear-gradient(180deg,#93b3a0 0%,#d7d3a8 48%,#365f4d 49%,#173e36 100%)}.sun{position:absolute;width:65px;height:65px;background:#efcf91;border-radius:50%;left:60%;top:16%;box-shadow:0 0 70px #eccf8c80}.mountain{position:absolute;width:120%;height:70%;background:#507a61;bottom:0;clip-path:polygon(0 54%,15% 45%,30% 3%,42% 33%,54% 16%,70% 55%,90% 19%,100% 44%,100% 100%,0 100%)}.back{opacity:.7;left:-10%;bottom:15%}.front{background:#254f3b;left:-10%;height:55%;clip-path:polygon(0 34%,14% 58%,27% 41%,45% 73%,70% 17%,83% 44%,100% 7%,100% 100%,0 100%)}.water{position:absolute;bottom:0;left:30%;width:38%;height:28%;background:linear-gradient(#7f9d77,#335e46);clip-path:polygon(39% 0,55% 0,100% 100%,0 100%)}.grain{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0px,#ffffff03 1px,transparent 3px)}.preview-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:end;padding:38px 20px;background:linear-gradient(transparent 15%,#092c1e90);color:white;text-align:center}.preview-badge{border:1px solid #ffffff40;font-size:8px;letter-spacing:2px;padding:6px 9px;border-radius:4px;color:#d9e8cc}.preview-overlay h3{font-size:23px;font-weight:500;margin:16px 0 4px}.preview-overlay p{font-size:10px;color:#c1d2b8}.art-caption{position:absolute;top:14px;left:14px;color:#ffffffb0;font-size:8px}.preview-footer{display:flex;align-items:center;justify-content:space-between;padding:15px 0 0;font-size:10px;color:#85927b}.preview-footer b{margin:0 8px}.preview-footer button,.section-title>button{border:0;background:none;color:#7d8c73;font-size:10px}.result-message{border-top:1px solid var(--line);margin-top:16px;padding-top:14px;color:#89977f;font-size:11px;line-height:1.8}.recent{padding-bottom:12px}.empty{padding:24px 10px;text-align:center;color:#8d9b84}.empty .empty-icon{font-size:27px;color:#bdc9b5}.empty strong{display:block;font-size:12px;margin:10px 0}.empty p{font-size:10px}.queue-note{display:flex;gap:13px;padding:17px 18px;background:#eaf0e3;border-radius:9px;align-items:center}.queue-note>span:first-child{font-size:25px;color:#809176}.queue-note strong{font-size:11px}.queue-note p{font-size:10px;color:#89977e;margin:5px 0}.planned{font-size:9px;color:#8b977d;white-space:nowrap;margin-left:auto}.job{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:16px 0}.job:last-child{border:0}.job-art{width:55px;height:44px;border-radius:6px;background:linear-gradient(135deg,#acbc9a,#47654f);display:grid;place-items:center;font-size:18px;color:#edf2e6;flex-shrink:0}.job-body{min-width:0;flex:1}.job-body strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}.job-body small{display:block;font-size:9px;color:#93a087;margin-top:6px}.status{font-size:9px;background:#f0f3eb;color:#849676;padding:5px 7px;border-radius:4px;white-space:nowrap}.job-actions{display:flex;gap:5px}.job-actions button{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:6px 8px;background:white}.collection-panel{min-height:350px}.collection-panel select{max-width:180px}.page-footer{padding:30px 0;color:#99a48e;font-size:8px;letter-spacing:2px;display:flex;justify-content:space-between}.page-footer span{letter-spacing:1px}.toast{position:fixed;bottom:24px;right:24px;background:var(--green);color:#fff;padding:15px 23px;border-radius:8px;box-shadow:0 6px 30px #14272330;font-size:12px;z-index:10}.loading-symbol{font-size:30px;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.3}}@media(min-width:1500px){main{padding:0 65px}.studio{gap:35px}}@media(max-width:1100px){.sidebar{width:180px;padding:30px 14px}main{margin-left:180px;padding:0 25px}.studio{grid-template-columns:minmax(300px,1fr) minmax(280px,1fr);gap:18px}.editor,.preview-panel,.recent{padding:18px}.preview-overlay h3{font-size:19px}.queue-note{flex-wrap:wrap}.heading-index{display:none}}@media(max-width:850px){.sidebar{position:static;width:auto;padding:16px 20px;flex-direction:row;align-items:center;gap:20px}.brand{font-size:20px;flex-wrap:nowrap}.brand-sub,.workspace,.side-note,.user{display:none}nav{display:flex;margin-left:auto;gap:4px}.nav{padding:10px;font-size:11px;gap:6px}.nav>span{display:none}main{margin-left:0;padding:0 20px}.topbar{height:55px}.studio{grid-template-columns:1fr 1fr}.page-heading{padding:27px 0}h1{font-size:28px}.availability{display:none}}@media(max-width:650px){.studio{grid-template-columns:1fr}.sidebar{gap:5px;padding:13px}.brand{font-size:17px;letter-spacing:1px}.brand-mark{width:25px;height:28px}.nav{font-size:10px;padding:8px}.nav small{font-size:8px}.topbar{font-size:10px}.topbar b{margin:0 8px}.page-footer{line-height:1.7;gap:20px}.preview-stage{aspect-ratio:16/10}.job{flex-wrap:wrap}.job-body strong{max-width:220px}.job-actions{margin-left:auto}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}

.hint,.demo-caption,.upload small,.empty p,.result-message,.queue-note p{font-size:12px;color:#526657}.field label{font-size:13px}.label-line>span,.preview-footer,.job-body small{font-size:11px;color:#526657}.prompt-chips button,.job-actions button{min-height:30px}.attachment button{width:30px;height:30px}.mode-tabs button{font-size:13px}.mode-tabs button span{font-size:10px;color:#657663}.generate{background:#ed9862;color:#182e24;font-weight:700;font-size:14px}.generate>span:first-child{color:#182e24}.generate:hover{background:#e88b50}.demo-caption{font-size:11px}.upload strong{font-size:12px}
.mode-tabs button{padding:11px 6px;line-height:1.5}.mode-tabs button span{display:block;margin:3px 0 0}.mode-hint{margin:-12px 0 22px}.mode-tabs{align-items:stretch}
.review-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:22px}.review-prompt{font-size:12px;color:#526657;overflow-wrap:anywhere}.retention-note{background:#f2f5ec;padding:14px;border-radius:7px;color:#526657;font-size:12px;line-height:1.9}.decision-actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.decision-actions button,.dialog-actions button,.review-demo-button{border:1px solid #b7c5ac;border-radius:6px;background:white;padding:12px 17px;font-size:12px;min-height:42px}.decision-actions button:first-child,.keep-fill{background:#203a32!important;color:white;border-color:#203a32!important}.danger-outline{color:#a44830;border-color:#dcb7a9!important}.danger-fill{background:#a44830!important;color:white;border-color:#a44830!important}.review-demo-button{margin-top:14px;color:#526657}.used-materials ul,.delete-list{padding:0;list-style:none}.used-materials li,.delete-list li{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.used-materials li span,.delete-list li span{min-width:0}.used-materials small,.delete-list small{flex-shrink:0;color:#526657}.decision-dialog{border:1px solid var(--line);border-radius:14px;padding:30px;max-width:540px;width:calc(100% - 32px);max-height:85vh;overflow:auto;color:var(--ink);box-shadow:0 24px 90px #132b2440}.decision-dialog::backdrop{background:#122b2380;backdrop-filter:blur(3px)}.decision-dialog h2{font-size:22px;margin:0 0 14px}.decision-dialog p{font-size:13px}.choice{display:flex;gap:12px;border:1px solid var(--line);border-radius:7px;padding:16px;align-items:flex-start}.choice input{margin-top:3px;accent-color:#203a32}.choice small{display:block;color:#526657;font-weight:400;margin-top:7px;line-height:1.7}.delete-total{background:#f6eee8;padding:16px;border-radius:6px;display:flex;justify-content:space-between;font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(max-width:650px){.decision-dialog{padding:22px}.delete-list li{flex-direction:column;gap:5px}.decision-actions button{flex:1;padding:12px 8px}.job-actions{flex-wrap:wrap}.status{white-space:normal;line-height:1.7}}

.workspace{display:block}.workspace label{font-size:11px;color:#b8c8bd}.workspace select{background:#233b30;border-color:#42574a;color:white;padding:10px;font-size:13px}.workspace small{display:block;font-size:9px;margin-top:10px;line-height:1.6}.filter-row{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.filter-row label{margin:0;min-width:180px}.filter-row select{display:block;margin-top:8px}.filter-row button{border:1px solid var(--line);background:#f5f5ee;border-radius:6px;padding:12px;font-size:12px}.owner-chip{color:#203a32;font-weight:700}.material-row{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.material-row strong{overflow-wrap:anywhere}.material-row small{display:block;color:#526657;font-size:12px;margin-top:7px}.material-row p{font-size:11px;color:#526657;margin-bottom:0}.material-icon{background:#edf2e7;border-radius:8px;padding:16px;align-self:start}.job-body{min-width:0}.job-body small{line-height:1.8}.status{white-space:normal;line-height:1.7}
@media(max-width:850px){.sidebar{flex-wrap:wrap}.workspace{display:block;order:3;width:100%;margin:0;padding:10px;display:flex;align-items:center;gap:12px}.workspace label{margin:0;white-space:nowrap}.workspace select{max-width:220px}.workspace small{display:none}nav{flex-wrap:wrap}.topbar>span{min-width:0}}@media(max-width:650px){.section-title{flex-wrap:wrap}.section-title select{max-width:100%}.job-body strong{white-space:normal;max-width:none}.job-art{flex-shrink:0}.job .status{width:100%;margin-left:0}.job-actions{margin-left:0}.filter-row{align-items:stretch}.filter-row label{width:100%}}

.logged-out>aside,.logged-out>main{visibility:hidden}.auth-dialog{width:440px}.auth-dialog .eyebrow{margin-bottom:18px}.auth-dialog form>input{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;margin-bottom:20px;color:var(--ink);background:white}.auth-dialog .generate{margin-top:8px}.account-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.account-actions button{border:1px solid #496050;border-radius:6px;background:transparent;color:#e9efe7;padding:8px;font-size:11px}.save-status{font-size:11px;color:#526657}.save-error{color:#a44830}.workspace select:disabled{opacity:1;cursor:default}@media(max-width:850px){.account-actions{order:4;margin:0 0 0 auto}.top-right{gap:8px}.save-status{font-size:10px}}

.text-button{border:0;background:transparent;text-decoration:underline;color:#526657;padding:16px 0;font-size:12px}#account-link input{width:100%;border:1px solid var(--line);padding:12px;border-radius:6px}#account-link button{margin-top:16px;border:1px solid var(--line);padding:12px;background:#f5f5ee;border-radius:6px}

.studio-switch{display:inline-flex;gap:4px;margin-top:26px;padding:4px;background:#e5eade;border-radius:9px}.studio-switch button{border:0;background:transparent;border-radius:6px;padding:12px 24px;font-weight:650;font-size:13px;color:#526657}.studio-switch button[aria-pressed=true]{background:#203a32;color:white;box-shadow:0 2px 6px #14272316}.studio-switch+.page-heading{padding-top:22px}.speech-empty{text-align:center;min-height:280px;display:flex;flex-direction:column;justify-content:center;background:#f4f6ee;border-radius:9px;padding:30px;color:#526657}.speech-empty h3{font-size:23px;color:var(--ink);margin-bottom:0}.speech-empty small{font-size:11px}.wave-placeholder{display:flex;gap:8px;align-items:center;justify-content:center;height:70px}.wave-placeholder i{width:8px;height:26px;border-radius:5px;background:#88a08a}.wave-placeholder i:nth-child(2),.wave-placeholder i:nth-child(6){height:40px}.wave-placeholder i:nth-child(3),.wave-placeholder i:nth-child(5){height:55px}.wave-placeholder i:nth-child(4){height:70px;background:#ef9861}.consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8}.consent input{margin-top:4px;accent-color:#203a32}input[type=range]{width:100%;accent-color:#203a32}.speed-ends{display:flex;justify-content:space-between;color:#526657;font-size:10px}.speech-job{padding:18px 0;border-bottom:1px solid var(--line)}.speech-job .label-line{align-items:start;gap:16px}.speech-job strong{font-size:13px;overflow-wrap:anywhere;line-height:1.7}.speech-job audio{width:100%;margin:8px 0}.speech-job-actions{display:flex;gap:8px;flex-wrap:wrap}.speech-job-actions button,.speech-job-actions a{border:1px solid var(--line);background:#f5f5ee;color:#203a32;border-radius:6px;padding:10px;font-size:11px;text-decoration:none}.speech-job-actions button:first-child{background:#203a32;color:white}.generate:disabled{opacity:.6;cursor:not-allowed}@media(max-width:650px){.studio-switch{display:flex}.studio-switch button{flex:1;padding:12px 8px}.speech-job .label-line{flex-direction:column;gap:5px}}

#admin-form>select{margin-bottom:20px}#admin-form .field input{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px}#admin-form .consent{margin-top:12px}
/* Post-generation finishing is distinct from the generation canvas. */
.upscale-card{padding:24px;background:#f4f6ef;border:1px solid var(--line,#dde2d8);border-radius:16px;margin-bottom:24px}
.upscale-card .section-title h2{font-size:18px}
.upscale-card>p{font-size:13px;line-height:1.7;color:#52675c}
.upscale-steps{padding-left:20px;display:grid;gap:8px;font-size:13px;line-height:1.7}
.upscale-steps strong{font-weight:600;margin-left:8px}
.upscale-card>button{background:transparent;border:1px solid #bac8bc;border-radius:8px;padding:10px 14px;color:#24483c;font:inherit;font-size:13px;cursor:pointer}
.upscale-summary{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-block:1px solid #e1e6dc;margin:20px 0;font-size:14px}
.upscale-pending{padding:14px;border-radius:8px;background:#f4f6ef;font-size:13px;line-height:1.7}
.decision-dialog button:disabled,.decision-dialog select:disabled{opacity:.65;cursor:not-allowed}
