/* Fathom v3.6.8: supports light and dark Sales OS themes without overriding global theme tokens. */
.fathom-intake-card{margin:18px 0;border:1px solid var(--line,#dedde9);background:var(--panel,#ffffff);border-radius:18px;padding:20px;min-width:0}
.fathom-intake-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.fathom-intake-head h2{margin:0 0 6px;font-size:20px}.fathom-intake-head p{margin:0;max-width:580px;opacity:.72;line-height:1.5}
.fathom-intake-count,.fathom-intake-pill{display:inline-block;background:rgba(119,110,220,.13);padding:6px 10px;border-radius:100px;font-size:12px;font-weight:650;white-space:nowrap}
.fathom-intake-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.fathom-intake-stats>span{border:1px solid var(--line,#dedde9);border-radius:12px;padding:12px;display:grid;gap:5px;background:rgba(137,145,214,.04)}
.fathom-intake-stats b{font-size:24px;font-variant-numeric:tabular-nums}.fathom-intake-stats small,.fathom-intake-card td small{opacity:.72;font-size:12px;line-height:1.5}
.fathom-intake-note{margin:12px 0;font-size:12px;opacity:.78}.fathom-intake-error{color:#c9464e}
.fathom-intake-scroll{overflow:auto;max-width:100%}.fathom-intake-scroll table{width:100%;border-collapse:collapse;min-width:690px;text-align:left;font-size:13px}
.fathom-intake-scroll td,.fathom-intake-scroll th{padding:12px;border-bottom:1px solid var(--line,#dedde9);vertical-align:middle}.fathom-intake-scroll th{opacity:.72;font-weight:700}
.fathom-intake-scroll td strong,.fathom-intake-scroll td small{display:block}.fathom-intake-scroll td strong{margin-bottom:3px}
.fathom-intake-footer{font-size:12px;opacity:.68;margin:15px 0 0;line-height:1.5}.fathom-intake-match,.fathom-intake-matching{margin:14px 0;padding:12px;border:1px solid var(--line,#dedde9);background:rgba(127,144,211,.07);border-radius:12px;font-size:13px;line-height:1.5}
.fathom-intake-match label{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-weight:500}.fathom-intake-match input{margin-top:3px;accent-color:#6966d7}.fathom-intake-match small{opacity:.72}
@media(max-width:650px){.fathom-intake-card{padding:14px}.fathom-intake-stats{grid-template-columns:1fr}.fathom-intake-stats>span{padding:9px}.fathom-intake-head h2{font-size:18px}}
.fathom-intake-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid var(--line,#dedde9);font-size:13px}
.fathom-intake-member:last-child{border-bottom:0}.fathom-intake-connected{color:#238452;font-weight:700}.fathom-intake-disconnected{color:#ba7b26;font-weight:650}

/* v3.6.9: readable Fathom controls in both themes; override inherited white buttons. */
body[data-scos-view="fathom"] #view .fathom-connection-panel{margin:16px 0;padding:22px}
.fathom-connection-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px}
.fathom-connection-head h3{margin:0 0 6px;font-size:17px}
.fathom-connection-head p{max-width:670px;margin:0;color:var(--muted);line-height:1.5}
.fathom-connection-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:99px;padding:7px 10px;background:rgba(148,163,184,.15);font-size:12px;font-weight:700;color:var(--text)}
.fathom-connection-badge.healthy{background:rgba(32,155,97,.14);color:#30a371}
.fathom-connection-badge.invalid{background:rgba(193,65,70,.14);color:#d76b70}
.fathom-connection-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.fathom-key-warning{background:rgba(211,101,72,.10);border:1px solid rgba(211,101,72,.36);border-radius:13px;padding:14px 16px;margin-top:16px}
.fathom-key-warning strong{font-size:14px}.fathom-key-warning p{font-size:13px;line-height:1.5;margin:7px 0}.fathom-key-warning a{font-size:13px;text-decoration:underline}
.fathom-key-caution{margin-top:12px;font-size:13px;line-height:1.5;color:var(--muted)}
.fathom-key-entry{margin-top:15px;border-top:1px solid var(--line);padding-top:16px;display:grid;gap:9px}
.fathom-key-entry label{font-size:12px;font-weight:700}
.fathom-key-controls{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.fathom-key-controls input{flex:1 1 290px;width:auto!important;min-width:0;max-width:550px;padding:11px 13px;border-radius:11px}
.fathom-key-controls button{white-space:normal}.fathom-key-entry small{font-size:11px;line-height:1.45;color:var(--muted)}
.fathom-connection-error{margin:13px 0 0;color:var(--red)}
.fathom-transcript-box{margin-top:18px;max-height:330px;overflow:auto;background:var(--panel2,#151b2a);border:1px solid var(--line);padding:16px;border-radius:12px;white-space:normal}
/* Professional light: tinted secondary, blue primary, red destructive action. */
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .btn:not(.primary):not(.danger){background:#edf3fb!important;border:1px solid #c9daee!important;color:#23466f!important;box-shadow:none!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .btn:not(.primary):not(.danger):hover{background:#e1edfb!important;border-color:#8fb5ea!important;color:#16417d!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .btn.primary{background:#2563eb!important;border:1px solid #2563eb!important;color:#fff!important;box-shadow:0 3px 10px rgba(37,99,235,.13)!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .btn.primary:hover{background:#1d4ed8!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .btn.danger{background:#fff0f0!important;border:1px solid #fac4c4!important;color:#a71e2e!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-connection-badge.healthy{color:#087947!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-connection-badge.invalid{color:#b42333!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-key-warning{background:#fff4ef!important;border-color:#efc9b5!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-key-warning p{color:#674e42!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-key-entry input{background:#fff!important;color:#1c2d45!important;border-color:#bbcade!important}
html[data-scos-theme="professional_light"] body[data-scos-view="fathom"] #view .fathom-transcript-box{background:#f6f9fd!important;color:#263247!important;border-color:#dce5ef!important}
@media(max-width:600px){.fathom-key-controls input{flex-basis:100%;max-width:none}.fathom-key-controls button{width:100%}}

/* v4.6.3: force theme-token surfaces so dark mode never falls back to white cards. */
html[data-scos-theme="nebula_dark"] .fathom-intake-card{background:var(--panel,#171328)!important;color:var(--text,#f5f1ff)!important;border-color:var(--line,#463564)!important}
html[data-scos-theme="nebula_dark"] .fathom-intake-stats>span{background:color-mix(in srgb,var(--panel2,#1d1635) 82%, transparent)!important;border-color:var(--line,#463564)!important;color:var(--text,#f5f1ff)!important}
html[data-scos-theme="nebula_dark"] .fathom-intake-count,html[data-scos-theme="nebula_dark"] .fathom-intake-pill{background:rgba(182,140,255,.16)!important;color:#efe5ff!important;border:1px solid rgba(182,140,255,.22)!important}
html[data-scos-theme="nebula_dark"] .fathom-intake-scroll table,html[data-scos-theme="nebula_dark"] .fathom-intake-scroll th,html[data-scos-theme="nebula_dark"] .fathom-intake-scroll td{background:transparent!important;color:var(--text,#f5f1ff)!important}
html[data-scos-theme="nebula_dark"] .fathom-intake-connected{color:#7fe0ae!important}
html[data-scos-theme="nebula_dark"] .fathom-intake-disconnected{color:#f0c07c!important}
