:root {
  color-scheme: light;
  --ink: #091a33;
  --muted: #5b6b82;
  --line: #d9e1ec;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --nav: #091520;
  --blue: #3157d5;
  --blue-dark: #2443aa;
  --green: #13825b;
  --red: #b4232e;
  --amber: #a96800;
  --focus: #86a3ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface-soft); }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.auth-page { min-height: 100vh; background: linear-gradient(120deg, #071724 0 36%, #f4f7fb 36%); display: grid; place-items: center; padding: 28px; }
.auth-shell { width: min(920px, 100%); min-height: 540px; display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--surface); border: 1px solid #cfd8e6; box-shadow: 0 24px 70px rgba(9, 26, 51, 0.18); }
.auth-brand { background: var(--nav); color: white; padding: 42px; display: flex; align-items: flex-start; gap: 14px; }
.auth-brand img { width: 44px; height: 44px; object-fit: contain; }
.auth-brand div { display: grid; gap: 2px; }
.auth-brand strong { font-size: 22px; }
.auth-brand span { color: #b9c6d7; font-size: 14px; }
.auth-panel { padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { margin: 5px 0 10px; font-size: 34px; line-height: 1.1; }
.auth-copy { margin: 0 0 26px; color: var(--muted); }
.eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.auth-form { display: grid; gap: 18px; }
.auth-form label, .toolbar label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #263750; }
.auth-form input, .toolbar input, .toolbar select { width: 100%; border: 1px solid #b9c5d5; border-radius: 5px; background: white; color: var(--ink); padding: 11px 12px; min-height: 42px; }
.auth-form input:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--blue); }
.auth-form .trust-device-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.auth-form .trust-device-option input { width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--blue); }
.trust-device-option span { display: grid; gap: 3px; }
.trust-device-option strong { color: var(--ink); font-size: 13px; }
.trust-device-option small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.auth-support { margin-top: 22px; color: var(--blue); font-size: 13px; font-weight: 700; }
.mfa-setup { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; padding: 16px 0 22px; }
.mfa-setup img { border: 1px solid var(--line); }
.mfa-setup code { display: block; margin-top: 8px; padding: 10px; border: 1px solid var(--line); background: var(--surface-soft); overflow-wrap: anywhere; }
.field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.code-input { font-variant-numeric: tabular-nums; font-size: 22px !important; letter-spacing: 0.18em !important; }

.button { min-height: 38px; border: 1px solid transparent; border-radius: 5px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-weight: 750; cursor: pointer; white-space: nowrap; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button-primary { background: var(--blue); color: white; border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: white; color: var(--ink); border-color: #b9c5d5; }
.button-secondary:hover { background: #edf2f8; }
.button-danger { background: #fff; color: var(--red); border-color: #dfabb0; }

.alert { margin: 0 28px 18px; border: 1px solid #b9c5d5; border-left: 4px solid var(--blue); background: white; color: var(--ink); padding: 11px 14px; font-size: 14px; }
.auth-panel .alert { margin: 0 0 18px; }
.alert-error { border-color: #e1b3b7; border-left-color: var(--red); background: #fff8f8; color: #7d1820; }
.alert-success { border-color: #aad9c8; border-left-color: var(--green); background: #f3fcf8; }

.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); transition: grid-template-columns 160ms ease; }
.admin-page.admin-loading .admin-layout { visibility: visible; opacity: 1; }
.admin-page:not(.admin-loading) .admin-layout { visibility: visible; opacity: 1; transition: opacity 120ms ease, grid-template-columns 160ms ease; }
.admin-loading-shell { display: none; margin: 28px; min-height: 420px; }
.admin-loading .admin-loading-shell { display: grid; align-content: start; gap: 16px; }
.admin-loading .admin-loading-shell span { display: block; height: 96px; border: 1px solid var(--line); background: linear-gradient(90deg, #f5f7fa 25%, #ffffff 50%, #f5f7fa 75%); background-size: 200% 100%; animation: admin-shell 1.2s linear infinite; }
.admin-loading .admin-view { display: none; }
@keyframes admin-shell { to { background-position: -200% 0; } }
.admin-layout.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav); color: white; padding: 18px 12px; display: flex; flex-direction: column; z-index: 20; }
.admin-logo { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; padding: 7px 8px 19px; border-bottom: 1px solid #2a3948; }
.admin-logo img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.admin-logo span { display: grid; }
.admin-logo strong { font-size: 16px; }
.admin-logo small { color: #9eb0c4; }
.sidebar-collapse { align-self: flex-end; width: 34px; height: 34px; margin: 8px 4px 0; border: 1px solid #38516a; border-radius: 4px; background: transparent; color: #bdd0e2; cursor: pointer; display: grid; place-items: center; }
.sidebar-collapse:hover { background: #142638; color: white; }
.sidebar-collapse svg { width: 18px; height: 18px; }
.admin-nav { display: grid; gap: 4px; padding: 8px 0 18px; }
.admin-nav button { position: relative; width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 5px; padding: 8px 10px; background: transparent; color: #c9d4e1; text-align: left; cursor: pointer; font-weight: 650; }
.admin-nav button:hover { background: #142638; color: white; }
.admin-nav button.active { background: #203b57; color: white; }
.nav-icon { width: 20px; height: 20px; color: #a9c4df; flex: 0 0 auto; }
.admin-nav button.active .nav-icon { color: #8eb2ff; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; display: inline-grid; place-items: center; background: #d83b46; color: white; font-size: 10px; font-weight: 800; }
.nav-badge[hidden] { display: none !important; }
.admin-user { margin-top: auto; border-top: 1px solid #2a3948; padding: 15px 5px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 9px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #3157d5; display: grid; place-items: center; font-weight: 800; }
.admin-user div:nth-child(2) { min-width: 0; display: grid; }
.admin-user strong, .admin-user span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-user strong { font-size: 13px; }
.admin-user span { color: #9eb0c4; font-size: 11px; }
.admin-user button { width: 30px; height: 30px; border: 0; border-radius: 4px; background: transparent; color: #c9d4e1; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.admin-user button svg { width: 18px; height: 18px; }
.admin-user button:hover { background: #203b57; }
.admin-user .admin-user-security { grid-column: 1 / -1; width: 100%; height: 34px; border: 1px solid #38516a; font-size: 12px; font-weight: 700; display: flex; gap: 7px; }
.admin-user .admin-user-security svg { width: 15px; height: 15px; }
.sidebar-collapsed .admin-sidebar { padding-left: 8px; padding-right: 8px; }
.sidebar-collapsed .admin-logo { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .admin-logo span, .sidebar-collapsed .nav-label, .sidebar-collapsed .admin-user > div:nth-child(2), .sidebar-collapsed .admin-user-security span { display: none; }
.sidebar-collapsed .sidebar-collapse { align-self: center; margin-right: 0; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .admin-nav button { justify-content: center; padding: 8px; }
.sidebar-collapsed .nav-badge { position: absolute; margin: -22px 0 0 26px; min-width: 18px; height: 18px; padding: 0 4px; }
.sidebar-collapsed .admin-user { grid-template-columns: 1fr; justify-items: center; }
.sidebar-collapsed .admin-user .admin-user-security { grid-column: 1; width: 38px; }

.admin-main { min-width: 0; }
.sidebar-backdrop { display: none; }
.admin-topbar { min-height: 82px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; gap: 18px; }
.admin-topbar div { flex: 1; }
.admin-topbar p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; font-size: 23px; line-height: 1.2; }
.menu-toggle { display: none; border: 1px solid #b9c5d5; background: white; border-radius: 4px; min-height: 38px; padding: 7px 10px; font-weight: 700; }
.admin-view { display: none; padding: 26px 28px 40px; }
.admin-view.active { display: block; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { position: relative; width: 100%; min-height: 116px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px; background: white; padding: 18px; color: inherit; font: inherit; text-align: left; }
.metric-link { cursor: pointer; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.metric-link::after { position: absolute; top: 16px; right: 16px; content: "\2192"; color: var(--muted); font-size: 18px; }
.metric-link:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.metric-link:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.metric:nth-child(2) { border-top-color: var(--green); }
.metric:nth-child(3) { border-top-color: var(--amber); }
.metric:nth-child(4) { border-top-color: var(--red); }
.metric strong { display: block; margin-top: 9px; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 13px; }
.metric small { display: block; margin-top: 9px; color: var(--muted); }

.section-block { border: 1px solid var(--line); background: white; }
.section-heading { min-height: 72px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions, .live-visitor-toggle { display: flex; align-items: center; gap: 10px; }
.live-visitor-toggle { color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-visitor-toggle input { accent-color: #16895a; }
.analytics-metrics > div.visitor-alert { animation: visitor-alert 1.8s ease-out; outline: 2px solid #16895a; outline-offset: -2px; }
@keyframes visitor-alert { from { background: #dff7eb; } to { background: transparent; } }
.toolbar { min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); background: white; display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.toolbar label { min-width: 145px; }
.toolbar-search { flex: 1; min-width: 220px !important; }
.toolbar-actions { margin-left: auto; display: flex; gap: 8px; }
.advanced-filter-panel { margin: -1px 0 14px; border: 1px solid var(--line); background: #fbfcfe; }
.advanced-filter-panel summary { width: fit-content; min-height: 38px; padding: 9px 14px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)); gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.filter-grid label { display: grid; gap: 6px; min-width: 0; color: #34465e; font-size: 12px; font-weight: 700; }
.filter-grid input, .filter-grid select { width: 100%; min-height: 38px; border: 1px solid #b9c5d5; border-radius: 4px; padding: 7px 9px; background: white; color: var(--ink); }
.filter-reset { align-self: end; }

.table-wrap { width: 100%; overflow: auto; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #51647c; background: #f7f9fc; font-size: 11px; text-align: left; text-transform: uppercase; }
th, td { padding: 11px 13px; border-bottom: 1px solid #e3e8f0; vertical-align: top; }
tbody tr[data-id] { cursor: pointer; }
tbody tr[data-id]:hover, tbody tr.selected { background: #edf3ff; }
td strong { display: block; font-size: 13px; }
td small { display: block; margin-top: 2px; color: var(--muted); }
.status { display: inline-flex; align-items: center; min-height: 24px; border: 1px solid #c7d1df; border-radius: 12px; padding: 2px 8px; background: #f5f7fa; color: #3a4b61; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.status-open, .status-active, .status-sent, .status-published, .status-resolved { background: #effaf5; color: #116745; border-color: #acd8c7; }
.status-new, .status-on_trial, .status-trialing, .status-in_review { background: #eef3ff; color: #244db7; border-color: #b6c7f2; }
.status-urgent, .status-failed, .status-disabled, .status-overdue { background: #fff1f2; color: #9b1c25; border-color: #e6b5ba; }
.status-pending, .status-processing, .status-pending_configuration { background: #fff7e8; color: #895500; border-color: #e4c58b; }
.status-scheduled { background: #f0f3ff; color: #3150b4; border-color: #b9c6ec; }
.status-retired, .status-archived, .status-ended { background: #f1f3f5; color: #576373; border-color: #cbd2db; }
.status-paused, .status-exhausted { background: #fff7e8; color: #895500; border-color: #e4c58b; }

.split-view { display: grid; grid-template-columns: minmax(500px, 1.25fr) minmax(340px, 0.75fr); border: 1px solid var(--line); background: white; min-height: 560px; }
.split-view > .table-wrap { border-right: 1px solid var(--line); }
.detail-panel { padding: 18px; min-width: 0; overflow: auto; }
.empty-state { min-height: 220px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.detail-header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-header h2 { margin: 4px 0; font-size: 19px; overflow-wrap: anywhere; }
.detail-header p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.detail-grid div { min-width: 0; }
.detail-grid span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.detail-grid strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 13px; }
.detail-message { border-left: 3px solid var(--blue); padding: 10px 12px; background: #f7f9fc; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 13px; }
.detail-message + .detail-message { margin-top: 10px; }
.detail-message-secondary { border-left-color: var(--green); }
.detail-actions { display: flex; gap: 8px; align-items: end; margin: 14px 0; }
.detail-actions label { display: grid; gap: 5px; flex: 1; font-size: 12px; font-weight: 700; }
.detail-actions select { min-height: 38px; border: 1px solid #b9c5d5; border-radius: 4px; background: white; padding: 7px 9px; }
.reply-form { margin-top: 16px; display: grid; gap: 8px; }
.reply-form textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid #b9c5d5; border-radius: 4px; padding: 10px; }
.message-history { display: grid; gap: 9px; margin-top: 16px; }
.message-bubble { max-width: 92%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; background: white; }
.message-bubble.agent { margin-left: auto; background: #edf3ff; border-color: #c1cff3; }
.message-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble small { display: block; margin-top: 5px; color: var(--muted); }
.attachment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.attachment-list a { border: 1px solid #b9c5d5; border-radius: 4px; padding: 6px 8px; color: var(--blue); text-decoration: none; font-size: 12px; }

.content-status { min-height: 34px; padding: 7px 2px; color: var(--muted); font-size: 13px; }
.content-fields { border: 1px solid var(--line); background: white; }
.content-field { display: grid; grid-template-columns: minmax(190px, 0.35fr) minmax(300px, 1fr); gap: 16px; padding: 12px 16px; border-bottom: 1px solid #e3e8f0; align-items: start; }
.content-field:last-child { border-bottom: 0; }
.content-field label { padding-top: 9px; color: #41536a; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.content-field input, .content-field textarea { width: 100%; border: 1px solid #b9c5d5; border-radius: 4px; padding: 9px 10px; color: var(--ink); background: white; }
.content-field textarea { min-height: 74px; resize: vertical; line-height: 1.45; }
.content-field[hidden] { display: none; }
.form-status { min-height: 18px; margin: 0; color: #496178; font-size: 12px; }
.form-status-error { color: #b42318; font-weight: 600; }

.observability-section, .resource-section { margin-bottom: 22px; }
.analytics-filters { border-top: 0; border-bottom: 1px solid var(--line); background: #f8fafc; }
.analytics-metrics, .pricing-metrics { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); border-bottom: 1px solid var(--line); }
.analytics-metrics > div, .pricing-metrics > div { min-height: 92px; padding: 15px 17px; border-right: 1px solid var(--line); background: white; }
.analytics-metrics > div:last-child, .pricing-metrics > div:last-child { border-right: 0; }
.analytics-metrics span, .pricing-metrics span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.analytics-metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.analytics-info { width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #9fb0c5; border-radius: 50%; background: #fff; color: #3157d5; font: 600 12px/1 system-ui; cursor: pointer; }
.analytics-info:hover, .analytics-info:focus-visible { border-color: #3157d5; background: #f0f4ff; outline: none; }
.metric-help p { font-size: 14px; }
.analytics-metrics strong, .pricing-metrics strong { display: block; margin-top: 7px; font-size: 25px; font-variant-numeric: tabular-nums; }
.analytics-metrics small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.observability-grid { display: grid; grid-template-columns: 1fr 1fr; }
.analytics-panel { min-width: 0; padding: 16px 18px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.analytics-panel:first-child { grid-column: 1 / -1; border-right: 0; }
.analytics-panel:nth-child(even) { border-right: 0; }
.analytics-panel:nth-last-child(-n+2) { border-bottom: 0; }
.live-connections { margin: -2px -2px 18px; border: 1px solid #cbd7e8; background: #f8fbff; }
.live-connections .mini-heading { min-height: 52px; padding: 10px 12px; align-items: center; border-bottom: 1px solid #d7e1ed; }
.live-connections .mini-heading > div span { display: block; margin-top: 3px; }
.live-status { display: inline-flex !important; align-items: center; gap: 6px; color: #147a49 !important; font-weight: 700; text-transform: uppercase; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: #18a05e; box-shadow: 0 0 0 4px rgba(24, 160, 94, .12); }
.live-connections-list { max-height: 190px; overflow: auto; }
.live-connection { min-height: 58px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.4fr) 72px; align-items: center; gap: 16px; padding: 9px 12px; border-bottom: 1px solid #e1e8f1; }
.live-connection:last-child { border-bottom: 0; }
.live-connection div { min-width: 0; }
.live-connection strong, .live-connection span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-connection strong { color: #162b45; font-size: 12px; }
.live-connection span, .live-connection time { margin-top: 3px; color: #5b6f87; font-size: 10px; font-variant-numeric: tabular-nums; }
.live-connection time { margin: 0; text-align: right; }
.live-connections-empty { padding: 18px 12px; color: var(--muted); font-size: 12px; }
.visitor-origin-heading { margin-top: 4px; }
@media (max-width: 760px) {
  .live-connection { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .live-connection > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .live-connection time { grid-column: 2; grid-row: 1; }
}
.mini-heading { min-height: 38px; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.mini-heading h3 { margin: 0; font-size: 14px; }
.mini-heading span { color: var(--muted); font-size: 11px; }
.trend-chart { height: 210px; display: flex; align-items: end; gap: 3px; padding-top: 16px; overflow: hidden; }
.trend-column { position: relative; flex: 1; min-width: 5px; height: 175px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #cfd8e5; }
.trend-bars { position: absolute; bottom: 20px; width: min(22px, 82%); height: calc(100% - 24px); overflow: visible; }
.trend-visitors { fill: #3157d5; }
.trend-views { fill: #b9c8ee; }
.trend-column small { position: absolute; bottom: 0; color: var(--muted); font-size: 8px; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }
.trend-chart.detailed { min-height: 292px; height: auto; display: block; padding-top: 10px; }
.trend-chart-shell { position: relative; height: 390px; min-height: 320px; }
.trend-chart-shell canvas { width: 100% !important; height: 100% !important; }
.trend-focus-detail { margin-left: auto; color: #3157d5; font-weight: 500; }
.trend-summary { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; color: #52647b; font-size: 12px; }
.trend-summary span { display: inline-flex; align-items: center; gap: 6px; }
.trend-summary b { color: #334760; font-weight: 600; }
.trend-key { width: 11px; height: 4px; display: inline-block; }
.trend-key.visitors { background: #3157d5; }
.trend-key.views { background: #c4d0e4; }
.trend-scroll { position: relative; overflow-x: auto; overflow-y: hidden; }
.trend-svg { width: 100%; min-width: 900px; height: 330px; display: block; }
.trend-grid line { stroke: #d5deea; stroke-width: 1; }
.trend-grid .trend-tick { stroke: #52647b; stroke-width: 1.5; }
.trend-grid text { fill: #263a52; font-size: 12px; font-weight: 500; }
.trend-date { fill: #263a52; font-size: 12px; font-weight: 500; }
.trend-axes line { stroke: #52647b; stroke-width: 1.5; }
.trend-axis-title { fill: #3d526b; font-size: 12px; font-weight: 600; }
.trend-hover-line { stroke: #52647b; stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.trend-focus-dot { fill: #fff; stroke: #3157d5; stroke-width: 3; pointer-events: none; }
.trend-tooltip { position: absolute; z-index: 2; width: 158px; padding: 10px 12px; border: 1px solid #9fb0c5; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .16); color: #172b45; font-size: 12px; pointer-events: none; }
.trend-tooltip strong, .trend-tooltip span { display: block; }
.trend-tooltip span { margin-top: 4px; color: #52647b; }
.trend-view-bar { fill: #c4d0e4; }
.trend-visitor-line { fill: none; stroke: #3157d5; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend-visitor-dot { fill: #3157d5; stroke: white; stroke-width: 1.5; }
.trend-value { fill: #173f9f; font-size: 9px; font-weight: 750; }
.visitor-map { position: relative; min-height: 300px; overflow: hidden; border: 1px solid #d5deea; background: #f8fafc; }
.visitor-map canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; display: block; }
.visitor-map canvas { cursor: grab; touch-action: none; }
.visitor-map canvas.dragging { cursor: grabbing; }
.map-controls { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; gap: 4px; }
.map-controls button { width: 34px; height: 34px; border: 1px solid #9fb0c5; border-radius: 4px; background: #fff; color: #17395f; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(15, 23, 42, .1); }
.map-controls button:hover, .map-controls button:focus-visible { border-color: #3157d5; color: #244bc1; }
.map-tooltip { position: absolute; z-index: 4; width: 178px; padding: 10px 12px; border: 1px solid #9fb0c5; background: #fff; box-shadow: 0 7px 20px rgba(15, 23, 42, .18); color: #172b45; font-size: 12px; pointer-events: none; }
.map-tooltip strong, .map-tooltip span, .map-tooltip small { display: block; }
.map-tooltip span { margin-top: 4px; color: #40546d; }
.map-tooltip small { margin-top: 6px; color: #657890; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.map-empty[hidden] { display: none !important; }
.rank-list { display: grid; gap: 10px; padding-top: 12px; }
.compact-ranks { max-height: 150px; overflow: auto; border-top: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(100px, 1fr) 38px; align-items: center; gap: 10px; }
.rank-row div:first-child { min-width: 0; }
.rank-row strong, .rank-row span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-row strong { font-size: 12px; }
.rank-row span { color: var(--muted); font-size: 10px; }
.rank-row b { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-progress { appearance: none; width: 100%; height: 6px; border: 0; background: #e7ecf3; }
.rank-progress::-webkit-progress-bar { background: #e7ecf3; }
.rank-progress::-webkit-progress-value { background: var(--blue); }
.rank-progress::-moz-progress-bar { background: var(--blue); }
.empty-inline { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.resource-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.resource-controls > div { display: grid; gap: 2px; text-align: right; }
.resource-updated, .resource-auto-refresh { color: var(--muted); font-size: 11px; white-space: nowrap; }
.resource-auto-refresh { color: #42556f; font-variant-numeric: tabular-nums; }
.icon-button-label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.icon-button-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.resource-meter { min-height: 132px; padding: 17px; border-right: 1px solid var(--line); background: white; }
.resource-meter:last-child { border-right: 0; }
.resource-meter > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.resource-meter span { color: var(--muted); font-size: 12px; }
.resource-meter strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.resource-meter small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.resource-progress { appearance: none; width: 100%; height: 7px; margin-top: 14px; border: 0; background: #e7ecf3; --meter-color: var(--green); }
.resource-progress::-webkit-progress-bar { background: #e7ecf3; }
.resource-progress::-webkit-progress-value { background: var(--meter-color); transition: width 180ms ease; }
.resource-progress::-moz-progress-bar { background: var(--meter-color); }
.resource-progress.meter-warning { --meter-color: var(--amber); }
.resource-progress.meter-critical { --meter-color: var(--red); }
.uptime-meter { display: flex; flex-direction: column; justify-content: center; border-right: 0; }
.resource-chart-panel { grid-column: 1 / -1; min-width: 0; padding: 18px 20px 14px; border-top: 1px solid var(--line); background: white; }
.resource-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.resource-chart-heading h3 { margin: 0; font-size: 15px; }
.resource-chart-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.resource-chart-actions { display: flex; align-items: center; gap: 6px; }
.segmented-control { display: inline-flex; border: 1px solid #b8c6d8; }
.segmented-control button, .chart-icon-button, .chart-reset-button { min-height: 31px; border: 0; border-right: 1px solid #b8c6d8; background: white; color: #203b5b; font: inherit; font-size: 11px; cursor: pointer; }
.segmented-control button { min-width: 38px; padding: 0 9px; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button:hover, .segmented-control button.active { background: #eaf1ff; color: #214fc6; }
.chart-icon-button { width: 32px; border: 1px solid #b8c6d8; font-size: 18px; line-height: 1; }
.chart-reset-button { padding: 0 11px; border: 1px solid #b8c6d8; }
.chart-icon-button:hover, .chart-reset-button:hover { border-color: #6d8bc5; background: #f3f7ff; }
.resource-chart-canvas { position: relative; height: 280px; margin-top: 12px; }
.resource-chart-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: #657890; font-size: 10px; font-variant-numeric: tabular-nums; }

.pricing-toolbar label { min-width: 250px; }
.pricing-metrics { margin-bottom: 14px; border: 1px solid var(--line); }
.pricing-layout { display: grid; grid-template-columns: minmax(620px, 1.35fr) minmax(360px, 0.65fr); border: 1px solid var(--line); background: white; }
.pricing-layout > .section-block { border: 0; border-right: 1px solid var(--line); }
.pricing-detail { min-height: 430px; }
.pricing-detail-header > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-detail-header > div h2 { margin: 0; }
.currency-price-stack { margin-top: 16px; border-top: 1px solid var(--line); }
.currency-price-section { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.currency-price-header { display: flex; align-items: center; gap: 10px; }
.currency-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid #9fb5cf; background: #f4f7fb; color: #17395f; font-size: 13px; font-weight: 800; }
.currency-price-header h3 { margin: 0; font-size: 15px; }
.currency-price-header div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.currency-current-price { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; margin-top: 14px; padding: 13px 14px; border-left: 3px solid var(--blue); background: #f4f7ff; }
.currency-current-price > div span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.currency-current-price > div strong { display: block; margin-top: 3px; font-size: 22px; font-variant-numeric: tabular-nums; }
.currency-current-price > small { grid-column: 1 / -1; color: #53657c; font-size: 10px; }
.currency-price-empty { margin-top: 14px; padding: 14px; border: 1px dashed #b9c5d5; color: var(--muted); font-size: 12px; }
.currency-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.currency-history-heading h4 { margin: 0; font-size: 12px; }
.currency-history-heading span { color: var(--muted); font-size: 10px; }
.currency-history-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #e1e7ef; }
.currency-version { padding: 11px 0; border-bottom: 1px solid #e1e7ef; }
.currency-version:last-child { border-bottom: 0; }
.currency-version-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.currency-version-main > strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.currency-version-period { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: #53657c; font-size: 10px; }
.currency-version p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.currency-history-empty { padding: 13px 0; color: var(--muted); font-size: 11px; }
.promotion-section { margin-top: 14px; }
.compact-table { border: 1px solid var(--line); margin-top: 15px; }
.compact-table th, .compact-table td { padding: 8px; }
.muted-cell { color: var(--muted); }
.dialog-grid { grid-template-columns: 1fr 1fr; }
.dialog-span { grid-column: 1 / -1; }
.dialog-form textarea { min-height: 78px; resize: vertical; border: 1px solid #b9c5d5; border-radius: 4px; padding: 9px 10px; }
.dialog-form small { color: var(--muted); font-size: 11px; font-weight: 500; }
.dialog-form [hidden] { display: none; }
.dialog-note { border-left: 3px solid var(--blue); background: #f4f7ff; color: #40516a; padding: 10px 12px; font-size: 12px; line-height: 1.45; }
.dialog-note strong, .dialog-note small { display: block; }
.dialog-note strong + small { margin-top: 2px; }
.dialog-alert { margin: 0 0 16px; }
.checkbox-label { display: flex !important; flex-direction: row; align-items: center; }
.checkbox-label input { min-height: 18px; width: 18px; }

dialog { width: min(560px, calc(100% - 28px)); border: 1px solid #b9c5d5; border-radius: 6px; padding: 0; color: var(--ink); box-shadow: 0 22px 70px rgba(9, 26, 51, 0.25); }
dialog::backdrop { background: rgba(4, 14, 26, 0.62); }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 4px; background: #edf1f6; font-size: 22px; cursor: pointer; }
#dialog-content { padding: 26px; }
#dialog-content h2 { margin: 0 42px 18px 0; }
#dialog-content p { color: var(--muted); line-height: 1.55; }
.dialog-form { display: grid; gap: 14px; }
.dialog-form label { display: grid; gap: 6px; color: #34465e; font-size: 13px; font-weight: 700; }
.dialog-form input, .dialog-form select { min-height: 42px; border: 1px solid #b9c5d5; border-radius: 4px; padding: 9px 10px; }
.credential-box { padding: 14px; border: 1px solid #e4c58b; background: #fff9ed; }
.credential-box code { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 14px; }

@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split-view { grid-template-columns: 1fr; }
  .split-view > .table-wrap { border-right: 0; border-bottom: 1px solid var(--line); max-height: 440px; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-layout > .section-block { border-right: 0; border-bottom: 1px solid var(--line); }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .resource-meter:nth-child(2) { border-right: 0; }
  .resource-meter:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .auth-page { padding: 0; background: var(--surface-soft); }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; }
  .auth-brand { padding: 20px 24px; min-height: 92px; }
  .auth-panel { padding: 32px 24px; justify-content: flex-start; }
  .mfa-setup { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-layout.sidebar-collapsed { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -245px; width: 228px; transition: left 160ms ease; box-shadow: 8px 0 30px rgba(4, 14, 26, 0.3); }
  .admin-sidebar.open { left: 0; }
  .sidebar-collapsed .admin-sidebar { width: 228px; padding: 18px 12px; }
  .sidebar-collapsed .admin-logo { justify-content: flex-start; padding: 7px 8px 19px; }
  .sidebar-collapsed .admin-logo span, .sidebar-collapsed .nav-label, .sidebar-collapsed .admin-user > div:nth-child(2), .sidebar-collapsed .admin-user-security span { display: grid; }
  .sidebar-collapsed .sidebar-collapse { align-self: flex-end; margin-right: 4px; }
  .sidebar-collapsed .sidebar-collapse svg { transform: none; }
  .sidebar-collapsed .admin-nav button { justify-content: flex-start; padding: 8px 10px; }
  .sidebar-collapsed .nav-badge { position: static; margin: 0 0 0 auto; min-width: 22px; height: 22px; }
  .sidebar-collapsed .admin-user { grid-template-columns: 34px minmax(0, 1fr) 30px; justify-items: stretch; }
  .sidebar-collapsed .admin-user .admin-user-security { grid-column: 1 / -1; width: 100%; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; border: 0; background: rgba(4, 14, 26, 0.5); cursor: default; }
  .sidebar-backdrop.open { display: block; }
  .menu-toggle { display: inline-flex; }
  .admin-topbar { padding: 13px 14px; }
  .admin-topbar .button { display: none; }
  .admin-view { padding: 16px 12px 28px; }
  .alert { margin: 0 12px 12px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { min-height: 104px; padding: 14px; }
  .metric strong { font-size: 25px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar label, .toolbar-search { min-width: 0 !important; }
  .toolbar-actions { margin-left: 0; }
  .toolbar-actions .button { flex: 1; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .analytics-filters { grid-template-columns: 1fr 1fr; }
  .analytics-metrics, .pricing-metrics { grid-template-columns: 1fr 1fr; }
  .analytics-metrics > div, .pricing-metrics > div { border-bottom: 1px solid var(--line); }
  .observability-grid { grid-template-columns: 1fr; }
  .analytics-panel, .analytics-panel:nth-child(even), .analytics-panel:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .analytics-panel:last-child { border-bottom: 0; }
  .resource-section .section-heading { align-items: flex-start; flex-direction: column; }
  .resource-controls { width: 100%; justify-content: space-between; }
  .resource-controls > div { text-align: left; }
  .resource-chart-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .resource-chart-actions { flex-wrap: wrap; }
  .resource-chart-canvas { height: 250px; }
  .pricing-toolbar label { min-width: 0; }
  .pricing-toolbar .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .content-field { grid-template-columns: 1fr; gap: 6px; }
  .content-field label { padding-top: 0; }
  .table-wrap { max-width: calc(100vw - 24px); }
  .split-view { min-height: 0; }
  .detail-panel { padding: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .admin-topbar h1 { font-size: 20px; }
  .filter-grid, .analytics-filters, .resource-grid, .dialog-grid { grid-template-columns: 1fr; }
  .dialog-span { grid-column: 1; }
  .resource-meter { border-right: 0; border-bottom: 1px solid var(--line); }
  .resource-meter:last-child { border-bottom: 0; }
  .resource-chart-panel { padding: 15px 12px 12px; }
  .resource-chart-foot { align-items: flex-start; flex-direction: column; }
}
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.clo-launcher { width: 76px; height: 88px; position: fixed; right: 22px; bottom: 18px; z-index: 55; padding: 4px; display: grid; place-items: center; border: 0; border-radius: 0; color: #102b68; background: transparent; box-shadow: none; font: inherit; font-weight: 800; cursor: pointer; will-change: transform; }
.clo-launcher:hover, .clo-launcher:focus-visible { background: transparent; outline: none; }
.clo-launcher:focus-visible .clo-character { filter: drop-shadow(0 0 5px rgba(49,87,213,.55)); }
.clo-launcher-label { position: absolute; right: 72px; bottom: 29px; min-width: 66px; padding: 6px 9px; border: 1px solid #b7c5dc; border-radius: 5px; color: #102b68; background: white; box-shadow: 0 7px 18px rgba(7,24,47,.14); font-size: 12px; line-height: 1; opacity: 0; visibility: hidden; transform: translateX(5px); transition: opacity .16s ease, transform .16s ease, visibility .16s; pointer-events: none; }
.clo-launcher-label::after { content: ""; position: absolute; right: -5px; top: 10px; width: 8px; height: 8px; border-top: 1px solid #b7c5dc; border-right: 1px solid #b7c5dc; background: white; transform: rotate(45deg); }
.clo-launcher:hover .clo-launcher-label, .clo-launcher:focus-visible .clo-launcher-label { opacity: 1; visibility: visible; transform: translateX(0); }
.clo-character { width: 58px; height: 66px; position: relative; flex: 0 0 58px; display: block; transform-origin: 50% 100%; animation: clo-breathe 2.6s ease-in-out infinite; }
.clo-character .clo-mascot { width: 40px; height: 36px; position: absolute; top: 2px; left: 9px; z-index: 4; border: 2px solid #3157d5; border-radius: 15px 15px 12px 12px; box-shadow: inset 0 -4px 0 #dfe8ff; }
.clo-character .clo-mascot img { width: 31px; height: 31px; }
.clo-character .clo-mascot::after { left: 10px; top: 9px; }
.clo-antenna { width: 3px; height: 8px; position: absolute; left: 28px; top: -4px; z-index: 3; border-radius: 3px; background: #3157d5; transform-origin: bottom; }
.clo-antenna::after { content: ""; width: 6px; height: 6px; position: absolute; left: -1.5px; top: -3px; border: 2px solid white; border-radius: 50%; background: #16a064; box-shadow: 0 0 0 1px #16a064; }
.clo-neck { width: 10px; height: 7px; position: absolute; left: 24px; top: 35px; z-index: 2; border-radius: 2px; background: #102b68; }
.clo-torso { width: 27px; height: 24px; position: absolute; left: 15px; top: 39px; z-index: 2; border: 2px solid #3157d5; border-radius: 7px 7px 5px 5px; background: linear-gradient(160deg, #fff 0 48%, #e9efff 49%); box-shadow: inset 0 -4px 0 #dbe5ff; }
.clo-torso > i { width: 9px; height: 9px; position: absolute; left: 7px; top: 5px; border: 2px solid #3157d5; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #8eabff; }
.clo-arm, .clo-leg { position: absolute; z-index: 1; display: block; transform-origin: top center; }
.clo-arm { width: 6px; height: 15px; top: 42px; border-radius: 5px; background: #6f91ec; }
.clo-arm-left { left: 9px; transform: rotate(14deg); }
.clo-arm-right { right: 9px; transform: rotate(-14deg); }
.clo-forearm { width: 5px; height: 10px; position: absolute; left: .5px; top: 11px; border-radius: 4px; background: #3157d5; transform-origin: top center; }
.clo-hand { width: 8px; height: 7px; position: absolute; left: -1px; top: 18px; border: 1px solid #3157d5; border-radius: 50%; background: white; }
.clo-leg { width: 7px; height: 11px; top: 58px; border-radius: 4px; background: #3157d5; }
.clo-leg-left { left: 19px; }
.clo-leg-right { right: 19px; }
.clo-shin { width: 6px; height: 8px; position: absolute; top: 7px; left: .5px; border-radius: 4px; background: #102b68; transform-origin: top center; }
.clo-foot { width: 11px; height: 5px; position: absolute; top: 13px; left: -2px; border-radius: 4px 5px 3px 3px; background: #102b68; }
.clo-launcher.is-walking .clo-character { animation: clo-walk-bob .26s ease-in-out infinite alternate; }
.clo-launcher.is-walking .clo-arm-left, .clo-launcher.is-walking .clo-leg-right { animation: clo-limb-forward .26s ease-in-out infinite alternate; }
.clo-launcher.is-walking .clo-arm-right, .clo-launcher.is-walking .clo-leg-left { animation: clo-limb-back .26s ease-in-out infinite alternate; }
.clo-launcher.is-waving .clo-arm-right { animation: clo-wave-arm .55s ease-in-out 4 alternate; }
.clo-launcher.is-looking .clo-mascot::after { animation: clo-look 1.8s ease-in-out; }
.clo-launcher.is-curious .clo-character { animation: clo-curious 1.4s ease-in-out; }
.clo-launcher:not(.is-walking):not(.is-waving) .clo-arm-left { animation: clo-idle-arm 2.8s ease-in-out infinite alternate; }
.clo-launcher:not(.is-walking):not(.is-waving) .clo-arm-right { animation: clo-idle-arm 2.8s .5s ease-in-out infinite alternate-reverse; }
.clo-launcher:not(.is-walking) .clo-antenna { animation: clo-antenna 1.9s ease-in-out infinite alternate; }
.clo-launcher:hover .clo-arm-right { animation: clo-wave-arm .42s ease-in-out infinite alternate; }
.clo-mascot { width: 40px; height: 40px; position: relative; display: grid; place-items: center; border-radius: 50%; background: #edf2ff; animation: clo-float 3.2s ease-in-out infinite; }
.clo-mascot img { width: 36px; height: 36px; object-fit: contain; }
.clo-mascot::after { content: ""; width: 17px; height: 17px; position: absolute; left: 11px; top: 11px; border: 1px solid #c4d0e4; border-radius: 50%; background: radial-gradient(circle at 32% 47%, #102b68 0 1.5px, transparent 2px), radial-gradient(circle at 68% 47%, #102b68 0 1.5px, transparent 2px), white; animation: clo-blink 5.5s infinite; }
.clo-mascot i { width: 9px; height: 9px; position: absolute; right: 1px; bottom: 2px; border: 2px solid white; border-radius: 50%; background: #16a064; }
.clo-panel.is-thinking .clo-mascot img { animation: clo-think 1.1s linear infinite; }
.clo-panel.is-thinking .clo-mascot i { background: #3f6ff0; animation: clo-pulse .8s ease-in-out infinite alternate; }
.clo-panel { width: min(390px, calc(100vw - 24px)); height: min(570px, calc(100vh - 110px)); position: fixed; right: 22px; bottom: 84px; z-index: 56; display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; border: 1px solid #b7c5dc; border-radius: 7px; background: white; box-shadow: 0 24px 60px rgba(7,24,47,.24); }
.clo-panel[hidden] { display: none; }
.clo-panel header { min-height: 66px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; color: white; background: #07182f; }
.clo-panel header > div { display: grid; gap: 2px; }
.clo-panel header small { color: #bdcbe0; }
.clo-panel header > button { width: 36px; height: 36px; margin-left: auto; border: 0; color: white; background: transparent; font-size: 25px; cursor: pointer; }
.clo-messages { padding: 15px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: #f6f8fc; }
.clo-message { max-width: 88%; padding: 10px 12px; border: 1px solid #d5deeb; border-radius: 6px; background: white; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.clo-message.user { align-self: flex-end; border-color: #b9c9f7; color: #102b68; background: #eaf0ff; }
.clo-suggestions { padding: 9px 12px; display: flex; gap: 7px; overflow-x: auto; border-top: 1px solid #e0e6ef; }
.clo-suggestions button { padding: 7px 9px; flex: 0 0 auto; border: 1px solid #b7c5dc; border-radius: 5px; color: #18346d; background: white; font: inherit; font-size: 12px; cursor: pointer; }
#clo-form { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #e0e6ef; }
#clo-input { width: 100%; min-height: 72px; max-height: 120px; padding: 10px 11px; box-sizing: border-box; resize: vertical; border: 1px solid #aebed6; border-radius: 5px; color: #07182f; font: inherit; line-height: 1.4; }
#clo-input:focus { border-color: #3157d5; outline: 3px solid rgba(49,87,213,.14); }
#clo-form button { width: 100%; min-height: 40px; border: 0; border-radius: 5px; color: white; background: #3157d5; font: inherit; font-weight: 750; cursor: pointer; }
#clo-form button:hover { background: #2348bf; }
.clo-panel footer { padding: 8px 12px; display: flex; justify-content: space-between; color: #66758a; border-top: 1px solid #e0e6ef; font-size: 11px; }
.clo-panel footer label { display: flex; align-items: center; gap: 5px; }
@media (max-width: 680px) { .clo-launcher { right: 8px; bottom: 8px; } .clo-panel { right: 12px; bottom: 92px; height: calc(100vh - 110px); } }
@keyframes clo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes clo-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes clo-think { to { transform: rotate(360deg); } }
@keyframes clo-pulse { to { transform: scale(1.28); } }
@keyframes clo-walk-bob { to { transform: translateY(-2px); } }
@keyframes clo-limb-forward { to { transform: rotate(28deg); } }
@keyframes clo-limb-back { to { transform: rotate(-28deg); } }
@keyframes clo-breathe { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes clo-wave-arm { from { transform: rotate(-18deg); } to { transform: rotate(-145deg); } }
@keyframes clo-look { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
@keyframes clo-curious { 0%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-7deg); } }
@keyframes clo-idle-arm { from { transform: rotate(10deg); } to { transform: rotate(22deg); } }
@keyframes clo-antenna { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .clo-character, .clo-mascot, .clo-mascot::after, .clo-panel.is-thinking .clo-mascot img, .clo-panel.is-thinking .clo-mascot i, .clo-launcher.is-walking .clo-arm, .clo-launcher.is-walking .clo-leg { animation: none; } }
