/*
 * Company Context product page (template-parts/product-pages/company-context.php).
 * Hand-built, not generated. Sections and cards come from drive.css and
 * feature-pages.css; this file adds the live demos (assets/js/product/company-context.js).
 */

.vscc-preview { padding: 10px; }

.vscc-demo { width: 100%; height: 620px; text-align: left; }
.vscc-demo--tag { height: 600px; }
.vscc-demo--work { height: 560px; }
.vscc-preview .vscc-demo { max-width: 860px; margin: 0 auto; }

.vscc-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #ebeaf6; border-radius: .9rem; background: #fff; box-shadow: 0 12px 35px rgba(69, 58, 130, .06); }
.vscc-panel__head { display: flex; flex: 0 0 auto; align-items: center; gap: .625rem; padding: .875rem 1.25rem; border-bottom: 1px solid #f0f1f5; }
.vscc-panel__head strong { color: var(--vsd-ink); font-size: 1rem; font-weight: 700; }
.vscc-panel__meta { margin-left: auto; color: var(--vsd-muted); font-size: .8125rem; }

.vscc-thread { display: flex; flex: 1; flex-direction: column; gap: 1rem; min-height: 0; padding: 1.25rem; overflow: hidden; }
.vscc-thread > :first-child { margin-top: auto; }
.vscc-reply__body > .vscc-reply__name + * { margin-top: .125rem; }

.vscc-welcome { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: auto 0; text-align: center; }
.vscc-welcome__title { margin: 0; color: var(--vsd-ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.vscc-welcome__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; width: 100%; text-align: left; }
.vscc-prompt { display: flex; gap: .625rem; padding: .875rem; border: 1px solid #eef0f4; border-radius: 12px; background: #fcfcfe; }
.vscc-prompt svg { flex: 0 0 auto; width: 18px; height: 18px; color: #5a4ae2; }
.vscc-prompt b { display: block; color: var(--vsd-ink); font-size: .875rem; font-weight: 600; }
.vscc-prompt small { display: block; margin-top: .125rem; color: var(--vsd-muted); font-size: .75rem; line-height: 1.4; }

.vscc-bubble { flex: 0 0 auto; width: fit-content; max-width: 85%; margin-left: auto; padding: .625rem .875rem; border-radius: 1rem 1rem .25rem 1rem; background: var(--vsd-tint); color: var(--vsd-ink); font-size: .9375rem; font-weight: 500; line-height: 1.5; animation: vscc-rise .3s ease both; }

.vscc-reply { display: flex; flex: 0 0 auto; gap: .75rem; }
.vscc-reply__body { flex: 1; min-width: 0; }
.vscc-reply__body > * + * { margin-top: .75rem; }
.vscc-reply__name { display: block; color: var(--vsd-ink); font-size: .875rem; font-weight: 600; }
.vscc-reply__body p, .vscc-reply__body li { margin: 0; color: var(--vsd-text); font-size: .9375rem; line-height: 1.6; }
.vscc-reply__body b { color: var(--vsd-ink); font-weight: 600; }
.vscc-reply__body ul { display: grid; gap: .375rem; margin-bottom: 0; padding-left: 1.125rem; list-style: disc; }

.vscc-rise { animation: vscc-rise .4s ease both; }
.vscc-rise--2 { animation-delay: .25s; }
.vscc-rise--3 { animation-delay: .5s; }
.vscc-rise--4 { animation-delay: .75s; }
@keyframes vscc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.vscc-thinking { display: flex; flex: 0 0 auto; align-items: center; gap: .625rem; color: var(--vsd-muted); font-size: .875rem; animation: vscc-rise .3s ease both; }
.vscc-dots { display: inline-flex; gap: 4px; }
.vscc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #a5a0f0; animation: vscc-dot 1.1s ease-in-out infinite; }
.vscc-dots i:nth-child(2) { animation-delay: .15s; }
.vscc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vscc-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.vscc-chart { padding: .875rem 1rem; border: 1px solid #eef0f4; border-radius: 12px; background: #fff; }
.vscc-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .625rem; }
.vscc-chart__head b { font-size: .875rem; }
.vscc-chart__head span { color: var(--vsd-muted); font-size: .75rem; }
.vscc-chart__bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .625rem; }
.vscc-chart__col { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; }
.vscc-chart__col small { color: var(--vsd-ink); font-size: .6875rem; font-weight: 600; }
.vscc-chart__col span { max-width: 100%; overflow: hidden; color: var(--vsd-muted); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }
.vscc-chart__track { display: flex; align-items: flex-end; width: 100%; height: 88px; }
.vscc-chart__track i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: vscc-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vscc-grow { from { transform: scaleY(0); } to { transform: none; } }

.vscc-sources { display: flex; flex-wrap: wrap; gap: .375rem; }
.vscc-chip { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border: 1px solid var(--vsd-line); border-radius: 8px; color: var(--vsd-text); font-size: .75rem; font-weight: 600; }
.vscc-chip svg { width: 13px; height: 13px; }

.vscc-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #eef0f4; }
.vscc-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #ec4899); transform-origin: left; animation: vscc-wipe .9s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vscc-wipe { from { transform: scaleX(0); } to { transform: none; } }

.vscc-offer { padding: 1rem; border: 1px solid #e0dcfb; border-radius: 12px; background: #fbfaff; }
.vscc-offer__title { display: flex; align-items: center; gap: .625rem; margin: 0 0 .75rem !important; color: var(--vsd-ink) !important; font-weight: 600; }
.vscc-offer__tile, .vscc-outcome__tile { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #ece9ff; color: #5a4ae2; }
.vscc-offer__tile svg, .vscc-outcome__tile svg { width: 16px; height: 16px; }
.vscc-offer__lines { display: grid; gap: .375rem; margin: 0 0 .875rem; }
.vscc-offer__lines div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; font-size: .8125rem; line-height: 1.5; }
.vscc-offer__lines dt { color: var(--vsd-muted); }
.vscc-offer__lines dd { margin: 0; color: var(--vsd-ink); }
.vscc-offer__actions { display: flex; gap: .5rem; }
.vscc-offer__actions button { padding: .5rem .875rem; border: 1px solid var(--vsd-line); border-radius: 10px; background: #fff; color: var(--vsd-ink); font-size: .8125rem; font-weight: 600; cursor: pointer; transition: transform .15s ease; }
.vscc-offer__actions .vscc-offer__confirm { border-color: transparent; background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; }
.vscc-offer__actions .is-pressed { transform: scale(.94); }
.vscc-outcome { display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; border: 1px solid #e5e7eb; border-radius: 12px; color: var(--vsd-ink); font-size: .875rem; font-weight: 600; animation: vscc-rise .3s ease both; }
.vscc-outcome.is-done { border-color: #bfeeda; background: #f0fcf7; }
.vscc-outcome.is-done .vscc-outcome__tile { background: #d7f6e8; color: #0b9d6b; }
.vscc-outcome.is-dismissed { color: var(--vsd-muted); font-weight: 500; }
.vscc-outcome.is-dismissed .vscc-outcome__tile { display: none; }

.vscc-msg { display: flex; flex: 0 0 auto; gap: .75rem; animation: vscc-rise .3s ease both; }
.vscc-avatar { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border-radius: .7rem; color: #fff; font-size: .75rem; font-weight: 700; }
.vscc-msg b { color: var(--vsd-ink); font-size: .875rem; font-weight: 600; }
.vscc-msg p { margin: .125rem 0 0; color: var(--vsd-text); font-size: .9375rem; line-height: 1.5; }
.vscc-msg em, .vscc-composer__draft em { color: var(--vsd-primary-ink); font-style: normal; font-weight: 600; }

.vscc-composer { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; margin: 0 1.25rem 1.25rem; padding: .625rem .625rem .625rem 1rem; border: 1px solid var(--vsd-line); border-radius: 14px; background: #fff; }
.vscc-composer__draft { flex: 1; min-width: 0; min-height: 1.5rem; overflow: hidden; color: var(--vsd-ink); font-size: .9375rem; line-height: 1.5; white-space: pre; }
.vscc-composer__hint { color: var(--vsd-muted); }
.vscc-composer__icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--vsd-muted); }
.vscc-composer__send { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f1f2f6; color: var(--vsd-muted); transition: background .2s ease, color .2s ease; }
.vscc-composer__send svg { width: 17px; height: 17px; }
.vscc-composer__send.is-ready { background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; }

.vscc-mentions { position: absolute; right: 0; bottom: calc(100% + 6px); left: 0; display: grid; max-width: 16rem; padding: .375rem; border: 1px solid var(--vsd-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); animation: vscc-rise .2s ease both; }
.vscc-mentions div { padding: .5rem .625rem; border-radius: 8px; color: var(--vsd-text); font-size: .875rem; font-weight: 500; }
.vscc-mentions .is-active { background: var(--vsd-tint); color: var(--vsd-primary-ink); font-weight: 600; }

.vscc-asks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vscc .vsd-access li:last-child i { background: #ece9ff; color: #5a4ae2; }

.vscc-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .625rem; margin: 2rem 0 0; color: var(--vsd-text); font-size: 1rem; text-align: center; }
.vscc-soon b { padding: .25rem .625rem; border-radius: 999px; background: var(--vsd-tint); color: var(--vsd-primary-ink); font-size: .75rem; font-weight: 700; }

@media (max-width: 1023px) { .vscc-asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .vscc-asks { grid-template-columns: 1fr; }
    .vscc-demo { height: 600px; }
    .vscc-thread { padding: 1rem; }
    .vscc-composer { margin: 0 1rem 1rem; }
    .vscc-welcome__cards { grid-template-columns: 1fr; }
    .vscc-prompt { padding: .625rem .75rem; }
    .vscc-chart__bars { gap: .375rem; }
    .vscc-chart__track { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .vscc-demo * { animation: none !important; transition: none !important; }
}
