/* One editor across public previews, decoder pages and the account workspace. */
.preview-shell,.landing-preview-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;overflow:hidden}
.preview-shell .preview-controls,.landing-preview-grid .landing-preview-controls{min-height:0;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:center;padding:24px}
.preview-controls .preview-encoders,.landing-preview-controls .landing-preview-brand{grid-column:1/-1;margin:0}
.preview-controls .preview-dropzone,.preview-controls .preview-file,.landing-preview-controls .landing-preview-dropzone,.landing-preview-controls .landing-preview-selected{grid-column:1/-1;grid-row:auto;min-height:180px;margin:0}
.preview-controls>.limits,.landing-preview-controls>.landing-preview-limit{grid-column:1/-1;grid-row:auto;margin:0;text-align:left}
.preview-controls>#previewButton,.landing-preview-controls>.landing-preview-submit{grid-column:1/-1;grid-row:auto;min-height:62px}
.preview-controls>.preview-notice,.landing-preview-controls>.landing-preview-notice,.preview-controls>.upload-progress,.landing-preview-controls>.upload-progress{grid-column:1/-1;margin:0}
.public-preview[data-preview-step="upload"] .preview-result,.landing-preview[data-preview-step="upload"] .landing-preview-result{display:none!important}
.public-preview[data-preview-step="editor"] .preview-controls,.landing-preview[data-preview-step="editor"] .landing-preview-controls{display:none!important}
.public-preview[data-preview-step="editor"]>.preview-heading,.landing-preview[data-preview-step="editor"]>.landing-preview-heading{display:none}
.public-preview.preview-top[data-preview-step]{padding-top:20px;padding-bottom:38px}.public-preview.preview-top[data-preview-step="editor"]{padding-top:0}
.public-preview,.landing-preview,#view-decode{scroll-margin-top:110px}
.public-preview>.preview-heading{margin-bottom:26px}.public-preview>.preview-heading h1{margin:12px 0 10px;font-size:clamp(30px,3.5vw,42px);line-height:1.08;letter-spacing:-1.7px}.public-preview>.preview-heading p{font-size:14px}.public-preview>.preview-heading .preview-brand-lockup,.public-preview>.preview-heading .hero-proof,.public-preview>.trust-strip{display:none}
.preview-flow-return{display:flex;justify-content:flex-end;grid-column:1/-1;padding:13px 22px;border-bottom:1px solid var(--line);background:#fff}.preview-flow-return[hidden]{display:none!important}.preview-flow-return button{min-height:36px;padding:6px 12px;border:1px solid #e1e1e8;border-radius:8px;background:#f7f7fa;color:#555565;font:650 12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.preview-flow-return button:hover{border-color:#bbc0ce;background:#f0f1f7}
.public-preview[data-preview-step="upload"]>.preview-upgrade,.landing-preview[data-preview-step="upload"]>.preview-upgrade{display:none!important}
.preview-result>.preview-notice,.landing-preview-result>.landing-preview-notice{margin:0;border-radius:0;border:0;border-bottom:1px solid #363640}.preview-result>.preview-notice.ready,.landing-preview-result>.landing-preview-notice.ready{display:none}
#view-decode[data-preview-step="editor"]>:not(#creditPreview){display:none!important}
#view-decode[data-preview-step="upload"] #creditPreview .code-editor,#view-decode[data-preview-step="upload"] #creditPreview .credit-unlock,#view-decode[data-preview-step="upload"] #creditPreview .archive-selection,#view-decode[data-preview-step="upload"] #creditPreview .credit-preview-head{display:none!important}
#view-decode[data-preview-step="editor"] #creditPreview .credit-preview-status.ready{display:none}
.decoder-buyer-preview:has(.buyer-preview-panel:not([hidden])[data-preview-step="editor"])>.decoder-section-heading,.decoder-buyer-preview:has(.buyer-preview-panel:not([hidden])[data-preview-step="editor"])>.buyer-preview-tabs{display:none}
.preview-result.has-code-editor,.landing-preview-result.has-code-editor{display:block;height:auto!important;min-height:0!important;overflow:hidden;background:#1e1e1e}
.has-code-editor>.preview-result-head,.has-code-editor>.landing-preview-result-head,.has-code-editor>.landing-preview-result-foot,.has-code-editor>.credit-preview-head{display:none}
.code-editor{--editor-accent:#c82f43;--editor-glow:#ef7289;position:relative;display:flex;flex-direction:column;min-width:0;height:660px;max-height:85dvh;overflow:hidden;border:1px solid #3c3c3c;border-radius:14px;background:#1e1e1e;color:#d4d4d4;box-shadow:0 20px 55px #11131c24;text-align:left}
.preview-result .code-editor,.landing-preview-result .code-editor{border-radius:0;border:0;box-shadow:none}
[data-decoder="sourceguardian"] .code-editor,[data-decoder-preview="sourceguardian"] .code-editor,.code-editor[data-decoder="sourceguardian"]{--editor-accent:#287bc0;--editor-glow:#75beff}
.code-editor-bar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;min-height:56px;padding-right:12px;border-bottom:1px solid #2b2b2b;background:#252526}
.code-editor-tab{display:flex;align-items:center;gap:12px;min-width:0;max-width:calc(100% - 60px);align-self:stretch;padding:16px 24px;border-top:2px solid var(--editor-accent);background:#1e1e1e}
.code-editor-tab b{font:500 13px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e4e4e7}
.code-editor-language{font:italic 750 10px/1 ui-monospace,monospace;color:#b7a6e8}
.code-editor-expand{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;padding:0;border:1px solid #424246;border-radius:6px;background:#2d2d30;color:#c8c8d0;font-size:23px;line-height:1}
.code-editor-expand:hover{color:#fff;background:#38383c}.code-editor button:focus-visible{outline:2px solid var(--editor-glow);outline-offset:3px}
.code-editor-new-file{display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;min-height:38px;padding:7px 14px;border:1px solid #ffffff20;border-radius:8px;background:var(--editor-accent);color:#fff;box-shadow:0 4px 15px #0002;font:700 12px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.code-editor-new-file>span{font-size:27px;font-weight:800;line-height:.8}.code-editor-new-file>b{font-weight:750}.code-editor-new-file:hover{filter:brightness(1.12)}
.code-editor-tabs{display:flex;flex:1;min-width:0;align-self:stretch;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#505056 transparent}.code-editor-empty-tab{display:flex;align-items:center;padding:15px 24px;color:#a2a2ac;font:12px ui-monospace,monospace}.code-editor-file{display:flex;position:relative;flex:0 0 auto;max-width:260px;border-right:1px solid #37373b;border-top:2px solid transparent;background:#2d2d30}.code-editor-file.is-active{border-top-color:var(--editor-accent);background:#1e1e1e}.code-editor-file[data-decoder="sourceguardian"].is-active{border-top-color:#287bc0}.code-editor-file>.code-editor-tab{max-width:218px;min-width:0;gap:10px;padding:12px 8px 12px 18px;border:0;border-radius:0;background:transparent;color:#9e9ea7;text-align:left}.code-editor-file:not(.is-active) .code-editor-tab b{color:#a2a2ab}.code-editor-file-close{align-self:center;flex:0 0 auto;display:grid;place-items:center;width:27px;height:29px;margin:0 7px 0 0;padding:0;border:0;border-radius:5px;background:transparent;color:#94949f;font-size:19px}.code-editor-file-close:hover{background:#44444c;color:#fff}.code-editor-file .is-pending{color:#c9b878;animation:preview-tab-spin 1.5s linear infinite}.code-editor-pending{color:#9292a2!important}.code-editor-pending:before{content:''!important}
@keyframes preview-tab-spin{to{transform:rotate(360deg)}}
.code-editor-stage{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden}
.code-editor:has(ol.hidden){display:none}.code-editor-stage>ol.hidden{display:none!important}
.code-editor-stage>ol{display:block!important;width:100%;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:22px 0 170px!important;overflow:auto!important;border:0!important;border-radius:0!important;list-style:none;counter-reset:code-line;background:#1e1e1e!important;color:#d4d4d4!important;font:15px/27px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;tab-size:4;scrollbar-color:#55555b #1e1e1e;scrollbar-width:thin;overscroll-behavior:contain}
.code-editor-stage>ol:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #8289a466}
.code-editor-stage>ol>li{position:relative;display:block;width:max-content;min-width:100%;min-height:27px;padding:0 28px 0 0!important;white-space:pre!important;overflow-wrap:normal!important;counter-increment:code-line}
.code-editor-stage>ol>li:before{position:sticky;left:0;z-index:1;display:inline-block;box-sizing:border-box;min-width:66px;padding-right:23px;background:#1e1e1e;color:#858585;text-align:right;content:counter(code-line);user-select:none}
.code-editor-stage>ol>li:hover{background:#252526}.code-line-text{padding-right:16px}
.code-editor .syntax-keyword,.code-editor .syntax-tag{color:#c586c0}.code-editor .syntax-variable{color:#9cdcfe}.code-editor .syntax-string{color:#ce9178}.code-editor .syntax-comment{color:#6a9955}.code-editor .syntax-number{color:#b5cea8}.code-editor .syntax-function{color:#dcdcaa}.code-editor .syntax-constant{color:#4fc1ff}.code-editor .syntax-operator{color:#d4d4d4}
.code-editor-stage>ol>.preview-locked-line{height:27px;pointer-events:none;user-select:none}.code-editor-stage>ol>.preview-locked-line>span{display:inline-block;width:var(--placeholder-width);max-width:650px;height:9px;border-radius:3px;background:linear-gradient(90deg,#858bb03d,#858bb012);vertical-align:middle;opacity:.6}.code-editor-stage>ol>.preview-locked-line:nth-child(3n)>span{margin-left:18px}
.code-editor-unlock{position:absolute;z-index:3;left:24px;right:24px;bottom:20px;display:flex;align-items:center;gap:15px;padding:21px 24px;border:1px solid #ffffff26;border-radius:14px;background:linear-gradient(125deg,#303039f5,#25252df5);box-shadow:0 -24px 60px 20px #1e1e1edb,0 12px 35px #0005;backdrop-filter:blur(14px)}
.code-editor-unlock[hidden]{display:none}.code-editor-lock{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid #ffffff18;border-radius:12px;background:#ffffff08;color:var(--editor-glow);font-size:25px}
.code-editor-unlock>div{display:grid;gap:5px;min-width:0}.code-editor-unlock b{color:#f3f3f5;font-size:17px;line-height:1.4;letter-spacing:-.3px}.code-editor-unlock>div>span{color:#aaaab4;font-size:12px;line-height:1.5}
.code-editor-unlock>button{flex:0 0 auto;min-height:46px;margin-left:auto;padding:12px 22px;border:1px solid #ffffff18;border-radius:8px;background:var(--editor-accent);color:#fff;font:700 12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;box-shadow:0 5px 20px #0003}.code-editor-unlock>button:hover{filter:brightness(1.12)}
.code-editor-foot{display:flex;justify-content:space-between;gap:14px;flex-shrink:0;padding:7px 18px;background:#26262b;border-top:1px solid #333338;color:#aaaab5;font:11px/1.4 ui-monospace,monospace}
.credit-preview>.code-editor{margin:16px;width:calc(100% - 32px)}.credit-preview>.credit-unlock{border-bottom:0;border-top:1px solid var(--line)}
.code-editor.is-expanded{position:fixed;inset:16px;z-index:10000;width:auto!important;height:auto!important;max-height:none;margin:0!important;border-radius:14px!important;border:1px solid #515159!important;box-shadow:0 0 0 100vmax #090a10e8}.code-preview-expanded{overflow:hidden}
@media(min-width:1250px){body:has(.public-preview) main{max-width:1240px;width:100%}.public-preview .preview-shell{margin-inline:-12px}}
@media(max-width:900px){.preview-shell .preview-controls,.landing-preview-grid .landing-preview-controls{grid-template-columns:minmax(0,1fr);gap:14px}.preview-controls>#previewButton,.landing-preview-controls>.landing-preview-submit{grid-column:1/-1;grid-row:auto}.code-editor{height:640px}.code-editor-unlock{padding:18px;gap:12px}.code-editor-unlock b{font-size:15px}}
@media(max-width:560px){.preview-shell .preview-controls,.landing-preview-grid .landing-preview-controls{display:flex;flex-direction:column;align-items:stretch;padding:18px}.preview-controls>.preview-dropzone,.preview-controls>.preview-file,.landing-preview-controls>.landing-preview-dropzone,.landing-preview-controls>.landing-preview-selected{min-height:110px}.code-editor{height:620px;max-height:82dvh}.code-editor-bar{min-height:51px}.code-editor-tab{padding:13px 15px;gap:8px}.code-editor-tab b{font-size:11px}.code-editor-stage>ol{font-size:14px!important;line-height:26px!important;padding-bottom:205px!important}.code-editor-stage>ol>li{min-height:26px}.code-editor-stage>ol>li:before{min-width:49px;padding-right:14px}.code-editor-unlock{left:12px;right:12px;bottom:12px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px 12px;padding:16px}.code-editor-lock{width:32px;height:32px;border-radius:9px;font-size:20px;flex-basis:32px}.code-editor-unlock b{font-size:14px}.code-editor-unlock>div>span{font-size:10px}.code-editor-unlock>button{grid-column:1/-1;width:100%;margin:5px 0 0;min-height:44px}.code-editor-foot{font-size:9px;padding:7px 12px}.code-editor.is-expanded{inset:0;border-radius:0!important}.credit-preview>.code-editor{margin:12px;width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.code-editor *{scroll-behavior:auto!important}}
@media(max-width:600px){.code-editor-bar{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:0 10px;padding:0 10px}.code-editor-tabs{grid-column:1/-1;grid-row:2;margin:0 -10px;border-top:1px solid #36363c;min-height:47px}.code-editor-new-file{grid-column:1;grid-row:1;justify-self:start;margin:9px 0;font-size:12px;min-height:38px}.code-editor-expand{grid-column:2;grid-row:1}.public-preview>.preview-heading{margin-bottom:20px}.public-preview>.preview-heading h1{font-size:32px;letter-spacing:-1.2px}.preview-flow-return{padding:10px 14px}}

/* Full-width file selection, followed by one clear action. */
.preview-controls,.landing-preview-controls{--upload-accent:#c62f49;--upload-end:#e65b72}
.preview-shell[data-decoder="sourceguardian"] .preview-controls,.landing-preview[data-decoder-preview="sourceguardian"] .landing-preview-controls{--upload-accent:#176cba;--upload-end:#369cea}
.preview-controls>.preview-encoders{width:min(100%,440px)}
.landing-preview-controls>.landing-preview-brand{width:100%;max-width:none}
.preview-controls>.preview-dropzone,.landing-preview-controls>.landing-preview-dropzone{position:relative;width:100%;min-height:190px;flex-direction:column;gap:13px;border:1.5px dashed color-mix(in srgb,var(--upload-accent) 30%,#dcdde5);background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--upload-accent) 5%,white),transparent 70%),#fcfcfe;text-align:center;transition:background .2s,border-color .2s,box-shadow .2s}
.preview-controls>.preview-dropzone:before,.landing-preview-controls>.landing-preview-dropzone:before{content:"";position:absolute;inset:9px;pointer-events:none;border:1px solid #ffffffc9;border-radius:9px}
.preview-controls>.preview-dropzone:hover,.preview-controls>.preview-dropzone.drag,.landing-preview-controls>.landing-preview-dropzone:hover,.landing-preview-controls>.landing-preview-dropzone.drag{border-color:var(--upload-accent);background:color-mix(in srgb,var(--upload-accent) 5%,white);box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--upload-accent) 4%,transparent);transform:none}
.preview-controls>.preview-dropzone .upload-icon,.landing-preview-controls>.landing-preview-dropzone>span{width:52px;height:52px;border:1px solid color-mix(in srgb,var(--upload-accent) 14%,white);border-radius:16px;background:#fff;color:var(--upload-accent);box-shadow:0 7px 20px color-mix(in srgb,var(--upload-accent) 8%,transparent);font-size:25px}
.preview-controls>.preview-dropzone>div,.landing-preview-controls>.landing-preview-dropzone>div{display:grid;gap:4px;text-align:center}
.preview-controls>.preview-dropzone b,.landing-preview-controls>.landing-preview-dropzone b{font-size:16px;font-weight:750;letter-spacing:-.3px}
.preview-controls>.preview-dropzone small,.landing-preview-controls>.landing-preview-dropzone small{margin:0;font-size:12px}
.preview-controls>.preview-file,.landing-preview-controls>.landing-preview-selected{width:100%;min-height:105px;padding:22px;min-width:0}
.preview-controls>.preview-file>div,.landing-preview-controls>.landing-preview-selected>div{min-width:0;flex:1}
.preview-controls>.preview-file b,.landing-preview-controls>.landing-preview-selected b{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-controls>.limits,.landing-preview-controls>.landing-preview-limit{font-size:10px;padding-inline:2px}
.preview-controls>#previewButton,.landing-preview-controls>.landing-preview-submit{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;min-height:62px;padding:17px 74px;border:1px solid #ffffff29;border-radius:13px;background-image:linear-gradient(110deg,#ffffff00 30%,#ffffff22 50%,#ffffff00 70%),linear-gradient(110deg,var(--upload-accent),var(--upload-end));background-size:220% 100%,100% 100%;background-position:100% 0,0 0;color:#fff!important;font-size:16px;font-weight:780;letter-spacing:-.25px;box-shadow:0 9px 24px color-mix(in srgb,var(--upload-accent) 20%,transparent);transition:background-position .6s,box-shadow .2s,transform .2s}
.preview-controls>#previewButton>span{display:none}
.preview-controls>#previewButton:before,.landing-preview-controls>.landing-preview-submit:before{content:"</>";position:absolute;left:15px;top:50%;display:grid;place-items:center;width:37px;height:37px;border:1px solid #ffffff29;border-radius:10px;background:#ffffff14;color:#fff;font:700 14px/1 ui-monospace,monospace;transform:translateY(-50%)}
.preview-controls>#previewButton:after,.landing-preview-controls>.landing-preview-submit:after{content:"↗";position:absolute;inset:50% 15px auto auto;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffffff1c;color:#fff;font:500 21px/1 Inter,sans-serif;transform:translateY(-50%);animation:none}
.preview-controls>#previewButton:not(:disabled):hover,.landing-preview-controls>.landing-preview-submit:not(:disabled):hover{background-position:0 0,0 0;transform:translateY(-2px);box-shadow:0 13px 28px color-mix(in srgb,var(--upload-accent) 29%,transparent)}
.preview-controls>#previewButton:disabled,.landing-preview-controls>.landing-preview-submit:disabled{opacity:.5;box-shadow:none}
.preview-controls>#previewButton:focus-visible,.landing-preview-controls>.landing-preview-submit:focus-visible{outline:3px solid color-mix(in srgb,var(--upload-accent) 38%,white);outline-offset:4px}
@media(max-width:560px){.preview-controls>.preview-dropzone,.landing-preview-controls>.landing-preview-dropzone{min-height:165px}.preview-controls>#previewButton,.landing-preview-controls>.landing-preview-submit{min-height:60px;padding-inline:60px;font-size:14px}.preview-controls>.preview-file,.landing-preview-controls>.landing-preview-selected{min-height:95px;padding:17px}}
@media(prefers-reduced-motion:reduce){.preview-controls>#previewButton,.landing-preview-controls>.landing-preview-submit,.preview-controls>.preview-dropzone,.landing-preview-controls>.landing-preview-dropzone{transition:none}.preview-controls>#previewButton:not(:disabled):hover,.landing-preview-controls>.landing-preview-submit:not(:disabled):hover{transform:none}}
