:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors:active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors:active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--bg: #f5f6fa;--card: #ffffff;--text: #0f172a;--muted: #64748b;--subtle: #94a3b8;--primary: #4f46e5;--primary-dark: #3730a3;--primary-text: #ffffff;--danger: #ef4444;--success: #10b981;--warning: #f59e0b;--border: #e2e8f0;--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);--radius: 12px;--radius-lg: 16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;background:var(--bg);color:var(--text);min-height:100vh}body{font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}button{font-family:inherit;cursor:pointer}a{color:var(--primary)}.app{max-width:760px;margin:0 auto;padding:24px 24px 64px}.layout{display:flex;min-height:100vh}.layout-main{flex:1;min-width:0}.sidebar{width:260px;flex-shrink:0;background:var(--card);border-right:1px solid var(--border);display:flex;flex-direction:column;height:100vh;position:sticky;top:0}.sidebar-header{padding:18px 20px;border-bottom:1px solid var(--border)}.sidebar-header .brand{font-size:20px}.sidebar-nav{flex:1;overflow-y:auto;padding:14px 10px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:14.5px;font-weight:500}.sidebar-link:hover{background:var(--bg)}.sidebar-link.active{background:#4f46e51a;color:var(--primary)}.sidebar-link-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:var(--subtle);font-size:14px}.sidebar-link.active .sidebar-link-icon{color:var(--primary)}.sidebar-section{margin-top:14px}.sidebar-section-title{font-size:11px;letter-spacing:.8px;font-weight:700;text-transform:uppercase;color:var(--subtle);padding:8px 12px 6px}.sidebar-deck{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:14px}.sidebar-deck:hover{background:var(--bg)}.sidebar-deck.active{background:#4f46e51f;color:var(--primary)}.sidebar-deck-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.sidebar-deck-count{flex-shrink:0;font-size:12px;color:var(--subtle);background:var(--bg);padding:1px 8px;border-radius:10px;font-weight:600}.sidebar-deck.active .sidebar-deck-count{background:#4f46e533;color:var(--primary)}.sidebar-empty{padding:8px 12px;font-size:13px}.sidebar-footer{padding:14px 16px;border-top:1px solid var(--border)}.sidebar-email{font-size:13px;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer .btn{width:100%}.sidebar-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;z-index:49}.mobile-topbar{display:none;align-items:center;gap:12px;padding:10px 14px;background:var(--card);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.hamburger{width:36px;height:36px;background:transparent;border:none;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border-radius:8px;padding:6px}.hamburger:hover{background:var(--bg)}.hamburger span{display:block;width:20px;height:2px;background:var(--text);border-radius:1px}@media(max-width:900px){.sidebar{position:fixed;left:-280px;top:0;bottom:0;height:100vh;width:260px;transition:left .22s cubic-bezier(.2,.8,.2,1);z-index:50;box-shadow:4px 0 20px #0f172a1a}.sidebar.open{left:0}.sidebar-backdrop.open{display:block}.mobile-topbar{display:flex}.app{padding:16px 14px 64px}}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}.brand{font-size:22px;font-weight:800;color:var(--text);text-decoration:none;letter-spacing:-.5px}.brand span{color:var(--primary)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:var(--radius);font-size:15px;font-weight:600;border:1px solid transparent;background:var(--primary);color:var(--primary-text);transition:opacity .12s ease,transform 80ms ease}.btn:hover{opacity:.92}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--card);color:var(--text);border-color:var(--border)}.btn-danger{background:var(--danger)}.btn-ghost{background:transparent;color:var(--primary)}.btn-row{display:flex;gap:10px;flex-wrap:wrap}.input,.textarea{width:100%;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--card);font-size:15px;color:var(--text);font-family:inherit}.textarea{min-height:120px;resize:vertical}.input:focus,.textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #4f46e526}.label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}.field{margin-bottom:14px}.card{background:var(--card);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow)}.card+.card{margin-top:12px}.muted{color:var(--muted);font-size:14px}.empty{text-align:center;padding:56px 16px}.empty h2{margin:0 0 8px;font-size:22px}.empty p{color:var(--muted);margin:0 0 16px}.error{background:#fef2f2;color:var(--danger);border:1px solid #fecaca;border-radius:var(--radius);padding:10px 14px;font-size:14px;margin-bottom:14px}.deck-row{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:inherit}.deck-row .chev{color:var(--subtle);font-size:28px;line-height:1}.deck-row strong{font-size:17px}.card-front{font-weight:600}.card-divider{height:1px;background:var(--border);margin:10px 0}.card-back{color:var(--muted);font-size:14px}.progress{display:flex;gap:12px;align-items:center;margin-bottom:20px}.progress-track{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:var(--primary);transition:width .2s ease}.progress-text{font-size:13px;color:var(--muted);font-weight:600;min-width:56px;text-align:right}.flip-wrap{perspective:1200px;height:clamp(320px,55vh,560px);margin-bottom:18px;cursor:pointer}.flip{position:relative;width:100%;height:100%;transition:transform .38s cubic-bezier(.2,.8,.2,1);transform-style:preserve-3d}.flip.flipped{transform:rotateY(180deg)}.flip-face{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow);padding:24px 28px;display:flex;flex-direction:column;align-items:center;justify-content:safe center;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden;gap:12px;overflow-y:auto}.flip-face>*{flex-shrink:0}.flip-face.back{transform:rotateY(180deg)}.flip-label{font-size:11px;letter-spacing:1.5px;color:var(--subtle);font-weight:700}.flip-text{font-size:19px;font-weight:600;line-height:1.45;white-space:pre-wrap;word-break:break-word;max-width:100%}.flip-face.short .flip-text{font-size:26px}.flip-hint{font-size:13px;color:var(--subtle);margin-top:8px}.explain-toggle{display:block;margin:14px auto 0}.explain-panel{background:var(--card);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius);padding:14px 16px;margin:14px 0 0}.explain-label{font-size:11px;letter-spacing:1px;font-weight:700;color:var(--primary);margin-bottom:6px}.explain-text{font-size:15px;color:var(--text);line-height:1.55;white-space:pre-wrap}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{width:100%;max-width:460px;background:var(--card);border-radius:var(--radius-lg);padding:22px;box-shadow:var(--shadow);max-height:90vh;overflow-y:auto}.modal h3{margin:0 0 14px;font-size:18px}.modal-wide{max-width:620px}.modal-with-sticky{padding:0;overflow:hidden;max-height:90vh;display:flex;flex-direction:column}.modal-with-sticky>*:not(.modal-sticky-header){padding-left:22px;padding-right:22px}.modal-with-sticky>*:nth-child(2){padding-top:16px}.modal-with-sticky>*:last-child{padding-bottom:22px}.modal-with-sticky{overflow-y:auto}.modal-sticky-header{position:sticky;top:0;background:var(--card);padding:16px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2}.import-mode{margin-top:14px}.segmented{display:inline-flex;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:3px;gap:2px}.segmented-option{background:transparent;border:none;padding:8px 14px;font-size:14px;font-weight:600;color:var(--muted);border-radius:8px;cursor:pointer}.segmented-option:hover:not(.active):not(:disabled){color:var(--text)}.segmented-option.active{background:var(--card);color:var(--text);box-shadow:0 1px 2px #0f172a0f}.segmented-option:disabled{opacity:.5;cursor:not-allowed}.pdf-viewer-app{max-width:980px;padding-bottom:80px}.pdf-viewer-app.with-side-panel{max-width:1240px}.pdf-toolbar{position:sticky;top:0;z-index:5;background:var(--bg);padding-top:12px;padding-bottom:12px;flex-wrap:wrap;gap:12px}.color-picker{display:inline-flex;gap:6px;background:var(--card);border:1px solid var(--border);border-radius:999px;padding:4px}.color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0;transition:transform 80ms ease,border-color 80ms ease}.color-swatch:hover{transform:scale(1.08)}.color-swatch.active{border-width:2px;transform:scale(1.08);box-shadow:0 0 0 2px var(--bg) inset}.pdf-with-panel{display:flex;gap:16px;align-items:flex-start}.pdf-container{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:18px;padding:12px 0}.pdf-container.note-mode{cursor:crosshair}.annotation-panel{width:300px;flex-shrink:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);position:sticky;top:80px;max-height:calc(100vh - 100px);overflow-y:auto;display:flex;flex-direction:column}.annotation-panel-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--card)}.annotation-panel-header h3{margin:0;font-size:15px}.annotation-page-group{padding:8px 0}.annotation-page-header{display:block;width:100%;text-align:left;background:transparent;border:none;padding:8px 16px;font-size:11px;letter-spacing:1px;font-weight:700;text-transform:uppercase;color:var(--subtle);cursor:pointer}.annotation-page-header:hover{color:var(--text)}.annotation-item{display:flex;align-items:center;gap:10px;padding:8px 14px;cursor:pointer;border-left:3px solid transparent}.annotation-item:hover{background:var(--bg);border-left-color:var(--border)}.annotation-dot{width:22px;height:22px;flex-shrink:0;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}.annotation-text{flex:1;min-width:0;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.annotation-remove{background:transparent;border:none;color:var(--subtle);font-size:18px;cursor:pointer;padding:4px 6px;border-radius:4px;opacity:0}.annotation-item:hover .annotation-remove{opacity:1}.annotation-remove:hover{background:var(--bg);color:var(--danger)}@media(max-width:1100px){.annotation-panel{position:fixed;right:0;top:0;bottom:0;height:100vh;border-radius:0;max-height:none;width:320px;z-index:60;box-shadow:-4px 0 16px #0f172a1f}}.pdf-page{position:relative;background:var(--card);box-shadow:var(--shadow);border-radius:6px;overflow:hidden;-webkit-user-select:text;user-select:text}.pdf-page .react-pdf__Page__canvas{display:block;border-radius:6px}.pdf-page .react-pdf__Page__textContent{-webkit-user-select:text;user-select:text}.annotation-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.annotation{position:absolute;pointer-events:auto;border:none;padding:0;cursor:pointer}.annotation.highlight{opacity:.45;mix-blend-mode:multiply;border-radius:2px;transition:opacity .12s ease,outline 80ms ease;outline:0px solid transparent}.annotation.highlight:hover{opacity:.7;outline:2px solid currentColor}.annotation.highlight.active{opacity:.75;outline:2px solid currentColor}.annotation-delete-pop{position:absolute;left:0;top:-32px;white-space:nowrap;padding:4px 10px;font-size:12px;font-weight:600;background:var(--danger);color:#fff;border:none;border-radius:6px;cursor:pointer;box-shadow:0 2px 6px #0f172a40;z-index:10}.annotation-delete-pop:hover{background:#b91c1c}.annotation.note-pin{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;background:var(--primary)!important;color:#fff;box-shadow:0 2px 6px #0f172a40;transform:translate(-50%,-50%)}.annotation.note-pin:hover{transform:translate(-50%,-50%) scale(1.1)}.pdf-page-number{position:absolute;right:8px;bottom:6px;font-size:11px;background:#fffc;padding:1px 6px;border-radius:4px}.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:14px;font-size:14px}.crumb{color:var(--muted);text-decoration:none;padding:4px 8px;border-radius:6px}.crumb:hover{background:var(--bg);color:var(--text)}.crumb.current{color:var(--text);font-weight:600}.crumb-sep{color:var(--subtle);padding:0 2px}.folder-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.folder-link{flex:1;display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:17px;min-width:0}.folder-link:hover{color:var(--primary)}.folder-icon{font-size:22px}.folder-picker-list{list-style:none;padding:8px 0;margin:0}.folder-picker-row{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:none;padding:10px 12px;text-align:left;cursor:pointer;font-size:15px;border-radius:8px;color:var(--text)}.folder-picker-row:hover:not(:disabled){background:var(--bg)}.folder-picker-row.selected{background:#4f46e51f;color:var(--primary);font-weight:600}.folder-picker-row.current{font-style:italic}.folder-picker-row:disabled{opacity:.45;cursor:not-allowed}.folder-picker-icon{font-size:18px;flex-shrink:0}.folder-picker-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-wrap{position:relative;margin-bottom:14px}.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--subtle);font-size:18px;pointer-events:none}.search-input{width:100%;padding:11px 40px 11px 38px;border-radius:var(--radius);border:1px solid var(--border);background:var(--card);font-size:15px;color:var(--text);font-family:inherit}.search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #4f46e526}.search-input::-webkit-search-cancel-button{display:none}.search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:26px;height:26px;background:var(--bg);color:var(--muted);border:none;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.search-clear:hover{background:var(--border);color:var(--text)}mark.search-match{background:#fef08a;color:inherit;padding:0 2px;border-radius:3px}.topic-picker{max-width:520px;margin:24px auto 0}.topic-picker h2{margin:0 0 6px;font-size:24px;text-align:center}.topic-picker>.muted{text-align:center;margin:0 0 20px}.topic-choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px 18px;cursor:pointer;font-size:16px;font-weight:500;color:var(--text);transition:border-color 80ms ease,transform 60ms ease,box-shadow 80ms ease}.topic-choice:hover{border-color:var(--primary);box-shadow:var(--shadow)}.topic-choice:active{transform:translateY(1px)}.topic-choice.all{background:var(--primary);color:var(--primary-text);border-color:var(--primary);margin-bottom:12px}.topic-choice.all:hover{background:var(--primary-dark);border-color:var(--primary-dark)}.topic-choice-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.topic-choice-count{flex-shrink:0;background:#0f172a14;padding:3px 12px;border-radius:12px;font-size:13px;font-weight:600}.topic-choice.all .topic-choice-count{background:#ffffff40;color:var(--primary-text)}.topic-choice-list{display:flex;flex-direction:column;gap:8px}.topic-group{margin:8px 0 18px}.topic-header{display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:none;padding:8px 4px;margin-bottom:8px;text-align:left;cursor:pointer;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--border)}.topic-header:hover{color:var(--text)}.topic-caret{display:inline-block;transition:transform .12s ease;font-size:12px;color:var(--subtle)}.topic-caret.collapsed{transform:rotate(-90deg)}.topic-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);text-transform:none;letter-spacing:normal;font-size:15px}.topic-count{font-size:12px;font-weight:600;background:var(--bg);color:var(--subtle);padding:2px 10px;border-radius:10px}.toast{background:var(--card);border:1px solid var(--success);color:var(--success);padding:10px 14px;border-radius:var(--radius);font-size:14px;margin-bottom:12px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:16px}.tab{background:transparent;border:none;padding:10px 14px;margin-bottom:-1px;font-size:14.5px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;display:inline-flex;align-items:center;gap:8px}.tab:hover{color:var(--text)}.tab.active{color:var(--primary);border-bottom-color:var(--primary)}.tab-count{font-size:12px;font-weight:600;background:var(--bg);color:var(--subtle);padding:1px 8px;border-radius:10px;min-width:18px;text-align:center}.tab.active .tab-count{background:#4f46e51f;color:var(--primary)}.files-section{margin-top:0}.file-row{display:flex;align-items:center;gap:12px;padding:14px 16px}.file-link{flex:1;display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;min-width:0}.file-link:hover .file-name{color:var(--primary)}.file-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;background:#ef44441a;color:#b91c1c;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.5px}.file-name{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{flex-shrink:0;font-size:13px}.fmt-block{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin:14px 0}.fmt-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.fmt-tag{display:inline-block;font-size:11px;letter-spacing:.5px;font-weight:700;text-transform:uppercase;background:var(--primary);color:var(--primary-text);padding:3px 8px;border-radius:6px}.fmt-head .muted{font-size:13px}.fmt-rules{margin:10px 0 0;padding-left:18px;font-size:13.5px;color:var(--muted);line-height:1.55}.fmt-rules li{margin-bottom:4px}.fmt-rules code,.modal code{background:#0f172a0f;color:var(--text);padding:1px 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}.code{background:#0f172a;color:#e2e8f0;padding:12px 14px;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.5;overflow-x:auto;margin:0;white-space:pre}.auth-wrap{max-width:380px;margin:64px auto 0}.auth-wrap h1{text-align:center;font-size:28px;margin-bottom:24px;letter-spacing:-.5px}.auth-wrap .card{padding:24px}.auth-wrap .switch{text-align:center;margin-top:16px;font-size:14px;color:var(--muted)}.landing{max-width:460px;margin:32px auto 0;display:flex;flex-direction:column;gap:36px}.landing .auth-wrap{max-width:460px;margin:0 auto}.landing .auth-wrap .card{padding:32px 28px}.landing .auth-wrap .input{padding:14px 16px;font-size:16px;min-height:48px}.landing .auth-wrap .btn{min-height:52px;font-size:16px}.landing .auth-wrap .label{font-size:14px}.landing .auth-wrap .switch{font-size:15px;margin-top:18px}.hero{text-align:center}.hero-title{font-size:44px;font-weight:800;letter-spacing:-1.5px;margin:8px 0 12px;color:var(--text)}.hero-title span{color:var(--primary)}.hero-tagline{font-size:17px;color:var(--muted);margin:0 0 20px;line-height:1.45}.hero-bullets{list-style:none;padding:0;margin:0;text-align:left;display:inline-block}.hero-bullets li{font-size:14.5px;color:var(--muted);margin-bottom:8px;padding-left:22px;position:relative}.hero-bullets li:before{content:"✓";color:var(--primary);font-weight:700;position:absolute;left:0;top:0}.hero-bullets li strong{color:var(--text);font-weight:600}.spinner{display:inline-block;width:20px;height:20px;border:2.5px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.center-screen{min-height:60vh;display:flex;align-items:center;justify-content:center}
