/* 195: visible chapter titles; 194 compact 3-column / 52px size retained. */
.sketch-chapters{box-sizing:border-box;position:fixed;width:min(540px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #d9cbb7;border-radius:18px;padding:22px;background:#fffdf8;color:#293a34;box-shadow:0 24px 90px #0005}
.sketch-chapters::backdrop{background:#091411a6;backdrop-filter:blur(5px)}
.sketch-chapters h2{margin:4px 0 14px;font-size:23px}.sketch-chapters>p{font-size:12px;color:#817663;margin:0 36px 8px 0;line-height:1.6}
.sketch-chapters-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f0ece3;font-size:25px;color:inherit;cursor:pointer}
.sketch-chapters-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sketch-chapters-grid button{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:4px 8px;text-align:left;border:1px solid #d6c9b7;border-radius:9px;background:white;color:inherit;cursor:pointer;font:inherit;height:52px;min-height:52px;min-width:0;touch-action:manipulation}
.sketch-chapters-grid .chapter-button-label{display:block;flex:1;min-width:0;font-size:13px;line-height:14px;white-space:normal;overflow-wrap:anywhere;word-break:normal;color:inherit}
.sketch-chapters-grid .chapter-button-number{display:inline;font-size:inherit;font-weight:700;line-height:inherit;white-space:nowrap}
.sketch-chapters-grid .chapter-button-separator{display:inline;color:#a5967c;font-size:inherit;white-space:normal}
.sketch-chapters-grid .chapter-button-title{display:inline;font-size:inherit;line-height:inherit;font-weight:500;color:inherit;white-space:normal}
.sketch-chapters-grid .chapter-button-state{display:block;flex:0 0 9px;font-size:12px;line-height:1;color:#756340;text-align:right}
.sketch-chapters-grid button:not(:disabled):hover{background:#edf3ec;border-color:#557161}.sketch-chapters-grid button[aria-current=page]{border-color:#385a4c;background:#eaf0e9;box-shadow:inset 3px 0 #385a4c}
.sketch-chapters-grid button:disabled{background:#f3f1ec;color:#99968e;border-color:#e8e3db;cursor:default}.sketch-chapters-grid button:disabled span{color:inherit}.sketch-chapters button:focus-visible{outline:3px solid #b79451;outline-offset:2px}
.chapter-device-toggle{display:flex;gap:6px;margin:0 0 14px}.chapter-device-toggle button{min-height:40px;flex:1;padding:7px 12px;border-radius:8px;border:1px solid #d6c9b7;background:#f3f1ec;color:#526359;font:inherit;font-size:13px;cursor:pointer}.chapter-device-toggle button[aria-pressed=true]{background:#2d4c40;color:#fff;border-color:#2d4c40}
.sketch-chapters-full{width:100%;padding:11px;margin-top:12px;background:#294b43;color:white;border:0;border-radius:9px;font:inherit;cursor:pointer}.sketch-chapters .sketch-chapters-note{margin:12px 0 0;line-height:1.6;font-size:11px}
@media(max-width:420px){.sketch-chapters{padding:17px}.sketch-chapters-grid{gap:6px}.sketch-chapters-grid button{padding-inline:5px;gap:3px}.sketch-chapters-grid .chapter-button-label{font-size:12px;line-height:14px}.sketch-chapters-grid .chapter-button-state{flex-basis:7px;font-size:11px}}
@media(max-width:320px){.sketch-chapters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
