/* Qol AI mobile design system. One stylesheet, shared by APK and web. */
:root{color-scheme:light;--bg:#f7f6f2;--surface:#fff;--soft:#f0efeb;--ink:#191a18;--muted:#777973;--line:#e8e7e1;--purple:#191a18;--purple-soft:#eeede8;--accent:#ee7148;--danger:#c93d35;--preview:#efeee9;--motion-ease:cubic-bezier(.22,1,.36,1);--shadow:0 20px 65px #24211a12;--radius:24px}
[data-theme=dark]{color-scheme:dark;--bg:#141414;--surface:#202020;--soft:#2a2a29;--ink:#f4f3ed;--muted:#a3a39c;--line:#343433;--purple:#f4f3ed;--purple-soft:#2d2d2b;--accent:#f58b64;--danger:#ff8f88;--preview:#242423;--shadow:0 20px 65px #0004}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;letter-spacing:-.25px}button,input,textarea,select{font:inherit;letter-spacing:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{border:0;cursor:pointer;color:inherit;background:none}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12;letter-spacing:-1px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}em{font-style:normal;color:var(--muted)}.screen:not(.active){display:none}.screen.active{animation:appear .25s var(--motion-ease)}
.primary-button,.secondary-button{min-height:52px;padding:14px 22px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;font-size:15px;font-weight:600;transition:transform .15s,background .15s}.primary-button{background:var(--ink);color:var(--bg)}.secondary-button{background:var(--soft);color:var(--ink)}.primary-button:active:not(:disabled),.secondary-button:active:not(:disabled){transform:scale(.98)}.primary-button svg,.secondary-button svg{width:20px;height:20px}.text-button{min-height:44px;font-size:14px;font-weight:500;color:var(--muted);display:inline-flex;align-items:center;gap:8px;padding:8px 0}.icon-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;border-radius:50%;background:var(--soft);color:var(--ink)}.icon-button svg{width:19px;height:19px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:650;letter-spacing:-1px}.brand b{font-weight:650}.brand-mark{width:29px;height:30px;display:flex;align-items:center;gap:4px;transform:rotate(-13deg)}.brand-mark i{width:6px;background:var(--accent);border-radius:6px;height:20px}.brand-mark i:nth-child(2){height:30px}.brand-mark i:nth-child(3){height:14px}.eyebrow,.sheet-eyebrow{display:block;font-size:11px;letter-spacing:1.5px;font-weight:650;color:var(--muted);margin-bottom:16px}.tiny-spark,.mini-spark{display:none}
/* Launch and first-run experience */
.launch-screen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bg)}.launch-mark{transform:scale(2) rotate(-13deg);margin-bottom:20px}.launch-wordmark{font-size:25px;font-weight:650;letter-spacing:-1px}.launch-spinner{display:none}
dialog{border:0;color:var(--ink);background:var(--surface);padding:0;box-shadow:var(--shadow);max-height:92dvh;max-width:calc(100vw - 32px);border-radius:30px;overscroll-behavior:contain}dialog::backdrop{background:#1117;backdrop-filter:blur(7px)}dialog[open]{animation:sheet-in .3s var(--motion-ease)}dialog.is-closing{animation:sheet-out .18s ease forwards}.auth-dialog{width:960px;max-height:min(900px,96dvh);background:var(--bg)}.auth-layout{display:grid;grid-template-columns:1fr 1fr}.welcome-screen{padding:36px;display:flex;flex-direction:column;background:var(--bg);color:var(--ink)}.welcome-top{display:flex;align-items:center;justify-content:space-between}.welcome-top .brand-mark{--accent:#eb7147}.welcome-edition{font-size:10px;letter-spacing:1.5px;color:#85867d;font-weight:600}.welcome-visual{position:relative;flex:1;min-height:270px;display:grid;place-items:center;margin:26px -15px 18px;overflow:hidden}.welcome-orb{position:absolute;width:220px;height:220px;border-radius:50%;background:var(--soft)}.welcome-sculpture{position:relative;display:flex;gap:20px;align-items:center;transform:rotate(-16deg)}.welcome-sculpture i{display:block;width:47px;height:130px;background:#ef7247;border-radius:40px;box-shadow:inset -8px -8px 15px #af432524,inset 5px 5px 10px #ffb19177}.welcome-sculpture i:nth-child(2){height:196px;background:#e66b41;transform:translateY(-8px)}.welcome-sculpture i:nth-child(3){height:90px;background:#f49a76;transform:translateY(14px)}.welcome-tag{position:absolute;bottom:12px;right:12px;background:var(--surface);padding:10px 16px;border-radius:30px;box-shadow:0 6px 24px #56503c0c;font-size:12px;transform:rotate(-5deg);color:var(--muted)}.welcome-copy{padding:8px 0 24px;text-align:center}.welcome-copy h1{font-size:44px;letter-spacing:-2.1px;font-weight:650;line-height:1.05}.welcome-copy p{font-size:15px;line-height:1.6;color:var(--muted);max-width:340px;margin:18px auto 0}.welcome-actions{display:none}.auth-panel{padding:34px 38px;position:relative}.auth-top{display:flex;align-items:center;gap:14px;margin-bottom:30px}.auth-step-brand{font-size:19px;letter-spacing:-.7px;font-weight:650}.auth-back{display:none}.auth-preferences{position:absolute;top:31px;right:30px;display:flex;gap:6px;align-items:center}.auth-preferences .modern-select-trigger{background:none;min-height:40px;font-size:12px;padding:8px;width:auto}.auth-preferences .modern-select-trigger svg{width:12px;height:12px}.auth-preferences .icon-button{width:38px;min-width:38px;height:38px;background:none}.auth-tabs{display:flex;gap:22px;margin-bottom:28px;border-bottom:1px solid var(--line)}.auth-tabs button{position:relative;min-height:44px;padding:4px 0 14px;font-size:14px;color:var(--muted)}.auth-tabs button.active{color:var(--ink);font-weight:650}.auth-tabs .active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink);border-radius:4px}.auth-heading{margin-bottom:25px;text-align:center}.auth-heading h2{margin-inline:auto;font-size:31px;letter-spacing:-1.3px;font-weight:650}.auth-heading p{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.5}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:13px;color:var(--muted);font-weight:500}.field input{height:54px;min-width:0;width:100%;border:1px solid var(--line);border-radius:14px;padding:14px 16px;color:var(--ink);background:var(--surface);font-size:16px}.field input:focus{border-color:var(--ink);outline:0;box-shadow:0 0 0 3px var(--soft)}.field input::placeholder{color:var(--muted);opacity:.7}.password-input{display:block;position:relative}.password-input input{padding-right:54px}.password-input button{position:absolute;right:5px;top:5px;width:44px;height:44px;display:grid;place-items:center;color:var(--muted)}.password-input svg{width:20px;height:20px}.password-strength{margin:-6px 0 16px;font-size:11px;color:var(--muted)}.password-strength>div{display:flex;gap:4px;margin-bottom:5px}.password-strength i{display:block;background:var(--line);height:3px;border-radius:3px;flex:1}.password-strength[data-strength='1'] i:first-child,.password-strength[data-strength='2'] i:nth-child(-n+2),.password-strength[data-strength='3'] i:nth-child(-n+3),.password-strength[data-strength='4'] i{background:var(--accent)}.auth-submit{width:100%;justify-content:space-between;margin-top:12px;min-height:56px}.auth-switch{width:100%;font-size:13px;color:var(--muted);min-height:48px;margin-top:4px}.remember-field{display:flex;gap:10px;align-items:center;min-height:40px;font-size:13px;color:var(--muted)}input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px}.forgot-password{padding:4px 0;min-height:40px;font-size:13px;color:var(--muted)}.auth-local-note{font-size:11px;text-align:center;color:var(--muted);margin-top:17px;line-height:1.5}.modal-close{display:none}.field-error,.auth-message{padding:14px;border-radius:14px;background:var(--soft);font-size:13px;line-height:1.6;margin-block:12px}.field-error{color:var(--danger)}.qol-connection-button{font-size:12px;display:flex;margin:0 auto;min-height:40px;padding:6px 0}.auth-dialog[data-stage=welcome] .auth-panel{display:none}.auth-dialog[data-stage=welcome] .auth-layout{grid-template-columns:1fr}.auth-dialog[data-stage=welcome]{width:440px}.auth-dialog[data-stage=welcome] .welcome-screen{min-height:720px;background:var(--bg);color:var(--ink)}.auth-dialog[data-stage=welcome] .welcome-actions{display:flex;flex-direction:column;gap:9px}.welcome-actions>.primary-button{position:relative;justify-content:center;width:100%;min-height:58px;border-radius:19px}.welcome-actions>.text-button{justify-content:center;font-size:14px;color:var(--ink)}
/* Main workspace */
.sidebar{position:fixed;inset:0 auto 0 0;width:235px;padding:30px 20px;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.sidebar .brand{padding:0 10px}.sidebar-label{font-size:10px;color:var(--muted);letter-spacing:1.2px;margin:45px 12px 15px}.side-nav{display:flex;flex-direction:column;gap:6px}.side-nav button{display:flex;gap:12px;align-items:center;min-height:49px;text-align:left;padding:12px;border-radius:14px;font-size:14px;color:var(--muted)}.side-nav button.active{background:var(--soft);color:var(--ink);font-weight:600}.side-nav svg{width:21px;height:21px}.nav-count,.new-label{margin-left:auto;font-size:10px;background:var(--surface);padding:2px 6px;border-radius:5px}.sidebar-upgrade{margin-top:auto;background:var(--surface);padding:20px;border-radius:20px;position:relative}.sidebar-upgrade h3{font-size:17px;letter-spacing:-.5px}.sidebar-upgrade p{font-size:12px;color:var(--muted);margin-top:8px}.sidebar-upgrade .text-button{font-size:12px;color:var(--ink)}.upgrade-dismiss{position:absolute;top:6px;right:6px;width:30px;min-width:30px;height:30px;background:none}.upgrade-dismiss svg{width:14px;height:14px}.sidebar-bottom{margin-top:20px}.privacy-link{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);padding:10px}.privacy-link svg{width:17px;height:17px}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted);padding:8px 10px}.app-content{margin-left:235px}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;padding:24px 48px}.breadcrumb{font-size:14px;color:var(--muted);display:flex;gap:12px}.breadcrumb b{color:var(--ink);font-weight:500}.topbar-actions{display:flex;gap:10px}.account-button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--bg);font-size:16px;font-weight:500}.topbar .icon-button{width:40px;min-width:40px;height:40px;background:none}.mobile-brand{display:none}.main-content{max-width:1240px;margin:auto;padding:30px 48px 70px;outline:none}.page-heading{margin-bottom:34px}.page-heading h1{font-size:58px;font-weight:600;letter-spacing:-3px;line-height:1.02}.page-heading p{font-size:16px;line-height:1.6;color:var(--muted);margin-top:16px}.studio-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:stretch}.editor-card{border:1px solid var(--line);border-radius:28px;background:var(--surface);padding:25px;min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-header h2{font-size:14px;letter-spacing:0;font-weight:500;color:var(--muted)}.card-header .text-button{font-size:12px;padding:0;min-height:32px}.editor-card textarea{display:block;width:100%;min-height:238px;padding:23px 0 16px;resize:vertical;border:0;background:none;color:var(--ink);font-size:23px;letter-spacing:-.65px;line-height:1.55;outline:0}.editor-card textarea::placeholder{color:var(--muted);opacity:.65}.editor-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);padding-block:10px 18px}.editor-meta b{font-weight:400}.composer-settings{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px;margin-bottom:24px}.parameter-chip{display:flex;gap:8px;align-items:center;min-height:40px;border-radius:12px;padding:8px 11px;background:var(--soft);font-size:12px;font-weight:500}.parameter-chip svg{width:17px;height:17px}.parameter-chip #studioFormatValue{color:var(--muted);font-size:11px;border-left:1px solid var(--line);padding-left:8px}.language-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.composer-actions{display:flex;gap:10px}.composer-actions>.primary-button{flex:1}.save-draft{width:52px;min-width:52px;padding:0;background:var(--soft)}.save-draft>.save-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.save-button-icon{display:grid;place-items:center;position:relative;width:21px;height:21px}.save-button-icon svg{position:absolute;width:20px;height:20px}.save-check-icon{opacity:0;transform:scale(.7)}[data-save-state=success] .save-check-icon{opacity:1;transform:scale(1)}[data-save-state=success] .save-default-icon{opacity:0}.save-button-icon svg{transition:transform .2s,opacity .2s}.form-notice{font-size:13px;padding:14px;background:var(--soft);border-radius:14px;margin-top:15px;line-height:1.6;color:var(--muted)}.studio-limit{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted);margin-top:20px}.limit-plan{padding:3px 7px;background:var(--soft);border-radius:6px}.studio-limit .text-button{margin-left:auto;font-size:11px}
/* Result states */
.preview-card{border-radius:28px;background:var(--preview);padding:24px;display:flex;flex-direction:column;min-width:0;scroll-margin-top:80px}.preview-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.preview-label{font-size:13px;font-weight:500;color:var(--muted)}.status-pill{font-size:10px;color:var(--muted);background:var(--surface);padding:5px 9px;border-radius:20px}.preview-stage{display:flex;flex:1;min-height:295px}.preview-stage>div{width:100%}.preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 0}.video-placeholder{height:142px;width:100px;margin-bottom:20px;display:grid;place-items:center}.video-placeholder svg{width:72px;height:95px;stroke:var(--muted);stroke-width:1.2;opacity:.55}.preview-empty h2{font-size:20px;font-weight:500;letter-spacing:-.6px}.preview-empty p{font-size:13px;color:var(--muted);margin-top:12px;max-width:260px;line-height:1.6;white-space:pre-line}.preview-footer{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:16px;font-size:11px;color:var(--muted)}.preview-footer>span:last-child{display:none}.little-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.error-result,.processing-result{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 0;text-align:center}.error-result h2,.processing-result h2{font-size:24px;font-weight:550;margin-top:22px}.error-result>p,.processing-result>p{font-size:14px;line-height:1.7;color:var(--muted);max-width:340px;margin:13px 0 24px}.result-emblem{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--surface);color:var(--accent)}.error-actions{display:flex;gap:10px}.processing-visual{position:relative}.processing-skeleton{display:none}.processing-emblem{width:66px;height:66px;display:grid;place-items:center;position:relative;font-size:22px;font-weight:600}.loader-orbit{position:absolute;inset:0;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}.generation-steps{display:flex;gap:14px;list-style:none;padding:0;margin:0 0 22px}.generation-steps li{font-size:10px;color:var(--muted)}.generation-steps li span{display:block;width:22px;height:22px;margin:0 auto 8px;border-radius:50%;background:var(--surface);line-height:22px}.generation-steps .active,.generation-steps .done{color:var(--ink)}.generation-progress{display:flex;align-items:center;gap:10px;width:100%;font-size:11px}.progress-track{height:4px;flex:1;overflow:hidden;background:var(--line);border-radius:4px}.progress-track>span{display:block;height:100%;width:var(--progress,0%);background:var(--accent);border-radius:4px}.indeterminate .progress-track>span{width:25%;animation:progress 1.5s ease infinite}.video-result{padding-top:20px}.video-ready{display:flex;align-items:center;gap:12px;margin-bottom:20px}.video-ready>span{background:var(--surface);padding:10px;border-radius:50%;color:var(--accent)}.video-ready svg{width:18px;height:18px}.video-ready h2{font-size:17px;font-weight:550}.video-ready p{font-size:12px;color:var(--muted);margin-top:4px}.video-result video{width:100%;max-height:420px;border-radius:18px;background:#111;display:block}.video-result>p{font-size:13px;margin:14px 0;max-height:100px;overflow:auto}.playback-options{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.playback-options label{font-size:12px;display:flex;align-items:center;gap:12px}.playback-options .modern-select-trigger{min-height:40px;font-size:12px}.video-actions{display:flex;gap:10px;margin-top:16px}.video-actions>*{flex:1}.video-result .text-button{font-size:12px}
/* Sheet-based controls: real buttons, keyboard navigation, shared appearance. */
.sheet{width:480px;background:var(--bg);max-height:min(850px,90dvh)}.sheet-handle{display:none}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:26px 26px 20px;gap:15px}.sheet-header h2{font-size:27px;font-weight:600;letter-spacing:-1px}.sheet-eyebrow{font-size:9px;margin-bottom:7px}.sheet-header>.icon-button{width:36px;min-width:36px;height:36px}.sheet-content{padding:0 22px 22px;overflow-y:auto}.settings-group{background:var(--surface);border-radius:20px;padding:0 18px;margin-bottom:18px}.editor-settings{display:grid;grid-template-columns:1fr;gap:0}.editor-settings label{display:flex;flex-direction:column;padding:17px 0;border-bottom:1px solid var(--line);gap:7px}.editor-settings label:last-child{border:0}.editor-settings label>span{font-size:11px;color:var(--muted)}.language-explainer{display:none}.modern-select{position:relative;min-width:0}.modern-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;border-radius:12px;background:var(--soft);padding:11px 13px;font-size:14px;text-align:left}.editor-settings .modern-select-trigger{padding:0;background:none;min-height:30px;font-size:16px;font-weight:500}.modern-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis}.modern-select-trigger svg{width:17px;height:17px;stroke:var(--muted)}.modern-select-list{display:none!important}.choice-options{padding:0 16px 24px;display:flex;flex-direction:column;gap:7px}.choice-option{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:18px;padding:17px 18px;border:1px solid transparent;border-radius:17px;text-align:left;background:var(--surface)}.choice-option[aria-selected=true]{border-color:var(--ink)}.choice-option b{display:block;font-size:16px;font-weight:550}.choice-option small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.choice-check{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;border-radius:50%;background:var(--ink);color:var(--bg);font-size:13px;opacity:0}.choice-option[aria-selected=true] .choice-check{opacity:1}.choice-option:focus-visible{outline-offset:-4px}.format-settings{margin:23px 0}.format-settings>span{display:block;font-size:12px;color:var(--muted);margin:0 0 12px 5px}.format-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.format-buttons button{border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:var(--surface);min-height:106px;font-size:12px}.format-buttons .active{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:var(--surface)}.ratio{display:block;width:21px;height:34px;border:1.6px solid var(--muted);border-radius:5px}.ratio.landscape{width:34px;height:21px}.ratio.square{width:27px;height:27px}.format-buttons .active .ratio{border-color:var(--ink)}.option-heading{display:flex;flex-direction:column;gap:4px;padding-block:16px;font-size:14px;font-weight:550}.option-note{font-size:11px;font-weight:400;color:var(--muted)}.upload-character{display:flex;align-items:center;gap:11px;min-height:58px;width:100%;font-size:14px;text-align:left;border-top:1px solid var(--line)}.upload-character>svg{width:20px;height:20px;color:var(--muted)}.plus-pill{margin-left:auto;padding:3px 7px;border-radius:6px;background:var(--soft);font-size:9px;letter-spacing:.5px}.upload-hint{display:none}.subtitle-section{border-radius:20px;background:var(--surface);padding:0 18px}.switch-row{display:flex;gap:15px;align-items:center;min-height:80px;position:relative;cursor:pointer}.switch-row>span:first-child{flex:1}.switch-row b{display:block;font-size:14px;font-weight:550}.switch-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.switch-row input{position:absolute;right:0;width:51px;height:31px;opacity:0;z-index:1;cursor:pointer}.switch-visual{width:51px;height:31px;border-radius:20px;background:var(--line);position:relative;transition:background .2s}.switch-visual::after{content:'';position:absolute;top:3px;left:3px;background:#fff;box-shadow:0 1px 5px #0002;width:25px;height:25px;border-radius:50%;transition:transform .2s}.switch-row input:checked+.switch-visual{background:var(--ink)}.switch-row input:checked+.switch-visual::after{transform:translateX(20px)}.switch-row input:focus-visible+.switch-visual{outline:2px solid var(--accent);outline-offset:3px}.subtitle-language{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0 18px;border-top:1px solid var(--line);font-size:12px}.sheet-footer{padding:0 22px 24px;background:var(--bg)}.sheet-footer .primary-button{width:100%;min-height:54px}.settings-sheet{display:flex;flex-direction:column}.settings-sheet:not([open]){display:none}.settings-sheet .sheet-content{min-height:0;flex:1}.custom-characters{display:flex;gap:8px;flex-wrap:wrap}.custom-character-card{position:relative;max-width:110px}.character-card{display:flex;flex-direction:column;gap:8px;font-size:11px;padding:8px;border:1px solid var(--line);border-radius:14px}.character-card.selected{border-color:var(--ink)}.character-card img{width:85px;height:85px;object-fit:cover;border-radius:10px}.custom-character-card>.icon-button{width:28px;min-width:28px;height:28px;position:absolute;right:2px;top:2px}.standard-character{margin-bottom:10px;font-size:12px}
/* Collection */
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.section-heading h1{font-size:42px;font-weight:600;letter-spacing:-2px}.section-heading p{margin-top:12px;font-size:15px;line-height:1.6;color:var(--muted)}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.filter-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}.filter-tabs button{padding:9px 14px;min-height:40px;font-size:13px;color:var(--muted);border-radius:12px;white-space:nowrap;display:flex;align-items:center;gap:6px}.filter-tabs .active{background:var(--ink);color:var(--bg)}.filter-tabs svg{width:15px;height:15px}.search-field{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px;max-width:300px;min-width:0;flex:1}.search-field svg{width:18px;height:18px;color:var(--muted)}.search-field input{min-width:0;width:100%;height:44px;border:0;background:none;color:var(--ink);outline:0;font-size:13px}.library-controls{display:flex;gap:10px;align-items:flex-start}.library-filters{flex:1;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.library-filters summary{list-style:none;padding:12px 15px;min-height:46px;display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.library-filters summary::-webkit-details-marker{display:none}.library-filters summary i{width:7px;height:7px;border-right:1px solid var(--muted);border-bottom:1px solid var(--muted);transform:rotate(45deg);margin-left:auto}.library-filters[open] summary i{transform:rotate(225deg)}.library-filters-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 14px 15px;gap:13px}.library-filters-body label{font-size:11px;color:var(--muted);display:grid;gap:7px}.library-filters-body .modern-select-trigger{font-size:12px}.library-filters-body .text-button{grid-column:1/-1;font-size:12px;padding:0}.library-sort{width:190px}.library-sort .modern-select-trigger{min-height:46px;font-size:12px;background:var(--surface);border:1px solid var(--line)}#libraryFilterCount{border-radius:50%;font-size:10px;background:var(--soft);padding:2px 6px}.library-results{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;margin:7px 0 15px}.library-results .text-button{font-size:12px}.creation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.creation-card{background:var(--surface);border-radius:23px;overflow:hidden;position:relative;border:1px solid var(--line)}.creation-preview{height:155px;padding:22px;background:var(--soft);position:relative}.creation-preview p{font-size:16px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;position:relative}.draft-mark{display:none}.creation-preview.video{padding:0;background:#151515}.creation-preview video{width:100%;height:100%;object-fit:contain}.creation-body{padding:20px}.creation-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-bottom:10px}.creation-body h3{font-size:17px;font-weight:550;line-height:1.4;letter-spacing:-.5px}.creation-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.creation-tags span{font-size:9px;padding:3px 6px;background:var(--soft);border-radius:5px;color:var(--muted)}.creation-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:16px}.creation-actions .secondary-button{width:100%;font-size:12px;min-height:40px;padding:10px;margin-bottom:5px}.creation-actions .icon-button{width:37px;min-width:37px;height:37px;background:none;color:var(--muted)}.creation-actions .icon-button svg{width:17px;height:17px}.creation-actions .favorited{color:var(--accent)}.creation-select{display:none;position:absolute;top:12px;right:12px;z-index:2;background:var(--surface);border:1px solid var(--line);border-radius:50%;width:28px;height:28px;place-items:center}.creation-select svg{width:15px;height:15px;opacity:0}.selection-mode .creation-select{display:grid}.creation-card.selected{border-color:var(--ink)}.creation-card.selected .creation-select{background:var(--ink);color:var(--bg)}.creation-card.selected .creation-select svg{opacity:1}.library-selection{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--soft);padding:15px;border-radius:17px;margin-bottom:20px;font-size:12px}.selection-heading{display:flex;gap:14px;align-items:center;flex:1}.selection-heading .text-button{font-size:12px}.selection-actions{display:flex;gap:8px}.selection-actions .secondary-button{font-size:12px;min-height:40px;background:var(--surface);padding:10px}.load-more{margin:24px auto;display:flex}.empty-state{text-align:center;padding:65px 20px}.empty-state-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:var(--soft);margin:0 auto 20px;color:var(--muted)}.empty-state h2{font-size:24px;font-weight:550}.empty-state p{font-size:14px;color:var(--muted);max-width:340px;margin:12px auto 24px}.skeleton-card{border-radius:23px;background:var(--surface);overflow:hidden}.skeleton-preview{height:155px;background:var(--soft)}.skeleton-body{padding:20px}.skeleton-body i{height:10px;margin-bottom:12px;border-radius:10px;background:var(--soft);display:block;animation:pulse 1.5s infinite}.skeleton-body i:nth-child(2){width:70%}.skeleton-body i:nth-child(3){width:45%}
/* Plans and grouped settings */
.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:40px}.plan-card{border-radius:25px;background:var(--surface);padding:28px 23px;position:relative;border:1px solid var(--line);display:flex;flex-direction:column}.plan-card.featured{background:var(--ink);color:var(--bg);border-color:var(--ink)}.recommended{font-size:8px;letter-spacing:1px;color:var(--accent);margin-bottom:20px}.plan-name{font-size:15px;font-weight:600}.plan-price{margin:25px 0 15px;display:flex;align-items:baseline;gap:5px}.plan-price h2{font-size:30px;letter-spacing:-1.5px;font-weight:550}.plan-price>span{font-size:11px;opacity:.7}.plan-card>p{font-size:12px;opacity:.65;line-height:1.6;margin-bottom:23px}.plan-card>button{width:100%;font-size:12px;margin-top:auto}.plan-card.featured>button{background:var(--bg);color:var(--ink)}.plan-card ul{list-style:none;padding:0;display:grid;gap:14px;margin:25px 0 0}.plan-card li{display:flex;gap:9px;font-size:12px;opacity:.8;line-height:1.5}.plan-card li svg{width:15px;height:15px;margin-top:2px}.plan-note,.request-card{display:flex;gap:13px;align-items:flex-start;font-size:12px;color:var(--muted);line-height:1.6;margin-top:24px}.plan-note svg,.request-card>svg{width:20px;height:20px}.request-card{padding:20px;background:var(--surface);border-radius:20px}.request-card h3{font-size:15px;font-weight:550;margin-bottom:6px}.request-card .text-button{margin-left:auto;font-size:12px}.profile-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:23px;align-items:start}.account-card{display:flex;flex-wrap:wrap;gap:17px;align-items:center;background:var(--surface);padding:26px;border-radius:23px;margin-bottom:23px}.avatar{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:var(--accent);color:#fff;font-size:25px;font-weight:500}.account-info{min-width:0;flex:1}.account-info h2{font-size:22px;font-weight:550;letter-spacing:-.8px}.account-info p{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.plan-badge{display:inline-block;font-size:9px;margin-top:8px;padding:3px 6px;background:var(--soft);border-radius:5px;color:var(--muted)}.account-actions{display:flex;gap:15px;width:100%;align-items:center;margin-top:5px}.account-actions .secondary-button{font-size:12px;min-height:42px;flex:1}.account-actions .text-button{font-size:12px}.settings-card{background:var(--surface);border-radius:23px;padding:6px 22px;margin-bottom:20px}.settings-title{display:flex;justify-content:space-between;align-items:center;padding:19px 0}.settings-title h2{font-size:15px;font-weight:600;letter-spacing:0}.settings-title svg{display:none}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-top:1px solid var(--line)}.settings-row b,.settings-link b{display:block;font-size:14px;font-weight:500;letter-spacing:-.2px}.settings-row small,.settings-link small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.settings-row .modern-select{max-width:145px}.settings-row .modern-select-trigger{background:none;padding:10px 0 10px 8px;font-size:13px}.theme-row{flex-direction:column;align-items:stretch;gap:15px}.theme-options{display:flex;padding:4px;gap:3px;background:var(--soft);border-radius:12px}.theme-options button{flex:1;padding:10px 8px;font-size:12px;color:var(--muted);border-radius:9px;min-height:40px}.theme-options .selected{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px #0001}.settings-link{display:flex;justify-content:space-between;gap:15px;align-items:center;text-align:left;width:100%;padding:20px 0;border-top:1px solid var(--line);min-height:76px}.settings-link>svg{width:19px;height:19px;color:var(--muted)}.danger-link b{color:var(--danger)}.settings-card .qol-connection-button{width:100%;justify-content:flex-start;border-top:1px solid var(--line);padding:17px 0;font-size:14px;color:var(--ink);min-height:55px}.app-footer{display:none}.action-dialog{width:450px;padding:27px}.action-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.action-heading h2{font-size:25px;font-weight:550}.action-dialog #actionIntro{font-size:13px;color:var(--muted);margin-bottom:20px;line-height:1.7;white-space:pre-line}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions>*{flex:1;font-size:14px}.toast{position:fixed;z-index:2000;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--bg);padding:14px 20px;border-radius:18px;font-size:13px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);transition:opacity .2s,transform .2s}.toast.visible{transform:translate(-50%,0);opacity:1}.mobile-dock{display:none}
/* Phone-first layouts */
@media(max-width:1100px){.main-content{padding-inline:30px}.topbar{padding-inline:30px}.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plans-grid{grid-template-columns:1fr}.plan-card{padding:28px}.plan-card ul{grid-template-columns:1fr 1fr}.plan-price h2{font-size:36px}.profile-grid{grid-template-columns:1fr}}
@media(max-width:700px){
  .sidebar,.breadcrumb{display:none}.app-content{margin:0}.mobile-brand{display:flex;font-size:20px;gap:8px}.mobile-brand .brand-mark{transform:scale(.85) rotate(-13deg);width:25px}.topbar{position:sticky;top:0;height:72px;padding:16px 24px;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(18px);z-index:10}.topbar-actions{gap:7px}.topbar .icon-button{width:36px;min-width:36px;height:36px}.account-button{width:34px;height:34px;font-size:14px}.main-content{padding:24px 22px 130px}.page-heading{margin-bottom:27px}.page-heading .eyebrow{font-size:9px;margin-bottom:16px;letter-spacing:1.6px}.page-heading h1{font-size:47px;letter-spacing:-2.5px;line-height:1.04}.page-heading p{font-size:14px;margin-top:14px}.studio-grid{display:flex;flex-direction:column;gap:18px}.editor-card{padding:20px;border-radius:25px}.card-header h2{font-size:12px}.editor-card textarea{font-size:21px;min-height:190px;line-height:1.5;padding-top:19px}.editor-meta{font-size:9px;padding-block:8px 17px;line-height:1.5}.editor-meta>span:first-child{max-width:72%}.composer-settings{padding-top:16px;margin-bottom:0;gap:7px}.parameter-chip{font-size:11px;min-height:37px;padding-inline:10px}.parameter-chip svg{width:15px;height:15px}.parameter-chip #studioFormatValue{font-size:10px}.studio-limit{margin-top:16px;font-size:9px;gap:8px}.studio-limit .text-button{font-size:10px;min-height:32px}.studio-grid+.studio-limit{margin-bottom:20px}.preview-card{padding:18px 20px;border-radius:23px;min-height:0}.preview-header{display:none}.preview-stage{min-height:0}.preview-empty{padding:10px 0;flex-direction:row;align-items:center;text-align:left;gap:16px;flex-wrap:wrap;position:relative;min-height:65px}.video-placeholder{width:36px;height:50px;margin:0;position:absolute;left:0}.video-placeholder svg{width:36px;height:48px}.preview-empty h2{margin-left:52px;font-size:14px;letter-spacing:-.3px;align-self:flex-end;line-height:1.4;width:calc(100% - 52px)}.preview-empty p{margin:0 0 0 52px;font-size:11px;line-height:1.45;align-self:flex-start;max-width:none}.preview-footer{display:none}.preview-card[data-state=error],.preview-card[data-state=processing],.preview-card[data-state=video]{padding:22px}.error-result,.processing-result{padding:24px 0;min-height:270px}.error-result h2,.processing-result h2{font-size:23px}.error-result>p,.processing-result>p{font-size:13px;line-height:1.7}.generation-steps{gap:14px}.generation-steps li{font-size:10px}.video-result{padding-top:0}.video-actions{margin:0}.video-result video{max-height:400px}.error-actions{margin:0}.error-result>.text-button{margin-top:12px;font-size:12px}
  .mobile-dock{display:flex;flex-direction:column;position:fixed;bottom:0;left:0;right:0;z-index:30;padding:0 18px max(12px,var(--safe-bottom,env(safe-area-inset-bottom)));background:linear-gradient(transparent,var(--bg) 26%);pointer-events:none}.mobile-dock-actions{padding:16px 4px 12px;pointer-events:auto}.mobile-dock-actions:empty{padding:0}.composer-actions,.video-actions,.error-actions{display:none;gap:9px;width:100%}html[data-screen=studio][data-preview-state=empty] .mobile-dock-actions .composer-actions,html[data-screen=studio][data-preview-state=processing] .mobile-dock-actions .composer-actions,html[data-screen=studio][data-preview-state=error] .mobile-dock-actions .error-actions,html[data-screen=studio][data-preview-state=video] .mobile-dock-actions .video-actions{display:flex}.mobile-dock-actions .primary-button{flex:1;min-height:54px;border-radius:17px;font-size:14px}.mobile-dock-actions .secondary-button{min-height:54px;border-radius:17px;font-size:13px}.mobile-dock-actions .save-draft{width:54px;min-width:54px;background:var(--surface);border:1px solid var(--line)}.generate-arrow{width:17px;height:17px}.mobile-nav{display:flex;justify-content:space-around;gap:0;padding:7px 0 0;border-top:1px solid var(--line);background:var(--bg);pointer-events:auto}.mobile-nav button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;flex:1;padding:8px 2px 3px;min-height:55px;font-size:9px;color:var(--muted);font-weight:500}.mobile-nav svg{width:22px;height:22px;stroke-width:1.6}.mobile-nav .active{color:var(--ink)}.mobile-nav .active svg{stroke-width:2}.mobile-nav button.active::after{content:'';width:3px;height:3px;border-radius:50%;background:var(--accent);position:absolute;bottom:1px}.mobile-nav button{position:relative}.mobile-dock .mobile-nav::before{display:none}html[data-auth-state=guest] .mobile-dock,html[data-auth-state=checking] .mobile-dock{display:none}html[data-keyboard] .mobile-dock{display:none}html[data-screen=studio] .main-content{padding-bottom:210px}.toast{bottom:100px;font-size:12px}html[data-screen=studio] .toast{bottom:173px}
  .auth-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;border:0;box-shadow:none;background:var(--bg)}.auth-dialog::backdrop{background:var(--bg);backdrop-filter:none}.auth-layout{display:block;height:100%}.welcome-screen{display:none}.auth-dialog[data-stage=welcome]{width:100vw}.auth-dialog[data-stage=welcome] .welcome-screen{display:flex;min-height:100dvh;padding:calc(28px + var(--safe-top,env(safe-area-inset-top))) 28px calc(25px + var(--safe-bottom,env(safe-area-inset-bottom)));background:var(--bg);height:100dvh}.welcome-top .brand{font-size:21px}.welcome-edition{font-size:9px}.welcome-visual{min-height:190px;margin:28px -10px 10px;flex:1}.welcome-orb{width:230px;height:230px;background:var(--soft)}.welcome-sculpture{gap:20px}.welcome-sculpture i{width:44px;height:125px}.welcome-sculpture i:nth-child(2){height:186px}.welcome-sculpture i:nth-child(3){height:87px}.welcome-tag{right:15px;bottom:20px;font-size:11px;background:var(--surface);color:var(--muted);padding:10px 15px}.welcome-copy{padding:14px 0 26px}.welcome-copy h1{font-size:44px;letter-spacing:-2.1px;color:var(--ink)}.welcome-copy p{font-size:14px;line-height:1.65;margin-top:16px;color:var(--muted);max-width:330px}.welcome-actions .text-button{min-height:40px;font-size:13px}.welcome-actions>.primary-button{min-height:56px}.auth-panel{padding:calc(22px + var(--safe-top,env(safe-area-inset-top))) 26px calc(28px + var(--safe-bottom,env(safe-area-inset-bottom)));min-height:100%;background:var(--bg)}.auth-top{margin-bottom:38px;gap:12px}.auth-back{display:grid;background:var(--soft);width:36px;min-width:36px;height:36px}.auth-step-brand{font-size:18px}.auth-preferences{top:calc(22px + var(--safe-top,env(safe-area-inset-top)));right:20px;gap:0}.auth-preferences .modern-select-trigger{font-size:11px;gap:6px;max-width:105px;padding:8px}.auth-preferences .icon-button{width:34px;min-width:34px;height:36px}.auth-preferences .icon-button svg{width:17px;height:17px}.auth-tabs{margin-bottom:25px;gap:25px}.auth-tabs button{font-size:13px;min-height:42px}.auth-heading h2{font-size:34px;letter-spacing:-1.5px;max-width:300px}.auth-heading p{font-size:14px;margin-top:12px}.auth-heading{margin-bottom:29px}.field{font-size:12px;margin-bottom:17px}.field input{background:var(--surface);height:54px}.auth-submit{margin-top:16px}.password-strength{font-size:10px}.auth-local-note{font-size:10px;margin-top:19px}.auth-switch{font-size:12px;min-height:44px}.qol-connection-button{font-size:11px;margin-top:1px}
  .sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;border-radius:30px 30px 0 0;max-height:89dvh;padding-bottom:var(--safe-bottom,env(safe-area-inset-bottom));box-shadow:0 -10px 70px #0002}.sheet-handle{display:block;width:36px;height:4px;background:var(--line);border-radius:4px;margin:11px auto 0;flex-shrink:0}.sheet-header{padding:22px 25px 20px}.sheet-header h2{font-size:28px;letter-spacing:-1.1px}.sheet-content{padding:0 21px 19px}.sheet-footer{padding:0 21px 20px}.editor-settings label{padding:14px 0}.editor-settings .modern-select-trigger{font-size:15px;min-height:32px}.settings-group{margin-bottom:16px}.format-settings{margin-block:20px}.format-buttons button{min-height:96px;font-size:12px}.choice-options{padding:0 17px 24px}.choice-option{min-height:69px;padding:16px 17px}.choice-option b{font-size:16px}.choice-option small{font-size:12px}.choice-sheet .sheet-header{padding-block:23px}.choice-sheet{max-height:78dvh}.choice-options{max-height:60dvh;overflow-y:auto}.action-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;border-radius:28px 28px 0 0;padding:27px 25px calc(25px + var(--safe-bottom,env(safe-area-inset-bottom)))}.action-dialog .dialog-actions{margin-top:24px}
  .section-heading{align-items:flex-start;margin-bottom:25px;gap:12px}.section-heading .eyebrow{font-size:9px;margin-bottom:14px}.section-heading h1{font-size:36px;letter-spacing:-1.7px}.section-heading p{font-size:13px;line-height:1.6;margin-top:12px}.section-heading>.primary-button{width:43px;min-width:43px;min-height:43px;border-radius:50%;padding:0;margin-top:20px}.section-heading>.primary-button>span:last-child{display:none}.section-heading>.primary-button>span:first-child{font-size:24px}.library-toolbar{flex-direction:column;align-items:stretch;gap:15px}.filter-tabs{gap:5px}.filter-tabs button{font-size:11px;padding:9px 12px;min-height:37px}.filter-tabs svg{width:13px;height:13px}.search-field{width:100%;max-width:none;border:0;background:var(--surface)}.search-field input{font-size:14px;height:46px}.library-sort{width:164px}.library-sort .modern-select-trigger{font-size:11px;gap:6px;padding-inline:10px}.library-filters summary{font-size:12px}.library-filters-body{grid-template-columns:1fr}.library-results{font-size:11px}.library-results .text-button{font-size:11px}.creation-grid{grid-template-columns:1fr;gap:17px}.creation-preview{height:145px;padding:23px}.creation-preview p{font-size:18px;line-height:1.45}.creation-body{padding:20px}.creation-body h3{font-size:17px}.creation-actions{flex-wrap:nowrap;gap:1px;align-items:center}.creation-actions .secondary-button{width:auto;min-width:0;min-height:42px;flex:1;font-size:11px;margin:0;padding:10px 12px}.creation-actions .icon-button{width:36px;min-width:36px;height:42px}.creation-actions .icon-button svg{width:16px;height:16px}.library-selection{padding:12px;gap:7px}.selection-actions{width:100%}.selection-actions>*{flex:1;font-size:11px}.selection-heading{font-size:11px}.empty-state{padding:50px 10px}.empty-state h2{font-size:22px}.empty-state p{font-size:13px}.plan-heading h1{font-size:46px}.plans-grid{margin-top:30px;gap:20px}.plan-card{padding:28px;border-radius:25px}.plan-card ul{grid-template-columns:1fr}.plan-card li{font-size:13px}.plan-card>p{font-size:13px}.plan-card>button{font-size:14px}.plan-price h2{font-size:38px}.plan-name{font-size:17px}.plan-note{font-size:11px}.request-card{flex-wrap:wrap}.request-card .text-button{margin-left:30px}.profile-grid{display:block}.account-card{padding:22px;gap:16px;border-radius:22px}.account-info h2{font-size:23px}.account-info p{font-size:12px}.avatar{width:56px;height:56px;border-radius:19px;font-size:25px}.settings-card{padding-inline:21px;border-radius:22px}.settings-title h2{font-size:15px}.settings-row b,.settings-link b{font-size:14px}.settings-row small,.settings-link small{font-size:11px}.settings-row .modern-select{max-width:130px}.settings-row .modern-select-trigger{font-size:12px}.settings-link{min-height:79px}.theme-options button{font-size:11px;min-height:39px}.data-card{margin-top:22px}
}
@media(max-width:370px){.main-content{padding-inline:17px}.topbar{padding-inline:19px}.page-heading h1{font-size:42px}.welcome-copy h1{font-size:39px}.welcome-screen .welcome-visual{min-height:160px}.auth-panel{padding-inline:22px}.auth-heading h2{font-size:31px}.welcome-visual .welcome-orb{width:195px;height:195px}.welcome-sculpture{transform:scale(.9) rotate(-16deg)}.parameter-chip{padding-inline:8px;font-size:10px}.parameter-chip #studioFormatValue{padding-left:6px}.creation-actions .icon-button{width:31px;min-width:31px}.creation-actions .secondary-button{font-size:10px;padding-inline:9px}.library-sort{width:153px}.sheet-header{padding-inline:22px}.choice-option b{font-size:15px}.section-heading h1{font-size:32px}}
@media(max-height:760px) and (max-width:700px){.welcome-visual{min-height:145px!important;margin-block:12px!important}.welcome-orb{width:175px!important;height:175px!important}.welcome-sculpture{transform:scale(.78) rotate(-16deg)}.welcome-tag{bottom:8px}.welcome-copy{padding-block:8px 22px}.welcome-copy h1{font-size:40px}.welcome-copy p{font-size:13px;margin-top:13px}.auth-top{margin-bottom:25px}.auth-heading{margin-bottom:20px}.auth-heading h2{font-size:31px}.auth-tabs{margin-bottom:21px}.field{margin-bottom:14px}.field input{height:50px}.auth-submit{min-height:52px;margin-top:10px}}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes sheet-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes sheet-out{to{opacity:0;transform:translateY(20px)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.45}}@keyframes progress{from{transform:translateX(-100%)}to{transform:translateX(500%)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}dialog.is-closing{opacity:0}}

.native-app{--safe-top:var(--native-top,24px);--safe-bottom:var(--native-bottom,20px)}@media(max-width:700px){.native-app .topbar{height:calc(72px + var(--safe-top));padding-top:calc(16px + var(--safe-top))}.native-app .welcome-screen{padding-top:calc(28px + var(--safe-top))}}
.connection-sheet .sheet-content{padding:0 25px 28px}.connection-intro{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:26px}.connection-privacy{font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0 24px}.connection-submit,.connection-local{width:100%;margin-bottom:10px}.connection-local{font-size:13px}.connection-sheet .field input{font-size:15px}

.settings-sheet{overflow:hidden}.sheet-content,.choice-options{scrollbar-width:none}.sheet-content::-webkit-scrollbar,.choice-options::-webkit-scrollbar{display:none}.editor-card textarea{resize:none}

@media(max-width:700px){html{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;display:none}}

.welcome-actions>.primary-button>svg{position:absolute;right:20px;top:50%;transform:translateY(-50%)}

.location-card{grid-column:1/-1;padding:24px}.location-card h2{font-size:20px;margin:0 0 12px}.location-intro{line-height:1.6;font-size:14px;max-width:680px}.location-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.location-result{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:10px;overflow-wrap:anywhere}.location-result dd{margin:0;font-variant-numeric:tabular-nums}.location-result dt{opacity:.7}.location-actions button:disabled{opacity:.6;cursor:wait}
