/* =========================================================
   Product mocks: art-directed, animation-first illustrations of the
   Talki365 mobile app, desktop app and admin portal, plus the hero
   compositions that place them. Colours, type, radii and shadows come
   from the website tokens; the consumer site is light, Partners is dark.
   Motion tokens: --fx-in (entrance), --fx-ease (shared easing).
   ========================================================= */
:root {
  --fx-ease: cubic-bezier(.22,1,.36,1); --fx-in: 900ms;
  --fx-win: rgba(255,255,255,.86); --fx-win-b: rgba(23,32,51,.08); --fx-win-shadow: 0 40px 90px -36px rgba(23,32,51,.45), 0 1px 0 rgba(255,255,255,.9) inset;
  --fx-glass: rgba(255,255,255,.7); --fx-glass-b: rgba(255,255,255,.95);
  --fx-ink: var(--text); --fx-muted: var(--text-2); --fx-faint: var(--text-3); --fx-line: var(--border); --fx-soft: var(--bg-2); --fx-tint: var(--bg-accent);
  --fx-frame: linear-gradient(160deg, #22453F, #081F24); --fx-frame-b: rgba(255,255,255,.22); --fx-frame-shadow: 0 60px 110px -40px rgba(16,35,33,.6), 0 0 0 1px rgba(16,35,33,.06);
  --fx-dark: #102321; --fx-dark-2: #081F24; --fx-dark-glow: rgba(146,207,196,.55);
  --fx-avatar: linear-gradient(135deg, #3D8A82, #24524D); --fx-avatar-ink: #fff;
  --fx-ok: #22C55E; --fx-busy: #F43F5E; --fx-away: #F59E0B; --fx-off: #B6C2D4;
  --fx-rail: var(--bg-2);
}
html[data-theme="partner"] {
  --fx-win: rgba(14,42,48,.78); --fx-win-b: rgba(255,255,255,.12); --fx-win-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.08) inset;
  --fx-glass: rgba(14,42,48,.72); --fx-glass-b: rgba(255,255,255,.14);
  --fx-soft: rgba(255,255,255,.05); --fx-tint: rgba(146,207,196,.1);
  --fx-frame: linear-gradient(160deg, #143840, #05161A); --fx-frame-b: rgba(146,207,196,.3); --fx-frame-shadow: 0 60px 110px -40px rgba(0,0,0,.9), 0 0 60px -20px rgba(146,207,196,.3);
  --fx-dark: #0B272D; --fx-dark-2: #05161A; --fx-dark-glow: rgba(146,207,196,.4);
  --fx-avatar: linear-gradient(135deg, #92CFC4, #3D8A82); --fx-avatar-ink: #081F24;
  --fx-off: #4F6A66; --fx-rail: rgba(255,255,255,.04);
}

/* ---------- Shared bits ---------- */
.pmark { width: 28px; height: 28px; flex: none; }
.fx-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } .fx-ic--sm { width: 16px; height: 16px; }
.fx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-off); flex: none; }
.fx-dot--on { background: var(--fx-ok); box-shadow: 0 0 0 3px rgba(34,197,94,.18); } .fx-dot--busy { background: var(--fx-busy); } .fx-dot--away { background: var(--fx-away); } .fx-dot--off { background: var(--fx-off); }
.fx-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fx-avatar); color: var(--fx-avatar-ink); font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; box-shadow: 0 10px 24px -10px rgba(37,99,235,.6); }
.fx-avatar--xs { width: 30px; height: 30px; font-size: 11px; box-shadow: none; } .fx-avatar--sm { width: 36px; height: 36px; font-size: 12px; box-shadow: none; } .fx-avatar--md { width: 48px; height: 48px; font-size: 16px; } .fx-avatar--lg { width: 88px; height: 88px; font-size: 28px; } .fx-avatar--xl { width: 110px; height: 110px; font-size: 36px; box-shadow: 0 20px 50px -16px rgba(37,99,235,.9); }
.fx-wave { display: flex; align-items: center; gap: 4px; height: 36px; } .fx-wave i { flex: 1; height: 100%; border-radius: 3px; background: var(--primary); opacity: .85; transform: scaleY(.25); transform-origin: center; animation: fxwave 1.6s ease-in-out infinite; }
.fx-wave i:nth-child(2n) { animation-delay: -.3s; } .fx-wave i:nth-child(3n) { animation-delay: -.7s; } .fx-wave i:nth-child(5n) { animation-delay: -1.1s; } .fx-wave i:nth-child(7n) { animation-delay: -.5s; }
@keyframes fxwave { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.fx-wave--lg { height: 54px; gap: 5px; width: 100%; margin: 26px 0 18px; } .fx-wave--lg i { background: #fff; opacity: .9; }
.fx-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--fx-tint); color: var(--fx-ink); font-size: 12px; font-weight: 600; white-space: nowrap; } .fx-pill--sm { padding: 4px 9px; font-size: 11px; }
.fx-eyebrow { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-faint); font-weight: 600; }
.fx-btn { padding: 7px 12px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(var(--a1), .8); }
/* Small fine print, full opacity so it stays readable (contrast). */
.mock__label { font-size: .66rem; }

/* ---------- Mobile app ---------- */
.uc-phone { position: relative; width: 300px; margin-inline: auto; font-family: var(--font); font-size: 13px; line-height: 1.4; color: var(--fx-ink); }
.uc-phone--hero { width: 290px; }
.uc-phone__frame { position: relative; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px; background: var(--fx-frame); border: 1px solid var(--fx-frame-b); box-shadow: var(--fx-frame-shadow); overflow: hidden; isolation: isolate; }
.uc-phone__frame::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.18) 50%, transparent 58%); transform: translateX(-70%); animation: fxshine 14s var(--fx-ease) 1.6s infinite; pointer-events: none; z-index: 4; }
@keyframes fxshine { 0% { transform: translateX(-70%); } 14% { transform: translateX(70%); } 100% { transform: translateX(70%); } }
.uc-phone__island { position: absolute; top: 20px; left: 50%; width: 88px; height: 26px; border-radius: 14px; background: #04060B; translate: -50% 0; z-index: 5; }
.uc-phone__screens { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--fx-dark-2); }
.uc-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 20px 30px; opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); transition: opacity 600ms var(--fx-ease), transform 700ms var(--fx-ease), filter 600ms var(--fx-ease); pointer-events: none; }
.uc-screen.is-active { opacity: 1; transform: none; filter: none; }
.uc-phone__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; } .uc-phone__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background var(--t-med), transform var(--t-med); } .uc-phone__dots i.is-on { background: var(--primary); transform: scale(1.3); }
.fx-screen--dark { color: #fff; background: radial-gradient(130% 60% at 50% -5%, var(--fx-dark-glow), transparent 62%), linear-gradient(180deg, var(--fx-dark), var(--fx-dark-2)); }
.fx-screen--dark .fx-avatar { box-shadow: 0 24px 60px -18px rgba(96,165,250,.9), 0 0 0 6px rgba(255,255,255,.06); }
.fx-caller { margin-top: 18px; } .fx-caller b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .fx-caller span { display: block; margin-top: 6px; font-size: 13px; opacity: .72; }
.fx-rings { position: absolute; top: 118px; left: 50%; width: 110px; height: 110px; translate: -50% 0; pointer-events: none; } .fx-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); opacity: 0; animation: fxring 2.8s var(--fx-ease) infinite; } .fx-rings i:nth-child(2) { animation-delay: .9s; } .fx-rings i:nth-child(3) { animation-delay: 1.8s; }
@keyframes fxring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.fx-screen--incoming .fx-avatar { margin-top: 48px; position: relative; } .fx-screen--incoming .fx-caller { margin-top: 24px; }
.fx-call-actions { margin-top: auto; display: flex; justify-content: center; gap: 48px; width: 100%; }
.fx-cbtn { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; opacity: .9; } .fx-cbtn .fx-ic { width: 68px; height: 68px; padding: 21px; border-radius: 50%; color: #fff; }
.fx-cbtn--decline .fx-ic { background: var(--fx-busy); } .fx-cbtn--answer .fx-ic { background: var(--fx-ok); animation: fxpulse 1.8s var(--fx-ease) infinite; }
@keyframes fxpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 60% { box-shadow: 0 0 0 16px rgba(34,197,94,0); } }
.fx-topchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); } .fx-topchip b { font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }
.fx-topchip--light { background: var(--fx-tint); color: var(--fx-ink); font-weight: 600; }
.fx-screen--active .fx-avatar { margin-top: 26px; }
.fx-controls { display: flex; justify-content: center; gap: 22px; width: 100%; } .fx-controls span { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; opacity: .85; } .fx-controls .fx-ic { width: 56px; height: 56px; padding: 17px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); transition: background var(--t-med), color var(--t-med); } .fx-controls .is-on .fx-ic { background: #fff; color: var(--fx-dark); }
.fx-hangup { margin-top: auto; width: 66px; height: 66px; padding: 20px; border-radius: 50%; background: var(--fx-busy); color: #fff; box-shadow: 0 16px 36px -14px rgba(244,63,94,.9); } .fx-hangup .fx-ic { width: 100%; height: 100%; }
.fx-screen--route { background: linear-gradient(180deg, var(--surface), var(--bg-accent)); color: var(--fx-ink); }
.fx-route { width: 100%; margin-top: 26px; display: flex; flex-direction: column; align-items: center; }
.fx-route__from { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--fx-line); font-weight: 600; box-shadow: var(--shadow); }
.fx-route__line { position: relative; width: 2px; height: 44px; margin: 4px 0; background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 12px); animation: fxflow 1.2s linear infinite; }
.fx-route__line::after { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); translate: -50% -50%; animation: fxtravel 2.2s var(--fx-ease) infinite; }
@keyframes fxflow { to { background-position: 0 12px; } } @keyframes fxtravel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.fx-route__targets { width: 100%; display: flex; flex-direction: column; gap: 8px; } .fx-route__targets li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); text-align: left; animation: fxpop 700ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-route__targets li div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fx-route__targets b { font-size: 13px; font-weight: 600; } .fx-route__targets span { font-size: 11px; color: var(--fx-muted); }
.fx-route__targets li.is-pick { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--a1), .14), var(--shadow); color: var(--fx-ink); } .fx-route__targets li.is-pick .fx-ic { color: var(--primary); }
@keyframes fxpop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.fx-hint { margin-top: auto; font-size: 11.5px; color: var(--fx-muted); line-height: 1.4; }
.uc-screen:not(.is-active) .fx-wave i, .uc-screen:not(.is-active) .fx-rings i, .uc-screen:not(.is-active) .fx-route__line, .uc-screen:not(.is-active) .fx-route__line::after { animation-play-state: paused; }

/* ---------- Desktop app ---------- */
.uc-desk { position: relative; width: 100%; font-family: var(--font); font-size: 12.5px; color: var(--fx-ink); background: var(--fx-win); border: 1px solid var(--fx-win-b); border-radius: 18px; box-shadow: var(--fx-win-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.fx-desk__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--fx-line); font-size: 12px; color: var(--fx-muted); } .fx-desk__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); } .fx-desk__bar span { margin-left: 8px; font-weight: 600; color: var(--primary); } .fx-desk__bar em { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-size: 11.5px; }
.fx-desk__body { display: grid; grid-template-columns: 56px 1fr; min-height: 280px; }
.fx-desk__rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; border-right: 1px solid var(--fx-line); background: var(--fx-rail); } .fx-desk__rail span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--fx-faint); } .fx-desk__rail span.is-on { background: var(--fx-tint); color: var(--primary); }
.fx-desk__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-callcard { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.fx-callcard__who { display: flex; align-items: center; gap: 12px; } .fx-callcard__who div { display: flex; flex-direction: column; min-width: 0; } .fx-callcard__who b { font-size: 15px; font-weight: 600; } .fx-callcard__who span { font-size: 12px; color: var(--fx-muted); } .fx-callcard__who em { font-style: normal; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 600; }
.fx-callcard .fx-wave { height: 28px; }
.fx-callcard__ctls { display: flex; gap: 8px; } .fx-callcard__ctls span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fx-soft); border: 1px solid var(--fx-line); color: var(--fx-ink); } .fx-callcard__ctls .fx-ic { width: 16px; height: 16px; } .fx-callcard__ctls .is-end { margin-left: auto; background: var(--fx-busy); border-color: var(--fx-busy); color: #fff; }
.fx-people { display: flex; flex-direction: column; } .fx-people li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--fx-line); } .fx-people li:first-child { border-top: 0; } .fx-people b { font-weight: 600; } .fx-people .fx-ext { margin-left: auto; font-size: 11.5px; color: var(--fx-faint); font-family: var(--mono); }
.fx-people .fx-dot { animation: fxstate 8.4s var(--fx-ease) infinite; animation-delay: var(--d, 0s); }
@keyframes fxstate { 0%, 40%, 100% { filter: none; } 50%, 90% { filter: saturate(.2) brightness(1.2); } }
.uc-desk--compact .fx-desk__body { min-height: 0; } .uc-desk--compact .fx-people li:nth-child(3) { display: none; }
.uc-phone .mock__label { position: static; transform: none; display: block; width: max-content; margin: 10px auto 0; }
.uc-desk .mock__label { position: absolute; left: 70px; bottom: 10px; transform: none; } .fx-desk__main { padding-bottom: 40px; }

/* ---------- Admin portal ---------- */
.pt { position: relative; display: grid; grid-template-columns: 56px 1fr; aspect-ratio: 16 / 12.5; font-family: var(--font); font-size: 12px; line-height: 1.4; color: var(--fx-ink); background: var(--fx-soft); overflow: hidden; }
.fx-portal__rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: var(--fx-rail); border-right: 1px solid var(--fx-line); } .fx-portal__rail .pmark { width: 26px; height: 26px; margin-bottom: 8px; } .fx-portal__rail span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--fx-faint); } .fx-portal__rail span.is-on { background: var(--fx-tint); color: var(--primary); }
.fx-portal__main { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 34px; min-width: 0; overflow: hidden; }
.fx-portal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .fx-portal__head b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.fx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx-kpi { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; min-width: 0; } .fx-kpi span { font-size: 11px; color: var(--fx-muted); } .fx-kpi b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .fx-kpi small { font-size: 10.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-portal__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.fx-card { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fx-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .fx-card__head b { font-size: 12.5px; font-weight: 600; } .fx-card__head span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fx-muted); }
.fx-spark { width: 100%; height: 100%; min-height: 56px; flex: 1; }
.fx-card--ring { align-items: center; justify-content: center; }
.fx-ring { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 96px; height: 96px; } .fx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); } .fx-ring circle { fill: none; stroke-width: 3.2; } .fx-ring__track { stroke: var(--fx-line); } .fx-ring__val { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p) / 100); animation: fxdraw 1.6s var(--fx-ease) both; }
.fx-ring b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1; } .fx-ring span { font-size: 10.5px; color: var(--fx-muted); }
@keyframes fxdraw { from { stroke-dashoffset: 97.4; } }
.fx-flow { display: flex; align-items: center; gap: 0; } .fx-flow__node { padding: 7px 11px; border-radius: 999px; background: var(--fx-soft); border: 1px solid var(--fx-line); font-size: 11.5px; font-weight: 600; white-space: nowrap; } .fx-flow__node.is-src { background: var(--fx-tint); color: var(--primary); border-color: transparent; }
.fx-flow__link { position: relative; flex: 1; height: 2px; min-width: 18px; background: var(--fx-line); } .fx-flow__link::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); translate: 0 -50%; animation: fxslide 2.7s var(--fx-ease) infinite; animation-delay: var(--d, 0s); }
@keyframes fxslide { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.fx-portal--hier .fx-portal__grid--hier { grid-template-columns: 2fr 1fr; }
.fx-tree { width: 100%; height: 100%; min-height: 150px; } .fx-tree text { font-family: var(--font); font-size: 13.5px; font-weight: 600; fill: var(--fx-ink); } .fx-tree .fx-org__sub { font-size: 11px; font-weight: 500; fill: var(--fx-muted); }
.fx-tree rect { fill: var(--surface); stroke: var(--fx-line); } .fx-org--root rect { fill: var(--fx-tint); stroke: rgba(var(--a1), .4); } .fx-org--root text { fill: var(--primary); }
.fx-tree .fx-org { animation: fxpop 800ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-tree .fx-link { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 160; animation: fxline 1.2s var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-tree .fx-pulse { fill: var(--primary); filter: drop-shadow(0 0 4px var(--primary)); }
@keyframes fxline { from { stroke-dashoffset: 160; } }
.fx-feed li { padding: 7px 0; border-top: 1px solid var(--fx-line); font-size: 11.5px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-feed li:first-child { border-top: 0; color: var(--fx-ink); }
.pt .mock__label { position: absolute; left: 70px; bottom: 8px; transform: none; }
.fx-portal--list { aspect-ratio: 16 / 9.5; } .fx-people--card { gap: 10px; } .fx-people--card li div { flex: 1; } .fx-people--card b { font-size: 13.5px; } .fx-people--card li { padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); animation: fxpop 700ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-people--card li div { display: flex; flex-direction: column; min-width: 0; } .fx-people--card small { font-size: 11px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-people--card .fx-dot { margin-left: auto; }
.frame__body .fx-flow--wide, .frame__body .flow--builder { border: 0; border-radius: 0; box-shadow: none; }
.lm .mock__label { left: auto; right: 12px; bottom: 8px; transform: none; }
/* showcase frames */
.fx-portal__tools { display: flex; align-items: center; gap: 8px; }
.fx-search { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--fx-line); background: var(--surface); color: var(--fx-faint); font-size: 12px; white-space: nowrap; }
.fx-btn { display: inline-flex; align-items: center; gap: 6px; } .fx-btn--ghost { background: var(--surface); color: var(--fx-ink); border: 1px solid var(--fx-line); box-shadow: none; }
.fx-strip { display: flex; gap: 26px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); } .fx-strip div { display: flex; flex-direction: column; } .fx-strip b { font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; } .fx-strip span { font-size: 11px; color: var(--fx-muted); }
.fx-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; flex: 1; min-height: 0; } .fx-split--devices { grid-template-columns: 1.4fr 1fr; } .fx-split--flow { grid-template-columns: 1.9fr 1fr; }
.fx-people--card li.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--a1), .14), var(--shadow); }
.fx-people--card li.is-selected::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); rotate: -45deg; margin-left: 4px; }
.fx-detail { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; animation: fxenter 700ms var(--fx-ease) .5s both; }
.fx-detail__who { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--fx-line); } .fx-detail__who div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .fx-detail__who b { font-size: 14px; font-weight: 600; } .fx-detail__who span:not(.fx-pill):not(.fx-devicon) { font-size: 11.5px; color: var(--fx-muted); }
.fx-detail__title { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-faint); font-weight: 600; margin-top: 4px; }
.fx-detail__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; border-top: 1px solid var(--fx-line); } .fx-detail__row:first-child { border-top: 0; } .fx-detail__row span { color: var(--fx-muted); } .fx-detail__row b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fx-detail__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.fx-toggle { position: relative; display: inline-block; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); transition: background 300ms var(--fx-ease); } .fx-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left 300ms var(--fx-ease); }
.fx-toggle.is-on { animation: fxtoggle 600ms var(--fx-ease) both; animation-delay: var(--d, 1s); } .fx-toggle.is-on::after { animation: fxknob 600ms var(--fx-ease) both; animation-delay: var(--d, 1s); }
@keyframes fxtoggle { to { background: var(--primary); } } @keyframes fxknob { to { left: 16px; } }
.fx-devgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.fx-devcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); animation: fxpop 700ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-devcard .device-art { height: 64px; margin-bottom: 6px; border-radius: 10px; } .fx-devcard b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-devcard small { font-size: 11px; color: var(--fx-muted); } .fx-devcard .fx-pill { align-self: flex-start; margin-top: 4px; }
.fx-pill--ok { color: var(--success); background: var(--success-bg); } .fx-pill--warn { color: var(--warn); background: var(--warn-bg); } .fx-pill--sim { color: var(--primary); animation: fxblink 2.4s var(--fx-ease) infinite; } @keyframes fxblink { 50% { opacity: .55; } }
.fx-progress { display: block; height: 4px; border-radius: 2px; background: var(--fx-soft); overflow: hidden; margin-top: 6px; } .fx-progress i { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; animation: fxfill 3s var(--fx-ease) 1s both; } @keyframes fxfill { to { transform: scaleX(1); } }
.fx-flip { position: relative; display: grid; margin-top: 4px; align-self: flex-start; } .fx-flip em { grid-area: 1 / 1; font-style: normal; } .fx-flip em:nth-child(1) { animation: fxhide 400ms var(--fx-ease) 4.1s both; } .fx-flip em:nth-child(2) { opacity: 0; animation: fxshow 400ms var(--fx-ease) 4.1s both; } @keyframes fxhide { to { opacity: 0; transform: translateY(-4px); } } @keyframes fxshow { to { opacity: 1; } }
.fx-devcard.is-provisioning { border-color: rgba(var(--a1), .4); }
.fx-canvas { position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; display: flex; align-items: center; } .fx-canvas .flow--builder { width: 100%; padding: 28px 20px; background: transparent; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "incoming hours ivr" "sales support accounts" "ring user voicemail"; gap: 26px 18px; } .fx-canvas .node--flow { font-size: 12.5px; padding: 12px 10px; }
.fx-canvas .node--flow { animation: fxlit 6s var(--fx-ease) infinite; animation-delay: var(--d, 0s); } .fx-canvas [data-node="incoming"] { --d: 0s; } .fx-canvas [data-node="hours"] { --d: .8s; } .fx-canvas [data-node="ivr"] { --d: 1.7s; } .fx-canvas [data-node="sales"] { --d: 2.5s; } .fx-canvas [data-node="ring"] { --d: 3.3s; } .fx-canvas [data-node="user"] { --d: 4.2s; } .fx-canvas [data-node="voicemail"] { --d: 5.1s; }
@keyframes fxlit { 0%, 6%, 100% { box-shadow: none; border-color: var(--border); } 2% { box-shadow: 0 0 0 4px rgba(var(--a1), .18), 0 10px 24px -14px rgba(var(--a1), .8); border-color: var(--primary); } }
.fx-wave--sm { height: 22px; gap: 3px; margin: 2px 0 4px; }
.fx-portal__grid--bottom { flex: none; grid-template-columns: 1.6fr 1fr; align-items: start; }
.fx-calls li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--fx-line); font-size: 11.5px; animation: fxpop 600ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-calls li:first-child { border-top: 0; } .fx-calls div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fx-calls b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-calls small { font-size: 10.5px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-calls > li > span { color: var(--fx-faint); font-family: var(--mono); font-size: 10.5px; }
.fx-dir { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--fx-tint); color: var(--primary); } .fx-dir .fx-ic { width: 13px; height: 13px; stroke-width: 2; } .fx-dir--missed { background: var(--danger-bg); color: var(--danger); }
.fx-portal--people, .fx-portal--devices, .fx-portal--flow { aspect-ratio: 16 / 10.5; }
@media (max-width: 640px) { .fx-split { grid-template-columns: 1fr; } .fx-detail { display: none; } .fx-strip { gap: 16px; } .fx-search { display: none; } .fx-portal__grid--bottom { grid-template-columns: 1fr; } .fx-card--calls { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-toggle.is-on { background: var(--primary); animation: none; } .fx-toggle.is-on::after { left: 16px; animation: none; } .fx-progress i { transform: none; animation: none; } .fx-flip em:nth-child(1) { animation: none; opacity: 0; } .fx-flip em:nth-child(2) { animation: none; opacity: 1; } .fx-canvas .node--flow, .fx-devcard, .fx-detail, .fx-calls li, .fx-pill--sim { animation: none; } }
@media (max-width: 640px) { .pt { grid-template-columns: 1fr; aspect-ratio: auto; } .fx-portal__rail { display: none; } .fx-kpis { grid-template-columns: repeat(3, 1fr); } .fx-kpi b { font-size: 18px; } .fx-portal__grid { grid-template-columns: 1fr; } .fx-card--ring { display: none; } .fx-flow { flex-wrap: wrap; gap: 6px; } .fx-flow__link { display: none; } .fx-portal--hier .fx-portal__grid--hier { grid-template-columns: 1fr; } .fx-card--feed { display: none; } }

/* ---------- Consumer hero: phone in front, desktop behind, one signal between them ---------- */
.hero-devices { position: relative; min-height: 620px; }
.hero-devices__cloud { position: absolute; left: 0; top: 10px; z-index: 3; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; text-align: left; animation: fxenter var(--fx-in) var(--fx-ease) .5s both; } .hero-devices__cloud .pmark { color: var(--primary); } .hero-devices__cloud span { font-weight: 600; font-size: .9rem; } .hero-devices__cloud small { display: block; font-weight: 400; font-size: .72rem; color: var(--text-3); }
.hero-devices__desk { position: absolute; left: -10%; right: 24%; top: 90px; z-index: 1; animation: fxenter var(--fx-in) var(--fx-ease) .05s both; }
.hero-devices__phone { position: absolute; right: -1%; bottom: 0; z-index: 2; animation: fxrise 1100ms var(--fx-ease) .35s both; }
.hero-devices__phone .uc-phone { animation: fxambient 14s ease-in-out 2s infinite; }
.hero-devices__card { left: -8%; bottom: 20px; width: 280px; display: flex; align-items: center; gap: 12px; z-index: 3; animation: fxenter var(--fx-in) var(--fx-ease) 1.2s both; } .hero-devices__card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .hero-devices__card strong { font-size: .84rem; white-space: nowrap; } .hero-devices__card span { font-size: .74rem; color: var(--text-3); white-space: nowrap; } .hero-devices__card em { font-style: normal; }
.fx-devicon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fx-tint); color: var(--primary); flex: none; }
.hero-devices .links-svg { z-index: 2; animation: fxfade 1.2s var(--fx-ease) 1s both; }
@keyframes fxenter { from { opacity: 0; transform: translateY(22px); } } @keyframes fxrise { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } } @keyframes fxfade { from { opacity: 0; } } @keyframes fxambient { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 1100px) { .hero-devices { min-height: 620px; } .hero-devices__desk { display: none; } .hero-devices__cloud small { display: none; } .hero-devices__phone { right: 0; } .hero-devices__phone .uc-phone { width: 262px; } .hero-devices__card { z-index: 1; left: -2%; bottom: 60px; width: 240px; } }
@media (max-width: 960px) { .hero-devices { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; } .hero-devices__cloud, .hero-devices__desk, .hero-devices__phone, .hero-devices__card { position: static; width: auto; animation: none; } .hero-devices__phone .uc-phone { animation: none; } .hero-devices__desk, .hero-devices .links-svg { display: none; } .hero-devices__card { display: flex; width: min(300px, 100%); } }

/* ---------- Partner hero: the platform panel, a customer organisation beneath it, services lighting up ---------- */
.hero-platform { position: relative; min-height: 600px; }
.hero-platform__hub { position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; text-align: left; animation: fxenter var(--fx-in) var(--fx-ease) .4s both; } .hero-platform__hub .pmark { color: var(--primary); } .hero-platform__hub span { font-weight: 600; font-size: .9rem; } .hero-platform__hub small { display: none; }
.hero-platform__main { position: absolute; right: 0; top: 36px; width: 72%; z-index: 2; animation: fxenter var(--fx-in) var(--fx-ease) both; }
.hero-platform__tenant { position: absolute; left: -6%; bottom: -16px; width: 52%; z-index: 3; animation: fxenter var(--fx-in) var(--fx-ease) .6s both; }
.hero-platform__chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--fx-glass); border: 1px solid var(--fx-glass-b); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .8rem; white-space: nowrap; animation: fxenter var(--fx-in) var(--fx-ease) both; } .hero-platform__chip > div { display: flex; flex-direction: column; } .hero-platform__chip strong { font-size: .82rem; } .hero-platform__chip span { font-size: .72rem; color: var(--text-3); }
.hero-platform__chip--a { right: 0; top: 0; animation-delay: 1.1s; } .hero-platform__chip--b { right: -4%; bottom: 30px; animation-delay: 1.5s; }
.hero-platform .links-svg { z-index: 2; animation: fxfade 1.2s var(--fx-ease) .9s both; }
.hp-panel { position: relative; padding: 18px 20px 32px; border-radius: 18px; background: var(--fx-win); border: 1px solid var(--fx-win-b); box-shadow: var(--fx-win-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12.5px; color: var(--fx-ink); }
.hp-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .hp-panel__head b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.hp-kpis { display: flex; gap: 18px; margin-bottom: 14px; } .hp-kpis div { display: flex; flex-direction: column; } .hp-kpis b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .hp-kpis span { font-size: 11px; color: var(--fx-muted); }
.hp-orgs { display: flex; flex-direction: column; gap: 8px; } .hp-orgs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--fx-line); animation: fxpop 800ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .hp-orgs b { font-weight: 600; } .hp-orgs .fx-pill--sm { grid-row: span 2; }
.hp-meter { grid-column: 1; height: 4px; border-radius: 2px; background: var(--fx-soft); overflow: hidden; } .hp-meter i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: var(--grad); animation: fxgrow 1.4s var(--fx-ease) both; animation-delay: calc(var(--d, 0s) + .3s); transform-origin: left; }
@keyframes fxgrow { from { transform: scaleX(0); } }
.hp-tenant { padding: 16px 18px 14px; } .hp-tenant .hp-panel__head { margin-bottom: 10px; } .hp-tenant .fx-spark { height: 60px; min-height: 0; } .hp-tenant__row { display: flex; gap: 16px; margin-bottom: 8px; } .hp-tenant__row div { display: flex; flex-direction: column; } .hp-tenant__row b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; } .hp-tenant__row span { font-size: 11px; color: var(--fx-muted); }
.hp-panel.hp-tenant .mock__label { position: static; transform: none; display: inline-block; margin-top: 6px; }
.hp-panel .mock__label { position: absolute; left: auto; right: 14px; bottom: 8px; transform: none; }
@media (max-width: 1100px) { .hero-platform { min-height: 520px; } .hero-platform__chip--b { display: none; } }
@media (max-width: 960px) { .hero-platform { min-height: 0; display: flex; flex-direction: column; gap: 18px; } .hero-platform__hub, .hero-platform__main, .hero-platform__tenant { position: static; width: 100%; animation: none; } .hero-platform__chip, .hero-platform .links-svg { display: none; } .hero-platform__tenant { max-width: 420px; } }

/* ---------- Reduced motion: a clean static composition ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-wave i, .fx-rings i, .fx-cbtn--answer .fx-ic, .fx-route__line, .fx-route__line::after, .fx-route__targets li, .fx-people .fx-dot, .fx-ring__val, .fx-flow__link::after, .fx-tree .fx-org, .fx-tree .fx-link, .hp-orgs li, .hp-meter i, .uc-phone__frame::after,
  .hero-devices__cloud, .hero-devices__desk, .hero-devices__phone, .hero-devices__phone .uc-phone, .hero-devices__card, .hero-devices .links-svg, .hero-platform__hub, .hero-platform__main, .hero-platform__tenant, .hero-platform__chip, .hero-platform .links-svg { animation: none !important; }
  .fx-wave i { transform: scaleY(.6); } .fx-rings { display: none; } .uc-screen { transition: none; }
}

/* ---------- Topic frames ---------- */
.fx-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-split--queue { grid-template-columns: 1.3fr 1fr; } .fx-split--ivr { grid-template-columns: 1.4fr 1fr; } .fx-split--brand { grid-template-columns: 1fr 1.2fr; }
.fx-pill--busy { color: var(--danger); background: var(--danger-bg); } .fx-pill--plain { color: var(--fx-muted); background: var(--fx-soft); }
.fx-queues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fx-queue { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); min-width: 0; } .fx-queue div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .fx-queue b { font-size: 12.5px; font-weight: 600; } .fx-queue small { font-size: 11px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-queue em { font-style: normal; font-weight: 600; color: var(--fx-ink); }
.fx-bars { display: flex; align-items: flex-end; gap: 3px; width: 56px; height: 28px; flex: none; } .fx-bars b { flex: 1; height: 40%; border-radius: 2px 2px 0 0; background: var(--primary); opacity: .75; transition: height 700ms var(--fx-ease); }
.fx-people--agents .fx-pill { margin-left: auto; }
.fx-livecalls li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--fx-line); animation: fxpop 600ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-livecalls li:first-child { border-top: 0; } .fx-livecalls div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fx-livecalls b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-livecalls small { font-size: 10.5px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-livecalls em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--primary); font-weight: 600; }
.fx-wave--xs { width: 40px; height: 16px; gap: 2px; flex: none; }
.fx-vms { display: flex; flex-direction: column; gap: 8px; } .fx-vms li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow-sm); animation: fxpop 700ms var(--fx-ease) both; animation-delay: var(--d, 0s); } .fx-vms li div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .fx-vms b { font-size: 12.5px; font-weight: 600; } .fx-vms small { font-size: 11px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-vms em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--fx-faint); } .fx-vms li.is-playing { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--a1), .14), var(--shadow); }
.fx-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fx-tint); color: var(--primary); flex: none; } .is-playing .fx-play { background: var(--primary); color: var(--on-primary); }
.fx-progress--play { margin-top: 4px; } .fx-progress--play i { animation: fxfill 12s linear infinite; }
.fx-card--greeting { gap: 6px; } .fx-greet { font-size: 12px; line-height: 1.45; color: var(--fx-ink); font-style: italic; }
.fx-opts { display: flex; flex-direction: column; gap: 6px; } .fx-opts li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--fx-line); font-size: 12px; } .fx-opts li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .fx-opts .fx-ic { color: var(--fx-faint); }
.fx-key { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--fx-tint); color: var(--primary); font-weight: 700; font-size: 12px; flex: none; animation: fxkeylit 7.5s var(--fx-ease) infinite; animation-delay: calc(var(--d, 0) * 1.6s); }
@keyframes fxkeylit { 0%, 6%, 100% { background: var(--fx-tint); color: var(--primary); box-shadow: none; } 2% { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 4px rgba(var(--a1), .18); } }
.fx-fallbacks { padding: 2px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--fx-line); } .fx-fallbacks .fx-detail__row { padding: 7px 0; }
.fx-detail--keypad { align-items: center; text-align: center; } .fx-keypad { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; margin: 4px 0 8px; } .fx-keypad span { display: grid; place-items: center; height: 44px; border-radius: 50%; background: var(--fx-soft); border: 1px solid var(--fx-line); font-weight: 600; font-size: 14px; } .fx-keypad__lit { animation: fxkeylit 7.5s var(--fx-ease) infinite; animation-delay: calc(var(--i) * 1.6s); }
.fx-ringwrap { position: relative; flex: none; width: 36px; height: 36px; } .fx-ringwrap i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--primary); opacity: 0; animation: fxring 2.4s var(--fx-ease) infinite; } .fx-ringwrap i:nth-child(3) { animation-delay: .8s; }
.fx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--fx-soft); align-self: flex-start; } .fx-seg span { padding: 4px 9px; border-radius: 7px; font-size: 11px; color: var(--fx-muted); } .fx-seg span.is-on { background: var(--surface); color: var(--fx-ink); font-weight: 600; box-shadow: var(--shadow-sm); }
/* branding */
@property --pb { syntax: '<color>'; inherits: true; initial-value: #24524D; }
.fx-portal--brand { --pb: #24524D; animation: fxbrand 12s var(--fx-ease) infinite; }
@keyframes fxbrand { 0%, 28% { --pb: #24524D; } 33%, 61% { --pb: #7C3AED; } 66%, 94% { --pb: #2563EB; } }
.fx-detail--settings { animation: none; }
.fx-logo-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fx-soft); border: 1px dashed var(--border-strong); } .fx-logo-tile b { flex: 1; font-size: 12.5px; }
.fx-brandmark { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; border-radius: 9px; background: var(--pb); flex: none; transition: background 600ms var(--fx-ease); } .fx-brandmark i { width: 3px; border-radius: 2px; background: #fff; height: 10px; } .fx-brandmark i:nth-child(2) { height: 16px; } .fx-brandmark i:nth-child(3) { height: 7px; } .fx-brandmark--lg { width: 44px; height: 44px; border-radius: 12px; } .fx-brandmark--lg i { width: 4px; height: 14px; } .fx-brandmark--lg i:nth-child(2) { height: 22px; } .fx-brandmark--lg i:nth-child(3) { height: 10px; }
.fx-swatches { position: relative; display: flex; gap: 10px; padding: 4px 2px; } .fx-swatches i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); } .fx-swatches__ring { position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--fx-ink); animation: fxswatch 12s var(--fx-ease) infinite; }
@keyframes fxswatch { 0%, 28% { left: 0; } 33%, 61% { left: 38px; } 66%, 94% { left: 76px; } }
.fx-preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .fx-preview__bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 12px 12px 0 0; background: var(--fx-soft); border: 1px solid var(--fx-line); border-bottom: 0; font-size: 11px; color: var(--fx-faint); } .fx-preview__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); } .fx-preview__bar span { margin-left: 6px; font-family: var(--mono); }
.fx-preview__body { flex: 1; display: grid; place-items: center; padding: 22px 16px; border-radius: 0 0 12px 12px; border: 1px solid var(--fx-line); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--pb) 14%, transparent), transparent 60%), var(--surface); transition: background 600ms var(--fx-ease); }
.fx-preview__login { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 220px); padding: 18px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--fx-line); box-shadow: var(--shadow); } .fx-preview__login b { font-size: 13px; } .fx-preview__login small { font-size: 11px; color: var(--fx-muted); margin-bottom: 4px; } .fx-preview__field { display: block; width: 100%; height: 26px; border-radius: 7px; background: var(--fx-soft); border: 1px solid var(--fx-line); } .fx-preview__btn { width: 100%; padding: 7px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; color: #fff; background: var(--pb); transition: background 600ms var(--fx-ease); }
.fx-preview .fx-hint { margin-top: 0; text-align: center; }
.fx-portal--queue, .fx-portal--voicemail, .fx-portal--ivr, .fx-portal--ring, .fx-portal--brand { aspect-ratio: 16 / 10.5; }

/* ---------- Container-aware layouts: frames in two-column sections and heroes ---------- */
.frame__body, .showcase__panel { container-type: inline-size; }
@container (max-width: 680px) {
  .fx-split, .fx-portal__grid, .fx-portal__grid--bottom { grid-template-columns: 1fr; }
  .fx-detail, .fx-card--ring, .fx-card--calls, .fx-search { display: none; }
  .fx-portal__rail { width: 48px; } .fx-portal__main { padding: 14px 16px 30px; gap: 10px; }
  .fx-portal__head b { font-size: 16px; } .fx-kpi b { font-size: 19px; } .fx-strip { gap: 18px; padding: 10px 14px; } .fx-strip b { font-size: 18px; }
  .fx-flow { flex-wrap: wrap; gap: 6px; } .fx-flow__link { display: none; }
  .fx-people--card li:nth-child(n+4), .fx-vms li:nth-child(n+4), .fx-devgrid .fx-devcard:nth-child(n+3), .fx-opts li:nth-child(n+4) { display: none; }
  .fx-devgrid { grid-template-columns: 1fr 1fr; }
  .fx-canvas .flow--builder { padding: 20px 14px; gap: 18px 12px; } .fx-canvas .node--flow { font-size: 11.5px; padding: 10px 8px; }
  .fx-portal--people, .fx-portal--devices, .fx-portal--flow, .fx-portal--queue, .fx-portal--voicemail, .fx-portal--ivr, .fx-portal--ring, .fx-portal--brand, .fx-portal--list, .pt { aspect-ratio: auto; }
  .fx-portal--brand .fx-detail--settings { display: flex; } .fx-portal--brand .fx-more { display: none; } .fx-preview__body { padding: 16px 12px; }
  .fx-tree { min-height: 120px; }
}
@container (max-width: 420px) { .fx-portal__rail { display: none; } .fx-kpis { grid-template-columns: repeat(3, 1fr); } .pt .mock__label { left: 12px; } }
@media (prefers-reduced-motion: reduce) { .fx-key, .fx-keypad__lit, .fx-ringwrap i, .fx-swatches__ring, .fx-portal--brand, .fx-progress--play i, .fx-vms li, .fx-livecalls li { animation: none; } .fx-ringwrap i { display: none; } }
