/* 按钮的管理员状态必须保留 flex 布局，避免星标与回收图标回落到文字基线。 */
body[data-role="admin"] button[data-admin],body[data-role="admin"] a[data-admin]{display:inline-flex!important;align-items:center;justify-content:center}
body[data-role="admin"] .new-record[data-admin]{justify-content:flex-start}
.entry__actions{align-items:center}
.entry__actions .iconbtn{display:inline-flex;vertical-align:middle;line-height:1}
.entry__actions .icon{display:block;margin:0}
.entry__del,.starbtn{align-self:center}
.side-link{position:relative}
/* 一张宽桌面，安静地写。 */
.writer-wrap{padding-top:5px;padding-bottom:60px;max-width:1320px}
#writer-fields{padding:0;margin:0;border:0;min-width:0}
.writer-page-head{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:10px 0 25px}
.writer-page-head .back,.trash-page-head .back{font-size:12px;margin-bottom:20px}
.writer-page-head .section-eyebrow,.trash-page-head .section-eyebrow{font-size:8px;margin:0 0 9px}
.writer-page-head h1,.trash-page-head h1{font-family:var(--font-serif);font-size:34px;font-weight:var(--heading-weight);letter-spacing:.04em;line-height:1.5;margin:0 0 8px}
.writer-intro,.trash-page-head>div>p:last-child{font-size:12px;color:var(--text-soft);margin:0;line-height:1.9}
.writer-head-actions{display:flex;align-items:center;gap:10px;padding-top:42px;flex-shrink:0}
.writer-head-actions .primary{min-height:40px;font-size:12px;padding:9px 17px}
.writer-head-actions .editor__btn{font-size:11px;padding:8px 11px;display:inline-flex;align-items:center;gap:7px}
.writer-head-actions .icon{width:15px;height:15px}
.writer-notice{padding:13px 17px;border:1px solid color-mix(in srgb,var(--accent) 13%,var(--line));background:color-mix(in srgb,var(--bg-soft) 80%,var(--surface));font-size:11px;line-height:1.9;color:var(--text-soft);border-radius:10px;margin-bottom:24px}
.writer-notice.is-error,.trash-feedback.is-error{color:var(--danger);background:color-mix(in srgb,var(--danger) 6%,var(--surface));border-color:color-mix(in srgb,var(--danger) 22%,var(--line))}
.writer-layout{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:22px;align-items:start}
.writing-desk{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 30px -26px var(--text);overflow:clip;transition:border-color var(--fast),box-shadow var(--fast)}
.writing-desk.is-dragging{border-color:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.writer-desk-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 27px 10px}
.writer-types{padding:3px;background:var(--bg-soft);border-radius:8px;gap:1px}
.writer-types .seg__btn{font-size:11px;min-width:0;padding:5px 10px;display:flex;align-items:center;gap:5px;border-radius:6px;border:0;background:transparent;line-height:1.8;color:var(--text-soft)}
.writer-types .seg__btn.is-on{background:var(--surface);color:var(--accent);box-shadow:0 1px 5px color-mix(in srgb,var(--text) 6%,transparent)}
.writer-types .icon{width:13px;height:13px}
.draft-status{font-size:9px;color:var(--text-faint);text-align:right;line-height:1.7;max-width:180px}
.writer-title-row{position:relative;padding:22px 30px 25px}
.writer-title{display:block;width:100%;border:0;border-radius:0;background:transparent;padding:0 0 3px;color:var(--heading-c);font-family:var(--font-serif);font-weight:var(--heading-weight);font-size:28px;letter-spacing:.025em;line-height:1.65;outline:none!important;box-shadow:none!important}
.writer-title::placeholder{color:var(--text-faint);opacity:.6}
.title-count{display:block;text-align:right;font-size:9px;color:var(--text-faint);font-variant-numeric:tabular-nums;margin-top:3px;line-height:1.6}
.writer-tools{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:9px 23px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 45%,var(--surface));position:sticky;top:76px;z-index:5}
.writer-format{display:flex;align-items:center;gap:3px;min-width:0}
.toolbtn{width:29px;height:29px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:5px;font:14px Georgia,serif;color:var(--text-soft);line-height:1}
.toolbtn:hover{background:var(--bg-soft);color:var(--accent)}
.toolbtn .icon{width:15px;height:15px}.tool-divider{width:1px;height:15px;background:var(--line);margin:0 6px}
.writer-views{display:flex;gap:3px;flex-shrink:0}.writer-views button{background:transparent;border:1px solid transparent;border-radius:6px;font-size:10px;padding:3px 8px;color:var(--text-faint)}
.writer-views button.is-on{color:var(--accent);background:var(--accent-soft)}
.writer-body{display:block;box-sizing:border-box;width:100%;min-height:500px;resize:vertical;overflow-y:hidden;padding:30px;border:0;background:transparent;color:var(--text);font-family:var(--font-body);font-size:16px;line-height:2.1;letter-spacing:.025em;outline:none!important;box-shadow:none!important;border-radius:0;tab-size:2}
.writer-body::placeholder{color:var(--text-faint);opacity:.75}
.writer-preview{min-height:500px;padding:30px;font-size:16px;line-height:2.1}
.writer-preview-empty{color:var(--text-faint);font-size:14px}
.writer-countbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 28px 13px;border-top:1px solid var(--line)}
.writer-countbar>span{font-size:10px;color:var(--text-faint)}
.writer-count-info{display:flex;align-items:center;gap:16px}
.word-count{font-size:13px;font-variant-numeric:tabular-nums;color:var(--text-soft);white-space:nowrap;line-height:1.5}
.word-count small{font-size:10px;color:var(--text-faint)}
.word-count.is-near{color:var(--warm)}.word-count.is-over,.writer-word-help.is-over{color:var(--danger)}
.writer-count-info .textbtn{font-size:10px;gap:4px;padding:3px 0;white-space:nowrap}.writer-count-info .icon{width:13px;height:13px}
.word-meter{height:2px;margin:0 28px;background:var(--line);border-radius:2px;overflow:hidden}.word-meter span{display:block;height:100%;width:0;background:var(--accent);transition:width var(--fast)}.word-meter span.is-over{background:var(--danger)}
.writer-word-help{font-size:9px;color:var(--text-faint);line-height:1.9;margin:9px 28px 23px}
.writer-attachments{padding:23px 28px 25px;border-top:1px solid var(--line)}
.attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.attachment-heading h2{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:550;margin:0}.attachment-heading h2 .icon{width:15px;height:15px;color:var(--accent)}.attachment-heading h2>span{font-family:var(--font-mono);font-size:9px;color:var(--text-faint);padding-left:3px}.attachment-heading>.textbtn{font-size:10px;padding:0}
.attachment-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:7px;padding:24px 12px;border:1px dashed color-mix(in srgb,var(--accent) 28%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--bg-soft) 35%,var(--surface))}
.attachment-drop-icon{display:grid;place-items:center;width:34px;height:34px;color:var(--accent);background:var(--accent-soft);border-radius:10px;margin-bottom:4px}.attachment-drop-icon .icon{width:18px;height:18px}
.attachment-drop p{font-size:11px;margin:0;color:var(--text-soft);line-height:1.9}.attachment-drop .textbtn{padding:0 3px;font-size:11px}.attachment-drop small{font-size:9px;color:var(--text-faint);line-height:1.8}.attachment-drop.has-files{padding:16px 12px}.attachment-drop.has-files .attachment-drop-icon{display:none}
.attachment-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.attachment-list:empty{display:none}
.attachment-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;min-width:0;background:var(--surface)}
.attachment-file-icon,.attachment-thumb{display:flex;align-items:center;justify-content:center;width:35px;height:39px;flex:none;border-radius:7px;background:var(--bg-soft);color:var(--accent);object-fit:cover}.attachment-file-icon .icon{width:18px;height:18px}
.attachment-row-label{display:block;flex:1;min-width:0}.attachment-row-label b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:450;font-size:11px;line-height:1.8}.attachment-row-label small{display:block;color:var(--text-faint);font-size:9px;line-height:1.8}.attachment-row .iconbtn{width:26px;height:28px}.attachment-row .iconbtn .icon{width:14px;height:14px}
.attachment-row.is-error{border-color:color-mix(in srgb,var(--danger) 30%,var(--line))}.attachment-row.is-error .attachment-status{color:var(--danger)}
.attachment-progress{display:block;height:2px;margin-top:5px;max-width:180px;background:var(--line);border-radius:2px;overflow:hidden}.attachment-progress>span{display:block;height:100%;background:var(--accent);width:0;transition:width .15s linear}
.writer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:19px 25px;background:color-mix(in srgb,var(--bg) 40%,var(--surface))}.writer-bottom>span{font-size:9px;color:var(--text-faint);display:flex;align-items:center;gap:5px}.writer-bottom>span .icon{width:11px;height:11px}.writer-bottom>div{display:flex;gap:8px;align-items:center}.writer-bottom .primary{font-size:11px;padding:8px 14px;min-height:37px;white-space:nowrap}.writer-bottom .primary .icon{width:14px;height:14px}.writer-bottom .editor__btn{font-size:10px;padding:7px 10px;white-space:nowrap}
.writer-aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:96px;min-width:0}.writer-card{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:color-mix(in srgb,var(--surface) 85%,transparent);min-width:0}.writer-card-heading{display:flex;align-items:center;gap:8px;margin-bottom:9px}.writer-card-icon{display:grid;place-items:center;color:var(--accent);width:25px;height:25px;border-radius:7px;background:var(--accent-soft)}.writer-card-icon .icon{width:14px;height:14px}.writer-card h2{font-size:12px;font-weight:550;line-height:1.7;margin:0}.writer-card-desc{font-size:10px;color:var(--text-faint);line-height:1.9;margin-bottom:16px}.writer-card .field__input{font-size:11px;padding:8px 10px;min-height:36px;width:100%;margin:0;border-radius:7px;min-width:0}.writer-label{display:block;font-size:10px;color:var(--text-soft);margin:13px 0 7px}
.series-code-row{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 10px;margin-top:12px;background:var(--bg-soft);border-radius:7px}.series-code-row code{font:11px var(--font-mono);color:var(--accent);letter-spacing:.01em}.series-code-row .iconbtn{width:23px;height:23px}.series-code-row .icon{width:12px;height:12px}.writer-series .textbtn{font-size:9px;padding:7px 0 0;color:var(--text-faint)}.series-hint{font-size:9px;line-height:1.9;color:var(--text-faint);margin:12px 0 0}
.writer-help{padding:16px 19px;color:var(--text-soft)}.writer-help summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;list-style:none}.writer-help summary::-webkit-details-marker{display:none}.writer-help summary::after{content:"+";margin-left:auto;color:var(--text-faint)}.writer-help[open] summary::after{content:"−"}.writer-help .icon{width:13px;height:13px;color:var(--text-faint)}.writer-help ul{padding-left:16px;font-size:10px;line-height:2.2;margin:14px 0 10px}.writer-help p{font-size:10px;line-height:1.9;margin:0}.writer-help code{font:10px var(--font-mono);color:var(--accent)}
.part-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:11px 26px 0;scrollbar-width:thin}.part-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1px solid var(--line);background:transparent;color:var(--text-soft);font-size:11px;padding:7px 13px;border-radius:8px;white-space:nowrap;line-height:1.7}.part-tab small{font-size:8px;color:var(--text-faint)}.part-tab.is-on{border-color:color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--accent-soft);color:var(--accent)}.part-add{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:10px;border:0;background:transparent;color:var(--accent);padding:8px}.part-add .icon{width:12px;height:12px}.part-remove{font-size:9px;white-space:nowrap;margin-left:auto;color:var(--text-faint)}
.is-writing-focus .sidebar,.is-writing-focus .writer-aside,.is-writing-focus .foot,.is-writing-focus .mobile-menu{display:none!important}.is-writing-focus .workspace{margin-left:0}.is-writing-focus .writer-wrap{max-width:1000px;margin:0 auto;width:100%}.is-writing-focus .writer-layout{grid-template-columns:1fr}.is-writing-focus .writer-body{padding:40px 65px;font-size:17px;line-height:2.2;min-height:60vh}.is-writing-focus .writer-title-row{padding:35px 65px 24px}.is-writing-focus .writer-tools{padding-left:55px;padding-right:55px}.is-writing-focus .writer-preview{padding:40px 65px}.is-writing-focus .writer-notice{display:none}
.writer-load-error{padding:22px;border:1px solid var(--line);border-radius:12px;margin-top:16px;font-size:13px}.writer-load-error a{margin-left:15px}.page-access{max-width:560px;margin:60px auto;text-align:center;font-size:14px}.page-access h1{font-size:28px}
/* 标签有明确的两条路径。 */
.selected-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px;min-height:28px}.selected-tags-empty{font-size:10px;color:var(--text-faint);margin:0;line-height:2.2}.selected-tags .tagchip{display:inline-flex;align-items:center;gap:5px;font-size:10px;background:var(--accent-soft);color:var(--accent);padding:4px 7px;border-radius:6px;border:0;line-height:1.8;max-width:100%;overflow-wrap:anywhere}.selected-tags .tagchip button{display:grid;place-items:center;border:0;padding:2px;background:transparent;color:inherit;flex:none;opacity:.65}.selected-tags .tagchip .icon{width:10px;height:10px}
.tag-picker-tabs{display:flex;gap:3px;padding:3px;background:var(--bg-soft);border-radius:7px;margin-bottom:12px}.tag-picker-tabs button{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;min-width:0;font-size:10px;color:var(--text-faint);background:transparent;border:0;border-radius:5px;padding:6px 2px;white-space:nowrap}.tag-picker-tabs .icon{width:12px;height:12px}.tag-picker-tabs button.is-on{color:var(--accent);background:var(--surface);box-shadow:0 1px 4px color-mix(in srgb,var(--text) 6%,transparent)}
.tag-create-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:0 4px 0 10px}.tag-create-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.tag-create-input input{border:0;padding:9px 0;min-width:0;flex:1;background:transparent;font-size:11px;color:var(--text);outline:none!important}.tag-create-input .iconbtn{width:28px;height:28px}.tag-create-input .icon{width:14px;height:14px}.tag-create>small{display:block;font-size:8px;line-height:1.8;color:var(--text-faint);margin-top:7px}.tag-picker-message{font-size:9px;color:var(--warm);line-height:1.8;margin:7px 0 0}.tag-picker-message:empty{display:none}
.available-tags{display:flex;flex-direction:column;gap:3px;margin-top:9px;max-height:220px;overflow:auto;scrollbar-width:thin}.available-tag{display:flex;align-items:center;gap:5px;font-size:10px;text-align:left;border:1px solid transparent;background:transparent;color:var(--text-soft);border-radius:6px;padding:6px 7px;line-height:1.8}.available-tag>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.available-tag>small{font-size:8px;margin-left:auto;color:var(--text-faint)}.available-tag .icon{width:11px;height:11px}.available-tag:hover{background:var(--bg-soft)}.available-tag[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.tag-picker-empty{font-size:10px;color:var(--text-faint);line-height:1.9;margin:5px 0}
/* 回收站是一处可搜索、可预览的完整页面。 */
.trash-wrap{max-width:1120px;padding-top:5px;padding-bottom:70px}.trash-page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:10px 0 30px}.trash-head-icon{display:grid;place-items:center;width:90px;height:90px;border-radius:28px;background:color-mix(in srgb,var(--accent) 6%,var(--bg-soft));color:var(--accent);margin-top:34px}.trash-head-icon .icon{width:35px;height:35px;stroke-width:1.1;opacity:.75;transform:rotate(-7deg)}
.trash-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 21px;border:1px solid var(--line);border-radius:12px;background:var(--bg-soft);margin-bottom:24px;font-size:11px;color:var(--text-soft)}.trash-summary>div{display:flex;align-items:center;gap:8px}.trash-summary .icon{width:16px;height:16px;color:var(--accent)}.trash-summary>span{font:11px var(--font-mono);white-space:nowrap;color:var(--accent)}
.trash-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.trash-toolbar .searchbox{max-width:440px}.trash-toolbar .searchbox input{font-size:12px}.trash-toolbar select{width:126px;font-size:11px;min-height:40px;padding:8px 11px;margin:0;border-radius:9px}
.trash-feedback{font-size:10px;color:var(--text-faint);line-height:1.9;margin-bottom:17px;border-radius:7px}.trash-feedback a{display:inline-flex;align-items:center;gap:5px;margin-left:10px;color:var(--accent)}.trash-feedback .icon{width:12px;height:12px}
.trash-items{display:flex;flex-direction:column;gap:14px}.trash-item{padding:23px 25px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.trash-item-top{display:flex;align-items:center;gap:14px}.trash-type-icon{display:grid;place-items:center;width:39px;height:43px;background:var(--bg-soft);border-radius:10px;color:var(--accent);flex:none}.trash-type-icon .icon{width:19px;height:19px}.trash-item-title{min-width:0;flex:1}.trash-item h2{font-size:15px;font-weight:550;margin:0 0 6px;line-height:1.8}.trash-item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;color:var(--text-faint);font-size:9px}.trash-restore{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:8px 12px;white-space:nowrap;color:var(--accent)}.trash-restore .icon{width:14px;height:14px}.trash-item-tags{display:flex;gap:6px;flex-wrap:wrap;padding:14px 0 13px;margin-left:53px}.trash-item-tags:empty{padding-top:0}.trash-preview{border-top:1px solid var(--line);margin-top:4px}.trash-preview summary{list-style:none;cursor:pointer;font-size:10px;color:var(--text-faint);padding:11px 0;display:flex;align-items:center;gap:5px;width:fit-content}.trash-preview summary::-webkit-details-marker{display:none}.trash-preview summary .icon{width:11px;height:11px;transition:transform var(--fast)}.trash-preview[open] summary .icon{transform:rotate(90deg)}.trash-preview-body{background:var(--bg);padding:22px;border-radius:8px;font-size:14px;line-height:1.95;max-height:580px;overflow:auto;margin:4px 0 12px}.trash-empty{padding:60px 25px;text-align:center;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius)}.trash-empty>span{display:grid;place-items:center;margin:0 auto 22px;width:70px;height:70px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}.trash-empty>span .icon{width:31px;height:31px;stroke-width:1.2}.trash-empty h2{font-family:var(--font-serif);font-size:25px;font-weight:500;margin-bottom:14px}.trash-empty p{font-size:12px;color:var(--text-faint);line-height:1.9;margin-bottom:25px}.trash-empty .primary{font-size:11px;padding:8px 15px;min-height:38px}.trash-empty .primary .icon{width:14px;height:14px}
/* 分篇和附件的阅读体验。 */
.record-attachments{border-top:1px solid var(--line);margin-top:32px;padding-top:22px}.record-attachments>h2{font-size:13px;display:flex;align-items:center;gap:7px;font-weight:550;margin:0 0 16px}.record-attachments>h2 .icon{width:15px;height:15px;color:var(--accent)}.record-attachments>h2 span{font:10px var(--font-mono);color:var(--text-faint);margin-left:4px}.record-attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-attachment{border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0;background:var(--surface)}.record-attachment>img{display:block;width:100%;height:180px;object-fit:contain;background:var(--bg-soft);cursor:zoom-in}.record-attachment>video{display:block;width:100%;max-height:380px;background:#151c18}.record-attachment--video{grid-column:1 / -1}.record-attachment>audio{width:calc(100% - 20px);display:block;margin:14px 10px 0;height:36px}.record-attachment--audio{grid-column:1 / -1}.record-attachment-label{display:flex;align-items:center;gap:9px;padding:12px;min-width:0}.record-attachment-label>.icon{width:18px;height:18px;color:var(--accent)}.record-attachment-label>span{flex:1;min-width:0}.record-attachment-label b{display:block;font-size:11px;font-weight:450;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.9}.record-attachment-label small{display:block;font-size:9px;color:var(--text-faint)}/* 图片附件只留图片和下面一行说明，不再往外套一层卡片边框 */.record-attachment--image{border:0;border-radius:0;background:none;overflow:visible}.record-attachment--image .record-attachment-label{padding:10px 0 0}.record-attachment--image .attachment-image-open img{border-radius:10px}.attachment-download{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:6px;color:var(--text-faint)}.attachment-download:hover{background:var(--accent-soft);color:var(--accent)}.attachment-download .icon{width:14px;height:14px}
.series-reader{margin-top:26px;padding:17px 18px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--accent-soft) 35%,var(--surface));font-size:11px}.series-reader-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--accent)}.series-reader-heading>.icon{width:15px;height:15px}.series-reader-heading>a{display:inline-flex;align-items:center;gap:5px;margin-left:auto;font:9px var(--font-mono);color:var(--text-faint)}.series-reader-heading>a .icon{width:11px;height:11px}.series-reader nav{display:flex;justify-content:space-between;gap:14px;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}.series-reader nav>a{display:flex;align-items:center;gap:5px;max-width:48%;font-size:10px;color:var(--accent)}.series-reader nav>a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);max-width:140px;font-size:10px}.series-reader nav .icon{width:12px;height:12px}.series-end{font-size:9px;color:var(--text-faint)}.series-wrap{max-width:1050px;padding-top:18px;padding-bottom:70px}.series-wrap>.page-heading{padding-top:25px}.series-overview-code{display:flex;align-items:center;gap:9px;padding:17px 20px;background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;margin-bottom:25px}.series-overview-code>.icon{width:17px;height:17px;color:var(--accent)}.series-overview-code code{font:12px var(--font-mono);color:var(--accent)}.series-overview-code>span{font-size:10px;color:var(--text-faint)}.series-overview-code>.primary{margin-left:auto;font-size:11px;padding:6px 12px;min-height:34px}.series-overview-code .primary .icon{width:13px;height:13px}.series-parts{display:flex;flex-direction:column;gap:13px}.series-part-card{display:flex;align-items:center;gap:22px;border:1px solid var(--line);border-radius:var(--radius);padding:24px 27px;background:var(--surface)}.series-part-card:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));transform:translateY(-2px);box-shadow:var(--shadow)}.series-part-number{font:30px Georgia,serif;color:var(--accent);opacity:.45;min-width:35px}.series-part-card>span:nth-child(2){flex:1;min-width:0}.series-part-card small{display:block;font-size:9px;color:var(--text-faint);margin-bottom:7px}.series-part-card b{display:block;font-family:var(--font-serif);font-size:19px;font-weight:500;margin-bottom:8px}.series-part-card p{font-size:11px;color:var(--text-soft);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.series-part-card>.icon{width:16px;height:16px;color:var(--accent)}
@media(max-width:1250px){.writer-layout{grid-template-columns:minmax(0,1fr) 244px;gap:17px}.writer-card{padding:17px}.writer-desk-top{padding:18px 21px 8px;flex-wrap:wrap}.draft-status{max-width:none}.writer-title-row{padding-left:25px;padding-right:25px}.writer-body,.writer-preview{padding-left:25px;padding-right:25px}.writer-bottom{flex-wrap:wrap}.writer-bottom>span{flex-basis:100%}.writer-bottom>div{margin-left:auto}.writer-head-actions .editor__btn{font-size:0;gap:0}.writer-head-actions .editor__btn .icon{width:16px;height:16px}}
@media(max-width:1050px){.writer-layout{grid-template-columns:minmax(0,1fr)}.writer-aside{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.writer-help{grid-column:1 / -1}.writer-head-actions .editor__btn{font-size:11px;gap:7px}.writer-desk-top{flex-wrap:nowrap}.writer-bottom{flex-wrap:nowrap}.writer-bottom>span{flex-basis:auto}.writer-card{padding:21px}.writer-body{min-height:470px}}
@media(max-width:760px){.writer-wrap{padding-bottom:30px}.writer-page-head{align-items:flex-start;padding-top:2px;gap:12px;flex-wrap:wrap}.writer-page-head .back,.trash-page-head .back{margin-bottom:15px}.writer-page-head .section-eyebrow{font-size:7px}.writer-page-head h1,.trash-page-head h1{font-size:30px}.writer-intro{font-size:12px}.writer-head-actions{padding-top:0;width:100%;justify-content:flex-end;margin-top:3px}.writer-head-actions .editor__btn{margin-right:auto}.writer-notice{font-size:11px;margin-bottom:18px}.writer-title{font-size:27px}.writer-body{font-size:16px;min-height:430px}.writer-aside{gap:14px}.writer-card h2{font-size:13px}.writer-card-desc,.writer-label{font-size:11px}.writer-card .field__input,.tag-create-input input{font-size:16px;min-height:41px}.tag-picker-tabs button{font-size:11px}.selected-tags .tagchip,.available-tag{font-size:11px}.writer-help summary{font-size:12px}.writer-help ul,.writer-help p{font-size:11px}.is-writing-focus .writer-body,.is-writing-focus .writer-preview{padding:26px;font-size:16px}.is-writing-focus .writer-title-row{padding:25px 26px}.is-writing-focus .writer-tools{padding-left:20px;padding-right:20px}.trash-wrap{padding-bottom:35px}.trash-head-icon{width:65px;height:65px;border-radius:20px;margin-top:15px}.trash-head-icon .icon{width:27px;height:27px}.trash-summary{font-size:11px;padding:15px}.trash-item{padding:19px 20px 10px}.trash-item h2{font-size:15px}.trash-item-meta{font-size:10px}.trash-restore{font-size:11px}.trash-preview summary{font-size:11px}.trash-feedback{font-size:11px}.trash-toolbar .searchbox input,.trash-toolbar select{font-size:12px}.series-reader-heading{gap:8px}.series-reader-heading>a{margin-left:0;flex-basis:100%;padding-left:22px}.series-overview-code{gap:7px;flex-wrap:wrap}.series-overview-code>span{font-size:9px}.series-overview-code code{font-size:11px}.series-part-card{padding:21px;gap:17px}.series-part-card b{font-size:18px}}
@media(max-width:520px){.writer-wrap{--gutter:16px}.writer-page-head .section-eyebrow{font-size:6px;letter-spacing:.12em}.writer-page-head h1{font-size:29px}.writer-notice{padding:12px 14px}.writer-layout{gap:15px}.writer-desk-top{padding:16px 17px 8px;gap:7px;flex-wrap:wrap}.writer-types .seg__btn{padding:5px 9px;font-size:11px}.draft-status{font-size:9px}.writer-title-row{padding:19px 20px 21px}.writer-title{font-size:25px}.writer-tools{padding:8px 12px;gap:5px}.writer-format{gap:1px}.toolbtn{width:27px;height:29px}.tool-divider{margin:0 3px}.writer-views{gap:0}.writer-views button{font-size:10px;padding:4px 6px}.writer-body,.writer-preview{padding:24px 20px;min-height:400px;font-size:16px;line-height:2}.writer-countbar{padding:12px 19px;gap:7px}.writer-countbar>span{font-size:9px}.writer-count-info{gap:10px}.word-count{font-size:12px}.word-count small{font-size:9px}.writer-count-info .textbtn{font-size:9px}.word-meter{margin:0 19px}.writer-word-help{margin:8px 19px 20px;font-size:9px}.writer-attachments{padding:20px 18px}.attachment-heading h2{font-size:12px}.attachment-drop p{font-size:11px}.attachment-drop small{font-size:9px}.attachment-row{padding:10px 8px;gap:8px}.attachment-row-label b{font-size:11px}.attachment-row-label small{font-size:9px}.writer-bottom{padding:16px 18px;gap:11px;flex-wrap:wrap}.writer-bottom>span{flex-basis:100%}.writer-bottom>div{width:100%;justify-content:space-between}.writer-bottom .primary{flex:1;justify-content:center;font-size:12px}.writer-bottom .editor__btn{font-size:11px;padding:9px 11px}.writer-aside{grid-template-columns:1fr;gap:14px}.writer-card{padding:21px}.writer-card-desc{font-size:11px}.selected-tags{margin-bottom:14px}.selected-tags-empty{font-size:11px}.selected-tags .tagchip{font-size:12px}.tag-picker-tabs button{font-size:12px;padding:8px 3px}.tag-create>small{font-size:10px}.tag-picker-message{font-size:11px}.available-tag{font-size:12px;padding:9px}.available-tag>small{font-size:10px}.series-code-row code{font-size:13px}.series-hint{font-size:11px}.writer-series .textbtn{font-size:11px}.part-tabs{padding-left:17px;padding-right:17px}.part-tab{font-size:11px;padding:7px 10px}.part-add{font-size:10px}.is-writing-focus .writer-body,.is-writing-focus .writer-preview{padding:24px 20px}.is-writing-focus .writer-title-row{padding:22px 20px}.is-writing-focus .writer-tools{padding:8px 12px}.trash-page-head{gap:10px}.trash-page-head .section-eyebrow{font-size:5px;letter-spacing:.08em}.trash-head-icon{width:54px;height:58px;border-radius:18px}.trash-summary{font-size:10px;padding:14px 12px;gap:7px}.trash-summary .icon{width:14px;height:14px}.trash-summary>span{font-size:10px}.trash-toolbar{gap:8px}.trash-toolbar select{width:104px;padding:8px}.trash-item{padding:18px 17px 8px}.trash-item-top{gap:10px;flex-wrap:wrap}.trash-type-icon{width:31px;height:36px;border-radius:8px}.trash-type-icon .icon{width:16px;height:16px}.trash-item h2{font-size:14px}.trash-item-meta{gap:4px 9px;font-size:9px}.trash-restore{margin-left:41px;font-size:11px;padding:6px 10px}.trash-item-tags{margin-left:41px;padding-top:12px}.trash-preview-body{padding:15px;font-size:14px}.trash-empty{padding:43px 20px}.trash-empty h2{font-size:23px}.trash-empty p{font-size:12px}.record-attachment-grid{grid-template-columns:1fr}.record-attachment>img{height:auto;max-height:400px}.series-reader{padding:15px 13px}.series-reader nav{gap:10px}.series-reader nav>a{flex-wrap:wrap;max-width:50%}.series-reader nav>a>span{max-width:110px;flex-basis:100%;font-size:10px}.series-overview-code>.primary{margin-left:0;flex-basis:100%;justify-content:center;margin-top:5px}.series-part-card{padding:20px 17px;gap:13px}.series-part-number{font-size:26px;min-width:30px}.series-part-card b{font-size:17px}.series-part-card small{font-size:9px}.series-part-card p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.word-meter span,.attachment-progress>span,.trash-preview summary .icon{transition:none}.series-part-card:hover{transform:none}}

.has-writer .access-pill{display:none}.writer-live-count{font:11px var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-faint);white-space:nowrap}.writer-live-count.is-over{color:var(--danger)}.writer-live-split{font-size:10px;padding:3px 5px}.has-writer .breadcrumb{flex:1}.has-writer .top__actions{flex:none;gap:7px}
@media(max-width:520px){.writer-live-count{font-size:10px}.has-writer .top__inner{gap:9px}.has-writer .breadcrumb{font-size:10px;gap:6px}.has-writer .breadcrumb>span{display:none}.has-writer .breadcrumb>.icon{display:none}.has-writer .top__actions{gap:4px}.writer-live-split{font-size:10px}}
