:root { color-scheme: light; --bg: #f7f9fc; --panel: #fff; --line: #e5ebf3; --text: #121c31; --muted: #7487a5; --accent: #3268ff; --accent-2: #6550ff; --radius: 24px; font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 95% 0%, #edf2ff 0%, transparent 40%), radial-gradient(ellipse at 8% 0%, #f5f1fc 0%, transparent 32%), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #abbbff; outline-offset: 3px; }
.is-hidden { display: none !important; }
.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; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 350; line-height: 1.2; letter-spacing: -.035em; }
h1 strong { font-weight: 650; }
h2 { margin-bottom: 7px; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0 0 12px; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.shell { width: min(1510px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: .06em; }
.brand b { color: var(--accent-2); font-weight: 400; font-size: 15px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid white; outline: 1px solid #c5c1ec; background: linear-gradient(135deg, #c8a0c1, #6961bb); color: white; font-size: 15px; font-weight: 400; box-shadow: 0 3px 12px #cfc6e8; }
.enterprise { display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .12em; color: #526889; border: 1px solid #e1e8f5; border-radius: 20px; background: #f0f4fb; padding: 5px 8px; }
.enterprise i { width: 5px; height: 5px; background: #17bd92; border-radius: 50%; }
.lead { margin: 5px 0 0 46px; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status-pill { border: 1px solid #dcebe5; background: #f4fcf8; color: #348668; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.main-nav { display: flex; gap: 6px; margin: 22px 0 0; padding: 5px; width: fit-content; border: 1px solid var(--line); background: #ffffffb3; border-radius: 14px; }
.nav-button { padding: 10px 18px; border-radius: 10px; border: 0; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
.nav-button.active { color: var(--accent-2); background: #f0efff; }
.nav-button:hover:not(.active) { color: var(--text); background: #f6f8fc; }
.page-heading { text-align: center; padding: 44px 0 36px; }
.page-heading p:last-child { margin: 0; font-size: 16px; }
.analysis-heading { padding: 34px 0; }
.panel, .control-panel, .metric, .reader, .download { border: 1px solid var(--line); background: #ffffffed; border-radius: var(--radius); box-shadow: 0 2px 3px #1b345a06; }
.report-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.report-sidebar { overflow: hidden; position: sticky; top: 20px; }
.section-title { padding: 22px 24px 16px; border-bottom: 1px solid #f0f3f8; }
.section-title h2 { font-size: 17px; }
.section-title p { margin: 0; font-size: 12px; }
.report-filters { padding: 22px 24px; display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #455775; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #dde5f0; background: #fcfdff; color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 14px; }
select { cursor: pointer; }
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #96a5bc; }
.field-hint { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; }
.primary { border: 0; background: linear-gradient(115deg, #3767ff, #6450ff); color: white; border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 3px 7px #425dff15; }
.primary:hover:not(:disabled) { filter: brightness(1.05); }
.secondary, .ghost { border: 1px solid #dfe6f1; color: #526582; background: white; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 600; }
.secondary:hover:not(:disabled), .ghost:hover:not(:disabled) { background: #f6f8fe; }
.ghost { padding: 8px 12px; }
.compact { padding: 10px 12px; }
.report-content { min-width: 0; }
.report-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.report-meta .eyebrow { margin-bottom: 6px; }
.report-meta h2 { margin-bottom: 0; font-size: 24px; }
.report-meta > p { margin: 0; text-align: right; font-size: 12px; }
.report-section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin: 0; font-size: 12px; }
.section-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ecf0fb; background: #f6f9ff; color: var(--accent); border-radius: 14px; font-size: 25px; }
.section-icon.violet { color: var(--accent-2); background: #f8f6ff; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-metric { background: radial-gradient(ellipse at 100% 0%, #f5f3ff 0%, transparent 60%), white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-height: 135px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; box-shadow: 0 2px 3px #1b345a06; }
.report-metric > span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.report-metric strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.report-metric strong.unknown { font-size: 14px; color: #8290a9; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.report-metric small { font-size: 11px; color: #8a9ab2; margin-top: -5px; line-height: 1.45; }
.report-table { margin-top: 16px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.table-wrap { overflow: auto; max-height: 58vh; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; background: #f8faff; color: #7586a3; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
th, td { border-bottom: 1px solid #edf1f7; padding: 14px 16px; text-align: left; vertical-align: top; max-width: 320px; }
td { color: #425370; line-height: 1.5; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcff; }
.report-table th { white-space: nowrap; }
.unknown-cell { color: #8a97af; font-size: 11px; }
.cell-id { display: block; color: #91a0b7; font-size: 11px; margin-top: 4px; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 0; text-align: left; font-size: inherit; font-weight: 600; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.dialogs-section .section-heading { justify-content: space-between; }
.search-label { width: 235px; }
.dialog-search-fields { display: flex; gap: 12px; flex-wrap: wrap; min-width: 0; }
.dialog-search-fields label { width: 235px; max-width: 100%; }
.dialog-phone { display: block; margin-top: 5px; font-size: 13px; color: #455775; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#dialogPhone[aria-invalid="true"] { border-color: #d8808b; }
@media (max-width: 600px) { .dialog-search-fields, .dialog-search-fields label { width: 100%; } }
.status-context { font-size: 11px; margin: -4px 0 12px; }
.badge { display: inline-block; border-radius: 6px; padding: 3px 7px; margin: 2px 5px 2px 0; background: #f0f3f9; color: #667893; font-size: 10px; white-space: nowrap; }
.badge-error { background: #fff0f1; color: #b8626e; }
.badge-warning { background: #fff6e8; color: #a57c35; }
.badge-neutral { background: #eef2f7; color: #60718b; }
.badge-ai { background: #f0edff; color: #7865c1; }
.notice { border: 1px solid #dfe6ff; background: #f1f4ff; border-radius: 14px; padding: 14px 18px; font-size: 13px; color: #586ea2; margin-bottom: 18px; line-height: 1.55; }
.notice.error { background: #fff3f4; border-color: #f1d8dd; color: #a75766; }
.notice.success { background: #f0faf5; border-color: #d3ede0; color: #428568; }
.empty-state { min-height: 300px; padding: 46px 30px; text-align: center; display: grid; justify-items: center; align-content: center; }
.empty-state h2 { font-size: 22px; }
.empty-state p { max-width: 450px; margin-bottom: 0; font-size: 14px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; background: #f5f5ff; color: #8e83df; border-radius: 18px; font-size: 34px; margin-bottom: 20px; }
.history-heading { border-top: 1px solid #f0f3f8; }
.report-history { max-height: 480px; overflow: auto; padding: 10px 12px 16px; }
.history-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; border-radius: 10px; padding: 12px; text-align: left; color: #536887; }
.history-item span { font-weight: 600; font-size: 13px; }
.history-item small { display: block; color: #91a0b8; font-weight: 400; font-size: 10px; margin-top: 3px; }
.history-item.active { background: #f1efff; color: #6550df; }
.history-item:hover { background: #f7f8fd; }
.history-item.active:hover { background: #ece9ff; }
.history-empty { padding: 12px; margin: 0; font-size: 12px; }
.data-notes { border-top: 1px solid var(--line); padding: 18px 0 0; }
.data-notes p { font-size: 11px; margin-bottom: 7px; }
.data-notes strong { color: #72819b; }
.data-summary { color: #8a98af; }
.calculation-details summary { width: fit-content; color: #6b7d9d; font-size: 12px; cursor: pointer; padding: 4px 0; }
.calculation-details summary:focus-visible { outline: 3px solid #abbbff; outline-offset: 3px; border-radius: 4px; }
.calculation-details[open] summary { margin-bottom: 12px; }
.calculation-details > div { max-width: 780px; }
.entry-explanation { margin: 12px 0 0; font-size: 11px; }
.entry-cell { min-width: 210px; }
.entry-preview { max-width: 255px; margin-bottom: 7px; color: #536782; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.dialog-modal .modal-header, .dialog-modal .link-copy-notice { flex-shrink: 0; }
.dialog-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dialog-modal .dialog-messages { flex: none; min-height: auto; max-height: none; overflow: visible; padding-top: 16px; }
.dialog-context { padding: 0 26px; border-bottom: 1px solid var(--line); background: #ffffffb0; }
.dialog-entry { padding: 0; border: 0; background: transparent; max-height: none; overflow: visible; }
.dialog-entry > summary { padding: 14px 0 11px; color: #50617d; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.6; }
.dialog-entry > summary::marker, .dialog-source-info > summary::marker { color: #909bb0; }
.dialog-entry > summary:focus-visible, .dialog-source-info > summary:focus-visible { outline: 3px solid #abbbff; outline-offset: 3px; border-radius: 4px; }
.entry-summary-date { display: inline-block; margin: 0 7px; color: #6d7c96; font-size: 12px; font-weight: 400; }
.entry-summary-label { color: #435571; }
.entry-detail-body { padding: 5px 0 18px; }
.entry-campaign { display: inline-block; margin-left: 6px; color: #706397; font-size: 12px; }
.entry-message-meta { margin: 7px 0 0; color: #71819a; font-size: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.entry-full-text { margin-top: 12px; color: #3f5271; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-comparison-label { margin: 18px 0 5px; color: #516782; font-size: 12px; font-weight: 500; }
.entry-comparison-reason { margin: 8px 0 0; color: #61758f; font-size: 13px; line-height: 1.6; }
.entry-coverage-note { margin: 10px 0 0; color: #75829a; font-size: 12px; line-height: 1.6; }
.dialog-source-info > summary { padding: 7px 0 13px; color: #74839b; font-size: 12px; cursor: pointer; line-height: 1.6; }
.dialog-source-details { padding: 0 0 10px; }
.dialog-source-details p { margin: 0 0 9px; color: #6c7e98; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dialog-day-title { margin: 0; padding: 22px 26px 0; color: #465977; font-size: 16px; font-weight: 600; }
.section-heading p.entry-comparison-unconfigured { margin-top: 11px; max-width: 800px; padding: 10px 13px; border-left: 3px solid #b6c4e3; border-radius: 0 8px 8px 0; background: #f0f4fa; color: #546a89; font-size: 14px; line-height: 1.6; }
.settings-body { min-height: 0; padding: 24px 26px; overflow: auto; }
.settings-explanation { margin-bottom: 20px; font-size: 12px; }
.entry-template-form { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.entry-template-form textarea { min-height: 100px; }
.entry-template-form .primary { justify-self: start; }
.templates-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 22px 0 14px; }
.templates-list-heading h3 { margin: 0; font-size: 15px; font-weight: 600; }
.templates-list-heading p { margin: 0; font-size: 11px; }
.entry-templates-list { display: grid; gap: 12px; }
.entry-template-item { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.entry-template-content { min-width: 0; }
.entry-template-content h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.entry-template-copy { max-height: 110px; overflow: auto; color: #7b8ba5; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.template-delete { flex-shrink: 0; color: #b77b88; font-size: 11px; }
.templates-empty { margin: 0; font-size: 12px; }
.schedule-status { border-top: 1px solid #edf0f7; padding-top: 14px; color: #8796ad; font-size: 11px; line-height: 1.6; }
.schedule-status p { margin: 0 0 5px; font-size: 11px; color: inherit; }
.schedule-status small { color: #a0acc0; font-size: 10px; }
.schedule-warning { color: #ab8650; }
.entry-availability { margin: 11px 0 0; font-size: 11px; color: #8193ac; }
.dialog-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 36px; gap: 12px; align-items: end; margin-top: 18px; }
.dialog-filters label { font-size: 10px; gap: 6px; }
.dialog-filters select { padding: 9px 10px; font-size: 11px; }
.dialog-filters .secondary { padding: 10px 12px; font-size: 11px; }
.dialog-filters .dialog-filter-reset { border-radius: 8px; background: white; }
.dialog-filter-reset .review-icon { width: 17px; height: 17px; }
.dialog-review-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 108px; min-height: 36px; padding: 7px 10px; border: 1px solid #d4def2; border-radius: 8px; background: #f5f8ff; color: #315a9a; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
.dialog-review-button .review-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.dialog-review-button:hover { background: #eaf0fd; border-color: #aebfdf; }
.dialog-checked .dialog-review-button { border-color: #cce5d7; background: #f3faf6; color: #30684c; }
.dialog-checked .dialog-review-button:hover { border-color: #9fc8af; background: #e8f5ed; }
.dialog-filter-note { margin: 12px 0 0; font-size: 11px; }
.dialog-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 3px 0; }
.dialog-pagination > p { margin: 0; font-size: 11px; }
.pagination-controls { display: flex; align-items: center; gap: 8px; }
.pagination-controls select { width: 84px; padding: 8px; font-size: 11px; }
.pagination-controls .secondary { padding: 8px 10px; font-size: 11px; }
#dialogPageLabel { min-width: 38px; text-align: center; color: #8493ac; font-size: 11px; white-space: nowrap; }
.search-match { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; color: #807ba4; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.modal-actions .secondary { padding: 8px 11px; font-size: 11px; }
.link-copy-notice { flex-shrink: 0; max-height: 140px; overflow: auto; padding: 12px 26px; background: #f4f8ff; border-bottom: 1px solid var(--line); color: #6c82a5; font-size: 11px; line-height: 1.55; }
.link-copy-notice p { margin: 0 0 8px; font-size: 11px; }
.link-copy-notice input { font-size: 11px; padding: 8px; }
.dialog-modal { width: min(760px, calc(100% - 32px)); max-height: min(860px, calc(100dvh - 48px)); border: 1px solid #dfe6f1; border-radius: 24px; padding: 0; background: #f8faff; box-shadow: 0 24px 90px #24396033; color: var(--text); }
.dialog-modal::backdrop { background: #1b294656; backdrop-filter: blur(5px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: white; border-bottom: 1px solid var(--line); }
.modal-header .eyebrow { margin-bottom: 7px; }
.modal-header h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; font-size: 24px; line-height: 1; border-radius: 50%; background: #f5f7fc; color: #71839e; border: 1px solid var(--line); }
.modal-meta { padding: 15px 26px 8px; font-size: 13px; color: #617591; background: #ffffffa8; line-height: 1.6; }
.dialog-messages { padding: 24px 26px; max-height: calc(100dvh - 255px); overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.message { width: 87%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: white; box-shadow: 0 2px 3px #1b345a04; }
.message.outgoing { align-self: flex-end; background: #f1f0ff; border-color: #e3e0ff; border-radius: 16px 16px 4px 16px; }
.message-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #73839d; font-size: 12px; }
.message-head strong { color: #526c8d; font-size: 12px; }
.message-text { color: #384c6c; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.message-file { display: grid; gap: 7px; margin-top: 8px; min-width: 0; }
.message-file-preview { display: block; width: fit-content; max-width: 100%; }
.message-file-preview img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; object-fit: contain; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; }
.message-file-link { color: #315a9a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.message-file audio, .message-file video { width: 100%; max-width: 420px; max-height: 260px; }
.message-file-transcript { font-size: 12px; color: #526582; }
.message-file-transcript summary { cursor: pointer; }
.message-error { margin-top: 10px; font-size: 11px; color: #b35c6a; }
.modal-state { text-align: center; padding: 30px 10px; margin: 0; font-size: 13px; }
.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.control-panel { padding: 24px; }
.panel-head h2 { font-size: 19px; }
.panel-head p { margin-bottom: 24px; font-size: 12px; }
.form-grid { display: grid; gap: 17px; }
.check { display: flex; align-items: center; gap: 10px; color: #73839e; font-weight: 400; min-height: 28px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.safety-note { margin: 0; font-size: 12px; }
input.field-error { border-color: #df98a4; outline: 2px solid #f4dbe0; }
.form-error { margin: 0; border: 1px solid #f0d8df; border-radius: 10px; padding: 10px; color: #b36876; background: #fff6f8; font-size: 12px; }
.main-stack { display: grid; gap: 20px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 20px; min-height: 135px; display: grid; align-content: space-between; background: radial-gradient(ellipse at 100% 0%, #f7f4ff 0%, transparent 70%), white; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { margin-top: 14px; font-size: clamp(18px, 2vw, 27px); overflow-wrap: anywhere; font-weight: 600; }
.metric em { margin-top: 6px; color: #99a5b9; font-size: 11px; font-style: normal; overflow-wrap: anywhere; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.download { padding: 20px; text-decoration: none; color: var(--text); display: grid; gap: 8px; transition: border-color .15s; }
.download:hover { border-color: #c0c9ef; }
.download strong { font-size: 14px; font-weight: 600; }
.download span, .download em { color: var(--muted); font-size: 11px; font-style: normal; }
.progress-panel { border: 1px solid var(--line); background: white; border-radius: 20px; padding: 20px; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 12px; }
.progress-head span { color: var(--muted); }
.progress-head strong { font-weight: 600; overflow-wrap: anywhere; }
.progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.progress-steps li { border: 1px solid #edf0f7; background: #fafbff; color: #96a2b7; border-radius: 9px; padding: 10px 5px; text-align: center; font-size: 11px; }
.progress-steps li.done { color: #5d8e7d; background: #f4fbf8; border-color: #e4f1eb; }
.progress-steps li.active { color: var(--accent-2); background: #f1efff; border-color: #e0dcff; }
.progress-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.progress-stats span { color: var(--muted); font-size: 11px; }
.run-strip { border: 1px solid var(--line); background: white; border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, .5fr); overflow: hidden; }
.run-strip div { padding: 18px 20px; }
.run-strip div + div { border-left: 1px solid var(--line); }
.run-strip span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.run-strip strong { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.run-strip em { display: block; color: #95a2b8; font-size: 11px; font-style: normal; margin-top: 5px; }
.reader { margin-top: 22px; overflow: hidden; }
.reader-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.reader-head p { margin: 0; font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.toolbar input { width: min(235px, 45vw); }
.tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: #fafbff; border-radius: 10px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.tab.active { color: var(--accent-2); background: #efedff; }
td[data-badge="Готово"], td[data-badge="Закрывать"], td[data-badge="Горячий"] { color: #408a70; font-weight: 600; }
td[data-badge="Ждет AI"], td[data-badge="Догреть"], td[data-badge="Теплый"] { color: #b28b45; font-weight: 600; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 20px; margin-top: 22px; }
.export-list { display: grid; }
.export-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; border-bottom: 1px solid #f0f3f8; }
.export-row:last-child { border-bottom: 0; }
.export-row strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; overflow-wrap: anywhere; }
.export-row span { display: block; color: #98a5b9; font-size: 10px; overflow-wrap: anywhere; }
.export-row a { color: var(--accent); background: #f0f4ff; border-radius: 8px; padding: 8px 11px; font-size: 11px; text-decoration: none; font-weight: 600; }
pre { padding: 20px 24px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #7a8ca7; max-height: 360px; overflow: auto; font-size: 11px; line-height: 1.6; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(430px, 100%); border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, #f2eeff 0%, transparent 65%), white; border-radius: 28px; padding: 34px; box-shadow: 0 18px 60px #253f6610; }
.auth-card img { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 22px; }
.auth-card h1 { font-size: 29px; font-weight: 600; }
.auth-card > p { font-size: 13px; }
.auth-card .primary { width: 100%; margin-top: 8px; }
.auth-note { margin: 18px 0 0; font-size: 12px; }
@media (min-width: 1440px) { .report-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 30px; } }
@media (max-width: 1100px) { .shell { width: calc(100% - 40px); } .report-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; } .report-filters, .report-sidebar .section-title { padding-left: 20px; padding-right: 20px; } .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-meta { align-items: flex-start; flex-direction: column; gap: 8px; } .report-meta > p { text-align: left; } .layout { grid-template-columns: 300px minmax(0, 1fr); } .cards { grid-template-columns: 1fr; } .metric { min-height: 105px; } .dialogs-section .section-heading { align-items: flex-start; flex-direction: column; } .search-label { width: 100%; } }
@media (max-width: 800px) { .report-layout, .layout, .bottom-grid { grid-template-columns: 1fr; } .report-sidebar { position: static; } .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-filters .field-hint { align-self: center; } .report-history { display: flex; gap: 4px; max-height: none; overflow-x: auto; padding: 12px; } .history-item { width: auto; min-width: 125px; flex-shrink: 0; } .history-item .history-arrow { display: none; } .report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reader-head { align-items: flex-start; flex-direction: column; } .toolbar { width: 100%; justify-content: flex-start; } }
@media (max-width: 540px) { .shell { width: calc(100% - 28px); padding-bottom: 30px; } .topbar { min-height: 86px; gap: 8px; } .brand { gap: 8px; font-size: 14px; } .brand b { font-size: 10px; } .enterprise { display: none; } .brand-mark { width: 28px; height: 28px; } .lead { margin-left: 37px; font-size: 10px; } .status-pill { display: none; } .ghost { padding: 7px 9px; font-size: 11px; } .main-nav { width: 100%; margin-top: 16px; } .nav-button { flex: 1; padding: 10px 5px; font-size: 11px; } .page-heading { padding: 34px 4px 28px; } .page-heading h1 { font-size: 31px; } .page-heading p:last-child { font-size: 13px; } .eyebrow { font-size: 9px; } .report-filters { padding: 18px; gap: 16px; grid-template-columns: 1fr; } .report-filters .field-hint { font-size: 11px; } .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .report-metric { padding: 17px; min-height: 126px; border-radius: 17px; } .report-metric strong { font-size: 26px; } .report-metric strong.unknown { font-size: 12px; } .report-metric > span { font-size: 11px; } .section-heading h2 { font-size: 19px; } .section-icon { width: 38px; height: 38px; border-radius: 12px; } .cards { grid-template-columns: 1fr; } .downloads { grid-template-columns: 1fr; } .form-actions, .run-strip { grid-template-columns: 1fr; } .run-strip div + div { border-top: 1px solid var(--line); border-left: 0; } .progress-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar input, .tabs { width: 100%; } .tabs .tab { flex: 1; } .control-panel, .reader-head { padding: 20px; } th, td { padding: 12px; } .dialog-modal { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 18px; } .modal-header { padding: 18px; } .modal-meta { padding: 13px 18px; } .dialog-messages { padding: 18px; max-height: calc(100dvh - 245px); } .message { width: 94%; padding: 12px; } .message-head { flex-direction: column; gap: 3px; } .auth-card { padding: 26px; } }
@media (max-width: 1200px) { .dialog-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) { .dialog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .dialog-filters .secondary { grid-column: 1 / -1; } .pagination-controls { width: 100%; justify-content: space-between; gap: 5px; } .pagination-controls .secondary { padding: 8px; } .modal-actions { gap: 7px; } .modal-actions .secondary { max-width: 100px; padding: 8px; font-size: 10px; line-height: 1.3; } .link-copy-notice { padding: 12px 18px; } }
/* Daily overview: one surface, a shared metric rail, and two useful work areas. */
.topbar { min-height: 76px; gap: 28px; }
.topbar .lead { display: none; }
.topbar .main-nav { align-self: stretch; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; gap: 26px; }
.topbar .nav-button { border-radius: 0; border-bottom: 2px solid transparent; padding: 24px 0 21px; font-size: 14px; font-weight: 500; }
.topbar .nav-button.active { background: transparent; color: #4e5edc; border-bottom-color: #6563ed; }
.topbar .nav-button:hover:not(.active) { background: transparent; color: #243656; }
.topbar .top-actions { gap: 16px; }
.topbar .ghost { border: 0; background: transparent; font-size: 13px; color: #62738e; }
.reports-view { max-width: 1280px; margin: 0 auto; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 31px 0 25px; }
.report-heading .eyebrow { margin-bottom: 8px; font-size: 10px; color: #6775a6; letter-spacing: .13em; }
.report-heading h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.report-controls { position: relative; display: flex; align-items: center; gap: 14px; }
.report-date-control { width: 157px; flex-shrink: 0; }
.report-date-control input { padding: 10px 11px; font-size: 14px; background: #fff9; border-color: #e1e7f1; }
.report-settings { margin: 0; }
.report-settings > summary { width: fit-content; padding: 11px 0; color: #5d6f8b; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
.report-settings > summary::marker { color: #8b96ac; font-size: 11px; }
.report-settings > summary:focus-visible { outline: 3px solid #abbbff; outline-offset: 4px; border-radius: 4px; }
.report-settings[open] > summary { color: #5759d2; }
.report-settings-body { position: absolute; z-index: 6; right: 0; top: calc(100% + 12px); width: min(700px, calc(100vw - 64px)); max-height: min(560px, calc(100dvh - 220px)); overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 26px; background: white; box-shadow: 0 16px 60px #22345519; border-radius: 18px; }
.report-settings-body h2 { font-size: 17px; margin-bottom: 12px; }
.report-settings-actions .field-hint { max-width: 430px; color: #677b98; }
.settings-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.settings-buttons > button { font-size: 13px; }
.report-settings-history { border-left: 1px solid #e8edf4; padding-left: 24px; min-width: 0; }
.report-settings .report-history { max-height: 265px; padding: 0; display: grid; overflow: auto; }
.report-settings .history-item { width: 100%; min-width: 0; }
.report-generated { margin: 10px 0 0; font-size: 12px; color: #7888a1; line-height: 1.5; }
.executive-surface { background: white; border: 1px solid #e7ecf4; border-radius: 25px; box-shadow: 0 4px 26px #31466a04; overflow: hidden; }
.overview-band { padding: 34px 32px 22px; background: radial-gradient(ellipse at 88% 0%, #f3f4ff 0%, transparent 61%), #fff; }
.executive-metrics { display: grid; grid-template-columns: minmax(0, 1.42fr) repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.executive-metric { display: flex; align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 12px; min-width: 0; border: 0; border-left: 1px solid #e4e9f4; border-radius: 0; padding: 10px 24px 12px; background: transparent; color: #142540; text-align: left; box-shadow: none; transition: background .15s, color .15s; }
.executive-metric:hover:not(:disabled) { background: #edf0fa70; }
.executive-metric:disabled { opacity: 1; cursor: default; }
.executive-metric-label { min-height: 39px; color: #556984; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.executive-metric strong { font-size: 43px; font-weight: 550; line-height: 1.12; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.executive-metric strong.unknown { color: #697a94; font-size: 15px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.executive-metric-footer { margin-top: auto; padding-top: 8px; width: 100%; }
.executive-metric-note { color: #65758f; font-size: 14px; font-weight: 400; line-height: 1.5; }
.metric-total { border-left: 0; padding-left: 3px; gap: 10px; }
.metric-total .executive-metric-label { min-height: 0; }
.metric-total strong { font-size: 72px; font-weight: 550; }
.metric-total .executive-metric-note { color: #61718e; }
.metric-ai strong { color: #4e62dd; }
.metric-manager strong { color: #6554bf; }
.metric-errors.has-errors strong { color: #b36172; }
.overview-context { margin: 21px 3px 0; color: #7886a0; font-size: 12px; line-height: 1.5; }
.executive-workspace { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); border-top: 1px solid #e7ecf4; }
.attention-panel, .first-messages-panel { min-width: 0; padding: 28px 32px 26px; }
.attention-heading, .requests-heading { display: block; margin-bottom: 18px; }
.attention-heading h2, .requests-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 7px; }
.attention-heading p, .requests-heading p { margin: 0; color: #6b7c96; font-size: 14px; line-height: 1.5; }
.attention-list { display: grid; }
.attention-item { display: flex; align-items: center; gap: 14px; width: calc(100% + 20px); margin: 0 -10px; padding: 15px 10px; border: 0; border-bottom: 1px solid #edf0f5; border-radius: 0; color: #243754; background: transparent; text-align: left; transition: background .15s; }
.attention-item:hover { background: #f5f7fc; }
.attention-item:last-child { border-bottom: 0; }
.attention-info { min-width: 0; flex: 1; }
.attention-info strong { display: block; font-size: 15px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.attention-channel { display: block; margin-top: 5px; color: #6c7f9d; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.attention-error-count { color: #a75769; font-size: 14px; white-space: nowrap; }
.row-open-label { flex-shrink: 0; color: #5266c7; font-size: 14px; }
.attention-item:hover .row-open-label { text-decoration: underline; text-underline-offset: 3px; }
.attention-empty { margin: 24px 0 30px; max-width: 390px; color: #687c98; font-size: 15px; line-height: 1.7; }
.attention-footer { margin-top: 19px; }
.attention-footer .text-button, .requests-footer .text-button { white-space: normal; font-size: 14px; font-weight: 500; }
.attention-note { margin: 11px 0 0; color: #7585a0; font-size: 12px; line-height: 1.6; }
.first-messages-panel { display: block; border-left: 1px solid #e7ecf4; background: #fafbff80; margin: 0; }
.entry-requests-list { display: grid; }
.entry-request { width: calc(100% + 20px); margin: 0 -10px; display: block; padding: 17px 10px; border: 0; border-bottom: 1px solid #e8edf5; border-radius: 0; background: transparent; text-align: left; transition: background .15s; }
.entry-request:first-child { padding-top: 7px; }
.entry-request:last-child { border-bottom: 0; }
.entry-request:hover { background: #f0f2fc; }
.entry-request-text { display: block; margin: 0 0 12px; color: #30425e; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-request-text.request-no-text { color: #6e7f9a; font-style: italic; }
.entry-request-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; color: #6f7f9b; font-size: 12px; line-height: 1.5; }
.entry-request-guest { font-weight: 500; }
.entry-request-time { color: #74829c; }
.request-before-day { border-radius: 4px; padding: 1px 5px; background: #edeef9; color: #666796; font-size: 11px; }
.requests-empty { color: #6a7d98; font-size: 15px; line-height: 1.7; margin: 24px 0 28px; }
.requests-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e8edf5; }
.first-messages-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 12px; }
.first-messages-summary strong { color: #435577; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.first-messages-summary strong.unknown { color: #6f7f98; font-weight: 400; }
.first-messages-summary span { color: #6b7c98; font-size: 13px; line-height: 1.6; }
.first-messages-summary .first-unavailable { flex-basis: 100%; font-size: 12px; }
.first-messages-note { margin: 11px 0 0; color: #7585a0; font-size: 12px; line-height: 1.6; }
.report-details-view { min-width: 0; }
.report-document { padding: 36px 40px; background: white; border: 1px solid #e4eaf3; border-radius: 22px; }
.report-document-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #dfe6f1; }
.report-document-header .report-meta { margin-bottom: 13px; }
.report-document-header .report-meta h2 { font-size: 32px; letter-spacing: -.035em; }
.report-scope-label { margin: 7px 0 0; max-width: 450px; color: #6a7b94; font-size: 12px; line-height: 1.6; }
.report-cover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.report-source-label { margin-top: 4px; padding: 6px 11px; border-radius: 7px; background: #f0f2ff; color: #6064bb; font-size: 12px; font-weight: 600; }
.report-document-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 20px; padding: 22px 0; border-top: 1px solid #e5eaf4; border-bottom: 1px solid #e5eaf4; }
.document-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 23px; color: #4d6384; border: 0; border-left: 1px solid #e5eaf4; background: transparent; text-align: left; }
.document-metric:first-child { padding-left: 0; border-left: 0; }
.document-metric:last-child { padding-right: 0; }
.document-metric span { font-size: 12px; line-height: 1.5; }
.document-metric strong { font-size: 38px; font-weight: 600; color: #293d62; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.document-metric strong.unknown { color: #76869f; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.document-metric-errors strong { color: #b96a77; }
.document-metric:hover:not(:disabled) strong { color: #5655c4; }
.provider-breakdown { padding: 6px 0 0; margin-bottom: 26px; }
.provider-row { max-width: 770px; margin: 0 0 18px; }
.provider-row-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; margin-bottom: 9px; color: #445b7e; font-size: 14px; }
.provider-row-heading strong { font-size: 13px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.provider-track { height: 6px; background: #f0f3fa; border-radius: 6px; overflow: hidden; }
.provider-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #657bea, #9a90dd); }
.provider-caption, .provider-empty { margin: 12px 0 0; color: #6b7f9b; font-size: 12px; line-height: 1.7; }
.report-date-navigation { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #dfe6f1; background: #fff9; border-radius: 11px; }
.report-date-navigation .report-date-control { width: 135px; }
.report-date-navigation .report-date-control input { padding: 7px 4px; border: 0; background: transparent; border-radius: 5px; font-size: 13px; color: #475d80; }
.report-date-navigation input::-webkit-calendar-picker-indicator { display: none; }
.date-step, .calendar-toggle { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #687ca0; }
.date-step { font-size: 23px; font-weight: 400; }
.calendar-toggle { width: 31px; }
.date-step:hover:not(:disabled), .calendar-toggle:hover { background: #f0f3fc; color: #5365c9; }
.report-calendar { position: absolute; left: 0; top: calc(100% + 12px); z-index: 8; width: 328px; max-width: calc(100vw - 28px); padding: 18px; border: 1px solid #e2e8f3; border-radius: 16px; background: white; box-shadow: 0 14px 45px #22345520; }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.calendar-heading h2 { margin: 0; color: #3c5275; font-size: 15px; font-weight: 600; text-transform: capitalize; }
.calendar-heading .icon-button { width: 30px; height: 30px; font-size: 22px; border: 0; background: transparent; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 3px; }
.calendar-weekday { display: grid; place-items: center; padding: 3px 0 9px; color: #8793a8; font-size: 11px; }
.calendar-day { position: relative; display: grid; place-items: center; width: 100%; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #485d7c; font-size: 13px; font-weight: 500; }
.calendar-day.outside-month { color: #9ba6b8; }
.calendar-day.report-ready::after { content: ""; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: #796dcf; }
.calendar-day:hover:not(:disabled) { background: #f0f3fd; }
.calendar-day.selected { background: #6865d9; color: white; }
.calendar-day.selected::after { background: white; }
.calendar-day:disabled { color: #b6bfcc; opacity: .65; }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #eef1f7; font-size: 11px; color: #7c8da5; }
.calendar-footer span { display: flex; align-items: center; gap: 7px; }
.calendar-footer i { width: 4px; height: 4px; border-radius: 50%; background: #796dcf; }
.calendar-footer .text-button { font-size: 11px; }
.report-export { position: relative; }
.report-export-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; white-space: nowrap; padding: 11px 14px; font-size: 12px; }
.report-export-button .review-icon { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.report-export-menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 8; width: 300px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 180px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #e2e8f3; border-radius: 8px; background: white; box-shadow: 0 14px 45px #22345520; }
.report-export-menu form { display: grid; gap: 12px; }
.report-export-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.report-export-dates input { min-width: 0; width: 100%; padding: 9px 7px; font-size: 12px; }
.report-export-menu label, .report-export-period legend { font-size: 12px; }
.report-export-menu select { font-size: 12px; border-radius: 8px; }
.report-export-description { margin: -6px 0 0; min-height: 32px; font-size: 11px; line-height: 1.45; }
.report-export-period { min-width: 0; margin: 0; padding: 0; border: 0; }
.report-export-period legend { padding: 0; margin-bottom: 7px; color: #455775; font-weight: 600; }
.report-export-period > div { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #dfe6f1; border-radius: 8px; overflow: hidden; }
.report-export-period label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 6px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 500; }
.report-export-period label + label { border-left: 1px solid #dfe6f1; }
.report-export-period label:has(input:checked) { color: #2456a3; background: #edf3ff; }
.report-export-period label:has(input:focus-visible) { outline: 2px solid #7593d8; outline-offset: -3px; }
.report-export-period label:has(input:disabled) { color: #929eb0; cursor: not-allowed; }
.report-export-period input { width: 13px; height: 13px; margin: 0; padding: 0; accent-color: #3268ff; }
.report-export-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; border-radius: 8px; }
.report-export-submit .review-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.report-day-range { margin: 7px 0 0; color: #596c8b; font-size: 14px; line-height: 1.5; }
.report-document-generated, .report-document-scope { margin: 5px 0; color: #657792; font-size: 12px; line-height: 1.6; }
.daily-report-summary { max-width: 990px; margin: 22px 0 9px; color: #2d4162; font-size: 17px; line-height: 1.8; }
.report-document-note, .report-section-note { margin: 11px 0 0; color: #697b96; font-size: 12px; line-height: 1.7; }
.report-document .report-section { margin: 0 0 30px; padding: 0 0 30px; border-bottom: 1px solid #e7ecf4; }
.report-document .section-heading { align-items: flex-start; justify-content: space-between; margin-bottom: 19px; gap: 24px; }
.report-document .section-heading h2 { font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.report-document .section-heading p { color: #61738f; font-size: 13px; line-height: 1.7; }
.report-document .section-heading .section-number { margin-bottom: 6px; color: #6673b1; font-size: 10px; font-weight: 600; letter-spacing: .11em; }
.report-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.ledger-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 20px; min-height: 58px; padding: 15px 0; border-bottom: 1px solid #edf0f6; }
.ledger-item dt { color: #526583; font-size: 13px; line-height: 1.6; }
.ledger-item dt small { display: block; color: #74829a; font-size: 11px; margin-top: 4px; }
.ledger-item dd { margin: 0; color: #263d66; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.ledger-item dd.unknown { max-width: 125px; color: #74829a; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.report-document .report-table { margin-top: 20px; border: 1px solid #e7ecf4; border-radius: 8px; box-shadow: none; }
.report-document table { font-size: 13px; }
.report-document th { color: #5e7190; font-size: 10px; line-height: 1.6; background: #f7f9fc; }
.report-document th, .report-document td { padding: 13px 14px; }
#managerTable, #channelTable { font-variant-numeric: tabular-nums; }
#channelTable { min-width: 1130px; }
#channelTable .channel-name { min-width: 135px; color: #3a4f72; font-weight: 500; }
#channelTable td:not(:first-child), #channelTable th:not(:first-child) { text-align: right; }
.message-types-section { margin-top: 28px; }
.message-types-section h3 { margin: 0; color: #405676; font-size: 16px; font-weight: 600; }
.message-types-table { max-width: 560px; }
#messageTypeTable td:last-child, #messageTypeTable th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.report-entry-disclosure > summary { color: #4f6283; font-size: 15px; font-weight: 500; cursor: pointer; line-height: 1.65; }
.report-entry-disclosure > summary:focus-visible { outline: 3px solid #abbbff; outline-offset: 4px; border-radius: 4px; }
.report-entry-disclosure > p { margin-top: 16px; color: #657793; font-size: 13px; line-height: 1.7; }
.report-entry-disclosure .entry-comparison-unconfigured { padding: 10px 14px; background: #f3f6fb; border-left: 3px solid #b6c4e3; color: #546a89; }
.report-entry-disclosure .report-metrics { margin-top: 17px; }
.report-entry-disclosure .report-metric { min-height: 110px; border-radius: 12px; box-shadow: none; }
.report-entry-disclosure .report-metric strong { font-size: 25px; }
.report-entry-disclosure .report-metric strong.unknown { font-size: 13px; }
.detail-manager-filter { width: min(300px, 38%); flex-shrink: 0; font-size: 12px; margin-left: auto; }
.detail-manager-filter select { background: white; }
.detail-manager-filter .field-hint { font-size: 12px; color: #7485a0; }
#dialogsSection { scroll-margin-top: 24px; }
#dialogsTitle:focus-visible { outline: 3px solid #abbbff; outline-offset: 5px; border-radius: 4px; }
@media (max-width: 1100px) {
  .brand .enterprise { display: none; }
  .topbar { gap: 20px; }
  .topbar .main-nav { gap: 20px; }
  .overview-band { padding: 28px 24px 20px; }
  .executive-metric { padding-right: 18px; padding-left: 18px; }
  .metric-total { padding-left: 0; }
  .metric-total strong { font-size: 62px; }
  .executive-metric strong { font-size: 37px; }
  .metric-total strong { font-size: 62px; }
  .attention-panel, .first-messages-panel { padding: 26px 24px; }
  .attention-item { flex-wrap: wrap; gap: 10px 12px; }
  .attention-info { flex-basis: 50%; }
}
@media (max-width: 800px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; padding-top: 18px; }
  .topbar .top-actions { justify-self: end; }
  .topbar .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 27px; margin: 10px 0 0; }
  .topbar .nav-button { flex: none; padding: 13px 0 14px; }
  .report-heading { align-items: flex-start; }
  .report-controls { gap: 12px; }
  .report-settings > summary { font-size: 13px; }
  .executive-metrics { grid-template-columns: minmax(0, 1.26fr) repeat(3, minmax(0, 1fr)); }
  .executive-metric { padding: 7px 13px 9px; gap: 10px; }
  .metric-total { padding-left: 0; }
  .executive-metric-label { font-size: 13px; min-height: 39px; }
  .executive-metric-note { font-size: 12px; }
  .executive-metric strong { font-size: 32px; }
  .metric-total strong { font-size: 49px; }
  .executive-workspace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .attention-panel, .first-messages-panel { padding: 24px 20px; }
  .attention-heading h2, .requests-heading h2 { font-size: 19px; }
  .attention-heading p, .requests-heading p { font-size: 13px; }
  .attention-info { flex-basis: 100%; }
  .attention-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .attention-info { grid-column: 1 / -1; }
  .entry-request-text { font-size: 14px; }
}
@media (max-width: 620px) {
  .report-heading { flex-direction: column; gap: 18px; padding: 25px 0 21px; }
  .report-controls { width: 100%; justify-content: space-between; }
  .report-date-control { width: 153px; }
  .report-date-control input { font-size: 14px; }
  .report-settings-body { width: calc(100vw - 28px); grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .report-settings-history { border-left: 0; border-top: 1px solid #e8edf4; padding: 19px 0 0; }
  .settings-buttons { display: grid; }
  .executive-surface { border-radius: 21px; }
  .overview-band { padding: 22px 20px 18px; }
  .executive-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .executive-metric { padding: 4px 12px 7px; border-left: 1px solid #e4e9f4; }
  .metric-total { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 0 21px; margin-bottom: 18px; border-left: 0; border-bottom: 1px solid #e4e9f4; }
  .metric-total .executive-metric-label { grid-column: 1; grid-row: 1; min-height: 0; align-self: end; font-size: 14px; }
  .metric-total strong { grid-column: 2; grid-row: 1 / 3; font-size: 57px; align-self: center; }
  .metric-total .executive-metric-footer { grid-column: 1; grid-row: 2; align-self: start; margin: 0; padding: 0; max-width: 185px; }
  .metric-total .executive-metric-note { font-size: 12px; }
  .metric-ai { border-left: 0; padding-left: 0; }
  .metric-errors { padding-right: 0; }
  .executive-metric-label { min-height: 51px; font-size: 12px; line-height: 1.45; }
  .executive-metric strong { font-size: 29px; }
  .metric-total strong { font-size: 57px; }
  .executive-metric strong.unknown { font-size: 12px; overflow-wrap: anywhere; }
  .executive-metric-note { font-size: 11px; }
  .executive-metric-footer { padding-top: 3px; }
  .overview-context { font-size: 11px; margin-top: 16px; }
  .executive-workspace { grid-template-columns: 1fr; }
  .attention-panel, .first-messages-panel { padding: 25px 20px; }
  .first-messages-panel { border-left: 0; border-top: 1px solid #e7ecf4; }
  .attention-heading h2, .requests-heading h2 { font-size: 20px; }
  .attention-heading p, .requests-heading p { font-size: 14px; }
  .attention-item { display: flex; flex-wrap: nowrap; gap: 12px; }
  .attention-info { flex-basis: auto; }
  .attention-error-count { font-size: 13px; }
  .row-open-label { font-size: 13px; }
  .entry-request-text { font-size: 15px; }
  .detail-manager-filter { width: 100%; }
}
@media (max-width: 390px) {
  .topbar .main-nav { justify-content: space-between; gap: 14px; }
  .topbar .nav-button { font-size: 12px; }
  .report-heading h1 { font-size: 28px; }
  .report-controls { gap: 10px; }
  .report-date-control { width: 145px; }
  .report-settings > summary { font-size: 12px; }
  .overview-band { padding: 22px 17px 18px; }
  .metric-total strong { font-size: 49px; }
  .metric-total .executive-metric-footer { max-width: 156px; }
  .executive-metric { padding-left: 9px; padding-right: 9px; }
  .metric-total, .metric-ai { padding-left: 0; }
  .metric-errors { padding-right: 0; }
  .executive-metric-label { font-size: 11px; min-height: 50px; }
  .executive-metric strong { font-size: 26px; }
  .metric-total strong { font-size: 49px; }
  .attention-panel, .first-messages-panel { padding: 23px 17px; }
}
@media (max-width: 540px) {
  .dialog-context { padding: 0 18px; }
  .dialog-day-title { padding: 20px 18px 0; font-size: 15px; }
  .dialog-entry > summary { font-size: 13px; }
  .entry-summary-date { margin-left: 4px; }
  .modal-meta { font-size: 12px; padding-bottom: 6px; }
}
@media (max-width: 350px) {
  .report-controls { flex-wrap: wrap; gap: 6px 14px; }
  .report-settings { margin-left: auto; }
  .attention-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .attention-info { grid-column: 1 / -1; }
}
#dialogModal { width: min(1180px, calc(100% - 48px)); max-width: calc(100% - 48px); height: 90dvh; max-height: 1040px; background: #f8faff; }
#dialogModal .modal-header { padding: 18px 28px; }
#dialogModal .modal-meta { flex-shrink: 0; padding: 10px 28px 8px; background: white; }
.dialog-mode-bar { flex-shrink: 0; padding: 0 28px 13px; background: white; border-bottom: 1px solid #dfe6f2; }
.dialog-mode-tabs { display: flex; align-items: center; gap: 6px; padding: 4px 0 11px; }
.dialog-mode-tabs button { min-height: 37px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; color: #62748f; background: transparent; font-size: 13px; font-weight: 500; }
.dialog-mode-tabs button:hover { background: #f4f6fd; }
.dialog-mode-tabs button.active { background: #eef1ff; border-color: #dce3ff; color: #465dd0; }
.dialog-day-stats { color: #526684; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.dialog-coverage { margin: 5px 0 0; color: #637490; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.dialog-history-read-at { margin: 4px 0 0; color: #77859a; font-size: 11px; line-height: 1.5; }
.dialog-mode-notice { margin: 9px 28px 0; max-width: 930px; color: #62748f; font-size: 12px; line-height: 1.7; }
.dialog-history-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 28px 0; }
.dialog-history-actions:has(button:not(.is-hidden)) { padding-bottom: 4px; }
#dialogModal .dialog-context { padding: 0 28px; }
#dialogModal .dialog-day-title { padding: 22px 28px 0; }
#dialogModal .dialog-messages { padding: 20px 28px 28px; gap: 13px; }
#dialogModal .message { width: min(87%, 800px); padding: 15px 18px; }
.message-date-divider { align-self: center; margin: 13px 0 5px; color: #657894; font-size: 12px; text-align: center; }
.message-attachment { display: block; margin-top: 9px; color: #637793; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.history-error { color: #96626c; }
@media (max-width: 1100px) {
  .report-document { padding: 30px; }
  .report-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}
@media (max-width: 1000px) {
  .report-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .report-controls { width: 100%; justify-content: space-between; gap: 14px; }
}
@media (max-width: 800px) {
  .report-document { padding: 26px; }
  .report-document .section-heading { flex-wrap: wrap; }
  .detail-manager-filter { width: min(100%, 360px); margin-left: 0; }
  #dialogModal { width: calc(100% - 24px); max-width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
}
@media (max-width: 540px) {
  .report-document { padding: 23px 17px; border-radius: 18px; }
  .report-document-header { margin-bottom: 28px; padding-bottom: 23px; }
  .report-document-header .report-meta h2 { font-size: 25px; }
  .report-cover-heading { gap: 10px; }
  .report-source-label { font-size: 10px; padding: 5px 8px; }
  .report-document-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 0; margin: 23px 0 18px; padding: 19px 0; }
  .document-metric { padding: 0 16px; gap: 7px; }
  .document-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .document-metric strong { font-size: 32px; }
  .document-metric span { font-size: 11px; }
  .provider-row-heading { font-size: 13px; gap: 12px; }
  .provider-row-heading strong { font-size: 12px; }
  .daily-report-summary { font-size: 15px; line-height: 1.8; margin-top: 19px; }
  .report-document .section-heading h2 { font-size: 20px; }
  .report-document .report-section { margin-bottom: 24px; padding-bottom: 24px; }
  .report-ledger { grid-template-columns: 1fr; gap: 0; }
  .ledger-item { min-height: 50px; padding: 12px 0; }
  .ledger-item dd { font-size: 21px; }
  .report-document .dialog-filters { gap: 11px; }
  #dialogModal { width: calc(100% - 12px); max-width: calc(100% - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); border-radius: 16px; }
  #dialogModal .modal-header { padding: 13px 15px; gap: 10px; align-items: flex-start; }
  #dialogModal .modal-header h2 { font-size: 18px; }
  #dialogModal .modal-header .eyebrow { margin-bottom: 4px; }
  #dialogModal .modal-actions { gap: 7px; }
  #dialogModal .modal-actions .secondary { font-size: 11px; padding: 8px 10px; }
  #dialogModal .icon-button { width: 31px; height: 31px; }
  #dialogModal .modal-meta { padding: 8px 15px 5px; font-size: 12px; }
  .dialog-mode-bar { padding: 0 15px 10px; }
  .dialog-mode-tabs { gap: 4px; padding-bottom: 8px; }
  .dialog-mode-tabs button { flex: 1; min-width: 0; font-size: 11px; padding: 8px 6px; }
  .dialog-day-stats, .dialog-coverage { font-size: 11px; line-height: 1.55; }
  .dialog-coverage { margin-top: 4px; }
  #dialogModal .dialog-context { padding: 0 15px; }
  #dialogModal .dialog-day-title { padding: 19px 15px 0; font-size: 15px; }
  .dialog-mode-notice { margin: 8px 15px 0; font-size: 12px; }
  .dialog-history-actions { padding: 14px 15px 0; }
  .dialog-history-actions .secondary { width: 100%; font-size: 12px; padding: 10px 12px; }
  #dialogModal .dialog-messages { padding: 17px 15px 23px; }
  #dialogModal .message { width: 95%; padding: 13px; }
}
@media (max-width: 620px) {
  .report-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
  .report-date-navigation { grid-column: 1 / -1; justify-content: space-between; }
  .report-date-navigation .report-date-control { flex: 1; width: auto; }
  .report-date-navigation .report-date-control input { width: 100%; text-align: center; }
  .report-export-button { width: 100%; }
  .report-export-menu { left: 0; right: auto; }
  .report-settings { margin-left: 0; }
  .report-settings > summary { font-size: 12px; padding: 11px 0; }
  .report-calendar { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
}
@media (max-height: 550px) and (max-width: 540px) {
  #dialogModal .modal-header { padding-top: 10px; padding-bottom: 10px; }
  .dialog-mode-bar { padding-bottom: 8px; }
  .dialog-day-stats, .dialog-coverage { line-height: 1.45; }
}
.report-details-view { margin-top: 30px; }
.report-details-view .report-document-metrics, .report-details-view .daily-report-summary { display: none; }
.dialogs-section { scroll-margin-top: 20px; }
.analysis-tools { max-width: 1280px; margin: 0 auto; }
.analysis-tools .analysis-heading { padding: 31px 0 25px; }
.analysis-heading h1 { margin: 0; font-size: 30px; }
.analysis-tools #analysisContent { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.message-event pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.export-skipped { margin: 12px 0 20px; padding: 12px 16px; border: 1px solid #dbe3ee; border-radius: 6px; background: #fff; }
.export-skipped summary { cursor: pointer; font-weight: 600; color: #8a4b08; }
.export-skipped-list { list-style: none; padding: 0; margin: 12px 0; max-height: 320px; overflow: auto; }
.export-skipped-list li { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0f5; overflow-wrap: anywhere; }
.export-skipped-list a { color: #245bb8; }
.export-skipped-list span { color: #56667d; }
.dialog-source-updates { display: block; margin-top: 5px; color: #8a4b08; font-size: 11px; }
@media (max-width: 540px) { .export-skipped-list li { grid-template-columns: 1fr; gap: 4px; } }
