/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.contents{display:contents}.hidden{display:none}.grow{flex-grow:1}.resize{resize:both}}:root{--canvas:#fff7fa;--card:#fff;--muted:#fff0f3;--accent:#ffe9ed;--ink:#2b141e;--sub:#633b4d;--faint:#9c7888;--border:#ffe4e8;--brand:#e11d48;--hover:#be123c;--shadow:#f43f5e1f;color:var(--ink);background:var(--canvas);font-family:system-ui,-apple-system,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}[data-theme=ocean-blue]{--canvas:#f5f9ff;--muted:#eef4ff;--accent:#dee8fc;--ink:#13233d;--sub:#415575;--faint:#7c8ba3;--border:#c4d5fa;--brand:#1c4bb3;--hover:#183f96;--shadow:#2563eb1f}[data-theme=forest-tea]{--canvas:#f6faf5;--muted:#eaf5eb;--accent:#dcece2;--ink:#183225;--sub:#48614e;--faint:#819385;--border:#c0ddcb;--brand:#10612e;--hover:#0d5227;--shadow:#15803d1f}[data-theme=amber-paper]{--canvas:#fffbf4;--muted:#fff2dd;--accent:#f4e5da;--ink:#3a2715;--sub:#69513a;--faint:#9a8977;--border:#ebd1bd;--brand:#893f07;--hover:#733506;--shadow:#b453091f}[data-theme=lavender-mist]{--canvas:#faf7ff;--muted:#f2ebff;--accent:#ebe1fc;--ink:#2d1b47;--sub:#58456d;--faint:#8d809d;--border:#dccafa;--brand:#5e2cb4;--hover:#4f2598;--shadow:#7c3aed1f}[data-theme=graphite-mono]{--canvas:#f8fafc;--muted:#f0f3f7;--accent:#e0e2e6;--ink:#18212f;--sub:#526071;--faint:#89939f;--border:#c8ccd1;--brand:#273141;--hover:#212a36;--shadow:#3341551f}[data-theme=midnight-cyan]{--canvas:#0b1220;--card:#121d2c;--muted:#18273b;--accent:#203e51;--ink:#e8f4fc;--sub:#aec4d8;--faint:#a9bbc9;--border:#34475f;--brand:#0e7490;--hover:#155e75;--shadow:#22d3ee29}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.app{flex-direction:column;min-height:100dvh;display:flex}.head{background:var(--card);border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:14px;height:64px;padding:0 24px;display:flex}.logo{color:var(--brand);white-space:nowrap;font-size:23px;font-weight:750}.logo small{letter-spacing:2px;color:var(--sub);margin-left:9px;font-size:10px;font-weight:600}.grow{flex:1}.private{color:var(--faint);font-size:12px}.primary,.secondary,.ghost,.reading footer button{white-space:nowrap;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:0 16px;font-size:14px;font-weight:500;transition:background .12s,border-color .12s;display:inline-flex}.primary{color:#fff;background:var(--brand);box-shadow:0 2px 8px var(--shadow);border:1px solid #0000}.primary:hover{background:var(--hover)}.secondary{color:var(--brand);background:var(--muted);border:1px solid var(--border)}.ghost{color:var(--sub);background:0 0;border:1px solid #0000}.ghost:hover{background:var(--muted)}.icon{width:38px;padding:0}.layout{flex:1;height:calc(100dvh - 64px);min-height:0;display:flex}.shelf{background:var(--card);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;width:240px;padding:20px 12px;display:flex;overflow:auto}.shelf h3{align-items:center;gap:8px;margin:0 8px 20px;font-size:16px;display:flex}.count{background:var(--muted);color:var(--brand);border-radius:4px;padding:2px 8px;font-size:12px}.search{background:var(--muted);border:1px solid var(--border);border-radius:6px;align-items:center;gap:7px;min-height:38px;padding:0 12px;display:flex}.search input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font-size:14px}.books{flex:1;padding-top:16px;overflow:auto}.item{border:1px solid #0000;border-radius:8px;align-items:center;gap:3px;margin-bottom:8px;display:flex}.item.selected{background:var(--accent);border-color:var(--border)}.bookitem{text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:10px;min-width:0;padding:8px;display:flex}.cover{background:var(--muted);border:1px solid var(--border);width:46px;height:58px;color:var(--brand);border-radius:6px;flex-shrink:0;place-items:center;display:grid}.detail{flex-direction:column;gap:4px;min-width:0;display:flex}.detail strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.detail small{color:var(--faint);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.item .icon{width:28px}.hint{color:var(--faint);font-size:12px;line-height:1.6}.work{flex-direction:column;flex:1;gap:16px;min-width:0;padding:16px;display:flex}.toolbar{background:var(--card);border:1px solid var(--border);border-radius:12px;align-items:center;gap:16px;padding:12px 18px;display:flex}.booktitle{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.booktitle strong{white-space:nowrap;text-overflow:ellipsis;font-size:18px;overflow:hidden}.booktitle small{color:var(--faint)}.eyebrow{letter-spacing:1.5px;color:var(--brand);font-size:11px;font-weight:650}.controls{gap:8px;display:flex}.reading{flex:1;gap:16px;min-height:0;display:flex}.paper{background:var(--card);border:1px solid var(--border);min-width:0;min-height:0;box-shadow:0 4px 12px -2px var(--shadow);border-radius:12px;flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.epub{flex:1;min-height:0;padding:16px 30px}.epub.invisible{visibility:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.welcome{text-align:center;flex-direction:column;align-items:center;gap:16px;display:flex;position:absolute;top:15%;right:12%;bottom:90px;left:12%}.flower{color:var(--brand);font-size:58px}.welcome h1{margin:0;font-size:clamp(24px,3vw,40px);font-weight:700;line-height:1.5}.welcome p{color:var(--sub);font-size:14px}.reading footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;min-height:62px;padding:10px 18px;display:flex}.reading footer button{background:var(--muted);border:1px solid var(--border);color:var(--sub)}.reading footer span{color:var(--faint);text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.inspector{background:var(--card);border:1px solid var(--border);border-radius:12px;flex-shrink:0;width:300px;padding:14px;overflow:auto}.inspectorhead{justify-content:space-between;align-items:center;display:flex}.chapters button,.theme{text-align:left;width:100%;color:var(--sub);background:0 0;border:1px solid #0000;border-radius:6px;padding:10px;font-size:14px;display:block}.chapters button:hover,.theme:hover,.theme.chosen{background:var(--accent);border-color:var(--border)}.settings{flex-direction:column;gap:12px;padding-top:18px;display:flex}.settings input{accent-color:var(--brand)}@media(max-width:1279px){.inspector{width:270px}.work{gap:12px;padding:12px}.reading{gap:12px}}@media(max-width:767px){.head{gap:7px;height:56px;padding:0 12px}.logo small,.private{display:none}.head button{min-height:44px}.layout{height:auto;min-height:calc(100dvh - 56px);display:block}.shelf{border-bottom:1px solid var(--border);border-right:0;width:100%;max-height:30dvh}.work{gap:8px;min-height:calc(100dvh - 56px);padding:8px}.toolbar{flex-wrap:wrap;padding:10px}.controls .secondary{min-height:44px}.reading{flex-direction:column;min-height:65dvh}.paper{min-height:63dvh}.epub{min-height:calc(63dvh - 70px);padding:8px}.inspector{width:100%;max-height:38dvh}.welcome{top:13%;right:8%;bottom:76px;left:8%}.welcome h1{font-size:24px}.reading footer{padding:8px}.reading footer button{min-height:44px}.books{max-height:17dvh}}@media(max-width:479px){.toolbar{gap:8px}.head .primary{padding:0 10px}.booktitle strong{font-size:16px}.shelf{padding:10px}.welcome{gap:10px}}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}html{overflow-x:hidden}.layout,.work,.reading,.paper{min-width:0}.epub iframe{border:0;max-width:100%}@media(min-width:1280px){.paper{width:100%;max-width:1100px;margin-inline:auto}.epub{padding-inline:clamp(24px,4vw,68px)}}@media(min-width:768px)and (max-width:1279px){.shelf{width:200px}.inspector{width:min(280px,30vw)}.toolbar{padding:10px 14px}.epub{padding-inline:clamp(12px,2vw,24px)}}@media(max-width:767px){.layout{height:auto}.work{min-height:0}.reading{height:auto}.paper{height:calc(100svh - 155px);min-height:420px}.epub{flex:1;height:100%;min-height:0}.shelf{max-height:35dvh}.inspector{order:-1;max-height:30dvh}.reading footer span{max-width:32vw}.toolbar .booktitle{flex-basis:150px}.toolbar .booktitle small{display:none}}@media(max-width:479px){.head{gap:6px}.head .logo{font-size:20px}.head .primary{font-size:12px}.toolbar .controls{grid-template-columns:1fr 1fr;width:100%;display:grid}.toolbar .secondary{width:100%}.paper{height:calc(100svh - 175px);min-height:360px}.reading footer button{padding-inline:8px;font-size:12px}.reading footer span{font-size:11px}.epub{padding:2px 8px}}@supports (padding:env(safe-area-inset-bottom)){.reading footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}}.paper{min-height:0}.epub{overscroll-behavior:contain;overflow:hidden}.epub iframe{max-width:100%;display:block}.flowchoices{grid-template-columns:1fr;gap:8px;display:grid}.flowchoices button{background:var(--muted);border:1px solid var(--border);color:var(--sub);text-align:left;border-radius:6px;padding:10px}.flowchoices button.chosen{background:var(--accent);color:var(--brand);border-color:var(--brand)}@media(max-width:767px){.reading{min-height:0}.paper{min-height:360px}.epub{touch-action:pan-y;min-height:0;overflow:hidden}.inspector{flex-shrink:0}}html,body,#root{height:100%;min-height:0}.app{height:100dvh;min-height:0;overflow:hidden}.layout{flex:1;height:auto;min-height:0;overflow:hidden}.work,.reading{min-height:0;overflow:hidden}.paper{height:auto;min-height:0;overflow:hidden}.epub{overscroll-behavior:contain;flex:1 1 0;height:auto;min-height:0;overflow:hidden}.epub.epub-scroll{touch-action:pan-y;overscroll-behavior-y:contain;overflow:hidden auto}@media(max-width:767px){.app{height:100dvh;overflow:hidden}.layout{flex-direction:column;height:auto;min-height:0;display:flex;overflow:hidden}.shelf{flex:none;max-height:min(30dvh,220px);overflow:auto}.work{flex:1 1 0;min-height:0;overflow:hidden}.toolbar{flex-shrink:0}.reading{flex-direction:column;flex:1 1 0;min-height:0;display:flex;overflow:hidden}.paper{flex:1 1 0;min-height:0;overflow:hidden;height:auto!important}.epub{flex:1 1 0;overflow:hidden;height:auto!important;min-height:0!important}.epub.epub-scroll{overflow-y:auto}.inspector{flex:none;max-height:30dvh;overflow-y:auto}.reading footer{flex:none}}.motion-setting{color:var(--sub);align-items:center;gap:10px;font-size:14px;line-height:1.5;display:flex}.motion-setting input{accent-color:var(--brand);flex-shrink:0;width:18px;height:18px}
