/* NativeHelpy live bank demo, a section of the home page (#live-demo): the site's light theme; the assistant on the
   start side (left, right in RTL languages) and the demo app beside it. Every rule is inside .sc-root, so nothing here
   touches the rest of the site; logical properties throughout, so Arabic, Hebrew and Persian mirror the layout. */
.sc-root {
    --bg: #fbfbf7; --surface: #fff; --surface-2: #eef2f9; --surface-3: #f5f7fc;
    --ink: #0f2545; --ink-2: #47587a; --ink-3: #586580;
    --accent: #2256d6; --accent-ink: #fff; --accent-weak: #e9eefc;
    --accent-2: #076e63; --accent-2-weak: #e1f5f1;
    --ok: #067647; --ok-weak: #e3f6ec; --bad: #b42318; --bad-weak: #fdecea; --wait: #8a5a00; --wait-weak: #fff3d6;
    --border: #e6eaf2; --border-strong: #d4dbe8;
    --bank: #0e3b43; --bank-2: #145c66; --bank-weak: #e7f2f1;
    --radius: 14px; --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 37, 69, .05);
    --shadow: 0 14px 40px rgba(15, 37, 69, .08), 0 2px 6px rgba(15, 37, 69, .05);
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Hebrew',
        'Noto Sans Devanagari', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --head-h: 62px; /* the site's sticky header */
}
.sc-root * { box-sizing: border-box; }

.sc-root { font-family: var(--sans); color: var(--ink); line-height: 1.55; }
.sc-root h1, .sc-root h2, .sc-root h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.sc-root a { color: var(--accent); }
.sc-root button, .sc-root input, .sc-root select { font: inherit; color: inherit; }
.sc-root :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sc-root .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-root .mono { font-family: var(--mono); font-size: .92em; }
.sc-root .sm { font-size: .86rem; }
.sc-root .muted { color: var(--ink-3); }
.sc-root .neg { color: var(--bad); }
.sc-root .pos { color: var(--ok); }

/* buttons */
.sc-root .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: .94rem; padding: 9px 17px;
    border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.25;
    transition: background .16s, border-color .16s, box-shadow .16s, color .16s; min-height: 40px; }
.sc-root .btn.sm { padding: 6px 13px; font-size: .86rem; min-height: 34px; }
.sc-root .btn .ic { width: 17px; height: 17px; flex: none; }
.sc-root .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(34, 86, 214, .22); }
.sc-root .btn-primary:hover { background: #1c49bd; }
.sc-root .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.sc-root .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.sc-root .btn-quiet { background: transparent; color: var(--ink-2); }
.sc-root .btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.sc-root .btn-danger { background: var(--bad); color: #fff; }
.sc-root .btn-danger:hover { background: #8f1c13; }
.sc-root .btn:disabled, .sc-root .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.sc-root .link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: .9rem; }
.sc-root .link:hover { text-decoration: underline; }
.sc-root .row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.sc-root .chip { display: inline-flex; align-items: center; font-style: normal; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sc-root .chip-ok { background: var(--ok-weak); color: var(--ok); }
.sc-root .chip-bad { background: var(--bad-weak); color: var(--bad); }
.sc-root .chip-wait { background: var(--wait-weak); color: var(--wait); }

/* the demo's bar: the language of the demo, a reset, the pilot */
.sc-root .sc-bar { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sc-root .sc-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.sc-root .sc-lang { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); min-height: 36px; }
.sc-root .sc-lang select { border: 0; background: transparent; padding: 6px 4px; max-width: 150px; cursor: pointer; color: var(--ink); }
.sc-root .sc-lang:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-root .sc-lang select:focus-visible { outline: none; }

.sc-root .sc-fict { flex: 1 1 420px; margin: 0; box-sizing: border-box; font-size: .86rem; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 8px 12px; }
.sc-root .sc-fict strong { color: var(--wait); background: var(--wait-weak); border-radius: 6px; padding: 1px 7px; margin-inline-end: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }

/* the two halves */
.sc-root .sc-main { max-width: 1400px; margin: 0 auto; padding: 14px 20px 28px; display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sc-root .sc-assistant { position: sticky; top: calc(var(--head-h) + 14px); height: calc(100vh - var(--head-h) - 28px); height: calc(100dvh - var(--head-h) - 28px);
    min-height: 520px; max-height: 900px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.sc-root .sc-ai-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-3), var(--surface)); }
.sc-root .sc-ai-ic { border-radius: 9px; }
.sc-root .sc-clear { margin-inline-start: auto; background: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sc-root .sc-clear:hover { border-color: var(--accent); color: var(--accent); }
.sc-root .sc-ai-name h2 { font-size: 1rem; }
.sc-root .sc-ai-name p { margin: 0; font-size: .8rem; }
.sc-root .sc-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.sc-root .sc-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sc-root .sc-dot[data-state="on"] { color: var(--ok); }
.sc-root .sc-dot[data-state="on"]::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-weak); }
.sc-root .sc-dot[data-state="off"] { color: var(--bad); }
.sc-root .sc-dot[data-state="off"]::before { background: var(--bad); }
.sc-root .sc-sheet { display: none; }
.sc-root .sc-ai-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sc-root .sc-log { list-style: none; margin: 0; padding: 14px 14px 6px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.sc-root .msg { max-width: 92%; border-radius: 14px; padding: 9px 12px; font-size: .93rem; overflow-wrap: anywhere; }
.sc-root .msg p { margin: 0; white-space: pre-line; }
.sc-root .msg p + p { margin-top: 4px; }
.sc-root .msg .who { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.sc-root .msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 4px; }
.sc-root .msg.ai { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 4px; }
.sc-root .msg.ai .ai-title { font-weight: 700; }
.sc-root .msg.ai.refused { background: var(--surface-3); border: 1px solid var(--border); }
.sc-root .msg.ai .ai-more { margin-top: 2px; font-size: .86rem; }
.sc-root .msg.ai .ai-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .8rem; list-style: none; }
.sc-root .msg.ai .ai-more summary::-webkit-details-marker { display: none; }
.sc-root .msg.ai .ai-more[open] summary { margin-bottom: 4px; }
.sc-root .msg.app.card-lang { align-self: flex-start; max-width: 92%; background: transparent; border: 0; box-shadow: none; padding: 0; }
.sc-root .msg.app.card-lang .who { display: none; }
.sc-root .msg.app.card-lang .cc-choices { margin-top: 0; }
.sc-root .msg.ai .ai-link { display: inline-block; margin-top: 6px; font-size: .85rem; font-weight: 600; }
.sc-root .msg.app { align-self: stretch; max-width: 100%; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); padding: 11px 13px; }
.sc-root .msg.app .who { color: var(--bank-2); }
.sc-root .msg.app.is-expired, .sc-root .msg.app.is-cancelled { opacity: .72; }
.sc-root .msg.wait { display: inline-flex; gap: 5px; padding: 13px 14px; }
.sc-root .msg.wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.sc-root .msg.wait span:nth-child(2) { animation-delay: .2s; } .sc-root .msg.wait span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sc-root .cc-title { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.sc-root .cc-title .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.sc-root .cc-title.bad { color: var(--bad); }
.sc-root .cc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 8px 0 0; }
.sc-root .cc-facts dt { font-size: .74rem; color: var(--ink-3); }
.sc-root .cc-facts dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.sc-root .cc-list { margin: 6px 0 0; padding-inline-start: 18px; font-size: .9rem; }
.sc-root .cc-list li + li { margin-top: 2px; }
.sc-root .cc-note { margin: 8px 0 0 !important; font-size: .82rem; color: var(--ink-2); }
.sc-root .cc-ok { margin-top: 8px !important; color: var(--ok); font-weight: 600; }
.sc-root .cc-bad { margin-top: 8px !important; color: var(--bad); font-weight: 600; }
.sc-root .cc-status { margin-top: 8px !important; font-size: .84rem; }
.sc-root .cc-txs { display: grid; gap: 6px; margin-top: 10px; }
.sc-root .cc-tx { justify-content: space-between; width: 100%; border-radius: 10px !important; text-align: start; gap: 10px; }
.sc-root .cc-tx span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sc-root .cc-tx small { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.sc-root .cc-actions, .sc-root .cc-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-root .sc-offline { margin: 0 14px 8px; padding: 8px 12px; border-radius: 10px; background: var(--bad-weak); color: var(--bad); font-size: .86rem; }
.sc-root .sc-try { padding: 8px 14px 4px; border-top: 1px solid var(--border); }
.sc-root .sc-try h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 6px; }
.sc-root .sc-scenarios { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sc-root .scn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 7px 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.sc-root .scn:hover { border-color: var(--accent); background: var(--accent-weak); }
.sc-root .scn-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.sc-root .scn-txt { display: flex; flex-direction: column; min-width: 0; font-size: .84rem; }
.sc-root .scn-txt strong { font-size: .86rem; }
.sc-root .scn-txt span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-root .sc-try.compact .sc-scenarios { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-root .sc-try.compact .scn { width: auto; padding: 4px 10px 4px 6px; border-radius: 999px; gap: 6px; }
.sc-root .sc-try.compact .scn-n { width: 20px; height: 20px; font-size: .7rem; }
.sc-root .sc-try.compact .scn-txt span { display: none; }
.sc-root .sc-try.compact .scn-txt strong { font-size: .8rem; }
.sc-root .sc-form { display: flex; gap: 8px; padding: 10px 14px; }
.sc-root .sc-form input { flex: 1; min-width: 0; border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 15px; background: var(--surface); }
.sc-root .sc-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.sc-root .sc-form input:disabled { background: var(--surface-3); }
.sc-root .sc-ai-note { margin: 0; padding: 0 16px 12px; font-size: .74rem; color: var(--ink-3); }

/* the demo app */
.sc-root .sc-app, .sc-root .tx-detail { scroll-margin-top: calc(var(--head-h) + 10px); }
.sc-root .sc-app { min-width: 0; position: sticky; top: calc(var(--head-h) + 14px); height: calc(100vh - var(--head-h) - 28px); height: calc(100dvh - var(--head-h) - 28px); min-height: 520px; max-height: 900px; }
.sc-root .nb { background: #f4f7f6; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.sc-root .nb-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: linear-gradient(120deg, var(--bank), var(--bank-2)); color: #fff; }
.sc-root .nb-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--bank); font-weight: 900; }
.sc-root .nb-name { font-size: 1.08rem; font-weight: 700; color: #fff; }
.sc-root .nb-name b { color: #8be0d4; }
.sc-root .nb-demo { font-size: .72rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 2px 9px; border-radius: 999px; }
.sc-root .nb-user { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .8rem; font-weight: 700; }
.sc-root .nb-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); flex: 1; min-height: 0; }
.sc-root .nb-loading { padding: 40px; color: var(--ink-3); }
.sc-root .nb-nav { background: #fff; border-inline-end: 1px solid var(--border); padding: 12px 8px; }
.sc-root .nb-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sc-root .nb-nav button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; text-align: start; font-size: .9rem; font-weight: 500; }
.sc-root .nb-nav button .ic { width: 19px; height: 19px; flex: none; }
.sc-root .nb-nav button:hover { background: var(--bank-weak); color: var(--bank); }
.sc-root .nb-nav button[aria-current="page"] { background: var(--bank); color: #fff; }
.sc-root .nb-screen { padding: 20px 22px 26px; min-width: 0; overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.sc-root .scr-title { font-size: 1.3rem; margin-bottom: 14px; }
.sc-root .scr-title:focus { outline: none; }
.sc-root .scr-title:focus-visible { outline: 2px solid var(--accent); }
.sc-root .panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.sc-root .panel + .panel, .sc-root .acc-grid + .quick, .sc-root .quick + .panel { margin-top: 14px; }
.sc-root .panel h3 { font-size: 1rem; }
.sc-root .panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-root .acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.sc-root .acc { border-radius: var(--radius); padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--bank), var(--bank-2)); box-shadow: var(--shadow-sm); }
.sc-root .acc-savings { background: linear-gradient(135deg, #263a6b, #3b5aa8); }
.sc-root .acc header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sc-root .acc h3 { font-size: .95rem; font-weight: 600; color: #fff; }
.sc-root .acc-iban { font-family: var(--mono); font-size: .78rem; color: #eef8f6; direction: ltr; unicode-bidi: isolate; }
.sc-root .acc-bal { font-size: 1.65rem; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.sc-root .acc-bal.sm { font-size: 1.1rem; margin: 0; }
.sc-root .acc-note { margin: 0; font-size: .8rem; color: #eef8f6; }
.sc-root .acc .link { color: #d9f5f1; margin-top: 8px; }
.sc-root .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-root .qa { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--ink); text-align: start; }
.sc-root .qa .ic { width: 20px; height: 20px; color: var(--bank-2); }
.sc-root .qa:hover { border-color: var(--bank-2); }
.sc-root .tx-list { list-style: none; margin: 0; padding: 0; }
.sc-root .tx { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; text-align: start; border-radius: 8px; }
.sc-root .tx-list li:last-child .tx { border-bottom: 0; }
.sc-root .tx:hover { background: var(--surface-3); }
.sc-root .tx.is-sel { background: var(--accent-weak); }
.sc-root .tx.is-fresh { animation: fresh 2.2s ease-out; }
@keyframes fresh { from { background: var(--ok-weak); } to { background: transparent; } }
.sc-root .tx-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bank-weak); font-size: 1rem; }
.sc-root .tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-root .tx-party { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-root .tx-sub { font-size: .8rem; color: var(--ink-3); }
.sc-root .tx-amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-root .tx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.sc-root .tx-layout.has-detail { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.sc-root .tx-hint { display: none; }
.sc-root .tx-date { font-size: .78rem; color: var(--ink-3); font-weight: 600; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.sc-root .seg { display: inline-flex; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.sc-root .seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.sc-root .seg button[aria-pressed="true"] { background: var(--bank); color: #fff; }
.sc-root .tx-detail { position: sticky; top: 0; }
.sc-root .tx-detail .back { margin-bottom: 6px; }
.sc-root .txd-amt { font-size: 1.7rem; font-weight: 800; margin: 4px 0 0; }
.sc-root .txd-party { font-size: 1.02rem; overflow-wrap: anywhere; }
.sc-root .txd-hist { font-size: .84rem; color: var(--ink-2); margin: 10px 0 0; }
.sc-root .facts { display: grid; gap: 8px; margin: 12px 0 0; }
.sc-root .facts div { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.sc-root .facts dt { color: var(--ink-3); font-size: .84rem; }
.sc-root .facts dd { margin: 0; overflow-wrap: anywhere; }
.sc-root .facts.cols { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.sc-root .facts.cols div { display: block; }
.sc-root .facts.big dd { font-weight: 600; }
.sc-root .facts .amt { font-size: 1.3rem; font-weight: 800; }
.sc-root .acc-detail .facts div { grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); }

/* forms */
.sc-root .form h3 { margin-bottom: 8px; }
.sc-root .field { margin-top: 12px; max-width: 460px; }
.sc-root .field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.sc-root .field select, .sc-root .field input { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 12px; background: #fff; min-height: 42px; }
.sc-root .field select:focus, .sc-root .field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.sc-root .field .hint { margin: 4px 0 0; font-size: .8rem; color: var(--ink-3); }
.sc-root .field .err { margin: 4px 0 0; font-size: .82rem; color: var(--bad); font-weight: 600; min-height: 0; }
.sc-root .field .err:empty { display: none; }
.sc-root .field.has-err select, .sc-root .field.has-err input { border-color: var(--bad); background: #fffafa; }
.sc-root .amount-in { display: flex; align-items: stretch; }
.sc-root .amount-in input { border-start-end-radius: 0; border-end-end-radius: 0; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.sc-root .amount-in span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-inline-start: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; background: var(--surface-3); font-weight: 600; color: var(--ink-2); }
.sc-root .by-ai { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-weak); padding: 3px 10px; border-radius: 999px; margin: 0 0 8px; }
.sc-root .by-ai .ic { width: 15px; height: 15px; }
.sc-root .notice { font-size: .86rem; color: var(--ink-2); background: var(--surface-3); border-radius: 10px; padding: 8px 12px; margin: 14px 0 0; }
.sc-root .done { text-align: center; }
.sc-root .done .facts { max-width: 420px; margin-inline: auto; text-align: start; }
.sc-root .done .row-actions { justify-content: center; }
.sc-root .done-ic { margin: 0; color: var(--ok); }
.sc-root .ic-xl { width: 44px; height: 44px; background: var(--ok-weak); border-radius: 50%; padding: 8px; }
.sc-root .done h3 { font-size: 1.15rem; margin: 6px 0; }
.sc-root .benef-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-root .benef { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; }
.sc-root .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bank-weak); color: var(--bank); font-weight: 700; font-size: .9rem; }
.sc-root .benef-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-root .benef-name { font-weight: 600; }
.sc-root .stmt-form { display: flex; flex-wrap: wrap; gap: 0 16px; padding-top: 4px; }
.sc-root .stmt-form .field { flex: 1 1 200px; }
.sc-root .table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; max-height: 360px; overflow-y: auto; }
.sc-root .stmt-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sc-root .stmt-table th, .sc-root .stmt-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: start; }
.sc-root .stmt-table thead th { position: sticky; top: 0; background: var(--surface-3); font-size: .78rem; color: var(--ink-3); }
.sc-root .stmt-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-root .card-wrap { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-root .bank-card { position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #0e3b43 0%, #1d7a83 60%, #4fb3a9 100%);
    box-shadow: 0 16px 34px rgba(14, 59, 67, .32); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; transition: filter .3s; }
.sc-root .bank-card.is-blocked { filter: grayscale(.85) brightness(.85); }
.sc-root .bc-bank { font-weight: 800; letter-spacing: .02em; }
.sc-root .bc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f3d48a, #c99b3b); align-self: center; }
.sc-root .bc-num { font-family: var(--mono); font-size: 1.12rem; letter-spacing: .08em; }
.sc-root .bc-name { font-size: .82rem; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.sc-root .bc-type { position: absolute; top: 18px; inset-inline-end: 20px; font-size: .76rem; opacity: .85; }
.sc-root .bc-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 37, 69, .45); font-weight: 800; font-size: 1.05rem; }
.sc-root .bc-lock .ic { width: 22px; height: 22px; }
.sc-root .card-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }

/* notifications and the dialog */
.sc-root .sc-toasts { position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 80; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.sc-root .toast { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; animation: tin .25s ease-out; transition: opacity .5s, transform .5s; }
.sc-root .toast .ic { width: 18px; height: 18px; color: #7ee2b8; flex: none; }
.sc-root .toast-bad { background: var(--bad); }
.sc-root .toast-bad span[aria-hidden] { font-weight: 900; }
.sc-root .toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.sc-root .sc-dialog { border: 0; border-radius: var(--radius-lg); padding: 22px 24px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(15, 37, 69, .3); color: var(--ink); }
.sc-root .sc-dialog::backdrop { background: rgba(15, 37, 69, .42); }
.sc-root .sc-dialog h2 { font-size: 1.12rem; }
.sc-root .sc-dialog p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
    .sc-root *, .sc-root *::before, .sc-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* medium screens: the app's menu on top */
@media (max-width: 1180px) {
    .sc-root .nb-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .sc-root .nb-nav { border-inline-end: 0; border-bottom: 1px solid var(--border); padding: 8px; overflow-x: auto; }
    .sc-root .nb-nav ul { display: flex; gap: 4px; }
    .sc-root .nb-nav button { white-space: nowrap; padding: 8px 11px; }
    .sc-root .tx-layout.has-detail { grid-template-columns: minmax(0, 1fr); }
    .sc-root .tx-layout.has-detail .tx-detail { order: -1; position: static; }
    .sc-root .card-wrap { grid-template-columns: minmax(0, 1fr); }
    .sc-root .bank-card { max-width: 360px; }
}

/* small screens: the app first; the assistant below it sticks to the bottom of the screen while the demo is being
   scrolled (position: sticky inside the section, so it never covers the rest of the site), half or full height */
@media (max-width: 899px) {
    .sc-root .sc-bar { padding: 0 12px; gap: 8px; }
    .sc-root .sc-lang select { max-width: 120px; }
    .sc-root #sc-reset { padding: 6px 10px; white-space: nowrap; }
    .sc-root .sc-main { display: flex; flex-direction: column; padding: 10px 12px 0; gap: 12px; }
    .sc-root .sc-main > * { min-width: 0; width: 100%; max-width: 100%; }
    .sc-root .sc-app { order: 1; position: static; height: auto; min-height: 0; max-height: none; }
    .sc-root .sc-assistant { order: 2; position: sticky; bottom: 0; top: auto; z-index: 30; height: 56vh; height: 56dvh; min-height: 0; max-height: none;
        border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(15, 37, 69, .18); transition: height .25s ease; }
    .sc-root .sc-assistant[data-sheet="full"] { height: calc(100vh - var(--head-h) - 8px); height: calc(100dvh - var(--head-h) - 8px); }
    .sc-root .sc-ai-head { padding: 6px 14px 8px; position: relative; padding-top: 16px; }
    .sc-root .sc-sheet { display: block; position: absolute; inset: 0 0 auto 0; height: 22px; border: 0; background: transparent; cursor: pointer; }
    .sc-root .sc-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 7px auto 0; }
    /* the scenarios as one row of chips, always reachable */
    .sc-root .sc-try { padding: 6px 12px 2px; }
    .sc-root .sc-try h3 { display: none; }
    .sc-root .sc-try .sc-scenarios, .sc-root .sc-try.compact .sc-scenarios { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .sc-root .sc-try .scn { width: auto; flex: none; padding: 4px 10px 4px 6px; border-radius: 999px; gap: 6px; }
    .sc-root .sc-try .scn-n { width: 20px; height: 20px; font-size: .7rem; }
    .sc-root .sc-try .scn-txt span { display: none; }
    .sc-root .sc-try .scn-txt strong { font-size: .8rem; white-space: nowrap; }
    .sc-root .sc-form { padding: 8px 12px; }
    .sc-root .sc-assistant[data-sheet="half"] .sc-ai-note { display: none; }
    .sc-root .nb-screen { padding: 14px 14px 20px; overflow: visible; }
    .sc-root .nb-head { padding: 10px 14px; }
    .sc-root .nb { height: auto; }
    .sc-root .quick { grid-template-columns: 1fr; }
    .sc-root .sc-toasts { inset-block-end: calc(56vh + 12px); inset-inline: 12px; max-width: none; }
    .sc-root .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sc-root .cc-facts { grid-template-columns: 1fr; }
}
/* the site's floating "Ask" chat steps aside while the demo (the same assistant) is on screen */
html.demo-visible .aic { display: none !important; }
