@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');
:root{--bg:#404040;--panel:#262626;--panel2:#343434;--line:#515151;--text:#ccc;--muted:#888;--purple:#e85d9b;--pink:#ee8db9;--green:#9ce6c2;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Comfortaa,system-ui,sans-serif;font-size:14px;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.topbar{height:76px;border-bottom:1px solid #ffffff0c;display:flex;align-items:center;padding:0 max(calc((100vw - 1120px)/2),32px);gap:54px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;letter-spacing:-.6px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e85d9b;color:#262626;font-weight:800}.muted{color:var(--muted)}nav{display:flex;gap:28px;height:100%;align-items:center;color:var(--muted);font-weight:600}nav a{height:100%;display:grid;align-items:center;position:relative}nav a.active,nav a:hover{color:#fff}nav a.active:after{content:'';height:2px;background:var(--purple);position:absolute;bottom:-1px;left:0;right:0}.account{margin-left:auto;display:flex;align-items:center;gap:17px}.user{display:flex;align-items:center;gap:9px}.user img{width:26px;height:26px;border-radius:50%;object-fit:cover}.account form{margin:0}.quiet{color:var(--muted);background:none;border:0;cursor:pointer}.button{border:0;border-radius:10px;background:#e85d9b;color:#19151e;display:inline-flex;align-items:center;justify-content:center;gap:28px;padding:15px 19px;font-weight:800;cursor:pointer;transition:filter .2s,transform .2s}.button:hover{filter:brightness(1.08);transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:not-allowed}.button.small{padding:10px 14px;font-size:12px;gap:10px}main{max-width:1120px;margin:0 auto;padding:0 28px}.hero{padding:66px 0 32px}.eyebrow{font:500 10px 'DM Mono',monospace;color:#ccc;letter-spacing:1.2px;margin:0 0 13px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:10px;background:var(--green);margin-right:8px;box-shadow:0 0 10px #9ce6c266}h1{font-size:clamp(38px,6vw,57px);line-height:1.09;letter-spacing:-2.8px;margin:0 0 14px;font-weight:800}.accent{color:var(--purple)}.hero>p:last-child{color:var(--muted);font-size:14px}.workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);gap:20px;align-items:start}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.render-card{padding:25px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.section-title .eyebrow{margin-bottom:6px}.section-title h2,.job-head h2{font-size:19px;margin:0;letter-spacing:-.4px}.step,.pill{font:10px 'DM Mono',monospace;color:var(--muted);border:1px solid var(--line);padding:6px 9px;border-radius:7px}.dropzone{height:132px;border:1px dashed #727272;border-radius:13px;background:#e85d9b06;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;position:relative}.dropzone:hover{border-color:var(--purple);background:#e85d9b0c}.dropzone input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.dropzone strong{font-size:13px}.dropzone span:last-of-type{font-size:11px;color:var(--muted)}.upload-icon{font-size:18px;color:var(--purple)}.field-row{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:20px}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:700;color:#d8d6e1;position:relative}.field input:not([type=file]),.field select{width:100%;background:#111217;border:1px solid var(--line);color:var(--text);border-radius:9px;padding:12px;font-size:12px;outline:0}.field input:focus,.field select:focus{border-color:var(--purple)}.search-field{position:relative}.search-field input{padding-right:40px!important}.search-field button{position:absolute;right:4px;top:4px;height:34px;width:34px;background:var(--panel2);border:0;border-radius:7px;color:var(--purple);font-size:20px;cursor:pointer}.results{font-size:11px;color:var(--muted)}.map-result{display:block;width:100%;padding:8px;text-align:left;background:var(--panel2);color:var(--text);border:0;border-bottom:1px solid var(--line);cursor:pointer;font-size:11px}.skin-row{display:flex;align-items:end;justify-content:space-between;margin-top:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}.skin-row input{display:block;margin-top:8px;font-size:11px;color:var(--muted)}.subtle,.text-link{color:var(--muted);font-size:11px}.text-link{color:var(--purple);padding-bottom:5px}.options{border-bottom:1px solid var(--line)}.options summary{cursor:pointer;list-style:none;padding:17px 0;display:flex;justify-content:space-between;align-items:center}.options summary::-webkit-details-marker{display:none}.options summary span:first-child{display:grid;gap:5px}.options summary b{font:500 10px 'DM Mono',monospace;letter-spacing:.5px}.options summary small{font-size:11px;color:var(--muted)}.chevron{font-size:17px;color:var(--muted)}.flag-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:15px}.flag{background:#111217;border:1px solid var(--line);padding:9px;border-radius:9px;display:grid;grid-template-columns:14px 1fr;align-items:center;gap:5px 8px;font-size:10px}.flag input[type=checkbox]{accent-color:var(--purple);margin:0}.flag code{grid-column:2;color:#888895;font-size:9px}.flag-value{grid-column:1/-1;width:100%;background:var(--panel2);border:1px solid var(--line);padding:6px;color:var(--text);border-radius:5px;font-size:10px}.help,.fineprint{font-size:10px;color:var(--muted);line-height:1.7}.help code{color:var(--purple)}.render-button{width:100%;margin-top:17px}.render-button span:last-child{font-size:18px}.center{text-align:center}.side-column{display:grid;gap:14px}.preview{padding:16px}.preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.preview-top .muted{font:10px 'DM Mono',monospace}.preview-screen{height:182px;background:#181820;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#e6dfff;font:10px 'DM Mono',monospace;letter-spacing:.4px}.preview-screen small{font:10px Manrope,sans-serif;color:var(--muted);letter-spacing:0}.preview-disc{font-size:34px;color:#b999ff;margin-bottom:2px}.render-status{display:flex;align-items:center;gap:10px;padding:16px 3px 3px}.status-icon{color:var(--purple);font-size:18px}.render-status div{display:grid;gap:4px}.render-status b,.support-card b{font-size:11px}.render-status small{font-size:10px;color:var(--muted)}.support-card{display:flex;gap:12px;padding:16px;border:1px solid #8765c044;background:#211a2c;border-radius:14px}.support-icon{width:28px;height:28px;display:grid;place-items:center;background:#aa86ff1c;border-radius:8px;color:var(--purple);flex:none}.support-card p{font-size:10px;color:var(--muted);line-height:1.6;margin:7px 0}.support-card a{font-size:10px;color:var(--purple);font-weight:700}.osu-callout{display:flex;gap:10px;align-items:center;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.osu-callout>span:nth-child(2){display:grid;gap:4px;flex:1}.osu-callout b{font-size:10px}.osu-callout small{font-size:9px;color:var(--muted)}.osu-callout>span:last-child{color:var(--purple)}.osu-logo{font-size:12px;font-weight:800;color:#ee8db9}.ad-slot{margin:24px auto;min-height:70px;border:1px dashed #2c2d37;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.ad-slot span{font:9px 'DM Mono',monospace;color:#555662}.ad-slot small{font-size:9px;color:#666671}.job-card{padding:23px;margin-top:18px}.job-head{display:flex;justify-content:space-between;align-items:end}.job-head .eyebrow{margin-bottom:7px}.job-head>#job-percent{font:20px 'DM Mono',monospace;color:var(--purple)}.progress{height:8px;background:var(--panel2);border-radius:9px;margin:20px 0 10px;overflow:hidden}.progress span{display:block;width:0;height:100%;background:var(--purple);transition:width .4s}.job-foot{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}video{width:100%;margin-top:20px;border-radius:12px;background:#000}.plan{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:740px;padding:28px;background:var(--panel);border:1px solid #624d85;border-radius:18px}.plan h2{font-size:38px;margin:14px 0 5px;letter-spacing:-1px}.plan h2 small{font-size:13px;color:var(--muted);font-weight:500}.plan p,.plan li,.fineprint{color:var(--muted)}.plan ul{padding-left:18px;line-height:2}.plan form{display:grid;gap:12px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.account-grid .card{padding:20px}.notice{margin-top:16px;padding:12px;border:1px solid #695433;background:#342b1c;border-radius:9px;font-size:12px}footer{max-width:1120px;margin:40px auto 0;padding:22px 28px 32px;border-top:1px solid #ffffff0d;display:flex;align-items:center;gap:20px;color:var(--muted);font-size:10px}footer .brand{font-size:13px;color:var(--text)}footer .brand-mark{width:23px;height:23px;border-radius:7px}footer>span{flex:1}footer>a:last-child{color:#bbb5c6}@media(max-width:760px){.topbar{padding:0 17px;gap:18px;height:64px}.topbar nav{gap:13px;font-size:11px}.brand{font-size:14px}.brand-mark{width:26px;height:26px}.user{display:none}main{padding:0 17px}.hero{padding:45px 0 25px}.workspace{grid-template-columns:1fr}.render-card{padding:19px}.field-row{grid-template-columns:1fr}.side-column{grid-template-columns:1fr}.flag-grid{grid-template-columns:1fr 1fr}.account{gap:6px}.account .button{font-size:10px;padding:9px}.plan{align-items:flex-start;flex-direction:column}.plan form{width:100%}.plan .button{width:100%}.account-grid{grid-template-columns:1fr}footer{padding:20px 17px;flex-wrap:wrap}}

.resolution-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:4px 0 14px}.range-option{background:#111217;border:1px solid var(--line);padding:11px;border-radius:9px;display:grid;gap:9px;min-width:0}.range-heading{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:700}.range-heading output,.range-option>output{color:var(--purple);font:10px 'DM Mono',monospace}.range-option input[type=range]{width:100%;accent-color:var(--purple);cursor:pointer}.range-option input[type=range]:disabled{opacity:.4;cursor:not-allowed}.resolution-note{grid-column:1/-1;margin:0}.option-toggle{min-height:36px;background:#111217;border:1px solid var(--line);border-radius:9px;padding:9px;display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer}.option-toggle:has(input:checked){border-color:var(--purple);color:#fff;background:#37232f}.option-toggle input{accent-color:var(--purple);margin:0}.flag-grid .flag{grid-template-columns:1fr}.range-option .option-toggle{padding:0;border:0;background:transparent;min-height:unset}.range-option .option-toggle:has(input:checked){background:transparent;color:#fff}.flag-grid .range-option{align-content:start}
@media(max-width:520px){.resolution-controls{grid-template-columns:1fr}.resolution-note{grid-column:auto}}
.option-toggle input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;margin:0}.option-toggle:has(input:focus-visible){outline:2px solid var(--pink);outline-offset:2px}
.range-option .option-toggle{width:fit-content;padding:7px 10px;border:1px solid var(--line);background:#111217;border-radius:8px;min-height:unset}
.range-option .option-toggle:has(input:checked){border-color:var(--purple);background:#37232f;color:#fff}
.aspect-picker{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:2px 0 11px}
.aspect-picker-label{font-size:10px;color:var(--muted);margin-right:2px}
.aspect-button{position:relative;cursor:pointer}
.aspect-button input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;margin:0}
.aspect-button span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:8px 10px;background:#111217;border:1px solid var(--line);border-radius:8px;color:var(--muted);font:10px 'DM Mono',monospace}
.aspect-button input:checked+span{border-color:var(--purple);background:#37232f;color:#fff}
.aspect-button input:focus-visible+span{outline:2px solid var(--pink);outline-offset:2px}

/* Render quality and account layout */
.quality-picker{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:2px 0 13px}
.quality-locked{opacity:.68}
.quality-locked span{color:var(--pink)}
.flag-grid .option-toggle.flag{display:flex;min-height:42px;align-items:center;line-height:1.35;padding:10px;}
.account-hero{padding-bottom:22px}
.account-profile{display:flex;align-items:center;gap:16px;padding:18px 20px;margin-bottom:15px}
.account-profile>img{width:54px;height:54px;border-radius:50%;object-fit:cover;background:var(--panel2)}
.account-profile>div{flex:1;min-width:0}
.account-profile .eyebrow,.account-panel .eyebrow{margin-bottom:7px}
.account-profile h2,.account-panel h2{font-size:17px;margin:0 0 7px;letter-spacing:-.3px}
.account-profile p:last-child,.account-panel>p:not(.eyebrow){color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 15px}
.account-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.account-grid .account-panel{padding:20px;min-width:0}
.account-panel .button{margin-top:4px}
.account-panel form{margin:0}
.account-panel .saved-skins{display:grid;gap:6px;margin:0 0 14px}
.skin-entry,.recent-render-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;background:#1b1b1b;border:1px solid #3b3b3b;border-radius:8px;font-size:10px;min-width:0}
.skin-entry span,.recent-render-entry b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.skin-entry .quiet{flex:none;padding:4px 0 4px 8px}
.recent-render-list{display:grid;gap:6px}
.recent-render-entry span{color:var(--muted);font:9px 'DM Mono',monospace;white-space:nowrap}
.account-signin{padding:24px;max-width:550px}
.account-signin p{color:var(--muted);margin-top:0}
@media(max-width:760px){.account-profile{padding:15px;gap:12px}.account-profile>img{width:44px;height:44px}.account-profile .button{padding:9px 10px;gap:7px}.account-grid{grid-template-columns:1fr}}

/* Maple surface and control language */
:root{--bg:#404040;--panel:#343434;--panel2:#282828;--line:#505050;--text:#ccc;--muted:#929292;--purple:#e85d9b;--pink:#e85d9b;--green:#9ce6c2;--radius:20px}
body{background:#404040;color:#ccc;font-size:15px;font-family:Comfortaa,system-ui,sans-serif}
.topbar{position:sticky;top:0;z-index:5;background:#262626;box-shadow:0 8px 18px #0004;border:0}
.brand-mark{background:#343434;color:#e85d9b}
nav{color:#ccc}nav a.active:after{background:#e85d9b}
.button,.button.small{background:#727272;color:#ccc;border-radius:20px;box-shadow:none;transition:background-color .15s ease}
.button:hover,.button.small:hover{background:#595959;color:#ccc;filter:none;transform:none}
.card,.plan{background:#343434;border:0;border-radius:20px;box-shadow:0 5px 12px #0004}
.render-card{padding:30px}
.step,.pill{border-radius:20px;color:#ccc;border-color:#595959}
.hero{padding-top:56px}
.hero>p:last-child,.subtle,.text-link,.fineprint{color:#aaa}
.accent,.text-link,.support-card a,.status-icon,.upload-icon{color:#e85d9b}
.field{font-size:13px;color:#ddd}
.field input:not([type=file]),.field select{background:#727272;border:0;border-radius:20px;color:#ccc;padding:14px 17px;font-size:13px}
.field input::placeholder{color:#ddd}
.dropzone{height:138px;border:2px dashed #727272;border-radius:20px;background:#343434;gap:8px;color:#ccc;transition:background-color .15s,border-color .15s}
.dropzone:hover,.dropzone.is-dragging{border-color:#e85d9b;background:#404040}
.dropzone strong{font-size:14px;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropzone span:last-of-type{font-size:11px;color:#aaa;text-align:center}
.secondary-dropzone{height:138px}
.field-row{margin-top:18px;grid-template-columns:minmax(0,1fr) auto;align-items:end}
.skin-select-row .text-link{padding-bottom:14px;white-space:nowrap}
.upload-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.support-locked{display:flex;align-items:center;gap:12px;padding:16px;background:#282828;border-radius:20px;min-height:138px}
.support-locked .support-icon{background:#343434;color:#e85d9b}
.support-locked b{font-size:12px}
.support-locked p{font-size:11px;color:#aaa;line-height:1.5;margin:6px 0}
.support-locked a{font-size:11px;color:#e85d9b;font-weight:700}
.options summary{padding:21px 0}
.options summary b{font:700 12px Comfortaa,system-ui,sans-serif;letter-spacing:.2px}
.options summary small{font-size:12px}
.aspect-picker-label{font-size:12px;color:#ccc}
.aspect-button span{background:#727272;border:0;border-radius:20px;color:#ddd;padding:10px 14px;font:600 12px Comfortaa,system-ui,sans-serif}
.aspect-button input:checked+span{background:#595959;color:#fff;box-shadow:inset 0 0 0 2px #e85d9b}
.quality-locked span{color:#ffd1e4;box-shadow:inset 0 0 0 1px #e85d9b}
.flag-grid{gap:12px;padding:5px 0 20px}
.range-option{background:#282828;border:0;border-radius:18px;padding:16px 18px;gap:12px;box-shadow:0 3px 8px #0003}
.range-heading{align-items:center;font-size:13px;color:#ddd}
.range-heading output,.range-option>output{font:700 13px Comfortaa,system-ui,sans-serif;color:#e85d9b;min-width:38px;text-align:right}
.range-option input[type=range]{height:26px;margin:0;background:transparent;accent-color:#e85d9b;cursor:pointer;touch-action:pan-y}
.range-option input[type=range]::-webkit-slider-runnable-track{height:7px;background:#595959;border-radius:10px}
.range-option input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-5.5px;border-radius:50%;background:#e85d9b;border:2px solid #ccc;appearance:none}
.range-option input[type=range]::-moz-range-track{height:7px;background:#595959;border-radius:10px}
.range-option input[type=range]::-moz-range-thumb{width:15px;height:15px;border-radius:50%;background:#e85d9b;border:2px solid #ccc}
.flag-grid .option-toggle.flag{width:100%;height:54px;min-height:54px;padding:12px 16px;background:#282828;border:0;border-radius:18px;display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.3;box-shadow:0 3px 8px #0003}
.flag-grid .option-toggle.flag:has(input:checked){background:#595959;color:#fff;box-shadow:inset 0 0 0 2px #e85d9b}
.flag-grid .option-toggle.flag>span{display:flex;align-items:center;gap:11px;min-width:0}
.flag-grid .option-toggle.flag>span:before{content:'';width:17px;height:17px;flex:none;border:2px solid #929292;border-radius:6px;box-sizing:border-box}
.flag-grid .option-toggle.flag input:checked+span:before{content:'✓';display:grid;place-items:center;background:#e85d9b;color:#262626;border-color:#e85d9b;font:700 12px Arial,sans-serif}
.options{border-color:#505050}
.preview,.support-card,.osu-callout{background:#343434;border:0;border-radius:20px;box-shadow:0 5px 12px #0004}
.preview-screen{background:#282828;border-radius:16px;color:#ccc}
.support-card{padding:18px}
.support-icon{background:#282828;color:#e85d9b}
.progress{background:#282828;height:10px}
.progress span{background:#e85d9b}
.ad-slot{border-color:#727272;border-radius:20px}
.plan{padding:32px;border:0}
.account-profile,.account-grid .account-panel,.account-signin{background:#343434;border:0;box-shadow:0 5px 12px #0004}
.notice{border:0;background:#595959;border-radius:16px}
@media(max-width:760px){.render-card{padding:20px}.upload-pair{grid-template-columns:1fr}.field-row{grid-template-columns:1fr}.skin-select-row .text-link{justify-self:start;padding:0}.secondary-dropzone,.support-locked{min-height:118px;height:118px}.flag-grid .option-toggle.flag{height:54px;min-height:54px}}

/* Public renders, privacy controls, and admin workspace */
.privacy-toggle{display:flex;align-items:center;gap:12px;margin:8px 0 14px;padding:14px 16px;background:#343434;border:1px solid #515151;border-radius:14px;cursor:pointer}
.privacy-toggle input{width:18px;height:18px;accent-color:#e85d9b;flex:none}
.privacy-toggle span{display:grid;gap:5px}
.privacy-toggle b{font-size:12px}
.privacy-toggle small,.render-visibility{color:#aaa;font-size:10px;line-height:1.5}
.render-visibility{margin:8px 0 14px}
.render-share{margin:14px 0 0;font-size:11px;color:#e85d9b}
.render-preview-placeholder[hidden],#render-preview-placeholder[hidden]{display:none}
.preview video{max-height:250px;object-fit:contain}
.public-render-panel{padding:22px}
.public-render-panel .section-title{margin-bottom:14px}
.public-render-list{display:grid;gap:10px}
.public-render-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;padding:14px 16px;background:#343434;border-radius:14px}
.public-render-details,.recent-render-details{display:grid;gap:6px;min-width:0}
.public-render-details b,.recent-render-details b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.public-render-details small,.recent-render-details small,.public-render-expiry{color:#aaa;font-size:10px}
.public-render-state{font:10px 'DM Mono',monospace;color:#e85d9b;white-space:nowrap}
.public-render-entry .text-link{grid-column:1/-1;justify-self:start;font-size:11px}
.public-render-expiry{grid-column:1/-1}
.mini-progress{grid-column:1/-1;height:5px;background:#262626;border-radius:8px;overflow:hidden}
.mini-progress span{display:block;height:100%;background:#e85d9b}
.recent-render-entry{color:inherit;text-decoration:none}
a.recent-render-entry:hover{border-color:#e85d9b}
.recent-render-details{flex:1;min-width:0}
.recent-render-details small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}
.admin-panel{padding:20px}
.admin-panel h2{margin:0 0 16px;font-size:17px}
.admin-panel form{display:grid;gap:12px}
.admin-panel .field input{margin-top:2px}
.admin-list{display:grid;gap:7px;margin-top:16px}
.admin-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#262626;border-radius:10px;font-size:10px}
.admin-entry span{overflow-wrap:anywhere}
.admin-entry button{flex:none;color:#e85d9b}
@media(max-width:760px){.public-render-panel{padding:17px}.public-render-entry{grid-template-columns:1fr;gap:8px}.public-render-state{justify-self:start}.admin-grid{grid-template-columns:1fr}.topbar{gap:10px}.topbar nav{gap:9px;font-size:10px}.brand{gap:6px}.account{gap:4px}}
@media(max-width:760px){.topbar{justify-content:space-between;gap:8px}.topbar nav{flex:1;min-width:0;justify-content:flex-start;gap:8px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}.topbar nav::-webkit-scrollbar{display:none}.topbar nav a{flex:none}.topbar .account{margin-left:0}.topbar .account .button{white-space:nowrap;padding:8px 9px;font-size:9px}}
/* Legal and information pages */
.legal-page{padding:clamp(20px,4vw,38px);margin-bottom:24px;line-height:1.75;font-size:13px;color:#ccc}
.legal-page h2{font-size:18px;line-height:1.35;margin:26px 0 9px;color:#f3f1f6}
.legal-page h2:first-child{margin-top:0}
.legal-page h3{font-size:14px;margin:20px 0 7px;color:#f3f1f6}
.legal-page p{margin:8px 0}
.legal-page ul{padding-left:22px}
.legal-page li{margin:5px 0}
.legal-page a,.mirror-credit-list a{color:#ee8db9;text-decoration:underline;text-underline-offset:3px}
.legal-page .legal-updated{font-size:10px;color:#aaa}
.mirror-credit-list{display:flex;flex-wrap:wrap;gap:10px 24px;margin:0;padding:0;list-style:none}
.legal-footer-links{height:auto;color:inherit;display:flex;align-items:center;gap:14px;font-size:10px}
.legal-footer-links a{height:auto;display:inline-flex;position:static;color:inherit}
.legal-footer-links a:hover{color:#fff}
@media(max-width:760px){.legal-footer-links{gap:12px}footer>span{flex:1 1 100%}}
.advanced-ratio{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0 14px}.advanced-ratio summary{cursor:pointer;color:var(--purple);font-size:11px;padding:4px}.custom-ratio-toggle{display:flex;gap:9px;align-items:center;font-size:11px;margin:12px 0}.custom-ratio-toggle input{accent-color:var(--purple)}.custom-ratio-sliders{display:grid;grid-template-columns:1fr 1fr;gap:12px}.custom-ratio-sliders .range-option{padding:10px}.custom-ratio-sliders input[type=range]{width:100%;accent-color:var(--purple)}.ur-style-field{margin:8px 0 14px;max-width:340px}.field textarea,.field select{width:100%;background:#111217;border:1px solid var(--line);color:var(--text);border-radius:9px;padding:12px;font:inherit;font-size:12px;resize:vertical}.support-form-card{padding:24px;max-width:760px;margin-bottom:26px}.support-form-card form{display:grid;gap:16px}.support-form-card .field small{color:var(--muted);font-size:10px}.support-signed-in{font-size:12px;color:var(--muted)}.admin-subnav{height:auto;display:flex;gap:18px;margin:0 0 18px;color:var(--muted);font-size:11px}.admin-subnav a{height:auto;display:inline-block;padding:7px 0}.admin-subnav a.active,.admin-subnav a:hover{color:var(--purple)}.content-editor-panel{padding:22px;margin:20px 0 28px}.content-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.content-editor-heading h2{margin:0 0 10px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.editor-toolbar button{background:#333;border:1px solid var(--line);color:var(--text);border-radius:7px;padding:8px 10px;cursor:pointer;font-size:11px}.editor-toolbar button:hover{border-color:var(--purple);color:#fff}.editor-image-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;font-size:10px;color:var(--muted)}.editor-image-tools label{display:flex;align-items:center;gap:6px}.editor-image-tools input{width:105px;accent-color:var(--purple)}.editor-image-tools output{min-width:34px;color:var(--purple)}.editor-image-tools small{flex:1 1 100%}.content-editor{min-height:260px;background:#1d1d1d;border:1px solid var(--line);border-radius:10px;padding:18px;line-height:1.7;outline:0}.content-editor:focus{border-color:var(--purple)}.content-editor img,.page-content img{max-width:100%;height:auto;cursor:grab}.content-editor img:active{cursor:grabbing}.page-content img{display:block;margin:12px 0}.support-inbox{display:grid;gap:13px;margin-bottom:28px}.support-ticket{padding:19px;display:grid;gap:9px}.support-ticket.is-new{border-color:var(--purple)}.support-ticket-heading,.support-ticket-actions{display:flex;align-items:center;gap:10px}.support-ticket-heading h2{font-size:15px;margin:0;flex:1}.support-ticket-identity,.support-ticket-contact{margin:0;font-size:10px;color:var(--muted)}.support-ticket-contact a,.support-ticket>a,.support-ticket-files a{color:var(--purple);text-decoration:underline}.support-ticket-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#1d1d1d;border-radius:9px;padding:13px;margin:2px 0;font-size:12px;line-height:1.6}.support-ticket-files{display:flex;flex-wrap:wrap;gap:10px}.support-ticket-actions{border-top:1px solid var(--line);padding-top:10px}.support-ticket-actions .danger{color:#f88}.page-content{margin-bottom:18px}.page-content figure{margin:12px 0}.page-content a{overflow-wrap:anywhere}
@media(max-width:600px){.custom-ratio-sliders{grid-template-columns:1fr}.editor-image-tools{align-items:flex-start;flex-direction:column}.admin-subnav{overflow:auto;white-space:nowrap}}
/* Maple-aligned form controls */
.field select{
    width:100%;
    min-height:48px;
    padding:13px 46px 13px 17px;
    appearance:none;
    -webkit-appearance:none;
    background-color:#727272;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23dedede' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 17px center;
    background-size:14px 9px;
    border:0;
    border-radius:20px;
    color:#dedede;
    font-size:13px;
    line-height:1.35;
    cursor:pointer;
    box-shadow:none;
}
.field select option{background:#343434;color:#dedede}
.field select:hover{background-color:#666}
.field select:focus-visible{outline:2px solid #e85d9b;outline-offset:2px}
.field select:disabled{opacity:.55;cursor:not-allowed}

.range-option input[type=range]{
    width:100%;
    height:26px;
    margin:0;
    padding:0;
    appearance:none;
    -webkit-appearance:none;
    background:transparent;
    accent-color:#e85d9b;
    cursor:pointer;
    touch-action:pan-y;
}
.range-option input[type=range]::-webkit-slider-runnable-track{
    height:7px;
    background:#595959;
    border:0;
    border-radius:10px;
}
.range-option input[type=range]::-webkit-slider-thumb{
    width:18px;
    height:18px;
    margin-top:-5.5px;
    appearance:none;
    -webkit-appearance:none;
    background:#e85d9b;
    border:2px solid #ccc;
    border-radius:50%;
    box-shadow:none;
}
.range-option input[type=range]::-moz-range-track{
    height:7px;
    background:#595959;
    border:0;
    border-radius:10px;
}
.range-option input[type=range]::-moz-range-thumb{
    width:14px;
    height:14px;
    background:#e85d9b;
    border:2px solid #ccc;
    border-radius:50%;
    box-shadow:none;
}
.range-option input[type=range]:focus-visible{outline:2px solid #e85d9b;outline-offset:4px;border-radius:12px}
.range-option input[type=range]:disabled{opacity:.45;cursor:not-allowed}

.flag-grid .option-toggle.flag{position:relative}
.flag-grid .option-toggle.flag>span{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    line-height:1.35;
}
.flag-grid .option-toggle.flag>span:before{
    content:'';
    display:block;
    width:18px;
    height:18px;
    flex:0 0 18px;
    box-sizing:border-box;
    border:2px solid #929292;
    border-radius:5px;
    background-color:#404040;
    background-repeat:no-repeat;
    background-position:center;
    background-size:11px 11px;
}
.flag-grid .option-toggle.flag input:checked+span:before{
    content:'';
    display:block;
    background-color:#e85d9b;
    border-color:#e85d9b;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23262626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.custom-ratio-toggle input[type=checkbox],
.privacy-toggle input[type=checkbox]{
    width:18px;
    height:18px;
    flex:0 0 18px;
    margin:0;
    appearance:none;
    -webkit-appearance:none;
    display:inline-grid;
    place-content:center;
    border:2px solid #929292;
    border-radius:5px;
    background-color:#404040;
    background-repeat:no-repeat;
    background-position:center;
    background-size:11px 11px;
    accent-color:#e85d9b;
    cursor:pointer;
}
.custom-ratio-toggle input[type=checkbox]:checked,
.privacy-toggle input[type=checkbox]:checked{
    border-color:#e85d9b;
    background-color:#e85d9b;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23262626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.custom-ratio-toggle input[type=checkbox]:focus-visible,
.privacy-toggle input[type=checkbox]:focus-visible{
    outline:2px solid #e85d9b;
    outline-offset:3px;
}
.aspect-picker .aspect-button,
.quality-picker .aspect-button{
    display:inline-flex;
    align-items:center;
}
.aspect-picker-label{display:inline-flex;align-items:center;min-height:40px}

/* osu! BBCode page editor and public renderer */
.bbcode-editor-panel{display:grid;gap:18px}
.bbcode-toolbar{display:grid;gap:10px;padding:12px;border:1px solid var(--line,#444);border-radius:12px;background:var(--panel-2,#292929)}
.bbcode-toolbar-group{display:flex;flex-wrap:wrap;gap:7px}
.bbcode-toolbar button{min-height:36px;padding:7px 11px;border:1px solid var(--line,#555);border-radius:8px;background:var(--panel,#303030);color:inherit;font:inherit;cursor:pointer}
.bbcode-toolbar button:hover,.bbcode-toolbar button:focus-visible{border-color:#e85d9b;outline:none}
.bbcode-reference{padding:12px 14px;border:1px solid var(--line,#444);border-radius:10px}
.bbcode-reference summary{cursor:pointer;font-weight:650}
.bbcode-reference-grid{display:grid;gap:8px;margin-top:12px}
.bbcode-reference-grid code{display:block;overflow-wrap:anywhere;padding:8px;border-radius:6px;background:var(--panel-2,#292929);font-size:.82rem}
.bbcode-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
.bbcode-source-panel,.bbcode-preview-panel{display:grid;grid-template-rows:auto minmax(360px,1fr);gap:9px;min-width:0}
.bbcode-source-panel>span,.bbcode-preview-heading>span{font-weight:650}
.bbcode-source-panel textarea{box-sizing:border-box;width:100%;min-height:420px;resize:vertical;padding:14px;border:1px solid var(--line,#555);border-radius:10px;background:var(--panel-2,#242424);color:inherit;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:4}
.bbcode-source-panel textarea:focus-visible{outline:2px solid #e85d9b;outline-offset:2px}
.bbcode-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bbcode-preview-heading small,.bbcode-image-tools small{color:var(--muted,#aaa)}
.bbcode-preview{position:relative;min-height:420px;max-height:75vh;overflow:auto;padding:20px;border:1px solid var(--line,#555);border-radius:10px;background:var(--page,#202020);color:var(--text,#eee)}
.bbcode-image-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px;border:1px solid var(--line,#444);border-radius:10px}
.bbcode-image-tools>strong{margin-right:4px}
.bbcode-image-tools label{display:flex;align-items:center;gap:8px;font-size:.9rem}
.bbcode-image-tools input[type=range]{width:130px;accent-color:#e85d9b}
.bbcode-image-tools output{min-width:40px;color:var(--muted,#aaa);font-variant-numeric:tabular-nums}
.bbcode-image-tools small{flex-basis:100%}
.bbcode-stage{position:relative;isolation:isolate;min-height:480px;overflow:visible}
.bbcode-flow{position:relative;z-index:0;overflow-wrap:anywhere}
.bbcode-image-anchor{display:inline-block;width:0;height:0;overflow:hidden;line-height:0;vertical-align:baseline;pointer-events:none}
.bbcode-free-layer{position:absolute;inset:0;z-index:1;width:100%;pointer-events:none}
.bbcode-free-item{position:absolute;width:100%;min-height:1px;pointer-events:none;touch-action:none}
.bbcode-free-item>img,.bbcode-free-item>a{pointer-events:auto;cursor:grab}
.bbcode-free-item>a{display:contents}
.bbcode-free-image{display:block;max-width:100%;height:auto;transform-origin:center center;user-select:none;-webkit-user-drag:none}
.bbcode-free-item.is-selected>img,.bbcode-free-item.is-selected>a>img{outline:2px solid #e85d9b;outline-offset:3px}
.bbcode-free-item.is-dragging>img,.bbcode-free-item.is-dragging>a>img{cursor:grabbing}
.bb-spoiler{border-radius:3px;background:#111;color:transparent;cursor:pointer;transition:color .12s ease,background-color .12s ease}
.bb-spoiler.is-revealed{background:transparent;color:inherit}
.bb-box{margin:1em 0;border:1px solid var(--line,#555);border-radius:9px}
.bb-box>summary{min-height:1.25em;padding:10px 13px;cursor:pointer;font-weight:650}
.bb-box-body{padding:0 13px 13px}
.bb-quote{margin:1em 0;padding:12px 16px;border-left:3px solid #e85d9b;background:var(--panel-2,#292929)}
.bb-quote cite{display:block;margin-bottom:7px;font-style:normal;font-weight:650}
.bb-heading{margin:1.2em 0 .6em;font-size:1.5em}
.bb-heading{color:#e85d9b}
.bbcode-free-item>img{touch-action:none}
.bb-notice{margin:1em 0;padding:12px 15px;border:1px solid #e85d9b;border-radius:8px;background:var(--panel-2,#292929)}
.bb-list-heading{margin:.8em 0;font-weight:650}
.bb-list{padding-left:1.8em}
.bb-inline-code,.bb-code{border-radius:5px;background:var(--panel-2,#292929);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.bb-inline-code{padding:.12em .35em}
.bb-code{overflow:auto;padding:12px;white-space:pre-wrap}
.bb-youtube{position:relative;width:100%;max-width:900px;aspect-ratio:16/9;margin:1em 0}
.bb-youtube iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bb-audio{max-width:100%}
.bb-imagemap{position:relative;display:inline-block;max-width:100%;line-height:0}
.bb-imagemap>img{display:block;max-width:100%;height:auto}
.bb-imagemap-areas{position:absolute;inset:0}
.bb-imagemap-area{position:absolute}
.bb-imagemap-area:hover,.bb-imagemap-area:focus-visible{outline:2px solid #e85d9b;outline-offset:-2px}
.bbcode-invalid{color:#ff8c8c}
.resolution-summary{margin:-2px 0 12px;text-align:right;font-size:10px;color:var(--muted)}
.resolution-summary.is-error{color:#ff9a9a}
.options > summary .chevron{display:inline-block;transform-origin:center;transition:transform .2s ease}
.options[open] > summary .chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.options > summary .chevron{transition:none}}
@media(max-width:900px){.bbcode-editor-grid{grid-template-columns:1fr}.bbcode-source-panel,.bbcode-preview-panel{grid-template-rows:auto auto}.bbcode-source-panel textarea{min-height:300px}.bbcode-preview{max-height:none}}
@media(max-width:560px){.bbcode-preview{padding:12px}.bbcode-preview-heading{align-items:flex-start;flex-direction:column}.bbcode-image-tools{align-items:flex-start;flex-direction:column}.bbcode-image-tools label{width:100%;justify-content:space-between}.bbcode-image-tools input[type=range]{flex:1;max-width:55vw}}
