:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#252722;background:#e9ece8;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit;letter-spacing:0}button{color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #b64d36;outline-offset:2px}button:disabled{cursor:default;opacity:.42}.app-shell{--app-bg: #e9ece8;--surface: #f7f8f5;--page-bg: #ffffff;--ink: #252722;--muted: #6d726b;--border: #d8dcd6;--accent: #b64d36;--accent-soft: #f0ddd7;--sidebar: #252a27;--sidebar-ink: #eef1ed;--sidebar-muted: #aeb6af;position:relative;width:100%;height:var(--reader-viewport-height, 100dvh);color:var(--ink);background:var(--app-bg)}.app-shell.theme-sepia{--app-bg: #dad4c8;--surface: #e8e1d5;--page-bg: #eee7d8;--ink: #352f27;--muted: #746b5f;--border: #c9c0b2;--accent: #9a4b36;--accent-soft: #dfcbbd;--sidebar: #2d302c}.app-shell.theme-night{--app-bg: #121513;--surface: #191c1a;--page-bg: #1d201e;--ink: #daddd6;--muted: #9ca39b;--border: #353a36;--accent: #df8068;--accent-soft: #493029;--sidebar: #0e100f;--sidebar-ink: #e3e7e1;--sidebar-muted: #929b93;color-scheme:dark}.icon-button{display:inline-grid;width:40px;height:40px;flex:0 0 40px;place-items:center;padding:0;border:0;border-radius:50%;color:inherit;background:transparent;cursor:pointer;touch-action:manipulation;transition:color .15s ease,background .15s ease,opacity .15s ease}.icon-button:hover:not(:disabled),.icon-button.is-active{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.spin{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.reader-main{position:relative;display:grid;grid-template-rows:58px minmax(0,1fr) 36px;width:100%;height:100%;min-width:0;background:var(--app-bg);transition:grid-template-rows .18s ease,margin-left .22s ease,width .22s ease}.reader-header{z-index:10;grid-row:1;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;min-width:0;padding:6px 16px 6px 12px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.reader-title{min-width:0;padding:0 10px;text-align:center}.reader-title strong,.reader-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-title strong{font-size:14px;font-weight:650}.reader-title span{margin-top:2px;color:var(--muted);font-size:12px}.reader-header-actions{display:flex;gap:2px}.reader-stage{position:relative;grid-row:2;min-width:0;min-height:0;padding:16px 64px 10px;overflow:hidden;touch-action:pan-y}.mobile-reader-input-layer{display:none}.epub-reader,.text-reader{position:relative;width:min(100%,980px);height:100%;margin:0 auto;overflow:hidden;border:1px solid var(--border);border-radius:4px;background:var(--page-bg);box-shadow:0 7px 24px #1a201b14}.epub-rendition,.text-viewport{width:100%;height:100%;overflow:hidden}.epub-rendition>div,.epub-rendition iframe{background:var(--page-bg)!important}.text-flow{position:relative;margin:0;padding-block:clamp(30px,6vh,68px);overflow:visible;color:var(--ink);background:var(--page-bg);column-fill:auto;font-family:Songti SC,STSong,"Noto Serif CJK SC",Georgia,serif;font-size:var(--reader-font-size, 20px);line-height:var(--reader-line-height, 1.9);text-align:justify;transition:transform .18s ease;will-change:transform}.text-flow.is-reflowing{transition:none}.theme-night .text-flow{color-scheme:dark}.text-flow h1{margin:0 0 1.7em;break-after:avoid;break-inside:avoid;font-size:1.45em;font-weight:650;line-height:1.45;text-align:left}.text-flow p{margin:0 0 .9em;break-inside:auto;text-indent:2em;white-space:pre-line}.theme-night .epub-reader,.theme-night .text-reader{box-shadow:none}.reader-status,.library-status{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;color:var(--muted);background:var(--page-bg);text-align:center}.library-status{background:transparent}.reader-error,.library-status[role=alert]{color:var(--accent)}.command-button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:8px;padding:7px 14px;border:1px solid var(--border);border-radius:5px;color:var(--ink);background:var(--surface);cursor:pointer}.page-control{position:absolute;top:50%;z-index:12;width:44px;height:64px;border-radius:5px;color:var(--muted);background:color-mix(in srgb,var(--surface) 80%,transparent);transform:translateY(-50%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.page-control-previous{left:10px}.page-control-next{right:10px}.reader-footer{position:relative;grid-row:3;display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;padding:3px 22px 0;color:var(--muted);background:var(--surface);font-size:12px;font-variant-numeric:tabular-nums}.reader-progress-track{position:absolute;top:0;right:0;left:0;height:2px;overflow:hidden;background:var(--border)}.reader-progress-track span{display:block;height:100%;background:var(--accent);transition:width .18s ease}.book-sidebar{position:fixed;inset:0 auto 0 0;z-index:40;display:grid;grid-template-rows:64px 48px minmax(0,1fr);width:min(310px,88vw);color:var(--sidebar-ink);background:var(--sidebar);box-shadow:12px 0 34px #00000038;transform:translate(-102%);transition:transform .22s ease}.book-sidebar.is-open{transform:translate(0)}.sidebar-scrim{position:fixed;inset:0 0 0 min(310px,88vw);z-index:35;display:block;padding:0;border:0;background:#0d100e7f;opacity:0;pointer-events:none;transition:opacity .18s ease}.sidebar-scrim.is-visible{opacity:1;pointer-events:auto}.sidebar-heading{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 10px 8px 14px;border-bottom:1px solid rgb(255 255 255 / 9%)}.sidebar-heading>div:nth-child(2){min-width:0}.sidebar-heading strong,.sidebar-heading span{display:block}.sidebar-actions{display:flex;align-items:center}.sidebar-actions .icon-button{width:36px;height:36px;flex-basis:36px}.sidebar-heading strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.sidebar-heading span{margin-top:2px;color:var(--sidebar-muted);font-size:11px}.brand-mark{display:grid;width:34px;height:38px;place-items:center;border:1px solid rgb(255 255 255 / 20%);border-radius:3px 6px 6px 3px;color:#fff;background:#a64735;font-family:Songti SC,serif;font-size:18px}.book-sidebar .icon-button:hover:not(:disabled){color:#fff;background:#ffffff17}.sidebar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:6px 10px;border-bottom:1px solid rgb(255 255 255 / 8%)}.sidebar-tabs button{display:inline-flex;min-width:0;height:35px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:4px;color:var(--sidebar-muted);background:transparent;cursor:pointer}.sidebar-tabs button.is-active{color:#fff;background:#ffffff1a}.sidebar-panel{min-height:0;overflow:hidden}.book-search{display:grid;grid-template-columns:22px 1fr;align-items:center;margin:12px 12px 8px;padding:0 10px;border:1px solid rgb(255 255 255 / 11%);border-radius:5px;color:var(--sidebar-muted);background:#ffffff0f}.book-search input{width:100%;min-width:0;height:38px;padding:0;border:0;outline:0;color:var(--sidebar-ink);background:transparent}.book-search input::placeholder{color:var(--sidebar-muted)}.book-list,.chapter-list{height:calc(100% - 60px);overflow-x:hidden;overflow-y:auto;scrollbar-color:rgb(255 255 255 / 20%) transparent}.book-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;width:calc(100% - 12px);min-height:72px;align-items:center;margin:2px 6px;border-radius:5px;color:var(--sidebar-ink);background:transparent;overflow:hidden}.book-row-select{display:grid;grid-template-columns:44px minmax(0,1fr) 35px;min-width:0;min-height:72px;align-items:center;gap:10px;padding:8px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.book-row:hover,.book-row.is-active{background:#ffffff14}.book-row.is-active{box-shadow:inset 3px 0 #d26c53}.book-row-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.book-update-button,.book-delete-button{width:30px;height:30px;flex-basis:30px;border-radius:4px;color:var(--sidebar-muted)}.book-sidebar .book-update-button:hover:not(:disabled){color:#fff;background:#ffffff1f}.book-sidebar .book-delete-button:hover:not(:disabled){color:#ff9b8c;background:#d34e3a2e}.book-delete-error{margin:-4px 6px 8px;padding:7px 9px;border:1px solid rgb(255 139 120 / 25%);border-radius:4px;color:#ffc0b5;background:#8f302333;font-size:11px;line-height:1.45}.book-delete-error+.book-list{height:calc(100% - 104px)}.book-cover{display:block;width:42px;height:56px;border-radius:2px 4px 4px 2px;object-fit:cover;background:#505751;box-shadow:0 3px 8px #0000004d}.book-cover-fallback{display:grid;place-items:center;padding:5px;color:#fff;background:#8f493a;font-family:Songti SC,serif;font-size:18px}.book-row-copy{display:block;min-width:0}.book-row-copy strong,.book-row-copy>span:not(.book-progress-track){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-row-copy strong{font-size:13px;font-weight:600}.book-row-copy>span:not(.book-progress-track){margin-top:5px;color:var(--sidebar-muted);font-size:11px}.book-progress-track{display:block;width:100%;height:2px;margin-top:8px;overflow:hidden;background:#ffffff24}.book-progress-track span{display:block;height:100%;background:#d26c53}.book-progress-label{color:var(--sidebar-muted);font-size:10px;font-variant-numeric:tabular-nums;text-align:right}.contents-panel{display:grid;grid-template-rows:auto minmax(0,1fr)}.contents-book-heading{padding:12px 18px 10px;border-bottom:1px solid rgb(255 255 255 / 6%)}.contents-book-title{overflow:hidden;color:var(--sidebar-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.contents-chapter-count{margin-top:5px;color:var(--sidebar-ink);font-size:11px;font-variant-numeric:tabular-nums}.chapter-list{height:100%;scrollbar-width:auto;scrollbar-gutter:stable}.chapter-list::-webkit-scrollbar{width:16px}.chapter-list::-webkit-scrollbar-track{background:#ffffff0a}.chapter-list::-webkit-scrollbar-thumb{min-height:52px;border:2px solid transparent;border-radius:999px;background:#ffffff57;background-clip:padding-box}.chapter-list::-webkit-scrollbar-thumb:hover{background:#ffffff85;background-clip:padding-box}.chapter-list button{display:block;width:100%;min-height:43px;padding-block:10px;padding-inline-end:16px;border:0;border-left:3px solid transparent;color:var(--sidebar-muted);background:transparent;text-align:left;cursor:pointer}.chapter-list button span{display:block;overflow:hidden;font-size:12px;line-height:1.65;text-overflow:ellipsis;white-space:nowrap}.chapter-list button:hover,.chapter-list button.is-active{color:#fff;background:#ffffff12}.chapter-list button.is-active{border-left-color:#d26c53}.sidebar-empty{display:flex;min-height:130px;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;color:var(--sidebar-muted);font-size:12px;text-align:center}.settings-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70}.settings-scrim{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;padding:0;border:0;background:#1216132e}.settings-panel{position:absolute;top:66px;right:18px;width:min(340px,calc(100vw - 28px));padding:8px 18px 18px;border:1px solid var(--border);border-radius:6px;color:var(--ink);background:var(--surface);box-shadow:0 18px 50px #0f14103d}.settings-heading{display:flex;min-height:46px;align-items:center;justify-content:space-between}.settings-heading strong{font-size:14px}.setting-row{display:flex;min-height:54px;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--border);font-size:13px}.setting-slider{display:grid;grid-template-columns:74px minmax(0,1fr)}.setting-slider>span{display:flex;flex-direction:column;gap:2px}.setting-slider output{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.setting-slider input{width:100%;accent-color:var(--accent)}.segmented-control{display:grid;grid-template-columns:1fr 1fr;width:150px;padding:3px;border:1px solid var(--border);border-radius:5px;background:var(--app-bg)}.segmented-control button{height:31px;border:0;border-radius:3px;color:var(--muted);background:transparent;cursor:pointer}.segmented-control button.is-active{color:var(--ink);background:var(--page-bg);box-shadow:0 1px 4px #1419151f}.theme-options{display:flex;gap:10px}.theme-options button{position:relative;display:grid;width:36px;height:36px;place-items:center;padding:3px;border:1px solid transparent;border-radius:50%;background:transparent;cursor:pointer}.theme-options button>span{width:26px;height:26px;border:1px solid rgb(20 24 21 / 18%);border-radius:50%}.theme-options button.is-active{border-color:var(--accent)}.theme-options svg{position:absolute;color:var(--accent);filter:drop-shadow(0 0 2px var(--surface))}.image-lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;grid-template-rows:58px minmax(0,1fr);color:#f4f6f3;background:#101311}.lightbox-backdrop{position:absolute;top:58px;right:0;bottom:0;left:0;padding:0;border:0;background:transparent}.lightbox-toolbar{z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:8px 14px;border-bottom:1px solid rgb(255 255 255 / 12%)}.lightbox-toolbar span{width:52px;color:#b9c0ba;font-size:12px;font-variant-numeric:tabular-nums;text-align:center}.lightbox-toolbar .icon-button:hover:not(:disabled){color:#fff;background:#ffffff1a}.lightbox-canvas{z-index:1;display:grid;min-width:0;min-height:0;place-items:center;padding:28px;overflow:auto}.lightbox-canvas img{display:block;max-width:min(100%,1400px);max-height:calc(100dvh - 114px);object-fit:contain;transform-origin:center;transition:transform .14s ease}@media(min-width:960px){.app-shell.sidebar-visible .reader-main{width:calc(100% - 310px);margin-left:310px}.sidebar-scrim{display:none}.book-sidebar{box-shadow:none}.sidebar-close{visibility:hidden}}@media(max-width:700px){.reader-main{grid-template-rows:minmax(0,1fr)}.reader-header{position:absolute;top:0;right:0;left:0;height:54px;padding:4px 8px 4px 6px;overflow:hidden;transition:opacity .16s ease,transform .18s ease}.reader-title{padding:0 4px}.reader-title strong{font-size:13px}.desktop-action{display:none}.reader-stage{grid-row:1;padding:0}.mobile-reader-input-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9;display:block;width:100%;height:100%;background:#0000;cursor:pointer;pointer-events:auto;touch-action:pan-y pinch-zoom;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}.mobile-reader-input-layer.is-disabled{pointer-events:none}.epub-reader,.text-reader{width:100%;border:0;border-radius:0;box-shadow:none}.text-flow{padding-block:64px}.page-control{top:auto;bottom:44px;width:42px;height:42px;border:1px solid var(--border);border-radius:50%;transform:none}.page-control-previous{left:10px}.page-control-next{right:10px}.reader-footer{position:absolute;right:0;bottom:0;left:0;z-index:10;height:34px;gap:12px;padding-inline:14px;overflow:hidden;transition:opacity .16s ease,transform .18s ease}.app-shell.mobile-chrome-hidden .reader-header{opacity:0;pointer-events:none;transform:translateY(-100%)}.app-shell.mobile-chrome-hidden .reader-footer{opacity:0;pointer-events:none;transform:translateY(100%)}.app-shell.mobile-chrome-hidden .page-control{opacity:0;pointer-events:none}.settings-panel{top:auto;right:0;bottom:0;left:0;width:100%;padding-bottom:max(18px,env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:6px 6px 0 0}.lightbox-canvas{padding:14px}}.import-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100vw;height:var(--import-viewport-height, var(--reader-viewport-height, 100dvh));min-width:0;place-items:center;overflow:hidden;padding:20px}.import-scrim{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;padding:0;border:0;background:#0d100e8a}.import-dialog{position:relative;display:grid;grid-template-rows:56px 48px minmax(0,1fr);width:min(720px,calc(100vw - 40px));max-width:100%;height:min(680px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px));min-width:0;min-height:min(420px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px));max-height:100%;overflow:hidden;border:1px solid var(--border);border-radius:7px;color:var(--ink);background:var(--surface);box-shadow:0 22px 70px #0a0e0b57}.import-dialog.is-tomato{height:min(360px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px));min-height:min(350px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px))}.import-dialog.is-tomato-search{height:min(680px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px));min-height:min(420px,calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) - 40px))}.import-heading{display:flex;min-width:0;align-items:center;justify-content:space-between;padding:6px 10px 6px 18px;border-bottom:1px solid var(--border)}.import-heading>div{display:flex;min-width:0;align-items:center;gap:9px}.import-heading>div svg{color:var(--accent)}.import-heading strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.import-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:5px;padding:6px 12px;border-bottom:1px solid var(--border);background:var(--app-bg)}.import-tabs button{display:inline-flex;min-width:0;align-items:center;justify-content:center;gap:8px;border:0;border-radius:4px;color:var(--muted);background:transparent;cursor:pointer}.import-tabs button span,.import-mode-switch button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-tabs button svg,.import-mode-switch button svg{flex:0 0 auto}.import-tabs button.is-active{color:var(--ink);background:var(--page-bg);box-shadow:0 1px 4px #1419151a}.import-panel{min-width:0;min-height:0}.tomato-import-panel{display:grid;grid-template-rows:45px minmax(0,1fr);min-width:0;overflow:hidden}.import-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(330px,calc(100% - 32px));max-width:100%;min-width:0;margin:9px auto 0;padding:3px;border:1px solid var(--border);border-radius:5px;background:var(--app-bg)}.import-mode-switch button{display:inline-flex;min-width:0;height:29px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:3px;color:var(--muted);background:transparent;font-size:12px;cursor:pointer}.import-mode-switch button.is-active{color:var(--ink);background:var(--page-bg);box-shadow:0 1px 3px #1419151a}.tomato-direct-import{display:grid;min-width:0;place-items:start center;padding:clamp(30px,7vh,58px) 24px 24px;overflow-y:auto}.import-form{display:grid;grid-template-columns:minmax(0,1fr) auto;width:min(580px,100%);max-width:100%;min-width:0;align-items:end;gap:12px}.import-field{display:flex;min-width:0;flex-direction:column;gap:8px;color:var(--muted);font-size:12px}.import-field input,.import-search-field{height:42px;border:1px solid var(--border);border-radius:5px;color:var(--ink);background:var(--page-bg)}.import-field input{width:100%;min-width:0;padding:0 12px}.import-field input::placeholder,.import-search-field input::placeholder{color:var(--muted);opacity:.72}.import-primary-button,.result-download-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:5px;color:#fff;background:var(--accent);cursor:pointer}.import-primary-button{min-width:104px;height:42px;padding:0 15px;font-size:13px}.import-primary-button:hover:not(:disabled),.result-download-button:hover:not(:disabled){filter:brightness(1.08)}.source-search-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0}.import-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;max-width:100%;min-width:0;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}.import-search-field{display:grid;grid-template-columns:24px minmax(0,1fr);min-width:0;align-items:center;padding:0 10px;color:var(--muted)}.import-search-field input{width:100%;min-width:0;height:40px;padding:0;border:0;outline:0;color:var(--ink);background:transparent}.import-results{width:100%;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-color:var(--border) transparent}.import-result{display:grid;grid-template-columns:54px minmax(0,1fr) auto;width:100%;min-width:0;min-height:102px;align-items:center;gap:13px;padding:14px 16px;border-bottom:1px solid var(--border)}.import-result-cover{display:block;width:54px;height:72px;border-radius:2px 4px 4px 2px;object-fit:cover;background:var(--border);box-shadow:0 3px 9px #0c110d2b}.import-result-cover-fallback{display:grid;place-items:center;color:#fff;background:#5a635c;font-family:Songti SC,serif;font-size:20px}.import-result-copy{min-width:0}.import-result-copy strong,.import-result-copy>span,.import-result-copy>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-result-copy strong{font-size:14px;font-weight:650}.import-result-copy>span{margin-top:5px;color:var(--muted);font-size:11px}.import-result-copy>small{margin-top:3px;color:var(--muted);font-size:10px;opacity:.8}.import-result-copy p{display:-webkit-box;margin:7px 0 0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.result-download-button{min-width:78px;height:36px;padding:0 12px;font-size:12px}.import-empty{display:flex;min-height:170px;align-items:center;justify-content:center;gap:9px;padding:24px;color:var(--muted);font-size:13px;text-align:center}.import-empty.is-error{color:var(--accent)}.task-stack{position:fixed;right:18px;bottom:18px;z-index:120;display:flex;width:min(350px,calc(100vw - 28px));flex-direction:column;gap:8px;transition:opacity .16s ease,transform .18s ease}.task-notice{display:grid;grid-template-columns:28px minmax(0,1fr) auto;min-height:76px;align-items:center;gap:8px;padding:9px 9px 9px 12px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:6px;color:var(--ink);background:var(--surface);box-shadow:0 12px 34px #0c110d3d}.task-notice.is-succeeded{border-left-color:#3f7a52}.task-notice.is-failed{border-left-color:#ba3f34}.task-notice.is-canceled{border-left-color:var(--muted)}.task-state-icon{display:grid;place-items:center;color:var(--accent)}.task-notice.is-succeeded .task-state-icon{color:#3f7a52}.task-notice.is-failed .task-state-icon{color:#ba3f34}.task-notice.is-canceled .task-state-icon{color:var(--muted)}.task-notice-copy{min-width:0}.task-notice-copy strong,.task-notice-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-notice-copy strong{font-size:12px;font-weight:650}.task-notice-copy span{margin-top:4px;color:var(--muted);font-size:11px}.task-notice-title{display:flex!important;min-width:0;align-items:center;justify-content:space-between;gap:10px;margin-top:0!important;overflow:visible!important;color:var(--ink)!important}.task-notice-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-notice-title output{flex:0 0 auto;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.task-progress-track{display:block!important;width:100%;height:4px;margin-top:7px!important;overflow:hidden!important;border-radius:999px;background:var(--border)}.task-progress-track>span{display:block;height:100%;margin:0;border-radius:inherit;background:var(--accent);transition:width .22s ease}.task-notice.is-succeeded .task-progress-track>span{background:#3f7a52}.task-notice.is-canceled .task-progress-track>span{background:var(--muted)}.task-notice .icon-button{width:32px;height:32px;flex-basis:32px}@media(max-width:700px){.import-layer{align-items:start;justify-items:stretch;padding:0;transform:translate3d(0,var(--import-viewport-offset-top, 0px),0);will-change:transform}.import-dialog{align-self:start;justify-self:stretch;width:100%;max-width:100vw;height:min(calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) * .86),720px,var(--import-viewport-height, var(--reader-viewport-height, 100dvh)));min-height:0;padding-bottom:env(safe-area-inset-bottom,0);border-width:0 0 1px;border-radius:0 0 7px 7px}.import-dialog.is-tomato{height:min(380px,var(--import-viewport-height, var(--reader-viewport-height, 100dvh)));min-height:0}.import-dialog.is-tomato-search{height:min(calc(var(--import-viewport-height, var(--reader-viewport-height, 100dvh)) * .86),720px,var(--import-viewport-height, var(--reader-viewport-height, 100dvh)));min-height:0}.import-heading,.import-tabs,.import-panel,.tomato-import-panel,.source-search-panel,.tomato-direct-import,.import-form,.import-search-form,.import-results,.import-result{max-width:100%;min-width:0}.import-tabs{padding-inline:8px}.import-mode-switch{width:calc(100% - 24px);margin-inline:12px}.tomato-direct-import{padding:26px 16px 16px}.import-form{grid-template-columns:1fr}.import-primary-button{width:100%}.import-search-form{grid-template-columns:minmax(0,1fr) minmax(72px,88px);gap:8px;padding:10px}.import-search-form .import-primary-button{min-width:0}.import-result{grid-template-columns:48px minmax(0,1fr) 38px;gap:10px;padding:12px 10px}.import-result-cover{width:48px;height:64px}.import-result-copy p{display:none}.result-download-button{width:36px;min-width:36px;height:36px;padding:0;font-size:0}.task-stack{right:10px;bottom:10px;width:calc(100vw - 20px)}.app-shell.mobile-chrome-hidden .task-stack{opacity:0;pointer-events:none;transform:translateY(14px)}}@media(max-width:360px){.import-tabs button,.import-mode-switch button{gap:5px;font-size:12px}.import-search-form{grid-template-columns:minmax(0,1fr) 72px;padding-inline:8px}.import-search-field{grid-template-columns:20px minmax(0,1fr);padding-inline:8px}}@media(max-width:700px),(pointer:coarse){.import-field input,.import-search-field input{font-size:16px}}
