/* ── Settings modal (#wixBilling), a copy of Manus's settings sheet ───────
   Every size here was measured off Manus's own screenshots (DPR 2, read at
   CSS px): a 1125×676 sheet, a 220px rail of 32px rows in 14px type, a 768px
   centred content column, 24px/500 page titles over a hairline, 16px/600
   section headings, 14px/500 row titles with 13px grey lines under them, and
   32px buttons. The plan name is the one serif, as Manus's "Free" is.

   The dashboard paints at html{zoom:.9} and the chat at .95, so the dialog
   zooms itself back by 1/--vzoom: its px are the px you see, on every page.
   Class names all carry "vai", which keeps dashboard-dark.css's -card/-panel
   repaint and typography.css's enforcement layer off this tree. */

.vai-st {
    --st-bg: #ffffff; --st-edge: #e8e8e6; --st-line: #ececea; --st-card: #fafaf9; --st-cardline: #ebebe9;
    --st-dash: #dcdcda; --st-ctl: #e1e1df; --st-fill: #f1f1f0; --st-fill2: #f3f3f2; --st-hover: #f5f5f4;
    --st-chip: #ededec; --st-skill: #e6e6e4; --st-tile: #f3f3f2; --st-tileline: #e6e6e4;
    --st-t1: #34322d; --st-t2: #858481; --st-t3: #b0afab; --st-ic: #6f6e6a;
    --st-inv-bg: #1a1a19; --st-inv-t: #ffffff; --st-on: #1a85ff; --st-off: #d4d4d2;
    --st-red: #e5484d; --st-redline: #f3c9ca; --st-overlay: rgba(0, 0, 0, .35); --st-thumb: #d6d6d4;
    --st-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --st-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;

    position: fixed; inset: 0; z-index: 100100;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
body[data-background-color="dark"] .vai-st {
    --st-bg: #202020; --st-edge: #2c2c2c; --st-line: #2d2d2d; --st-card: #222222; --st-cardline: #2f2f2f;
    --st-dash: #3d3d3d; --st-ctl: #3b3b3b; --st-fill: #2d2d2d; --st-fill2: #292929; --st-hover: #262626;
    --st-chip: #313131; --st-skill: #3d3d3d; --st-tile: #292929; --st-tileline: #363636;
    --st-t1: #e5e5e5; --st-t2: #8b8b8b; --st-t3: #59595a; --st-ic: #b2b1b2;
    --st-inv-bg: #f4f4f4; --st-inv-t: #191919; --st-on: #4492f6; --st-off: #59595a;
    --st-red: #f05454; --st-redline: #4a2c2c; --st-overlay: rgba(0, 0, 0, .78); --st-thumb: #4a4a4a;
}
.vai-st.is-open { opacity: 1; pointer-events: auto; }
.vai-st [hidden] { display: none !important; }
.vai-st__overlay { position: absolute; inset: 0; background: var(--st-overlay); }

.vai-st__dialog {
    zoom: 1; zoom: calc(1 / var(--vzoom, 1));
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(1125px, calc(100vw - 48px)); height: min(676px, calc(100vh - 48px));
    display: flex; overflow: hidden;
    background: var(--st-bg); border: 1px solid var(--st-edge); border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    font-family: var(--st-sans); font-size: 14px; line-height: 20px; font-weight: 400; color: var(--st-t1);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: left;
}
.vai-st.is-open .vai-st__dialog { animation: vaiStPop .32s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vaiStPop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .vai-st.is-open .vai-st__dialog { animation: none; } }
.vai-st__dialog *, .vai-st__dialog *::before, .vai-st__dialog *::after { box-sizing: border-box; }
/* One face for the whole sheet: the app's base type rules set Inter on h1–h6
   and form controls. Icons (Font Awesome) and code keep their own. */
.vai-st__dialog *:where(:not([class*="fa-"]):not(code):not(pre):not(kbd)) { font-family: inherit; }
.vai-st__dialog :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; margin: 0; }
.vai-st__dialog h2, .vai-st__dialog h3, .vai-st__dialog h4, .vai-st__dialog p { margin: 0; }
.vai-st__dialog button, .vai-st__dialog input, .vai-st__dialog select, .vai-st__dialog textarea { font-family: inherit; letter-spacing: 0; }
.vai-st__dialog a { text-decoration: none; }
.vai-st__ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Rail ── */
.vai-st__rail {
    width: 220px; flex: none; display: flex; flex-direction: column; min-height: 0;
    padding: 24px 12px 12px; border-right: 1px solid var(--st-line); background: var(--st-bg);
}
.vai-st__me { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; flex: none; }
.vai-st__av {
    width: 32px; height: 32px; border-radius: 50%; flex: none; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: #16a34a; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 0 0 1px var(--st-line);
}
.vai-st__av img, .vai-st__bigav img { width: 100%; height: 100%; object-fit: cover; }
.vai-st__me-txt { min-width: 0; display: flex; flex-direction: column; }
.vai-st__me-n { font-size: 14px; line-height: 19px; font-weight: 500; color: var(--st-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vai-st__me-s { font-size: 12px; line-height: 16px; color: var(--st-t2); }
.vai-st__search {
    margin-top: 10px; height: 32px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 11px;
    border: 1px solid var(--st-ctl); border-radius: 8px; background: transparent; cursor: text;
}
.vai-st__search .vai-st__ico { width: 14px; height: 14px; stroke-width: 2; color: var(--st-ic); }
.vai-st__dialog .vai-st__search input {
    flex: 1; min-width: 0; height: 30px; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important;
    background: transparent !important; font-size: 14px; color: var(--st-t1) !important;
}
.vai-st__search input::placeholder { color: var(--st-t3); opacity: 1; }
.vai-st__nav {
    flex: 1; min-height: 0; overflow-y: auto; margin: 8px -4px 0; padding: 0 4px;
    scrollbar-width: thin; scrollbar-color: var(--st-thumb) transparent;
}
.vai-st__grp { font-size: 13px; line-height: 18px; color: var(--st-t2); padding: 12px 14px 6px; }
.vai-st__item {
    display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 12px; margin: 0 0 2px;
    border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left;
    font-size: 14px; line-height: 20px; font-weight: 500; color: var(--st-t1) !important;
}
.vai-st__item:hover { background: var(--st-hover); }
.vai-st__item.is-active { background: var(--st-fill); }
.vai-st__item:focus-visible { outline: 2px solid var(--st-on); outline-offset: -2px; }
.vai-st__item-ext { margin-left: auto; width: 14px !important; height: 14px !important; color: var(--st-t2); }
.vai-st__sep { height: 1px; background: var(--st-line); margin: 10px 4px; }
.vai-st__noresult { padding: 10px 14px; font-size: 13px; color: var(--st-t2); }

/* ── Main column ── */
.vai-st__main {
    flex: 1; min-width: 0; overflow-y: auto; position: relative; background: var(--st-bg);
    scrollbar-width: thin; scrollbar-color: var(--st-thumb) transparent;
}
.vai-st__main::-webkit-scrollbar, .vai-st__nav::-webkit-scrollbar { width: 8px; }
.vai-st__main::-webkit-scrollbar-thumb, .vai-st__nav::-webkit-scrollbar-thumb { background: var(--st-thumb); border-radius: 8px; border: 2px solid var(--st-bg); }
.vai-st__close {
    position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--st-ic); cursor: pointer;
}
.vai-st__close .vai-st__ico { width: 20px; height: 20px; }
.vai-st__close:hover { background: var(--st-hover); color: var(--st-t1); }
.vai-st__in { max-width: 768px; margin: 0 auto; padding: 0 0 40px; }
.vai-st__pane { display: none; }
.vai-st__pane.is-active { display: block; animation: vaiStIn .16s ease; }
@keyframes vaiStIn { from { opacity: 0; } to { opacity: 1; } }
.vai-st__head { padding: 33px 0 15px; border-bottom: 1px solid var(--st-line); }
.vai-st__dialog .vai-st__h { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--st-t1); letter-spacing: 0; }
.vai-st__hs { font-size: 13px; line-height: 18px; color: var(--st-t2); margin-top: 4px; }
.vai-st__hs a { color: var(--st-t1); text-decoration: underline; text-underline-offset: 3px; }
.vai-st__back {
    display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -4px; padding: 2px 4px; border: 0; border-radius: 6px;
    background: none; color: var(--st-t2); font-size: 13px; line-height: 18px; cursor: pointer;
}
.vai-st__back:hover { color: var(--st-t1); }
.vai-st__back .vai-st__ico { width: 16px; height: 16px; }
.vai-st__body { padding-top: 24px; display: flex; flex-direction: column; }
.vai-st__dialog .vai-st__h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--st-t1); }
.vai-st__lbl { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--st-t1); }
.vai-st__t { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--st-t1); }
.vai-st__s { font-size: 13px; line-height: 18px; color: var(--st-t2); word-break: break-word; }
.vai-st__s--lg { font-size: 14px; line-height: 20px; }
.vai-st__muted { font-size: 14px; line-height: 20px; color: var(--st-t3); }
.vai-st__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vai-st__row > :first-child { min-width: 0; }
.vai-st__rows { display: flex; flex-direction: column; gap: 16px; }
.vai-st__rows--24 { gap: 24px; }
.vai-st__hr { height: 1px; background: var(--st-line); margin: 24px 0; flex: none; }
.vai-st__g8 { height: 8px; flex: none; } .vai-st__g12 { height: 12px; flex: none; }
.vai-st__g16 { height: 16px; flex: none; } .vai-st__g24 { height: 24px; flex: none; }

/* Buttons */
.vai-st__btn {
    height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
    border: 1px solid var(--st-ctl); border-radius: 8px; background: transparent; cursor: pointer; white-space: nowrap;
    font-size: 14px; line-height: 1; font-weight: 500; color: var(--st-t1) !important; text-decoration: none !important;
}
.vai-st__btn:hover { background: var(--st-hover); }
.vai-st__btn:disabled { opacity: .5; cursor: default; }
.vai-st__btn .vai-st__ico { width: 16px; height: 16px; }
.vai-st__btn--inv { background: var(--st-inv-bg); border-color: var(--st-inv-bg); color: var(--st-inv-t) !important; }
.vai-st__btn--inv:hover { background: var(--st-inv-bg); opacity: .88; }
.vai-st__btn--red { color: var(--st-red) !important; border-color: var(--st-redline); }
.vai-st__btn--lg { height: 36px; padding: 0 16px; }
.vai-st__iconbtn {
    width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--st-line); border-radius: 8px; background: none; color: var(--st-ic) !important; cursor: pointer;
}
.vai-st__iconbtn:hover { background: var(--st-hover); }
.vai-st__iconbtn .vai-st__ico { width: 16px; height: 16px; }
.vai-st__link { color: var(--st-t2); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.vai-st__link:hover { color: var(--st-t1); }
.vai-st__link .vai-st__ico { width: 16px; height: 16px; }

/* Inputs */
.vai-st__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vai-st__field--12 { gap: 12px; }
.vai-st__dialog .vai-st__input,
.vai-st__dialog .vai-st__textarea {
    width: 100%; height: 36px; padding: 0 12px; border: 0 !important; border-radius: 8px; outline: 0;
    background: var(--st-fill) !important; color: var(--st-t1) !important; font-size: 14px; box-shadow: none !important;
}
.vai-st__dialog .vai-st__input--52 { height: 52px; padding: 0 16px; }
.vai-st__dialog .vai-st__textarea { height: auto; min-height: 140px; padding: 12px 16px; line-height: 22px; resize: vertical; }
.vai-st__dialog .vai-st__input::placeholder, .vai-st__dialog .vai-st__textarea::placeholder { color: var(--st-t3); opacity: 1; }
.vai-st__dialog .vai-st__input:focus, .vai-st__dialog .vai-st__textarea:focus { box-shadow: 0 0 0 1px var(--st-ctl) inset !important; }
.vai-st__box { height: 36px; padding: 0 12px; border-radius: 8px; background: var(--st-fill); display: flex; align-items: center; font-size: 14px; color: var(--st-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vai-st__dialog .vai-st__select {
    height: 36px; padding: 0 36px 0 12px; border: 0 !important; border-radius: 8px; outline: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none; box-shadow: inset 0 0 0 1px var(--st-fill2) !important;
    background: var(--st-fill2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    color: var(--st-t1) !important; font-size: 14px;
}
.vai-st__dialog .vai-st__select option { background: var(--st-bg); color: var(--st-t1); }

/* Toggle — 26×16, Manus's own size */
.vai-st__tg { position: relative; display: inline-block; width: 26px; height: 16px; flex: none; cursor: pointer; margin: 0; }
.vai-st__tg input { position: absolute; opacity: 0; width: 0; height: 0; }
.vai-st__tg span { position: absolute; inset: 0; border-radius: 999px; background: var(--st-off); transition: background .15s; }
.vai-st__tg span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.vai-st__tg input:checked + span { background: var(--st-on); }
.vai-st__tg input:checked + span::after { transform: translateX(10px); }
.vai-st__tg input:focus-visible + span { box-shadow: 0 0 0 2px var(--st-on); }
.vai-st__tg input:disabled + span { opacity: .5; cursor: default; }

/* Tabs (underline) and pills */
.vai-st__tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--st-line); }
.vai-st__tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 0 8px; margin: 0; border: 0; border-bottom: 2px solid transparent;
    background: none; cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--st-t2);
}
.vai-st__tab:hover { color: var(--st-t1); }
.vai-st__tab.is-on { color: var(--st-t1); border-bottom-color: var(--st-inv-bg); }
.vai-st__tab .vai-st__ico { width: 16px; height: 16px; }
.vai-st__pills { display: flex; flex-wrap: wrap; }
.vai-st__pill { height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14px; color: var(--st-t2); }
.vai-st__pill.is-on { background: var(--st-chip); color: var(--st-t1); }

/* ── Account ── */
.vai-st__acct { display: flex; align-items: center; gap: 16px; }
.vai-st__bigav {
    width: 58px; height: 58px; border-radius: 50%; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #16a34a; color: #fff; font-size: 26px; font-weight: 500; box-shadow: 0 0 0 1px var(--st-line);
}
.vai-st__acct .vai-st__field { width: 280px; }
.vai-st__acct .vai-st__iconbtn { margin-left: auto; }

/* Plan card */
.vai-st__plancard { border: 1px solid var(--st-cardline); background: var(--st-card); border-radius: 12px; padding: 0 16px; }
.vai-st__plancard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--st-dash); }
.vai-st__planname { font-family: var(--st-serif); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--st-t1); }
.vai-st__cr { padding: 15px 0 16px; }
.vai-st__cr + .vai-st__cr { padding-top: 0; }
.vai-st__crl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vai-st__crt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--st-t1); }
.vai-st__help { width: 14px !important; height: 14px !important; color: var(--st-t2); margin-left: -2px; cursor: help; }
.vai-st__crv { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--st-t1); }
.vai-st__crs { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--st-t2); font-variant-numeric: tabular-nums; }
.vai-st__crc { margin-top: 5px; font-size: 12px; line-height: 16px; color: var(--st-t2); }

/* Credits history */
.vai-st__hist-h { display: flex; align-items: center; gap: 8px; }
.vai-st__day { padding: 16px 0 9px; border-bottom: 1px solid var(--st-line); font-size: 13px; line-height: 18px; color: var(--st-t2); }
.vai-st__day:first-child { padding-top: 12px; }
.vai-st__hi { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 34px; font-size: 13px; color: var(--st-t1) !important; }
.vai-st__hi span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vai-st__hi b { flex: none; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
a.vai-st__hi:hover span { text-decoration: underline; text-underline-offset: 3px; }
.vai-st__note { padding: 12px 0; font-size: 13px; color: var(--st-t2); }

/* Billing table (invoices) */
.vai-st__inv { display: flex; flex-direction: column; }
.vai-st__inv-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--st-line); font-size: 13px; color: var(--st-t1); font-variant-numeric: tabular-nums; }
.vai-st__inv-row:last-child { border-bottom: 0; }
.vai-st__inv-row a { color: var(--st-t1); text-decoration: underline !important; text-underline-offset: 3px; }
.vai-st__badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; background: var(--st-fill); color: var(--st-t2); justify-self: start; }
.vai-st__badge.is-ok { color: #16a34a; }
.vai-st__badge.is-bad { color: var(--st-red); }

/* ── General ── */
.vai-st__tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.vai-st__tile {
    width: 110px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--st-ctl); border-radius: 10px; background: none; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--st-ic);
}
.vai-st__tile:hover { background: var(--st-fill2); }
.vai-st__tile.is-on { border: 1.5px solid var(--st-inv-bg); color: var(--st-t1); }

/* ── Shortcuts ── */
.vai-st__sc { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 69px; border-bottom: 1px solid var(--st-line); }
.vai-st__kf {
    width: 229px; height: 36px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 6px;
    border: 1px solid var(--st-ctl); border-radius: 8px; background: none; cursor: pointer; color: var(--st-t2); font-size: 13px;
}
.vai-st__kf.is-rec { border-color: var(--st-on); color: var(--st-t1); }
.vai-st__kf-x { margin-left: auto; display: flex; padding: 2px; border-radius: 4px; color: var(--st-ic); }
.vai-st__kf-x:hover { background: var(--st-hover); }
.vai-st__kf-x .vai-st__ico { width: 14px; height: 14px; }
.vai-st__k {
    min-width: 26px; height: 26px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--st-cardline); border-radius: 6px; background: var(--st-card); font-size: 12px; color: var(--st-ic);
}
.vai-st__kf-off { padding-left: 6px; color: var(--st-t3); }

/* ── Personalization ── */
.vai-st__imp {
    display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px; text-align: left;
    border: 1px solid var(--st-line); border-radius: 12px; background: none; cursor: pointer; color: var(--st-t1);
}
.vai-st__imp:hover { background: var(--st-hover); }
.vai-st__imp-t { font-size: 16px; line-height: 22px; font-weight: 500; }
.vai-st__imp-s { font-size: 14px; line-height: 20px; color: var(--st-t2); }
.vai-st__tilei {
    width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 1px solid var(--st-tileline); border-radius: 8px; background: var(--st-tile); color: var(--st-t1);
}
.vai-st__tilei .vai-st__ico { width: 20px; height: 20px; }
.vai-st__tilei img { width: 22px; height: 22px; object-fit: contain; }
.vai-st__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vai-st__prompt {
    position: relative; padding: 14px 16px; border-radius: 10px; background: var(--st-fill);
    font-size: 13px; line-height: 20px; color: var(--st-t1); white-space: pre-wrap;
}
.vai-st__saved { font-size: 13px; color: var(--st-t2); }
.vai-st__mem { display: flex; flex-direction: column; gap: 8px; }
.vai-st__memrow { padding: 12px 16px; border: 1px solid var(--st-line); border-radius: 10px; font-size: 14px; line-height: 20px; color: var(--st-t1); }
.vai-st__memrow small { display: block; margin-top: 2px; font-size: 12px; color: var(--st-t2); }

/* ── Cards: connectors, empty states, list rows ── */
.vai-st__tool { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vai-st__tool .vai-st__search { margin: 0; width: 200px; }
.vai-st__tool-sp { flex: 1; }
.vai-st__g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vai-st__conn {
    display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 16px 10px 12px; text-align: left; width: 100%;
    border: 1px solid var(--st-line); border-radius: 12px; background: none; color: var(--st-t1) !important; cursor: pointer;
}
.vai-st__conn:hover { background: var(--st-hover); }
.vai-st__conn-tx { flex: 1; min-width: 0; }
.vai-st__conn-d { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--st-t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vai-st__conn-ok { color: var(--st-ic); }
.vai-st__menu { position: relative; }
.vai-st__menu-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 200px; padding: 4px;
    border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.vai-st__menu-list a, .vai-st__menu-list button {
    display: flex; width: 100%; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
    background: none; font-size: 14px; color: var(--st-t1) !important; cursor: pointer; text-align: left;
}
.vai-st__menu-list a:hover, .vai-st__menu-list button:hover { background: var(--st-hover); }
.vai-st__nothing { border: 1px solid var(--st-line); border-radius: 12px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vai-st__nothing-ill { width: 52px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--st-tile); border: 1px solid var(--st-tileline); color: var(--st-t1); }
.vai-st__nothing-ill .vai-st__ico { width: 22px; height: 22px; }
.vai-st__nothing-ill--cloud { background: linear-gradient(160deg, #5b8fd6, #2f63b8); border: 3px solid #3a3a3a; color: #fff; }
.vai-st__nothing-ill--lap { width: 62px; height: 34px; border: 0; border-radius: 4px 4px 0 0; background: linear-gradient(170deg, #8bb6ea, #4c84cf); box-shadow: 0 5px 0 -1px #6b6b6b; }
.vai-st__nothing-s { margin: 4px 0 16px; font-size: 14px; line-height: 20px; color: var(--st-t2); max-width: 460px; }
.vai-st__li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 16px; border: 1px solid var(--st-line); border-radius: 10px; font-size: 14px; color: var(--st-t1); }
.vai-st__li > .vai-st__ico { width: 16px; height: 16px; color: var(--st-t2); }
.vai-st__li-tx { flex: 1; min-width: 0; }
.vai-st__li-tx .vai-st__s { font-size: 12px; line-height: 16px; }
.vai-st__list { display: flex; flex-direction: column; gap: 8px; }
.vai-st__dc { padding: 24px 0; border-bottom: 1px solid var(--st-line); }
.vai-st__dc:first-child { padding-top: 0; }
.vai-st__dc:last-child { border-bottom: 0; }
.vai-st__dc-list { display: flex; flex-direction: column; margin-top: 10px; }
.vai-st__dc-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; font-size: 14px; color: var(--st-t1) !important; }
.vai-st__dc-item span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vai-st__dc-item small { flex: none; font-size: 13px; color: var(--st-t2); }
a.vai-st__dc-item:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.vai-st__count { margin-left: 4px; font-weight: 400; color: var(--st-t2); }
.vai-st__wallet { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 16px; }
.vai-st__big { font-size: 32px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--st-t1); }
.vai-st__secret { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--st-fill); font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--st-t1); word-break: break-all; }
.vai-st__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--st-t2); }
.vai-st__ok .vai-st__ico { width: 16px; height: 16px; }

/* ── Panels kept from before, re-skinned to the same tokens ── */
body .vai-st .vsk {
    --vsk-ink: var(--st-t1); --vsk-desc: var(--st-t2); --vsk-meta: var(--st-t2); --vsk-line: var(--st-ctl);
    --vsk-card: var(--st-card); --vsk-card-bd: var(--st-skill); --vsk-hover: var(--st-hover); --vsk-tab-on: var(--st-chip);
    --vsk-sw-off: var(--st-off);
}
.vai-st .vsk__bar { gap: 12px; }
.vai-st .vsk__search { padding: 0 11px; gap: 9px; }
.vai-st .vsk__search:focus-within, .vai-st .vsk__import input:focus { border-color: var(--st-t2); }
.vai-st .vsk__search input::placeholder { color: var(--st-t3); }
.vai-st .vsk__btn { padding: 0 9px; }
.vai-st .vsk__btn--solid { background: var(--st-inv-bg); border-color: var(--st-inv-bg); color: var(--st-inv-t) !important; }
.vai-st .vsk__btn--solid:hover { background: var(--st-inv-bg); opacity: .88; }
.vai-st .vsk__tabs { gap: 0; margin: 24px 0; }
.vai-st .vsk__tab { height: 32px; padding: 0 16px; font-weight: 400; }
.vai-st .vsk__card { padding: 18px 16px 16px; gap: 8px; }
.vai-st .vsk__name { font-size: 14px; line-height: 20px; font-weight: 500; }
.vai-st .vsk__desc { font-size: 13px; line-height: 16px; }
.vai-st .vsk__foot { font-size: 11px; line-height: 14px; font-weight: 500; margin-top: auto; padding-top: 4px; }
.vai-st .vsk__btn, .vai-st .vsk__tab, .vai-st .vsk__search input, .vai-st .vsk__menu a, .vai-st .vsk__menu button, .vai-st .vsk__import input { font-size: 14px; }
.vai-st .vsk__empty { font-size: 14px; }
.vai-st .vsk__sw.is-on { background: var(--st-on); }
.vai-st .vsk__sw:focus-visible { outline-color: var(--st-on); }
.vai-st .vsk__note { color: var(--st-t2); }
.vai-st .vcb__search { border-radius: 8px; border-color: var(--st-ctl); height: 32px; padding: 0 12px; font-size: 14px; }
.vai-st .vcb__search:focus { border-color: var(--st-t2); }
.vai-st .vcb__meta b { font-weight: 500; font-size: 14px; }
.vai-st .vcb__meta span { font-size: 12px; color: var(--st-t2); opacity: 1; }
.vai-st .vmail__tabs { gap: 24px; border-bottom: 1px solid var(--st-line); margin: 0; }
.vai-st .vmail__tab { padding: 10px 0 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--st-t2); opacity: 1; border-bottom-width: 2px; }
.vai-st .vmail__tab.is-on { color: var(--st-t1); border-bottom-color: var(--st-inv-bg); }
.vai-st .vmail__row { align-items: center; padding: 24px 0 0; border: 0; }
.vai-st .vmail__rt { font-size: 14px; font-weight: 500; color: var(--st-t1); }
.vai-st .vmail__rs { font-size: 13px; line-height: 18px; color: var(--st-t2); opacity: 1; }
.vai-st .vmail__rowval { font-size: 14px; font-weight: 500; color: var(--st-t1); }
.vai-st .vmail { margin-top: 0; }
.vai-st .vmail__btn { height: 32px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--st-ctl); font-size: 14px; line-height: 1; font-weight: 500; color: var(--st-t1); text-decoration: none !important; }
.vai-st .vmail__btn:hover { background: var(--st-hover); }
.vai-st .vmail__ic { color: var(--st-ic); opacity: 1; }
.vai-st .vmail__list { margin: 12px 0 0; }
.vai-st .vmail__item { min-height: 46px; padding: 8px 16px; border: 1px solid var(--st-line); border-radius: 10px; }
.vai-st .vmail__addr { font-size: 14px; color: var(--st-t1); }
.vai-st .vmail__meta, .vai-st .vmail__empty { color: var(--st-t2); opacity: 1; font-size: 13px; }
.vai-st .vmail__notready { margin: 0 0 16px; }
.vai-st .vcomp { color: var(--st-t1); }
.vai-st .vcomp__card { border-color: var(--st-line); border-radius: 12px; }
.vai-st .vcomp__btn { height: 32px; padding: 0 9px; border-radius: 8px; border-color: var(--st-ctl); font-size: 14px; font-weight: 500; }
.vai-st .vcomp__btn--primary { background: var(--st-inv-bg); border-color: var(--st-inv-bg); color: var(--st-inv-t) !important; box-shadow: none; }
.vai-st .vcomp__btn--primary:hover { background: var(--st-inv-bg); opacity: .88; }
.vai-st .vcomp__name { font-size: 14px; font-weight: 500; }
.vai-st .vcomp__sub { font-size: 13px; color: var(--st-t2); opacity: 1; }
.vai-st .vcomp__sect { font-size: 16px; font-weight: 600; }
.vai-st .vcomp__loading { border-color: var(--st-line); color: var(--st-t2); opacity: 1; }

/* Meeting notes (under Connectors) */
.vai-st .wix-mn-select { height: 36px; border: 0; border-radius: 8px; background: var(--st-fill2); color: var(--st-t1); font-size: 14px; padding: 0 12px; }
.vai-st .wix-mn-toggle { width: 26px; height: 16px; }
.vai-st .wix-mn-toggle span { background: var(--st-off); }
.vai-st .wix-mn-toggle span::after { top: 2px; left: 2px; width: 12px; height: 12px; box-shadow: none; }
.vai-st .wix-mn-toggle input:checked + span { background: var(--st-on); }
.vai-st .wix-mn-toggle input:checked + span::after { transform: translateX(10px); }

/* ── Phones: the rail is the first screen, a section opens over it ── */
.vai-st__mback, .vai-st__mclose { display: none !important; }
@media (max-width: 720px) {
    .vai-st__dialog { top: 0; left: 0; transform: none; width: 100vw; height: 100%; border: 0; border-radius: 0; }
    .vai-st.is-open .vai-st__dialog { animation: none; }
    .vai-st__rail { position: relative; width: 100%; border-right: 0; padding-top: max(20px, env(safe-area-inset-top, 0px)); }
    .vai-st__mclose { display: flex !important; }
    .vai-st__me { padding-right: 44px; }
    .vai-st__main { position: absolute; inset: 0; transform: translateX(100%); transition: transform .22s ease; padding: 0 16px; }
    .vai-st__dialog.is-mpanel .vai-st__main { transform: none; }
    .vai-st__dialog .vai-st__mback {
        display: inline-flex !important; align-items: center; gap: 4px; margin-top: max(14px, env(safe-area-inset-top, 0px)); height: 32px; padding: 0 8px 0 2px;
        border: 0; background: none; color: var(--st-t1); font-size: 14px; cursor: pointer;
    }
    .vai-st__head { padding-top: 12px; }
    .vai-st__close { top: max(14px, env(safe-area-inset-top, 0px)); }
    .vai-st__g2, .vai-st__grid2 { grid-template-columns: 1fr; }
    .vai-st__acct { flex-wrap: wrap; }
    .vai-st__acct .vai-st__field { width: auto; flex: 1; }
    .vai-st__row { gap: 12px; }
    .vai-st__dialog .vai-st__row > .vai-st__select { width: 132px !important; flex: none; }
    .vai-st__sc { flex-wrap: wrap; padding: 12px 0; }
    .vai-st__tabs { overflow-x: auto; }
    .vai-st__tool .vai-st__search { width: 100%; }
    .vai-st__inv-row { grid-template-columns: 1fr auto; }
}
