.learning-launch{white-space:nowrap;min-height:36px}.learning-panel{box-sizing:border-box;width:min(920px,96vw);max-width:96vw;max-height:92vh;position:fixed;inset:4vh auto auto 2vw;margin:0;padding:0;border:2px solid #397b79;border-radius:12px;background:#fff;color:#172a35;box-shadow:0 12px 50px #0004;z-index:12000;font:15px/1.6 system-ui,sans-serif}.learning-panel[open]{display:flex;flex-direction:column}.learning-panel header{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 16px;background:#e9f5f2;flex-shrink:0}.learning-panel h2{font-size:1.1rem;margin:0}.learning-content{overflow:auto;padding:16px;min-height:0}.learning-panel label{display:block;margin:8px 0}.learning-panel input:not([type=checkbox]),.learning-panel textarea,.learning-panel select{box-sizing:border-box;width:100%;font:inherit;padding:7px;border:1px solid #8ba4aa;border-radius:5px;color:#172a35;background:#fff}.learning-panel textarea{resize:vertical;min-height:65px}.learning-panel button{font:inherit;cursor:pointer;padding:7px 11px;border-radius:6px;border:1px solid #638a8f;background:#f2f8f7;color:#172a35;min-height:38px}.learning-panel button:disabled{opacity:.5;cursor:default}.learning-panel button:focus-visible,.learning-panel input:focus-visible{outline:3px solid #138680;outline-offset:2px}.learning-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learning-box{padding:12px;margin:12px 0;border:1px solid #b2caca;border-radius:8px;background:#f9fbfc}.learning-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.learning-panel .learning-status{white-space:pre-wrap;color:#80421c;min-height:24px}.learning-options{display:flex;flex-wrap:wrap;gap:8px}.learning-options label{border:1px solid #9ab5ba;padding:8px 12px;border-radius:8px}.learning-options input{margin-right:8px}.learning-panel img{max-width:100%;max-height:240px;object-fit:contain}.learning-panel table{border-collapse:collapse;width:100%}.learning-panel th,.learning-panel td{border:1px solid #b2caca;padding:8px;text-align:left;vertical-align:top}.learning-panel [hidden]{display:none!important}.learning-panel summary{cursor:pointer}.learning-muted{font-size:.9em;color:#526671}.learning-badge{border:1px solid #8ba4aa;border-radius:12px;padding:2px 8px}.learning-scroll{overflow-x:auto}@media(max-width:600px){.learning-panel{inset:2vh 2vw auto;width:96vw;max-height:96vh}.learning-grid{grid-template-columns:1fr}.learning-panel header{padding:8px}.learning-content{padding:10px}.learning-panel button{min-height:44px}}body :is(button.learning-launch,#study-learning-support,#notebookStudySupport,button[data-learning-question],.learning-panel button){color:#172a35;-webkit-text-fill-color:currentColor;background:#f2f8f7;border:1px solid #638a8f;border-radius:6px;padding:7px 11px;font:600 15px/1.4 system-ui,Yu Gothic UI,sans-serif;text-shadow:none;opacity:1}body button.learning-launch{flex-shrink:0}body :is(button.learning-launch,#study-learning-support,#notebookStudySupport,button[data-learning-question],.learning-panel button):hover:not(:disabled){color:#172a35;background:#d9ece8;border-color:#397b79}body :is(button.learning-launch,#study-learning-support,#notebookStudySupport,button[data-learning-question],.learning-panel button):active:not(:disabled){background:#c4e1db}body :is(button.learning-launch,#study-learning-support,#notebookStudySupport,button[data-learning-question],.learning-panel button):focus-visible{outline:3px solid #0b6558;outline-offset:2px}body :is(button.learning-launch,#study-learning-support,#notebookStudySupport,button[data-learning-question],.learning-panel button):disabled{color:#4b5563;background:#e5e7eb;border-color:#9ca3af;opacity:1;cursor:not-allowed}html.learning-support-window,body.learning-support-window{width:100%;height:100%;margin:0;padding:0;overflow:hidden;background:#fff;color:#172a35}body.learning-support-window>.learning-panel[open]{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none}body.learning-support-window .learning-panel>header{cursor:auto;flex-wrap:wrap}body.learning-support-window .learning-content{flex:1}.faith-file-dialog{color:#eef2ff;background:#18202e;border:1px solid #94a3b8;border-radius:12px;width:min(640px,90vw);max-height:85vh;padding:20px;font:16px/1.5 system-ui,sans-serif}.faith-file-dialog::backdrop{background:#0009}.faith-file-dialog h2{margin:0 0 12px;font-size:20px}.faith-file-dialog button,.faith-file-dialog input{font:inherit;padding:8px 12px;border:1px solid #94a3b8;border-radius:6px;color:inherit;background:#263449}.faith-file-dialog button{cursor:pointer}.faith-file-dialog button:disabled{opacity:.5;cursor:default}.faith-file-dialog input{box-sizing:border-box;min-width:0;flex:1}.faith-file-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.faith-file-list{display:grid;gap:2px}.faith-file-list input{flex:none;width:auto}.faith-file-row{cursor:pointer}.faith-file-row[aria-disabled=true]{opacity:.55}.faith-file-icon{width:13px;height:16px;margin-left:22px;flex:0 0 auto;border:1px solid #6b867a;border-radius:2px;background:#f5faf7}.faith-file-status{white-space:pre-wrap;overflow-wrap:anywhere}.faith-file-path{overflow-wrap:anywhere}.faith-file-panes{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.faith-file-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.faith-file-name{display:grid;gap:6px}.faith-folder-tree{min-width:0;min-height:118px;max-height:230px;overflow:auto;padding:6px;border:1px solid #b8ccc4;border-radius:9px;background:#fff;color:#203b31}.faith-folder-node{min-width:max-content}.faith-folder-group{margin-left:18px}.faith-file-dialog .faith-folder-row{box-sizing:border-box;width:100%;min-height:30px;display:flex;align-items:center;gap:8px;padding:3px 8px;border:0;background:transparent;color:#243b31;text-align:left}.faith-file-dialog .faith-folder-row:hover{background:#e8f3ee}.faith-file-dialog .faith-folder-row[aria-selected=true]{background:#d5eae0;color:#145c3a;box-shadow:inset 0 0 0 1px #91bea8}.faith-folder-row:focus-visible{outline:2px solid #145c3a;outline-offset:-2px}.faith-folder-disclosure{width:18px;flex:0 0 18px;color:#52675e;font-size:14px;text-align:center}.faith-folder-icon{position:relative;width:17px;height:12px;flex:0 0 auto;border-radius:2px;background:#e4ad35}.faith-folder-icon:before{content:"";position:absolute;left:1px;top:-4px;width:8px;height:5px;border-radius:2px 2px 0 0;background:#d89c23}.faith-folder-name{white-space:nowrap}@media(max-width:560px){.faith-folder-tree{max-height:180px}}.faith-pdf-output-frame{position:fixed;left:-12000px;top:0;width:980px;height:820px;border:0;pointer-events:none}:root{color-scheme:dark;font-family:Yu Gothic UI,Hiragino Sans,system-ui,sans-serif;--bg: #2b2b2b;--panel: #1e1e1e;--panel-2: #272727;--view: #383838;--line: #464646;--text: #e6e6e6;--muted: #a9a9a9;--accent: #4a90d9;--accent-hover: #66a7e8;--danger: #d96868;--header-h: 42px;--status-h: 27px;--viewer-scrollbar-safe-area: 18px;--annotation-palette-lane-width: 40px;--right-panel-reopen-width: 32px}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}html{height:-webkit-fill-available}body{min-height:100%;min-height:-webkit-fill-available}body{background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #84bdf4;outline-offset:2px}a:focus-visible{outline:2px solid #84bdf4;outline-offset:2px}button:disabled,select:disabled,input:disabled{opacity:.38;cursor:not-allowed}#app{display:grid;grid-template-areas:"header" "tabs" "toolbar" "search" "workspace" "status";grid-template-rows:var(--header-h) auto auto auto minmax(0,1fr) var(--status-h)}.app-header{grid-area:header;display:flex;align-items:center;gap:20px;padding:0 10px;background:#181818;border-bottom:1px solid #303030}.brand{display:flex;align-items:center;gap:8px;white-space:nowrap}.brand-logo{width:29px;height:29px;border-radius:7px;box-shadow:0 1px 4px #0008}.document-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c9c9c9;font-size:13px;text-align:center}.header-actions{display:flex;align-items:center;gap:6px;margin-inline-start:auto}.icon-button,.text-button{border:0;border-radius:5px;background:transparent;cursor:pointer}.icon-button{width:30px;height:30px;font-weight:800}.text-button{padding:5px 10px;color:#b8dafa;font-size:12px}.header-link{text-decoration:none}.icon-button:hover,.text-button:hover{background:#383838}.document-tabs{display:none;grid-area:tabs;min-height:0;overflow:auto hidden;border-bottom:1px solid #3b3b3b;background:#202020;scrollbar-width:thin}.document-tabs:empty{display:none}.document-tab{display:flex;flex:0 1 230px;min-width:118px;max-width:270px;height:31px;border-right:1px solid #3b3b3b;background:#292929}.document-tab.active{background:#3a4652;box-shadow:inset 0 -2px var(--accent)}.document-tab.dragging{opacity:.45}.document-tab.drop-before{box-shadow:inset 3px 0 #82c2ff}.document-tab.drop-after{box-shadow:inset -3px 0 #82c2ff}.document-tab-select{flex:1;min-width:0;overflow:hidden;padding:4px 8px;border:0;background:transparent;color:#cfcfcf;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.document-tab.active .document-tab-select{color:#fff}.document-tab-dirty{color:#ffd36d}.document-tab-close{flex:0 0 29px;border:0;background:transparent;color:#aaa;cursor:pointer;font-size:16px}.document-tab-close:hover{background:#733b3b;color:#fff}.toolbar{grid-area:toolbar;display:flex;flex-wrap:wrap;align-items:center;gap:0;min-height:43px;padding:3px 5px;background:var(--panel);border-bottom:1px solid #333;overflow:auto hidden;scrollbar-width:thin}.tool-group{display:flex;align-items:center;gap:2px;padding:0 6px;min-height:34px;border-right:1px solid #3d3d3d}.tool-group:last-child{border-right:0}.tool-button,.square-button,.search-bar button{border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer}.tool-button{display:flex;align-items:center;gap:4px;min-height:31px;padding:3px 7px;white-space:nowrap;font-size:12px}.tool-button span{font-size:15px}.square-button{width:30px;height:30px;font-size:17px}.tool-button:hover:not(:disabled),.square-button:hover:not(:disabled),.search-bar button:hover{background:#3a3a3a}.tool-button.active,.tool-button.primary{background:var(--accent);color:#fff;border-color:#78b3ed}.tool-button.primary:hover{background:var(--accent-hover)}.annotation-tool-cluster{position:relative;display:flex;align-items:center;gap:2px;margin:0 2px;padding:10px 2px 0;border:1px solid #444;border-radius:4px}.annotation-tool-cluster>small{position:absolute;top:0;left:5px;color:#9ca7ad;font-size:8px;line-height:10px;pointer-events:none}.annotation-tool-cluster .tool-button{min-height:25px}.page-input-label{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:12px}#page-input{width:40px;padding:4px;text-align:center;border:1px solid #555;border-radius:3px;background:#343434;color:#fff}#zoom-select{width:88px;padding:5px;border:1px solid #555;border-radius:3px;background:#343434;color:#fff}.search-bar{grid-area:search;z-index:8;display:flex;justify-self:end;align-items:center;gap:5px;width:min(420px,calc(100vw - 20px));margin:5px 12px -41px 0;padding:7px;border:1px solid #535353;border-radius:7px;background:#242424;box-shadow:0 5px 20px #0008}.search-bar[hidden]{display:none}.search-bar input{flex:1;min-width:0;padding:6px 8px;border:1px solid #5b5b5b;border-radius:4px;background:#363636;color:#fff}.search-bar button{width:28px;height:28px}#search-status{min-width:52px;color:var(--muted);text-align:center;font-size:12px}.workspace{grid-area:workspace;position:relative;display:grid;grid-template-columns:182px minmax(0,1fr) var(--annotation-palette-lane-width) 198px;min-height:0;background:var(--view)}.workspace.hide-thumbnails{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) 198px}.workspace.hide-properties{grid-template-columns:182px minmax(0,1fr) var(--annotation-palette-lane-width) var(--right-panel-reopen-width)}.workspace.hide-thumbnails.hide-properties{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) var(--right-panel-reopen-width)}.panel-reopen{position:fixed;z-index:60;top:50%;display:none;align-items:center;justify-content:center;min-width:32px;min-height:82px;padding:7px 4px;border:1px solid #617b91;background:#21384aee;color:#e9f5ff;cursor:pointer;font-size:11px;font-weight:700;writing-mode:vertical-rl;box-shadow:0 3px 12px #0007;transform:translateY(-50%)}.panel-reopen:hover{background:var(--accent)}.panel-reopen-left{left:0;border-left:0;border-radius:0 7px 7px 0}.panel-reopen-right{right:0;width:var(--right-panel-reopen-width);min-width:var(--right-panel-reopen-width);border-right:0;border-radius:7px 0 0 7px}.workspace.hide-thumbnails .panel-reopen-left,.workspace.hide-properties .panel-reopen-right{display:flex}.thumbnail-panel,.properties-panel{min-width:0;overflow:hidden;background:var(--panel)}.thumbnail-panel{grid-column:1}.viewer{grid-column:2}.properties-panel{grid-column:4}.workspace.hide-properties .properties-panel{visibility:hidden}.thumbnail-panel{border-right:1px solid var(--line)}.properties-panel{border-left:1px solid var(--line)}.sidebar-mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 30px;height:36px;border-bottom:1px solid #393939}.sidebar-mode-tabs button{min-width:0;border:0;border-right:1px solid #393939;background:#202020;color:#aaa;cursor:pointer;font-size:12px}.sidebar-mode-tabs button.active{background:#303b47;color:#fff;box-shadow:inset 0 -2px var(--accent)}.sidebar-mode-tabs button:hover{background:#363f48;color:#fff}.sidebar-mode-tabs .sidebar-close{border-right:0;color:#bbb;font-size:19px}.panel-title{display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:11px;border-bottom:1px solid #3a3a3a;color:#cfcfcf;font-size:12px;font-weight:700}.panel-title button{width:29px;height:29px;border:0;background:transparent;color:#aaa;cursor:pointer;font-size:19px}.panel-title button:hover{background:#363636}.panel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #393939}.panel-tabs button{min-height:34px;border:0;border-right:1px solid #393939;background:#202020;color:#aaa;cursor:pointer}.panel-tabs button.active{background:#303b47;color:#fff;box-shadow:inset 0 -2px var(--accent)}.ai-tool-list{display:grid;gap:9px}.ai-tool-list button{display:grid;gap:3px;width:100%;padding:11px 12px;border:1px solid #4a5968;border-radius:5px;background:#25313c;color:#f2f7fb;text-align:left;cursor:pointer}.ai-tool-list button:hover:not(:disabled){border-color:#72b8f3;background:#30465a}.ai-tool-list button:disabled{opacity:.45;cursor:default}.ai-tool-list strong{font-size:13px}.ai-tool-list span{color:#b8c5cf;font-size:10px;line-height:1.4}.thumbnails,.file-thumbnails,.pdf-outline{height:calc(100% - 36px);overflow:auto;padding:8px 7px 40px}.thumbnails[hidden],.file-thumbnails[hidden],.pdf-outline[hidden]{display:none}.file-sidebar-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;height:70px;padding:5px;border-bottom:1px solid #414141;background:#242424}.file-sidebar-actions>:first-child{grid-column:1 / -1}.file-sidebar-actions[hidden]{display:none}.file-sidebar-actions button{min-width:0;padding:4px;overflow:hidden;border:1px solid #505050;border-radius:4px;background:#303030;color:#e7e7e7;cursor:pointer;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.file-sidebar-actions button:hover:not(:disabled){border-color:#76baf2;background:#3b4d5e}.file-sidebar-actions .danger-button:hover:not(:disabled){border-color:#d77;background:#683737}.file-sidebar-actions:not([hidden])+.file-thumbnails{height:calc(100% - 106px)}.file-thumbnails{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;overscroll-behavior:contain}.file-thumbnail{position:relative;display:grid;flex:0 0 var(--file-item-height, 202px);width:100%;height:var(--file-item-height, 202px);border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);touch-action:pan-y}.file-thumbnail:hover{background:#303030}.file-thumbnail.active{border-color:var(--accent);background:#253d55;color:#fff}.file-thumbnail.selected{outline:2px solid #87c7ff;outline-offset:-4px}.file-thumbnail.dirty .file-thumbnail-name{color:#ffd36d}.file-thumbnail.dragging{opacity:.42;cursor:grabbing}.file-thumbnail-open{display:grid;width:100%;height:100%;place-content:center;justify-items:center;gap:5px;padding:7px 4px 5px;border:0;border-radius:inherit;background:transparent;color:inherit;cursor:pointer}.file-thumbnail-select{position:absolute;z-index:3;top:6px;left:6px;width:25px;height:25px;padding:0;border:1px solid #6a6a6a;border-radius:50%;background:#222d;color:transparent;cursor:pointer;font-size:14px;font-weight:800}.file-thumbnail-select:hover{border-color:#9ed2ff;background:#314c64}.file-thumbnail.selected .file-thumbnail-select{border-color:#b9e1ff;background:var(--accent);color:#fff}.file-thumbnail-preview{display:grid;place-items:center}.file-thumbnail.loading .file-thumbnail-preview{width:128px;height:166px;background:#efefef linear-gradient(110deg,#e2e2e2 20%,#fafafa,#e2e2e2 64%);background-size:220% 100%;animation:file-thumb-loading 1.1s linear infinite;box-shadow:0 1px 5px #0009}.file-thumbnail-preview img{display:block;max-width:128px;max-height:166px;background:#fff;box-shadow:0 1px 5px #0009;pointer-events:none}.file-thumbnail-preview img:not([src]){display:none}.file-thumbnail-name{display:-webkit-box;max-width:150px;overflow:hidden;font-size:11px;line-height:1.3;overflow-wrap:anywhere;text-align:center;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-thumbnails.reordering{cursor:grabbing;user-select:none}.file-drop-indicator{position:absolute;z-index:4;right:8px;left:8px;height:3px;border-radius:2px;background:#4a90d9;box-shadow:0 0 0 1px #d7ecff,0 0 8px #4a90d9;pointer-events:none;transform:translateY(-1px)}.file-drop-indicator[hidden]{display:none}@keyframes file-thumb-loading{to{background-position:-220% 0}}.thumbnail{position:relative;display:grid;justify-items:center;gap:4px;width:100%;margin-bottom:8px;padding:7px 4px 5px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}.thumbnail:hover{background:#303030}.thumbnail.active{background:#253d55;border-color:var(--accent);color:#fff}.thumbnail.selected{outline:2px solid #87c7ff;outline-offset:-3px}.thumbnail.dragging{opacity:.45}.thumbnail.drop-before{box-shadow:inset 0 4px #78bfff}.thumbnail.drop-after{box-shadow:inset 0 -4px #78bfff}.thumbnail canvas{display:block;max-width:128px;max-height:166px;background:#fff;box-shadow:0 1px 5px #0009}.thumbnail:not([data-rendered=true]) canvas{width:128px;height:166px}.thumbnail span{font-size:11px}.pdf-outline{overscroll-behavior:contain}.pdf-outline-message{margin:12px 7px;color:#aeb7bd;font-size:11px;line-height:1.6;text-align:center}.pdf-outline-message.error{color:#ffb6b6}.pdf-outline-item,.pdf-outline-group{display:block}.pdf-outline-entry{display:flex;align-items:center;gap:5px;width:100%;min-height:31px;padding:5px 7px 5px calc(7px + var(--outline-indent, 0px));border:0;border-radius:4px;background:transparent;color:#c5cbd0;font-size:11px;line-height:1.35;text-align:left}button.pdf-outline-entry{cursor:pointer}button.pdf-outline-entry:hover{background:#303a43;color:#fff}.pdf-outline-entry.active{background:#253d55;color:#fff;box-shadow:inset 3px 0 var(--accent)}.pdf-outline-entry.heading{color:#aeb7bd}.pdf-outline-entry.bold{font-weight:700}.pdf-outline-entry.italic{font-style:italic}.pdf-outline-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-outline-page{flex:0 0 auto;margin-left:auto;color:#88949c;font-size:10px}.pdf-outline-entry.active .pdf-outline-page{color:#cfe7ff}.viewer{position:relative;min-width:0;min-height:0;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;outline:none;-webkit-overflow-scrolling:touch}.pages{display:flex;flex-direction:column;align-items:flex-start;gap:var(--page-spacing, 18px);min-height:100%;padding:24px}.pages.horizontal-scroll{width:max-content;min-width:100%;flex-direction:row;align-items:flex-start}.pages.horizontal-scroll.vertical-document{flex-direction:row-reverse}.pages.horizontal-scroll .page-shell{margin-inline:0;margin-block:auto}.pages.single-mode{justify-content:center}.page-shell{position:relative;isolation:isolate;flex:0 0 auto;margin-inline:auto;background:#fff;box-shadow:0 3px 18px #0008;touch-action:pinch-zoom}.page-shell.loading:after{content:"読み込み中…";position:absolute;inset:0;display:grid;place-items:center;background:#fff;color:#555;font-size:13px}.pdf-canvas{display:block}.text-layer{position:absolute;inset:0;overflow:hidden;line-height:1;opacity:1}.text-layer span{position:absolute;color:transparent;white-space:pre;transform-origin:0 0;cursor:text}.text-layer .text-selection-separator{width:0!important;height:0!important;overflow:hidden;font-size:0!important;transform:none!important}.ocr-layer{position:absolute;inset:0;overflow:hidden;line-height:1;pointer-events:none}.ocr-layer span{position:absolute;color:transparent;white-space:pre;transform-origin:0 0;cursor:text;pointer-events:auto}.text-layer mark,.ocr-layer mark{color:transparent;padding:0;background:#ffe76b88}.text-layer mark.search-hit-current,.ocr-layer mark.search-hit-current{position:relative;z-index:1;background:#ff174557;outline:2px solid #fff;outline-offset:1px;border-radius:1px;box-shadow:0 0 0 4px #8e0024,0 0 13px 4px #ff1745}.text-layer ::selection,.text-layer span::selection,.ocr-layer span::selection{background:#3b94e688}.page-shell.ocr-active:before{content:"OCR";position:absolute;z-index:5;top:5px;right:5px;padding:2px 5px;border-radius:3px;background:#14766bcc;color:#fff;font:700 9px/1.2 system-ui,sans-serif;pointer-events:none}.annotation-canvas{position:absolute;inset:0;width:100%;height:100%}.marker-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:multiply}.pdf-link-layer{position:absolute;z-index:6;inset:0;overflow:hidden;pointer-events:none}.pdf-link{position:absolute;box-sizing:border-box;pointer-events:auto;cursor:pointer;touch-action:manipulation;border-radius:2px}.pdf-link:hover,.pdf-link:focus-visible{background:#1e75ff24;outline:2px solid rgba(30,117,255,.8);outline-offset:-2px}.inline-memo-editor{position:absolute;z-index:12;box-sizing:border-box;min-width:0;min-height:0;padding:6px;border:0;border-radius:3px;outline:2px solid #168df2;line-height:1.35;overflow:auto;resize:none;box-shadow:0 5px 18px #0005}.inline-memo-editor.vertical-writing{writing-mode:vertical-rl;text-orientation:mixed}.inline-memo-editor{background:transparent;color:#222}.inline-memo-editor:empty:before{content:attr(data-placeholder);color:#777;pointer-events:none}.memo-ime-margin{position:absolute;z-index:11;background:#eef5ffed;outline:1px dashed #168df2;pointer-events:none}.toolbar .memo-format-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px;width:100%}.toolbar .memo-format-toolbar[hidden]{display:none}.toolbar .memo-format-toolbar h2{margin:0;font-size:12px}.toolbar .memo-format-toolbar label{display:flex;gap:4px;align-items:center;font-size:11px}.toolbar .memo-format-toolbar input[type=number]{width:58px}.toolbar .memo-format-toolbar select{max-width:140px}.toolbar .memo-format-toolbar .wide-button{width:auto;font-size:11px}.page-shell.tool-hand .annotation-canvas,.page-shell.tool-select .annotation-canvas{pointer-events:none}.page-shell.tool-select .text-layer,.page-shell.tool-select .ocr-layer{-webkit-user-select:text;user-select:text}.page-shell.tool-hand{cursor:grab}.viewer.hand-panning,.viewer.hand-panning .page-shell{cursor:grabbing;user-select:none}.viewer.control-hand,.viewer.control-hand *{cursor:grab!important}.viewer.control-hand.hand-panning,.viewer.control-hand.hand-panning *{cursor:grabbing!important}.page-shell.tool-select{touch-action:pan-x pan-y pinch-zoom}.page-shell.tool-shape-select{cursor:default}.page-shell.tool-pen,.page-shell.tool-marker-pen,.page-shell.tool-marker-line,.page-shell.tool-laser{cursor:none}.page-shell.tool-cleanup{cursor:crosshair}.page-shell.tool-line,.page-shell.tool-arrow,.page-shell.tool-rect,.page-shell.tool-ellipse,.page-shell.tool-snapshot{cursor:url(./thick-crosshair-BTT8ILf4.svg) 14 14,crosshair}.page-shell.tool-memo{cursor:text}.page-shell.tool-eraser{cursor:url(./eraser-cursor-D7IYx9Ns.svg) 7 22,crosshair}.empty-state{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;padding:30px;text-align:center}.empty-state[hidden]{display:none}.empty-icon{display:grid;place-items:center;width:82px;height:98px;border:2px solid #767676;border-radius:8px 8px 15px;background:#f5f5f5;color:#c84949;font-weight:900;font-size:19px;box-shadow:0 9px 22px #0005}.empty-state h1{margin:5px 0 0;font-size:25px}.empty-state p{max-width:520px;margin:0;color:#c4c4c4}.empty-state small{color:#9e9e9e}.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.large-primary,.wide-button{border:1px solid #555;border-radius:5px;padding:8px 13px;cursor:pointer}.large-primary{border-color:#78b3ed;background:var(--accent);color:#fff;font-weight:700}.large-primary:hover{background:var(--accent-hover)}.wide-button{width:100%;background:#373737}.wide-button:hover:not(:disabled){background:#454545}.wide-button.danger{color:#faa}.secondary-link{border:0;background:transparent;color:#b4dafc;cursor:pointer;text-decoration:underline}.property-content{height:calc(100% - 71px);overflow:auto;padding:13px 12px 40px}.property-content label{display:grid;gap:7px;margin-bottom:16px;color:#c4c4c4;font-size:12px}.property-content input[type=color]{width:100%;height:34px;border:1px solid #555;background:#333}.property-content input[type=range]{width:100%}.property-content select,.property-content input[type=number]{width:100%;min-height:32px;padding:4px 7px;border:1px solid #555;border-radius:4px;background:#292929;color:#eee}.property-content output{color:var(--muted);text-align:right}.property-content h2{margin:12px 0 9px;font-size:13px}.property-content hr{height:1px;margin:15px 0;border:0;background:#3c3c3c}.property-content .wide-button{margin-bottom:7px;font-size:12px}.annotation-property-section[hidden]{display:none}.annotation-property-section+.annotation-property-section{margin-top:14px;padding-top:2px;border-top:1px solid #3c3c3c}.property-hint{margin:-6px 0 13px;color:var(--muted);font-size:11px;line-height:1.55}.palette-quick-tool-settings{display:grid;grid-template-columns:1fr;gap:2px}.palette-quick-tool-settings .check-label{margin-bottom:5px}.ocr-page-status{margin:-2px 0 9px;padding:7px;border-radius:4px;background:#303b40;color:#bcd5df;font-size:11px;line-height:1.45}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.palette button{aspect-ratio:1;border:2px solid #777;border-radius:50%;background:var(--swatch);cursor:pointer}.palette button:hover{transform:scale(1.08);border-color:#fff}.annotation-palette-title{margin-top:0}.mini-button{border:1px solid #555;border-radius:4px;background:#303030;color:#ddd;cursor:pointer}.palette-slot{position:relative;height:42px;padding:3px;border:1px solid #5b5b5b;border-radius:3px;background:#fafafa;color:#555;cursor:pointer;overflow:hidden}.palette-slot:before{content:attr(data-slot);position:absolute;top:1px;left:3px;font-size:8px;font-weight:700}.palette-slot:after{content:"";position:absolute;left:7px;right:7px;top:19px;border-top:var(--palette-width, 2px) var(--palette-style, solid) var(--palette-color, #bbb);opacity:var(--palette-opacity, 1)}.palette-slot.empty:after{content:"+";top:7px;border:0;color:#999;font-size:16px;text-align:center}.palette-slot-opacity{position:absolute;right:2px;bottom:1px;left:2px;overflow:hidden;color:#3f5362;font-size:8px;font-weight:700;line-height:1;text-align:center;text-overflow:ellipsis;white-space:nowrap}.palette-slot.empty .palette-slot-opacity{color:#8a8a8a;font-size:7px;font-weight:500}.palette-slot.selected{border:2px solid var(--accent);box-shadow:0 0 0 1px #fff}.compact-actions,.pdf-tool-list{display:grid;gap:5px}.pdf-tool-list button{min-height:34px;padding:7px 10px;border:1px solid #555;border-radius:4px;background:#303030;color:#eee;text-align:left;cursor:pointer}.pdf-tool-list button:hover:not(:disabled){border-color:var(--accent);background:#374657;transform:translate(2px)}.pdf-tool-list button:disabled{color:#777;cursor:default}.statusbar{grid-area:status;display:flex;align-items:center;gap:16px;padding:0 9px;background:var(--panel);border-top:1px solid #3a3a3a;color:#bdbdbd;font-size:11px}#status-message{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.statusbar button{height:21px;border:0;background:transparent;color:#c8c8c8;cursor:pointer}dialog{width:min(470px,calc(100vw - 28px));padding:0;border:1px solid #5a5a5a;border-radius:9px;background:#282828;color:var(--text);box-shadow:0 16px 55px #000c}dialog::backdrop{background:#0009;backdrop-filter:blur(2px)}.dialog-card{display:grid;gap:15px;padding:21px}.dialog-card h2,.dialog-card p{margin:0}.dialog-card>label{display:grid;gap:6px;color:#d4d4d4;font-size:12px}.dialog-card textarea,.dialog-card input[type=number],.dialog-card input[type=password],.dialog-card select{width:100%;min-height:34px;padding:8px;border:1px solid #595959;border-radius:5px;background:#353535;color:#fff}#pdf-tool-dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100vh - 20px);overflow:auto}#ocr-editor-dialog{width:min(760px,calc(100vw - 28px))}#camera-scan-dialog{width:min(980px,calc(100vw - 8px));max-width:none;height:calc(100dvh - 8px);max-height:none;padding:0;overflow:hidden}#palette-dialog{position:fixed;z-index:110;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 16px);margin:0;overflow:auto}.camera-scan-card{width:100%;height:100%;gap:6px;padding:6px;grid-template-rows:auto minmax(0,1fr)}.camera-scan-heading{position:relative;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;min-height:34px;gap:8px;padding-inline:6px}.camera-scan-heading h2{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.camera-mode-choice,.camera-live-view,.camera-correction-view,.camera-review-view{min-height:0}.camera-mode-choice[hidden],.camera-live-view[hidden],.camera-correction-view[hidden],.camera-review-view[hidden],.camera-quality-options[hidden],.camera-pages-heading[hidden],.camera-pages[hidden]{display:none}.camera-mode-choice{display:grid;align-content:center;gap:22px;padding:24px;text-align:center}.camera-mode-choice>p{margin:0;color:#c5cdd3;font-weight:700}.camera-mode-choice>div{display:grid;grid-template-columns:repeat(2,minmax(0,280px));justify-content:center;gap:18px}.camera-mode-choice button{display:grid;min-height:150px;align-content:center;gap:8px;padding:22px;border:2px solid #53626b;border-radius:14px;background:#20282d;color:#eef4f7;cursor:pointer}.camera-mode-choice button:hover{border-color:#3baeff;box-shadow:0 8px 24px #0006}.camera-mode-choice strong{font-size:25px}.camera-mode-choice span{color:#b6c3cb;font-size:12px;line-height:1.5}.camera-live-view{display:grid;width:100%;height:100%;grid-template-rows:minmax(0,1fr) auto;place-items:stretch;gap:6px}.camera-live-actions{display:flex;justify-content:flex-end}.camera-file-button{position:relative;display:inline-grid;width:auto;min-width:180px;place-items:center;overflow:hidden;cursor:pointer}.camera-file-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.camera-preview-frame{position:relative;display:grid;width:100%;height:100%;min-height:0;place-items:center;overflow:hidden;border:1px solid #53626b;border-radius:8px;background:#080a0b}#camera-preview{display:block;width:100%;height:100%;object-fit:contain}.camera-document-guide{position:absolute;left:50%;top:50%;width:82%;aspect-ratio:210 / 297;border:2px dashed #3baeff;border-radius:6px;box-shadow:0 0 0 200vmax #0003;transform:translate(-50%,-50%);pointer-events:none}.camera-scan-status{position:absolute;left:50%;top:10px;max-width:calc(100% - 24px);padding:5px 9px;border-radius:999px;background:#0009;color:#dce9f0;font-size:11px;text-align:center;transform:translate(-50%)}.camera-scan-status:empty{display:none}.camera-scan-status.error-text{background:#741d1de8;color:#fff;font-weight:700}.camera-capture-button{position:absolute;left:50%;bottom:16px;display:grid;width:68px;height:68px;place-items:center;padding:0;border:3px solid #dceeff;border-radius:50%;background:#246ba0;cursor:pointer;box-shadow:0 2px 12px #0008;transform:translate(-50%)}.camera-capture-button span{width:44px;height:44px;border-radius:50%;background:#fff}.camera-capture-button:hover:not(:disabled){background:#3184be;transform:translate(-50%) scale(1.03)}.camera-capture-button:disabled{opacity:.45;cursor:wait}.camera-correction-view{position:relative;display:grid;height:100%;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:7px}.camera-corner-editor{position:relative;display:grid;width:fit-content;max-width:100%;height:fit-content;max-height:100%;place-items:center;align-self:center;margin:0 auto;overflow:hidden;border:1px solid #68757d;border-radius:8px;background:#111;touch-action:none;user-select:none}#camera-capture-canvas{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 150px);background:#111}.camera-corner-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.camera-corner-overlay polygon{fill:#159de522;stroke:#079cff;stroke-width:3;stroke-linejoin:round;filter:drop-shadow(0 0 1px #001722) drop-shadow(0 0 2px #fff);vector-effect:non-scaling-stroke}.camera-corner-handle{position:absolute;width:54px;height:54px;padding:0;border:0;border-radius:50%;background:transparent;cursor:grab;transform:translate(-50%,-50%);touch-action:none}.camera-corner-handle:before{position:absolute;left:50%;top:50%;width:28px;height:28px;border:3px solid #fff;border-radius:50%;background:#168cd5;box-shadow:0 1px 7px #000c;content:"";transform:translate(-50%,-50%)}.camera-corner-handle:active{cursor:grabbing}.camera-corner-handle:active:before{background:#35b4ff}.camera-corner-editor.image-crop .camera-corner-overlay polygon{fill:#159de511;stroke-dasharray:7 5}.camera-corner-editor.image-crop .camera-corner-handle:before{width:30px;height:12px;border-radius:999px}.camera-corner-editor.image-crop .camera-corner-handle.edge-left:before,.camera-corner-editor.image-crop .camera-corner-handle.edge-right:before{width:12px;height:30px}.camera-corner-editor.previewing{flex:none}.camera-corner-editor.previewing #camera-capture-canvas{width:100%;max-width:100%;height:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}.camera-corner-editor.previewing .camera-corner-overlay,.camera-corner-editor.previewing .camera-corner-handle{display:none}.corner-top-left{left:4%;top:4%}.corner-top-right{left:96%;top:4%}.corner-bottom-right{left:96%;top:96%}.corner-bottom-left{left:4%;top:96%}.camera-correction-controls{position:relative;display:grid;width:100%;gap:6px}.camera-editor-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.camera-quality-options{position:absolute;right:0;bottom:calc(100% + 6px);z-index:5;display:grid;min-width:160px;padding:6px;border:1px solid #63717a;border-radius:7px;background:#20282dcc;box-shadow:0 5px 18px #0009;backdrop-filter:blur(8px)}.camera-quality-options button{min-height:38px;border:0;border-radius:5px;background:transparent;color:#e9f0f4;text-align:left;cursor:pointer}.camera-quality-options button.active{background:#286f9d;color:#fff;font-weight:700}.camera-review-view{display:grid;height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto 58px auto auto;gap:4px}.camera-review-view.image-mode{grid-template-rows:minmax(0,1fr) auto auto}.camera-review-stage{display:grid;min-height:0;place-items:center;overflow:hidden;padding:4px;border:1px solid #68757d;border-radius:8px;background:#111}#camera-review-image{display:block;width:100%;max-width:100%;height:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}.camera-pages-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.camera-pages-heading h3{margin:0;font-size:13px}.camera-pages-heading span{color:#9fadb6;font-size:11px}.camera-pages{display:flex;min-height:52px;max-height:58px;align-items:stretch;gap:4px;padding:2px;overflow-x:auto}.camera-pages-empty{align-self:center;width:100%;color:#98a5ad;font-size:12px;text-align:center}.camera-review-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.camera-page-item{position:relative;display:grid;flex:0 0 46px;grid-template-rows:36px auto;gap:1px;padding:2px;border:1px solid #56636a;border-radius:4px;background:#171c1f;color:#e5edf2;text-align:center;cursor:pointer}.camera-page-item.selected{border-color:#4bb8ff;box-shadow:0 0 0 2px #269eea88}.camera-page-item img{width:100%;height:36px;object-fit:contain;background:#fff}.camera-page-item span{font-size:8px;line-height:1}.danger-text{justify-self:end;color:#ffaaa4}.camera-finish-actions{display:grid;grid-template-columns:1fr 1.25fr;padding-top:2px}@media(orientation:landscape){.camera-document-guide{top:50%;width:82%;height:auto;aspect-ratio:297 / 210;transform:translate(-50%,-50%)}}.pdf-tool-card,.editor-card,.palette-card{width:auto}.pdf-tool-card{gap:12px;padding:17px}.pdf-tool-description{color:#c5cdd3;font-size:13px;line-height:1.55}.pdf-tool-workspace{display:grid;grid-template-columns:minmax(235px,.85fr) minmax(310px,1.15fr);align-items:start;gap:12px}.pdf-tool-workspace.has-preview .pdf-tool-source-section,.pdf-tool-workspace.has-preview .pdf-tool-settings-section{grid-column:1}.pdf-tool-workspace.has-preview .pdf-tool-preview-section{grid-column:2;grid-row:1 / span 2}.pdf-tool-section{min-width:0;padding:12px;border:1px solid #4a5155;border-radius:7px;background:#22292d}.pdf-tool-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:26px;margin-bottom:9px}.pdf-tool-section-heading h3{margin:0;color:#f3f5f6;font-size:13px}.pdf-tool-section-heading span{color:#9eabb3;font-size:11px}.pdf-tool-drop-zone{display:grid;width:100%;min-height:74px;place-items:center;align-content:center;gap:4px;padding:10px;border:1px dashed #64747e;border-radius:6px;background:#293339;color:#e4edf2;cursor:pointer}.pdf-tool-drop-zone span{color:#aebbc3;font-size:11px}.pdf-tool-drop-zone:hover:not(:disabled),.pdf-tool-drop-zone.drag-over{border-color:#70b7ef;background:#31434e}.pdf-tool-drop-zone:disabled{min-height:58px;border-style:solid;color:#d5dde2;cursor:default}.pdf-tool-source-list{display:grid;max-height:172px;gap:5px;margin-top:8px;overflow:auto}.pdf-tool-source-empty{padding:12px 8px;border:1px solid #3c4449;border-radius:5px;color:#98a4ab;font-size:11px;text-align:center}.pdf-tool-source-item{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:38px;padding:5px 6px;border:1px solid #414b50;border-radius:5px;background:#1c2225}.pdf-tool-source-index{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#34454f;color:#dbeaf3;font-size:10px;font-weight:700}.pdf-tool-source-name{min-width:0;overflow:hidden;color:#edf1f3;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.pdf-tool-source-name small{display:block;margin-top:2px;color:#91a0aa;font-size:9px}.pdf-tool-source-item-actions{display:flex;gap:3px}.pdf-tool-source-item-actions button,.pdf-tool-preview-navigation button,.pdf-page-editor-actions button{min-width:27px;min-height:27px;padding:2px 6px;border:1px solid #526068;border-radius:4px;background:#303b41;color:#e6eef2;cursor:pointer}.pdf-tool-source-item-actions button:disabled,.pdf-page-editor-actions button:disabled{color:#6f7a80;cursor:default}.pdf-tool-source-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.pdf-tool-source-actions .mini-button{min-height:30px;padding:4px 9px}.danger-button{border-color:#765252;background:#4b2d2d}.pdf-tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pdf-tool-fields label{display:grid;gap:5px;color:#ddd;font-size:12px}.pdf-tool-fields input,.pdf-tool-fields select,.pdf-tool-fields textarea{min-height:34px;padding:6px 8px;border:1px solid #666;border-radius:4px;background:#181818;color:#fff}.pdf-tool-fields .field-wide{grid-column:1 / -1}.pdf-tool-fields .check-label{display:flex}.pdf-tool-fields .check-label input{min-height:0}.pdf-tool-choice{min-width:0;margin:0;padding:0;border:0}.pdf-tool-choice legend{margin-bottom:5px;color:#ddd;font-size:12px}.pdf-tool-choice-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:4px}.pdf-tool-choice-options label{position:relative;display:block;cursor:pointer}.pdf-tool-choice-options input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;pointer-events:none}.pdf-tool-choice-options span{display:grid;min-height:34px;place-items:center;padding:5px 8px;border:1px solid #58646b;border-radius:4px;background:#30393e;color:#dce4e8;font-size:11px;text-align:center}.pdf-tool-choice-options input:checked+span{border-color:#70b7ef;background:#245779;color:#fff;box-shadow:inset 0 0 0 1px #8ecaf7}.pdf-tool-choice-options input:focus-visible+span{outline:2px solid #aad8fa;outline-offset:1px}.pdf-tool-suboptions[hidden]{display:none}.pdf-tool-inline-note{grid-column:1 / -1;margin:0;padding:9px;border-left:3px solid #4a95c9;background:#29343a;color:#bfcbd1;font-size:11px;line-height:1.5}.pdf-page-order-editor{display:grid;gap:7px}.pdf-page-order-list{display:flex;min-height:148px;align-items:stretch;gap:7px;padding:7px;overflow-x:auto;border:1px solid #48545a;border-radius:5px;background:#171c1f}.pdf-page-order-item{position:relative;display:grid;flex:0 0 108px;min-height:134px;place-items:center;align-content:end;gap:5px;padding:17px 7px 7px;overflow:hidden;border:1px solid #626d73;border-radius:4px;background:linear-gradient(#fff,#e8ecee);color:#26333a;cursor:grab;font-weight:700}.pdf-page-order-thumbnail{display:block;max-width:92px;max-height:104px;object-fit:contain;border:1px solid #aab2b7;background:#fff;box-shadow:0 2px 5px #0004;pointer-events:none}.pdf-page-order-item>span{pointer-events:none}.pdf-page-order-item:before{content:attr(data-order);position:absolute;top:3px;left:5px;color:#657078;font-size:8px}.pdf-page-order-item.selected{border-color:#72c0f8;box-shadow:0 0 0 2px #2d90d8}.pdf-page-order-item.drag-target{transform:translate(3px)}.pdf-page-editor-actions{display:flex;flex-wrap:wrap;gap:5px}.pdf-tool-preview-stage{display:grid;min-height:330px;place-items:center;padding:10px;overflow:hidden;border:1px solid #414a4f;border-radius:5px;background:#171b1e}#pdf-tool-preview-canvas{display:block;max-width:100%;max-height:390px;border:1px solid #68747b;background:#fff;box-shadow:0 5px 14px #0009}#pdf-tool-preview-canvas.align-resizable{touch-action:none;user-select:none}.pdf-tool-preview-navigation{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px}#pdf-tool-preview-page{min-width:68px;color:#d7dfe3;font-size:11px;text-align:center}.pdf-tool-status-panel{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;min-height:42px;padding:9px 11px;border:1px solid #404b50;border-radius:6px;background:#20272a}.pdf-tool-status-panel strong{color:#d6e0e5;font-size:11px}.pdf-tool-status-panel .hint{min-width:0;color:#aebac0;line-height:1.45}#pdf-tool-dialog.ocr-log-expanded .pdf-tool-status-panel{min-height:168px;max-height:168px}#pdf-tool-dialog.ocr-log-expanded #pdf-tool-status{max-height:148px;overflow-y:auto;white-space:pre-wrap;scrollbar-gutter:stable}.editor-card textarea{min-height:48vh}.editor-status{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#bbb;font-size:12px}.palette-dialog-heading,.pdf-tool-dialog-heading{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:10px}.pdf-tool-dialog-heading h2{margin:0}.palette-card h2{cursor:move;touch-action:none;user-select:none}.dialog-close-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #60666a;border-radius:5px;background:#34383b;color:#f1f1f1;cursor:pointer;font:400 23px/1 system-ui,sans-serif}.dialog-close-button:hover,.dialog-close-button:focus-visible{border-color:#9acbfa;background:#47525a;color:#fff}.palette-tool-row{display:flex;gap:5px;flex-wrap:wrap}.palette-tool-row button{flex:1;min-width:72px;min-height:34px;border:1px solid #555;border-radius:4px;background:#303030;color:#eee}.palette-tool-row button.active{border-color:#83c2ff;background:#315575;color:#fff}.annotation-palette-dialog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.annotation-palette-dialog-grid .palette-slot{height:62px}.annotation-palette-dialog-grid .palette-slot:before{top:4px;left:5px;font-size:10px}.annotation-palette-dialog-grid .palette-slot:after{top:29px}.annotation-palette-dialog-grid .palette-slot.empty:after{top:16px;font-size:20px}.annotation-palette-dialog-grid .palette-slot-opacity{bottom:4px;font-size:10px}.annotation-palette-dialog-grid .palette-slot.empty .palette-slot-opacity{font-size:9px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions.vertical{display:grid}.dialog-actions .wide-button{width:auto}.pdf-ai-dialog{width:min(950px,calc(100vw - 22px));max-height:min(750px,calc(100vh - 22px));padding:0;border:1px solid #c7d1de;border-radius:16px;background:#fff;color:#20314b}.pdf-ai-dialog::backdrop{background:#06151d9e}.pdf-ai-card{display:grid;gap:14px;max-height:calc(100vh - 22px);padding:20px;overflow:auto}.pdf-ai-card header,.pdf-ai-card footer,.pdf-ai-section-head,.pdf-ai-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.pdf-ai-card h2,.pdf-ai-card h3,.pdf-ai-card p{margin:0}.pdf-ai-card h2{font:700 21px Georgia,Yu Mincho,serif}.pdf-ai-card h3{font-size:14px}.pdf-ai-card small{color:#60748b;font-weight:800;letter-spacing:.08em}.pdf-ai-card section{display:grid;gap:8px;padding:12px;border:1px solid #d9e3ed;border-radius:10px;background:#f8fafc}.pdf-ai-card label{display:grid;gap:5px;color:#33445e;font-size:13px;font-weight:700}.pdf-ai-card input[type=text],.pdf-ai-card textarea{width:100%;border:1px solid #cbd4df;border-radius:8px;padding:9px;color:#20314b;font:inherit}.pdf-ai-card button{min-height:34px;padding:7px 12px;border:0;border-radius:8px;background:#e4ebf3;color:#244267;font-weight:800;cursor:pointer}.pdf-ai-card footer button:last-child,.pdf-ai-actions button:first-child{background:#315da8;color:#fff}.pdf-ai-card button.danger{background:#b82f3c;color:#fff}.pdf-ai-files,.pdf-ai-folders{display:grid;gap:6px;max-height:170px;overflow:auto}.pdf-ai-file{display:grid;grid-template-columns:minmax(0,1fr) 150px auto auto;gap:7px;align-items:center;padding:7px;border:1px solid #d6e0e8;border-radius:7px;background:#fff}.pdf-ai-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-ai-file input{min-width:0;padding:6px;border:1px solid #cbd4df;border-radius:6px}.pdf-ai-folder{display:block;padding:7px;border:1px solid #d6e0e8;border-radius:7px;background:#fff;text-align:left}.pdf-ai-folder[aria-selected=true]{border-color:#315da8;background:#eaf2fc}.pdf-ai-log{min-height:72px;max-height:220px;margin:0;overflow:auto;white-space:pre-wrap;word-break:break-word;border:1px solid #d6e0e8;border-radius:8px;padding:10px;background:#f8fafc;color:#25364e;font:12px/1.55 ui-monospace,Consolas,monospace}.pdf-ai-results{display:grid;gap:6px}.pdf-ai-results a{color:#1d5ca4;font-weight:800}.difficulty-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.difficulty-grid>section{min-width:0}.difficulty-grid textarea{resize:vertical}.pdf-ai-dialog button:focus-visible,.pdf-ai-dialog input:focus-visible,.pdf-ai-dialog textarea:focus-visible{outline:3px solid #8ec5ff;outline-offset:2px}@media(max-width:700px){.pdf-ai-file{grid-template-columns:minmax(0,1fr) auto}.pdf-ai-file input{grid-column:1/-1}.difficulty-grid{grid-template-columns:1fr}.pdf-ai-card{padding:14px}}.pdf-ai-dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100vh - 20px);border-color:#5a5a5a;border-radius:9px;background:#282828;color:var(--text);box-shadow:0 16px 55px #000c}.pdf-ai-dialog::backdrop{background:#0009;backdrop-filter:blur(2px)}.pdf-ai-card{gap:12px;max-height:none;padding:17px;overflow:visible}.pdf-ai-card .pdf-tool-dialog-heading{min-height:34px}.pdf-ai-card small{color:#9eabb3}.pdf-ai-card h2{color:#f3f5f6;font:inherit;font-size:18px}.pdf-ai-card h3,.pdf-ai-card p{color:#d6e0e5}.pdf-ai-card .pdf-tool-section{display:grid;gap:8px;padding:12px;border:1px solid #4a5155;border-radius:7px;background:#22292d}.pdf-ai-card label{color:#ddd}.pdf-ai-card input[type=text],.pdf-ai-card textarea,.pdf-ai-card input[type=file]{border-color:#666;border-radius:4px;background:#181818;color:#fff}.pdf-ai-card button{border:1px solid #526068;border-radius:4px;background:#303b41;color:#e6eef2}.pdf-ai-card button:hover:not(:disabled){border-color:#70b7ef;background:#315575;color:#fff}.pdf-ai-card footer{justify-content:flex-end}.pdf-ai-card footer button:last-child,.pdf-ai-actions button:first-child{border-color:#4b92c0;background:#286f9d;color:#fff}.pdf-ai-card button.danger{border-color:#765252;background:#4b2d2d;color:#ffd8d5}.pdf-ai-files,.pdf-ai-folders{max-height:172px}.pdf-ai-file{border-color:#414b50;border-radius:5px;background:#1c2225;color:#edf1f3}.pdf-ai-file input{border-color:#666;border-radius:4px;background:#181818;color:#fff}.pdf-ai-folder{border-color:#414b50;border-radius:5px;background:#1c2225;color:#e6eef2}.pdf-ai-folder[aria-selected=true]{border-color:#70b7ef;background:#245779;color:#fff;box-shadow:inset 0 0 0 1px #8ecaf7}.pdf-ai-file{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}.pdf-ai-folder-branch,.pdf-ai-folder-children{display:grid;gap:4px}.pdf-ai-folder-children[hidden]{display:none}.pdf-ai-folder-row{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:3px;padding-left:calc(var(--folder-depth, 0) * 20px)}.pdf-ai-folder-row:before{position:absolute;top:-4px;bottom:50%;left:calc(var(--folder-depth, 0) * 20px + 8px);width:10px;border-bottom:1px solid #5c6b73;border-left:1px solid #5c6b73;content:""}.pdf-ai-folder-row[style*="--folder-depth: 0"]:before{display:none}.pdf-ai-folder-toggle{width:24px;min-height:32px!important;padding:0!important;border-color:transparent!important;background:transparent!important;color:#a9c6d8!important}.pdf-ai-folder-toggle:disabled{color:#68777f!important;opacity:1}.pdf-ai-folder{min-width:0}.pdf-ai-log{border-color:#414b50;border-radius:5px;background:#171c1f;color:#d7dfe3}.pdf-ai-results a{color:#8ecaf7}.pdf-ai-mode-options{display:grid;width:100%;justify-items:stretch;gap:4px}.pdf-ai-mode-options label{display:flex;width:100%;min-height:34px;align-items:center;justify-content:flex-start;gap:8px;margin:0;padding:6px 8px;border:1px solid #58646b;border-radius:4px;background:#30393e;cursor:pointer;text-align:left}.pdf-ai-mode-options input[type=radio]{flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:#70b7ef}.pdf-ai-mode-options label:has(input:checked){border-color:#70b7ef;background:#245779;color:#fff;box-shadow:inset 0 0 0 1px #8ecaf7}.pdf-ai-mode-options label:focus-within{outline:2px solid #aad8fa;outline-offset:1px}.pdf-ai-log-section .pdf-ai-log,.difficulty-log-section .pdf-ai-log{min-height:110px;max-height:210px;user-select:text}.difficulty-grid{align-items:stretch}.difficulty-card{height:min(730px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);box-sizing:border-box;grid-template-rows:auto minmax(0,1fr) auto minmax(110px,150px);overflow:hidden}.difficulty-card .difficulty-grid{min-height:0}.difficulty-grid>.pdf-tool-section{min-width:0;height:100%;box-sizing:border-box}.difficulty-input-section{min-height:0;overflow:auto}.difficulty-result-section{min-height:0;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.difficulty-result-section #english-difficulty-result{width:100%;min-height:0;height:100%;max-height:none;box-sizing:border-box;overflow:auto;user-select:text}.difficulty-result-section #english-difficulty-save{min-height:34px;height:34px;padding-block:0}.difficulty-reference-actions button,.difficulty-reference-actions button:first-child{border-color:#526068;background:#303b41;color:#e6eef2}.difficulty-reference-dialog{width:min(1100px,calc(100vw - 28px))}.difficulty-reference-dialog .pdf-ai-card{max-height:calc(100dvh - 20px);overflow:hidden}.difficulty-reference-body{min-height:180px;max-height:calc(100dvh - 110px);padding:16px;overflow:auto;border:1px solid #414b50;border-radius:5px;background:#f8fafc;color:#17263a;line-height:1.65;user-select:text}.difficulty-reference-body h1,.difficulty-reference-body h2,.difficulty-reference-body h3{margin:0 0 12px;color:#17263a}.difficulty-reference-body h1{font-size:22px}.difficulty-reference-body h2{font-size:19px}.difficulty-reference-body p{margin:0 0 12px;color:#263a56}.difficulty-reference-body table{width:100%;margin:10px 0 16px;border-collapse:collapse;background:#fff;font-size:13px}.difficulty-reference-body th,.difficulty-reference-body td{padding:7px 9px;border:1px solid #c9d3df;text-align:left;vertical-align:top}.difficulty-reference-body th{position:sticky;top:0;background:#e7eef7;color:#17385e}.difficulty-reference-body tbody tr:nth-child(2n){background:#f3f6fa}.difficulty-reference-body a{color:#155aa0;font-weight:700;text-decoration:none}.difficulty-reference-body a:hover{text-decoration:underline}.pdf-ai-folders[role=tree]{padding:6px;border:1px solid #414b50;border-radius:5px;background:#171c1f}.pdf-docs-add-button{display:inline-flex!important;min-height:34px;align-items:center;justify-content:center;padding:7px 12px;border:1px solid #526068;border-radius:4px;background:#303b41;color:#e6eef2!important;cursor:pointer}#pdf-docs-status:empty{display:none}.dialog-link{display:inline-flex;align-items:center;justify-content:center;background:#373737;color:#e8f4ff;text-decoration:none}.dialog-link:hover{background:#454545}.check-label{display:flex;align-items:flex-start;gap:9px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px;border:1px solid #454f54;border-radius:7px;background:#30383b}.switch-row>span:first-child{display:grid;gap:3px}.switch-row small{color:var(--muted);line-height:1.45}.switch-control{position:relative;flex:0 0 auto;width:48px;height:28px}.switch-control input{position:absolute;width:1px;height:1px;opacity:0}.switch-control span{position:absolute;inset:0;border-radius:999px;background:#656b6d;cursor:pointer;transition:background .16s}.switch-control span:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 5px #0008;transition:transform .16s}.switch-control input:checked+span{background:#168f85}.switch-control input:checked+span:after{transform:translate(20px)}.switch-control input:focus-visible+span{outline:2px solid #84bdf4;outline-offset:2px}.hint{color:var(--muted);font-size:12px;line-height:1.6}.help-card{line-height:1.7}.help-card ol{margin:0;padding-left:22px}.install-card{line-height:1.65}.install-card ol{display:grid;gap:10px;margin:0;padding-left:24px}.install-card li span{display:block;color:#c8c8c8}.install-card code{color:#8fd1ff;user-select:all}.install-platform-hint{padding:10px 12px;border:1px solid #3f6870;border-radius:6px;background:#203b40;color:#d7f2f1}.ocr-progress-area{display:grid;gap:7px;padding:10px;border-radius:6px;background:#1f343b}.ocr-progress-area[hidden]{display:none}.ocr-progress-area progress{width:100%;height:13px;accent-color:#27a99b}.ocr-progress-area span{color:#cce9e6;font-size:12px}.dictionary-popup{position:fixed;z-index:80;top:120px;left:50%;width:min(454px,calc(100vw - 22px));max-height:min(70vh,520px);overflow:auto;border:1px solid #3da5b0;border-radius:8px;background:#24292c;color:var(--text);box-shadow:0 16px 45px #000c}.dictionary-popup[hidden]{display:none}.dictionary-grip{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;padding:5px 10px;border-bottom:1px solid #3b464b;background:#173b43;color:#dff8f7;cursor:move;touch-action:none;user-select:none}.dictionary-grip strong{font-size:12px}.dictionary-grip span{color:#9fc5c7;font-size:10px}.dictionary-head{display:grid;grid-template-columns:minmax(140px,1fr) auto auto 38px 32px;gap:6px;padding:9px 10px 7px}.dictionary-head input{min-width:0;height:34px;padding:4px 8px;border:1px solid #4b5b61;border-radius:5px;background:#181d20;color:#80c8ff;font-size:17px;font-weight:800}.dictionary-head button,.dictionary-head a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:4px 8px;border:1px solid #4e6268;border-radius:5px;background:#303a3e;color:#e6f4f5;cursor:pointer;font-size:12px;text-decoration:none}.dictionary-head button:hover,.dictionary-head a:hover{background:#3c4d52}.dictionary-head .dictionary-close{padding:0;color:#ffb0b0;font-size:19px}.dictionary-rule{height:1px;margin:0 10px;background:#3a4448}.dictionary-status{padding:16px 12px;color:#9fc8ca;font-size:13px}.dictionary-status[hidden]{display:none}.dictionary-translation{min-height:52px;max-height:300px;margin:0;overflow:auto;padding:10px 12px 4px;color:#f0f2f2;font:15px/1.6 Yu Gothic UI,Hiragino Sans,system-ui,sans-serif;white-space:pre-wrap}.dictionary-translation.not-found{color:#aaa;font-size:14px}.dictionary-hint{margin:0;padding:4px 12px 9px;color:#89999e;font-size:10px}.toast-region{position:fixed;z-index:100;right:18px;bottom:42px;display:grid;gap:8px;pointer-events:none}.toast{max-width:360px;padding:10px 13px;border:1px solid #5e7183;border-radius:6px;background:#22303c;box-shadow:0 5px 18px #0009;font-size:13px;animation:toast-in .2s ease-out}.toast.error{border-color:#945a5a;background:#462929}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.context-menu{position:fixed;z-index:1000;min-width:230px;max-height:calc(100dvh - 8px);padding:5px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #666;border-radius:6px;background:#252525;box-shadow:0 10px 28px #000b;touch-action:pan-y;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.context-menu-entry{position:relative}.context-menu button{display:block;width:100%;min-height:30px;padding:5px 12px;border:0;border-radius:3px;background:transparent;color:#eee;text-align:left;cursor:pointer}.context-menu button:hover:not(:disabled){background:#3b526a}.context-menu button:disabled{color:#777;cursor:default}.context-menu button.active{background:#315575;color:#fff;box-shadow:inset 3px 0 #83c2ff}.context-menu hr{margin:4px;border:0;border-top:1px solid #555}.context-menu .submenu-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px}.context-menu .submenu-trigger:after{content:"›";font-size:17px;line-height:1}.context-menu-entry.has-submenu:after{content:"";position:absolute;z-index:0;top:-10px;bottom:-10px;left:100%;width:16px}.context-menu-entry.has-submenu.submenu-open-left:after{right:100%;left:auto}.context-submenu{position:fixed;z-index:1;min-width:220px;max-height:calc(100dvh - 8px);padding:5px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #666;border-radius:6px;visibility:hidden;opacity:0;background:#252525;box-shadow:0 10px 28px #000b;touch-action:pan-y;transform:translate(-3px);transition:opacity .12s ease,transform .12s ease}.context-menu-entry:hover>.context-submenu,.context-menu-entry:focus-within>.context-submenu,.context-menu-entry.submenu-expanded>.context-submenu{visibility:visible;opacity:1;transform:translate(0)}.current-palette-preview{position:fixed;z-index:70;right:226px;bottom:62px;display:grid;grid-template-rows:auto 1fr auto;width:112px;height:86px;place-items:center;padding:7px 8px 5px;border:2px solid var(--accent);border-radius:6px;background:#fff;color:#333;box-shadow:0 5px 18px #0009;cursor:pointer}.current-palette-preview strong{font-size:12px}.current-palette-number{position:absolute;top:27px;left:10px;display:grid;width:17px;height:17px;place-items:center;border:1px solid #7d8b93;border-radius:3px;background:#f2f5f6;color:#34444d;font-size:9px;font-weight:800;line-height:1}.current-palette-preview span{width:76px;border-top:var(--preview-width, 3px) var(--preview-style, solid) var(--preview-color, #e85656);opacity:var(--preview-opacity, 1);transform:translateY(9px)}.current-palette-preview small{color:#3f5362;font-size:10px;font-weight:700;line-height:1}.current-palette-preview .current-palette-number{font-size:9px}#palette-dialog.palette-dock{position:fixed;z-index:110;top:92px;right:12px;display:grid;width:31.2px;max-height:calc(100dvh - 118px);margin:0;padding:0;grid-template-rows:minmax(0,1fr);border:1px solid #4f5c64;border-radius:2px;background:#1f2529;box-shadow:0 3px 9px #0009;overflow:visible}#palette-dialog.palette-dock[hidden]{display:none}.palette-dock>form{display:flex;width:28.6px;min-height:0;padding:0;flex-direction:column;border:0;border-radius:0;background:#1f2529;overflow:visible}.palette-dock .palette-dialog-heading,.palette-dock .hint{display:none}.palette-quick-tools{display:flex;flex:0 0 auto;flex-direction:column}.palette-quick-tools button,.palette-add-slot{display:grid;width:28.6px;height:27.3px;min-height:27.3px;place-items:center;padding:0;border:0;border-bottom:1px solid #111;border-radius:0;background:#34383b;color:#fff;cursor:pointer;font:700 13px/1 system-ui}.palette-quick-tools button:hover,.palette-quick-tools button:focus-visible,.palette-add-slot:hover,.palette-add-slot:focus-visible{background:#4d5961}.palette-quick-tools button.active{box-shadow:inset 3px 0 0 var(--accent);background:#315575}.palette-quick-tools button[hidden]{display:none}.annotation-palette-dialog-grid{align-self:flex-start;display:flex;width:39px;min-height:0;max-height:100%;flex:1 1 auto;flex-direction:column;gap:0;overflow-y:scroll;overflow-x:hidden;scrollbar-width:thin}.annotation-palette-dialog-grid .palette-slot{flex:0 0 27.3px;width:28.6px;height:27.3px;min-height:27.3px;padding:0;border:1px solid #5b5b5b;border-radius:0;background:var(--palette-background, #fafafa);touch-action:pan-y}.annotation-palette-dialog-grid .palette-slot:before{display:none}.annotation-palette-dialog-grid .palette-slot:after{display:none}.annotation-palette-dialog-grid .palette-slot.empty{background:#30383d}.annotation-palette-dialog-grid .palette-slot.empty:after{top:6px;color:#fff}.palette-slot-width{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;color:var(--palette-text-color, #fff);font-size:9.1px;font-weight:800;line-height:1;text-align:center;text-shadow:none;white-space:nowrap}.palette-slot-tool-badge{position:absolute;right:4px;bottom:1px;color:var(--palette-text-color, #fff);font-size:6px;font-weight:900;line-height:1;text-shadow:none}.palette-slot.empty .palette-slot-width{color:#fff;text-shadow:none}.annotation-palette-dialog-grid .palette-slot.selected{border:2px solid #fff;box-shadow:inset 0 0 0 1px var(--accent)}.palette-slot-reorder-handle{position:absolute;z-index:2;top:0;bottom:0;left:0;width:4px;cursor:grab;touch-action:none}.palette-slot-reorder-handle:before{content:"";position:absolute;top:4px;bottom:4px;left:1px;border-left:1px dotted #ffffffb8}@media(pointer:coarse){.palette-slot-reorder-handle{width:10px}}.annotation-palette-dialog-grid.reordering{cursor:grabbing;user-select:none}.annotation-palette-dialog-grid .palette-slot.dragging{opacity:.45}.annotation-palette-dialog-grid .palette-slot.drop-before{box-shadow:inset 0 3px #8bc9ff}.annotation-palette-dialog-grid .palette-slot.drop-after{box-shadow:inset 0 -3px #8bc9ff}.palette-add-slot{flex:0 0 auto;border-top:1px solid #111;border-bottom:0;font-size:18.2px}.palette-add-slot:disabled{cursor:not-allowed;opacity:.4}.laser-canvas{position:fixed;z-index:949;inset:0;width:100vw;height:100dvh;pointer-events:none;mix-blend-mode:normal}.laser-pointer{position:fixed;z-index:950;box-sizing:border-box;width:var(--pointer-size, 8px);height:var(--pointer-size, 8px);border:1px dashed #222;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #fff9;pointer-events:none;mix-blend-mode:normal;transform:translate(-50%,-50%)}.laser-pointer.marker-pointer{border-radius:0;border:0;outline:1px dashed #222;outline-offset:-.5px}.frame-cleanup-dialog{width:min(460px,calc(100vw - 24px));border:1px solid #666;border-radius:8px;background:#252525;color:#eee}.frame-cleanup-dialog form{display:grid;gap:12px}.frame-cleanup-dialog label{display:flex;align-items:center;justify-content:space-between;gap:12px}.frame-cleanup-dialog input,.frame-cleanup-dialog select{width:180px}.frame-cleanup-dialog footer{display:flex;justify-content:end;gap:10px}.frame-cleanup-dialog p{font-size:12px;line-height:1.6}.frame-cleanup-error{color:#ffb6a5}body.fullscreen-ui .palette-dock{top:12px;right:auto;max-height:calc(100dvh - 24px)}.view-menu{position:relative}.view-menu>summary{list-style:none}.view-menu>summary::-webkit-details-marker{display:none}.view-menu-list{position:absolute;z-index:910;top:calc(100% + 4px);left:0;display:grid;min-width:130px;padding:4px;border:1px solid #56636b;border-radius:5px;background:#252b2f;box-shadow:0 8px 22px #000a}.view-menu-list button{min-height:28px;border:0;border-radius:3px;background:transparent;color:#eee;text-align:left;cursor:pointer}.view-menu-list button:hover,.view-menu-list button.active{background:#315575;color:#fff}.annotation-canvas.selection-rubber{cursor:url(./thick-crosshair-BTT8ILf4.svg) 14 14,crosshair}body.dragging:after{content:"PDFをドロップして開く";position:fixed;z-index:200;inset:12px;display:grid;place-items:center;border:3px dashed #83bff8;border-radius:15px;background:#12283be8;color:#fff;font-size:clamp(20px,5vw,42px);font-weight:700;pointer-events:none}body.fullscreen-ui .app-header,body.fullscreen-ui .document-tabs,body.fullscreen-ui .toolbar,body.fullscreen-ui .statusbar,body.fullscreen-ui .thumbnail-panel,body.fullscreen-ui .properties-panel{display:none}body.fullscreen-ui #app{height:100%}body.fullscreen-ui .viewer{position:fixed;z-index:55;inset:0 var(--annotation-palette-lane-width) 0 0;width:auto;height:100%;height:100dvh;min-height:0;overflow:auto;background:var(--view);transform:translateZ(0)}body.fullscreen-ui .pages{padding:8px}body.fullscreen-ui .current-palette-preview{right:22px;bottom:22px}body.fullscreen-ui .workspace .panel-reopen-left,body.fullscreen-ui .panel-reopen-right{display:none}.workspace.sidebar-edge-overlay .thumbnail-panel.edge-overlay-visible,body.fullscreen-ui .workspace.sidebar-edge-overlay .thumbnail-panel.edge-overlay-visible,body.fullscreen-ui.sidebar-edge-overlay-open>.thumbnail-panel.edge-overlay-visible{position:fixed;z-index:65;inset:0 auto 0 0;display:block;width:min(182px,72vw);border-right:1px solid #62809a;background:var(--panel);box-shadow:10px 0 30px #000b}.workspace.sidebar-edge-overlay .panel-reopen-left{display:none}body.fullscreen-ui.properties-edge-overlay-open>.properties-panel.edge-overlay-visible{position:fixed;z-index:65;inset:0 0 0 auto;display:block;width:min(330px,88vw);border-left:1px solid #62809a;background:var(--panel);box-shadow:-10px 0 30px #000b}body.fullscreen-ui.properties-edge-overlay-open .viewer{right:calc(var(--annotation-palette-lane-width) + min(330px,88vw))}body.properties-edge-overlay-open .panel-reopen-right{display:none}@media(max-width:900px){:root{--header-h: 38px}.brand strong{display:none}.workspace{grid-template-columns:132px minmax(0,1fr) var(--annotation-palette-lane-width) min(198px,42vw)}.workspace.hide-thumbnails{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) min(198px,42vw)}.workspace.hide-properties{grid-template-columns:132px minmax(0,1fr) var(--annotation-palette-lane-width) var(--right-panel-reopen-width)}.workspace.hide-thumbnails.hide-properties{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) var(--right-panel-reopen-width)}.properties-panel{position:relative;z-index:auto;inset:auto;display:block;width:auto;border-left:1px solid #62809a;box-shadow:none}.workspace.hide-properties .properties-panel{display:block;visibility:hidden}.tool-button{padding-inline:6px}.tool-button span+*{display:none}.pages{padding:14px}.current-palette-preview{right:22px;bottom:48px}}@media(max-width:600px){.document-name{text-align:left}.toolbar{flex-wrap:nowrap;max-width:100%;-webkit-overflow-scrolling:touch}.toolbar .tool-group{flex:0 0 auto}.workspace{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) min(198px,55vw)}.workspace.hide-properties,.workspace.hide-thumbnails.hide-properties{grid-template-columns:0 minmax(0,1fr) var(--annotation-palette-lane-width) var(--right-panel-reopen-width)}.thumbnail-panel{position:absolute;z-index:41;top:0;bottom:0;left:0;display:block;width:min(170px,72vw);border-right:1px solid #62809a;box-shadow:10px 0 30px #000b}.workspace.hide-thumbnails .thumbnail-panel{display:none}.annotation-tools .tool-button{min-width:34px;justify-content:center}.annotation-tools .tool-button{font-size:0}.annotation-tools .tool-button span{font-size:16px}.page-nav,.zoom-tools{order:2}.pages{padding:8px;gap:10px}#storage-status{display:none}.header-actions{gap:2px}.header-actions .text-button{padding-inline:6px;font-size:11px}.dictionary-popup{width:calc(100vw - 12px);max-height:72vh}.dictionary-head{grid-template-columns:minmax(130px,1fr) auto 36px 32px}.dictionary-head a{grid-column:2;grid-row:2}.dictionary-head button[data-action=dictionary-lookup]{grid-column:1;grid-row:2}.dictionary-head button[data-action=dictionary-speak]{grid-column:3;grid-row:1 / span 2}.dictionary-head .dictionary-close{grid-column:4;grid-row:1 / span 2}#pdf-tool-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}#camera-scan-dialog{width:calc(100vw - 4px);height:calc(100dvh - 4px)}.camera-scan-card{padding:4px}.camera-mode-choice{padding:14px}.camera-mode-choice>div{grid-template-columns:1fr}.camera-mode-choice button{min-height:112px}.camera-editor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-editor-actions button{min-height:42px}.camera-pages{min-height:48px;max-height:54px}.camera-page-item{flex-basis:42px;grid-template-rows:32px auto}.camera-page-item img{height:32px}.pdf-tool-card{padding:12px}.pdf-tool-workspace,.pdf-tool-workspace.has-preview{display:grid;grid-template-columns:1fr}.pdf-tool-workspace.has-preview .pdf-tool-source-section,.pdf-tool-workspace.has-preview .pdf-tool-settings-section,.pdf-tool-workspace.has-preview .pdf-tool-preview-section{grid-column:1;grid-row:auto}.pdf-tool-fields{grid-template-columns:1fr}.pdf-tool-fields .field-wide{grid-column:1}.pdf-tool-preview-stage{min-height:260px}}html,body{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}input,textarea,[contenteditable=true],[contenteditable=plaintext-only]{-webkit-user-select:text;user-select:text}img,a{-webkit-user-drag:none}.english-selection-actions{position:fixed;z-index:120;display:flex;align-items:center;max-width:calc(100vw - 16px);overflow-x:auto;padding:5px 7px;border:1px solid #31435b;border-radius:10px;background:#17263b;color:#fff;box-shadow:0 12px 32px #0008;white-space:nowrap}.english-selection-actions[hidden]{display:none}.english-selection-actions:before{content:"";position:absolute;left:20px;bottom:-7px;width:12px;height:12px;border-right:1px solid #31435b;border-bottom:1px solid #31435b;background:#17263b;transform:rotate(45deg)}.english-selection-actions button{position:relative;min-height:30px;padding:5px 10px;border:0;background:transparent;color:#fff;font:700 11px/1 system-ui,sans-serif;cursor:pointer}.english-selection-actions button+button:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:1px;background:#ffffff26}.english-selection-actions button:hover{background:#ffffff18}.english-selection-actions .listen{color:#8de1d6}.english-selection-actions .translate{color:#a9c7ff}.english-selection-actions .dictionary{color:#ffd991}.english-selection-actions .analyze{color:#ffb0b9}.english-selection-actions .direct{color:#ff958f}.english-selection-actions .store,.english-selection-actions .sheet{color:#98e4a8}.english-result-popup,.english-process-log{position:fixed;z-index:125;top:70px;left:18px;width:min(660px,calc(100vw - 36px));height:min(560px,calc(100vh - 90px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;resize:both;border:1px solid #52647d;border-radius:13px;box-shadow:0 18px 55px #0009}.english-result-popup[hidden],.english-process-log[hidden]{display:none}.english-result-popup{background:#fff;color:#22304a}.english-process-log{z-index:126;left:auto;right:18px;width:min(600px,calc(100vw - 36px));height:min(400px,calc(100vh - 90px));background:#111c2d;color:#e6eef9}.english-result-popup>header,.english-process-log>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 10px 8px 14px;cursor:move}.english-result-popup>header{border-bottom:1px solid #e5e9ef;background:#f8fafc}.english-process-log>header{border-bottom:1px solid #30425b;background:#17263b}.english-result-popup header div,.english-process-log header div{display:grid;gap:3px}.english-result-popup header small,.english-process-log header small{font-size:9px;font-weight:900;letter-spacing:.17em}.english-result-popup header button,.english-process-log header button{width:32px;height:32px;border:0;background:transparent;color:#718096;font-size:21px}.english-result-popup #english-result-body{overflow:auto;padding:16px;font-size:15px;line-height:1.75;white-space:pre-wrap}.english-result-popup #english-result-footer{display:flex;gap:8px;padding:10px 16px;border-top:1px solid #e5e9ef}.english-result-popup #english-result-footer button{border:0;border-radius:8px;padding:8px 11px;background:#e4ebf3;color:#244267;font-weight:900}.english-process-log pre{min-height:0;margin:0;overflow:auto;padding:14px;color:#d8e6f6;font:12px/1.65 Consolas,monospace;white-space:pre-wrap}.english-process-log footer{display:flex;justify-content:flex-end;gap:7px;padding:8px 12px}.english-process-log footer a{color:#bcebdc}.english-stored-dialog{position:fixed;z-index:130;inset:70px auto auto max(12px,calc(50vw - 410px));width:min(820px,calc(100vw - 24px));height:min(720px,calc(100vh - 82px));margin:0;padding:0;overflow:auto;border:1px solid #c7d1de;border-radius:16px;background:#fff;color:#20314b}.english-stored-dialog::backdrop{background:transparent}.english-stored-dialog form{display:grid;gap:12px;padding:0 18px 18px}.english-stored-dialog header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;margin:0 -18px;padding:12px 16px;background:#f8fafc}.english-stored-dialog h2,.english-stored-dialog h3{margin:0}.english-stored-dialog label{display:grid;gap:5px;font-weight:700}.english-stored-dialog select,.english-stored-dialog textarea{width:100%;padding:9px;border:1px solid #bac7d7;border-radius:8px}.english-stored-tools{display:flex;gap:8px}.english-stored-dialog form>section{padding:14px;border:1px solid #cbd8e7;border-radius:12px;background:#f4f8fc}.english-stored-dialog button{padding:8px 11px;border:0;border-radius:8px;background:#e4ebf3;color:#244267;font-weight:800}#english-sheet-create{background:#18794e;color:#fff}.english-selection-actions button.is-active{background:#9d3850;color:#fff}.account-model-button{display:flex;align-items:center;gap:7px;max-width:240px;padding:4px 8px;border:1px solid #485563;border-radius:5px;background:#252c32;color:#eef5f1}.account-model-button span{display:grid;text-align:left}.account-model-button strong,.account-model-button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-model-button small{font-size:9px;color:#aebcb5}#english-store-status{margin-left:auto;white-space:nowrap;color:#98e4a8}.english-sheet-folders{max-height:210px;overflow:auto;padding:6px;border:1px solid #cbd8e7;border-radius:8px;background:#fff}.english-sheet-folder-row{display:flex;width:100%;align-items:center;gap:6px;padding:6px 8px;border:0;background:transparent;color:#244267;text-align:left}.english-sheet-folder-row[aria-selected=true]{background:#dceaf8;font-weight:900}.english-history-dialog{width:min(1040px,calc(100vw - 30px));height:min(720px,calc(100dvh - 30px));padding:0;border:1px solid #75859a;border-radius:14px;background:#fff;color:#20314b}.english-history-dialog::backdrop{background:#07111dcc}.english-history-dialog>section{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%}.english-history-dialog header,.english-history-toolbar,.english-history-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #d8e0ea}.english-history-dialog header h2,.english-history-dialog header small,.english-history-toolbar p{margin:0}.english-history-dialog header button{border:0;background:transparent;color:#526176;font-size:24px}.english-history-toolbar button,.english-history-dialog footer button{padding:8px 12px;border:0;border-radius:8px;background:#e4ebf3;color:#244267;font-weight:800}.english-history-dialog footer{justify-content:flex-end;border-top:1px solid #d8e0ea;border-bottom:0}.english-history-layout{display:grid;grid-template-columns:minmax(230px,34%) minmax(0,1fr);min-height:0}.english-history-layout nav{overflow:auto;border-right:1px solid #d8e0ea}.english-history-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:7px;padding:7px 9px;border-bottom:1px solid #edf1f5}.english-history-item{display:grid;gap:3px;width:100%;padding:7px;border:0;border-radius:7px;background:transparent;color:#20314b;text-align:left}.english-history-item.selected{background:#dceaf8}.english-history-item time,.english-history-item span{font-size:11px;color:#68768a}.english-history-layout article{overflow:auto;padding:18px;line-height:1.7;white-space:pre-wrap}.english-history-layout article.rich-text{white-space:normal}.english-history-layout article table{width:100%;border-collapse:collapse}.english-history-layout article th,.english-history-layout article td{padding:6px;border:1px solid #bcc8d6;text-align:left}@media(max-width:700px){.english-history-layout{grid-template-columns:1fr;grid-template-rows:42% 58%}.english-history-layout nav{border-right:0;border-bottom:1px solid #d8e0ea}}.english-result-popup #english-result-body.rich-text{white-space:normal}.english-result-popup #english-result-body.rich-text h1,.english-result-popup #english-result-body.rich-text h2,.english-result-popup #english-result-body.rich-text h3,.english-result-popup #english-result-body.rich-text h4{margin:1.05em 0 .5em;color:#162944;font-family:Georgia,Yu Mincho,serif;line-height:1.35}.english-result-popup #english-result-body.rich-text p{margin:.65em 0;white-space:pre-wrap}.english-result-popup #english-result-body.rich-text ul,.english-result-popup #english-result-body.rich-text ol{margin:.65em 0;padding-left:1.6em}.english-result-popup #english-result-body.rich-text blockquote{margin:.8em 0;padding:.45em .8em;border-left:4px solid #80a4cf;background:#f1f6fb;white-space:pre-wrap}.english-result-popup #english-result-body.rich-text pre{overflow:auto;margin:.8em 0;padding:12px;border-radius:9px;background:#101b2d;color:#edf4ff;font:13px/1.65 Consolas,monospace;white-space:pre}.english-result-popup #english-result-body.rich-text code:not(pre code){padding:.1em .32em;border-radius:4px;background:#edf1f6;color:#9b3150}.english-result-popup #english-result-body.rich-text table{width:100%;margin:.8em 0;border-collapse:collapse;font-size:13px}.english-result-popup #english-result-body.rich-text th,.english-result-popup #english-result-body.rich-text td{padding:7px 9px;border:1px solid #bdc9d8;text-align:left;vertical-align:top}.english-result-popup #english-result-body.rich-text th{background:#dce8f5;color:#18385f}.english-selection-actions .pdf-ed{color:#ffb6a3}.english-selection-actions .ai-ref{color:#efb9ff}.english-ai-menu{position:fixed;z-index:131;width:220px;overflow:hidden;border:1px solid #c8d2df;border-radius:12px;background:#fff;box-shadow:0 18px 50px #09142647}.english-ai-menu[hidden]{display:none}.ai-menu-head{display:grid;gap:2px;padding:11px 13px 9px;border-bottom:1px solid #e6eaf0}.ai-menu-head strong{color:#22314a;font-size:13px}.ai-menu-head small{color:#7b8798;font-size:9px}.ai-provider,.ai-menu-manage{width:100%;padding:10px 13px;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:#263752;cursor:pointer;text-align:left;font-size:12px;font-weight:800}.prompt-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:1px solid #c7d1de;border-radius:16px;background:#fff;color:#20314b}.prompt-dialog::backdrop{background:#06151d9e}.prompt-dialog-card{display:grid;gap:13px;padding:20px}.prompt-dialog-card header,.prompt-dialog-card footer,.prompt-dialog-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-dialog-card h2{margin:0;font:700 20px Georgia,Yu Mincho,serif}.prompt-dialog-card label{display:grid;gap:6px;color:#33445e;font-size:12px;font-weight:800}.prompt-dialog-card input,.prompt-dialog-card textarea,.prompt-dialog-card select{width:100%;padding:9px 10px;border:1px solid #cbd4df;border-radius:8px;color:#20314b;font:inherit}.prompt-dialog-card p{margin:0;color:#718094;font-size:11px}.prompt-dialog-card button{min-height:34px;padding:0 12px;border:0;border-radius:8px;background:#e8edf3;color:#263a56;font-weight:800}.gemini-model-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:1px solid #c9d3dc;border-radius:16px;color:#17263a;background:#fff}.gemini-model-dialog::backdrop{background:#0614209e}.gemini-model-dialog form{position:relative;display:grid;gap:14px;padding:24px}.gemini-model-dialog h2,.gemini-model-dialog p{margin:0}.gemini-model-dialog label{display:grid;gap:7px;color:#526176;font-size:12px;font-weight:800}.gemini-model-dialog select{width:100%;min-height:44px;padding:0 10px;border:1px solid #cbd5df;border-radius:9px}.gemini-model-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:9px}.gemini-setting-section{display:grid;gap:9px;padding:15px;border:1px solid #d5dee7;border-radius:12px;background:#f7f9fb}.gemini-setting-section h3{margin:0}.gemini-setting-status.is-ready{color:#176b4d}.gemini-setting-status.is-error{color:#a64658}.pdf-password-remove-option{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px}.pdf-password-remove-option input{width:18px;height:18px}.english-selection-actions{align-items:stretch;padding:4px;border-color:#ffffff2e;border-radius:11px;background:#091426f7;box-shadow:0 12px 30px #09142652}.english-selection-actions:before{left:18px;top:-6px;bottom:auto;width:11px;height:11px;border:0;background:#091426}.english-selection-actions button{min-height:36px;padding:7px 13px;border-radius:7px;font-size:12px;font-weight:800}.english-selection-actions button+button:before{top:9px;bottom:9px;background:#ffffff26}.english-result-popup{position:fixed;z-index:125;top:70px;left:18px;width:min(430px,calc(100vw - 24px));height:auto;max-height:min(420px,calc(100dvh - 24px));display:block;overflow:hidden;resize:none;border:1px solid #c9d3df;border-radius:14px;background:#fffffffa;box-shadow:0 18px 55px #051b364f}.english-result-popup.is-floating-analysis{width:min(660px,calc(100vw - 24px));height:min(560px,calc(100dvh - 96px));min-width:min(340px,calc(100vw - 24px));min-height:min(230px,calc(100dvh - 12px));max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;resize:both}.english-result-popup>header{min-height:54px;padding:9px 12px 9px 16px;background:linear-gradient(90deg,#f6f8fb,#fff)}.english-result-popup header small{color:#315da8;font-size:9px;letter-spacing:.18em}.english-result-popup header strong{color:#17263a;font:700 16px/1.1 Georgia,Yu Mincho,serif}.english-result-popup #english-result-body{max-height:300px;padding:16px;color:#22304a;font-size:15px;line-height:1.75;overflow-wrap:break-word}.english-result-popup.is-floating-analysis #english-result-body{max-height:none;min-height:0}.english-result-popup #english-result-body.dictionary-copy{font-family:Yu Gothic UI,Hiragino Sans,sans-serif;line-height:1.65}.english-result-popup #english-result-footer{display:block;padding:9px 16px 12px;border-top:1px solid #edf0f4;background:#fafbfc;color:#788396;font-size:11px}.english-result-popup #english-result-footer[hidden]{display:none}.english-result-popup #english-result-footer a{color:#315da8;font-weight:800;text-decoration:none}.english-result-popup #english-result-footer button{min-height:32px;margin-right:8px;padding:0 11px;border:0;border-radius:8px;background:#e4ebf3;color:#244267;cursor:pointer;font-weight:900}.english-result-heading{min-width:0;flex:1}.english-result-popup header .english-dictionary-query-row{display:flex;align-items:center;gap:7px;margin-top:4px}.english-result-popup header .english-dictionary-query-row[hidden]{display:none}.english-dictionary-query-row input{min-width:0;width:min(250px,58vw);height:32px;padding:4px 8px;border:1px solid #aebdce;border-radius:7px;background:#fff;color:#17263a;font:700 16px/1.2 Georgia,Yu Mincho,serif}.english-result-popup header .english-dictionary-query-row button{width:auto;min-width:68px;height:32px;padding:0 10px;border-radius:7px;background:#315da8!important;color:#fff;font-size:12px}.english-result-popup #english-result-body.translation-editor{display:grid;gap:12px;white-space:normal}.english-translation-field{display:grid;gap:5px;color:#33445e;font-size:12px;font-weight:800}.english-translation-field textarea{width:100%;min-height:82px;resize:vertical;padding:9px 10px;border:1px solid #b9c6d5;border-radius:8px;background:#fff;color:#17263a;font:14px/1.55 Yu Gothic UI,Hiragino Sans,system-ui,sans-serif;user-select:text}.english-translation-field textarea:focus{outline:3px solid #8ec5ff;outline-offset:1px}.english-translation-field textarea::selection{background:#b8d8ff;color:#000}.english-result-popup #english-result-body.translation-editor:not(.rich-text){display:flex;flex-direction:column}.translation-editor:not(.rich-text) .english-translation-field{display:flex;flex:1 0 auto;flex-direction:column}.translation-editor:not(.rich-text) .english-translation-field>span{font-size:14px;font-weight:900}.translation-editor:not(.rich-text) .english-translation-field textarea{flex:1 0 120px}.english-translation-field textarea[hidden],.classical-translation-preview[hidden]{display:none}.classical-translation-preview{min-height:70px;padding:10px 12px;border:1px solid #d9e2ec;border-radius:8px;background:#fff;color:#22304a;font-size:14px;user-select:text}.classical-translation-preview>:first-child{margin-top:0!important}.classical-translation-preview>:last-child{margin-bottom:0!important}.english-process-log{top:82px;right:18px;width:min(600px,calc(100vw - 24px));height:min(400px,calc(100dvh - 100px));min-width:min(320px,calc(100vw - 24px));min-height:min(190px,calc(100dvh - 12px));max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);resize:both}.english-process-log>header{min-height:52px;padding:8px 10px 8px 14px}.english-process-log pre{padding:14px;font:12px/1.65 Consolas,Yu Gothic UI,monospace;overflow-wrap:anywhere}.english-process-log footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;padding:6px 12px 8px;border-top:1px solid #30425b}.english-process-log footer:empty{display:none}.english-process-log footer a{padding:5px 9px;border:1px solid #56718f;border-radius:7px;background:#20344d;color:#bcebdc;font-weight:800;text-decoration:none}.english-stored-dialog{inset:70px auto auto max(12px,calc(50vw - 410px));width:min(820px,calc(100vw - 24px));height:min(720px,calc(100dvh - 82px));min-width:min(340px,calc(100vw - 12px));min-height:min(380px,calc(100dvh - 12px));max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);overflow:hidden;resize:both;box-shadow:0 24px 70px #050d1b57}.english-stored-dialog form{grid-template-rows:auto auto minmax(150px,1fr) auto auto auto auto;height:100%;min-height:0;overflow:auto;box-sizing:border-box;padding:0 20px 32px}.english-stored-dialog label:has(#english-stored-content){min-height:0;grid-template-rows:auto minmax(0,1fr)}.english-stored-dialog #english-stored-content{height:100%;min-height:0;max-height:none;resize:none;line-height:1.6}.english-stored-dialog form>section{display:grid;gap:9px;padding:13px;border-color:#c9d9d4;border-radius:12px;background:#f2f8f5}.english-sheet-folders{min-height:118px;max-height:230px;padding:6px;border-color:#b8ccc4;border-radius:9px}.english-sheet-folder-row{min-height:30px;padding-block:3px!important;color:#243b31}.english-sheet-folder-row:hover{background:#e8f3ee}.english-sheet-folder-row[aria-selected=true]{background:#d5eae0;color:#145c3a;box-shadow:inset 0 0 0 1px #91bea8}#english-sheet-create{min-height:38px;background:#217346;color:#fff}.english-stored-dialog form>section{align-self:start;max-height:180px;overflow:auto}.english-result-popup.is-floating-analysis[hidden]{display:none}.gemini-model-dialog .account-switch-button,.gemini-model-dialog #geminiModelSave{min-height:40px;padding:0 14px;border:0;border-radius:8px;background:#315da8;color:#fff;font-weight:800;cursor:pointer}.gemini-model-dialog #geminiModelSave{background:#18794e}.gemini-model-dialog #geminiModelSave:disabled{color:#fff;opacity:.55;cursor:default}.gemini-model-dialog .gemini-model-close{padding:0;border:0;border-radius:0;background:transparent!important;color:#17263a;font-size:24px;font-weight:700;cursor:pointer}.english-result-popup,.english-stored-dialog,.prompt-dialog,.gemini-model-dialog,.dictionary-popup,.english-ai-menu{border-color:#c7d1de;background:#fff;color:#20314b}.english-result-popup>header,.english-stored-dialog header,.prompt-dialog-card header,.dictionary-grip{border-color:#e5e9ef;background:#f6f8fb;color:#17263a}.english-result-popup header button,.english-stored-dialog header>button,.prompt-dialog-card header>button,.dictionary-head .dictionary-close,.gemini-model-dialog .gemini-model-close{width:34px;height:34px;padding:0;border:0;border-radius:0;background:transparent!important;color:#526176;font-size:23px;font-weight:700;cursor:pointer}.english-result-popup header button:hover,.english-stored-dialog header>button:hover,.prompt-dialog-card header>button:hover,.dictionary-head .dictionary-close:hover,.gemini-model-dialog .gemini-model-close:hover{background:transparent!important;color:#17263a}.english-result-popup #english-result-footer button,.english-stored-dialog button,.prompt-dialog-card button,.dictionary-head button,.dictionary-head a{border:0;border-radius:8px;background:#e4ebf3;color:#244267;font-weight:800}.english-result-popup.is-dictionary-result #english-result-footer button{background:#315da8;color:#fff}.prompt-dialog-card button[type=submit],.dictionary-head button:not(.dictionary-close),.gemini-model-dialog .account-switch-button{background:#315da8;color:#fff}#english-sheet-create,.gemini-model-dialog #geminiModelSave{background:#18794e;color:#fff}.english-result-popup,.english-result-popup.is-floating-analysis,.english-process-log,.english-stored-dialog{resize:none}.english-resize-zone{position:absolute;z-index:12;display:block;background:transparent;touch-action:none}.english-resize-zone[data-english-resize-direction=n]{top:0;right:16px;left:16px;height:12px}.english-resize-zone[data-english-resize-direction=s]{right:16px;bottom:0;left:16px;height:12px}.english-resize-zone[data-english-resize-direction=w]{top:16px;bottom:16px;left:0;width:12px}.english-resize-zone[data-english-resize-direction=nw]{top:0;left:0;width:16px;height:16px}.english-resize-zone[data-english-resize-direction=sw]{bottom:0;left:0;width:16px;height:16px}.english-external-resize-zone{position:fixed;right:auto;bottom:auto;background:transparent}.english-external-resize-zone[hidden]{display:none}.english-window-edge-hover,.english-window-edge-hover *{cursor:var(--english-window-resize-cursor)!important}html.english-window-resizing,html.english-window-resizing *{cursor:var(--english-window-resize-cursor,nwse-resize)!important;user-select:none!important}.is-resizing{transition:none!important}.english-result-popup>header,.english-process-log>header{min-height:60px;padding:10px 16px;cursor:grab;touch-action:none;user-select:none}.english-result-popup>header:active,.english-process-log>header:active{cursor:grabbing}.english-stored-dialog header[data-english-drag]{min-height:68px;padding:12px 20px;cursor:grab;touch-action:none;user-select:none}.english-stored-dialog header[data-english-drag]:active{cursor:grabbing}.english-stored-clear{justify-self:end;min-width:82px;background:#a64658!important;color:#fff!important}#english-prompt-delete{background:#a64658;color:#fff}.dictionary-popup{box-shadow:0 18px 55px #051b364f}.dictionary-grip{border-bottom:1px solid #e5e9ef}.dictionary-head input{border-color:#c7d1de;background:#fff;color:#20314b}.dictionary-translation{color:#20314b}.dictionary-meaning{color:#315da8}.ai-provider{background:#fff;color:#263752}.ai-menu-manage{background:#eef4fb;color:#315da8}.english-result-popup:not(.is-floating-analysis):not([hidden]){display:flex;flex-direction:column;max-height:min(420px,calc(100dvh - 16px))}.english-result-popup.is-dictionary-result:not([hidden]){display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:min(420px,calc(100dvh - 16px))}.dictionary-popup:not([hidden]){display:flex;flex-direction:column;max-height:calc(100dvh - 16px)}.english-result-popup:not(.is-floating-analysis)>header,.english-result-popup:not(.is-floating-analysis) #english-result-footer,.dictionary-grip,.dictionary-head,.dictionary-hint{flex:0 0 auto}.english-result-popup:not(.is-floating-analysis) #english-result-body,.dictionary-translation{min-height:0;max-height:none;flex:1 1 auto;overflow:auto}.english-result-popup:not(.is-floating-analysis) #english-result-footer{flex-wrap:wrap;align-items:center}.english-result-popup #english-result-body,.english-process-log pre,.english-stored-dialog textarea,.dictionary-translation{user-select:text}.english-result-popup #english-result-body::selection,.english-process-log pre::selection,.english-stored-dialog textarea::selection,.dictionary-translation::selection{background:#b8d8ff;color:#000}:root.classical-sheet-windows .english-stored-dialog{inset:70px auto auto 12px!important;width:min(820px,calc(56vw - 12px))!important;max-height:calc(100dvh - 82px)}:root.classical-sheet-windows .english-process-log{inset:82px 12px auto auto!important;width:min(600px,calc(44vw - 36px))!important;z-index:131}@media(max-width:820px){:root.classical-sheet-windows .english-stored-dialog{inset:8px 12px auto!important;width:calc(100vw - 24px)!important;height:55dvh!important;min-height:200px}:root.classical-sheet-windows .english-process-log{inset:auto 12px 8px!important;width:calc(100vw - 24px)!important;height:35dvh!important;min-height:140px}}.dictionary-popup{width:min(430px,calc(100vw - 24px));border:1px solid #c9d3df;border-radius:14px;background:#fffffffa;color:#20314b;box-shadow:0 18px 55px #051b364f}.dictionary-grip{min-height:68px;padding:9px 16px;border-bottom:1px solid #e5e9ef;background:linear-gradient(90deg,#f6f8fb,#fff);color:#17263a;cursor:grab;touch-action:none}.dictionary-grip:active{cursor:grabbing}.dictionary-grip strong{font:700 16px/1.1 Georgia,Yu Mincho,serif}.dictionary-grip span{color:#315da8;font-size:9px;font-weight:900;letter-spacing:.12em}.dictionary-head{grid-template-columns:minmax(120px,1fr) auto auto 38px 34px;gap:7px;padding:9px 12px 8px}.dictionary-head input{height:32px;border:1px solid #aebdce;border-radius:7px;background:#fff;color:#17263a;font:700 16px/1.2 Georgia,Yu Mincho,serif}.dictionary-head button,.dictionary-head a{min-height:32px;padding:0 11px;border:0;border-radius:8px;background:#e4ebf3;color:#244267;font:inherit;font-size:12px;font-weight:800}.dictionary-head button[data-action=dictionary-lookup],.dictionary-head button[data-action=dictionary-speak]{background:#315da8;color:#fff}.dictionary-head .dictionary-close{width:34px;height:34px;min-height:0;color:#526176;font-size:23px}.dictionary-head .dictionary-close:hover{color:#17263a}.dictionary-rule{margin:0 16px;background:#edf0f4}.dictionary-status{padding:16px;color:#778398;font-size:15px}.dictionary-translation{padding:16px;color:#22304a;font:15px/1.65 Yu Gothic UI,Hiragino Sans,sans-serif}.dictionary-hint{padding:9px 16px 12px;border-top:1px solid #edf0f4;background:#fafbfc;color:#788396;font-size:11px}.dictionary-hint a{color:#315da8;font-weight:800;text-decoration:none}:root.annotation-palette-hidden{--annotation-palette-lane-width: 0px}.study-selection-actions{gap:2px;border-color:#397b8b}.study-selection-actions button{min-height:36px;font-size:12px}.study-dialog{position:fixed;inset:70px 18px auto auto;margin:0;padding:0;width:min(900px,calc(100vw - 36px));min-width:min(360px,calc(100vw - 16px));height:min(720px,calc(100dvh - 88px));min-height:240px;max-width:none;max-height:calc(100dvh - 88px);overflow:hidden;border:1px solid #b9cdd4;border-radius:14px;background:#f8fafc;color:#17324d;box-shadow:0 18px 60px #17263b55;z-index:130}.study-dialog[open]{display:flex;flex-direction:column}.study-header,.study-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;background:#eef5f7;flex-shrink:0}.study-header{border-bottom:1px solid #ccdde3;cursor:grab;touch-action:none;user-select:none}.study-header:active{cursor:grabbing}.study-header h2{margin:2px 0 0;font-size:20px}.study-header small{color:#496777}.study-content{overflow:auto;padding:0 18px 16px;min-height:0;flex:1 1 auto;overscroll-behavior:contain}.study-dialog p{line-height:1.7}.study-dialog label{display:grid;gap:5px;font-size:13px;font-weight:600}.study-dialog button,.study-dialog select,.study-search a{min-height:36px;border:1px solid #aebfcb;border-radius:7px;padding:7px 11px;background:#fff;color:#17324d;font:600 13px/1.4 system-ui,sans-serif;cursor:pointer}.study-dialog button:hover{background:#e5f0f3}.study-dialog button:disabled{opacity:.5;cursor:default}.study-dialog button[aria-pressed=true],.study-dialog .large-primary{background:#146778;color:#fff;border-color:#146778}.study-dialog :focus-visible{outline:3px solid #58a5c3;outline-offset:2px}.study-options,.study-actions,.study-run-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.study-options label{min-width:130px}.study-options span{font-size:12px;overflow-wrap:anywhere}.study-dialog textarea,.study-dialog input{width:100%;box-sizing:border-box;border:1px solid #b8c9d1;border-radius:6px;background:#fff;color:#182c3d;font:14px/1.65 system-ui,sans-serif;padding:8px}.study-dialog textarea{resize:vertical}.study-dialog details{border:1px solid #cfdee4;border-radius:8px;padding:10px 12px;margin:12px 0}.study-dialog summary{cursor:pointer;font-size:13px;font-weight:700}.study-dialog details label{margin-top:10px}.study-dialog details p{font-size:12px;color:#53697a}#study-image{display:block;max-width:100%;max-height:240px;margin:12px auto;object-fit:contain}#study-image[hidden]{display:none}#study-status{padding:8px 11px;background:#edf4f7;border-radius:7px;font-size:13px}.study-result{background:#fff;padding:0 14px;border-radius:8px;overflow:auto;user-select:text;overflow-wrap:anywhere}.study-result:empty{display:none}.study-result h2{font-size:18px}.study-result h3{font-size:16px}.study-result p{white-space:pre-wrap}.study-result table{border-collapse:collapse;width:100%}.study-result th,.study-result td{padding:8px;border:1px solid #cbd9e0;text-align:left;vertical-align:top}.study-math-block{display:block;overflow-x:auto;margin:10px 0}.study-math{max-width:100%}.study-feedback{display:grid;gap:8px;margin-top:14px}.study-feedback button{justify-self:start}.study-visual{margin:14px 0;padding:10px;overflow:auto;border:1px solid #cfdee4;border-radius:8px;background:#fff}.study-visual svg{display:block;width:100%;height:auto;max-height:520px}.study-source-visual img{display:block;max-width:100%;max-height:300px;margin:auto}.study-source-visual figcaption{margin-top:6px;font-size:12px;color:#53697a}.study-reference-images{margin:12px 0;padding:12px;border:1px solid #cfdee4;border-radius:8px;background:#fff}.study-reference-images[hidden]{display:none}.study-reference-images h3{margin:0 0 10px;font-size:15px}.study-reference-images figure{display:inline-grid;gap:6px;width:min(220px,100%);margin:0 12px 12px 0;vertical-align:top}.study-reference-images img{width:100%;max-height:180px;object-fit:contain}.study-reference-images figcaption{font-size:12px;overflow-wrap:anywhere}.study-reference-images a{color:#146778}.study-process-log{position:fixed;inset:82px auto auto 12px;width:min(520px,calc(40vw - 24px));min-width:min(300px,calc(100vw - 16px));height:min(400px,calc(100dvh - 100px));min-height:140px;max-height:calc(100dvh - 16px);z-index:131}.study-process-log[hidden]{display:none}.study-process-log pre{min-height:0;flex:1 1 auto;overflow:auto;white-space:pre-wrap}.study-search a{display:inline-block;margin-top:10px;text-decoration:none}.study-search a[aria-disabled=true]{opacity:.5;pointer-events:none}.study-footer{flex-wrap:wrap;border-top:1px solid #ccdde3;justify-content:flex-start}.study-footer small{flex:1 1 180px;color:#53697a;font-size:11px}@media(max-width:600px){.study-dialog{inset:8px 8px auto;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.study-header,.study-footer{padding:10px}.study-content{padding:0 10px 12px}.study-selection-actions button{font-size:11px}}@media(max-width:820px){.study-dialog{inset:8px 8px auto;width:calc(100vw - 16px);height:55dvh}.study-process-log{inset:auto 8px 8px;width:calc(100vw - 16px);height:35dvh}}.english-history-dialog>section{grid-template-rows:auto auto auto minmax(0,1fr) auto}.english-history-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px 14px;padding:10px 16px;border-bottom:1px solid #d8e0ea;background:#f8fafc}.english-history-filters label{display:grid;gap:4px;color:#33445e;font-size:12px;font-weight:700}.english-history-filters select,.english-history-filters input{min-height:35px;padding:5px 8px;border:1px solid #b7c6d5;border-radius:7px;background:#fff;color:#20314b;font:inherit}.english-history-filters button{min-height:35px;padding:5px 11px;border:0;border-radius:7px;background:#e4ebf3;color:#244267;font-weight:800;cursor:pointer}.english-history-dialog .study-visual{white-space:normal}.study-ai-reference textarea{width:100%;box-sizing:border-box;min-height:180px;resize:vertical;font:13px/1.6 system-ui,sans-serif}.study-ai-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.study-response-stop{width:auto!important;font:600 12px system-ui!important;border:1px solid #94a3b8!important;border-radius:6px;padding:4px 8px!important}.study-header,.study-footer{flex-shrink:0}.annotation-shape-picker{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid #4f5c64;border-radius:4px;background:#1f2529;color:#fff;box-shadow:0 5px 18px #0009}.annotation-shape-picker:popover-open{display:flex;gap:4px}.annotation-shape-picker button{width:30px;height:30px;padding:0;border:1px solid #5b5b5b;background:#34383b;color:#fff;font:700 16px/1 system-ui;cursor:pointer}.annotation-shape-picker button:hover,.annotation-shape-picker button:focus-visible{background:#4d5961}.palette-slot.palette-separator{min-height:12px;height:12px;flex-basis:12px;background:#2e2e2e;border:0;color:#bfcbd2}.palette-separator .palette-slot-width{color:#bfcbd2;font-size:16px}#palette-slot-dialog .dialog-card{max-height:calc(100dvh - 48px);overflow-y:auto}.annotation-style-dialog.memo-input-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto}.memo-input-dialog .memo-ime-input{position:static;display:block;width:100%;box-sizing:border-box;min-height:180px;max-height:calc(100dvh - 190px);padding:10px 10px 120px;scroll-padding-bottom:120px;font:16px sans-serif;resize:vertical}.palette-dock>form{gap:0}:root.annotation-palette-floating{--annotation-palette-lane-width:0px}#palette-dialog[data-placement=floating]{grid-template-rows:auto minmax(0,1fr)}.palette-move-handle{flex:0 0 14px;width:100%;height:14px;min-height:14px;padding:0;border:0;background:#3c484f;color:#fff;line-height:14px;cursor:move;touch-action:none}.palette-move-handle[hidden]{display:none}.study-floating-window{box-sizing:border-box;overflow:hidden;resize:none!important}.study-floating-window>header,.study-floating-window>footer,.study-floating-window [data-study-drag]{flex-shrink:0;cursor:grab;touch-action:none}.study-floating-window>header{position:relative;z-index:1}.study-window-edge{position:absolute;display:block;z-index:20;touch-action:none;user-select:none}.study-window-edge-n,.study-window-edge-s{left:12px;right:12px;height:7px;cursor:ns-resize}.study-window-edge-n{top:0}.study-window-edge-s{bottom:0}.study-window-edge-e,.study-window-edge-w{top:12px;bottom:12px;width:7px;cursor:ew-resize}.study-window-edge-e{right:0}.study-window-edge-w{left:0}.study-window-edge-ne,.study-window-edge-nw,.study-window-edge-se,.study-window-edge-sw{width:12px;height:12px}.study-window-edge-ne{top:0;right:0;cursor:nesw-resize}.study-window-edge-nw{top:0;left:0;cursor:nwse-resize}.study-window-edge-se{bottom:0;right:0;cursor:nwse-resize}.study-window-edge-sw{bottom:0;left:0;cursor:nesw-resize}
