:root {
  color-scheme: light;
  --ink: #17241f;
  --muted: #718078;
  --line: #e4e9e5;
  --paper: #f6f8f6;
  --white: #fff;
  --green: #176b4b;
  --green-dark: #10563b;
  --mint: #e7f3ec;
  --gold: #d3a85e;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { min-height: 100vh; }

.login-layout { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 38px 24px 24px; background: radial-gradient(ellipse at 50% 35%, #fff 0, #f8faf8 48%, #eff4f0 100%); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: "Segoe UI", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.brand-lockup small { display: block; margin-top: 3px; color: #8d9991; font-family: "Segoe UI", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--green); color: white; font-family: "Segoe UI", sans-serif; font-size: 22px; font-weight: 800; box-shadow: 0 7px 16px #176b4b2b; }
.small-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
.login-card { width: min(100%, 440px); margin-top: -28px; padding: 44px; border: 1px solid #e8ede9; border-radius: 20px; background: #ffffffeb; box-shadow: 0 24px 70px #2648350d; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
h1, h2 { margin: 0; font-family: "Segoe UI", sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(29px, 4vw, 39px); line-height: 1.16; }
h2 { font-size: 21px; line-height: 1.3; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.65; }
.login-card > .muted { margin: 13px 0 30px; }
.stack { display: grid; gap: 17px; }
.stack label, .form-grid label, .employee-form label { display: grid; gap: 8px; color: #35443c; font-size: 12px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid #dfe6e1; border-radius: 9px; background: var(--white); color: var(--ink); outline: none; transition: border-color .16s, box-shadow .16s; }
select { min-height: 45px; padding: 0 13px; border: 1px solid #dfe6e1; border-radius: 9px; background: var(--white); color: var(--ink); }
input { min-height: 45px; padding: 0 13px; }
textarea { min-height: 88px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { border-color: #69a889; box-shadow: 0 0 0 3px #176b4b12; }
input::placeholder, textarea::placeholder { color: #a7b0aa; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.secondary { border-color: #dce5df; background: white; color: var(--ink); }
.secondary:hover { border-color: #9cb8a7; }
.quiet { background: transparent; color: var(--muted); }
.quiet:hover { background: #edf2ee; }
.login-card .button { width: 100%; margin-top: 3px; }
.form-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-message.error { color: #a53a35; }
.form-message.success { color: var(--green); }
.security-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 19px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #3a9c6d; box-shadow: 0 0 0 3px #3a9c6d1c; }
.login-foot { color: #8a968e; font-size: 11px; text-align: center; }

.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.employee-email { color: #536159; font-size: 12px; }
.notification-wrap { position: relative; }
.notification-toggle { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #d9e4dd; border-radius: 7px; background: #fff; color: #335043; font-size: 11px; font-weight: 700; }
.notification-toggle:hover, .notification-toggle[aria-expanded="true"] { border-color: #8cb7a0; background: #f4faf6; }
.notification-count { min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: #c15f48; color: #fff; font-size: 9px; font-variant-numeric: tabular-nums; }
.notification-panel { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(420px, calc(100vw - 24px)); padding: 14px; border: 1px solid #d9e4dd; border-radius: 8px; background: #fff; box-shadow: 0 18px 45px #18322c22; }
.notification-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 2px 1px 11px; border-bottom: 1px solid #e6ece8; }
.notification-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.notification-heading h2 { font-size: 15px; }
.notification-list { display: grid; max-height: min(60vh, 520px); overflow-y: auto; }
.notification-item { display: grid; gap: 4px; width: 100%; padding: 12px 3px; border: 0; border-bottom: 1px solid #e9eeeb; background: transparent; color: var(--ink); text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { margin: 0 -4px; padding-right: 7px; padding-left: 7px; border-left: 3px solid #278c75; background: #f3faf6; }
.notification-item:hover { background: #f7faf8; }
.notification-item strong { font-size: 12px; }
.notification-item span { color: #52645b; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.notification-item small { color: #809087; font-size: 10px; }
#workspace-view { width: min(100% - 48px, 1160px); margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 54px 0 31px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 39px); }
.page-heading .muted { margin: 9px 0 0; }
.heading-badge { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; padding: 10px 13px; border: 1px solid #ddebe2; border-radius: 99px; background: #f1f8f3; color: #41664e; font-size: 11px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { position: relative; flex: 0 0 auto; padding: 14px 15px; border: 0; background: transparent; color: #7b8880; font-size: 12px; font-weight: 600; }
.tab.active { color: #f7fffc; font-weight: 700; }
.tab.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--green); content: ""; }
.panel { min-height: 440px; margin: 24px 0 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 10px 30px #25483407; }
.panel-intro { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 30px; }
.step-number { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--mint); color: var(--green); font-family: "Segoe UI", sans-serif; font-size: 13px; font-weight: 800; }
.panel-intro h2 { margin-top: 2px; }
.panel-intro .muted { max-width: 630px; margin: 8px 0 0; }
.panel-intro + .button { margin: 0 0 20px 55px; }
.assistant-page-action { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.wide { grid-column: 1 / -1; }
.hint { color: #929e96; font-size: 10px; font-weight: 400; }
.file-drop { min-height: 76px; display: flex !important; align-items: center; gap: 14px !important; padding: 14px 17px; border: 1px dashed #cbd9cf; border-radius: 10px; background: #fafcfb; cursor: pointer; }
.file-drop:hover { border-color: #77aa8c; background: #f6faf7; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 18px; }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { color: #334239; font-size: 12px; }
.file-drop small { margin-top: 4px; color: #8b978f; font-size: 10px; font-weight: 400; }
.file-drop input { width: auto; max-width: 44%; min-height: auto; margin-left: auto; padding: 5px 0; border: 0; background: transparent; font-size: 10px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 3px; padding-top: 18px; border-top: 1px solid #eef1ee; }
.form-bottom .form-message { flex: 1; }
.csv-help { border-top: 1px solid #edf1ed; border-bottom: 1px solid #edf1ed; color: #65746a; font-size: 11px; }
.csv-help summary { padding: 12px 0; color: #3d5646; font-weight: 600; cursor: pointer; }
.csv-help p { margin: 0 0 14px; line-height: 1.7; }
code { padding: 2px 4px; border-radius: 4px; background: #f0f3f0; color: #355542; }
.history-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.history-heading .muted { margin: 7px 0 0; }
.intake-list { display: grid; }
.activity-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.activity-summary article { display: grid; gap: 9px; padding: 18px; border: 1px solid #e8eee9; border-radius: 11px; background: #fbfcfb; }
.activity-summary span { color: var(--muted); font-size: 11px; }
.activity-summary strong { color: var(--green); font-family: "Segoe UI", sans-serif; font-size: 25px; }
.activity-list { display: grid; }
.website-install { display: grid; justify-items: start; gap: 12px; margin: 28px 0; padding: 22px; border: 1px solid #dce9df; border-radius: 12px; background: #f8fbf8; }
.website-install h3, .website-list-heading { margin: 0; font-size: 15px; }
.website-install h4 { margin: 0; font-size: 13px; }
.website-install > .muted { margin: 0; font-size: 12px; }
.website-install > label { width: 100%; max-width: 760px; }
.website-install textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.website-employee-steps { max-width: 760px; margin: 0; padding-left: 20px; color: #52635a; font-size: 12px; line-height: 1.7; }
.website-employee-steps li + li { margin-top: 5px; }
.website-platform { width: 100%; max-width: 360px; display: grid; gap: 8px; color: #35443c; font-size: 12px; font-weight: 600; }
.website-platform-help { max-width: 760px; color: #52635a; font-size: 12px; line-height: 1.7; }
.website-platform-help ol { margin: 0; padding-left: 20px; }
.website-platform-help li + li { margin-top: 6px; }
.website-ai-instructions { display: grid; justify-items: start; gap: 10px; width: 100%; max-width: 760px; margin-top: 8px; padding-top: 18px; border-top: 1px solid #e4ece5; }
.website-ai-instructions .muted { margin: 0; font-size: 12px; }
.website-ai-instructions label { width: 100%; }
.website-server-credential { display: grid; justify-items: start; gap: 10px; width: 100%; max-width: 760px; padding-top: 18px; border-top: 1px solid #e4ece5; }
.website-server-credential h4, .website-server-credential p { margin: 0; }
.website-server-credential > label { width: 100%; }
.website-server-credential > .muted { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.website-warning { max-width: 760px; margin: 4px 0 0; padding: 12px; border-left: 3px solid #d3a85e; background: #fffaf0; color: #665638; font-size: 11px; line-height: 1.6; }
.website-verification { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 24px; margin: 28px 0 0; padding: 20px; border: 1px solid #e8eee9; border-radius: 11px; background: #fbfcfb; }
.website-verification h3 { margin: 0; font-size: 14px; }
.website-verification ol { margin: 12px 0; padding-left: 19px; color: #52635a; font-size: 11px; line-height: 1.7; }
.website-verification .muted { margin: 0; font-size: 11px; }
.collector-endpoint { display: grid; align-content: start; gap: 9px; color: var(--muted); font-size: 10px; }
.collector-endpoint code { overflow-wrap: anywhere; }
.website-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 26px; }
.website-list-heading h3 { margin: 0; font-size: 15px; }
.website-list { display: grid; }
.website-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #edf1ed; }
.website-item strong { font-size: 12px; }
.website-item .intake-meta { margin: 5px 0 0; }
.website-activity-meta { margin: 8px 0 0; color: #536159; font-size: 10px; }
.website-key-status { background: #f7f5ee; color: #74623e; }
.website-actions { display: flex; align-items: center; gap: 10px; }
.website-actions .button { min-height: 36px; font-size: 11px; }
.website-actions .button:disabled { cursor: not-allowed; opacity: .5; }
.website-domain-form { display: flex; gap: 8px; max-width: 400px; margin-top: 10px; }
.website-domain-form input { min-width: 0; min-height: 36px; }
.website-domain-form .button { flex: 0 0 auto; min-height: 36px; }
.activity-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; padding: 17px 0; border-top: 1px solid #edf1ed; }
.activity-item.urgent { border-left: 3px solid #ca5d48; padding-left: 13px; }
.activity-description { margin: 6px 0 0; color: #536159; font-size: 12px; }
.activity-item .button { justify-self: start; }
.activity-item.urgent .intake-status { background: #fff0ec; color: #9c3e30; }
.intake-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; padding: 17px 0; border-top: 1px solid #edf1ed; }
.intake-title { overflow-wrap: anywhere; color: #26372d; font-size: 13px; font-weight: 700; }
.intake-meta { margin-top: 5px; color: #8a958e; font-size: 10px; }
.intake-item .button { justify-self: start; margin-top: 9px; }
.intake-status { padding: 6px 9px; border-radius: 20px; background: #f0f4f1; color: #55705e; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.intake-errors { grid-column: 1 / -1; margin: 0; padding: 0 0 0 18px; color: #9c4a3e; font-size: 11px; line-height: 1.7; }
.intake-retry { grid-column: 1 / -1; justify-self: start; }
.processing-error { grid-column: 1 / -1; color: #9c4a3e; }
.search-form { display: flex; align-items: end; gap: 12px; max-width: 650px; margin-bottom: 20px; }
.search-form label { flex: 1; }
.knowledge-result { padding: 17px 0; border-top: 1px solid #edf1ed; }
.knowledge-result h3 { margin: 0; color: #26372d; font-size: 13px; }
.knowledge-content, .follow-up-context { margin: 10px 0 0; color: #536158; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.queue-filter { display: flex; align-items: center; gap: 12px; max-width: 260px; margin-bottom: 20px; }
.queue-filter select, .schedule-form input { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.follow-up-item { grid-template-columns: minmax(0, 1fr) auto; }
.follow-up-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.follow-up-summary-item { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); }
.follow-up-summary-item:last-child { border-right: 0; }
.follow-up-summary-item strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.1; }
.follow-up-summary-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.follow-up-item .intake-status { white-space: normal; text-align: right; max-width: 210px; }
.follow-up-item .intake-status.waiting { background: #fff4e7; color: #865323; }
.follow-up-item .intake-status.failed { background: #fff0ec; color: #963f37; }
.follow-up-item .intake-status.sent { background: #e7f4ed; color: #226146; }
.lead-request { display: flex !important; align-items: flex-start; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.lead-request input { width: 18px !important; height: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--green); flex: 0 0 auto; }
.lead-request strong, .lead-request small { display: block; }
.lead-request small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.schedule-form { grid-column: 1 / -1; display: flex; align-items: end; gap: 12px; }
.schedule-form label { max-width: 230px; }
.empty-state { padding: 48px 10px; color: #8a958e; font-size: 12px; text-align: center; }
.employee-form { display: flex; align-items: end; gap: 14px; max-width: 680px; }
.employee-form label { flex: 1; }
.credential-result { max-width: 680px; margin-top: 25px; padding: 20px; border: 1px solid #d8e9dc; border-radius: 10px; background: #f5faf6; }
.credential-text { padding: 12px; border: 1px solid #e0e9e2; border-radius: 7px; background: white; color: #254c36; font-family: monospace; overflow-wrap: anywhere; }
.password-card { max-width: 520px; margin: 90px auto; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.password-card > .muted { margin: 10px 0 24px; }
.compact { gap: 14px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0; color: #909b93; font-size: 10px; }
.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; }
.assistant-launcher { position: fixed; right: 24px; bottom: 22px; z-index: 20; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--green); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 8px 26px #173a2b36; }
.assistant-launcher:hover { background: var(--green-dark); }
.assistant-panel { position: fixed; right: 24px; bottom: 82px; z-index: 21; width: min(440px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 110px)); display: flex; flex-direction: column; gap: 12px; padding: 20px; overflow: auto; border: 1px solid #dfe8e1; border-radius: 16px; background: white; box-shadow: 0 18px 60px #1c30253b; }
.assistant-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); background: white; }
.assistant-header .eyebrow { margin-bottom: 5px; }
.assistant-header h2 { font-size: 18px; }
.assistant-disclosure { margin: 0; color: #748178; font-size: 10px; line-height: 1.55; }
.assistant-usage { margin: 0; color: #536b5c; font-size: 10px; }
.assistant-context-label, .assistant-draft > label:not(.assistant-confirm) { display: grid; gap: 6px; color: #35443c; font-size: 11px; font-weight: 600; }
.assistant-context-label select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid #dfe6e1; border-radius: 8px; background: white; color: var(--ink); }
.assistant-messages { min-height: 150px; max-height: 300px; display: flex; flex-direction: column; gap: 9px; padding: 12px; overflow-y: auto; border: 1px solid #edf1ed; border-radius: 10px; background: #fafcfb; }
.assistant-empty { margin: auto; color: #89958d; font-size: 11px; line-height: 1.6; text-align: center; }
.assistant-bubble { max-width: 92%; align-self: flex-start; padding: 10px 12px; border-radius: 10px 10px 10px 3px; background: #eef4ef; color: #334239; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-bubble.user { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: #176b4b; color: white; }
.assistant-questions { margin: -4px 0 0; padding-left: 25px; color: #52635a; font-size: 11px; line-height: 1.6; }
.assistant-chat-form { display: grid; gap: 8px; }
.assistant-chat-form textarea { min-height: 72px; max-height: 140px; font-size: 12px; }
.assistant-chat-form .button { justify-self: end; }
.assistant-draft { display: grid; gap: 10px; padding: 13px; border: 1px solid #d9e8dd; border-radius: 10px; background: #f7fbf8; }
.assistant-draft .eyebrow { margin-bottom: 0; }
.assistant-draft input, .assistant-draft textarea { font-size: 11px; font-weight: 400; }
.assistant-draft textarea { min-height: 110px; }
.assistant-confirm { display: flex; align-items: flex-start; gap: 8px; color: #394a40; font-size: 10px; line-height: 1.5; }
.assistant-confirm input { width: 16px; min-height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.assistant-draft .button { width: 100%; }
.assistant-draft .button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.assistant-status { min-height: 16px; }

.communications-notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #e8dfc7; border-radius: 9px; background: #fffaf0; color: #665534; font-size: 11px; line-height: 1.65; }
.permission-record { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #e4eae5; border-radius: 9px; }
.permission-record summary { color: #3d5646; font-size: 11px; font-weight: 700; cursor: pointer; }
.permission-record > .muted { max-width: 760px; margin: 9px 0; font-size: 11px; }
.permission-record .form-grid { gap: 12px; }
.permission-record .form-grid label { font-size: 11px; }
.permission-record .form-grid input, .permission-record .form-grid select { min-height: 40px; }
.communications-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.inline-form { display: flex; align-items: end; gap: 10px; }
.inline-form label { display: grid; gap: 7px; color: #35443c; font-size: 11px; font-weight: 600; }
.inline-form input { width: min(250px, 42vw); min-height: 42px; }
.communication-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 24px; }
.communication-account { display: grid; gap: 10px; padding: 16px; border: 1px solid #e4eae5; border-radius: 10px; background: #fbfcfb; }
.communication-account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.communication-account h3, .communication-section h3 { margin: 0; font-size: 15px; }
.communication-account p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.communication-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.communication-account-actions .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.communication-status { padding: 5px 8px; border-radius: 99px; background: #eef2ef; color: #59665e; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.communication-status.connected { background: #e7f3ec; color: var(--green); }
.communication-qr { width: 180px; height: 180px; padding: 8px; border: 1px solid var(--line); background: white; }
.communication-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 20px; }
.communication-section { min-width: 0; padding: 18px; border: 1px solid #e8eee9; border-radius: 11px; background: #fff; }
.communication-section .history-heading { align-items: center; margin-bottom: 13px; }
.communication-conversations { display: grid; gap: 7px; max-height: 460px; overflow-y: auto; }
.communication-conversation { display: grid; gap: 5px; width: 100%; padding: 11px; border: 1px solid #edf1ed; border-radius: 8px; background: #fbfcfb; color: var(--ink); text-align: left; }
.communication-conversation:hover, .communication-conversation.selected { border-color: #9cb8a7; background: #f3f8f4; }
.communication-conversation strong { font-size: 11px; }
.communication-conversation span, .communication-conversation small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.communication-thread { display: grid; gap: 8px; max-height: 350px; margin-top: 12px; padding: 10px; overflow-y: auto; border: 1px solid #edf1ed; border-radius: 9px; background: #fafcfb; }
.communication-message { max-width: 92%; padding: 9px 11px; border-radius: 10px 10px 10px 3px; background: #eef4ef; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.communication-message.staff { justify-self: end; border-radius: 10px 10px 3px 10px; background: #176b4b; color: white; }
.communication-message time { display: block; margin-top: 5px; font-size: 8px; opacity: .7; }
.communication-section .stack { gap: 12px; margin-top: 15px; }
.communication-section .stack label { font-size: 11px; }
.communication-section .stack input, .communication-section .stack select { min-height: 40px; }
.communication-section .stack textarea { min-height: 88px; }
.scheduled-email { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1ed; }
.scheduled-email summary { color: #3d5646; font-size: 11px; font-weight: 700; cursor: pointer; }
.scheduled-email-list { margin-top: 14px; }
.scheduled-email-list h4 { margin: 0 0 8px; font-size: 11px; }
.scheduled-email-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #edf1ed; }
.scheduled-email-row p { margin: 0; color: #5c6b62; font-size: 10px; line-height: 1.45; }
.scheduled-email-row .button { min-height: 30px; padding: 0 9px; font-size: 9px; }

@media (max-width: 650px) {
  .login-layout { padding: 25px 18px 15px; }
  .login-card { margin-top: -8px; padding: 30px 24px; }
  .topbar { height: 62px; padding: 0 16px; }
  .brand-lockup { gap: 8px; font-size: 12px; }
  .brand-lockup small { font-size: 8px; }
  .employee-email { display: none; }
  #workspace-view { width: min(100% - 28px, 1160px); }
  .page-heading { display: block; padding: 37px 0 22px; }
  .heading-badge { width: fit-content; margin-top: 17px; }
  .tabs { margin: 0 -3px; }
  .tab { padding: 13px 11px; font-size: 11px; }
  .panel { min-height: 0; margin-top: 16px; padding: 22px 18px; }
  .panel-intro { gap: 12px; margin-bottom: 24px; }
  .panel-intro + .button { margin-left: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wide { grid-column: auto; }
  .form-bottom { align-items: stretch; flex-direction: column-reverse; }
  .form-bottom .button { width: 100%; }
  .history-heading { align-items: stretch; flex-direction: column; }
  .history-heading .button { width: fit-content; }
  .search-form, .schedule-form { align-items: stretch; flex-direction: column; }
  .search-form .button, .schedule-form .button { width: fit-content; }
  .employee-form { align-items: stretch; flex-direction: column; }
  .activity-summary { grid-template-columns: 1fr 1fr; }
  .communications-actions, .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form input { width: 100%; }
  .communication-grid { grid-template-columns: 1fr; }
  .communication-section { padding: 14px; }
  .activity-item { grid-template-columns: 1fr; }
  .website-item { align-items: flex-start; flex-direction: column; }
  .website-actions { flex-wrap: wrap; }
  .website-verification { grid-template-columns: 1fr; }
  .website-list-heading { align-items: flex-start; flex-direction: column; }
  .workspace-footer { flex-direction: column; }
  .assistant-launcher { right: 14px; bottom: 14px; }
  .assistant-panel { right: 8px; bottom: 70px; width: calc(100vw - 16px); max-height: calc(100vh - 82px); padding: 16px; }
}

/* KYCVIO customer operations visual system */
:root {
  --ink: #1b2427;
  --muted: #667477;
  --paper: #f1f4f2;
  --line: #d6dfdc;
  --green: #087b6d;
  --green-dark: #065c53;
  --mint: #d8eee8;
  --cobalt: #476acb;
  --coral: #d76e54;
  --gold: #d7a53d;
}

body { background: #f1f4f2; }
.topbar { height: 66px; padding-inline: max(28px, calc((100vw - 1480px) / 2)); background: #fbfcfa; }
.brand-lockup { letter-spacing: .08em; }
.brand-mark, .small-mark { border-radius: 7px; background: #087b6d; }
#workspace-view {
  width: min(100% - 56px, 1480px);
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto minmax(520px, 1fr) auto;
  column-gap: 28px;
  align-items: start;
}
.page-heading { grid-column: 1 / -1; padding: 30px 0 22px; align-items: center; }
.page-heading > div:first-child { max-width: 780px; }
.page-heading .eyebrow { color: #b45d46; }
.page-heading h1 { font-size: 30px; letter-spacing: 0; }
.page-heading .muted { margin-top: 7px; font-size: 12px; }
.heading-badge { border-radius: 6px; border-color: #cbded7; background: #e8f3ed; color: #176452; }
.status-dot { background: #16a27c; box-shadow: 0 0 0 3px #16a27c20; animation: status-breathe 2.6s ease-in-out infinite; }
.tabs {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
  padding: 17px 11px 18px;
  overflow: visible;
  position: sticky;
  top: 16px;
  border: 1px solid #253637;
  border-radius: 7px;
  background: #192627;
  box-shadow: 0 12px 32px #1a2c2b16;
}
.tab-group { display: grid; gap: 3px; }
.tab-group-label { margin: 0 9px 6px; color: #91a3a0; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.tab { min-width: 0; width: 100%; min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; color: #c2cfcc; font-size: 11px; font-weight: 600; text-align: left; transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease; }
.tab:hover { transform: translateX(2px); background: #223536; color: #fff; }
.tab.active { background: #2b403d; color: #f7fffc; }
.tab.active::after { right: auto; bottom: 7px; left: 0; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: #47c2a5; }
.tab-mark { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid #3c504f; border-radius: 4px; color: #b8ccc7; font-size: 8px; font-variant-numeric: tabular-nums; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.tab.active .tab-mark { border-color: #47c2a5; background: #47c2a5; color: #163733; }
.admin-nav-group { margin-top: 1px; padding-top: 13px; border-top: 1px solid #304240; }
.tab-panel { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; animation: panel-arrive .38s cubic-bezier(.2,.7,.25,1) both; }
.tab-panel[hidden] { display: none !important; }
.panel { min-height: 0; margin: 0; padding: 0 0 34px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workspace-heading { margin: 0 0 17px; padding-bottom: 14px; border-bottom: 1px solid #d4dfdc; }
.workspace-heading .eyebrow { color: #b45d46; }
.workspace-heading h2 { color: #1b2d2c; font-size: 20px; }
.workspace-heading .muted { font-size: 11px; line-height: 1.55; }
.workspace-heading > .button { flex: 0 0 auto; }
.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.metric-card { min-height: 108px; padding: 14px; border: 1px solid #d7e0dd; border-top: 0; border-left: 3px solid #38a88e; border-radius: 5px; background: #fbfcfa; box-shadow: 0 2px 5px #18322c08; animation: metric-arrive .45s cubic-bezier(.2,.7,.25,1) both; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.metric-card:nth-child(2) { border-left-color: var(--cobalt); animation-delay: .045s; }
.metric-card:nth-child(3) { border-left-color: #d09b35; animation-delay: .09s; }
.metric-card:nth-child(4) { border-left-color: #d76e54; animation-delay: .135s; }
.metric-card:nth-child(5) { border-left-color: #627e73; animation-delay: .18s; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #18322c12; }
.metric-card.attention { background: #fffaf0; }
.metric-card span { color: #627174; font-size: 9px; letter-spacing: .07em; }
.metric-card strong { color: #1b302f; font-size: 27px; font-variant-numeric: tabular-nums; }
.metric-card small { color: #7c8988; font-size: 9px; }
.operations-grid { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 12px; }
.data-region, .activity-region { padding: 16px; border: 1px solid #d7e0dd; border-radius: 6px; background: #fbfcfa; box-shadow: 0 3px 9px #18322c07; transition: box-shadow .22s ease, border-color .22s ease; }
.data-region:hover, .activity-region:hover { border-color: #bdcfca; box-shadow: 0 7px 18px #18322c0c; }
.region-heading .eyebrow { color: #b45d46; }
.region-heading h3 { color: #203332; }
.trend-region { grid-column: 1; }
.funnel-region { grid-column: 2; }
.trend-chart { height: 174px; border-color: #dce5e2; }
.trend-bars { border-color: #e6ece9; }
.trend-bar { transform: scaleY(0); transform-origin: bottom; animation: bar-rise .72s cubic-bezier(.19,.75,.28,1) forwards; animation-delay: var(--bar-delay, 0ms); transition: filter .16s ease, opacity .16s ease; }
.trend-bar.website { background: #168f7c; }
.trend-bar.replies { background: #506fc5; }
.trend-bar:hover { filter: saturate(1.5); opacity: .78; }
.trend-column:nth-child(2n) .trend-bar { animation-delay: calc(var(--bar-delay, 0ms) + 45ms); }
.funnel-list { gap: 13px; }
.funnel-row { animation: row-arrive .34s ease both; }
.funnel-row:nth-child(2) { animation-delay: .04s; }
.funnel-row:nth-child(3) { animation-delay: .08s; }
.funnel-row:nth-child(4) { animation-delay: .12s; }
.funnel-track { height: 6px; background: #e7edeb; }
.funnel-track span { transform: scaleX(0); transform-origin: left; animation: track-grow .7s cubic-bezier(.19,.75,.28,1) .15s forwards; background: #30a58c; }
.products-region, .conversations-region { min-height: 226px; }
.product-row { padding: 10px 0; border-color: #e4ebe8; }
.product-row strong { color: #263c3a; }
.operations-conversation, .issue-row { transition: padding .18s ease, background .18s ease; }
.operations-conversation:hover, .issue-row:hover { padding-inline: 7px; background: #edf5f1; }
.conversation-meta { color: #176e62; }
.activity-region { margin-top: 12px; }
.activity-item { animation: row-arrive .35s ease both; }
.activity-item:nth-child(2n) { animation-delay: .06s; }
.report-layout { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 12px; }
.insight-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.insight-summary > div { display: grid; gap: 8px; padding: 17px; border-bottom: 2px solid #d7e7dc; background: #f7faf8; }
.insight-summary span { color: var(--muted); font-size: 11px; font-weight: 600; }
.insight-summary strong { color: var(--ink); font-size: 26px; line-height: 1; }
.insight-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.insight-tools label { color: var(--muted); font-size: 12px; font-weight: 700; }
.insight-tools select { min-width: 180px; }
.insight-tools .region-period { margin-left: auto; }
.insights-list { display: grid; border-top: 1px solid var(--line); }
.insight-row { display: grid; gap: 8px; width: 100%; padding: 16px 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; transition: background .15s ease; }
.insight-row:hover, .insight-row:focus-visible { background: #f4f9f5; }
.insight-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.insight-category { min-width: 84px; padding: 4px 8px; border-radius: 3px; background: #e7f2eb; color: #205b3e; font-size: 10px; text-align: center; text-transform: uppercase; }
.insight-complaint, .insight-discomfort, .insight-dislike { background: #fbece9; color: #9a4339; }
.insight-promise { background: #fff2db; color: #8c5c13; }
.insight-row-summary { color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.45; }
.insight-row small { color: #62726a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.handoff-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.handoff-open { display: grid; flex: 1; gap: 5px; min-width: 0; padding: 3px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.handoff-open:hover strong { color: var(--green); text-decoration: underline; }
.handoff-open strong { font-size: 12px; }
.handoff-open small { color: var(--muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.handoff-row .button { flex: 0 0 auto; }
.settings-live-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.settings-live-endpoints span { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.settings-live-endpoints strong { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .handoff-row { flex-wrap: wrap; } .handoff-open { flex-basis: 100%; } .settings-live-endpoints { grid-template-columns: 1fr; } }
#insights-more { margin-top: 18px; }
@media (max-width: 600px) { .insight-summary { grid-template-columns: 1fr 1fr; } .insight-tools { flex-wrap: wrap; } }
.report-chart-region, .report-payment-region { min-height: 230px; }
.issue-track { background: #e9edeb; }
.issue-track span { transform: scaleX(0); transform-origin: left; animation: track-grow .65s cubic-bezier(.19,.75,.28,1) .1s forwards; background: #d47b58; }
.payment-failure-row strong { color: #c05d49; }
.issue-feed-region { margin-top: 12px; }
#workspace-view > .workspace-footer { grid-column: 1 / -1; grid-row: 3; padding: 14px 0 22px; border-top: 1px solid #d6dfdc; color: #788583; }
.assistant-panel { border-radius: 7px; }
.assistant-context-strip { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 22px; padding: 14px 0; border-top: 1px solid #d8e2df; border-bottom: 1px solid #d8e2df; color: #526568; font-size: 11px; }
.assistant-context-strip span { display: inline-flex; align-items: center; gap: 8px; animation: row-arrive .35s ease both; }
.assistant-context-strip span:nth-child(2) { animation-delay: .05s; }
.assistant-context-strip span:nth-child(3) { animation-delay: .1s; }
.assistant-context-strip span:nth-child(4) { animation-delay: .15s; }
.assistant-context-strip i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #bfd8d2; border-radius: 4px; background: #e7f2ef; color: #12695e; font-size: 8px; font-style: normal; font-variant-numeric: tabular-nums; }
.assistant-context-strip span:nth-child(2) i { border-color: #d7cda8; background: #f7f2df; color: #776225; }
.assistant-context-strip span:nth-child(3) i { border-color: #c8d1e8; background: #edf0f8; color: #4963a4; }
.assistant-context-strip span:nth-child(4) i { border-color: #e4c7bf; background: #f8ece8; color: #a25543; }
.button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px #152b2618; }
.button:active { transform: translateY(0) scale(.985); }

@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes metric-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes row-arrive {
  from { opacity: 0; transform: translateX(7px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bar-rise { to { transform: scaleY(1); } }
@keyframes track-grow { to { transform: scaleX(1); } }
@keyframes status-breathe {
  0%, 100% { box-shadow: 0 0 0 3px #16a27c20; }
  50% { box-shadow: 0 0 0 6px #16a27c10; }
}

@media (max-width: 1150px) {
  #workspace-view { grid-template-columns: 194px minmax(0, 1fr); column-gap: 20px; }
  .tab { font-size: 10px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-grid, .report-layout { grid-template-columns: minmax(0, 1fr); }
  .trend-region, .funnel-region { grid-column: auto; }
}

@media (max-width: 720px) {
  #workspace-view { width: min(100% - 28px, 1480px); display: block; }
  .page-heading { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 0 17px; }
  .page-heading h1 { font-size: 25px; }
  .heading-badge { margin: 13px 0 0; font-size: 9px; }
  .tabs { position: static; display: flex; gap: 4px; margin: 0 -2px 17px; padding: 7px 7px 10px; overflow-x: auto; border: 1px solid #253637; border-radius: 6px; scrollbar-width: thin; scrollbar-color: #4a6660 #192627; }
  .tab-group { display: contents; }
  .tab-group-label { display: none; }
  .admin-nav-group { display: contents; margin: 0; padding: 0; border: 0; }
  .tab { width: auto; min-height: 36px; flex: 0 0 auto; padding: 0 9px; font-size: 10px; }
  .tab { color: #d5e1de; }
  .tab:hover { color: #fff; background: #223536; }
  .tab.active { color: #fff; background: #2b403d; }
  .tab.active .tab-mark { border-color: #47c2a5; background: #47c2a5; color: #163733; }
  .tab-mark { width: 19px; height: 19px; flex-basis: 19px; font-size: 7px; }
  .tab.active::after { top: auto; right: auto; bottom: 1px; left: 8px; width: 22px; height: 2px; }
  .tab-panel { width: 100%; min-height: 0; }
  .panel { margin: 0; padding: 0 0 25px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading > .button { min-height: 36px; padding-inline: 11px; font-size: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric-card { min-height: 96px; padding: 12px; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .data-region, .activity-region { padding: 13px; }
  .trend-chart { height: 155px; }
  .trend-column { min-width: 19px; }
  .product-row { grid-template-columns: minmax(0, 1fr) 40px 40px 50px; gap: 5px; }
  .communication-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Operations workspace */
:root {
  --ink: #14252a;
  --muted: #66777a;
  --line: #dbe3e4;
  --paper: #f4f7f7;
  --green: #0c766c;
  --green-dark: #075c55;
  --mint: #e3f2ee;
}

body { background: var(--paper); }
.login-layout { background: #f4f7f7; }
.login-card, .password-card { border-radius: 8px; box-shadow: 0 10px 32px #182d3212; }
.brand-mark, .small-mark { border-radius: 6px; box-shadow: none; }
.topbar { height: 64px; border-bottom-color: #d9e2e2; }
#workspace-view { width: min(100% - 56px, 1360px); }
.page-heading { padding: 32px 0 22px; }
.page-heading h1 { font-size: 31px; letter-spacing: 0; }
.page-heading .muted { max-width: 720px; font-size: 13px; }
.heading-badge { border-radius: 6px; border-color: #cfe2de; background: #e9f4f1; color: #176258; font-weight: 700; }
.tabs { gap: 0; border-bottom-color: #cad7d8; }
.tab { padding: 13px 14px; color: #5d7073; font-size: 11px; }
.tab:hover { color: var(--ink); background: #eaf0f0; }
.tab.active { color: var(--green); }
.tabs .tab { color: #d5e1de; }
.tabs .tab:hover { color: #fff; background: #223536; }
.tabs .tab.active { color: #fff; background: #2b403d; font-weight: 700; }
.tabs .tab.active .tab-mark { border-color: #47c2a5; background: #47c2a5; color: #163733; }
.tab.active::after { right: 8px; left: 8px; height: 3px; background: var(--green); }
.panel { min-height: 0; margin: 22px 0 0; padding: 0 0 36px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workspace-heading { margin-bottom: 20px; }
.workspace-heading h2 { font-size: 21px; letter-spacing: 0; }
.workspace-heading .muted { max-width: 850px; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric-card { min-width: 0; display: grid; gap: 6px; min-height: 116px; padding: 16px; border: 1px solid #dbe5e4; border-top: 3px solid #79bdb4; border-radius: 6px; background: #fff; }
.metric-card.attention { border-top-color: #d5a644; background: #fffcf5; }
.metric-card span { color: #617477; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
.metric-card strong { overflow-wrap: anywhere; color: #19383a; font-family: "Segoe UI", sans-serif; font-size: 29px; line-height: 1; }
.metric-card small { align-self: end; color: #7a8b8e; font-size: 10px; line-height: 1.35; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 16px; }
.data-region, .activity-region { min-width: 0; padding: 18px; border: 1px solid #dbe5e4; border-radius: 6px; background: #fff; }
.region-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.region-heading .eyebrow { margin-bottom: 4px; color: #14786d; font-size: 9px; }
.region-heading h3 { margin: 0; color: #1a3034; font-size: 14px; letter-spacing: 0; }
.region-period, .conversation-meta, .issue-meta { color: #738588; font-size: 10px; line-height: 1.4; text-align: right; }
.text-action { min-height: 28px; padding: 0; border: 0; background: transparent; color: #0b6a62; font-size: 11px; font-weight: 700; }
.text-action:hover { color: #084d49; text-decoration: underline; }
.trend-chart { height: 196px; display: flex; align-items: stretch; justify-content: space-between; gap: 8px; padding: 10px 0 0; border-bottom: 1px solid #e2e9e9; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: -3px 0 4px; color: #53696b; font-size: 10px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.legend-swatch.website { background: #168f7c; }
.legend-swatch.replies { background: #506fc5; }
.trend-column { min-width: 25px; display: grid; grid-template-rows: 1fr auto; gap: 8px; flex: 1; color: #728386; font-size: 10px; text-align: center; }
.trend-bars { min-height: 0; display: flex; align-items: end; justify-content: center; gap: 4px; border-bottom: 1px solid #e8eeee; }
.trend-bar { width: min(16px, 35%); min-height: 3px; border-radius: 2px 2px 0 0; }
.trend-bar.website { background: #168a7d; }
.trend-bar.replies { background: #4b85b6; }
.trend-column small { font-size: 9px; }
.trend-region { grid-column: 1; }
.funnel-region { grid-column: 2; }
.funnel-list { display: grid; gap: 15px; padding-top: 5px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; color: #43585b; font-size: 11px; }
.funnel-row strong { color: #1a3538; font-size: 12px; }
.funnel-track { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 3px; background: #edf2f2; }
.funnel-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #36a394; }
.funnel-track span[hidden] { display: none; }
.products-region, .conversations-region { min-height: 250px; }
.product-table { display: grid; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px 54px 66px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #e6eded; color: #607477; font-size: 11px; text-align: right; }
.product-row strong { overflow-wrap: anywhere; color: #274247; font-size: 11px; text-align: left; }
.product-header { padding-top: 0; border-top: 0; color: #809194; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.product-header span:first-child { text-align: left; }
.operations-conversation, .issue-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border: 0; border-top: 1px solid #e6eded; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.operations-conversation:first-child, .issue-row:first-child { border-top: 0; }
.operations-conversation:hover, .issue-row:hover { background: #f0f7f6; }
.operations-conversation > span:first-child, .issue-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.operations-conversation strong, .issue-row strong { overflow-wrap: anywhere; font-size: 11px; }
.operations-conversation small, .issue-row small { display: block; overflow: hidden; color: #66797c; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { flex: 0 0 102px; color: #0d756a; font-weight: 700; }
.activity-region { margin-top: 16px; }
.activity-region .region-heading { margin-bottom: 4px; }
.activity-item { padding: 14px 0; }
.activity-item .button { min-height: 32px; padding: 0 11px; font-size: 10px; }
.activity-item.urgent { border-left-color: #cd715f; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; }
.report-chart-region, .report-payment-region { min-height: 256px; }
.issue-chart { display: grid; gap: 15px; }
.issue-chart-row { display: grid; grid-template-columns: minmax(104px, .9fr) minmax(70px, 1.6fr) 28px; gap: 10px; align-items: center; color: #4d6568; font-size: 11px; }
.issue-track { height: 8px; overflow: hidden; border-radius: 3px; background: #eef2f2; }
.issue-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #c98b48; }
.issue-chart-row strong { color: #384f53; font-size: 12px; text-align: right; }
.payment-failure-list { display: grid; }
.payment-failure-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #e6eded; color: #4e6669; font-size: 11px; }
.payment-failure-row:first-child { border-top: 0; }
.payment-failure-row strong { color: #a04d43; font-size: 14px; }
.issue-feed-region { margin-top: 16px; }
.issue-feed-region .region-heading { margin-bottom: 4px; }
.issue-meta { flex: 0 0 90px; }
.communications-notice { border-radius: 6px; }
.communication-account, .communication-section { border-radius: 6px; }
.communication-grid { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
.communication-conversation { border-radius: 5px; }
.communication-conversation:hover, .communication-conversation.selected { border-color: #76afa7; background: #edf7f5; }
.communication-thread, .communication-message { border-radius: 5px; }
.topbar-right { gap: 10px; }
.assistant-launcher { position: static; display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: 5px; box-shadow: none; font-size: 10px; white-space: nowrap; }
.assistant-panel { bottom: 16px; max-height: min(780px, calc(100dvh - 32px)); animation: panel-arrive .22s ease both; }
.assistant-header { flex: 0 0 auto; }
.assistant-panel { border-radius: 7px; box-shadow: 0 18px 50px #142b302d; }
.workspace-footer { margin-top: 0; }

@media (max-width: 1050px) {
  #workspace-view { width: min(100% - 40px, 1360px); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-grid, .report-layout { grid-template-columns: 1fr; }
  .trend-region, .funnel-region { grid-column: auto; }
}

@media (max-width: 650px) {
	.follow-up-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.follow-up-summary-item:nth-child(2) { border-right: 0; }
	.follow-up-summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.assistant-panel { right: 8px; bottom: 8px; max-height: calc(100dvh - 16px); }
	.topbar-right { gap: 4px; }
	.topbar-right .button { padding-inline: 8px; }
	.notification-toggle { min-height: 32px; gap: 4px; padding: 0 7px; font-size: 10px; }
	.notification-panel { position: fixed; top: 78px; right: 14px; width: calc(100vw - 28px); max-height: calc(100dvh - 94px); }
  #workspace-view { width: min(100% - 28px, 1360px); }
  .page-heading { padding: 24px 0 18px; }
  .page-heading h1 { font-size: 26px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 104px; padding: 13px; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .data-region, .activity-region { padding: 14px; }
  .trend-chart { height: 168px; gap: 4px; }
  .trend-column { min-width: 20px; }
  .trend-column small { font-size: 8px; }
  .product-row { grid-template-columns: minmax(0, 1fr) 42px 42px 54px; gap: 6px; }
  .region-heading { align-items: flex-start; }
  .communications-notice { padding: 12px; }
  .communication-grid { grid-template-columns: 1fr; }
  .issue-chart-row { grid-template-columns: minmax(88px, 1fr) minmax(50px, 1fr) 22px; gap: 7px; }
  .operations-conversation small, .issue-row small { max-width: 190px; }
  .conversation-meta { flex-basis: 76px; }
  .issue-meta { flex-basis: 64px; }
}

@media (max-width: 360px) {
  .topbar .brand-lockup small { display: none; }
  .topbar .brand-lockup { font-size: 11px; }
}

.login-layout { min-height: 100dvh; grid-template-rows: auto auto 1fr; align-content: center; gap: 28px; }
.login-layout > .brand-lockup { align-self: end; position: relative; z-index: 1; }
.login-card { margin-top: 0; }
.login-foot { align-self: end; }

@media (min-width: 721px) {
  .tabs { max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #4a6660 #192627; }
}

.metric-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.metric-card:focus-visible, .funnel-row:focus-visible, .product-row:not(.product-header):focus-visible, .trend-column:focus-visible { outline: 2px solid #087b6d; outline-offset: 2px; }
.dashboard-evidence { margin: 16px 0; }
.evidence-list { display: grid; gap: 0; max-height: 480px; overflow-y: auto; }
.evidence-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #e4ebea; }
.evidence-row > div { display: grid; min-width: 0; gap: 3px; }
.evidence-row strong { color: #19383a; font-size: 13px; }
.evidence-row span { color: #3f5557; font-size: 12px; overflow-wrap: anywhere; }
.evidence-row small { color: #708083; font-size: 10px; overflow-wrap: anywhere; }
.evidence-row .button { flex: 0 0 auto; }
@media (max-width: 600px) { .evidence-row { align-items: stretch; flex-direction: column; } .evidence-row .button { align-self: flex-start; } }
.funnel-row, .product-row:not(.product-header), .trend-column { width: 100%; border: 0; background: transparent; font: inherit; cursor: pointer; }
.funnel-row:hover, .product-row:not(.product-header):hover, .trend-column:hover { background: #eef7f4; }
.trend-column { padding: 0 2px; }
.product-row:not(.product-header) { border-top: 1px solid #e6eded; }
.history-activity { width: 100%; text-align: left; }
.history-link { border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; }
.history-link:hover { background: #eef7f4; }
.activity-details-link { min-width: 0; display: grid; gap: 4px; padding: 5px 2px; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.activity-details-link:hover { background: #eef7f4; }
.activity-details-link:focus-visible { outline: 2px solid #087b6d; }
.follow-up-summary-item { background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.follow-up-summary-item:hover { background: #edf6f2; }
.follow-up-summary-item:focus-visible, .history-link:focus-visible { outline: 2px solid #087b6d; outline-offset: -2px; }

#assistant-home-panel { min-height: calc(100dvh - 205px); }
#assistant-home-panel .assistant-panel { position: static; z-index: auto; width: 100%; max-height: none; min-height: calc(100dvh - 275px); padding: 20px 24px; overflow: visible; box-shadow: none; animation: panel-arrive .3s ease both; }
#assistant-home-panel .assistant-header { position: static; }
#assistant-home-panel .assistant-messages { flex: 1; min-height: 340px; max-height: 55dvh; }
#assistant-home-panel .assistant-chat-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#assistant-home-panel .assistant-chat-form .button { align-self: end; }
@media (max-width: 720px) {
  .login-layout { gap: 18px; }
  #assistant-home-panel .assistant-panel { min-height: calc(100dvh - 240px); padding: 14px; }
  #assistant-home-panel .assistant-messages { min-height: 300px; }
}
