/* EASY SERVE ASSIST interactive prototype — dashboard-only styles */
.dashboard-body { min-height: 100vh; padding-bottom: 0; background: #050712; }
.dashboard-body button, .dashboard-body input, .dashboard-body select, .dashboard-body textarea { font-family: inherit; }
.dashboard-body input, .dashboard-body select, .dashboard-body textarea {
    width: 100%; min-height: 44px; border: 1px solid rgba(198,213,255,.16); border-radius: .72rem;
    color: #f4f7ff; background: #080d1b; padding: .68rem .8rem;
}
.dashboard-body textarea { min-height: 92px; resize: vertical; }
.dashboard-body input::placeholder, .dashboard-body textarea::placeholder { color: #6f7b92; }
.dashboard-body select { color-scheme: dark; }
.dashboard-body [hidden] { display: none !important; }
.dashboard-primary { color: #06131a; border: 0; background: linear-gradient(105deg,#62ddff,#84e9d2); box-shadow: 0 12px 30px rgba(82,216,255,.14); }
.dashboard-primary:hover { filter: brightness(1.07); }
.sidebar-brand-row, .workspace-heading-row, .header-actions, .panel-heading, .module-heading, .settings-heading { display: flex; align-items: center; }
.sidebar-brand-row { justify-content: space-between; gap: .65rem; }
.workspace-heading-row { gap: .75rem; }
.header-actions { gap: .7rem; }
.sample-pill, .metric-chip, .result-count, .inbox-count {
    display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .7rem; border: 1px solid rgba(198,213,255,.12);
    border-radius: 999px; color: #aeb9cc; background: rgba(255,255,255,.035); font-size: .72rem; font-weight: 750;
}
.sample-pill::before { width: 6px; height: 6px; margin-right: .42rem; border-radius: 50%; content: ""; background: var(--green); box-shadow: 0 0 0 4px rgba(94,230,171,.1); }
.workspace-view { animation: dashboard-view-in .25s ease both; }
.workspace-view:focus { outline: none; }
.workspace-content { padding-bottom: 1.25rem; }
.module-heading { align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.35rem; }
.module-heading h2 { margin: .35rem 0 .45rem; font-size: clamp(2rem,3.5vw,3rem); }
.module-heading > div:first-child > p:last-child { max-width: 660px; margin: 0; color: #929eb3; font-size: .88rem; }
.module-kicker { margin: 0; color: var(--lime); font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.panel-heading { align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading h2 { margin-bottom: .28rem; }
.panel-heading p { margin: 0; color: #8490a6; font-size: .75rem; }
.chart-axis { display: flex; justify-content: space-between; margin-top: .5rem; color: #718097; font: 650 .66rem/1 var(--mono); }
.text-action, .small-action { border: 0; color: var(--cyan); background: transparent; font-size: .76rem; font-weight: 800; }
.text-action { padding: .35rem .25rem; }
.text-action:hover, .small-action:hover { color: #fff; }
.small-action { min-height: 34px; padding: .35rem .65rem; border: 1px solid rgba(82,216,255,.18); border-radius: .55rem; background: rgba(82,216,255,.05); white-space: nowrap; }
.module-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; margin-bottom: .9rem; }
.module-metrics > div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .85rem; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.module-metrics span, .module-metrics small { display: block; color: #8793a8; font-size: .72rem; }
.module-metrics strong { display: block; margin-top: .35rem; font-size: 1.45rem; line-height: 1.15; }
.module-metrics small { margin-top: .26rem; }
.module-panel { margin-top: .9rem; }
.filter-bar { display: flex; align-items: center; gap: .65rem; margin: -1.25rem -1.25rem 0; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.filter-bar select { min-width: 145px; }
.filter-bar .result-count { margin-left: auto; white-space: nowrap; }
.search-field { position: relative; display: block; min-width: min(320px,38vw); }
.search-field > .icon { position: absolute; z-index: 1; top: 50%; left: .75rem; transform: translateY(-50%); color: #738096; pointer-events: none; }
.search-field input { padding-left: 2.35rem; }
.flush-table { margin-top: 0; }
.dashboard-table td > span:not(.score):not(.status-badge):not(.source-badge):not(.quality-score) { display: block; margin-top: .16rem; color: #758197; font-size: .7rem; }
.interactive-table tbody tr { transition: background .18s ease; }
.interactive-table tbody tr:hover { background: rgba(82,216,255,.028); }
.empty-state { padding: 2rem; color: #8e9ab0; text-align: center; }
.status-badge, .priority {
    display: inline-flex; min-height: 1.6rem; align-items: center; padding: .2rem .55rem; border: 1px solid transparent;
    border-radius: 999px; font-size: .67rem; font-weight: 800; white-space: nowrap;
}
.status-qualified, .status-running, .status-completed { color: #8ff1c8; border-color: rgba(94,230,171,.18); background: rgba(94,230,171,.07); }
.status-contacted, .status-scheduled { color: #83ddff; border-color: rgba(82,216,255,.18); background: rgba(82,216,255,.07); }
.status-new, .status-review { color: #e0b7ff; border-color: rgba(155,85,255,.2); background: rgba(155,85,255,.08); }
.status-nurture, .status-paused { color: #ffdc8b; border-color: rgba(255,209,102,.18); background: rgba(255,209,102,.07); }
.compact-stats { margin-top: 0; }
.compact-stats .stat-card { padding: 1rem; }
.compact-stats .stat-card > span { display: block; }
.compact-stats .stat-card strong { margin-top: .35rem; font-size: 1.55rem; }
.compact-stats .stat-card small { color: #738097; font-size: .68rem; }
.segmented { display: inline-flex; gap: .25rem; padding: .24rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(255,255,255,.025); }
.segmented button { min-height: 34px; padding: .4rem .72rem; border: 0; border-radius: .5rem; color: #8591a7; background: transparent; font-size: .7rem; font-weight: 750; }
.segmented button:hover { color: #fff; }
.segmented button.active { color: #07101a; background: var(--cyan); }

/* B2C audience intelligence */
.b2c-roadmap {
    display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.1rem;
    border: 1px solid rgba(155,85,255,.28); border-radius: 1rem; background: linear-gradient(110deg,rgba(155,85,255,.11),rgba(82,216,255,.045));
}
.roadmap-date { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .25rem .62rem; border-radius: 999px; color: #ead3ff; background: rgba(155,85,255,.16); font-size: .66rem; font-weight: 850; white-space: nowrap; }
.b2c-roadmap h3 { margin: 0 0 .25rem; font-size: .9rem; }
.b2c-roadmap p { margin: 0; color: #929db1; font-size: .73rem; line-height: 1.5; }
.b2c-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); align-items: start; gap: 1rem; }
.b2c-layout .module-panel { margin-top: 0; }
.b2c-filter-bar { flex-wrap: wrap; }
.b2c-filter-bar select { min-width: 132px; }
.b2c-table th:first-child, .b2c-table td:first-child { width: 42px; text-align: center; }
.b2c-select { appearance: none; display: inline-grid; width: 28px !important; height: 28px; min-height: 28px !important; margin: 0; padding: 0 !important; place-content: center; border-radius: .42rem !important; cursor: pointer; }
.b2c-select::before { width: 12px; height: 12px; transform: scale(0); border-radius: .18rem; content: ""; background: #071018; transition: transform .14s ease; }
.b2c-select:checked { border-color: var(--cyan); background: var(--cyan); }
.b2c-select:checked::before { transform: scale(1); }
.b2c-table tr.selected { background: rgba(82,216,255,.045); box-shadow: inset 3px 0 rgba(82,216,255,.5); }
.source-badge { display: inline-flex; min-height: 1.65rem; align-items: center; padding: .2rem .55rem; border: 1px solid; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.source-meta { color: #ffc4e3; border-color: rgba(255,127,184,.22); background: rgba(255,127,184,.07); }
.source-google { color: #91ddff; border-color: rgba(82,216,255,.22); background: rgba(82,216,255,.07); }
.quality-score { display: inline-flex !important; align-items: center; gap: .4rem; margin-top: 0 !important; }
.quality-score strong { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(94,230,171,.22); border-radius: 50%; color: #8ff1c8; background: rgba(94,230,171,.06); font-size: .75rem; }
.quality-score small { color: #8995a9; font-size: .66rem; }
.b2c-builder { position: sticky; top: 90px; padding: 1.25rem; background: radial-gradient(circle at 100% 0,rgba(155,85,255,.11),transparent 14rem),var(--panel); }
.b2c-builder .panel-heading h2 { margin: .35rem 0 0; font-size: 1.15rem; }
.b2c-builder .sample-pill { min-height: 1.75rem; font-size: .64rem; }
.b2c-flow { display: grid; gap: .25rem; margin: 1.15rem 0; padding: 0; list-style: none; }
.b2c-flow li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .7rem; padding: .55rem .65rem; border: 1px solid transparent; border-radius: .65rem; color: #768298; }
.b2c-flow li > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; font-weight: 850; }
.b2c-flow strong, .b2c-flow small { display: block; }
.b2c-flow strong { color: #9ca7b8; font-size: .72rem; }
.b2c-flow small { margin-top: .08rem; font-size: .62rem; }
.b2c-flow li.complete > span { color: #07110d; border-color: var(--green); background: var(--green); }
.b2c-flow li.complete strong { color: #bcefd8; }
.b2c-flow li.active { border-color: rgba(82,216,255,.18); color: #94a0b2; background: rgba(82,216,255,.045); }
.b2c-flow li.active > span { color: #071018; border-color: var(--cyan); background: var(--cyan); }
.b2c-flow li.active strong { color: #eef5fa; }
.b2c-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: 0; }
.b2c-summary div { min-width: 0; padding: .65rem; border-radius: .65rem; background: rgba(255,255,255,.032); }
.b2c-summary dt { color: #77849a; font-size: .62rem; }
.b2c-summary dd { overflow: hidden; margin: .2rem 0 0; color: #dfe6ef; font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.b2c-selection-list { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.b2c-selection-list h3 { margin: 0 0 .5rem; color: #a9b3c4; font-size: .7rem; }
.b2c-selection-list ul { display: grid; gap: .3rem; max-height: 112px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.b2c-selection-list li { color: #7f8ca1; font-size: .68rem; line-height: 1.4; }
.b2c-selection-list li.selected-segment { color: #cfd8e4; }
.b2c-selection-list li.selected-segment::before { margin-right: .4rem; color: var(--green); content: "✓"; }
.b2c-builder-actions { display: grid; gap: .5rem; margin-top: 1rem; }
.b2c-builder-actions .button { width: 100%; min-height: 44px; padding-inline: .85rem; font-size: .7rem; }
.b2c-builder-actions .text-action { justify-self: start; }
.b2c-builder-actions button:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.b2c-status { margin: .7rem 0 0; color: #78859a; font-size: .65rem; line-height: 1.45; }

/* Intent signals */
.signals-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); align-items: start; gap: 1rem; }
.signal-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.signal-record { padding: 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(150deg,rgba(255,255,255,.035),rgba(10,15,32,.88)); }
.signal-record-top, .signal-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.signal-kind { display: inline-flex; align-items: center; gap: .4rem; color: #a8b3c6; font-size: .7rem; font-weight: 700; }
.signal-kind .icon { width: .95rem; color: var(--cyan); }
.priority-high { color: #8ff1c8; background: rgba(94,230,171,.08); }
.priority-medium { color: #ffdc8b; background: rgba(255,209,102,.08); }
.signal-record h3 { margin: 1rem 0 .28rem; font-size: 1rem; }
.signal-record > strong { color: #dfe5ee; font-size: .84rem; }
.signal-record > p { min-height: 3.4em; margin: .5rem 0 1rem; color: #8996aa; font-size: .77rem; line-height: 1.55; }
.signal-meta { padding-top: .75rem; border-top: 1px solid var(--line); color: #748197; font-size: .68rem; }
.signal-record .text-action { margin-top: .55rem; margin-left: -.25rem; }
.signal-inspector { position: sticky; top: 90px; padding: 1.4rem; background: linear-gradient(155deg,rgba(82,216,255,.06),#090e1d 48%); }
.signal-inspector h2 { margin: .7rem 0; font-size: 1.65rem; }
.signal-inspector > p:not(.module-kicker) { color: #919db1; font-size: .8rem; }
.signal-inspector dl { display: grid; gap: .75rem; margin: 1.2rem 0; }
.signal-inspector dl div { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.signal-inspector dt { color: #7e8ba1; font-size: .7rem; }
.signal-inspector dd { margin: 0; color: #dfe5ef; font-size: .72rem; font-weight: 750; text-align: right; }
.signal-inspector .button { width: 100%; }

/* Unified inbox */
.inbox-count { gap: .42rem; }
.inbox-count span { display: grid; width: 1.3rem; height: 1.3rem; place-items: center; border-radius: 50%; color: #071018; background: var(--cyan); }
.inbox-shell { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.conversation-list { overflow-y: auto; border-right: 1px solid var(--line); background: #080d1b; }
.inbox-search { width: calc(100% - 1.5rem); min-width: 0; margin: .75rem; }
.conversation-item { display: flex; width: 100%; gap: .7rem; padding: .95rem .8rem; border: 0; border-top: 1px solid rgba(255,255,255,.045); color: inherit; background: transparent; text-align: left; }
.conversation-item:hover, .conversation-item.active { background: rgba(82,216,255,.055); }
.conversation-item.active { box-shadow: inset 3px 0 var(--cyan); }
.contact-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #06131a; background: linear-gradient(140deg,var(--cyan),var(--violet)); font-size: .8rem; font-weight: 850; }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy > span:first-child { display: flex; justify-content: space-between; gap: .5rem; }
.conversation-copy strong { color: #eef2f8; font-size: .78rem; }
.conversation-copy time, .conversation-copy small { color: #738097; font-size: .64rem; }
.conversation-copy small, .conversation-copy > span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy > span:last-child { margin-top: .3rem; color: #9ba6b9; font-size: .7rem; }
.message-stage { min-width: 0; }
.thread { display: grid; height: 100%; grid-template-rows: auto minmax(300px,1fr) auto; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.thread-head strong, .thread-head span { display: block; }
.thread-head > div span { margin-top: .15rem; color: #78859a; font-size: .7rem; }
.message-history { display: flex; max-height: 450px; overflow-y: auto; flex-direction: column; gap: .65rem; padding: 1.2rem; background: radial-gradient(circle at 70% 0,rgba(82,216,255,.04),transparent 18rem); }
.message-bubble { max-width: min(76%,520px); padding: .7rem .8rem; border-radius: .85rem; background: rgba(255,255,255,.055); }
.message-bubble.outgoing { align-self: flex-start; border-bottom-left-radius: .2rem; }
.message-bubble.incoming { align-self: flex-end; border-bottom-right-radius: .2rem; background: rgba(82,216,255,.1); }
.message-bubble p { margin: 0; color: #d5dbe6; font-size: .78rem; line-height: 1.55; }
.message-bubble time { display: block; margin-top: .28rem; color: #778499; font-size: .62rem; text-align: right; }
.reply-box { padding: .85rem; border-top: 1px solid var(--line); }
.reply-box textarea { min-height: 74px; }
.reply-box > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .6rem; }
.reply-box > div > span { color: #728096; font-size: .65rem; }

/* Voice, meetings and analytics */
.voice-console { display: grid; grid-template-columns: 1.2fr .8fr; gap: .9rem; }
.voice-agent { position: relative; min-height: 310px; text-align: center; background: radial-gradient(circle at 50% 24%,rgba(82,216,255,.12),transparent 13rem),var(--panel); }
.voice-orb { display: grid; width: 72px; height: 72px; place-items: center; margin: .8rem auto 1rem; border: 1px solid rgba(82,216,255,.28); border-radius: 50%; color: var(--cyan); background: rgba(82,216,255,.08); box-shadow: 0 0 45px rgba(82,216,255,.12); }
.voice-agent h2 { margin: .65rem 0 .35rem; font-size: 1.45rem; }
.voice-agent > p:not(.module-kicker) { max-width: 540px; margin: 0 auto; color: #8d99ae; font-size: .78rem; }
.voice-wave { display: flex; height: 38px; align-items: center; justify-content: center; gap: 4px; margin: 1rem 0; }
.voice-wave i { width: 3px; height: var(--bar); border-radius: 4px; background: linear-gradient(var(--cyan),var(--violet)); opacity: .5; }
.voice-agent.simulating .voice-wave i { animation: voice-wave .65s ease-in-out infinite alternate; animation-delay: calc(var(--bar) * -25ms); }
.control-list { display: grid; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; }
.control-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.control-list li span { display: inline-flex; align-items: center; gap: .55rem; color: #9ca7ba; }
.control-list li span .icon { color: var(--cyan); }
.voice-records { margin: 1rem -1.25rem 0; border-top: 1px solid var(--line); }
.voice-record { display: grid; width: 100%; grid-template-columns: 1.3fr .4fr .55fr .7fr; align-items: center; gap: .7rem; padding: .75rem 1.2rem; border: 0; border-bottom: 1px solid var(--line); color: #aeb8c9; background: transparent; text-align: left; font-size: .72rem; }
.voice-record:hover, .voice-record.active { background: rgba(82,216,255,.04); }
.voice-record.active { box-shadow: inset 3px 0 var(--cyan); }
.voice-record strong, .voice-record small { display: block; }
.voice-record strong { color: #e8ecf4; }
.voice-record small { color: #768398; }
.call-detail { display: grid; grid-template-columns: .7fr .6fr 1.7fr; gap: 1rem; margin: 1rem 0 0; padding: 1rem; border: 1px solid rgba(82,216,255,.12); border-radius: .8rem; background: rgba(82,216,255,.035); }
.call-detail span, .call-detail small { display: block; color: #738096; font-size: .66rem; }
.call-detail strong { display: block; margin-top: .25rem; font-size: .82rem; }
.call-summary p { margin: .25rem 0 0; color: #aab4c5; font-size: .72rem; line-height: 1.5; }
.meetings-layout { display: grid; grid-template-columns: 1.35fr .65fr; align-items: start; gap: .9rem; }
.agenda-list { display: grid; margin-top: 1rem; }
.agenda-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: .85rem; padding: 1rem .25rem; border-top: 1px solid var(--line); }
.agenda-item time { color: var(--cyan); font: 750 .72rem/1 var(--mono); }
.agenda-item strong, .agenda-item span, .agenda-item small { display: block; }
.agenda-item strong { font-size: .82rem; }
.agenda-item div span, .agenda-item small { color: #7e8a9f; font-size: .68rem; }
.availability > p { color: #7f8b9f; }
.date-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: .4rem; margin: 1.1rem 0; }
.date-strip button, .time-options button { border: 1px solid var(--line); border-radius: .65rem; color: #8f9bae; background: rgba(255,255,255,.025); }
.date-strip button { min-height: 65px; }
.date-strip span, .date-strip strong { display: block; }
.date-strip span { font-size: .64rem; }
.date-strip button.active, .time-options button.active { color: #06131a; border-color: var(--cyan); background: var(--cyan); }
.time-options { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.time-options button { min-height: 40px; font-size: .7rem; }
.full-button { width: 100%; margin-top: 1rem; }
.inline-status { color: #7d8a9f; font-size: .68rem; text-align: center; }
.analytics-controls { display: flex; gap: .55rem; }
.analytics-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: .9rem; }
.funnel-bars { display: grid; gap: .85rem; margin-top: 1.4rem; }
.funnel-bars div { display: grid; grid-template-columns: 80px 1fr 65px; align-items: center; gap: .75rem; color: #8c98ac; font-size: .7rem; }
.funnel-bars i { display: block; width: var(--value); height: 1.35rem; border-radius: .3rem; background: linear-gradient(90deg,rgba(82,216,255,.24),var(--cyan)); transition: width .35s ease; }
.funnel-bars strong { color: #dfe5ef; text-align: right; }
.donut-wrap { display: grid; place-items: center; margin-top: 1.1rem; }
.donut { display: grid; width: 170px; height: 170px; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) 0 38%,var(--green) 38% 67%,var(--violet) 67% 88%,var(--rose) 88%); }
.donut::before { grid-area: 1/1; width: 115px; height: 115px; border-radius: 50%; content: ""; background: var(--panel); }
.donut span { z-index: 1; grid-area: 1/1; font-size: 1.15rem; font-weight: 850; text-align: center; }
.donut small { display: block; color: #7c899f; font-size: .62rem; font-weight: 600; }
.legend { width: 100%; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; color: #9ca7b9; font-size: .7rem; }
.legend li i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.legend li i.wa { background: var(--green); }.legend li i.voice { background: var(--violet); }.legend li i.email { background: var(--rose); }
.legend li strong { margin-left: auto; color: #dce2ec; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.full-settings { grid-column: 1/-1; }
.settings-heading { align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.settings-heading .icon-tile { width: 40px; height: 40px; flex: 0 0 auto; margin: 0; color: var(--cyan); background: rgba(82,216,255,.07); }
.settings-heading h2 { margin: 0 0 .25rem; }
.settings-heading p { margin: 0; color: #7f8ba0; font-size: .72rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: .78rem; }
.switch-row small { margin-top: .15rem; color: #78859a; font-size: .66rem; }
.switch-row input { appearance: none; position: relative; width: 42px; min-width: 42px; min-height: 24px; height: 24px; padding: 0; border-radius: 999px; background: #20283a; transition: background .2s ease; }
.switch-row input::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; content: ""; background: #8b96a8; transition: transform .2s ease,background .2s ease; }
.switch-row input:checked { border-color: rgba(82,216,255,.4); background: rgba(82,216,255,.25); }
.switch-row input:checked::after { transform: translateX(18px); background: var(--cyan); }
.settings-fields, .wizard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.settings-fields label, .wizard-fields label, .schedule-form > label { color: #b2bdce; font-size: .72rem; font-weight: 750; }
.settings-fields input, .settings-fields select, .wizard-fields input, .wizard-fields select, .wizard-fields textarea, .schedule-form input { margin-top: .35rem; font-weight: 450; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1rem; }
.settings-actions p { margin: 0 auto 0 0; color: #7d899e; font-size: .7rem; }

/* Dialogs and wizard */
.modal-backdrop { overflow-y: auto; }
.campaign-modal { width: min(100%,680px); }
.modal-head .module-kicker { margin-bottom: .45rem; }
.wizard-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: .35rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.wizard-progress li { display: flex; align-items: center; gap: .35rem; padding: .55rem .45rem; border-bottom: 2px solid rgba(255,255,255,.08); color: #738096; font-size: .66rem; font-weight: 750; }
.wizard-progress li span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); }
.wizard-progress li.active, .wizard-progress li.complete { color: #dfe6ef; border-color: var(--cyan); }
.wizard-progress li.active span, .wizard-progress li.complete span { color: #06131a; background: var(--cyan); }
.campaign-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.full-field { grid-column: 1/-1; }
.consent-check { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: rgba(255,255,255,.02); cursor: pointer; }
.consent-check input { width: 17px; min-width: 17px; min-height: 17px; margin: .2rem 0 0; }
.consent-check strong { display: block; color: #dce3ed; }
.consent-check span { color: #8793a8; font-size: .69rem; font-weight: 450; }
.character-count { display: block; margin-top: .2rem; color: #738096; font-size: .64rem; text-align: right; }
.form-error { padding: .65rem .75rem; border: 1px solid rgba(255,127,184,.3); border-radius: .6rem; color: #ffc2dc; background: rgba(255,127,184,.07); font-size: .72rem; }
.campaign-review { padding: 1rem; border: 1px solid rgba(94,230,171,.18); border-radius: .85rem; background: rgba(94,230,171,.035); }
.campaign-review > .icon-tile { color: #06130d; background: var(--green); }
.campaign-review h3 { margin: .45rem 0; }
.campaign-review > div > p:last-child, .campaign-review > p { color: #8e9bae; font-size: .73rem; }
.campaign-review dl { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin: 1rem 0; }
.campaign-review dl div { padding: .65rem; border-radius: .6rem; background: rgba(255,255,255,.035); }
.campaign-review dt { color: #78859a; font-size: .62rem; }
.campaign-review dd { margin: .2rem 0 0; color: #dfe5ed; font-size: .7rem; font-weight: 750; }
.modal-actions { align-items: center; }
.step-progress { display: none; }
.step-progress + .campaign-step { margin-top: 0; }
.step-label { color: #7f8ba0; font-size: .68rem; }
.schedule-form { display: grid; gap: .8rem; margin-top: 1.1rem; }
.dashboard-toast { position: fixed; z-index: 300; right: 1rem; bottom: 1rem; max-width: min(390px,calc(100vw - 2rem)); padding: .8rem 1rem; border: 1px solid rgba(82,216,255,.28); border-radius: .75rem; color: #dce8ef; background: #0c1624; box-shadow: 0 20px 60px rgba(0,0,0,.38); font-size: .75rem; }

@keyframes dashboard-view-in { from { transform: translateY(5px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes voice-wave { to { height: 30px; opacity: 1; } }

@media (max-width: 1180px) {
    .campaign-filters { max-width: 650px; overflow-x: auto; }
    .signals-layout, .b2c-layout { grid-template-columns: 1fr; }
    .signal-inspector, .b2c-builder { position: static; }
    .analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .module-metrics, .analytics-metrics { grid-template-columns: 1fr 1fr; }
    .signal-list { grid-template-columns: 1fr; }
    .inbox-shell { grid-template-columns: 300px minmax(420px,1fr); overflow-x: auto; }
    .voice-console, .meetings-layout { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }.full-settings { grid-column: auto; }
}
@media (max-width: 760px) {
    .sample-pill { display: none; }
    .workspace-content { padding-top: 1.15rem; }
    .module-heading { align-items: flex-start; flex-direction: column; }
    .module-heading > .button, .module-heading > .segmented, .module-heading > .analytics-controls { width: 100%; }
    .module-heading > .segmented button { flex: 1; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .search-field { min-width: 0; }
    .filter-bar .result-count { margin-left: 0; align-self: flex-start; }
    .b2c-roadmap { grid-template-columns: 1fr; }
    .b2c-filter-bar .small-action { align-self: flex-start; }
    .compact-stats { grid-template-columns: 1fr 1fr; }
    .inbox-shell { display: block; min-height: 0; overflow: visible; }
    .conversation-list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
    .message-stage { min-height: 540px; }
    .thread { min-height: 540px; }
    .voice-record { grid-template-columns: 1fr auto; }
    .voice-record > span:nth-child(2), .voice-record > span:nth-child(4) { display: none; }
    .call-detail { grid-template-columns: 1fr 1fr; }.call-summary { grid-column: 1/-1; }
    .settings-fields, .wizard-fields { grid-template-columns: 1fr; }.full-field { grid-column: auto; }
    .campaign-review dl { grid-template-columns: 1fr; }
    .analytics-controls { display: grid; }
}
@media (max-width: 520px) {
    .header-actions .dashboard-primary { min-width: 94px; }
    .module-metrics, .analytics-metrics, .compact-stats { grid-template-columns: 1fr; }
    .b2c-summary { grid-template-columns: 1fr; }
    .workspace-title h1 { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agenda-item { grid-template-columns: 52px 1fr; }.agenda-item > .status-badge { grid-column: 2; justify-self: start; }
    .date-strip { grid-template-columns: repeat(2,1fr); }
    .funnel-bars div { grid-template-columns: 64px 1fr 54px; gap: .45rem; }
    .wizard-progress li { justify-content: center; font-size: 0; }.wizard-progress li span { font-size: .66rem; }
    .modal-actions { gap: .45rem; }.modal-actions .button { padding-inline: .8rem; }
    .reply-box > div { align-items: stretch; flex-direction: column; }.reply-box .button { width: 100%; }
    .settings-actions { align-items: stretch; flex-direction: column; }.settings-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .workspace-view, .voice-agent.simulating .voice-wave i { animation: none !important; }
}
