/* Desktop shell details. Content generation never writes this stylesheet. */
.desktop .wallpaper {background:#eef0e8}
.desktop .wallpaper img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom}
[data-theme="dark"] .desktop .wallpaper {background:#262e32}
[data-theme="dark"] .desktop .wallpaper img {opacity:.65}
.desktop .desktop-top {height:56px;padding:0 20px;gap:16px;border-radius:0}
.desktop .desktop-tools {display:flex;align-items:center;gap:8px}
.desktop .desktop-window-menu>summary,.desktop .desktop-tools>.theme-button,.desktop .desktop-tools>.sound-button {box-sizing:border-box;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;margin:0;border:1px solid var(--desk-border);border-radius:7px;background:var(--desk-pane);display:flex;align-items:center;justify-content:center;gap:0;color:var(--desk-ink);cursor:pointer;position:relative;transition:background .15s,box-shadow .15s}
.desktop .desktop-tools>button svg,.desktop .desktop-window-menu>summary>svg {width:16px;height:16px;display:block;flex:none;margin:0;padding:0}
.desktop .desktop-window-menu>summary>span:first-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.desktop .desktop-window-menu>summary>[data-window-count] {position:absolute;right:-3px;top:-4px;min-width:12px;height:12px;font:9px/12px 'Microsoft YaHei',sans-serif;background:var(--desk-ink);color:var(--desk-pane);border-radius:7px;text-align:center;padding:0 2px}
.desktop .desktop-tools>button:hover,.desktop .desktop-window-menu>summary:hover {background:var(--desk-bar);box-shadow:0 2px 5px #00000012}
.desktop .desktop-tools>.sound-button[aria-pressed="true"] {background:var(--desk-ink);color:var(--desk-pane)}
.desktop .desk-clock {display:flex;align-items:center;gap:8px;margin:0;padding-left:12px;font-variant-numeric:tabular-nums}
.desktop .desk-clock .clock-date,.desktop .desk-clock .clock-time,.desktop .desk-clock .clock-week {font:500 13px/1.2 'Microsoft YaHei',sans-serif;letter-spacing:0;color:var(--desk-ink)}
.desktop .window-bar h2 {font:500 12px/1.4 'Microsoft YaHei',sans-serif}
.desktop .window-bar [data-minimize],.desktop .window-bar [data-maximize],.desktop .window-bar [data-close] {width:28px;height:28px;min-width:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit}
.desktop .window-bar [data-minimize] svg,.desktop .window-bar [data-maximize] svg,.desktop .window-bar [data-close] svg {width:17px;height:17px;display:block}
.desktop .window-bar [data-minimize]:hover,.desktop .window-bar [data-maximize]:hover {background:#80808020}
.desktop .window-bar [data-close]:hover {background:#b94943;color:white}
.desktop .desk-window.minimized {display:none!important}
.desktop #window-latest .explorer-file,.desktop #window-book .explorer-file {margin:0 22px}
.desktop .feedback-box {margin-top:28px}
.desktop .desktop-icons {user-select:none}
.desktop .desk-reader-size button {white-space:nowrap;min-width:28px;padding:0 3px;display:flex;align-items:center;justify-content:center}
.desktop .inline-reading>.window-bar>h2,.desktop .inline-reading>.window-bar>.explorer-toolbar,
.desktop .inline-reading .explorer-search,.desktop .inline-reading .explorer-search-toggle {display:none!important}
.desktop .inline-path {display:none;min-width:0;flex:1;align-items:center;gap:5px;overflow:hidden}
.desktop .inline-reading .inline-path {display:flex}
.desktop .inline-path button {width:auto;height:28px;min-width:0;flex:none;padding:0 5px;white-space:nowrap;background:transparent;border-color:transparent;font:12px 'Microsoft YaHei',sans-serif}
.desktop .inline-path button:hover {background:#80808018}
.desktop .inline-path button:first-child {width:28px;padding:0;font-size:16px}
.desktop .inline-separator {font-size:11px;opacity:.45;flex:none}
.desktop .inline-current {font:12px 'Microsoft YaHei',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:24px}
.desktop .inline-actions {display:flex;gap:3px;align-items:center}
.desktop .inline-actions:empty {display:none}
.desktop .inline-actions button {width:28px;min-width:28px;height:28px;padding:0;white-space:nowrap;font:12px 'Microsoft YaHei',sans-serif;display:flex;align-items:center;justify-content:center}
.desktop .inline-base[hidden] {display:none}
.desktop .inline-reading .desk-reader-page {padding:28px clamp(18px,4%,40px)}
.desktop .inline-book-list .explorer-file {margin:0 22px}
/* One navigation rhythm in both folder and reading views. */
.desktop .window-bar {gap:8px;padding:5px 8px;min-height:40px}
.desktop .window-bar .explorer-toolbar {flex:1;max-width:none;height:28px;gap:5px}
.desktop .window-bar .explorer-back,.desktop .inline-path button:first-child {box-sizing:border-box;width:28px;height:28px;min-width:28px;padding:0;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;box-shadow:none;display:flex;align-items:center;justify-content:center;font:16px/1 'Microsoft YaHei',sans-serif}
.desktop .window-bar .explorer-path {gap:5px;min-width:0;font:12px/1.4 'Microsoft YaHei',sans-serif}
.desktop .window-bar .explorer-path button,.desktop .inline-path button:not(:first-child) {box-sizing:border-box;height:28px;padding:0 5px;border:1px solid transparent;border-radius:5px;box-shadow:none;font:400 12px/1.4 'Microsoft YaHei',sans-serif;color:inherit;background:transparent;display:inline-flex;align-items:center}
.desktop .window-bar .explorer-path button:hover,.desktop .inline-path button:hover,.desktop .window-bar .explorer-back:not(:disabled):hover {background:#80808018;text-decoration:none}
.desktop .window-bar .explorer-current {font:400 12px/1.4 'Microsoft YaHei',sans-serif;opacity:1}
.desktop .window-bar>.window-controls,.desktop .window-bar>.reader-bar-actions,.desktop .window-bar>div:not(.explorer-toolbar) {display:flex;align-items:center;gap:4px;flex-shrink:0}
.desktop .window-bar .inline-actions,.desktop .window-bar .desk-reader-size {display:flex;align-items:center;gap:4px}
.desktop .window-bar .inline-actions:empty {display:none}
.desktop .window-bar button:is([data-minimize],[data-maximize],[data-close],.explorer-search-toggle,[data-reader-smaller],[data-reader-larger]),.desktop .window-bar .inline-actions button {
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;max-width:28px;padding:0;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;box-shadow:none;color:var(--desk-ink);font:400 12px/1 'Microsoft YaHei',sans-serif;white-space:nowrap;transform:none;
}
.desktop .window-bar button:is([data-minimize],[data-maximize],[data-close],.explorer-search-toggle) svg {width:16px;height:16px;display:block;margin:0;flex:none;pointer-events:none}
.desktop .window-bar button:is([data-minimize],[data-maximize],.explorer-search-toggle,[data-reader-smaller],[data-reader-larger]):hover,.desktop .window-bar .inline-actions button:hover {background:#80808018;border-color:transparent}
.desktop .window-bar button[data-close]:hover {background:#b94943;border-color:transparent;color:white}
.desktop .window-bar button:is([data-minimize],[data-maximize],[data-close],.explorer-search-toggle):active,.desktop .window-bar .inline-actions button:active {transform:none;background:#80808030}
.desktop .inline-reading {container-type:inline-size}
@container (max-width:600px) {
 .desktop .inline-view .desk-reader-columns {grid-template-columns:minmax(0,1fr)}
 .desktop .inline-view .desk-reader-side {display:none}
}
@container (max-width:520px) {
 .desktop .inline-path .inline-current,.desktop .inline-path .inline-separator {display:none}
 .desktop .inline-path button:not(:first-child) {display:none}
 .desktop .inline-path button:last-of-type:not(:first-child) {display:block;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;max-width:calc(100% - 24px);text-align:left}
}
@media(min-width:761px){
 .desktop #window-about:not(.user-sized):not(.maximized) {left:155px;top:38px;width:min(620px,calc(100% - 180px));height:min(420px,calc(100% - 60px))}
 .desktop #window-latest:not(.user-sized):not(.maximized) {left:auto;right:35px;top:110px;width:min(490px,calc(100% - 210px));height:min(520px,calc(100% - 140px))}
}
@media(max-width:760px){
 .desktop .desktop-top {padding:0 10px;gap:8px}
 .desktop .desktop-brand small {display:none}
 .desktop .desktop-brand .icon {width:25px;height:25px}
 .desktop .desktop-tools {gap:6px}
 .desktop .desktop-window-menu>summary,.desktop .desktop-tools>.theme-button,.desktop .desktop-tools>.sound-button {width:28px;height:28px;min-width:28px;min-height:28px;border-radius:6px}
 .desktop .desk-clock {padding-left:4px;gap:5px}
 .desktop .desk-clock .clock-date,.desktop .desk-clock .clock-time {font-size:11px}
 .desktop .desk-clock .clock-week {display:none}
 .desktop .desktop-icons {grid-template-columns:repeat(5,minmax(0,1fr))}
 .desktop .window-bar button[data-maximize] {display:none}
}

.desktop .window-bar .explorer-current:not(:empty)::before {content:"/";margin-right:10px;opacity:.45;font-size:11px}

/* Window tabs stay visible; their symbols come from the desktop shortcuts. */
.desktop .desktop-top>.desktop-window-strip {display:flex!important;flex:1;min-width:0;max-width:none;height:36px;gap:6px;overflow-x:auto}
.desktop .desktop-window-strip button {display:flex;align-items:center;justify-content:flex-start;gap:6px;width:auto;max-width:170px;height:30px;padding:0 9px;flex:none;font:12px/1 'Microsoft YaHei',sans-serif}
.desktop .desktop-window-strip button .icon {width:21px;height:21px;flex:none;display:block}
.desktop .desktop-window-strip .task-label {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop .desktop-window-strip button:hover {transform:none}
.desktop .desktop-window-strip button.task-minimized {opacity:.65;border-style:dashed}
.desktop .desktop-tools {flex:none}
.desktop .window-bar>.window-kind-icon {order:-1;width:22px;height:22px;display:block;flex:0 0 22px;margin:0}
.desktop .window-bar>h2:not(.visually-hidden) {flex:1;min-width:0;margin:0;text-align:left}
.desktop .desktop-top {height:52px;margin:0;padding:0 14px;border:0;border-bottom:1px solid var(--desk-border);border-radius:0 0 10px 10px;box-shadow:none}
.desktop .desktop-top>.desktop-window-strip::before {content:'';margin-left:auto}
.desktop .desktop-tools>.global-search-button,.desktop .desktop-tools>.theme-button,.desktop .desktop-tools>.sound-button {width:30px;height:30px;min-width:30px;min-height:30px;border-radius:7px;border:1px solid transparent;background:transparent;display:flex;align-items:center;justify-content:center;padding:0;box-shadow:none}
.desktop .desktop-tools>button:hover {background:var(--desk-bar);border-color:#80808030;box-shadow:none}
.desktop .desktop-tools>button svg {width:18px;height:18px}
.desktop .desktop-tools>.sound-button[aria-pressed="true"] {background:var(--desk-bar);color:var(--desk-ink);border-color:var(--desk-border)}
.desktop .window-bar .explorer-current:not(:empty)::before {content:none}
.desktop .window-bar .folder-separator,.desktop .inline-separator {font:11px/1.4 'Microsoft YaHei',sans-serif;opacity:.45;flex:none}
.desktop .window-bar .explorer-path button.explorer-current {opacity:1;flex:none;line-height:1.4}
.desktop .window-bar .explorer-path [hidden] {display:none!important}
.desktop .desk-window {container-type:inline-size}
.desktop .about-contacts {padding-top:0}
.desktop .about-contacts h3 {margin:0 0 14px}
.desktop .global-search-panel {padding:24px}
.desktop .global-search-panel>label {display:block;font-size:20px;font-weight:600;margin-bottom:16px}
.desktop .global-query-row {display:flex;align-items:center;gap:8px;border:1px solid var(--desk-border);border-radius:8px;padding:4px 8px;background:var(--desk-pane)}
.desktop .global-query-row:focus-within {outline:2px solid var(--desk-border);outline-offset:2px}
.desktop .global-query-row input {width:100%;min-width:0;padding:8px 4px;border:0;background:transparent;color:inherit;font:15px/1.5 'Microsoft YaHei',sans-serif;outline:0;box-shadow:none}
.desktop .global-query-row input::-webkit-search-cancel-button {display:none}
.desktop .inline-reading.search-open .window-controls {flex:none;margin-left:auto}
.desktop .global-query-row button {width:28px;height:28px;flex:none;border:0;border-radius:5px;background:transparent;font-size:20px;color:inherit}
.desktop .global-search-status {margin:14px 0;font-size:12px;opacity:.7}
.desktop .global-result {display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #80808030;text-decoration:none;color:inherit}
.desktop .global-result>.icon {width:36px;height:36px;flex:none;margin-top:5px}
.desktop .global-result>span {min-width:0;display:flex;flex-direction:column;gap:6px}
.desktop .search-location {font-size:11px;opacity:.65}
.desktop .global-result strong {font-size:16px;line-height:1.6}
.desktop .search-excerpt {font-size:13px;line-height:1.8;opacity:.8}
.desktop .global-result:hover strong {text-decoration:underline;text-underline-offset:4px}
.desktop .search-empty {padding:30px 0;font-size:14px}
@container (max-width:520px) {
 .desktop .explorer-path:has(.explorer-current:not([hidden]))>button:first-child,.desktop .explorer-path .folder-separator {display:none}
 .desktop .window-bar .explorer-path button.explorer-current {overflow:hidden;text-overflow:ellipsis;display:block;flex:1;text-align:left}
}
@media(min-width:761px) {
 body.desktop {grid-template-rows:52px minmax(0,1fr)}
 .desktop #window-search:not(.user-sized):not(.maximized) {left:clamp(155px,18vw,260px);top:30px;width:min(740px,calc(100% - 185px));height:calc(100% - 60px)}
}
@media(max-width:760px) {
 .desktop .desktop-top {height:84px;flex-wrap:wrap;gap:0 6px;align-content:center;margin:0;padding:0 8px;border-radius:0 0 10px 10px}
 .desktop .desktop-top>.desktop-window-strip {order:3;flex:0 0 100%;height:36px;max-width:100%}
 .desktop .desktop-top>.desktop-tools {margin-left:auto}
 .desktop .desktop-window-strip button {height:28px;font-size:11px}
 .desktop .window-bar>.window-kind-icon {width:19px;height:19px;flex-basis:19px}
 .desktop .desktop-tools {gap:3px}
 .desktop .desktop-tools>.global-search-button,.desktop .desktop-tools>.theme-button,.desktop .desktop-tools>.sound-button {width:28px;height:28px;min-width:28px;min-height:28px}
 .desktop .desktop-space {min-height:calc(100svh - 84px)}
 .desktop .global-search-panel {padding:20px 16px}
}
/* Calm content previews and a leading back control, separate from the path. */
.desktop .window-bar {position:relative}
.desktop .window-bar:has(.explorer-toolbar)>.window-kind-icon,.desktop .inline-reading .window-bar>.window-kind-icon {margin-left:32px}
.desktop .window-bar .explorer-back,.desktop .inline-path button:first-child {position:absolute;left:8px;top:50%;transform:translateY(-50%);width:26px;height:26px;min-width:26px;border-radius:5px}
.desktop .window-bar .explorer-back svg,.desktop .inline-path button:first-child svg {display:block;width:17px;height:17px;margin:0}
.desktop .explorer-file {display:flex;align-items:center;gap:16px;padding:18px 0}
.desktop .explorer-file .entry-copy {display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.desktop .explorer-file time {flex:none;align-self:flex-start;margin-top:5px}
.desktop .content-thumbnail {width:112px;height:76px;flex:0 0 112px;object-fit:cover;border:1px solid #52597230;border-radius:5px;display:block;margin:0;background:var(--desk-bar)}
.desktop .content-cover {box-sizing:border-box;width:112px;height:76px;flex:0 0 112px;display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px;border:1px solid #52597230;border-radius:4px;color:#414850;overflow:hidden}
.desktop .cover-vault {background:#d7e1d8}
.desktop .cover-book {background:#e8ddc8;border-left:6px solid #a89779}
.desktop .content-cover small {font:7px/1.2 'Microsoft YaHei',sans-serif;letter-spacing:.04em;opacity:.7}
.desktop .content-cover b {font:600 15px/1.4 'Microsoft YaHei',sans-serif}
.desktop .content-cover i {font:6px/1 'Microsoft YaHei',sans-serif;letter-spacing:.15em;opacity:.5}
.desktop .chapter-number {width:34px;flex:0 0 34px;font:16px/1.4 Georgia,serif;opacity:.55;text-align:center}
.desktop .global-result>.content-cover {display:flex}
.desktop .global-result>.content-cover,.desktop .global-result>.content-thumbnail {margin-top:5px}
.desktop .global-result>span:not(.content-cover):not(.chapter-number) {flex:1}
@media(min-width:761px) {
 .desktop .desk-window.maximized {top:3px!important;height:calc(100% - 13px)!important}
 .desktop .windows {padding-top:0}
}
@media(max-width:760px) {
 .desktop .desktop-icons {grid-template-columns:repeat(6,minmax(0,1fr))}
 .desktop .desktop-icon .icon {width:39px;height:39px}
 .desktop .content-thumbnail,.desktop .content-cover {width:84px;flex-basis:84px;height:64px}
 .desktop .content-cover {padding:8px}
 .desktop .content-cover b {font-size:12px}
 .desktop .explorer-file {gap:12px;flex-wrap:wrap}
 .desktop .explorer-file time {display:none}
 .desktop .global-result {flex-wrap:wrap}
}
@media(min-width:761px) {
 .desktop .desktop-icons {max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:24px;scrollbar-width:thin}
}

.desktop #window-latest.search-open:not(.inline-reading) .window-bar>h2 {display:none}
.desktop .latest-search-status {padding:16px 22px;font-size:12px;opacity:.75}

.desktop #latest-query::-webkit-search-cancel-button {display:none}
.desktop .desk-window>.window-status {flex:none;position:relative;margin:0;padding:7px 20px;border-top:1px solid var(--desk-shadow);background:var(--desk-pane);font:11px/1.5 'Microsoft YaHei',sans-serif;color:var(--desk-ink);opacity:1;min-height:30px;box-sizing:border-box}
.desktop .inline-reading>.window-status {display:none}
.desktop .desk-window:has(>.window-status)>.window-content {flex:1;min-height:0}
/* Search clear/close glyphs have the same geometric centre on every platform. */
.desktop .window-bar .explorer-search-close,.desktop .global-query-row [data-clear-search] {box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;min-width:26px;min-height:26px;padding:0;margin:0;line-height:1;border:0;border-radius:5px;background:transparent;color:var(--desk-ink)}
.desktop .window-bar .explorer-search-close svg,.desktop .global-query-row [data-clear-search] svg {display:block;flex:none;width:16px;height:16px;margin:0;padding:0;pointer-events:none}
.desktop input[type=search]::-webkit-search-cancel-button {display:none}
.desktop .window-bar .explorer-search-close:hover,.desktop .global-query-row [data-clear-search]:hover {background:var(--desk-bar)}
.desktop #window-search .window-bar>.window-kind-icon {margin-left:32px}
.desktop .window-bar .search-root-back {position:absolute;left:8px;top:50%;transform:translateY(-50%);box-sizing:border-box;width:26px;height:26px;min-width:26px;min-height:26px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--desk-ink);opacity:.38;cursor:default}
.desktop .window-bar .search-root-back svg {width:17px;height:17px;display:block;margin:0}
.desktop .inline-reading .search-root-back {display:none}
.desktop .folder-result {width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--desk-shadow);border-radius:0;font:inherit;cursor:pointer}
.desktop .folder-result>.icon {width:44px;height:44px;flex:none}
.desktop .desktop-icon>span,.desktop .desktop-icon[aria-expanded=true]>span {background:transparent}
.desktop .desktop-window-strip button[aria-pressed=true] {background:#e3e9e4;color:var(--desk-ink);border-color:#9aa99e;font-weight:500;box-shadow:none}
[data-theme=dark] .desktop .desktop-window-strip button[aria-pressed=true] {background:#414e4a;border-color:#83958a;color:var(--desk-ink)}
/* Breadcrumb links stay recognisable; roots have no back action. */
.desktop .window-bar .explorer-back:disabled,.desktop .window-bar .search-root-back {display:none}
.desktop .window-bar:has(.explorer-back:disabled)>.window-kind-icon,.desktop #window-search:not(.inline-reading) .window-bar>.window-kind-icon {margin-left:0}
.desktop .inline-reading .window-bar>.window-kind-icon {margin-left:32px}
.desktop .window-bar .explorer-path button,.desktop .window-bar .inline-path button:not(:first-child) {color:#30475b;font-weight:500;text-decoration:underline;text-decoration-color:#718697;text-underline-offset:3px;text-decoration-thickness:1px}
.desktop .window-bar .explorer-path button:hover,.desktop .window-bar .inline-path button:not(:first-child):hover {color:#1f3549;text-decoration-color:currentColor;background:#80808018}
[data-theme=dark] .desktop .window-bar .explorer-path button,[data-theme=dark] .desktop .window-bar .inline-path button:not(:first-child) {color:#d2e0ed;text-decoration-color:#98afc2}
[data-theme=dark] .desktop .window-bar .explorer-path button:hover,[data-theme=dark] .desktop .window-bar .inline-path button:not(:first-child):hover {color:#f1f6fa;text-decoration-color:currentColor}

/* Consistent reading hierarchy across recent items, folders and search. */
.desktop .explorer-file {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 18px;padding:18px 0}
.desktop .explorer-file:has(>.content-thumbnail),.desktop .explorer-file:has(>.content-cover) {grid-template-columns:112px minmax(0,1fr) auto}
.desktop .explorer-file:has(>.chapter-number) {grid-template-columns:34px minmax(0,1fr) auto}
.desktop .explorer-file .entry-copy {gap:7px}
.desktop .explorer-file .entry-copy>strong,.desktop .global-result strong {font-size:17px;font-weight:600;line-height:1.55;letter-spacing:0;color:var(--desk-ink);overflow-wrap:anywhere}
.desktop .explorer-file .entry-copy>small,.desktop .search-excerpt {font-size:14px;font-weight:400;line-height:1.7;color:var(--desk-ink);opacity:.78;overflow-wrap:anywhere}
.desktop .explorer-file time,.desktop .search-location {display:block;font-size:12px;line-height:1.6;font-weight:400;color:var(--desk-ink);opacity:.68;font-variant-numeric:tabular-nums;white-space:nowrap;margin:4px 0 0}
.desktop .search-location {white-space:normal;margin:0}
.desktop .desk-window>.window-status {min-height:34px;padding:8px 20px;font-size:12px;line-height:1.5;letter-spacing:.01em;color:color-mix(in srgb,var(--desk-ink) 78%,var(--desk-pane));border-top:1px solid color-mix(in srgb,var(--desk-ink) 16%,transparent);background:color-mix(in srgb,var(--desk-bar) 45%,var(--desk-pane));font-variant-numeric:tabular-nums}
.desktop .desk-reader-heading>.desk-reader-cover {display:block;width:100%;height:auto;max-height:440px;object-fit:cover;border-radius:6px;margin:22px 0 0}
@container (max-width:580px) {
 .desktop .explorer-file {grid-template-columns:minmax(0,1fr);column-gap:14px}
 .desktop .explorer-file:has(>.content-thumbnail),.desktop .explorer-file:has(>.content-cover) {grid-template-columns:84px minmax(0,1fr)}
 .desktop .explorer-file:has(>.chapter-number) {grid-template-columns:28px minmax(0,1fr)}
 .desktop .explorer-file>.content-thumbnail,.desktop .explorer-file>.content-cover {width:84px;height:64px;grid-row:1 / span 2}
 .desktop .explorer-file>.chapter-number {width:28px;grid-row:1 / span 2}
 .desktop .explorer-file time {grid-column:1;margin:0}
 .desktop .explorer-file:has(>.content-thumbnail) time,.desktop .explorer-file:has(>.content-cover) time,.desktop .explorer-file:has(>.chapter-number) time {grid-column:2}
 .desktop .desk-window>.window-status {padding-left:16px;padding-right:16px}
}

/* Article typography: one reading column and an optional compact outline. */
.desktop .inline-reading .desk-reader-page {box-sizing:border-box;width:100%;max-width:840px;padding:32px clamp(20px,5cqw,48px) 48px;font-family:"Microsoft YaHei","Microsoft YaHei UI","PingFang SC",sans-serif}
.desktop .inline-view .desk-reader-heading {max-width:none;padding-bottom:24px;border-bottom:1px solid color-mix(in srgb,var(--desk-ink) 15%,transparent)}
.desktop .inline-view .desk-reader-meta {display:block;font:12px/1.7 "Microsoft YaHei",sans-serif;letter-spacing:0;opacity:.65}
.desktop .inline-view .desk-reader-heading h1 {font-size:calc(var(--desk-reader-font) * 1.75);line-height:1.45;font-weight:600;letter-spacing:0;margin:14px 0 16px;overflow-wrap:anywhere}
.desktop .inline-view .desk-reader-summary {font-size:calc(var(--desk-reader-font) * .88);line-height:1.8;margin:0;opacity:.75}
.desktop .inline-view .desk-reader-summary:empty,.desktop .inline-view .desk-reader-next:empty,.desktop .desk-reader-tags {display:none}
.desktop .inline-view .desk-reader-columns {display:block;margin-top:26px}
.desktop .inline-view .desk-reader-prose {font-family:inherit;font-size:var(--desk-reader-font);line-height:1.9;letter-spacing:0;color:var(--desk-ink);text-align:left}
.desktop .inline-view .desk-reader-prose p {margin:0 0 1.05em;line-height:inherit;font-size:inherit}
.desktop .inline-view .desk-reader-prose :is(h2,h3,h4) {font-family:inherit;font-weight:600;letter-spacing:0;line-height:1.55;scroll-margin-top:24px;color:inherit}
.desktop .inline-view .desk-reader-prose h2 {font-size:1.28em;margin:1.9em 0 .8em;padding:0;border:0}
.desktop .inline-view .desk-reader-prose h3 {font-size:1.1em;margin:1.5em 0 .65em}
.desktop .inline-view .desk-reader-prose h4 {font-size:1em;margin:1.3em 0 .55em}
.desktop .inline-view .desk-reader-prose>:first-child {margin-top:0}
.desktop .inline-view .desk-reader-prose :is(ul,ol) {padding-left:1.5em;margin:0 0 1.1em;line-height:inherit}
.desktop .inline-view .desk-reader-prose li {margin:.35em 0;padding-left:.15em}
.desktop .inline-view .desk-reader-prose li>p {margin:.35em 0}
.desktop .inline-view .desk-reader-prose li>:is(ul,ol) {margin:.35em 0}
.desktop .inline-view .desk-reader-prose blockquote {margin:1.3em 0;padding:.75em 1em;border-left:3px solid #9aa99e;background:color-mix(in srgb,var(--desk-bar) 45%,transparent);border-radius:0 5px 5px 0;opacity:1;font-size:.96em}
.desktop .inline-view .desk-reader-prose blockquote>:last-child {margin-bottom:0}
.desktop .inline-view .desk-reader-prose strong {font-weight:600}
.desktop .inline-view .desk-reader-prose a {text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:anywhere}
.desktop .inline-view .desk-reader-prose :is(figure,img) {max-width:100%;height:auto;margin:1.4em auto}
.desktop .inline-view .desk-reader-prose figure img {margin:0 auto}
.desktop .inline-view .desk-reader-prose figcaption {font-size:.75em;line-height:1.7;opacity:.7;margin-top:10px;text-align:center}
.desktop .inline-view .desk-reader-prose hr {border:0;border-top:1px solid color-mix(in srgb,var(--desk-ink) 15%,transparent);margin:2em 0}
.desktop .inline-view .desk-reader-prose pre {white-space:pre;overflow:auto;padding:16px;font-size:.82em;line-height:1.7}
.desktop .inline-view .reader-table-scroll {max-width:100%;overflow-x:auto;margin:1.3em 0;overscroll-behavior-x:contain}
.desktop .inline-view .reader-table-scroll table {display:table;border-collapse:collapse;width:100%;min-width:480px;margin:0;font-size:.86em;line-height:1.7}
.desktop .inline-view .reader-table-scroll :is(th,td) {padding:10px 12px;text-align:left;vertical-align:top;border:1px solid color-mix(in srgb,var(--desk-ink) 18%,transparent)}
.desktop .inline-view .reader-table-scroll th {font-weight:600;background:var(--desk-bar)}
.desktop .reader-outline {margin:18px 0 0;padding:0 14px;border:1px solid color-mix(in srgb,var(--desk-ink) 16%,transparent);border-radius:6px;font-size:14px;background:color-mix(in srgb,var(--desk-bar) 30%,transparent)}
.desktop .reader-outline summary {padding:11px 0;cursor:pointer;font-weight:500;line-height:1.6}
.desktop .reader-outline nav {display:grid;gap:4px;padding:0 0 12px}
.desktop .reader-outline a {display:block;padding:5px 0;color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px;line-height:1.6;overflow-wrap:anywhere}
.desktop .reader-outline :is(summary,a):focus-visible,.desktop .reader-table-scroll:focus-visible {outline:2px solid var(--desk-ink);outline-offset:3px;border-radius:2px}
.desktop .inline-view .desk-reader-next {font-size:14px;line-height:1.7;margin-top:32px;padding-top:20px}
@container (max-width:460px) {
 .desktop .inline-reading .desk-reader-page {padding:24px 20px 36px}
 .desktop .inline-view .desk-reader-heading h1 {font-size:calc(var(--desk-reader-font) * 1.5)}
 .desktop .inline-view .desk-reader-prose {line-height:1.85}
}

/* Tables and screenshots in the examination guide. */
.prose .article-table-scroll{max-width:100%;overflow-x:auto;margin:1.5em 0}.prose .article-table-scroll table{min-width:420px;width:100%;border-collapse:collapse}.prose th,.prose td{padding:10px;border:1px solid #aaa8;vertical-align:top}.prose img{height:auto;max-width:100%}.prose img[src*="10-mobile"]{max-width:min(100%,390px)}

.desktop-home-link{font-size:12px;font-weight:400;margin-left:10px;color:inherit;opacity:.7;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* Accessibility and touch layout: keep controls reachable while reading. */
.desktop :is(a,button,input,summary,[tabindex]):focus-visible{outline:3px solid var(--desk-ink);outline-offset:3px}
.desktop .desk-window:focus-visible{outline-offset:-3px}
.desktop .desktop-home-link{min-height:28px;display:inline-flex;align-items:center}
.desktop .resize-se{width:24px;height:24px}
@media(prefers-reduced-motion:reduce){.desktop *,.desktop *::before,.desktop *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px),(pointer:coarse) and (max-width:1000px){
 body.desktop{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:96px minmax(0,1fr)}
 .desktop .desktop-top{height:96px;position:relative;gap:0 4px;padding:0 6px}
 .desktop .desktop-brand{min-width:28px;min-height:44px;display:flex;align-items:center}
 .desktop .desktop-home-link{margin-left:0;min-height:44px;font-size:12px}
 .desktop .desktop-tools{gap:0}
 .desktop .desktop-tools>:is(button,.theme-button,.sound-button,.global-search-button){width:40px;height:44px;min-width:40px;min-height:44px}
 .desktop .desk-clock{font-size:11px;padding-left:2px}
 .desktop .desktop-top>.desktop-window-strip{height:44px;overflow-x:auto;justify-content:flex-start}
 .desktop .desktop-window-strip button{height:40px;min-width:60px;font-size:13px;flex-shrink:0}
 .desktop .desktop-space{min-height:0;height:100%;display:flex;flex-direction:column;padding:0;overflow:hidden}
 .desktop .desktop-icons{position:relative;inset:auto;width:100%;max-width:none;box-sizing:border-box;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:6px;gap:0;flex:none}
 .desktop .desktop-icon{min-width:0;min-height:64px;padding:3px 0;gap:2px}
 .desktop .desktop-icon .icon{width:32px;height:32px}
 .desktop .desktop-icon>span{font-size:12px;line-height:20px}
 .desktop .windows{position:relative;inset:auto;flex:1;min-height:0;width:100%;padding:0 6px max(6px,env(safe-area-inset-bottom));overflow:hidden}
 .desktop .desk-window,.desktop .desk-window.user-sized{position:relative!important;inset:auto!important;margin:0;width:100%!important;max-width:100%;height:100%!important;max-height:none;min-height:0;display:flex;flex-direction:column;resize:none}
 .desktop .desk-window[hidden],.desktop .desk-window.minimized{display:none!important}
 .desktop .window-content{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .desktop .window-bar{min-height:48px;flex-shrink:0;gap:2px;padding:2px 6px}
 .desktop .window-bar button{min-height:40px;min-width:36px}
 .desktop .window-bar .explorer-back,.desktop .inline-path button:first-child{width:36px;height:40px;min-width:36px;left:2px}
 .desktop .inline-reading .window-bar>.window-kind-icon,.desktop .window-bar:has(.explorer-back:not(:disabled))>.window-kind-icon{margin-left:36px}
 .desktop .window-bar input,.desktop #global-query{font-size:16px}
 .desktop .cat-widget,.desktop .desktop-cat{display:none}
 .desktop .inline-reading .desk-reader-page{padding:22px 16px 36px}
 .desktop .window-status{flex-shrink:0}
}

.desktop .desktop-home-link,.desktop .clock-date,.desktop .clock-week,.desktop .inline-view .desk-reader-meta,.desktop .explorer-file time,.desktop .search-location{opacity:.85}

.desktop .content-cover small,.desktop .content-cover i{opacity:1;color:#39405b}

@media(max-width:760px),(pointer:coarse) and (max-width:1000px){
 .desktop .window-bar button[data-maximize],.desktop .resize-handle{display:none}
 .desktop .desktop-top>.desktop-window-strip{order:3;flex:0 0 100%;max-width:100%}
 .desktop .desktop-top{flex-wrap:wrap;align-content:center}
}

/* About and message windows share one readable type scale. */
.desktop :is(#window-about,#window-links) :is(.about-panel,.contact-panel){font-family:"Microsoft YaHei","Microsoft YaHei UI","PingFang SC",sans-serif;font-size:16px;line-height:1.8}
.desktop :is(#window-about,#window-links) :is(h3){font-size:24px;line-height:1.5}
.desktop :is(#window-about,#window-links) :is(p,.button,.contact-panel>p>a){font-size:16px;line-height:1.8}

.desktop #window-about .about-panel button.button{font:inherit;font-size:16px;line-height:1.8}
