/* OIHelp — geometric learning studio. Brand and composition, not legacy patches. */
@font-face{font-family:OI Grotesk;src:url('/vendor/fonts/SpaceGrotesk.ttf') format('truetype');font-weight:300 700;font-display:swap}
html[data-ui-theme="clear"] body,html[data-ui-theme="clear"] body.light-mode{--primary:#304bee;--primary-dark:#2136b7;--primary-light:#b8c1ff;--primary-bg:#e9edff;--bg-primary:#f3f5fb;--bg-secondary:#fff;--bg-tertiary:#edf0f7;--text-primary:#202437;--text-secondary:#525d74;--text-muted:#667085;--text-placeholder:#758095;--border:#dce1ed;--border-light:#e9ecf4;--accent:#ffc65c;--error:#be343d;--success:#227255;--warning:#95631b;color-scheme:light}
html[data-ui-theme="paper"] body,html[data-ui-theme="paper"] body.light-mode{--primary:#be4332;--primary-dark:#963125;--primary-light:#eac0b9;--primary-bg:#f9e8e4;--bg-primary:#f6f3f1;--bg-secondary:#fff;--bg-tertiary:#eee9e5;--text-primary:#302728;--text-secondary:#675859;--text-muted:#766767;--text-placeholder:#887675;--border:#e4d9d6;--border-light:#f0e8e5;--accent:#f4c6a2;--error:#ae283b;--success:#286745;--warning:#95631b;color-scheme:light}
html[data-ui-theme="mint"] body,html[data-ui-theme="mint"] body.light-mode{--primary:#28704f;--primary-dark:#1d563c;--primary-light:#a7d8b8;--primary-bg:#e0f2e5;--bg-primary:#eef7ef;--bg-secondary:#fcfefb;--bg-tertiary:#e5f0e5;--text-primary:#243b2e;--text-secondary:#496452;--text-muted:#5e7565;--text-placeholder:#637b6b;--border:#cddfd0;--border-light:#e2eee3;--accent:#d5e7a8;--error:#b83a45;--success:#28704f;--warning:#89611e;color-scheme:light}
html[data-ui-theme] body{font-family:'Microsoft YaHei UI','Microsoft YaHei','Segoe UI',sans-serif;background:var(--bg-primary);color:var(--text-primary);--bg-hover:var(--primary-bg);--border-color:var(--border);--danger:var(--error);--sidebar-bg:var(--bg-secondary);--sidebar-text:var(--text-primary);--sidebar-muted:var(--text-muted);--sidebar-line:var(--border);--shadow-sm:none;--shadow-md:none;--shadow-lg:0 20px 65px #111a3420;--grid-ink:transparent}
/* Persistent navigation. */
html[data-ui-theme] .workspace-shell{display:grid;grid-template-columns:320px minmax(0,1fr);height:100dvh;width:100%;overflow:hidden;background:var(--bg-primary)}
html[data-ui-theme] .workspace-main{min-width:0;height:100dvh;overflow:hidden;container-type:inline-size}html[data-ui-theme] .workspace-main>.page{height:100%;min-height:0;overflow:auto}html[data-ui-theme] .workspace-shell>.sidebar{position:relative;top:auto;left:auto;width:320px;min-width:0;height:100dvh;display:flex;flex-direction:column;padding:30px 24px 18px;border:0;border-right:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);overflow-y:auto;overflow-x:hidden;z-index:35;transform:none}
html[data-ui-theme] .sidebar-header{display:flex;align-items:center;gap:12px;padding:0 8px 26px!important;min-height:84px;margin:0!important;border:0!important}html[data-ui-theme] .studio-wordmark{font-family:'OI Grotesk',sans-serif;font-size:39px;font-weight:700;letter-spacing:-1.5px;line-height:1;color:var(--text-primary)}html[data-ui-theme] .studio-wordmark i{color:var(--primary);font-style:normal}html[data-ui-theme] .studio-brand-symbol{width:34px;height:36px;flex-shrink:0;color:var(--primary)}
html[data-ui-theme] .workspace-shell .sidebar #newChatBtn{width:100%;margin:0 0 20px!important;min-height:50px;padding:13px 18px!important;font-size:16px!important;font-weight:650!important;border-radius:14px!important;background:var(--primary)!important;color:var(--bg-secondary)!important;display:flex;align-items:center;justify-content:flex-start;gap:11px}html[data-ui-theme] .workspace-shell .sidebar .learning-nav{display:flex;flex-direction:column;gap:5px;border:0;margin:0 0 10px;padding:0}
html[data-ui-theme] .workspace-shell .sidebar button[data-control-kind="navigation"],html[data-ui-theme] .workspace-shell .sidebar .sidebar-tools-summary{width:100%;min-height:46px;padding:11px 14px!important;margin:0!important;font-size:15px!important;text-align:left;justify-content:flex-start;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--text-secondary)!important;gap:12px}html[data-ui-theme] .workspace-shell .sidebar button[aria-current="page"]{background:var(--primary-bg)!important;color:var(--primary)!important;font-weight:650!important}html[data-ui-theme] .workspace-shell .sidebar button[data-control-kind="navigation"]:hover,html[data-ui-theme] .workspace-shell .sidebar .sidebar-tools-summary:hover{background:var(--bg-tertiary)!important}html[data-ui-theme] .workspace-shell .sidebar button svg,html[data-ui-theme] .sidebar-tools-summary svg{width:20px;height:20px;flex-shrink:0}
html[data-ui-theme] .sidebar-tools-group{margin:0 0 19px!important;padding:0 0 16px!important;border:0!important;border-bottom:1px solid var(--border)!important}html[data-ui-theme] .sidebar-tools-summary{display:flex;align-items:center;list-style:none;cursor:pointer}html[data-ui-theme] .sidebar-tools-summary::-webkit-details-marker{display:none}html[data-ui-theme] .sidebar-tools-title{display:flex;align-items:center;gap:12px;font-size:15px!important;color:inherit!important}html[data-ui-theme] .sidebar-tools-arrow{margin-left:auto;width:14px!important}html[data-ui-theme] .sidebar-tools-menu{padding:5px 0 0!important;display:flex;flex-direction:column;gap:3px}html[data-ui-theme] .sidebar-tools-group:not([open])>.sidebar-tools-menu{display:none}html[data-ui-theme] .sidebar-tools-menu button{padding-left:15px!important}
html[data-ui-theme] .sidebar-conversations-label{padding:8px 14px!important;font-size:13px!important;color:var(--text-muted);margin:0!important}html[data-ui-theme] .workspace-shell .conversations-list{flex:1 1 180px;min-height:120px;max-height:none;overflow-y:auto;padding:3px 0 12px!important}html[data-ui-theme] .workspace-shell .conv-item{padding:12px 13px!important;min-height:56px;border:0!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important;color:var(--text-primary);margin-bottom:4px;gap:4px}html[data-ui-theme] .workspace-shell .conv-item:hover{background:var(--bg-tertiary)!important}html[data-ui-theme] .workspace-shell .conv-item.active{background:var(--primary-bg)!important}html[data-ui-theme] .conv-item-title{font-size:14px!important;font-weight:500!important;line-height:1.65}html[data-ui-theme] .conv-item-time{font-size:11px!important;color:var(--text-muted)!important;margin-top:4px}html[data-ui-theme] .workspace-shell .conv-item-content{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;text-align:left}html[data-ui-theme] .conv-item-actions{gap:1px!important}html[data-ui-theme] .workspace-shell .conv-item-actions button{width:30px;min-width:30px;min-height:30px;height:30px;padding:5px!important;border:0!important;background:transparent!important;color:var(--text-muted)!important}html[data-ui-theme] .conv-item-badge{font-size:10px;padding:1px 5px}
html[data-ui-theme] .workspace-shell .sidebar-favorites{padding:0!important;margin:0 0 10px!important;border:0!important;background:transparent!important;flex-shrink:0}html[data-ui-theme] .workspace-shell .sidebar-favorites-toggle{display:flex;align-items:center;width:100%;padding:8px 14px!important;min-height:42px;font-size:14px!important;background:transparent!important;border:0!important}html[data-ui-theme] .sidebar-favorites-title{display:flex;align-items:center;gap:10px}html[data-ui-theme] .sidebar-favorites-meta{margin-left:auto;display:flex;align-items:center;gap:10px}html[data-ui-theme] .sidebar-favorites-meta svg{width:13px!important}html[data-ui-theme] .favorite-empty{font-size:12px!important;min-height:0;padding:8px 14px!important}html[data-ui-theme] .favorite-empty>span{display:none}html[data-ui-theme] .favorite-empty p{font-size:12px!important}html[data-ui-theme] .favorite-item{background:var(--bg-primary);border-radius:10px;padding:8px;margin:4px 0}
html[data-ui-theme] .workspace-shell .sidebar #profileBtn{flex-shrink:0;margin-top:8px!important}html[data-ui-theme] .sidebar-footer{padding:14px 9px 0!important;margin-top:8px!important;border-top:1px solid var(--border)!important;flex-shrink:0;display:flex;align-items:center;gap:10px;background:transparent!important}html[data-ui-theme] .user-info{display:flex;align-items:center;gap:10px;min-width:0;flex:1}html[data-ui-theme] .sidebar-footer .user-avatar{width:32px;height:32px;border-radius:50%;font-size:13px;background:var(--primary-bg);color:var(--primary)}html[data-ui-theme] .sidebar-footer #currentUser{font-size:13px;color:var(--text-secondary)}html[data-ui-theme] .sidebar-footer #logoutBtn{color:var(--text-muted)!important;background:transparent!important;border:0!important}
/* Chat: working surface and two-row composer. */
html[data-ui-theme] .workspace-main .app-container,html[data-ui-theme] .workspace-main .main-content{height:100%;min-height:0;min-width:0;width:100%;margin:0;flex:1}html[data-ui-theme] .workspace-main .main-content{display:flex;flex-direction:column;background:var(--bg-primary)}html[data-ui-theme] .workspace-main .chat-header{height:72px;min-height:72px;padding:0 36px;border:0;background:transparent}html[data-ui-theme] .chat-title{font-size:16px;font-weight:550}html[data-ui-theme] .chat-header .token-stats{margin-left:auto}html[data-ui-theme] .chat-title-area{gap:10px}html[data-ui-theme] .chat-header #editTitleBtn{width:32px;min-height:32px;background:transparent!important;border:0!important;padding:5px!important}
html[data-ui-theme] .workspace-main .chat-messages{flex:1;min-height:0;padding:20px max(32px,calc((100% - 880px)/2)) 28px;overflow-y:auto;scrollbar-gutter:stable}html[data-ui-theme] .conversation-view{min-height:100%}html[data-ui-theme] .conversation-view:has(.conversation-start){display:flex;align-items:center;justify-content:center}html[data-ui-theme] .conversation-start{display:block!important;align-items:initial!important;gap:0!important;width:100%;max-width:720px;text-align:left!important;padding:28px 0 45px!important;position:relative}html[data-ui-theme] .conversation-mark{display:block;font-family:'OI Grotesk',sans-serif;font-size:70px;font-weight:700;letter-spacing:-5px;color:var(--primary);line-height:1;margin:0 0 25px}html[data-ui-theme] .conversation-mark span{color:var(--accent)}html[data-ui-theme] .conversation-start h3{font-size:clamp(28px,3.5vw,42px)!important;font-weight:700;letter-spacing:-.035em;line-height:1.35;margin:0 0 14px!important;color:var(--text-primary)}html[data-ui-theme] .conversation-start>p{font-size:15px!important;color:var(--text-secondary);line-height:1.7;margin:0 0 31px!important}html[data-ui-theme] .chat-shortcuts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}html[data-ui-theme] .chat-shortcuts button.feature-card{display:inline-flex;align-items:center;gap:8px;min-height:42px!important;padding:10px 13px!important;font-size:14px!important;border:1px solid var(--border)!important;border-radius:11px!important;background:var(--bg-secondary)!important;color:var(--text-secondary)!important;box-shadow:none!important}html[data-ui-theme] .chat-shortcuts button svg{width:17px;height:17px}html[data-ui-theme] .chat-shortcuts button:hover{border-color:var(--primary)!important;color:var(--primary)!important}html[data-ui-theme] .more-question-ways{margin:18px 0 0}html[data-ui-theme] .more-question-ways>summary{font-size:13px;color:var(--text-muted);cursor:pointer;list-style-position:inside}html[data-ui-theme] .more-question-ways[open] .chat-shortcuts{margin-top:12px}
html[data-ui-theme] .workspace-main .input-area{padding:12px max(32px,calc((100% - 880px)/2)) 25px;border:0;background:var(--bg-primary);position:relative;flex-shrink:0;box-shadow:none}html[data-ui-theme] .workspace-main .input-container{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:end;padding:18px!important;border:1px solid var(--border);border-radius:20px;background:var(--bg-secondary);box-shadow:0 10px 36px #1b2d6510}html[data-ui-theme] .workspace-main .input-container:focus-within{border-color:var(--primary)}html[data-ui-theme] .workspace-main #messageInput{grid-row:1;grid-column:1/-1;min-height:57px!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;outline:0;padding:0 2px 10px!important;font-size:16px!important;line-height:1.8;resize:none;width:100%;color:var(--text-primary)}html[data-ui-theme] .model-selector-custom{grid-column:1;grid-row:2;justify-self:start;max-width:100%;position:relative}html[data-ui-theme] .input-actions{grid-column:2;grid-row:2;display:flex;align-items:center;gap:6px}html[data-ui-theme] .model-selector-btn{border:0!important;min-height:36px!important;background:var(--bg-primary)!important;padding:7px 10px!important;border-radius:9px!important;max-width:230px;font-size:12px!important;color:var(--text-secondary)!important}html[data-ui-theme] .input-actions button{width:38px;min-height:38px!important;padding:9px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--text-secondary)!important}html[data-ui-theme] .input-actions #sendBtn{background:var(--primary)!important;color:var(--bg-secondary)!important}html[data-ui-theme] .model-dropdown{background:var(--bg-secondary);border:1px solid var(--border);border-radius:14px;box-shadow:0 15px 40px #10204f25}html[data-ui-theme] .model-option{font-size:14px;min-height:40px;padding:9px 12px}html[data-ui-theme] .input-footer{margin-top:8px;min-height:0;display:flex;flex-wrap:wrap;gap:8px}html[data-ui-theme] .input-footer .input-hint{font-size:12px;color:var(--text-muted)}html[data-ui-theme] .voice-input-status{font-size:13px!important}html[data-ui-theme] .input-context-help{font-size:12px;color:var(--text-muted)}html[data-ui-theme] .input-context-help summary{cursor:pointer}html[data-ui-theme] .input-context-help p{padding:8px 0 0;margin:0;font-size:12px}
/* An own-world login: large geometric O/I artwork, not stock cards. */
html[data-ui-theme] #loginPage{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:0;align-items:stretch;min-height:100dvh;padding:0;background:var(--bg-secondary);overflow:hidden;position:relative}html[data-ui-theme] .login-introduction{background:var(--primary);color:var(--bg-secondary);position:relative;padding:48px clamp(35px,6vw,88px);display:flex;flex-direction:column;min-height:100dvh;overflow:hidden}html[data-ui-theme] .login-masthead{display:flex;align-items:center;justify-content:space-between;gap:20px}html[data-ui-theme] .oihelp-wordmark{font-family:'OI Grotesk',sans-serif;font-size:38px;font-weight:700;letter-spacing:-1.5px;color:inherit;text-decoration:none}html[data-ui-theme] .login-masthead>span{font-size:13px;opacity:.85}html[data-ui-theme] .login-editorial{flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;padding:45px 0}html[data-ui-theme] .login-editorial h2{color:inherit;font-size:clamp(38px,4vw,58px);font-weight:700;line-height:1.25;letter-spacing:-.025em;max-width:440px;margin:0 0 23px}html[data-ui-theme] .login-lead{color:inherit;font-size:16px;line-height:1.9;max-width:360px;margin:0;opacity:.85}html[data-ui-theme] .login-orbit-art{width:100%;max-width:430px;height:auto;display:block;margin:35px 0 10px;color:var(--bg-secondary)}html[data-ui-theme] .login-footnote{font-size:13px;opacity:.85;margin:0;padding-top:15px}html[data-ui-theme] .login-footnote span+span{display:none}
html[data-ui-theme] .login-container{align-self:center;justify-self:center;width:min(410px,calc(100% - 76px));margin:50px 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none!important;position:relative;z-index:1}html[data-ui-theme] .login-container::before,html[data-ui-theme] .login-container::after{display:none!important}html[data-ui-theme] .login-header{padding:0;margin:0 0 36px;text-align:left}html[data-ui-theme] .login-header .logo,html[data-ui-theme] .login-header .logo-icon{display:none}html[data-ui-theme] .login-header h1{font-size:31px;margin:0 0 10px;line-height:1.4}html[data-ui-theme] .login-header p{font-size:15px;color:var(--text-muted);margin:0}html[data-ui-theme] .login-container .form-group{margin-bottom:23px}html[data-ui-theme] .login-container .form-group label{font-size:14px;font-weight:550;margin-bottom:9px;display:block}html[data-ui-theme] .login-container input{min-height:50px!important;padding:12px 14px!important;border-radius:12px!important;font-size:15px!important}html[data-ui-theme] .login-container .btn-login,html[data-ui-theme] .login-container .btn-register{width:100%;min-height:50px;margin-top:8px;font-size:15px!important;border-radius:12px!important}html[data-ui-theme] .login-footer{margin-top:24px;font-size:14px;line-height:1.8;text-align:left}html[data-ui-theme] .password-field,html[data-ui-theme] .password-input-wrapper,html[data-ui-theme] .password-wrapper{position:relative}html[data-ui-theme] .password-toggle{position:absolute!important;top:0!important;bottom:0!important;right:6px!important;margin:auto 0!important;width:40px!important;height:40px!important;min-height:40px!important;min-width:40px!important;padding:9px!important;transform:none!important;transition:background .15s!important;display:flex!important;align-items:center;justify-content:center;border:0!important;background:transparent!important}html[data-ui-theme] .password-toggle:hover,html[data-ui-theme] .password-toggle:active,html[data-ui-theme] .password-toggle:focus{transform:none!important}html[data-ui-theme] .password-toggle svg{width:20px!important;height:20px!important}html[data-ui-theme] .password-input-wrapper input,html[data-ui-theme] .password-wrapper input,html[data-ui-theme] .password-field input{padding-right:50px!important}
/* Appearance choices and existing optional features. */
html[data-ui-theme] .appearance-style-settings{padding:5px 0 22px;margin-bottom:22px;border-bottom:1px solid var(--border)}html[data-ui-theme] .appearance-style-settings h4{margin:0 0 16px;font-size:15px}html[data-ui-theme] .appearance-style-settings>p{display:none}html[data-ui-theme] .appearance-style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}html[data-ui-theme] .appearance-style-options button{padding:5px 5px 12px!important;min-width:0;min-height:0;text-align:left;border-radius:12px!important}html[data-ui-theme] .appearance-style-options button[aria-pressed="true"]{outline:2px solid var(--primary);outline-offset:2px}html[data-ui-theme] .appearance-style-options strong{display:block;font-size:13px;margin:10px 6px 0}html[data-ui-theme] .appearance-style-options small{display:none}html[data-ui-theme] .style-preview{display:block;height:75px;position:relative;border-radius:8px;overflow:hidden;background:#f3f5fb;color:#304bee}html[data-ui-theme] .style-preview>i{position:absolute;left:0;top:0;bottom:0;width:25%;background:#fff;border-right:1px solid #dce1ed}html[data-ui-theme] .style-preview>em{position:absolute;left:35%;top:9px;font:700 31px 'OI Grotesk',sans-serif}html[data-ui-theme] .style-preview>b{position:absolute;left:35%;right:12%;bottom:12px;height:12px;background:currentColor;opacity:.15;border-radius:4px}html[data-ui-theme] .style-preview-paper{background:#f6f3f1;color:#be4332}html[data-ui-theme] .style-preview-paper>i{background:#fff}html[data-ui-theme] .style-preview-mint{background:#eef7ef;color:#28704f}html[data-ui-theme] .style-preview-mint>i{background:#fcfefb;border-color:#cddfd0}html[data-ui-theme] .appearance-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--border-light)}html[data-ui-theme] .appearance-toggle-row span{flex:1}html[data-ui-theme] .appearance-toggle-row strong{display:block;font-size:14px;font-weight:500}html[data-ui-theme] .appearance-toggle-row small{font-size:12px;color:var(--text-muted);line-height:1.6;display:block;margin-top:5px}html[data-ui-theme] .appearance-toggle-row input{flex-shrink:0}html[data-ui-theme] .optional-features-settings{border:0;padding:0;margin:20px 0}html[data-ui-theme] .optional-features-settings legend{font-size:16px;font-weight:650;padding:0}html[data-ui-theme] .optional-features-settings>p{display:none}html[data-ui-theme] .optional-features-settings small{display:none}html[data-ui-theme] .settings-guide-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding-top:20px;margin-top:20px}html[data-ui-theme] .settings-guide-entry strong{font-size:14px}html[data-ui-theme] .settings-guide-entry small{display:none}
html:not([data-show-pet="true"]) #studyPalWidget,html:not([data-show-floating-chat="true"]) #chatroomToggleBtn,html:not([data-show-usage="true"]) .token-stats{display:none!important}html:not([data-show-usage="true"]) .thinking-level-note{display:none}html[data-ui-theme] .reasoning-details:not([open]) .reasoning-content{display:none}html[data-ui-theme] .voice-retry-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px;background:var(--primary-bg);border-radius:10px;color:var(--text-primary);font-size:13px}
/* The existing guide remains expressive, separate from daily work. */
html[data-ui-theme] .first-use-guide{width:min(800px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:32px;margin:auto;border:0;border-radius:24px;background:var(--bg-secondary);color:var(--text-primary);overflow:auto;box-shadow:0 25px 80px #101a3840}html[data-ui-theme] .first-use-guide::backdrop{background:#111b35a6}html[data-ui-theme] .guide-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}html[data-ui-theme] .welcome-hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:20px;padding:38px 0}html[data-ui-theme] .first-use-guide h2{font-size:36px;line-height:1.35;letter-spacing:-.02em;margin:0 0 18px}html[data-ui-theme] .welcome-copy p{font-size:15px;color:var(--text-secondary);line-height:1.8}html[data-ui-theme] .idea-sketch svg{width:100%;height:auto}html[data-ui-theme] .sketch-sticker{display:none}html[data-ui-theme] .guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;border-top:1px solid var(--border);padding-top:25px}html[data-ui-theme] .guide-steps>div>span{color:var(--primary);font-family:'OI Grotesk',sans-serif;font-weight:600;font-size:14px}html[data-ui-theme] .guide-steps h3{font-size:16px;margin:10px 0 6px}html[data-ui-theme] .guide-steps p{font-size:13px;line-height:1.8;color:var(--text-secondary)}html[data-ui-theme] .guide-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}html[data-ui-theme] .guide-footer>span{font-size:12px;color:var(--text-muted)}html[data-ui-theme] .guide-start{white-space:nowrap}html[data-ui-theme] .workspace-mobile-header{display:none}
@media(max-width:1100px) and (min-width:769px){html[data-ui-theme] .workspace-shell{grid-template-columns:288px minmax(0,1fr)}html[data-ui-theme] .workspace-shell>.sidebar{width:288px;padding-left:20px;padding-right:20px}}
@media(max-width:768px){html[data-ui-theme] .workspace-shell{display:block;padding-top:56px}html[data-ui-theme] .workspace-main{height:calc(100dvh - 56px)}html[data-ui-theme] .workspace-shell>.sidebar{position:fixed;left:0;top:0;width:min(320px,88vw);height:100dvh;transform:translateX(-101%);transition:transform .2s;z-index:1002;padding:24px 20px 16px}html[data-ui-theme] .workspace-shell>.sidebar.open{transform:translateX(0)}html[data-ui-theme] .workspace-mobile-header{display:flex;position:fixed;top:0;left:0;right:0;height:56px;align-items:center;gap:15px;padding:8px 14px;z-index:35;background:var(--bg-secondary);border-bottom:1px solid var(--border)}html[data-ui-theme] .workspace-mobile-header>span{font-family:'OI Grotesk',sans-serif;font-size:22px;font-weight:650}html[data-ui-theme] .workspace-main .mobile-header{display:none!important}html[data-ui-theme] .workspace-main .chat-header{padding:0 20px;min-height:54px;height:54px}html[data-ui-theme] .workspace-main .chat-messages{padding:20px 22px}html[data-ui-theme] .conversation-start{padding:15px 0 25px!important}html[data-ui-theme] .conversation-mark{font-size:57px;margin-bottom:22px}html[data-ui-theme] .conversation-start h3{font-size:28px!important}html[data-ui-theme] .conversation-start>p{font-size:14px!important}html[data-ui-theme] .chat-shortcuts{gap:7px}html[data-ui-theme] .chat-shortcuts button.feature-card{font-size:13px!important;padding:9px 11px!important}html[data-ui-theme] .workspace-main .input-area{padding:10px 14px 14px}html[data-ui-theme] .workspace-main .input-container{padding:14px!important;border-radius:17px;gap:8px}html[data-ui-theme] .workspace-main #messageInput{font-size:15px!important;min-height:54px!important}html[data-ui-theme] .model-selector-btn{max-width:170px;font-size:11px!important}html[data-ui-theme] .input-actions{gap:3px}html[data-ui-theme] .input-actions button{width:34px;min-height:36px!important;padding:7px!important}html[data-ui-theme] .first-use-guide{padding:24px;width:calc(100vw - 28px);border-radius:18px}html[data-ui-theme] .welcome-hero{grid-template-columns:1fr;padding:26px 0}html[data-ui-theme] .welcome-hero>.idea-sketch{display:none}html[data-ui-theme] .first-use-guide h2{font-size:30px}html[data-ui-theme] .guide-steps{grid-template-columns:1fr;gap:15px}html[data-ui-theme] .guide-steps>div{display:grid;grid-template-columns:25px 1fr;gap:0 10px}html[data-ui-theme] .guide-steps h3{margin:0 0 5px}html[data-ui-theme] .guide-steps p{grid-column:2}html[data-ui-theme] .guide-steps p br{display:none}html[data-ui-theme] .guide-footer{flex-wrap:wrap}html[data-ui-theme] .guide-footer>span{display:none}html[data-ui-theme] .guide-start{margin-left:auto}html[data-ui-theme] .guide-topline{font-size:12px}html[data-ui-theme] .appearance-style-options{gap:10px}html[data-ui-theme] .style-preview{height:60px}html[data-ui-theme] .appearance-style-options strong{font-size:12px;margin:8px 2px 0}html[data-ui-theme] #loginPage{display:flex;flex-direction:column;padding:0}html[data-ui-theme] .login-introduction{min-height:0;padding:26px 27px 32px}html[data-ui-theme] .login-masthead>span{display:none}html[data-ui-theme] .login-editorial{padding:28px 0 0}html[data-ui-theme] .login-editorial h2{font-size:31px;max-width:100%;margin:0 0 10px}html[data-ui-theme] .login-editorial h2 br{display:none}html[data-ui-theme] .login-lead{font-size:14px;line-height:1.8;max-width:100%}html[data-ui-theme] .login-lead br{display:none}html[data-ui-theme] .login-orbit-art,html[data-ui-theme] .login-footnote{display:none}html[data-ui-theme] .oihelp-wordmark{font-size:31px}html[data-ui-theme] .login-container{width:calc(100% - 54px);margin:30px auto 35px;max-width:410px}html[data-ui-theme] .login-header{margin-bottom:26px}html[data-ui-theme] .login-header h1{font-size:25px}html[data-ui-theme] .login-header p{display:none}}
@media(prefers-reduced-motion:reduce){html[data-ui-theme] .workspace-shell>.sidebar{transition:none}}

/* Layout fixes from the desktop/mobile review. */
html[data-ui-theme] #loginPage::before{background:none!important}html[data-ui-theme] .main-content::before{background-image:var(--dynamic-bg-image)!important;opacity:.07}
html[data-ui-theme] .workspace-shell>.sidebar{overflow:hidden}html[data-ui-theme] .sidebar-top{min-height:0;max-height:59%;overflow-y:auto;overflow-x:hidden;flex-shrink:0}html[data-ui-theme] .workspace-shell .sidebar-header{min-height:70px}html[data-ui-theme] .workspace-shell .sidebar-tools-group{margin-bottom:8px!important;padding-bottom:8px!important}html[data-ui-theme] .workspace-shell .conversations-list{min-height:70px;flex:1 1 100px}html[data-ui-theme] .workspace-shell .sidebar-favorites{margin-top:12px!important}html[data-ui-theme] .workspace-shell .sidebar-footer{min-height:50px}html[data-ui-theme] .workspace-shell .sidebar .favorite-empty{padding:4px 14px!important}html[data-ui-theme] .workspace-shell .sidebar .favorite-empty p{margin:0}html[data-ui-theme] .workspace-shell .sidebar .favorite-empty{display:none}html[data-ui-theme] .workspace-shell .sidebar .sidebar-favorites-title{font-size:14px}
/* Compact task flows: keep detail available without making it the first screen. */
html[data-ui-theme] .training-loop-panel.is-empty .training-loop-metrics{display:none}
html[data-ui-theme] .training-loop-panel.is-empty .training-loop-empty{padding:12px 0 0;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;text-align:left}
html[data-ui-theme] #trainingLoopStatus:empty,html[data-ui-theme] #dailyScheduleStatus:empty,html[data-ui-theme] .csp-history-head p:empty{display:none}
html[data-ui-theme] .plan-extras{margin-top:0}
html[data-ui-theme] .plan-extras>.ui-disclosure-body{display:grid;gap:10px}
html[data-ui-theme] .ui-conditional-disclosure:has(>.ui-disclosure-body>[style*="display: none"]){display:none}
html[data-ui-theme] .plan-cal-topbar:has(.plan-legend:empty),html[data-ui-theme] .tc-no-plan-note{display:none}
html[data-ui-theme] .training-plan-hint{display:none}
html[data-ui-theme] .tc-day{min-height:68px!important;padding:10px!important}
html[data-ui-theme] .tc-plan-line:empty{display:none}
html[data-ui-theme] .tc-source-status{font-size:12px;padding:8px 0;color:var(--text-muted)}
html[data-ui-theme] .plan-cal-toolbar{gap:10px;flex-wrap:wrap}
html[data-ui-theme] .plan-cal-hint{display:none}
html[data-ui-theme] .tc-months{max-height:520px;min-width:0}
html[data-ui-theme] .tc-month{min-width:0!important}
html[data-ui-theme] .tc-month:only-child .tc-month-head{display:none}
html[data-ui-theme] .plan-cal-grid,html[data-ui-theme] .plan-cal-weekhead{grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0}
html[data-ui-theme] .training-plan-head-actions>.ui-tool-menu{margin:0}
html[data-ui-theme] .training-plan-head-actions>.ui-tool-menu>summary{min-height:40px;display:flex;align-items:center;font-size:13px;padding:8px 12px}
html[data-ui-theme] .training-plan-head-actions>.ui-tool-menu>.ui-disclosure-body{min-width:230px}
html[data-ui-theme] .training-loop-panel.is-empty .training-loop-head{margin-bottom:12px}
html[data-ui-theme] .practice-start-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding-top:20px;margin-top:20px}
html[data-ui-theme] .practice-start-actions>span{font-size:13px;color:var(--text-muted)}
html[data-ui-theme] .workspace-main .csp-page-layout{grid-template-columns:minmax(0,1fr)!important}
html[data-ui-theme] .csp-page-layout>*{grid-column:1/-1!important;min-width:0}
html[data-ui-theme] .csp-track-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html[data-ui-theme] .csp-pet-callout-setup{padding:0!important;border:0!important;background:transparent!important;gap:12px}
html[data-ui-theme] .csp-pet-callout-setup .pixel-pet{width:46px;height:46px}
html[data-ui-theme] .plan-cal-layout.detail-open .plan-cal-side{min-width:0}
html[data-ui-theme] #cspSetupPanel>.ui-disclosure{margin-top:16px}
html[data-ui-theme] #cspSetupPanel .csp-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-ui-theme] .input-actions .input-context-help{position:relative}
html[data-ui-theme] .input-context-help>summary{display:flex;align-items:center;justify-content:center;width:30px;height:36px;border-radius:8px;font-weight:600;font-size:15px;list-style:none}
html[data-ui-theme] .input-context-help>summary::-webkit-details-marker{display:none}
html[data-ui-theme] .input-context-help>summary:focus-visible{outline:2px solid var(--primary)}
html[data-ui-theme] .input-context-help[open]>p{position:absolute;bottom:44px;right:0;width:min(290px,calc(100vw - 44px));padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--bg-secondary);box-shadow:var(--shadow-md);z-index:45}
html[data-ui-theme] .workspace-main .input-footer:has(>.voice-input-status.hidden):not(:has(>.input-hint)){margin-top:0}
@media(max-width:768px){
 html[data-ui-theme] .plan-cal-layout.detail-open .plan-cal-side{order:-1!important}
 html[data-ui-theme] .tc-day{min-height:54px!important;padding:6px!important}
 html[data-ui-theme] .practice-start-actions{align-items:stretch;flex-direction:column}
 html[data-ui-theme] .practice-start-actions>button{width:100%}
 html[data-ui-theme] .input-context-help>summary{width:25px}
 html[data-ui-theme] .model-selector-btn{max-width:145px}
 html[data-ui-theme] #cspSetupPanel .csp-filter-grid{gap:12px!important}
}

html[data-ui-theme] .workspace-main header :is(h1,h2)[tabindex="-1"]:focus{outline:none}
html[data-ui-theme] .wrongbook-section-head>span:empty{display:none}
html[data-ui-theme] .wrongbook-detail-head>.ui-tool-menu{flex-shrink:0}
html[data-ui-theme] .wrongbook-detail-head>.ui-tool-menu>.ui-disclosure-body{min-width:240px}
/* Restore full-window task pages; the conversation keeps its navigation rail. */
html[data-ui-theme] .workspace-shell[data-workspace-mode="page"]{grid-template-columns:minmax(0,1fr);padding-top:0}
html[data-ui-theme] .workspace-shell[data-workspace-mode="page"]>.sidebar,
html[data-ui-theme] .workspace-shell[data-workspace-mode="page"]>.workspace-mobile-header{display:none!important}
html[data-ui-theme] .workspace-shell[data-workspace-mode="page"]>.workspace-main{height:100dvh}
/* Short confirmations should feel like a small pause in the current task. */
html[data-ui-theme] body .ui-dialog{width:min(390px,calc(100vw - 32px));padding:22px;border-radius:16px}
html[data-ui-theme] body .ui-dialog h2{font-size:18px;margin-bottom:12px}
html[data-ui-theme] body .ui-dialog-message{font-size:14px;margin-bottom:18px;line-height:1.7}
html[data-ui-theme] body .ui-dialog-actions{margin-top:18px;gap:8px}
html[data-ui-theme] body .custom-modal{width:min(440px,calc(100vw - 32px));min-height:0!important;height:auto!important;border-radius:16px}
html[data-ui-theme] body .custom-modal-header{padding:16px 20px}
html[data-ui-theme] body .custom-modal-header :is(h2,h3){font-size:18px}
html[data-ui-theme] body .custom-modal-body{padding:18px 20px;font-size:14px;line-height:1.7}
html[data-ui-theme] body .custom-modal-footer{padding:14px 20px}
html[data-ui-theme] body .wrongbook-modal-dialog{width:min(620px,calc(100vw - 32px))}
html[data-ui-theme] .wrongbook-modal-dialog>header{padding:16px 20px;min-height:0}
html[data-ui-theme] .wrongbook-modal-dialog>header .page-kicker{display:none}
html[data-ui-theme] .wrongbook-modal-dialog>header h2{font-size:20px}
html[data-ui-theme] .wrongbook-modal-dialog>footer{padding:14px 20px}
html[data-ui-theme] .wrongbook-modal-dialog textarea{min-height:70px;max-height:160px}
@keyframes oi-surface-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes oi-page-in{from{opacity:.45}to{opacity:1}}
/* The character art occupies its own space; it cannot intercept any control. */
html[data-ui-theme] .glyph-host{position:relative;isolation:isolate}
html[data-ui-theme] .glyph-canvas{display:none;pointer-events:none;user-select:none}
html[data-ui-theme] .glyph-enabled>.glyph-canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
html[data-ui-theme] .glyph-login.glyph-enabled{height:210px;max-width:450px;--glyph-ink:#fff;--glyph-accent:#ffd887;--glyph-muted:#fff}
html[data-ui-theme] .glyph-login.glyph-enabled>.login-orbit-art{visibility:hidden;height:210px}
html[data-ui-theme] .appearance-toggle-row select{max-width:190px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--bg-secondary);color:var(--text-primary)}
@media(prefers-reduced-motion:no-preference){
 html[data-ui-theme] .workspace-main>.page:not(.hidden){animation:oi-page-in .18s ease-out}
 html[data-ui-theme] body :is(.ui-dialog[open],.custom-modal,.wrongbook-modal-dialog,.mini-modal){animation:oi-surface-in .22s cubic-bezier(.2,.7,.2,1)}
 html[data-ui-theme] .plan-cal-layout.detail-open .plan-cal-side{animation:oi-page-in .18s ease-out}
 html[data-ui-theme] .ui-disclosure>summary::after{transition:transform .22s cubic-bezier(.2,.7,.2,1)}
 @supports(interpolate-size:allow-keywords){
  html[data-ui-theme] .ui-disclosure:not(.ui-tool-menu)::details-content{interpolate-size:allow-keywords;block-size:0;overflow:clip;transition:block-size .2s cubic-bezier(.2,.7,.2,1),content-visibility .2s allow-discrete}
  html[data-ui-theme] .ui-disclosure:not(.ui-tool-menu)[open]::details-content{block-size:auto}
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-ui-theme] .workspace-main>.page,html[data-ui-theme] body :is(.ui-dialog,.custom-modal,.wrongbook-modal-dialog,.mini-modal),html[data-ui-theme] .plan-cal-layout.detail-open .plan-cal-side{animation:none!important}
}
@media(max-width:768px){html[data-ui-theme] .glyph-login.glyph-enabled{height:150px}}

html[data-ui-theme] .ai-personalization-card{max-width:820px;margin:0 auto}
html[data-ui-theme] .ai-personalization-card fieldset{border:0;padding:0;margin:0}
html[data-ui-theme] .ai-personalization-card label{display:grid;gap:8px;font-size:14px;margin:18px 0;color:var(--text-secondary)}
html[data-ui-theme] .ai-personalization-card :is(input,textarea,select){width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;padding:11px;background:var(--bg-primary);color:var(--text-primary);font:inherit}
html[data-ui-theme] .personalization-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html[data-ui-theme] .personalization-actions,html[data-ui-theme] .personalization-provider{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:13px}
html[data-ui-theme] .personalization-provider{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
html[data-ui-theme] .personalization-memory{margin-top:24px;padding-top:10px;border-top:1px solid var(--border)}
html[data-ui-theme] .ai-personalization-card .appearance-toggle-row{display:flex;align-items:center;justify-content:space-between}
html[data-ui-theme] .ai-personalization-card input[type="checkbox"]{width:20px;padding:0}
@media(max-width:600px){html[data-ui-theme] .personalization-grid{grid-template-columns:1fr;gap:0}html[data-ui-theme] .ai-personalization-card label{margin:10px 0}}
