/* =====================================================================================
   LND Aura portal, fourth layer: fonts, bot cards, the bot page header, switches, custom drop-downs, orb icons.
   ===================================================================================== */
:root { --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif; --serif: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; }
body.pg { font-family: var(--font); letter-spacing: 0; word-spacing: .02em; }
.ph h1, .card h2, .bcard h3, .dlg h3, .plan h3, .auth-card h1, .tile b, .plan .price, .ring b, .hello h2, .chead h1, .orbstage h1, .gone h2, .empty h3, .bh-name { font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; }
.ph h1 em, .auth-art h2 em { font-style: normal; font-weight: 800; }
.card h2 { font-size: 26px; font-weight: 700; } .logo, .logo b { font-family: var(--serif); } .logo { font-weight: 600; }

/* ---------- the bot cards ---------- */
.bots { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.bcard { --h1: 262; --h2: 200; padding: 0; gap: 0; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line2); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.bcard::before { display: none; } .bcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px hsl(var(--h1) 60% 40% / .6); border-color: hsl(var(--h1) 60% 60% / .6); }
.bcard[data-pal="0"] { --h1: 262; --h2: 205; } .bcard[data-pal="1"] { --h1: 172; --h2: 215; } .bcard[data-pal="2"] { --h1: 24; --h2: 340; } .bcard[data-pal="3"] { --h1: 318; --h2: 262; } .bcard[data-pal="4"] { --h1: 205; --h2: 150; } .bcard[data-pal="5"] { --h1: 45; --h2: 8; }
.bcard-top { position: relative; padding: 22px 22px 18px; color: #fff; background: radial-gradient(120% 160% at 100% 0%, hsl(var(--h2) 85% 62% / .9), transparent 60%), radial-gradient(90% 120% at 0% 100%, hsl(var(--h1) 80% 55% / .9), transparent 62%), linear-gradient(135deg, hsl(var(--h1) 55% 30%), hsl(var(--h2) 55% 24%)); }
.bcard-top::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px); opacity: .6; pointer-events: none; }
.bcard-top > * { position: relative; z-index: 1; }
.bcard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bava { width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; font: 500 28px var(--serif); color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.bcard-top h3 { margin: 14px 0 4px; font: 500 24px/1.15 var(--serif); color: #fff; letter-spacing: -.02em; } .bcard-top p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; min-height: 2.6em; -webkit-line-clamp: 2; }
.bcard-body { padding: 18px 22px 20px; display: grid; gap: 14px; flex: 1; background: var(--card); }
.bcard .tag { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); } .bcard-body .tag { background: var(--panel2); color: var(--soft); border-color: var(--line2); } .bcard-body .tag.acc { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
.bstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .bstat { padding: 10px 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); } .bstat b { display: block; font: 600 17px var(--font); letter-spacing: -.02em; } .bstat span { font-size: 11.5px; color: var(--muted); }
.bmeter { height: 6px; border-radius: 6px; background: var(--panel); overflow: hidden; } .bmeter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, hsl(var(--h1) 75% 60%), hsl(var(--h2) 75% 58%)); }
.bcard-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .bcard-a .grow { flex: 1; }
.bcard.off { filter: saturate(.55); } .bcard.off .bcard-top { opacity: .85; }
.bcard-new { display: grid; place-content: center; justify-items: center; gap: 10px; min-height: 320px; padding: 24px; border-radius: 28px; border: 2px dashed var(--line2); background: transparent; color: var(--soft); text-align: center; transition: border-color .25s, background-color .25s, transform .3s var(--ease); } .bcard-new:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); transform: translateY(-3px); } .bcard-new b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 300 34px/1 var(--font); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); } .bcard-new span { font-weight: 600; font-size: 16px; } .bcard-new small { color: var(--muted); max-width: 26ch; }

/* ---------- the switch (used for live/off and the options) ---------- */
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; font-weight: 600; }
.sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw .trk { position: relative; flex: none; width: 46px; height: 26px; border-radius: 26px; background: color-mix(in srgb, var(--muted) 35%, transparent); border: 1px solid var(--line2); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.sw .trk::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px -2px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.sw input:checked ~ .trk { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 6px 16px -6px var(--accent); } .sw input:checked ~ .trk::after { transform: translateX(20px); }
.sw input:focus-visible ~ .trk { outline: 2px solid var(--accent); outline-offset: 3px; } .sw input:disabled ~ .trk { opacity: .45; }
.sw.dark .lbl { color: #fff; } .bcard-top .sw .trk { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.2); } .bcard-top .sw input:checked ~ .trk { background: #6fe3a8; } .bcard-top .sw input:checked ~ .trk::after { background: #fff; }
/* option rows: the whole row is a switch row */
.chk { align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; } .chk input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; order: 3; margin: 0 0 0 auto; width: 46px; height: 26px; border-radius: 26px; background: color-mix(in srgb, var(--muted) 35%, transparent); border: 1px solid var(--line2); position: relative; cursor: pointer; transition: background-color .25s, border-color .25s, box-shadow .25s; accent-color: initial; }
.chk input[type=checkbox]::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px -2px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.chk input[type=checkbox]:checked { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 6px 16px -6px var(--accent); } .chk input[type=checkbox]:checked::after { transform: translateX(20px); } .chk input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; } .chk input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chk > span { flex: 1; min-width: 0; } .chk:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 50%, var(--line2)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.ce-rights input { order: 0 !important; margin: 3px 0 0 !important; }

/* ---------- the drop-down ---------- */
.dd { position: relative; } .dd > select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px 8px 16px; border-radius: 16px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel-solid) 55%, transparent); color: var(--ink); text-align: left; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
:root[data-theme="paper"] .dd-btn { background: #fff; } .dd-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); } .dd.open .dd-btn, .dd-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); outline: 0; }
.dd-btn .dd-main { flex: 1; min-width: 0; display: grid; } .dd-btn .dd-main small { color: var(--muted); font-size: 12.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dd-btn .dd-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); } .dd.open .dd-btn::after { transform: rotate(225deg) translate(-2px, -2px); }
.dd-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: 300px; overflow-y: auto; padding: 8px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel-solid); box-shadow: 0 30px 70px -24px rgba(0,0,0,.65); animation: pop .18s var(--ease) both; transform-origin: top; }
.dd-list[hidden] { display: none; } .dd-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; text-align: left; color: var(--soft); font-size: 15px; } .dd-opt:hover, .dd-opt.act { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.dd-opt .dd-main { flex: 1; min-width: 0; display: grid; } .dd-opt small { color: var(--muted); font-size: 12.5px; } .dd-opt[aria-selected="true"] { color: var(--ink); font-weight: 600; } .dd-opt[aria-selected="true"]::after { content: "\2713"; color: var(--accent); font-weight: 800; }

/* ---------- the bot page header ---------- */
.bothead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 26px; margin-bottom: 18px; border-radius: 30px; border: 1px solid var(--line2); position: relative; overflow: hidden; background: radial-gradient(120% 200% at 100% 0%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 55%), radial-gradient(100% 160% at 0% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%), var(--card); }
.bh-ava { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; font: 500 40px var(--serif); color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 20px 36px -16px var(--accent), inset 0 1px 0 rgba(255,255,255,.5); }
.bh-name { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bh-sub { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bh-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .bh-live { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); }
.back { margin-bottom: 14px; }
@media (max-width: 900px) { .bothead { grid-template-columns: auto minmax(0, 1fr); padding: 18px; } .bh-act { grid-column: 1 / -1; justify-content: flex-start; } .bh-ava { width: 58px; height: 58px; font-size: 30px; border-radius: 20px; } .bh-name { white-space: normal; } }
.etabs { display: flex; width: 100%; position: sticky; top: 78px; margin-bottom: 22px; padding: 6px; gap: 4px; } .etabs button { flex: 1; text-align: center; padding: 12px 10px; } @media (max-width: 640px) { .etabs { overflow-x: auto; } .etabs button { flex: none; } }

/* ---------- orb icons for the themes ---------- */
.look button i, .tsw { background: radial-gradient(circle at 32% 26%, #fff 0, color-mix(in srgb, #fff 55%, var(--a)) 12%, var(--a) 38%, var(--b) 72%, var(--c) 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 22px -8px var(--a), 0 0 18px -4px var(--b); border: 0; }
.tbtn svg, #themeBtn svg { display: none; } #themeBtn::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0, var(--accent) 40%, var(--accent2) 80%, #14102e 100%); box-shadow: 0 0 12px -2px var(--accent); }
.sw-orb { display: inline-block; width: 20px; height: 20px; border-radius: 50%; }
.savebar .err { margin: 0; flex-basis: 100%; }

.card:has(.dd.open), .dlg-in:has(.dd.open) { position: relative; z-index: 30; }
.dd.open { z-index: 31; }

/* the unavailable message: orb and text together, centred */
.cshell:has(> .gone) { display: grid; place-items: center; grid-template-rows: 1fr; }
.gone { display: grid; justify-items: center; gap: 4px; margin: 0; } .gone .orb-wrap { display: grid; place-items: center; margin-bottom: 8px; }

/* the menu button lives in the top bar; its card drops down from under the bar */
@media (max-width: 1100px) {
  .nav .burger, body .burger { position: static !important; left: auto; bottom: auto; width: 42px !important; height: 42px !important; padding: 0 !important; gap: 0 !important; border-radius: 13px !important; justify-content: center; box-shadow: none !important; background: var(--panel2) !important; -webkit-backdrop-filter: none; backdrop-filter: none; flex: none; }
  .burger span { display: none !important; } .burger svg { display: block; width: 20px; height: 20px; } .burger[aria-expanded="true"] { border-color: var(--accent); }
  .mnav:not([hidden]) { top: 74px !important; bottom: auto !important; left: auto !important; right: 12px !important; width: min(310px, calc(100vw - 24px)) !important; max-height: calc(100dvh - 92px) !important; transform-origin: top right; animation: pop .2s var(--ease) both; }
}

/* the credits chip is not one of the landing page's floating chips: it must stay still */
.nav .chip, #chipSlot .chip { animation: none !important; will-change: auto; position: relative; }
/* the phone menu: a full-width, tidy sheet under the bar */
@media (max-width: 1100px) {
  .mnav:not([hidden]) { left: 12px !important; right: 12px !important; width: auto !important; padding: 10px 10px 12px !important; border-radius: 24px !important; }
  .mnav .mn-h { margin: 8px 12px 4px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .mnav a { display: flex !important; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px !important; border: 0 !important; border-radius: 14px; font-size: 16px !important; font-weight: 500; color: var(--soft); }
  .mnav a svg { flex: none; color: var(--accent); opacity: .9; } .mnav a:hover, .mnav a.cur { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); } .mnav a.cur { font-weight: 600; }
  .mnav a.mn-bot { padding-left: 52px !important; min-height: 42px; font-size: 15px !important; } .mnav a.mn-new { color: var(--accent); font-weight: 600; }
  .mnav .mn-h.mn-bot { padding: 0; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: block; }
}
@media (max-width: 1100px) { .mnav a.mn-bot { padding-left: 14px !important; } .mnav a.mn-bot::before { content: ""; width: 8px; height: 8px; margin: 0 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); flex: none; } .mnav a.mn-new::before { display: none; } }

/* on a phone the main chatbot fills everything under the top bar */
@media (max-width: 1100px) { body.appview .appframe { top: 70px; left: 0; width: 100vw; height: calc(100dvh - 70px); border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; } }

@media (max-width: 1100px) { .mnav a.mn-bot { padding-left: 50px !important; min-height: 40px; font-size: 15px !important; } .mnav a.mn-bot::before { margin: 0 4px 0 -2px; } .mnav a.mn-new { padding-left: 50px !important; } .mnav a.mn-new::before { display: none; } }

/* ---------- the guided tour and the checklist ---------- */
.tr-veil { position: fixed; inset: 0; z-index: 200; background: rgba(6, 4, 14, .62); } .tr-veil.clear { background: transparent; }
.tr-hole { position: fixed; z-index: 201; display: none; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(6, 4, 14, .62), 0 0 0 3px var(--accent), 0 0 26px 4px color-mix(in srgb, var(--accent) 55%, transparent); pointer-events: none; transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.tr-card { position: fixed; z-index: 202; padding: 20px 22px 18px; border-radius: 24px; border: 1px solid var(--line2); background: var(--panel-solid); color: var(--ink); box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75); animation: pop .25s var(--ease) both; }
.tr-step { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); } .tr-card h3 { margin: 6px 0 6px; font: 500 24px/1.15 var(--serif); } .tr-card p { margin: 0 0 14px; color: var(--soft); font-size: 15px; line-height: 1.55; }
.tr-dots { display: flex; gap: 6px; margin-bottom: 14px; } .tr-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); transition: width .25s var(--ease), background-color .25s; } .tr-dots i.on { width: 22px; border-radius: 6px; background: var(--accent); }
.tr-act { display: flex; align-items: center; gap: 8px; } .tr-act .grow { flex: 1; }
.cl { margin: 0 0 20px; padding: 20px 22px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line2)); background: radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--card); }
.cl-h { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-bottom: 14px; } .cl-h b { font: 500 22px var(--serif); display: block; } .cl-h span { color: var(--muted); font-size: 13.5px; } .cl-bar { grid-column: 1 / -1; grid-row: 2; height: 7px; border-radius: 7px; background: var(--panel); overflow: hidden; } .cl-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s var(--ease); }
.cl-x { grid-row: 1; grid-column: 2; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); } .cl-x:hover { background: var(--panel); color: var(--ink); }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.cl-list button { width: 100%; height: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel2); transition: border-color .2s, transform .25s var(--ease); } .cl-list button:hover { border-color: var(--accent); transform: translateY(-2px); }
.cl-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent2)); } .cl-list li.ok .cl-n { background: var(--ok); color: #06241a; } .cl-list li.ok button { opacity: .72; }
.cl-t b { display: block; font-size: 15.5px; } .cl-t em { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 4px; font-style: normal; } .cl-t small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; } .cl-go { color: var(--accent); align-self: center; }
.tourbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; } .tourbtn:hover { color: var(--accent); }

.phones { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; margin: 18px -2px 0; scroll-snap-type: x proximity; } .ph1 { flex: none; width: min(220px, 62vw); margin: 0; scroll-snap-align: start; } .ph1 a { display: block; border-radius: 26px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 22px 44px -28px rgba(0,0,0,.7); background: var(--bg0); } .ph1 img { display: block; width: 100%; height: auto; } .ph1 figcaption { margin-top: 8px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tr-card { animation: trIn .25s var(--ease) both; } @keyframes trIn { from { opacity: 0; } }
.sd-tour, .mn-tour { cursor: pointer; }

.sd-tour { width: 100%; text-align: left; color: var(--soft); } .sd-tour svg { color: var(--accent); }
@media (max-width: 1100px) { .mnav .mn-tour { margin-top: 6px; border-top: 1px solid var(--line) !important; border-radius: 0 0 14px 14px !important; color: var(--accent) !important; } }

/* docs: one step per row (the landing page's 3-column .steps rule must not apply here), and phone shots in a tidy wrapped row */
.doc .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 16px 0 22px; }
.doc .steps > li { padding: 18px 20px 18px 70px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel); min-height: 0; }
.doc .steps > li::before { left: 20px; top: 18px; width: 34px; height: 34px; font-size: 15px; }
.doc .steps h3 { margin: 4px 0 6px; font-size: 17px; }
.doc .steps p { margin: 0; font-size: 15.5px; line-height: 1.65; max-width: none; }
.doc .steps .shot { margin: 14px 0 2px; }
.doc .steps .shot a { max-width: 100%; }
.doc .steps .shot.tall a { max-width: 420px; margin-inline: 0; }
.doc .phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; overflow: visible; margin: 22px 0 0; padding: 0; scroll-snap-type: none; }
.doc .ph1 { width: calc((100% - 36px) / 3); max-width: 230px; }
@media (max-width: 640px) { .doc .steps > li { padding: 16px 16px 16px 58px; } .doc .steps > li::before { left: 14px; top: 16px; width: 30px; height: 30px; } .doc .ph1 { width: calc((100% - 18px) / 2); } }
/* credit hints inside the choice buttons */
.seg button small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.25; white-space: normal; }
#fMode, #nMode { height: auto !important; align-items: stretch; } #fMode button, #nMode button { height: auto !important; min-height: 54px; padding: 8px 20px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; } #fMode button small, #nMode button small { white-space: nowrap; } @media (max-width: 520px) { #fMode, #nMode { width: 100%; } #fMode button, #nMode button { flex: 1; padding: 8px 10px; } #fMode button small, #nMode button small { white-space: normal; text-align: center; } }

/* credits per visitor message */
.permsg { border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 14px; }
.permsg > b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.permsg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.permsg li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line2); }
.permsg li:last-child { border-bottom: 0; } .permsg li span { color: var(--soft); } .permsg li em { font: 600 15px var(--mono, monospace); font-style: normal; white-space: nowrap; color: var(--ink); }
.permsg small { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
#nCost { margin: 4px 0 10px; }

/* the bots you made sit under "All my bots" */
.sd-sub { margin: 2px 0 0 18px; padding-left: 8px; border-left: 1px solid var(--line2); display: grid; gap: 2px; }
.sd-sub .sd-i { padding-top: 7px; padding-bottom: 7px; font-size: 14.5px; } .sd-sub .sd-none { margin: 4px 6px 6px; font-size: 13px; } .sd-sub .sd-new { margin-top: 6px; }

.sd-sub { min-width: 0; margin-right: 2px; } .sd-sub .sd-i { min-width: 0; } .sd-sub .sd-i > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sd-sub .sd-new { box-sizing: border-box; width: 100%; display: block; text-align: center; }

.sd-sub .sd-new { margin: 6px 0 2px; width: auto; }

.sd-sub .sd-new { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 40px; padding: 0 12px; line-height: 1; }

/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="pro"] .dd-btn { background: #fff; }

/* the same light-mode adjustments for the amber and teal light themes */
/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="ember-light"] .dd-btn { background: #fff; }
/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="tide-light"] .dd-btn { background: #fff; }

/* the Free trial's list shows what is missing as a grey dash */
.plan ul li.no { color: var(--muted); } .plan ul li .x { display: inline-grid; place-items: center; width: 16px; flex: none; color: var(--muted); font-weight: 700; }
.plans .bill-wrap { margin: 0 0 6px; }

/* the top bar on the right: [theme] [credits] [you] */
.nav-end { gap: 10px; }
.chip.credits { padding: 0 14px 0 12px; text-decoration: none; }
.chip.avb { width: 40px; padding: 0; justify-content: center; }
.chip.avb .av { width: 30px; height: 30px; }
@media (max-width: 520px) { .chip.credits small { display: none; } }

/* Build tab: three clear groups, each with its own heading, so a label always sits with the field under it */
.fgrp { padding: 22px 0 6px; border-top: 1px solid var(--line2); margin-top: 8px; }
.fgrp:first-of-type { border-top: 0; padding-top: 10px; margin-top: 0; }
.fgrp-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 15px/1.2 var(--sans, inherit); letter-spacing: .01em; text-transform: none; color: var(--ink); }
.fgrp-h i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px var(--mono, inherit); font-style: normal; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.fgrp .fld { gap: 8px; margin-bottom: 22px; }
.fgrp .fld > span { font-size: 13.5px; }
.fgrp textarea { line-height: 1.5; }

/* the two bot types, with a visible "or" between them */
.kinds { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.kinds .kind { flex: 1 1 0; min-width: 0; }
.kor { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; position: relative; }
.kor::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: var(--line2); }
.kor em { position: relative; font: 700 12px var(--mono, inherit); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 7px 0; background: var(--panel-solid, var(--panel, #fff)); }
@media (max-width: 640px) { .kinds { flex-direction: column; } .kor { width: auto; height: 40px; } .kor::before { top: 50%; bottom: auto; left: 12px; right: 12px; width: auto; height: 1px; } .kor em { padding: 0 12px; } }

/* the Knowledge dropdown inside the Build tab (information bots only) */
.kbdrop { margin: 20px 0 10px; border: 1px solid var(--line2); border-radius: 18px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.kbdrop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.kbdrop > summary::-webkit-details-marker { display: none; }
.kbs-t b { display: block; font-size: 16px; color: var(--ink); } .kbs-t small { color: var(--muted); font-size: 13px; }
.kbs-c { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.kbdrop[open] > summary .kbs-c { transform: rotate(-135deg); }
.kbdrop > #tKb { padding: 0 14px 16px; }
.kbdrop .card { box-shadow: none; margin-bottom: 0; }
.kbdrop .kbh { margin: 0 0 6px; font-size: 17px; }
.kbdrop .card h2::before { display: none; }

/* ===== polish (2026-10-31): balance, spacing and calmer motion ===== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
html { scroll-behavior: smooth; }
.nav-in { gap: 28px; } .nav .logo { flex: none; } .lockup { height: 52px; }
.nav-end { align-items: center; margin-left: auto; }
.chip, #themeBtn { height: 42px; }

/* cards: one rhythm of padding and gaps */
.card { padding: 30px 32px; border-radius: 26px; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .35s; }
.card + .card, .card + .fgrp { margin-top: 22px; }
.card:hover { box-shadow: 0 22px 50px -34px rgba(30, 20, 70, .35); }
.card h2 { margin-bottom: 14px; }
.card > p.lead { margin-bottom: 20px; }
@media (max-width: 640px) { .card { padding: 22px 18px; border-radius: 22px; } }

/* the numbered groups: strong, even headings */
.fgrp-h { font-family: inherit; font-weight: 700; font-size: 16px; letter-spacing: 0; margin-bottom: 18px; }
.fgrp { padding: 26px 0 8px; }
.fgrp .fld > span { font-weight: 600; }
.fgrp .fld > span small { margin-left: 8px; }
.grid2 { gap: 18px 22px; }

/* fields */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select.sel { transition: border-color .2s, box-shadow .25s var(--ease-out), background-color .2s; }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
input:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

/* bot types: a tick on the chosen one, a gentle lift on hover */
.kind { position: relative; padding: 18px 20px; transition: transform .25s var(--ease-out), border-color .25s, background-color .3s, box-shadow .3s var(--ease-out); }
.kind:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line2)); box-shadow: 0 14px 30px -22px var(--accent); }
.kind[aria-pressed="true"] { box-shadow: 0 14px 34px -22px var(--accent); }
.kind::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); background: transparent; transition: background-color .25s, border-color .25s, transform .3s var(--ease-out); }
.kind[aria-pressed="true"]::after { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)) ; transform: scale(1.08); box-shadow: inset 0 0 0 4px var(--panel-solid, #fff), 0 0 0 0 transparent; }
.kind b { padding-right: 26px; }

/* buttons and tabs */
.btn, .etabs button, .show, .seg button, .sd-i, .links a { transition: transform .2s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .3s var(--ease-out), opacity .2s; }
.btn:hover { transform: translateY(-1px); } .btn:active, .kind:active, .show:active { transform: translateY(0) scale(.985); }
.etabs button[aria-selected="true"] { box-shadow: 0 10px 24px -12px var(--accent); }

/* things that appear: ease in instead of snapping */
#tSetup:not([hidden]), #tTry:not([hidden]), #tShare:not([hidden]), #tResults:not([hidden]) { animation: panelIn .4s var(--ease-out); }
#fbBox:not([hidden]), #voiceBox:not([hidden]), #kbDrop:not([hidden]), .note:not([hidden]) { animation: panelIn .35s var(--ease-out); }
.kbdrop[open] > #tKb { animation: panelIn .4s var(--ease-out); }
.kbdrop { transition: border-color .25s, background-color .3s, box-shadow .3s var(--ease-out); } .kbdrop[open] { box-shadow: 0 20px 44px -34px var(--accent); }
.savebar:not([hidden]) { animation: barIn .4s var(--ease-out); }
#viewEdit { padding-bottom: 96px; }
.src, .bcard, .tile, .show { transition-timing-function: var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* the whole page eases between themes instead of flashing */
body, .nav, .card, .etabs, .sd, .chip, .tbtn, .kind, .chk, input, textarea { transition-property: background-color, border-color, color, box-shadow, transform, opacity; transition-duration: .35s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

#chipSlot { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 520px) { .nav-end { gap: 8px; } #chipSlot { gap: 8px; } .chip.credits { padding: 0 11px 0 10px; } }

/* ===== top bar, organised: [logo | pages] ........ [theme] [credits] [account] ===== */
.nav-in { height: 68px; gap: 0; }
.lockup { height: 40px; } @media (max-width: 680px) { .lockup { height: 36px; } }
.nav .logo { display: inline-flex; align-items: center; padding-right: 24px; margin-right: 22px; position: relative; }
.nav .logo::after { content: ""; position: absolute; right: 0; top: 50%; height: 30px; margin-top: -15px; width: 1px; background: var(--line2); }
.nav .links { display: flex; align-items: center; gap: 4px; }
.nav .links a { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.nav .links a:not(.cur):hover { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); }
.nav .links a.cur::after { left: 15px; right: 15px; bottom: 2px; }
.nav-end { gap: 10px; margin-left: auto; }
#themeBtn { padding: 0 16px 0 12px; font-weight: 500; }
.chip.credits { height: 42px; }
/* the account: initial, name and a small arrow */
.chip.avb { width: auto; max-width: 220px; padding: 0 12px 0 5px; gap: 9px; justify-content: flex-start; font-weight: 600; font-size: 14px; color: var(--ink); }
.chip.avb .nm { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.avb .cv { flex: none; opacity: .55; transition: transform .25s var(--ease-out); }
.chip.avb[aria-expanded="true"] .cv { transform: rotate(180deg); }
@media (max-width: 900px) { .chip.avb { width: 42px; padding: 0; justify-content: center; } .chip.avb .nm, .chip.avb .cv { display: none; } .nav .logo { padding-right: 16px; margin-right: 12px; } }
.pop-me .av { color: var(--accent-ink); }

/* ===== round 2: logo size (brand.css loads after, so it needs the higher selector), sliding tab highlight, scroll reveals ===== */
.nav .lockup { height: 40px; } @media (max-width: 680px) { .nav .lockup { height: 34px; } }
.nav .logo { height: 48px; }

.etabs { isolation: isolate; }
.etabs.pill::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: var(--tw); height: var(--th); transform: translate(var(--tx), var(--ty)); border-radius: 13px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent2))); box-shadow: 0 10px 24px -12px var(--accent); transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .3s; }
.etabs.pill button[aria-selected="true"] { background: transparent; box-shadow: none; }
.etabs button { z-index: 1; }

/* cards rise into place as they scroll into view (browsers without scroll-driven animation just show them) */
@supports (animation-timeline: view()) {
  #viewEdit .card, .tiles .tile { animation: cardIn linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.99); } to { opacity: 1; transform: none; } }

/* small touches */
.sd-i:hover { transform: translateX(3px); }
.sd-i.on:hover { transform: none; }
.card h2::before { transition: height .3s var(--ease-out), transform .3s var(--ease-out); } .card:hover h2::before { height: 28px; }
.cl-bar i { transition: width .8s var(--ease-out); }
.cl-list li button { transition: transform .25s var(--ease-out), border-color .25s, background-color .3s, box-shadow .3s var(--ease-out); } .cl-list li button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px var(--accent); }
.cl-list li.ok .cl-n { animation: tickPop .5s var(--ease-out); }
@keyframes tickPop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: none; } }
.sw .trk, .sw .trk::after, .chk input[type=checkbox], .chk input[type=checkbox]::after { transition-duration: .3s; transition-timing-function: var(--ease-out); }
.fgrp-h i { transition: transform .3s var(--ease-out); } .fgrp:hover .fgrp-h i { transform: scale(1.1) rotate(-6deg); }
.chip.credits:hover, .chip.avb:hover, #themeBtn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -16px var(--accent); }
.nav .links a.cur::after { animation: underlineIn .45s var(--ease-out); } @keyframes underlineIn { from { transform: scaleX(0); } to { transform: none; } }
.pop { animation: popIn .25s var(--ease-out); transform-origin: top right; } @keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; transition: outline-offset .15s; }

/* ===== live preview: a phone-sized page scaled to fit, never scrolls ===== */
.pvfit { --s: .85; position: relative; margin: 0 auto; }
.pvfit .pvframe { position: absolute; left: 0; top: 0; width: 390px; height: 760px; max-width: none; transform: scale(var(--s)); transform-origin: 0 0; border-radius: 30px; overflow: hidden; }
.pvwrap { top: 158px; }
.lookrow { align-items: start; }

/* ===== log in / sign up ===== */
body.authpg #backdrop .blob { opacity: .55; }
body.authpg .auth-art { position: relative; }
body.authpg .auth-art .orb-wrap::before, body.authpg .auth-art .orb-wrap::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); transform: translate(-50%, -50%); pointer-events: none; }
body.authpg .auth-art .orb-wrap { position: relative; }
body.authpg .auth-art .orb-wrap::before { width: 120%; height: 120%; animation: ringBreath 5s ease-in-out infinite; }
body.authpg .auth-art .orb-wrap::after { width: 142%; height: 142%; opacity: .55; animation: ringBreath 5s ease-in-out 1.2s infinite; }
@keyframes ringBreath { 50% { transform: translate(-50%, -50%) scale(1.04); opacity: .35; } }
body.authpg .auth-art h2 { letter-spacing: -.02em; }

/* the four builders as small cards */
.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: clamp(10px, 2vh, 18px) auto 0; text-align: left; }
.pt { position: relative; display: grid; gap: 1px; padding: 11px 14px 11px 38px; border-radius: 16px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel-solid, #fff) 70%, transparent); transition: transform .3s var(--ease-out), border-color .3s, box-shadow .35s var(--ease-out); }
.pt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, var(--line2)); box-shadow: 0 16px 30px -22px var(--c); }
.pt i { position: absolute; left: 14px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 16px var(--c); }
.pt b { font-size: 14.5px; color: var(--ink); } .pt span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
@media (max-height: 780px) { .pt { padding: 8px 12px 8px 34px; } .pt i { top: 12px; left: 12px; } .pt span { display: none; } }
@media (max-width: 520px) { .prods { grid-template-columns: 1fr; } }

/* the card: a soft gradient edge, a sliding tab highlight, calmer fields */
body.authpg .auth-card { position: relative; border: 0; background: var(--panel-solid, #fff); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 1px var(--line2); }
body.authpg .auth-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 40%, color-mix(in srgb, var(--accent2) 45%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
body.authpg .auth-card .tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; }
body.authpg .auth-card .tabs::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent2))); box-shadow: 0 10px 22px -12px var(--accent); transition: transform .45s var(--ease-out); }
body.authpg .auth-card .tabs:has(#tabUp[aria-selected="true"])::before { transform: translateX(100%); }
body.authpg .auth-card .tabs button[aria-selected="true"] { background: transparent !important; box-shadow: none !important; }
body.authpg .auth-card section:not([hidden]) { animation: panelIn .4s var(--ease-out); }
body.authpg .auth-card input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
body.authpg .auth-card .btn.solid.wide { position: relative; overflow: hidden; transition: transform .2s var(--ease-out), box-shadow .3s var(--ease-out); }
body.authpg .auth-card .btn.solid.wide:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px var(--accent); }
body.authpg .auth-card .btn.solid.wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
body.authpg .auth-card .btn.solid.wide:hover::after { transform: translateX(120%); }

body.authpg .auth-art .orb-wrap { margin-bottom: clamp(14px, 3.4vh, 30px); }
@media (max-height: 780px) { body.authpg .auth-art .orb-wrap { margin-bottom: 14px; } }

/* ===== round 4: the preview matches the theme panel beside it; a cleaner "or" ===== */
.pvfit { margin: 0 auto; transition: width .35s var(--ease-out), height .35s var(--ease-out); }
.pvfit .pvframe { width: 360px; height: 620px; border-radius: 28px; transition: transform .35s var(--ease-out); }
.pvwrap { top: 158px; }
.lookrow { align-items: start; }

.kinds { gap: 0; }
.kor { width: 72px; z-index: 2; }
.kor::before { top: 16px; bottom: 16px; }
.kor em { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel-solid, #fff); font-size: 11px; letter-spacing: .06em; color: var(--muted); box-shadow: 0 0 0 6px var(--panel-solid, #fff); }
/* the glow of the chosen type stays inside its own side */
.kind:hover { box-shadow: 0 10px 22px -18px var(--accent); }
.kind[aria-pressed="true"] { box-shadow: 0 10px 24px -20px var(--accent); }
@media (max-width: 640px) { .kor { height: 52px; width: auto; } .kor::before { top: 50%; bottom: auto; left: 10px; right: 10px; } }

/* the "or" chip stands alone: no line behind or in front of it */
.kor::before, .kor::after { content: none !important; display: none !important; }
.kor em { box-shadow: none; background: color-mix(in srgb, var(--accent) 7%, var(--panel-solid, #fff)); }

/* ===== the Guide button, and tooltips ===== */
.guidebtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; margin-left: 4px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line2)); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, box-shadow .3s var(--ease-out); }
.guidebtn svg { flex: none; transition: transform .35s var(--ease-out); }
.guidebtn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-style: solid; transform: translateY(-1px); box-shadow: 0 12px 24px -16px var(--accent); }
.guidebtn:hover svg { transform: rotate(-12deg) scale(1.1); }
.guidebtn:active { transform: scale(.97); }
.bh-act { align-items: center; row-gap: 10px; }
#tourList.guidebtn { margin-left: 10px; height: 36px; font-size: 13.5px; }

#aura-tip { position: fixed; z-index: 2147483500; left: 0; top: 0; width: max-content; max-width: min(300px, calc(100vw - 20px)); padding: 11px 14px 12px; border-radius: 14px; background: #15132b; color: #f3f1ff; box-shadow: 0 18px 40px -14px rgba(10, 8, 30, .55), 0 0 0 1px rgba(255, 255, 255, .08); font: 400 13px/1.45 var(--sans, system-ui, sans-serif); pointer-events: none; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .18s ease, transform .22s var(--ease-out); }
#aura-tip[data-side="below"] { transform: translateY(-6px) scale(.97); }
#aura-tip.on { opacity: 1; transform: none; }
#aura-tip b { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 13.5px; font-weight: 700; color: #fff; }
#aura-tip b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent, #8f7dff), var(--accent2, #4fd8ff)); box-shadow: 0 0 10px var(--accent, #8f7dff); flex: none; }
#aura-tip span { display: block; color: rgba(243, 241, 255, .82); }
#aura-tip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); }
#aura-tip[data-side="above"]::after { bottom: -5px; border-radius: 0 0 3px 0; }
#aura-tip[data-side="below"]::after { top: -5px; border-radius: 3px 0 0 0; }
:root[data-theme="aurora"] #aura-tip, :root[data-theme="ember"] #aura-tip, :root[data-theme="tide"] #aura-tip, :root[data-theme="pro-dark"] #aura-tip { background: #262447; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
@media (hover: none) { #aura-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { #aura-tip { transition: opacity .01ms; transform: none; } }

/* ===== round 5: the tooltip is light and smaller; tabs sit flush under the bar; links hide on small screens ===== */
#aura-tip { max-width: min(236px, calc(100vw - 20px)); padding: 8px 11px 9px; border-radius: 11px; background: #ffffff; color: #1d1b34; border: 1px solid rgba(30, 24, 70, .1); box-shadow: 0 14px 30px -12px rgba(25, 20, 60, .35), 0 2px 6px -2px rgba(25, 20, 60, .12); font: 400 12px/1.4 var(--sans, system-ui, sans-serif); }
#aura-tip b { gap: 6px; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: #14122a; }
#aura-tip b::before { width: 6px; height: 6px; box-shadow: none; }
#aura-tip span { color: #55526e; }
#aura-tip::after { width: 9px; height: 9px; margin-left: -4.5px; background: #ffffff; }
#aura-tip[data-side="above"]::after { bottom: -5px; border-right: 1px solid rgba(30, 24, 70, .1); border-bottom: 1px solid rgba(30, 24, 70, .1); }
#aura-tip[data-side="below"]::after { top: -5px; border-left: 1px solid rgba(30, 24, 70, .1); border-top: 1px solid rgba(30, 24, 70, .1); }
:root[data-theme="aurora"] #aura-tip, :root[data-theme="ember"] #aura-tip, :root[data-theme="tide"] #aura-tip, :root[data-theme="pro-dark"] #aura-tip { background: #ffffff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .5); }

.etabs { top: 72px; }
@media (max-width: 1040px) { .nav .links { display: none; } .burger { display: inline-flex; } }
.chk:has(input:disabled) { cursor: not-allowed; } .chk:has(input:disabled) > span { opacity: .72; }

/* ===== round 6: list page spacing, the delete button on cards, equal bot-type cards ===== */
.kind { align-content: start; }
.listmeta { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.listmeta .small { margin: 0; }
#tourList.guidebtn { margin: 0; }
.bots { margin-top: 0; }
.bots + .empty, #botEmpty { margin-top: 8px; }
.empty { padding: 44px 28px; }
.bcard-a { align-items: center; gap: 8px; }
.btn.ico { width: 38px; padding: 0; flex: none; }
.btn.sm.ico svg { transition: transform .25s var(--ease-out); } .btn.ico:hover svg { transform: scale(1.12) rotate(-6deg); }
.bcard-a .btn.danger { color: var(--bad, #d6455d); border-color: color-mix(in srgb, var(--bad, #d6455d) 40%, var(--line2)); } .bcard-a .btn.danger:hover { background: color-mix(in srgb, var(--bad, #d6455d) 10%, transparent); }

.bcard-body .tags { min-height: 58px; align-content: flex-start; }

/* page headers: room between the title and its line of text, and before the content */
.ph h1 + p, .ph h1 + .lead { margin-top: 14px; }
.ph { margin-bottom: 28px; }
.ph.ph-row { margin-bottom: 18px; }

/* ===== round 7: choice buttons share the width evenly (2 options: halves, 3: thirds), fields in the New bot window are evenly spaced ===== */
.dlg .seg, .card .seg { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding: 4px; }
.dlg .seg button, .card .seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 12px; line-height: 1.2; }
@media (max-width: 420px) { .dlg .seg button, .card .seg button { padding: 8px 6px; font-size: 14px; } }

.dlg .fld { margin-bottom: 0; gap: 8px; }
.dlg form.dlg-in { display: grid; gap: 20px; }
.dlg form.dlg-in > h3 { margin: 0; } .dlg form.dlg-in > .lead { margin: -12px 0 0; }
.dlg .fld > span { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.dlg .kinds { align-items: stretch; margin-bottom: 0; }
.dlg .kinds .kind { min-height: 128px; grid-template-rows: auto 1fr; align-content: start; }
.dlg .kinds .kind span { align-self: start; }
.dlg .permsg { margin: 0; }
.dlg .dlg-a { margin-top: 4px; gap: 12px; }
.dlg .dlg-a .btn { min-width: 124px; }
.dlg .err:empty { display: none; }

/* two ways to show a bot: the cards and the landing page share the width in halves */
.shows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-disp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .shows { grid-template-columns: 1fr; } }

/* with the Guide button the action row is wider: below 1320 px it drops under the title instead of squeezing the name */
@media (max-width: 1320px) { .bothead { grid-template-columns: auto minmax(0, 1fr); } .bh-act { grid-column: 1 / -1; justify-content: flex-start; } }

/* the whole bot card is the way in */
.bcard[data-id] { cursor: pointer; }
.bcard[data-id] .btn, .bcard[data-id] .sw, .bcard[data-id] label { cursor: pointer; }
.bcard[data-id]:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); box-shadow: 0 26px 50px -30px var(--accent); }
.bcard[data-id]:active { transform: translateY(-1px); }

/* ===== round 9: motion that means something ===== */
/* the list: cards arrive one after another; the budget bars fill; Live has a heartbeat */
.bots > * { animation: cardRise .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes cardRise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.bmeter i { transform-origin: left; animation: meterGrow 1.1s var(--ease-out) .45s backwards; }
@keyframes meterGrow { from { transform: scaleX(0); } to { transform: none; } }
.tag.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: heartbeat 2s ease-out infinite; }
@keyframes heartbeat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.bcard.off .bcard-top { filter: saturate(.55); transition: filter .5s; }
.bcard .bava { transition: transform .4s var(--ease-out); } .bcard:hover .bava { transform: rotate(-6deg) scale(1.06); }

/* a bot's header: the colour drifts slowly and the initial floats */
.bothead { background-size: 140% 140%, 140% 140%, auto; animation: headDrift 16s ease-in-out infinite alternate; }
@keyframes headDrift { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 100% 40%, 0% 60%, 0 0; } }
.bh-ava { animation: avaFloat 5.5s ease-in-out infinite; }
@keyframes avaFloat { 50% { transform: translateY(-4px) rotate(-2deg); } }

/* the empty list: chat bubbles drift and a reply is typed */
.ill { position: relative; width: 180px; height: 92px; margin: 0 auto 14px; }
.ill i { position: absolute; display: block; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--panel-solid, #fff)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line2)); }
.ill .b1 { left: 6px; top: 6px; width: 92px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; animation: bubbleA 5s ease-in-out infinite; border-bottom-left-radius: 4px; }
.ill .b1 s { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typing 1.2s ease-in-out infinite; } .ill .b1 s:nth-child(2) { animation-delay: .18s; } .ill .b1 s:nth-child(3) { animation-delay: .36s; }
.ill .b2 { right: 6px; top: 34px; width: 84px; height: 34px; border-bottom-right-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; animation: bubbleB 5s ease-in-out .6s infinite; }
.ill .b3 { left: 40px; top: 62px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: radial-gradient(circle at 32% 26%, #fff, var(--accent) 45%, var(--accent2)); box-shadow: 0 0 24px -2px var(--accent); animation: bubbleA 4s ease-in-out .3s infinite; }
@keyframes bubbleA { 50% { transform: translateY(-6px); } } @keyframes bubbleB { 50% { transform: translateY(6px); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* confetti when a bot has every step done */
.cl { position: relative; }
.confetti { position: absolute; left: 50%; top: 56px; width: 0; height: 0; pointer-events: none; z-index: 3; }
.confetti i { position: absolute; width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: confetti 1.5s cubic-bezier(.2, .7, .3, 1) var(--d) both; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 35% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * -1)) rotate(calc(var(--r) * .5)); opacity: 1; } 100% { transform: translate(var(--dx), 150px) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ill i, .ill s, .bothead, .bh-ava, .tag.ok::before { animation: none !important; } }

/* ===== round 10: bot card actions on the left; the Preview tab shows the chosen way of showing the bot ===== */
.trystage { position: relative; }
.trystage .fakesite, .trystage .tryfab { display: none; }


/* Preview tab, Floating window: how the window looks when it opens in the browser, a centred chat card on the page colour of the chosen theme (Full screen stays the full-width chat) */
.trystage .fakesite, .trystage .tryfab { display: none !important; }
.trystage[data-mode="float"] { display: grid; place-items: center; padding: 48px 16px 56px; border-radius: 26px; border: 1px solid var(--line2); background: var(--stagebg, var(--bg0)); transition: background-color .4s ease; }
.trystage[data-mode="float"] .tryframe { width: min(470px, 100%); height: min(720px, 82dvh); min-height: 540px; border-radius: 28px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }

/* inside another site's frame (Storyline, Rise, an LMS): flat and crisp, nothing that depends on blur or on a shadow that gets cut off */
body.framed #backdrop .grain, body.framed #backdrop .grid-lines { display: none !important; }
body.framed *, body.framed *::before, body.framed *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.chatpg.framed.d-float:not(.embed) .cshell { background: var(--panel-solid); box-shadow: 0 16px 36px -24px rgba(0, 0, 0, .4); }
body.framed #backdrop .blob { filter: none; opacity: .45; }

/* ===== How it appears: tidy little illustrations of the real thing, with a loop of motion ===== */
.show { position: relative; gap: 12px; padding: 16px 16px 18px; border-radius: 22px; transition: transform .3s var(--ease-out), border-color .25s, background-color .3s, box-shadow .35s var(--ease-out); }
.show:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px var(--accent); }
.show[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 22px 44px -26px var(--accent), 0 0 0 1px var(--accent) inset; }
.show[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27m6 12.5 4 4 8-9%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 6px 14px -4px var(--accent); animation: tickPop .45s var(--ease-out); }
.pic2, .pic2 i, .pic2 u, .pic2 s { display: block; font-style: normal; text-decoration: none; box-sizing: border-box; }
.show .pic2 { position: relative; display: flex; flex-direction: column; width: 100%; height: 172px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 15%, var(--panel2)), color-mix(in srgb, var(--accent2) 11%, var(--panel2))); }
.pic2 .bw { flex: none; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; background: color-mix(in srgb, var(--panel-solid, #fff) 75%, transparent); border-bottom: 1px solid var(--line); }
.pic2 .bw u { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); } .pic2 .bw s { flex: 1; height: 12px; margin-left: 8px; border-radius: 6px; background: var(--line); }
.pic2 .stage { position: relative; flex: 1; min-height: 0; }
.pic2 .hd { display: flex; align-items: center; gap: 6px; flex: none; }
.pic2 .hd .o { flex: none; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--accent) 45%, var(--accent2)); } .pic2 .hd .n { width: 44%; height: 7px; border-radius: 4px; background: var(--line2); }
.pic2 .mm { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; min-height: 0; }
.pic2 .bb { height: 12px; border-radius: 7px; flex: none; }
.pic2 .bb.l { width: 62%; background: var(--panel2); border: 1px solid var(--line); }
.pic2 .bb.r { width: 48%; align-self: flex-end; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent2))); }
.pic2 .bb.t { display: flex; align-items: center; justify-content: center; gap: 3px; width: 30px; height: 14px; background: var(--panel2); border: 1px solid var(--line); }
.pic2 .bb.t u { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
/* full screen: the chat as a page of its own */
.pfull .stage { display: flex; justify-content: center; align-items: flex-end; padding-top: 12px; }
.pfull .card { display: flex; flex-direction: column; gap: 8px; width: 64%; height: 100%; padding: 10px 11px 12px; border-radius: 15px 15px 0 0; background: var(--panel-solid, #fff); border: 1px solid var(--line2); border-bottom: 0; box-shadow: 0 -8px 30px -14px rgba(20, 16, 60, .45); transition: transform .45s var(--ease-out); }
.pfull .in { display: flex; align-items: center; justify-content: space-between; flex: none; height: 20px; padding: 0 4px 0 9px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); }
.pfull .in u { width: 38%; height: 5px; border-radius: 3px; background: var(--line2); } .pfull .in .go { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
/* floating window: a web page, with the chat window above its round button */
.pfloat .site { position: absolute; left: 14px; top: 12px; width: 44%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; }
.pfloat .site .h1 { grid-column: 1 / -1; width: 80%; height: 8px; border-radius: 4px; background: var(--line2); } .pfloat .site .h2 { grid-column: 1 / -1; width: 55%; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.pfloat .site .bx { height: 44px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); }
.pfloat .win { position: absolute; right: 14px; top: 10px; bottom: 44px; width: 42%; display: flex; flex-direction: column; gap: 7px; padding: 9px 10px; border-radius: 13px; background: var(--panel-solid, #fff); border: 1px solid var(--line2); box-shadow: 0 18px 32px -12px rgba(20, 16, 60, .55); transform-origin: bottom right; }
.pfloat .fab { position: absolute; right: 22px; bottom: 9px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, #a090ff 38%, #4fd8ff 72%, #14102e 100%); box-shadow: 0 8px 18px -6px rgba(120, 100, 255, .85); }
.pfloat .fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #a090ff; opacity: 0; }
.show em.use { align-self: start; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* motion: the chosen card plays a loop (messages arrive, the window opens from its button); the other plays on hover */
.show[aria-pressed="true"] .pfull .bb.l, .show:hover .pfull .bb.l { animation: msgIn 6s var(--ease-out) infinite; }
.show[aria-pressed="true"] .pfull .bb.r, .show:hover .pfull .bb.r { animation: msgIn 6s var(--ease-out) .7s infinite; }
.show[aria-pressed="true"] .pfull .bb.t, .show:hover .pfull .bb.t { animation: msgIn 6s var(--ease-out) 1.4s infinite; }
.show[aria-pressed="true"] .pfull .bb.t u, .show:hover .pfull .bb.t u { animation: typeDot 1s ease-in-out infinite; } .pfull .bb.t u:nth-child(2) { animation-delay: .15s !important; } .pfull .bb.t u:nth-child(3) { animation-delay: .3s !important; }
.show[aria-pressed="true"] .pfloat .win, .show:hover .pfloat .win { animation: winOpen 6s var(--ease-out) infinite; }
.show[aria-pressed="true"] .pfloat .win .bb.l, .show:hover .pfloat .win .bb.l { animation: msgIn 6s var(--ease-out) .5s infinite; }
.show[aria-pressed="true"] .pfloat .win .bb.r, .show:hover .pfloat .win .bb.r { animation: msgIn 6s var(--ease-out) 1.1s infinite; }
.show[aria-pressed="true"] .pfloat .fab::after, .show:hover .pfloat .fab::after { animation: fabRing 6s ease-out infinite; }
@keyframes msgIn { 0%, 4% { opacity: 0; transform: translateY(6px) scale(.96); } 12%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes typeDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes winOpen { 0%, 6% { opacity: 0; transform: translateY(8px) scale(.5); } 16%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(6px) scale(.8); } }
@keyframes fabRing { 0%, 2% { opacity: .9; transform: scale(1); } 14% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
@media (max-width: 760px) { .show { grid-template-columns: 1fr; } .show .pic2 { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .pic2 *, .pic2 *::after { animation: none !important; } }

/* ---------- "Before you share": the checklist sits beside the editor ---------- */
.card-basics { padding-top: 14px; }
.cl-list li.lock button { opacity: .6; } .cl-list li.lock .cl-n { background: var(--panel); color: var(--muted); font-size: 14px; }
.gate { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line2)); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 14px; color: var(--soft); }
.gate b { display: block; color: var(--ink); margin-bottom: 6px; } .gate ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gate li button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 600 13px var(--sans, inherit); transition: border-color .2s, transform .25s var(--ease-out); } .gate li button:hover { border-color: var(--accent); transform: translateY(-1px); }
#tShare.gated .urlrow .btn, #tShare.gated .codebox .btn { opacity: .55; }
.fld.nudge, .kbdrop.nudge { animation: nudgeGlow 2.2s var(--ease-out); border-radius: 14px; }
@keyframes nudgeGlow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 18%, 60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .fld.nudge, .kbdrop.nudge { animation: none; } }
@media (min-width: 1300px) {
  #viewEdit:has(#checklist:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; align-content: start; }
  #viewEdit:has(#checklist:not([hidden])) > * { grid-column: 1; }
  #viewEdit:has(#checklist:not([hidden])) > .back, #viewEdit:has(#checklist:not([hidden])) > .bothead { grid-column: 1 / -1; } #viewEdit:has(#checklist:not([hidden])) > .back { justify-self: start; }
  #viewEdit > #checklist:not([hidden]) { grid-column: 2; grid-row: 3 / span 14; align-self: start; position: sticky; top: 84px; margin: 0; padding: 18px; border-radius: 22px; max-height: calc(100vh - 108px); overflow: auto; }
  #viewEdit > #checklist .cl-list { grid-template-columns: 1fr; gap: 8px; }
  #viewEdit > #checklist .cl-list button { padding: 11px 12px; grid-template-columns: 28px 1fr auto; gap: 10px; border-radius: 14px; }
  #viewEdit > #checklist .cl-n { width: 28px; height: 28px; font-size: 13px; }
  #viewEdit > #checklist .cl-t b { font-size: 14px; } #viewEdit > #checklist .cl-t small { font-size: 12px; }
}


/* ---------- previous chats on the shared bot page ---------- */
.cshell { position: relative; }
.hist { position: absolute; z-index: 30; top: 74px; right: 12px; width: min(340px, calc(100% - 24px)); max-height: min(70%, 480px); display: flex; flex-direction: column; padding: 14px; border-radius: 22px; border: 1px solid var(--line2); background: var(--panel-solid, #fff); box-shadow: 0 30px 60px -28px rgba(10, 8, 30, .55); animation: histIn .28s var(--ease-out); }
.hist[hidden] { display: none; }
@keyframes histIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.hist-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .hist-h b { font: 700 16px var(--serif); } .hist-h button { width: 30px; height: 30px; border-radius: 9px; color: var(--muted); } .hist-h button:hover { background: var(--panel); color: var(--ink); }
.hist ul { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 6px; min-height: 0; }
.hist li { display: flex; align-items: stretch; gap: 4px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); transition: border-color .2s, background-color .2s; } .hist li:hover { border-color: var(--accent); } .hist li.cur { border-color: color-mix(in srgb, var(--accent) 60%, var(--line2)); background: color-mix(in srgb, var(--accent) 9%, var(--panel2)); }
.hist .hi { flex: 1; min-width: 0; text-align: left; padding: 10px 12px; } .hist .hi b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hist .hi small { color: var(--muted); font-size: 12px; }
.hist .hx { width: 34px; color: var(--muted); border-radius: 0 13px 13px 0; opacity: .6; } .hist .hx:hover { color: #e5484d; opacity: 1; }
.hist-e { margin: 8px 0 4px; color: var(--soft); font-size: 13.5px; } .hist-n { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hist-c { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line2); } .hist-c:hover { color: #e5484d; border-color: #e5484d; } .hist-c[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hist { animation: none; } }


/* locked link buttons: clearly off, still clickable so a click can explain why */
.btn.locked, .btn.locked:hover { opacity: .45; cursor: not-allowed; filter: grayscale(.6); transform: none; box-shadow: none; }

/* the bot greets first: the welcome is an ordinary bot message, with the suggested questions under it */
.hello .orb-wrap, .hello h2, .hello #hText { display: none; }
.hello { margin: 0; padding: 0; text-align: left; }
.hello .sugs { justify-content: flex-start; margin-top: 2px; }
.m.bot.greet { margin-top: 6px; }

/* bot type: three cards, the chosen one lit and the others greyed (still clickable) */
.kinds { gap: 12px; flex-wrap: wrap; } .kinds .kind { flex: 1 1 200px; }
.kinds .kind[aria-pressed="false"] { opacity: .55; filter: grayscale(1); } .kinds .kind[aria-pressed="false"]:hover { opacity: .9; filter: grayscale(.2); }
.kinds .kind[aria-pressed="true"] { border-color: var(--accent); }
.kind .kc { color: var(--text); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.dlg .kinds .kind { min-height: 150px; }
@media (max-width: 640px) { .kinds { flex-direction: column; } }

/* the account page shows four plans: two by two, so each card has room */
#planGrid.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan.ent { border-style: dashed; } .plan.ent .price { font-size: 38px; }
@media (max-width: 760px) { #planGrid.plans { grid-template-columns: 1fr; } }
#planGrid .plan { display: flex; flex-direction: column; } #planGrid .plan ul { flex: 1; } #planGrid .plan > .btn, #planGrid .plan > button { margin-top: 6px; }

/* token usage: the bars turn amber at 80% and red when the month's tokens are used up */
.meter.warn .bar i, .pop-bar.warn i { background: #e0902a; } .meter.full .bar i, .pop-bar.full i { background: #e5484d; }
.note.lowtok, .lowtok { color: var(--ink); } .note.lowtok { border-color: color-mix(in srgb, #e0902a 55%, var(--line2)); background: color-mix(in srgb, #e0902a 10%, transparent); }
.meter.usage { margin-bottom: 10px; }

/* an icon button that is switched off is struck through, so it reads as "off" and not just a different colour */
.iconbtn[aria-pressed="false"] { position: relative; color: var(--muted); }
.iconbtn[aria-pressed="false"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 25px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(-45deg); box-shadow: 0 0 0 2px var(--panel2); pointer-events: none; }
/* messages never shrink into each other when the list is long; a bot's Look is just Dark and Light, so the row is centred and neat */
#msgs > * { flex-shrink: 0; }
.lookp.tp-simple { padding: 18px 18px 16px; max-width: 340px; } .lookp.tp-simple .tp-seg { margin: 0; } .lookp.tp-simple .tp-note { margin: 12px 2px 0; font-size: 13.5px; color: var(--muted); }
.lookrow:has(.tp-simple) { align-items: center; }

/* ---------- My bots: list view (like Infinity's) ---------- */
.vsw{display:inline-flex;gap:2px;padding:3px;border-radius:999px;border:1px solid var(--line2);background:color-mix(in srgb,var(--ink,#222) 4%,transparent)}
.vsw button{display:grid;place-items:center;width:36px;height:34px;padding:0;border:0;border-radius:999px;background:none;color:var(--soft,#666);cursor:pointer;transition:background-color .15s,color .15s}
.vsw button:hover{color:var(--ink,#222)}
.vsw button[aria-pressed="true"]{background:var(--accent);color:#fff}
.vsw button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.listmeta .vsw{margin-left:auto}
.bots.is-list{grid-template-columns:minmax(0,1fr);gap:12px}
.is-list>.bcard{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(0,2fr);align-items:stretch;border-radius:22px}
.is-list>.bcard:hover,.is-list>.bcard[data-id]:hover{transform:none}
.is-list .bcard-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"a h s" "a p s";column-gap:14px;row-gap:2px;align-items:center;padding:14px 18px}
.is-list .bcard-row{display:contents} .is-list .bcard-row .bava{grid-area:a;width:44px;height:44px;font-size:19px} .is-list .bcard-row .sw{grid-area:s}
.is-list .bcard-top h3{grid-area:h;margin:0;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.is-list .bcard-top p{grid-area:p;display:block;min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.is-list .bcard-body{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:12px 18px}
.is-list .bcard-body .tags,.is-list .bmeter{display:none}
.is-list .bstats{display:flex;gap:22px;flex:1} .is-list .bcard-a{flex:none}
.is-list>.bcard-new{min-height:72px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px} .is-list>.bcard-new small{display:none}
@media (max-width:900px){.is-list>.bcard{grid-template-columns:minmax(0,1fr)}}

/* required fields, like the scenario builder in SimLab */
.fld small.req { margin-left: 8px; color: var(--bad, #c4372f); font-weight: 600; font-size: 12px; } .fld small.req b { margin-right: 2px; font-size: 17px; line-height: 0; vertical-align: -3px; }
.req-note { margin: 0 0 14px; font-size: 13px; color: var(--muted, var(--mute)); } .req-note b { color: var(--bad, #c4372f); font-size: 16px; }
.fgrp.ok .fgrp-h::after { content: "\2713"; margin-left: 4px; font: 700 14px var(--sans, inherit); color: var(--good, #1f8f5f); }

/* cards do not lift on hover any more: the lift moved a card out from under the pointer at its lower edge, so the hover flickered on and off (the border and shadow still answer) */
.bcard:hover, .bcard[data-id]:hover, .show:hover, .pt:hover, .kind:hover, .cl-list button:hover, .cl-list li button:hover, .look button:hover, .lndacct .about .card-b:hover, .lndacct .svc-i:hover { transform: none !important; }
