/* 易文：流式手机工作台。桌面样式由 styles.css 保持。 */
.mobile-brand-logo,.mobile-new-button,.mobile-heading,.mobile-step-number,
.mobile-step-label,.mobile-reading-actions,.mobile-history-back,.mobile-bottom-nav{display:none}

@media(max-width:1023px){
  :root{--mobile-gutter:20px;--mobile-muted:#64746b;--mobile-border:#e0e7dd;--app-header-height:72px;--compact-nav-height:0px}
  html{font-size:16px;scroll-padding-top:20px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:16px;line-height:1.65;background:#f5f6f1;color:#273b31;overflow-x:clip}
  button,input,textarea,select{font-size:1rem}
  button,a,input,textarea,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #739f87;outline-offset:3px}
  button:disabled{opacity:.55}
  .rail,#compact-nav{display:none!important}
  .app-shell{margin-left:0;min-height:100vh;min-height:100svh;padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
  .topbar{position:relative;top:auto;z-index:1;min-height:72px;height:auto;padding:12px max(var(--mobile-gutter),env(safe-area-inset-right,0px)) 12px max(var(--mobile-gutter),env(safe-area-inset-left,0px));padding-top:calc(12px + env(safe-area-inset-top,0px));gap:12px;flex-wrap:wrap;background:#fbfcf8;border-bottom:1px solid #e1e7dd;backdrop-filter:none}
  .brand-wordmark{gap:9px;min-width:0;white-space:normal}
  .mobile-brand-logo{display:block;width:34px;height:34px;flex-shrink:0;border-radius:10px}
  .brand-wordmark b{font:600 26px/1.2 var(--serif);letter-spacing:1px;white-space:nowrap}
  .brand-line{display:none}
  .brand-wordmark>span:not(.brand-line):not(.edition){display:block;max-width:106px;font-size:11px;line-height:1.5;letter-spacing:0;color:#64746b}
  .mobile-new-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:5px;min-width:72px;min-height:44px;padding:10px 12px;border:1px solid #d9e3d6;background:#fff;border-radius:12px;color:#284a39;font-size:14px;font-weight:500}
  .mobile-new-button svg{width:17px;height:17px}
  .workspace-heading{display:block;width:100%;max-width:720px;margin:0 auto;padding:27px var(--mobile-gutter) 21px}
  .workspace-heading .eyebrow,.workspace-meta,.desktop-heading{display:none}
  .workspace-heading h1{font:500 clamp(25px,6.8vw,30px)/1.5 var(--serif);letter-spacing:.1px;margin:0;color:#203a32}
  .mobile-heading{display:inline}
  .workspace-heading p{font-size:14px;line-height:1.8;letter-spacing:0;color:var(--mobile-muted);margin:7px 0 0}
  .heading-dot{color:#5e714f}
  #writing-workspace{width:100%;min-width:0;max-width:none;margin:0;overflow:visible}
  #task-status-card{max-width:680px;margin:0 var(--mobile-gutter) 20px;padding:16px;border-radius:16px;background:#edf3e8;border-color:#d9e5d3;flex-wrap:wrap;gap:12px;align-items:flex-start}
  #task-status-card:not([data-state]),#task-status-card[data-state=idle]{display:none}
  .task-card-symbol{width:32px;height:32px;border-radius:10px}
  .task-card-symbol svg{width:17px;height:17px}
  .task-card-copy{flex:1;min-width:130px;flex-basis:calc(100% - 48px)}
  .task-card-copy>b{font-size:15px;color:#2c4d37}
  .task-card-copy p{font-size:13px;line-height:1.8;color:#596e5d;margin-top:5px;overflow-wrap:anywhere}
  .task-card-actions{padding-left:0;width:100%;justify-content:flex-end;gap:8px}
  .task-card-actions .button{font-size:14px;min-height:44px;padding:10px 14px}
  #task-new{display:none}
  .service-notice{max-width:680px;margin:0 var(--mobile-gutter) 20px;padding:15px;gap:10px;border-radius:14px;flex-wrap:wrap;font-size:13px}
  .service-notice>div{flex:1;min-width:0}
  .service-notice b{font-size:14px;color:#7c6031}
  .service-notice p,.service-notice a{font-size:12px;color:#786748;overflow-wrap:anywhere;line-height:1.8}
  .service-notice>button{min-height:44px;font-size:13px;padding:9px 12px;margin-left:auto}
  .mobile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 var(--mobile-gutter) 20px;padding:5px;max-width:680px;border:1px solid #e1e7dc;border-radius:14px;background:#eaf0e5}
  .mobile-tabs button,.mobile-tabs button[data-mobile-panel=requirements]{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:none;min-height:46px;margin:0;padding:10px 5px;border-radius:10px;background:transparent;color:#627362;font-size:13px;line-height:1.45;white-space:normal;flex-wrap:wrap}
  .mobile-tabs button.active{color:#234833;background:#fff;box-shadow:0 2px 7px #243b2b0b;font-weight:600}
  .mobile-step-number{display:inline-grid;place-items:center;width:19px;height:19px;border:1px solid #bac9b5;border-radius:50%;font-size:10px;line-height:1;flex-shrink:0}
  .mobile-tabs button.active .mobile-step-number{background:#2b513c;border-color:#2b513c;color:white}
  .desktop-step-label{display:none}
  .mobile-step-label{display:inline}
  .workspace-grid{display:block;max-width:720px;width:100%;margin:0 auto;padding:0 var(--mobile-gutter);overflow:visible;min-width:0}
  .workspace-grid>.requirements-panel,.workspace-grid>.editor-panel,.workspace-grid>.preview-panel{display:none;width:100%;height:auto;min-height:0;max-width:none;margin:0;overflow:visible}
  .workspace-grid[data-mobile-view=requirements]>.requirements-panel,.workspace-grid[data-mobile-view=editor]>.editor-panel,.workspace-grid[data-mobile-view=preview]>.preview-panel{display:block}
  .panel{border:1px solid var(--mobile-border);border-radius:18px;box-shadow:0 3px 10px #203a3203}
  .brief-card{overflow:hidden}
  .brief-card>.panel-heading{position:static;padding:21px 20px 17px;gap:9px;background:#fff;border-radius:18px 18px 0 0}
  .panel-heading h2{font-size:18px;line-height:1.5;font-weight:600;letter-spacing:0;color:#294232}
  .section-icon{color:#5e714f}
  .section-icon svg{width:19px;height:19px}
  .step-number{font-size:13px;color:#5e714f}
  .brief-form{padding:21px 20px 22px;overflow:visible}
  .field-label,.field-row .field-label{font-size:14px;line-height:1.7;color:#344c39;font-weight:600;margin-bottom:9px;letter-spacing:0;white-space:normal}
  .field-label span:not(.required):not(.auto-tag),.field-label.with-note>span{font-size:12px;color:#5e714f;font-weight:400}
  .required{color:#7a5737;font-size:13px}
  .field,.field-row .field{font-size:16px;line-height:1.75;padding:12px 13px;border:1px solid #dce4d5;border-radius:10px;background:#fbfcf9;color:#293f31;min-height:50px;min-width:0;max-width:100%}
  .field:focus{border-color:#648a6c;box-shadow:0 0 0 3px #37674910}
  .field::placeholder,textarea.field::placeholder,input.field::placeholder,.field-row input::placeholder{font-size:14px;line-height:1.85;color:#5e714f;opacity:1}
  .topic-field{min-height:138px;resize:vertical}
  .field-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px;margin:22px 0}
  .field-row>div{min-width:0}
  .field-row .field{height:auto;width:100%;font-size:16px;padding:12px 11px}
  .references-field{min-height:110px}
  .field-hint{font-size:12px;line-height:1.85;color:#5e714f;margin:8px 0 0}
  .form-separator{margin:24px 0;background:#e8ede1}
  .upload-zone{min-height:118px;padding:18px 12px;border-radius:13px;background:#f9fcf5;border-color:#b8cbae;color:#506c43}
  .upload-icon{margin:0 0 8px}
  .upload-icon svg{width:27px;height:27px;color:#5e714f}
  .upload-zone b{font-size:14px;color:#47633c;font-weight:500}
  .upload-zone>span:last-child{font-size:11px;color:#5e714f;margin-top:5px}
  .image-list{display:grid;gap:12px;margin-top:13px}
  .image-card{width:100%;min-width:0;max-width:100%;padding:12px;gap:12px;align-items:flex-start;background:#f9fbf6;border-radius:12px}
  .image-card>img{width:64px;height:64px;object-fit:cover;flex-shrink:0;border-radius:8px}
  .image-info{min-width:0;flex:1}
  .image-info strong,.image-info b{font-size:13px;color:#3e5737;white-space:normal;overflow-wrap:anywhere;line-height:1.6;max-width:none}
  .image-card select{font-size:14px;max-width:100%;min-height:44px;padding:8px;border:1px solid #dce6d2;border-radius:7px;background:#fff}
  .image-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .image-actions button{font-size:13px;min-height:44px;padding:9px 11px}
  .color-setting{height:auto;min-height:50px;padding:9px 12px;gap:12px;border-radius:10px;border-color:#dce4d5}
  .color-setting select{min-height:32px;font-size:16px;color:#395334}
  #brand-color{width:38px;height:38px}
  .color-orbit i{width:16px;height:16px}
  .auto-tag{font-size:11px;color:#5e714f;background:#edf3e4;padding:3px 7px}
  .brief-footer{padding:20px;background:#fbfdf8;border-radius:0 0 18px 18px}
  .button,.button.small{min-height:46px;padding:12px 16px;border-radius:11px;font-size:14px;line-height:1.5;white-space:normal}
  .button.primary{background:#254633;border-color:#254633;box-shadow:none}
  .button.secondary{color:#3b593b;border-color:#d6e1cf}
  .button.ghost{color:#4f6846}
  .start-button{min-height:54px;font-size:16px;letter-spacing:.3px}
  .start-button svg{width:18px;height:18px}
  .start-button svg:first-child{width:17px}
  .offline-note{font-size:11px;line-height:1.8;color:#5e714f;margin-top:11px;align-items:flex-start;text-align:center}
  .offline-note i{margin-top:7px;flex-shrink:0}
  .quiet-note{display:none}
  .editor-panel{border-radius:18px;background:#fff;overflow:visible}
  .editor-tabs{position:relative;top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;height:auto;min-height:58px;padding:0 12px;gap:5px;overflow:visible;white-space:normal;background:#fff;border-radius:18px 18px 0 0;box-shadow:none}
  .editor-tabs button{position:relative;min-width:0;min-height:58px;height:auto;font-size:14px;line-height:1.5;padding:14px 3px;gap:5px;white-space:normal;color:#607258;flex-wrap:wrap}
  .editor-tabs button.active{color:#254b32;font-weight:600}
  .editor-tabs button svg{width:15px;height:15px}
  .tab-count{font-size:10px;line-height:1.5;min-width:17px;padding:1px 4px;color:#567346;background:#edf3e7}
  .document-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 18px 0;min-height:0;font-size:12px}
  .document-badge{font-size:10px;padding:3px 6px;color:#5e714f;background:#f0f5e8;border-color:#dde8ce;max-width:100%}
  .save-status{font-size:11px;max-width:none;color:#5e714f;overflow-wrap:anywhere;white-space:normal}
  .import-button{min-height:44px;padding:7px 0;font-size:12px;color:#4f7342;margin-left:auto;gap:5px}
  .import-button svg{width:14px;height:14px}
  .article-title-area{padding:21px 20px 18px}
  .title-label-row{margin-bottom:10px}
  .title-label-row label{font-size:12px;color:#5e714f;letter-spacing:.5px}
  .title-label-row .icon-button{width:44px;height:44px;color:#5e714f}
  .title-label-row svg{width:17px;height:17px}
  #title-input{font:600 25px/1.55 var(--serif);color:#243d2d;min-height:92px;letter-spacing:0;overflow:hidden;max-width:100%}
  #title-input::placeholder{color:#5e714f;font-weight:400}
  .title-baseline{display:flex;gap:10px;font-size:10px;line-height:1.8;color:#5e714f;margin-top:12px;align-items:flex-end}
  .title-baseline>span:first-child{max-width:78%}
  .title-baseline>span:last-child{white-space:nowrap}
  .format-toolbar{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:0;padding:10px 12px;background:#f7faf3;box-shadow:none;border-color:#e7eedf}
  .format-toolbar .format-group{display:flex;gap:3px;flex-wrap:wrap;min-width:0}
  .format-toolbar button{min-width:40px;min-height:44px;height:auto;font-size:13px;padding:10px 7px;color:#4d6b3e;border-radius:8px}
  .format-toolbar b,.format-toolbar em,.format-toolbar .serif-tool{font-size:16px}
  .format-toolbar>i{height:18px;margin:0 2px}
  .format-toolbar .toolbar-spacer{display:none}
  .format-toolbar select{min-height:44px;min-width:65px;max-width:84px;font-size:14px;padding:8px 6px;color:#4e6b3e;background:#fff;border:1px solid #e0e8d5;border-radius:8px}
  .paper-editor{min-height:340px;max-height:none;overflow:visible;background:#fff}
  .paper-gutter{display:none}
  #article-editor{min-height:340px;padding:24px 20px 38px;font-size:17px;line-height:1.85;color:#344535;overflow-wrap:anywhere;word-break:normal}
  #article-editor:empty:before{font:15px/2 var(--sans);color:#5e714f;max-width:none}
  .article-content img,.article-content table{max-width:100%}
  .article-content table{table-layout:fixed}
  .article-content table th,.article-content table td{overflow-wrap:anywhere}
  .editor-bottom{padding:13px 16px!important;min-height:56px;align-items:flex-start;gap:8px;font-size:11px;color:#5e714f;flex-wrap:wrap}
  .editor-bottom>div{font-size:11px;line-height:1.9;gap:7px;flex-wrap:wrap;white-space:normal}
  .editor-bottom .text-button{font-size:12px;min-height:44px;margin-left:auto;color:#51713f}
  .editor-bottom .text-button svg{width:14px;height:14px}
  .document-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;background:#fbfdf8;border-radius:0 0 18px 18px}
  .document-actions .toolbar-spacer{display:none}
  .document-actions .button{min-height:46px;font-size:13px;padding:11px 8px;gap:6px}
  .document-actions [data-action=copy-body]{grid-column:1/-1;grid-row:1;font-size:15px;min-height:50px}
  .document-actions .button svg{width:16px;height:16px}
  .info-view{padding:25px 20px;min-height:360px}
  .info-kicker{font-size:10px;color:#5e714f;letter-spacing:1.2px}
  .info-view-heading h2{font:500 23px/1.6 var(--serif);color:#31502f;margin-top:8px}
  .info-view-heading p{font-size:13px;line-height:1.9;color:#617656}
  .view-toolbar{font-size:13px;line-height:1.7;gap:8px;flex-wrap:wrap;align-items:center}
  .info-view .view-toolbar .button{font-size:12px;min-height:44px;padding:10px 12px}
  .source-card{min-width:0;gap:10px;padding:16px 0}
  .source-number{font-size:13px;color:#5e714f;padding-top:2px}
  .source-meta{min-width:0}
  .source-meta h3{font-size:15px;color:#395b2e;line-height:1.7}
  .source-meta p,.source-status{font-size:12px;line-height:1.8;color:#5e714f}
  .source-url{font-size:12px;overflow-wrap:anywhere;word-break:break-word;color:#587849}
  .source-remove{min-width:44px;min-height:44px;font-size:23px;color:#5e714f}
  .info-footnote,.review-boundary{font-size:12px;line-height:1.85;color:#5e714f;gap:9px}
  .review-item{gap:10px;padding:17px 0;min-width:0}
  .review-copy{min-width:0}
  .review-copy h3{font-size:15px;line-height:1.7;color:#456137}
  .review-copy p{font-size:13px;line-height:1.85;color:#5e714f}
  .review-status{display:block;font-size:10px;color:#5e714f;white-space:normal}
  .review-boundary b{font-size:14px;line-height:1.7}
  .review-boundary p{font-size:12px;line-height:1.85;color:#5e714f}
  .ai-review-card{padding:16px;border-radius:12px}
  .ai-review-heading b{font-size:15px;line-height:1.6;color:#476b35}
  .ai-review-card p,.ai-review-card ul{font-size:13px;line-height:1.85;color:#597848}
  .ai-review-card small{font-size:11px;line-height:1.85;color:#5e714f}
  .preview-panel{padding:0}
  .preview-heading{margin:0 1px 14px;gap:8px}
  .preview-heading h2{font-size:14px;color:#4c6b3b}
  .preview-heading svg{width:17px;height:17px}
  .live-indicator{font-size:11px;color:#5e714f}
  .phone-frame{position:relative;width:100%!important;max-width:100%!important;zoom:1!important;padding:0;border:1px solid #e0e7d9;border-radius:18px;background:#fff;box-shadow:0 3px 10px #203a3203;overflow:visible}
  .phone-status,.phone-navigation,.phone-home{display:none}
  .phone-scroll{height:auto;max-height:none;overflow:visible}
  .phone-article{padding:27px 23px 16px}
  .phone-article>h1{font-size:25px;line-height:1.55;color:#29402e;margin:0 0 16px}
  .phone-byline{font-size:11px;line-height:1.7;gap:9px;color:#5e714f;margin-bottom:28px;flex-wrap:wrap}
  .phone-byline span:first-child{color:#527342}
  #phone-body{font-size:17px;line-height:1.85;color:#344535}
  #phone-body.is-empty{min-height:240px}
  #phone-body.is-empty .empty-state{margin:25px 0;padding:28px 0;border:0}
  #phone-body.is-empty .empty-state h3{font:500 23px/1.7 var(--serif);color:#5e714f;letter-spacing:.5px}
  #phone-body.is-empty .empty-state p{font-size:13px;line-height:1.9;color:#5e714f}
  #phone-cover img{max-height:none;margin-bottom:24px;border-radius:10px}
  #phone-cover>span{font-size:11px;color:#5e714f;margin:-13px 0 25px}
  .phone-reading-end{padding:20px 20px 32px;gap:12px}
  .phone-reading-end i{font-size:11px;color:#5e714f;letter-spacing:1px}
  .preview-options,.preview-scale-note{display:none}
  .mobile-reading-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin:16px 0 0}
  .mobile-reading-actions .button{font-size:14px;min-height:50px;padding:12px 10px;gap:7px}
  .copy-explainer{padding:19px 2px 0;gap:8px;align-items:flex-start}
  .copy-check{width:20px;height:20px;color:#5e714f;background:#e3edd8;margin-top:2px}
  .copy-check svg{width:12px;height:12px}
  .copy-explainer b{font-size:13px;color:#516f3d;margin-bottom:4px}
  .copy-explainer p>span{font-size:11px;line-height:1.8;color:#5e714f}
  .preview-help{font-size:12px;line-height:1.7;min-height:44px;gap:5px;color:#5e714f;margin:5px 0 0 29px;padding:8px 0;white-space:normal;text-align:left}
  .preview-help svg{width:12px;height:12px}
  .workspace-footer{display:block;max-width:720px;margin:24px auto 0;padding:0 var(--mobile-gutter) 16px;font-size:10px;line-height:1.8;color:#5e714f}
  .workspace-footer>span:first-child{gap:6px;flex-wrap:wrap}
  .workspace-footer>span:last-child{display:none}
  .footer-divider{margin:0 2px}
  .secondary-workspace,.settings-workspace{padding:27px var(--mobile-gutter) 30px;max-width:720px;width:100%;margin:0 auto;min-width:0}
  .secondary-heading{display:flex;align-items:flex-end;gap:12px;margin:0 0 24px;padding:0;min-width:0}
  .secondary-heading>div{min-width:0}
  .secondary-heading .eyebrow{display:none}
  .secondary-heading h1{font:500 29px/1.45 var(--serif);letter-spacing:0;margin:0 0 8px;color:#203a32}
  .secondary-heading p{font-size:13px;line-height:1.8;color:#5e714f}
  .history-total{font-size:11px;line-height:1.7;color:#5e714f;white-space:nowrap}
  .history-total b{font-size:24px;color:#48663a}
  .history-layout{display:block;min-width:0}
  .history-index{overflow:visible;border-radius:17px}
  .history-index-heading{padding:18px 20px;gap:9px}
  .history-index-heading h2{font-size:15px;color:#47683a}
  .history-index-heading svg{width:18px;height:18px;color:#5e714f}
  #history-list{display:block;padding:10px;max-height:none;height:auto;overflow:visible;min-width:0}
  .history-item{display:block;width:100%;min-width:0;margin:0 0 7px;padding:17px 14px;border-radius:12px;min-height:90px;white-space:normal}
  .history-item:last-child{margin-bottom:0}
  .history-item-topic{font-size:15px;line-height:1.75;color:#36552c;margin-bottom:7px;font-weight:600}
  .history-item-title{font-size:13px;line-height:1.8;color:#5e714f;margin-bottom:11px}
  .history-item-meta{font-size:11px;line-height:1.8;color:#5e714f;gap:7px}
  .history-detail{display:none;min-height:0;border-radius:17px;overflow:hidden}
  #history-workspace[data-mobile-detail=open] .history-index{display:none}
  #history-workspace[data-mobile-detail=open] .history-detail{display:block}
  .mobile-history-back{display:inline-flex;align-items:center;gap:8px;min-height:48px;margin:7px 13px 0;padding:10px 8px;font-size:13px;line-height:1.6;color:#4d703d}
  .mobile-history-back svg{width:16px;height:16px;transform:rotate(180deg)}
  .history-detail-heading{padding:12px 21px 20px;gap:10px}
  .history-detail-kicker{font-size:11px;line-height:1.8;letter-spacing:.6px;color:#5e714f}
  .history-detail-heading h2{font:500 24px/1.55 var(--serif);color:#2f4e28;margin:10px 0 10px}
  .history-detail-heading p{font-size:11px;line-height:1.9;color:#5e714f;overflow-wrap:anywhere}
  .history-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;background:#f9fcf5}
  .history-actions .button{font-size:12px;min-height:46px;padding:10px 7px;gap:6px}
  .history-actions .button svg{width:15px;height:15px}
  .history-actions .toolbar-spacer{display:none}
  .history-empty{min-height:320px;padding:35px 24px}
  .history-empty h3{font:500 23px/1.6 var(--serif);color:#5e714f;margin-bottom:13px}
  .history-empty p{font-size:13px;line-height:1.85;color:#5e714f;max-width:280px}
  #history-preview{height:600px;min-height:300px;max-width:100%;width:100%;display:block;border:0}
  .history-index .empty-state{padding:36px 18px;font-size:13px}
  .history-index .empty-state h3{font-size:20px;line-height:1.6;color:#5e714f}
  .history-index .empty-state p{font-size:13px;line-height:1.85;color:#5e714f}
  .settings-layout{display:grid;gap:20px}
  .settings-card{border-radius:17px;overflow:hidden}
  .settings-card-heading{padding:21px 20px;gap:12px;flex-wrap:wrap;align-items:center}
  .settings-symbol{width:38px;height:38px;border-radius:12px;background:#ecf3e4;color:#5e714f;border-color:#dce7d0}
  .settings-symbol svg{width:20px;height:20px}
  .settings-card-heading>div:not(.connection-pill){flex:1;min-width:0}
  .settings-card-heading h2{font-size:17px;line-height:1.6;color:#3c5e2e;margin-bottom:4px}
  .settings-card-heading p{font-size:12px;line-height:1.8;color:#5e714f}
  .settings-card-heading .connection-pill{font-size:11px!important;line-height:1.7;max-width:none;width:100%;margin-left:50px;color:#5e714f;white-space:normal}
  .settings-card .connection-pill span:not(.status-dot){overflow:visible;white-space:normal;text-overflow:clip}
  .setting-row{margin:0 20px;padding:20px 0;gap:14px;align-items:center;min-width:0;flex-wrap:wrap}
  .setting-row>div{min-width:0;flex:1 1 120px}
  .setting-row h3,.setting-row label{font-size:15px;line-height:1.6;color:#466038}
  .setting-row p{font-size:12px;line-height:1.85;color:#5e714f;margin-top:6px;overflow-wrap:anywhere}
  .setting-row .field{font-size:16px;width:auto;max-width:100%;min-width:118px;flex:0 1 47%;padding:11px 10px;min-height:48px;background:#fbfdf8}
  .setting-row .button{font-size:13px;min-height:46px;padding:10px 13px}
  .managed-tag{font-size:11px;padding:8px 10px;border-radius:8px;color:#587a43;background:#f5f9ef;border-color:#dee8d3}
  .managed-tag svg{width:14px;height:14px}
  .settings-card-footer{display:flex;align-items:flex-start;flex-direction:column;padding:18px 20px;gap:14px;background:#f7faf2}
  .settings-card-footer p{font-size:12px;line-height:1.85;color:#5e714f}
  .settings-card-footer .button{font-size:14px;min-height:46px;padding:12px 17px;align-self:flex-end}
  .settings-signature{font-size:12px;line-height:1.8;gap:8px;color:#5e714f;margin-top:26px;letter-spacing:.3px}
  .settings-signature img{width:22px;height:22px;opacity:.8}
  .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));z-index:60;left:0;right:0;bottom:0;width:100%;padding:8px max(14px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));gap:7px;border-top:1px solid #dce5d5;background:#fcfdf9f5;backdrop-filter:blur(16px);box-shadow:0 -5px 24px #203a3204}
  .mobile-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:59px;padding:5px 8px;color:#63765a;border-radius:12px;font-size:12px;line-height:1.5}
  .mobile-nav-icon{display:grid;place-items:center;width:42px;height:27px;border-radius:9px}
  .mobile-nav-icon svg{width:20px;height:20px;stroke-width:1.6}
  .mobile-bottom-nav button.active{color:#2d5337;font-weight:600}
  .mobile-bottom-nav button.active .mobile-nav-icon{background:#e5eedb;color:#2c5739}
  body.mobile-keyboard-open .mobile-bottom-nav{visibility:hidden;pointer-events:none;transform:translateY(110%)}
  body.mobile-keyboard-open .app-shell{padding-bottom:24px}
  #app-dialog{max-width:calc(100vw - 24px);width:560px;max-height:calc(100dvh - 28px);border-radius:18px;overflow:auto}
  .dialog-heading{padding:21px 20px 15px;gap:10px}
  .dialog-heading h2{font-size:23px;line-height:1.5}
  .dialog-heading .icon-button{width:44px;height:44px;flex-shrink:0;color:#5e714f}
  #dialog-content{padding:18px 20px;font-size:14px;line-height:1.85;overflow-wrap:anywhere}
  #dialog-content input,#dialog-content textarea,#dialog-content select{font-size:16px;max-width:100%;min-height:48px}
  .dialog-note{font-size:12px;line-height:1.9;color:#5e714f}
  #dialog-actions{display:flex;flex-wrap:wrap;padding:15px 20px 20px;gap:9px}
  #dialog-actions button{font-size:14px;min-height:46px;padding:11px 14px;flex:1 1 auto}
  .version-row{align-items:flex-start;gap:12px;padding:17px 0;flex-wrap:wrap}
  .version-info strong{font-size:14px;line-height:1.8}
  .version-info>span{font-size:12px;line-height:1.8;color:#5e714f}
  .version-row>.button{min-height:44px;font-size:13px;padding:10px 13px;align-self:flex-end;margin-left:auto}
  #toast{max-width:calc(100vw - 32px);bottom:calc(92px + env(safe-area-inset-bottom,0px));font-size:13px;line-height:1.8;padding:13px 17px;border-radius:12px;overflow-wrap:anywhere}
  body.mobile-keyboard-open #toast{bottom:18px}
  .empty-state{max-width:100%;padding:32px 18px;border-color:#dfe8d5;overflow-wrap:anywhere}
  .empty-state h3{font-size:21px;line-height:1.6;color:#5e714f}
  .empty-state p{font-size:13px;line-height:1.9;color:#5e714f}
  .no-script{font-size:14px;padding-bottom:90px}
}

@media(min-width:720px) and (max-width:1023px){
  :root{--mobile-gutter:28px}
  #task-status-card,.service-notice,.mobile-tabs{margin-left:auto;margin-right:auto;width:calc(100% - 56px)}
  .workspace-heading{padding-top:34px;padding-bottom:25px}
  .workspace-heading h1{font-size:33px}
  .workspace-heading p{font-size:15px}
  .brief-card>.panel-heading{padding:24px 28px 20px}
  .brief-form{padding:25px 28px 28px}
  .brief-footer{padding:23px 28px}
  .mobile-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,760px);border-left:1px solid #e0e7d9;border-right:1px solid #e0e7d9;border-radius:18px 18px 0 0}
  body.mobile-keyboard-open .mobile-bottom-nav{transform:translate(-50%,110%)}
}

@media(max-width:359px){
  :root{--mobile-gutter:14px}
  .brand-wordmark>span:not(.brand-line):not(.edition){display:none}
  .workspace-heading h1{font-size:25px}
  .workspace-heading p{font-size:13px}
  .mobile-tabs button{font-size:12px;gap:5px}
  .mobile-step-number{width:17px;height:17px;font-size:9px}
  .brief-card>.panel-heading{padding:19px 17px 16px}
  .panel-heading h2{font-size:17px}
  .brief-form{padding:20px 17px}
  .field-row{grid-template-columns:minmax(0,1fr);gap:19px}
  .field-row .field{font-size:16px;padding:12px 13px}
  .brief-footer{padding:18px 17px}
  .editor-tabs{padding:0 8px;gap:4px}
  .editor-tabs button{font-size:13px;gap:4px}
  .article-title-area{padding-left:17px;padding-right:17px}
  #article-editor{padding-left:17px;padding-right:17px}
  .phone-article{padding-left:19px;padding-right:19px}
  .format-toolbar{padding-left:9px;padding-right:9px;gap:4px}
  .format-toolbar button{min-width:38px;padding-left:6px;padding-right:6px}
  .setting-row .field{flex-basis:100%;width:100%}
  .settings-card-heading,.settings-card-footer{padding-left:17px;padding-right:17px}
  .setting-row{margin-left:17px;margin-right:17px}
  .image-card{padding:10px;gap:9px}
  .image-card>img{width:49px;height:49px}
  .mobile-reading-actions{grid-template-columns:1fr}
}

@media(max-width:1023px) and (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
