
.app-shell, .vis-inbox, .vis-table, .vis-flow, .vis-builder, .vis-dash, .vis-report, .vis-notes, .vis-assign, .vis-profile { font-size: 14px; line-height: 1.43; }
.nav-tile { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-tile); background: var(--tone-bg); color: var(--tone-fg); font-size: 13px; }
.btn--xs { --h: 28px; gap: 4px; padding: 0 8px; font-size: 12px; }
.btn--icon { width: var(--h); padding: 0; }
.btn--success { background: var(--success); color: #fff; box-shadow: var(--shadow-xs); }
.app-input { display: flex; align-items: center; gap: 8px; height: 36px; min-width: 0; padding: 0 12px; overflow: hidden; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--background); box-shadow: var(--shadow-xs); white-space: nowrap; }
.app-input > .i { font-size: 16px; color: var(--muted-foreground); }
.app-input--sm { height: 32px; padding: 0 10px; font-size: 13px; }
.app-input--area { align-items: flex-start; height: auto; min-height: 76px; padding: 8px 12px; white-space: normal; }
.app-select { justify-content: space-between; }
.app-placeholder { color: var(--muted-foreground); }
.app-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.app-label { font-weight: 500; line-height: 1; }
.app-swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tone-solid); }
.app-swatch:not([data-tone]) { background: var(--primary); }
.app-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--muted); color: var(--muted-foreground); font: 500 11px/1 var(--font-sans); }
.app-tabs { display: inline-flex; justify-self: start; gap: 2px; max-width: 100%; height: 36px; padding: 3px; overflow: hidden; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); }
.app-tabs > span { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; white-space: nowrap; }
.app-tabs > [aria-current] { border-color: var(--border); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.app-tabs .i { font-size: 16px; }
.app-tabs small { color: var(--muted-foreground); font-size: 12px; }
.app-page-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.app-card-head { padding: 20px 20px 0; }
.app-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.app-card-desc { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; line-height: 1.375; }

.app-shell .frame__main { flex-direction: column; height: 640px; }
.app-switch { display: flex; align-items: center; gap: 10px; margin: 8px; padding: 8px; border-radius: var(--radius-lg); }
.app-switch__logo { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-tile); background: var(--background); color: var(--foreground); font-size: 18px; }
.app-switch .meta { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.app-switch b, .app-switch small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-switch b { color: var(--foreground); font-weight: 600; }
.app-switch small { color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); font-size: 12px; }
.app-switch > .i { font-size: 16px; color: color-mix(in oklab, var(--sidebar-foreground) 60%, transparent); }
.app-me { padding: 8px; border-top: 1px solid var(--sidebar-border); }
.app-me .app-switch { margin: 0; }
.app-me b { font-weight: 500; }
.app-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0; padding: 0 8px 8px; overflow: hidden; }
.app-nav__group { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.app-nav__label { display: flex; align-items: center; height: 32px; padding: 0 8px; color: color-mix(in oklab, var(--sidebar-foreground) 65%, transparent); font-size: 12px; font-weight: 500; }
.app-nav__link { display: flex; flex: none; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--radius-md); white-space: nowrap; }
.app-nav__link[aria-current] { background: var(--sidebar-accent); color: var(--foreground); font-weight: 500; }
.app-nav__link > .i { margin-left: auto; font-size: 16px; color: color-mix(in oklab, var(--sidebar-foreground) 60%, transparent); }

.app-top { display: flex; flex: none; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.app-top > .btn:first-child { margin-left: -4px; }
.app-top__sep { flex: none; width: 1px; height: 16px; margin: 0 4px; background: var(--border); }
.app-top__crumb { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.app-top__end { display: flex; gap: 4px; }
.app-inbox { display: flex; flex: 1; min-height: 0; }

.app-list { display: flex; flex: none; flex-direction: column; width: 312px; border-right: 1px solid var(--border); }
.app-list__tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); }
.app-list__search { display: flex; gap: 8px; }
.app-list__search > .app-input:first-child { flex: 1; }
.app-list__sort { flex: none; width: 112px; }
.app-status { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-lg); background: var(--muted); }
.app-status > span { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 28px; padding: 0 4px; border: 1px solid transparent; border-radius: var(--radius-md); color: var(--muted-foreground); font-size: 12px; font-weight: 500; white-space: nowrap; }
.app-status > [aria-current] { border-color: var(--border); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.app-status small { color: var(--muted-foreground); font-size: 11px; font-variant-numeric: tabular-nums; }
.app-list__rows { flex: 1; min-height: 0; padding: 8px; overflow: hidden; }
.conv { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: var(--radius-lg); }
.conv + .conv { margin-top: 2px; }
.conv[aria-current] { background: var(--accent); }
.conv__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.conv__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conv__row > b, .conv__row > small, .conv__last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__row > b { font-weight: 500; }
.conv__row > small { color: var(--muted-foreground); font-size: 12px; line-height: 16px; }
.conv__row > time { flex: none; margin-left: auto; color: var(--muted-foreground); font-size: 12px; }
.conv__flag { flex: none; margin-left: auto; padding: 0 6px; border: 1px solid var(--tone-border); border-radius: var(--radius-sm); background: var(--tone-bg); color: var(--tone-fg); font-size: 11px; font-weight: 500; line-height: 16px; }
.conv__last { color: var(--muted-foreground); font-size: 13px; }
.conv__last .i { display: inline-block; margin-right: 4px; font-size: 14px; vertical-align: -2px; }

.app-chat { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.app-chat__head { display: flex; flex: none; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.app-chat__head .meta, .app-info__head .meta { display: grid; flex: 1; min-width: 0; }
.app-chat__head b, .app-info__head b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.app-chat__head small, .app-info__head small { overflow: hidden; color: var(--muted-foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-chat__back, .app-chat__details { display: none; }
.app-msgs { flex: 1; justify-content: flex-end; gap: 16px; min-height: 0; padding: 20px 16px; overflow: hidden; }
.app-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 85%; }
.app-msg > .avatar { margin-top: 20px; }
.app-msg--me { flex-direction: row-reverse; margin-left: auto; }
.app-msg__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.app-msg--me .app-msg__body { align-items: flex-end; }
.app-msg__meta { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; color: var(--muted-foreground); font-size: 12px; line-height: 16px; }
.app-msg__meta b { color: var(--foreground); font-weight: 500; }
.app-msg__text { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px 16px 16px; background: var(--card); line-height: 1.625; overflow-wrap: break-word; }
.app-msg--me .app-msg__text { border-color: transparent; border-radius: 16px 8px 16px 16px; background: var(--primary); color: var(--primary-foreground); }
.app-msg__status { padding: 0 4px; color: var(--muted-foreground); font-size: 11px; }
.app-typing { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 12px; }
.app-typing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-foreground); animation: app-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes app-pulse { 50% { opacity: .5; } }
.app-composer { flex: none; margin: 0 16px 16px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: var(--background); box-shadow: var(--shadow-xs); }
.app-composer__input { min-height: 64px; padding: 12px 12px 0; color: var(--muted-foreground); line-height: 1.625; }
.app-composer__actions { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; }
.app-composer__hint { margin-left: auto; color: var(--muted-foreground); font-size: 12px; }

.app-info { flex: none; width: 288px; overflow: hidden; border-left: 1px solid var(--border); }
.app-info__head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.app-info__head small { font-size: 13px; }
.app-sec { padding: 16px; border-bottom: 1px solid var(--border); }
.app-sec__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 500; }
.app-sec__actions { display: flex; gap: 8px; }
.app-sec__actions .btn { flex: 1; }
.app-row { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; font-size: 13px; }
.app-row > .i { font-size: 16px; color: var(--muted-foreground); }
.app-row__label { color: var(--muted-foreground); }
.app-row__value { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; font-weight: 500; }
.app-row__value > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-inline { display: flex; gap: 8px; margin: 4px 0 8px; }
.app-inline .app-input { flex: 1; height: 32px; font-size: 13px; }
.app-saved { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 12px; font-weight: 500; }
.app-saved .i { font-size: 14px; }
.app-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-form .is-wide, .app-form__end { grid-column: 1 / -1; }
.app-form__end { display: flex; justify-content: flex-end; }

.widget { display: flex; flex-direction: column; width: 400px; max-width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.43; }
.widget__head { display: flex; flex: none; align-items: center; gap: 2px; height: 64px; padding: 0 8px; border-bottom: 1px solid var(--border); }
.widget__btn { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); color: var(--muted-foreground); font-size: 18px; }
.widget__head > .widget__btn:first-child, .widget__head > .widget__btn:last-child { font-size: 20px; }
.widget__who { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding-left: 4px; }
.widget__who .meta { display: grid; min-width: 0; }
.widget__who b, .widget__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget__who b { font-weight: 600; }
.widget__who small { color: var(--muted-foreground); font-size: 12px; line-height: 16px; }
.widget__av, .wmsg__icon { display: inline-grid; flex: none; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--primary) 12%, var(--background)); color: var(--primary); font-size: 12px; font-weight: 600; }
.widget__av { width: 32px; height: 32px; }
.widget__thread { gap: 0; padding: 16px 16px 12px; }
.wmsg { display: flex; flex-direction: column; align-items: flex-start; }
.wmsg + .wmsg { margin-top: 14px; }
.wmsg.is-cont { margin-top: 3px; }
.wmsg--me { align-items: flex-end; }
.wmsg__row { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.wmsg--me .wmsg__row { max-width: 82%; }
.wmsg__icon { width: 28px; height: 28px; }
.wmsg__icon .i { font-size: 15px; }
.wmsg__icon.is-ghost { visibility: hidden; }
.wmsg__text { min-width: 0; padding: 8px 12px; border-radius: 18px 18px 18px 6px; background: var(--muted); overflow-wrap: anywhere; }
.wmsg--me .wmsg__text { border-radius: 18px 18px 6px; background: var(--primary); color: var(--primary-foreground); }
.wmsg .wmsg__text--file { padding: 0; border-radius: 0; background: none; }
.wmsg__status, .wmsg__time { margin-top: 4px; color: var(--muted-foreground); font-size: 11px; line-height: 14px; }
.wmsg__status { display: inline-flex; align-items: center; gap: 4px; }
.wmsg__status .i { font-size: 12px; }
.wmsg__time { padding: 0 4px; font-variant-numeric: tabular-nums; }
.wmsg--op .wmsg__time { margin-left: 36px; }
.wmsg.wmsg--typing { flex-direction: row; align-items: flex-end; gap: 8px; margin-top: 12px; }
.wmsg--typing .wmsg__icon { background: var(--muted); color: var(--foreground); }
.wmsg--typing .wmsg__icon .i { font-size: 16px; }
.wmsg__dots { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 18px 18px 18px 6px; background: var(--muted); }
.wmsg__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); animation: typing 1.2s ease-in-out infinite; }
.wmsg__dots i:nth-child(2) { animation-delay: .15s; }
.wmsg__dots i:nth-child(3) { animation-delay: .3s; }
.wfile { display: flex; align-items: center; gap: 10px; max-width: 240px; padding: 8px 12px 8px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground); }
.wfile .tile { --s: 32px; }
.wfile > span:last-child { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.widget__send { display: flex; flex: none; align-items: flex-end; gap: 4px; margin: 0 12px; padding: 6px 6px 6px 12px; border: 1px solid var(--input); border-radius: 12px; background: var(--background); }
.widget__send > span:first-child { flex: 1; min-width: 0; padding: 6px 0; overflow: hidden; color: var(--muted-foreground); line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.widget__send .widget__btn, .widget__go { width: 32px; height: 32px; }
.widget__go { display: inline-grid; flex: none; place-items: center; border-radius: var(--radius-md); background: var(--muted); color: var(--muted-foreground); font-size: 18px; }
.widget__brand { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 8px 0 12px; color: var(--muted-foreground); font-size: 11px; line-height: 16px; }
.widget__brand img { width: auto; height: 12px; opacity: .8; }
.vis-launcher { position: absolute; right: 24px; bottom: 24px; }

.wcall { flex: none; background: oklch(14.1% .005 285.823); color: oklch(98.5% 0 0); }
.wcall__bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px; }
.wcall__btn { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: oklch(87.1% .006 286.286); font-size: 16px; }
.wcall__title { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: oklch(87.1% .006 286.286); font-size: 12px; font-weight: 500; white-space: nowrap; }
.wcall__title::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: oklch(76.5% .177 163.223); }
.wcall__title span { overflow: hidden; text-overflow: ellipsis; }
.wcall__end, .wcall__hang { display: inline-grid; flex: none; place-items: center; background: oklch(57.7% .245 27.325); color: #fff; font-size: 16px; }
.wcall__end { height: 32px; padding: 0 10px; border-radius: 6px; }
.wcall__hang { width: 36px; height: 36px; border-radius: 50%; }
.wcall__body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.wcall__video { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: oklch(21% .006 285.885); }
.wcall__initial { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: oklch(100% 0 0 / .1); font-size: 20px; font-weight: 600; }
.wcall__tiles { display: flex; gap: 8px; }
.wcall__tile { position: relative; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 1px solid oklch(100% 0 0 / .15); border-radius: 8px; background: oklch(27% .006 286); }
.wcall__tile .wcall__initial { width: 32px; height: 32px; background: oklch(100% 0 0 / .12); font-size: 14px; }
.wcall__feed { position: absolute; inset: 0; background: radial-gradient(8% 14% at 50% 42%, oklch(50% .012 260) 96%, transparent 100%), radial-gradient(22% 26% at 50% 104%, oklch(50% .012 260) 98%, transparent 100%), linear-gradient(160deg, oklch(36% .02 250), oklch(25% .012 280)); }
.wcall__tile .wcall__feed { background: radial-gradient(15% 15% at 50% 42%, oklch(50% .012 260) 96%, transparent 100%), radial-gradient(34% 26% at 50% 104%, oklch(50% .012 260) 98%, transparent 100%), linear-gradient(160deg, oklch(36% .02 250), oklch(25% .012 280)); }
.wcall__controls { display: flex; align-items: center; gap: 8px; }
.wcall__volume { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: oklch(87.1% .006 286.286); font-size: 16px; }
.wcall__volume i { position: relative; flex: 0 1 56px; min-width: 20px; height: 4px; border-radius: 2px; background: oklch(98.5% 0 0); }
.wcall__volume i::after { content: ""; position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: oklch(98.5% 0 0); translate: 0 -50%; }
.wcall__mid { display: flex; align-items: center; gap: 4px; }
.wcall__more { display: flex; flex: 1; justify-content: flex-end; }
.vis-shot { display: flex; flex-direction: column; width: 84%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: oklch(100% 0 0); }
.vis-shot__bar { display: flex; gap: 4px; padding: 6px 8px; background: oklch(96.7% .006 256); }
.vis-shot__bar i { width: 6px; height: 6px; border-radius: 50%; background: oklch(90% .01 256); }
.vis-shot__body { flex: 1; display: grid; align-content: start; gap: 8px; padding: 12px 14px; }
.vis-shot__line { height: 7px; border-radius: 4px; background: oklch(93% .01 256); }
.vis-shot__btn { position: relative; justify-self: start; display: inline-flex; align-items: center; margin-top: 4px; padding: 6px 10px; border-radius: 6px; background: oklch(55% .19 256); color: oklch(98.5% 0 0); font-size: 11px; font-weight: 500; }
.vis-shot__btn .i { position: absolute; right: -12px; bottom: -12px; font-size: 18px; color: oklch(16% .014 256); fill: oklch(100% 0 0); }

.vis-inbox, .vis-table, .vis-flow, .vis-builder, .vis-dash, .vis-report, .vis-notes, .vis-assign, .vis-profile { width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); }
.vis-inbox { max-width: 440px; container-type: inline-size; }
.vis-notes { max-width: 360px; }
.vis-assign { max-width: 340px; }
.vis-notes > .app-sec:last-child, .vis-assign > .app-sec:last-child { border-bottom: 0; }
.vis-customer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vis-customer .meta { display: grid; min-width: 0; }
.vis-customer small { overflow: hidden; color: var(--muted-foreground); text-overflow: ellipsis; white-space: nowrap; }

.vis-table { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 720px; padding: 20px; container-type: inline-size; }
.app-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 4px; }
.app-page-head .meta { display: grid; flex: 1 1 240px; gap: 4px; min-width: 0; }
.app-page-head small { color: var(--muted-foreground); font-size: 14px; }
.app-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.app-toggle { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.app-table-tools { display: flex; align-items: center; gap: 8px; }
.app-table-tools .app-input { flex: 1; max-width: 288px; }
.app-table-tools .btn { flex: none; }
.app-table-tools .app-input + .btn { margin-left: auto; }
.app-table-tools .btn--outline .i { color: var(--muted-foreground); }
.app-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.app-table table { width: 100%; border-collapse: collapse; }
.app-table th { height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 40%, var(--card)); color: var(--muted-foreground); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.app-table th .i { margin-left: 4px; font-size: 14px; vertical-align: -3px; opacity: .5; }
.app-table th[aria-sort] { color: var(--foreground); }
.app-table th[aria-sort] .i { opacity: 1; }
.app-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.app-table tbody tr:nth-child(even) { background: color-mix(in oklab, var(--foreground) 2.5%, transparent); }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table .is-muted { color: var(--muted-foreground); }
.app-table .is-mono { font-family: var(--font-mono); font-size: 12px; }
.app-table .is-fill { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-table .is-end { width: 1px; padding: 8px 12px; text-align: right; }
.app-table-foot { color: var(--muted-foreground); font-size: 13px; }
.app-cell-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.app-cell-title > span:last-child { overflow: hidden; text-overflow: ellipsis; }

.vis-profile { display: grid; gap: 16px; max-width: 400px; padding: 20px; container-type: inline-size; }
.vis-profile__card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.vis-profile__card > .app-card-title { padding: 16px 16px 4px; }
.app-dl { padding: 0 16px 4px; }
.app-dl > div { display: grid; grid-template-columns: minmax(8rem, 38%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.app-dl > div:last-child { border-bottom: 0; }
.app-dl dt { color: var(--muted-foreground); }
.app-dl dd { min-width: 0; margin: 0; overflow-wrap: break-word; }
.app-lrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.app-lrow > .i { font-size: 16px; color: var(--muted-foreground); }
.app-lrow .meta { display: grid; flex: 1; min-width: 0; }
.app-lrow b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.app-lrow small { color: var(--muted-foreground); font-size: 12px; }

.vis-flow { display: grid; max-width: 640px; padding: 24px 16px 28px; background-color: color-mix(in oklab, var(--muted) 40%, var(--card)); background-image: radial-gradient(color-mix(in oklab, var(--muted-foreground) 45%, transparent) 1px, transparent 1.5px); background-size: 20px 20px; container-type: inline-size; }
.vis-flow__step { display: grid; justify-items: center; }
.vis-flow__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: center; width: 100%; }
.vis-flow__edges { display: block; width: 100%; height: 28px; overflow: visible; }
.vis-flow__edges path { fill: none; stroke: color-mix(in oklab, var(--muted-foreground) 55%, transparent); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.vis-node { position: relative; display: grid; width: min(100% - 16px, 220px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-xs); }
.vis-node b { padding: 10px 12px; font-weight: 500; }
.vis-node b + span { padding: 8px 12px 16px; border-top: 1px solid var(--border); color: var(--muted-foreground); }
.vis-node::before, .vis-node::after { content: ""; position: absolute; left: 50%; width: 14px; height: 14px; border: 2px solid var(--border); border-radius: 50%; background: var(--background); translate: -50% -50%; }
.vis-node::before { top: 0; }
.vis-node::after { top: 100%; }
.vis-node.is-start::before, .vis-node.is-end::after { display: none; }
.vis-node.is-option { width: auto; max-width: min(100% - 16px, 200px); padding: 8px 14px; border-radius: 999px; font-weight: 500; text-align: center; }

.vis-builder { display: flex; max-width: 600px; height: 440px; container-type: inline-size; }
.vis-builder__side { flex: none; width: 216px; overflow: hidden; border-right: 1px solid var(--border); }
.vis-builder__head, .vis-builder__bar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.vis-builder__head { font-weight: 600; }
.vis-builder__desc { padding: 12px 12px 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.4; }
.vis-builder__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
.vis-builder__items li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); white-space: nowrap; }
.vis-builder__items .i { font-size: 16px; color: var(--muted-foreground); }
.vis-builder__items li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vis-builder__items li > .i:last-child { font-size: 14px; opacity: 0; transition: opacity .15s; }
.vis-builder__items li:hover { background: color-mix(in oklab, var(--accent) 60%, transparent); }
.vis-builder__items li:hover > .i:last-child { opacity: 1; }
.vis-builder__main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.vis-builder__bar .meta { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.vis-builder__bar b, .vis-builder__bar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-builder__bar b { font-weight: 600; }
.vis-builder__bar small { color: var(--muted-foreground); font-size: 12px; }
.vis-builder__toggle { display: none; }
.vis-builder__canvas { flex: 1; min-height: 0; padding: 20px; overflow: hidden; background: color-mix(in oklab, var(--muted) 40%, var(--card)); }
.vis-builder__form { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-xs); }
.vis-builder__q { position: relative; display: grid; gap: 8px; padding: 12px; border: 1px solid transparent; border-radius: var(--radius-lg); }
.vis-builder__q.is-active { border-color: color-mix(in oklab, var(--primary) 50%, transparent); background: color-mix(in oklab, var(--primary) 5%, transparent); }
.vis-builder__q > .i { position: absolute; top: 12px; right: 12px; font-size: 16px; color: var(--primary); }
.vis-builder__q p { padding-right: 24px; font-weight: 500; line-height: 20px; }
.vis-builder__q p span { color: var(--destructive); }
.vis-builder__q .btn { justify-self: start; }

.vis-dash, .vis-report { max-width: 520px; container-type: inline-size; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border-top: 1px solid var(--border); background: var(--border); }
.app-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; background: var(--card); }
.app-stat__label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted-foreground); font-size: 13px; white-space: nowrap; }
.app-stat__icon { display: inline-flex; color: var(--tone-fg); font-size: 14px; }
.app-stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.app-stat__hint { color: var(--muted-foreground); font-size: 12px; line-height: 1.33; text-wrap: pretty; }
.vis-report__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
.vis-report__head > div { flex: 1 1 240px; min-width: 0; }
.vis-report__keys { display: flex; align-items: center; gap: 16px; color: var(--muted-foreground); font-size: 12px; }
.vis-report__keys span { display: flex; align-items: center; gap: 6px; }
.vis-report__keys i { width: 12px; height: 2px; border-radius: 999px; background: color-mix(in oklab, var(--muted-foreground) 50%, transparent); }
.vis-report__keys .is-today { background: var(--primary); }
.vis-report__body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: start; gap: 20px; padding: 20px; }
.vis-chart { display: block; width: 100%; height: 150px; overflow: visible; }
.vis-chart * { vector-effect: non-scaling-stroke; }
.vis-chart__grid { fill: none; stroke: var(--border); }
.vis-chart__yesterday { fill: none; stroke: color-mix(in oklab, var(--muted-foreground) 50%, transparent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vis-chart__area { fill: color-mix(in oklab, var(--primary) 12%, transparent); }
.vis-chart__today { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.vis-chart__x { position: relative; height: 14px; margin-top: 8px; color: var(--muted-foreground); font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
.vis-chart__x span { position: absolute; left: var(--x); translate: -50% 0; }
.vis-report__list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--border); }
.vis-report__list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; background: var(--card); }
.vis-report__list dt { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted-foreground); white-space: nowrap; }
.vis-report__list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.vis-report__list .app-swatch { width: 8px; height: 8px; }

@container (max-width: 560px) {
    .app-col-lg { display: none; }
}
@container (max-width: 520px) {
    .vis-builder__side { display: none; }
    .vis-builder__toggle { display: inline-flex; }
}
@container (max-width: 480px) {
    .vis-node { font-size: 12px; }
    .vis-node b + span { display: none; }
    .vis-node.is-option { padding: 6px 10px; }
}
@container (max-width: 460px) {
    .app-col-md { display: none; }
    .vis-helpdesk .is-title { width: 100%; max-width: 0; }
}
@container (max-width: 420px) {
    .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vis-report__body { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 360px) {
    .app-tabs .i { display: none; }
    .vis-node { font-size: 11px; }
    .vis-node.is-option { max-width: calc(100% - 8px); padding: 6px 8px; }
}
@container (max-width: 340px) {
    .app-col-sm { display: none; }
    .app-tabs > span { padding: 0 8px; }
}
@container (max-width: 300px) {
    .vis-node.is-option { max-width: 100%; padding: 6px 4px; }
}
@container (max-width: 280px) {
    .app-tabs small { display: none; }
    .app-status > span { flex: auto; }
    .app-status small { display: none; }
}
@container (max-width: 260px) {
    .app-tabs > span { padding: 0 6px; font-size: 12px; }
}

.vis-form { display: grid; gap: 14px; width: 100%; padding: 24px; box-shadow: var(--shadow-lg); }
.vis-form .input { display: flex; align-items: center; font-size: 14px; }
.vis-select { justify-content: space-between; }
.vis-select .i { color: var(--muted-foreground); }
.vis-timeline { display: grid; gap: 6px; }
.vis-timeline li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.vis-timeline .i { color: var(--muted-foreground); }
.vis-timeline time { margin-left: auto; }

.vis-case { display: grid; justify-items: start; width: 100%; max-width: 540px; container-type: inline-size; }
.vis-case__screen { width: min(64%, 340px); overflow: hidden; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.vis-case__move { position: relative; justify-self: end; width: min(56%, 300px); margin-top: -88px; }
.vis-case .card.vis-case__move { box-shadow: var(--shadow-lg); }
@container (max-width: 420px) {
    .vis-case__screen { width: 90%; }
    .vis-case__move { width: 84%; margin-top: -16px; }
}

.vis-checkout__body { display: grid; gap: 14px; padding: 16px; }
.vis-checkout__item { display: flex; align-items: center; gap: 12px; }
.vis-checkout__item .meta { display: grid; flex: 1; min-width: 0; }
.vis-checkout__item b { font-weight: 500; }
.vis-checkout .kv { padding-top: 12px; border-top: 1px solid var(--border); }
.vis-checkout .btn { width: 100%; }
.vis-nudge { display: grid; justify-items: end; gap: 10px; }
.vis-nudge .badge { background: var(--card); box-shadow: var(--shadow-sm); }
.vis-welcome { display: flex; align-items: flex-end; gap: 8px; width: min(100%, 300px); }
.vis-welcome .widget__av { box-shadow: 0 2px 6px oklch(0% 0 0 / .12); }
.vis-welcome .widget__av .i { font-size: 18px; }
.vis-welcome__card { display: grid; flex: 1; gap: 4px; min-width: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 16px 16px 16px 6px; background: var(--card); box-shadow: 0 12px 32px -8px oklch(0% 0 0 / .22), 0 2px 6px oklch(0% 0 0 / .06); font-size: 14px; line-height: 20px; }
.vis-welcome__label { color: var(--muted-foreground); font-size: 12px; font-weight: 500; line-height: 16px; }
.vis-nudge .launcher { width: 48px; height: 48px; font-size: 20px; }

.vis-setup ol { padding: 4px 16px 8px; }
.vis-setup li { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-weight: 500; }
.vis-setup li + li { border-top: 1px dashed var(--border); }
.vis-setup li > .i { font-size: 18px; color: var(--primary); }
.vis-setup li .meta { display: grid; }
.vis-setup__error { color: var(--destructive); font-weight: 400; }
.vis-setup .vis-setup__done { color: var(--muted-foreground); font-weight: 400; }
.vis-setup .vis-setup__done > .i { color: var(--success); }
.vis-rescue { display: flex; flex-direction: column; }
.vis-rescue .thread { padding: 14px 12px; }
.vis-rescue .msg { max-width: 92%; }
.vis-incoming { display: grid; order: -1; gap: 12px; margin: 12px 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: 0 12px 32px -8px oklch(0% 0 0 / .25); }
.vis-incoming__title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.vis-incoming__icon { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); font-size: 16px; }
.vis-incoming__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vis-incoming__actions > span { display: grid; place-items: center; height: 36px; border-radius: 8px; color: var(--background); font-size: 14px; font-weight: 500; }
.vis-incoming__decline { background: var(--destructive); }
.vis-incoming__answer { background: var(--success); }

.vis-case .vis-form { gap: 10px; padding: 18px; }
.vis-case .vis-form .input { height: 36px; }
.vis-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; font-size: 13px; }
.vis-lead__head { display: flex; align-items: center; gap: 12px; }
.vis-lead__head .meta { display: grid; min-width: 0; }
.vis-lead__assign { padding: 2px 10px; border-radius: var(--radius-md); background: var(--muted); }
.vis-lead .vis-timeline { grid-template-columns: minmax(0, 1fr); }
.vis-lead .vis-timeline .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-lead time { white-space: nowrap; }
@container (max-width: 420px) {
    .vis-lead { width: 92%; padding: 12px; }
    .vis-lead__assign { padding: 2px 8px; }
}
@container (max-width: 240px) {
    .vis-lead, .vis-lead .app-row { font-size: 12px; }
    .vis-lead { width: 100%; }
    .vis-lead .vis-timeline .small { white-space: normal; }
}

@media (max-width: 1180px) {
    .app-info { display: none; }
    .app-chat__details { display: inline-flex; }
}
@media (max-width: 960px) {
    .app-shell .frame__side { display: none; }
    .app-shell .frame__main { height: 580px; margin-left: 8px; }
}
@media (max-width: 640px) {
    .app-shell .frame__main { height: 500px; }
    .app-list { display: none; }
    .app-chat__back { display: inline-flex; }
    .vis-launcher { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 20px; }
    .app-composer__hint { display: none; }
    .app-composer__actions > .btn--primary { margin-left: auto; }
}
