/* System fonts and native controls keep this archive small and comfortable. */
:root { color-scheme: light; --bg: #f6f7f9; --panel: #fff; --sidebar: #fafbfc; --text: #202631; --muted: #667080; --line: #e7eaf0; --field: #eef0f4; --blue: #006fe6; --selected: #e8f2ff; --bubble: #e9ecf1; --shadow: 0 16px 50px #172b4d18; --mark: #ffe49b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #15171c; --panel: #1b1e25; --sidebar: #171a20; --text: #edf0f6; --muted: #959eae; --line: #2b303a; --field: #252a34; --blue: #479cff; --selected: #1e3450; --bubble: #2c323d; --shadow: 0 16px 50px #0005; --mark: #73591a; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #15171c; --panel: #1b1e25; --sidebar: #171a20; --text: #edf0f6; --muted: #959eae; --line: #2b303a; --field: #252a34; --blue: #479cff; --selected: #1e3450; --bubble: #2c323d; --shadow: 0 16px 50px #0005; --mark: #73591a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { border: 0; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.archive-shell { height: 100dvh; display: grid; grid-template-columns: 368px minmax(0, 1fr); overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar-header { height: 88px; padding: 23px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 650; font-size: 16px; letter-spacing: -.4px; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #087bfa; color: white; }
.brand-icon svg { width: 22px; height: 22px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.7px; }
.read-only-badge { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.read-only-badge svg { width: 12px; height: 12px; }
.search-section { padding: 16px 24px 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-heading h1 { font-size: 23px; font-weight: 700; letter-spacing: -.8px; margin: 0; }
.total-count { background: var(--field); color: var(--muted); padding: 4px 8px; border-radius: 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.search-field { display: flex; align-items: center; gap: 8px; border-radius: 11px; background: var(--field); padding: 8px 10px; }
.search-field > svg { width: 17px; height: 17px; color: var(--muted); }
.search-field input { background: transparent; border: 0; outline-offset: 1px; min-width: 0; width: 100%; height: 26px; font-size: 13px; }
input::placeholder { color: var(--muted); opacity: 1; }
.search-submit { background: var(--panel); color: var(--muted); border-radius: 6px; padding: 3px; flex-shrink: 0; }
.search-submit svg { width: 16px; height: 16px; }
.filters { margin-top: 9px; }
.filters summary { list-style: none; display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 9px 0; font-size: 11px; }
summary::-webkit-details-marker { display: none; }
.filters summary svg { width: 15px; height: 15px; }
.filters summary span { margin-left: auto; opacity: .75; font-size: 10px; }
.filters[open] summary { color: var(--blue); }
.filter-fields { padding: 8px 0 12px; display: grid; gap: 7px; }
.filter-fields label { color: var(--muted); font-size: 11px; }
.filter-fields select, .filter-fields input[type="date"] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 7px 5px; font-size: 12px; min-width: 0; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-fields label { display: block; margin: 4px 0 7px; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 3px; }
.small-button { background: var(--blue); color: white; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.list-caption { display: flex; justify-content: space-between; padding: 9px 24px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .15px; }
.conversation-list { min-height: 0; overflow: auto; flex: 1; overscroll-behavior: contain; }
.conversation-card { display: flex; gap: 12px; padding: 19px 20px 19px 24px; color: var(--text); position: relative; border-bottom: 1px solid var(--line); }
.conversation-card:hover { background: var(--field); }
.conversation-card.is-selected { background: var(--selected); }
.conversation-card.is-selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue); }
.avatar { width: 39px; height: 39px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: .2px; background: #dfebfc; color: #32649b; }
.avatar-1 { background: #e3e2fa; color: #6d5dab; }.avatar-2 { background: #dceee6; color: #387d64; }.avatar-3 { background: #fae7d9; color: #a36b41; }.avatar-4 { background: #f3dfeb; color: #a55c87; }
.conversation-summary { flex: 1; min-width: 0; }
.conversation-topline { display: flex; align-items: baseline; gap: 8px; }
.conversation-topline strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; flex: 1; }
.conversation-topline time { flex-shrink: 0; font-size: 9px; color: var(--muted); }
.conversation-contact { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; margin-top: 5px; }
.conversation-preview { margin-top: 7px; font-size: 12px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.list-empty { padding: 45px 24px; text-align: center; color: var(--muted); line-height: 1.7; }
.list-empty svg { width: 28px; height: 28px; }.list-empty h2 { font-size: 14px; color: var(--text); }.list-empty p { font-size: 12px; }
.conversation-page { display: block; }.load-more, .list-end { display: block; text-align: center; padding: 20px; font-size: 11px; color: var(--muted); }.list-end { margin: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); background: transparent; flex-shrink: 0; }
.icon-button:hover { background: var(--field); color: var(--blue); }.icon-button.disabled { opacity: .3; }
.icon-button svg { width: 18px; height: 18px; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 12px 22px 14px; }
.account-line { display: flex; align-items: center; gap: 9px; }.account-line form { margin-left: auto; }
.account-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--field); font-size: 9px; font-weight: 600; }
.account-email { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appearance-line { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 8px 0 0; }
.appearance-line select, .mobile-theme select { background: var(--field); border: 0; border-radius: 5px; padding: 4px 7px; font-size: 10px; }
.conversation-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
.welcome-pane { margin: auto; padding: 50px; text-align: center; }
.welcome-symbol { display: grid; place-items: center; margin: 0 auto 32px; width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 25px; color: var(--blue); background: var(--sidebar); }
.welcome-symbol svg { width: 32px; height: 32px; stroke-width: 1.2; }
.eyebrow { font-size: 9px; letter-spacing: 2px; font-weight: 600; color: var(--muted); }
.welcome-pane h2 { font-size: clamp(30px, 3vw, 43px); line-height: 1.15; letter-spacing: -1.8px; font-weight: 650; margin: 18px 0; }
.welcome-pane > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 13px; }
.archive-facts { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 10px; }
.archive-facts strong { color: var(--text); font-size: 16px; margin-right: 7px; font-weight: 600; }.archive-facts svg { width: 12px; height: 12px; margin-right: 4px; }
.welcome-pane .coverage-note { margin-top: 28px; font-size: 10px !important; }
.conversation-header { min-height: 88px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; padding: 20px 36px; position: relative; z-index: 2; }
.conversation-heading { min-width: 0; flex: 1; }.conversation-heading h1 { font-size: 16px; letter-spacing: -.3px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }.conversation-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; overflow-wrap: anywhere; }
.conversation-details { margin-left: auto; }.conversation-details summary { list-style: none; }
.details-popover { position: absolute; top: 75px; right: 24px; width: min(340px, calc(100vw - 32px)); max-height: calc(100dvh - 150px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 23px; box-shadow: var(--shadow); }
.details-popover h2 { font-size: 14px; margin: 0 0 20px; }.details-popover dl { margin: 0; }.details-popover dt { color: var(--muted); font-size: 10px; margin-top: 15px; }.details-popover dd { margin: 4px 0 0; font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; }
.transcript-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }.transcript-content { max-width: 860px; padding: 36px 45px 20px; margin: 0 auto; }
.conversation-date { text-align: center; font-size: 17px; line-height: 1.7; }.conversation-date strong { font-weight: 750; }.conversation-date > time { display: block; font-size: 15px; font-weight: 650; }.conversation-agent { display: block; font-size: 15px; font-weight: 650; }
.transcript-explanation { text-align: center; color: var(--muted); font-size: 9px; margin: 12px 0 36px; }
.transcript-sections { display: flex; flex-direction: column; gap: 18px; }.transcript-section { max-width: 80%; align-self: flex-start; min-width: 0; }.sender-label { display: block; font-size: 9px; color: var(--muted); margin: 0 12px 6px; }
.transcript-bubble { background: var(--bubble); border-radius: 18px 18px 18px 5px; padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 13px; }
.section-agent { align-self: flex-end; }.section-agent .sender-label { text-align: right; }.section-agent .transcript-bubble { background: #0871e6; color: #fff; border-radius: 18px 18px 5px 18px; }.section-agent mark { background: #ffe49b; color: #202631; }
.section-context, .section-note { align-self: center; max-width: 90%; text-align: center; }.section-context .transcript-bubble, .section-note .transcript-bubble { background: transparent; color: var(--muted); font-size: 11px; padding: 4px 10px; }.section-context .sender-label, .section-note .sender-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.section-context { align-self: stretch; max-width: 100%; text-align: left; }.transcript-bubble a, .original-transcript a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.original-transcript { margin: 36px 0 20px; border-top: 1px solid var(--line); padding-top: 18px; }.original-transcript summary { color: var(--muted); font-size: 11px; text-align: center; list-style: none; }.original-transcript pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-top: 18px; }
.archive-end { color: var(--muted); text-align: center; font-size: 9px; margin: 30px 0 10px; line-height: 1.6; }.archive-end svg { width: 11px; height: 11px; margin-right: 4px; }
.blank-transcript { padding: 65px 10px; text-align: center; color: var(--muted); }.blank-transcript svg { width: 32px; height: 32px; }.blank-transcript h2 { color: var(--text); font-size: 16px; }.blank-transcript p { font-size: 12px; line-height: 1.8; }
.conversation-footer { border-top: 1px solid var(--line); min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 10px; padding: 9px 18px; }.conversation-footer > svg { width: 13px; height: 13px; }.mobile-back, .mobile-theme { display: none; }
.login-page { min-height: 100dvh; padding: 35px 50px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 42%, var(--panel) 0, var(--bg) 65%); }
.login-brand { font-size: 12px; font-weight: 750; letter-spacing: 2px; }.login-brand span { display: inline-block; padding-left: 18px; margin-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: 1.5px; }
.login-card { text-align: center; margin: auto; padding: 65px 20px; width: min(100%, 520px); }.login-symbol { width: 72px; height: 72px; background: #087bfa; color: white; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 35px; box-shadow: 0 12px 35px #087bfa20; }.login-symbol svg { width: 39px; height: 39px; stroke-width: 1.4; }.login-card .eyebrow { font-size: 8px; letter-spacing: 1.5px; }.login-card h1 { font-size: clamp(33px, 5vw, 45px); letter-spacing: -1.8px; line-height: 1.13; font-weight: 650; margin: 22px 0; }.login-description { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 20px 0 34px; }
.google-button { display: inline-block; background: transparent; padding: 0; border: 0; border-radius: 4px; line-height: 0; }
.google-button img { display: block; width: auto; height: 40px; }.google-button .google-signin-dark { display: none; }
:root[data-theme="dark"] .google-signin-light { display: none; }:root[data-theme="dark"] .google-button .google-signin-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .google-signin-light { display: none; }:root:not([data-theme="light"]) .google-button .google-signin-dark { display: block; } }
.login-security { color: var(--muted); font-size: 9px; margin-top: 19px; }.login-security svg { width: 11px; height: 11px; margin-right: 4px; }.login-footer { display: flex; justify-content: flex-end; color: var(--muted); font-size: 10px; }.notice { font-size: 12px; line-height: 1.7; background: var(--field); padding: 15px; border-radius: 9px; }.notice-alert { color: #b84949; }
@media (min-width: 1500px) { .archive-shell { grid-template-columns: 400px minmax(0, 1fr); }.conversation-card { padding-top: 22px; padding-bottom: 22px; } }
@media (max-width: 1000px) and (min-width: 701px) { .archive-shell { grid-template-columns: 320px minmax(0, 1fr); }.sidebar-header, .search-section { padding-left: 18px; padding-right: 18px; }.read-only-badge { font-size: 0; }.transcript-content { padding-left: 25px; padding-right: 25px; }.conversation-header { padding-left: 25px; padding-right: 25px; }.transcript-section { max-width: 90%; } }
@media (max-width: 700px) {
  .archive-shell { display: block; }.sidebar, .conversation-pane { height: 100dvh; }.archive-shell[data-selected="false"] .conversation-pane, .archive-shell[data-selected="true"] .sidebar { display: none; }.sidebar { border-right: 0; }.sidebar-header { height: 76px; padding-top: max(18px, env(safe-area-inset-top)); }.search-section { padding-top: 12px; }.conversation-card { padding-top: 18px; padding-bottom: 18px; }.conversation-topline strong { font-size: 14px; }.conversation-topline time { font-size: 10px; }.conversation-preview { font-size: 13px; }.sidebar-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }.account-email { font-size: 11px; }.appearance-line { font-size: 11px; }.conversation-header { min-height: 78px; padding: max(17px, env(safe-area-inset-top)) 15px 17px 7px; gap: 8px; }.conversation-header > .avatar { width: 34px; height: 34px; font-size: 10px; }.conversation-heading h1 { font-size: 14px; }.conversation-heading p { font-size: 10px; }.mobile-back { display: inline-flex; color: var(--blue); }.transcript-content { padding: 25px 20px 15px; }.transcript-section { max-width: 88%; }.transcript-bubble { font-size: 14px; }.transcript-explanation { font-size: 8px; line-height: 1.7; margin-bottom: 30px; }.section-context, .section-note { max-width: 98%; }.conversation-footer { font-size: 9px; justify-content: flex-start; padding-bottom: max(10px, env(safe-area-inset-bottom)); }.mobile-theme { display: block; margin-left: auto; }.details-popover { right: 12px; top: 69px; }.login-page { padding: 26px 25px; }.login-card { padding-left: 0; padding-right: 0; }.login-brand span { font-size: 7px; margin-left: 10px; padding-left: 10px; }.login-footer { font-size: 9px; }.login-security { font-size: 9px; }.eyebrow { line-height: 1.7; }
}

.agent-filter { display: flex; align-items: center; gap: 10px; margin-top: 14px; }.agent-filter label { color: var(--muted); font-size: 12px; }.agent-filter select { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 8px; font-size: 12px; }.conversation-frame { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
