:root{color:#111827;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Segoe UI,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}#root{width:100%;min-height:100vh}body{min-width:320px;min-height:100vh;margin:0}*{box-sizing:border-box}button:focus-visible{outline-offset:2px;outline:2px solid #6366f1}.app-shell{text-align:left;background:#f4f6fb;flex-direction:column;width:100%;min-height:100vh;display:flex}.app-header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:14px 28px;display:flex}.app-header-left{align-items:center;gap:24px;min-width:0;display:flex}.app-header-brand{color:#111827;white-space:nowrap;margin:0;font-size:1rem;font-weight:700}.app-header-nav{align-items:center;gap:8px;display:flex}.app-nav-link{color:#4b5563;border-radius:8px;padding:6px 10px;font-size:.92rem;font-weight:600;text-decoration:none}.app-nav-link:hover,.app-nav-link:focus-visible{color:#111827;background:#f3f4f6}.app-nav-link.active{color:#3730a3;background:#eef2ff}.app-header-user{position:relative}.user-menu-trigger{color:#111827;cursor:pointer;font:inherit;background:#f9fafb;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:10px;padding:6px 10px;display:inline-flex}.user-avatar{color:#fff;background:#4f46e5;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:.8rem;font-weight:700;display:inline-flex}.user-email{font-size:.92rem;font-weight:600}.user-menu-caret{color:#6b7280;font-size:.75rem}.user-menu{z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:10px;min-width:160px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 10px 30px #0f172a14}.user-menu-item{color:#111827;text-align:left;width:100%;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px;display:block}.user-menu-item:hover,.user-menu-item:focus-visible{background:#f3f4f6}.app-shell--authenticated{flex-direction:row;align-items:stretch}.app-shell-main{flex-direction:column;flex:1;min-width:0;min-height:100vh;display:flex}.app-content{flex:1;min-width:0}.app-content .loading-state{min-height:min(60vh,480px)}.app-sidebar{background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;flex-shrink:0;gap:20px;width:240px;padding:20px 16px;display:flex}.app-sidebar-brand{color:#111827;margin:0;padding:0 10px;font-size:1.05rem;font-weight:700}.app-navigation{flex-direction:column;gap:4px;display:flex}.app-sidebar-link{min-height:40px;padding:10px 12px;line-height:1.2;display:block}.app-menu-toggle{color:#111827;cursor:pointer;width:40px;height:40px;font:inherit;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:none}.app-menu-toggle:hover,.app-menu-toggle:focus-visible{background:#f3f4f6}.app-menu-toggle-icon{font-size:1.15rem;line-height:1}.app-drawer-backdrop,.app-drawer,.app-bottom-nav{display:none}.settings-main{width:min(960px,100% - 48px);margin:0 auto;padding:40px 0 64px}.settings-main h1{margin:0}.settings-lead{color:#374151;margin:8px 0 0;font-size:1.05rem;line-height:1.6}.settings-empty{color:#4b5563;background:#fff;border:1px dashed #d1d5db;border-radius:12px;margin:28px 0 0;padding:20px 18px;line-height:1.55}@media (width<=959px) and (width>=641px){.app-menu-toggle{display:inline-flex}.app-sidebar{opacity:0;pointer-events:none;border-right:0;align-self:flex-start;width:0;height:100vh;padding:0;transition:width .2s,padding .2s,opacity .15s;position:sticky;top:0;overflow:hidden}.app-shell--rail-expanded .app-sidebar{opacity:1;pointer-events:auto;border-right:1px solid #e5e7eb;width:220px;padding:20px 16px}}@media (width<=640px){.app-menu-toggle{display:inline-flex}.app-sidebar{display:none}.app-shell-main{padding-bottom:72px}.app-drawer-backdrop{z-index:40;cursor:pointer;background:#0f172a66;border:0;margin:0;padding:0;display:block;position:fixed;inset:0}.app-drawer{z-index:50;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;gap:12px;width:min(300px,86vw);height:100vh;padding:16px;transition:transform .2s;display:flex;position:fixed;top:0;left:0;transform:translate(-105%);box-shadow:8px 0 24px #0f172a14}.app-shell--drawer-open .app-drawer{transform:translate(0)}.app-drawer[hidden]{display:none}.app-drawer-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.app-drawer-title{color:#111827;margin:0;font-size:1rem;font-weight:700}.app-drawer-close{color:#111827;cursor:pointer;width:40px;height:40px;font:inherit;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.app-bottom-nav{z-index:30;min-height:64px;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e5e7eb;flex-direction:row;justify-content:space-around;align-items:stretch;gap:2px;display:flex;position:fixed;bottom:0;left:0;right:0}.app-bottom-nav-link{color:#4b5563;text-align:center;border-radius:8px;flex:1;justify-content:center;align-items:center;min-height:48px;padding:6px 4px;font-size:.72rem;font-weight:600;line-height:1.2;text-decoration:none;display:flex}.app-bottom-nav-link:hover,.app-bottom-nav-link:focus-visible{color:#111827;background:#f3f4f6}.app-bottom-nav-link.active{color:#3730a3;background:#eef2ff}.settings-main{width:min(960px,100% - 32px);padding-top:28px}}.dashboard-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.dashboard-lead{color:#374151;margin:8px 0 0;font-size:1.05rem;line-height:1.6}.dashboard-meta{color:#6b7280;margin:10px 0 0;font-size:.92rem}.dashboard-refresh{color:#111827;min-height:40px;font:inherit;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:0 14px;font-weight:600}.dashboard-refresh:hover,.dashboard-refresh:focus-visible{background:#f9fafb}.dashboard-refresh:disabled{opacity:.65;cursor:not-allowed}.dashboard-next-best{background:#eef2ff;border:1px solid #c7d2fe;border-radius:16px;margin:0 0 24px;padding:20px 22px}.dashboard-next-best h2{margin:0 0 8px;font-size:1.1rem}.dashboard-next-best-copy{color:#374151;margin:0 0 16px;line-height:1.55}.dashboard-summary-grid{grid-template-columns:1fr;gap:14px;margin-bottom:28px;display:grid}@media (width>=641px){.dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=960px){.dashboard-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.dashboard-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin:0;padding:18px 20px}.dashboard-summary-card h2{color:#4b5563;margin:0;font-size:.95rem;font-weight:600}.dashboard-summary-value{color:#111827;margin:10px 0 4px;font-size:1.85rem;font-weight:700;line-height:1.1}.dashboard-summary-hint{color:#6b7280;margin:0;font-size:.88rem;line-height:1.45}.dashboard-quick-actions{margin-bottom:28px}.dashboard-quick-actions h2{margin:0 0 12px;font-size:1.1rem}.dashboard-quick-actions-row{flex-wrap:wrap;gap:10px;display:flex}.dashboard-quick-action{color:#111827;min-height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:10px;justify-content:center;align-items:center;padding:0 14px;font-weight:700;text-decoration:none;display:inline-flex}.dashboard-quick-action:hover,.dashboard-quick-action:focus-visible{background:#f9fafb}.dashboard-quick-action--primary{color:#fff;background:#4f46e5;border-color:#4f46e5}.dashboard-quick-action--primary:hover,.dashboard-quick-action--primary:focus-visible{background:#4338ca;border-color:#4338ca}.dashboard-quick-action:disabled{opacity:.65;cursor:not-allowed}.dashboard-safety,.safety-notice{color:#4b5563;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin:28px 0 0;padding:14px 16px;font-size:.9rem;line-height:1.5}.recommendations-header+.safety-notice,.accounts-header+.safety-notice{margin-top:0;margin-bottom:20px}.dashboard-scan-section{margin-top:8px}.dashboard-scan-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.dashboard-scan-header h2{margin:0;font-size:1.2rem}.dashboard-scans-link{color:#4338ca;font-weight:700;text-decoration:none}.dashboard-scans-link:hover,.dashboard-scans-link:focus-visible{text-decoration:underline}.dashboard-scan-empty{color:#4b5563;background:#fff;border:1px dashed #d1d5db;border-radius:16px;margin:0;padding:18px 20px;line-height:1.55}.dashboard-scan-empty a{color:#4338ca;font-weight:700}.login-page{background:radial-gradient(circle at top,#eef2ff 0%,#0000 45%),#f8fafc;place-items:center;width:100%;min-height:100vh;padding:32px 16px;display:grid}.login-card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:20px;width:min(420px,100%);padding:40px 32px 32px;box-shadow:0 18px 50px #0f172a14}.login-mark{color:#4338ca;background:#eef2ff;border-radius:18px;place-items:center;width:64px;height:64px;margin-bottom:18px;font-size:1.8rem;display:inline-grid}.login-card h1{letter-spacing:-.03em;margin:0;font-size:clamp(1.6rem,4vw,2rem)}.login-tagline{color:#4b5563;margin:14px 0 28px;font-size:1rem;line-height:1.55}.login-sign-in{color:#fff;width:100%;min-height:48px;font:inherit;cursor:pointer;background:#4f46e5;border:0;border-radius:12px;justify-content:center;align-items:center;padding:0 18px;font-weight:700;display:inline-flex}.login-sign-in:hover,.login-sign-in:focus-visible{background:#4338ca}.login-helper{color:#6b7280;margin:16px 0 0;font-size:.88rem}.loading-state{color:#4b5563;place-content:center;justify-items:center;gap:14px;width:100%;min-height:100vh;display:grid}.empty-state{background:#fff;margin-bottom:20px}.empty-state--dashed{text-align:center;border:1px dashed #d1d5db;border-radius:16px;padding:32px 24px}.empty-state--solid{border:1px solid #e5e7eb;border-radius:16px;padding:22px}.empty-state-title{color:#111827;margin:0 0 8px;font-size:1.15rem;font-weight:700}.empty-state--solid .empty-state-title{font-size:1.1rem}.empty-state-copy{color:#6b7280;margin:0;line-height:1.55}.empty-state--solid .empty-state-copy{color:#4b5563}.empty-state-copy p{margin:0}.empty-state-action{margin-top:20px}.loading-spinner{border:3px solid #c7d2fe;border-top-color:#4f46e5;border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.accounts-main,.dashboard-main,.recommendations-main{width:min(960px,100% - 48px);margin:0 auto;padding:40px 0 64px}.accounts-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.accounts-header-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.accounts-connect{color:#fff;min-height:40px;font:inherit;cursor:pointer;white-space:nowrap;background:#4f46e5;border:0;border-radius:10px;padding:0 14px;font-weight:700}.accounts-connect:hover,.accounts-connect:focus-visible{background:#4338ca}.accounts-connect:disabled,.account-reconnect:disabled{opacity:.65;cursor:wait}.accounts-main h1,.dashboard-main h1,.recommendations-main h1{letter-spacing:-.03em;margin:0 0 12px;font-size:clamp(1.8rem,4vw,2.4rem)}.accounts-lead,.recommendations-lead{color:#4b5563;margin:0;font-size:1.02rem;line-height:1.55}.recommendations-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.recommendations-review{gap:16px;display:grid}.recommendations-position{color:#6b7280;margin:0;font-size:.95rem;font-weight:600}.recommendation-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px 24px}.recommendation-card-top{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.recommendation-sender-block{align-items:center;gap:14px;min-width:0;display:flex}.recommendation-avatar{color:#3730a3;background:#e0e7ff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;font-size:.9rem;font-weight:700;display:inline-flex}.recommendation-label{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px;font-size:.8rem;font-weight:600}.recommendation-sender{letter-spacing:-.02em;word-break:break-word;margin:0;font-size:1.25rem}.rec-risk{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:.82rem;font-weight:700;display:inline-flex}.rec-risk--high{color:#991b1b;background:#fef2f2}.rec-risk--medium{color:#9a3412;background:#fff7ed}.rec-risk--low{color:#166534;background:#f0fdf4}.rec-risk--unknown{color:#4b5563;background:#f3f4f6}.recommendation-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0 0 18px;display:grid}.recommendation-meta dt{color:#6b7280;margin:0 0 4px;font-size:.8rem;font-weight:600}.recommendation-meta dd{color:#111827;word-break:break-word;margin:0;font-weight:600}.recommendation-reason{margin-bottom:16px}.recommendation-reason p:last-child{color:#374151;margin:0;line-height:1.55}.recommendation-safety{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;margin:0;padding:12px 14px;font-size:.95rem;line-height:1.5}.recommendation-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.recommendation-reject,.recommendation-approve{min-height:44px;font:inherit;cursor:pointer;border-radius:10px;padding:0 18px;font-weight:700}.recommendation-reject{color:#374151;background:#fff;border:1px solid #d1d5db}.recommendation-reject:hover,.recommendation-reject:focus-visible{background:#f9fafb;border-color:#9ca3af}.recommendation-approve{color:#fff;background:#111827;border:0}.recommendation-approve:hover,.recommendation-approve:focus-visible{background:#1f2937}.recommendation-reject:disabled,.recommendation-approve:disabled{opacity:.65;cursor:wait}.recommendations-nav{justify-content:space-between;gap:12px;display:flex}.recommendations-nav-btn{color:#111827;min-height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:0 14px;font-weight:600}.recommendations-nav-btn:disabled{opacity:.45;cursor:not-allowed}.accounts-refresh{color:#111827;min-height:40px;font:inherit;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:0 14px;font-weight:600}.accounts-refresh:disabled{opacity:.65;cursor:wait}.banner{border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:12px 14px;display:flex}.banner p{margin:0}.banner-success{color:#166534;background:#f0fdf4;border:1px solid #86efac}.banner-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.banner-dismiss{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;font-weight:700;text-decoration:underline}.accounts-list{gap:16px;margin:0;padding:0;list-style:none;display:grid}.account-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px 22px}.account-card-top{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.account-provider{color:#6b7280;letter-spacing:.04em;text-transform:uppercase;margin:0;font-size:.85rem;font-weight:700}.account-email{letter-spacing:-.02em;margin:0;font-size:1.2rem;font-weight:700}.account-status{border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:700;display:inline-flex}.account-status--connected{color:#166534;background:#dcfce7}.account-status--disconnected{color:#4b5563;background:#f3f4f6}.account-status--reconnect_required{color:#9a3412;background:#ffedd5}.account-warning,.account-note{margin:12px 0 0;line-height:1.5}.account-warning{color:#9a3412}.account-note{color:#6b7280}.account-reconnect{color:#9a3412;min-height:40px;font:inherit;cursor:pointer;background:#fff7ed;border:1px solid #fdba74;border-radius:10px;margin-top:14px;padding:0 14px;font-weight:700}.account-disconnect{color:#374151;min-height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:10px;margin-top:14px;padding:0 14px;font-weight:700}.account-disconnect:disabled,.account-reconnect:disabled{opacity:.65;cursor:wait}.confirm-dialog-root{z-index:40;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.confirm-dialog-backdrop{cursor:pointer;background:#11182773;border:0;margin:0;padding:0;position:absolute;inset:0}.confirm-dialog-backdrop:disabled{cursor:wait}.confirm-dialog{z-index:1;text-align:left;background:#fff;border-radius:16px;width:min(420px,100%);padding:24px;position:relative;box-shadow:0 20px 45px #0f172a2e}.confirm-dialog-icon{color:#9a3412;background:#ffedd5;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;margin-bottom:12px;font-weight:800;display:inline-flex}.confirm-dialog-title{letter-spacing:-.02em;margin:0 0 10px;font-size:1.25rem}.confirm-dialog-body{color:#4b5563;margin:0 0 20px;line-height:1.55}.confirm-dialog-body p{margin:0 0 10px}.confirm-dialog-body p:last-child{margin-bottom:0}.confirm-dialog-account{color:#111827;font-weight:700}.confirm-dialog-actions{justify-content:flex-end;gap:10px;display:flex}.confirm-dialog-cancel,.confirm-dialog-confirm{min-height:40px;font:inherit;cursor:pointer;border-radius:10px;padding:0 14px;font-weight:700}.confirm-dialog-cancel{color:#374151;background:#fff;border:1px solid #d1d5db}.confirm-dialog-confirm{color:#fff;background:#111827;border:1px solid #111827}.confirm-dialog-cancel:disabled,.confirm-dialog-confirm:disabled{opacity:.65;cursor:wait}.oauth-error-main{text-align:left;width:min(560px,100% - 48px);margin:0 auto;padding:48px 0 64px}.oauth-error-main h1{margin:0 0 12px;font-size:clamp(1.6rem,4vw,2.1rem)}.oauth-error-copy{color:#4b5563;margin:0 0 24px;line-height:1.6}.oauth-error-link{color:#fff;background:#4f46e5;border-radius:10px;align-items:center;min-height:40px;padding:0 14px;font-weight:700;text-decoration:none;display:inline-flex}.scans-main,.recommendations-main{text-align:left;width:min(960px,100% - 48px);margin:0 auto;padding:40px 0 64px}.scans-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.scans-main h1,.recommendations-main h1{letter-spacing:-.03em;margin:0 0 12px;font-size:clamp(1.8rem,4vw,2.4rem)}.scans-lead,.recommendations-lead{color:#4b5563;margin:0;font-size:1.02rem;line-height:1.55}.scans-start,.scans-retry{color:#fff;min-height:40px;font:inherit;cursor:pointer;white-space:nowrap;background:#4f46e5;border:0;border-radius:10px;padding:0 14px;font-weight:700}.scans-start:disabled,.scans-retry:disabled{opacity:.65;cursor:not-allowed}.scan-status-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin-bottom:20px;padding:22px}.scan-status-copy{color:#4b5563;margin:0;line-height:1.55}.scans-accounts-link,.scans-recs-link{color:#fff;background:#4f46e5;border-radius:10px;align-items:center;min-height:40px;margin-top:16px;padding:0 14px;font-weight:700;text-decoration:none;display:inline-flex}.empty-state-action .scans-accounts-link{margin-top:0}.scan-status-top{align-items:center;gap:12px;margin-bottom:14px;display:flex}.scan-status-top h2{margin:0;font-size:1.35rem}.scan-spinner{border:3px solid #e5e7eb;border-top-color:#4f46e5;border-radius:50%;width:22px;height:22px;animation:.8s linear infinite scan-spin}@keyframes scan-spin{to{transform:rotate(360deg)}}.scan-status-meta{gap:12px;margin:0 0 14px;display:grid}.scan-status-meta div{gap:2px;display:grid}.scan-status-meta dt{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-size:.82rem;font-weight:700}.scan-status-meta dd{margin:0;font-weight:600}.scan-status-actions{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.scan-status-card--failed{border-color:#fecaca}.scan-status-card--completed{border-color:#86efac}.scans-footnote{color:#6b7280;margin:28px 0 0;font-size:.92rem}.history-main{width:min(960px,100% - 48px);margin:0 auto;padding:36px 0 48px}.history-main h1{color:#111827;margin:0 0 8px;font-size:1.75rem}.history-lead{color:#4b5563;max-width:42rem;margin:0;line-height:1.5}.history-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.history-filters{flex-wrap:wrap;gap:12px;margin-bottom:16px;display:flex}.history-filter{color:#374151;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;display:flex}.history-filter select{min-width:160px;font:inherit;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px}.history-table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow-x:auto}.history-table{border-collapse:collapse;width:100%;font-size:.92rem}.history-table th,.history-table td{text-align:left;vertical-align:top;border-bottom:1px solid #f3f4f6;padding:12px 14px}.history-table th{text-transform:uppercase;letter-spacing:.03em;color:#6b7280;background:#f9fafb;font-size:.8rem}.history-table tbody tr:last-child td{border-bottom:none}.history-sender{word-break:break-word}.history-status{color:#374151;background:#f3f4f6;border-radius:999px;align-items:center;padding:3px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.history-status--completed,.history-status--approved,.history-status--undone{color:#166534;background:#dcfce7}.history-status--failed{color:#991b1b;background:#fee2e2}.history-status--rejected,.history-status--undo_requested{color:#3730a3;background:#eef2ff}.history-footnote{color:#6b7280;margin:16px 0 0;font-size:.92rem}.history-undo{color:#4338ca;min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #6366f1;border-radius:8px;padding:0 12px;font-weight:700}.history-undo:hover,.history-undo:focus-visible{background:#eef2ff}.history-undo:disabled{opacity:.6;cursor:wait}@media (width<=640px){.app-header{flex-wrap:wrap;padding:12px 16px}.app-header-left{justify-content:space-between;width:100%}.user-email{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.accounts-main,.dashboard-main,.scans-main,.recommendations-main,.history-main,.settings-main{width:min(960px,100% - 32px);padding-top:28px}.accounts-header,.scans-header,.recommendations-header,.history-header{flex-direction:column}.history-table thead{display:none}.history-table,.history-table tbody,.history-table tr,.history-table td{width:100%;display:block}.history-table tr{border-bottom:1px solid #e5e7eb;padding:14px 16px}.history-table tr:last-child{border-bottom:none}.history-table td{border-bottom:none;justify-content:space-between;gap:12px;padding:6px 0;display:flex}.history-table td:before{content:attr(data-label);color:#6b7280;flex:none;font-weight:700}.history-undo{min-width:96px;min-height:44px}.recommendation-meta{grid-template-columns:1fr}.recommendation-actions,.recommendation-reject,.recommendation-approve{width:100%}.recommendation-actions{flex-direction:column-reverse}.confirm-dialog-root{align-items:flex-end;padding:0}.confirm-dialog{width:100%;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0}.confirm-dialog-actions{flex-direction:column-reverse}.confirm-dialog-cancel,.confirm-dialog-confirm{width:100%}}.priority-queue-main{max-width:1120px;margin:0 auto;padding:1.25rem 1rem 3rem}.priority-queue-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.priority-queue-header h1{margin:0 0 .35rem;font-size:1.75rem}.priority-queue-lead{color:var(--text-muted,#5c6570);max-width:42rem;margin:0;line-height:1.45}.priority-queue-header-actions{flex-direction:column;flex:none;align-items:flex-end;gap:.65rem;display:flex}.priority-queue-last-updated{color:#6b7280;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.65rem;font-size:.85rem;display:flex}.priority-summary-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-bottom:1.25rem;display:grid}.priority-summary-card{text-align:left;border:1px solid var(--border,#e4e7ec);cursor:pointer;background:#fff;border-top:3px solid #d0d5dd;border-radius:12px;flex-direction:column;align-items:flex-start;gap:.15rem;min-height:6.5rem;padding:.85rem .95rem;display:flex}.priority-summary-card:focus-visible{outline-offset:2px;outline:2px solid #1f3a5f}.priority-summary-card--active{box-shadow:0 0 0 2px #1f3a5f}.priority-summary-card--critical{border-top-color:#dc2626}.priority-summary-card--high{border-top-color:#ea580c}.priority-summary-card--medium{border-top-color:#ca8a04}.priority-summary-card--low{border-top-color:#2563eb}.priority-summary-card--cleanup_candidate{border-top-color:#059669}.priority-summary-card--skeleton{cursor:default;background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%) 0 0/200% 100%;border-top-color:#e5e7eb;min-height:6.5rem;animation:1.2s ease-in-out infinite priority-skeleton}@keyframes priority-skeleton{0%{background-position:100% 0}to{background-position:-100% 0}}.priority-summary-card-label{color:#344054;font-size:.8rem;font-weight:600}.priority-summary-card-count{color:#101828;font-size:1.65rem;font-weight:700;line-height:1.1}.priority-summary-card-emails{color:#6b7280;font-size:.75rem}.priority-summary-card-desc{color:#6b7280;margin-top:.35rem;font-size:.78rem;line-height:1.3}.priority-queue-list-section{margin-top:.25rem}.priority-queue-list-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.75rem;display:flex}.priority-queue-section-title{color:#101828;margin:0;font-size:1.1rem;font-weight:600}.priority-queue-toolbar{flex-wrap:wrap;align-items:center;gap:.65rem;margin-bottom:.85rem;display:flex}.priority-queue-search{flex:14rem;min-width:0}.priority-queue-search input{border:1px solid var(--border,#d0d5dd);background:#fff;border-radius:8px;width:100%;min-height:40px;padding:.45rem .75rem;font-size:.9rem}.priority-toolbar-btn{cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:8px;min-height:40px;padding:.45rem .9rem;font-size:.875rem}.priority-toolbar-btn--active{color:#1f3a5f;background:#eef3f9;border-color:#1f3a5f;font-weight:600}.priority-queue-advanced-filters{border:1px solid var(--border,#e4e7ec);background:#f9fafb;border-radius:12px;margin-bottom:1rem;padding:.85rem 1rem}.priority-scan-message{color:#344054;margin:0 0 1rem;font-size:.9rem}.priority-queue-controls{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-bottom:.75rem;display:flex}.priority-queue-field{flex-direction:column;gap:.35rem;font-size:.875rem;display:flex}.priority-queue-field--inline{margin:0}.priority-queue-field select,.priority-queue-field input[type=date]{border:1px solid var(--border,#d0d5dd);background:#fff;border-radius:8px;min-width:10rem;min-height:40px;padding:.4rem .6rem}.priority-queue-filters{flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem;display:flex}.priority-queue-filters--secondary{margin-top:-.25rem;margin-bottom:0}.priority-filter{border:1px solid var(--border,#d0d5dd);cursor:pointer;background:#fff;border-radius:999px;padding:.35rem .75rem;font-size:.85rem}.priority-filter--active{color:#fff;background:#1f3a5f;border-color:#1f3a5f}.priority-queue-count{color:#6b7280;margin:0;font-size:.9rem}.priority-queue-list{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.priority-queue-row{border:1px solid var(--border,#e4e7ec);background:#fff;border-left:3px solid #0000;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.1rem;display:flex}.priority-queue-row--selected{background:#fef7f7;border-left-color:#dc2626}.priority-queue-row--critical.priority-queue-row--selected{background:#fef2f2;border-left-color:#dc2626}.priority-queue-row--high.priority-queue-row--selected{background:#fff7ed;border-left-color:#ea580c}.priority-queue-row-main{cursor:pointer;outline-offset:2px;border-radius:8px;flex:16rem;align-items:flex-start;gap:.85rem;min-width:0;display:flex}.priority-queue-row-main:focus-visible{outline:2px solid #1f3a5f}.priority-queue-avatar{color:#1f3a5f;letter-spacing:.02em;background:#eef2f6;border-radius:999px;flex:none;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;font-size:.75rem;font-weight:700;display:inline-flex}.priority-queue-row-body{flex:auto;min-width:0}.priority-queue-row-top{flex-wrap:wrap;gap:.4rem;margin-bottom:.45rem;display:flex}.priority-queue-reason-chips{flex-wrap:wrap;gap:.35rem;display:flex}.priority-reason-chip{color:#4b5563;background:#f3f4f6;border-radius:6px;align-items:center;padding:.15rem .45rem;font-size:.75rem;display:inline-flex}.priority-badge{color:#1f2933;background:#eef2f6;border-radius:6px;align-items:center;padding:.2rem .5rem;font-size:.8rem;font-weight:600;display:inline-flex}.priority-badge--critical{color:#9b1c1c;background:#fde8e8}.priority-badge--high{color:#9a3412;background:#feecdc}.priority-badge--medium{color:#92400e;background:#fef3c7}.priority-badge--low{color:#3730a3;background:#e0e7ff}.priority-badge--cleanup{color:#065f46;background:#d1fae5}.priority-provider-badge,.priority-chip{color:#344054;background:#f9fafb;border:1px solid #d0d5dd;border-radius:999px;align-items:center;padding:.15rem .5rem;font-size:.75rem;display:inline-flex}.priority-chip--action{color:#9b1c1c;letter-spacing:.02em;background:#fff5f5;border-color:#f5c2c2;font-size:.7rem;font-weight:600}.priority-chip--urgency{color:#9b1c1c;background:#fff5f5;border-color:#f5c2c2}.priority-chip--vip{color:#3730a3;background:#eef2ff;border-color:#c7d2fe;font-weight:600}.priority-queue-sender{margin:0 0 .2rem;font-size:.95rem;font-weight:600}.priority-queue-subject{margin:0 0 .45rem;line-height:1.4}.priority-queue-why{color:#4b5563;margin:0 0 .35rem;font-size:.875rem;line-height:1.4}.priority-queue-why-label{text-transform:uppercase;letter-spacing:.03em;color:#6b7280;margin-bottom:.25rem;font-size:.75rem;display:block}.priority-queue-time{color:#6b7280;margin:0;font-size:.8rem}.priority-open-mailbox{cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:8px;flex:none;min-height:40px;padding:.45rem .75rem;font-size:.875rem}.priority-open-mailbox:disabled{opacity:.55;cursor:not-allowed}.priority-open-mailbox--primary{color:#fff;background:#1f3a5f;border-color:#1f3a5f;width:100%;font-weight:600}.priority-open-mailbox--primary:hover:not(:disabled){background:#162a46}.priority-reason-drawer-open{margin:0 0 .25rem}.priority-queue-more{justify-content:center;margin-top:1.25rem;display:flex}.priority-queue-row-actions{flex-direction:column;flex:none;align-items:stretch;gap:.5rem;display:flex}.priority-details-btn{color:#fff;cursor:pointer;background:#1f3a5f;border:1px solid #1f3a5f;border-radius:8px;min-height:40px;padding:.45rem .75rem;font-size:.875rem}.priority-details-btn:hover{background:#162a46}.priority-reason-drawer-root{z-index:1200;justify-content:flex-end;display:flex;position:fixed;inset:0}.priority-reason-drawer-backdrop{cursor:pointer;background:#0f172a73;border:0;margin:0;padding:0;position:absolute;inset:0}.priority-reason-drawer{z-index:1;border-left:1px solid var(--border,#d0d5dd);background:#fff;flex-direction:column;width:min(26rem,100%);height:100%;padding:1.25rem 1.25rem 1.5rem;display:flex;position:relative;overflow:auto;box-shadow:-8px 0 24px #0f172a1f}.priority-reason-drawer-header{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.priority-reason-drawer-header-main{flex-direction:column;gap:.45rem;min-width:0;display:flex}.priority-reason-drawer-title{color:#101828;margin:0;font-size:1.1rem;line-height:1.3}.priority-reason-drawer-overview{flex-direction:column;gap:.25rem;display:flex}.priority-reason-drawer-sender{color:#101828;margin:0;font-weight:600}.priority-reason-drawer-date{color:#6b7280;margin:0;font-size:.85rem}.priority-reason-drawer-close{cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:8px;flex:none;min-height:36px;padding:.35rem .7rem;font-size:.875rem}.priority-reason-drawer-body{flex-direction:column;gap:1.1rem;display:flex}.priority-reason-drawer-explanation{color:#344054;margin:0 0 .5rem;font-size:.95rem;line-height:1.5}.priority-reason-drawer-section-title{text-transform:uppercase;letter-spacing:.03em;color:#6b7280;margin:0 0 .4rem;font-size:.75rem;font-weight:600}.priority-reason-list{color:#344054;margin:0;padding-left:1.15rem;line-height:1.5}.priority-reason-confidence{color:#101828;margin:0;font-size:.95rem;font-weight:600}.priority-confidence-bar{background:#e5e7eb;border-radius:999px;height:.45rem;margin-top:.45rem;overflow:hidden}.priority-confidence-bar-fill{background:#059669;border-radius:999px;height:100%}.priority-reason-disclaimer{color:#6b7280;margin:.45rem 0 0;font-size:.85rem;line-height:1.45}.priority-reason-drawer-meta{color:#344054;border-top:1px solid #eef2f6;flex-direction:column;gap:.35rem;margin-top:.25rem;padding-top:.85rem;font-size:.85rem;display:flex}.priority-reason-drawer-meta p{margin:0}.priority-reason-meta-label{color:#6b7280;font-weight:600}.priority-override-chip{color:#1f3a5f;background:#eff4ff;border:1px solid #c7d7f5;border-radius:999px;align-items:center;margin:0;padding:.2rem .6rem;font-size:.75rem;display:inline-flex}.priority-vip-chip{color:#1f4d30;background:#f0f7f2;border:1px solid #b7d7c2;border-radius:999px;align-items:center;margin:0;padding:.2rem .6rem;font-size:.75rem;display:inline-flex}.priority-chip--override{color:#1f3a5f;background:#eff4ff;border-color:#c7d7f5}.priority-quick-actions{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.priority-quick-action{text-align:left;cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:10px;flex-direction:column;gap:.1rem;min-height:48px;padding:.55rem .65rem;display:flex}.priority-quick-action:hover:not(:disabled){background:#f8fafc;border-color:#1f3a5f}.priority-quick-action:disabled{opacity:.6;cursor:not-allowed}.priority-quick-action--active{background:#eef3f9;border-color:#1f3a5f}.priority-quick-action--clear{text-align:center;color:#344054;grid-column:1/-1}.priority-quick-action--vip{grid-column:1/-1}.priority-quick-action-title{color:#101828;font-size:.85rem;font-weight:600}.priority-quick-action-sub{color:#6b7280;font-size:.75rem}.priority-override-status{color:#6b7280;margin:.55rem 0 0;font-size:.85rem}.priority-override-error{color:#9b1c1c;margin:.55rem 0 0;font-size:.85rem}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=900px){.priority-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=640px){.priority-queue-header{flex-direction:column}.priority-queue-header-actions{align-items:stretch;width:100%}.priority-queue-last-updated{justify-content:space-between}.priority-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:auto}.priority-open-mailbox,.priority-details-btn,.priority-queue-row-actions{width:100%}.priority-reason-drawer-root{justify-content:stretch;align-items:flex-end}.priority-reason-drawer{border-left:0;border-top:1px solid var(--border,#d0d5dd);border-radius:16px 16px 0 0;width:100%;height:auto;max-height:85vh;box-shadow:0 -8px 24px #0f172a1f}}
