/* Any Other Business — nexvork.ai (prefix cb-) */

.cb-hero { overflow: hidden; }
.cb-hero .container { z-index: 1; }
.cb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cb-hero-grid > *, .cb-pain .split > *, .cb-wa .split > *, .cb-reports .split > *, .cb-needs .split > * { min-width: 0; }
.cb-hero-title { max-width: 18ch; font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.cb-hero-actions { margin-top: 32px; }
.cb-hero-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.cb-hero-links .nx-link { font-size: 0.88rem; }
.cb-orb-1 { width: 520px; height: 520px; top: -160px; left: -140px; }
.cb-orb-2 { width: 600px; height: 600px; top: 8%; right: -220px; }

.cb-hero-visual { position: relative; }
.cb-hero-win { max-width: min(100%, 600px); margin-left: auto; z-index: 1; }
.cb-tabs { display: flex; width: 100%; gap: 4px; margin-bottom: 14px; }
.cb-tabs .nx-tab { flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cb-win-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.cb-win-tag strong { font-weight: 600; color: inherit; letter-spacing: 0.06em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.cb-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 10px; }
.cb-stage { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
html[data-theme="light"] .cb-stage { border-color: var(--line); background: var(--bg-2); }
.cb-stage b { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; color: var(--nx-blue-2); }
.cb-stage:not(:last-child)::after { content: "›"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--subtle); font-size: 0.8rem; }
.cb-stage.is-on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.cb-stage.is-on b { color: #fff; }

.cb-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-md); white-space: nowrap; z-index: 3; }
.cb-chip svg { color: var(--nx-blue-2); flex-shrink: 0; }
.cb-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-wa); box-shadow: 0 0 10px var(--nx-wa); flex-shrink: 0; }
.cb-chip-dot-hot { background: var(--nx-rose); box-shadow: 0 0 10px var(--nx-rose); }
.cb-chip-1 { top: -18px; left: -10px; }
.cb-chip-2 { bottom: -16px; right: 16px; }
.cb-chip-3 { bottom: 30px; left: 0; right: 0; width: max-content; max-width: calc(100% - 16px); margin: 0 auto; white-space: normal; text-align: center; }

.cb-seg-grid .nx-card p { font-size: 0.93rem; }
.cb-also { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.cb-also-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); white-space: nowrap; }
.cb-also .nx-pills { flex: 1; min-width: 0; }

.cb-pains { display: grid; gap: 16px; }
.cb-pains li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.cb-pain-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--nx-blue-2); padding-top: 4px; }
html[data-theme="light"] .cb-pain-num { color: var(--nx-purple); }
.cb-pains strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.cb-pains p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.cb-before { position: relative; padding: 20px 0 40px; }
.cb-before-phone { width: 320px; }
.cb-sender { display: block; font-size: 0.64rem; font-weight: 700; color: var(--nx-amber); margin-bottom: 2px; }
.cb-before .nx-msg-in:nth-child(2) .cb-sender { color: var(--nx-cyan); }
.cb-before .nx-msg-in:nth-child(3) .cb-sender { color: var(--nx-purple-2); }
.cb-before .nx-msg-in:nth-child(4) .cb-sender { color: var(--nx-emerald); }
html[data-theme="light"] .cb-sender { color: var(--nx-purple); }
html[data-theme="light"] .cb-before .nx-msg-in:nth-child(2) .cb-sender { color: var(--nx-blue-3); }
html[data-theme="light"] .cb-before .nx-msg-in:nth-child(3) .cb-sender { color: var(--nx-teal); }
html[data-theme="light"] .cb-before .nx-msg-in:nth-child(4) .cb-sender { color: var(--nx-emerald); }
.cb-before .cb-chip-3 { bottom: 8px; }

.cb-cfg-bar { display: flex; justify-content: center; margin-bottom: 24px; }
.cb-cfg-tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cb-cfg-tabs .nx-tab { white-space: nowrap; }
.cb-cfg-win { max-width: 1040px; margin: 0 auto; }
.cb-cfg-win .cb-win-tag { margin-bottom: 14px; }
.cb-cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cb-cfg-panel { min-width: 0; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
html[data-theme="light"] .cb-cfg-panel { background: var(--bg-2); border-color: var(--line); }
.cb-cfg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; }
.cb-cfg-head .nx-tag, .cb-fields .nx-tag, .cb-tpl .nx-tag { flex-shrink: 0; font-size: 0.56rem; padding: 3px 7px; }
.cb-cfg-default { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--subtle); text-decoration: line-through; margin-bottom: 8px; }
.cb-stage-list, .cb-fields, .cb-rules, .cb-tpls { grid-template-columns: minmax(0, 1fr); }
.cb-stage-list li, .cb-fields li, .cb-rule, .cb-tpl { min-width: 0; }
.cb-stage-list { display: grid; gap: 5px; counter-reset: cbst; }
.cb-stage-list li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); font-size: 0.76rem; font-weight: 500; }
html[data-theme="light"] .cb-stage-list li { border-color: var(--line); background: var(--surface-3); }
.cb-stage-list li::before { counter-increment: cbst; content: counter(cbst, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.6rem; color: var(--nx-blue-2); }
html[data-theme="light"] .cb-stage-list li::before { color: var(--nx-purple); }
.cb-stage-list li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; color: var(--subtle); }
.cb-handle { width: 10px; height: 12px; flex-shrink: 0; background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 5px 5px; opacity: 0.35; }
.cb-fields { display: grid; gap: 5px; }
.cb-fields li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.14); font-size: 0.74rem; }
html[data-theme="light"] .cb-fields li { border-color: var(--line-2); }
.cb-fields li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-fields li.is-new { border-style: solid; border-color: rgba(65,143,228,0.45); background: rgba(65,143,228,0.08); }
.cb-rules { display: grid; gap: 8px; }
.cb-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
html[data-theme="light"] .cb-rule { background: var(--surface-3); border-color: var(--line); }
.cb-rule .nx-node { padding: 5px 8px; font-size: 0.66rem; border-radius: 7px; gap: 5px; }
.cb-rule .nx-flow-arrow { width: 14px; }
.cb-tpls { display: grid; gap: 5px; }
.cb-tpl { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); font-size: 0.72rem; }
html[data-theme="light"] .cb-tpl { border-color: var(--line); background: var(--surface-3); }
.cb-tpl-main { min-width: 0; }
.cb-tpl code { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--nx-blue-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="light"] .cb-tpl code { color: var(--nx-purple); }
.cb-tpl small { display: block; font-size: 0.62rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-cfg-note { max-width: 640px; margin: 28px auto 0; text-align: center; font-size: 0.93rem; color: var(--muted); }

.cb-bento .nx-card p { font-size: 0.93rem; }
.cb-mini .nx-row { padding: 8px 10px; }
.cb-mini-chat { box-shadow: none; }
.cb-mini-chat .nx-chat-body { padding: 12px; }

.cb-story-win, .cb-story-con { max-width: 560px; }
.cb-story-phone { width: 300px; }
.cb-risk-bars { display: grid; gap: 8px; margin-top: 12px; }
.cb-risk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--muted); }
.cb-risk b { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nx-amber); }
.cb-risk:first-child b { color: var(--nx-rose); }
.cb-draft { padding: 12px; border-radius: 12px; border: 1px solid rgba(130,62,157,0.35); background: var(--grad-soft); }
.cb-draft-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cb-draft p { font-size: 0.8rem; line-height: 1.6; }
.cb-draft-actions { display: flex; gap: 8px; margin-top: 12px; }
.cb-draft-btn { padding: 7px 12px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; border: 1px solid var(--line-2); }
.cb-draft-btn.is-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.cb-call { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); font-size: 0.76rem; line-height: 1.45; }
html[data-theme="light"] .cb-call { border-color: var(--line); background: var(--bg-2); }
.cb-call-ic { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: rgba(16,185,129,0.15); color: var(--nx-emerald); }
.cb-call strong { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-emerald); margin-bottom: 2px; }
.cb-call span { color: var(--muted); }

.cb-wa-visual { position: relative; padding: 20px 0; }
.cb-wa-visual .nx-phone { width: 320px; }

.cb-day .nx-step p { font-size: 0.93rem; }

.cb-rep-win { max-width: 100%; }
.cb-cols { margin-top: 10px; }
.cb-srcs { margin-top: 12px; }
.cb-src { display: grid; grid-template-columns: 80px minmax(0, 1fr) 58px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.74rem; }
html[data-theme="light"] .cb-src { border-color: var(--line); }
.cb-src:last-child { border-bottom: 0; }
.cb-src b { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; text-align: right; color: var(--nx-emerald); }
.cb-src-head { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.cb-src-head span:last-child { text-align: right; }

.cb-needs { margin-top: 24px; padding: clamp(24px, 4vw, 40px); }
.cb-needs .split { gap: clamp(28px, 4vw, 56px); }
.cb-needs .h4 { margin-bottom: 16px; }
.cb-flow { justify-content: center; margin-bottom: 16px; }
.cb-import { display: grid; gap: 6px; }
.cb-import-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.cb-import-row strong { color: var(--text); font-family: var(--font-mono); white-space: nowrap; }
.cb-import-row .cb-ok { color: var(--nx-emerald); }

.cb-rel-card { display: flex; flex-direction: column; }
.cb-rel-card .nx-card-link { margin-top: auto; padding-top: 18px; }
.cb-rel-grid .nx-card p { font-size: 0.92rem; }

@media (max-width: 1100px) {
    .cb-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .cb-hero-title { max-width: none; }
    .cb-hero-win { margin: 0 auto; }
    .cb-chip-1 { left: 0; }
}
@media (max-width: 900px) {
    .cb-story-phone { width: 280px; margin: 0 auto; }
    .cb-before-phone { width: 300px; }
    .cb-before { padding-bottom: 44px; }
    .cb-rep-visual { order: 2; }
}
@media (max-width: 640px) {
    .cb-chip { font-size: 0.7rem; padding: 7px 11px; }
    .cb-chip-1 { top: -14px; }
    .cb-chip-2 { bottom: -14px; right: 6px; }
    .cb-cfg-grid { grid-template-columns: 1fr; }
    .cb-cfg-tabs { display: flex; flex-wrap: wrap; justify-content: center; border-radius: var(--r-lg); overflow: visible; }
    .cb-hero-win .nx-kpis, .cb-rep-win .nx-kpis { grid-template-columns: 1fr 1fr; }
    .cb-wa-visual .nx-phone, .cb-before-phone { width: 280px; }
    .cb-src { grid-template-columns: 70px minmax(0, 1fr) 52px; }
    .cb-also { flex-direction: column; align-items: flex-start; }
    .cb-needs { padding: 22px 18px; }
}
@media (max-width: 400px) {
    .cb-tabs .nx-tab { font-size: 0.66rem; padding: 7px 6px; }
    .cb-stages { gap: 8px 16px; }
    .cb-stage:not(:last-child)::after { right: -12px; }
    .cb-hero-win .nx-kpis, .cb-rep-win .nx-kpis { grid-template-columns: 1fr; }
}
