@font-face { font-family: "Plus Jakarta Sans"; src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: Roboto; src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #20212A;
  --ink-secondary: #747586;
  --muted: #A0A1B0;
  --line: #EAEAF0;
  --primary: #F54BAA;
  --primary-strong: #E83E99;
  --primary-soft: #FFF0F7;
  --primary-tint: #FFF0F7;
  --primary-mist: #FFF0F7;
  --primary-border: #FFD1E8;
  --primary-ink: #20212A;
  --surface: #FFFFFF;
  --background: #F7F7FA;
  --theme: #F54BAA;
  --sidebar: #111111;
  --sidebar-hover: #222222;
  --success: #1E9B71;
  --success-soft: #E8FFF3;
  --warning: #B58105;
  --warning-soft: #FFF8DD;
  --danger: #D14343;
  --danger-soft: #FFECEC;
  --info: #3B82F6;
  --info-soft: #EFF6FF;
  --ai: #7C6CF0;
  --ai-soft: #F1EEFF;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  /* Type scale (readable floor) */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 14px;
  --text-lg: 15px;
  --text-xl: 17px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-page: 26px;
  /* Radius / elevation */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 14px;
  --shadow-panel: 0 1px 2px rgba(32, 33, 42, .04), 0 4px 14px rgba(32, 33, 42, .03);
  --shadow-float: 0 8px 24px rgba(32, 33, 42, .08);
  --motion-fast: .14s ease;
  /* WhatsApp chat surface */
  --wa-green: #00a884;
  --wa-green-strong: #008f72;
  --wa-bubble-out: #d9fdd3;
  --wa-chat-bg: #efeae2;
  --wa-ink: #111b21;
  --wa-meta: #667781;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--font-sans); }
.app-shell { display: flex; min-height: 100vh; min-width: 0; width: 100%; overflow-x: clip; }
.app-shell > .sidebar { flex: 0 0 auto; }
.app-shell > .main-content { flex: 1 1 auto; min-width: 0; }
.page-canvas { min-width: 0; max-width: 100%; }
.sidebar { width: 248px; padding: 28px 16px; background: var(--sidebar); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 12px 42px; color: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; background: transparent; } .brand-logo { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand-wordmark { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.05; min-width: 0; }
.brand-wordmark-parent { font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand-mjo { color: #181c32; }
.brand-labs,
.brand-wordmark--on-dark .brand-labs,
.brand-wordmark--hero .brand-labs,
.landing-pro .brand-labs,
.landing-pro .lp2-brand-light .brand-labs,
.metronic-shell .brand-labs { color: #f04349; }
.brand-wordmark-product { color: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.45px; white-space: nowrap; }
.brand-wordmark--on-dark .brand-mjo,
.brand-wordmark--hero.brand-wordmark--on-dark .brand-mjo { color: #fff; }
.brand-wordmark--on-dark .brand-wordmark-product { color: #fff; }
.brand-wordmark--hero { gap: 4px; align-items: center; text-align: center; }
.brand-wordmark--hero .brand-wordmark-parent { font-size: 11px; letter-spacing: .18em; }
.brand-wordmark--hero .brand-wordmark-product {
  font-size: clamp(34px, 5.8vw, 56px); letter-spacing: -1.6px; line-height: 1;
  color: #ff59ae;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.metronic-shell .brand-wordmark-parent .brand-mjo { color: #fff; }
.metronic-shell .brand-wordmark-product { color: #fff; font-size: 14px; }
.metronic-shell .brand .nav-label { min-width: 0; margin-top: -10px; }
.brand .nav-label { margin-top: -10px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; color: #aeb7d5; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.2; }
.nav-item + .nav-item { margin-top: 4px; }
.nav-item:hover, .nav-item.active { background: #293253; color: #fff; }
.nav-icon, .card-icon { display: inline-grid; place-items: center; flex: 0 0 auto; }
.nav-icon { width: 18px; height: 18px; color: currentColor; line-height: 0; }
.nav-icon .icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.nav-label { display: inline-block; min-width: 0; line-height: 1.25; }
.icon { display: block; width: 18px; height: 18px; }
.main-content { flex: 1; min-width: 0; padding: 28px 4.5vw 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sidebar { display: flex; flex-direction: column; }
.sidebar nav { flex: 1; }
.sidebar-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.workspace-exit { color: #b5adba; }
.account-brand { display: inline-flex; align-items: center; gap: 10px; color: #181c32; font-size: 17px; font-weight: 800; text-decoration: none; }
.app-shell--account .topbar-heading { align-items: center; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: 28px; letter-spacing: -.7px; } h2 { max-width: 560px; margin-bottom: 10px; font-size: 27px; line-height: 1.2; letter-spacing: -.7px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .icon { width: 15px; height: 15px; }
.muted, .stat-card small { color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; color: #5b6680; font-size: 14px; font-weight: 500; }.workspace-role { padding: 4px 7px; border-radius: 5px; color: #ff59ae; background: #fff5fa; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.workspace-dot { width: 8px; height: 8px; border-radius: 50%; background: #36c98f; box-shadow: 0 0 0 4px #e4f8ef; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffe8f4; color: var(--primary); font-size: 12px; font-weight: 700; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border: 1px solid #ffc2e2; border-radius: 14px; background: linear-gradient(120deg, #fff5fa, #fff); }
.welcome-card p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 17px; border: 0; border-radius: var(--radius-md); background: var(--primary); color: #fff; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); box-shadow: none; }
.button .icon { width: 16px; height: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .stat-label, .stat-card small { display: block; } .stat-label { color: #5f6b85; font-size: 13px; font-weight: 500; } .stat-card strong { display: block; margin: 10px 0 3px; font-size: 30px; }
.card-icon { width: 36px; height: 36px; border-radius: 10px; } .card-icon.blue { color: #ff59ae; background: #fff5fa; } .card-icon.violet { color: #ff59ae; background: #fff5fa; } .card-icon.green { color: #18a873; background: #e8faf2; }
@media (max-width: 760px) {
  /* Icon-rail removed — mobile uses off-canvas drawer (see mobile-nav block). */
  .main-content { padding: 22px 18px 40px; }
  .topbar, .welcome-card { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Workspace inbox */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }.page-intro h2 { margin: 9px 0 9px; font-size: 28px; }.page-intro .muted { margin-bottom: 0; }.inbox-count { padding: 9px 12px; border: 1px solid #e6eaf3; border-radius: 8px; color: #8b96aa; background: #fff; font-size: 12px; white-space: nowrap; }.inbox-count strong { color: #ff59ae; font-size: 18px; margin-right: 4px; }
.inbox-layout { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; min-height: 560px; overflow: hidden; border: 1px solid #e6eaf2; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(32, 45, 83, .03); }.conversation-panel { border-right: 1px solid #e8ebf2; }.panel-toolbar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 20px; border-bottom: 1px solid #edf0f5; color: #34415f; font-size: 14px; }.panel-filter { display: inline-flex; align-items: center; gap: 6px; color: #75819a; font-size: 11px; font-weight: 600; }.panel-filter .icon { width: 13px; height: 13px; }.conversation-row { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid #f0f2f7; color: inherit; text-decoration: none; }.conversation-row:hover, .conversation-row.selected { background: #fff8fb; }.conversation-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; font-size: 11px; font-weight: 700; }.avatar-green { color: #219b72; background: #e1f7ed; }.avatar-violet { color: #ff59ae; background: #ffe8f4; }.conversation-main { min-width: 0; flex: 1; }.conversation-main strong, .conversation-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.conversation-main strong { color: #34415f; font-size: 13px; }.conversation-main small { margin-top: 5px; color: #9aa4b7; font-size: 11px; }.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }.conversation-meta time { color: #a3adbd; font-size: 9px; text-transform: uppercase; }.mode-badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }.mode-badge.autopilot { color: #1b9b70; background: #e5f8ef; }.mode-badge.ai_assist { color: #ff59ae; background: #ffe8f4; }.mode-badge.human { color: #bb7b2d; background: #fff2df; }.inbox-empty, .message-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 300px; padding: 24px; text-align: center; }.inbox-empty strong, .message-empty strong { margin-top: 15px; color: #45516e; font-size: 14px; }.inbox-empty p, .message-empty p { max-width: 230px; margin: 8px 0 0; color: #9aa4b7; font-size: 12px; line-height: 1.6; }.empty-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; color: #ff59ae; background: #fff5fa; }.empty-icon .icon { width: 21px; height: 21px; }.message-panel { min-width: 0; background: #fffbfb; }.message-header { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 13px 22px; border-bottom: 1px solid #edf0f5; }.message-header .eyebrow { margin-bottom: 3px; font-size: 9px; }.message-header h3 { margin: 0 0 3px; color: #34415f; font-size: 15px; }.message-header small { color: #9aa4b7; font-size: 11px; }.message-stream { display: flex; flex-direction: column; gap: 11px; min-height: 380px; padding: 25px 22px; }.message-bubble { max-width: 70%; padding: 11px 13px; border-radius: 11px; }.message-media-tag { display: inline-block; margin-bottom: 6px; padding: 2px 6px; border-radius: 4px; color: #ff59ae; background: #ffe8f4; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.message-media-preview { display: block; margin: 0 0 8px; overflow: hidden; border-radius: 8px; border: 1px solid #e8ebf2; }.message-media-preview img { display: block; max-width: 100%; max-height: 220px; object-fit: cover; }.message-media-link { display: inline-flex; margin: 0 0 8px; color: #ff59ae; font-size: 11px; font-weight: 700; text-decoration: none; }.message-ack { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }.message-ack.ack-sent, .message-ack.ack-queued { color: #9aa4b7; }.message-ack.ack-delivered { color: #5b6b88; }.message-ack.ack-read { color: #1b9b70; }.message-ack.ack-failed { color: #ff59ae; }.message-ack.ack-unknown { color: #b17a25; }.message-bubble p { margin: 0; color: #53617c; font-size: 12px; line-height: 1.55; }.message-bubble time { display: block; margin-top: 6px; color: #a0a9ba; font-size: 9px; }.message-bubble.inbound { align-self: flex-start; background: #fff; border: 1px solid #e8ebf2; border-bottom-left-radius: 3px; }.message-bubble.outbound { align-self: flex-end; background: #e9edff; border-bottom-right-radius: 3px; }.message-empty-large { min-height: 490px; }.handoff-notice { display: flex; gap: 10px; margin: 0 22px 20px; padding: 12px; border: 1px solid #ffe8f4; border-radius: 9px; background: #fff5fa; }.notice-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; color: #ff59ae; background: #ffe8f4; }.notice-icon .icon { width: 15px; height: 15px; }.handoff-notice p { margin: 0; color: #7d89a3; font-size: 10px; line-height: 1.5; }.handoff-notice strong { color: #ff59ae; font-size: 11px; }
@media (max-width: 840px) { .inbox-layout { grid-template-columns: 1fr; }.conversation-panel { border-right: 0; border-bottom: 1px solid #e8ebf2; }.message-panel { min-height: 500px; } }
@media (max-width: 620px) { .page-intro { align-items: flex-start; flex-direction: column; }.page-intro h2 { font-size: 24px; }.inbox-layout { margin: 0 -2px; }.conversation-row { padding: 14px 12px; }.message-bubble { max-width: 88%; } }

/* WhatsApp onboarding */
.connection-intro { margin-bottom: 22px; }.onboarding-banner { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; padding: 18px 21px; border: 1px solid #ffe8f4; border-radius: 12px; background: linear-gradient(110deg, #fff5fa, #fff); }.onboarding-number { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; color: #ff59ae; background: #ffe8f4; font-size: 11px; font-weight: 800; }.onboarding-banner .eyebrow { margin-bottom: 4px; font-size: 9px; }.onboarding-banner h3 { margin: 0 0 4px; color: #3a4770; font-size: 15px; }.onboarding-banner p:last-child { margin: 0; color: #818ca5; font-size: 11px; line-height: 1.5; }.onboarding-check { display: grid; place-items: center; width: 27px; height: 27px; margin-left: auto; border-radius: 50%; color: #1b9d72; background: #dbf7eb; }.onboarding-check .icon { width: 15px; height: 15px; }.connection-layout { display: grid; grid-template-columns: minmax(320px, .75fr) 1.25fr; min-height: 520px; overflow: hidden; border: 1px solid #e6eaf2; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(32, 45, 83, .03); }.connection-list-panel { border-right: 1px solid #e8ebf2; }.connection-row { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid #f0f2f7; color: inherit; text-decoration: none; }.connection-row:hover, .connection-row.selected { background: #fff8fb; }.connection-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: #ff59ae; background: #fff5fa; }.connection-icon .icon { width: 18px; height: 18px; }.connection-status { display: inline-flex; align-items: center; gap: 5px; color: #8b96aa; font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }.connection-status i { width: 6px; height: 6px; border-radius: 50%; background: #aab3c2; }.connection-status.connected i, .connection-status.ready i, .connection-status.open i { background: #39c591; }.connection-status.connected, .connection-status.ready, .connection-status.open { color: #239b72; }.connection-status.created i, .connection-status.qr_ready i { background: #e5ae4d; }.connection-status.created, .connection-status.qr_ready { color: #b17a25; }.connection-empty { min-height: 400px; }.disabled-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; padding: 9px 12px; border-radius: 7px; color: #8490a9; background: #f1f3f8; font-size: 11px; font-weight: 700; }.disabled-action .icon { width: 13px; height: 13px; }.connection-detail { min-width: 0; background: #fffbfb; }.connection-detail-head { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 17px 23px; border-bottom: 1px solid #edf0f5; }.connection-detail-head .eyebrow { margin-bottom: 4px; font-size: 9px; }.connection-detail-head h3 { margin: 0 0 3px; color: #34415f; font-size: 16px; }.connection-detail-head small { color: #9aa4b7; font-size: 11px; }.qr-card { display: flex; align-items: center; gap: 23px; margin: 25px 23px; padding: 22px; border: 1px solid #ffe8f4; border-radius: 12px; background: #fff; }.qr-placeholder { display: grid; place-items: center; flex: 0 0 150px; width: 150px; height: 150px; border: 1px dashed #f5c4c8; border-radius: 10px; color: #ff59ae; background: repeating-linear-gradient(45deg, #fffafb, #fffafb 8px, #fff5fa 8px, #fff5fa 16px); }.qr-placeholder .icon { width: 70px; height: 70px; }.qr-card .eyebrow { margin-bottom: 7px; font-size: 9px; }.qr-card h3 { margin: 0 0 8px; color: #3b4867; font-size: 17px; }.qr-card p { max-width: 350px; margin: 0 0 14px; color: #8590a6; font-size: 12px; line-height: 1.6; }.qr-note { display: inline-flex; align-items: center; gap: 5px; color: #ff59ae; font-size: 10px; font-weight: 700; }.qr-note .icon { width: 14px; height: 14px; }.connection-next { display: flex; align-items: center; gap: 12px; margin: 0 23px; padding: 15px; border-top: 1px solid #edf0f5; }.step-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; color: #7c88a2; background: #eef0f5; font-size: 10px; font-weight: 800; }.connection-next strong { color: #4c5873; font-size: 12px; }.connection-next p { margin: 4px 0 0; color: #939db0; font-size: 10px; }.coming-soon { margin-left: auto; color: #9ca6b8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 840px) { .connection-layout { grid-template-columns: 1fr; }.connection-list-panel { border-right: 0; border-bottom: 1px solid #e8ebf2; } } @media (max-width: 620px) { .onboarding-banner { align-items: flex-start; }.onboarding-check { display: none; }.qr-card { align-items: flex-start; flex-direction: column; }.qr-placeholder { flex-basis: 130px; width: 130px; height: 130px; }.connection-detail-head { padding-right: 15px; padding-left: 15px; } }

/* Mini CRM pipeline */
.crm-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }.crm-summary article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid #e7eaf2; border-radius: 11px; background: #fff; }.summary-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; }.summary-icon .icon { width: 17px; height: 17px; }.summary-icon.blue { color: #ff59ae; background: #fff5fa; }.summary-icon.violet { color: #ff59ae; background: #fff5fa; }.summary-icon.green { color: #1aa879; background: #e5f9f0; }.crm-summary small { display: block; color: #909aae; font-size: 10px; }.crm-summary strong { display: block; margin-top: 4px; color: #34415f; font-size: 21px; }.pipeline-section { overflow: hidden; border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; }.pipeline-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #edf0f5; }.pipeline-toolbar strong { color: #34415f; font-size: 14px; }.pipeline-toolbar span { margin-left: 10px; color: #9aa4b7; font-size: 10px; }.pipeline-grid { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 11px; overflow-x: auto; padding: 16px; background: #faf7f8; }.pipeline-column { min-height: 270px; padding: 9px; border-radius: 9px; background: #f1f3f8; }.pipeline-column-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 11px; color: #7d89a1; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.pipeline-column-head b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #66738d; background: #e4e7ee; font-size: 9px; }.lead-card { margin-bottom: 9px; padding: 13px; border: 1px solid #e7eaf2; border-radius: 9px; background: #fff; box-shadow: 0 3px 7px rgba(37, 49, 87, .03); }.lead-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.lead-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 8px; font-weight: 800; }.lead-avatar.cold { color: #70809c; background: #e8ecf3; }.lead-avatar.warm { color: #b17a25; background: #fff0d8; }.lead-avatar.hot { color: #f03d98; background: #ffe6e2; }.temperature { font-size: 8px; font-weight: 800; text-transform: uppercase; }.temperature.cold { color: #8d98aa; }.temperature.warm { color: #b17a25; }.temperature.hot { color: #f03d98; }.lead-card > strong, .lead-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.lead-card > strong { color: #40506e; font-size: 12px; }.lead-card > small { margin-top: 4px; color: #a0a9b9; font-size: 9px; }.lead-score { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-top: 13px; color: #9aa4b7; font-size: 9px; }.lead-score b { color: #ff59ae; }.lead-score > div { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 5px; background: #edf0f5; }.lead-score i { display: block; height: 100%; border-radius: 5px; background: #ff59ae; }.next-action { display: flex; gap: 4px; margin: 11px 0 0; padding-top: 9px; border-top: 1px solid #f0f2f6; color: #7683a1; font-size: 9px; line-height: 1.4; }.next-action .icon { flex: 0 0 12px; width: 12px; height: 12px; color: #ff59ae; }.lead-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }.source-tag, .assignment-tag { color: #9ca6b8; font-size: 8px; font-weight: 700; text-transform: uppercase; }.assignment-tag { color: #30a77e; }.pipeline-empty { padding: 30px 5px; color: #a8b0c0; font-size: 10px; text-align: center; }.crm-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 370px; padding: 30px; text-align: center; }.crm-empty strong { margin-top: 15px; color: #45516e; font-size: 14px; }.crm-empty p { max-width: 270px; margin: 8px 0 0; color: #9aa4b7; font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) { .crm-summary { grid-template-columns: 1fr; }.pipeline-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }.pipeline-toolbar span { margin-left: 0; }.pipeline-grid { grid-template-columns: repeat(5, 180px); } }

/* Knowledge and AI agents */
.knowledge-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }.knowledge-summary article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid #e7eaf2; border-radius: 11px; background: #fff; }.knowledge-summary small { display: block; color: #909aae; font-size: 10px; }.knowledge-summary strong { display: block; margin-top: 4px; color: #34415f; font-size: 21px; }.knowledge-layout { display: grid; grid-template-columns: 1.3fr .7fr; min-height: 470px; overflow: hidden; border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; }.knowledge-list-panel { border-right: 1px solid #e8ebf2; }.knowledge-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px 19px; border-bottom: 1px solid #f0f2f7; }.knowledge-kind { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; color: #ff59ae; background: #fff5fa; }.knowledge-kind.product { color: #218fca; background: #e8f6ff; }.knowledge-kind.faq { color: #b17a25; background: #fff3df; }.knowledge-kind.policy { color: #e879b0; background: #ffedf0; }.knowledge-kind .icon { width: 17px; height: 17px; }.knowledge-main { min-width: 0; flex: 1; }.knowledge-main > div { display: flex; align-items: center; gap: 8px; }.knowledge-main strong { overflow: hidden; color: #40506e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.knowledge-main > small { display: block; margin-top: 5px; color: #9ca5b7; font-size: 9px; text-transform: uppercase; }.knowledge-main p { margin: 9px 0 0; color: #7f8ba2; font-size: 11px; line-height: 1.5; }.verification { padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; text-transform: uppercase; }.verification.verified { color: #219b72; background: #e4f8ef; }.verification.draft { color: #b17a25; background: #fff1da; }.verification.archived { color: #8d97a8; background: #edf0f4; }.knowledge-arrow { color: #aab2c1; }.knowledge-arrow .icon { width: 15px; height: 15px; }.candidate-panel { background: #fffbfb; }.candidate-row { display: flex; align-items: flex-start; gap: 9px; padding: 15px 16px; border-bottom: 1px solid #edf0f5; }.candidate-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; color: #ff59ae; background: #ffe8f4; }.candidate-icon .icon { width: 14px; height: 14px; }.candidate-row > div { min-width: 0; flex: 1; }.candidate-row strong, .candidate-row small { display: block; }.candidate-row strong { color: #55627e; font-size: 10px; line-height: 1.4; }.candidate-row small { margin-top: 5px; color: #9da6b7; font-size: 8px; }.candidate-state { padding: 3px 5px; border-radius: 4px; color: #a27b32; background: #fff2dc; font-size: 7px; font-weight: 800; }.candidate-state.verified { color: #219b72; background: #e4f8ef; }.candidate-state.rejected { color: #e879b0; background: #fff5fa; }.review-note { display: flex; gap: 6px; margin: 16px; padding: 10px; border-radius: 7px; color: #7a86a0; background: #fff5fa; font-size: 9px; line-height: 1.5; }.review-note .icon { flex: 0 0 13px; width: 13px; height: 13px; color: #ff59ae; }
.agent-policy-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding: 17px 20px; border: 1px solid #ffe8f4; border-radius: 11px; background: linear-gradient(110deg, #fff5fa, #fff); }.agent-policy-banner .feature-icon { flex: 0 0 38px; width: 38px; height: 38px; }.agent-policy-banner strong { color: #ff59ae; font-size: 12px; }.agent-policy-banner p { margin: 4px 0 0; color: #838da4; font-size: 10px; line-height: 1.5; }.policy-label { margin-left: auto; color: #ff59ae; font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }.agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.agent-card { padding: 20px; border: 1px solid #e7eaf2; border-radius: 13px; background: #fff; }.agent-card header { display: flex; align-items: center; gap: 11px; }.agent-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #ff59ae; background: #ffe8f4; }.agent-avatar .icon { width: 20px; height: 20px; }.agent-card h3 { margin: 0 0 4px; color: #394766; font-size: 15px; }.agent-card header small { color: #9aa4b7; font-size: 10px; }.agent-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #a0a9b8; font-size: 8px; font-weight: 800; text-transform: uppercase; }.agent-status i { width: 6px; height: 6px; border-radius: 50%; background: #aeb6c4; }.agent-status.active { color: #269d75; }.agent-status.active i { background: #3bc693; }.agent-status.paused { color: #b17a25; }.agent-status.paused i { background: #e4af4f; }.agent-mode { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding: 12px; border-radius: 8px; background: #faf7f8; }.agent-mode small { color: #8d98ac; font-size: 9px; }.agent-mode strong { color: #ff59ae; font-size: 9px; text-transform: uppercase; }.agent-settings { margin-top: 14px; }.agent-settings > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; }.agent-settings > div > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; color: #ff59ae; background: #fff5fa; }.agent-settings .icon { width: 13px; height: 13px; }.agent-settings p { margin: 0; }.agent-settings b, .agent-settings small { display: block; }.agent-settings b { color: #58657f; font-size: 10px; }.agent-settings small { margin-top: 3px; color: #a2aabb; font-size: 9px; }.agent-card footer { display: flex; justify-content: space-between; margin-top: 17px; color: #a0a9b8; font-size: 9px; }.agent-api-status { display: inline-flex; align-items: center; gap: 4px; color: #2aa47a; font-weight: 700; }.agent-api-status .icon { width: 11px; height: 11px; }.agent-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 370px; padding: 30px; border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; text-align: center; }.agent-empty strong { margin-top: 15px; color: #45516e; font-size: 14px; }.agent-empty p { max-width: 300px; margin: 8px 0 0; color: #9aa4b7; font-size: 12px; line-height: 1.6; }
@media (max-width: 850px) { .knowledge-layout { grid-template-columns: 1fr; }.knowledge-list-panel { border-right: 0; border-bottom: 1px solid #e8ebf2; }.agent-grid { grid-template-columns: 1fr; } } @media (max-width: 620px) { .knowledge-summary { grid-template-columns: 1fr; }.agent-policy-banner { align-items: flex-start; }.policy-label { display: none; }.knowledge-row { padding-right: 12px; padding-left: 12px; } }

/* Billing and wallet */
.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 23px; padding: 25px 28px; overflow: hidden; border-radius: 14px; color: #111; background: linear-gradient(120deg, #ffe8f4, #ffc2e2); box-shadow: 0 14px 30px rgba(255, 89, 174, .18); }.wallet-label { display: block; color: #f03d98; font-size: 10px; font-weight: 800; letter-spacing: .1em; }.wallet-balance strong { display: block; margin: 9px 0 5px; font-size: 35px; letter-spacing: -1px; }.wallet-balance small { color: #f03d98; font-size: 10px; }.wallet-meta { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(17,17,17,.12); border-radius: 9px; background: rgba(255,255,255,.55); }.wallet-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #c98920; background: rgba(255, 224, 124, .28); }.wallet-icon .icon { width: 16px; height: 16px; }.wallet-meta p { margin: 0; color: #f03d98; font-size: 10px; line-height: 1.5; }.wallet-meta strong { color: #fff; font-size: 11px; }.billing-section, .billing-table-card { border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; }.billing-section { padding: 21px; }.billing-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.billing-section-head h3 { margin: 5px 0 0; color: #384564; font-size: 17px; }.api-label { color: #2aa078; font-size: 9px; font-weight: 800; text-transform: uppercase; }.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; }.package-card { position: relative; padding: 18px; border: 1px solid #e7eaf2; border-radius: 10px; background: #fffbfb; }.package-featured { border-color: #ffc2e2; background: #fff5fa; box-shadow: 0 7px 17px rgba(255, 89, 174, .08); }.package-popular { position: absolute; top: 12px; right: 12px; padding: 4px 6px; border-radius: 4px; color: #ff59ae; background: #ffe8f4; font-size: 8px; font-weight: 800; text-transform: uppercase; }.package-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #ff59ae; background: #ffe8f4; }.package-icon .icon { width: 16px; height: 16px; }.package-card h4 { margin: 15px 0 6px; color: #45516e; font-size: 13px; }.package-card > strong { display: block; color: #ff59ae; font-size: 19px; }.package-card > p { margin: 5px 0 16px; color: #929caf; font-size: 11px; }.package-card .disabled-action { margin-top: 0; }.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }.billing-table-card { overflow: hidden; }
.billing-history { margin-top: 22px; padding: 21px; border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; }
.billing-history-tabs,
.metronic-shell .billing-history-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0 14px;
  padding: 4px;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  background: #f3f5f9;
}
a.billing-history-tab,
.metronic-shell a.billing-history-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: #6d7a94 !important;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
a.billing-history-tab:hover,
a.billing-history-tab:focus-visible,
.metronic-shell a.billing-history-tab:hover,
.metronic-shell a.billing-history-tab:focus-visible {
  color: #3f4d6a !important;
  background: rgba(255,255,255,.75);
  text-decoration: none !important;
}
a.billing-history-tab.is-active,
a.billing-history-tab[aria-selected="true"],
.metronic-shell a.billing-history-tab.is-active,
.metronic-shell a.billing-history-tab[aria-selected="true"] {
  color: #ff59ae !important;
  background: #fff;
  box-shadow: 0 1px 5px rgba(32, 45, 83, .1);
  text-decoration: none !important;
}
.billing-history-panel { border: 1px solid #eef1f5; border-radius: 12px; overflow: hidden; }
.billing-history-panel .panel-toolbar { min-height: 52px; height: auto; }
.billing-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f0f2f6;
  background: #fafbfc;
}
.billing-pager-meta { color: #8a94a8; font-size: 11px; font-weight: 700; }
.billing-pager .button-ghost { border: 1px solid #e7eaf2; color: #53617d; background: #fff; text-decoration: none; }
.billing-pager .button-ghost:hover { border-color: #ffc2e2; color: #ff59ae; background: #fff8fb; }
.billing-pager .is-disabled { opacity: .45; pointer-events: none; }
.page-intro a.inbox-count { text-decoration: none; }.ledger-row, .payment-row { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid #f0f2f6; }.ledger-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; }.ledger-icon .icon { width: 13px; height: 13px; }.ledger-icon.positive { color: #28a47a; background: #e5f8ef; }.ledger-icon.negative { color: #db2777; background: #fff5fa; }.ledger-row div, .payment-row div { min-width: 0; flex: 1; }.ledger-row strong, .ledger-row small, .payment-row strong, .payment-row small { display: block; }.ledger-row strong, .payment-row strong { color: #53617d; font-size: 10px; }.ledger-row small, .payment-row small { margin-top: 4px; overflow: hidden; color: #a0a9b9; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.ledger-amount { font-size: 12px; }.ledger-amount.positive { color: #269c74; }.ledger-amount.negative { color: #db2777; }.payment-provider { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #ff59ae; background: #ffe8f4; font-size: 8px; font-weight: 800; }.payment-status { padding: 4px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; text-transform: uppercase; }.payment-status.paid, .payment-status.succeeded { color: #249b72; background: #e5f8ef; }.payment-status.pending { color: #b17a25; background: #fff1da; }.payment-status.failed, .payment-status.cancelled { color: #e879b0; background: #fff5fa; }.billing-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 180px; padding: 25px; text-align: center; }.billing-empty.compact { min-height: 240px; }.billing-empty strong { margin-top: 12px; color: #53617d; font-size: 12px; }.billing-empty p { max-width: 250px; margin: 7px 0 0; color: #9aa4b7; font-size: 10px; line-height: 1.5; }.billing-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 17px 0; color: #8994aa; font-size: 10px; }.billing-note .icon { width: 14px; height: 14px; color: #ff59ae; }
@media (max-width: 820px) {
  .wallet-hero { align-items: flex-start; flex-direction: column; }
  .wallet-meta { width: 100%; }
  .billing-grid { grid-template-columns: 1fr; }
  .billing-history { padding: 16px; }
}
@media (max-width: 620px) {
  .package-grid { grid-template-columns: 1fr; }
  .billing-section { padding: 15px; }
  .billing-section-head { flex-direction: column; gap: 8px; }
  .billing-note { align-items: flex-start; justify-content: flex-start; line-height: 1.5; }
  .billing-history-tabs,
  .metronic-shell .billing-history-tabs { flex-direction: column; }
  .billing-pager { flex-wrap: wrap; justify-content: center; }
}
.usage-panel { margin: 0 0 22px; padding: 21px; border: 1px solid #e7eaf2; border-radius: 14px; background: #fff; }
.usage-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.usage-rules article { padding: 14px 15px; border: 1px solid #eef1f5; border-radius: 10px; background: #fafbfc; }
.usage-rules strong { display: block; color: #384564; font-size: 12px; }
.usage-rules p { margin: 6px 0 0; color: #8a94a8; font-size: 11px; line-height: 1.5; }
.usage-stats { margin-top: 16px; }
.usage-stats article span.muted { display: block; margin-top: 4px; font-size: 10px; color: #9aa4b7; }
.usage-alert { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #ffe0a8; border-radius: 12px; background: #fff9eb; }
.usage-alert--warn { border-color: #ffc2e2; background: #fff5fa; }
.usage-alert strong { display: block; color: #45516e; font-size: 13px; }
.usage-alert p { margin: 4px 0 0; color: #7e899f; font-size: 12px; line-height: 1.5; }
.usage-alert .empty-icon { flex: 0 0 auto; color: #b17a25; }
.usage-alert--warn .empty-icon { color: #ff59ae; }
.ledger-row small { white-space: normal; }
@media (max-width: 820px) { .usage-rules { grid-template-columns: 1fr; } }

/* Shared interaction, accessibility, and async states */
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 9px 12px; border-radius: 7px; color: #fff; background: #111111; font-size: 12px; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .18s ease; }.skip-link:focus { transform: translateY(0); }.main-content:focus { outline: none; }.nav-item:focus-visible, .landing-links a:focus-visible, .landing-login:focus-visible, .landing-brand:focus-visible, .button:focus-visible, .text-link:focus-visible, .conversation-row:focus-visible, .connection-row:focus-visible, .skip-link:focus-visible, .disabled-action:focus-visible { outline: 3px solid rgba(255, 89, 174, .38); outline-offset: 3px; }.nav-item:focus-visible { outline-color: #ffc2e2; }.button:hover { background: #ff7ac0; color: #111; }.button:active { transform: translateY(1px); }.disabled-action { cursor: not-allowed; }.toast-region { position: fixed; z-index: 15; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 44px)); }.toast { padding: 12px 14px; border: 1px solid #dfe4f2; border-radius: 9px; color: #4e5b76; background: #fff; box-shadow: 0 10px 25px rgba(33, 47, 89, .14); font-size: 12px; line-height: 1.4; animation: toast-in .18s ease-out; }.toast-success { border-color: #bfead6; color: #217c60; background: #f0fcf6; }.toast-error { border-color: #ffc2e2; color: #db2777; background: #fff5fa; }.toast-info { border-color: #ffc2e2; color: #ff59ae; background: #fff5fa; }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 28, 51, .48); }.modal-backdrop[hidden] { display: none; }.modal-dialog { width: min(100%, 480px); padding: 22px; border: 1px solid #e3e7f1; border-radius: 13px; background: #fff; box-shadow: 0 20px 50px rgba(27, 39, 78, .2); }.modal-dialog h2 { margin: 0 0 8px; font-size: 20px; }.modal-dialog p { color: #7e899f; font-size: 13px; line-height: 1.6; }.loading-skeleton { position: relative; overflow: hidden; min-height: 14px; border-radius: 5px; background: #edf0f6; }.loading-skeleton::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: skeleton-shimmer 1.3s infinite; }@keyframes skeleton-shimmer { to { transform: translateX(100%); } }.inline-error { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #f0c9cc; border-radius: 9px; color: #db2777; background: #fff5fa; font-size: 11px; line-height: 1.5; }.inline-error .icon { flex: 0 0 15px; width: 15px; height: 15px; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Workspace selection */
.topbar-actions { display: flex; align-items: center; }.workspace-switcher { position: relative; color: #5b6680; font-size: 13px; }.workspace-switcher summary { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; cursor: pointer; list-style: none; }.workspace-switcher summary::-webkit-details-marker { display: none; }.workspace-switcher summary:hover { background: #fff5fa; }.workspace-switcher summary .icon { width: 13px; height: 13px; color: #8e99ad; }.workspace-menu { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: 245px; padding: 10px; border: 1px solid #e3e7f0; border-radius: 10px; background: #fff; box-shadow: 0 15px 35px rgba(32, 45, 83, .14); }.workspace-menu > strong { display: block; padding: 5px 8px 9px; color: #9aa4b7; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }.workspace-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 7px; color: #53617d; font-size: 11px; text-decoration: none; }.workspace-menu a:hover, .workspace-menu a[aria-current="page"] { background: #fff5fa; color: #ff59ae; }.workspace-menu a > span:nth-child(2) { min-width: 0; flex: 1; }.workspace-menu a small { display: block; margin-top: 3px; color: #a0a9b9; font-size: 9px; text-transform: uppercase; }.workspace-menu-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; color: #ff59ae; background: #ffe8f4; font-size: 9px; font-weight: 800; }.workspace-overview, .workspace-empty { margin-top: 22px; padding: 24px; border: 1px solid #e6eaf3; border-radius: 13px; background: #fff; }.workspace-overview { display: flex; align-items: center; justify-content: space-between; gap: 22px; }.workspace-overview h3 { margin: 7px 0 7px; color: #34415f; font-size: 17px; }.workspace-overview .muted { margin-bottom: 0; font-size: 12px; }.workspace-cards { display: grid; gap: 8px; min-width: min(100%, 310px); }.workspace-card { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e8ebf2; border-radius: 8px; color: inherit; text-decoration: none; }.workspace-card:hover { border-color: #ffc2e2; background: #fffafb; }.workspace-card > span:nth-child(2) { min-width: 0; flex: 1; }.workspace-card strong, .workspace-card small { display: block; }.workspace-card strong { color: #4d5a77; font-size: 11px; }.workspace-card small { margin-top: 3px; overflow: hidden; color: #9ba5b7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.workspace-card > .icon { width: 14px; height: 14px; color: #ff59ae; }.workspace-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 230px; text-align: center; }.workspace-empty strong { margin-top: 12px; color: #53617d; font-size: 13px; }.workspace-empty p { max-width: 330px; margin: 7px 0 0; color: #9aa4b7; font-size: 11px; line-height: 1.6; }
@media (max-width: 700px) { .workspace-overview { align-items: flex-start; flex-direction: column; }.workspace-cards { width: 100%; }.workspace-menu { right: -8px; } }
.profile-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 8px 10px; border: 1px solid #e4e8f1; border-radius: 8px; color: #66728c; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }.profile-link:hover, .profile-link.active { color: #ff59ae; border-color: #ffc2e2; background: #fff5fa; }.profile-link .icon { width: 14px; height: 14px; }
.profile-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(360px, 1.35fr); gap: 16px; }.profile-card { padding: 24px; border: 1px solid #e5e9f2; border-radius: 14px; background: #fff; }.profile-identity { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 300px; text-align: center; }.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; color: #ff59ae; background: #ffe8f4; font-size: 24px; font-weight: 800; }.profile-identity h3 { margin: 16px 0 5px; color: #34415f; font-size: 18px; }.profile-identity p { margin: 0; color: #8d98ac; font-size: 12px; }.sso-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 18px; padding: 6px 8px; border-radius: 6px; color: #239b72; background: #e7f9f1; font-size: 9px; font-weight: 800; }.sso-badge .icon { width: 12px; height: 12px; }.profile-id { max-width: 100%; margin-top: 18px; overflow: hidden; color: #a1aaba; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.profile-card-heading { display: flex; align-items: flex-start; justify-content: space-between; }.profile-card-heading h3 { margin: 4px 0 0; color: #34415f; font-size: 16px; }.profile-section-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #ff59ae; background: #fff5fa; }.profile-section-icon .icon { width: 16px; height: 16px; }.profile-form { display: grid; gap: 12px; margin-top: 22px; }.profile-form label { display: grid; gap: 6px; color: #596680; font-size: 11px; font-weight: 700; }.profile-form input, .profile-form select { width: 100%; padding: 10px 11px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; background: #fff; font: inherit; font-size: 12px; box-sizing: border-box; }.profile-form input[readonly] { color: #8c96a9; background: #f7f8fb; }.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.profile-form input:focus, .profile-form select:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.profile-form .button { justify-self: start; margin-top: 5px; }.profile-security { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 16px 19px; border: 1px solid #ffc2e2; border-radius: 12px; background: linear-gradient(110deg, #fff5fa, #fff); }.profile-security > div { flex: 1; }.profile-security strong { color: #ff59ae; font-size: 12px; }.profile-security p { margin: 4px 0 0; color: #8994ab; font-size: 10px; line-height: 1.5; }.profile-security .text-link { white-space: nowrap; font-size: 11px; }
@media (max-width: 700px) { .profile-layout { grid-template-columns: 1fr; }.profile-identity { min-height: 230px; }.profile-security { align-items: flex-start; flex-wrap: wrap; }.profile-security .text-link { margin-left: 45px; } }
.profile-security form { margin: 0; }.profile-security .text-link { padding: 0; border: 0; cursor: pointer; }
.profile-topbar-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }.profile-avatar-image { object-fit: cover; }
.metronic-shell .topbar { flex-wrap: wrap; min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
.metronic-shell .topbar-heading { flex: 1 1 280px; }
.metronic-shell .topbar-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Metronic-inspired application shell. Keep domain markup stable while the visual system is migrated page by page. */
.metronic-shell { background: #f8f6f7; }
.metronic-shell .sidebar {
  width: 265px; padding: 28px 14px 20px; background: #111111;
  box-shadow: 8px 0 24px rgba(17, 17, 17, .06);
}
.metronic-shell .brand { margin: 0 14px 36px; color: #fff; font-size: 19px; letter-spacing: -.5px; }
.metronic-shell .brand-mark { color: #fff; background: transparent; box-shadow: none; }
.metronic-shell .nav-item {
  min-height: 44px; padding: 11px 14px; border-radius: 12px;
  color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600;
}
.metronic-shell .nav-item + .nav-item { margin-top: 4px; }
.metronic-shell .nav-item:hover { color: #fff; background: rgba(255, 89, 174, .12); }
.metronic-shell .nav-item.active {
  color: #111; background: #ff59ae;
  box-shadow: 0 8px 18px rgba(255, 89, 174, .28);
}
.metronic-shell .nav-icon { width: 19px; height: 19px; color: currentColor; }
.metronic-shell .nav-icon .icon { width: 19px; height: 19px; }
.metronic-shell .nav-item { align-items: center; }.metronic-shell .main-content { padding: 30px 42px 65px; }.metronic-shell .topbar { min-height: 58px; margin: -30px -42px 32px; padding: 0 42px; border-bottom: 1px solid #eef1f5; background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .025); }.metronic-shell .topbar h1 { color: #181c32; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }.metronic-shell .topbar .eyebrow { color: #a1a5b7; font-size: 10px; letter-spacing: .08em; }.metronic-shell .page-intro h2 { color: #181c32; font-size: 25px; font-weight: 700; }.metronic-shell .page-intro .muted { color: #a1a5b7; }.metronic-shell .welcome-card, .metronic-shell .stat-card, .metronic-shell .profile-card, .metronic-shell .billing-section, .metronic-shell .billing-table-card, .metronic-shell .agent-card, .metronic-shell .knowledge-layout, .metronic-shell .inbox-layout, .metronic-shell .connection-layout, .metronic-shell .pipeline-section { border-color: #eef1f5; border-radius: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, .025); }.metronic-shell .welcome-card { border-color: #ffc2e2; background: linear-gradient(115deg, #fff5fa, #fff); }.metronic-shell .button { border-radius: 7px; background: #ff59ae; box-shadow: 0 4px 10px rgba(255, 89, 174, .15); }.metronic-shell .button:hover { background: #ff7ac0; color: #111; }.metronic-shell .profile-link { border-color: #eef1f5; color: #7e8299; }.metronic-shell .profile-link:hover, .metronic-shell .profile-link.active { color: #ff59ae; border-color: #ffc2e2; background: #fff5fa; }
@media (max-width: 900px) { .metronic-shell .main-content { padding-right: 24px; padding-left: 24px; }.metronic-shell .topbar { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; } }
@media (max-width: 760px) {
  .metronic-shell .main-content { padding-right: 18px; padding-left: 18px; }
  .metronic-shell .topbar { margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; }
}
.dashboard-hero { min-height: 170px; }.dashboard-stats .stat-card { min-height: 145px; }.dashboard-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-top: 22px; }.dashboard-widget { min-width: 0; padding: 21px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .025); }.widget-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f1f5; }.widget-heading h3 { margin: 3px 0 0; color: #181c32; font-size: 15px; }.widget-heading .eyebrow { margin-bottom: 0; color: #a1a5b7; font-size: 9px; }.widget-heading .text-link { white-space: nowrap; font-size: 10px; }.widget-status { padding: 5px 8px; border-radius: 5px; color: #1e9b71; background: #e8fff3; font-size: 9px; font-weight: 800; text-transform: uppercase; }.pulse-list, .recent-list { display: grid; }.pulse-list > div { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f1f5; }.pulse-list > div > span:nth-child(2) { min-width: 0; flex: 1; }.pulse-list strong, .pulse-list small, .recent-list strong, .recent-list small { display: block; }.pulse-list strong { color: #464e69; font-size: 11px; }.pulse-list small { margin-top: 3px; color: #a1a5b7; font-size: 9px; }.pulse-list b { color: #ff59ae; font-size: 12px; }.pulse-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; }.pulse-icon .icon { width: 14px; height: 14px; }.pulse-icon.blue { color: #ff59ae; background: #ffe8f4; }.pulse-icon.violet { color: #ff59ae; background: #fff5fa; }.pulse-icon.green { color: #1ca678; background: #e7fff4; }.recent-list a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f1f5; color: inherit; text-decoration: none; }.recent-list a:hover { background: #fbfcfe; }.recent-list a > span:nth-child(2) { min-width: 0; flex: 1; }.recent-list strong { overflow: hidden; color: #464e69; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.recent-list small { margin-top: 3px; color: #a1a5b7; font-size: 9px; }.dashboard-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 180px; text-align: center; }.dashboard-empty strong { margin-top: 10px; color: #59627a; font-size: 11px; }.dashboard-empty p { margin: 5px 0 0; color: #a1a5b7; font-size: 10px; }
.workspace-create-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; width: min(100%, 680px); margin-top: 20px; text-align: left; }.workspace-create-form label { display: grid; gap: 6px; color: #596680; font-size: 10px; font-weight: 700; }.workspace-create-form input { width: 100%; padding: 10px 11px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; font: inherit; font-size: 12px; }.workspace-create-form input:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.workspace-create-form .button { margin: 0; }
.workspace-create-form .button, .profile-form .button { min-width: 148px; border-radius: 7px; background: #ff59ae; box-shadow: 0 5px 12px rgba(255, 89, 174, .18); }.workspace-create-form .button:hover, .profile-form .button:hover { background: #ff59ae; box-shadow: 0 7px 16px rgba(255, 89, 174, .23); }.workspace-create-form .button:active, .profile-form .button:active { transform: translateY(1px); }.workspace-create-form .button[aria-busy="true"], .profile-form .button[aria-busy="true"] { opacity: .7; cursor: wait; }
@media (max-width: 700px) { .workspace-create-form { grid-template-columns: 1fr; width: 100%; }.workspace-create-form .button { justify-content: center; } }
@media (max-width: 820px) { .dashboard-columns { grid-template-columns: 1fr; } }
.metronic-shell .wallet-hero { border-radius: 12px; background: linear-gradient(125deg, #111111 8%, #ff59ae 100%); box-shadow: 0 8px 20px rgba(30, 30, 45, .12); }.metronic-shell .wallet-label { color: #a1a5b7; }.metronic-shell .wallet-balance small, .metronic-shell .wallet-meta p { color: #b5b5c3; }.metronic-shell .billing-section-head h3 { color: #181c32; }.metronic-shell .package-card { border-color: #eef1f5; border-radius: 10px; background: #fff; }.metronic-shell .package-featured { border-color: #ff59ae; background: #fff8fb; }.metronic-shell .package-card h4 { color: #464e69; }.metronic-shell .package-card > strong { color: #ff59ae; }.metronic-shell .package-popular { color: #ff59ae; background: #ffe8f4; }.metronic-shell .billing-note { color: #a1a5b7; }.metronic-shell .payment-status.paid, .metronic-shell .payment-status.succeeded { color: #1e9b71; background: #e8fff3; }.metronic-shell .payment-status.pending { color: #b58105; background: #fff8dd; }.metronic-shell .connection-status.connected, .metronic-shell .connection-status.ready, .metronic-shell .connection-status.open { color: #1e9b71; }.metronic-shell .connection-status.created, .metronic-shell .connection-status.qr_ready { color: #b58105; }.metronic-shell .onboarding-banner { border-color: #ffc2e2; background: linear-gradient(110deg, #fff5fa, #fff); }.metronic-shell .onboarding-number { color: #ff59ae; background: #ffe8f4; }.metronic-shell .onboarding-banner h3 { color: #464e69; }.metronic-shell .connection-next { border-color: #eef1f5; }.metronic-shell .connection-next strong { color: #464e69; }.metronic-shell .coming-soon { color: #1e9b71; }.metronic-shell .knowledge-summary article { border-color: #eef1f5; border-radius: 10px; box-shadow: 0 4px 12px rgba(15, 23, 42, .025); }.metronic-shell .knowledge-main strong { color: #464e69; }.metronic-shell .verification.verified { color: #1e9b71; background: #e8fff3; }.metronic-shell .verification.draft { color: #b58105; background: #fff8dd; }.metronic-shell .candidate-panel { border-color: #eef1f5; }.metronic-shell .candidate-state { border-radius: 5px; }.metronic-shell .review-note { color: #7e8299; background: #fff8fb; }.metronic-shell .agent-card { border-radius: 12px; }.metronic-shell .agent-policy-banner { border-color: #ffc2e2; background: linear-gradient(110deg, #fff5fa, #fff); }.metronic-shell .agent-policy-banner strong { color: #ff59ae; }.metronic-shell .agent-mode { background: #fff8fb; }.metronic-shell .agent-mode strong { color: #ff59ae; }.metronic-shell .agent-settings > div { border-color: #f0f1f5; }.metronic-shell .agent-settings b { color: #464e69; }.metronic-shell .agent-edit-form { border-color: #eef1f5; }.metronic-shell .agent-empty, .metronic-shell .platform-empty { border-color: #eef1f5; box-shadow: 0 4px 14px rgba(15, 23, 42, .025); }.metronic-shell .action-panel { background: #fff; }.metronic-shell .action-panel h3 { color: #181c32; }.metronic-shell .draft-review-row, .metronic-shell .history-job-row { background: #fff; }
.metronic-shell .inbox-layout, .metronic-shell .connection-layout, .metronic-shell .knowledge-layout, .metronic-shell .pipeline-section { box-shadow: 0 6px 18px rgba(15, 23, 42, .035); }.metronic-shell .panel-toolbar, .metronic-shell .pipeline-toolbar { min-height: 58px; height: auto; padding: 15px 20px; background: #fff; }.metronic-shell .panel-toolbar strong, .metronic-shell .pipeline-toolbar strong { color: #181c32; font-size: 13px; font-weight: 700; }.metronic-shell .panel-filter { color: #a1a5b7; font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }.metronic-shell .conversation-row, .metronic-shell .connection-row { padding: 14px 18px; border-color: #f0f1f5; }.metronic-shell .conversation-row.selected, .metronic-shell .conversation-row:hover, .metronic-shell .connection-row.selected, .metronic-shell .connection-row:hover { background: #fff8fb; }.metronic-shell .conversation-main strong, .metronic-shell .connection-row strong { color: #464e69; font-size: 11px; }.metronic-shell .conversation-main small, .metronic-shell .connection-row small { color: #a1a5b7; font-size: 9px; }.metronic-shell .message-header, .metronic-shell .connection-detail-head { min-height: 72px; background: #fff; border-color: #eef1f5; }.metronic-shell .message-header h3, .metronic-shell .connection-detail-head h3 { color: #181c32; font-size: 14px; }.metronic-shell .message-stream { background: #faf7f8; }.metronic-shell .message-bubble { border-radius: 8px; box-shadow: 0 2px 5px rgba(15, 23, 42, .025); }.metronic-shell .message-bubble.outbound { color: #fff; background: #ff59ae; }.metronic-shell .message-bubble.outbound p, .metronic-shell .message-bubble.outbound time { color: rgba(255,255,255,.86); }.metronic-shell .message-bubble.inbound { border-color: #eef1f5; }.metronic-shell .mode-badge { border-radius: 5px; font-size: 8px; }.metronic-shell .handoff-notice { border-color: #ffc2e2; background: #fff5fa; }.metronic-shell .pipeline-grid { gap: 12px; padding: 18px; background: #faf7f8; }.metronic-shell .pipeline-column { padding: 10px; border: 1px solid #eef1f5; border-radius: 9px; background: #f4f6f8; }.metronic-shell .pipeline-column-head { color: #7e8299; font-size: 9px; }.metronic-shell .pipeline-column-head b { color: #ff59ae; background: #ffe8f4; }.metronic-shell .lead-card { border-color: #eef1f5; border-radius: 8px; box-shadow: 0 3px 8px rgba(15, 23, 42, .025); }.metronic-shell .lead-card > strong { color: #464e69; font-size: 11px; }.metronic-shell .lead-card > small, .metronic-shell .next-action { color: #a1a5b7; }.metronic-shell .temperature.hot { color: #ff59ae; }.metronic-shell .temperature.warm { color: #f1bc3e; }.metronic-shell .temperature.cold { color: #7e8299; }.metronic-shell .quick-actions, .metronic-shell .action-panel, .metronic-shell .history-jobs { border-color: #eef1f5; box-shadow: 0 4px 14px rgba(15, 23, 42, .025); }.metronic-shell .quick-action-row, .metronic-shell .history-job-row { border-color: #f0f1f5; }.metronic-shell .quick-action-row strong, .metronic-shell .history-job-row strong { color: #464e69; }.metronic-shell .qr-card { border-color: #ffc2e2; background: #fffafb; }.metronic-shell .qr-placeholder { border-color: #ff59ae; background: repeating-linear-gradient(45deg, #fff8fb, #fff8fb 8px, #eef8ff 8px, #eef8ff 16px); }.metronic-shell .candidate-panel { background: #fff; }.metronic-shell .candidate-row { border-color: #f0f1f5; }
.platform-boundary { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 15px 19px; border: 1px solid #f0dfb6; border-radius: 12px; background: #fffaf0; }.platform-boundary strong { color: #986b20; font-size: 12px; }.platform-boundary p { margin: 4px 0 0; color: #9b8967; font-size: 10px; }.platform-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }.platform-settings { display: grid; gap: 9px; margin-top: 22px; }.platform-setting-row { display: grid; grid-template-columns: minmax(130px, .7fr) 1fr auto; align-items: end; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }.platform-setting-row label { display: grid; gap: 4px; color: #596680; font-size: 11px; font-weight: 700; text-transform: capitalize; }.platform-setting-row label small { color: #a1aaba; font-size: 9px; font-weight: 400; }.platform-setting-row input { width: 100%; padding: 9px 10px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; font: inherit; font-size: 11px; box-sizing: border-box; }.platform-setting-row input:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.platform-routing { display: grid; gap: 0; margin-top: 22px; }.platform-routing > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 13px 0; border-bottom: 1px solid #edf0f5; }.platform-routing strong, .platform-routing small { display: block; }.platform-routing strong { color: #53617d; font-size: 11px; text-transform: capitalize; }.platform-routing small { color: #929caf; font-size: 10px; }.platform-routing span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #ff59ae; font-size: 9px; font-weight: 700; }.platform-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 250px; text-align: center; }.platform-empty strong { margin-top: 12px; color: #53617d; font-size: 12px; }.platform-empty p { color: #929caf; font-size: 10px; }
@media (max-width: 820px) { .platform-grid { grid-template-columns: 1fr; } } @media (max-width: 620px) { .platform-setting-row { grid-template-columns: 1fr; align-items: stretch; }.platform-setting-row .button { justify-content: center; } }

/* Action forms and QR pairing */
.page-intro-actions { display: flex; align-items: center; gap: 10px; }.page-intro-actions .button { padding: 9px 12px; font-size: 11px; }.page-intro-actions .button .icon { width: 14px; height: 14px; }.button-small { padding: 9px 12px; font-size: 11px; }.button-small .icon { width: 14px; height: 14px; }.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 7px; color: #8893a8; background: transparent; cursor: pointer; }.modal-close:hover { color: #ff59ae; background: #fff5fa; }.modal-dialog { position: relative; }.modal-dialog form { display: grid; gap: 8px; margin-top: 18px; }.modal-dialog label { color: #53617d; font-size: 11px; font-weight: 700; }.modal-dialog input:not([type="checkbox"]):not([type="radio"]), .modal-dialog textarea, .modal-dialog select { width: 100%; padding: 11px 12px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; background: #fff; font: inherit; font-size: 12px; box-sizing: border-box; }.modal-dialog textarea { min-height: 96px; resize: vertical; line-height: 1.45; }.modal-dialog input:focus, .modal-dialog textarea:focus, .modal-dialog select:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.modal-dialog form .button { justify-content: center; margin-top: 7px; border: 0; cursor: pointer; }.modal-dialog button[disabled] { opacity: .6; cursor: wait; }.qr-placeholder img { display: block; width: 130px; height: 130px; object-fit: contain; }.qr-placeholder[aria-busy="true"] { color: #9a8790; font-size: 10px; text-align: center; }
@media (max-width: 620px) { .page-intro-actions { align-items: flex-start; flex-direction: column-reverse; }.page-intro-actions .inbox-count { align-self: flex-start; } }
.message-actions { display: flex; align-items: center; gap: 8px; }.message-actions .button { padding: 7px 9px; }.message-actions .button .icon { width: 13px; height: 13px; }.modal-dialog select { width: 100%; padding: 11px 12px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; background: #fff; font: inherit; font-size: 12px; }.modal-dialog select:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }

/* Browser authentication */
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 20% 10%, #fff5fa 0, transparent 35%), #faf7f8; }.auth-card { width: min(100%, 430px); padding: 34px; border: 1px solid #e3e7f1; border-radius: 17px; background: #fff; box-shadow: 0 22px 55px rgba(255, 89, 174, .12); }.auth-card > .landing-brand { margin-bottom: 46px; }.auth-heading { text-align: center; }.auth-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border-radius: 13px; color: #ff59ae; background: #ffe8f4; }.auth-icon .icon { width: 24px; height: 24px; }.auth-heading .eyebrow { justify-content: center; margin-bottom: 8px; font-size: 9px; }.auth-heading h1 { margin: 0 0 11px; color: #243253; font-size: 27px; letter-spacing: -1px; }.auth-heading > p:last-child { margin-bottom: 27px; color: #8490a6; font-size: 13px; line-height: 1.6; }.oauth-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid #747775; border-radius: 8px; color: #1f1f1f; background: #fff; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; }.oauth-button:hover { background: #f8fafd; }.oauth-button:focus-visible { outline: 3px solid rgba(255, 89, 174, .35); outline-offset: 2px; }.google-logo { flex: 0 0 18px; width: 18px; height: 18px; }.auth-note { display: none; }.auth-back { display: flex; align-items: center; justify-content: center; gap: 6px; color: #ff59ae; font-size: 11px; font-weight: 700; text-decoration: none; }.auth-back .icon { width: 14px; height: 14px; }

/* Public landing page */
.landing-page { background: #fff; color: #1e1a22; }
.lp-shell { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 18px; font-weight: 800; letter-spacing: -.4px; text-decoration: none; }
.landing-brand .brand-mark { background: transparent; }
.landing-brand .brand-logo { width: 30px; height: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { color: var(--primary-strong); }
.button-large { min-height: 48px; padding: 14px 22px; border-radius: 12px; font-size: 15px; box-shadow: 0 12px 26px rgba(255, 89, 174, .28); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--primary); background: var(--primary-mist); }
.feature-icon .icon { width: 21px; height: 21px; }
.feature-icon.purple { color: #ff59ae; background: #ffe8f4; }
.feature-icon.blue { color: #3468cf; background: #e9f0ff; }
.feature-icon.green { color: #1aa879; background: #e1f8ed; }

/* Landing · sticky navigation */
.lp-nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .09); background: rgba(17, 17, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lp-nav-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.lp-nav .landing-brand { color: #fff; }
.lp-nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.lp-nav-links a { color: rgba(255, 255, 255, .64); font-size: 14px; font-weight: 600; text-decoration: none; }
.lp-nav-links a:hover { color: #fff; }
.lp-nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lp-nav-ghost { color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 700; text-decoration: none; }
.lp-nav-ghost:hover { color: #fff; }
.lp-nav-cta { min-height: 38px; padding: 9px 15px; border-radius: 9px; }

/* Landing · hero */
.lp-hero { position: relative; overflow: hidden; padding: 82px 0 70px; background: #111111; color: #fff; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(circle at 50% 18%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 18%, #000, transparent 70%); pointer-events: none; }
.lp-aurora { position: absolute; inset: 0; pointer-events: none; }
.lp-aurora span { position: absolute; border-radius: 50%; filter: blur(95px); }
.lp-aurora span:nth-child(1) { top: -150px; left: -90px; width: 460px; height: 460px; background: rgba(255, 89, 174, .55); }
.lp-aurora span:nth-child(2) { top: 30px; right: -140px; width: 430px; height: 430px; background: rgba(255, 89, 174, .42); }
.lp-aurora span:nth-child(3) { bottom: -220px; left: 36%; width: 520px; height: 330px; background: rgba(255, 89, 174, .28); }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 56px; }
.lp-badge { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #ffe8f4; font-size: 12px; font-weight: 600; }
.lp-badge i { width: 7px; height: 7px; border-radius: 50%; background: #4ade9f; box-shadow: 0 0 0 4px rgba(74, 222, 159, .16); }
.lp-hero-copy h1 { margin: 22px 0 18px; color: #fff; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -2.6px; }
.lp-hero-copy h1 span { display: block; background: linear-gradient(92deg, #f8d7ea, #ffc2e2 48%, #ff59ae); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { max-width: 520px; margin: 0 0 30px; color: rgba(255, 255, 255, .7); font-size: 17px; line-height: 1.7; }
.lp-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-ghost-button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 13px 20px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .16s ease; }
.lp-ghost-button:hover { background: rgba(255, 255, 255, .13); }
.lp-ghost-button .icon { width: 17px; height: 17px; color: #ff7ac0; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.lp-hero-points li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.lp-hero-points .icon { width: 15px; height: 15px; color: #4ade9f; }

/* Landing · hero chat preview */
.lp-hero-visual { position: relative; z-index: 1; }
.lp-chat { padding: 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.lp-chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.lp-chat-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, #ff59ae, #ff59ae); color: #fff; font-size: 13px; font-weight: 700; }
.lp-chat-head strong { display: block; color: #fff; font-size: 14px; }
.lp-chat-head small { color: rgba(255, 255, 255, .5); font-size: 11px; }
.lp-chat-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 11px; border-radius: 999px; background: rgba(74, 222, 159, .14); color: #78e9b6; font-size: 11px; font-weight: 700; }
.lp-chat-pill i { width: 6px; height: 6px; border-radius: 50%; background: #4ade9f; }
.lp-chat-body { display: grid; gap: 9px; padding: 16px 2px; }
.lp-bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.lp-bubble.in { justify-self: start; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); }
.lp-bubble.out { justify-self: end; border-bottom-right-radius: 4px; background: linear-gradient(140deg, #ff59ae, #ff59ae); color: #fff; box-shadow: 0 12px 26px rgba(255, 89, 174, .28); }
.lp-bubble time { display: block; margin-top: 6px; font-size: 10px; opacity: .7; }
.lp-typing { display: inline-flex; gap: 4px; justify-self: end; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.lp-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .65); animation: lp-typing 1.2s ease-in-out infinite; }
.lp-typing span:nth-child(2) { animation-delay: .18s; }
.lp-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes lp-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.lp-chat-foot { display: flex; align-items: center; gap: 7px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: 11px; }
.lp-chat-foot .icon { width: 14px; height: 14px; color: #ff7ac0; }
.lp-float { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(17, 17, 17, .94); box-shadow: 0 18px 36px rgba(0, 0, 0, .42); animation: lp-float 6s ease-in-out infinite; }
.lp-float .icon { width: 17px; height: 17px; color: #ff7ac0; }
.lp-float small { display: block; color: rgba(255, 255, 255, .5); font-size: 10px; }
.lp-float strong { color: #fff; font-size: 13px; }
.lp-float-a { top: -20px; right: -12px; }
.lp-float-b { bottom: -24px; left: -16px; animation-delay: -3s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Landing · metrics */
.lp-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 74px 0 0; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .1); }
.lp-metrics > div { padding: 22px 24px; background: rgba(17, 17, 17, .9); }
.lp-metrics dt { color: rgba(255, 255, 255, .5); font-size: 12px; }
.lp-metrics dd { margin: 8px 0 0; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -1px; }

/* Landing · capability strip */
.lp-strip { border-bottom: 1px solid var(--line); background: #fff; }
.lp-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 20px; padding-bottom: 20px; }
.lp-strip > .lp-shell > span, .lp-strip-inner > span { color: #9a939c; font-size: 13px; }
.lp-strip ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.lp-strip li { display: inline-flex; align-items: center; gap: 8px; color: #4d4551; font-size: 13px; font-weight: 700; }
.lp-strip .icon { width: 16px; height: 16px; color: var(--primary); }

/* Landing · sections */
.lp-section { padding: 96px 0; }
.lp-section-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--background); }
.lp-heading { max-width: 640px; margin-bottom: 44px; }
.lp-heading h2 { margin: 12px 0 14px; color: #1c151d; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -1.6px; }
.lp-heading > p:last-child { margin: 0; color: #7a7380; font-size: 15px; line-height: 1.7; }

/* Landing · bento features */
.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lp-card { display: flex; flex-direction: column; grid-column: span 2; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lp-card:hover { transform: translateY(-3px); border-color: #ffc2e2; box-shadow: 0 18px 38px rgba(255, 89, 174, .1); }
.lp-card h3 { margin: 20px 0 9px; color: #221b24; font-size: 18px; letter-spacing: -.4px; }
.lp-card p { margin: 0; color: #7a7380; font-size: 14px; line-height: 1.65; }
.lp-card .text-link { margin-top: auto; padding-top: 18px; font-size: 13px; }
.lp-card-wide { grid-column: span 4; }
.lp-card-dark { border-color: transparent; background: linear-gradient(160deg, #161616, #111111); }
.lp-card-dark h3 { color: #fff; }
.lp-card-dark p { color: rgba(255, 255, 255, .68); }
.lp-card-dark .feature-icon { color: #ffc2e2; background: rgba(255, 89, 174, .2); }
.lp-card-dark:hover { border-color: rgba(255, 255, 255, .18); box-shadow: 0 18px 38px rgba(17, 17, 17, .25); }

/* Landing · steps + product preview */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 56px; padding: 0; list-style: none; }
.lp-steps li { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.lp-steps li::after { content: ""; position: absolute; top: 46px; right: -18px; width: 18px; border-top: 1px dashed #e5d9dc; }
.lp-steps li:last-child::after { display: none; }
.lp-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); font-size: 13px; font-weight: 800; }
.lp-steps h3 { margin: 18px 0 8px; color: #221b24; font-size: 17px; }
.lp-steps p { margin: 0; color: #7a7380; font-size: 14px; line-height: 1.6; }
.lp-preview { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 44px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(255, 89, 174, .07); }
.lp-preview-copy h3 { margin: 12px 0; color: #1c151d; font-size: 25px; letter-spacing: -.8px; }
.lp-preview-copy p { margin: 0 0 18px; color: #7a7380; font-size: 14px; line-height: 1.7; }
.lp-window { overflow: hidden; border-radius: 16px; background: #f7f4f5; box-shadow: 0 18px 40px rgba(30, 20, 24, .14); }
.lp-window-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #161616; color: rgba(255, 255, 255, .5); font-size: 10px; }
.lp-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3a; }
.lp-window-bar i:first-child { background: #e8736f; }
.lp-window-bar i:nth-child(2) { background: #e5b95f; }
.lp-window-bar span { flex: 1; margin-left: 10px; }
.lp-window-bar b { display: inline-flex; align-items: center; gap: 5px; color: #7fe0b4; font-weight: 600; }
.lp-window-bar em { width: 5px; height: 5px; border-radius: 50%; background: #4ade9f; }
.lp-window-body { display: flex; min-height: 300px; }
.lp-window-body aside { display: flex; flex: 0 0 46px; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; background: #161616; }
.lp-window-logo { display: grid; place-items: center; margin-bottom: 6px; }
.lp-window-nav { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: rgba(255, 255, 255, .42); }
.lp-window-nav.active { color: #fff; background: var(--primary); }
.lp-window-nav .icon { width: 14px; height: 14px; }
.lp-window-main { flex: 1; padding: 18px; background: #faf7f8; }
.lp-window-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-window-stats > span { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lp-window-stats small { display: block; color: #a49ba1; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-window-stats b { display: block; margin-top: 6px; color: #241d26; font-size: 19px; letter-spacing: -.6px; }
.lp-window-stats em { color: #1aa879; font-size: 9px; font-style: normal; font-weight: 700; }
.lp-window-list { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lp-window-list-head { display: flex; align-items: center; justify-content: space-between; }
.lp-window-list-head strong { color: #2c2430; font-size: 11px; }
.lp-window-list-head small { color: var(--primary); font-size: 9px; font-weight: 700; }
.lp-window-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.lp-window-row > span:last-of-type { flex: 1; }
.lp-window-row b { display: block; color: #3b3340; font-size: 10px; }
.lp-window-row small { display: block; color: #a49ba1; font-size: 9px; }
.lp-window-row time { color: #a49ba1; font-size: 9px; }
.lp-avatar { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; }
.lp-avatar.red { background: linear-gradient(140deg, #ff59ae, #ff59ae); }
.lp-avatar.green { background: #35b98d; }
.lp-avatar.blue { background: #4f7fe0; }

/* Landing · security */
.lp-security { position: relative; overflow: hidden; padding: 92px 0; background: #111111; color: #fff; }
.lp-aurora-soft span { filter: blur(120px); opacity: .5; }
.lp-security-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.lp-security .eyebrow { color: #ffc2e2; }
.lp-security h2 { margin: 12px 0 14px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -1.4px; }
.lp-security-inner > div > p { max-width: 460px; margin: 0 0 26px; color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.7; }
.lp-checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-checklist li { display: flex; gap: 14px; padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.lp-checklist > li > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 89, 174, .18); color: #ffc2e2; }
.lp-checklist .icon { width: 18px; height: 18px; }
.lp-checklist strong { display: block; color: #fff; font-size: 14px; }
.lp-checklist p { margin: 5px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.55; }

/* Landing · quote */
.lp-quote { max-width: 860px; margin: 0 auto; padding: 44px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, #fff5fa, #fff); text-align: center; }
.lp-quote-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--primary); box-shadow: 0 10px 22px rgba(255, 89, 174, .14); }
.lp-quote-mark .icon { width: 22px; height: 22px; }
.lp-quote blockquote { margin: 22px 0 26px; color: #241d26; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.45; letter-spacing: -.6px; }
.lp-quote figcaption { display: inline-flex; align-items: center; gap: 11px; text-align: left; }
.lp-quote figcaption strong { display: block; color: #2b2430; font-size: 14px; }
.lp-quote figcaption small { color: #857d8a; font-size: 12px; }

/* Landing · FAQ */
.lp-faq { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 56px; }
.lp-faq .lp-heading { margin-bottom: 0; }
.lp-faq-list { display: grid; gap: 10px; }
.lp-faq-list details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lp-faq-list details[open] { border-color: #ffc2e2; box-shadow: 0 14px 30px rgba(255, 89, 174, .07); }
.lp-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #241d26; font-size: 15px; font-weight: 700; list-style: none; cursor: pointer; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary > span { display: inline-flex; }
.lp-faq-list summary .icon { width: 18px; height: 18px; color: var(--primary); transition: transform .18s ease; }
.lp-faq-list details[open] summary .icon { transform: rotate(180deg); }
.lp-faq-list p { margin: 12px 0 0; color: #7a7380; font-size: 14px; line-height: 1.7; }

/* Landing · closing CTA + footer */
.lp-cta { padding: 78px 0; background: linear-gradient(115deg, #ff59ae, #ff59ae 48%, #ff59ae); color: #fff; }
.lp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.lp-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.16; letter-spacing: -1.2px; }
.lp-cta p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.6; }
.lp-cta-button { background: #fff; color: #ff59ae; box-shadow: 0 14px 30px rgba(240, 61, 152, .22); }
.lp-cta-button:hover { background: #fff5fa; color: #ff59ae; }
.lp-footer { padding: 56px 0 26px; background: #111111; color: rgba(255, 255, 255, .6); }
.lp-footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.lp-footer .landing-brand { color: #fff; }
.lp-footer-brand p { max-width: 320px; margin: 14px 0 0; font-size: 13px; line-height: 1.7; }
.lp-footer nav { display: grid; align-content: start; gap: 10px; }
.lp-footer strong { color: #fff; font-size: 13px; }
.lp-footer nav a { color: rgba(255, 255, 255, .6); font-size: 13px; text-decoration: none; }
.lp-footer nav a:hover { color: #fff; }
.lp-footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }

@media (max-width: 1000px) {
  .lp-hero-inner, .lp-preview, .lp-security-inner, .lp-faq { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-visual { max-width: 520px; margin: 0 8px; }
  .lp-bento { grid-template-columns: repeat(4, 1fr); }
  .lp-card-wide { grid-column: span 4; }
  .lp-metrics { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-steps li::after { display: none; }
  .lp-security-inner > div > p { max-width: none; }
}
@media (max-width: 720px) {
  .lp-nav-links { display: none; }
  .lp-nav-inner { gap: 12px; }
  .lp-hero { padding: 54px 0 58px; }
  .lp-hero-copy h1 { letter-spacing: -1.8px; }
  .lp-lead { font-size: 15px; }
  .lp-hero-actions .button-large, .lp-hero-actions .lp-ghost-button { flex: 1 1 auto; justify-content: center; }
  .lp-hero-visual { max-width: none; margin: 0; }
  .lp-float { display: none; }
  .lp-metrics { grid-template-columns: 1fr; }
  .lp-strip-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .lp-section, .lp-security { padding: 66px 0; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-card, .lp-card-wide, .lp-card-dark { grid-column: auto; }
  .lp-preview { padding: 18px; }
  .lp-quote { padding: 28px; }
  .lp-cta { padding: 60px 0; }
  .lp-cta-inner { align-items: flex-start; flex-direction: column; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .lp-footer-base { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-float, .lp-typing span { animation: none; }
  .lp-card, .lp-ghost-button, .lp-faq-list summary .icon { transition: none; }
}

/* Login redesign — Relation Pink */
.auth-page {
  min-height: 100svh; padding: 28px;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, #ffe8f4 0%, transparent 55%),
    #f8f6f7;
}
.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  width: min(100%, 1040px); min-height: 620px; padding: 0; overflow: hidden;
  border: 1px solid #ece6e9; border-radius: 24px; background: #fff;
  box-shadow: 0 28px 70px rgba(255, 89, 174, .12);
}
.auth-showcase {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: 42px; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 89, 174, .45), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(255, 194, 226, .22), transparent 40%),
    linear-gradient(145deg, #111111 0%, #141414 55%, #111111 100%);
}
.auth-brand {
  position: relative; z-index: 1; display: inline-flex; align-items: center; align-self: flex-start;
  gap: 11px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.4px; text-decoration: none;
}
.auth-brand .brand-mark {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px;
  overflow: hidden; color: #111; background: transparent; font-size: 14px;
}
.auth-brand .brand-logo { width: 31px; height: 31px; }
.auth-showcase-copy { position: relative; z-index: 1; max-width: 430px; margin-top: auto; margin-bottom: 70px; }
.auth-kicker, .auth-panel-eyebrow {
  margin: 0 0 15px; color: #ffc2e2; font-size: 10px; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
}
.auth-panel-eyebrow { color: #f03d98; }
.auth-showcase h1 {
  max-width: 440px; margin: 0; color: #fff;
  font-size: clamp(36px, 4vw, 53px); line-height: 1.04; letter-spacing: -2.5px;
}
.auth-showcase h1 em { color: #ff59ae; font-style: normal; }
.auth-showcase-text { max-width: 350px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.auth-proof {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: fit-content;
  padding: 12px 15px 12px 12px; border: 1px solid rgba(255, 194, 226, .22); border-radius: 14px;
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px);
}
.auth-proof-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #ff59ae; background: rgba(255, 89, 174, .18);
}
.auth-proof-icon .icon { width: 17px; height: 17px; }
.auth-proof strong, .auth-proof small { display: block; }
.auth-proof strong { color: #fff; font-size: 11px; }
.auth-proof small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 10px; }
.auth-orbit { position: absolute; border: 1px solid rgba(255, 194, 226, .16); border-radius: 50%; }
.auth-orbit-one { right: -110px; top: -110px; width: 390px; height: 390px; }
.auth-orbit-two { right: -30px; top: -30px; width: 230px; height: 230px; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 64px 58px; }
.auth-panel-head h2 {
  margin: 0; color: #111; font-size: clamp(27px, 3vw, 35px); letter-spacing: -1.5px; line-height: 1.1;
}
.auth-panel-head > p:last-child { margin: 12px 0 34px; color: #6b6469; font-size: 13px; line-height: 1.65; }
.auth-panel .inline-error { margin-bottom: 18px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 25px 0 0;
  color: #9a919f; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; content: ""; background: #ece6e9; }
.auth-security { margin: 13px 0 30px; color: #8a8190; font-size: 11px; line-height: 1.6; text-align: center; }
.auth-panel .auth-back { align-self: center; }
.auth-page .oauth-button {
  border-radius: 14px; border-color: #ece6e9;
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
}
.auth-page .oauth-button:hover { border-color: #ffc2e2; background: #fff5fa; }
.auth-page .auth-back { color: #f03d98; }
.auth-page .auth-back:hover { color: #ff59ae; }
@media (max-width: 760px) {
  .auth-page { padding: 14px; }
  .auth-shell { display: block; min-height: auto; border-radius: 18px; }
  .auth-showcase { min-height: 300px; padding: 28px; }
  .auth-showcase-copy { margin: 52px 0 0; }
  .auth-showcase h1 { font-size: 35px; }
  .auth-proof, .auth-orbit { display: none; }
  .auth-panel { padding: 38px 28px 32px; }
  .auth-panel-head h2 { font-size: 28px; }
}
.action-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 20px; border: 1px solid #e2e7f2; border-radius: 12px; background: #fff; }.action-panel h3 { margin: 3px 0 4px; color: #34415f; font-size: 14px; }.action-panel p:last-child { margin: 0; color: #8a95aa; font-size: 11px; }.action-panel .eyebrow { margin: 0; font-size: 9px; }.draft-review { display: grid; gap: 8px; margin-top: 12px; }.draft-review-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid #e7ebf3; border-radius: 9px; background: #fff; }.draft-review-row strong, .draft-review-row small { display: block; }.draft-review-row strong { color: #4b5874; font-size: 12px; }.draft-review-row small { margin-top: 4px; color: #9aa4b7; font-size: 10px; }.draft-review-row form { margin: 0; }.draft-review-row .button { white-space: nowrap; }
@media (max-width: 620px) { .action-panel { align-items: flex-start; flex-direction: column; }.action-panel .button { width: 100%; justify-content: center; }.draft-review-row { align-items: flex-start; flex-direction: column; }.draft-review-row .button { width: 100%; justify-content: center; } }
.action-panel-actions { display: flex; align-items: center; gap: 8px; }.action-panel-actions form { margin: 0; }.history-jobs { margin-top: 18px; overflow: hidden; border: 1px solid #e2e7f2; border-radius: 12px; background: #fff; }.history-job-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid #edf0f5; }.history-job-row strong, .history-job-row small { display: block; }.history-job-row strong { color: #4b5874; font-size: 11px; }.history-job-row small { margin-top: 4px; color: #9aa4b7; font-size: 10px; }
@media (max-width: 620px) { .action-panel-actions { width: 100%; flex-direction: column; }.action-panel-actions form, .action-panel-actions .button { width: 100%; }.action-panel-actions .button { justify-content: center; } }
.quick-actions { margin-top: 18px; overflow: hidden; border: 1px solid #e2e7f2; border-radius: 12px; background: #fff; }.quick-action-row { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-top: 1px solid #edf0f5; }.quick-action-row > span { min-width: 0; flex: 1; }.quick-action-row strong, .quick-action-row small { display: block; }.quick-action-row strong { overflow: hidden; color: #4b5874; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.quick-action-row small { margin-top: 3px; color: #9aa4b7; font-size: 10px; }.quick-action-row select { min-width: 150px; padding: 8px 9px; border: 1px solid #dfe4ee; border-radius: 7px; color: #53617d; background: #fff; font: inherit; font-size: 11px; }.quick-action-row select:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.mode-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 15px; border-top: 1px solid #edf0f5; }.mode-actions form { margin: 0; }
@media (max-width: 620px) { .quick-action-row { align-items: stretch; flex-direction: column; }.quick-action-row select, .quick-action-row .button { width: 100%; }.quick-action-row .button { justify-content: center; } }
.checkout-panel { margin-top: 18px; overflow: hidden; border: 1px solid #e2e7f2; border-radius: 12px; background: #fff; }.checkout-grid { display: grid; gap: 8px; padding: 10px 15px 15px; }.checkout-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px; border: 1px solid #edf0f5; border-radius: 9px; }.checkout-card strong, .checkout-card small { display: block; }.checkout-card strong { color: #4b5874; font-size: 12px; }.checkout-card small { margin-top: 4px; color: #9aa4b7; font-size: 10px; }.checkout-card .button { white-space: nowrap; }
@media (max-width: 620px) { .checkout-card { align-items: stretch; flex-direction: column; }.checkout-card .button { width: 100%; justify-content: center; } }
.agent-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #edf0f5; }.agent-edit-form label { display: grid; gap: 5px; color: #74809a; font-size: 10px; font-weight: 700; }.agent-edit-form label small { color: #9aa4b7; font-weight: 400; }.agent-edit-form .agent-wide { grid-column: 1 / -1; }.agent-edit-form input:not([type="checkbox"]):not([type="radio"]), .agent-edit-form select, .agent-edit-form textarea { width: 100%; padding: 8px 9px; border: 1px solid #dfe4ee; border-radius: 7px; color: #53617d; background: #fff; font: inherit; font-size: 11px; box-sizing: border-box; }.agent-edit-form textarea { resize: vertical; line-height: 1.45; }.agent-edit-form input:focus, .agent-edit-form select:focus, .agent-edit-form textarea:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }.agent-edit-form .button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 620px) { .agent-edit-form { grid-template-columns: 1fr; }.agent-edit-form .agent-wide { grid-column: auto; }.agent-edit-form .button { width: 100%; justify-content: center; } }
.metronic-shell .topbar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.metronic-shell .topbar-heading { flex: 1 1 280px; }
.metronic-shell .topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Mobile navigation and touch layout */
.topbar-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; color: #7b879c; font-size: 12px; font-weight: 700; text-decoration: none; }
.page-back:hover { color: #ff59ae; }
.page-back .icon { width: 14px; height: 14px; }
.mobile-nav-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e4e8f0; border-radius: 9px; color: #5f6b85; background: #fff; cursor: pointer; }
.mobile-nav-toggle:hover { color: #ff59ae; border-color: #ffc2e2; background: #fff5fa; }
.mobile-nav-backdrop { display: none; }
@media (max-width: 760px) {
  body.mobile-nav-open { overflow: hidden; }
  /* Off-canvas drawer: must beat sticky + icon-rail rules that keep sidebar in flex flow. */
  .app-shell { display: block; }
  .app-shell > .sidebar,
  .metronic-shell .sidebar,
  .sidebar {
    position: fixed !important;
    z-index: 30;
    inset: 0 auto 0 0;
    top: 0;
    left: 0;
    width: min(280px, 86vw) !important;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 28px 14px 20px !important;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 8px 0 28px rgba(15, 23, 42, .18);
  }
  .metronic-shell .sidebar .brand,
  .sidebar .brand {
    justify-content: flex-start !important;
    margin: 0 14px 42px !important;
    font-size: 19px !important;
  }
  .metronic-shell .sidebar .nav-item,
  .sidebar .nav-item {
    justify-content: flex-start !important;
    padding: 11px 14px !important;
  }
  .metronic-shell .sidebar .nav-label,
  .sidebar .nav-label,
  .metronic-shell .sidebar .nav-group-label {
    display: inline !important;
  }
  body.mobile-nav-open .app-shell > .sidebar,
  body.mobile-nav-open .metronic-shell .sidebar,
  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-nav-backdrop {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .42);
  }
  .mobile-nav-backdrop[hidden] { display: none !important; }
  .mobile-nav-toggle { display: inline-flex; flex: 0 0 auto; width: 44px; height: 44px; min-width: 44px; }
  .app-shell > .main-content,
  .metronic-shell .main-content,
  .main-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .metronic-shell .topbar { align-items: center; flex-direction: row; gap: 10px; }
  .metronic-shell .topbar-actions { min-width: 0; }
  .metronic-shell .topbar-actions .workspace-switcher summary { max-width: 118px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .metronic-shell .profile-link { padding: 7px; }
  .metronic-shell .profile-link > span { display: none; }
  .metronic-shell .topbar h1 { overflow: hidden; max-width: 42vw; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .metronic-shell .topbar .eyebrow { margin-bottom: 3px; font-size: 8px; }
  .metronic-shell .main-content { padding-top: 18px; }
  .metronic-shell .topbar { margin-bottom: 24px; }
  .welcome-card, .action-panel, .workspace-overview { padding: 18px; }
  .message-header { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .metronic-shell .main-content { padding-right: 12px; padding-left: 12px; }
  .metronic-shell .topbar { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
  .metronic-shell .topbar h1 { max-width: 35vw; }
  .metronic-shell .user-chip > :not(.avatar) { display: none; }
  .widget-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .checkout-card, .history-job-row, .draft-review-row { padding: 12px; }
}

/* Workspace management and stronger action hierarchy */
.metronic-shell .button { box-shadow: 0 7px 16px rgba(255, 89, 174, .22); }
.metronic-shell .button:hover { box-shadow: 0 9px 20px rgba(255, 89, 174, .28); }
.workspace-menu-manage { margin-top: 6px; border-top: 1px solid #edf0f5; color: #ff59ae !important; }
.workspace-menu-manage .icon { width: 14px; height: 14px; }
.workspace-management-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.workspace-management-card { min-width: 0; padding: 21px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(15, 23, 42, .035); }
.workspace-management-create .muted { margin: 17px 0 0; font-size: 11px; line-height: 1.6; }
.workspace-count { padding: 9px 12px; border-radius: 8px; color: #ff59ae; background: #fff5fa; font-size: 11px; }
.workspace-count strong { margin-right: 4px; font-size: 17px; }
.managed-workspace-list { display: grid; gap: 8px; margin-top: 14px; }
.managed-workspace { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 9px; color: inherit; text-decoration: none; transition: background .16s ease, box-shadow .16s ease; }
.managed-workspace:hover { background: #f7f9ff; box-shadow: 0 5px 12px rgba(255, 89, 174, .08); }
.managed-workspace > span:nth-child(2) { min-width: 0; flex: 1; }
.managed-workspace strong, .managed-workspace small { display: block; }
.managed-workspace strong { color: #465270; font-size: 12px; }
.managed-workspace small { margin-top: 4px; color: #9aa4b7; font-size: 10px; }
.managed-workspace > .icon { width: 15px; color: #ff59ae; }
.workspace-management-empty { padding: 26px 10px; color: #596680; text-align: center; }
.workspace-management-empty p { margin: 7px 0 0; color: #9aa4b7; font-size: 11px; }
@media (max-width: 820px) { .workspace-management-grid { grid-template-columns: 1fr; } }

/* Guided first-run and account-level shell */
.account-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 820px; margin: 26px auto 28px; }
.account-hero h1 { margin: 7px 0 10px; color: #181c32; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; }
.account-hero p:last-child { max-width: 650px; margin: 0; color: #7e8299; font-size: 13px; line-height: 1.7; }
.app-shell--account .workspace-management-grid { grid-template-columns: 1.08fr .92fr; }
.workspace-create-form--stacked { display: grid; grid-template-columns: 1fr; width: 100%; }
.workspace-create-form--stacked label small { color: #64748b; font-size: 9px; font-weight: 500; }
.workspace-create-form--stacked .button { justify-self: start; margin-top: 5px; }

/* Soft Orchid Pink — first-setup onboarding */
.onboard-shell {
  --onboard-primary: #ec4899;
  --onboard-primary-light: #f9a8d4;
  --onboard-primary-subtle: #fce7f3;
  --onboard-primary-dark: #be185d;
  --onboard-burgundy: #321b2b;
  --onboard-dark: #1c1930;
  --onboard-surface: #f8fafc;
  --onboard-muted: #64748b;
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 60%);
  max-width: 1100px;
  margin: 8px auto 0;
  overflow: hidden;
  border: 1px solid #ece6e9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 25, 48, .08);
  animation: onboard-shell-in .45s ease both;
}
@keyframes onboard-shell-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.onboard-rail {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 32px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(249, 168, 212, .35), transparent 42%),
    linear-gradient(160deg, var(--onboard-burgundy) 0%, #4a1f3a 48%, var(--onboard-primary-dark) 100%);
}
.onboard-rail-icon {
  margin-bottom: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.onboard-rail-kicker {
  margin: 0 0 8px;
  color: var(--onboard-primary-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.onboard-rail h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.4px;
}
.onboard-rail-brand > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.65;
}
.onboard-progress { display: grid; gap: 8px; }
.onboard-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 600;
}
.onboard-progress-meta strong { color: #fff; }
.onboard-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.onboard-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--onboard-primary-light), var(--onboard-primary));
  transition: width .35s ease;
}
.onboard-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.onboard-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, .58);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.onboard-step-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.onboard-steps strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}
.onboard-steps small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  line-height: 1.45;
}
.onboard-steps li.is-active {
  color: #fff;
  border-color: rgba(249, 168, 212, .35);
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}
.onboard-steps li.is-active .onboard-step-index {
  border-color: var(--onboard-primary);
  color: #fff;
  background: var(--onboard-primary);
}
.onboard-steps li.is-active small { color: rgba(255, 255, 255, .78); }
.onboard-steps li.is-done { color: rgba(255, 255, 255, .88); }
.onboard-steps li.is-done .onboard-step-index {
  border-color: rgba(249, 168, 212, .55);
  color: var(--onboard-burgundy);
  background: var(--onboard-primary-light);
}
.onboard-main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 24px 24px;
  background: #fff;
}
.onboard-mobile-progress { display: none; }
.onboard-mobile-progress .onboard-progress-meta { color: var(--onboard-muted); }
.onboard-mobile-progress .onboard-progress-meta strong { color: var(--onboard-dark); }
.onboard-mobile-progress .onboard-progress-track { background: var(--onboard-primary-subtle); }

.workspace-onboarding-form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: 0;
}
.onboard-form-intro h3 {
  margin: 0 0 8px;
  color: var(--onboard-dark);
  font-size: 22px;
  letter-spacing: -.3px;
}
.onboard-form-intro .muted {
  margin: 0;
  color: var(--onboard-muted);
  font-size: 14px;
  line-height: 1.6;
}
.onboard-field { display: grid; gap: 6px; }
.onboard-label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.onboard-label abbr {
  color: var(--onboard-primary);
  text-decoration: none;
}
.onboard-label small {
  margin-left: 4px;
  color: var(--onboard-muted);
  font-size: 11px;
  font-weight: 600;
}
.workspace-onboarding-form input,
.workspace-onboarding-form textarea,
.workspace-onboarding-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: var(--onboard-dark);
  font: inherit;
  font-size: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.workspace-onboarding-form input:focus,
.workspace-onboarding-form textarea:focus,
.workspace-onboarding-form select:focus {
  border-color: var(--onboard-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .15);
}
.workspace-onboarding-form input.is-invalid,
.workspace-onboarding-form textarea.is-invalid,
.workspace-onboarding-form select.is-invalid,
.onboard-phone:has(.is-invalid) {
  border-color: #e11d48;
}
.workspace-onboarding-form select:disabled {
  color: #94a3b8;
  background: var(--onboard-surface);
  cursor: not-allowed;
  opacity: 1;
}
.onboard-phone {
  display: grid;
  grid-template-columns: minmax(108px, 118px) 1fr;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.onboard-phone:focus-within {
  border-color: var(--onboard-primary);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .15);
}
.onboard-phone select[data-phone-dial] {
  width: 100%;
  min-width: 0;
  padding: 11px 8px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  color: #334155;
  background: var(--onboard-surface);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.onboard-phone select[data-phone-dial]:focus {
  box-shadow: none;
  outline: none;
}
.onboard-phone input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.onboard-phone input:focus { box-shadow: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.onboard-field-hint {
  color: #e11d48;
  font-size: 12px;
  line-height: 1.4;
}
.onboard-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.onboard-submit {
  justify-self: start;
  min-width: 180px;
  background: var(--onboard-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(236, 72, 153, .22);
}
.onboard-submit:hover {
  background: var(--onboard-primary-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(190, 24, 93, .24);
}
.onboard-submit:focus-visible {
  outline: 3px solid rgba(236, 72, 153, .28);
  outline-offset: 2px;
}
.onboard-submit:active { transform: translateY(1px); }
.settings-readonly {
  display: grid;
  gap: 12px;
  margin: 0;
}
.settings-readonly > div {
  display: grid;
  gap: 2px;
}
.settings-readonly dt {
  color: #8d98ac;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.settings-readonly dd {
  margin: 0;
  color: #34415f;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}
.onboard-submit:disabled,
.onboard-submit[aria-busy="true"] {
  opacity: .65;
  cursor: wait;
  box-shadow: none;
}
.onboard-actions .form-feedback {
  min-height: 1.2em;
  margin: 0;
  color: var(--onboard-muted);
  font-size: 13px;
}

/* Legacy class aliases used by older layout snippets */
.first-workspace-card { display: contents; }
.first-workspace-aside { display: contents; }
.setup-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 30px 32px; border: 1px solid #ffc2e2; border-radius: 18px; background: linear-gradient(115deg, #ffe8f4, #fff); box-shadow: 0 12px 28px rgba(255, 89, 174, .08); }
.setup-hero h2 { margin: 7px 0 9px; color: #181c32; font-size: 27px; }.setup-hero p:last-child { max-width: 650px; margin: 0; color: #7e8299; font-size: 12px; line-height: 1.65; }
.setup-hero--complete { padding-block: 25px; border-color: #d8eee5; background: linear-gradient(115deg, #effbf5, #fff); }
.setup-progress { overflow: hidden; border: 1px solid #ece6e9; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(17,17,17,.04); }
.setup-progress-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #f0f1f5; }
.setup-progress-head h3 { margin: 5px 0 0; color: #181c32; font-size: 16px; }.setup-progress-head > span { color: #a1a5b7; font-size: 9px; text-transform: uppercase; }.setup-progress-head > span strong { color: #ff59ae; font-size: 12px; }
.setup-checklist { display: grid; padding: 6px 20px 14px; }
.setup-step { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 13px 5px; border-bottom: 1px solid #f0f1f5; color: inherit; text-decoration: none; }
.setup-step:last-child { border-bottom: 0; }.setup-step:hover { background: #fffbfb; }
.setup-step-marker { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #e6e8ee; border-radius: 50%; color: #8f96a7; font-size: 10px; font-weight: 800; }
.setup-step-marker .icon { width: 14px; height: 14px; }.setup-step-content { min-width: 0; flex: 1; }.setup-step-content strong, .setup-step-content small { display: block; }.setup-step-content strong { color: #464e69; font-size: 12px; }.setup-step-content small { margin-top: 4px; color: #9da2b1; font-size: 10px; line-height: 1.5; }
.setup-step.is-done .setup-step-marker { border-color: #ccebdd; color: #1e9b71; background: #e8fff3; }.setup-step.is-done .setup-step-content strong { color: #707789; }
.setup-step.is-current { margin: 6px -8px; padding-inline: 13px; border: 1px solid #ffc2e2; border-radius: 10px; background: #fff8fb; }.setup-step.is-current .setup-step-marker { border-color: #ff59ae; color: #fff; background: #ff59ae; }
.setup-step > .icon { width: 15px; color: #ff59ae; }.setup-optional { padding: 4px 7px; border-radius: 5px; color: #7e8299; background: #f2f3f6; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.setup-progress--compact { margin-bottom: 22px; }.setup-progress--compact > summary { display: flex; align-items: center; gap: 10px; padding: 15px 20px; cursor: pointer; list-style: none; }.setup-progress--compact > summary::-webkit-details-marker { display: none; }.setup-progress--compact > summary > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #1e9b71; background: #e8fff3; }.setup-progress--compact > summary > span .icon { width: 13px; }.setup-progress--compact > summary strong { color: #464e69; font-size: 11px; }.setup-progress--compact > summary small { flex: 1; color: #a1a5b7; font-size: 9px; }.setup-progress--compact > summary > .icon { width: 14px; color: #a1a5b7; }
@media (max-width: 980px) {
  .onboard-shell { grid-template-columns: minmax(240px, 36%) minmax(0, 64%); }
  .onboard-rail { padding: 28px 22px; gap: 22px; }
  .onboard-main { padding: 24px 20px 22px; }
}
@media (max-width: 760px) {
  .account-hero, .setup-hero { align-items: flex-start; flex-direction: column; }
  .app-shell--account .workspace-management-grid { grid-template-columns: 1fr; }
  .setup-optional { display: none; }
  .onboard-shell {
    grid-template-columns: 1fr;
    max-width: 100%;
    border-radius: 16px;
  }
  .onboard-rail {
    display: none;
  }
  .onboard-mobile-progress {
    display: grid;
    gap: 8px;
    padding: 4px 0 2px;
  }
  .onboard-main {
    padding: 18px 16px 20px;
  }
  .workspace-onboarding-form {
    width: 100%;
    max-width: none;
  }
  .onboard-submit {
    width: 100%;
    justify-self: stretch;
  }
}

.slot-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: stretch; margin-bottom: 22px; }
.slot-summary-card { padding: 16px 18px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .025); }
.slot-summary-card .slot-label { display: block; color: #a1a5b7; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.slot-summary-card strong { display: block; margin-top: 8px; color: #181c32; font-size: 24px; }
.slot-summary-action { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 210px; padding: 16px 18px; border: 1px solid #ffc2e2; border-radius: 12px; background: #fff8fb; }
.slot-summary-action .muted { margin: 0; font-size: 11px; }
.slot-gate-banner { border-color: #ff59ae; background: #fff8fb; }
.slot-purchase-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; }
.slot-purchase-card h4 { margin: 8px 0 4px; color: #464e69; font-size: 15px; }
.slot-purchase-card > div > strong { color: #ff59ae; font-size: 18px; }
.slot-purchase-card p { margin: 6px 0 0; color: #a1a5b7; font-size: 12px; }
.ai-paused-banner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #ffe0a3; border-radius: 12px; background: #fff8dd; }
.ai-paused-banner strong { display: block; color: #7a5b12; font-size: 13px; }
.ai-paused-banner p { margin: 4px 0 0; color: #8d7340; font-size: 12px; }
.ai-paused-banner .text-link { font-size: 12px; }
@media (max-width: 900px) { .slot-summary { grid-template-columns: 1fr 1fr; } .slot-summary-action { grid-column: 1 / -1; } .slot-purchase-card { align-items: flex-start; flex-direction: column; } }

.payment-provider-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; }
.payment-provider-bar label { display: grid; gap: 6px; color: #53617d; font-size: 12px; font-weight: 700; }
.payment-provider-bar select, .provider-inline-label select { min-width: 160px; padding: 9px 11px; border: 1px solid #dfe4ee; border-radius: 8px; color: #34415f; background: #fff; font: inherit; font-size: 12px; }
.payment-provider-bar .muted { margin: 0; max-width: 360px; font-size: 11px; }
.provider-inline-label { display: grid; gap: 5px; color: #74809a; font-size: 10px; font-weight: 700; }
@media (max-width: 720px) { .payment-provider-bar { align-items: flex-start; flex-direction: column; } }

.members-invite-form { grid-template-columns: 1.2fr .8fr auto; }
.members-invite-form select { width: 100%; padding: 10px 11px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; font: inherit; font-size: 12px; background: #fff; }
.invite-hint, .invite-pending-list { margin-top: 16px; }
.invite-accept-card { max-width: 560px; padding: 22px; }
.message-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 14px 18px 18px; border-top: 1px solid #edf0f5; background: #faf7f8; }
.message-composer textarea { width: 100%; min-height: 64px; resize: vertical; padding: 11px 12px; border: 1px solid #dfe4ee; border-radius: 10px; color: #34415f; font: inherit; font-size: 13px; }
.message-composer textarea:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }
.message-composer .button { margin: 0; }
.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; }
@media (max-width: 700px) { .members-invite-form { grid-template-columns: 1fr; }.message-composer { grid-template-columns: 1fr; } }

.knowledge-composer-card { margin-bottom: 22px; padding: 18px 18px 8px; border: 1px solid #e8ecf4; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(32, 45, 83, .03); }
.knowledge-composer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px 14px; margin-top: 12px; }
.knowledge-composer label { display: grid; gap: 6px; color: #596680; font-size: 11px; font-weight: 700; }
.knowledge-composer input:not([type="checkbox"]):not([type="radio"]), .knowledge-composer select, .knowledge-composer textarea { width: 100%; padding: 10px 11px; border: 1px solid #dfe4ee; border-radius: 8px; color: #34415f; font: inherit; font-size: 13px; background: #fff; }
.knowledge-composer textarea { resize: vertical; min-height: 120px; }
.knowledge-wide { grid-column: 1 / -1; }
.knowledge-dropzone { position: relative; display: grid; gap: 8px; justify-items: center; padding: 22px 16px; border: 1.5px dashed #cfd7e6; border-radius: 12px; background: #f8faff; text-align: center; color: #5b6b88; cursor: pointer; }
.knowledge-dropzone.is-dragover { border-color: #ff59ae; background: #eef6ff; }
.knowledge-dropzone strong { color: #2f3b59; }
.knowledge-dropzone small { color: #8a96ad; font-size: 11px; }
.knowledge-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.knowledge-file-list { width: min(100%, 520px); margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }
.knowledge-file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #e7ebf3; border-radius: 8px; background: #fff; margin-top: 6px; font-size: 12px; }
.knowledge-composer-actions { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; }
.knowledge-asset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.knowledge-asset-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #f1f4fb; color: #4b5b7c; text-decoration: none; font-size: 10px; font-weight: 700; }
.knowledge-asset-chip span { color: #ff59ae; }
@media (max-width: 760px) { .knowledge-composer { grid-template-columns: 1fr; }.knowledge-composer-actions { align-items: flex-start; flex-direction: column; } }


/* Public pages and first-use experience: quiet surfaces, readable copy, clear actions. */
:root { --primary: #ff59ae; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #ff59ae; outline-offset: 4px; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.landing-refined .lp-nav { background: rgba(17,17,17,.92); border-bottom-color: rgba(255,255,255,.1); }
.landing-refined .lp-nav .landing-brand { color: #fff; }
.landing-refined .lp-nav-links a, .landing-refined .lp-nav-ghost { color: #ded2d8; }
.landing-refined .lp-hero { background: #111111; color: #fff; padding: 88px 0; }
.landing-refined .lp-hero::before { display: block; }
.landing-refined .lp-hero-inner { gap: 48px; }
.landing-refined .lp-badge { color: #ffe8f4; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); font-size: 11px; letter-spacing: .08em; }
.landing-refined .lp-hero-copy h1 { color: #fff; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.14; letter-spacing: -2px; }
.landing-refined .lp-hero-copy h1 span { color: transparent; background: linear-gradient(92deg, #f8d7ea, #ffc2e2 48%, #ff59ae); background-clip: text; -webkit-background-clip: text; }
.landing-refined .lp-lead { color: #dfcfd6; font-size: 16px; }
.landing-refined .lp-ghost-button { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.24); }
.landing-refined .lp-hero-points { gap: 12px 18px; margin-top: 24px; }
.landing-refined .lp-hero-points li { color: #dfcfd6; font-size: 12px; }
.landing-refined .lp-hero-points .icon { color: #4ade9f; }
.lp-signup-note { margin: 16px 0 0; color: #d7c6ce; font-size: 12px; }
.lp-trust-strip { border-bottom: 1px solid #efe6e9; background: #fff; }
.lp-trust-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 0; }
.lp-trust-strip-inner > p { margin: 0; max-width: 420px; color: #655c68; font-size: 14px; line-height: 1.6; }
.lp-trust-strip-inner strong { color: #1c151d; }
.lp-trust-strip ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.lp-trust-strip li { display: inline-flex; align-items: center; gap: 8px; color: #3f3642; font-size: 13px; font-weight: 700; }
.lp-trust-strip .icon { width: 15px; height: 15px; color: var(--primary); }
.lp-heading-center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-heading-center > p:last-child { margin-left: auto; margin-right: auto; }
.lp-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-featured { display: flex; flex-direction: column; min-height: 100%; padding: 30px 28px; border: 1px solid #efe6e9; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(48, 22, 28, .04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.lp-featured:hover { transform: translateY(-4px); border-color: #ffc2e2; box-shadow: 0 22px 48px rgba(255, 89, 174, .1); }
.lp-featured h3 { margin: 18px 0 10px; color: #1c151d; font-size: 20px; letter-spacing: -.4px; }
.lp-featured > p { margin: 0 0 18px; color: #655c68; font-size: 14px; line-height: 1.7; }
.lp-featured ul { margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid #f1e8eb; }
.lp-featured li { position: relative; padding: 7px 0 7px 16px; color: #4b4250; font-size: 13px; font-weight: 600; }
.lp-featured li::before { content: ""; position: absolute; top: 14px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.lp-featured-accent { border-color: #ffc2e2; background: linear-gradient(165deg, #fff5fa, #fff); }
.lp-advantage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-advantage { padding: 26px 24px; border: 1px solid #efe6e9; border-radius: 18px; background: #fff; transition: transform .18s ease, border-color .18s ease; }
.lp-advantage:hover { transform: translateY(-3px); border-color: #ffc2e2; }
.lp-advantage h3 { margin: 16px 0 8px; color: #1c151d; font-size: 17px; letter-spacing: -.3px; }
.lp-advantage p { margin: 0; color: #655c68; font-size: 14px; line-height: 1.65; }
.lp-trust-line { margin: 18px 0 0 !important; color: #fff !important; font-size: 15px !important; font-weight: 700; letter-spacing: -.2px; }
.lp-footer-trust { margin: 0 0 18px; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.lp-reveal { animation: lp-reveal .7s ease both; }
@keyframes lp-reveal { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(-1deg); } }
.lp-product-preview { color: #211c23; min-width: 0; border: 1px solid #e5dce0; border-radius: 20px; background: white; box-shadow: 0 24px 60px #3d1d2910; overflow: hidden; transform: rotate(-1deg); }
.lp-product-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; background: #f8f5f6; border-bottom: 1px solid #ece5e8; }
.lp-product-bar > span { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; }
.lp-product-bar small, .lp-product-context small { color: #726773; font-size: 11px; }
.lp-product-context { display: flex; align-items: center; gap: 10px; padding: 22px; }
.lp-product-context strong, .lp-product-context small { display: block; margin-bottom: 4px; }
.lp-product-context strong { font-size: 14px; }
.lp-example-tag { margin-left: auto; padding: 6px 8px; border-radius: 6px; color: #714a83; background: #f3edf7; font-size: 10px; white-space: nowrap; }
.lp-example-messages { padding: 4px 22px 26px; font-size: 14px; line-height: 1.7; }
.lp-example-in { width: fit-content; max-width: 90%; padding: 13px 16px; background: #f1eef0; border-radius: 0 12px 12px; }
.lp-example-draft { margin: 24px 0 0 22px; padding: 18px; border: 1px solid #efd3d7; background: #fff8fb; border-radius: 12px 0 12px 12px; }
.lp-example-draft > span { display: flex; align-items: center; gap: 8px; color: #f03d98; font-size: 11px; font-weight: 700; }
.lp-example-draft p { margin: 10px 0; }
.lp-example-draft small { color: #736773; font-size: 11px; }
.lp-product-bottom { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid #eee7ea; color: #736773; font-size: 11px; line-height: 1.6; }
.lp-product-bottom .icon { flex-shrink: 0; }
.lp-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.lp-feature-grid .lp-card { grid-column: auto; background: #fff; padding: 28px; box-shadow: none; }
.landing-refined .lp-card p, .landing-refined .lp-heading p, .landing-refined .lp-steps p, .landing-refined .lp-faq-list p { color: #655c68; }
.lp-practical-note { display: flex; align-items: flex-start; gap: 12px; padding: 22px; margin-top: 28px; border: 1px solid #e8dfe2; border-radius: 12px; color: #655c68; background: #fff; }
.lp-practical-note .icon { flex-shrink: 0; }
.lp-practical-note p { margin: 0; font-size: 13px; line-height: 1.7; }
.landing-refined .lp-cta { background: linear-gradient(115deg, #ff59ae, #ff59ae 48%, #ff59ae); }
.landing-refined .lp-footer { padding: 25px 0; background: #111111; }
.landing-refined .lp-footer-base { margin-top: 0; padding-top: 0; border: 0; }
.landing-refined .lp-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.auth-panel-head > p:last-child, .auth-security { color: #655f70; font-size: 14px; line-height: 1.7; }
.auth-divider { color: #746b7a; font-size: 10px; }
.auth-invite-note { padding: 14px; margin: 0 0 24px; background: #f7f5f7; border-radius: 10px; color: #655f70; font-size: 12px; line-height: 1.7; }
.auth-panel .auth-back { font-size: 13px; min-height: 44px; }
.oauth-button { min-height: 48px; }
.setup-hero h2 { overflow-wrap: anywhere; }
.setup-hero p:last-child { color: #625b6d; font-size: 14px; }
.setup-step-content strong { font-size: 14px; }
.setup-step-content small { font-size: 12px; color: #716979; }
.setup-progress-head > span, .setup-progress--compact > summary small { font-size: 12px; color: #716979; }
.dashboard-stats { margin-top: 24px; }
.dashboard-stats .stat-label, .pulse-list strong, .recent-list strong { font-size: 13px; }
.dashboard-stats small, .pulse-list small, .recent-list small, .dashboard-empty p { font-size: 12px; color: #716979; line-height: 1.6; }
.dashboard-empty strong { font-size: 14px; }
.widget-heading .eyebrow, .widget-heading .text-link { font-size: 11px; }
.form-feedback { color: #f03d98; font-size: 13px; line-height: 1.6; }
.workspace-create-form input { min-height: 46px; font-size: 16px; }
.workspace-create-form small { line-height: 1.6; }
.first-workspace-aside p { line-height: 1.7; }
@media (max-width: 960px) {
  .lp-feature-grid, .lp-featured-grid, .lp-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-trust-strip-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 640px) {
  .lp-shell { padding-inline: 20px; }
  .landing-refined .lp-nav-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .landing-refined .lp-nav .landing-brand { font-size: 17px; }
  .landing-refined .lp-nav-links { display: flex; order: 3; width: 100%; margin: 0; justify-content: center; gap: 18px; padding-top: 10px; }
  .landing-refined .lp-nav-links a { font-size: 12px; padding: 6px 0; }
  .landing-refined .lp-nav-actions { gap: 12px; }
  .landing-refined .lp-nav-ghost { font-size: 12px; }
  .landing-refined .lp-nav-cta { min-height: 40px; padding: 8px 12px; }
  .landing-refined .lp-hero { padding: 44px 0 52px; }
  .landing-refined .lp-hero-copy h1 { font-size: 39px; letter-spacing: -1.6px; }
  .lp-product-preview { transform: none; }
  .lp-reveal { animation-name: lp-reveal-mobile; }
  @keyframes lp-reveal-mobile { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  .lp-product-context, .lp-product-bar, .lp-product-bottom { padding-inline: 16px; }
  .lp-example-messages { padding-inline: 16px; }
  .lp-feature-grid, .lp-featured-grid, .lp-advantage-grid { grid-template-columns: 1fr; }
  .lp-heading-center { text-align: left; }
  .lp-trust-line { font-size: 14px !important; }
  .auth-showcase { min-height: auto; padding: 24px; }
  .auth-showcase-copy { margin-top: 28px; }
  .auth-showcase h1 { font-size: 30px; letter-spacing: -1px; }
  .auth-showcase-text { margin-top: 12px; }
  .auth-panel { padding: 30px 24px; }
  .setup-hero { padding: 24px; }
  .setup-hero h2 { font-size: 24px; }
  .setup-progress-head { gap: 12px; flex-wrap: wrap; }
  .setup-progress--compact > summary { flex-wrap: wrap; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .widget-heading { flex-wrap: wrap; }
  .first-workspace-card > form { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.onboarding-invite-note {
  max-width: 520px;
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}
.onboarding-next { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.onboarding-next p { margin: 0; color: #655f70; font-size: 13px; line-height: 1.7; }
@media (max-width: 640px) {
  .setup-hero .button, .onboarding-next .button { max-width: 100%; white-space: normal; line-height: 1.5; }
  .onboarding-next { align-items: flex-start; flex-direction: column; }
  .user-chip { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── Landing pro — Relation Pink SaaS ── */
.landing-pro {
  --lp2-ink: #111111;
  --lp2-muted: #6b6469;
  --lp2-line: #ece6e9;
  --lp2-soft: #fff5fa;
  --lp2-red: #ff59ae;
  --lp2-red-deep: #f03d98;
  --lp2-red-soft: #ffe8f4;
  --lp2-canvas: #f8f6f7;
  background: var(--lp2-canvas);
  color: var(--lp2-ink);
}
.landing-pro h1,
.landing-pro h2,
.landing-pro h3,
.landing-pro p { max-width: none; }
.landing-pro .lp2-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* Nav */
.landing-pro .lp2-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248, 246, 247, .88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 17, 17, .06);
}
.landing-pro .lp2-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.landing-pro .lp2-brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0; min-width: 0;
  color: var(--lp2-ink); font-size: 18px; font-weight: 800; letter-spacing: -.45px; text-decoration: none;
}
.landing-pro .lp2-brand .brand-mark {
  display: grid; place-items: center;
  flex-shrink: 0; width: 36px; height: 36px;
  overflow: visible; border-radius: 0; background: transparent;
}
.landing-pro .lp2-brand .brand-logo { display: block; width: 36px; height: 36px; object-fit: contain; }
.landing-pro .lp2-brand .brand-wordmark { flex-shrink: 0; }
.landing-pro .lp2-brand .brand-wordmark-product { color: var(--lp2-ink); font-size: 16px; }
.landing-pro .lp2-brand-light .brand-mjo { color: #fff; }
.landing-pro .lp2-brand-light .brand-wordmark-product { color: #fff; }
.landing-pro .lp2-links { display: flex; justify-content: center; gap: 28px; margin: 0; }
.landing-pro .lp2-links a { color: var(--lp2-muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.landing-pro .lp2-links a:hover { color: var(--lp2-ink); }
.landing-pro .lp2-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.landing-pro .lp2-link-quiet { color: var(--lp2-ink); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Buttons — one pink action */
.landing-pro .lp2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 14px; border: 0;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.landing-pro .lp2-btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; border-radius: 16px; }
.landing-pro .lp2-btn-primary {
  color: #111; background: var(--lp2-red);
  box-shadow: 0 12px 28px rgba(255, 89, 174, .28);
}
.landing-pro .lp2-btn-primary:hover {
  transform: translateY(-1px); background: #ff7ac0;
  box-shadow: 0 16px 34px rgba(255, 89, 174, .34);
}
.landing-pro .lp2-btn-ghost {
  color: var(--lp2-ink); background: #fff; border: 1px solid var(--lp2-line);
}
.landing-pro .lp2-btn-ghost:hover { border-color: var(--lp2-red); background: var(--lp2-soft); }
.landing-pro .lp2-btn-light { color: #111; background: #fff; box-shadow: 0 14px 30px rgba(17, 17, 17, .12); }
.landing-pro .lp2-btn-outline-light { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.42); }

/* Hero — brand first + full-bleed visual plane */
.landing-pro .lp2-hero {
  --mx: 50%; --my: 36%; --px: 0; --py: 0;
  position: relative; overflow: hidden;
  padding: 36px 0 0;
  background: var(--lp2-canvas);
}
/* Landing v4 — full-bleed product plane, fewer card shells */
.landing-pro.landing-v4 {
  --lp2-canvas: #f7f3f5;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #ffe8f4 0%, transparent 55%),
    linear-gradient(180deg, #fffafc 0%, var(--lp2-canvas) 28%, #f3eef1 100%);
}
.landing-pro.landing-v4 .lp2-hero {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
}
.landing-pro.landing-v4 .lp2-hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin-inline: auto;
  padding: 8px 0 18px;
  text-align: center;
}
.landing-pro.landing-v4 .lp2-brand-hero { margin-bottom: 10px; }
.landing-pro.landing-v4 .lp2-brand-hero .brand-wordmark--hero .brand-wordmark-product {
  font-size: clamp(32px, 5.6vw, 52px);
  letter-spacing: -1.5px;
}
.landing-pro.landing-v4 .lp2-hero h1 {
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -.7px;
  max-width: 22ch;
  margin: 0 auto 12px;
  line-height: 1.22;
}
.landing-pro.landing-v4 .lp2-lead {
  max-width: 40rem;
  margin: 0 auto 18px;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.6;
}
.landing-pro.landing-v4 .lp2-hero-cta { margin-bottom: 4px; }
.landing-pro.landing-v4 .lp2-hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 10px;
  padding: 0;
}
.landing-pro.landing-v4 .lp2-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(17,17,17,.06);
  border-bottom: 0;
  box-shadow:
    0 -12px 48px rgba(255, 89, 174, .14),
    0 28px 64px rgba(17, 17, 17, .08);
  animation: lp2-stage-rise .9s cubic-bezier(.22, 1, .36, 1) .08s both;
}
@keyframes lp2-stage-rise {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.landing-pro.landing-v4 .lp2-trustband {
  padding: 26px 0 8px;
  text-align: center;
  background: transparent;
  border: 0;
}
.landing-pro.landing-v4 .lp2-trustband-title {
  margin-bottom: 10px;
  color: var(--lp2-muted);
  font-size: 13px;
  font-weight: 600;
}
.landing-pro.landing-v4 .lp2-trustband-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 0;
  color: #7a7280;
  font-size: 13px;
  font-weight: 600;
}
.landing-pro.landing-v4 .lp2-trustband-line span {
  display: inline-flex;
  align-items: center;
}
.landing-pro.landing-v4 .lp2-trustband-line span + span::before {
  content: "·";
  margin: 0 10px;
  color: #c4bcc6;
  font-weight: 700;
}
.landing-pro.landing-v4 .lp2-kicker {
  margin: 0 0 12px;
  color: var(--lp2-red-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-pro.landing-v4 .lp2-feature-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--lp2-line);
}
.landing-pro.landing-v4 .lp2-feature-rows article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 28px 22px;
  border-bottom: 1px solid var(--lp2-line);
  text-align: left;
  background: transparent;
  box-shadow: none;
}
.landing-pro.landing-v4 .lp2-feature-rows article:nth-child(odd) {
  border-right: 1px solid var(--lp2-line);
}
.landing-pro.landing-v4 .lp2-feature-rows h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.3px;
}
.landing-pro.landing-v4 .lp2-feature-rows p {
  margin: 0;
  color: var(--lp2-muted);
  font-size: 14px;
  line-height: 1.65;
}
.landing-pro.landing-v4 .lp2-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-pro.landing-v4 .lp2-rail li {
  position: relative;
  padding: 8px 28px 8px 0;
  text-align: left;
}
.landing-pro.landing-v4 .lp2-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 52px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, #ffc2e2, #ece6e9 70%, transparent);
}
.landing-pro.landing-v4 .lp2-rail em {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--lp2-red);
  color: #111;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 89, 174, .22);
}
.landing-pro.landing-v4 .lp2-rail h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.3px;
}
.landing-pro.landing-v4 .lp2-rail p {
  margin: 0;
  color: var(--lp2-muted);
  font-size: 14px;
  line-height: 1.6;
}
/* Hero ambient wash + drifting orbs */
.landing-pro.landing-v4 .lp2-hero-wash {
  position: absolute;
  inset: -18% -10% 18%;
  background:
    radial-gradient(ellipse 55% 45% at 30% 28%, rgba(255, 194, 226, .55), transparent 70%),
    radial-gradient(ellipse 50% 42% at 72% 18%, rgba(255, 89, 174, .28), transparent 68%),
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 232, 244, .7), transparent 72%);
  filter: blur(8px);
  animation: lp2-wash-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.landing-pro.landing-v4 .lp2-hero-orb-c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: 18%;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 122, 192, .4), transparent 70%);
  animation: lp2-orb-drift-c 26s ease-in-out infinite alternate;
}
.landing-pro.landing-v4 .lp2-hero-orb-a {
  animation: lp2-orb-drift-a 20s ease-in-out infinite alternate;
}
.landing-pro.landing-v4 .lp2-hero-orb-b {
  animation: lp2-orb-drift-b 24s ease-in-out infinite alternate;
}
@keyframes lp2-wash-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.06); }
}
@keyframes lp2-orb-drift-a {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.08); }
}
@keyframes lp2-orb-drift-b {
  from { transform: translate3d(3%, -2%, 0) scale(1.04); }
  to { transform: translate3d(-5%, 4%, 0) scale(1); }
}
@keyframes lp2-orb-drift-c {
  from { transform: translate3d(0, 2%, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.1); }
}
.landing-pro.landing-v4 .lp2-stage-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  background: #fffafc;
}
.landing-pro.landing-v4 .lp2-stage-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd0e3;
}
.landing-pro.landing-v4 .lp2-stage-chrome span:nth-child(2) { background: #ffc2e2; }
.landing-pro.landing-v4 .lp2-stage-chrome span:nth-child(3) { background: #ff9dcf; }

/* Pricing redesign */
.landing-pro.landing-v4 .lp2-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.landing-pro.landing-v4 .lp2-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px 22px;
  border: 1px solid var(--lp2-line);
  border-radius: 22px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.landing-pro.landing-v4 .lp2-price-card:hover {
  transform: translateY(-4px);
  border-color: #ffc2e2;
  box-shadow: 0 18px 40px rgba(255, 89, 174, .12);
}
.landing-pro.landing-v4 .lp2-price-card.is-featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, #ff59ae, #ffc2e2 55%, #ffe8f4) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 48px rgba(255, 89, 174, .16);
  transform: translateY(-6px);
}
.landing-pro.landing-v4 .lp2-price-card.is-featured:hover {
  transform: translateY(-8px);
}
.landing-pro.landing-v4 .lp2-price-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lp2-red);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.landing-pro.landing-v4 .lp2-price-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp2-muted);
  letter-spacing: -.1px;
}
.landing-pro.landing-v4 .lp2-price-amount {
  margin: 0;
  color: var(--lp2-ink);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.landing-pro.landing-v4 .lp2-price-card.is-featured .lp2-price-amount {
  color: var(--lp2-red-deep);
}
.landing-pro.landing-v4 .lp2-price-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}
.landing-pro.landing-v4 .lp2-price-perks li {
  position: relative;
  padding-left: 18px;
  color: #5c5461;
  font-size: 13px;
  line-height: 1.45;
}
.landing-pro.landing-v4 .lp2-price-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp2-red);
  box-shadow: 0 0 0 3px var(--lp2-red-soft);
}
.landing-pro.landing-v4 .lp2-price-card .lp2-btn {
  width: 100%;
  margin-top: 6px;
}

/* Finale animated dark→pink field */
.landing-pro.landing-v4 .lp2-finale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}
.landing-pro.landing-v4 .lp2-finale-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing-pro.landing-v4 .lp2-finale-wash {
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(125deg, #0d0d0d 0%, #1a1016 28%, #ff59ae 62%, #ff8ac4 82%, #111 100%);
  background-size: 220% 220%;
  animation: lp2-finale-flow 18s ease-in-out infinite;
}
.landing-pro.landing-v4 .lp2-finale-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.landing-pro.landing-v4 .lp2-finale-orb-a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -20%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 232, 244, .55), transparent 70%);
  animation: lp2-finale-orb-a 16s ease-in-out infinite alternate;
}
.landing-pro.landing-v4 .lp2-finale-orb-b {
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  right: -6%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(255, 89, 174, .65), transparent 70%);
  animation: lp2-finale-orb-b 20s ease-in-out infinite alternate;
}
@keyframes lp2-finale-flow {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}
@keyframes lp2-finale-orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12%, 10%, 0) scale(1.12); }
}
@keyframes lp2-finale-orb-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-10%, -8%, 0) scale(1); }
}
.landing-pro.landing-v4 .lp2-finale-inner {
  position: relative;
  z-index: 1;
}
.landing-pro .lp2-hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.landing-pro .lp2-hero-mesh {
  position: absolute; inset: -8% 0 30%;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 89, 174, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 89, 174, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, #000 15%, transparent 72%);
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0);
}
.landing-pro .lp2-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(48px); will-change: transform;
}
.landing-pro .lp2-hero-orb-a {
  width: min(58vw, 480px); height: min(58vw, 480px);
  top: -12%; left: 50%; translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 232, 244, .95), rgba(255, 89, 174, .22) 45%, transparent 70%);
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 12px), 0);
}
.landing-pro .lp2-hero-orb-b {
  width: min(40vw, 320px); height: min(40vw, 320px);
  top: 28%; right: -4%;
  background: radial-gradient(circle, rgba(255, 194, 226, .55), transparent 70%);
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * 10px), 0);
}
.landing-pro .lp2-hero-spot {
  position: absolute; inset: -15%;
  background: radial-gradient(circle 260px at var(--mx) var(--my), rgba(255,255,255,.5), transparent 55%);
  mix-blend-mode: soft-light;
}
.landing-pro .lp2-hero-copy {
  position: relative; z-index: 2;
  width: min(100%, 760px); margin-inline: auto; padding: 28px 0 40px; text-align: center;
}
.landing-pro .lp2-brand-hero {
  display: flex; justify-content: center; margin: 0 0 18px;
}
.landing-pro .lp2-brand-hero .brand-wordmark--hero .brand-mjo { color: #111; }
.landing-pro .lp2-brand-hero .brand-wordmark--hero .brand-wordmark-product {
  color: var(--lp2-red);
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -1.8px;
}
.landing-pro .lp2-hero h1 {
  margin: 0 0 16px; color: var(--lp2-ink);
  font-size: clamp(28px, 4.2vw, 40px); line-height: 1.18; letter-spacing: -1.2px; font-weight: 700;
  text-wrap: balance;
}
.landing-pro .lp2-lead {
  max-width: 560px; margin: 0 auto 28px; color: var(--lp2-muted);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
}
.landing-pro .lp2-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.landing-pro .lp2-hero-visual {
  position: relative; z-index: 1;
  width: 100%;
  padding: 0;
  margin-top: 8px;
}
.landing-pro .lp2-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.06);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -8px 60px rgba(255, 89, 174, .1), 0 24px 60px rgba(17, 17, 17, .06);
}
.landing-pro .lp2-stage-top {
  display: grid; grid-template-columns: 1fr 1.35fr .85fr; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--lp2-line); background: #fffafc;
}
.landing-pro .lp2-stage-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.landing-pro .lp2-stage-brand .icon { width: 16px; color: var(--lp2-red); }
.landing-pro .lp2-stage-search {
  justify-self: center; width: min(100%, 300px); padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--lp2-line); color: #9a919f; font-size: 12px; background: #fff;
}
.landing-pro .lp2-stage-user { display: inline-flex; align-items: center; justify-self: end; gap: 8px; color: #5c5461; font-size: 12px; font-weight: 700; }
.landing-pro .lp2-stage-user span { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, #ff59ae, #ff7ac0); }
.landing-pro .lp2-stage-body { display: grid; grid-template-columns: .76fr 1.24fr; min-height: 300px; }
.landing-pro .lp2-stage-body > aside { border-right: 1px solid var(--lp2-line); background: #fff; }
.landing-pro .lp2-stage-body > aside > div { padding: 15px 16px; border-bottom: 1px solid #f3ecef; }
.landing-pro .lp2-stage-body > aside > div.is-active { background: var(--lp2-soft); border-left: 3px solid var(--lp2-red); }
.landing-pro .lp2-stage-body aside b { display: block; font-size: 13px; }
.landing-pro .lp2-stage-body aside small { color: var(--lp2-muted); font-size: 11px; }
.landing-pro .lp2-stage-chat { padding: 18px 20px 24px; background: linear-gradient(180deg, #fff, #fff5fa); text-align: left; }
.landing-pro .lp2-stage-chat header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.landing-pro .lp2-stage-chat header strong { font-size: 14px; }
.landing-pro .lp2-stage-chat header em {
  padding: 5px 9px; border-radius: 999px; background: var(--lp2-red-soft); color: var(--lp2-red-deep);
  font-size: 10px; font-style: normal; font-weight: 800;
}
.landing-pro .lp2-stage-chat .in {
  width: fit-content; max-width: 84%; margin: 0; padding: 12px 14px;
  border-radius: 4px 16px 16px; background: #f0eaed; color: #3d3442; font-size: 13px; line-height: 1.55;
}
.landing-pro .lp2-stage-chat .draft {
  margin: 14px 0 0 20px; padding: 14px 15px; border: 1px solid #ffd0e3; border-radius: 16px 4px 16px 16px; background: #fff;
}
.landing-pro .lp2-stage-chat .draft > span { display: inline-flex; align-items: center; gap: 6px; color: var(--lp2-red-deep); font-size: 11px; font-weight: 700; }
.landing-pro .lp2-stage-chat .draft .icon { width: 14px; }
.landing-pro .lp2-stage-chat .draft p { margin: 8px 0 12px; color: #3d3442; font-size: 13px; line-height: 1.55; }
.landing-pro .lp2-draft-actions { display: flex; gap: 8px; }
.landing-pro .lp2-draft-actions span {
  padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--lp2-red); color: #111;
}
.landing-pro .lp2-draft-actions span:last-child { background: #f3eaed; color: #5b5160; }

/* Entrance */
.landing-pro [data-lp2-enter],
.landing-pro [data-lp2-enter-stage] {
  opacity: 0; transform: translateY(18px);
  animation: lp2-enter .7s ease forwards;
}
.landing-pro [data-lp2-enter-stage] { animation-delay: .12s; }
@keyframes lp2-enter { to { opacity: 1; transform: translateY(0); } }

/* Trust */
.landing-pro .lp2-trustband { padding: 36px 0 12px; text-align: center; }
.landing-pro .lp2-trustband-title {
  max-width: 640px; margin: 0 auto 14px; color: var(--lp2-ink); font-size: 14px; font-weight: 700;
}
.landing-pro .lp2-trustband-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin: 0; padding: 0; list-style: none; color: #8a8190; font-size: 13px; font-weight: 600;
}
.landing-pro .lp2-trustband-list li { position: relative; }
.landing-pro .lp2-trustband-list li + li::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: #d7c9cf; transform: translateY(-50%);
}

/* Sections */
.landing-pro .lp2-section { padding: 96px 0; }
.landing-pro .lp2-section-soft { background: rgba(255,255,255,.7); border-block: 1px solid var(--lp2-line); }
.landing-pro .lp2-section-ink {
  margin: 0; padding: 96px 0; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 89, 174, .32), transparent 42%),
    linear-gradient(145deg, #111111, #161616 55%, #111111);
}
.landing-pro .lp2-section-ink h2 { color: #fff !important; }
.landing-pro .lp2-pill {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; padding: 7px 12px;
  border: 1px solid rgba(255, 89, 174, .18); border-radius: 999px; background: rgba(255,255,255,.85);
  color: var(--lp2-red-deep); font-size: 12px; font-weight: 700;
}
.landing-pro .lp2-pill-on-ink { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #ffc2e2; }
.landing-pro .lp2-intro {
  display: flex; flex-direction: column; align-items: center;
  max-width: 720px; margin: 0 auto 48px; text-align: center;
}
.landing-pro .lp2-intro-left { align-items: flex-start; margin: 0; text-align: left; }
.landing-pro .lp2-intro h2, .landing-pro .lp2-about h2, .landing-pro .lp2-finale h2 {
  width: 100%; max-width: 680px; margin: 10px auto; color: var(--lp2-ink);
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.16; letter-spacing: -1.2px; text-wrap: balance;
}
.landing-pro .lp2-about h2 { max-width: 520px; margin-left: 0; margin-right: 0; text-align: left; }
.landing-pro .lp2-intro > p:last-child, .landing-pro .lp2-about-lead {
  width: 100%; max-width: 560px; margin: 0 auto; color: var(--lp2-muted); font-size: 16px; line-height: 1.7;
}
.landing-pro .lp2-intro-left > p:last-child { margin-left: 0; margin-right: 0; }
.landing-pro .lp2-section-ink .lp2-about-lead { color: rgba(255,255,255,.7); }

.landing-pro .lp2-bento { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.landing-pro .lp2-bento-main {
  padding: 36px 34px; border-radius: 26px; border: 1px solid #f0dce6;
  background: linear-gradient(165deg, #fff8fb, #fff);
  text-align: left;
}
.landing-pro .lp2-kicker {
  margin: 0 0 10px; color: var(--lp2-red-deep); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.landing-pro .lp2-bento-main h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.6px; }
.landing-pro .lp2-bento-main > p { margin: 0 0 22px; max-width: 420px; color: var(--lp2-muted); font-size: 15px; line-height: 1.65; }
.landing-pro .lp2-bento-main ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.landing-pro .lp2-bento-main li {
  display: flex; align-items: center; gap: 10px; color: #3f3644; font-size: 14px; font-weight: 600;
}
.landing-pro .lp2-bento-main .icon { width: 16px; color: var(--lp2-red); }
.landing-pro .lp2-bento-side { display: grid; gap: 18px; }
.landing-pro .lp2-bento-side > div {
  padding: 26px 24px; border-radius: 22px; border: 1px solid var(--lp2-line); background: #fff;
  text-align: left;
}
.landing-pro .lp2-bento-side h3 { margin: 14px 0 8px; font-size: 18px; letter-spacing: -.3px; }
.landing-pro .lp2-bento-side p { margin: 0; color: var(--lp2-muted); font-size: 14px; line-height: 1.6; }
.landing-pro .lp2-ico {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; color: var(--lp2-red); background: var(--lp2-red-soft);
}
.landing-pro .lp2-ico .icon { width: 18px; height: 18px; }

.landing-pro .lp2-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.landing-pro .lp2-feature-grid article {
  padding: 22px 20px;
  border: 1px solid var(--lp2-line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
}
.landing-pro .lp2-feature-grid h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  letter-spacing: -.3px;
}
.landing-pro .lp2-feature-grid p {
  margin: 0;
  color: var(--lp2-muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-pro .lp2-lang {
  position: relative;
}
.landing-pro .lp2-lang-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--lp2-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--lp2-ink);
  font-size: 12px;
  font-weight: 700;
}
.landing-pro .lp2-lang-summary::-webkit-details-marker { display: none; }
.landing-pro .lp2-lang-summary:hover { border-color: #ffc2e2; background: var(--lp2-soft); }
.landing-pro .lp2-lang[open] .lp2-lang-summary { border-color: #ffc2e2; box-shadow: 0 0 0 3px rgba(255, 89, 174, .12); }
.landing-pro .lp2-flag {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08);
}
.landing-pro .lp2-lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8a8190;
}
.landing-pro .lp2-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--lp2-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 17, 17, .12);
}
.landing-pro .lp2-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.landing-pro .lp2-lang-option:hover,
.landing-pro .lp2-lang-option.is-active {
  background: var(--lp2-soft);
  color: var(--lp2-red-deep);
}

.landing-pro .lp2-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.landing-pro .lp2-about-lead { margin: 0 0 24px !important; max-width: 460px; }
.landing-pro .lp2-about-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.landing-pro .lp2-about-list li {
  display: flex; gap: 14px; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
}
.landing-pro .lp2-about-list span {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 14px; background: rgba(255, 89, 174, .18); color: #ffc2e2;
  font-size: 13px; font-weight: 800;
}
.landing-pro .lp2-about-list strong { display: block; margin-bottom: 4px; color: #fff; font-size: 15px; }
.landing-pro .lp2-about-list p { margin: 0; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.55; }

.landing-pro .lp2-why {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--lp2-line); border-radius: 24px; overflow: hidden; background: #fff;
}
.landing-pro .lp2-why article {
  display: flex; gap: 14px; padding: 26px 24px;
  border-top: 1px solid var(--lp2-line); border-right: 1px solid var(--lp2-line);
  text-align: left; transition: background .16s ease;
}
.landing-pro .lp2-why article:nth-child(-n+2) { border-top: 0; }
.landing-pro .lp2-why article:nth-child(2n) { border-right: 0; }
.landing-pro .lp2-why article:hover { background: var(--lp2-soft); }
.landing-pro .lp2-why-num {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
  border-radius: 12px; color: var(--lp2-red); background: var(--lp2-red-soft);
}
.landing-pro .lp2-why-num .icon { width: 17px; }
.landing-pro .lp2-why h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.2px; }
.landing-pro .lp2-why p { margin: 0; color: var(--lp2-muted); font-size: 13px; line-height: 1.55; }

.landing-pro .lp2-timeline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none;
}
.landing-pro .lp2-timeline li { position: relative; padding: 8px 22px 8px 0; text-align: left; }
.landing-pro .lp2-timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 48px; right: 12px; height: 1px;
  background: linear-gradient(90deg, #ffc2e2, #ece6e9);
}
.landing-pro .lp2-timeline em {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px;
  background: var(--lp2-red); color: #111;
  font-size: 13px; font-style: normal; font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 89, 174, .22);
}
.landing-pro .lp2-timeline h3 { margin: 0 0 8px; font-size: 18px; }
.landing-pro .lp2-timeline p { margin: 0; color: var(--lp2-muted); font-size: 14px; line-height: 1.6; }

.landing-pro .lp2-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.landing-pro .lp2-steps li {
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--lp2-line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .04);
}
.landing-pro .lp2-steps em {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--lp2-red-soft);
  color: var(--lp2-red-deep);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.landing-pro .lp2-steps h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.3px; }
.landing-pro .lp2-steps p { margin: 0; color: var(--lp2-muted); font-size: 14px; line-height: 1.6; }

.landing-pro .package-grid { gap: 16px; }
.landing-pro .package-card {
  border-color: var(--lp2-line); border-radius: 18px; background: #fff;
}
.landing-pro .package-featured {
  border-color: #ffc2e2; background: linear-gradient(180deg, #fff5fa, #fff);
}
.landing-pro .package-popular { color: #111; background: var(--lp2-red); }
.landing-pro .package-card > strong { color: var(--lp2-red); }
.landing-pro .lp2-price-note {
  margin: 1.25rem auto 0; max-width: 720px; text-align: center;
  color: var(--lp2-muted); font-size: 13px; line-height: 1.6;
}

.landing-pro .lp2-faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.landing-pro .lp2-faq .lp2-btn { margin-top: 22px; }
.landing-pro .lp2-faq-list { display: grid; gap: 10px; }
.landing-pro .lp2-faq-list details {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--lp2-line); background: #fff;
}
.landing-pro .lp2-faq-list details[open] { border-color: #ffc2e2; box-shadow: 0 12px 28px rgba(17, 17, 17, .05); }
.landing-pro .lp2-faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--lp2-ink); font-size: 15px; font-weight: 700; list-style: none; cursor: pointer;
}
.landing-pro .lp2-faq-list summary::-webkit-details-marker { display: none; }
.landing-pro .lp2-faq-list summary .icon { width: 18px; color: var(--lp2-red); transition: transform .18s ease; }
.landing-pro .lp2-faq-list details[open] summary .icon { transform: rotate(180deg); }
.landing-pro .lp2-faq-list p { margin: 12px 0 0; color: var(--lp2-muted); font-size: 14px; line-height: 1.7; }

.landing-pro .lp2-finale {
  padding: 96px 0; color: #fff; text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 232, 244, .18), transparent 34%),
    linear-gradient(125deg, #111111 0%, #ff59ae 58%, #ff7ac0 100%);
}
.landing-pro .lp2-finale-inner { width: min(100%, 680px); margin-inline: auto; }
.landing-pro .lp2-finale h2 { color: #fff !important; margin: 0 auto 12px; max-width: 620px; text-align: center; }
.landing-pro .lp2-trust {
  margin: 0 auto 26px; max-width: 520px; color: rgba(255,255,255,.92); font-size: 17px; font-weight: 700; letter-spacing: -.2px; text-align: center;
}

.landing-pro .lp2-footer { padding: 52px 0 24px; background: #111111; color: rgba(255,255,255,.62); }
.landing-pro .lp2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.landing-pro .lp2-brand-light { color: #fff; }
.landing-pro .lp2-footer p { margin: 14px 0 0; max-width: 320px; font-size: 13px; line-height: 1.7; }
.landing-pro .lp2-footer nav { display: grid; gap: 10px; align-content: start; }
.landing-pro .lp2-footer strong { color: #fff; font-size: 13px; margin-bottom: 4px; }
.landing-pro .lp2-footer a { color: rgba(255,255,255,.62); font-size: 13px; text-decoration: none; }
.landing-pro .lp2-footer a:hover { color: #fff; }
.landing-pro .lp2-footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px;
}

@media (max-width: 980px) {
  .landing-pro .lp2-nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "links links";
    gap: 10px 12px;
    min-height: auto;
    padding: 12px 0;
  }
  .landing-pro .lp2-brand { grid-area: brand; }
  .landing-pro .lp2-nav-actions { grid-area: actions; }
  .landing-pro .lp2-links { grid-area: links; width: 100%; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .landing-pro .lp2-bento, .landing-pro .lp2-about, .landing-pro .lp2-faq, .landing-pro .lp2-footer-grid, .landing-pro .lp2-feature-grid { grid-template-columns: 1fr; gap: 22px; }
  .landing-pro .lp2-feature-grid { grid-template-columns: 1fr 1fr; }
  .landing-pro .lp2-timeline, .landing-pro .lp2-why, .landing-pro .lp2-steps, .landing-pro.landing-v4 .lp2-rail { grid-template-columns: 1fr 1fr; }
  .landing-pro .lp2-timeline li:not(:last-child)::after,
  .landing-pro.landing-v4 .lp2-rail li:not(:last-child)::after { display: none; }
  .landing-pro .lp2-stage-top { grid-template-columns: 1fr; }
  .landing-pro .lp2-stage-search, .landing-pro .lp2-stage-user { justify-self: start; }
  .landing-pro.landing-v4 .lp2-hero-copy { padding: 6px 0 14px; }
  .landing-pro.landing-v4 .lp2-price-grid { grid-template-columns: 1fr 1fr; }
  .landing-pro.landing-v4 .lp2-price-card.is-featured { transform: none; }
  .landing-pro.landing-v4 .lp2-price-card.is-featured:hover { transform: translateY(-3px); }
}
@media (max-width: 720px) {
  .landing-pro .lp2-shell { width: calc(100% - 32px); }
  .landing-pro .lp2-links a { font-size: 12px; }
  .landing-pro .lp2-hero { padding-top: 16px; }
  .landing-pro .lp2-hero-copy { padding: 12px 0 20px; }
  .landing-pro .lp2-hero h1 { letter-spacing: -.8px; max-width: none; }
  .landing-pro .lp2-stage { border-radius: 18px 18px 0 0; }
  .landing-pro .lp2-stage-body { grid-template-columns: 1fr; }
  .landing-pro .lp2-stage-body > aside { display: none; }
  .landing-pro .lp2-timeline, .landing-pro .lp2-why, .landing-pro .lp2-feature-grid, .landing-pro .lp2-steps,
  .landing-pro.landing-v4 .lp2-rail,
  .landing-pro.landing-v4 .lp2-feature-rows,
  .landing-pro.landing-v4 .lp2-price-grid { grid-template-columns: 1fr; }
  .landing-pro.landing-v4 .lp2-feature-rows article:nth-child(odd) { border-right: 0; }
  .landing-pro .lp2-why article { border-right: 0 !important; }
  .landing-pro .lp2-section, .landing-pro .lp2-section-ink { padding: 64px 0; }
  .landing-pro .lp2-intro { align-items: flex-start; text-align: left; margin-bottom: 28px; }
  .landing-pro .lp2-intro h2, .landing-pro .lp2-finale h2 { margin-left: 0; margin-right: 0; }
  .landing-pro .lp2-intro > p:last-child { margin-left: 0; margin-right: 0; }
  .landing-pro .lp2-pill { margin-left: 0; margin-right: 0; }
  .landing-pro .lp2-footer-base { flex-direction: column; }
  .landing-pro .lp2-nav-actions .lp2-btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-pro .lp2-hero-mesh,
  .landing-pro .lp2-hero-orb-a,
  .landing-pro .lp2-hero-orb-b,
  .landing-pro .lp2-hero-orb-c,
  .landing-pro .lp2-hero-wash,
  .landing-pro .lp2-finale-wash,
  .landing-pro .lp2-finale-orb-a,
  .landing-pro .lp2-finale-orb-b { transform: none !important; animation: none !important; }
  .landing-pro [data-lp2-enter],
  .landing-pro [data-lp2-enter-stage] { animation: none; opacity: 1; transform: none; }
  .landing-pro.landing-v4 .lp2-stage { animation: none; }
}

/* Legal pages */
.legal-page { background: linear-gradient(180deg, #fff8fb 0%, #f8f6f7 28%, #f8f6f7 100%); min-height: 100vh; }
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(17,17,17,.06);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.legal-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; width: min(100% - 48px, 880px); margin-inline: auto;
}
.legal-nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.legal-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 18px; color: #94a3b8; font-size: 12px; font-weight: 600;
}
.legal-breadcrumb a { color: #64748b; text-decoration: none; }
.legal-breadcrumb a:hover { color: var(--lp2-red-deep); }
.legal-main {
  width: min(100% - 48px, 760px); margin: 28px auto 72px;
  padding: 36px 34px 40px;
  border: 1px solid var(--lp2-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, .05);
}
.legal-effective {
  display: inline-flex; margin: 0 0 14px; padding: 6px 10px;
  border-radius: 999px; background: var(--lp2-red-soft);
  color: var(--lp2-red-deep); font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.legal-main h1 {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.6px; color: var(--lp2-ink); line-height: 1.15;
}
.legal-lead { margin: 0 0 22px; color: var(--lp2-muted); font-size: 16px; line-height: 1.7; max-width: 58ch; }
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--lp2-line);
}
.legal-toc a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--lp2-line); border-radius: 999px;
  color: #54657a; font-size: 13px; font-weight: 700; text-decoration: none; background: #fff;
}
.legal-toc a[aria-current="page"],
.legal-toc a:hover {
  border-color: #ffc2e2; color: var(--lp2-red-deep); background: var(--lp2-soft);
}
.legal-section + .legal-section { margin-top: 8px; padding-top: 22px; border-top: 1px solid #f3ecef; }
.legal-section h2 { margin: 0 0 8px; font-size: 17px; color: var(--lp2-ink); letter-spacing: -.2px; }
.legal-section p { margin: 0; color: #54657a; font-size: 14px; line-height: 1.75; max-width: 62ch; }
.legal-footer {
  border-top: 1px solid rgba(17,17,17,.06);
  background: #111;
  color: rgba(255,255,255,.62);
}
.legal-footer-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  width: min(100% - 48px, 880px); margin-inline: auto; padding: 22px 0;
  font-size: 13px;
}
.legal-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.legal-footer a:hover { color: #fff; }
@media (max-width: 720px) {
  .legal-main { width: calc(100% - 32px); padding: 26px 20px 30px; margin-top: 18px; }
  .legal-nav-inner { width: calc(100% - 32px); }
  .legal-footer-inner { width: calc(100% - 32px); }
}

/* RTL for Arabic marketing surfaces */
html[dir="rtl"] .landing-pro .lp2-nav-inner,
html[dir="rtl"] .legal-nav-inner { direction: rtl; }
html[dir="rtl"] .landing-pro .lp2-feature-grid article,
html[dir="rtl"] .landing-pro .lp2-feature-rows article,
html[dir="rtl"] .landing-pro .lp2-intro,
html[dir="rtl"] .landing-pro .lp2-hero-copy,
html[dir="rtl"] .landing-pro .lp2-steps li,
html[dir="rtl"] .landing-pro .lp2-rail li,
html[dir="rtl"] .legal-main { text-align: right; }
html[dir="rtl"] .landing-pro.landing-v4 .lp2-feature-rows article:nth-child(odd) {
  border-right: 0;
  border-left: 1px solid var(--lp2-line);
}
html[dir="rtl"] .landing-pro .lp2-lang-menu { right: auto; left: 0; }
html[dir="rtl"] .auth-page .auth-shell { direction: rtl; }

/* Phase 1 sales journey UX */
.mode-badge.ai_active { color: #1b9b70; background: #e5f8ef; }
.mode-badge.human_active { color: #bb7b2d; background: #fff2df; }
.mode-badge.waiting_human { color: #ff59ae; background: #ffe8f4; }
.mode-badge.closed { color: #7e8299; background: #f1f3f7; }
.agent-status.draft { color: #bb7b2d; background: #fff2df; }
.agent-kb-fieldset { border: 1px solid #eef1f5; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.agent-kb-fieldset legend { padding: 0 6px; color: #7e8299; font-size: 11px; font-weight: 700; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; color: #464e69; }
.agent-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.agent-edit-form .checkbox-row, .modal-dialog .checkbox-row { display: flex; grid-template-columns: none; align-items: center; gap: 8px; color: #464e69; font-size: 12px; font-weight: 600; }
.agent-edit-form .checkbox-row input, .modal-dialog .checkbox-row input { width: auto; flex: 0 0 auto; margin: 0; }
.agent-kb-fieldset p { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.agent-card { max-width: 680px; }
.agent-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 680px)); align-items: start; }
.modal-dialog-wide { max-width: 640px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kb-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 4px 12px rgba(15,23,42,.03); }
.kb-card.selected, .kb-card:hover { border-color: #ffc2e2; background: #fff8fb; }
.kb-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #ff59ae; background: #ffe8f4; }
.kb-card strong { display: block; color: #181c32; font-size: 13px; }
.kb-card small { color: #a1a5b7; font-size: 11px; }
.kb-card-meta { display: flex; gap: 10px; color: #7e8299; font-size: 11px; font-weight: 600; }
.sales-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sales-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #eef1f5; border-radius: 999px; background: #fff; color: #5e6278; text-decoration: none; font-size: 12px; font-weight: 600; }
.sales-filter.active, .sales-filter:hover { border-color: #ffc2e2; color: #ff59ae; background: #fff8fb; }
.sales-filter b { color: #181c32; }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sales-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.03); }
.sales-card header { display: flex; justify-content: space-between; gap: 10px; }
.sales-card h3 { margin: 0; color: #181c32; font-size: 14px; }
.sales-card small, .sales-card-body p { color: #7e8299; font-size: 12px; }
.sales-attention { display: inline-flex; padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.sales-attention.active { color: #1b9b70; background: #e5f8ef; }
.sales-attention.need_attention { color: #ff59ae; background: #ffe8f4; }
.sales-attention.closing { color: #bb7b2d; background: #fff2df; }
.sales-attention.completed { color: #7e8299; background: #f1f3f7; }
.sales-card footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #a1a5b7; font-size: 11px; }
a.sales-card { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.sales-card:hover { border-color: #ffc2e2; box-shadow: 0 8px 18px rgba(240, 61, 152, .08); }
.sales-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sales-detail-card { padding: 18px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.03); }
.sales-detail-card--wide { grid-column: 1 / -1; }
.sales-detail-card .eyebrow { margin-bottom: 10px; }
.sales-kv { display: grid; gap: 10px; margin: 0; }
.sales-kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.sales-kv dt { margin: 0; color: #a1a5b7; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.sales-kv dd { margin: 0; color: #181c32; font-size: 13px; font-weight: 600; word-break: break-word; }
.sales-missing { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fff8f0; border: 1px solid #ffe0b8; }
.sales-missing strong { display: block; color: #b17a25; font-size: 11px; margin-bottom: 6px; }
.sales-missing ul { margin: 0; padding-left: 16px; color: #7d89a3; font-size: 12px; }
.sales-summary { margin: 0; color: #3f4254; font-size: 13px; line-height: 1.55; }
.analytics-summary { margin-bottom: 18px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-card { padding: 18px; border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.03); }
.analytics-card--wide { grid-column: 1 / -1; }
.analytics-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.analytics-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.analytics-bars span { color: #5e6278; font-size: 12px; text-transform: capitalize; }
.analytics-bars strong { color: #181c32; font-size: 13px; }
.analytics-bars i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 999px; background: #edf0f5; position: relative; overflow: hidden; }
.analytics-bars i::after { content: ""; display: block; width: var(--bar, 0%); height: 100%; background: #ff59ae; border-radius: inherit; }
.analytics-bars.compact li { gap: 2px 10px; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.chart-card {
  min-width: 0;
  padding: 18px 18px 12px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
}
.chart-card--wide { grid-column: 1 / -1; }
.chart-card-head { margin-bottom: 8px; }
.chart-card-head .eyebrow { margin-bottom: 2px; }
.chart-card-head h3 { margin: 0; color: #181c32; font-size: 15px; }
.chart-canvas-wrap { position: relative; height: 240px; }
.chart-canvas-wrap--bar { height: 280px; }
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card--wide { grid-column: auto; }
}
.analytics-sender-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.analytics-sender-row div { padding: 12px; border-radius: 8px; background: #faf7f8; }
.analytics-sender-row small { display: block; color: #a1a5b7; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.analytics-sender-row strong { display: block; margin-top: 4px; color: #181c32; font-size: 18px; }
@media (max-width: 840px) {
  .sales-detail-grid { grid-template-columns: 1fr; }
  .sales-kv > div { grid-template-columns: 1fr; gap: 2px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-sender-row { grid-template-columns: 1fr 1fr; }
}
.connection-agent-card { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #eef1f5; border-radius: 10px; background: #fff; }
.connection-agent-card form { display: grid; gap: 8px; margin-top: 10px; }
.playground-card { display: grid; gap: 18px; max-width: 720px; padding: 22px; border: 1px solid #eef1f5; border-radius: 14px; background: #fff; }
.playground-form { display: grid; gap: 10px; }
.playground-bubble { max-width: 100%; }
.onboarding-guide { display: grid; place-items: start; }
.onboarding-guide-card { max-width: 640px; padding: 28px; border: 1px solid #eef1f5; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.onboarding-guide-card h2 { margin: 8px 0 10px; color: #181c32; }
.onboarding-tips { margin: 14px 0 0; padding-left: 18px; color: #5e6278; font-size: 13px; line-height: 1.6; }
.onboarding-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dashboard-quick-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

/* Larger realtime QR pairing surface */
.qr-card {
  align-items: flex-start;
  gap: 28px;
}
.qr-placeholder {
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  padding: 12px;
  box-sizing: border-box;
}
.qr-placeholder .icon {
  width: 88px;
  height: 88px;
}
.qr-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 256px;
  max-height: 256px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.qr-placeholder small,
.qr-placeholder [data-qr-wait] {
  display: block;
  margin-top: 8px;
  max-width: 256px;
  color: #7e8299;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.qr-placeholder[aria-busy="true"] {
  color: #7e8299;
  font-size: 12px;
  line-height: 1.45;
  padding: 18px;
  text-align: center;
}
@media (max-width: 620px) {
  .qr-placeholder {
    flex-basis: min(280px, 86vw);
    width: min(280px, 86vw);
    height: min(280px, 86vw);
  }
  .qr-placeholder img {
    max-width: 100%;
    max-height: 100%;
  }
}

/* Unified workspace layout: predictable widths, hierarchy, and responsive flow. */
.metronic-shell {
  --workspace-max: 1440px;
  --panel-radius: 8px;
  min-width: 0;
}
.metronic-shell .main-content {
  width: calc(100% - 265px);
  min-width: 0;
  padding: 0 32px 56px;
}
.metronic-shell .topbar {
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 76px;
  margin: 0 -32px 28px;
  padding: 12px 32px;
}
.metronic-shell .topbar-heading { flex: 1 1 auto; min-width: 0; }
.metronic-shell .topbar-heading > div { min-width: 0; }
.metronic-shell .topbar-actions { flex: 0 0 auto; flex-wrap: nowrap; min-width: 0; }
@media (min-width: 761px) {
  .metronic-shell .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }
}
.metronic-shell .sidebar nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.metronic-shell .sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: 4px;
  background: var(--sidebar);
}
.metronic-shell .eyebrow-separator { color: #bdc5d7; font-weight: 500; }
.metronic-shell .eyebrow strong { color: #7b879c; font-weight: 800; }
.metronic-shell .user-chip-name { color: #34415f; font-weight: 700; }
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e3e7f0;
  background: #fff;
  color: #34415f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.credit-chip .icon { width: 14px; height: 14px; }
.credit-chip--ok { border-color: #c7efd6; background: #f3fcf6; color: #1f7a45; }
.credit-chip--warn { border-color: #ffc2e2; background: #fff5fa; color: #b42318; }
.credit-chip:hover { filter: brightness(0.98); }
.metronic-shell .topbar h1,
.metronic-shell h1,
.metronic-shell h2,
.metronic-shell h3 { letter-spacing: 0; }
.page-canvas { width: min(100%, var(--workspace-max)); margin-inline: auto; }
.page-intro {
  align-items: center;
  min-height: 94px;
  margin-bottom: 22px;
}
.page-intro > div:first-child { min-width: 0; }
.metronic-shell .page-intro h2 { max-width: 760px; margin: 6px 0 8px; font-size: 24px; line-height: 1.3; }
.page-intro .muted { max-width: 760px; font-size: 13px; line-height: 1.65; }
.page-intro-actions { justify-content: flex-end; flex-wrap: wrap; }
.metronic-shell .button { min-height: 42px; border-radius: 12px; color: #111; background: #ff59ae; }
.metronic-shell .button:hover { background: #ff7ac0; color: #111; }
.metronic-shell .button-small { min-height: 38px; border-radius: 10px; }
.inbox-count, .workspace-count { flex: 0 0 auto; }

.metronic-shell .setup-hero,
.metronic-shell .setup-progress,
.metronic-shell .stat-card,
.metronic-shell .dashboard-widget,
.metronic-shell .workspace-management-card,
.metronic-shell .profile-card,
.metronic-shell .profile-security,
.metronic-shell .agent-card,
.metronic-shell .agent-empty,
.metronic-shell .agent-policy-banner,
.metronic-shell .knowledge-composer-card,
.metronic-shell .knowledge-layout,
.metronic-shell .analytics-card,
.metronic-shell .sales-card,
.metronic-shell .sales-detail-card,
.metronic-shell .slot-summary-card,
.metronic-shell .slot-summary-action,
.metronic-shell .connection-layout,
.metronic-shell .inbox-layout,
.metronic-shell .action-panel,
.metronic-shell .history-jobs,
.metronic-shell .playground-card { border-radius: var(--panel-radius); }

.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-stats .stat-card { min-height: 132px; padding: 20px; }
.dashboard-stats .stat-card strong { margin-top: 14px; font-size: 28px; line-height: 1; }
.dashboard-columns { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; margin-top: 18px; }
.ai-paused-banner { align-items: center; }
.ai-paused-banner > div { min-width: 0; flex: 1; }
.ai-paused-banner .button { margin-left: auto; }

.analytics-summary > article {
  min-height: 112px;
  padding: 20px;
  border: 1px solid #e9edf3;
  border-radius: var(--panel-radius);
  background: #fff;
}
.analytics-summary > article small { display: block; color: #716979; font-size: 12px; }
.analytics-summary > article strong { display: block; margin-top: 10px; color: #181c32; font-size: 28px; }
.agent-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 760px)); }
.agent-card { width: 100%; max-width: 760px; }
.page-intro-actions .button-small {
  border: 1px solid #ffc2e2;
  color: #f03d98;
  background: #fff;
  box-shadow: none;
}
.page-intro-actions .button-small:hover { color: #f03d98; background: #fff5fa; box-shadow: none; }
.knowledge-layout, .inbox-layout, .connection-layout { min-height: 520px; }
.sales-filter { border-radius: 7px; }
.workspace-role, .mode-badge, .sales-attention, .verification, .widget-status { letter-spacing: 0; }

input, select, textarea, button { font: inherit; }
.agent-edit-form input:not([type="checkbox"]):not([type="radio"]),
.agent-edit-form select,
.agent-edit-form textarea,
.knowledge-composer input:not([type="checkbox"]):not([type="radio"]),
.knowledge-composer select,
.knowledge-composer textarea,
.profile-form input,
.profile-form select,
.workspace-create-form input,
.members-invite-form select,
.modal-dialog input:not([type="checkbox"]):not([type="radio"]),
.modal-dialog select { min-height: 44px; font-size: 13px; }

@media (max-width: 1180px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot-summary-action { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .metronic-shell .main-content { padding-right: 22px; padding-left: 22px; }
  .metronic-shell .topbar { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; }
}

@media (max-width: 760px) {
  .metronic-shell .main-content { width: 100%; padding-right: 16px; padding-left: 16px; }
  .metronic-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 10px 16px;
  }
  .metronic-shell .topbar-heading { overflow: hidden; }
  .metronic-shell .topbar-heading > div { overflow: hidden; }
  .metronic-shell .topbar h1 { max-width: none; font-size: 16px; }
  .metronic-shell .topbar-actions .workspace-switcher { display: none; }
  .page-intro { display: grid; gap: 16px; min-height: 0; }
  .page-intro-actions { justify-content: flex-start; width: 100%; }
  .page-intro-actions .button { flex: 1 1 auto; }
  .page-intro-actions .inbox-count { order: -1; }
  .metronic-shell .page-intro h2 { font-size: 22px; }
  .ai-paused-banner { align-items: flex-start; flex-wrap: wrap; }
  .ai-paused-banner .button { width: 100%; margin-left: 0; }
  .slot-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-summary-card:last-of-type { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .dashboard-stats, .analytics-sender-row, .slot-summary { grid-template-columns: 1fr; }
  .slot-summary-card:last-of-type { grid-column: auto; }
  .dashboard-stats .stat-card { min-height: 116px; }
  .page-intro-actions { align-items: stretch; flex-direction: column; }
  .page-intro-actions .button, .page-intro-actions .inbox-count { width: 100%; }
  .inbox-count { white-space: normal; }
  .setup-hero { padding: 20px; }
}

/* Connections: keep the selected channel workflow inside one detail surface. */
.metronic-shell .connection-layout {
  grid-template-columns: minmax(285px, .72fr) minmax(0, 1.28fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}
.metronic-shell .connection-list-panel {
  min-width: 0;
  background: #fff;
  border-right: 1px solid #e9edf3;
}
.metronic-shell .connection-list-panel .panel-toolbar {
  min-height: 66px;
  padding: 0 22px;
  border-bottom: 1px solid #edf0f5;
}
.metronic-shell .connection-list-panel .panel-toolbar strong { font-size: 14px; }
.metronic-shell .connection-row {
  min-height: 78px;
  padding: 16px 20px;
  border-left: 3px solid transparent;
  transition: background .16s ease, border-color .16s ease;
}
.metronic-shell .connection-row.selected {
  border-left-color: #ff59ae;
  background: #fff8fb;
}
.metronic-shell .connection-row:hover { background: #fffafa; }
.metronic-shell .connection-detail {
  min-width: 0;
  padding-bottom: 22px;
  background: #fbfcfe;
}
.metronic-shell .connection-detail-head {
  min-height: 92px;
  padding: 21px 26px;
  background: #fff;
}
.metronic-shell .connection-detail-head h3 { font-size: 19px; }
.metronic-shell .connection-detail-head .eyebrow { margin-bottom: 7px; }
.metronic-shell .connection-agent-card {
  margin: 16px 22px 0;
  padding: 18px 20px;
  border: 1px solid #e7ebf2;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .025);
}
.metronic-shell .connection-agent-card > strong {
  display: block;
  margin-top: 8px;
  color: #181c32;
  font-size: 16px;
}
.metronic-shell .connection-agent-card form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 15px;
}
.metronic-shell .connection-agent-card label { display: grid; gap: 6px; color: #7e8299; font-size: 11px; font-weight: 700; }
.metronic-shell .connection-agent-card select {
  min-height: 42px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #dfe4ee;
  border-radius: 7px;
  color: #34415f;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.metronic-shell .qr-card {
  margin: 16px 22px 0;
  padding: 20px;
  border: 1px solid #ffc2e2;
  border-radius: 11px;
  background: #fffafa;
  box-shadow: none;
}
/* Keep QR large enough to scan; do not shrink under metronic shell. */
.metronic-shell .qr-placeholder {
  flex-basis: min(320px, 86vw);
  width: min(320px, 86vw);
  height: min(320px, 86vw);
}
.metronic-shell .qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.metronic-shell .qr-card h3 { font-size: 19px; }
.metronic-shell .connection-next {
  margin: 18px 22px 0;
  padding: 16px 0 0;
  border-top: 1px solid #e7ebf2;
}
.metronic-shell .connection-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 22px 0;
  padding: 18px 0 0;
  border-top: 1px solid #e7ebf2;
}
.metronic-shell .connection-settings-copy { min-width: 0; }
.metronic-shell .connection-settings-copy .eyebrow { margin-bottom: 6px; }
.metronic-shell .connection-settings-copy h3 { margin: 0 0 6px; color: #181c32; font-size: 14px; }
.metronic-shell .connection-settings-copy p:last-child { max-width: 540px; margin: 0; color: #8a95aa; font-size: 10px; line-height: 1.55; }
.metronic-shell .connection-settings .action-panel-actions { flex: 0 0 auto; justify-content: flex-end; }
.metronic-shell .connection-settings .button { box-shadow: 0 4px 10px rgba(255, 89, 174, .12); }
.metronic-shell .connection-detail > .message-empty { min-height: 520px; padding: 28px; }

@media (max-width: 840px) {
  .metronic-shell .connection-layout { grid-template-columns: 1fr; }
  .metronic-shell .connection-list-panel { border-right: 0; border-bottom: 1px solid #e9edf3; }
  .metronic-shell .connection-list { max-height: 270px; overflow-y: auto; }
  .metronic-shell .connection-settings { align-items: flex-start; flex-direction: column; }
  .metronic-shell .connection-settings .action-panel-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .metronic-shell .connection-detail-head { padding: 18px 16px; }
  .metronic-shell .connection-agent-card,
  .metronic-shell .qr-card { margin-right: 14px; margin-left: 14px; }
  .metronic-shell .connection-next,
  .metronic-shell .connection-settings { margin-right: 14px; margin-left: 14px; }
  .metronic-shell .connection-agent-card form { grid-template-columns: 1fr; }
  .metronic-shell .connection-agent-card .button,
  .metronic-shell .connection-settings .button { width: 100%; justify-content: center; }
  .metronic-shell .connection-settings .action-panel-actions { align-items: stretch; flex-direction: column; }
  .metronic-shell .connection-settings .action-panel-actions form { width: 100%; }
  .metronic-shell .qr-card { flex-direction: column; }
  .metronic-shell .qr-placeholder {
    flex-basis: min(300px, 88vw);
    width: min(300px, 88vw);
    height: min(300px, 88vw);
  }
}

/* Consistent, quiet scrollbars across the page and every scrollable panel. */
html {
  scrollbar-color: #c8ceda transparent;
  scrollbar-width: thin;
}
* {
  scrollbar-color: #c8ceda transparent;
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #c8ceda;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: #aeb7c7;
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
.metronic-shell .sidebar {
  scrollbar-color: #514952 transparent;
}
.metronic-shell .sidebar::-webkit-scrollbar-thumb {
  background: #514952;
  background-clip: padding-box;
}
.metronic-shell .sidebar::-webkit-scrollbar-thumb:hover {
  background: #716871;
  background-clip: padding-box;
}
.message-sticker-preview { width: fit-content; max-width: 220px; background: #fff; }

.agent-wizard-progress { display: flex; gap: 8px; margin: 18px 0 14px; }
.agent-wizard-progress span { flex: 1; padding: 9px 10px; border-radius: 8px; color: #7e8299; background: #f4f5f7; font-size: 11px; font-weight: 700; text-align: center; }
.agent-wizard-progress span.active { color: #f03d98; background: #fff0f1; }
.agent-wizard-step { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agent-wizard-step h3 { grid-column: 1 / -1; margin: 4px 0; color: #34415f; font-size: 14px; }
.agent-wizard-step label, .agent-wizard-step fieldset { grid-column: 1 / -1; }
.agent-wizard-step label:has([name="name"]), .agent-wizard-step label:has([name="goal_type"]), .agent-wizard-step label:has([name="language"]), .agent-wizard-step label:has([name="style"]), .agent-wizard-step label:has([name="human_timeout_minutes"]) { grid-column: span 1; }
.agent-wizard-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.agent-wizard-controls [data-wizard-step-label] { flex: 1; color: #7e8299; font-size: 11px; text-align: center; }
.agent-draft-status { margin: 0 0 10px; color: #7e8299; font-size: 11px; }
@media (max-width: 540px) { .agent-wizard-controls { justify-content: center; }.agent-wizard-controls [data-wizard-step-label] { flex-basis: 100%; order: -1; } }
.agent-edit-details { margin-top: 14px; border-top: 1px solid #edf0f5; }
.agent-edit-details summary { padding: 12px 0 0; color: #087e66; font-size: 11px; font-weight: 700; cursor: pointer; }
.agent-edit-form > .agent-wizard-progress, .agent-edit-form > .agent-wizard-step, .agent-edit-form > .agent-wizard-controls { grid-column: 1 / -1; }
.agent-edit-form .agent-wizard-step label, .agent-edit-form .agent-wizard-step fieldset { grid-column: 1 / -1; }
.agent-edit-form .agent-wizard-step label:has([name="name"]), .agent-edit-form .agent-wizard-step label:has([name="goal_type"]), .agent-edit-form .agent-wizard-step label:has([name="status"]), .agent-edit-form .agent-wizard-step label:has([name="language"]), .agent-edit-form .agent-wizard-step label:has([name="style"]), .agent-edit-form .agent-wizard-step label:has([name="human_timeout_minutes"]) { grid-column: span 1; }
.agent-edit-form .agent-card-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.knowledge-detail { margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf0f5; }
.knowledge-detail summary, .knowledge-base-manage summary { color: #087e66; font-size: 11px; font-weight: 700; cursor: pointer; }
.knowledge-full-content { margin: 10px 0; color: #596680; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.knowledge-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 8px; }
.knowledge-edit-form label, .knowledge-base-manage label { display: grid; gap: 5px; color: #596680; font-size: 11px; font-weight: 700; }
.knowledge-edit-form .knowledge-wide { grid-column: 1 / -1; }
.knowledge-edit-form input, .knowledge-edit-form select, .knowledge-edit-form textarea, .knowledge-base-manage input, .knowledge-base-manage textarea, .knowledge-base-manage select { width: 100%; padding: 9px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; background: #fff; font: inherit; font-size: 12px; }
.knowledge-delete-form { margin: 8px 0; }
.button-danger { color: #b42318; border-color: #fecdca; background: #fff5fa; }
.knowledge-base-manage { margin: -8px 0 20px; padding: 12px 16px; border: 1px solid #e7eaf2; border-radius: 10px; background: #fff; }
.knowledge-base-manage form { display: grid; grid-template-columns: 1fr 1.5fr 160px auto; align-items: end; gap: 10px; margin-top: 12px; }
.member-role-form { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lead-action-form { display: flex; align-items: center; gap: 6px; }
.lead-action-form select { min-width: 125px; }
.sales-edit-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.sales-edit-form label { display: grid; min-width: 190px; gap: 5px; color: #596680; font-size: 11px; font-weight: 700; }
.sales-edit-form select { padding: 9px 10px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; background: #fff; font: inherit; font-size: 12px; }
.connection-name-editor { margin: 0 0 12px; padding: 12px 16px; border: 1px solid #e7eaf2; border-radius: 10px; background: #fff; }
.connection-name-editor summary { color: #087e66; font-size: 11px; font-weight: 700; cursor: pointer; }
.connection-name-editor form { display: flex; align-items: end; gap: 10px; margin-top: 10px; }
.connection-name-editor label { display: grid; flex: 1; gap: 5px; color: #596680; font-size: 11px; font-weight: 700; }
.connection-name-editor input { width: 100%; padding: 9px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; font: inherit; font-size: 12px; }
.contact-directory { margin-top: 18px; overflow: hidden; border: 1px solid #e7eaf2; border-radius: 12px; background: #fff; }
.contact-directory-list { max-height: 480px; overflow: auto; }
.contact-directory-list details { padding: 12px 16px; border-top: 1px solid #edf0f5; }
.contact-directory-list summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.contact-directory-list summary strong, .contact-directory-list summary small { display: block; }
.contact-directory-list summary strong { color: #34415f; font-size: 12px; }
.contact-directory-list summary small { margin-top: 3px; color: #909aae; font-size: 10px; }
.contact-edit-form { display: flex; align-items: end; gap: 10px; padding-top: 12px; }
.contact-edit-form label { display: grid; flex: 1; gap: 5px; color: #596680; font-size: 11px; font-weight: 700; }
.contact-edit-form input { width: 100%; padding: 9px; border: 1px solid #dfe4ee; border-radius: 7px; color: #34415f; font: inherit; font-size: 12px; }
@media (max-width: 700px) { .contact-edit-form, .connection-name-editor form { align-items: stretch; flex-direction: column; } }
@media (max-width: 960px) { .quick-action-row .lead-action-form { width: 100%; }.quick-action-row .lead-action-form select { flex: 1; min-width: 0; width: auto; } }
.member-role-form select { max-width: 125px; padding: 7px; border: 1px solid #dfe4ee; border-radius: 7px; background: #fff; color: #53617d; font: inherit; font-size: 10px; }
@media (max-width: 700px) { .knowledge-edit-form, .knowledge-base-manage form { grid-template-columns: 1fr; }.knowledge-edit-form .knowledge-wide { grid-column: auto; } }

/* Final polish for empty states, long forms, and native controls. */
.metronic-shell .kb-grid > .kb-empty {
  grid-column: 1 / -1;
  min-height: 320px;
  margin: 0;
  padding: 48px 24px;
  border: 1px dashed #dfe5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.metronic-shell .kb-grid > .kb-empty strong,
.metronic-shell .kb-grid > .kb-empty p {
  text-align: center;
}
.metronic-shell .kb-grid > .kb-empty strong { max-width: 320px; }
.metronic-shell .kb-grid > .kb-empty p { max-width: 360px; }
.metronic-shell .agent-empty {
  min-height: 430px;
  margin-top: 8px;
}
.metronic-shell .agent-card:has(.agent-status.draft) {
  border-color: #f4d9aa;
  box-shadow: 0 8px 22px rgba(177, 122, 37, .06);
}
.metronic-shell .agent-card:has(.agent-status.draft) .agent-mode {
  background: #fffaf0;
}
.metronic-shell .agent-card:has(.agent-status.draft) > form:last-of-type {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1e5ca;
}
.metronic-shell .agent-card:has(.agent-status.draft) > form:last-of-type .button {
  width: 100%;
  justify-content: center;
}
.metronic-shell select {
  appearance: none;
  min-height: 44px;
  padding-right: 38px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  color: #34415f;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #8d98ac 50%), linear-gradient(135deg, #8d98ac 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}
.metronic-shell select:hover { border-color: #c5cedd; }
.metronic-shell select:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }
.metronic-shell .modal-dialog-wide {
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: calc(100dvh - 32px);
  padding: 28px 30px 24px;
}
.modal-open { overflow: hidden; }
.metronic-shell .modal-backdrop { overflow-y: auto; }
.metronic-shell .modal-dialog-wide > .eyebrow,
.metronic-shell .modal-dialog-wide > h2,
.metronic-shell .modal-dialog-wide > p { flex: 0 0 auto; }
.metronic-shell .modal-dialog-wide > form {
  min-height: 0;
  margin-top: 14px;
  padding: 2px 8px 2px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.metronic-shell .modal-dialog-wide > form > .button:last-child {
  position: sticky;
  bottom: 0;
  z-index: 1;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 -10px 18px rgba(255, 255, 255, .92), 0 5px 12px rgba(255, 89, 174, .14);
}
.metronic-shell .modal-dialog-wide .agent-kb-fieldset {
  margin-top: 4px;
  padding: 14px 16px;
  background: #fbfcfe;
}
.metronic-shell .modal-dialog-wide .checkbox-row {
  min-height: 30px;
  margin: 2px 0;
  padding: 4px 0;
}
.metronic-shell .modal-dialog-wide input:not([type="checkbox"]),
.metronic-shell .modal-dialog-wide select,
.metronic-shell .modal-dialog-wide textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  color: #34415f;
  background-color: #fff;
  font: inherit;
  font-size: 13px;
}
.metronic-shell .modal-dialog-wide textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.metronic-shell .modal-dialog-wide input:not([type="checkbox"]):focus,
.metronic-shell .modal-dialog-wide textarea:focus { border-color: #ff59ae; outline: 3px solid rgba(255, 89, 174, .15); }
@media (max-width: 620px) {
  .metronic-shell .kb-grid > .kb-empty { min-height: 260px; padding: 36px 18px; }
  .metronic-shell .modal-dialog-wide {
    max-height: calc(100dvh - 20px);
    padding: 24px 18px 18px;
    border-radius: 14px;
  }
  .metronic-shell .modal-dialog-wide > form { padding-right: 4px; }
}

/* Company shell: full sidebar navigation, viewport fill */
.app-shell--workspace.metronic-shell {
  height: 100dvh;
  overflow: hidden;
}
.app-shell--workspace.metronic-shell .sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
}
.app-shell--workspace.metronic-shell .company-initials {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  background: #2a2a2a;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}
.app-shell--workspace.metronic-shell .company-switch {
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.app-shell--workspace.metronic-shell .company-switch-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}
.app-shell--workspace.metronic-shell .company-switch-label strong {
  font-size: 13px;
  font-weight: 650;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-shell--workspace.metronic-shell .company-switch-label small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-shell--workspace.metronic-shell.sidebar-collapsed .company-switch-label,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .company-switch-label {
  display: none;
}
.app-shell--workspace.metronic-shell .main-content {
  width: auto;
  flex: 1 1 auto;
  height: 100dvh;
  overflow: auto;
}
.app-shell--chat.metronic-shell .topbar,
.app-shell--chat .ai-paused-banner {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 16px;
  left: 88px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 12px;
}
.app-shell--chat.metronic-shell .topbar {
  display: none;
}
.app-shell--chat .ai-paused-banner {
  left: auto;
  max-width: 420px;
}
.app-shell--chat.metronic-shell .main-content {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}
.app-shell--chat .page-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
}
.app-shell--chat .inbox-layout-full,
.app-shell--chat .inbox-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.app-shell--chat .inbox-workspace.is-panel-open {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(260px, 300px);
}
.app-shell--chat .inbox-layout-full .conversation-panel,
.app-shell--chat .inbox-layout-full .message-panel,
.app-shell--chat .inbox-layout-full .customer-panel {
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.app-shell--chat .inbox-layout-full .conversation-panel {
  border-right: 1px solid #e9edef;
}
.app-shell--chat .channel-start {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 420px;
  margin: auto;
  padding: 32px;
}
.app-shell--chat .channel-start h2 {
  margin: 0;
  color: #111b21;
  font-size: 28px;
}
.app-shell--chat .channel-start p {
  margin: 0 0 8px;
  color: #667781;
}
.app-shell--chat .channel-start form {
  margin: 0;
}
@media (max-width: 840px) {
  .inbox-layout-full.inbox-needs-channel .conversation-panel { display: none; }
  .inbox-layout-full.inbox-needs-channel .message-panel { display: flex; grid-column: 1; grid-row: 1; }
}
/* Keep chat sidebar visible until the shared mobile drawer breakpoint (760px). */
@media (max-width: 760px) {
  .app-shell--chat.metronic-shell {
    display: block;
  }
  .app-shell--chat.metronic-shell .sidebar {
    position: fixed !important;
    z-index: 30;
    inset: 0 auto 0 0;
    top: 0;
    left: 0;
    width: min(280px, 86vw) !important;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.mobile-nav-open .app-shell--chat.metronic-shell .sidebar {
    transform: translateX(0);
  }
  .app-shell--chat.metronic-shell .main-content {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    padding: 0;
    margin: 0;
  }
  .app-shell--chat .page-canvas {
    flex: 1 1 auto;
    height: auto;
    max-width: 100%;
  }
  .app-shell--chat .inbox-layout-full,
  .app-shell--chat .inbox-workspace {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .app-shell--chat .inbox-layout-full .conversation-panel,
  .app-shell--chat .inbox-layout-full .message-panel {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .app-shell--workspace.metronic-shell .main-content {
    padding-top: 0;
  }
}

.whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.whatsapp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.whatsapp-card:hover { border-color: #ffc2e2; background: #fffafa; }
.whatsapp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.whatsapp-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ff59ae;
  background: #fff5fa;
}
.whatsapp-card-icon .icon { width: 20px; height: 20px; }
.whatsapp-card-body { display: grid; gap: 4px; }
.whatsapp-card-body strong { color: #181c32; font-size: 16px; }
.whatsapp-card-body small { color: #7e8299; font-size: 12px; }
.connection-back { margin: 0 0 14px; }
.connection-back .text-link { display: inline-flex; align-items: center; gap: 6px; }
.connection-back .icon { width: 14px; height: 14px; }
.connection-detail-page {
  overflow: hidden;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fbfcfe;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}
.connection-detail-page .connection-name-editor { margin: 16px 22px 0; }

/* Sidebar collapse + collapsible groups */
.app-shell--workspace.metronic-shell .sidebar {
  transition: width var(--motion-fast);
}
.app-shell--workspace.metronic-shell.sidebar-collapsed .sidebar,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed {
  width: 76px;
  padding-left: 10px;
  padding-right: 10px;
}
.app-shell--workspace.metronic-shell.sidebar-collapsed .nav-label,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-label,
.app-shell--workspace.metronic-shell.sidebar-collapsed .nav-group-label,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-group-label,
.app-shell--workspace.metronic-shell.sidebar-collapsed .nav-group-toggle span,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-group-toggle span,
.app-shell--workspace.metronic-shell.sidebar-collapsed .brand .nav-label,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .brand .nav-label {
  display: none !important;
}
.app-shell--workspace.metronic-shell.sidebar-collapsed .nav-item,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-item {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}
.app-shell--workspace.metronic-shell.sidebar-collapsed .brand,
.app-shell--workspace.metronic-shell .sidebar.is-collapsed .brand {
  justify-content: center;
  margin-left: 8px;
  margin-right: 8px;
}
.nav-group {
  margin: 0;
  border: 0;
  background: transparent;
}
.nav-group > summary {
  list-style: none;
  cursor: pointer;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 10px 6px;
  padding: 4px 4px 4px 4px;
  color: rgba(255, 209, 232, .55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  user-select: none;
}
.nav-group-toggle .icon {
  width: 12px;
  height: 12px;
  opacity: .7;
  transition: transform var(--motion-fast);
}
.nav-group:not([open]) .nav-group-toggle .icon { transform: rotate(-90deg); }
.nav-group .nav-item { margin-top: 2px; }
.metronic-shell .nav-item.active {
  color: #fff;
  background: rgba(245, 75, 170, .18);
  box-shadow: inset 3px 0 0 var(--primary);
}
.metronic-shell .nav-item:hover { background: rgba(245, 75, 170, .12); }
.sidebar-collapse-toggle { display: none; }
@media (min-width: 761px) {
  .sidebar-collapse-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .app-shell--workspace.metronic-shell.sidebar-collapsed .sidebar,
  .app-shell--workspace.metronic-shell .sidebar.is-collapsed {
    width: min(280px, 86vw) !important;
  }
  .app-shell--workspace.metronic-shell.sidebar-collapsed .nav-label,
  .app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-label,
  .app-shell--workspace.metronic-shell.sidebar-collapsed .nav-group-label,
  .app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-group-label,
  .app-shell--workspace.metronic-shell.sidebar-collapsed .nav-group-toggle span,
  .app-shell--workspace.metronic-shell .sidebar.is-collapsed .nav-group-toggle span,
  .app-shell--workspace.metronic-shell.sidebar-collapsed .brand .nav-label,
  .app-shell--workspace.metronic-shell .sidebar.is-collapsed .brand .nav-label {
    display: inline !important;
  }
}

.button-secondary,
.button.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.button-secondary:hover,
.button.button-secondary:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
}
.icon-button:hover {
  border-color: var(--primary-border);
  color: var(--primary-strong);
  background: var(--primary-soft);
}
.icon-button .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  /* After base .icon-button (36px) so touch targets win on small screens. */
  .icon-button { width: 44px; height: 44px; min-width: 44px; }
}

/* Topbar breadcrumb */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .02em;
}
.topbar-breadcrumb a { color: inherit; text-decoration: none; }
.topbar-breadcrumb a:hover { color: var(--primary-strong); }
.topbar-breadcrumb .sep { opacity: .55; }
.topbar-breadcrumb strong { color: var(--ink-secondary); font-weight: 650; }
.metronic-shell .topbar h1 {
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -.3px;
}

/* NocoCRM-inspired IA + Overview / Tasks / Guidance */
.nav-group-label:not(.nav-group-toggle) {
  margin: 16px 14px 8px;
  color: rgba(255, 209, 232, .55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-group-label:not(.nav-group-toggle):first-child { margin-top: 0; }
.needs-attention-grid { margin: 0 0 22px; }
.needs-attention-head { margin-bottom: 10px; }
.needs-attention-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.needs-card {
  display: grid;
  gap: 6px;
  padding: 16px 16px;
  border: 1px solid #ece6e9;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.needs-card:hover {
  border-color: #ffc2e2; background: #fff5fa;
  box-shadow: 0 10px 24px rgba(255, 89, 174, .1);
}
.needs-card strong { color: #111; font-size: 24px; line-height: 1; }
.needs-card span { color: #6b6469; font-size: 12px; }
.guidance-panel textarea {
  width: 100%;
  min-height: 320px;
  margin: 8px 0 14px;
  padding: 14px 16px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  font: inherit;
  line-height: 1.5;
}
.guidance-readonly {
  padding: 16px;
  border-radius: 10px;
  background: #f8fafc;
  white-space: pre-wrap;
  font: inherit;
}
.suggestion-list { display: grid; gap: 12px; }
.suggestion-card {
  padding: 14px 16px;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  background: #fff;
}
.suggestion-card header { display: grid; gap: 2px; margin-bottom: 8px; }
.suggestion-draft {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7fb;
  white-space: pre-wrap;
  font: inherit;
  font-size: 13px;
}
.suggestion-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.task-create-form { display: flex; gap: 8px; align-items: center; }
.task-create-form input { min-width: 280px; flex: 1; height: 38px; padding: 0 12px; border: 1px solid #e6eaf0; border-radius: 8px; font: inherit; }
.task-rows { display: grid; gap: 8px; }
.task-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fff;
}
.task-row.status-done { opacity: .55; }
.task-row-actions { display: flex; gap: 8px; align-items: center; }
.sales-view-toggle { margin-left: auto; display: inline-flex; gap: 6px; }
.sales-kanban { overflow: hidden; }
.sales-kanban .pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(148px, 1fr));
  gap: 11px;
  overflow-x: auto;
  padding: 16px;
  background: #faf7f8;
}
.sales-kanban-card { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.analytics-summary.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .sales-kanban .pipeline-grid { grid-template-columns: repeat(6, minmax(160px, 180px)); }
  .analytics-summary.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .analytics-summary.stats-grid { grid-template-columns: 1fr; }
}
.profile-back { margin: -8px 0 18px; }
.profile-back .text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.profile-back .icon { width: 14px; height: 14px; }
.sales-stage-quick select {
  width: 100%;
  height: 30px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
}
.deal-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.deal-timeline li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #edf0f5; }
.deal-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.inbox-nba { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; }
.inbox-nba .icon { width: 13px; height: 13px; }
.button-ghost { background: transparent; color: #54657a; border: 1px solid #e6eaf0; }
@media (max-width: 960px) {
  .needs-attention-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .needs-attention-cards { grid-template-columns: 1fr; }
}
.setup-wizard { display: grid; gap: 18px; }
.setup-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-wizard-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #fff;
  color: #7a8699;
  font-size: 12px;
}
.setup-wizard-steps li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef1f6;
  font-weight: 800;
}
.setup-wizard-steps li.is-current { border-color: #ffc2e2; background: #fff5fa; color: #b42318; }
.setup-wizard-steps li.is-done { border-color: #c7efd6; color: #1f7a45; }
.setup-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.preset-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  cursor: pointer;
  background: #fafbfc;
}
.preset-card:has(input:checked) {
  border-color: #ffc2e2;
  background: #fff5fa;
}
.preset-card input { margin: 0; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.setup-mini-list { margin: 0; padding-left: 18px; color: #54657a; font-size: 13px; }
.inline-success { display: flex; gap: 8px; align-items: center; color: #1f7a45; font-size: 13px; }
.agent-advanced { margin-top: 8px; }
.agent-advanced summary { cursor: pointer; color: #54657a; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .setup-wizard-steps { grid-template-columns: 1fr 1fr; }
}
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #fff5fa 0%, #f6f8fc 55%, #fff 100%);
}
.error-card {
  width: min(100%, 460px);
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(32, 45, 83, 0.08);
}
.error-card h1 { margin: 0; font-size: 28px; line-height: 1.2; }

/* ============================================================
   UI redesign foundation — readable density + shared primitives
   ============================================================ */
.ui-stack { display: grid; gap: var(--space-4); }
.ui-stack-sm { display: grid; gap: var(--space-3); }
.ui-stack-lg { display: grid; gap: var(--space-6); }
.ui-row { display: flex; align-items: center; gap: var(--space-3); }
.ui-row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }

.button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
}
.button-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: var(--text-sm);
}
.button-ghost {
  background: transparent;
  color: #54657a;
  border: 1px solid var(--line);
}
.button-ghost:hover {
  color: var(--primary);
  border-color: #ffc2e2;
  background: var(--primary-tint);
}

.modal-dialog {
  width: min(100%, 520px);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
.modal-dialog form,
.modal-dialog.inbox-attach-modal {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.modal-dialog label,
.inbox-attach-modal label {
  display: grid;
  gap: var(--space-2);
  color: #53617d;
  font-size: var(--text-sm);
  font-weight: 700;
}
.modal-dialog input:not([type="checkbox"]):not([type="radio"]),
.modal-dialog textarea,
.modal-dialog select,
.inbox-attach-modal input:not([type="checkbox"]):not([type="radio"]),
.inbox-attach-modal textarea,
.inbox-attach-modal select {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.modal-dialog h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-2xl);
}
.modal-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.page-intro {
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.page-intro h2 {
  margin: var(--space-2) 0;
  font-size: clamp(22px, 2.4vw, 28px);
}
.page-intro .muted {
  font-size: var(--text-base);
  line-height: 1.55;
}


/* Billing history readability */
.billing-history { padding: var(--space-6); }
.billing-history-tabs,
.metronic-shell .billing-history-tabs {
  gap: 6px;
  margin: var(--space-4) 0 var(--space-4);
  padding: 5px;
}
a.billing-history-tab,
.metronic-shell a.billing-history-tab {
  min-height: 42px;
  font-size: var(--text-md);
}
.ledger-row,
.payment-row {
  gap: 12px;
  padding: 14px 18px;
}
.ledger-row strong,
.payment-row strong {
  font-size: var(--text-sm);
  line-height: 1.35;
}
.ledger-row small,
.payment-row small {
  margin-top: 5px;
  font-size: var(--text-xs);
  white-space: normal;
  line-height: 1.4;
}
.ledger-amount { font-size: var(--text-md); }
.billing-pager { padding: 14px 16px; gap: 12px; }
.billing-section { padding: var(--space-6); }
.usage-panel { padding: var(--space-6); margin-bottom: var(--space-6); }
.usage-rules { gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); }
.usage-rules article { padding: 16px; }
.usage-rules strong { font-size: var(--text-md); }
.usage-rules p { font-size: var(--text-sm); line-height: 1.5; }
.package-grid { gap: 14px; margin-top: var(--space-5); }
.package-card { padding: 18px; }
.package-card h4 { font-size: var(--text-md); }
.package-card > p { font-size: var(--text-sm); line-height: 1.45; margin: 8px 0 16px; }

/* Connections / shared panels */
.connection-detail-head,
.panel-toolbar {
  gap: var(--space-3);
}
.metronic-shell .panel-filter {
  font-size: var(--text-xs);
  letter-spacing: .04em;
}
.connection-next,
.onboarding-banner,
.agent-policy-banner {
  gap: var(--space-3);
}
.metronic-shell .connection-settings {
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
}
.metronic-shell .connection-settings-copy h3 {
  font-size: var(--text-lg);
}
.metronic-shell .connection-settings-copy p:last-child {
  font-size: var(--text-sm);
  line-height: 1.55;
}
.action-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.qr-card {
  gap: var(--space-5);
  margin: var(--space-5) var(--space-6);
  padding: var(--space-5);
}
.qr-card p {
  font-size: var(--text-md);
  line-height: 1.55;
}
.disabled-action {
  gap: 6px;
  margin-top: var(--space-4);
  padding: 10px 12px;
  font-size: var(--text-sm);
}
.ai-paused-banner,
.usage-alert {
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: 14px 16px;
}
.ai-paused-banner p,
.usage-alert p {
  font-size: var(--text-sm);
  line-height: 1.5;
}

@media (max-width: 840px) {
  .inbox-layout-full .message-header { padding: 12px 14px; }
  .inbox-layout-full .message-stream { padding: 12px 14px 16px; gap: 10px; }
  .inbox-layout-full .wa-composer { padding: 10px 12px 12px; }
  .inbox-layout-full .conversation-row { padding: 14px; }
  .message-actions .button-small { min-height: 34px; }
  .billing-history { padding: var(--space-4); }
}
@media (max-width: 620px) {
  .modal-dialog { padding: var(--space-5); border-radius: var(--radius-lg); }
  .page-intro { margin-bottom: var(--space-5); }
  .package-grid { gap: var(--space-3); }
}

/* Connections detail redesign */
.connection-detail-stack {
  display: grid;
  gap: var(--space-5);
  padding: 0 var(--space-6) var(--space-6);
}
.connection-panel {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-lg);
  background: #fff;
}
.connection-name-editor summary {
  cursor: pointer;
  color: #45516e;
  font-size: var(--text-md);
  font-weight: 700;
}
.connection-name-editor form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.connection-name-editor label {
  display: grid;
  gap: var(--space-2);
  color: #53617d;
  font-size: var(--text-sm);
  font-weight: 700;
}
.connection-name-editor input,
.connection-agent-card select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-base);
}
.connection-agent-card {
  display: grid;
  gap: var(--space-3);
}
.connection-agent-card strong {
  color: #181c32;
  font-size: var(--text-lg);
}
.connection-agent-card form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.connection-agent-card label {
  display: grid;
  gap: var(--space-2);
  color: #53617d;
  font-size: var(--text-sm);
  font-weight: 700;
}
.connection-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.connection-capability-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-lg);
  background: #fafbfc;
}
.connection-capability-card strong {
  color: #181c32;
  font-size: var(--text-md);
}
.connection-capability-card p {
  margin: 0;
  color: #7e899f;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.capability-state {
  justify-self: start;
  margin-top: var(--space-1);
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a8699;
  background: #eef1f6;
  font-size: var(--text-xs);
  font-weight: 700;
}
.capability-state.is-ready {
  color: #1e9b71;
  background: #e8fff3;
}
.metronic-shell .connection-settings.connection-panel {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid #eef1f5;
  border-top: 1px solid #eef1f5;
  border-radius: var(--radius-lg);
  background: #fff;
}
.metronic-shell .qr-card.connection-panel {
  margin: 0;
}
.connection-next.connection-panel {
  margin: 0;
  border-top: 0;
}
.history-jobs {
  margin-top: var(--space-5);
}
.history-job-row {
  padding: 14px 18px;
}
.history-job-row strong { font-size: var(--text-sm); }
.history-job-row small { font-size: var(--text-xs); line-height: 1.4; }
.whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.whatsapp-card {
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}
.whatsapp-card-body { gap: 6px; }
.slot-summary {
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.slot-summary-card,
.slot-summary-action {
  padding: var(--space-5);
}
.slot-summary-card .slot-label { font-size: var(--text-xs); }
.slot-summary-action .muted { font-size: var(--text-sm); }

/* Dashboard density */
.needs-attention-grid {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-xl);
  background: #fff;
}
.needs-attention-head { margin-bottom: var(--space-3); padding: 0; border: 0; min-height: 0; }
.needs-attention-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.needs-card {
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
}
.needs-card strong { font-size: 26px; }
.needs-card span { font-size: var(--text-sm); line-height: 1.35; }
.dashboard-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.dashboard-stats .stat-card {
  min-height: 140px;
  padding: var(--space-5);
}
.dashboard-columns {
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.dashboard-widget { padding: var(--space-5); }
.widget-heading { gap: var(--space-3); padding-bottom: var(--space-4); }
.widget-heading h3 { font-size: var(--text-lg); }
.widget-heading .eyebrow { font-size: var(--text-xs); }
.pulse-list > div,
.recent-list > div {
  gap: 12px;
  padding: 12px 0;
}

/* Tasks density */
.suggestions-panel,
.task-list-panel,
.action-panel {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-xl);
  background: #fff;
}
.suggestion-list { gap: var(--space-3); }
.suggestion-card {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
}
.suggestion-card header { gap: 4px; margin-bottom: var(--space-3); }
.suggestion-card header strong { font-size: var(--text-base); }
.suggestion-card header small { font-size: var(--text-xs); color: #8a94a8; }
.suggestion-draft {
  margin: var(--space-3) 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  line-height: 1.5;
}
.suggestion-actions {
  gap: 10px;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid #f0f2f6;
}
.task-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
}
.task-create-form input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.task-rows { gap: var(--space-3); }
.task-row {
  gap: var(--space-4);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
}
.task-row strong { font-size: var(--text-base); }
.task-row small {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #8a94a8;
}
.task-row-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .needs-attention-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .connection-capability-grid { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .connection-detail-stack { padding: 0 var(--space-4) var(--space-4); }
  .dashboard-stats,
  .needs-attention-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dashboard-stats,
  .needs-attention-cards { grid-template-columns: 1fr; }
  .task-create-form { grid-template-columns: 1fr; }
  .task-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .task-row-actions { width: 100%; justify-content: flex-start; }
}

/* Sales redesign */
.sales-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-2);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-xl);
  background: #fff;
}
.sales-filter {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  gap: 8px;
}
.sales-filter b {
  font-size: var(--text-sm);
}
.sales-view-toggle {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: #f4f6fa;
}
.sales-view-toggle .sales-filter {
  border: 0;
  background: transparent;
}
.sales-view-toggle .sales-filter.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(32, 45, 83, .08);
}
.sales-kanban {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.sales-kanban .pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  overflow-x: auto;
  background: #f6f7fb;
}
.sales-kanban .pipeline-column {
  min-height: 320px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: #eef1f6;
}
.sales-kanban .pipeline-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 12px;
  color: #5f6b85;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sales-kanban .pipeline-column-head b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #45516e;
  background: #fff;
  font-size: var(--text-xs);
}
.sales-kanban-card,
.sales-kanban .lead-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #e7eaf2;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  text-decoration: none;
  color: inherit;
}
.sales-kanban-card strong,
.sales-kanban .lead-card > strong {
  color: #181c32;
  font-size: var(--text-md);
  line-height: 1.35;
  white-space: normal;
}
.sales-kanban-card small,
.sales-kanban .lead-card > small {
  color: #7e899f;
  font-size: var(--text-xs);
  white-space: normal;
}
.sales-kanban-card .muted,
.sales-kanban .lead-card .muted {
  margin: 0;
  color: #8a94a8;
  font-size: var(--text-xs);
  line-height: 1.4;
}
.sales-attention {
  justify-self: start;
  padding: 5px 8px;
  font-size: var(--text-xs);
}
.sales-stage-quick {
  margin-top: 4px;
}
.sales-stage-quick select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  color: #45516e;
  font: inherit;
  font-size: var(--text-sm);
}
.sales-kanban .pipeline-empty {
  padding: 24px 8px;
  color: #9aa4b7;
  font-size: var(--text-sm);
  text-align: center;
}
.sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.sales-card {
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}
.sales-card h3 { font-size: var(--text-lg); }
.sales-card small,
.sales-card-body p { font-size: var(--text-sm); line-height: 1.45; }
.sales-card footer { font-size: var(--text-xs); }
.sales-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.sales-detail-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid #eef1f5;
  border-radius: var(--radius-xl);
  background: #fff;
}
.sales-detail-card--wide { grid-column: 1 / -1; }
.sales-kv {
  display: grid;
  gap: 10px;
  margin: 0;
}
.sales-kv > div {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f6;
}
.sales-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sales-kv dt {
  color: #8a94a8;
  font-size: var(--text-xs);
  font-weight: 700;
}
.sales-kv dd {
  margin: 0;
  color: #34415f;
  font-size: var(--text-sm);
  line-height: 1.45;
}
.sales-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: var(--space-3);
  align-items: end;
}
.sales-edit-form label {
  display: grid;
  gap: var(--space-2);
  color: #53617d;
  font-size: var(--text-sm);
  font-weight: 700;
}
.sales-edit-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-base);
}

/* Knowledge redesign */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.kb-card {
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  min-height: 168px;
}
.kb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kb-card-body { display: grid; gap: 6px; flex: 1; }
.kb-card strong { font-size: var(--text-base); }
.kb-card small { font-size: var(--text-sm); line-height: 1.4; }
.kb-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-xs);
  gap: 12px;
  margin-top: auto;
}
.kb-card-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff59ae;
  font-weight: 700;
}
.kb-card-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.kb-card-status.active { color: #027a48; background: #e8f8ef; }
.kb-card-status.archived { color: #7e8299; background: #f1f1f4; }
.kb-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.knowledge-detail-intro { margin-top: 4px; }
.knowledge-base-manage-open {
  display: grid;
  gap: var(--space-3);
}
.knowledge-base-manage-open .knowledge-delete-form {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #eef1f5;
}
.knowledge-summary {
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.knowledge-summary article { padding: var(--space-4); }
.knowledge-summary small { font-size: var(--text-xs); }
.knowledge-summary strong { font-size: var(--text-xl); }
.knowledge-base-manage {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
}
.knowledge-base-manage summary {
  font-size: var(--text-sm);
}
.knowledge-base-manage form {
  gap: var(--space-3);
}
.knowledge-base-manage label {
  font-size: var(--text-sm);
  gap: var(--space-2);
}
.knowledge-base-manage input,
.knowledge-base-manage textarea,
.knowledge-base-manage select {
  min-height: 42px;
  padding: 10px 12px;
  font-size: var(--text-base);
}
.knowledge-composer-card {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}
.knowledge-composer {
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.knowledge-composer label {
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.knowledge-composer input:not([type="checkbox"]):not([type="radio"]),
.knowledge-composer select,
.knowledge-composer textarea {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.knowledge-composer textarea { min-height: 140px; }
.knowledge-composer-actions {
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: 0;
}
.knowledge-composer-actions .muted {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
}
.knowledge-layout {
  border-radius: var(--radius-xl);
  min-height: 520px;
}
.knowledge-row {
  gap: var(--space-3);
  padding: 16px 18px;
}
.knowledge-main strong { font-size: var(--text-md); }
.knowledge-main > small { font-size: var(--text-xs); }
.knowledge-main p {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.verification {
  padding: 4px 7px;
  font-size: var(--text-xs);
}
.candidate-row {
  gap: 10px;
  padding: 14px 16px;
}
.candidate-row strong {
  font-size: var(--text-sm);
  line-height: 1.4;
}
.candidate-row small { font-size: var(--text-xs); }
.review-note {
  margin: 14px 16px;
  padding: 12px;
  font-size: var(--text-xs);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .sales-kanban .pipeline-grid {
    grid-template-columns: repeat(6, minmax(190px, 220px));
  }
  .sales-edit-form { grid-template-columns: 1fr 1fr; }
  .sales-edit-form .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 840px) {
  .sales-detail-grid { grid-template-columns: 1fr; }
  .sales-view-toggle { margin-left: 0; width: 100%; }
}
@media (max-width: 700px) {
  .sales-kanban .pipeline-grid {
    grid-template-columns: repeat(6, minmax(180px, 200px));
  }
  .sales-edit-form { grid-template-columns: 1fr; }
  .knowledge-composer { grid-template-columns: 1fr; }
}


/* Contacts hub + Broadcast */
.contacts-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 var(--space-5);
}
.contacts-tab {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #5b6b88;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  background: #f4f6fa;
}
.contacts-tab.active {
  color: #fff;
  background: #ff59ae;
}
.contact-detail-panel { margin-top: var(--space-5); }
.tasks-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.tasks-explainer article {
  padding: 14px 16px;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  background: #fff;
}
.tasks-explainer strong { display: block; margin-bottom: 6px; color: #34415f; font-size: 13px; }
.tasks-explainer p { margin: 0; color: #75819a; font-size: 12px; line-height: 1.45; }
.invite-email-hint { margin: 4px 0 10px; font-size: 12px; }
.invite-gmail-ok .invite-email-hint { color: #1b9d72; }
.invite-gmail-warn .invite-email-hint { color: #b45309; }
.integration-docs ul { margin: 10px 0 14px; padding-left: 18px; }
.integration-docs li { margin: 6px 0; color: #53617d; }
.ts-wrapper { margin-top: 4px; }
.ts-wrapper.single .ts-control { min-height: 42px; border-color: #dfe4ee; border-radius: 7px; }
@media (max-width: 840px) {
  .tasks-explainer { grid-template-columns: 1fr; }
}
.contact-lead-chip {
  margin-top: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #f8faff;
  color: #54657a;
  font-size: var(--text-sm);
}
.broadcast-warning-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 var(--space-5);
  padding: 16px 18px;
  border: 1px solid #ffe0a3;
  border-radius: var(--radius-xl);
  background: #fff8e8;
}
.broadcast-warning-banner strong { display: block; margin-bottom: 4px; }
.broadcast-warning-banner p { margin: 0; color: #6a5a30; font-size: var(--text-sm); line-height: 1.5; }
.broadcast-campaign-list { display: grid; gap: 0; }
.broadcast-campaign-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef1f5;
}
.broadcast-campaign-row p { margin: 6px 0; color: #54657a; font-size: var(--text-sm); }
.broadcast-campaign-row small { color: #8a96ad; font-size: var(--text-xs); }
.broadcast-audience { margin: 14px 0; padding: 12px; border: 1px solid #eef1f5; border-radius: 10px; }
.broadcast-contact-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
}
.broadcast-contact-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.broadcast-contact-option small { display: block; color: #8a96ad; font-weight: 400; }
.broadcast-acks { display: grid; gap: 8px; margin: 14px 0; font-size: 12px; }
.modal-dialog label:has(> input[type="checkbox"]),
.modal-dialog label:has(> input[type="radio"]),
.broadcast-acks label,
.knowledge-composer label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.modal-dialog input[type="checkbox"],
.modal-dialog input[type="radio"],
.broadcast-acks input[type="checkbox"],
.broadcast-contact-option input[type="checkbox"],
.knowledge-composer input[type="checkbox"],
.agent-edit-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #ff59ae;
  border: none;
  border-radius: 3px;
  background: transparent;
}
.broadcast-template-list { margin-top: 16px; display: grid; gap: 8px; }
.broadcast-template-list pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #f6f8fc;
  font-size: 12px;
}

/* Email desk (inbox channel=email) */
.email-desk {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  background: #f4f6f9;
}
.email-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.email-message-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
}
.email-message-card.outbound { border-color: #d9f3ea; background: #f7fffb; }
.email-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.email-message-head strong { display: block; color: #1f2a44; font-size: 13px; }
.email-message-head small { color: #8a96ad; font-size: 11px; }
.email-message-head time { color: #9aa4b7; font-size: 11px; white-space: nowrap; }
.email-subject { margin: 0 0 10px; color: #34415f; font-size: 13px; font-weight: 700; }
.email-plain-body { color: #34415f; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.email-html-frame-wrap { display: grid; gap: 8px; }
.email-html-frame {
  width: 100%;
  min-height: 140px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}
.email-composer {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid #e6ebf3;
  background: #fff;
}
.email-composer label { color: #53617d; font-size: 11px; font-weight: 700; }
.email-composer input[type="text"],
.email-composer input:not([type]),
.email-composer #email-reply-subject {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.email-composer .ts-wrapper { width: 100%; }
.email-composer .ts-control {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
}
.email-composer .ql-toolbar.ql-snow {
  border: 1px solid #dfe4ee;
  border-radius: 8px 8px 0 0;
  background: #fafbfc;
}
.email-composer .ql-container.ql-snow {
  border: 1px solid #dfe4ee;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  min-height: 140px;
  font-size: 13px;
}
.email-composer .ql-editor { min-height: 120px; }
.email-composer .button { justify-self: start; margin-top: 4px; }
.inbox-channel-filters [data-channel-kind="email"] { color: #3a5a9a; }

/* Relation dashboard polish */
.metronic-shell .main-content { background: transparent; }
.metronic-shell .topbar {
  border-bottom-color: #ece6e9;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.metronic-shell .topbar h1 { color: #111; letter-spacing: -.5px; }
.metronic-shell .topbar .eyebrow { color: #9a919f; }
.metronic-shell .topbar .eyebrow strong { color: #111; }
.metronic-shell .welcome-card,
.metronic-shell .stat-card,
.metronic-shell .dashboard-widget,
.metronic-shell .chart-card {
  border-color: #ece6e9;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .035);
}
.metronic-shell .stat-card { background: #fff; }
.metronic-shell .stat-card .stat-label { color: #6b6469; }
.metronic-shell .stat-card strong { color: #111; }
.metronic-shell .card-icon.blue,
.metronic-shell .card-icon.violet {
  color: #ff59ae;
  background: #ffe8f4;
}
.metronic-shell .dashboard-widget .widget-heading {
  border-bottom-color: #f3ecef;
}
.metronic-shell .dashboard-widget .eyebrow { color: #f03d98; }
.metronic-shell .pulse-icon.blue,
.metronic-shell .pulse-icon.violet {
  color: #ff59ae;
  background: #ffe8f4;
}
.metronic-shell .sidebar-footer .nav-item {
  border: 1px solid rgba(255,194,226,.16);
  background: rgba(255,89,174,.08);
}
.metronic-shell .sidebar-footer .nav-item:hover {
  background: rgba(255,89,174,.16);
  color: #fff;
}
.metronic-shell .company-initials {
  background: #ff59ae;
  color: #111;
}
.metronic-shell .workspace-role {
  color: #f03d98;
  background: #ffe8f4;
}
.metronic-shell .credit-chip--ok {
  border-color: #ffc2e2;
  background: #fff5fa;
  color: #f03d98;
}
.metronic-shell .profile-link:hover,
.metronic-shell .profile-link.active {
  color: #ff59ae;
  border-color: #ffc2e2;
  background: #fff5fa;
}
.metronic-shell .setup-step.is-current {
  border-color: #ffc2e2;
  background: #fff5fa;
}
.metronic-shell .setup-step.is-current .setup-step-marker {
  border-color: #ff59ae;
  background: #ff59ae;
  color: #111;
}
.metronic-shell .chart-card {
  padding: 18px;
  border: 1px solid #ece6e9;
  background: #fff;
}
.metronic-shell .chart-card-head .eyebrow { color: #f03d98; }
.dashboard-empty .empty-icon,
.metronic-shell .empty-icon { color: #ff59ae; }


