:root {
  color-scheme: light;
  --bg: #f5f5fa;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-muted: #f7f7fb;
  --ink: #171720;
  --muted: #717182;
  --muted-2: #9c9cab;
  --line: #e8e7ef;
  --line-strong: #dbdae5;
  --purple: #6f5ce7;
  --purple-dark: #5946d2;
  --purple-soft: #eeebff;
  --pink: #e95498;
  --orange: #f58a58;
  --green: #29a67a;
  --red: #d95f66;
  --blue: #4e86da;
  --shadow-sm: 0 8px 24px rgba(43, 38, 82, 0.06);
  --shadow-md: 0 18px 50px rgba(43, 38, 82, 0.11);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar-width: 236px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 82% 2%, rgba(111, 92, 231, .08), transparent 27%), var(--bg); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }

.ambient { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .22; z-index: 0; }
.ambient-one { width: 330px; height: 330px; background: #9a7eff; top: -170px; right: 8%; }
.ambient-two { width: 300px; height: 300px; background: #ffb57e; bottom: -180px; left: 18%; opacity: .12; }

.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 28px 18px 18px; display: flex; flex-direction: column; background: rgba(249, 249, 252, .86); backdrop-filter: blur(24px); border-right: 1px solid rgba(222, 221, 232, .8); z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.brand-mark { width: 35px; height: 35px; border-radius: 12px; position: relative; background: linear-gradient(145deg, #745eea, #a55de1 54%, #f58e73); box-shadow: 0 8px 22px rgba(111, 92, 231, .28); flex: none; }
.brand-mark::before { content: ""; position: absolute; inset: 7px; border: 2px solid white; border-radius: 8px; }
.brand-mark::after { content: ""; position: absolute; width: 5px; height: 5px; border: 2px solid white; border-radius: 50%; left: 13px; top: 13px; }
.brand-mark span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: white; right: 9px; top: 9px; }
.brand-mark.large { width: 50px; height: 50px; border-radius: 16px; margin-bottom: 12px; }
.brand-mark.large::before { inset: 10px; border-radius: 10px; }
.brand-mark.large::after { width: 8px; height: 8px; left: 18px; top: 18px; }
.brand-mark.large span { right: 13px; top: 13px; }

.main-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #6f6f7d; display: flex; align-items: center; gap: 12px; border-radius: 13px; padding: 11px 12px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 650; transition: .18s ease; }
.nav-item svg { width: 19px; height: 19px; fill: currentColor; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.nav-item.is-active { background: var(--surface-solid); color: var(--purple); box-shadow: var(--shadow-sm); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 99px; padding: 0 6px; background: #ecebf2; color: #777785; font-size: 10px; }
.nav-item.is-active .nav-count { background: var(--purple-soft); color: var(--purple); }
.nav-count.attention:not(:empty) { background: #fce7ef; color: #cc477e; }
.sidebar-spacer { flex: 1; }
.secondary-nav { margin-bottom: 14px; }
.sidebar-account { min-height: 74px; border-radius: 15px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); padding: 12px; display: flex; align-items: center; gap: 10px; }
.sidebar-account img { width: 38px; height: 38px; object-fit: cover; border-radius: 12px; background: var(--purple-soft); }
.sidebar-account div { min-width: 0; }
.sidebar-account strong, .sidebar-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.sidebar-account button { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 5px; }
.skeleton-block { background: linear-gradient(90deg, #f2f1f6, #fff, #f2f1f6); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 94px; padding: 0 42px; display: flex; align-items: center; gap: 18px; justify-content: space-between; border-bottom: 1px solid rgba(222, 221, 232, .75); background: rgba(247, 247, 251, .62); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--purple); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.connection-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.72); font-size: 11px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b0afba; box-shadow: 0 0 0 4px rgba(176, 175, 186, .12); }
.connection-chip.is-connected .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(41, 166, 122, .12); }
.connection-chip.is-demo .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(245, 138, 88, .14); }
.mobile-menu-button { display: none !important; }

.content { padding: 34px 42px 60px; max-width: 1560px; margin: 0 auto; }
.view { display: none; }
.view.is-active { display: block; animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }

.button { border: 0; border-radius: 11px; height: 42px; padding: 0 18px; font-weight: 750; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-primary { background: var(--purple); color: white; box-shadow: 0 9px 24px rgba(111, 92, 231, .24); }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { background: var(--purple-soft); color: var(--purple-dark); }
.button-ghost { background: var(--surface-solid); color: #555461; border: 1px solid var(--line); box-shadow: 0 5px 15px rgba(43, 38, 82, .03); }
.button-danger { background: #fff0f1; color: var(--red); }
.button-small { height: 35px; padding: 0 13px; border-radius: 10px; font-size: 11px; }
.icon-button { width: 35px; height: 35px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; fill: currentColor; }
.text-button { border: 0; background: transparent; color: var(--purple); font-size: 11px; font-weight: 750; cursor: pointer; padding: 6px 0; }
.text-button span { margin-left: 3px; }

.hero-card { min-height: 360px; border-radius: var(--radius-lg); padding: 48px 50px; overflow: hidden; position: relative; background: linear-gradient(118deg, #201d31 0%, #29213d 44%, #5c3c68 100%); color: white; box-shadow: 0 22px 70px rgba(38, 30, 69, .19); display: grid; grid-template-columns: 1.04fr .96fr; }
.hero-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -80px; top: -150px; background: radial-gradient(circle, rgba(235, 130, 173, .32), transparent 68%); }
.hero-card::after { content: ""; position: absolute; width: 360px; height: 260px; right: 8%; bottom: -180px; background: #7556e9; filter: blur(80px); opacity: .28; }
.hero-copy { position: relative; z-index: 3; align-self: center; max-width: 610px; }
.hero-kicker { display: inline-block; margin-bottom: 14px; color: #d3c9ff; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.hero-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.06em; }
.hero-copy p { max-width: 520px; margin: 19px 0 25px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; }
.hero-actions .button-ghost { color: white; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.hero-visual { position: relative; min-height: 280px; z-index: 2; }
.hero-phone { position: absolute; width: 205px; height: 326px; border-radius: 29px; padding: 11px; background: #fff; right: 13%; top: -17px; transform: rotate(5deg); box-shadow: 0 30px 60px rgba(0,0,0,.27); z-index: 3; }
.hero-phone::before { content: ""; position: absolute; width: 63px; height: 16px; border-radius: 0 0 12px 12px; top: 8px; left: 71px; background: #1c1a22; z-index: 2; }
.phone-top { height: 28px; }
.hero-phone img { width: 100%; aspect-ratio: 1 / 1.03; object-fit: cover; border-radius: 17px; display: block; }
.phone-lines { padding: 13px 6px; display: grid; gap: 7px; }
.phone-lines i { height: 6px; background: #ecebf2; border-radius: 99px; }
.phone-lines i:nth-child(2) { width: 79%; }
.phone-lines i:nth-child(3) { width: 55%; }
.floating-card { position: absolute; padding: 12px 14px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,.2); z-index: 5; }
.floating-card-post { width: 175px; left: 3%; bottom: 14px; transform: rotate(-4deg); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 11px; margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-card small { color: var(--muted); font-size: 9px; }
.mini-label { font-size: 8px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 800; }
.floating-card-ai { display: flex; align-items: center; gap: 10px; width: 172px; right: -3%; top: 22%; transform: rotate(3deg); }
.floating-card-ai .sparkle { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: white; background: linear-gradient(145deg, var(--purple), var(--pink)); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.orbit-one { width: 340px; height: 340px; right: 0; top: -35px; }
.orbit-two { width: 260px; height: 260px; right: 40px; top: 5px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.metric-card { background: var(--surface); border: 1px solid rgba(230,229,237,.9); border-radius: var(--radius); padding: 19px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.metric-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.metric-icon svg { width: 20px; height: 20px; fill: currentColor; }
.metric-icon.lavender { background: #eeebff; color: var(--purple); }
.metric-icon.peach { background: #fff0e9; color: var(--orange); }
.metric-icon.mint { background: #e7f7f1; color: var(--green); }
.metric-icon.blue { background: #eaf2fe; color: var(--blue); }
.metric-card span, .metric-card small, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-card strong { font-size: 26px; margin: 2px 0 1px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted-2); font-size: 9px; }
.metric-card small b { color: var(--ink); }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.span-seven { grid-column: span 7; }
.span-five { grid-column: span 5; }
.span-two { grid-column: span 2; }
.panel { background: var(--surface); border: 1px solid rgba(230,229,237,.92); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-header.compact { margin-bottom: 14px; }
.panel-header h3 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.03em; }
.panel-kicker, .section-kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: var(--purple); font-weight: 800; }
.accent-panel { background: linear-gradient(145deg, #f0edff, #fff 74%); }
.accent-panel h3 { margin: 7px 0 18px; font-size: 19px; }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.flow-list li { display: flex; align-items: center; gap: 11px; }
.flow-list li > b { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: white; color: var(--purple); box-shadow: 0 6px 15px rgba(80,65,160,.08); font-size: 10px; }
.flow-list strong, .flow-list small { display: block; }
.flow-list strong { font-size: 11px; }
.flow-list small { color: var(--muted); margin-top: 2px; font-size: 9px; }

.timeline-list, .conversation-mini-list { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.68); }
.timeline-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--purple-soft); }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-item span { font-size: 9px; color: var(--muted); margin-top: 4px; }
.date-block { text-align: right; min-width: 50px; }
.date-block b { display: block; font-size: 11px; }
.date-block small { color: var(--muted); font-size: 9px; }
.conversation-mini { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.conversation-mini:last-child { border: 0; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #ede8ff, #ffe8ef); display: grid; place-items: center; color: var(--purple); font-size: 11px; font-weight: 850; flex: none; }
.conversation-mini > div { min-width: 0; flex: 1; }
.conversation-mini strong, .conversation-mini span { display: block; }
.conversation-mini strong { font-size: 11px; }
.conversation-mini span { color: var(--muted); font-size: 9px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { min-width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; background: var(--purple); color: white; font-size: 9px; }
.signal-placeholder, .empty-state-compact { min-height: 120px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 11px; }
.signal-content p { margin: 0 0 15px; font-size: 12px; color: #4d4c58; line-height: 1.55; }
.sentiment-line { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 10px; }
.sentiment-track { height: 7px; background: #eeeef3; border-radius: 99px; overflow: hidden; }
.sentiment-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #a26ee4); border-radius: inherit; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 7px 0 25px; }
.section-heading h2 { margin: 5px 0 7px; font-size: 29px; letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-actions { display: flex; gap: 9px; }
.scheduler-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.composer-panel { padding: 25px; }
.preview-panel { position: sticky; top: 117px; }
.soft-chip { border-radius: 99px; background: var(--surface-muted); color: var(--muted); font-size: 9px; font-weight: 700; padding: 6px 9px; }
.upload-dropzone { min-height: 150px; border: 1.5px dashed #cecbdc; background: #faf9fd; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; transition: .18s ease; outline: none; }
.upload-dropzone:hover, .upload-dropzone.is-dragging, .upload-dropzone:focus-visible { border-color: var(--purple); background: #f7f4ff; box-shadow: 0 0 0 4px rgba(111,92,231,.08); }
.upload-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); margin-bottom: 10px; }
.upload-icon svg { width: 20px; fill: currentColor; }
.upload-dropzone strong { font-size: 12px; }
.upload-dropzone span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.url-adder { display: grid; grid-template-columns: minmax(0,1fr) 90px auto; gap: 8px; margin: 12px 0; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--ink); outline: none; transition: .18s ease; }
input, select { height: 41px; padding: 0 12px; }
textarea { resize: vertical; padding: 12px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(111, 92, 231, .08); }
input::placeholder, textarea::placeholder { color: #aaa8b6; }
.field-label { display: flex; justify-content: space-between; gap: 10px; margin: 17px 0 7px; font-size: 10px; font-weight: 750; }
.field-label span { color: var(--muted); font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.field-group { display: grid; gap: 6px; }
.field-group > span { font-size: 10px; color: #555461; font-weight: 700; }
.field-group.grow { flex: 1; }
.draft-media-list { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0; }
.draft-media-item { position: relative; flex: 0 0 82px; height: 82px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); border: 1px solid var(--line); }
.draft-media-item img, .draft-media-item video { width: 100%; height: 100%; object-fit: cover; }
.draft-media-item button { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(20,20,26,.7); color: white; cursor: pointer; font-size: 11px; }
.draft-media-item em { position: absolute; left: 5px; bottom: 5px; font-style: normal; font-size: 8px; background: rgba(20,20,26,.72); color: white; border-radius: 99px; padding: 3px 5px; text-transform: uppercase; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.composer-actions > div { display: flex; gap: 8px; }
.helper-text { color: var(--muted); font-size: 9px; line-height: 1.55; margin: 13px 0 0; }
.instagram-preview { max-width: 345px; margin: 0 auto; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: white; box-shadow: 0 16px 35px rgba(41, 35, 75, .08); }
.preview-head { height: 58px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.preview-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.preview-head div { flex: 1; }
.preview-head strong, .preview-head small { display: block; }
.preview-head strong { font-size: 10px; }
.preview-head small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.preview-head > b { font-size: 11px; letter-spacing: 1px; }
.preview-media { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #efedf7, #faf9fd); color: var(--muted); font-size: 10px; }
.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: cover; }
.preview-actions { display: flex; gap: 12px; padding: 12px 13px 5px; font-size: 20px; line-height: 1; }
.preview-actions .bookmark { margin-left: auto; }
.instagram-preview p { padding: 0 13px; font-size: 9px; line-height: 1.45; margin: 6px 0; }
.preview-time { display: block; padding: 3px 13px 12px; color: var(--muted); font-size: 7px; }
.queue-panel { margin-top: 20px; }
.legend { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.scheduled { background: var(--purple); }.dot.draft { background: #a4a2ad; }.dot.failed { background: var(--red); }
.post-queue { display: grid; gap: 9px; }
.queue-row { display: grid; grid-template-columns: 54px minmax(0,1fr) 130px 105px auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(255,255,255,.7); }
.queue-thumb { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; background: var(--surface-muted); display: grid; place-items: center; color: var(--muted); font-size: 10px; overflow: hidden; }
.queue-thumb img, .queue-thumb video { width: 100%; height: 100%; object-fit: cover; }
.queue-copy { min-width: 0; }
.queue-copy strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-copy span { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.queue-date strong, .queue-date span { display: block; }
.queue-date strong { font-size: 10px; }.queue-date span { font-size: 8px; color: var(--muted); margin-top: 3px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; height: 25px; padding: 0 9px; border-radius: 99px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-pill.scheduled { background: var(--purple-soft); color: var(--purple); }
.status-pill.draft { background: #f0f0f3; color: #777582; }
.status-pill.published { background: #e7f7f1; color: var(--green); }
.status-pill.failed { background: #fff0f1; color: var(--red); }
.status-pill.publishing { background: #fff3e8; color: var(--orange); }
.queue-actions { display: flex; justify-content: flex-end; gap: 5px; }
.queue-actions button { border: 1px solid var(--line); background: white; border-radius: 8px; height: 29px; padding: 0 8px; font-size: 8px; cursor: pointer; }
.queue-error { color: var(--red) !important; }

.toolbar-heading { align-items: center; }
.comments-toolbar { display: flex; align-items: flex-end; gap: 18px; padding: 15px 18px; margin-bottom: 18px; }
.comments-post-meta { min-width: 250px; display: flex; align-items: center; gap: 10px; }
.comments-post-meta img { width: 45px; height: 45px; border-radius: 10px; object-fit: cover; background: var(--surface-muted); }
.comments-post-meta div { min-width: 0; }
.comments-post-meta strong, .comments-post-meta span { display: block; }
.comments-post-meta strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comments-post-meta span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.comments-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 20px; align-items: start; }
.comments-list { display: grid; gap: 2px; }
.comment-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; padding: 13px 3px; border-bottom: 1px solid var(--line); }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #f0edff, #ffeef4); color: var(--purple); font-size: 10px; font-weight: 850; }
.comment-copy strong { display: inline; font-size: 10px; }
.comment-copy p { display: inline; margin: 0 0 0 5px; font-size: 10px; color: #52515d; line-height: 1.5; }
.comment-meta { display: flex; gap: 10px; margin-top: 5px; color: var(--muted); font-size: 8px; }
.comment-likes { color: var(--muted); font-size: 8px; white-space: nowrap; }
.sticky-panel { position: sticky; top: 117px; }
.summary-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.summary-empty.compact-summary { min-height: 340px; }
.summary-empty strong { color: var(--ink); font-size: 12px; margin: 11px 0 3px; }
.summary-empty p { max-width: 240px; font-size: 10px; line-height: 1.5; margin: 0; }
.summary-orb { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--purple), var(--pink)); box-shadow: 0 10px 25px rgba(111, 92, 231, .24); }
.summary-content > p { color: #4f4e5a; font-size: 11px; line-height: 1.6; margin: 0 0 18px; }
.summary-section { margin-top: 18px; }
.summary-section h4 { margin: 0 0 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sentiment-bars { display: grid; gap: 8px; }
.sentiment-row { display: grid; grid-template-columns: 51px minmax(0,1fr) 34px; align-items: center; gap: 8px; font-size: 9px; }
.sentiment-row .bar { height: 7px; background: #eeeef3; border-radius: 99px; overflow: hidden; }
.sentiment-row .bar i { display: block; height: 100%; border-radius: inherit; }
.sentiment-row.positive i { background: var(--green); }.sentiment-row.neutral i { background: #a6a4af; }.sentiment-row.negative i { background: var(--red); }
.topic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-chip { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 8px; font-size: 8px; color: #555461; }
.summary-list { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 9px; line-height: 1.45; color: #555461; }
.urgent-card { border: 1px solid #f5ced1; background: #fff6f6; border-radius: 10px; padding: 9px; font-size: 9px; color: #915056; margin-bottom: 6px; }

.inbox-heading { margin-bottom: 20px; }
.inbox-shell { padding: 0; min-height: 650px; display: grid; grid-template-columns: 285px minmax(360px, 1fr) 330px; overflow: hidden; }
.conversation-column, .inbox-summary-column { background: #fbfbfd; }
.conversation-column { border-right: 1px solid var(--line); }
.inbox-summary-column { border-left: 1px solid var(--line); padding: 20px; }
.inbox-search { display: flex; align-items: center; gap: 8px; margin: 15px; padding: 0 10px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.inbox-search svg { width: 16px; fill: var(--muted); }
.inbox-search input { border: 0; height: auto; padding: 0; box-shadow: none !important; font-size: 10px; background: transparent; }
.conversation-list { overflow-y: auto; max-height: 590px; }
.conversation-item { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 15px; text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item.is-active { background: white; }
.conversation-item.is-active { box-shadow: inset 3px 0 var(--purple); }
.conversation-item .avatar-circle { width: 40px; height: 40px; }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 10px; }.conversation-copy span { font-size: 9px; color: var(--muted); margin-top: 4px; }
.conversation-side { text-align: right; display: grid; justify-items: end; gap: 6px; }
.conversation-side time { color: var(--muted); font-size: 8px; }
.message-column { display: grid; grid-template-rows: 68px minmax(0,1fr) auto; min-width: 0; background: white; }
.message-header { border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.message-header.empty { justify-content: center; color: var(--muted); font-size: 10px; }
.message-header .avatar-circle { width: 39px; height: 39px; }
.message-header strong, .message-header span { display: block; }
.message-header strong { font-size: 11px; }.message-header span { color: var(--muted); font-size: 8px; margin-top: 3px; }
.message-list { padding: 22px; overflow-y: auto; max-height: 515px; background: radial-gradient(circle at 50% 0, rgba(111,92,231,.04), transparent 35%), white; }
.message-row { display: flex; margin-bottom: 10px; }
.message-row.outbound { justify-content: flex-end; }
.message-bubble { max-width: 72%; border-radius: 14px 14px 14px 4px; background: #f0eff5; padding: 10px 12px; font-size: 10px; line-height: 1.5; color: #4e4d59; }
.message-row.outbound .message-bubble { border-radius: 14px 14px 4px 14px; background: var(--purple); color: white; }
.message-bubble time { display: block; margin-top: 5px; font-size: 7px; opacity: .62; text-align: right; }
.reply-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border-top: 1px solid var(--line); padding: 12px; background: white; align-items: end; }
.reply-form textarea { min-height: 42px; max-height: 120px; resize: none; font-size: 10px; }
.reply-form.is-disabled { opacity: .65; }
.inbox-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.inbox-empty > span { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 20px; }
.inbox-empty strong { color: var(--ink); font-size: 12px; margin: 11px 0 4px; }
.inbox-empty p { font-size: 9px; margin: 0; }
.summary-value { padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-value:last-child { border: 0; }
.summary-value span, .summary-value strong { display: block; }
.summary-value span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.summary-value strong { font-size: 10px; line-height: 1.5; margin-top: 5px; }
.suggested-reply { margin-top: 13px; padding: 12px; border-radius: 12px; background: var(--purple-soft); }
.suggested-reply span { display: block; font-size: 8px; color: var(--purple); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.suggested-reply p { margin: 6px 0 10px; font-size: 9px; line-height: 1.5; }
.suggested-reply button { width: 100%; border: 0; height: 30px; border-radius: 8px; background: white; color: var(--purple); font-size: 8px; font-weight: 800; cursor: pointer; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-account-details { min-height: 110px; display: flex; align-items: center; gap: 14px; }
.settings-account-details img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; background: var(--purple-soft); }
.settings-account-details strong, .settings-account-details span { display: block; }
.settings-account-details strong { font-size: 15px; }.settings-account-details span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.status-badge { border-radius: 99px; padding: 6px 10px; background: #f0f0f3; color: var(--muted); font-size: 9px; font-weight: 800; }
.status-badge.connected { background: #e7f7f1; color: var(--green); }.status-badge.demo { background: #fff1e8; color: var(--orange); }
.settings-actions { display: flex; gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.configuration-checks { display: grid; gap: 9px; }
.config-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: var(--surface-muted); }
.config-icon { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; background: white; }
.config-row strong, .config-row span { display: block; }
.config-row strong { font-size: 10px; }.config-row span { color: var(--muted); font-size: 8px; margin-top: 2px; }
.config-row > b { font-size: 8px; text-transform: uppercase; color: var(--green); }.config-row > b.missing { color: var(--orange); }
.callback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.callback-grid label > span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 7px; }
.callback-grid label > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); overflow: hidden; }
.callback-grid code { flex: 1; padding: 12px; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { align-self: stretch; border: 0; border-left: 1px solid var(--line); background: white; color: var(--purple); font-size: 8px; font-weight: 800; padding: 0 12px; cursor: pointer; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #f0edff, #fff); }
.demo-controls h3 { margin: 5px 0 5px; }.demo-controls p { margin: 0; color: var(--muted); font-size: 10px; }

.login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(25, 22, 40, .55); backdrop-filter: blur(12px); }
.login-card { width: min(400px, 100%); background: white; border-radius: 24px; padding: 35px; box-shadow: 0 30px 90px rgba(20, 17, 38, .3); }
.login-card h2 { margin: 7px 0; font-size: 27px; letter-spacing: -.05em; }.login-card p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 0 20px; }.login-card .button { width: 100%; margin-top: 16px; }.login-card code { font-size: 9px; }.login-card small { display: block; color: var(--red); min-height: 16px; margin-top: 8px; font-size: 9px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast { background: #23202e; color: white; border-radius: 13px; padding: 12px 14px; box-shadow: var(--shadow-md); display: flex; align-items: flex-start; gap: 10px; animation: toast-in .2s ease both; }
.toast.is-error { background: #8c3942; }.toast.is-success { background: #236e58; }
.toast span { flex: 1; font-size: 10px; line-height: 1.45; }.toast button { border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.mobile-backdrop { display: none; }

.empty-card { min-height: 140px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 13px; padding: 20px; }
.empty-card strong { color: var(--ink); display: block; font-size: 11px; margin-bottom: 4px; }.empty-card span { font-size: 9px; }
.loading-inline { opacity: .55; pointer-events: none; }

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr .75fr; }
  .inbox-shell { grid-template-columns: 260px minmax(350px,1fr); }
  .inbox-summary-column { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .summary-empty.compact-summary { min-height: 180px; }
  .settings-grid { grid-template-columns: 1fr; }.settings-grid .span-two { grid-column: auto; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 224px; }
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(20,17,38,.15); }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(20,18,32,.28); backdrop-filter: blur(3px); }
  body.mobile-nav-open .mobile-backdrop { display: block; }
  .mobile-menu-button { display: inline-grid !important; }
  .topbar { padding: 0 22px; height: 80px; }
  .content { padding: 24px 22px 50px; }
  .hero-card { grid-template-columns: 1fr; min-height: 520px; padding: 38px; }
  .hero-visual { min-height: 250px; }
  .hero-phone { right: 25%; top: 12px; }
  .floating-card-post { left: 8%; }.floating-card-ai { right: 4%; }
  .span-seven, .span-five { grid-column: span 12; }
  .scheduler-layout, .comments-layout { grid-template-columns: 1fr; }
  .preview-panel, .sticky-panel { position: static; }
  .inbox-shell { grid-template-columns: 235px minmax(330px,1fr); overflow-x: auto; }
  .queue-row { grid-template-columns: 54px minmax(0,1fr) auto; }
  .queue-date { display: none; }.queue-row > .status-pill { display: none; }
}

@media (max-width: 640px) {
  .topbar-actions .connection-chip { display: none; }
  .topbar h1 { font-size: 19px; }.eyebrow { font-size: 8px; }
  .top-connect-button { display: none; }
  .content { padding: 18px 14px 45px; }
  .hero-card { min-height: 490px; padding: 28px 23px; }
  .hero-copy h2 { font-size: 36px; }
  .hero-phone { width: 170px; height: 275px; right: 18%; }
  .floating-card { transform: scale(.88); }.floating-card-post { left: -4%; }.floating-card-ai { right: -9%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 13px; gap: 9px; }.metric-icon { width: 34px; height: 34px; }.metric-card strong { font-size: 21px; }
  .dashboard-grid { gap: 12px; }.panel { padding: 17px; }
  .section-heading { display: block; }.section-heading .section-actions, .section-heading > button { margin-top: 14px; }
  .section-actions { flex-wrap: wrap; }
  .field-grid { grid-template-columns: 1fr; }.url-adder { grid-template-columns: 1fr 85px; }.url-adder button { grid-column: 1 / -1; }
  .composer-actions { align-items: stretch; flex-direction: column; }.composer-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .comments-toolbar { align-items: stretch; flex-direction: column; }.comments-post-meta { min-width: 0; }
  .inbox-shell { display: block; min-height: 0; }
  .conversation-column { border-right: 0; border-bottom: 1px solid var(--line); }.conversation-list { max-height: 280px; }
  .message-column { min-height: 560px; }.inbox-summary-column { display: block; }
  .callback-grid { grid-template-columns: 1fr; }.demo-controls { align-items: flex-start; flex-direction: column; }
  .legend { display: none; }
  .queue-row { grid-template-columns: 45px minmax(0,1fr); }.queue-thumb { width: 45px; height: 45px; }.queue-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
