:root{font-family:Hiragino Sans,Yu Gothic UI,Yu Gothic,Meiryo,system-ui,sans-serif;color:#242424;background:#faf9f7;font-synthesis:none;color-scheme:light;--ink: #242424;--muted: #646464;--paper: #fff;--red: #a52b27;--red-dark: #862420;--red-soft: #fbf0ee;--red-edge: #edd8d4;--border: #e4dfda;--serif: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", Georgia, serif}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:0}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled,input:disabled{cursor:default;opacity:.64}button,select,input,textarea,summary,a{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--red);outline-offset:3px}p,h1,h2,h3{margin:0}p{overflow-wrap:anywhere}fieldset{min-inline-size:0;border:0;margin:0;padding:0}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip-link{position:fixed;z-index:10;padding:.8rem;color:var(--red);background:#fff}.danger-text{color:var(--red)}.site-header{background:var(--paper);border-bottom:1px solid var(--border)}.header-inner{max-width:68rem;padding:0 2rem;margin-inline:auto;min-height:77px;display:flex;align-items:stretch;justify-content:space-between;gap:1rem}.brand{display:inline-flex;text-align:left;align-items:center;gap:.8rem;background:none;padding:0;border:0}.brand-mark{background:var(--red);color:#fff;border-radius:7px;display:grid;place-items:center;inline-size:40px;block-size:40px;flex:0 0 40px}.brand-mark .icon-book{font-size:20px}.brand strong{display:block;font:700 2rem/.97 Georgia,serif;letter-spacing:-.055em}.brand strong span{color:var(--red)}.brand small{display:block;color:var(--muted);font-weight:650;font-size:.72rem;margin-top:.31rem;letter-spacing:.08em}.navigation{display:flex;gap:1.38rem;align-items:stretch}.navigation button{display:inline-flex;position:relative;align-items:center;justify-content:center;gap:.45rem;min-width:64px;padding:0 .45rem;border:0;background:transparent;color:#544f4b;font-size:.875rem;font-weight:700}.navigation button[aria-current]{color:var(--red)}.navigation button[aria-current]:after{content:"";position:absolute;bottom:-1px;inset-inline:.4rem;height:2px;background:var(--red)}.navigation button:hover{color:var(--red)}.mobile-add{display:none!important}.main-content{max-width:68rem;margin-inline:auto;padding:3.15rem 2rem 3rem;min-width:0}.main-content:focus{outline:none}.page-heading{margin-bottom:1.8rem}.study-heading{display:flex;align-items:end;gap:.75rem;justify-content:space-between}.eyebrow{color:var(--red);font-size:.72rem;font-weight:800;letter-spacing:.2em}h1{font:700 clamp(2rem,5vw,3.2rem)/1.2 var(--serif);letter-spacing:.04em;margin-top:.42rem}.page-description{margin-top:.7rem;color:var(--muted);font-size:.95rem;line-height:1.65}.desktop-add{margin-bottom:.15rem;white-space:nowrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:6px;border:1px solid transparent;min-height:44px;padding:.58rem .97rem;font-size:.875rem;font-weight:700;text-decoration:none}.primary{background:var(--red);color:#fff;border-color:var(--red)}.primary:hover:not(:disabled){background:var(--red-dark);border-color:var(--red-dark)}.secondary{background:var(--paper);border-color:#d9d1cb}.secondary:hover:not(:disabled){background:#f7f3ef}.danger{background:var(--paper);border-color:var(--red);color:var(--red)}.danger:hover:not(:disabled),.text-button:hover:not(:disabled){background:var(--red-soft)}.text-button,.back-button{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;color:var(--red);border:0;border-radius:5px;padding:.35rem .45rem;background:transparent;min-height:44px;font-weight:700;font-size:.875rem}.back-button{color:var(--muted);padding-inline:.1rem .55rem;margin-bottom:.6rem}.back-button:hover{color:var(--red)}.study-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(10rem,12rem) auto;align-items:center;gap:.7rem}.search-field{position:relative;color:var(--muted)}.search-field>.icon{position:absolute;pointer-events:none;top:50%;left:.85rem;translate:0 -50%}input:not([type=checkbox],[type=file]),textarea,select{background-color:var(--paper);color:var(--ink);width:100%;min-width:0;border:1px solid #d9d1cb;border-radius:6px;min-height:44px;padding:.55rem .75rem}.search-field input{padding-inline-start:2.4rem}input::placeholder,textarea::placeholder{color:#786f68;opacity:1}textarea{resize:vertical;display:block;line-height:1.7}select{appearance:none;padding-inline-end:2rem;background-image:linear-gradient(45deg,transparent 48%,#635951 50%),linear-gradient(135deg,#635951 48%,transparent 50%);background-position:calc(100% - 16px) 52%,calc(100% - 12px) 52%;background-size:4px 5px;background-repeat:no-repeat;text-overflow:ellipsis}.review-filter{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:0 .55rem;font-weight:650;font-size:.875rem;white-space:nowrap;color:#514943;cursor:pointer}.review-filter input{margin:0;width:1rem;height:1rem;accent-color:var(--red)}.list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.35rem;margin-block:1.2rem .55rem}.list-tools{display:flex;align-items:center;min-width:0;gap:.7rem}.question-count{flex:0 0 auto;color:var(--muted);font-size:.88rem;white-space:nowrap}.question-count strong{color:var(--ink);font:700 1.45rem/1 Georgia,serif;font-variant-numeric:tabular-nums}.sort-select{border-color:transparent;background-color:transparent;font-size:.83rem;color:var(--muted)}.sort-select:hover{background-color:#f3eeea}.answer-toggle{background:var(--paper);color:var(--red);border-color:var(--red-edge);white-space:nowrap}.answer-toggle:hover:not(:disabled){background:var(--red-soft)}.two-columns{display:grid;grid-template-columns:minmax(0,68fr) minmax(0,32fr)}.study-paper{background:var(--paper);border:1px solid var(--border);border-top:2px solid #403832;border-radius:3px}.column-headings{color:#504640;background:#f8f6f3;font-size:.875rem;font-weight:750;letter-spacing:.14em}.column-headings div{padding:.8rem 1.35rem}.column-headings div:nth-child(2),.answer-side,.empty-band{background:var(--red-soft);border-left:1px solid var(--red-edge)}.column-headings div:nth-child(2){color:var(--red);background:#f6e7e4}.study-list{list-style:none;margin:0;padding:0}.study-row,.empty-row{border-top:1px solid var(--border)}.question-side{min-width:0;padding:1.05rem .45rem 1.1rem 1.35rem;display:grid;grid-template-columns:auto minmax(0,1fr) 44px;gap:.65rem;align-content:start}.question-number{align-self:start;color:#554b43;font:700 .88rem/1.75 Georgia,serif;font-variant-numeric:tabular-nums;min-width:2ch;padding-top:.05rem}.question-text,.question-note{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.question-text{font-size:1.05rem;line-height:1.75}.question-note{margin-top:.42rem;padding-inline-start:.62rem;border-left:2px solid var(--red-edge);color:var(--muted);font-size:.875rem;line-height:1.68}.row-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .6rem}.row-meta:not(:empty){margin-bottom:.29rem}.chapter-label{color:#645c54;font-size:.75rem;font-weight:650;overflow-wrap:anywhere}.review-mark{color:var(--red);font-size:.75rem;font-weight:750;display:inline-flex;align-items:center;gap:.2rem}.review-mark .icon{font-size:.7rem}.blank{display:inline-block;min-width:2.65em;min-height:1.35em;max-width:100%;margin-inline:.14em;padding:.03em .25em;text-align:center;text-indent:0;color:#61544d;background:#fff;border:1px solid #81756c;border-radius:2px;vertical-align:.07em;font-size:.83em;line-height:1.35}.answer-side{min-width:0;display:grid;align-content:stretch}.answer-button{min-width:0;min-height:44px;display:flex;align-items:center;gap:.5rem;padding:.7rem 1.35rem;text-align:left;border:0;background:transparent;color:#775e57;font-size:.85rem;line-height:1.55}.answer-button+.answer-button{border-top:1px solid #efded9}.answer-button:hover{background:#f7e3df}.answer-button:focus-visible{outline-offset:-3px}.answer-button span:last-child{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.answer-button.is-visible{color:var(--red);font-weight:750;font-size:1rem}.answer-index{display:inline-grid;place-items:center;flex:0 0 auto;min-width:1.3em;padding:0 .2em;line-height:1.25;border:1px solid #d8b9b2;border-radius:2px;color:var(--red);font-size:.75rem;font-weight:750}.row-actions{align-self:start;position:relative}.row-actions summary{display:grid;place-items:center;height:44px;width:44px;list-style:none;border-radius:5px;cursor:pointer;color:#695d55}.row-actions summary::-webkit-details-marker{display:none}.row-actions summary:hover,.row-actions[open] summary{background:#f4eeea}.row-menu{position:absolute;z-index:3;top:42px;right:0;min-width:9.4rem;padding:.2rem;border:1px solid var(--border);background:var(--paper);border-radius:6px;box-shadow:0 4px 12px #32221c16}.row-menu button{display:block;width:100%;text-align:left;padding:.5rem .65rem;min-height:44px;background:none;border:0;white-space:nowrap;font-size:.875rem}.row-menu button:hover{background:#f7f1ee}.empty-content{padding:2.9rem 1.65rem;text-align:center;display:grid;justify-items:center;align-content:center;min-height:19rem;gap:.75rem}.empty-book{inline-size:52px;block-size:52px;display:grid;place-items:center;margin-bottom:.12rem;background:#f7ede9;color:var(--red);border:1px solid var(--red-edge);border-radius:9px}.empty-book .icon{font-size:1.5rem}.empty-content h2{font-family:var(--serif);font-size:clamp(1.15rem,3vw,1.65rem);letter-spacing:.02em}.empty-content p{max-width:25rem;color:var(--muted);font-size:.89rem;line-height:1.65}.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .65rem;margin-top:.25rem}.study-footnote{display:flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.82rem;margin-top:1.05rem}.show-more{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;margin-top:1.1rem;font-size:.875rem;color:var(--muted)}.editor-shell,.settings-shell{max-width:48rem;margin-inline:auto}.subpage-heading{margin-bottom:1.25rem}.editor-secondary{display:flex;justify-content:end;margin-bottom:.72rem}.form-panel,.settings-section{background:var(--paper);border:1px solid var(--border);border-top:2px solid #403832;border-radius:4px;padding:1.65rem}.field{margin-bottom:1.3rem}.field label{display:flex;align-items:center;gap:.52rem;margin-bottom:.52rem;font-weight:750}.chapter-field{max-width:20rem}.optional,.required{font-size:.73rem;font-weight:700;line-height:1.3}.optional{color:var(--muted)}.required{color:var(--red)}.field-tools{display:flex;justify-content:space-between;align-items:center;margin-top:.45rem;gap:.5rem}.char-count{font-size:.8rem;color:var(--muted);white-space:nowrap}.field-error,.message.error{color:var(--red-dark);font-size:.9rem;line-height:1.6}.field-error{margin-top:.45rem}.field-hint{margin-bottom:.6rem;color:var(--muted);font-size:.875rem;line-height:1.65}.answer-fields{border-inline-start:2px solid var(--red-edge);padding-inline-start:.8rem;margin-bottom:.95rem}.answer-fields .field:last-child{margin-bottom:0}.editor-preview{margin-top:1rem}.editor-preview .eyebrow{margin-bottom:.5rem;font-size:.75rem;letter-spacing:.08em}.preview-row{border:1px solid var(--border);border-radius:4px;line-height:1.7;overflow:hidden}.preview-row>*{min-width:0;padding:.65rem .75rem;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}.preview-row>div{background:var(--red-soft);border-left:1px solid var(--red-edge);color:var(--red);font-weight:700}.preview-row .answer-index{margin-inline-end:.3rem}.form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:end;gap:.55rem;margin-top:1.35rem}.action-buttons{display:flex;flex-wrap:wrap;gap:.55rem}.entry-count{margin-inline-end:auto;font-size:.82rem;color:var(--muted)}.message{padding:.75rem .85rem;border:1px solid var(--red-edge);background:var(--red-soft);border-radius:5px;margin-block:.75rem}.message .button{margin-top:.5rem}.bulk-preview{border-top:1px solid var(--border);padding-top:1.1rem}.bulk-preview h2{margin-bottom:.4rem;font-size:1.12rem}.bulk-rows{list-style:none;margin:0 0 .6rem;padding:0}.bulk-rows li{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:.5rem;padding:.65rem .3rem;border-top:1px solid var(--border);overflow-wrap:anywhere;font-size:.875rem}.bulk-answer{color:var(--red)}.duplicate-mark{margin-inline-start:.4rem;font-weight:750;background:var(--red-soft);padding:.12rem .28rem;border-radius:3px;white-space:nowrap}.bulk-duplicates{margin-top:.35rem;padding-inline-start:0}.settings-section+.settings-section{margin-top:1.1rem}.settings-heading{display:flex;align-items:start;gap:.72rem;margin-bottom:.9rem}.settings-heading>.icon{color:var(--red);font-size:1.15rem;margin-top:.32rem}.settings-heading h2{font-size:1.16rem}.settings-heading p,.settings-copy{color:var(--muted);line-height:1.62;font-size:.89rem;margin-top:.3rem}.settings-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}.file-button{position:relative;cursor:pointer}.file-button:focus-within{outline:2px solid var(--red);outline-offset:3px}.file-button.is-disabled{opacity:.64;cursor:default}.file-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:inherit}.chapter-form{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}.chapter-form input{flex:1 1 9rem;width:auto}.chapter-list{margin:.8rem 0 0;padding:0;list-style:none}.chapter-list li{min-height:44px;display:flex;align-items:center;gap:.55rem;padding:.25rem .15rem;border-bottom:1px solid var(--border)}.chapter-list li>span{min-width:0;font-weight:650;overflow-wrap:anywhere}.chapter-list small{color:var(--muted);white-space:nowrap}.chapter-operations{margin-inline-start:auto;display:flex;flex-wrap:wrap;flex-shrink:0}.restore-preview{border:1px solid var(--red-edge);padding:.85rem;background:#fff8f6;margin-top:.85rem;border-radius:5px}.restore-preview h3{font-size:1rem;margin-bottom:.4rem}.restore-preview p{line-height:1.65;font-size:.9rem}.restore-name{color:var(--muted)}.toast{position:fixed;z-index:6;bottom:1.5rem;left:50%;translate:-50% 0;width:max-content;max-width:calc(100% - 2rem);display:flex;align-items:center;gap:.52rem;padding:.75rem .95rem;color:#fff;background:#342b27;border-radius:6px;box-shadow:0 4px 12px #32221c22;font-size:.875rem;pointer-events:none}.icon{display:inline-block;position:relative;inline-size:1em;block-size:1em;flex:0 0 1em;color:inherit}.icon:before,.icon:after{position:absolute;content:"";display:block}.icon-plus:before,.icon-plus:after{inset:50% auto auto 50%;translate:-50% -50%;border-radius:1px;background:currentColor}.icon-plus:before{width:.8em;height:1.5px}.icon-plus:after{height:.8em;width:1.5px}.icon-book:before,.icon-book:after{width:54%;top:.08em;bottom:.11em;border:1.4px solid currentColor;border-radius:.12em .14em .04em .05em}.icon-book:before{left:0;transform:skewY(10deg)}.icon-book:after{right:0;transform:skewY(-10deg)}.icon-search:before{top:.04em;left:.04em;width:.66em;height:.66em;border:1.5px solid currentColor;border-radius:50%}.icon-search:after{left:.64em;top:.64em;width:.38em;height:1.5px;background:currentColor;transform-origin:left;rotate:45deg}.icon-eye:before,.icon-eye-off:before{inset:.16em .07em;border:1.4px solid currentColor;border-radius:66% 26%;rotate:45deg}.icon-eye:after{width:.32em;height:.32em;border:1.3px solid currentColor;border-radius:50%;inset:.34em}.icon-eye-off:after{width:1.04em;height:1.5px;background:currentColor;left:-.02em;top:.46em;rotate:45deg}.icon-bookmark:before{inset:.06em .18em;background:currentColor;clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%,0 0,15% 13%,15% 77%,50% 53%,85% 77%,85% 13%,15% 13%)}.icon-settings:before{content:"⚙";inset:50% auto auto 50%;translate:-50% -54%;line-height:1;font-size:1.24em}.icon-more:before{width:.17em;height:.17em;border-radius:50%;background:currentColor;left:.415em;top:.415em;box-shadow:-.29em 0 currentColor,.29em 0 currentColor}.icon-info:before{inset:.05em;border:1.2px solid currentColor;border-radius:50%}.icon-info:after{content:"i";inset:48% auto auto 50%;translate:-50% -53%;font:700 .72em/1 Georgia,serif}.icon-back:before,.icon-check:before{width:.47em;height:.47em;border:solid currentColor;border-width:0 0 1.5px 1.5px;left:.35em;top:.265em;rotate:45deg}.icon-check:before{left:.22em;width:.62em;height:.38em;rotate:-45deg}.icon-download:before,.icon-upload:before{width:.45em;height:.45em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;left:.275em;top:.19em;rotate:45deg}.icon-download:after,.icon-upload:after{inset:.52em .08em .06em;border:1.5px solid currentColor;border-top:0;border-radius:0 0 .12em .12em}.icon-upload:before{rotate:225deg;top:.12em}.icon-archive:before{inset:.31em .08em .08em;border:1.5px solid currentColor;border-radius:.1em}.icon-archive:after{inset:.09em 0 .67em;border:1.5px solid currentColor;border-radius:.09em}.icon-phone:before{inset:.03em .2em;border:1.5px solid currentColor;border-radius:.15em}.icon-phone:after{left:.4em;width:.2em;height:1.5px;bottom:.19em;background:currentColor}@media(max-width:46rem){.header-inner{padding-inline:1rem;min-height:66px}.brand{gap:.55rem}.brand-mark{inline-size:34px;block-size:34px;flex-basis:34px}.brand-mark .icon-book{font-size:17px}.brand strong{font-size:1.68rem}.brand small{font-size:.65rem}.mobile-add{display:inline-flex!important;align-self:center;white-space:nowrap}.desktop-add{display:none}.navigation{position:fixed;z-index:5;bottom:0;inset-inline:0;background:var(--paper);border-top:1px solid var(--border);min-height:56px;padding-bottom:env(safe-area-inset-bottom);justify-content:space-around;gap:0}.navigation button{flex:1;flex-direction:column;gap:.22rem;min-height:55px;font-size:.75rem}.navigation button[aria-current]:after{bottom:auto;top:-1px;inset-inline:22%}.navigation button .icon{font-size:1rem}.entry-header .navigation{display:none}.main-content{padding:1.65rem 1rem calc(5.15rem + env(safe-area-inset-bottom))}.entry-content{padding-bottom:calc(2rem + env(safe-area-inset-bottom))}.page-heading{margin-bottom:1.2rem}.page-description{font-size:.875rem;margin-top:.5rem}.study-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:.45rem}.search-field{grid-column:1 / -1}.list-toolbar{margin-block:.75rem .45rem}.list-tools{gap:.25rem}.sort-select{padding-inline-start:.38rem}.column-headings div{padding:.65rem}.question-side{padding:.7rem 0 .8rem .55rem;grid-template-columns:auto minmax(0,1fr) 44px;gap:.33rem}.question-number{font-size:.75rem}.question-text{font-size:1rem;line-height:1.72}.answer-button{padding:.55rem .54rem;font-size:.75rem;gap:.27rem}.answer-button.is-visible{font-size:.95rem}.empty-content{padding:1.7rem .7rem;min-height:17.5rem;gap:.6rem}.empty-content p{font-size:.8rem}.empty-book{inline-size:42px;block-size:42px}.form-panel,.settings-section{padding:.9rem}.toast{bottom:calc(4rem + env(safe-area-inset-bottom))}}@media(max-width:23rem){.main-content,.header-inner,.button{padding-inline:.65rem}.question-side{padding-inline-start:.42rem;gap:.23rem}.list-tools{gap:0}}
