/* ==========================================================================
   CABESKA — Live simulations (labs)
   ========================================================================== */

.sim { position: relative; display: flex; flex-direction: column; min-height: inherit; height: 100%; font-size: 14px; user-select: none; -webkit-user-select: none; }
.sim [hidden] { display: none !important; }
.sim * { box-sizing: border-box; }
.sim input, .sim textarea { user-select: text; -webkit-user-select: text; }
.sim-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sim-bar__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.sim-bar__spacer { flex: 1; }
.sim-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: all .3s var(--ease); }
.sim-btn:hover { color: #fff; border-color: var(--line-3); }
.sim-btn.is-active { background: #fff; color: #000; border-color: #fff; }
.sim-btn--accent { background: var(--grad-accent); border-color: transparent; color: #fff; box-shadow: var(--shadow-accent); }
.sim-btn--accent:hover { color: #fff; filter: brightness(1.08); }
.sim-btn[disabled] { opacity: .45; pointer-events: none; }
.sim-btn .ic { font-size: 15px; }
.sim-btn--sm { height: 30px; padding: 0 11px; font-size: 12px; }
.sim-grid { flex: 1; display: grid; min-height: 0; }
.sim-panel { position: relative; padding: 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.sim-panel__title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; }
.sim-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sim-kpi { padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.sim-kpi__label { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-kpi__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.sim-kpi__delta { font-size: 11.5px; color: #5fe9a0; }
.sim-kpi__delta.is-down { color: #ff8595; }
.sim-log { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--text-2); overflow-y: auto; }
.sim-log div { opacity: 0; animation: log-in .45s var(--ease) forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-log .ok { color: #5fe9a0; }
.sim-log .ac { color: #ff9d8f; }
.sim-log .dim { color: var(--text-4); }
@keyframes log-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.sim-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); outline: none; }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3); cursor: pointer; }
.sim-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3); cursor: pointer; }
.sim-field { display: grid; gap: 8px; }
.sim-field label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.sim-field label b { color: #fff; font-weight: 600; }
.sim-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.sim-switch input { position: absolute; opacity: 0; }
.sim-switch i { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, .14); transition: background .3s; flex: none; }
.sim-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.sim-switch input:checked + i { background: var(--accent); }
.sim-switch input:checked + i::after { transform: translateX(16px); }
.sim-hint { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.sim-hint .ic { color: var(--accent); }
.sim-toast { position: absolute; left: 50%; top: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); background: #fff; color: #000; font-size: 12.5px; font-weight: 600; transform: translateX(-50%); box-shadow: 0 16px 40px -10px #000; pointer-events: none; white-space: nowrap; }
.sim-toast .ic { color: var(--accent); }
.sim-float { position: absolute; z-index: 25; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; text-shadow: 0 0 20px rgba(var(--accent-rgb), .9); pointer-events: none; }
.sim-note { font-size: 11px; color: var(--text-4); }
.sim-empty { display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 13px; padding: 20px; }
.sim-pulse { animation: sim-pulse 1.6s ease-in-out infinite; }
@keyframes sim-pulse { 50% { opacity: .45; } }

/* ------------------------------------------------------------------ UNION — business pathway builder (full + compact) */
.pw { flex: 1; display: grid; grid-template-columns: 228px minmax(0, 1fr) 296px; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.pw-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.pw-types { flex: 1; display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 28px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.pw-types::-webkit-scrollbar { display: none; }
.pw-type { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.pw-type:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--line-3); }
.pw-type__emo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; background: linear-gradient(135deg, hsl(var(--h) 85% 58% / .55), hsl(var(--h) 80% 30% / .35)); }
.pw-type.is-active { background: #fff; color: #000; box-shadow: none; }
.pw-actions { display: flex; gap: 8px; flex: none; }

.pw-palette { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-right: 1px solid var(--line); overflow-y: auto; max-height: 820px; scrollbar-width: thin; }
.pw-group { display: grid; gap: 6px; }
.pw-group__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.pw-chip { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 38px 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.2; text-align: left; cursor: grab; touch-action: none; transition: background .25s, box-shadow .25s, opacity .25s; }
.pw-chip:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-3); }
.pw-chip:active { cursor: grabbing; }
.pw-chip > .ic { flex: none; font-size: 16px; color: var(--accent); }
.pw-chip__add { position: absolute; right: 7px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text-3); font-size: 12px; }
.pw-chip.is-suggested::before { content: ''; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pw-chip.is-used { opacity: .5; cursor: pointer; }
.pw-chip.is-used .pw-chip__add { background: var(--accent); color: #fff; }

.pw-center { display: flex; flex-direction: column; min-width: 0; }
.pw-board { position: relative; flex: 1; min-height: 540px; padding: 22px 20px 44px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), .09), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1' cy='1' r='1' fill='white' fill-opacity='.07'/%3E%3C/svg%3E"); transition: box-shadow .3s; }
.pw-board.is-dragging { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.pw-board.is-over { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 80px rgba(var(--accent-rgb), .15); }
.pw-grid { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-template-areas: "a b c" "h core d" "g f e"; gap: 40px 26px; align-items: center; align-content: center; }
.pw-svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pw-ring { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.2; stroke-dasharray: 3 7; }
.pw-spoke { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; }
.pw-spoke.is-on { stroke: rgba(var(--accent-rgb), .6); stroke-width: 1.6; stroke-dasharray: 6 6; animation: dash 1.1s linear infinite; }
.pw-spoke-draw { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .9)); }
.pw-path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .8)); }
.pw-packet { fill: #fff; filter: drop-shadow(0 0 5px #fff); }
.pw-runner { fill: #fff; opacity: 0; filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 20px var(--accent)); }

.pw-st { position: relative; min-width: 0; padding: 10px; border-radius: 16px; background: rgba(16, 16, 18, .92); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.pw-st__head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pw-st__head > div { min-width: 0; }
.pw-st__head b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.pw-st__head small { display: block; font-size: 11px; line-height: 1.3; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-st__n { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--text-4); margin-right: 2px; }
.pw-st__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text-3); font-size: 16px; transition: background .4s, color .4s; }
.pw-st__dock { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; min-height: 26px; }
.pw-st__dock:empty::before { content: 'Drop here'; flex: 1; display: grid; place-items: center; height: 26px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 10.5px; color: var(--text-4); }
.pw-st.is-suggested { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .28); }
.pw-st.is-suggested .pw-st__dock:empty::before { content: 'Suggested for you'; color: rgba(var(--accent-rgb), .9); border-color: rgba(var(--accent-rgb), .35); }
.pw-st.is-active { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5), 0 14px 40px -18px rgba(var(--accent-rgb), .7); }
.pw-st.is-active .pw-st__ic { background: var(--grad-accent); color: #fff; }
.pw-st.is-hot { transform: scale(1.04); box-shadow: inset 0 0 0 2px var(--accent), 0 0 50px rgba(var(--accent-rgb), .45); }
.pw-st.is-playing { box-shadow: 0 0 0 2px #fff, 0 0 60px rgba(var(--accent-rgb), .7); }
.pw-dock { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 26px; padding: 0 3px 0 8px; border-radius: 8px; background: rgba(var(--accent-rgb), .16); color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; }
.pw-dock > .ic { flex: none; font-size: 12px; color: var(--accent); }
.pw-dock > span { overflow: hidden; text-overflow: ellipsis; }
.pw-dock button { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; color: var(--text-3); font-size: 10px; }
.pw-dock button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pw-burst { position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(var(--accent-rgb), .8); pointer-events: none; }

.pw-core { --h: 24; position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 196px); aspect-ratio: 1; padding: 18px; border-radius: 50%; text-align: center; background: radial-gradient(circle at 50% 30%, hsl(var(--h) 70% 32% / .7), #0b0b0d 72%); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 90px -12px hsl(var(--h) 85% 50% / .55); transition: box-shadow .6s var(--ease); }
.pw-core__ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); overflow: visible; }
.pw-core__ring circle { fill: none; stroke-width: 3; }
.pw-core__ring .bg { stroke: rgba(255, 255, 255, .07); }
.pw-core__ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .8)); }
.pw-core__mark { display: grid; place-items: center; width: 58px; height: 58px; }
.pw-core__mark .pw-logo { width: 58px; height: 58px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.pw-core__emo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255, 255, 255, .08); font-size: 28px; }
.pw-core__name { margin-top: 8px; max-width: 100%; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pw-core__type { margin-top: 3px; font-size: 10.5px; color: var(--text-3); }
.pw-core__score { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); padding: 4px 11px; border-radius: var(--r-pill); background: #fff; color: #000; font-size: 11px; font-weight: 600; white-space: nowrap; }

.pw-week { position: absolute; left: 50%; bottom: 10px; z-index: 5; transform: translateX(-50%); white-space: nowrap; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); font-family: var(--font-mono); font-size: 11px; color: #fff; }
.pw-caption { position: absolute; z-index: 6; width: max-content; max-width: 250px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #333; font-size: 11.5px; line-height: 1.45; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); pointer-events: none; }
.pw-caption b { display: block; margin-bottom: 2px; font-size: 12.5px; color: #000; }
.pw-hint { position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.pw-hint .ic { color: var(--accent); }
.pw-ghost { position: fixed; left: 0; top: 0; z-index: 9999; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--grad-accent); color: #fff; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.pw-ghost .ic { font-size: 15px; }

.pw-side { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--line); overflow-y: auto; max-height: 820px; scrollbar-width: thin; }
.pw-name { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 600; outline: none; }
.pw-name:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.pw-meters { display: grid; gap: 9px; }
.pw-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 12px; color: var(--text-2); }
.pw-meter b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.pw-meter i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pw-meter em { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad-accent); transition: width .9s var(--ease); }
.pw-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pw-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.pw-steps__wk { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.pw-steps b { display: block; font-size: 12.5px; }
.pw-steps small { display: block; color: var(--text-3); font-size: 11px; line-height: 1.3; }
.pw-steps em { font-style: normal; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.pw-steps__empty { display: block !important; color: var(--text-4); font-size: 12px; }
.pw-fit { margin-top: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .05)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .4); }
.pw-fit > span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pw-fit > b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pw-fit > em { display: block; font-style: normal; font-size: 12.5px; color: #fff; opacity: .85; }
.pw-fit p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.pw-fit__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* deliverable previews */
.pw-previews { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.pw-previews__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pw-previews__track { display: flex; gap: 10px; min-height: 192px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.pw-previews__empty { flex: 1; display: grid; place-items: center; padding: 0 24px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 12px; color: var(--text-4); text-align: center; }
.pv { --h: 24; flex: none; width: 196px; margin: 0; overflow: hidden; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.pv.is-flash { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--accent), 0 16px 34px -12px rgba(var(--accent-rgb), .7); }
.pv__art { position: relative; height: 128px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 100% at 20% 0%, hsl(var(--h) 70% 30% / .75), #0c0c0e 70%); }
.pv figcaption { padding: 9px 11px 11px; }
.pv figcaption b { display: block; font-size: 12.5px; }
.pv figcaption span { display: -webkit-box; margin-top: 2px; overflow: hidden; font-size: 10.5px; line-height: 1.35; color: var(--text-3); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv small { font-size: 9.5px; color: var(--text-3); }
.pv-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.pv-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, hsl(var(--h) 90% 62%), hsl(var(--h) 80% 40% / .5)); }
.pv-doc { width: 128px; padding: 10px; border-radius: 8px; background: #f7f5f0; color: #111; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.pv-doc b { display: block; font-size: 11px; line-height: 1.2; margin-top: 4px; }
.pv-doc small { display: block; color: #666; margin-bottom: 6px; }
.pv-doc__tag { display: inline-block; padding: 2px 6px; border-radius: 4px; background: hsl(var(--h) 85% 55%); color: #fff; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pv-cert { position: relative; width: 150px; padding: 12px; border-radius: 6px; background: #fbf8ef; color: #222; text-align: center; box-shadow: inset 0 0 0 3px #d9c89a, 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-cert small { display: block; color: #8a7a4a; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.pv-cert b { display: block; margin-top: 6px; font-size: 11px; line-height: 1.2; }
.pv-cert__stamp { position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--h) 80% 50%); color: #fff; font-size: 16px; box-shadow: 0 0 0 3px #fbf8ef; }
.pv-brand { display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.pv-brand .pw-logo { width: 64px; height: 64px; flex: none; }
.pv-brand b { display: block; font-family: var(--font-display); font-size: 13px; line-height: 1.1; }
.pv-swatch { display: flex; gap: 4px; margin: 7px 0 5px; }
.pv-swatch i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pv-book { position: relative; width: 120px; height: 100px; }
.pv-book__page { position: absolute; inset: 6px -6px -4px 8px; border-radius: 6px; background: #e9e5dc; transform: rotate(5deg); }
.pv-book__cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; border-radius: 6px; background: linear-gradient(160deg, hsl(var(--h) 80% 52%), hsl(var(--h) 70% 22%)); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-book__cover small { color: rgba(255, 255, 255, .75); }
.pv-book__cover b { font-size: 12px; line-height: 1.1; }
.pv-book__cover span { font-size: 9px; color: rgba(255, 255, 255, .8); margin-top: 3px; }
.pv-post { width: 116px; padding: 6px; border-radius: 12px; background: #fff; color: #111; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-post__top { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.pv-post__top .pw-logo { width: 16px; height: 16px; }
.pv-post__top b { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-post__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 40) 80% 40%)); }
.pv-post__img span { font-size: 30px; }
.pv-post__img em { position: absolute; left: 6px; bottom: 5px; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; }
.pv-post small { display: block; margin-top: 4px; color: #666; font-size: 8.5px; }
.pv-web { width: 164px; overflow: hidden; border-radius: 8px; background: #0f0f11; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-web__bar { display: flex; align-items: center; gap: 3px; height: 16px; padding: 0 6px; background: #1d1d20; }
.pv-web__bar i { width: 5px; height: 5px; border-radius: 50%; background: #444; }
.pv-web__bar span { margin-left: 6px; font-size: 7.5px; color: #888; }
.pv-web__body { padding: 8px 10px 10px; background: radial-gradient(100% 90% at 100% 0%, hsl(var(--h) 80% 40% / .6), transparent 70%); }
.pv-web__nav { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.pv-web__nav b { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: hsl(var(--h) 85% 55%); font-size: 6.5px; }
.pv-web__nav i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.pv-web__nav i:first-of-type { margin-left: auto; }
.pv-web__h { display: block; font-family: var(--font-display); font-size: 13px; line-height: 1.05; }
.pv-web__body small { display: block; margin: 3px 0 7px; font-size: 7.5px; color: #aaa; }
.pv-web__body em { display: inline-block; padding: 3px 8px; border-radius: 10px; background: hsl(var(--h) 85% 55%); font-style: normal; font-size: 7.5px; font-weight: 600; }
.pv-phone { width: 64px; height: 112px; padding: 4px; border-radius: 14px; background: #1a1a1d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-phone__screen { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 5px 5px; border-radius: 10px; background: linear-gradient(180deg, hsl(var(--h) 70% 22%), #0d0d0f); }
.pv-phone__screen b { font-size: 7px; line-height: 1.1; }
.pv-phone__card { height: 30px; border-radius: 5px; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 40) 80% 42%)); }
.pv-phone__row { display: flex; gap: 3px; }
.pv-phone__row i { flex: 1; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.pv-phone__screen em { margin-top: auto; padding: 3px 0; border-radius: 5px; background: #fff; color: #000; font-style: normal; font-size: 6.5px; font-weight: 700; text-align: center; }
.pv-dash { width: 160px; padding: 9px; border-radius: 10px; background: #111114; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
.pv-dash__kpis span { padding: 4px; border-radius: 5px; background: rgba(255, 255, 255, .05); font-size: 7px; color: #999; }
.pv-dash__kpis b { display: block; font-size: 10px; color: #fff; }
.pv-team, .pv-hub, .pv-mkt, .pv-globe, .pv-nfc, .pv-flow { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pv-team__faces { display: flex; margin-bottom: 4px; }
.pv-team__faces i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 60) 60% 35%)); box-shadow: 0 0 0 2px #0c0c0e; font-style: normal; font-size: 9px; font-weight: 600; }
.pv-team__faces i:first-child { margin-left: 0; }
.pv-team b, .pv-hub b, .pv-mkt b, .pv-globe b { font-size: 13px; }
.pv-team b .ic { color: #5fe9a0; }
.pv-flow { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 8px; }
.pv-flow > span { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 5px; border-radius: 8px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 8.5px; }
.pv-flow > span .ic { font-size: 14px; color: hsl(var(--h) 90% 62%); }
.pv-flow > i { width: 10px; height: 2px; background: hsl(var(--h) 90% 60%); box-shadow: 0 0 6px hsl(var(--h) 90% 60%); }
.pv-flow small { flex-basis: 100%; margin-top: 4px; }
.pv-mkt svg { width: 150px; height: 56px; }
.pv-mkt .a { fill: hsl(var(--h) 85% 55% / .25); }
.pv-mkt .l { fill: none; stroke: hsl(var(--h) 90% 62%); stroke-width: 2; }
.pv-tv { width: 150px; padding: 6px; border-radius: 10px; background: #1b1b1e; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6); }
.pv-tv__screen { display: flex; flex-direction: column; justify-content: flex-end; height: 86px; padding: 8px; border-radius: 6px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent), linear-gradient(135deg, hsl(var(--h) 80% 45%), #222); }
.pv-tv__screen span { font-family: var(--font-mono); font-size: 7px; letter-spacing: .12em; color: var(--accent); }
.pv-tv__screen b { font-size: 11px; line-height: 1.15; }
.pv-globe__map { position: relative; width: 150px; height: 72px; border-radius: 8px; background: radial-gradient(circle at 50% 50%, hsl(var(--h) 60% 25% / .5), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='1' cy='1' r='.9' fill='white' fill-opacity='.18'/%3E%3C/svg%3E"); }
.pv-globe__map i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: hsl(var(--h) 90% 62%); box-shadow: 0 0 8px hsl(var(--h) 90% 62%); animation: pv-ping 1.8s ease-out infinite; }
.pv-globe__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-globe__map path { fill: none; stroke: hsl(var(--h) 90% 62% / .8); stroke-width: 1; stroke-dasharray: 3 3; animation: dash 1.2s linear infinite; }
@keyframes pv-ping { 0% { box-shadow: 0 0 0 0 hsl(var(--h) 90% 62% / .7); } 100% { box-shadow: 0 0 0 10px hsl(var(--h) 90% 62% / 0); } }
.pv-nfc__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 140px; height: 86px; padding: 10px; border-radius: 10px; text-align: left; background: linear-gradient(135deg, #1e1e22, #0b0b0d); box-shadow: inset 0 0 0 1px hsl(var(--h) 80% 55% / .6), 0 12px 24px -8px rgba(0, 0, 0, .7); }
.pv-nfc__card .pw-logo { width: 22px; height: 22px; }
.pv-nfc__card b { font-size: 10px; }
.pv-nfc__card span { position: absolute; right: 10px; top: 10px; color: hsl(var(--h) 90% 62%); font-size: 16px; }

/* compact (home teaser) */
.pw--compact { grid-template-columns: minmax(0, 1fr); }
.pw--compact .pw-top { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.pw--compact .pw-types { flex-basis: 100%; }
.pw--compact .pw-type { height: 38px; font-size: 12px; }
.pw--compact .pw-type__emo { width: 28px; height: 28px; font-size: 14px; }
.pw--compact .pw-board { min-height: 440px; padding: 16px 12px 40px; }
.pw--compact .pw-grid { gap: 26px 12px; }
.pw--compact .pw-st { padding: 8px; }
.pw--compact .pw-st__head small { display: none; }
.pw--compact .pw-st__ic { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.pw--compact .pw-st__head b { font-size: 12px; }
.pw--compact .pw-st__dock { gap: 4px; margin-top: 6px; min-height: 22px; }
.pw--compact .pw-st__dock:empty::before { height: 22px; font-size: 9.5px; }
.pw--compact .pw-dock { height: 22px; padding: 0 2px 0 6px; font-size: 10px; }
.pw--compact .pw-dock > span { display: none; }
.pw--compact .pw-core { width: min(100%, 150px); padding: 12px; }
.pw--compact .pw-core__mark, .pw--compact .pw-core__mark .pw-logo { width: 44px; height: 44px; }
.pw--compact .pw-core__emo { width: 42px; height: 42px; font-size: 22px; border-radius: 14px; }
.pw--compact .pw-core__name { font-size: 13px; }
.pw-tray { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pw-tray::-webkit-scrollbar { display: none; }
.pw-tray .pw-chip { flex: none; width: auto; min-height: 36px; padding-right: 34px; font-size: 12px; }
.pw-tray .pw-chip.is-suggested::before { left: 4px; top: 5px; margin: 0; width: 5px; height: 5px; }
.pw-tray__more { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* ------------------------------------------------------------------ AI chat lab */
.aic { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: 0; }
.aic__chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.aic__msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; max-height: 470px; }
.aic__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.aic__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: #fff; outline: none; }
.aic__chips { display: flex; gap: 6px; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.aic__tele { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.aic__meter { display: grid; gap: 5px; }
.aic__meter span { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.aic__meter i { display: block; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.aic__meter i b { display: block; height: 100%; width: 0; background: var(--grad-accent); transition: width .8s var(--ease); }
.aic__big { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* ------------------------------------------------------------------ Vision */
.vis { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 230px; min-height: 0; }
.vis__stage { position: relative; overflow: hidden; background: #0b0b0d; min-height: 360px; }
.vis__stage svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.vis__scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 20px var(--accent); top: 0; opacity: 0; }
.vis__box { position: absolute; border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 18px rgba(var(--accent-rgb), .4); pointer-events: none; }
.vis__box span { position: absolute; left: -2px; top: -24px; padding: 3px 7px; border-radius: 6px 6px 6px 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.vis__side { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); overflow-y: auto; }
.vis__det { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 12.5px; }
.vis__det b { font-family: var(--font-mono); font-size: 11.5px; color: #5fe9a0; }
.vis__json { font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: #ffd3cc; white-space: pre-wrap; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, .4); }

/* ------------------------------------------------------------------ XR viewer */
.xr { position: relative; flex: 1; min-height: 520px; background: radial-gradient(ellipse at 50% 60%, rgba(var(--accent-rgb), .12), transparent 60%), #030303; overflow: hidden; }
.xr canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xr__hud { position: absolute; left: 16px; bottom: 16px; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-2); text-transform: uppercase; line-height: 1.8; pointer-events: none; }
.xr__hud b { color: var(--accent); font-weight: 500; }
.xr__zoom { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: grid; gap: 6px; }
.xr__floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 40%; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 50px 50px; transform: perspective(500px) rotateX(64deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); pointer-events: none; }
.xr:fullscreen { border-radius: 0; }

/* ------------------------------------------------------------------ CRE render */
.cre { flex: 1; display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 0; }
.cre__ctrl { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.cre__ctrl textarea { width: 100%; min-height: 86px; padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: #fff; font: inherit; font-size: 13.5px; resize: vertical; outline: none; }
.cre__ctrl textarea:focus { border-color: rgba(var(--accent-rgb), .7); }
.cre__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cre__opts .sim-btn { height: 30px; font-size: 12px; padding: 0 11px; }
.cre__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; min-height: 480px; background: repeating-conic-gradient(#0d0d10 0% 25%, #0a0a0c 0% 50%) 50% / 24px 24px; }
.cre__canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px #000, 0 0 0 1px var(--line-2); max-width: 100%; }
.cre__canvas-wrap canvas { display: block; max-width: 100%; }
.cre__status { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: #fff; }
.cre__bar { width: min(420px, 100%); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cre__bar i { display: block; height: 100%; width: 0; background: var(--grad-accent); }
.cre__thumbs { display: flex; gap: 8px; }
.cre__thumbs button { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); background: #111; padding: 0; }
.cre__thumbs button.is-active { box-shadow: 0 0 0 2px var(--accent); }
.cre__thumbs canvas { width: 100%; height: 100%; display: block; }
.cre__meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.cre__meta b { color: #fff; font-weight: 500; }

/* ------------------------------------------------------------------ Automation */
.auto { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
.auto__canvas { position: relative; min-height: 460px; overflow: hidden; }
.auto__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.auto__svg path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.auto__svg path.is-lit { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .8)); }
.auto__node { position: absolute; z-index: 2; width: 168px; padding: 12px; border-radius: 14px; background: #141417; box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -14px #000; transform: translate(-50%, -50%); transition: box-shadow .4s var(--ease), background .4s; }
.auto__node small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.auto__node b { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.auto__node b .ic { flex: none; font-size: 16px; color: var(--accent); }
.auto__node.is-running { box-shadow: inset 0 0 0 2px var(--accent), 0 0 40px rgba(var(--accent-rgb), .45); }
.auto__node.is-done { background: #151b17; box-shadow: inset 0 0 0 1px rgba(34, 224, 122, .5); }
.auto__node.is-skipped { opacity: .35; }
.auto__node.is-off { opacity: .3; filter: grayscale(1); }
.auto__node .auto__t { position: absolute; right: 10px; top: 10px; font-family: var(--font-mono); font-size: 10px; color: #5fe9a0; }
.auto__msg { position: absolute; left: 16px; top: 16px; z-index: 3; max-width: 280px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #000; font-size: 13px; line-height: 1.45; box-shadow: 0 16px 30px -12px #000; }
.auto__side { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.auto__side .sim-log { flex: 1; min-height: 160px; max-height: 300px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); }

/* ------------------------------------------------------------------ ERP */
.erp { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 0; }
.erp__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.erp__flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; }
.erp__mod { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-size: 12px; transition: box-shadow .4s, background .4s; }
.erp__mod .ic { font-size: 20px; color: var(--accent); }
.erp__mod.is-hot { background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6), 0 0 30px rgba(var(--accent-rgb), .25); }
.erp__chart { height: 120px; }
.erp__chart svg { width: 100%; height: 100%; overflow: visible; }
.erp__table { display: grid; gap: 6px; }
.erp__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 60px 30px; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.erp__row:first-child { border-top: 0; }
.erp__stock { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.erp__stock i { display: block; height: 100%; background: linear-gradient(90deg, #22e07a, #5fe9a0); transition: width .6s var(--ease), background .4s; }
.erp__stock i.is-low { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.erp__row button { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-size: 13px; }
.erp__row button:hover { background: var(--accent); }
.erp__side { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.erp__feed { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.erp__feed div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 12px; animation: log-in .5s var(--ease) both; }
.erp__feed div b { color: #5fe9a0; font-weight: 600; white-space: nowrap; }
.erp__alert { padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .06)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .4); font-size: 12.5px; }
.erp__alert b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ HR */
.hr { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 0; }
.hr__left { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.hr__right { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.hr__person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.hr__person b { display: block; font-size: 14px; }
.hr__person span { font-size: 12px; color: var(--text-3); }
.hr__stages { display: grid; gap: 8px; }
.hr__stage { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; transition: all .45s var(--ease); }
.hr__stage i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text-3); font-style: normal; font-size: 14px; }
.hr__stage small { color: var(--text-3); font-size: 11.5px; display: block; }
.hr__stage em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); }
.hr__stage.is-active { background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.hr__stage.is-active i { background: var(--grad-accent); color: #fff; }
.hr__stage.is-done i { background: rgba(34, 224, 122, .18); color: #5fe9a0; }
.hr__stage.is-done em { color: #5fe9a0; }
.hr__heat { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; color: var(--text-3); align-items: center; }
.hr__heat i { aspect-ratio: 1.6; border-radius: 5px; background: rgba(var(--accent-rgb), var(--a, .1)); transition: background .6s; }
.hr__leave { display: grid; gap: 6px; }
.hr__leave div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 12.5px; }

/* ------------------------------------------------------------------ Mobile app */
.app { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; min-height: 0; }
.app__stage { display: grid; place-items: center; padding: 24px; min-height: 600px; background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), .18), transparent 60%); }
.phone { --app-accent: var(--accent); --app-bg: #0e0e11; --app-fg: #fff; --app-card: rgba(255, 255, 255, .07); --app-r: 44px; position: relative; width: 280px; height: 572px; border-radius: var(--app-r); padding: 11px; background: linear-gradient(145deg, #2c2c31, #0b0b0d); box-shadow: 0 0 0 2px #3a3a40, 0 50px 90px -30px #000, 0 0 90px rgba(var(--accent-rgb), .25); }
.phone.is-light { --app-bg: #f6f6f8; --app-fg: #0c0c0e; --app-card: #fff; }
.phone.is-android { --app-r: 30px; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--app-r) - 10px); background: var(--app-bg); color: var(--app-fg); overflow: hidden; font-size: 12px; transition: background .4s, color .4s; }
.phone__notch { position: absolute; left: 50%; top: 9px; z-index: 5; width: 92px; height: 26px; border-radius: 16px; background: #000; transform: translateX(-50%); }
.phone.is-android .phone__notch { width: 12px; height: 12px; top: 12px; border-radius: 50%; }
.phone__status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 600; height: 38px; }
.phone__views { position: absolute; inset: 40px 0 64px; }
.phone__view { position: absolute; inset: 0; padding: 12px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.phone__tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px 14px; background: var(--app-bg); border-top: 1px solid rgba(128, 128, 128, .18); }
.phone__tabs button { display: grid; justify-items: center; gap: 2px; font-size: 9.5px; color: inherit; opacity: .45; position: relative; }
.phone__tabs button .ic { font-size: 18px; }
.phone__tabs button.is-active { opacity: 1; color: var(--app-accent); }
.phone__badge { position: absolute; top: -2px; right: 18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--app-accent); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.pv-h { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.pv-hero { padding: 16px; border-radius: 18px; background: var(--app-accent); color: #fff; }
.pv-hero b { display: block; font-size: 17px; margin-top: 2px; }
.pv-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--app-card); box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.pv-thumb { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-prod { padding: 8px; border-radius: 14px; background: var(--app-card); }
.pv-prod .pv-thumb { width: 100%; height: 74px; margin-bottom: 6px; }
.pv-add { width: 100%; height: 28px; margin-top: 6px; border-radius: 9px; background: var(--app-accent); color: #fff; font-size: 11px; font-weight: 600; }
.pv-map { position: relative; flex: 1; border-radius: 16px; overflow: hidden; background: var(--app-card); }
.pv-map svg { width: 100%; height: 100%; }
.app__ctrl { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.app__swatches { display: flex; gap: 8px; }
.app__swatches button { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.app__swatches button.is-active { box-shadow: 0 0 0 2px #fff; }

/* ------------------------------------------------------------------ Kanban */
.kb { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: 0; }
.kb__board { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 14px; overflow-x: auto; align-items: start; }
.kb__col { display: flex; flex-direction: column; gap: 8px; min-height: 380px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.kb__col.is-over { background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); }
.kb__col h5 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.kb__col h5 span { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.kb__card { position: relative; padding: 10px 11px; border-radius: 12px; background: #19191d; box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 20px -14px #000; cursor: grab; touch-action: none; font-size: 12.5px; line-height: 1.35; }
.kb__card:active { cursor: grabbing; }
.kb__card.is-dragging { z-index: 50; box-shadow: 0 0 0 1px var(--accent), 0 30px 50px -16px #000; }
.kb__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kb__tag { height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10.5px; display: inline-flex; align-items: center; background: rgba(var(--accent-rgb), .16); color: #ffb3a8; }
.kb__who { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; }
.kb__add { display: flex; gap: 6px; }
.kb__add input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: #fff; font-size: 12px; outline: none; }
.kb__side { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.kb__side .sim-log { flex: 1; max-height: 280px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); }

/* ------------------------------------------------------------------ Marketing */
.mk { flex: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }
.mk__ctrl { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.mk__out { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk__funnel { display: grid; gap: 8px; }
.mk__stage { position: relative; height: 54px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.mk__stage i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad-accent); border-radius: 14px; }
.mk__stage span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; z-index: 1; }
.mk__stage b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 22px; font-weight: 600; z-index: 1; }
.mk__chans { display: flex; flex-wrap: wrap; gap: 6px; }
.mk__chart svg { width: 100%; height: 130px; overflow: visible; }

/* ------------------------------------------------------------------ Redesign compare */
.rd { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rd__compare { position: relative; flex: 1; min-height: 440px; overflow: hidden; cursor: ew-resize; touch-action: none; }
.rd__layer { position: absolute; inset: 0; overflow: hidden; }
.rd__after { clip-path: inset(0 0 0 var(--x, 50%)); }
.rd__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); z-index: 5; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, .6); }
.rd__handle span { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; box-shadow: 0 10px 30px -6px #000; font-size: 18px; }
.rd__tag { position: absolute; top: 14px; z-index: 4; padding: 6px 12px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.rd__tag--b { left: 14px; background: #ddd; color: #333; }
.rd__tag--a { right: 14px; background: var(--grad-accent); color: #fff; }
.old { width: 100%; height: 100%; background: #e9e6df; color: #222; font-family: 'Times New Roman', Times, serif; padding: 0; }
.old__top { background: #1e3d7a; color: #ffef9e; padding: 10px 16px; font-size: 13px; display: flex; justify-content: space-between; }
.old__nav { display: flex; gap: 2px; background: #c9c3b4; padding: 4px; }
.old__nav span { padding: 6px 10px; background: linear-gradient(#f7f5ef, #d7d1c3); border: 1px solid #999; font-size: 12px; }
.old__body { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 12px; }
.old__side { background: #fff; border: 1px solid #aaa; padding: 8px; font-size: 12px; line-height: 1.9; color: #00e; text-decoration: underline; }
.old__main h3 { font-family: 'Times New Roman', serif; font-size: 26px; color: #b00; margin: 0 0 6px; text-decoration: underline; letter-spacing: 0; }
.old__main p { font-size: 13px; line-height: 1.4; }
.old__banner { height: 90px; margin: 8px 0; background: repeating-linear-gradient(45deg, #ffcf3d, #ffcf3d 10px, #ff8c2a 10px, #ff8c2a 20px); display: grid; place-items: center; font-weight: 700; color: #600; font-size: 18px; border: 3px ridge #aaa; }
.old__blink { color: red; font-weight: 700; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.new { width: 100%; height: 100%; background: #050505; color: #fff; position: relative; overflow: hidden; padding: 18px 24px; }
.new__glow { position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .55), transparent); }
.new__nav { position: relative; display: flex; justify-content: space-between; align-items: center; }
.new__nav i { display: inline-block; width: 44px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); margin-left: 8px; }
.new { text-align: center; }
.new__nav { text-align: left; }
.new__h { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.6vw, 76px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; margin: 44px auto 0; max-width: 14ch; }
.new__h em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.new__cta { position: relative; display: inline-flex; margin-top: 22px; height: 40px; padding: 0 18px; border-radius: 20px; background: #fff; color: #000; align-items: center; font-size: 13px; font-weight: 600; }
.new__cards { position: absolute; left: 24px; right: 24px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.new__cards div { height: 90px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.new__cards div:first-child { background: var(--grad-accent); }
.rd__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ Estimator */
.est { flex: 1; display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 0; }
.est__ctrl { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.est__out { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.est__gantt { display: grid; gap: 6px; }
.est__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 12px; }
.est__track { position: relative; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.est__bar { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--grad-accent); display: flex; align-items: center; padding: 0 8px; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.est__bar.is-alt { background: linear-gradient(90deg, #3a3a44, #57576a); }
.est__weeks { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--text-4); }
.est__weeks div { display: flex; justify-content: space-between; }
.est__team { display: flex; flex-wrap: wrap; gap: 8px; }
.est__member { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); font-size: 12px; }
.est__member i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--grad-accent); }
.est__total { display: flex; align-items: baseline; gap: 10px; }
.est__total b { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .pw { grid-template-columns: 200px minmax(0, 1fr) 260px; }
  .pw-actions .sim-btn[data-play] { padding: 0 12px; }
}
@media (max-width: 1100px) {
  .pw { grid-template-columns: minmax(0, 1fr); }
  .pw-top { flex-wrap: wrap; }
  .pw-types { flex-basis: 100%; }
  .pw-palette { flex-direction: row; gap: 10px; max-height: none; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .pw-group { display: flex; gap: 6px; }
  .pw-group__label, .pw-palette > .sim-panel__title { display: none; }
  .pw-chip { flex: none; width: auto; white-space: nowrap; }
  .pw-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .aic, .vis, .cre, .auto, .erp, .hr, .app, .kb, .mk, .est { grid-template-columns: 1fr; }
  .aic__chat, .vis__side, .cre__ctrl, .auto__side, .erp__side, .hr__left, .kb__side, .mk__ctrl, .est__ctrl { border: 0; border-top: 1px solid var(--line); }
  .cre__ctrl, .mk__ctrl, .est__ctrl { border-top: 0; border-bottom: 1px solid var(--line); }
  .aic__chat { border-top: 0; }
  .aic__tele { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .sim-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__stage { min-height: 560px; }
  .kb__board { grid-template-columns: repeat(4, 200px); }
  .erp__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .phone { width: 250px; height: 510px; }
  .old__body { grid-template-columns: 1fr; }
  .old__side { display: none; }
  .pw-board { min-height: 0; padding: 14px 12px 40px; }
  .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "core core" "a b" "c d" "e f" "g h"; gap: 12px; }
  .pw-core { width: 150px; margin-bottom: 14px; }
  .pw-st__head small { display: none; }
  .pw-actions { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ UNION — home member preview (choose → enter → dashboard) */
.ud { min-height: 560px; }
.ud-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ud-choose { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.ud-step { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ud-title { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; }
.ud-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ud-type { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; font-size: 13px; transition: translate .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.ud-type span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; background: linear-gradient(135deg, hsl(var(--h) 85% 58% / .5), hsl(var(--h) 80% 30% / .3)); }
.ud-type b { font-weight: 500; line-height: 1.25; }
.ud-type:hover { translate: 0 -2px; background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); }
.ud-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--text-3); }
.ud-note .ic { flex: none; color: var(--accent); }
.ud-note a { color: #fff; }
.ud-enter { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 30px; text-align: center; }
.ud-enter__ring { width: 76px; height: 76px; color: #fff; }
.ud-enter__ring path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: ud-draw 1.6s var(--ease) forwards; }
@keyframes ud-draw { to { stroke-dashoffset: 0; } }
.ud-enter b { font-family: var(--font-display); font-size: 18px; }
.ud-enter__log { display: grid; gap: 6px; min-height: 104px; margin: 0; padding: 0; list-style: none; text-align: left; }
.ud-enter__log li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); animation: log-in .45s var(--ease) both; }
.ud-enter__log .ic { color: #5fe9a0; }
.ud-enter__bar { width: 220px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ud-enter__bar i { display: block; width: 0; height: 100%; background: var(--grad-accent); transition: width .45s var(--ease); }
.ud-dash { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ud-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ud-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ud-id .pw-logo { width: 40px; height: 40px; flex: none; }
.ud-id b { display: block; font-size: 15px; }
.ud-id small { display: block; overflow: hidden; color: var(--text-3); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.ud-tier { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(199, 119, 59, .16); color: #f0b27f; font-size: 11.5px; white-space: nowrap; }
.ud-switch { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.ud-switch:hover { background: #fff; color: #000; }
.ud-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ud-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); color: var(--text-2); font-size: 12.5px; transition: all .3s var(--ease); }
.ud-tabs button em { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(var(--accent-rgb), .2); color: #fff; font-size: 10.5px; font-style: normal; }
.ud-tabs button.is-active { background: #fff; color: #000; }
.ud-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow-y: auto; }
.ud-kpis { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; }
.ud-kpi { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.ud-kpi small { color: var(--text-3); font-size: 11px; }
.ud-kpi b { overflow: hidden; font-family: var(--font-display); font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.ud-kpi span { color: var(--text-3); font-size: 11px; }
.ud-kpi--ring { flex-direction: row; align-items: center; gap: 10px; }
.ud-kpi--ring svg { width: 52px; height: 52px; flex: none; transform: rotate(-90deg); }
.ud-kpi--ring circle { fill: none; stroke-width: 4; }
.ud-kpi--ring .bg { stroke: rgba(255, 255, 255, .08); }
.ud-kpi--ring .fg { stroke: var(--accent); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ud-kpi--ring b { font-size: 24px; }
.ud-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.ud-card { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.ud-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.ud-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12px; }
.ud-link--all { align-self: flex-start; }
.ud-tasks, .ud-perks, .ud-path, .ud-evlist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ud-tasks button, .ud-path button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; transition: background .3s; }
.ud-tasks button:hover, .ud-path button:hover { background: rgba(255, 255, 255, .05); }
.ud-tasks i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); color: transparent; font-size: 12px; transition: all .3s; }
.ud-tasks button:hover i { color: var(--text-3); }
.ud-tasks b, .ud-path b { display: block; font-size: 12.5px; font-weight: 500; }
.ud-tasks small, .ud-path small { display: block; color: var(--text-3); font-size: 11px; line-height: 1.35; }
.ud-perks li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text-4); font-size: 12px; }
.ud-perks li .ic { font-size: 14px; }
.ud-perks li.is-on { background: rgba(var(--accent-rgb), .1); color: #fff; }
.ud-perks li.is-on .ic { color: var(--accent); }
.ud-empty { padding: 10px; color: var(--text-3); font-size: 12px; }
.ud-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.ud-progress b { color: #fff; }
.ud-progress i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ud-progress em { display: block; height: 100%; background: var(--grad-accent); transition: width .6s var(--ease); }
.ud-path li { position: relative; }
.ud-path li + li::before { content: ''; position: absolute; left: 21px; top: -6px; width: 2px; height: 10px; background: var(--line-2); }
.ud-path__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.ud-path li.is-done .ud-path__n { background: #22e07a; color: #04210f; font-size: 13px; }
.ud-path li.is-done b { color: var(--text-3); text-decoration: line-through; }
.ud-events { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.ud-evlist a { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 12px; transition: background .3s; }
.ud-evlist a:hover { background: rgba(255, 255, 255, .05); }
.ud-evlist img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.ud-evlist small { display: block; color: var(--accent); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.ud-evlist b { display: block; overflow: hidden; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.ud-evlist em { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 11px; font-style: normal; }
.ud-cal { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.ud-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; }
.ud-cal__head button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 12px; }
.ud-cal__head button[data-p] .ic { transform: rotate(180deg); }
.ud-cal__dow, .ud-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.ud-cal__dow span { color: var(--text-4); font-family: var(--font-mono); font-size: 9.5px; }
.ud-cal__grid > * { display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; color: var(--text-3); font-size: 11px; }
.ud-cal__grid .has-ev { background: var(--accent); color: #fff; font-weight: 600; }
.ud-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .ud-types, .ud-split, .ud-events, .ud-kpis { grid-template-columns: 1fr; }
  .ud-tier { display: none; }
}

/* ------------------------------------------------------------------ CRE immersive web renderer */
.crw { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 720px; }
.crw__panel { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.crw__label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.crw__tpls { display: flex; flex-wrap: wrap; gap: 6px; }
.crw__tpl { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 12.5px; transition: all .3s var(--ease); }
.crw__tpl:hover { color: #fff; }
.crw__tpl.is-active { background: #fff; color: #0a0a0c; box-shadow: none; }
.crw__input { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: #fff; font: inherit; font-size: 14px; outline: none; }
.crw__input:focus { border-color: rgba(var(--accent-rgb), .7); }
.crw__swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.crw__sw { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.crw__sw:hover { transform: scale(1.12); }
.crw__sw.is-active { outline: 2px solid #fff; outline-offset: 3px; }
.crw__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.crw__seg button { min-height: 34px; padding: 4px 8px; border-radius: 9px; color: var(--text-2); font-size: 12px; line-height: 1.2; }
.crw__seg button.is-active { background: rgba(var(--accent-rgb), .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); }
.crw__range { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.crw__range input { flex: 1; accent-color: var(--accent); }
.crw__render { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-pill); background: var(--grad-accent); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb), .9); transition: transform .3s var(--ease); }
.crw__render:hover { transform: translateY(-2px); }
.crw__log { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-3); }
.crw__log li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; border: 1px solid var(--line-2); vertical-align: 0; transition: all .3s; }
.crw__log li.is-on { color: #fff; }
.crw__log li.is-on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.crw__log li.is-done { color: var(--text-2); }
.crw__log li.is-done::before { background: #22e07a; border-color: #22e07a; }
.crw__stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; }
.crw__browser { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #050506; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.crw__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: #111114; border-bottom: 1px solid var(--line); }
.crw__dots { display: inline-flex; gap: 6px; }
.crw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.crw__dots i:nth-child(2) { background: #febc2e; }
.crw__dots i:nth-child(3) { background: #28c840; }
.crw__url { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; max-width: 360px; height: 26px; margin: 0 auto; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--text-2); font-size: 12px; }
.crw__url .ic { width: 12px; height: 12px; color: #22e07a; }
.crw__fs { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); }
.crw__fs:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.crw__site { position: relative; flex: 1; min-height: 520px; overflow: hidden; background: radial-gradient(70% 70% at 68% 45%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%), #050506; }
.crw__canvas { position: absolute; top: 0; bottom: 0; left: 30%; width: 70%; height: 100%; }
.crw__vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 5, 6, .9) 8%, rgba(5, 5, 6, .25) 55%, transparent); }
.crw__nav { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 22px; padding: 18px 26px; color: rgba(255, 255, 255, .7); font-size: 12.5px; pointer-events: none; }
.crw__nav b { margin-right: auto; font-family: var(--font-display); font-size: 15px; letter-spacing: .14em; color: #fff; }
.crw__nav i { padding: 8px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--brand); color: #fff; font-style: normal; font-size: 12px; }
.crw__hero { position: absolute; left: clamp(22px, 4vw, 56px); top: 50%; z-index: 2; max-width: min(520px, 52%); translate: 0 -50%; transition: transform .35s var(--ease), opacity .4s; pointer-events: none; }
.crw__hero.is-hidden { opacity: 0; }
.crw__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.crw__kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.crw__title { margin: 14px 0 12px; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: #fff; }
.crw__sub { max-width: 40ch; color: rgba(255, 255, 255, .72); font-size: clamp(13px, 1.1vw, 16px); }
.crw__cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 22px; padding: 0 20px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); box-shadow: 0 14px 40px -12px var(--brand); }
.crw__cta .ic { width: 16px; height: 16px; }
.crw__hint { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .5); font-size: 11.5px; pointer-events: none; }
.crw__hint .ic { width: 14px; height: 14px; }
.crw__scan { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(5, 5, 6, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.crw__scan[hidden] { display: none; }
.crw__scan b { position: relative; font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; font-variant-numeric: tabular-nums; }
.crw__scan span { position: relative; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.crw__scan-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--brand) 35%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand) 35%, transparent) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); opacity: .5; }
.crw__scan-grid::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); box-shadow: 0 0 24px 4px var(--brand); animation: crw-scan 1.4s linear infinite; }
@keyframes crw-scan { from { top: 0; } to { top: 100%; } }
.crw__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.crw__stats span { padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 12px; }
.crw__stats b { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .crw { grid-template-columns: 1fr; }
  .crw__panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .crw__render, .crw__log { grid-column: 1 / -1; }
  .crw__log { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .crw__panel { grid-template-columns: 1fr; padding: 16px; }
  .crw__log { display: none; }
  .crw__stage { padding: 12px; }
  .crw__site { min-height: 460px; }
  .crw__canvas { left: 0; width: 100%; }
  .crw__vignette { background: linear-gradient(0deg, rgba(5, 5, 6, .92) 20%, transparent 70%); }
  .crw__nav span { display: none; }
  .crw__hero { top: auto; bottom: 22px; max-width: calc(100% - 44px); translate: none; }
  .crw__hint { display: none; }
}
.sim--crw > .crw { flex: 1; }
.sim--crw input { -webkit-user-select: text; user-select: text; }
.crw__live { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: -8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); color: #fff; font-size: 13.5px; font-weight: 600; transition: background .3s, box-shadow .3s; }
.crw__live:hover { background: rgba(var(--accent-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .8), 0 0 24px -6px rgba(var(--accent-rgb), .8); }
.crw__live .ic { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 1100px) { .crw__live { grid-column: 1 / -1; margin-top: 0; } }

/* ------------------------------------------------------------------ Neutral product palette
   Simulations look like real software: calm monochrome UI, green for healthy states, and Cabeska
   red reserved for the primary action (sim-btn--accent keeps the brand gradient from :root). */
.sim { --accent: #e4e7ee; --accent-rgb: 228, 231, 238; --sim-ok-rgb: 34, 224, 122; }
.sim .sim-btn--accent { color: #fff; }
.sim .sim-btn.is-active:not(.sim-btn--accent) { background: #fff; color: #0a0a0c; }
.hr__heat i { background: rgba(var(--sim-ok-rgb), var(--a, .1)); }
.sim .pulse-dot--accent { background: #22e07a; box-shadow: 0 0 0 0 rgba(34, 224, 122, .5); }

/* ================================================================== Cabeska AI Studio */
.cface { position: relative; color: #8fb0ff; transition: color .8s var(--ease); }
.cface__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cface__halo { transition: opacity .6s; }
.ais { container-type: inline-size; }
.ais__grid { flex: none; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.35fr) minmax(290px, 1fr); gap: 12px; padding: 12px; min-height: 0; height: clamp(680px, calc(100svh - 150px), 880px); }
.ais__brain { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.lab.is-full .ais__grid, .is-pseudo-full .ais__grid { height: calc(100svh - 70px); max-height: none; }
.ais__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 14px 18px; border-radius: 22px; background: radial-gradient(120% 70% at 50% 28%, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 60%), #0b0b0f; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ais__face { width: 100%; max-width: 280px; aspect-ratio: 300 / 340; }
.ais__who { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ais__who b { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; }
.ais__status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.ais__status i { width: 8px; height: 8px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 10px #22e07a; }
.ais__status[data-state="thinking"] i { background: #9678ff; box-shadow: 0 0 12px #9678ff; animation: ais-pulse .7s ease-in-out infinite; }
.ais__status[data-state="speaking"] i { background: #ffb454; box-shadow: 0 0 12px #ffb454; animation: ais-pulse .45s ease-in-out infinite; }
.ais__status[data-state="listening"] i { background: #2edcff; box-shadow: 0 0 12px #2edcff; animation: ais-pulse .9s ease-in-out infinite; }
@keyframes ais-pulse { 50% { transform: scale(1.6); opacity: .6; } }
.ais__mood { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ais__ctrls { display: flex; gap: 8px; }
.ais__ctl { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13px; transition: background .25s, color .25s, box-shadow .25s; }
.ais__ctl .ic { font-size: 15px; }
.ais__ctl.is-on { background: #fff; color: #0b0b0f; box-shadow: none; }
.ais__ctl[data-mic].is-on { background: #2edcff; color: #04151b; box-shadow: 0 0 22px rgba(46, 220, 255, .6); }
.ais__voice { margin: 0; font-size: 11.5px; color: var(--text-3); text-align: center; }

.ais__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 22px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ais__msgs { flex: 1 1 0; min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; overscroll-behavior: contain; }
.ais__msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.ais__msg--ai { align-self: flex-start; background: rgba(255, 255, 255, .06); border-top-left-radius: 6px; }
.ais__msg--you { align-self: flex-end; background: #fff; color: #0b0b0f; border-top-right-radius: 6px; }
.ais__cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ais__card-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; color: #fff; }
.ais__card-link:hover { background: rgba(255, 255, 255, .14); }
.ais__typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.ais__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9678ff; animation: ais-dot 1s ease-in-out infinite; }
.ais__typing i:nth-child(2) { animation-delay: .15s; } .ais__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ais-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: 1; } }
.ais__chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.ais__chips button { flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--text-2); }
.ais__chips button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ais__form { display: flex; gap: 8px; margin: 0 12px 12px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.ais__form input { flex: 1; min-width: 0; padding: 0 14px; background: none; border: 0; color: #fff; font-size: 14.5px; outline: none; }
.ais__form button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0b0b0f; }

.ais__brain { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ais__card { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.ais__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.ais__h em { font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--text-3); }
.ais__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.ais__slot { display: grid; place-items: center; min-height: 40px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .18); color: var(--text-3); font-size: 11.5px; transition: border-color .2s, background .2s; }
.ais__slot.is-over { border-color: #9678ff; background: rgba(150, 120, 255, .12); }
.ais__slot.is-filled { border-style: solid; border-color: transparent; }
.ais__tray { display: flex; flex-wrap: wrap; gap: 6px; }
.ais__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; color: #fff; cursor: grab; touch-action: none; transition: opacity .2s, background .2s; }
.ais__chip .ic { font-size: 13px; color: #b9a8ff; }
.ais__chip:hover { background: rgba(255, 255, 255, .1); }
.ais__chip.is-used { opacity: .3; }
.ais__chip.is-in { width: 100%; justify-content: center; white-space: nowrap; overflow: hidden; padding: 6px 8px; font-size: 11.5px; background: linear-gradient(135deg, rgba(150, 120, 255, .35), rgba(46, 220, 255, .18)); box-shadow: inset 0 0 0 1px rgba(150, 120, 255, .6), 0 0 18px -6px #9678ff; cursor: pointer; }
.ais__chip.is-in i { display: inline-grid; opacity: .7; } .ais__chip.is-in i .ic { color: #fff; font-size: 11px; }
.ais__ghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px #9678ff; background: #17151f; }
.ais__card--net { background: radial-gradient(120% 90% at 50% 30%, rgba(150, 120, 255, .08), transparent 70%), rgba(255, 255, 255, .02); }
.ais__net { display: block; width: 100%; height: 236px; }
.ais__layers { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ais__tokens { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; margin-top: 10px; }
.ais__tk { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 7px; border-radius: 7px; background: hsla(var(--h, 250), 80%, 60%, .16); box-shadow: inset 0 0 0 1px hsla(var(--h, 250), 80%, 65%, .35); font-family: var(--font-mono); font-size: 11px; color: #fff; animation: ais-tk .3s var(--ease); }
.ais__tk sub { font-size: 8.5px; color: var(--text-3); }
.ais__tk--hint { background: none; box-shadow: none; color: var(--text-3); font-family: inherit; animation: none; padding-left: 0; }
.ais__tk--n { background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--text-2); }
@keyframes ais-tk { from { transform: translateY(4px) scale(.9); opacity: 0; } }
.ais__params { display: grid; gap: 8px; margin: 0; }
.ais__params div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
.ais__params dt { font-size: 12px; color: var(--text-2); }
.ais__params dd { display: flex; align-items: center; gap: 8px; margin: 0; }
.ais__params dd i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ais__params dd b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #9678ff, #2edcff); box-shadow: 0 0 10px rgba(150, 120, 255, .8); transition: width .8s var(--ease); }
.ais__params dd span { width: 38px; text-align: right; font-family: var(--font-mono); font-size: 11px; color: #fff; }
.ais__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.ais__facts b { display: block; color: #fff; font-weight: 500; font-size: 12.5px; }
.ais__probs { display: grid; gap: 6px; }
.ais__probs div { display: grid; grid-template-columns: 80px minmax(0, 1fr) 36px; align-items: center; gap: 8px; font-size: 12px; }
.ais__probs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); color: var(--text-2); }
.ais__probs i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ais__probs b { display: block; height: 100%; background: rgba(255, 255, 255, .35); transition: width .25s; }
.ais__probs em { font-style: normal; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.ais__probs .is-pick span { color: #fff; }
.ais__probs .is-pick b { background: linear-gradient(90deg, #ffb454, #ff6a3c); box-shadow: 0 0 10px rgba(255, 150, 80, .7); }
@container (max-width: 1060px) {
  .ais__grid { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr); height: auto; }
  .ais__chat { height: 640px; }
  .ais__brain { overflow: visible; }
  .ais__brain { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .ais__grid { grid-template-columns: 1fr; padding: 8px; }
  .ais__stage { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ais__face { max-width: 180px; }
  .ais__brain { grid-template-columns: 1fr; }
}

.ais__wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; max-width: 220px; height: 34px; }
.ais__wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(180deg, currentColor, rgba(255, 255, 255, .25)); color: #8fb0ff; transform: scaleY(.1); transform-origin: 50% 50%; }
.ais__stage:has(.cface[data-face-mood="happy"]) .ais__wave i, .ais__stage:has(.cface[data-face-mood="excited"]) .ais__wave i { color: #ffb454; }
.ais__stage:has(.cface[data-face-state="thinking"]) .ais__wave i { color: #9678ff; }
@container (max-width: 640px) { .ais__msgs { flex: none; height: 380px; } }

/* ================================================================== AI Automation studio (neutral, Shortcuts style) */
.wfs { container-type: inline-size; }
.wfs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wfs__tpls { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.wfs__tpls button { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); transition: background .25s, color .25s; }
.wfs__tpls button.is-on { background: #fff; color: #0b0b0f; }
.wfs__sp { flex: 1; }
.wfs__vol { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.wfs__vol input { width: 110px; accent-color: #fff; }
.wfs__vol b { min-width: 34px; color: #fff; font-family: var(--font-mono); font-size: 12px; }
.wfs__run { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; background: #fff; color: #0b0b0f; font-weight: 600; font-size: 13.5px; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .6); }
.wfs__run .ic { font-size: 14px; }
.wfs.is-running .wfs__run { opacity: .5; pointer-events: none; }
.wfs__grid { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; min-height: 0; }
.wfs__lib { padding: 14px; border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.wfs__group + .wfs__group { margin-top: 14px; }
.wfs__group h4 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.wfs__blk { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin-bottom: 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: #fff; text-align: left; cursor: grab; touch-action: none; transition: background .2s, transform .2s; }
.wfs__blk:hover { background: rgba(255, 255, 255, .07); }
.wfs__blk .ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.wfs__blk--trigger .ic, .wfs__card--trigger .wfs__ic { color: #7ee2a8; background: rgba(126, 226, 168, .12); }
.wfs__blk--ai .ic, .wfs__card--ai .wfs__ic { color: #b9a8ff; background: rgba(185, 168, 255, .13); }
.wfs__blk--logic .ic, .wfs__card--logic .wfs__ic { color: #ffd38a; background: rgba(255, 211, 138, .12); }
.wfs__blk--action .ic, .wfs__card--action .wfs__ic { color: #9cc7ff; background: rgba(156, 199, 255, .12); }
.wfs__hint { margin: 12px 0 0; font-size: 11.5px; color: var(--text-3); }
.wfs__flow { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 18px 40px; overflow-y: auto; max-height: 640px; background: radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .035), transparent 70%); transition: background .3s; }
.wfs__flow.is-over { background: radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%); }
.wfs__flow.is-shake { animation: wfs-shake .4s; }
@keyframes wfs-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wfs__drop-empty { display: grid; place-items: center; width: 100%; max-width: 440px; min-height: 120px; border-radius: 18px; border: 1.5px dashed rgba(255, 255, 255, .2); color: var(--text-3); font-size: 13px; }
.wfs__card { position: relative; flex: none; display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 460px; padding: 14px 40px 14px 12px; border-radius: 18px; background: #141418; box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 34px -22px #000; transition: box-shadow .35s var(--ease), background .35s, opacity .2s; }
.wfs__card.is-lifted { opacity: .35; }
.wfs__grip { align-self: center; color: var(--text-3); font-size: 12px; letter-spacing: -2px; cursor: grab; touch-action: none; padding: 4px 2px; }
.wfs__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
.wfs__txt { display: grid; gap: 2px; min-width: 0; }
.wfs__txt small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.wfs__txt b { font-size: 14px; font-weight: 600; }
.wfs__txt em { font-style: normal; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.wfs__o { font-family: var(--font-mono); font-size: 11.5px; color: #7ee2a8; line-height: 1.45; }
.wfs__o:empty { display: none; }
.wfs__x { position: absolute; right: 10px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--text-3); opacity: 0; transition: opacity .2s, background .2s; }
.wfs__card:hover .wfs__x { opacity: 1; }
.wfs__x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wfs__x .ic { font-size: 12px; }
.wfs__card.is-active { background: #1a1a20; box-shadow: inset 0 0 0 1.5px #fff, 0 0 40px -8px rgba(255, 255, 255, .35); }
.wfs__card.is-active::after { content: ''; position: absolute; right: 12px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: tl-spin .7s linear infinite; }
.wfs__card.is-wait { box-shadow: inset 0 0 0 1.5px #ffd38a, 0 0 40px -8px rgba(255, 211, 138, .5); }
.wfs__card.is-wait::after { display: none; }
.wfs__card.is-done { box-shadow: inset 0 0 0 1px rgba(126, 226, 168, .45); }
.wfs__card.is-done::before { content: '✓'; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #7ee2a8; color: #0b0b0f; font-size: 11px; font-weight: 700; }
.wfs__card.is-done .wfs__x { display: none; }
.wfs__approve { padding: 5px 12px; border-radius: 999px; background: #ffd38a; color: #1a1204; font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.wfs__link { position: relative; display: block; flex: none; width: 2px; height: 22px; background: rgba(255, 255, 255, .14); }
.wfs__link b { position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; opacity: 0; }
.wfs__link.is-flow b { animation: wfs-packet .35s linear forwards; }
@keyframes wfs-packet { 0% { top: -4px; opacity: 1; } 100% { top: 18px; opacity: 1; } }
.wfs__marker { position: absolute; left: 50%; width: min(460px, calc(100% - 36px)); height: 3px; margin-left: calc(min(460px, calc(100% - 36px)) / -2); border-radius: 3px; background: #fff; box-shadow: 0 0 14px #fff; pointer-events: none; }
.wfs__ghost { position: fixed; left: 0; top: 0; z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; background: #1c1c22; color: #fff; font-size: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
.wfs__ghost .ic { width: 22px; height: 22px; }
.wfs__out { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--line); min-height: 0; }
.wfs__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wfs__kpis div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.wfs__kpis small { display: block; font-size: 11px; color: var(--text-3); }
.wfs__kpis b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.wfs__h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.wfs__res { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 460px; min-height: 200px; }
.wfs__empty { margin: auto; color: var(--text-3); font-size: 13px; text-align: center; }
.wfs__r { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.wfs__r small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.wfs__r small .ic { font-size: 13px; }
.wfs__r p { margin: 6px 0 0; line-height: 1.5; }
.wfs__r--in { background: rgba(255, 255, 255, .02); }
.wfs__r--chat { background: #1b2a22; box-shadow: inset 0 0 0 1px rgba(126, 226, 168, .25); }
.wfs__r--doc, .wfs__r--row, .wfs__r--done { display: flex; align-items: center; gap: 12px; }
.wfs__r--row > .ic { flex: none; font-size: 18px; color: var(--text-2); }
.wfs__r b { display: block; font-size: 13px; }
.wfs__pdf { display: grid; place-items: center; flex: none; width: 38px; height: 46px; border-radius: 6px; background: #fff; color: #c8231c; font-size: 10px; font-weight: 800; box-shadow: 0 6px 16px -8px #000; }
.wfs__r--done { background: rgba(126, 226, 168, .1); box-shadow: inset 0 0 0 1px rgba(126, 226, 168, .4); }
.wfs__r--done > .ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #7ee2a8; color: #0b0b0f; }
@container (max-width: 1080px) { .wfs__grid { grid-template-columns: 220px minmax(0, 1fr); } .wfs__out { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } .wfs__res { max-height: 360px; } }
@container (max-width: 640px) {
  .wfs__grid { grid-template-columns: 1fr; }
  .wfs__lib { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; }
  .wfs__group { flex: none; display: flex; gap: 6px; margin: 0 !important; }
  .wfs__group h4, .wfs__hint { display: none; }
  .wfs__blk { width: auto; white-space: nowrap; margin: 0; }
  .wfs__flow { max-height: none; }
  .wfs__vol { width: 100%; }
}

.ais__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.ais__legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.ais__legend i.w { background: #ffaa50; box-shadow: 0 0 6px #ffaa50; } .ais__legend i.c { background: #6ea0ff; box-shadow: 0 0 6px #6ea0ff; }
.ais__legend span:last-child { flex-basis: 100%; color: var(--text-2); font-family: var(--font-mono); font-size: 10.5px; }
.ais__out { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ais__out div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 42px; align-items: center; gap: 8px; font-size: 12px; }
.ais__out span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ais__out i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ais__out b { display: block; height: 100%; background: rgba(255, 255, 255, .35); transition: width .5s var(--ease); }
.ais__out em { font-style: normal; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.ais__out .is-pick span { color: #fff; } .ais__out .is-pick b { background: linear-gradient(90deg, #9678ff, #2edcff); box-shadow: 0 0 10px rgba(150, 120, 255, .7); } .ais__out .is-pick em { color: #fff; }
.ais__tk sub { color: rgba(255, 255, 255, .7); }
.ais__ctl--lang { min-width: 48px; justify-content: center; padding: 0 10px; font-family: var(--font-mono); font-size: 12px; }

/* ================================================================== Business Pathway: three calm steps (Apple style) */
.pwa { container-type: inline-size; }
.pwa__steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.pwa__steps button { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--text-3); font-size: 13.5px; font-weight: 500; transition: color .3s, background .3s; }
.pwa__steps button i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-style: normal; font-size: 12px; font-weight: 600; }
.pwa__steps button.is-on { color: #fff; background: rgba(255, 255, 255, .06); }
.pwa__steps button.is-on i { background: #fff; color: #0b0b0f; box-shadow: none; }
.pwa__steps button.is-done { color: var(--text-2); }
.pwa__steps button.is-done i { background: #30d158; color: #04140a; box-shadow: none; }
.pwa__steps > b { width: 36px; height: 1px; background: var(--line-2); }
.pwa__stage { flex: 1; padding: clamp(18px, 3vw, 36px); }
.pwa__pane { display: flex; flex-direction: column; gap: 22px; max-width: 1080px; margin: 0 auto; }
.pwa__intro h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.pwa__intro p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.pwa__intro--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pwa__types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pwa__type { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.pwa__type:hover { background: rgba(255, 255, 255, .06); }
.pwa__type b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pwa__emo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: linear-gradient(145deg, hsla(var(--h), 90%, 60%, .28), hsla(var(--h), 90%, 40%, .08)); box-shadow: inset 0 0 0 1px hsla(var(--h), 90%, 70%, .25); }
.pwa__type.is-on { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px #fff, 0 20px 40px -24px hsla(var(--h), 90%, 60%, .9); }
.pwa__namebar { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.pwa__logo, .pwa__brand { flex: none; width: 60px; height: 60px; }
.pwa__logo .pw-logo, .pwa__brand .pw-logo { width: 100%; height: 100%; }
.pwa__name { flex: 1; display: grid; gap: 4px; min-width: 0; }
.pwa__name span { font-size: 12px; color: var(--text-3); }
.pwa__name input { width: 100%; padding: 0; background: none; border: 0; outline: none; color: #fff; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.pwa__next { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: #0b0b0f; font-size: 14px; font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s; }
.pwa__next:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .6); }
.pwa__next .ic { font-size: 15px; }
.pwa__ghost { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; font-size: 13px; }
.pwa__ghost .ic { font-size: 14px; }
.pwa__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pwa__group { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.pwa__gh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pwa__gh b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.pwa__gh small { color: var(--text-3); font-size: 12.5px; }
.pwa__mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pwa__mod { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 10px; align-items: start; padding: 12px 36px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background .25s, box-shadow .25s; }
.pwa__mod:hover { background: rgba(255, 255, 255, .06); }
.pwa__mi { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .07); color: var(--text-2); font-size: 17px; transition: background .25s, color .25s; }
.pwa__mod b { font-size: 13.5px; font-weight: 600; }
.pwa__mod small { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.pwa__mod em { position: absolute; right: 12px; bottom: 10px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.pwa__tick { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); color: transparent; font-size: 11px; transition: all .25s; }
.pwa__mod.is-rec { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px); }
.pwa__mod.is-rec .pwa__tick { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); border: 1.5px dashed rgba(255, 255, 255, .35); box-shadow: none; }
.pwa__mod.is-on { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.pwa__mod.is-on .pwa__mi { background: #fff; color: #0b0b0f; }
.pwa__mod.is-on .pwa__tick { background: #30d158; color: #04140a; box-shadow: none; border: 0; }
.pwa__bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 22px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(20, 20, 26, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px #000; font-size: 13px; color: var(--text-2); }
.pwa__bar b { color: #fff; font-family: var(--font-display); font-size: 17px; margin-right: 4px; }
.pwa__bar .pwa__next { margin-left: auto; }
.pwa__journey { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.pwa__plan, .pwa__side > * { border-radius: 22px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.pwa__plan { padding: 18px; }
.pwa__plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pwa__brand { width: 52px; height: 52px; }
.pwa__plan-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.pwa__plan-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.pwa__play { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: #0b0b0f; font-size: 13.5px; font-weight: 600; flex: none; }
.pwa__play .ic { font-size: 13px; }
.pwa.is-playing .pwa__play { opacity: .45; pointer-events: none; }
.pwa__gantt { position: relative; --lab: 150px; }
.pwa__g-head, .pwa__g-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; }
.pwa__g-head { margin-bottom: 6px; }
.pwa__g-head > div { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); }
.pwa__g-head em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); padding-left: 4px; border-left: 1px solid var(--line); }
.pwa__g-row { min-height: 48px; border-top: 1px solid var(--line); }
.pwa__g-row > span { display: grid; padding-right: 12px; }
.pwa__g-row b { font-size: 13px; font-weight: 600; }
.pwa__g-row small { font-size: 11px; color: var(--text-3); }
.pwa__g-lane { position: relative; height: 100%; min-height: 48px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px calc(100% / var(--weeks))); }
.pwa__g-bar { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); overflow: hidden; }
.pwa__g-bar i { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 7px; border-radius: 7px; background: rgba(0, 0, 0, .3); font-style: normal; font-size: 11px; white-space: nowrap; transition: background .3s, color .3s; }
.pwa__g-bar i .ic { font-size: 12px; }
.pwa__g-bar i.is-done { background: #30d158; color: #04140a; }
.pwa__g-now { position: absolute; top: 18px; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
.pwa__edit { margin-top: 14px; }
.pwa__side { display: grid; gap: 12px; }
.pwa__rings { position: relative; display: grid; place-items: center; padding: 18px; }
.pwa__rings svg { width: min(200px, 100%); height: auto; filter: drop-shadow(0 0 16px rgba(255, 255, 255, .06)); }
.pwa__rings-c { position: absolute; display: grid; justify-items: center; }
.pwa__rings-c b { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; }
.pwa__rings-c small { font-size: 11px; color: var(--text-3); }
.pwa__legend { display: grid; gap: 8px; margin: 0; padding: 14px 16px; list-style: none; }
.pwa__legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pwa__legend i { width: 10px; height: 10px; border-radius: 50%; }
.pwa__legend span { flex: 1; color: var(--text-2); }
.pwa__legend b { font-family: var(--font-mono); font-size: 12px; }
.pwa__preview:empty { display: none; }
.pwa__preview { padding: 12px; overflow: hidden; }
.pwa__pv { margin: 0; width: 100%; }
.pwa__fit { display: grid; gap: 6px; padding: 16px; border-radius: 22px; background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line-2); }
.pwa__fit small { font-size: 11.5px; color: var(--text-3); }
.pwa__fit b { font-family: var(--font-display); font-size: 20px; }
.pwa__fit em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.pwa__fit p { margin: 0 0 6px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pwa__fit .pwa__next { justify-self: start; height: 40px; font-size: 13px; }
@container (max-width: 900px) {
  .pwa__types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pwa__groups, .pwa__journey { grid-template-columns: 1fr; }
}
@container (max-width: 560px) {
  .pwa__steps span { display: none; }
  .pwa__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pwa__namebar { flex-wrap: wrap; }
  .pwa__namebar .pwa__next { width: 100%; justify-content: center; }
  .pwa__mods { grid-template-columns: 1fr; }
  .pwa__bar { flex-wrap: wrap; gap: 10px 16px; border-radius: 20px; }
  .pwa__bar .pwa__next { width: 100%; justify-content: center; }
  .pwa__gantt { --lab: 84px; }
  .pwa__g-row small { display: none; }
  .pwa__g-names { font-size: 10.5px; }
  .pwa__plan-head { flex-wrap: wrap; }
  .pwa__play { margin-left: 0; }
}

.pwa__g-bar { justify-content: flex-start; min-width: 30px; }
.pwa__g-bar i { width: 24px; height: 24px; justify-content: center; padding: 0; }
.pwa__g-names { position: absolute; top: 50%; translate: 0 -50%; padding: 0 8px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; pointer-events: none; }

.pwa__g-list { display: none; margin: 12px 0 0; padding: 0; list-style: none; }
@container (max-width: 560px) {
  .pwa__g-names { display: none; }
  .pwa__g-list { display: grid; gap: 6px; }
  .pwa__g-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; }
  .pwa__g-list span { color: var(--text-2); }
  .pwa__g-list em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
  .pwa__g-row small { display: none; }
}

/* ================================================================== Growth studio: campaign planner + AI insights */
.gro { container-type: inline-size; }
.gro__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gro__seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.gro__seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: background .25s, color .25s; }
.gro__seg button.is-on { background: #fff; color: #0b0b0f; }
.gro__seg .ic { font-size: 14px; }
.gro__biz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.gro__biz button { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; color: var(--text-2); }
.gro__biz button.is-on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.gro .mk__stage i { background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); }
.gai { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 12px; padding: 12px; min-height: 0; }
.gai__main { display: grid; gap: 12px; align-content: start; }
.gai__card { padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.gai__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gai__h small { display: block; font-size: 11.5px; color: var(--text-3); }
.gai__h b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.gai__pill { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: #6ee68f; font-size: 12px; font-weight: 600; }
.gai__pill.is-down { background: rgba(255, 69, 58, .14); color: #ff8a80; }
.gai__chart { display: block; width: 100%; height: 200px; overflow: visible; }
.gai__axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.gai__axis .is-fc { color: #2edcff; }
.gai__note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); }
.gai__stock { display: grid; gap: 8px; }
.gai__si { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 70px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .025); }
.gai__si b { display: block; font-size: 13.5px; font-weight: 600; }
.gai__si small { display: block; font-size: 11.5px; color: var(--text-3); }
.gai__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gai__bar i { display: block; height: 100%; border-radius: 3px; background: #30d158; }
.gai__si.is-soon .gai__bar i { background: #ffd60a; } .gai__si.is-urgent .gai__bar i { background: #ff453a; }
.gai__si em { font-style: normal; text-align: right; font-family: var(--font-mono); font-size: 12px; }
.gai__si.is-urgent em { color: #ff8a80; }
.gai__feed { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.gai__filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gai__filters button { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.gai__filters button.is-on { background: #fff; color: #0b0b0f; box-shadow: none; }
.gai__list { display: grid; gap: 8px; align-content: start; max-height: 620px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.gai__s { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.gai__si-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 18px; }
.gai__s--cust .gai__si-ic { color: #ff9ecb; } .gai__s--ana .gai__si-ic { color: #9cc7ff; } .gai__s--inv .gai__si-ic { color: #ffd38a; } .gai__s--stock .gai__si-ic { color: #7ee2a8; } .gai__s--bday .gai__si-ic { color: #ff9f6a; }
.gai__s.is-urgent { box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .45); }
.gai__s b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.gai__s p { margin: 5px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.gai__msg { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #1b2a22; color: #e8f5ec !important; }
.gai__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.gai__foot em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.gai__foot button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #0b0b0f; font-size: 12.5px; font-weight: 600; }
.gai__foot button.is-done { background: rgba(48, 209, 88, .16); color: #6ee68f; }
.gai__foot button .ic { font-size: 13px; }
.gai__empty { margin: 20px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.gai__disc { margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }
@container (max-width: 900px) { .gai { grid-template-columns: 1fr; } .gai__list { max-height: none; } }
@container (max-width: 520px) { .gai__si { grid-template-columns: minmax(0, 1fr) 64px; } .gai__bar { grid-column: 1 / -1; grid-row: 2; } .gro__biz span { display: none; } }

/* ------------------------------------------------------------------ Cabeska AI Studio v2: hologram, live stream, real telemetry */
.ais--v2 { --ais-mood: #8fb0ff; }
.ais--v2 .ais__grid { grid-template-columns: minmax(300px, 1.05fr) minmax(0, 1.3fr) minmax(270px, .9fr); }
.ais--v2 .ais__stage { justify-content: flex-end; gap: 10px; padding: 0 14px 16px; background: radial-gradient(90% 60% at 50% 34%, color-mix(in srgb, var(--ais-mood) 16%, transparent), transparent 70%), radial-gradient(120% 80% at 50% 110%, rgba(255, 255, 255, .05), transparent 60%), #07070b; transition: background .8s ease; }
.ais__backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ais__backdrop i { position: absolute; left: 50%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ais-mood) 22%, transparent); transform: translateX(-50%); transition: border-color .8s ease; }
.ais__backdrop i:nth-child(1) { top: 7%; width: 78%; aspect-ratio: 1; }
.ais__backdrop i:nth-child(2) { top: 13%; width: 62%; aspect-ratio: 1; border-style: dashed; opacity: .6; animation: ais-spin 60s linear infinite; }
.ais__backdrop i:nth-child(3) { bottom: -58%; width: 170%; aspect-ratio: 1; border-color: rgba(255, 255, 255, .05); background: repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px); }
@keyframes ais-spin { to { transform: translateX(-50%) rotate(360deg); } }
.ais--v2 .ais__face { position: relative; flex: 1 1 auto; width: 100%; max-width: none; min-height: 300px; aspect-ratio: auto; }
.ais--v2 .ais__face.holo .holo__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ais--v2 .ais__face.cface { flex: none; width: 100%; max-width: 280px; min-height: 0; aspect-ratio: 300 / 340; margin: 56px auto 0; }
.ais__hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 2; }
.ais--v2 .ais__status { padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); }
.ais__engine { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ais__engine.is-live { color: #5fe9a0; box-shadow: inset 0 0 0 1px rgba(34, 224, 122, .35); }
.ais__caption { position: absolute; left: 16px; right: 16px; bottom: 196px; z-index: 2; margin: 0; text-align: center; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .42); text-shadow: 0 2px 14px #000; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.ais__caption.is-on { opacity: 1; transform: none; }
.ais__caption span { transition: color .15s ease; }
.ais__caption span.is-said { color: #fff; }
.ais__dock { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; width: 100%; }
.ais--v2 .ais__who { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ais--v2 .ais__who b { font-size: 19px; }
.ais--v2 .ais__wave i { color: var(--ais-mood); transition: color .6s ease; }
.ais--v2 .ais__ctrls { flex-wrap: wrap; justify-content: center; }
.ais--v2 .ais__ctl[data-handsfree].is-on { background: #3ce6a0; color: #04150d; box-shadow: 0 0 22px rgba(60, 230, 160, .5); }
.ais__voicepick { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.ais__voicepick select { max-width: 200px; height: 30px; padding: 0 26px 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 12px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.ais__voicepick select:focus-visible { outline: 2px solid var(--ais-mood); }

.ais--v2 .ais__msg { white-space: normal; }
.ais--v2 .ais__msg p { margin: 0; }
.ais--v2 .ais__msg p + p, .ais--v2 .ais__msg p + ul, .ais--v2 .ais__msg ul + p { margin-top: 8px; }
.ais--v2 .ais__msg ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ais--v2 .ais__msg b { color: #fff; }
.ais--v2 .ais__msg--ai.is-typing { padding: 0; background: none; }
.ais--v2 .ais__msg--ai a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ais__path { display: inline-flex; align-items: center; gap: 4px; margin: 1px 2px; padding: 1px 9px 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ais-mood) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ais-mood) 45%, transparent); color: #fff !important; font-family: var(--font-mono); font-size: 12px; text-decoration: none !important; white-space: nowrap; vertical-align: 1px; transition: background .2s; }
.ais__path:hover { background: color-mix(in srgb, var(--ais-mood) 34%, transparent); }
.ais__path .ic { font-size: 11px; }
.ais__caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; border-radius: 2px; background: var(--ais-mood); vertical-align: -2px; animation: ais-caret .8s steps(2) infinite; }
@keyframes ais-caret { 50% { opacity: 0; } }
.ais__note { align-self: stretch; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 197, 61, .08); color: #ffd666; font-size: 12.5px; }
.ais__fine { margin: -4px 16px 10px; font-size: 11px; color: var(--text-3); text-align: center; }
.ais--v2 .ais__form button.is-stop { background: #ff5a67; color: #fff; }

.ais__pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.ais__pipe li { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; color: var(--text-3); transition: all .3s ease; }
.ais__pipe li .ic { font-size: 15px; }
.ais__pipe li.is-done { color: var(--text-2); }
.ais__pipe li.is-on { color: #fff; background: color-mix(in srgb, var(--ais-mood) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ais-mood) 60%, transparent), 0 0 18px color-mix(in srgb, var(--ais-mood) 30%, transparent); }
.ais__river { display: block; width: 100%; height: 74px; margin-bottom: 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.ais__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.ais__metrics div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.ais__metrics dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ais__metrics dd { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #fff; }
.ais__journey { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; align-items: center; }
.ais__journey i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: ais-pop .4s ease; }
.ais__journey-hint { font-size: 12px; color: var(--text-3); }
@keyframes ais-pop { from { transform: scale(0); } }
.ais--v2 .ais__brain { display: grid; align-content: start; gap: 12px; }

@container (max-width: 1060px) {
  .ais--v2 .ais__grid { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr); }
  .ais--v2 .ais__stage { min-height: 640px; }
}
@container (max-width: 640px) {
  .ais--v2 .ais__grid { grid-template-columns: 1fr; }
  .ais--v2 .ais__stage { flex-direction: column; flex-wrap: nowrap; min-height: 560px; }
  .ais--v2 .ais__face { min-height: 330px; }
  .ais__caption { bottom: 206px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ais__backdrop i, .ais__caret { animation: none; } }
