/* FY Notes local pages. Load after base.css. All content stays within the shared shell. */
#fy-reading-modes .fy-topnav a[data-route]{display:flex;align-items:center;border:0;background:transparent;padding:3px 0 0;font-size:12px;color:var(--fy-muted);position:relative;white-space:nowrap}
#fy-reading-modes .fy-topnav a[data-route][aria-current="page"]{color:var(--fy-ink)}
#fy-reading-modes .fy-topnav a[data-route][aria-current="page"]::after{content:"";height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--fy-accent)}
#fy-reading-modes .fy-side-nav a[data-route]{display:flex;align-items:center;gap:10px;padding:12px;border:0;background:transparent;color:#babab8;font-size:12px;text-align:left;border-radius:3px}
#fy-reading-modes .fy-side-nav a[data-route][aria-current="page"]{background:#41413f;box-shadow:inset 2px 0 #ba7e69;color:#f5f5f3}
#fy-reading-modes .fy-side-nav a[data-route]>span:first-child{font-size:17px;width:18px;flex:none;text-align:center;color:#babab8}
#fy-reading-modes select,#fy-reading-modes textarea{font:inherit;color:var(--fy-ink)}
#fy-reading-modes select:focus-visible,#fy-reading-modes textarea:focus-visible,#fy-reading-modes summary:focus-visible{outline:2px solid var(--fy-accent);outline-offset:3px}
#fy-reading-modes .page-wrap{width:100%;max-width:1190px;margin:0 auto;min-width:0;overflow-wrap:anywhere}
#fy-reading-modes .page-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;min-height:26px;margin-bottom:23px;font-size:12px;color:var(--fy-muted)}
#fy-reading-modes .page-topline nav{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#fy-reading-modes .page-topline .separator{color:#a3a39d}
#fy-reading-modes .back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#686866;padding:4px 0;line-height:1.5}
#fy-reading-modes .back-link:hover{text-decoration:underline;text-underline-offset:4px}
#fy-reading-modes .page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:0 0 25px;margin-bottom:26px;border-bottom:1px solid #c6c6c4;min-width:0}
#fy-reading-modes .page-heading>div{min-width:0}
#fy-reading-modes .eyebrow,#fy-reading-modes .page-heading .eyebrow{display:block;color:var(--fy-accent);font-size:11px;line-height:1.6;letter-spacing:.06em;margin:0 0 9px;font-weight:500}
#fy-reading-modes .page-heading h1{font-size:34px;font-weight:500;line-height:1.35;letter-spacing:-.7px;margin:0;max-width:920px;text-wrap:pretty}
#fy-reading-modes .page-heading .summary,#fy-reading-modes .page-heading p{font-size:13px;line-height:1.85;color:var(--fy-muted);margin:12px 0 0;max-width:760px}
#fy-reading-modes .page-heading .eyebrow{margin:0 0 9px}
#fy-reading-modes .page-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;flex:none}
#fy-reading-modes .quiet-button,#fy-reading-modes .primary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;max-width:100%;padding:8px 14px;border:1px solid #c8c8c6;border-radius:3px;font-size:12px;font-weight:400;line-height:1.5;text-align:center;text-decoration:none;background:transparent;color:#5b5b59;white-space:normal}
#fy-reading-modes .primary-button{background:var(--fy-ink);border-color:var(--fy-ink);color:#fff}
#fy-reading-modes .quiet-button[aria-pressed="true"]{color:var(--fy-accent);border-color:#b88c83;background:#f5efeb}
#fy-reading-modes .quiet-button:disabled,#fy-reading-modes .primary-button:disabled,#fy-reading-modes .quiet-button[aria-disabled="true"],#fy-reading-modes .primary-button[aria-disabled="true"]{background:#e9e9e7;color:#858583;border-color:#dadad8;opacity:1}
#fy-reading-modes .tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.5;padding:3px 7px;max-width:100%;border-radius:2px;background:#edece6;color:#6a6a68;vertical-align:middle;overflow-wrap:anywhere}
#fy-reading-modes .tag.is-accent{background:#f1e7e2;color:#87493b}
#fy-reading-modes .tags{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#fy-reading-modes .inline-notice{padding:13px 17px;background:#eeeee7;border-left:2px solid #a28d77;font-size:12px;color:#6b6b69;line-height:1.85;margin:18px 0}
#fy-reading-modes .inline-notice>p{margin:0}
#fy-reading-modes .inline-notice strong{font-weight:500;color:var(--fy-ink)}

/* Detail pages: one calm paper surface and a separate navigation rail. */
#fy-reading-modes .detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 232px;align-items:start;gap:32px;min-width:0}
#fy-reading-modes .article-paper{min-width:0;background:var(--fy-paper);padding:34px 38px 38px;font-size:15px;line-height:1.95;overflow-wrap:anywhere}
#fy-reading-modes .article-paper>:first-child{margin-top:0}
#fy-reading-modes .article-paper>:last-child{margin-bottom:0}
#fy-reading-modes .article-paper p{margin:14px 0;max-width:68ch;color:#5b5b59}
#fy-reading-modes .article-paper h2{font-size:21px;font-weight:500;line-height:1.5;margin:0 0 14px;color:var(--fy-ink)}
#fy-reading-modes .article-paper h3{font-size:16px;font-weight:500;line-height:1.6;margin:22px 0 10px;color:var(--fy-ink)}
#fy-reading-modes .article-paper h4{font-size:14px;font-weight:500;line-height:1.6;margin:20px 0 9px}
#fy-reading-modes .article-paper a:not(.quiet-button):not(.primary-button){color:var(--fy-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
#fy-reading-modes .article-paper ul,#fy-reading-modes .article-paper ol{padding-left:23px;margin:14px 0;max-width:68ch;color:#5b5b59}
#fy-reading-modes .article-paper li{padding-left:4px;margin:8px 0}
#fy-reading-modes .article-paper li::marker{color:#868684;font-size:12px}
#fy-reading-modes .article-paper dl{max-width:100%}
#fy-reading-modes .article-paper dt{font-size:12px;color:var(--fy-muted)}
#fy-reading-modes .article-paper dd{margin:5px 0 16px;color:var(--fy-ink)}
#fy-reading-modes .article-paper blockquote{margin:22px 0;padding:7px 0 7px 20px;border-left:2px solid #b5b5b3;color:#6c6c6a;font-size:14px}
#fy-reading-modes .article-paper blockquote p{margin:5px 0}
#fy-reading-modes .article-paper code{font-family:Consolas,"Courier New",monospace;font-size:.91em;overflow-wrap:anywhere}
#fy-reading-modes .article-paper p code,#fy-reading-modes .article-paper li code{padding:2px 5px;background:#efefe9;color:#646462}
#fy-reading-modes .article-paper pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px 18px;background:#efefe9;font-size:12px;line-height:1.8;margin:20px 0}
#fy-reading-modes .article-paper img{max-width:100%;height:auto;display:block}
#fy-reading-modes .article-paper figure{margin:24px 0}
#fy-reading-modes .article-paper figcaption{font-size:12px;color:var(--fy-muted);margin-top:9px;line-height:1.7}
#fy-reading-modes .article-paper table{width:100%;border-collapse:collapse;font-size:13px;margin:20px 0;table-layout:fixed}
#fy-reading-modes .article-paper th,#fy-reading-modes .article-paper td{padding:11px 10px;text-align:left;border-bottom:1px solid var(--fy-line);vertical-align:top;overflow-wrap:anywhere}
#fy-reading-modes .article-paper th{color:#676765;font-size:12px;font-weight:500;background:#f3f3f1}
#fy-reading-modes .article-section{margin-top:30px;padding-top:26px;border-top:1px solid var(--fy-line);scroll-margin-top:25px}
#fy-reading-modes .article-section:first-child{margin-top:0;padding-top:0;border-top:0}
#fy-reading-modes .article-section p{font-size:15px;line-height:1.95}
#fy-reading-modes .record-missing{font-size:13px;line-height:1.9;color:#81817f;background:#f5f5ef;padding:16px 19px;margin:14px 0}
#fy-reading-modes .record-missing strong{display:block;font-size:13px;font-weight:500;color:#696967;margin-bottom:4px}
#fy-reading-modes .record-missing p{font-size:13px;line-height:1.9;color:inherit;margin:0}
#fy-reading-modes .metadata-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 30px;margin:0 0 29px;padding-bottom:24px;border-bottom:1px solid var(--fy-line)}
#fy-reading-modes .metadata-grid>div{min-width:0}
#fy-reading-modes .metadata-grid dt{font-size:11px;color:var(--fy-muted);margin:0;line-height:1.6}
#fy-reading-modes .metadata-grid dd{font-size:13px;line-height:1.8;color:var(--fy-ink);margin:5px 0 0;overflow-wrap:anywhere}
#fy-reading-modes .metadata-grid code{font:12px Consolas,"Courier New",monospace;overflow-wrap:anywhere}
#fy-reading-modes .reading-aside{min-width:0;position:sticky;top:24px;color:#747472;font-size:12px}
#fy-reading-modes .reading-aside h2,#fy-reading-modes .reading-aside h3{font-size:13px;font-weight:500;color:#60605e;margin:0 0 13px}
#fy-reading-modes .chapter-nav{padding-bottom:20px;border-bottom:1px solid #d3d3d1}
#fy-reading-modes details.chapter-nav>summary{font-size:13px;font-weight:500;color:#60605e;line-height:1.6;list-style-position:outside;margin-left:13px;margin-bottom:14px;padding-left:2px}
#fy-reading-modes .chapter-nav a{display:block;font-size:12px;line-height:1.7;padding:6px 0 6px 13px;border-left:1px solid #d0d0ce;margin-left:3px;color:#7d7d7b}
#fy-reading-modes .chapter-nav a[aria-current="location"],#fy-reading-modes .chapter-nav a.is-active{color:var(--fy-accent);border-left:2px solid var(--fy-accent);padding-left:12px}
#fy-reading-modes .chapter-nav a:hover{color:var(--fy-accent)}
#fy-reading-modes .related-list{margin-top:23px;padding:0;list-style:none}
#fy-reading-modes .related-list ul{padding:0;margin:0;list-style:none}
#fy-reading-modes .related-list li{padding:11px 0;border-bottom:1px solid #d9d9d7}
#fy-reading-modes .related-list a{display:block;font-size:12px;line-height:1.7;color:#686866;overflow-wrap:anywhere}
#fy-reading-modes .related-list p,#fy-reading-modes .related-list small{display:block;font-size:11px;color:#80807e;margin:4px 0 0;line-height:1.7}
#fy-reading-modes .related-list .tag{font-size:11px;margin-top:6px}
#fy-reading-modes .reading-progress{display:flex;align-items:center;gap:10px;font-size:11px;color:#828280;margin:18px 0 0}
#fy-reading-modes .reading-progress progress{appearance:none;width:100%;min-width:0;height:3px;border:0;background:#dddddb;border-radius:0;flex:1}
#fy-reading-modes .reading-progress progress::-webkit-progress-bar{background:#dddddb}
#fy-reading-modes .reading-progress progress::-webkit-progress-value{background:#9c6b58}
#fy-reading-modes .reading-progress progress::-moz-progress-bar{background:#9c6b58}
#fy-reading-modes .reading-progress>span{flex:none}
#fy-reading-modes .reading-progress .progress-track{height:3px;flex:1;min-width:0;background:#dddddb}
#fy-reading-modes .reading-progress .progress-fill{display:block;height:100%;background:#9c6b58}

/* Resource and note indexes use the same grid, with distinct content rhythms. */
#fy-reading-modes .catalog-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--fy-warm);padding:18px 21px;margin:0 0 24px;min-width:0}
#fy-reading-modes .catalog-toolbar>input,#fy-reading-modes .catalog-toolbar .catalog-search{flex:1 1 250px;min-width:0}
#fy-reading-modes .catalog-toolbar input,#fy-reading-modes .catalog-toolbar select{border:1px solid #c0c0be;background:#fff;border-radius:3px;min-height:42px;padding:9px 13px;font-size:13px;color:var(--fy-ink);max-width:100%;min-width:0}
#fy-reading-modes .catalog-toolbar input::placeholder{color:#929290}
#fy-reading-modes .catalog-toolbar select{flex:0 1 220px;width:220px;padding-right:31px}
#fy-reading-modes .catalog-toolbar label{font-size:11px;color:#737371;display:flex;flex-direction:column;gap:6px;min-width:0}
#fy-reading-modes .catalog-toolbar label input,#fy-reading-modes .catalog-toolbar label select{width:100%;flex:none}
#fy-reading-modes .catalog-toolbar .catalog-search input{width:100%}
#fy-reading-modes .catalog-count{font-size:12px;line-height:1.8;color:#828280;margin:0 0 13px}
#fy-reading-modes .catalog-results-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-width:0;margin:0 0 13px}
#fy-reading-modes .catalog-results-heading .catalog-count{min-width:0;margin:0}
#fy-reading-modes .catalog-results-heading .catalog-clear-filters{appearance:none;min-width:0;min-height:44px;border:0;background:transparent;font-family:inherit;white-space:normal;cursor:pointer}
#fy-reading-modes .catalog-list{background:var(--fy-paper);padding:0 27px}
#fy-reading-modes .catalog-item{display:grid;grid-template-columns:47px minmax(0,1fr) auto;gap:23px;padding:25px 0;align-items:center;border-bottom:1px solid var(--fy-line);min-width:0}
#fy-reading-modes .catalog-item:last-child{border-bottom:0}
#fy-reading-modes .catalog-type{display:grid;place-items:center;align-self:start;margin-top:2px;min-height:51px;font:11px Consolas,"Courier New",monospace;border:1px solid #bfbfbd;color:#7b7b79;background:#f5f5f3;padding:5px;overflow-wrap:anywhere}
#fy-reading-modes .catalog-content{min-width:0}
#fy-reading-modes .catalog-content h2,#fy-reading-modes .catalog-content h3{font-size:17px;line-height:1.6;font-weight:500;margin:0 0 5px;letter-spacing:0}
#fy-reading-modes .catalog-content h2 a,#fy-reading-modes .catalog-content h3 a{color:var(--fy-ink)}
#fy-reading-modes .catalog-content p{font-size:13px;line-height:1.8;color:#7c7c7a;margin:7px 0 0;max-width:65ch}
#fy-reading-modes .catalog-meta{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:#80807e}
#fy-reading-modes .catalog-meta code{font:11px Consolas,"Courier New",monospace}
#fy-reading-modes .catalog-action{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:180px}
#fy-reading-modes .notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0}
#fy-reading-modes .note-card{background:var(--fy-paper);padding:26px 29px 24px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;border-top:2px solid #ccccca}
#fy-reading-modes .note-card .eyebrow{margin-bottom:15px;font-size:11px;color:#878785}
#fy-reading-modes .note-card h2{font-size:20px;font-weight:500;line-height:1.6;margin:0 0 11px;letter-spacing:-.2px}
#fy-reading-modes .note-card p{font-size:13px;line-height:1.9;color:#7d7d7b;margin:0 0 20px;max-width:60ch}
#fy-reading-modes .note-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%;margin-top:auto;padding-top:18px;border-top:1px solid #dddddb;font-size:11px;color:#8c8c8a}
#fy-reading-modes .note-meta a{font-size:12px;color:var(--fy-accent)}
#fy-reading-modes .empty-state{text-align:center;background:var(--fy-paper);padding:48px 25px;min-width:0}
#fy-reading-modes .empty-state h2,#fy-reading-modes .empty-state h3{font-size:19px;font-weight:500;line-height:1.6;margin:0 0 10px}
#fy-reading-modes .empty-state p{font-size:13px;color:var(--fy-muted);line-height:1.9;max-width:480px;margin:0 auto 22px}

/* Transient feedback and native account dialog. */
#fy-reading-modes .toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:40;max-width:calc(100% - 32px);width:max-content;background:#333331;color:#fff;border-radius:4px;padding:12px 18px;font-size:12px;line-height:1.7;box-shadow:0 6px 20px #24242220;overflow-wrap:anywhere}
#fy-reading-modes .toast button{background:transparent;border:0;color:inherit;font-size:12px;margin-left:14px;padding:2px 0;text-decoration:underline;text-underline-offset:3px}
#fy-reading-modes .account-dialog{width:min(490px,calc(100% - 32px));max-height:calc(100% - 48px);padding:29px 31px;border:1px solid #d4d4d2;border-radius:5px;background:var(--fy-paper);color:var(--fy-ink);overflow:auto;box-shadow:0 22px 70px #1a1a1860}
#fy-reading-modes .account-dialog::backdrop{background:#282826a6}
#fy-reading-modes .account-dialog h2{font-size:22px;line-height:1.5;margin:0 0 15px}
#fy-reading-modes .account-dialog p{font-size:13px;line-height:1.9;color:#797977;margin:13px 0}
#fy-reading-modes .account-dialog .dialog-head{display:flex;align-items:start;justify-content:space-between;gap:20px}
#fy-reading-modes .account-dialog .dialog-close{background:transparent;border:0;padding:0 3px;color:#848482;font-size:24px;line-height:1.1}
#fy-reading-modes .account-dialog .page-actions{justify-content:flex-start;margin-top:21px}
#fy-reading-modes .account-dialog .metadata-grid{margin:19px 0;padding-bottom:18px}

/* The same articles and catalogs serve both modes. */
#fy-reading-modes[data-mode="workbench"] .page-wrap{max-width:1100px}
#fy-reading-modes[data-mode="workbench"] .page-heading{gap:21px;padding-bottom:22px;margin-bottom:23px}
#fy-reading-modes[data-mode="workbench"] .page-heading h1{font-size:29px;letter-spacing:-.5px}
#fy-reading-modes[data-mode="workbench"] .detail-layout{grid-template-columns:minmax(0,1fr) 200px;gap:24px}
#fy-reading-modes[data-mode="workbench"] .article-paper{padding:28px 29px 31px;font-size:14px}
#fy-reading-modes[data-mode="workbench"] .article-section p{font-size:14px}
#fy-reading-modes[data-mode="workbench"] .article-paper h2{font-size:20px}
#fy-reading-modes[data-mode="workbench"] .catalog-list{padding:0 23px}
#fy-reading-modes[data-mode="workbench"] .catalog-item{gap:19px;padding:22px 0}
#fy-reading-modes[data-mode="workbench"] .note-card{padding:23px 25px}
#fy-reading-modes[data-mode="workbench"] .note-card h2{font-size:19px}

@media(max-width:1120px){
  #fy-reading-modes .detail-layout{grid-template-columns:minmax(0,1fr) 205px;gap:25px}
  #fy-reading-modes .article-paper{padding:29px 30px 32px}
  #fy-reading-modes .page-heading h1{font-size:31px}
  #fy-reading-modes .page-actions{max-width:210px}
  #fy-reading-modes[data-mode="workbench"] .detail-layout{grid-template-columns:minmax(0,1fr) 175px;gap:20px}
  #fy-reading-modes[data-mode="workbench"] .article-paper{padding:25px}
  #fy-reading-modes .catalog-item{gap:19px}
  #fy-reading-modes .catalog-action{max-width:150px}
  #fy-reading-modes .note-card{padding:24px}
}
@media(max-width:900px){
  #fy-reading-modes .fy-topnav a[data-route]{font-size:12px}
  #fy-reading-modes .page-topline{margin-bottom:20px}
  #fy-reading-modes .page-heading,#fy-reading-modes[data-mode="workbench"] .page-heading{align-items:start;flex-direction:column;gap:16px;margin-bottom:22px;padding-bottom:21px}
  #fy-reading-modes .page-actions{max-width:none;justify-content:flex-start}
  #fy-reading-modes .detail-layout,#fy-reading-modes[data-mode="workbench"] .detail-layout{grid-template-columns:minmax(0,1fr);gap:19px}
  #fy-reading-modes .reading-aside{position:static;order:-1;display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
  #fy-reading-modes .chapter-nav{background:#ebebe9;padding:15px 19px;border-bottom:0}
  #fy-reading-modes details.chapter-nav>summary{margin-bottom:0}
  #fy-reading-modes details.chapter-nav[open]>summary{margin-bottom:11px}
  #fy-reading-modes .chapter-nav a{padding-top:7px;padding-bottom:7px}
  #fy-reading-modes .reading-aside>.related-list{margin-top:0;padding:0 19px}
  #fy-reading-modes .reading-aside>.related-list ul{display:flex;gap:10px 20px;flex-wrap:wrap}
  #fy-reading-modes .reading-aside>.related-list li{padding:0;border:0;flex:1 1 180px}
  #fy-reading-modes .reading-aside .reading-progress{margin-top:0;padding:0 19px}
  #fy-reading-modes .notes-grid{gap:20px}
  #fy-reading-modes[data-mode="workbench"] .notes-grid{grid-template-columns:minmax(0,1fr)}
  #fy-reading-modes .catalog-item{grid-template-columns:43px minmax(0,1fr);gap:14px 19px}
  #fy-reading-modes .catalog-action{grid-column:2;justify-content:flex-start;max-width:none}
  #fy-reading-modes .catalog-type{grid-column:1;grid-row:1 / 3}
}
@media(max-width:620px){
  #fy-reading-modes .page-topline{font-size:11px;margin-bottom:18px;gap:8px}
  #fy-reading-modes .back-link{font-size:12px}
  #fy-reading-modes .page-heading h1,#fy-reading-modes[data-mode="workbench"] .page-heading h1{font-size:27px;letter-spacing:-.4px;line-height:1.45}
  #fy-reading-modes .page-heading .summary,#fy-reading-modes .page-heading p{font-size:12px;line-height:1.85;margin-top:10px}
  #fy-reading-modes .page-heading .eyebrow{font-size:11px;margin:0 0 8px}
  #fy-reading-modes .page-actions{width:100%;gap:8px}
  #fy-reading-modes .quiet-button,#fy-reading-modes .primary-button{min-height:40px;font-size:12px;padding:9px 12px}
  #fy-reading-modes .article-paper,#fy-reading-modes[data-mode="workbench"] .article-paper{padding:24px 21px 27px;font-size:14px;line-height:1.9}
  #fy-reading-modes .article-section p,#fy-reading-modes[data-mode="workbench"] .article-section p{font-size:14px;line-height:1.9}
  #fy-reading-modes .article-paper h2,#fy-reading-modes[data-mode="workbench"] .article-paper h2{font-size:19px;line-height:1.55}
  #fy-reading-modes .article-paper h3{font-size:16px}
  #fy-reading-modes .article-section{padding-top:23px;margin-top:25px}
  #fy-reading-modes .metadata-grid{grid-template-columns:minmax(0,1fr);gap:15px;margin-bottom:24px;padding-bottom:21px}
  #fy-reading-modes .metadata-grid dd{font-size:13px;margin-top:3px}
  #fy-reading-modes .record-missing{padding:14px 15px;font-size:12px}
  #fy-reading-modes .record-missing p{font-size:12px}
  #fy-reading-modes .article-paper table{font-size:12px}
  #fy-reading-modes .article-paper th,#fy-reading-modes .article-paper td{padding:9px 7px}
  #fy-reading-modes .article-paper ul,#fy-reading-modes .article-paper ol{padding-left:19px}
  #fy-reading-modes .catalog-toolbar{padding:15px;gap:11px;align-items:stretch;margin-bottom:20px}
  #fy-reading-modes .catalog-toolbar>input,#fy-reading-modes .catalog-toolbar .catalog-search{flex-basis:100%;width:100%}
  #fy-reading-modes .catalog-toolbar select,#fy-reading-modes .catalog-toolbar>label{flex:1 1 100%;width:100%}
  #fy-reading-modes .catalog-toolbar input,#fy-reading-modes .catalog-toolbar select{font-size:16px;min-height:44px;padding:10px 12px}
  #fy-reading-modes .catalog-toolbar input::placeholder{font-size:13px}
  #fy-reading-modes .catalog-list,#fy-reading-modes[data-mode="workbench"] .catalog-list{padding:0 19px}
  #fy-reading-modes .catalog-item,#fy-reading-modes[data-mode="workbench"] .catalog-item{grid-template-columns:35px minmax(0,1fr);gap:13px 13px;padding:22px 0}
  #fy-reading-modes .catalog-type{min-height:43px;font-size:11px;padding:3px}
  #fy-reading-modes .catalog-content h2,#fy-reading-modes .catalog-content h3{font-size:16px;line-height:1.6}
  #fy-reading-modes .catalog-content p{font-size:12px;line-height:1.85}
  #fy-reading-modes .catalog-meta{font-size:11px;gap:7px 9px}
  #fy-reading-modes .catalog-action{gap:8px}
  #fy-reading-modes .catalog-action .quiet-button,#fy-reading-modes .catalog-action .primary-button{padding:8px 11px}
  #fy-reading-modes .notes-grid,#fy-reading-modes[data-mode="workbench"] .notes-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  #fy-reading-modes .note-card,#fy-reading-modes[data-mode="workbench"] .note-card{padding:23px 22px}
  #fy-reading-modes .note-card h2,#fy-reading-modes[data-mode="workbench"] .note-card h2{font-size:19px}
  #fy-reading-modes .note-card p{font-size:13px}
  #fy-reading-modes .inline-notice{font-size:12px;padding:12px 14px}
  #fy-reading-modes .empty-state{padding:37px 21px}
  #fy-reading-modes .empty-state h2{font-size:18px}
  #fy-reading-modes .account-dialog{padding:24px 23px;max-height:calc(100% - 32px)}
  #fy-reading-modes .account-dialog h2{font-size:20px}
  #fy-reading-modes .account-dialog p{font-size:12px}
  #fy-reading-modes .toast{bottom:16px;font-size:12px;padding:11px 14px}
}
@media(max-width:360px){
  #fy-reading-modes .page-heading h1,#fy-reading-modes[data-mode="workbench"] .page-heading h1{font-size:25px}
  #fy-reading-modes .article-paper,#fy-reading-modes[data-mode="workbench"] .article-paper{padding:22px 17px}
  #fy-reading-modes .catalog-list,#fy-reading-modes[data-mode="workbench"] .catalog-list{padding-left:16px;padding-right:16px}
  #fy-reading-modes .catalog-item,#fy-reading-modes[data-mode="workbench"] .catalog-item{gap:12px 10px;grid-template-columns:31px minmax(0,1fr)}
  #fy-reading-modes .note-card,#fy-reading-modes[data-mode="workbench"] .note-card{padding:21px 18px}
}
@media(pointer:coarse){
  #fy-reading-modes .quiet-button,#fy-reading-modes .primary-button,#fy-reading-modes .back-link,#fy-reading-modes .catalog-action a,#fy-reading-modes .chapter-nav a{min-height:44px}
  #fy-reading-modes .back-link{display:inline-flex;align-items:center}
  #fy-reading-modes .account-dialog .dialog-close{min-height:38px;min-width:38px;margin-top:-4px;margin-right:-7px}
}
@media(prefers-reduced-motion:no-preference){
  #fy-reading-modes .quiet-button,#fy-reading-modes .primary-button,#fy-reading-modes .chapter-nav a,#fy-reading-modes .catalog-content a,#fy-reading-modes .fy-topnav a,#fy-reading-modes .fy-side-nav a{transition:color 140ms ease,background-color 140ms ease,border-color 140ms ease}
  #fy-reading-modes .quiet-button:hover{background:#ebebe9}
  #fy-reading-modes .primary-button:hover{background:#474745}
  #fy-reading-modes .page-wrap{animation:fy-page-enter 160ms ease-out both}
  @keyframes fy-page-enter{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){
  #fy-reading-modes .page-wrap,#fy-reading-modes .quiet-button,#fy-reading-modes .primary-button,#fy-reading-modes .chapter-nav a{animation:none;transition:none;scroll-behavior:auto}
}
