:root{color:#111827;background:#f7f8fb;font-family:Inter,Noto Sans SC,Noto Sans Lao,PingFang SC,Microsoft YaHei,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--blue: #155fc8;--blue-strong: #0c56b4;--blue-soft: #edf4ff;--green: #18a66a;--text: #151922;--muted: #687181;--line: #dfe4eb;--line-strong: #cfd6df;--surface: #ffffff;--soft: #f8fafc;--shadow: 0 8px 30px rgba(18, 27, 38, .08)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:#f7f8fb}body{margin:0;min-width:320px;min-height:100vh;-webkit-font-smoothing:antialiased}button,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}.hidden-file-input{display:none}button:disabled{cursor:not-allowed;opacity:.72}.app-shell{width:min(100vw,430px);min-height:100vh;margin:0 auto;padding:14px 8px calc(18px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text)}.auth-entry-shell{width:min(100vw,430px);min-height:100vh;margin:0 auto;padding:24px 18px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#f4f8ff,#fff 44%),#fff;color:var(--text)}.settings-shell{width:min(100vw,430px);min-height:100vh;margin:0 auto;padding:14px 14px calc(22px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text)}.app-shell.theme-dark{--text: #f3f7fb;--muted: #aab5c4;--line: #2d3747;--line-strong: #3a4658;--surface: #101722;--soft: #151e2b;--blue-soft: #132945;background:var(--surface);color:var(--text)}.auth-entry-shell.theme-dark{--text: #f3f7fb;--muted: #aab5c4;--line: #2d3747;--line-strong: #3a4658;--surface: #101722;--soft: #151e2b;--blue-soft: #132945;background:linear-gradient(180deg,#132945,#101722 45%);color:var(--text)}.settings-shell.theme-dark{--text: #f3f7fb;--muted: #aab5c4;--line: #2d3747;--line-strong: #3a4658;--surface: #101722;--soft: #151e2b;--blue-soft: #132945;background:var(--surface);color:var(--text)}.app-shell.theme-dark h1,.auth-entry-shell.theme-dark h1,.settings-shell.theme-dark .settings-topbar strong,.settings-shell.theme-dark .record-item strong,.settings-shell.theme-dark .account-card strong,.settings-shell.theme-dark .auth-intro strong,.app-shell.theme-dark .translated-text,.app-shell.theme-dark .vocabulary h2,.app-shell.theme-dark .scene-summary strong,.app-shell.theme-dark .drawer-header h2,.app-shell.theme-dark .record-item strong,.app-shell.theme-dark .menu-intro strong,.app-shell.theme-dark .menu-feature-item strong{color:var(--text)}.app-shell.theme-dark .scene-card,.app-shell.theme-dark .language-switch,.app-shell.theme-dark .input-panel,.app-shell.theme-dark .result-panel,.app-shell.theme-dark .file-panel,.app-shell.theme-dark .image-status,.app-shell.theme-dark .bottom-drawer,.app-shell.theme-dark .drawer-header,.app-shell.theme-dark .menu-feature-item,.app-shell.theme-dark .record-item,.app-shell.theme-dark .drawer-scene-item,.app-shell.theme-dark .empty-list,.app-shell.theme-dark .account-card,.app-shell.theme-dark .auth-intro,.app-shell.theme-dark .word-head,.app-shell.theme-dark .file-actions button,.settings-shell.theme-dark .menu-intro,.settings-shell.theme-dark .menu-feature-item,.settings-shell.theme-dark .record-item,.settings-shell.theme-dark .empty-list,.settings-shell.theme-dark .account-card,.settings-shell.theme-dark .auth-intro{background:var(--soft);color:var(--text)}.app-shell.theme-dark .scene-card.is-selected,.app-shell.theme-dark .drawer-scene-item.is-selected,.app-shell.theme-dark .active-mode,.app-shell.theme-dark .menu-intro{background:#132945}.app-shell.theme-dark textarea,.app-shell.theme-dark .language-side,.app-shell.theme-dark .swap-button,.app-shell.theme-dark .panel-label-row button,.app-shell.theme-dark .icon-button,.app-shell.theme-dark .input-footer button,.app-shell.theme-dark .image-status strong,.app-shell.theme-dark .auth-form input,.app-shell.theme-dark .word-row span,.app-shell.theme-dark .lao-cell{color:var(--text)}.app-shell.theme-dark .tone-note,.app-shell.theme-dark .panel-label-row,.app-shell.theme-dark .result-heading,.app-shell.theme-dark .reading-box,.app-shell.theme-dark .reading-box p,.app-shell.theme-dark .record-item p,.app-shell.theme-dark .image-status small,.app-shell.theme-dark .menu-intro p,.app-shell.theme-dark .menu-feature-item small,.app-shell.theme-dark .account-card small,.app-shell.theme-dark .auth-intro p,.app-shell.theme-dark .auth-form label{color:var(--muted)}.app-shell.theme-dark .auth-form input{border-color:var(--line-strong);background:#101722}.auth-entry-shell.theme-dark .auth-entry-card,.auth-entry-shell.theme-dark .auth-choice-card,.auth-entry-shell.theme-dark .auth-intro{border-color:var(--line);background:var(--soft)}.auth-entry-shell.theme-dark .auth-choice-card strong,.auth-entry-shell.theme-dark .auth-intro strong{color:var(--text)}.auth-entry-shell.theme-dark .auth-choice-card small,.auth-entry-shell.theme-dark .auth-intro p,.auth-entry-shell.theme-dark .auth-entry-brand p,.auth-entry-shell.theme-dark .auth-entry-note,.auth-entry-shell.theme-dark .auth-form label{color:var(--muted)}.auth-entry-shell.theme-dark .auth-form input{border-color:var(--line-strong);background:#101722;color:var(--text)}.settings-shell.theme-dark .settings-topbar span,.settings-shell.theme-dark .menu-intro p,.settings-shell.theme-dark .menu-feature-item small,.settings-shell.theme-dark .record-item p,.settings-shell.theme-dark .record-item span,.settings-shell.theme-dark .record-item time,.settings-shell.theme-dark .account-card small,.settings-shell.theme-dark .auth-intro p,.settings-shell.theme-dark .auth-form label,.settings-shell.theme-dark .empty-list{color:var(--muted)}.settings-shell.theme-dark .settings-topbar button{background:#202b3a;color:var(--text)}.settings-shell.theme-dark .menu-message{border-color:#284b7a;background:#132945;color:#b9d7ff}.settings-shell.theme-dark .auth-form input{border-color:var(--line-strong);background:#101722;color:var(--text)}.settings-shell.theme-dark .auth-message{border-color:#284b7a;background:#132945;color:#b9d7ff}.settings-shell.theme-dark .auth-message.is-error{border-color:#6d3030;background:#301b1f;color:#ffb8b8}.app-shell.theme-dark .drawer-header button{background:#202b3a;color:var(--text)}.top-bar{display:grid;grid-template-columns:84px 1fr 84px;align-items:start;gap:6px;min-height:58px}.settings-topbar{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;min-height:54px}.settings-topbar button{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#f2f6fb;color:#111827;cursor:pointer}.settings-topbar div{display:grid;justify-items:center;gap:3px}.settings-topbar strong{color:#080b10;font-size:21px;font-weight:820;line-height:1.1}.settings-topbar span{color:#697386;font-size:12px;line-height:1.2}.settings-content{display:grid;gap:10px;padding-top:12px}.brand-lockup{display:grid;justify-items:center;gap:6px}h1{margin:0;color:#080b10;font-size:24px;font-weight:800;line-height:1;letter-spacing:0}.auth-entry{display:grid;align-content:center;gap:24px;min-height:calc(100vh - 48px - env(safe-area-inset-bottom))}.auth-entry-brand{display:grid;justify-items:center;gap:9px;text-align:center}.auth-entry-mark{display:inline-flex;width:58px;height:58px;align-items:center;justify-content:center;border-radius:16px;background:linear-gradient(180deg,#1768cf,#0d57b7);color:#fff;box-shadow:0 12px 28px #155fc838}.brand-logo path{fill:none;stroke:currentColor;stroke-width:4.8;stroke-linecap:round;stroke-linejoin:round}.brand-logo text{fill:currentColor;font-family:PingFang SC,Noto Sans Lao,Noto Sans SC,Arial,sans-serif;font-size:24px;font-weight:800;letter-spacing:0}.auth-entry-brand h1{font-size:29px;line-height:1.05}.auth-entry-brand p,.auth-entry-note{margin:0;color:#657184;font-size:14px;line-height:1.45}.auth-choice-list{display:grid;gap:10px}.auth-choice-card{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;min-height:76px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#1b2432;text-align:left;box-shadow:0 8px 24px #121b260d;cursor:pointer}.auth-choice-card.is-primary{border-color:#a9c7f3;background:#f7fbff}.auth-choice-card>svg{color:var(--blue)}.auth-choice-card span{display:grid;gap:4px;min-width:0}.auth-choice-card strong{color:#111827;font-size:16px;font-weight:820;line-height:1.25}.auth-choice-card small{color:#657184;font-size:13px;line-height:1.35}.auth-entry-card{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 38px #121b2614}.auth-back-button{justify-self:start;min-height:34px;padding:0 9px;border:0;border-radius:8px;background:#eef4ff;color:var(--blue);font-size:13px;font-weight:760;cursor:pointer}.auth-entry-card .auth-panel{max-height:none;padding:0}.auth-entry-note{text-align:center}.active-mode{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:3px 11px;border:0;border-radius:14px;background:#eef4ff;color:var(--blue);font-size:12px;font-weight:700;cursor:pointer}.top-actions{display:flex;justify-content:flex-end;gap:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#0d1117;cursor:pointer}.icon-button.is-active{color:var(--blue)}.icon-button:hover{background:#f2f5f8}.scene-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:0}.scene-card{display:grid;justify-items:center;align-content:center;gap:4px;min-height:56px;padding:5px 4px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:#4c5562;cursor:pointer}.scene-card strong{font-size:12px;font-weight:750;line-height:1.1;letter-spacing:0}.scene-card span{max-width:100%;color:#7b8290;font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-card svg{width:22px;height:22px}.top-bar svg{width:24px;height:24px}.active-mode svg{width:15px;height:15px}.scene-card.is-selected{border:2px solid var(--blue);background:linear-gradient(180deg,#f7fbff,#fff);color:var(--blue)}.scene-card.is-selected span{color:var(--blue)}.tone-note{display:flex;align-items:center;justify-content:center;gap:7px;min-height:28px;color:#606979;font-size:13px;line-height:1.3}.language-switch{display:grid;grid-template-columns:1fr 56px 1fr;align-items:center;min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.language-side,.swap-button{display:flex;align-items:center;justify-content:center;min-height:42px;border:0;background:transparent;color:#151922;font-size:15px;font-weight:760;cursor:pointer}.language-side{flex-direction:column;gap:3px}.language-dot{width:8px;height:8px;border-radius:999px}.blue-dot{background:#1d69d8}.green-dot{background:#17a56c}.swap-button{color:#0f172a}.input-panel,.result-panel,.file-panel{margin-top:7px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 2px 12px #121b2605}.input-panel{min-height:128px;padding:11px 14px 9px}.panel-label-row,.result-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#5d6675;font-size:14px}.panel-label-row button{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#343a45;cursor:pointer}textarea{display:block;width:100%;min-height:58px;margin-top:6px;padding:0;resize:none;border:0;outline:0;color:#0a0d12;background:transparent;font-size:16px;font-weight:520;line-height:1.48}textarea::placeholder{color:#a1a8b2}.input-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid var(--line);color:#7a8391;font-size:13px}.input-footer div{display:flex;gap:12px}.input-footer button,.file-actions button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#222a36;font-size:14px;font-weight:650;cursor:pointer}.image-status{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:8px;margin-top:9px;padding:9px 10px;border:1px dashed #b7c3d3;border-radius:7px;background:#f7fbff;color:#475263}.image-status>svg{color:var(--blue)}.image-status span{display:grid;gap:2px;min-width:0}.image-status strong,.image-status small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-status strong{color:#202733;font-size:13px;font-weight:760}.image-status small{color:#697386;font-size:12px}.result-panel{padding:11px 14px 13px}.result-heading>div{display:flex;align-items:center;gap:4px}.result-heading .icon-button{width:33px;height:33px}.translated-text{margin:11px 0 12px;color:#0b0f16;font-size:18px;font-weight:520;line-height:1.5;white-space:pre-wrap;word-break:break-word}.status-box{margin:12px 0;padding:12px;border:1px solid #c9d8ef;border-radius:8px;background:#f4f8ff;color:#1d4f95;font-size:14px;font-weight:650;line-height:1.45}.loading-box{position:relative;display:flex;align-items:center;gap:9px;overflow:hidden}.loading-box:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent,rgba(38,111,220,.12),transparent);animation:loading-sheen 1.7s linear infinite;transform:translate(-100%)}.loading-orbit{position:relative;z-index:1;width:17px;height:17px;flex:0 0 17px;border:2px solid rgba(29,79,149,.2);border-top-color:#1266d6;border-radius:999px;animation:loading-spin .85s linear infinite}.loading-box>span:not(.loading-orbit){position:relative;z-index:1}.loading-dots{display:inline-flex;align-items:center;gap:3px}.loading-dots i{width:4px;height:4px;border-radius:999px;background:currentColor;animation:loading-dot 1.1s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}@keyframes loading-spin{to{transform:rotate(360deg)}}@keyframes loading-sheen{to{transform:translate(100%)}}@keyframes loading-dot{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.inline-toast{display:inline-flex;margin-top:9px;padding:6px 9px;border-radius:7px;background:#ecfdf5;color:#14784d;font-size:13px;font-weight:700}.error-box{border-color:#f0b8b8;background:#fff5f5;color:#a92525}.context-box{border-color:#f0d29a;background:#fff9ed;color:#8a5a0a}.chinese-result{font-size:19px;font-weight:650}.reading-box{padding:10px 0 9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#5e6877}.reading-box span{display:block;margin-bottom:5px;font-size:14px;font-weight:650}.reading-box p{margin:0;color:#717b8a;font-size:13px;line-height:1.55}.reading-box-muted p{color:#8a94a3}.vocabulary{padding-top:10px}.vocabulary h2{margin:0 0 9px;font-size:15px;font-weight:760;letter-spacing:0}.word-table{border:1px solid var(--line-strong);border-bottom:0;border-radius:0;overflow:hidden}.word-row{display:grid;grid-template-columns:minmax(86px,1fr) minmax(106px,1.3fr) minmax(126px,1.8fr);min-height:36px;border-bottom:1px solid var(--line-strong)}.word-row span{display:flex;align-items:center;min-width:0;padding:7px 8px;border-right:1px solid var(--line-strong);color:#303845;font-size:12.5px;line-height:1.35;word-break:break-word}.word-row span:last-child{border-right:0}.word-head{min-height:34px;background:#f7f9fc}.word-head span{justify-content:center;color:#242a34;font-size:13px;font-weight:700}.lao-cell{color:#151922;font-size:14px}.file-panel{padding:10px 12px}.file-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.file-actions button{justify-content:center;min-height:40px;border:1px solid var(--line);border-radius:7px;background:#fbfcfe}.scan-preview{display:grid;grid-template-columns:35px 1fr;gap:9px;margin-top:9px;padding:11px;border:1px dashed #b7c3d3;border-radius:7px;background:#f7fbff;color:#475263}.scan-preview strong{display:block;margin-bottom:3px;color:#202733;font-size:14px}.scan-preview p{margin:0;font-size:12px;line-height:1.45;word-break:break-word}.translate-action{display:grid;grid-template-columns:1fr;margin-top:8px}.translate-action button{display:inline-flex;min-width:0;min-height:46px;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#151922;font-size:16px;font-weight:760;cursor:pointer}.translate-action .primary-action{border-color:var(--blue-strong);background:linear-gradient(180deg,#1768cf,#0d57b7);color:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;padding:16px 8px;background:#0f172a61}.entity-modal{width:min(100%,430px);max-height:min(86vh,760px);overflow:auto;border-radius:12px;background:#fff;box-shadow:0 22px 70px #0f172a40}.entity-modal-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 16px 12px;border-bottom:1px solid var(--line);background:#fff}.entity-modal-header h2{margin:0;color:#111827;font-size:18px;line-height:1.25}.entity-modal-header p{margin:5px 0 0;color:#667085;font-size:13px;line-height:1.4}.entity-modal-header button{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#f4f6f8;color:#111827}.entity-list{display:grid;gap:12px;padding:14px 16px}.entity-item{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcfe}.entity-item-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.entity-item-title span{color:var(--blue);font-size:13px;font-weight:750}.entity-item-title strong{color:#111827;font-size:16px}.entity-item label{display:grid;gap:5px;color:#4b5563;font-size:13px;font-weight:650}.entity-item input,.entity-item select,.entity-item textarea{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:0;background:#fff;color:#111827;font-size:14px;font-weight:500}.entity-item textarea{min-height:58px;resize:vertical}.entity-modal-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:12px 16px 16px;border-top:1px solid var(--line);background:#fffffff5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.entity-modal-actions button{min-height:44px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#111827;font-size:15px;font-weight:750}.entity-modal-actions .confirm-context{border-color:var(--blue-strong);background:var(--blue-strong);color:#fff}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:18;display:flex;align-items:flex-end;justify-content:center;padding:12px 8px calc(86px + env(safe-area-inset-bottom));background:#0f172a57}.bottom-drawer{width:min(100%,430px);max-height:min(78vh,640px);overflow:hidden;border:1px solid #dfe6ef;border-radius:13px;background:#fff;box-shadow:0 22px 70px #0f172a3d}.drawer-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 15px;border-bottom:1px solid var(--line);background:#fffffffa}.drawer-header h2{margin:0;color:#111827;font-size:17px;font-weight:800;letter-spacing:0}.drawer-header button{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#f4f6f8;color:#111827;cursor:pointer}.drawer-content,.record-list,.drawer-scene-list{max-height:calc(min(78vh,640px) - 52px);overflow:auto;padding:13px 15px 16px}.menu-intro{display:grid;gap:6px;padding:13px;border:1px solid #cfe0f5;border-radius:9px;background:#f3f8ff}.menu-intro strong{color:#111827;font-size:16px;font-weight:820;line-height:1.25}.menu-intro p{margin:0;color:#526070;font-size:13px;font-weight:560;line-height:1.5}.menu-feature-list{display:grid;gap:8px;margin-top:10px}.menu-feature-item{display:grid;width:100%;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;min-height:56px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe;color:#233044;text-align:left}button.menu-feature-item{cursor:pointer}.menu-feature-item>svg{color:var(--blue)}.menu-feature-item span{display:grid;gap:2px;min-width:0}.menu-feature-item strong{color:#111827;font-size:14px;font-weight:780;line-height:1.25}.menu-feature-item small{overflow:hidden;color:#697386;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.theme-toggle-pill{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:4px 8px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:760}.menu-message{margin-top:10px;padding:9px 10px;border:1px solid #c9d8ef;border-radius:8px;background:#f4f8ff;color:#1d4f95;font-size:13px;font-weight:700;line-height:1.4;text-align:center}.app-shell.theme-dark .menu-message{border-color:#284b7a;background:#132945;color:#b9d7ff}.model-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.model-grid div,.scene-summary div,.record-item,.drawer-scene-item,.empty-list{border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.model-grid div{display:grid;gap:5px;min-height:62px;padding:10px}.model-grid span,.record-item span,.drawer-scene-item small{color:#697386;font-size:12px;line-height:1.3}.model-grid strong{color:#111827;font-size:14px;line-height:1.25;word-break:break-word}.scene-summary{display:grid;gap:8px;margin-top:10px}.scene-summary div{padding:10px 11px}.scene-summary strong{display:block;color:#111827;font-size:14px}.scene-summary p{margin:4px 0 0;color:#697386;font-size:12px;line-height:1.4}.drawer-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:42px;margin-top:10px;border:1px solid #f0b8b8;border-radius:8px;background:#fff7f7;color:#a92525;font-size:14px;font-weight:760;cursor:pointer}.auth-panel{display:grid;gap:10px;max-height:calc(min(78vh,640px) - 52px);overflow:auto;padding:13px 15px 16px}.auth-intro,.account-card{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.auth-intro>svg,.account-card>svg{color:var(--blue)}.auth-intro strong,.account-card strong{display:block;color:#111827;font-size:15px;font-weight:800;line-height:1.25;word-break:break-word}.auth-intro p,.account-card small{display:block;margin:3px 0 0;color:#697386;font-size:12.5px;line-height:1.45}.auth-form{display:grid;gap:10px}.auth-form label{display:grid;gap:6px;color:#4b5563;font-size:13px;font-weight:700}.auth-form input{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:8px;outline:0;background:#fff;color:#111827;font-size:15px;font-weight:560}.auth-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #155fc81f}.auth-primary{min-height:44px;border:1px solid var(--blue-strong);border-radius:8px;background:linear-gradient(180deg,#1768cf,#0d57b7);color:#fff;font-size:15px;font-weight:780;cursor:pointer}.auth-link{min-height:36px;border:0;background:transparent;color:var(--blue);font-size:13px;font-weight:760;cursor:pointer}.auth-message{padding:9px 10px;border:1px solid #c9d8ef;border-radius:8px;background:#f4f8ff;color:#1d4f95;font-size:13px;font-weight:700;line-height:1.4}.auth-message.is-error{border-color:#f0b8b8;background:#fff5f5;color:#a92525}.app-shell.theme-dark .auth-message{border-color:#284b7a;background:#132945;color:#b9d7ff}.app-shell.theme-dark .auth-message.is-error{border-color:#6d3030;background:#301b1f;color:#ffb8b8}.record-list,.drawer-scene-list{display:grid;gap:8px}.records-page .record-list{gap:9px}.settings-content>.auth-panel{max-height:none;overflow:visible;padding:0}.record-item{display:grid;width:100%;gap:5px;padding:10px 11px;text-align:left;cursor:pointer}.record-item strong,.record-item p{display:-webkit-box;margin:0;overflow:hidden;color:#111827;line-height:1.35;text-overflow:ellipsis;-webkit-box-orient:vertical}.record-item strong{-webkit-line-clamp:1;font-size:14px;font-weight:760}.record-item p{-webkit-line-clamp:2;color:#414b5a;font-size:13px}.record-item time{color:#858d9a;font-size:11px}.empty-list{margin:13px 15px 16px;padding:16px;color:#697386;font-size:14px;font-weight:650;text-align:center}.records-page .empty-list{margin:0}.drawer-scene-item{display:grid;width:100%;grid-template-columns:34px 1fr;align-items:center;gap:9px;padding:10px 11px;color:#374151;text-align:left;cursor:pointer}.drawer-scene-item.is-selected{border-color:var(--blue);background:#f5f9ff;color:var(--blue)}.drawer-scene-item span{display:grid;gap:2px;min-width:0}.drawer-scene-item strong{color:inherit;font-size:14px}.drawer-scene-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:374px){.app-shell{padding-inline:7px}.top-bar{grid-template-columns:80px 1fr 80px}h1{font-size:27px}.scene-card{gap:5px}.scene-card strong{font-size:13px}.scene-card span{font-size:10px}.translated-text{font-size:20px}.word-row{grid-template-columns:minmax(74px,.9fr) minmax(92px,1.15fr) minmax(105px,1.65fr)}.word-row span{padding:8px 6px;font-size:12px}.translate-action button{gap:6px;font-size:15px}}@media(min-width:431px){body{background:#edf0f4}.app-shell{box-shadow:var(--shadow)}}
