/* Qinghe's own visual system; competitor assets and code are not used. */
:root{--ink:#1d1d1f;--muted:#636873;--line:#e5e7ec;--green:#0071e3;--dark:#0062c4;--soft:#eef5ff;--paper:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button{border-radius:11px;transition:background .18s,box-shadow .18s,transform .18s}button:not(:disabled):active{transform:scale(.98)}button:hover{background:#f1f5fa}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #0071e3;outline-offset:3px}
input,select,textarea{border-color:#d9dde5;border-radius:10px}input[type=checkbox]{accent-color:#0071e3}
dialog{border:1px solid #e8eaf0;border-radius:22px;box-shadow:0 24px 100px #172a4b30;padding:28px;background:white}
dialog::backdrop{background:#17233345;backdrop-filter:blur(4px)}dialog h2{font-size:22px;letter-spacing:-.5px}
.workspace-shell .panel{border-color:#e7e9ee;border-radius:18px;box-shadow:0 4px 24px #18243a05}.workspace-shell .panel-pad{padding:24px}
.workspace-shell .topbar{border-bottom-color:#eceef2}.workspace-shell .page-head h1{font-weight:650;letter-spacing:-.8px}.workspace-shell .notice{background:#f0f6fe;border-color:#dbe8fa;color:#385575}.workspace-shell .notice.amber{background:#fffaed;border-color:#eee2c4;color:#7d6326}
.workspace-shell .row-actions button{min-height:32px}.workspace-shell table:not(.tiptap table) tbody tr:hover{background:#f7f9fc}.workspace-shell .tag.gray{color:#626976;background:#f0f2f5}
.auth-story{background:linear-gradient(145deg,#f2f6fc,#f5f5f7 60%,#e9f0fc)}.auth-story p,.auth-features div{color:#5b6a80}.auth-story .logo{background:#232a35}.auth-story h1{font-weight:650;letter-spacing:-1px}.auth-card .legal{color:#636873}.auth-card input{padding:13px}
.product-flow{display:flex;gap:6px;max-width:850px;margin:18px 0 24px;padding:6px;background:#eaeef4;border:1px solid #e6eaf0;border-radius:18px}.product-flow button{flex:1;display:flex;gap:12px;align-items:center;text-align:left;border:0;background:transparent;padding:10px 15px;color:#626c7a}.product-flow button.current{background:#fff;box-shadow:0 2px 8px #2333490b;color:#0063c5}.product-flow b,.product-flow small{display:block}.product-flow b{font-size:13px;font-weight:600}.product-flow small{font-size:11px;color:#707988}.product-step{font-size:22px;font-weight:300;letter-spacing:-1px}
.writing-heading{align-items:flex-start}.writing-heading h1{font-size:23px;line-height:1.45;max-width:700px}.writing-heading p{font-size:12px;margin-top:7px}.writing-top-actions{max-width:480px}.writing-top-actions button{min-height:34px}
.product-more{position:relative}.product-more summary{list-style:none;cursor:pointer;background:white;border:1px solid var(--line);border-radius:10px;padding:7px 12px;font-size:12px}.product-more summary:after{content:'⌄';padding-left:10px}.product-more-menu{position:absolute;right:0;top:43px;z-index:12;min-width:190px;padding:8px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 15px 45px #13294420}.product-more-menu button{display:block;width:100%;text-align:left;border:0;margin:2px 0}
.writing-grid{grid-template-columns:230px minmax(350px,1fr) 270px;gap:16px}.writing-left,.writing-center,.writing-right{border-color:#e6e9ef;border-radius:18px;box-shadow:0 4px 20px #20314b04}.writing-left,.writing-right{padding:18px}.writing-pane-title h2,.writing-right h3{font-size:15px}.writing-left .ai-actions button,.writing-right .ai-actions button{font-size:12px;min-height:30px}.chapter-tree-row>button{font-size:12px;padding:12px 8px}.chapter-tree-row small{font-size:10px}.chapter-tree-row.selected{background:#eaf3ff;border-left:3px solid #0071e3}.chapter-tree-row{border-radius:9px;border-bottom-color:transparent}.chapter-tree-row:hover{background:#f4f7fc}.chapter-tree-row .tree-level{border:0;background:#f0f2f6;color:#737c89;min-width:18px;padding:1px;border-radius:5px}
.product-tree-tools{margin:16px 0}.product-tree-tools label{font-size:11px;color:var(--muted)}.product-tree-tools input{font-size:12px;padding:9px 10px}.product-segment{display:flex;gap:2px;margin-top:10px;padding:3px;border-radius:10px;background:#f0f2f6}.product-segment button{flex:1;border:0;background:transparent;font-size:11px;padding:5px 2px}.product-segment button[aria-pressed=true]{color:#0063c5;background:white;box-shadow:0 1px 4px #152b4810;border-radius:8px}#product-tree-result{font-size:10px;min-height:16px}#writing-tree{max-height:64vh;overflow:auto;scrollbar-width:thin}
.document-head{padding:24px 26px 14px}.document-head h2{font-size:22px}.document-head button{font-size:11px}.save-line{font-size:11px}.editor-toolbar{background:#f9fafc;padding:10px 16px;gap:4px}.editor-toolbar button{font-size:11px;min-height:30px;border-radius:7px}.writing-editor{background:#fbfcfe;padding:28px}.writing-editor .tiptap{background:white;padding:24px;min-height:500px;box-shadow:0 3px 18px #22355708;border:1px solid #eef0f4;border-radius:3px;font-size:15px;line-height:1.95}.writing-right textarea{font-size:12px}.response-card{border-radius:12px;padding:14px}.writing-right .notice{line-height:1.8;font-size:11px}.writing-task>small{font-size:11px}.writing-task>b{font-size:12px}.product-focus .writing-grid{grid-template-columns:minmax(0,1fr);max-width:1000px;margin:auto}.product-focus .writing-left,.product-focus .writing-right{display:none}
.word-template-gallery{border-radius:18px}.word-gallery-head small b{color:#0063c5}.word-gallery-tabs button.active{background:#0071e3}.word-gallery-filters{background:#f8f9fc;border-color:#e5e9ef}.word-gallery-filters button.active{color:#0063c5;background:#edf5ff;border-color:#c8dffc}.word-template-card{border-radius:13px;border-color:#e1e6ee;transition:box-shadow .2s,transform .2s}.word-template-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #25456e14;border-color:#9cbde4}.word-template-card.selected{border-color:#0071e3;box-shadow:inset 0 0 0 1px #0071e3}.word-template-caption{padding:12px}.word-template-card .word-card-preview{background:#24466bdc}.word-settings-tabs button[aria-pressed=true]{color:#0071e3;border-color:#0071e3}.word-export-actions{position:sticky;bottom:12px;z-index:4;background:#ffffffed;backdrop-filter:blur(16px);padding:16px;border:1px solid #e5e9f0;border-radius:16px;box-shadow:0 8px 30px #18365614}.product-export-context{flex:1 1 100%;display:grid;gap:3px}.product-export-context strong{font-size:12px;font-weight:550}.product-export-context small{font-size:11px;color:#63728a}.word-job{border-radius:12px}.word-job code{overflow-wrap:anywhere}.word-preview-toolbar a{padding:8px 12px;background:#edf5ff;color:#0063c5;border-radius:9px}.word-preview-canvas{background:#e9edf3}.word-preview-toolbar{gap:8px}.word-preview-toolbar button{min-height:34px}
@media(min-width:1181px){.writing-shell .side{width:174px}.writing-shell{grid-template-columns:174px minmax(0,1fr)}.writing-right{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;scrollbar-width:thin}}
@media(max-width:1300px){.writing-grid{grid-template-columns:200px minmax(0,1fr)}.writing-right{grid-column:1/-1;position:static;max-height:none}.writing-editor{padding:18px}.writing-top-actions{max-width:390px}}
@media(max-width:760px){.product-flow{gap:2px;margin:16px 0;padding:4px}.product-flow button{gap:6px;padding:9px 6px}.product-flow small{display:none}.product-flow b{font-size:11px}.product-step{font-size:16px}.writing-grid{grid-template-columns:minmax(0,1fr)}.writing-top-actions{max-width:none}.writing-left{max-height:420px}#writing-tree{max-height:230px}.writing-editor{padding:12px}.writing-editor .tiptap{padding:15px;font-size:14px}.word-export-actions{bottom:5px;padding:12px}.word-export-actions button{flex:1}.product-more-menu{left:0;right:auto}.writing-heading h1{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Long-document navigation: preserve the editable surface while reducing chrome. */
.writing-shell .workspace{padding-top:20px}.writing-shell .writing-heading h1{font-size:21px}.writing-shell .product-flow{margin:12px 0 18px;padding:4px}.writing-shell .product-flow button{padding:7px 12px}.writing-shell .product-flow small{display:none}
.product-tree-folds{display:flex;gap:5px;margin-top:8px}.product-tree-folds button{border:0;padding:4px;font-size:11px;color:#65748b;background:transparent}
.chapter-tree-row{position:relative;padding-left:18px}.chapter-tree-row>.product-fold{position:absolute;left:0;top:12px;width:20px;min-width:20px;padding:2px;font-size:18px;color:#6b7890;background:transparent;border:0}.chapter-tree-row.product-tree-context{background:#f7f9fc}.chapter-tree-row.product-tree-context b{font-weight:500;color:#788394}
.product-chapter-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 22px 12px}.product-chapter-nav button{border:0;color:#42668f;background:#f2f6fb}.product-chapter-nav span{font-size:11px;color:#768293}.writing-center .document-head{padding:20px 22px 10px}.writing-center .document-head h2{font-size:20px}.writing-center .save-line{padding-top:5px;padding-bottom:10px}
.product-no-assistant .writing-right{display:none}.product-no-assistant .writing-grid{grid-template-columns:230px minmax(0,1fr)}.product-focus.product-no-assistant .writing-grid{grid-template-columns:minmax(0,1fr)}
dialog:has(.word-preview-canvas){width:calc(100vw - 48px);max-width:1180px;max-height:calc(100dvh - 48px);padding:22px;overflow:auto}dialog:has(.word-preview-canvas) .dialog-head{margin-bottom:14px}dialog:has(.word-preview-canvas) h2{font-size:19px}.word-preview-canvas{height:calc(100dvh - 265px);min-height:240px;overflow:auto;overscroll-behavior:contain;padding:20px}.word-preview-canvas img{display:block;margin:0 auto;max-width:none;box-shadow:0 3px 18px #15244020}.word-preview-canvas img[hidden]{display:none}.word-page-jump{display:inline-flex;gap:6px;align-items:center;margin:0;font-size:12px;white-space:nowrap}.word-page-jump input{width:65px;padding:6px;margin:0}#word-preview-error{font-size:12px;color:#60718a;min-height:18px;margin:10px 0}.word-preview-toolbar{padding:8px 0;align-items:center}
@media(max-width:760px){.product-no-assistant .writing-grid{grid-template-columns:minmax(0,1fr)}.product-chapter-nav{padding:0 12px 12px}.product-chapter-nav span{font-size:10px}.writing-shell .workspace{padding-top:16px}dialog:has(.word-preview-canvas){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px}.word-preview-canvas{height:55dvh;padding:8px}.word-preview-toolbar{gap:5px}.word-preview-toolbar button,.word-preview-toolbar a{font-size:11px;padding:6px}}
