.studio-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:32px;background:#101827;color:#edf0ff;border:1px solid #34415d;border-radius:14px;overflow:auto;box-shadow:0 28px 100px #0009;font:inherit}
.studio-dialog::backdrop{background:#030711c9;backdrop-filter:blur(5px)}
.studio-dialog h2{font-size:29px;letter-spacing:-.035em;margin:0 0 14px}.studio-close{position:absolute;right:12px;top:12px;width:32px;height:32px}.studio-intro,.studio-help{color:#a9b4cd;font-size:14px;line-height:1.6}.studio-help{font-size:12px}.studio-error{color:#ffb3bc}.studio-warning{color:#e2c28e;font-size:13px;line-height:1.6}.studio-dialog [hidden]{display:none!important}.studio-dialog label{font-size:13px;color:#d5dded}.studio-dialog select,.studio-dialog input,.studio-dialog textarea{box-sizing:border-box;font:inherit}.studio-check{display:flex;align-items:center;gap:10px;margin:10px 0}.studio-check input{width:16px;height:16px;margin:0;accent-color:#9b7bff}.print-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.print-controls label{display:grid;gap:8px}.print-decks{border:1px solid #2b3b55;border-radius:8px;padding:12px 16px;margin:20px 0}.print-decks>div{max-height:180px;overflow:auto}.print-sheet-preview{position:relative;max-width:350px;margin:20px auto;background:#fff;border:1px solid #b6c2d6;box-shadow:0 7px 25px #0005}.print-slot{position:absolute;overflow:hidden;background:#101827}.print-slot img{display:block;width:100%;height:100%;object-fit:fill}.print-slot img.print-landscape{position:absolute;left:50%;top:50%;width:139.683%;height:71.591%;transform:translate(-50%,-50%) rotate(90deg)}
.editor-secondary-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.editor-secondary-actions .button{flex:1 1 150px}.import-source{min-height:155px;resize:vertical}.import-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.import-result{background:#080d18;border:1px solid #2b3b55;border-radius:8px;padding:16px;margin:18px 0}.import-result h3{margin-top:0}.import-result textarea{width:100%;min-height:190px;font-size:12px}.import-result ul{padding-left:18px;color:#e2c28e;font-size:13px}.share-status{padding:16px;border:1px solid #2b3b55;border-radius:8px;background:#080d18}.share-link{width:100%;margin:12px 0}.paired-output-note{font-size:12px;color:#9baac4;margin:12px 0}.public-view-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.deck-core-select{display:flex;gap:8px;margin:14px 0}.deck-core-select select{flex:1;min-width:0}.passport-core-item span{overflow-wrap:anywhere}
@media(min-width:801px){.preview-panel{max-height:calc(100dvh - 48px);overflow-y:auto;scrollbar-gutter:stable}#editor-view:not(.is-passport) .preview-stage{padding:16px 10px 12px}#editor-view:not(.is-passport) #deck-preview{max-width:min(325px,max(180px,calc(71.6dvh - 300px)))}}
@media(max-width:540px){.studio-dialog{padding:26px 20px}.print-controls{grid-template-columns:1fr}.studio-dialog h2{font-size:25px}.import-actions .button{flex:1 1 160px}.deck-core-select{flex-wrap:wrap}.deck-core-select select{flex-basis:100%}}
