#tab-file *{box-sizing:border-box}
#tab-file button,#tab-file input,#tab-file textarea,#tab-file select{font:inherit}
#tab-file button,#tab-file a,#tab-file input,#tab-file textarea,#tab-file select{-webkit-tap-highlight-color:transparent}
#tab-file button{cursor:pointer}
#tab-file button:disabled{cursor:default;color:var(--muted)}
#tab-file button,#tab-file a{touch-action:manipulation}
#tab-file button:focus-visible,#tab-file a:focus-visible,#tab-file input:focus-visible,#tab-file textarea:focus-visible,#tab-file select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#tab-file button{color:inherit}
#tab-file a{color:var(--accent)}
#tab-file [hidden]{display:none!important}
#tab-file h1,#tab-file h2,#tab-file h3,#tab-file p{margin-top:0}
#tab-file svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
#tab-file button svg{pointer-events:none}
#tab-file button span{pointer-events:none}
#tab-file .muted{color:var(--muted)}
#tab-file .eyebrow{font:600 10px/1.5 var(--mono);letter-spacing:1.8px;color:var(--accent);margin-bottom:10px}
#tab-file .demo-explainer{font:400 11px var(--font);letter-spacing:0;color:var(--muted);margin-left:12px}
#tab-file .live-dot{height:5px;width:5px;border-radius:50%;background:var(--accent)}
#tab-file .page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:36px}
#tab-file h1{font-size:40px;line-height:1.15;letter-spacing:-1.6px;font-weight:620;margin-bottom:10px}
#tab-file .title-dot{color:var(--accent)}
#tab-file .subtitle{font-size:14px;color:var(--muted);margin:0}
#tab-file .button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 14px;text-decoration:none;font-weight:550;font-size:12px}
#tab-file .button:hover{border-color:var(--field-line);background:var(--surface-2)}
#tab-file .button.primary{background:var(--accent);border-color:var(--accent);color:var(--primary-ink)}
#tab-file .button.primary:hover{background:var(--primary-hover)}
#tab-file .button.quiet{border-color:transparent;background:transparent;color:var(--muted)}
#tab-file .button.danger{color:var(--error)}
#tab-file .button.small{min-height:38px;padding:7px 10px}
#tab-file .manager-button{color:var(--accent);min-height:44px}
#tab-file .icon-button{border:0;background:transparent;color:var(--muted);padding:4px 8px;min-width:28px;min-height:28px;font-size:18px}
#tab-file .icon-button:hover{color:var(--accent)}
#tab-file .library-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:28px}
#tab-file .browse-panel{padding-right:23px;border-right:1px solid var(--line);min-width:0}
#tab-file .tree-main{width:100%;display:flex;align-items:center;gap:9px;border:0;background:none;text-align:left;padding:10px;border-radius:7px;font-size:12px;font-weight:550}
#tab-file .tree-main.selected{background:var(--accent-soft);color:var(--accent)}
#tab-file .tree-main:hover{background:var(--surface-2)}
#tab-file .count{margin-left:auto;font:500 10px var(--mono);color:var(--muted)}
#tab-file .section-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 0 8px;padding-left:10px;font-size:10px}
#tab-file .section-heading h2{font:600 10px var(--mono);letter-spacing:1px;color:var(--muted);margin:0}
#tab-file .deck-row{display:flex;align-items:center;gap:5px}
#tab-file .deck-row .tree-main{font-weight:400;font-size:12px;padding:9px 10px}
#tab-file .deck-dot{width:6px;height:6px;border:1px solid var(--accent);border-radius:2px;margin:0 2px}
#tab-file .tag-search{display:flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:7px 9px;margin:0 0 12px}
#tab-file .tag-search svg{width:14px;height:14px;color:var(--muted)}
#tab-file input{color:var(--ink)}
#tab-file .tag-search input,#tab-file .main-search input{border:0;background:none;outline:none;min-width:0;width:100%}
#tab-file .tag-search input{font-size:11px}
#tab-file .tag-node{display:flex;gap:2px;align-items:center;min-height:34px;border-radius:6px}
#tab-file .tag-node.active{background:var(--accent-soft);color:var(--accent)}
#tab-file .tag-node:hover{background:var(--surface-2)}
#tab-file .tag-expand{background:none;border:0;font-size:10px;color:var(--muted);width:22px;padding:3px;flex-shrink:0;min-height:30px}
#tab-file .tag-name{flex:1;min-width:0;text-align:left;font-size:11px;background:none;border:0;padding:5px 3px;overflow-wrap:anywhere}
#tab-file .tag-node .count{padding-right:5px}
#tab-file #lib-tag-tree{max-height:440px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
#tab-file .toggle-label{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);margin:13px 4px}
#tab-file input[type=checkbox]{accent-color:var(--accent)}
#tab-file .trash-link{margin-top:25px;color:var(--muted)}
#tab-file .browse-foot{font-size:10px;line-height:1.8;color:var(--muted);margin:26px 10px}
#tab-file .library-content{min-width:0}
#tab-file .library-toolbar{display:flex;gap:8px;align-items:center}
#tab-file .main-search{display:flex;align-items:center;gap:10px;flex:1;min-width:100px;height:42px;padding:0 13px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
#tab-file .main-search svg{color:var(--muted);width:17px}
#tab-file .main-search input{font-size:12px}
#tab-file .main-search kbd{padding:0 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font:11px/1.6 var(--mono)}
#tab-file .type-bar{display:flex;gap:4px;overflow:auto;margin:17px 0 0;border-bottom:1px solid var(--line);scrollbar-width:none}
#tab-file .type-bar button{padding:8px 10px 12px;border:0;border-bottom:2px solid transparent;background:none;white-space:nowrap;font-size:11px;color:var(--muted)}
#tab-file .type-bar button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}
#tab-file .type-bar button span{margin-left:6px;font:10px var(--mono)}
#tab-file .active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}
#tab-file .active-filters:empty{display:none}
#tab-file .filter-chip,#tab-file .chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);padding:4px 7px;font-size:10px;border-radius:5px;max-width:100%;overflow-wrap:anywhere}
#tab-file .filter-chip{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
#tab-file .results-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:20px 0 13px;gap:10px}
#tab-file .results-top strong{font-weight:550}
#tab-file .results-top .muted{margin-left:8px}
#tab-file .results-top label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:nowrap}
#tab-file .results-top select{background:var(--bg);color:var(--ink);border:0;font-size:10px;max-width:130px}
#tab-file .results-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.68fr);gap:18px;align-items:start}
#tab-file .results-layout.no-preview{grid-template-columns:minmax(0,1fr)}
#tab-file .results-layout.no-preview .preview-pane{display:none}
#tab-file .table-wrap{min-width:0}
#tab-file .items-table{width:100%;border-collapse:collapse;table-layout:fixed}
#tab-file .items-table th{font:500 8px/1.4 var(--mono);color:var(--muted);letter-spacing:.8px;text-align:left;padding:9px 8px;border-bottom:1px solid var(--line)}
#tab-file .items-table th:first-child{width:43%;padding-left:12px}
#tab-file .items-table th:nth-child(2){width:13%}
#tab-file .items-table th:nth-child(3){width:16%}
#tab-file .items-table th:nth-child(4){width:14%}
#tab-file .items-table th:nth-child(5){width:14%}
#tab-file .items-table td{padding:15px 8px;border-bottom:1px solid var(--line-soft);vertical-align:middle;font-size:10px;overflow-wrap:anywhere}
#tab-file .item-row{background:transparent}
#tab-file .item-row.selected{background:var(--surface);box-shadow:inset 3px 0 var(--accent)}
#tab-file .item-row:hover{background:var(--surface)}
#tab-file .item-name{display:flex;gap:10px;align-items:center;padding:0;background:none;border:0;text-align:left;width:100%;min-height:38px}
#tab-file .item-name strong{font-size:11px;font-weight:550;line-height:1.5;display:block}
#tab-file .item-name .sub{color:var(--muted);display:block;font-size:9px;margin-top:4px}
#tab-file .item-symbol{display:grid;place-items:center;width:31px;height:35px;border:1px solid var(--line);border-radius:5px;color:var(--accent);flex-shrink:0;background:var(--surface-2)}
#tab-file .item-symbol svg{width:16px;height:16px}
#tab-file .item-row input[type=checkbox]{margin:0 6px 0 0}
#tab-file .type-label{color:var(--muted);font-size:9px}
#tab-file .tag-short{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:9px}
#tab-file .due{color:var(--warn)}
#tab-file .miss{color:var(--error)}
#tab-file .status-pill{font-size:8px;white-space:nowrap;display:inline-block;border:1px solid var(--line);border-radius:4px;padding:3px 5px;color:var(--muted)}
#tab-file .status-pill.due{color:var(--warn)}
#tab-file .status-pill.miss{color:var(--error)}
#tab-file .list-foot{font-size:10px;color:var(--muted);padding:19px 9px}
#tab-file .preview-pane{border:1px solid var(--line);border-radius:11px;background:var(--surface);overflow:hidden;position:sticky;top:18px;min-width:0}
#tab-file .preview-top{padding:21px 20px 16px}
#tab-file .preview-type{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
#tab-file .preview-type .eyebrow{margin:0;font-size:9px}
#tab-file .preview-title{font-size:21px;letter-spacing:-.55px;line-height:1.3;margin:0 0 10px;font-weight:580}
#tab-file .preview-subtitle{font-size:10px;color:var(--muted);margin-bottom:17px}
#tab-file .preview-question{border:1px solid var(--line);border-radius:7px;background:var(--surface-2);padding:17px;margin-bottom:17px;font-size:13px;line-height:1.7}
#tab-file .preview-question .eyebrow{font-size:8px;margin-bottom:10px}
#tab-file .preview-actions{display:flex;gap:7px;flex-wrap:wrap}
#tab-file .preview-actions .primary{flex:1;min-width:120px}
#tab-file .preview-actions .button{font-size:10px;padding:8px 10px}
#tab-file .preview-secondary{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}
#tab-file .preview-secondary .button{font-size:10px;min-height:30px;padding:5px 8px}
#tab-file .info-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 20px;background:var(--surface-2)}
#tab-file .stat span{font-size:8px;color:var(--muted);display:block;margin-bottom:4px}
#tab-file .stat strong{font:500 11px var(--mono)}
#tab-file .preview-bottom{padding:18px 20px}
#tab-file .preview-bottom h3{font:600 9px var(--mono);color:var(--muted);letter-spacing:1px;margin:0 0 12px}
#tab-file .chip-list{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 20px}
#tab-file .linked-item{display:flex;gap:10px;align-items:center;border:0;background:none;width:100%;text-align:left;padding:10px 0;border-top:1px solid var(--line-soft);font-size:10px}
#tab-file .linked-item>span:last-child{margin-left:auto;color:var(--muted)}
#tab-file .linked-item svg{color:var(--accent);width:15px}
#tab-file .preview-note{font-size:10px;color:var(--muted);line-height:1.7}
#tab-file .preview-note.emphasis{border-left:2px solid var(--warn);padding-left:12px}
#tab-file .scan-placeholder{display:grid;place-items:center;min-height:170px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;margin:15px 0;color:var(--muted);text-align:center;padding:25px}
#tab-file .scan-placeholder svg{width:44px;height:44px;color:var(--accent);opacity:.8}
#tab-file .scan-placeholder p{font-size:10px;margin:11px 0 0}
#tab-file .empty-state{padding:48px 20px;text-align:center;border-bottom:1px solid var(--line)}
#tab-file .empty-state>span svg{width:30px;height:30px;color:var(--muted)}
#tab-file .empty-state h3{font-size:17px;margin:14px 0 5px}
#tab-file .empty-state p{color:var(--muted);font-size:12px}
#tab-file .editor-row td{padding:0}
#tab-file .inline-editor{background:var(--surface);padding:19px;border:1px solid var(--accent);border-top:0;border-radius:0 0 10px 10px;margin-bottom:12px}
#tab-file .editor-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}
#tab-file .editor-heading h3{font-size:13px;margin:0}
#tab-file .editor-heading .muted{font-size:9px}
#tab-file .format-toolbar{display:flex;gap:2px;border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;background:var(--surface-2);padding:4px}
#tab-file .format-toolbar button{border:0;background:none;min-width:30px;min-height:28px;font-size:11px}
#tab-file .format-toolbar button:hover{background:var(--surface-3)}
#tab-file .editor-label{display:block;font:500 9px var(--mono);letter-spacing:.6px;color:var(--muted);margin-bottom:6px}
#tab-file .editor-field{width:100%;min-height:83px;border:1px solid var(--field-line);border-radius:6px;padding:11px;background:var(--bg);color:var(--ink);font-size:12px;line-height:1.65;resize:vertical}
#tab-file .editor-field.first{border-radius:0 0 6px 6px}
#tab-file .editor-group{margin:15px 0}
#tab-file .editor-title-input{min-height:42px}
#tab-file .editor-footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}
#tab-file .editor-footer .muted{margin-right:auto;font-size:9px}
#tab-file .editor-chip-button{background:var(--accent-soft);color:var(--accent);border:1px dashed var(--accent);padding:4px 8px;border-radius:5px;font-size:10px}
#tab-file .editor-help{font-size:10px;color:var(--muted);margin:7px 0 13px}
#tab-file .pasted-image{border:1px solid var(--line);border-radius:6px;margin:10px 0;padding:9px}
#tab-file .pasted-image img{display:block;max-width:100%;max-height:160px;margin:auto}
#tab-file .pasted-image label{display:flex;align-items:center;gap:9px;font-size:10px;margin-top:8px}
#tab-file .pasted-image select{background:var(--surface-2);color:var(--ink);border:1px solid var(--line);padding:4px}
#tab-file .inline-picker{border:1px solid var(--line);background:var(--surface-2);border-radius:7px;padding:12px;margin:13px 0}
#tab-file .inline-picker label{display:flex;gap:7px;align-items:center;font-size:11px;margin:7px 0}
#tab-file .inline-picker input[type=text],#tab-file .inline-picker input[type=search]{width:100%;background:var(--bg);border:1px solid var(--field-line);border-radius:5px;padding:8px;font-size:11px}
#tab-file .picker-results{max-height:170px;overflow:auto}
#tab-file .picker-results button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px;font-size:10px}
#tab-file .picker-results button:hover{background:var(--surface-3)}
#tab-file .bulk-actions{padding:10px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--accent-soft);border:1px solid var(--accent);border-radius:7px;margin-top:12px;font-size:11px}
#tab-file .bulk-actions .button{font-size:10px;min-height:31px}
#tab-file .bulk-actions strong{margin-right:auto}
#tab-file .manager-panel{border:1px solid var(--accent);border-radius:10px;background:var(--surface);padding:22px;margin-bottom:30px}
#tab-file .manager-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#tab-file .manager-top h2{font-size:18px;margin:0}
#tab-file .manager-prompt{display:flex;gap:12px;align-items:start}
#tab-file .manager-prompt textarea{flex:1;min-width:0;min-height:70px;background:var(--bg);color:var(--ink);border:1px solid var(--field-line);border-radius:7px;padding:11px;font-size:12px;resize:vertical}
#tab-file .manager-presets{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
#tab-file .manager-presets button{background:transparent;border:1px solid var(--line);border-radius:6px;font-size:10px;padding:6px 9px}
#tab-file .manager-note{font-size:10px;color:var(--muted);margin:10px 0 0}
#tab-file .proposal{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
#tab-file .proposal h3{font-size:14px;margin:0 0 7px}
#tab-file .proposal-row{display:flex;align-items:start;gap:10px;padding:11px 0;border-bottom:1px solid var(--line-soft);font-size:12px}
#tab-file .proposal-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
#tab-file .proposal-row input{margin-top:4px}
#tab-file .proposal-actions{display:flex;align-items:center;gap:10px;margin-top:17px}
#tab-file .proposal-actions span{font-size:10px;color:var(--muted)}
#tab-file .study-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:30px}
#tab-file .back-button{border:0;background:none;color:var(--muted);padding:6px 0;font-size:12px}
#tab-file .study-context{color:var(--muted);font-size:10px}
#tab-file .reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:26px;max-width:1150px;margin:0 auto}
#tab-file .reading-main{min-width:0}
#tab-file .article-hero{padding:33px;border:1px solid var(--line);background:var(--surface);border-radius:12px;position:relative;overflow:hidden}
#tab-file .article-hero:after{content:'';position:absolute;right:-40px;top:-45px;width:190px;height:190px;border:1px solid var(--line);border-radius:50%;pointer-events:none}
#tab-file .article-hero h1{font-size:34px;letter-spacing:-.9px;line-height:1.25;margin:12px 0 18px;max-width:650px;position:relative;z-index:1}
#tab-file .article-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;align-items:center}
#tab-file .article-hero .why{max-width:520px;margin:23px 0 0;font-size:13px;line-height:1.8;color:var(--muted)}
#tab-file .section-nav{display:flex;gap:6px;overflow:auto;margin:22px 0 16px;scrollbar-width:none}
#tab-file .section-nav button{flex:1;white-space:nowrap;background:transparent;border:1px solid var(--line);border-radius:6px;padding:11px 12px;font-size:11px;color:var(--muted)}
#tab-file .section-nav button[aria-current=step]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
#tab-file .reading-section{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:29px;min-height:280px}
#tab-file .reading-section h2{font-size:24px;letter-spacing:-.5px;margin-bottom:13px;font-weight:580}
#tab-file .reading-section p{font-size:14px;line-height:1.85;color:var(--muted)}
#tab-file .reading-section .focus-box{border-left:2px solid var(--accent);padding:1px 0 1px 17px;margin:22px 0}
#tab-file .focus-box strong{font-size:12px}
#tab-file .focus-box p{font-size:12px;margin:6px 0 0}
#tab-file .reading-navigation{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:10px}
#tab-file .reading-navigation span{font-size:10px;color:var(--muted)}
#tab-file .reading-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}
#tab-file .reading-action{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:83px;text-align:left;padding:14px;color:var(--ink)}
#tab-file .reading-action svg{display:block;color:var(--accent);width:18px;height:18px;margin-bottom:9px}
#tab-file .reading-action span{display:block;font-size:11px;font-weight:550}
#tab-file .reading-action:hover,#tab-file .reading-action[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}
#tab-file .activity-panel{background:var(--surface);border:1px solid var(--accent);border-radius:10px;padding:24px;margin-bottom:18px}
#tab-file .activity-panel h2{font-size:19px;margin:0 0 15px}
#tab-file .activity-panel p{font-size:13px;color:var(--muted);line-height:1.8}
#tab-file .activity-top{display:flex;align-items:center;justify-content:space-between}
#tab-file .takeaway{border-top:1px solid var(--line);padding:15px 0}
#tab-file .takeaway h3{font-size:13px;margin:0 0 5px}
#tab-file .takeaway p{font-size:12px;margin:0}
#tab-file .reading-side{min-width:0}
#tab-file .reading-side-panel{border:1px solid var(--line);border-radius:10px;padding:21px;background:var(--surface);margin-bottom:17px}
#tab-file .reading-side-panel h2{font-size:13px;display:flex;align-items:center;gap:8px;margin:0 0 16px}
#tab-file .reading-side-panel h2 svg{color:var(--accent);width:17px}
#tab-file .objective{display:flex;gap:9px;font-size:11px;line-height:1.7;margin:13px 0}
#tab-file .objective span{color:var(--accent);font:10px var(--mono);margin-top:3px}
#tab-file .reading-side-panel p{font-size:11px;color:var(--muted);line-height:1.8}
#tab-file .tutor-field{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--field-line);padding:10px;border-radius:6px;font-size:11px;resize:vertical;min-height:88px}
#tab-file .finish-reading{width:100%;margin:6px 0 12px}
#tab-file .reading-foot{font-size:10px;color:var(--muted);text-align:center}
#tab-file .review-shell{max-width:780px;margin:30px auto}
#tab-file .review-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
#tab-file .review-card{border:1px solid var(--line);background:var(--surface);padding:38px;border-radius:13px;min-height:340px}
#tab-file .review-card h2{font-size:25px;line-height:1.5;letter-spacing:-.5px;margin:20px 0 25px}
#tab-file .review-card p{line-height:1.8;font-size:14px;color:var(--muted)}
#tab-file .review-rating{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}
#tab-file .review-rating button{flex:1}
#tab-file .review-rating .again{color:var(--error)}
#tab-file .review-rating .hard{color:var(--warn)}
#tab-file .toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);background:var(--surface);color:var(--ink);padding:13px 18px;border:1px solid var(--accent);border-radius:8px;box-shadow:var(--shadow);font-size:12px;z-index:30;display:flex;gap:15px;align-items:center}
#tab-file .toast button{border:0;background:none;color:var(--accent);font-weight:600}
#tab-file .browse-mobile,#tab-file #lib-mobile-browse,#tab-file .preview-back{display:none}
#tab-file .skip-link{position:absolute;left:10px;top:-90px;z-index:40;background:var(--surface);padding:12px}
#tab-file .skip-link:focus{top:10px}
#tab-file .breadcrumb{font-size:10px;color:var(--muted);display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}
#tab-file .breadcrumb:empty{display:none}
#tab-file .breadcrumb button{border:0;background:none;color:var(--accent);font-size:10px;padding:2px}
#tab-file .schema-link{font-size:10px;color:var(--muted)}
@media(min-width:1500px){#tab-file .items-table th:first-child{width:42%}
#tab-file .items-table td{padding:17px 11px}
#tab-file .item-name strong{font-size:12px}
#tab-file .item-name .sub{font-size:10px}
#tab-file .type-label,#tab-file .tag-short{font-size:10px}
#tab-file .status-pill{font-size:9px}}
@media(max-width:1250px) and (min-width:761px){#tab-file .library-layout{grid-template-columns:174px minmax(0,1fr);gap:20px}
#tab-file .browse-panel{padding-right:15px}
#tab-file .results-layout{grid-template-columns:minmax(0,1fr) 268px;gap:13px}
#tab-file .tags-col,#tab-file .items-table td:nth-child(3){display:none}
#tab-file .items-table th:first-child{width:51%}
#tab-file .items-table th:nth-child(2){width:15%}
#tab-file .items-table th:nth-child(4){width:18%}
#tab-file .items-table th:nth-child(5){width:16%}
#tab-file .item-symbol{display:none}
#tab-file .preview-top,#tab-file .preview-bottom{padding:17px}
#tab-file .preview-title{font-size:19px}
#tab-file .info-strip{padding:15px 17px}
#tab-file .reading-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:1000px) and (min-width:761px){#tab-file .library-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}
#tab-file .results-layout{grid-template-columns:minmax(0,1fr)}
#tab-file .preview-pane{position:relative;top:auto}
#tab-file .reading-layout{grid-template-columns:1fr}
#tab-file .reading-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#tab-file .reading-side>.finish-reading,#tab-file .reading-foot{grid-column:1/-1}}
@media(max-width:760px){#tab-file .demo-explainer{display:none}
#tab-file #lib-theme{display:none}
#tab-file .page-header{margin-bottom:23px;align-items:start;gap:10px}
#tab-file h1{font-size:34px}
#tab-file .eyebrow{font-size:8px;letter-spacing:1.3px}
#tab-file .subtitle{font-size:12px}
#tab-file .manager-button{font-size:0;padding:10px;min-width:42px;margin-top:24px}
#tab-file .manager-button svg{width:19px}
#tab-file .library-layout{display:block}
#tab-file .browse-panel{display:none;padding:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:17px;background:var(--surface)}
#tab-file .browse-panel.open{display:block}
#tab-file .browse-mobile{display:flex;align-items:center;gap:10px;margin-bottom:15px;font-size:11px;color:var(--muted)}
#tab-file .browse-mobile .icon-button{margin-left:auto}
#tab-file .segmented{display:flex;border:1px solid var(--line);border-radius:6px;padding:2px;gap:2px}
#tab-file .segmented button{border:0;background:none;padding:7px 12px;font-size:11px;border-radius:4px}
#tab-file .segmented button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
#tab-file .browse-panel[data-mode=tags] #lib-decks-block,#tab-file .browse-panel[data-mode=decks] #lib-tags-block{display:none}
#tab-file .browse-foot{display:none}
#tab-file .tag-name{font-size:12px}
#tab-file .tag-node{min-height:43px}
#tab-file .tag-expand{width:34px}
#tab-file .section-heading{margin-top:15px}
#tab-file #lib-tag-tree{max-height:360px}
#tab-file .tree-main{min-height:42px;font-size:12px}
#tab-file .library-toolbar{position:sticky;top:0;background:var(--bg);z-index:8;padding:7px 0;gap:6px}
#tab-file .main-search{height:42px;padding:0 10px}
#tab-file .main-search kbd{display:none}
#tab-file .main-search input{font-size:12px}
#tab-file #lib-mobile-browse{display:inline-flex}
#tab-file #lib-preview-toggle{display:none}
#tab-file #lib-select-mode{font-size:10px;padding:8px}
#tab-file .type-bar{margin-top:9px;gap:2px}
#tab-file .type-bar button{font-size:11px;padding:9px 8px 11px}
#tab-file .type-bar button span{font-size:9px;margin-left:4px}
#tab-file .results-top{font-size:10px;margin:16px 0 8px}
#tab-file .results-top>div{min-width:0}
#tab-file .results-top strong{display:block}
#tab-file .results-top .muted{margin:0}
#tab-file .results-layout{display:block}
#tab-file .items-table th{font-size:7px;letter-spacing:.3px;padding:8px 5px}
#tab-file .items-table th:first-child{width:64%;padding-left:10px}
#tab-file .items-table th:nth-child(2),#tab-file .items-table td:nth-child(2),#tab-file .tags-col,#tab-file .items-table td:nth-child(3){display:none}
#tab-file .items-table th:nth-child(4){width:18%}
#tab-file .items-table th:nth-child(5){width:18%}
#tab-file .items-table td{padding:14px 5px;font-size:9px}
#tab-file .item-name{gap:8px}
#tab-file .item-name strong{font-size:12px}
#tab-file .item-name .sub{font-size:10px}
#tab-file .item-symbol{width:28px;height:34px}
#tab-file .status-pill{font-size:8px;padding:3px 4px;white-space:normal}
#tab-file .preview-pane{display:none}
#tab-file .preview-pane.mobile-open{display:block;position:fixed;inset:32px 0 66px;z-index:15;border-radius:0;border:0;overflow:auto}
#tab-file .preview-back{display:inline-flex;margin-bottom:15px}
#tab-file .preview-top{padding:23px}
#tab-file .preview-title{font-size:26px}
#tab-file .preview-subtitle,#tab-file .preview-note{font-size:12px}
#tab-file .preview-question{font-size:16px;min-height:120px}
#tab-file .preview-actions .button{font-size:12px;min-height:44px}
#tab-file .preview-secondary .button{font-size:11px;min-height:39px}
#tab-file .info-strip{padding:20px 23px;gap:19px}
#tab-file .stat span{font-size:10px}
#tab-file .stat strong{font-size:13px}
#tab-file .preview-bottom{padding:23px}
#tab-file .preview-bottom h3{font-size:10px}
#tab-file .chip{font-size:11px}
#tab-file .linked-item{font-size:12px;padding:15px 0}
#tab-file .inline-editor{padding:17px 12px}
#tab-file .editor-field{font-size:14px}
#tab-file .editor-heading h3{font-size:14px}
#tab-file .editor-help{font-size:11px}
#tab-file .editor-footer .button{min-height:42px}
#tab-file .manager-panel{padding:17px}
#tab-file .manager-prompt{flex-direction:column}
#tab-file .manager-prompt textarea{width:100%;font-size:13px}
#tab-file .manager-presets button{font-size:10px}
#tab-file .manager-top h2{font-size:16px}
#tab-file .proposal-row{font-size:12px}
#tab-file .proposal-actions{flex-wrap:wrap}
#tab-file .toast{bottom:82px;font-size:11px;width:max-content}
#tab-file .reading-layout{display:block}
#tab-file .study-head{margin-bottom:20px}
#tab-file .study-context{max-width:150px;text-align:right;font-size:9px}
#tab-file .article-hero{padding:23px}
#tab-file .article-hero h1{font-size:28px;letter-spacing:-.6px}
#tab-file .article-meta{font-size:10px;gap:8px}
#tab-file .article-hero .why{font-size:12px;margin-top:17px}
#tab-file .section-nav button{padding:11px 10px;font-size:10px}
#tab-file .reading-section{padding:22px;min-height:290px}
#tab-file .reading-section h2{font-size:23px}
#tab-file .reading-section p{font-size:13px}
#tab-file .reading-navigation span{font-size:9px}
#tab-file .reading-actions{grid-template-columns:repeat(2,1fr);gap:9px}
#tab-file .reading-action{min-height:73px;padding:12px}
#tab-file .reading-action svg{float:left;margin:0 10px 0 0}
#tab-file .reading-action span{font-size:12px;padding-top:1px}
#tab-file .reading-side{margin-top:21px}
#tab-file .reading-side-panel{padding:20px}
#tab-file .reading-side-panel p,#tab-file .objective{font-size:12px}
#tab-file .tutor-field{font-size:13px}
#tab-file .review-shell{margin-top:15px}
#tab-file .review-card{padding:25px}
#tab-file .review-card h2{font-size:23px}
#tab-file .review-head{font-size:12px}
#tab-file .review-rating{gap:6px}
#tab-file .review-rating button{min-width:65px;font-size:11px;padding:9px}
#tab-file .activity-panel{padding:20px}
#tab-file .bulk-actions .button{min-height:36px}
#tab-file .list-foot{font-size:9px}}
@media(prefers-reduced-motion:no-preference){#tab-file button,#tab-file a{transition:background 120ms,border-color 120ms,color 120ms}
#tab-file .inline-editor,#tab-file .manager-panel,#tab-file .activity-panel{animation:lib-appear 150ms ease-out}
@keyframes lib-appear{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:none}}}
#tab-file .source-chooser{max-width:1080px;margin:0 auto 24px}
#tab-file .source-entry-actions,#tab-file .source-entry-detail{display:flex;flex-wrap:wrap;gap:10px}
#tab-file .source-entry-actions{border-bottom:1px solid var(--line);padding-bottom:12px}
#tab-file .source-entry-detail{padding-top:15px}
#tab-file .source-entry-detail p{width:100%;margin:0}
#tab-file .source-entry-detail input{max-width:540px}
#tab-file .editor-field[readonly]{color:var(--muted);background:var(--surface-2)}
#tab-file .results-layout.editing{grid-template-columns:minmax(0,1fr)}
#tab-file .results-layout.editing .preview-pane{display:none}
@media(min-width:761px){#tab-file .inline-editor{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
#tab-file .inline-editor>*{grid-column:1/-1}
#tab-file .inline-editor>.editor-group{grid-column:span 1;margin:11px 0}
#tab-file .inline-editor .editor-heading{margin-bottom:10px}
#tab-file .inline-editor .editor-group:nth-of-type(3) .editor-field{margin-top:36px}
#tab-file .inline-editor .chip-list{margin-bottom:9px}
#tab-file .inline-editor .editor-footer{margin-top:7px}
#tab-file .item-name strong{font-size:12px}
#tab-file .type-label,#tab-file .tag-short{font-size:10px}
#tab-file .stat span{font-size:9px}}
#tab-file .page-header h2{font-size:38px;letter-spacing:-1.3px;margin:4px 0}#tab-file .library-layout{grid-template-columns:200px minmax(0,1fr)}#tab-file .items-table{width:100%}#tab-file .button{color:var(--ink)}#tab-file .button.primary{background:var(--accent);color:var(--primary-ink)}#tab-file .button.danger{color:var(--error)}#tab-file .inline-editor textarea{width:100%;min-height:130px}#tab-file .inline-editor label{display:block}#tab-file .image-attachments{display:flex;flex-wrap:wrap;gap:12px}#tab-file .image-attachments img{max-width:170px;max-height:130px;object-fit:contain}#tab-file .inline-controls{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}#tab-file .inline-controls select{max-width:100%}#tab-file .skeleton{height:70px;background:var(--surface-2);border-bottom:1px solid var(--line);animation:lib-appear 1s alternate infinite}#tab-file .table-wrap{min-width:0}#tab-file .proposal-row select{max-width:100%}#tab-file .preview-pane{max-height:calc(100dvh - 80px);overflow:auto}#tab-file .saved-notes{white-space:pre-wrap;font-size:13px;line-height:1.7}#tab-file .preview-pane:not(.mobile-open){min-height:320px}#tab-file .article-hero{margin-bottom:20px}#tab-file .source-body{white-space:pre-wrap;line-height:1.8}#tab-file .source-chooser input{min-width:260px}#tab-file .toast{max-width:min(560px,90vw)}#tab-file .library-tools{margin-top:30px}#tab-file .items-table tr[aria-selected=true]{box-shadow:inset 3px 0 var(--accent)}#tab-file .library-layout .library-content{min-width:0}#tab-file .image-upload{grid-column:1/-1;border:1px solid var(--line);padding:16px;border-radius:12px}#tab-file .image-upload input[type=text]{width:100%}#tab-file .source-entry-detail{width:100%}
@media(max-width:1100px){#tab-file .library-layout{grid-template-columns:160px minmax(0,1fr)}#tab-file .results-layout{grid-template-columns:minmax(0,1fr)}#tab-file .preview-pane{position:relative;top:auto}#tab-file .results-layout.editing .preview-pane{display:none}}
@media(max-width:760px){#tab-file .library-layout{display:block}#tab-file .preview-pane.mobile-open{inset:0 0 70px;z-index:60;max-height:none}#tab-file .results-top{flex-wrap:wrap}#tab-file .results-top label{font-size:11px}#tab-file .page-header h2{font-size:32px}#tab-file .page-header{flex-wrap:wrap}#tab-file .library-toolbar input{font-size:16px}#tab-file .items-table th:nth-child(4),#tab-file .items-table td:nth-child(4){display:none}#tab-file .items-table .editor-row td{display:table-cell!important}#tab-file .reading-actions{grid-template-columns:1fr 1fr}}

#source-workspace *{box-sizing:border-box}
#source-workspace button,#source-workspace input,#source-workspace textarea,#source-workspace select{font:inherit}
#source-workspace button,#source-workspace a,#source-workspace input,#source-workspace textarea,#source-workspace select{-webkit-tap-highlight-color:transparent}
#source-workspace button{cursor:pointer}
#source-workspace button:disabled{cursor:default;color:var(--muted)}
#source-workspace button,#source-workspace a{touch-action:manipulation}
#source-workspace button:focus-visible,#source-workspace a:focus-visible,#source-workspace input:focus-visible,#source-workspace textarea:focus-visible,#source-workspace select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#source-workspace button{color:inherit}
#source-workspace a{color:var(--accent)}
#source-workspace [hidden]{display:none!important}
#source-workspace h1,#source-workspace h2,#source-workspace h3,#source-workspace p{margin-top:0}
#source-workspace svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
#source-workspace button svg{pointer-events:none}
#source-workspace button span{pointer-events:none}
#source-workspace .muted{color:var(--muted)}
#source-workspace .eyebrow{font:600 10px/1.5 var(--mono);letter-spacing:1.8px;color:var(--accent);margin-bottom:10px}
#source-workspace .demo-explainer{font:400 11px var(--font);letter-spacing:0;color:var(--muted);margin-left:12px}
#source-workspace .live-dot{height:5px;width:5px;border-radius:50%;background:var(--accent)}
#source-workspace .page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:36px}
#source-workspace h1{font-size:40px;line-height:1.15;letter-spacing:-1.6px;font-weight:620;margin-bottom:10px}
#source-workspace .title-dot{color:var(--accent)}
#source-workspace .subtitle{font-size:14px;color:var(--muted);margin:0}
#source-workspace .button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 14px;text-decoration:none;font-weight:550;font-size:12px}
#source-workspace .button:hover{border-color:var(--field-line);background:var(--surface-2)}
#source-workspace .button.primary{background:var(--accent);border-color:var(--accent);color:var(--primary-ink)}
#source-workspace .button.primary:hover{background:var(--primary-hover)}
#source-workspace .button.quiet{border-color:transparent;background:transparent;color:var(--muted)}
#source-workspace .button.danger{color:var(--error)}
#source-workspace .button.small{min-height:38px;padding:7px 10px}
#source-workspace .manager-button{color:var(--accent);min-height:44px}
#source-workspace .icon-button{border:0;background:transparent;color:var(--muted);padding:4px 8px;min-width:28px;min-height:28px;font-size:18px}
#source-workspace .icon-button:hover{color:var(--accent)}
#source-workspace .library-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:28px}
#source-workspace .browse-panel{padding-right:23px;border-right:1px solid var(--line);min-width:0}
#source-workspace .tree-main{width:100%;display:flex;align-items:center;gap:9px;border:0;background:none;text-align:left;padding:10px;border-radius:7px;font-size:12px;font-weight:550}
#source-workspace .tree-main.selected{background:var(--accent-soft);color:var(--accent)}
#source-workspace .tree-main:hover{background:var(--surface-2)}
#source-workspace .count{margin-left:auto;font:500 10px var(--mono);color:var(--muted)}
#source-workspace .section-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 0 8px;padding-left:10px;font-size:10px}
#source-workspace .section-heading h2{font:600 10px var(--mono);letter-spacing:1px;color:var(--muted);margin:0}
#source-workspace .deck-row{display:flex;align-items:center;gap:5px}
#source-workspace .deck-row .tree-main{font-weight:400;font-size:12px;padding:9px 10px}
#source-workspace .deck-dot{width:6px;height:6px;border:1px solid var(--accent);border-radius:2px;margin:0 2px}
#source-workspace .tag-search{display:flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:7px 9px;margin:0 0 12px}
#source-workspace .tag-search svg{width:14px;height:14px;color:var(--muted)}
#source-workspace input{color:var(--ink)}
#source-workspace .tag-search input,#source-workspace .main-search input{border:0;background:none;outline:none;min-width:0;width:100%}
#source-workspace .tag-search input{font-size:11px}
#source-workspace .tag-node{display:flex;gap:2px;align-items:center;min-height:34px;border-radius:6px}
#source-workspace .tag-node.active{background:var(--accent-soft);color:var(--accent)}
#source-workspace .tag-node:hover{background:var(--surface-2)}
#source-workspace .tag-expand{background:none;border:0;font-size:10px;color:var(--muted);width:22px;padding:3px;flex-shrink:0;min-height:30px}
#source-workspace .tag-name{flex:1;min-width:0;text-align:left;font-size:11px;background:none;border:0;padding:5px 3px;overflow-wrap:anywhere}
#source-workspace .tag-node .count{padding-right:5px}
#source-workspace #lib-tag-tree{max-height:440px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
#source-workspace .toggle-label{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);margin:13px 4px}
#source-workspace input[type=checkbox]{accent-color:var(--accent)}
#source-workspace .trash-link{margin-top:25px;color:var(--muted)}
#source-workspace .browse-foot{font-size:10px;line-height:1.8;color:var(--muted);margin:26px 10px}
#source-workspace .library-content{min-width:0}
#source-workspace .library-toolbar{display:flex;gap:8px;align-items:center}
#source-workspace .main-search{display:flex;align-items:center;gap:10px;flex:1;min-width:100px;height:42px;padding:0 13px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
#source-workspace .main-search svg{color:var(--muted);width:17px}
#source-workspace .main-search input{font-size:12px}
#source-workspace .main-search kbd{padding:0 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font:11px/1.6 var(--mono)}
#source-workspace .type-bar{display:flex;gap:4px;overflow:auto;margin:17px 0 0;border-bottom:1px solid var(--line);scrollbar-width:none}
#source-workspace .type-bar button{padding:8px 10px 12px;border:0;border-bottom:2px solid transparent;background:none;white-space:nowrap;font-size:11px;color:var(--muted)}
#source-workspace .type-bar button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}
#source-workspace .type-bar button span{margin-left:6px;font:10px var(--mono)}
#source-workspace .active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}
#source-workspace .active-filters:empty{display:none}
#source-workspace .filter-chip,#source-workspace .chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);padding:4px 7px;font-size:10px;border-radius:5px;max-width:100%;overflow-wrap:anywhere}
#source-workspace .filter-chip{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
#source-workspace .results-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:20px 0 13px;gap:10px}
#source-workspace .results-top strong{font-weight:550}
#source-workspace .results-top .muted{margin-left:8px}
#source-workspace .results-top label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:nowrap}
#source-workspace .results-top select{background:var(--bg);color:var(--ink);border:0;font-size:10px;max-width:130px}
#source-workspace .results-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.68fr);gap:18px;align-items:start}
#source-workspace .results-layout.no-preview{grid-template-columns:minmax(0,1fr)}
#source-workspace .results-layout.no-preview .preview-pane{display:none}
#source-workspace .table-wrap{min-width:0}
#source-workspace .items-table{width:100%;border-collapse:collapse;table-layout:fixed}
#source-workspace .items-table th{font:500 8px/1.4 var(--mono);color:var(--muted);letter-spacing:.8px;text-align:left;padding:9px 8px;border-bottom:1px solid var(--line)}
#source-workspace .items-table th:first-child{width:43%;padding-left:12px}
#source-workspace .items-table th:nth-child(2){width:13%}
#source-workspace .items-table th:nth-child(3){width:16%}
#source-workspace .items-table th:nth-child(4){width:14%}
#source-workspace .items-table th:nth-child(5){width:14%}
#source-workspace .items-table td{padding:15px 8px;border-bottom:1px solid var(--line-soft);vertical-align:middle;font-size:10px;overflow-wrap:anywhere}
#source-workspace .item-row{background:transparent}
#source-workspace .item-row.selected{background:var(--surface);box-shadow:inset 3px 0 var(--accent)}
#source-workspace .item-row:hover{background:var(--surface)}
#source-workspace .item-name{display:flex;gap:10px;align-items:center;padding:0;background:none;border:0;text-align:left;width:100%;min-height:38px}
#source-workspace .item-name strong{font-size:11px;font-weight:550;line-height:1.5;display:block}
#source-workspace .item-name .sub{color:var(--muted);display:block;font-size:9px;margin-top:4px}
#source-workspace .item-symbol{display:grid;place-items:center;width:31px;height:35px;border:1px solid var(--line);border-radius:5px;color:var(--accent);flex-shrink:0;background:var(--surface-2)}
#source-workspace .item-symbol svg{width:16px;height:16px}
#source-workspace .item-row input[type=checkbox]{margin:0 6px 0 0}
#source-workspace .type-label{color:var(--muted);font-size:9px}
#source-workspace .tag-short{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:9px}
#source-workspace .due{color:var(--warn)}
#source-workspace .miss{color:var(--error)}
#source-workspace .status-pill{font-size:8px;white-space:nowrap;display:inline-block;border:1px solid var(--line);border-radius:4px;padding:3px 5px;color:var(--muted)}
#source-workspace .status-pill.due{color:var(--warn)}
#source-workspace .status-pill.miss{color:var(--error)}
#source-workspace .list-foot{font-size:10px;color:var(--muted);padding:19px 9px}
#source-workspace .preview-pane{border:1px solid var(--line);border-radius:11px;background:var(--surface);overflow:hidden;position:sticky;top:18px;min-width:0}
#source-workspace .preview-top{padding:21px 20px 16px}
#source-workspace .preview-type{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
#source-workspace .preview-type .eyebrow{margin:0;font-size:9px}
#source-workspace .preview-title{font-size:21px;letter-spacing:-.55px;line-height:1.3;margin:0 0 10px;font-weight:580}
#source-workspace .preview-subtitle{font-size:10px;color:var(--muted);margin-bottom:17px}
#source-workspace .preview-question{border:1px solid var(--line);border-radius:7px;background:var(--surface-2);padding:17px;margin-bottom:17px;font-size:13px;line-height:1.7}
#source-workspace .preview-question .eyebrow{font-size:8px;margin-bottom:10px}
#source-workspace .preview-actions{display:flex;gap:7px;flex-wrap:wrap}
#source-workspace .preview-actions .primary{flex:1;min-width:120px}
#source-workspace .preview-actions .button{font-size:10px;padding:8px 10px}
#source-workspace .preview-secondary{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}
#source-workspace .preview-secondary .button{font-size:10px;min-height:30px;padding:5px 8px}
#source-workspace .info-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 20px;background:var(--surface-2)}
#source-workspace .stat span{font-size:8px;color:var(--muted);display:block;margin-bottom:4px}
#source-workspace .stat strong{font:500 11px var(--mono)}
#source-workspace .preview-bottom{padding:18px 20px}
#source-workspace .preview-bottom h3{font:600 9px var(--mono);color:var(--muted);letter-spacing:1px;margin:0 0 12px}
#source-workspace .chip-list{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 20px}
#source-workspace .linked-item{display:flex;gap:10px;align-items:center;border:0;background:none;width:100%;text-align:left;padding:10px 0;border-top:1px solid var(--line-soft);font-size:10px}
#source-workspace .linked-item>span:last-child{margin-left:auto;color:var(--muted)}
#source-workspace .linked-item svg{color:var(--accent);width:15px}
#source-workspace .preview-note{font-size:10px;color:var(--muted);line-height:1.7}
#source-workspace .preview-note.emphasis{border-left:2px solid var(--warn);padding-left:12px}
#source-workspace .scan-placeholder{display:grid;place-items:center;min-height:170px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;margin:15px 0;color:var(--muted);text-align:center;padding:25px}
#source-workspace .scan-placeholder svg{width:44px;height:44px;color:var(--accent);opacity:.8}
#source-workspace .scan-placeholder p{font-size:10px;margin:11px 0 0}
#source-workspace .empty-state{padding:48px 20px;text-align:center;border-bottom:1px solid var(--line)}
#source-workspace .empty-state>span svg{width:30px;height:30px;color:var(--muted)}
#source-workspace .empty-state h3{font-size:17px;margin:14px 0 5px}
#source-workspace .empty-state p{color:var(--muted);font-size:12px}
#source-workspace .editor-row td{padding:0}
#source-workspace .inline-editor{background:var(--surface);padding:19px;border:1px solid var(--accent);border-top:0;border-radius:0 0 10px 10px;margin-bottom:12px}
#source-workspace .editor-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}
#source-workspace .editor-heading h3{font-size:13px;margin:0}
#source-workspace .editor-heading .muted{font-size:9px}
#source-workspace .format-toolbar{display:flex;gap:2px;border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;background:var(--surface-2);padding:4px}
#source-workspace .format-toolbar button{border:0;background:none;min-width:30px;min-height:28px;font-size:11px}
#source-workspace .format-toolbar button:hover{background:var(--surface-3)}
#source-workspace .editor-label{display:block;font:500 9px var(--mono);letter-spacing:.6px;color:var(--muted);margin-bottom:6px}
#source-workspace .editor-field{width:100%;min-height:83px;border:1px solid var(--field-line);border-radius:6px;padding:11px;background:var(--bg);color:var(--ink);font-size:12px;line-height:1.65;resize:vertical}
#source-workspace .editor-field.first{border-radius:0 0 6px 6px}
#source-workspace .editor-group{margin:15px 0}
#source-workspace .editor-title-input{min-height:42px}
#source-workspace .editor-footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}
#source-workspace .editor-footer .muted{margin-right:auto;font-size:9px}
#source-workspace .editor-chip-button{background:var(--accent-soft);color:var(--accent);border:1px dashed var(--accent);padding:4px 8px;border-radius:5px;font-size:10px}
#source-workspace .editor-help{font-size:10px;color:var(--muted);margin:7px 0 13px}
#source-workspace .pasted-image{border:1px solid var(--line);border-radius:6px;margin:10px 0;padding:9px}
#source-workspace .pasted-image img{display:block;max-width:100%;max-height:160px;margin:auto}
#source-workspace .pasted-image label{display:flex;align-items:center;gap:9px;font-size:10px;margin-top:8px}
#source-workspace .pasted-image select{background:var(--surface-2);color:var(--ink);border:1px solid var(--line);padding:4px}
#source-workspace .inline-picker{border:1px solid var(--line);background:var(--surface-2);border-radius:7px;padding:12px;margin:13px 0}
#source-workspace .inline-picker label{display:flex;gap:7px;align-items:center;font-size:11px;margin:7px 0}
#source-workspace .inline-picker input[type=text],#source-workspace .inline-picker input[type=search]{width:100%;background:var(--bg);border:1px solid var(--field-line);border-radius:5px;padding:8px;font-size:11px}
#source-workspace .picker-results{max-height:170px;overflow:auto}
#source-workspace .picker-results button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px;font-size:10px}
#source-workspace .picker-results button:hover{background:var(--surface-3)}
#source-workspace .bulk-actions{padding:10px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--accent-soft);border:1px solid var(--accent);border-radius:7px;margin-top:12px;font-size:11px}
#source-workspace .bulk-actions .button{font-size:10px;min-height:31px}
#source-workspace .bulk-actions strong{margin-right:auto}
#source-workspace .manager-panel{border:1px solid var(--accent);border-radius:10px;background:var(--surface);padding:22px;margin-bottom:30px}
#source-workspace .manager-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#source-workspace .manager-top h2{font-size:18px;margin:0}
#source-workspace .manager-prompt{display:flex;gap:12px;align-items:start}
#source-workspace .manager-prompt textarea{flex:1;min-width:0;min-height:70px;background:var(--bg);color:var(--ink);border:1px solid var(--field-line);border-radius:7px;padding:11px;font-size:12px;resize:vertical}
#source-workspace .manager-presets{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
#source-workspace .manager-presets button{background:transparent;border:1px solid var(--line);border-radius:6px;font-size:10px;padding:6px 9px}
#source-workspace .manager-note{font-size:10px;color:var(--muted);margin:10px 0 0}
#source-workspace .proposal{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
#source-workspace .proposal h3{font-size:14px;margin:0 0 7px}
#source-workspace .proposal-row{display:flex;align-items:start;gap:10px;padding:11px 0;border-bottom:1px solid var(--line-soft);font-size:12px}
#source-workspace .proposal-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
#source-workspace .proposal-row input{margin-top:4px}
#source-workspace .proposal-actions{display:flex;align-items:center;gap:10px;margin-top:17px}
#source-workspace .proposal-actions span{font-size:10px;color:var(--muted)}
#source-workspace .study-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:30px}
#source-workspace .back-button{border:0;background:none;color:var(--muted);padding:6px 0;font-size:12px}
#source-workspace .study-context{color:var(--muted);font-size:10px}
#source-workspace .reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:26px;max-width:1150px;margin:0 auto}
#source-workspace .reading-main{min-width:0}
#source-workspace .article-hero{padding:33px;border:1px solid var(--line);background:var(--surface);border-radius:12px;position:relative;overflow:hidden}
#source-workspace .article-hero:after{content:'';position:absolute;right:-40px;top:-45px;width:190px;height:190px;border:1px solid var(--line);border-radius:50%;pointer-events:none}
#source-workspace .article-hero h1{font-size:34px;letter-spacing:-.9px;line-height:1.25;margin:12px 0 18px;max-width:650px;position:relative;z-index:1}
#source-workspace .article-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;align-items:center}
#source-workspace .article-hero .why{max-width:520px;margin:23px 0 0;font-size:13px;line-height:1.8;color:var(--muted)}
#source-workspace .section-nav{display:flex;gap:6px;overflow:auto;margin:22px 0 16px;scrollbar-width:none}
#source-workspace .section-nav button{flex:1;white-space:nowrap;background:transparent;border:1px solid var(--line);border-radius:6px;padding:11px 12px;font-size:11px;color:var(--muted)}
#source-workspace .section-nav button[aria-current=step]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
#source-workspace .reading-section{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:29px;min-height:280px}
#source-workspace .reading-section h2{font-size:24px;letter-spacing:-.5px;margin-bottom:13px;font-weight:580}
#source-workspace .reading-section p{font-size:14px;line-height:1.85;color:var(--muted)}
#source-workspace .reading-section .focus-box{border-left:2px solid var(--accent);padding:1px 0 1px 17px;margin:22px 0}
#source-workspace .focus-box strong{font-size:12px}
#source-workspace .focus-box p{font-size:12px;margin:6px 0 0}
#source-workspace .reading-navigation{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:10px}
#source-workspace .reading-navigation span{font-size:10px;color:var(--muted)}
#source-workspace .reading-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}
#source-workspace .reading-action{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:83px;text-align:left;padding:14px;color:var(--ink)}
#source-workspace .reading-action svg{display:block;color:var(--accent);width:18px;height:18px;margin-bottom:9px}
#source-workspace .reading-action span{display:block;font-size:11px;font-weight:550}
#source-workspace .reading-action:hover,#source-workspace .reading-action[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}
#source-workspace .activity-panel{background:var(--surface);border:1px solid var(--accent);border-radius:10px;padding:24px;margin-bottom:18px}
#source-workspace .activity-panel h2{font-size:19px;margin:0 0 15px}
#source-workspace .activity-panel p{font-size:13px;color:var(--muted);line-height:1.8}
#source-workspace .activity-top{display:flex;align-items:center;justify-content:space-between}
#source-workspace .takeaway{border-top:1px solid var(--line);padding:15px 0}
#source-workspace .takeaway h3{font-size:13px;margin:0 0 5px}
#source-workspace .takeaway p{font-size:12px;margin:0}
#source-workspace .reading-side{min-width:0}
#source-workspace .reading-side-panel{border:1px solid var(--line);border-radius:10px;padding:21px;background:var(--surface);margin-bottom:17px}
#source-workspace .reading-side-panel h2{font-size:13px;display:flex;align-items:center;gap:8px;margin:0 0 16px}
#source-workspace .reading-side-panel h2 svg{color:var(--accent);width:17px}
#source-workspace .objective{display:flex;gap:9px;font-size:11px;line-height:1.7;margin:13px 0}
#source-workspace .objective span{color:var(--accent);font:10px var(--mono);margin-top:3px}
#source-workspace .reading-side-panel p{font-size:11px;color:var(--muted);line-height:1.8}
#source-workspace .tutor-field{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--field-line);padding:10px;border-radius:6px;font-size:11px;resize:vertical;min-height:88px}
#source-workspace .finish-reading{width:100%;margin:6px 0 12px}
#source-workspace .reading-foot{font-size:10px;color:var(--muted);text-align:center}
#source-workspace .review-shell{max-width:780px;margin:30px auto}
#source-workspace .review-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
#source-workspace .review-card{border:1px solid var(--line);background:var(--surface);padding:38px;border-radius:13px;min-height:340px}
#source-workspace .review-card h2{font-size:25px;line-height:1.5;letter-spacing:-.5px;margin:20px 0 25px}
#source-workspace .review-card p{line-height:1.8;font-size:14px;color:var(--muted)}
#source-workspace .review-rating{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}
#source-workspace .review-rating button{flex:1}
#source-workspace .review-rating .again{color:var(--error)}
#source-workspace .review-rating .hard{color:var(--warn)}
#source-workspace .toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);background:var(--surface);color:var(--ink);padding:13px 18px;border:1px solid var(--accent);border-radius:8px;box-shadow:var(--shadow);font-size:12px;z-index:30;display:flex;gap:15px;align-items:center}
#source-workspace .toast button{border:0;background:none;color:var(--accent);font-weight:600}
#source-workspace .browse-mobile,#source-workspace #lib-mobile-browse,#source-workspace .preview-back{display:none}
#source-workspace .skip-link{position:absolute;left:10px;top:-90px;z-index:40;background:var(--surface);padding:12px}
#source-workspace .skip-link:focus{top:10px}
#source-workspace .breadcrumb{font-size:10px;color:var(--muted);display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}
#source-workspace .breadcrumb:empty{display:none}
#source-workspace .breadcrumb button{border:0;background:none;color:var(--accent);font-size:10px;padding:2px}
#source-workspace .schema-link{font-size:10px;color:var(--muted)}
@media(min-width:1500px){#source-workspace .items-table th:first-child{width:42%}
#source-workspace .items-table td{padding:17px 11px}
#source-workspace .item-name strong{font-size:12px}
#source-workspace .item-name .sub{font-size:10px}
#source-workspace .type-label,#source-workspace .tag-short{font-size:10px}
#source-workspace .status-pill{font-size:9px}}
@media(max-width:1250px) and (min-width:761px){#source-workspace .library-layout{grid-template-columns:174px minmax(0,1fr);gap:20px}
#source-workspace .browse-panel{padding-right:15px}
#source-workspace .results-layout{grid-template-columns:minmax(0,1fr) 268px;gap:13px}
#source-workspace .tags-col,#source-workspace .items-table td:nth-child(3){display:none}
#source-workspace .items-table th:first-child{width:51%}
#source-workspace .items-table th:nth-child(2){width:15%}
#source-workspace .items-table th:nth-child(4){width:18%}
#source-workspace .items-table th:nth-child(5){width:16%}
#source-workspace .item-symbol{display:none}
#source-workspace .preview-top,#source-workspace .preview-bottom{padding:17px}
#source-workspace .preview-title{font-size:19px}
#source-workspace .info-strip{padding:15px 17px}
#source-workspace .reading-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:1000px) and (min-width:761px){#source-workspace .library-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}
#source-workspace .results-layout{grid-template-columns:minmax(0,1fr)}
#source-workspace .preview-pane{position:relative;top:auto}
#source-workspace .reading-layout{grid-template-columns:1fr}
#source-workspace .reading-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#source-workspace .reading-side>.finish-reading,#source-workspace .reading-foot{grid-column:1/-1}}
@media(max-width:760px){#source-workspace .demo-explainer{display:none}
#source-workspace #lib-theme{display:none}
#source-workspace .page-header{margin-bottom:23px;align-items:start;gap:10px}
#source-workspace h1{font-size:34px}
#source-workspace .eyebrow{font-size:8px;letter-spacing:1.3px}
#source-workspace .subtitle{font-size:12px}
#source-workspace .manager-button{font-size:0;padding:10px;min-width:42px;margin-top:24px}
#source-workspace .manager-button svg{width:19px}
#source-workspace .library-layout{display:block}
#source-workspace .browse-panel{display:none;padding:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:17px;background:var(--surface)}
#source-workspace .browse-panel.open{display:block}
#source-workspace .browse-mobile{display:flex;align-items:center;gap:10px;margin-bottom:15px;font-size:11px;color:var(--muted)}
#source-workspace .browse-mobile .icon-button{margin-left:auto}
#source-workspace .segmented{display:flex;border:1px solid var(--line);border-radius:6px;padding:2px;gap:2px}
#source-workspace .segmented button{border:0;background:none;padding:7px 12px;font-size:11px;border-radius:4px}
#source-workspace .segmented button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
#source-workspace .browse-panel[data-mode=tags] #lib-decks-block,#source-workspace .browse-panel[data-mode=decks] #lib-tags-block{display:none}
#source-workspace .browse-foot{display:none}
#source-workspace .tag-name{font-size:12px}
#source-workspace .tag-node{min-height:43px}
#source-workspace .tag-expand{width:34px}
#source-workspace .section-heading{margin-top:15px}
#source-workspace #lib-tag-tree{max-height:360px}
#source-workspace .tree-main{min-height:42px;font-size:12px}
#source-workspace .library-toolbar{position:sticky;top:0;background:var(--bg);z-index:8;padding:7px 0;gap:6px}
#source-workspace .main-search{height:42px;padding:0 10px}
#source-workspace .main-search kbd{display:none}
#source-workspace .main-search input{font-size:12px}
#source-workspace #lib-mobile-browse{display:inline-flex}
#source-workspace #lib-preview-toggle{display:none}
#source-workspace #lib-select-mode{font-size:10px;padding:8px}
#source-workspace .type-bar{margin-top:9px;gap:2px}
#source-workspace .type-bar button{font-size:11px;padding:9px 8px 11px}
#source-workspace .type-bar button span{font-size:9px;margin-left:4px}
#source-workspace .results-top{font-size:10px;margin:16px 0 8px}
#source-workspace .results-top>div{min-width:0}
#source-workspace .results-top strong{display:block}
#source-workspace .results-top .muted{margin:0}
#source-workspace .results-layout{display:block}
#source-workspace .items-table th{font-size:7px;letter-spacing:.3px;padding:8px 5px}
#source-workspace .items-table th:first-child{width:64%;padding-left:10px}
#source-workspace .items-table th:nth-child(2),#source-workspace .items-table td:nth-child(2),#source-workspace .tags-col,#source-workspace .items-table td:nth-child(3){display:none}
#source-workspace .items-table th:nth-child(4){width:18%}
#source-workspace .items-table th:nth-child(5){width:18%}
#source-workspace .items-table td{padding:14px 5px;font-size:9px}
#source-workspace .item-name{gap:8px}
#source-workspace .item-name strong{font-size:12px}
#source-workspace .item-name .sub{font-size:10px}
#source-workspace .item-symbol{width:28px;height:34px}
#source-workspace .status-pill{font-size:8px;padding:3px 4px;white-space:normal}
#source-workspace .preview-pane{display:none}
#source-workspace .preview-pane.mobile-open{display:block;position:fixed;inset:32px 0 66px;z-index:15;border-radius:0;border:0;overflow:auto}
#source-workspace .preview-back{display:inline-flex;margin-bottom:15px}
#source-workspace .preview-top{padding:23px}
#source-workspace .preview-title{font-size:26px}
#source-workspace .preview-subtitle,#source-workspace .preview-note{font-size:12px}
#source-workspace .preview-question{font-size:16px;min-height:120px}
#source-workspace .preview-actions .button{font-size:12px;min-height:44px}
#source-workspace .preview-secondary .button{font-size:11px;min-height:39px}
#source-workspace .info-strip{padding:20px 23px;gap:19px}
#source-workspace .stat span{font-size:10px}
#source-workspace .stat strong{font-size:13px}
#source-workspace .preview-bottom{padding:23px}
#source-workspace .preview-bottom h3{font-size:10px}
#source-workspace .chip{font-size:11px}
#source-workspace .linked-item{font-size:12px;padding:15px 0}
#source-workspace .inline-editor{padding:17px 12px}
#source-workspace .editor-field{font-size:14px}
#source-workspace .editor-heading h3{font-size:14px}
#source-workspace .editor-help{font-size:11px}
#source-workspace .editor-footer .button{min-height:42px}
#source-workspace .manager-panel{padding:17px}
#source-workspace .manager-prompt{flex-direction:column}
#source-workspace .manager-prompt textarea{width:100%;font-size:13px}
#source-workspace .manager-presets button{font-size:10px}
#source-workspace .manager-top h2{font-size:16px}
#source-workspace .proposal-row{font-size:12px}
#source-workspace .proposal-actions{flex-wrap:wrap}
#source-workspace .toast{bottom:82px;font-size:11px;width:max-content}
#source-workspace .reading-layout{display:block}
#source-workspace .study-head{margin-bottom:20px}
#source-workspace .study-context{max-width:150px;text-align:right;font-size:9px}
#source-workspace .article-hero{padding:23px}
#source-workspace .article-hero h1{font-size:28px;letter-spacing:-.6px}
#source-workspace .article-meta{font-size:10px;gap:8px}
#source-workspace .article-hero .why{font-size:12px;margin-top:17px}
#source-workspace .section-nav button{padding:11px 10px;font-size:10px}
#source-workspace .reading-section{padding:22px;min-height:290px}
#source-workspace .reading-section h2{font-size:23px}
#source-workspace .reading-section p{font-size:13px}
#source-workspace .reading-navigation span{font-size:9px}
#source-workspace .reading-actions{grid-template-columns:repeat(2,1fr);gap:9px}
#source-workspace .reading-action{min-height:73px;padding:12px}
#source-workspace .reading-action svg{float:left;margin:0 10px 0 0}
#source-workspace .reading-action span{font-size:12px;padding-top:1px}
#source-workspace .reading-side{margin-top:21px}
#source-workspace .reading-side-panel{padding:20px}
#source-workspace .reading-side-panel p,#source-workspace .objective{font-size:12px}
#source-workspace .tutor-field{font-size:13px}
#source-workspace .review-shell{margin-top:15px}
#source-workspace .review-card{padding:25px}
#source-workspace .review-card h2{font-size:23px}
#source-workspace .review-head{font-size:12px}
#source-workspace .review-rating{gap:6px}
#source-workspace .review-rating button{min-width:65px;font-size:11px;padding:9px}
#source-workspace .activity-panel{padding:20px}
#source-workspace .bulk-actions .button{min-height:36px}
#source-workspace .list-foot{font-size:9px}}
@media(prefers-reduced-motion:no-preference){#source-workspace button,#source-workspace a{transition:background 120ms,border-color 120ms,color 120ms}
#source-workspace .inline-editor,#source-workspace .manager-panel,#source-workspace .activity-panel{animation:lib-appear 150ms ease-out}
@keyframes lib-appear{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:none}}}
#source-workspace .source-chooser{max-width:1080px;margin:0 auto 24px}
#source-workspace .source-entry-actions,#source-workspace .source-entry-detail{display:flex;flex-wrap:wrap;gap:10px}
#source-workspace .source-entry-actions{border-bottom:1px solid var(--line);padding-bottom:12px}
#source-workspace .source-entry-detail{padding-top:15px}
#source-workspace .source-entry-detail p{width:100%;margin:0}
#source-workspace .source-entry-detail input{max-width:540px}
#source-workspace .editor-field[readonly]{color:var(--muted);background:var(--surface-2)}
#source-workspace .results-layout.editing{grid-template-columns:minmax(0,1fr)}
#source-workspace .results-layout.editing .preview-pane{display:none}
@media(min-width:761px){#source-workspace .inline-editor{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
#source-workspace .inline-editor>*{grid-column:1/-1}
#source-workspace .inline-editor>.editor-group{grid-column:span 1;margin:11px 0}
#source-workspace .inline-editor .editor-heading{margin-bottom:10px}
#source-workspace .inline-editor .editor-group:nth-of-type(3) .editor-field{margin-top:36px}
#source-workspace .inline-editor .chip-list{margin-bottom:9px}
#source-workspace .inline-editor .editor-footer{margin-top:7px}
#source-workspace .item-name strong{font-size:12px}
#source-workspace .type-label,#source-workspace .tag-short{font-size:10px}
#source-workspace .stat span{font-size:9px}}
#source-workspace .page-header h2{font-size:38px;letter-spacing:-1.3px;margin:4px 0}#source-workspace .library-layout{grid-template-columns:200px minmax(0,1fr)}#source-workspace .items-table{width:100%}#source-workspace .button{color:var(--ink)}#source-workspace .button.primary{background:var(--accent);color:var(--primary-ink)}#source-workspace .button.danger{color:var(--error)}#source-workspace .inline-editor textarea{width:100%;min-height:130px}#source-workspace .inline-editor label{display:block}#source-workspace .image-attachments{display:flex;flex-wrap:wrap;gap:12px}#source-workspace .image-attachments img{max-width:170px;max-height:130px;object-fit:contain}#source-workspace .inline-controls{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}#source-workspace .inline-controls select{max-width:100%}#source-workspace .skeleton{height:70px;background:var(--surface-2);border-bottom:1px solid var(--line);animation:lib-appear 1s alternate infinite}#source-workspace .table-wrap{min-width:0}#source-workspace .proposal-row select{max-width:100%}#source-workspace .preview-pane{max-height:calc(100dvh - 80px);overflow:auto}#source-workspace .saved-notes{white-space:pre-wrap;font-size:13px;line-height:1.7}#source-workspace .preview-pane:not(.mobile-open){min-height:320px}#source-workspace .article-hero{margin-bottom:20px}#source-workspace .source-body{white-space:pre-wrap;line-height:1.8}#source-workspace .source-chooser input{min-width:260px}#source-workspace .toast{max-width:min(560px,90vw)}#source-workspace .library-tools{margin-top:30px}#source-workspace .items-table tr[aria-selected=true]{box-shadow:inset 3px 0 var(--accent)}#source-workspace .library-layout .library-content{min-width:0}#source-workspace .image-upload{grid-column:1/-1;border:1px solid var(--line);padding:16px;border-radius:12px}#source-workspace .image-upload input[type=text]{width:100%}#source-workspace .source-entry-detail{width:100%}
@media(max-width:1100px){#source-workspace .library-layout{grid-template-columns:160px minmax(0,1fr)}#source-workspace .results-layout{grid-template-columns:minmax(0,1fr)}#source-workspace .preview-pane{position:relative;top:auto}#source-workspace .results-layout.editing .preview-pane{display:none}}
@media(max-width:760px){#source-workspace .library-layout{display:block}#source-workspace .preview-pane.mobile-open{inset:0 0 70px;z-index:60;max-height:none}#source-workspace .results-top{flex-wrap:wrap}#source-workspace .results-top label{font-size:11px}#source-workspace .page-header h2{font-size:32px}#source-workspace .page-header{flex-wrap:wrap}#source-workspace .library-toolbar input{font-size:16px}#source-workspace .items-table th:nth-child(4),#source-workspace .items-table td:nth-child(4){display:none}#source-workspace .items-table .editor-row td{display:table-cell!important}#source-workspace .reading-actions{grid-template-columns:1fr 1fr}}

#source-workspace .article-hero h2{font-size:34px;line-height:1.25;margin:14px 0}#source-workspace input,#source-workspace textarea{width:100%}#source-workspace .reading-section{min-height:280px}#source-workspace .reading-section h3{font-size:26px;line-height:1.3}#source-workspace .reading-actions small{display:block;color:var(--muted);font-size:11px;margin-top:6px}#source-workspace .reading-action{background:var(--surface);color:var(--ink)}#source-workspace .source-card-draft{border-top:1px solid var(--line);margin:20px 0;padding-top:16px}#source-workspace .source-card-draft textarea{min-height:100px}.source-focused #study-now,.source-focused #teaching-workspace,.source-focused #source-choice,.source-focused #current-conversation{display:none!important}.source-focused #conversation-history{margin-top:32px}#source-workspace .source-entry-detail label{flex:1}#source-workspace .reading-side{position:sticky;top:16px;align-self:start}

/* Connected content can have long source titles. Keep it readable at laptop widths. */
#tab-file .item-name strong{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#tab-file .status-pill,#tab-file .type-label,#tab-file .tag-short,#tab-file .item-name .sub{font-size:11px;line-height:1.4}
.saved-tag-suggestions{margin-block:16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.saved-tag-suggestions label{display:flex;align-items:center;gap:8px;margin-block:8px}.saved-tag-suggestions select{max-width:100%;margin-block:8px}.saved-tag-suggestions button{margin:4px}

#tab-file #lib-toast{position:fixed;top:auto;right:auto;bottom:24px;left:50%;transform:translateX(-50%);height:auto;min-height:0;max-height:30dvh;width:max-content;max-width:min(560px,90vw);padding:12px 16px;display:flex;align-items:center;gap:12px;z-index:90;font-size:13px;overflow:auto}
#tab-file #lib-toast button{flex-shrink:0}
@media(max-width:760px){#tab-file #lib-toast{bottom:82px}}

.source-focused #focus-step-bar{display:none!important}

/* Source notes remain a reading page, with compact section navigation. */
#source-workspace .notes-contents{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 12px}
#source-workspace .notes-contents a{color:var(--accent);border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-size:12px;text-decoration:none}
#source-workspace .notes-contents a:hover,#source-workspace .notes-contents a:focus-visible{border-color:var(--accent);background:var(--surface-2)}
#source-workspace .source-note-section{position:relative;padding:24px 0 24px 42px;border-bottom:1px solid var(--line);scroll-margin-top:24px}
#source-workspace .source-note-section h4{font-size:18px;line-height:1.35;margin:0 0 12px;color:var(--ink)}
#source-workspace .source-note-section .source-body{font-size:15px;line-height:1.85;margin:0;max-width:75ch}
#source-workspace .note-number{position:absolute;left:0;top:27px;color:var(--accent);font-size:12px;font-variant-numeric:tabular-nums}

/* Illustrated source lessons and the same figure in optional recall cards. */
.source-figure{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.source-figure h5{font-size:14px;margin:0 0 12px;color:var(--ink)}
.source-picture{min-width:0}.source-picture>button{margin-top:8px;font-size:12px}
.source-image-frame{position:relative;overflow:hidden;aspect-ratio:1.5;background:var(--surface-2);border-radius:8px;border:1px solid var(--line)}
.source-image-frame img{position:absolute;height:auto;display:block;margin:0}
.source-image-frame:not(.loaded) img{opacity:0}.source-image-frame.loaded img{opacity:1}
.source-image-frame.unavailable{aspect-ratio:auto;min-height:130px}
.figure-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--muted);font-size:13px}
.source-image-cover{position:absolute;background:var(--ink);border:1px solid var(--accent);z-index:1}
.source-caption{font-size:13px;line-height:1.65;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.source-caption summary{cursor:pointer;color:var(--ink)}.source-caption p{margin-top:10px}
.figure-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px;font-size:12px}
.figure-actions a{color:var(--accent)}.figure-actions button{margin-left:auto}
.source-figure-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.source-figure-gallery .source-figure{margin:0}
.source-image-dialog{width:min(1200px,95vw);max-height:94dvh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:20px}
.source-image-dialog>button{margin-bottom:16px;position:sticky;top:0;z-index:2}
.source-image-dialog::backdrop{background:var(--backdrop)}
.source-image-editor{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
.source-image-editor>label{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0;font-size:13px}
.source-image-editor select{max-width:100%}.source-image-editor details{margin-top:12px}
.figure-coordinates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.figure-coordinates label{font-size:12px}.figure-coordinates input{width:100%;min-width:0}
#source-workspace .source-body strong{font-weight:700;color:var(--ink)}
#source-workspace .note-callout{padding:15px 18px;margin-top:16px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:var(--surface-2)}
#source-workspace .note-callout.pitfall{border-left-color:var(--warn)}
#source-workspace .callout-label{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
#source-workspace .note-callout.pitfall .callout-label{color:var(--warn)}
#source-workspace .note-callout p{font-size:14px;line-height:1.7;margin:8px 0 12px}
#source-workspace .figure-look-for{font-size:14px;line-height:1.7;border-left:2px solid var(--accent);padding-left:14px}
@media(max-width:760px){.source-figure-gallery{grid-template-columns:1fr}.source-figure{padding:12px}.figure-coordinates{grid-template-columns:repeat(2,minmax(0,1fr))}.source-image-dialog{padding:12px}.source-image-editor{padding:12px}}
@media(max-width:760px){#source-workspace .source-note-section{padding-left:30px}#source-workspace .source-note-section .source-body{font-size:14px}}

/* One source lesson: notes and figures together, one set of study actions. */
#source-workspace .source-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
#source-workspace .reading-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 18px}
#source-workspace .reading-finish{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px 0}
#source-workspace .reading-finish p{margin:0;font-size:13px}
#source-workspace .notes-introduction{color:var(--muted);font-size:14px;line-height:1.75;margin:12px 0 24px}
#source-workspace .figure-cross-reference{display:inline-block;color:var(--accent);font-size:13px;margin-top:12px}
#source-workspace .source-figure{scroll-margin-top:24px}
#source-workspace .additional-source-images{padding-left:0}
@media(max-width:760px){#source-workspace .article-hero{padding:20px}#source-workspace .article-hero h2{font-size:26px;overflow-wrap:anywhere}#source-workspace .reading-actions{gap:6px}#source-workspace .reading-action{padding:12px 8px;font-size:12px}#source-workspace .reading-actions small{font-size:10px}#source-workspace .reading-side{position:static}#source-workspace .reading-finish{align-items:flex-start;flex-direction:column}}

/* Optional Library tag editing must fit long hierarchical names on phones. */
.saved-tag-suggestions{min-width:0;max-width:100%;box-sizing:border-box}
.saved-tag-suggestions label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start}
.saved-tag-suggestions label input[type=checkbox]{width:auto!important;min-width:0;flex:none;margin-top:4px}
.saved-tag-suggestions label span,.saved-tag-suggestions label small{min-width:0;overflow-wrap:anywhere}
.saved-tag-suggestions label small{grid-column:2}
#source-workspace .inline-note-cards{min-width:0;margin-block:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#source-workspace .inline-note-cards h5{font-size:16px;margin:0 0 10px}
#source-workspace .inline-note-cards .source-card-draft:first-of-type{border-top:0;margin-top:0;padding-top:0}
#source-workspace .card-save-status{color:var(--accent-text,var(--ink));font-size:13px;margin-block:12px}
/* Focused Library: navigation can yield its space to studying. */
.library-progress { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; padding:1rem 0; border-bottom:1px solid var(--line); margin-bottom:1rem; }
.library-progress small { flex-basis:100%; }
.library-details { margin-top:1rem; border-top:1px solid var(--line); padding-top:.7rem; }
.library-details summary { cursor:pointer; color:var(--muted); font-size:.85rem; }
.library-details .inline-controls { padding-top:.8rem; }
#lib-browse-toggle { margin:0 0 .8rem; }
#tab-file .page-header{margin-bottom:24px;gap:16px}
#tab-file .library-header-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#tab-file .library-header-actions #lib-browse-toggle{margin:0}
#tab-file .library-progress{padding:12px 0;margin-bottom:0}
#tab-file .library-progress small{font-size:11px}
#tab-file .results-top{margin:14px 0 10px}
@media(min-width:761px) {
  #tab-file .library-layout.browse-collapsed { grid-template-columns:minmax(0,1fr); }
  #tab-file .library-layout.browse-collapsed > .browse-panel { display:none; }
}
.hotseat-entry,.hotseat-workspace,.hotseat-history{padding:24px;margin:20px 0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink)}
.hotseat-entry{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.hotseat-entry>div:first-child{flex:1;min-width:220px}.hotseat-entry h3{margin:4px 0}.hotseat-entry>small{flex-basis:100%}
.hotseat-actions,.hotseat-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.hotseat-top{justify-content:space-between}.hotseat-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:28px;margin-top:22px}
.hotseat-images{min-width:0}.hotseat-images iframe{width:100%;height:560px;border:1px solid var(--line);border-radius:12px;margin-top:16px;background:var(--surface-2)}
.hotseat-examiner{min-width:0}.hotseat-examiner h3{line-height:1.5;font-size:20px}.hotseat-examiner textarea,.hotseat-card textarea{width:100%;box-sizing:border-box;min-height:140px;background:var(--surface-2);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:14px;font:inherit;resize:vertical}
.hotseat-checks{display:grid;gap:10px;margin:16px 0}.hotseat-checks label{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--muted)}.hotseat-checks input{flex:none;width:17px;height:17px;accent-color:var(--accent)}
.hotseat-feedback{border-left:3px solid var(--accent);padding:12px 16px;background:var(--surface-2);line-height:1.6}.hotseat-exchanges{margin:14px 0}.hotseat-turn{border-top:1px solid var(--line);padding:14px 0;line-height:1.6}.hotseat-turn p{white-space:pre-wrap}.hotseat-examiner>button{margin:18px 8px 0 0}
.hotseat-debrief,.hotseat-card{border-top:1px solid var(--line);padding:20px 0}.hotseat-debrief>a{margin-right:18px}.hotseat-card textarea{display:block;margin:12px 0}.hotseat-history>details{border-top:1px solid var(--line);padding:14px 0}.hotseat-history summary,.hotseat-exchanges summary{cursor:pointer}
#tab-study.hotseat-open>:not(#hotseat-workspace){display:none!important}.hotseat-workspace[hidden]{display:none}
@media(max-width:760px){.hotseat-grid{grid-template-columns:minmax(0,1fr)}.hotseat-entry,.hotseat-workspace,.hotseat-history{padding:16px}.hotseat-images iframe{height:360px}.hotseat-examiner textarea,.hotseat-card textarea{font-size:16px}.hotseat-actions{width:100%}.hotseat-actions button{flex:1}.hotseat-entry .hotseat-actions{flex-wrap:wrap}}
