.handbook-export-open{border:1px solid #ff885e;background:#fff9f3;color:#dc6434;border-radius:20px;padding:9px 16px;cursor:pointer;font:inherit;font-size:13px}.handbook-heading-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}.handbook-note{max-width:980px;margin:18px auto 6px;padding:16px 20px;border:1px solid #ead8c8;border-radius:16px;background:#fffdf9;text-align:left}.handbook-note-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.handbook-note-head strong{font-size:16px;color:#654b39}.handbook-note button{border:0;background:transparent;color:#da6a3d;cursor:pointer;padding:7px;font:inherit;font-size:13px}.handbook-note textarea{display:block;width:100%;min-height:140px;resize:vertical;box-sizing:border-box;margin:12px 0 8px;border:1px solid #e6d6c7;border-radius:10px;background:white;padding:14px;color:#58483d;font:inherit;line-height:1.9;white-space:pre-wrap}.handbook-note small{display:block;color:#8a7b6e;font-size:12px;line-height:1.7}.handbook-note-status{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:8px}.handbook-note-conflict{border-top:1px solid #edddd0;margin-top:8px;padding-top:8px;color:#a44729}.handbook-note button:focus-visible,.handbook-export-open:focus-visible,.handbook-note textarea:focus-visible{outline:3px solid #ffb58d;outline-offset:2px}.handbook-phone-entry{display:flex;gap:12px;margin:18px 0}.handbook-phone-entry button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #ecd9c8;background:#fffdf8;border-radius:14px;min-height:56px;color:#604734;font:inherit;font-weight:600}.handbook-phone-entry i{color:#f77a43}.header-nav{gap:5px!important}.header-nav>button{padding-left:12px!important;padding-right:12px!important;white-space:nowrap}.handbook-export .pc-counter{line-height:1.8}.handbook-export label input[type=checkbox]{accent-color:#ef7844}
@media(max-width:1100px) and (min-width:761px){.header-shell.compact-header{gap:10px}.brand-name{font-size:20px!important}.header-nav>button{font-size:13px!important;padding-left:7px!important;padding-right:7px!important}.header-actions{gap:6px!important}}
@media(max-width:760px){.handbook-heading-actions{align-items:flex-end;gap:8px;flex-direction:column}.handbook-export-open{font-size:12px;padding:8px 12px}.card-library-heading{gap:10px!important}.handbook-note{padding:14px;margin:14px 0}.handbook-note textarea{font-size:16px}.handbook-note-status{align-items:flex-start}.handbook-phone-entry{margin:14px 0}.handbook-phone-entry button{font-size:14px}.handbook-note-conflict button{display:block}.handbook-heading-actions .card-save-note{font-size:10px}}

.handbook-export-open{white-space:nowrap;flex-shrink:0}.card-study-header .handbook-heading-actions{flex-shrink:0}
@media(max-width:760px){.card-v104 .card-study-head{grid-template-columns:42px minmax(0,1fr) auto}.card-study-head .handbook-heading-actions{min-width:76px}.card-study-head .handbook-export-open{padding:7px 10px}.card-v104 .card-memory-rate{scroll-margin-block:110px}}
/* Keep personal notes aligned with the study card, including when collapsed. */
.card-v104 .handbook-note{width:min(920px,calc(100vw - 150px));max-width:100%;box-sizing:border-box;margin:20px auto 6px;padding:24px 28px;border-radius:20px;background:#fffdf9;box-shadow:0 8px 24px rgba(88,56,32,.04)}
.card-v104 .handbook-note-head strong{font-size:18px}
.card-v104 .handbook-note textarea{min-height:220px;padding:18px;font-size:16px;line-height:1.9;margin-top:16px}
@media(max-width:700px){.card-v104 .handbook-note{width:100%;padding:18px 16px;margin:16px 0 6px;border-radius:18px}.card-v104 .handbook-note textarea{min-height:180px;padding:14px}.card-v104 .handbook-note-head strong{font-size:17px}}
@media(max-width:700px){.card-v104 .handbook-note{width:calc(100% - 34px);margin:16px auto 6px}}
@media(min-width:701px) and (max-width:1100px){.card-v104 .card-memory-nav.prev{left:-66px}.card-v104 .card-memory-nav.next{right:-66px}}

@media(max-width:900px){.pwa-mobile-bottom-nav{box-sizing:border-box;padding-left:4px;padding-right:4px}.pwa-mobile-bottom-nav button{min-width:44px;padding-left:0;padding-right:0}.pwa-mobile-bottom-nav button>span:last-child{font-size:12px;line-height:1.4;white-space:nowrap;letter-spacing:0}}

/* Mobile handbook: review reminder followed by a compact chapter directory. */
.card-library-heading .handbook-intro{line-height:1.85}
@media(max-width:767px){
  .card-v104 .card-deck-library{padding:16px 8px 28px;border:0;border-radius:0;background:#fffdf9}
  .card-v104 .card-library-heading{display:block}
  .card-v104 .card-library-heading h1{font-size:28px;line-height:1.3;font-weight:800;color:#3c291f}
  .card-v104 .card-library-heading .handbook-intro{margin-top:8px;font-size:13px;line-height:1.65;color:#82766d}
  .card-v104 .card-library-heading .handbook-heading-actions{align-items:flex-start;margin-top:8px}
  .card-v104 .card-library-controls{display:block;margin:14px 0 16px}
  .card-v104 .card-subject-tabs{gap:0;border-bottom:1px solid #eae2da}
  .card-v104 .card-subject-tabs button{flex:1 1 0;min-width:0;min-height:48px;padding:10px 0 13px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#726960;font-size:15px;font-weight:600}
  .card-v104 .card-subject-tabs button.active{color:#f56b3c;border-bottom-color:#ff7045;background:transparent;font-weight:750}
  .card-v104 .handbook-export-open{display:none}
  .handbook-due-panel{padding:18px;border-radius:16px;background:#fff3eb;margin:0 0 18px;color:#3c291f}
  .handbook-due-panel h2{font-size:15px;line-height:1.4;margin:0;font-weight:750}
  .handbook-due-count{display:flex;align-items:baseline;gap:10px;margin:4px 0 0}
  .handbook-due-count strong{font-size:54px;font-weight:750;line-height:1.15;letter-spacing:-.04em;color:#ff7045;font-variant-numeric:tabular-nums}
  .handbook-due-count span{font-size:18px;font-weight:600}
  .handbook-due-copy{font-size:16px;line-height:1.5;margin:4px 0 14px;font-weight:600}
  .handbook-due-panel>button{display:block;width:100%;min-height:44px;padding:10px 16px;border:0;border-radius:14px;background:#ff7045;color:#fff;font:inherit;font-size:16px;font-weight:650;cursor:pointer}
  .handbook-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 2px;min-height:44px}
  .handbook-directory-heading>h2{font-size:20px;line-height:1.4;margin:0;color:#3c291f;font-weight:750}
  .handbook-collection-tabs{display:flex;align-items:center;gap:4px;margin:4px 0 10px;padding:3px;background:#f5efe9;border-radius:10px}
  .handbook-collection-tabs>button{display:flex;align-items:center;justify-content:center;gap:4px;flex:1 1 auto;min-width:0;min-height:40px;padding:7px 4px;border:0;border-radius:8px;background:transparent;color:#75685f;font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
  .handbook-collection-tabs>button[aria-pressed=true]{background:#fffdf9;color:#d85e34;font-weight:700;box-shadow:0 1px 4px #65452e0d}
  .handbook-collection-count{font-size:12px;font-variant-numeric:tabular-nums;color:#d16c43}
  .handbook-chapter-row{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(88px,.75fr) 12px;gap:10px;align-items:center;width:100%;min-height:64px;padding:12px 0;border:0;border-bottom:1px solid #ece3db;background:transparent;color:#3c291f;text-align:left;font:inherit;cursor:pointer}
  .handbook-chapter-number{font:700 29px/1 Georgia,serif;letter-spacing:-.025em;color:#4b2c1c}
  .handbook-chapter-copy{min-width:0}
  .handbook-chapter-copy strong{display:block;font-size:14px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
  .handbook-chapter-copy small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:#81776e}
  .handbook-chapter-progress{display:flex;align-items:center;gap:8px;min-width:0;color:#82786f;font-size:12px;font-variant-numeric:tabular-nums}
  .handbook-chapter-progress>span{min-width:30px;text-align:right}
  .handbook-chapter-progress progress{appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:7px;overflow:hidden;border:0;border-radius:7px;background:#ede9e5}
  .handbook-chapter-progress progress::-webkit-progress-bar{background:#ede9e5;border-radius:7px}
  .handbook-chapter-progress progress::-webkit-progress-value{background:#ff754b;border-radius:7px}
  .handbook-chapter-progress progress::-moz-progress-bar{background:#ff754b;border-radius:7px}
  .handbook-chapter-row>i{font-size:11px;color:#847a71}
  .handbook-chapter-row:active{background:#fff4ec}
  .handbook-due-panel button:focus-visible,.handbook-collection-tabs button:focus-visible,.handbook-chapter-row:focus-visible{outline:2px solid #e97442;outline-offset:3px}
  .card-v104 .card-library-footer{margin-top:22px;justify-content:flex-end}
  .card-v104 .card-library-footer>span{display:none}
  .card-v104 .card-library-footer>button{min-height:44px;padding:10px 0 10px 14px}
  .card-v104 .card-study-head .handbook-heading-actions{min-width:0}
}
@media(max-width:360px){
  .card-v104 .card-subject-tabs button{font-size:14px}
  .handbook-chapter-row{grid-template-columns:34px minmax(0,1fr) 74px 10px;gap:8px}
  .handbook-chapter-number{font-size:27px}
  .handbook-chapter-progress{gap:5px;font-size:11px}
  .handbook-chapter-progress>span{min-width:27px}
  .card-v104 .card-library-heading .handbook-intro{font-size:12px}
}
