/* 米白学习空间：4px 基础网格，所有颜色集中为可复用设计变量。 */
:root {
  --bg:#F8F5EF; --paper:#FFFDFA; --ink:#302F2A; --muted:#6C655B;
  --green:#3E6655; --pale:#EBF1E9; --sage:#6A816B; --line:#DED8CD;
  --purple:#705783; --lavender:#F1EBF5; --warning:#86551E; --danger:#A63E36;
  --serif:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Apple SD Gothic Neo',sans-serif;
  --radius-sm:8px; --radius-md:16px; --radius-lg:24px;
  --shadow-sm:0 4px 16px #4D402206; --shadow-md:0 12px 36px #4D40220C;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px; --space-8:32px;
  --text-h1:40px; --text-h2:32px; --text-h3:24px; --text-h4:20px; --text-h5:16px; --text-h6:14px;
  --text-body:15px; --text-caption:12px; --leading-body:1.75; --leading-reading:1.95;
}
body{font-size:15px;line-height:1.75;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
button,a,input,textarea,select{touch-action:manipulation}
button,.main-nav a,select{min-height:44px}
button{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
button:not(:disabled):active{transform:translateY(1px)}
button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--green);outline-offset:3px}
textarea:focus-visible{outline-offset:1px;box-shadow:0 0 0 5px #3E665512}
.top{height:80px;padding:0 32px;border-bottom:1px solid var(--line);background:var(--paper)}
.brand{font-size:24px;font-weight:700;letter-spacing:1px;gap:12px}.brand-mark{background:var(--green);border-radius:14px;width:44px;height:44px;font-size:27px}
.brand small{font-size:9px;letter-spacing:1.5px;color:var(--muted)}
.header-center{font-size:12px;color:var(--muted)}.edition{font-size:11px;border:1px solid #D9E2D3;background:var(--pale);color:var(--green);border-radius:30px}
.text-button{color:var(--green);font-size:13px;padding:8px 10px;border-radius:8px}.text-button:hover{background:var(--pale)}
.shell{grid-template-columns:208px minmax(0,1fr);min-height:calc(100vh - 80px)}
.sidebar{background:#F1EEE6;border-color:var(--line);padding:32px 16px}.side-label{color:var(--muted);font-size:11px;letter-spacing:1.5px}
.main-nav{gap:8px}.main-nav a{color:#625F55;font-size:13px;padding:12px;border-radius:12px;gap:10px}.main-nav a.active{background:var(--green);color:white;box-shadow:0 4px 12px #3E665517}.main-nav a:not(.active):hover{background:#E8E6DC}.main-nav a>span{font-size:18px}.main-nav b{font-size:11px}
.sidebar-book{border-color:var(--line);margin-top:32px}.sidebar-book p,.sidebar-book>small,.sidebar-progress small,.sidebar-progress>div,.local-state{color:var(--muted);font-size:11px;line-height:1.8}.local-state{margin-top:40px}
.book-cover{border-color:#C8D2BF;background:#E3E9D9;border-radius:4px 10px 10px 4px;color:#3F513E}.book-cover strong{font-size:19px}.book-cover small,.book-cover>span{color:#52634A}
main{padding:28px clamp(20px,2.7vw,48px) 0;max-width:1640px}.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:20px}.breadcrumb b{color:var(--green)}
h1,.page-heading h1{font-size:clamp(28px,2.8vw,40px);font-weight:650;letter-spacing:-1.2px;line-height:1.45}h1 em{color:var(--green)}
.page-heading p,.muted{font-size:14px;color:var(--muted)}.eyebrow{font-size:11px;color:var(--green)}
.panel,.path-card{border-color:var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}
.primary,.secondary{min-height:44px;font-size:14px;border-radius:10px;padding:10px 16px}.primary{background:var(--green);border-color:var(--green)}.secondary{border-color:#CDCFC1;color:var(--green);background:var(--paper)}
.primary:hover{background:#2E5142;box-shadow:0 4px 14px #3E665521}.secondary:hover{background:var(--pale)}
.markdown,.translation-body{font-size:15px;line-height:1.95;color:#47483E}.markdown strong{color:#304F40}.markdown h2,.markdown h3,.markdown h4{color:var(--green)}
.markdown table{font-size:13px}.markdown th{background:var(--pale);color:var(--green)}.markdown blockquote{background:var(--pale);color:#405941;border-color:#7F9A7C}.markdown code{background:#ECEEE3;color:#3B563E}
.personal-text{font-size:15px;border-color:var(--line);border-radius:12px;background:#FFFDFA;color:var(--ink)}.personal-text::placeholder{color:var(--muted)}
.chapter-hero{background:#EBEEE1;border-color:#D9DECC;border-radius:20px}.chapter-number,.hero-title p,.hero-meta,.hero-meta b,.subtle-note,.section-heading>span,.path-title p,.path-title h3 small,.priority-panel>p,.priority-item label small,.save-status,.editor-hint,.article-meta,.source-caption,.anchor-ko,.footnotes p,.footnotes h4,.panel-heading span,.reader-tools,.annotation-meta,.priority-suggestion,.note-counter{color:var(--muted);font-size:12px}
.hero-title .eyebrow{font-size:11px}.hero-title h2{font-size:27px}.chapter-number{font-size:48px;color:var(--green)}.hero-meta b{font-size:26px}.section-heading h2{font-size:17px}.core-question h3{color:var(--green);font-size:14px}.path-title h3{font-size:17px}.path-title p{font-size:14px}.path-index{color:var(--green)}.topic-tags span{background:var(--pale);color:#52634A;font-size:12px}.path-card .text-button,.section-tabs button,.priority-item .text-button{font-size:12px}.section-tabs button{color:var(--green);border-color:var(--line);border-radius:8px}.priority-item{grid-template-columns:24px 1fr}.priority-item input{width:20px;height:20px}.priority-item label{font-size:14px}.priority-item:has(input:checked) label{color:var(--green)}.priority-full p,.personal-guide p{font-size:14px;color:var(--muted)}.bottom-note{background:var(--pale);border-color:#D8E1D2;border-radius:16px}.bottom-note p{color:var(--muted);font-size:14px}.mode-tabs button,.topic-outline button{font-size:14px;color:var(--muted)}.topic-outline button small{font-size:12px;color:var(--muted)}.topic-outline button.active{background:var(--pale);color:var(--green)}
.editor-title label{font-size:14px}.reader-mobile-tabs button{font-size:14px;color:var(--muted)}.page-selector select{font-size:13px;color:var(--green);background:var(--paper);border-color:var(--line)}.translation-body>h3{color:var(--green)}.translation-remarks{color:var(--warning);font-size:12px}.panel-heading h2{font-size:14px}.article-title h2 small{color:var(--muted)}.annotation-card p{font-size:15px;color:#47483E}.empty-state{color:var(--muted);font-size:14px}.empty-state h3{color:var(--green)}
footer{font-size:11px;color:var(--muted);padding:28px 0 40px}footer p{font-size:12px;color:var(--muted)}dialog p,dialog li{font-size:14px;color:var(--muted)}dialog h3{font-size:16px}dialog{border-radius:24px;border-color:var(--line)}
.ui-icon{display:inline-block;width:18px;height:18px;flex:0 0 auto;vertical-align:middle}.online-dot,.studio-kicker>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:7px}
/* 同一张用户提供的九宫格原图用 CSS 取景，保留原始画风。 */
.pet-sprite{background-image:url('assets/yeye-expressions.png');background-size:300% 300%;width:144px;height:144px;flex:0 0 auto;mix-blend-mode:multiply;background-position:0 0}
.pet-sprite[data-pet=welcome]{background-position:50% 0}.pet-sprite[data-pet=working]{background-position:50% 50%;animation:pet-breathe 2.4s ease-in-out infinite}.pet-sprite[data-pet=reading]{background-position:50% 50%}.pet-sprite[data-pet=success]{background-position:100% 50%}.pet-sprite[data-pet=confused]{background-position:0 100%}
.studio-hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:28px;margin:8px 0 28px}.studio-kicker{color:var(--green);font-size:12px;font-weight:600;letter-spacing:1px;margin-bottom:12px}.studio-hero h1{font-size:clamp(28px,2.6vw,40px);font-weight:650;line-height:1.45;letter-spacing:-1.4px;margin:0 0 12px}.studio-hero h1 em{font-style:normal;color:var(--green)}.studio-hero>div>p{font-size:13px;color:var(--muted);margin:0}.hero-chips{display:flex;gap:18px;margin-top:16px;font-size:12px;color:#4C624C}.hero-chips>span{display:flex;align-items:center;gap:5px}.hero-chips svg{width:14px;height:14px}
.hero-companion{background:#F0EDE3;border:1px solid #E5DFD2;border-radius:24px;padding:16px 20px 16px 8px;display:flex;align-items:center;gap:8px;position:relative;overflow:hidden}.companion-copy>span{font-size:9px;letter-spacing:1.3px;color:var(--purple);font-weight:650}.companion-copy h2{font-size:15px;font-weight:650;margin:8px 0}.companion-copy p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 12px}.companion-copy small{font-size:11px;color:var(--green)}
.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:20px;align-items:stretch}.studio-card{border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:var(--shadow-md);overflow:hidden;display:flex;flex-direction:column;min-width:0}.studio-card-top{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);min-height:78px}.studio-card-top>div{display:flex;gap:10px;align-items:center}.studio-card-top h2{font-size:16px;font-weight:650;margin:0;letter-spacing:-.3px}.card-step{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--pale);color:var(--green);font-size:11px;font-weight:700}.card-step.purple{background:var(--lavender);color:var(--purple)}.card-caption{font-size:11px;color:var(--muted)}.result-badge{font-size:11px;color:var(--purple);background:var(--lavender);padding:3px 9px;border-radius:20px;white-space:nowrap}
.language-bar{margin:0 22px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #EAE5DB;min-height:64px}.language-bar>div{display:flex;align-items:center;gap:7px;flex:1}.language-bar>div:last-child{justify-content:flex-end}.language-bar b{font-size:14px;font-weight:600}.language-dot{width:7px;height:7px;border-radius:50%;background:#65856A}.language-dot.zh{background:#9780A7}.lang-abbr{font-size:11px;color:var(--muted)}.swap-button{width:44px;height:44px;border:1px solid var(--line);background:var(--paper);border-radius:50%;display:grid;place-items:center;color:var(--green)}.swap-button:hover{background:var(--pale)}.swap-button.swapping svg{animation:swap-turn .35s ease}
.source-editor{margin:16px 22px 0;border:1px solid #E8E3D9;border-radius:12px;background:#FAF8F3;transition:border-color .2s,box-shadow .2s}.source-editor:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #3E665510}#aiText{margin:0;display:block;border:0;width:100%;min-height:244px;resize:vertical;background:transparent;padding:18px 16px;color:var(--ink);font-size:15px;line-height:1.95;border-radius:12px;outline:none;box-shadow:none}#aiText::placeholder{color:#80766A;font-size:14px;line-height:2}#aiText:focus-visible{outline:0;box-shadow:none}.input-bottom{padding:0 12px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.input-bottom>span{font-size:11px;color:var(--muted);white-space:nowrap}.input-bottom b{font-weight:400}.sample-button{border:0;background:none;color:var(--green);display:flex;align-items:center;gap:6px;font-size:12px;padding:4px}.sample-button:hover{background:var(--pale);border-radius:8px}.sample-button svg{width:14px;height:14px}
.input-tools{display:flex;justify-content:space-between;gap:4px;margin:4px 18px 8px}.input-tools>div{display:flex;gap:4px}.tool-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:12px;white-space:nowrap}.tool-button:hover{background:var(--pale);color:var(--green)}.tool-button .ui-icon{width:16px;height:16px}
.upload-wrap{margin:0 22px 16px}.upload-zone{display:flex;align-items:center;gap:12px;padding:14px;background:#F5F4EC;border:1px dashed #BCBFA9;border-radius:12px;cursor:pointer;min-height:80px;transition:background .2s,border-color .2s}.upload-zone:hover{background:var(--pale);border-color:var(--green)}.upload-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#E8EBDD;color:var(--green);flex:0 0 auto}.upload-zone strong{font-size:13px;font-weight:550;display:block}.upload-zone small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.upload-plus{color:var(--green);font-size:22px;margin-left:auto}.upload-wrap:focus-within .upload-zone{outline:3px solid var(--green);outline-offset:3px}.upload-hint{color:var(--muted);font-size:11px;margin:8px 0 0;line-height:1.7}.attachments{display:grid;gap:8px;margin-top:8px}.attachments:empty{margin:0}.attachment{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:4px 4px 4px 8px;font-size:12px;min-width:0}.attachment img{width:40px;height:40px;object-fit:cover;border-radius:5px}.attachment>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--lavender)}
.source-submit{padding:0 22px 18px;margin-top:auto;text-align:center}.generate-button{width:100%;min-height:50px;border-radius:12px;gap:8px;font-weight:550;font-size:14px;box-shadow:0 4px 10px #3E665515}.generate-button>.ui-icon:last-child{margin-left:auto}.generate-button>.ui-icon:first-child{margin-right:auto}.source-submit>p{font-size:10px;color:var(--muted);margin:8px 0 0}.cancel-button{margin-top:8px}
.result-tabs{display:flex;gap:4px;padding:10px 16px 0;border-bottom:1px solid var(--line);background:#FCFAF6;min-height:64px}.result-tabs button{position:relative;flex:1;padding:8px 4px 14px;color:var(--muted);border:0;background:none;font-size:12px;white-space:nowrap;border-radius:8px 8px 0 0}.result-tabs button[aria-selected=true]{color:var(--green);font-weight:650}.result-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:0;left:12px;right:12px;height:3px;border-radius:3px;background:var(--green)}.result-tabs button:hover{background:var(--pale)}.studio-output{min-height:460px;max-height:660px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#C9CBBF transparent;overscroll-behavior:contain;scroll-behavior:smooth}.studio-empty{min-height:460px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px 20px;color:var(--muted)}.empty-book{width:76px;height:76px;border:1px solid #E4DFD1;background:#F2EFE5;display:grid;place-items:center;border-radius:24px;box-shadow:0 8px 18px #67533305;transform:rotate(-7deg);margin-bottom:20px}.empty-book svg{width:32px;height:32px;color:#6E825D}.studio-empty h3{font-size:17px;color:#535B49;font-weight:550;margin:0 0 10px}.studio-empty>p{font-size:13px;line-height:1.9;margin:0}.empty-steps{display:flex;align-items:center;justify-content:center;gap:12px;font-size:11px;margin-top:30px}.empty-steps>span{display:grid;justify-items:center;gap:7px}.empty-steps b{font-size:10px;font-weight:500;border:1px solid #DBDECF;background:#F1F3E9;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:var(--green)}.empty-steps i{font-style:normal;color:#767565;margin-top:-20px}.empty-footnote{font-size:11px;margin-top:28px}.studio-markdown{padding:22px 26px;font-size:14px;line-height:1.95}.studio-markdown>h2:first-child{margin-top:0}.studio-markdown h2{font-size:18px}.studio-markdown h3{font-size:16px}.studio-markdown table{font-size:12px}
.result-bottom{border-top:1px solid var(--line);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:4px;flex-wrap:wrap;margin-top:auto;min-height:74px}.result-bottom>span{font-size:10px;color:var(--muted);display:flex;gap:5px;align-items:center}.result-bottom>span svg{width:13px;height:13px;color:var(--purple)}.result-bottom>div{display:flex;gap:4px}.result-bottom .export-button{background:var(--pale);color:var(--green);padding:8px 12px}
.studio-loading{padding:32px 26px}.loading-title{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--green)}.studio-loading p{font-size:12px;color:var(--muted);margin:12px 0 32px}.studio-loading small{font-size:11px;color:var(--muted)}.spinner{width:17px;height:17px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .9s linear infinite}.skeleton{height:12px;margin:16px 0;border-radius:8px;background:linear-gradient(90deg,#EDEBE2,#F7F5EF,#EDEBE2);background-size:200% 100%;animation:shimmer 1.8s infinite}.skeleton.sk-title{width:45%;height:18px}.skeleton.sk-short{width:72%}.sk-group{margin:32px 0 42px}
.studio-status{padding:14px 18px;margin-top:16px;border:1px solid #D6DFCE;background:var(--pale);border-radius:12px;font-size:13px;color:var(--green)}.studio-status[data-kind=error]{background:#FBEFEB;border-color:#E9C7BE;color:var(--danger)}.studio-status[data-kind=warning]{background:#FBF0DF;border-color:#E3D1B3;color:var(--warning)}.studio-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 2px 0;font-size:12px;color:var(--muted)}.studio-bottom p,.studio-bottom a{display:flex;align-items:center;gap:8px;margin:0}.studio-bottom a{min-height:44px;color:var(--green)}.studio-bottom svg{width:16px;height:16px}
/* 小助手可以收起；不遮挡操作区，不自动弹出对话。 */
.buddy-toggle{position:fixed;z-index:9;right:20px;bottom:20px;width:64px;height:64px;padding:0;border:1px solid #D9D2C4;border-radius:22px;background:var(--paper);box-shadow:0 6px 24px #4D40221F;display:grid;place-items:center;overflow:hidden}.buddy-toggle .pet-sprite{width:62px;height:62px}.buddy-toggle:hover{transform:translateY(-3px)}.buddy-panel{position:fixed;z-index:12;right:24px;bottom:96px;width:300px;max-width:calc(100vw - 32px);padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-md)}.buddy-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}.buddy-panel h2{font-size:16px;margin:0}.buddy-panel p{font-size:13px;line-height:1.9;color:var(--muted)}.buddy-panel button[data-buddy-tip]{text-align:left;width:100%;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:10px 12px;margin-top:8px;color:var(--green);font-size:13px}.buddy-panel .buddy-disclaimer{font-size:11px;margin-bottom:0}.buddy-message{padding:12px;background:var(--pale);border-radius:12px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-200% 0}}@keyframes swap-turn{to{transform:rotate(180deg)}}@keyframes pet-breathe{50%{transform:translateY(-4px)}}
@media(min-width:1500px){.studio-hero{margin-bottom:32px}.hero-companion{padding:20px}.hero-companion .pet-sprite{width:160px;height:160px}.studio-card-top{padding:22px 26px}.companion-copy h2{font-size:17px}.companion-copy p{font-size:13px}}
@media(max-width:1180px){.shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{padding:28px 12px}.main-nav a{font-size:12px;gap:8px}main{padding:24px 22px 0}.studio-hero{gap:20px}.hero-companion{padding:12px 12px 12px 0;gap:0}.hero-companion .pet-sprite{width:110px;height:110px}.companion-copy h2{font-size:13px}.companion-copy p{font-size:11px}.card-caption{display:none}.studio-card-top{padding:18px}.studio-card-top h2{font-size:15px}.studio-workspace{gap:16px}.result-bottom{justify-content:flex-end}.result-bottom>span{width:100%;margin-bottom:0}.result-bottom .tool-button{min-height:44px}}
@media(max-width:900px){.shell{display:block}.top{height:72px;padding:0 24px}.sidebar{padding:8px 16px;background:var(--paper);border-bottom:1px solid var(--line)}.main-nav{gap:4px;display:flex;overflow:auto;scrollbar-width:none}.main-nav a{min-width:max-content;flex:1 0 auto;justify-content:center;font-size:12px;min-height:44px;padding:10px 12px;border-radius:10px}.header-center{font-size:11px}.studio-hero{grid-template-columns:1fr 1fr;margin-bottom:24px}.studio-hero h1{font-size:30px}.hero-chips{gap:12px}.studio-output{min-height:460px}.studio-bottom{font-size:11px}footer{padding-right:72px}}
@media(max-width:740px){main{padding:24px 16px 0}.top{padding:0 16px;height:68px}.brand{font-size:22px}.brand small{font-size:8px}.brand-mark{width:40px;height:40px}.top>.text-button{font-size:12px}.sidebar{padding:8px 12px}.main-nav a{font-size:12px;padding:8px 10px}.main-nav a>span{font-size:16px}.breadcrumb{font-size:11px;margin-bottom:20px;flex-wrap:wrap;gap:6px}.studio-hero{grid-template-columns:1fr;gap:20px;margin-bottom:20px}.studio-hero h1{font-size:32px;line-height:1.4}.studio-hero h1 br{display:none}.studio-hero>div>p{font-size:13px;max-width:300px}.hero-chips{gap:20px;margin-top:12px}.hero-companion{padding:8px 16px 8px 4px;border-radius:18px;max-width:none;gap:12px}.hero-companion .pet-sprite{width:88px;height:88px}.companion-copy h2{font-size:14px;margin:4px 0}.companion-copy p{font-size:12px;margin-bottom:0}.companion-copy>span{font-size:8px}.companion-copy small{display:none}.studio-workspace{grid-template-columns:1fr;gap:20px}.studio-card{border-radius:18px}.studio-card-top{min-height:72px;padding:16px 18px}.studio-card-top h2{font-size:16px}.card-caption{display:inline;font-size:10px}.source-editor{margin:12px 16px 0}.language-bar{margin:0 18px;min-height:60px}#aiText{min-height:210px;padding:16px;font-size:16px}.input-tools{margin:4px 12px 8px}.upload-wrap{margin:0 16px 16px}.source-submit{padding:0 16px 16px}.source-submit p{font-size:11px}.generate-button{min-height:52px;font-size:14px}.upload-zone small{font-size:10px}.result-tabs{padding-left:12px;padding-right:12px}.result-tabs button{font-size:12px}.studio-output{max-height:none;min-height:340px}.studio-empty{min-height:340px}.empty-book{width:64px;height:64px;margin-bottom:16px;border-radius:20px}.studio-empty h3{font-size:16px}.empty-steps{margin-top:24px}.empty-footnote{margin-top:20px}.result-bottom{padding:10px 14px;justify-content:space-between;gap:6px}.result-bottom>span{width:auto;flex:1;min-width:100px;line-height:1.6}.studio-markdown{padding:20px;font-size:15px}.studio-status{font-size:13px}.studio-bottom{display:block;padding:20px 2px 0;font-size:12px}.studio-bottom a{margin-top:8px}.buddy-toggle{width:54px;height:54px;border-radius:18px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.buddy-toggle .pet-sprite{width:52px;height:52px}.buddy-panel{right:12px;bottom:80px}.page-heading h1{font-size:28px}.notes-layout{display:block}.topic-outline{position:static;display:flex;overflow:auto;margin-bottom:16px}.topic-outline button{flex:0 0 auto;width:auto}.topic-outline h3{display:none}.priority-full{grid-template-columns:1fr}.section-heading{align-items:baseline}.section-heading>span{font-size:11px}.path-card{padding:20px 16px}.personal-overview{display:block}.reading-grid{display:block}.reader-mobile-tabs{display:flex}.reading-grid[data-mobile=translation] .source-panel{display:none}.reading-grid[data-mobile=source] .translation-panel{display:none}}
@media(max-width:390px){.studio-hero h1{font-size:29px}.card-caption{display:none}.upload-zone{gap:8px;padding:12px}.upload-icon{width:32px;height:32px}.upload-zone strong{font-size:12px}.upload-zone small{font-size:9px}.hero-chips{gap:16px;font-size:11px}.tool-button{font-size:11px;padding:8px 6px}.input-bottom{gap:4px}.input-bottom>span{font-size:10px}.sample-button{font-size:11px}.result-bottom>span{width:100%}.result-bottom>div{margin-left:auto}.buddy-panel{width:280px}}
@media(max-width:740px){.studio-hero h1 br{display:block}.studio-hero>div>p{max-width:none}.studio-hero{gap:16px}.hero-companion{margin-top:0}}
body:has(#aiText:focus) .buddy-toggle{visibility:hidden}
#aiText::placeholder{color:var(--muted)}.empty-steps i{color:var(--muted)}
.source-editor,.personal-text,.upload-zone{border-color:#858D78}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.buddy-toggle,.buddy-panel,.studio-hero,.source-card,.result-tabs,.result-bottom,.studio-bottom{display:none!important}.studio-workspace{display:block}.studio-output{overflow:visible;max-height:none}.studio-card{border:0;box-shadow:none}.studio-markdown{padding:0}}
