:root {
    --bg-root: #050505;
    --bg-shell: #0b0b0d;
    --bg-panel: #131316;
    --bg-card: #1a1a1f;
    --bg-card-soft: #101115;
    --border-color: #2a2b31;
    --border-soft: rgba(255, 255, 255, 0.06);
    --accent-primary: #ff4d4f;
    --accent-primary-soft: rgba(255, 77, 79, 0.14);
    --accent-blue: #62a8ff;
    --accent-green: #34d399;
    --accent-orange: #ffb454;
    --accent-yellow: #ffd166;
    --accent-red: #ff6b6b;
    --text-main: #f7f7fb;
    --text-soft: #d9d9e4;
    --text-muted: #8f90a2;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top, rgba(255, 77, 79, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(98, 168, 255, 0.12), transparent 22%),
        var(--bg-root);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.eyebrow-alert {
    color: var(--accent-red);
}

.desktop-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 24px;
}

.app-shell,
.mobile-app-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    max-height: 960px;
    background:
        linear-gradient(180deg, rgba(255, 77, 79, 0.08), transparent 18%),
        var(--bg-shell);
    border: 1px solid var(--border-soft);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    transition: opacity 0.4s ease;
}

.app-main-column {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.desktop-sidebar {
    display: none;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 6, 0.84);
    backdrop-filter: blur(24px);
    z-index: 2000;
    transition: opacity 0.35s ease;
}

.onboarding-card {
    width: min(420px, 100%);
    padding: 34px 32px 32px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 77, 79, 0.1), transparent 30%),
        var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.onboarding-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-logo {
    background: radial-gradient(circle at top, rgba(255, 90, 95, 0.2), rgba(255, 90, 95, 0.05) 55%, rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 32px rgba(255, 77, 79, 0.12);
}

.onboarding-logo img {
    width: 58px;
    height: 58px;
    display: block;
}

.onboarding-card h2 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.onboarding-card p {
    margin-top: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 16px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.vertical-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vertical-option {
    min-height: 104px;
    padding: 16px 10px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.vertical-option i {
    font-size: 24px;
    color: var(--text-muted);
}

.vertical-option span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
}

.vertical-option:hover,
.vertical-option.active {
    transform: translateY(-2px);
    border-color: rgba(255, 77, 79, 0.45);
    background: rgba(255, 77, 79, 0.08);
}

.vertical-option.active i {
    color: var(--accent-primary);
}

.onboarding-footnote {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--text-muted);
    font-size: 12px;
}

.onboarding-footnote i {
    margin-right: 6px;
    font-size: 8px;
    color: var(--accent-primary);
}

.btn-primary,
.btn-secondary,
.text-link {
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn-primary,
.btn-secondary {
    min-height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #ff5a5f, #f43f5e);
    color: white;
    box-shadow: 0 14px 24px rgba(255, 77, 79, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-primary:hover,
.btn-secondary:hover,
.text-link:hover,
.fab-btn:hover,
.icon-btn:hover,
.filter-chip:hover,
.ribbon-chip:hover {
    transform: translateY(-1px);
}

.btn-primary.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 24px;
}

.flex-1 {
    flex: 1;
}

.app-header {
    padding: 22px 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.shop-avatar {
    position: relative;
    width: 46px;
    height: 46px;
}

.status-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-shell);
}

.status-dot.online {
    background: var(--accent-green);
}

.status-dot.offline {
    background: var(--text-muted);
}

.outlet-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 10px;
}

.outlet-switcher h1 {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -0.04em;
}

.outlet-switcher i {
    font-size: 13px;
    color: var(--text-muted);
}

.ai-status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 500;
}

.header-status-row {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.header-meta,
.header-divider {
    color: var(--text-muted);
    font-size: 13px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.top-ribbon {
    display: flex;
    gap: 10px;
    padding: 0 18px 12px;
}

.ribbon-chip {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    white-space: nowrap;
}

.ribbon-chip.active {
    background: rgba(98, 168, 255, 0.1);
    border-color: rgba(98, 168, 255, 0.3);
    color: var(--text-main);
}

.ribbon-chip-attention {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.24);
    color: var(--text-main);
}

.app-content {
    height: calc(100% - 146px);
    overflow-y: auto;
    padding: 4px 18px 120px;
}

.view-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-pair,
.brain-grid,
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-primary,
.home-secondary,
.brain-main,
.brain-side {
    min-width: 0;
}

.context-panel,
.workspace-summary-card {
    border-radius: 22px;
}

.section-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-content::-webkit-scrollbar {
    width: 0;
}

.view-section {
    display: none;
    animation: fadeUp 0.28s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card,
.section-block,
.live-feed-container,
.prompt-card,
.rule-card,
.metric-card,
.funnel-card,
.trend-card,
.campaign-card,
.performance-card,
.task-card,
.plugin-card,
.knowledge-card,
.summary-card,
.qr-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 120%), var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.workspace-summary-card {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120%), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.workspace-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.workspace-summary-top h3 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.workspace-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.workspace-stat {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.workspace-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.workspace-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.hero-card {
    padding: 22px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 6px;
    background:
        linear-gradient(180deg, rgba(255, 180, 84, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(98, 168, 255, 0.06), transparent 42%),
        var(--bg-card);
}

.hero-card h2 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-card p {
    margin-top: 10px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.hero-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    letter-spacing: -0.05em;
}

.action-strip {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.07), transparent 120%), rgba(15, 16, 21, 0.82);
    border: 1px solid rgba(255, 107, 107, 0.14);
}

.action-strip-copy h3 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.action-strip-copy p {
    margin-top: 8px;
}

.action-strip-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.policy-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.policy-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.hero-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #34353d;
    cursor: pointer;
    transition: 0.3s ease;
}

.slider::before {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    transition: 0.3s ease;
}

input:checked + .slider {
    background: linear-gradient(135deg, #ff5a5f, #f43f5e);
}

input:checked + .slider::before {
    transform: translateX(28px);
}

.metrics-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metrics-groups {
    display: grid;
    gap: 18px;
}

.metric-group {
    display: grid;
    gap: 12px;
}

.metric-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.metric-group-head h3 {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: -0.04em;
}

.metric-group-head p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.metric-card {
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 120%),
        rgba(17, 18, 24, 0.92);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon.blue {
    background: rgba(98, 168, 255, 0.16);
    color: var(--accent-blue);
}

.metric-icon.green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-green);
}

.metric-icon.orange {
    background: rgba(255, 180, 84, 0.16);
    color: var(--accent-orange);
}

.metric-icon.red {
    background: rgba(255, 107, 107, 0.16);
    color: var(--accent-red);
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.m-label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.m-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.m-note {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.metric-link {
    margin-top: 10px;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    cursor: pointer;
}

.panel-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.panel-summary-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-summary-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.panel-summary-item strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.panel-summary-alert .panel-summary-item {
    background: rgba(255, 107, 107, 0.06);
    border-color: rgba(255, 107, 107, 0.12);
}

.section-block,
.prompt-card {
    margin-top: 18px;
    border-radius: 20px;
    padding: 20px;
}

.view-layout > .section-block,
.view-layout > .prompt-card,
.view-layout > .summary-grid,
.view-layout > .insight-hero,
.content-pair > .section-block,
.brain-grid .section-block,
.brain-grid .prompt-card,
.rules-grid > .rule-card,
.rules-grid > #dyn-rules-list {
    margin-top: 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-head h3,
.feed-header h3,
.dd-card h4,
.section-title h2 {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
}

.section-head h3 {
    font-size: 18px;
}

.section-head p,
.section-title p,
.feed-header p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.text-link {
    color: var(--accent-blue);
    font-weight: 600;
    white-space: nowrap;
}

.secondary-rail-head p,
.workspace-summary-note {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.secondary-rail-head {
    padding: 2px 2px 0;
}

.crew-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crew-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crew-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.crew-card p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.crew-meta {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.crew-status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.crew-status.ready,
.crew-status.standby {
    background: rgba(52, 211, 153, 0.14);
    color: var(--accent-green);
}

.crew-status.busy {
    background: rgba(255, 180, 84, 0.14);
    color: var(--accent-orange);
}

.channel-grid,
.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.channel-card,
.summary-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.channel-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(98, 168, 255, 0.12);
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 700;
}

.channel-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.channel-row-main {
    min-width: 0;
}

.channel-row-stats {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.channel-stat {
    min-width: 76px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.channel-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.channel-card-top,
.summary-card-top,
.performance-row,
.task-card-top,
.plugin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill,
.status-pill,
.priority-pill,
.tag,
.filter-chip,
.nav-badge,
.badge {
    border-radius: 999px;
    font-weight: 600;
}

.status-pill,
.priority-pill,
.tag,
.badge,
.nav-badge {
    padding: 6px 10px;
    font-size: 11px;
}

.pill {
    padding: 4px 9px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pill.green,
.status-pill.live {
    background: rgba(52, 211, 153, 0.14);
    color: var(--accent-green);
}

.pill.orange,
.priority-pill.medium {
    background: rgba(255, 180, 84, 0.14);
    color: var(--accent-orange);
}

.pill.red,
.priority-pill.high,
.badge.red,
.nav-badge {
    background: rgba(255, 107, 107, 0.18);
    color: #ffdfe0;
}

.pill.blue,
.status-pill.synced {
    background: rgba(98, 168, 255, 0.14);
    color: var(--accent-blue);
}

.status-pill.pending {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.channel-card h4,
.summary-card h4,
.task-card h4,
.plugin-card h4,
.knowledge-card h4,
.campaign-card h4,
.performance-card h4 {
    font-size: 16px;
    margin-top: 12px;
}

.channel-card p,
.summary-card p,
.task-card p,
.plugin-card p,
.knowledge-card p,
.campaign-card p,
.performance-card p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.stat-inline {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 12px;
}

.automation-list,
.crm-list,
.performance-list,
.campaign-list,
.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.automation-card,
.task-card,
.performance-card,
.campaign-card,
.knowledge-card {
    border-radius: 16px;
    padding: 18px;
}

.automation-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.automation-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.automation-card h4 {
    font-size: 16px;
}

.automation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.automation-row-main {
    min-width: 0;
}

.automation-meta-tight {
    margin-top: 0;
    align-self: center;
}

.automation-meta,
.knowledge-meta,
.task-meta,
.campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.live-feed-container {
    margin-top: 18px;
    border-radius: 20px;
    overflow: hidden;
}

.feed-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pulsing-record {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 600;
}

.pulsing-record i {
    font-size: 8px;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 18px 16px;
    max-height: 320px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-item:last-child {
    border-bottom: 0;
}

.f-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-green);
}

.bg-blue {
    background: rgba(98, 168, 255, 0.15);
    color: var(--accent-blue);
}

.bg-orange {
    background: rgba(255, 180, 84, 0.15);
    color: var(--accent-orange);
}

.bg-red {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
}

.bg-yellow {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-yellow);
}

.f-content p {
    font-size: 14px;
    line-height: 1.5;
}

.f-content span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.section-title {
    margin: 10px 0 18px;
}

.section-title h2 {
    font-size: 30px;
}

.filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-soft);
    white-space: nowrap;
}

.filter-chip.active {
    background: rgba(255, 77, 79, 0.12);
    border-color: rgba(255, 77, 79, 0.32);
    color: var(--text-main);
}

.search-shell {
    margin-top: 14px;
    padding: 0 14px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-shell i {
    color: var(--text-muted);
}

.search-shell input,
.sheet-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    outline: 0;
}

.task-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-card-top {
    margin-bottom: 12px;
}

.task-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.task-card-footer small {
    flex: 1;
    color: var(--text-soft);
    line-height: 1.5;
}

.task-card-footer strong {
    color: var(--text-main);
}

.task-value {
    font-size: 18px;
    font-weight: 700;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.insight-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.funnel-card,
.trend-card {
    border-radius: 18px;
    padding: 20px;
}

.funnel-card > p,
.trend-card > p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.funnel-steps {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.funnel-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.funnel-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.funnel-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff5a5f, #ff8b6c);
    border-radius: inherit;
}

.mini-bars {
    margin-top: 18px;
    height: 108px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.mini-bars span,
.chart-mockup span {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(255, 77, 79, 0.92), rgba(255, 77, 79, 0.18));
}

.performance-card,
.campaign-card,
.knowledge-card,
.plugin-card {
    border-radius: 16px;
}

.performance-meter {
    margin-top: 14px;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.performance-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #62a8ff, #34d399);
}

.plugin-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plugin-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plugin-card-top {
    align-items: flex-start;
}

.plugin-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.plugin-logo.zoho {
    background: linear-gradient(135deg, #ff7a18, #ff4d4f);
}

.plugin-logo.square {
    background: #0f1116;
    border: 1px solid #31343d;
}

.plugin-logo.st {
    background: linear-gradient(135deg, #3358ff, #2f7bff);
}

.plugin-logo.hc {
    background: linear-gradient(135deg, #00b1eb, #34d399);
}

.plugin-logo.mb {
    background: linear-gradient(135deg, #db5a6b, #ff9166);
}

.plugin-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.plugin-card.active {
    border-color: rgba(52, 211, 153, 0.28);
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), transparent 120%), var(--bg-card);
}

.knowledge-card {
    padding: 16px 18px;
}

.knowledge-top,
.summary-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prompt-card textarea,
textarea,
.ios-select,
.input-with-copy input,
.sheet-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #101116;
    color: var(--text-main);
    padding: 13px 14px;
    outline: 0;
}

textarea::placeholder,
.sheet-input::placeholder,
.search-shell input::placeholder {
    color: #6e7082;
}

.tag-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rule-card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    cursor: pointer;
}

.fallback-rule {
    cursor: default;
}

.rule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.rule-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-title-group span {
    display: block;
    font-weight: 600;
}

.rule-header small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.rule-desc {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ios-slider {
    width: 100%;
    margin-top: 14px;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.ios-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 84px;
    padding: 10px 14px 22px;
    display: flex;
    justify-content: space-between;
    background: rgba(10, 10, 13, 0.88);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
}

.nav-item.active {
    color: var(--text-main);
}

.nav-item i {
    font-size: 19px;
}

.nav-item span {
    font-size: 11px;
}

.icon-wrapper {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.fab-btn {
    position: absolute;
    right: 18px;
    bottom: 96px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff5a5f, #f43f5e);
    box-shadow: 0 18px 28px rgba(255, 77, 79, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    z-index: 4;
}

.outlet-dropdown {
    position: absolute;
    top: 84px;
    left: 18px;
    right: 18px;
    z-index: 15;
    padding: 8px;
    border-radius: 20px;
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
}

.outlet-option {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.outlet-option.active,
.outlet-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.opt-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.opt-text {
    flex: 1;
}

.opt-text strong {
    display: block;
    font-size: 14px;
}

.opt-text span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.check-icon {
    color: var(--accent-primary);
}

@media (min-width: 1080px) {
    .app-shell,
    .mobile-app-container {
        width: min(1460px, calc(100vw - 56px));
        max-width: none;
        height: 920px;
        flex-shrink: 0;
        border-radius: 34px;
    }

    .desktop-sidebar {
        position: absolute;
        inset: 0 auto 0 0;
        width: 198px;
        padding: 24px 18px;
        border-right: 1px solid var(--border-color);
        background: rgba(8, 9, 11, 0.62);
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .desktop-sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .desktop-sidebar-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: rgba(255, 77, 79, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.06);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-sidebar-mark img {
        width: 26px;
        height: 26px;
    }

    .desktop-sidebar-brand strong {
        display: block;
        font-family: var(--font-display);
        font-size: 18px;
        letter-spacing: -0.04em;
    }

    .desktop-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .desktop-side-link {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-muted);
        cursor: pointer;
    }

    .desktop-side-link.active {
        background: rgba(255, 77, 79, 0.12);
        color: var(--text-main);
        border: 1px solid rgba(255, 77, 79, 0.2);
    }

    .desktop-sidebar-card {
        margin-top: auto;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .desktop-sidebar-card h3 {
        margin-top: 8px;
        font-family: var(--font-display);
        font-size: 22px;
        letter-spacing: -0.04em;
    }

    .desktop-sidebar-card p {
        margin: 10px 0 16px;
        color: var(--text-muted);
        line-height: 1.5;
        font-size: 13px;
    }

    .app-main-column {
        margin-left: 198px;
    }

    .app-header {
        padding: 22px 28px 12px;
    }

    .top-ribbon {
        padding: 0 28px 12px;
    }

    .app-content {
        height: calc(100% - 118px);
        padding: 10px 28px 40px;
    }

    .view-layout {
        gap: 20px;
    }

    .home-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
        gap: 22px;
        align-items: start;
    }

    .home-primary {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .home-secondary {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .hero-card {
        padding: 20px 22px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    }

    .hero-card h2 {
        font-size: 34px;
        line-height: 1;
        max-width: 420px;
    }

    .hero-controls {
        align-items: flex-start;
        gap: 16px;
    }

    .hero-actions {
        width: min(320px, 100%);
    }

    .action-strip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .action-strip-copy {
        max-width: 480px;
    }

    .metrics-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
        gap: 10px;
    }

    .metrics-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .content-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .content-pair-wide {
        grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
    }

    .metric-card,
    .section-block,
    .prompt-card,
    .rule-card,
    .funnel-card,
    .trend-card,
    .live-feed-container,
    .workspace-summary-card {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    }

    .metric-card,
    .channel-card,
    .summary-card,
    .automation-card,
    .task-card,
    .performance-card,
    .campaign-card,
    .knowledge-card,
    .desktop-row,
    .desktop-automation-card,
    .workspace-stat {
        background: rgba(255, 255, 255, 0.03);
    }

    .section-block,
    .prompt-card {
        padding: 18px;
    }

    .ribbon-chip.active {
        background: rgba(255, 255, 255, 0.03);
        border-color: var(--border-color);
        color: var(--text-soft);
    }

    .ribbon-chip-attention {
        background: rgba(255, 107, 107, 0.1);
        border-color: rgba(255, 107, 107, 0.2);
        color: var(--text-main);
    }

    .ribbon-chip {
        min-height: 42px;
    }

    .channel-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feed-list {
        max-height: 340px;
    }

    .feed-header {
        padding: 16px 18px;
    }

    .automation-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .automation-meta-tight {
        align-self: start;
    }

    .inbox-layout .section-title,
    .insights-layout .section-title,
    .brain-layout .section-title,
    .rules-layout .section-title {
        margin-bottom: 0;
    }

    .workspace-summary-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 16px;
        align-items: center;
    }

    .insight-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
        gap: 18px;
    }

    .brain-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
        gap: 18px;
        align-items: start;
    }

    .brain-main,
    .brain-side {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .rules-grid {
        display: grid;
        grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    .bottom-nav {
        display: none;
    }

    .fab-btn {
        right: 24px;
        bottom: 24px;
    }

    .outlet-dropdown {
        top: 92px;
        left: 222px;
        right: 28px;
    }

    .bottom-sheet {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, calc(-50% + 40px));
        width: min(640px, calc(100vw - 120px));
        max-height: min(760px, 84vh);
        border-radius: 22px;
    }

    .bottom-sheet.visible {
        transform: translate(-50%, -50%);
    }

    .sheet-header h3 {
        font-size: 18px;
    }

    .sheet-body {
        padding: 0 18px 12px;
    }
}

.dd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dd-header h3 {
    font-size: 24px;
}

.dd-status {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.16);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dd-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.dd-card {
    border-radius: 24px;
    padding: 22px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-color);
}

.dd-card h4 {
    font-size: 17px;
    margin-bottom: 16px;
}

.terminal-view {
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
    padding: 16px;
    border-radius: 18px;
    background: #060608;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 12px;
    color: #ffa7a9;
    line-height: 1.6;
}

.terminal-view code {
    display: block;
}

.compact-terminal {
    min-height: 160px;
    max-height: 160px;
    font-size: 11px;
}

.desktop-queue,
.desktop-automation-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-row,
.desktop-automation-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-row p,
.desktop-automation-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.desktop-row strong,
.desktop-automation-card strong {
    font-size: 14px;
}

.dispatch-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dispatch-row-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.severity-pill,
.sla-chip {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.severity-pill.critical,
.sla-chip.critical {
    background: rgba(255, 107, 107, 0.18);
    color: #ffd5d6;
}

.severity-pill.warning,
.sla-chip.warning,
.severity-pill.high {
    background: rgba(255, 180, 84, 0.16);
    color: var(--accent-orange);
}

.severity-pill.elevated,
.severity-pill.medium,
.sla-chip.stable {
    background: rgba(98, 168, 255, 0.14);
    color: var(--accent-blue);
}

.dispatch-row-context {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 170px;
}

.compact-chart {
    height: 120px;
}

.metrics-stats {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 13px;
}

.metrics-stats strong {
    color: var(--text-main);
}

.global-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    z-index: 80;
}

.bottom-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: min(100%, 520px);
    max-height: 84vh;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%), #15161b;
    border: 1px solid var(--border-color);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.28);
    z-index: 90;
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.visible {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin: 10px auto 0;
}

.sheet-header {
    padding: 16px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.sheet-header h3 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.sheet-body {
    padding: 0 18px 16px;
    overflow-y: auto;
}

.settings-group-title {
    margin: 14px 0 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sheet-footer {
    padding: 14px 18px 18px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-card {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.form-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.autonomous-card p {
    margin-bottom: 14px;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stacked-switches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
}

.switch-row span strong {
    display: block;
    font-size: 14px;
    color: var(--text-main);
}

.switch-row span small {
    display: block;
    margin-top: 4px;
    color: var(--accent-green);
    font-size: 12px;
}

.switch-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.rule-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qr-card {
    padding: 18px;
    border-radius: 22px;
    display: flex;
    gap: 16px;
}

.qr-placeholder {
    width: 108px;
    height: 108px;
    border-radius: 20px;
    background: #070708;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.qr-copy p {
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 13px;
}

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 120;
}

.toast {
    min-width: 220px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(18, 19, 23, 0.96);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    color: var(--text-soft);
}

.conversation-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.meta-panel,
.transcript-card {
    padding: 16px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.meta-panel strong,
.transcript-card strong {
    display: block;
    font-size: 14px;
}

.meta-panel span,
.transcript-line small,
.integration-feature,
.rule-note {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.transcript-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.transcript-line {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.transcript-line.agent {
    border: 1px solid rgba(255, 77, 79, 0.18);
}

.transcript-line.customer {
    border: 1px solid rgba(98, 168, 255, 0.18);
}

@media (max-width: 540px) {
    .desktop-wrapper {
        padding: 0;
    }

    .app-shell,
    .mobile-app-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .bottom-sheet {
        width: 100%;
        border-left: 0;
        border-right: 0;
    }
}
