.cloud-status{position:sticky;top:0;z-index:100;min-height:38px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 22px;background:#edf2d7;color:#354127;font-size:11px;border-bottom:1px solid #d7dfb9}.cloud-status[hidden]{display:none}.cloud-status>div{display:flex;gap:12px}.cloud-status .btn{padding:4px 8px;font-size:11px}.cloud-screen{min-height:100dvh;background:#f7f8f3;color:#252b28;padding:32px 6vw}.cloud-screen>header{display:flex;align-items:center;justify-content:space-between;gap:20px}.cloud-screen header strong{font-size:28px;letter-spacing:-1.6px}.cloud-screen header>div{display:flex;gap:12px}.cloud-screen select{border:1px solid #d9dfd5;border-radius:10px;padding:9px;background:transparent;color:inherit}.auth-layout{max-width:1120px;display:grid;grid-template-columns:1.1fr 1fr;gap:8vw;margin:12vh auto 0;align-items:center}.auth-intro h1{font-size:clamp(42px,5vw,72px);line-height:1.04;letter-spacing:-3px;max-width:530px;margin:20px 0}.auth-intro>p{font-size:16px;line-height:1.7;max-width:360px;color:#65705f}.auth-card{border:1px solid #dce1d6;background:#ffffffc9;border-radius:28px;padding:36px;box-shadow:0 25px 80px -50px #1d362d66;animation:authEnter .45s var(--ease) both}.auth-card h2{font-size:28px;letter-spacing:-1px;margin-bottom:28px}.auth-card label,.dialog-body form label{display:flex;flex-direction:column;gap:9px;font-size:13px;margin:18px 0}.auth-card input,.dialog-body form input,.dialog-body form textarea{font:inherit;font-size:16px;line-height:1.6;border:1px solid #d8ded5;border-radius:11px;padding:12px;background:#fff;color:#252b28;min-width:0;width:100%}.auth-card .primary{background:#27372d;color:white;width:100%;padding:14px}.auth-links{display:flex;justify-content:space-between;gap:18px;margin-top:22px;font-size:12px}.auth-links button{text-decoration:underline;text-underline-offset:4px}.auth-card #auth-message{font-size:13px;line-height:1.6;color:#637259;margin:16px 0}.auth-stack{height:100px;display:flex;margin-top:40px;position:relative}.auth-stack i{position:absolute;width:110px;height:100px;border-radius:13px;background:#e6efaa;box-shadow:0 9px 16px -12px #1e2d28;transform:rotate(-12deg);animation:authFloat 6s ease-in-out infinite}.auth-stack i:nth-child(2){left:75px;background:#e8dff3;transform:rotate(8deg);animation-delay:-2s}.auth-stack i:nth-child(3){left:150px;background:#cce6da;transform:rotate(-7deg);animation-delay:-4s}.account-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.account-actions .btn,.trash-row .btn,.session-row .btn{background:#eef1e8;border:1px solid #d8ded0;color:#354127;padding:10px 14px;font-size:12px}.session-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid #d8ded0;font-size:12px}.trash-row{padding:14px 0}.trash-row h3{margin-bottom:12px;overflow-wrap:anywhere}.backup-codes{font:14px/1.8 monospace;white-space:pre-wrap;padding:14px;background:#eef1e8;border-radius:12px}.captcha-dialog{width:470px;max-width:calc(100vw - 32px);border:1px solid #e0e4eb;border-radius:17px;padding:0;background:#fff;color:#242833;box-shadow:0 30px 120px #0004}.captcha-body{padding:27px}.captcha-body h2{font-size:21px;line-height:1.35;letter-spacing:-.4px;margin:0 0 14px}.captcha-body>p{font-size:13px;line-height:1.7;color:#667083}.captcha-body img{display:block;margin:22px auto;background:white;border-radius:8px;max-width:100%}.captcha-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.captcha-choices button{font-size:17px;min-height:46px;border:1px solid #d9dfe8;border-radius:9px;background:#f6f8fb;color:#252b34}.captcha-choices button:hover{background:#edf4ce;border-color:#b8c68e}.captcha-footer{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#5b6475;margin-top:20px}.captcha-dialog::backdrop{background:#11182788;backdrop-filter:blur(5px)}.checkbox-line{flex-direction:row!important;align-items:center}.checkbox-line input{width:auto}.dialog-body form textarea{min-height:110px}.dialog-body form p{font-size:13px;line-height:1.7}
html[data-theme=dark] .cloud-screen{background:#151b18;color:#ecf0e7}html[data-theme=dark] .auth-intro>p{color:#aeb9a9}html[data-theme=dark] .auth-card{background:#202820;border-color:#394537}html[data-theme=dark] .auth-card input,html[data-theme=dark] .dialog-body form input,html[data-theme=dark] .dialog-body form textarea{background:#171e18;border-color:#43513f;color:#edf0e8}html[data-theme=dark] .auth-card .primary{background:#dbea8d;color:#20251a}html[data-theme=dark] #auth-message{color:#c4d0b2}html[data-theme=dark] .cloud-status{background:#26351f;color:#e0edc0;border-color:#405235}html[data-theme=dark] .account-actions .btn,html[data-theme=dark] .trash-row .btn,html[data-theme=dark] .session-row .btn,html[data-theme=dark] .backup-codes{background:#303c2d;border-color:#43513f;color:#e5eddd}html[data-theme=dark] .captcha-dialog{background:#20252d;border-color:#343c4a;color:#edf0f4}html[data-theme=dark] .captcha-body>p,html[data-theme=dark] .captcha-footer{color:#aeb8c9}html[data-theme=dark] .captcha-choices button{background:#303845;border-color:#4c586c;color:#edf0f4}
@keyframes authEnter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}@keyframes authFloat{50%{translate:0 -8px}}
@media(max-width:760px){.auth-layout{grid-template-columns:1fr;margin:8vh auto 20px;max-width:500px;gap:35px}.auth-intro h1{font-size:46px;letter-spacing:-2px}.auth-stack{display:none}.auth-card{padding:26px;border-radius:22px}.cloud-screen{padding:22px}.cloud-status{padding:6px 12px;font-size:10px;gap:6px}.cloud-status .btn{font-size:10px;padding:5px}.captcha-body{padding:24px}.captcha-choices{gap:6px}.captcha-body h2{font-size:20px}.session-row{flex-wrap:wrap}.account-actions{gap:8px}}

[hidden]{display:none!important}
.feature-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.feature-nav .btn{font-size:12px;background:#eef1e8;padding:9px 12px}.admin-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.admin-metrics>div{padding:22px;border-radius:15px;background:#e9efb9;display:flex;flex-direction:column;gap:8px;color:#303b20}.admin-metrics>div:nth-child(2){background:#e7dff0;color:#443650}.admin-metrics strong{font-size:34px}.admin-metrics span{font-size:12px}.admin-filter{width:100%;padding:12px;border-radius:10px;border:1px solid #d8ded0;font:inherit;margin-bottom:18px}.admin-person{padding:17px 0;border-bottom:1px solid #d8ded0;display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}.admin-person>div:first-child{flex:1;min-width:180px;overflow-wrap:anywhere}.admin-person small{display:block;color:#667083;font-size:11px;line-height:1.8}.admin-person>span{font-size:12px}.admin-person .btn{font-size:11px;padding:8px}.feature-log{display:flex;flex-direction:column;gap:12px;margin-top:20px;max-height:460px;overflow:auto}.feature-log article{display:flex;flex-direction:column;gap:7px;border:1px solid #d8ded0;padding:15px;border-radius:12px;font-size:12px;overflow-wrap:anywhere}.feature-log small{font-size:10px;color:#667083}.feature-subheading{margin-top:24px}.feature-section form select{font:inherit;border:1px solid #d8ded0;padding:11px;background:transparent;color:inherit;border-radius:10px}.feature-section>p{font-size:12px;line-height:1.8}.feature-section .checkbox-line{align-items:flex-start;line-height:1.7}.feature-section form{margin-bottom:20px}.feature-section input[type=checkbox]{flex-shrink:0;width:auto}.ai-progress{font-size:13px;animation:authEnter .4s both}
html[data-theme=dark] .feature-nav .btn{background:#303c2d;color:#e5eddd}html[data-theme=dark] .admin-metrics>div{background:#3b462c;color:#e6efc8}html[data-theme=dark] .admin-metrics>div:nth-child(2){background:#383247;color:#e9dff7}html[data-theme=dark] .admin-filter{background:#171e18;border-color:#43513f;color:#edf0e8}html[data-theme=dark] .admin-person small,html[data-theme=dark] .feature-log small{color:#aeb8c9}html[data-theme=dark] .admin-person,html[data-theme=dark] .feature-log article{border-color:#43513f}
@media(max-width:590px){.feature-nav{gap:5px}.feature-nav .btn{padding:8px;font-size:11px}.admin-metrics>div{padding:16px}.admin-metrics strong{font-size:28px}.admin-person>div:first-child{min-width:100%}}
/* Checkboxes and radios keep their natural size inside dialog and auth forms. */
.dialog-body form .checkbox-line,.auth-card .checkbox-line{justify-content:flex-start;gap:10px}
.dialog-body form .checkbox-line input,.auth-card .checkbox-line input{width:auto;flex:0 0 auto;padding:0;margin:0;border:0}
.index-notice{margin:-14px 0 18px;padding:10px 14px;border-radius:10px;background:#fff6d8;color:#5b4a10;font-size:12px;line-height:1.5}
html[data-theme=dark] .index-notice{background:#3a3218;color:#f1e3b0}
.report-form{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.report-form label{margin:0!important}
.report-form p{flex-basis:100%;margin:0;font-size:12px}
.report-table{overflow-x:auto;margin:16px 0;max-width:100%}
.report-table table{border-collapse:collapse;font-size:12px;min-width:640px}
.report-table th,.report-table td{padding:6px 8px;border-bottom:1px solid #e2e6dc;text-align:right;white-space:nowrap}
.report-table th:first-child,.report-table td:first-child{text-align:left}
html[data-theme=dark] .report-table th,html[data-theme=dark] .report-table td{border-color:#3a4538}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.catalog-section{margin:18px 0}
.catalog-section h3{margin:0 0 8px}
.catalog-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.dialog-body form.catalog-row label{margin:0;flex:1 1 180px}
.catalog-row small{min-width:84px;color:#6b7280}
.ocr-stage{margin:12px 0;max-width:100%;overflow:auto}
.ocr-canvas{display:block;max-width:100%;height:auto;cursor:crosshair;touch-action:none;border-radius:8px}
.ocr-source{margin:16px 0;padding:12px;border-radius:12px;background:#f6f7f2}
html[data-theme=dark] .ocr-source{background:#232a22}
.ocr-source img{display:block;max-width:100%;max-height:280px;border-radius:8px}
.search-tools{display:flex;align-items:center;gap:8px}
.search-tools:empty{display:none}
.semantic-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e2e6dc}
.semantic-row p{margin:4px 0 0;font-size:12px;color:#6b7280;overflow-wrap:anywhere}
.assist-note{font-size:12px;line-height:1.8;margin:13px 0 0;color:var(--muted)}
.semantic-score{font-weight:700;white-space:nowrap}
.compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.compare-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font:12px/1.6 inherit;background:#f6f7f2;padding:10px;border-radius:10px}
html[data-theme=dark] .compare-text{background:#232a22}
