:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#18202a;background:#f4f5f2;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--surface: #fffdfa;--surface-muted: #eef0ec;--surface-strong: #ffffff;--border: #d8d9d2;--text: #18202a;--text-muted: #67707a;--accent: #2563eb;--accent-strong: #0f4ccf;--success: #1f8a5b;--warning: #c78212;--danger: #c2413a;--shadow-soft: 0 18px 44px rgba(28, 34, 43, .12)}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100vh;min-height:100dvh;margin:0}body{overflow:hidden}button{font:inherit}.auth-screen{display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:24px;background:linear-gradient(180deg,#fffdfaeb,#f4f5f2fa),var(--surface-muted)}.auth-panel{display:grid;width:min(420px,100%);gap:16px;padding:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-soft)}.auth-brand{display:flex;align-items:center;gap:8px}.auth-panel h1{margin:0;color:var(--text);font-size:22px;line-height:1.18}.auth-copy,.auth-loading{margin:0;color:var(--text-muted);font-size:14px}.auth-form{display:grid;gap:12px}.auth-field{display:grid;gap:6px;color:var(--text-muted);font-size:12px;font-weight:700}.auth-field input{width:100%;height:38px;padding:0 10px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:var(--surface-strong);font:inherit;font-size:14px}.auth-field input:focus{border-color:#2563eb85;outline:3px solid rgba(37,99,235,.16)}.auth-status{padding:9px 10px;border:1px solid rgba(37,99,235,.22);border-radius:7px;color:var(--accent-strong);background:#2563eb0f;font-size:13px}.auth-status--error{border-color:#c2413a42;color:var(--danger);background:#c2413a12}.auth-submit,.auth-mode-button{min-height:38px;border:1px solid transparent;border-radius:7px;cursor:pointer}.auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;background:var(--accent);font-weight:760}.auth-submit:hover,.auth-submit:focus-visible{background:var(--accent-strong)}.auth-submit:disabled{cursor:not-allowed;opacity:.62}.auth-mode-button{color:var(--accent-strong);background:transparent;font-size:13px;font-weight:700}.auth-mode-button:hover,.auth-mode-button:focus-visible{background:#2563eb12}.app-shell{display:grid;grid-template-rows:56px minmax(0,1fr);height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;overflow:hidden;background:linear-gradient(180deg,#fffdfaeb,#f4f5f2fa),var(--surface-muted)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;border-bottom:1px solid var(--border);background:#fffdfae0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand-lockup,.topbar-actions{display:flex;align-items:center;gap:8px}.topbar-actions{min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.brand-mark{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;color:#fff;background:linear-gradient(135deg,var(--accent),#1f8a5b);font-size:14px;font-weight:750}.brand-text{color:var(--text);font-size:15px;font-weight:680}.reader-workspace{display:grid;grid-template-columns:var(--library-pane-column, var(--library-pane-width, 240px)) var(--library-resizer-column, 7px) minmax(0,1fr) var(--pins-resizer-column, 7px) var(--pins-pane-column, var(--pins-pane-width, 280px));min-height:0;transition:grid-template-columns .22s cubic-bezier(.2,0,0,1)}.mobile-panel-backdrop{display:none}.library-pane,.translation-pane{min-width:0;min-height:0;overflow:auto;border-color:var(--border);background:#fffdfaa8;opacity:1;transition:background-color .18s ease,border-color .18s ease,opacity .16s ease,visibility 0s linear 0s}.library-pane{grid-column:1;border-right:1px solid var(--border)}.translation-pane{grid-column:5;border-left:1px solid var(--border)}.pane-resizer--library{grid-column:2}.pane-resizer--pins{grid-column:4}.pane--closed{overflow:hidden;border-color:transparent;opacity:0;pointer-events:none;transition:background-color .18s ease,border-color .18s ease,opacity .16s ease,visibility 0s linear .16s;visibility:hidden}.pane-resizer--closed{min-width:0;background:transparent;cursor:default;opacity:0;pointer-events:none}.pane-resizer{position:relative;min-width:7px;min-height:0;border:0;background:#d8d9d26b;cursor:col-resize;touch-action:none;opacity:1;transition:background-color .18s ease,min-width .22s cubic-bezier(.2,0,0,1),opacity .16s ease}.pane-resizer:after{position:absolute;top:0;bottom:0;left:3px;width:1px;background:#67707a57;content:""}.pane-resizer:hover,.pane-resizer:focus-visible{background:#b8cffd6b}.pane-resizer:hover:after,.pane-resizer:focus-visible:after{background:var(--accent)}.pane-resizer--closed:after{opacity:0}.pins-pane-summary{margin:-4px 16px 16px;color:var(--text-muted);font-size:13px;line-height:1.38;text-align:right}.pins-pane-empty{margin:0 16px 16px;color:var(--text-muted);font-size:13px;line-height:1.38}.pins-list{display:grid;gap:10px;padding:0 12px 16px}.pins-panel{display:grid;gap:10px;min-width:0}.pins-panel-controls{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:6px;padding:0 12px}.pins-sort-button.icon-button{width:24px;height:24px;border:0;border-radius:6px;color:var(--text-muted);background:transparent}.pins-sort-button.icon-button:hover,.pins-sort-button.icon-button:focus-visible{border:0;color:var(--accent-strong);background:transparent;outline:0}.pins-sort-button.icon-button:hover svg,.pins-sort-button.icon-button:focus-visible svg{transform:scale(1.14)}.pins-search-shell{position:relative;display:grid;width:100%;min-width:0;place-items:center;justify-self:stretch}.pins-search-inline{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px;width:100%;min-width:0;height:28px;padding:0 4px 0 8px;border:1px solid rgba(103,112,122,.2);border-radius:7px;color:var(--text-muted);background:#fffdfae0}.pins-search-input{width:100%;min-width:0;height:24px;border:0;color:var(--text);background:transparent;font:inherit;font-size:13px;outline:0}.pins-pane-empty--filtered{margin-top:2px}.pane-heading{padding:14px 16px;color:var(--text-muted);font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}.pane-heading-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-right:12px}.pane-heading-row .pane-heading{min-width:0}.pins-clear-actions{display:flex;align-items:center;gap:5px}.pins-clear-actions .icon-button{width:22px;height:22px;border:0;border-radius:6px;color:var(--text-muted);background:transparent}.pins-clear-actions .icon-button:hover,.pins-clear-actions .icon-button:focus-visible{border:0;color:var(--accent-strong);background:transparent;outline:0}.pins-clear-actions .icon-button:hover svg,.pins-clear-actions .icon-button:focus-visible svg{transform:scale(1.14)}.library-pane-header{display:grid;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--border)}.library-pane-header .pane-heading{padding-bottom:0}.pane-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px;padding:10px 12px;border:1px solid #f3c7c2;border-radius:6px;color:#9d2d26;background:#fff0ee;font-size:13px}.pane-status-action,.reader-message-action{flex:0 0 auto;border:1px solid #d2645b;border-radius:6px;padding:5px 8px;color:#8b241d;background:snow;font:inherit;font-weight:700;cursor:pointer}.pane-status-action:hover,.pane-status-action:focus-visible,.reader-message-action:hover,.reader-message-action:focus-visible{border-color:#b9443d;color:#6f1e18;background:#fff4f2}.document-stage{display:grid;grid-column:3;min-width:0;min-height:0;place-items:start center;padding:24px;overflow:auto}.document-stage--active{place-items:stretch;padding:0;overflow:hidden}.empty-reader{display:grid;gap:18px;width:min(760px,100%)}.empty-reader-history{display:none}.empty-page-frame{display:grid;align-content:start;gap:14px;width:min(760px,100%);aspect-ratio:.76;min-height:520px;padding:clamp(34px,5vw,56px);border:1px solid #e5e0d6;border-radius:4px;background:linear-gradient(180deg,#fffffff5,#fffdf8fa),var(--surface-strong);box-shadow:var(--shadow-soft)}.empty-page-line{height:12px;border-radius:999px;background:#d9ded7}.empty-page-line--wide{width:72%}.empty-page-line:not(.empty-page-line--wide):not(.empty-page-line--short){width:52%}.empty-page-line--short{width:36%}.pdf-dropzone{display:grid;justify-items:center;gap:8px;border:1px dashed #b6bfca;border-radius:8px;color:var(--text-muted);background:#ffffffb3}.pdf-dropzone--full{padding:24px}.pdf-dropzone--compact{margin:0 12px;padding:10px}.pdf-dropzone--dragging{border-color:var(--accent);color:var(--accent-strong);background:#eef5ff}.pdf-dropzone input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.pdf-dropzone-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface-strong);font-size:13px;font-weight:700;cursor:pointer}.pdf-dropzone--compact .pdf-dropzone-trigger{width:100%;min-width:0}.pdf-dropzone--compact .pdf-dropzone-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-dropzone-trigger:hover{border-color:#aab5c3;color:var(--accent-strong)}.pdf-dropzone p{margin:0;font-size:13px}.library-empty{padding:14px 16px;color:var(--text-muted);font-size:13px}.library-block{display:grid;min-width:0}.library-controls{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:8px;padding:10px 12px 0}.library-search{position:relative;display:grid;min-width:0}.library-search svg{position:absolute;top:50%;left:10px;color:var(--text-muted);pointer-events:none;transform:translateY(-50%)}.library-search-input{width:100%;min-width:0;height:32px;padding:0 10px 0 32px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:#ffffffc2;font:inherit;font-size:13px}.library-search-input:focus{border-color:#b8cffd;outline:3px solid rgba(37,99,235,.16)}.library-sort-button.icon-button{width:32px;height:32px;border:0;color:var(--text-muted);background:transparent}.library-sort-button.icon-button:hover,.library-sort-button.icon-button:focus-visible{color:var(--accent-strong);background:#2563eb0f}.library-list{display:grid;gap:4px;padding:10px 8px}.library-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:4px;width:100%;min-height:58px;padding:0;border:1px solid transparent;border-radius:8px;color:var(--text);background:transparent}.library-item-open-button{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;min-width:0;min-height:56px;padding:10px 4px 10px 10px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.library-item:hover,.library-item:focus-within{background:#ffffffb8}.library-item--active{border-color:#b8cffd;background:#edf4ff}.library-item-open-button:disabled{cursor:not-allowed;opacity:.58}.library-item-main{display:grid;min-width:0;gap:3px}.library-item-title{overflow:hidden;font-size:13px;font-weight:680;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.library-item-meta{overflow:hidden;color:var(--text-muted);font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.library-item-actions{display:flex;align-items:center;justify-content:end;gap:0;min-width:max-content;padding:8px 6px 8px 0}.library-item-actions .icon-button,.library-pane-header .pane-heading-row .icon-button{width:22px;height:22px;border:0;border-radius:6px;color:var(--text-muted);background:transparent}.library-item-actions .icon-button svg,.library-pane-header .pane-heading-row .icon-button svg{transition:color .14s ease,transform .14s ease}.library-item-actions .icon-button:hover,.library-item-actions .icon-button:focus-visible,.library-pane-header .pane-heading-row .icon-button:hover,.library-pane-header .pane-heading-row .icon-button:focus-visible{border:0;color:var(--accent-strong);background:transparent;outline:0}.library-item-actions .icon-button:hover svg,.library-item-actions .icon-button:focus-visible svg,.library-pane-header .pane-heading-row .icon-button:hover svg,.library-pane-header .pane-heading-row .icon-button:focus-visible svg{transform:scale(1.14)}.library-item-actions .icon-button--success,.library-item-actions .icon-button--success:hover,.library-item-actions .icon-button--success:focus-visible{border:0;color:var(--success);background:transparent}.library-item-actions .icon-button--danger,.library-item-actions .icon-button--danger:hover,.library-item-actions .icon-button--danger:focus-visible{border:0;color:var(--danger);background:transparent}.translation-panel{display:grid;gap:12px;margin:0 12px 16px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#ffffffc7}.translation-panel-header{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:start;gap:8px}.selection-preview-label,.selection-context-label{color:var(--text-muted);font-size:11px;font-weight:760;letter-spacing:0;text-transform:uppercase}.selection-target,.selection-context p{margin:0;overflow-wrap:anywhere}.selection-target{color:var(--text);font-size:14px;line-height:1.42}.model-segment{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.model-segment button{min-height:32px;border:0;color:var(--text-muted);background:transparent;font-size:12px;font-weight:720;cursor:pointer}.model-segment button+button{border-left:1px solid var(--border)}.model-segment .model-segment-button--active{color:var(--accent-strong);background:#edf4ff}.translation-output{min-height:86px;padding:12px;border:1px solid #d9dde5;border-radius:8px;color:var(--text);background:#f8fafc;font-size:14px;line-height:1.5;white-space:pre-wrap}.translation-output--loading,.translation-output--streaming{border-color:#b8cffd}.translation-output--error{border-color:#f3c7c2;color:#9d2d26;background:#fff0ee}.translation-usage{color:var(--text-muted);font-size:11px;line-height:1.3}.selection-context{display:grid;gap:6px;padding-top:10px;border-top:1px solid #e7e8e2}.selection-context p{color:var(--text-muted);font-size:12px;line-height:1.38}.pdf-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;background:#dfe3e8}.pdf-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:9px 16px;border-bottom:1px solid #c9d0d9;background:#fffdfae0}.pdf-viewer-actions{display:flex;align-items:center;flex:0 0 auto;gap:7px}.pdf-sidebar-toolbar,.pdf-export-toolbar{display:inline-flex;align-items:center;flex:0 0 auto;gap:6px;padding-right:7px;border-right:1px solid var(--border)}.mobile-reader-side-dock{display:none}.pdf-viewer-heading{min-width:0}.pdf-zoom-toolbar{display:inline-flex;align-items:center;flex:0 0 auto;gap:7px}.cross-selection-toolbar{display:inline-flex;align-items:center;gap:6px;min-width:0;padding-right:5px;border-right:1px solid var(--border)}.cross-selection-count{min-width:68px;color:var(--text-muted);font-size:12px;font-weight:720;line-height:1;text-align:right;white-space:nowrap}.pdf-zoom-value{min-width:42px;color:var(--text-muted);font-size:12px;font-weight:720;text-align:center}.pdf-viewer-title,.pdf-viewer-subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-viewer-title{max-width:min(66vw,680px);font-size:14px;font-weight:720}.pdf-viewer-subtitle{color:var(--text-muted);font-size:12px}.pdf-scroll-region{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.pdf-scroll-region--panning{cursor:grabbing}.pdf-scroll-region--selecting{cursor:text}.pdf-scroll-region--selection-armed .textLayer span{touch-action:none}.pdf-page-list{--pdf-display-scale: 1;--pdf-render-scale: 1;--pdf-scale-ratio: 1;display:grid;justify-content:center;gap:18px;width:max-content;min-width:100%;min-height:100%;padding:24px}.pdf-page-shell{position:relative;z-index:0;overflow:visible;width:calc(var(--pdf-page-width) * var(--pdf-display-scale));height:calc(var(--pdf-page-height) * var(--pdf-display-scale))}.pdf-page{position:relative;overflow:visible;width:calc(var(--pdf-page-width) * var(--pdf-render-scale));height:calc(var(--pdf-page-height) * var(--pdf-render-scale));border-radius:4px;background:#fff;box-shadow:0 10px 30px #1a202c2e;transform:scale(var(--pdf-scale-ratio));transform-origin:top left}.pdf-page-canvas,.pdf-text-layer{position:absolute;top:0;right:0;bottom:0;left:0}.pdf-page-canvas{display:block;z-index:1;border-radius:inherit}.pdf-text-layer{z-index:2;border-radius:inherit;-webkit-user-select:none;user-select:none}.pdf-page-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;pointer-events:none}.selection-highlight{position:absolute;border-radius:2px;background:#2563eb29;box-shadow:inset 0 0 0 1px #2563eb38}.selection-highlight--draft{background:#1270d63d;box-shadow:inset 0 0 0 1px #1270d6ad,0 0 0 2px #1270d62e}.selection-highlight--queued{background:#7c3aed26;box-shadow:inset 0 0 0 1px #7c3aed70,0 0 0 2px #7c3aed14}.selection-highlight--pinned,.selection-highlight--annotation-green{background:#1f8a5b29;box-shadow:inset 0 0 0 1px #1f8a5b47}.pinned-card-chip{position:absolute;z-index:5;display:none;width:26px;height:26px;place-items:center;padding:0;border:1px solid rgba(31,138,91,.32);border-radius:7px;color:var(--success);background:#fffdfaf5;box-shadow:0 8px 18px #17202d2e;cursor:pointer;pointer-events:auto}.pinned-card-chip--active,.pinned-card-chip:hover,.pinned-card-chip:focus-visible{border-color:#1f8a5b94;background:#eff9f3fa}.pinned-card-chip--transient{border-color:#2563eb57;color:var(--accent-strong)}.pinned-card-chip--transient:hover,.pinned-card-chip--transient:focus-visible{border-color:#2563eb94;background:#edf4fffa}.pinned-card-chip:focus-visible{outline:3px solid rgba(31,138,91,.2);outline-offset:2px}.pin-card-marker{position:absolute;z-index:6;display:inline-grid;width:28px;height:28px;place-items:center;padding:0;border:1px solid rgba(31,138,91,.34);border-radius:8px;color:var(--success);background:#fffdfaf5;box-shadow:0 8px 18px #17202d2e;cursor:pointer;pointer-events:auto}.pin-card-marker:hover,.pin-card-marker:focus-visible,.pin-card-marker--located{border-color:#1f8a5b9e;background:#eff9f3fa;outline:0;transform:translateY(-1px)}.pin-card-marker--yellow{border-color:#c782126b;color:var(--warning)}.pin-card-marker--favorite{border-color:#1f8a5b61;color:var(--success)}.pin-card-marker--pin,.pin-card-marker--blue{border-color:#2563eb57;color:var(--accent-strong)}.pin-card-marker--red{border-color:#c2413a57;color:var(--danger)}.selection-highlight--annotation-yellow{background:#f5be3b3d;box-shadow:inset 0 0 0 1px #c7821261}.selection-highlight--annotation-blue{background:#2563eb29;box-shadow:inset 0 0 0 1px #2563eb4d}.selection-highlight--annotation-red{background:#dc433829;box-shadow:inset 0 0 0 1px #c2413a52}.selection-highlight--copied{background:#16a34a2e;box-shadow:inset 0 0 0 1px #16a34a7a,0 0 0 2px #16a34a1f}.selection-draft-badge{position:absolute;z-index:4;width:max-content;max-width:152px;padding:5px 8px;border:1px solid rgba(18,112,214,.46);border-radius:7px;color:#0e4f9d;background:#f5fafff5;box-shadow:0 8px 20px #1246822e;font-size:11px;font-weight:760;line-height:1.2;white-space:nowrap}.selection-copy-badge{position:absolute;z-index:4;width:max-content;max-width:160px;padding:5px 8px;border:1px solid rgba(22,163,74,.42);border-radius:7px;color:var(--success);background:#f4fcf7f5;box-shadow:0 8px 20px #16653429;font-size:11px;font-weight:780;line-height:1.2;white-space:nowrap}.select-action-popover{position:absolute;display:grid;min-width:224px;max-width:min(var(--selection-action-popover-width, 260px),72vw);padding:8px;border:1px solid rgba(184,192,204,.92);border-radius:8px;color:var(--text);background:#fffdfafa;box-shadow:0 16px 36px #17202d33;pointer-events:auto;z-index:90}.queued-selection-popover{width:max-content;min-width:0}.mobile-selection-confirm-bar{display:none}.select-action-command-row{display:grid;grid-template-columns:auto auto auto auto;align-items:center;gap:5px}.queued-selection-command-row{grid-template-columns:auto auto auto auto}.select-action-word-count{min-width:0;overflow:hidden;color:var(--text-muted);font-size:11px;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.select-action-command-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:0 8px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:#fff;font-size:12px;font-weight:740;cursor:pointer}.select-action-command-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-action-command-button--primary{max-width:152px;border-color:#2563eb5c;color:#fff;background:var(--accent)}.select-action-command-button:hover,.select-action-command-button:focus-visible{border-color:#b8cffd;color:var(--accent-strong);outline:0}.select-action-command-button--primary:hover,.select-action-command-button--primary:focus-visible{border-color:#2563eb75;color:#fff;background:var(--accent-strong)}.select-action-note-panel{display:grid;gap:7px;min-width:0}.select-action-note-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;min-width:0}.select-action-note-input{width:100%;min-width:0;min-height:84px;padding:8px;resize:vertical;border:1px solid #d9dde5;border-radius:7px;color:var(--text);background:#fff;font:inherit;font-size:13px;line-height:1.42;overflow-wrap:anywhere}.select-action-note-input:focus{border-color:#b8cffd;outline:3px solid rgba(37,99,235,.16)}.select-action-error{color:var(--danger);font-size:12px;line-height:1.32}.selection-highlight--located{animation:located-selection-pulse 1.5s ease-out;background:#c782123d;box-shadow:inset 0 0 0 1px #c782128f,0 0 0 4px #c782122e}@keyframes located-selection-pulse{0%,to{background:#1f8a5b29;box-shadow:inset 0 0 0 1px #1f8a5b47}22%,72%{background:#c7821247;box-shadow:inset 0 0 0 1px #c782129e,0 0 0 5px #c7821233}}.pinned-translation-card{position:relative;display:grid;gap:8px;width:100%;min-width:0;max-width:100%;max-height:none;padding:9px;overflow:hidden;border:1px solid rgba(136,157,144,.78);border-radius:8px;color:var(--text);background:#fffdfaf5;box-shadow:0 14px 36px #17202d2e;pointer-events:auto}.pinned-translation-card--emphasized{animation:pinned-card-reminder 1.45s ease-out}@keyframes pinned-card-reminder{0%{border-color:#2563ebc7;box-shadow:0 0 #2563eb47,0 14px 36px #17202d2e;transform:translateY(0)}34%{border-color:#2563ebdb;box-shadow:0 0 0 7px #2563eb24,0 18px 42px #17202d38;transform:translateY(-2px)}to{border-color:#889d90c7;box-shadow:0 14px 36px #17202d2e;transform:translateY(0)}}.pinned-translation-card-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px}.pinned-translation-card-model{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid rgba(31,138,91,.24);border-radius:6px;color:#116842;background:#1f8a5b14;font-size:11px;font-weight:780}.pinned-translation-card-actions{display:flex;align-items:center;justify-content:end;gap:0;min-width:max-content}.pinned-translation-card-page{min-width:0;overflow:hidden;color:var(--text-muted);font-size:11px;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.pinned-translation-card-source-block,.pinned-translation-card-source,.pinned-translation-card-output,.pinned-translation-card-error{min-width:0;overflow-wrap:anywhere}.pinned-translation-card-source-block{display:grid;gap:5px}.pinned-translation-card-source-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px;min-width:0}.pinned-translation-card-source{color:var(--text-muted);font-size:12px;line-height:1.38;white-space:pre-wrap}.pinned-translation-card-source--collapsed{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}.pinned-translation-card-source-toggle{align-self:start;margin-top:-2px}.pinned-translation-card-source-actions{display:flex;align-items:center;justify-content:end;gap:0;min-width:0}.pinned-translation-card-note{display:grid;gap:4px;min-width:0;padding:7px 8px 8px;border:1px solid rgba(31,138,91,.16);border-radius:7px;background:#1f8a5b0f}.pinned-translation-card-note--editing{gap:7px;background:#fffdfafa}.pinned-translation-card-note-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0}.pinned-translation-card-note-actions{display:inline-flex;align-items:center;gap:0;min-width:max-content}.pinned-translation-card-note-label{color:var(--success);font-size:10px;font-weight:800;letter-spacing:0;text-transform:uppercase}.pinned-translation-card-note-text{min-width:0;color:var(--text);font-size:12px;line-height:1.42;overflow-wrap:anywhere;white-space:pre-wrap}.pinned-translation-card-output{max-height:180px;overflow:auto;padding:9px;border:1px solid #d9dde5;border-radius:7px;background:#f8fafc;font-size:13px;line-height:1.48;white-space:pre-wrap}.pinned-translation-card-output--loading,.pinned-translation-card-output--streaming{border-color:#b8cffd}.pinned-translation-card-error{padding:8px;border:1px solid #f3c7c2;border-radius:7px;color:#9d2d26;background:#fff0ee;font-size:12px;line-height:1.38}.pinned-annotation-editor{display:grid;gap:7px;min-width:0;padding-top:2px}.pinned-annotation-editor-toolbar,.translation-popover-annotation-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;min-width:0}.annotation-color-row{display:inline-flex;align-items:center;gap:5px;min-width:max-content}.annotation-color-swatch{display:inline-grid;width:16px;height:16px;padding:0;border:1px solid rgba(103,112,122,.24);border-radius:4px;cursor:pointer}.annotation-color-swatch--yellow{background:#f5be3b}.annotation-color-swatch--blue{background:#4d7ee8}.annotation-color-swatch--green{background:#35a46c}.annotation-color-swatch--red{background:#dc4338}.annotation-color-swatch--active{border-color:#18202ab8;box-shadow:0 0 0 2px #fffdfaf5,0 0 0 4px #18202a2e}.annotation-color-swatch:hover,.annotation-color-swatch:focus-visible{border-color:#18202aa3;outline:0;transform:translateY(-1px)}.pinned-annotation-note-input,.translation-popover-note-input{width:100%;min-width:0;resize:vertical;border:1px solid #d9dde5;border-radius:7px;color:var(--text);background:#fff;font:inherit;font-size:13px;line-height:1.42;overflow-wrap:anywhere}.pinned-annotation-note-input{min-height:74px;padding:8px}.translation-popover-note-input{min-height:82px;padding:10px}.pinned-annotation-note-input:focus,.translation-popover-note-input:focus{border-color:#b8cffd;outline:3px solid rgba(37,99,235,.16)}.translation-popover{position:absolute;display:grid;grid-template-rows:auto auto minmax(0,1fr);width:auto;min-width:min(260px,var(--translation-popover-width, 360px));max-width:min(var(--translation-popover-width, 560px),72vw);min-height:220px;max-height:min(560px,calc(100% - 24px),78vh);gap:10px;padding:10px;overflow:hidden;border:1px solid rgba(184,192,204,.92);border-radius:8px;color:var(--text);background:#fffdfaf5;box-shadow:0 18px 46px #17202d38;pointer-events:auto;will-change:transform}.translation-popover--emphasized{animation:translation-popover-reminder 1.45s ease-out}@keyframes translation-popover-reminder{0%{border-color:#2563ebc7;box-shadow:0 0 #2563eb47,0 18px 46px #17202d38}34%{border-color:#2563ebdb;box-shadow:0 0 0 7px #2563eb24,0 20px 48px #17202d40}to{border-color:#b8c0cceb;box-shadow:0 18px 46px #17202d38}}.translation-popover-resize-hook{position:absolute;right:5px;bottom:5px;display:block;width:14px;height:14px;padding:0;border:0;border-radius:4px;background:linear-gradient(135deg,transparent 44%,rgba(103,112,122,.72) 45%,rgba(103,112,122,.72) 55%,transparent 56%),linear-gradient(135deg,transparent 62%,rgba(103,112,122,.42) 63%,rgba(103,112,122,.42) 73%,transparent 74%);cursor:nwse-resize;z-index:2}.translation-popover-resize-hook:hover{background:linear-gradient(135deg,transparent 44%,var(--accent-strong) 45%,var(--accent-strong) 55%,transparent 56%),linear-gradient(135deg,transparent 62%,rgba(15,76,207,.48) 63%,rgba(15,76,207,.48) 73%,transparent 74%)}.translation-popover-drag-handle{position:relative;justify-self:center;width:84px;height:18px;margin:-6px 0 -4px;border-radius:999px;background:transparent;cursor:grab;touch-action:none}.translation-popover-drag-handle:after{position:absolute;top:6px;left:15px;width:54px;height:5px;border-radius:999px;background:#67707a5c;content:""}.translation-popover-drag-handle:hover:after{background:#2563eb80}.translation-popover-drag-handle:active{cursor:grabbing}.translation-popover-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) auto;align-items:center;gap:8px;padding-right:18px;-webkit-user-select:none;user-select:none}.translation-popover-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:end;gap:0}.model-segment--compact{width:min(136px,100%);min-width:0}.model-segment--compact button{min-height:30px}.translation-popover-content{display:grid;min-height:0;gap:10px;overflow:auto;scrollbar-gutter:stable}.translation-popover-section{display:grid;gap:6px;min-width:0}.translation-popover-label{color:var(--text-muted);font-size:11px;font-weight:760;letter-spacing:0;line-height:1.2;text-transform:uppercase}.translation-popover-source{min-width:0;max-width:100%;padding:10px;border:1px solid #e2e5eb;border-radius:8px;color:var(--text);background:#fff;font-size:13px;line-height:1.46;overflow-wrap:anywhere}.translation-popover-output{min-width:0;max-width:100%;min-height:64px;padding:10px;border:1px solid #d9dde5;border-radius:8px;color:var(--text);background:#f8fafc;font-size:13px;line-height:1.48;overflow-wrap:anywhere;white-space:pre-wrap}.translation-popover-output--loading,.translation-popover-output--streaming{border-color:#b8cffd}.translation-popover-output--error{border-color:#f3c7c2;color:#9d2d26;background:#fff0ee}.translation-popover-meta{color:var(--text-muted);font-size:11px;line-height:1.3}.translation-popover-pin-chip{align-self:center;min-width:42px;font-size:11px;font-weight:720;line-height:1.3;text-align:right}.translation-popover-pin-chip--saving{color:var(--text-muted)}.translation-popover-pin-chip--saved{color:var(--success)}.translation-popover-pin-chip--error{color:var(--danger)}.pdf-page--rendering .pdf-page-canvas{opacity:.72}.pdf-page-error,.reader-message{display:grid;place-items:center;min-height:160px;padding:18px;color:var(--text-muted);font-size:14px}.reader-message{align-self:start;justify-self:center;margin-top:48px;border:1px solid var(--border);border-radius:8px;background:#ffffffc7}.reader-message--actionable{gap:12px;text-align:center}.reader-message--inline{min-height:0;margin:8px 16px 0;padding:9px 12px;justify-self:stretch;font-size:12px}.textLayer{position:absolute;top:0;right:0;bottom:0;left:0;overflow:clip;line-height:1;text-align:initial;text-size-adjust:none;transform-origin:0 0;forced-color-adjust:none}.textLayer :is(span,br){position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0 0}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){z-index:1}.textLayer span.markedContent{top:0;height:0}.textLayer ::selection{background:#2563eb47}.textLayer br::selection{background:transparent}.hiddenCanvasElement{position:absolute;top:0;left:0;display:none;width:0;height:0}.icon-button{display:inline-grid;width:36px;height:36px;place-items:center;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface);cursor:pointer}.icon-button--small{width:30px;height:30px}.topbar-actions .icon-button{width:32px;height:32px;border-color:var(--border);border-radius:7px;background:#ffffffb8}.topbar-actions .icon-button:hover,.topbar-actions .icon-button:focus-visible{border-color:#b8c0cc;background:var(--surface-strong)}.icon-button:hover{border-color:#b8c0cc;color:var(--accent-strong)}.icon-button--success,.icon-button--success:hover{border-color:#1f8a5b5c;color:var(--success);background:#1f8a5b14}.icon-button--danger,.icon-button--danger:hover{border-color:#c2413a5c;color:var(--danger);background:#c2413a14}.icon-button:disabled,.icon-button:disabled:hover{border-color:var(--border);color:var(--text-muted);background:var(--surface-muted);cursor:not-allowed;opacity:.58}.pinned-translation-card-action,.pinned-translation-card-action.icon-button--small{width:22px;height:22px;border:0;border-radius:6px;color:var(--text-muted);background:transparent}.pinned-translation-card-action svg{transition:color .14s ease,transform .14s ease}.pinned-translation-card-action:hover,.pinned-translation-card-action:focus-visible{border:0;color:var(--accent-strong);background:transparent;outline:0}.pinned-translation-card-action:hover svg,.pinned-translation-card-action:focus-visible svg{transform:scale(1.14)}.pinned-translation-card-action.icon-button--success,.pinned-translation-card-action.icon-button--success:hover,.pinned-translation-card-action.icon-button--success:focus-visible{border:0;color:var(--success);background:transparent}.pinned-translation-card-action.icon-button--danger,.pinned-translation-card-action.icon-button--danger:hover,.pinned-translation-card-action.icon-button--danger:focus-visible{border:0;color:var(--danger);background:transparent}.pinned-translation-card-action:disabled,.pinned-translation-card-action:disabled:hover{border:0;color:var(--text-muted);background:transparent}.pinned-translation-card-action:disabled svg,.pinned-translation-card-action:disabled:hover svg{transform:none}.icon-button:focus-visible{outline:3px solid rgba(37,99,235,.24);outline-offset:2px}.api-health,.sync-health{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--border);border-radius:7px;color:var(--text-muted);background:#ffffffb8;font-size:12px;font-weight:700}.mobile-status-button{position:relative;display:none;width:34px;height:34px;min-width:34px;place-items:center;padding:0;border:1px solid var(--border);border-radius:7px;color:var(--text-muted);background:#ffffffb8;cursor:pointer}.mobile-status-button:hover,.mobile-status-button:focus-visible{border-color:#b8c0cc;color:var(--accent-strong);background:var(--surface-strong)}.mobile-status-dot{position:absolute;bottom:5px;width:6px;height:6px;border:1px solid rgba(255,253,250,.9);border-radius:50%;background:var(--warning)}.mobile-status-dot--api-online,.mobile-status-dot--sync-synced{background:var(--success)}.mobile-status-dot--api-offline,.mobile-status-dot--sync-offline,.mobile-status-dot--sync-cloud-missing{background:var(--danger)}.mobile-status-dot--sync-syncing{background:var(--accent);animation:sync-status-pulse .9s ease-in-out infinite}.mobile-status-dot--api-checking,.mobile-status-dot--sync-checking,.mobile-status-dot--sync-local-only{background:var(--warning)}.mobile-status-dot[class*=--api]{right:11px}.mobile-status-dot[class*=--sync]{right:5px}.api-health:before,.sync-health:before{display:block;width:7px;height:7px;border-radius:50%;background:var(--warning);content:""}.api-health--online:before{background:var(--success)}.api-health--offline:before{background:var(--danger)}.sync-health--synced:before{background:var(--success)}.sync-health--syncing:before{background:var(--accent);animation:sync-status-pulse .9s ease-in-out infinite}.sync-health--local-only:before{background:var(--warning)}.sync-health--checking:before{background:var(--warning)}.sync-health--offline:before,.sync-health--cloud-missing:before{background:var(--danger)}@keyframes sync-status-pulse{0%,to{opacity:.48}50%{opacity:1}}.account-button{display:inline-flex;align-items:center;max-width:180px;height:32px;gap:7px;padding:0 9px;border:1px solid var(--border);border-radius:7px;color:var(--text-muted);background:#ffffffb8;cursor:pointer;font-size:12px;font-weight:700}.account-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button svg{flex:0 0 auto}.account-button:hover,.account-button:focus-visible{border-color:#b8c0cc;color:var(--accent-strong);background:var(--surface-strong)}.reader-mode-control{display:inline-flex;align-items:center;gap:0;padding:2px;border:1px solid var(--border);border-radius:8px;background:#ffffff94}.reader-mode-control--mobile{display:none}.mode-toggle-button{display:inline-flex;align-items:center;justify-content:center;gap:0;width:32px;height:28px;min-width:32px;padding:0;border:1px solid transparent;border-radius:6px;color:var(--text-muted);background:transparent;font:inherit;font-size:12px;font-weight:760;line-height:1;cursor:pointer}.mode-toggle-button svg{flex:0 0 auto}.mode-toggle-button:hover,.mode-toggle-button:focus-visible{color:var(--accent-strong);background:#ffffffd1}.mode-toggle-button--active{border-color:#2563eb47;color:var(--accent-strong);background:#2563eb14}.mode-toggle-button--browse{border-color:#67707a47;color:var(--text-muted);background:#67707a14}.mode-toggle-button--cross{border-color:#c7821257;color:#8a5b0e;background:#c782121a}.mode-toggle-button--pan{border-color:#67707a42;color:var(--text-muted);background:#ffffff9e}.mode-toggle-button--select{border-color:#16a34a52;color:var(--success);background:#16a34a14}.mode-toggle-button:disabled{color:var(--text-muted);background:#eef0eca3;cursor:not-allowed;opacity:.72}.settings-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;justify-items:end;background:#18202a38}.settings-panel{display:grid;align-content:start;gap:0;width:min(440px,100vw);min-width:0;height:100vh;height:100dvh;overflow:auto;border-left:1px solid var(--border);color:var(--text);background:#fffdfafa;box-shadow:-18px 0 44px #17202d2e}.settings-panel-header{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;padding:14px 16px;border-bottom:1px solid var(--border);background:#fffdfaf5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.settings-panel-title{font-size:15px;font-weight:760;line-height:1.25}.settings-panel-subtitle{color:var(--text-muted);font-size:12px;line-height:1.3}.settings-panel-status{margin:12px 16px 0;padding:9px 10px;border:1px solid #d9dde5;border-radius:8px;color:var(--text-muted);background:#f8fafc;font-size:12px;line-height:1.35}.settings-section{display:grid;gap:10px;padding:16px;border-bottom:1px solid var(--border)}.settings-section-heading{color:var(--text-muted);font-size:11px;font-weight:780;letter-spacing:0;line-height:1.2;text-transform:uppercase}.settings-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-field,.settings-toggle{display:grid;gap:6px;min-width:0;color:var(--text-muted);font-size:12px;font-weight:720}.settings-field select,.settings-field input,.settings-field textarea{width:100%;min-width:0;min-height:34px;padding:0 10px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface-strong);font:inherit;font-weight:600}.settings-field select:disabled,.settings-field input:disabled,.settings-field textarea:disabled{color:var(--text-muted);background:var(--surface-muted)}.settings-field textarea{min-height:96px;padding:9px 10px;line-height:1.45;resize:vertical}.settings-field-hint{color:var(--text-muted);font-size:11px;font-weight:600;line-height:1.3}.settings-toggle{grid-template-columns:auto minmax(0,1fr);align-items:center;color:var(--text)}.settings-toggle input{width:18px;height:18px;margin:0;accent-color:var(--accent)}.settings-readout-list,.settings-action-list,.settings-history-list,.settings-log-list{display:grid;gap:6px;min-width:0}.settings-readout-row,.settings-action-row,.settings-history-row,.settings-log-row,.settings-empty-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;min-height:36px;padding:8px 0;border-bottom:1px solid #ecede8;font-size:12px;line-height:1.35}.settings-readout-row span,.settings-action-row span,.settings-log-row span,.settings-empty-row{min-width:0;overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.settings-readout-row strong{min-width:0;max-width:210px;overflow:hidden;color:var(--text);font-weight:720;text-align:right;text-overflow:ellipsis;white-space:nowrap}.settings-log-row{grid-template-columns:minmax(0,1fr) auto auto auto}.paper-context-editor,.paper-context-terms,.paper-context-term-list{display:grid;gap:8px;min-width:0}.paper-context-summary,.paper-context-save-row,.paper-context-terms-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;color:var(--text-muted);font-size:12px;font-weight:680;line-height:1.35}.paper-context-summary,.paper-context-save-row{padding:8px 0;border-bottom:1px solid #ecede8}.paper-context-terms-header{color:var(--text);font-weight:720}.paper-context-term-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px}.paper-context-term-row input{width:100%;min-width:0;min-height:32px;padding:0 9px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface-strong);font:inherit;font-size:12px;font-weight:600}.settings-history-main{display:grid;min-width:0;gap:2px}.settings-history-title,.settings-history-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-history-title{color:var(--text);font-size:12px;font-weight:720}.settings-history-meta{color:var(--text-muted);font-size:11px}.settings-confirm-actions{display:flex;align-items:center;gap:5px}.translation-popover-toolbar--actions-only{grid-template-columns:minmax(0,1fr);justify-items:end}@media (max-width: 920px){.app-shell{grid-template-rows:48px minmax(0,1fr)}.topbar{gap:8px;padding:0 max(10px,env(safe-area-inset-left)) 0 max(10px,env(safe-area-inset-right))}.brand-lockup{flex:0 0 auto}.brand-text{display:none}.topbar-actions{flex:1 1 auto;justify-content:end;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.topbar-actions::-webkit-scrollbar{display:none}.topbar-actions .icon-button{width:38px;height:38px;flex:0 0 auto}.api-health,.sync-health{width:38px;height:38px;flex:0 0 auto;justify-content:center;padding:0;font-size:0}.account-button{width:38px;height:38px;flex:0 0 auto;justify-content:center;padding:0}.account-button span{display:none}.reader-mode-control{flex:0 0 auto}.reader-mode-control--desktop{display:none}.reader-mode-control--mobile{display:inline-flex}.mode-toggle-button{width:36px;min-width:36px;height:32px;justify-content:center;padding:0}.mode-toggle-button span{display:none}.reader-workspace{grid-template-columns:1fr}.document-stage{grid-column:1;padding:14px}.document-stage--active{padding:0}.library-pane,.translation-pane,.pane-resizer{display:none}.mobile-panel-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:block;background:#18202a47}.mobile-panel{position:fixed;top:0;bottom:0;display:grid;align-content:start;width:min(420px,100vw);min-width:0;overflow:auto;border-color:var(--border);color:var(--text);background:#fffdfafa;box-shadow:18px 0 44px #17202d33;-webkit-overflow-scrolling:touch}.mobile-panel--library{left:0;border-right:1px solid var(--border)}.mobile-panel--pins{right:0;width:min(460px,100vw);border-left:1px solid var(--border);box-shadow:-18px 0 44px #17202d33}.mobile-panel .library-pane-header,.mobile-panel>.pane-heading-row{position:sticky;top:0;z-index:1;background:#fffdfaf5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-panel .library-item-open-button{min-height:64px}.mobile-panel .library-item-actions .icon-button,.mobile-panel .library-pane-header .pane-heading-row .icon-button{width:36px;height:36px}.mobile-panel .pins-clear-actions .icon-button{width:26px;height:26px}.empty-reader-history{display:block}.pdf-viewer-header{min-height:46px;gap:8px;padding:5px max(10px,env(safe-area-inset-left)) 5px max(10px,env(safe-area-inset-right))}.pdf-viewer-heading{min-width:0}.pdf-viewer-actions{flex:1 1 auto;min-width:0;gap:4px;justify-content:end;overflow:hidden}.pdf-viewer-actions .icon-button,.cross-selection-toolbar .icon-button{width:36px;height:36px;flex:0 0 auto}.pdf-sidebar-toolbar--pane-toggles{display:none}.mobile-reader-side-dock{display:block}.mobile-reader-side-dock-button{position:fixed;top:50%;z-index:35;width:38px;height:46px;border-color:#b8c0cceb;color:var(--text-muted);background:#fffdfaf5;box-shadow:0 10px 28px #17202d2e;transform:translateY(-50%)}.mobile-reader-side-dock-button--library{left:0;border-left:0;border-radius:0 8px 8px 0}.mobile-reader-side-dock-button--pins{right:0;border-right:0;border-radius:8px 0 0 8px}.mobile-reader-side-dock-button--active{border-color:#2563eb5c;color:var(--accent-strong);background:#fffdfafa}.pinned-card-chip{display:inline-grid}.pdf-zoom-toolbar{flex:0 0 auto;gap:4px}.cross-selection-toolbar{flex:1 1 auto;gap:4px;min-width:0;padding-right:4px;justify-content:end;overflow:hidden}.cross-selection-count{min-width:auto;overflow:hidden;font-size:11px;text-overflow:ellipsis}.pdf-viewer-title{max-width:45vw}.pdf-page-list{gap:12px;padding:10px}.select-action-popover{position:fixed;right:max(10px,env(safe-area-inset-right))!important;bottom:max(10px,env(safe-area-inset-bottom))!important;left:max(10px,env(safe-area-inset-left))!important;top:auto!important;width:auto;min-width:0;max-width:none;z-index:62}.select-action-command-button{min-height:36px}.select-action-command-row{grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px}.mobile-selection-confirm-bar{position:fixed;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));z-index:61;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 10px;border:1px solid rgba(184,192,204,.92);border-radius:12px;color:var(--text);background:#fffdfafa;box-shadow:0 18px 46px #17202d3d}.mobile-selection-confirm-summary{min-width:0;overflow:hidden;color:var(--text-muted);font-size:12px;font-weight:740;text-overflow:ellipsis;white-space:nowrap}.mobile-selection-confirm-actions{display:inline-flex;align-items:center;gap:6px;min-width:0}.mobile-selection-confirm-button{min-height:40px;padding:0 12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface-strong);font-size:13px;font-weight:760;cursor:pointer}.mobile-selection-confirm-button--primary{border-color:#2563eb5c;color:#fff;background:var(--accent)}.mobile-selection-confirm-button--ghost{color:var(--text-muted);background:#ffffffb8}.translation-popover.translation-popover--mobile-sheet{position:fixed;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));top:auto;width:auto;min-width:0;max-width:none;min-height:220px;max-height:min(calc(100dvh - 24px),720px);border-radius:12px;box-shadow:0 18px 46px #17202d47;transform:none}.translation-popover--mobile-sheet .translation-popover-drag-handle{cursor:ns-resize}.translation-popover--mobile-sheet .translation-popover-toolbar{padding-right:0}.translation-popover--mobile-sheet .translation-popover-action,.translation-popover--mobile-sheet .pinned-translation-card-action{width:38px;height:38px}}@media (max-width: 560px){.app-shell{grid-template-rows:44px minmax(0,1fr)}.brand-mark{width:26px;height:26px}.api-health,.sync-health{display:none}.mobile-status-button{display:inline-grid}.topbar-actions .icon-button,.account-button,.mobile-status-button,.mode-toggle-button{width:34px;min-width:34px;height:34px}.reader-mode-control{padding:1px}.pdf-viewer-header{min-height:42px;padding:4px max(8px,env(safe-area-inset-left)) 4px max(8px,env(safe-area-inset-right))}.pdf-viewer-actions{gap:3px}.pdf-sidebar-toolbar,.pdf-export-toolbar,.cross-selection-toolbar{gap:3px;padding-right:4px}.pdf-viewer-actions .icon-button,.cross-selection-toolbar .icon-button{width:34px;height:34px}.mobile-reader-side-dock-button{width:34px;height:44px}.empty-page-frame{min-height:420px}.pdf-page-list{gap:10px;padding:8px}.pdf-viewer-title{max-width:38vw}.pdf-viewer-header--cross .pdf-viewer-title{max-width:28vw}.pdf-viewer-subtitle,.pdf-viewer-header--cross .cross-selection-count{display:none}.pdf-zoom-value{min-width:36px;font-size:11px}.mobile-selection-confirm-bar{grid-template-columns:1fr;gap:7px}.mobile-selection-confirm-actions{justify-content:stretch}.mobile-selection-confirm-button{flex:1 1 0;padding:0 8px}.mobile-panel{width:100vw}.settings-panel{width:100vw;border-left:0}}@media (max-width: 420px){.api-health,.sync-health{display:none}.topbar-actions{gap:4px}.topbar-actions .icon-button,.account-button,.mobile-status-button,.mode-toggle-button{width:34px;min-width:34px;height:34px}.pdf-viewer-title{max-width:34vw}}
