/* Shared desktop canvas. This edition intentionally targets desktop browsers. */
html[data-iwa-layout="desktop"]{
  --desktop-width:1440px;
  --desktop-gutter:48px;
  --desktop-gap:24px;
  --desktop-radius:16px;
}
html[data-iwa-layout="desktop"] body{min-width:1100px;font-size:16px}
html[data-iwa-layout="desktop"] :is(.page,.reading-directory,.wrap,.personal-page){
  box-sizing:border-box;width:calc(100% - 2 * var(--desktop-gutter));max-width:var(--desktop-width);
  margin:0 auto;padding:40px 0 64px;
}
html[data-iwa-layout="desktop"] .iwa-module-nav{
  min-height:64px;height:64px;padding:10px max(var(--desktop-gutter),calc((100vw - var(--desktop-width))/2));
  flex-wrap:nowrap;gap:24px;
}
html[data-iwa-layout="desktop"] .iwa-nav-right{gap:24px;margin-left:auto;flex-wrap:nowrap}
html[data-iwa-layout="desktop"] :is(.iwa-home-link,.iwa-personal-link,.iwa-module-picker summary){font:600 15px/1.5 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;min-height:38px}
html[data-iwa-layout="desktop"] .iwa-personal-link{gap:9px;padding-left:24px}
html[data-iwa-layout="desktop"] .iwa-nav-avatar{width:36px;height:36px}
html[data-iwa-layout="desktop"] .iwa-nav-avatar svg{width:21px;height:21px}
html[data-iwa-layout="desktop"] .iwa-guide-launch{width:36px;height:36px;min-height:36px;padding:7px;margin:0}
html[data-iwa-layout="desktop"] .iwa-guide-launch>svg{width:21px;height:21px}
html[data-iwa-layout="desktop"] .iwa-module-options{width:216px;padding:8px}
html[data-iwa-layout="desktop"] .iwa-module-options a{font:600 15px/1.5 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;padding:11px 14px}
html[data-iwa-layout="desktop"] .topline{height:4px}

/* Home: a compact, balanced three-column workspace. */
html[data-iwa-layout="desktop"] body[data-iwa-page="home"] .mast{gap:12px}
html[data-iwa-layout="desktop"] body[data-iwa-page="home"] .intro{padding:34px 0 30px}
html[data-iwa-layout="desktop"] body[data-iwa-page="home"] .intro h1{font-size:36px;line-height:1.35;margin-bottom:10px}
html[data-iwa-layout="desktop"] body[data-iwa-page="home"] .intro p{font-size:16px;line-height:1.8}
html[data-iwa-layout="desktop"] .modules{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
html[data-iwa-layout="desktop"] .module{min-height:248px;border-radius:18px}
html[data-iwa-layout="desktop"] .module-main{padding:26px 28px 22px}
html[data-iwa-layout="desktop"] .module-icon{width:44px;height:44px;border-radius:12px;margin-bottom:20px}
html[data-iwa-layout="desktop"] .module-icon svg{width:24px;height:24px}
html[data-iwa-layout="desktop"] .module h2{font-size:21px;margin-bottom:9px}
html[data-iwa-layout="desktop"] .module p{max-width:none;font-size:15px;line-height:1.8}
html[data-iwa-layout="desktop"] .module .entry{font-size:15px;padding-top:20px}
html[data-iwa-layout="desktop"] .module-footer{padding:0 28px 24px;gap:12px;flex-direction:row;align-items:center}
html[data-iwa-layout="desktop"] .module-footer a{font-size:14px;min-height:39px;width:auto}
html[data-iwa-layout="desktop"] .placeholder{min-height:248px}
html[data-iwa-layout="desktop"] body[data-iwa-page="home"] .foot{margin-top:28px;font-size:13px}

/* Reading list: equal-width cards, titles beside circular source numbers. */
html[data-iwa-layout="desktop"] .reading-directory .directory-head{display:flex;align-items:center;flex-direction:row;margin-bottom:30px}
html[data-iwa-layout="desktop"] .reading-directory .directory-head h1{font-size:36px;line-height:1.35}
html[data-iwa-layout="desktop"] .reading-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
html[data-iwa-layout="desktop"] .reading-card{padding:24px;gap:15px;border-radius:16px;min-height:238px}
html[data-iwa-layout="desktop"] .reading-card-headline{gap:13px}
html[data-iwa-layout="desktop"] .reading-card-headline .source-number{width:34px;height:34px;font-size:12px}
html[data-iwa-layout="desktop"] .reading-card h2{font-size:19px;line-height:1.55}
html[data-iwa-layout="desktop"] .reading-card .source-title-zh{margin-left:47px;font-size:15px;line-height:1.8}
html[data-iwa-layout="desktop"] .reading-card .reading-card-foot{margin-left:47px;font-size:13px;line-height:1.7;flex-wrap:wrap}
html[data-iwa-layout="desktop"] .directory-note{font-size:14px;margin-top:25px}

/* Article: a persistent contents rail and a bounded reading measure. */
html[data-iwa-layout="desktop"] .reader-workspace{
  box-sizing:border-box;width:calc(100% - 2 * var(--desktop-gutter));max-width:var(--desktop-width);
  margin:0 auto;padding:30px 0 64px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;
}
html[data-iwa-layout="desktop"] .reader-sidebar{position:sticky;align-self:start;top:94px;left:auto;width:250px;display:flex;flex-direction:column;height:calc(100dvh - 118px);max-height:1000px;min-height:0}
html[data-iwa-layout="desktop"] .reader-progress-card,html[data-iwa-layout="desktop"] .reader-toc-panel{padding:20px;margin:0 0 17px;border-radius:14px}
html[data-iwa-layout="desktop"] .reader-progress-card{flex-shrink:0;padding:14px 18px;margin-bottom:16px}
html[data-iwa-layout="desktop"] .reader-progress-label{font-size:14px;margin-bottom:8px;justify-content:flex-end}
html[data-iwa-layout="desktop"] .reader-toc-heading{font-size:15px;margin-bottom:13px}
html[data-iwa-layout="desktop"] .reader-toc-panel{display:flex;flex-direction:column;flex:1;min-height:0;margin-bottom:0}
html[data-iwa-layout="desktop"] .reader-toc-panel #readerToc{flex:1;min-height:0;max-height:none}
html[data-iwa-layout="desktop"] .reader-sidebar .toc-item{font-size:14px;min-height:40px;padding:9px 10px}
html[data-iwa-layout="desktop"] .reader-sidebar .toc-item.sub{font-size:13px;padding-left:20px}
html[data-iwa-layout="desktop"] .reader-sidebar .toc-item.nested{font-size:13px;padding-left:28px}
html[data-iwa-layout="desktop"] .sidebar-collection{width:100%;min-height:44px;font-size:14px;padding:12px;flex-shrink:0;margin-top:24px}
html[data-iwa-layout="desktop"] .reader-workspace .reader-shell{grid-column:2;max-width:none;width:100%;border-radius:16px}
html[data-iwa-layout="desktop"] .reader-workspace .toolbar{padding:0 32px;border-radius:16px 16px 0 0}
html[data-iwa-layout="desktop"] .reader-workspace .toolbar-top{height:60px}
html[data-iwa-layout="desktop"] .reader-workspace :is(.writing-toolbar-button,.language-btn){border:0;background:transparent;box-shadow:none;border-radius:50%}
html[data-iwa-layout="desktop"] .reader-workspace :is(.writing-toolbar-button,.language-btn):hover{background:transparent}
html[data-iwa-layout="desktop"] .reader-workspace .writing-toolbar-button.is-active{border:0;background:transparent}
html[data-iwa-layout="desktop"] .reader-workspace .writing-toolbar-button.is-active::after{content:none}
html[data-iwa-layout="desktop"] .reader-workspace .writing-button-dots{display:grid;grid-template-columns:repeat(2,7px);align-items:center;justify-content:center;gap:4px;width:18px;height:18px}
html[data-iwa-layout="desktop"] .reader-workspace .writing-button-dots i{display:block;width:7px;height:7px;flex-shrink:0;border-radius:50%}
html[data-iwa-layout="desktop"] .reader-workspace .article{box-sizing:border-box;max-width:980px;width:100%;margin:0 auto;padding:36px 48px 60px}
html[data-iwa-layout="desktop"] .reader-workspace .document-title{font-size:34px;line-height:1.3;max-width:none}
html[data-iwa-layout="desktop"] .reader-workspace .reader-paragraph{font-size:18px;line-height:1.95;margin-bottom:24px}
html[data-iwa-layout="desktop"] .reader-workspace .reader-list{font-size:18px;line-height:1.9}
html[data-iwa-layout="desktop"] .reader-block h2{font-size:25px;line-height:1.45}
html[data-iwa-layout="desktop"] .reader-block h3{font-size:21px;line-height:1.5}

/* Plan: introduction across the canvas; the two body arguments side by side. */
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .page-title{font-size:36px;line-height:1.3;margin:0 0 27px}
html[data-iwa-layout="desktop"] .page .plan-manager{display:flex;flex-wrap:nowrap;gap:20px;padding:18px 22px;margin:0 0 26px;border-radius:14px}
html[data-iwa-layout="desktop"] .plan-manager #plan-select{flex:0 1 300px;min-width:210px;max-width:350px;font-size:15px;min-height:43px}
html[data-iwa-layout="desktop"] .plan-manager-actions{margin-left:auto;flex:none;flex-wrap:nowrap;gap:10px}
html[data-iwa-layout="desktop"] .plan-manager .plan-manager-actions button{flex:none;min-width:65px;min-height:42px;font-size:14px;padding:10px 16px}
html[data-iwa-layout="desktop"] .page .overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:27px}
html[data-iwa-layout="desktop"] .page .overview-button{padding:16px 20px;border-radius:12px}
html[data-iwa-layout="desktop"] .page .overview-button strong{font-size:16px}
html[data-iwa-layout="desktop"] .page .overview-button span{font-size:13px}
html[data-iwa-layout="desktop"] .mindmap{display:block}
html[data-iwa-layout="desktop"] #plan-tree{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start;padding-left:0}
html[data-iwa-layout="desktop"] #map-introduction{grid-column:1 / -1}
html[data-iwa-layout="desktop"] .section-tree::before,html[data-iwa-layout="desktop"] .section-branch::before{display:none}
html[data-iwa-layout="desktop"] #map-introduction>.section-content>.tree-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:0}
html[data-iwa-layout="desktop"] #map-introduction>.section-content>.tree-list>.tree-node{padding:0;border:0}
html[data-iwa-layout="desktop"] #map-introduction>.section-content>.tree-list>.tree-node::before,html[data-iwa-layout="desktop"] #map-introduction>.section-content>.tree-list>.tree-node::after{display:none}
html[data-iwa-layout="desktop"] .page .section-head{min-height:84px;padding:19px 21px;border-radius:14px;flex-wrap:wrap;gap:12px}
html[data-iwa-layout="desktop"] .page .section-toggle h2{font-size:25px}
html[data-iwa-layout="desktop"] .page .section-toggle small{font-size:13px;line-height:1.65}
html[data-iwa-layout="desktop"] .page .body-selector{flex-direction:row;max-width:none;flex-basis:100%;justify-content:flex-end;font-size:13px;gap:10px}
html[data-iwa-layout="desktop"] .page .body-selector select{font-size:14px;padding:7px 11px}
html[data-iwa-layout="desktop"] .page .section-content{padding:20px 0 0}
html[data-iwa-layout="desktop"] .page .tree-list{padding-left:10px}
html[data-iwa-layout="desktop"] .page .tree-node{padding-left:14px;padding-bottom:20px}
html[data-iwa-layout="desktop"] .page .node-row{padding:12px 15px;min-height:50px;gap:10px}
html[data-iwa-layout="desktop"] .page .node-title{font-size:16px}
html[data-iwa-layout="desktop"] .page .supporting-card{padding:19px;border-radius:14px}
html[data-iwa-layout="desktop"] .page .supporting-head h3{font-size:21px}
html[data-iwa-layout="desktop"] .page .argument-branches .node-title{font-size:16px}
html[data-iwa-layout="desktop"] .page .collection-add{font-size:13px;min-height:36px}
html[data-iwa-layout="desktop"] .page .topic-sentence-input{font-size:18px;line-height:1.8;padding:15px;min-height:125px}
html[data-iwa-layout="desktop"] .page .plan-material{padding:18px;border-radius:12px}
html[data-iwa-layout="desktop"] .page .material-text,html[data-iwa-layout="desktop"] .page .plan-material .english-evidence{font-size:18px;line-height:1.85}
html[data-iwa-layout="desktop"] .page .material-tag{font-size:12px}
html[data-iwa-layout="desktop"] .page .relation-row select{font-size:13px}

/* Example and writing: normal desktop typography instead of viewport-scaled text. */
html[data-iwa-layout="desktop"] .wrap .mast{font-size:16px;margin:0 0 25px}
html[data-iwa-layout="desktop"] .wrap h1{font-size:36px;line-height:1.3;margin:9px 0 13px}
html[data-iwa-layout="desktop"] .wrap .intro{max-width:900px;font-size:16px;line-height:1.8;margin:0 0 24px;padding:0}
html[data-iwa-layout="desktop"] .wrap .tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:26px 0 28px;top:12px}
html[data-iwa-layout="desktop"] .wrap .tab{font-size:15px;min-height:45px;padding:11px 15px;border-radius:10px}
html[data-iwa-layout="desktop"] .wrap .writing-workspace{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:17px 21px;margin:0 0 22px}
html[data-iwa-layout="desktop"] .wrap .writing-workspace label{font-size:15px;flex:1}
html[data-iwa-layout="desktop"] .wrap .writing-workspace select{min-width:220px;max-width:420px;font-size:15px;min-height:42px}
html[data-iwa-layout="desktop"] .wrap .writing-workspace p{font-size:13px;margin:0;width:100%}
html[data-iwa-layout="desktop"] .wrap>section,html[data-iwa-layout="desktop"] .wrap>.next-row,html[data-iwa-layout="desktop"] .wrap>.foot{width:100%;max-width:1120px;margin-left:auto;margin-right:auto}
html[data-iwa-layout="desktop"] .wrap .section-head{padding:0 0 20px;margin-bottom:20px;gap:18px}
html[data-iwa-layout="desktop"] .wrap .section-head h2{font-size:28px;line-height:1.35;margin-bottom:6px}
html[data-iwa-layout="desktop"] .wrap .section-head p{font-size:15px;line-height:1.8}
html[data-iwa-layout="desktop"] .wrap .count{font-size:14px;padding-top:6px}
html[data-iwa-layout="desktop"] .wrap .essay{gap:20px}
html[data-iwa-layout="desktop"] .wrap .sentence{padding:24px 27px;border-radius:15px;border-width:1px;box-shadow:0 2px 10px #344b3d05}
html[data-iwa-layout="desktop"] .wrap .essay-text,html[data-iwa-layout="desktop"] .wrap .argument-group .essay-text{font-size:20px;line-height:1.85}
html[data-iwa-layout="desktop"] .wrap .draft-input{font-size:18px;line-height:1.85;min-height:130px}
html[data-iwa-layout="desktop"] .wrap .unified-draft{min-height:130px}
html[data-iwa-layout="desktop"] .wrap .tag{font-size:14px;padding:7px 12px;min-height:33px;border-radius:8px}
html[data-iwa-layout="desktop"] .wrap .causal-stage{font-size:19px;line-height:1.5}
html[data-iwa-layout="desktop"] .wrap .causal-stage small{font-size:12px}
html[data-iwa-layout="desktop"] .wrap .recommend{padding:15px 18px}
html[data-iwa-layout="desktop"] .wrap .recommend p{font-size:16px;line-height:1.8}
html[data-iwa-layout="desktop"] .wrap .recommend strong{font-size:13px}
html[data-iwa-layout="desktop"] .wrap .argument-group{border-radius:17px;padding:23px;border-width:1px;box-shadow:none}
html[data-iwa-layout="desktop"] .wrap .argument-group .sentence{padding:22px 24px}
html[data-iwa-layout="desktop"] .wrap .argument-group .causal-stage{margin:-22px -24px 19px;border-radius:14px 14px 0 0;padding:12px 16px}
html[data-iwa-layout="desktop"] .wrap .structure-picker{font-size:14px;gap:14px;margin:0 0 22px;align-items:center}
html[data-iwa-layout="desktop"] .wrap .structure-picker small{font-size:13px}
html[data-iwa-layout="desktop"] .wrap .foot{font-size:13px;line-height:1.8}

/* Personal center aligns to the same grid, with room for four theme previews. */
html[data-iwa-layout="desktop"] .personal-header{margin-bottom:30px}
html[data-iwa-layout="desktop"] .personal-header h1{font-size:36px}
html[data-iwa-layout="desktop"] .personal-layout{grid-template-columns:260px minmax(0,1fr);gap:30px}
html[data-iwa-layout="desktop"] .personal-sidebar{position:sticky;top:24px;display:block}
html[data-iwa-layout="desktop"] .identity-card{display:block;padding:30px 24px}
html[data-iwa-layout="desktop"] .section-nav{display:grid;grid-template-columns:1fr;margin:22px 0;border:0;padding:0;background:transparent}
html[data-iwa-layout="desktop"] .section-nav a{justify-content:flex-start;padding:13px 15px;font-size:15px}
html[data-iwa-layout="desktop"] .section-nav a>span,html[data-iwa-layout="desktop"] .section-nav a>svg{display:block}
html[data-iwa-layout="desktop"] .sidebar-note{display:flex}
html[data-iwa-layout="desktop"] .settings-card{padding:29px 32px;border-radius:17px}
html[data-iwa-layout="desktop"] .profile-fields{max-width:800px}
html[data-iwa-layout="desktop"] .theme-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html[data-iwa-layout="desktop"] .theme-preview{height:108px}
html[data-iwa-layout="desktop"] .theme-label{font-size:14px}
html[data-iwa-layout="desktop"] .theme-caption{font-size:12px}

/* Desktop dialogs use centered panels rather than mobile bottom sheets. */
html[data-iwa-layout="desktop"] #sheet{inset:0;margin:auto;width:min(960px,calc(100vw - 120px));max-width:960px;max-height:86dvh;border-radius:18px}
html[data-iwa-layout="desktop"] .sheet-header{padding:21px 28px}
html[data-iwa-layout="desktop"] .sheet-header h2{font-size:22px}
html[data-iwa-layout="desktop"] .sheet-content{padding:24px 28px;max-height:calc(86dvh - 170px);font-size:16px}
html[data-iwa-layout="desktop"] .sheet-footer{padding:16px 28px}
html[data-iwa-layout="desktop"] .sheet-handle{display:none}
html[data-iwa-layout="desktop"] .picker-dialog{inset:0;margin:auto;width:min(1040px,calc(100vw - 120px));height:min(86dvh,920px);border-radius:18px}
html[data-iwa-layout="desktop"] #detail{width:min(880px,calc(100vw - 120px));max-height:86dvh;border-radius:18px}
html[data-iwa-layout="desktop"] #detail .dialog-scroll{padding:30px 34px}
html[data-iwa-layout="desktop"] #detail p,html[data-iwa-layout="desktop"] #detail li{font-size:16px;line-height:1.85}
