:root{color-scheme:dark;--bg:#090c10;--panel:#11161b;--edge:#242a31;--text:#f5f1e8;--soft:#a6acb5;--gold:#d2aa60;--cyan:#8ce5ed;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--text);background:radial-gradient(ellipse at top,#171d21 0,var(--bg) 48%);font-size:16px;line-height:1.6}.shell{max-width:560px;margin:auto;padding:max(20px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom))}.hero{text-align:center;position:relative;padding:15px 12px 19px}.hero-glow{position:absolute;inset:5px 15% 20%;background:radial-gradient(circle,#bb944222,transparent 68%);pointer-events:none}.brand-plate{position:relative;color:var(--gold);font-size:10px;letter-spacing:1.2px;font-weight:700}.botya-mark{position:relative;display:block;width:160px;max-width:55%;height:auto;margin:8px auto}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--gold);font-weight:700}h1{font-size:38px;line-height:1.05;margin:9px 0 10px}h1 span,h2,h3{color:var(--gold)}.hero-copy{max-width:385px;margin:0 auto;color:var(--soft)}.hero-stats{font-size:11px;color:var(--gold);margin:13px 0 3px}.availability{font-size:12px;color:var(--cyan)}.tabs{display:flex;gap:6px;position:sticky;top:0;z-index:2;background:#090c10ee;padding:10px 0}.tab{flex:1;border:1px solid var(--edge);border-radius:12px;background:var(--panel);color:var(--soft);font:inherit;font-size:12px;padding:11px 4px}.tab.active{color:var(--gold);border-color:#83683c}.panel{display:none;border:1px solid var(--edge);border-radius:var(--radius);background:var(--panel);padding:21px 17px;margin-top:8px}.panel.active{display:block}h2{font-size:23px;line-height:1.2;margin:0 0 7px}h3{font-size:17px;margin:24px 0 10px}.muted{color:var(--soft);font-size:14px}label{display:block;margin:16px 0 6px;color:var(--soft);font-size:13px}input,textarea,select{display:block;width:100%;padding:13px;border:1px solid #343a42;border-radius:12px;background:#0a0e12;color:var(--text);font:inherit}textarea{resize:vertical}.button{display:block;width:100%;padding:14px;border:0;border-radius:13px;font:inherit;font-weight:700;margin-top:16px}.primary{background:linear-gradient(125deg,#dab779,#ad8444);color:#111}.answer{margin-top:18px;padding:17px;border:1px solid #3c3223;border-radius:14px;background:#171610}.answer h3{margin:0 0 7px}.hidden{display:none}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{font:inherit;font-size:12px;color:var(--text);background:#20252a;border:1px solid #343a42;border-radius:20px;padding:7px 10px}.disclaimer{font-size:11px;color:var(--soft);margin-top:20px}.legal-basis{font-size:12px}.support-note{padding-top:12px;border-top:1px solid #53442c;color:var(--soft);font-size:13px}.support-link{padding:0;border:0;background:none;color:var(--gold);font:inherit;text-decoration:underline}.contact-card{display:block;border:1px solid var(--edge);border-radius:13px;padding:13px;margin:11px 0;color:var(--text);text-decoration:none}.contact-card strong,.contact-card span{display:block}.contact-card span{font-size:13px;color:var(--soft)}.support{border-top:1px solid var(--edge);margin-top:20px}.install-help{padding:3px 17px 16px;border:1px solid #48371e;border-radius:var(--radius);margin-top:17px;font-size:13px}.install-help h3{margin-top:16px}footer{text-align:center;font-size:11px;color:var(--soft);padding:24px 2px}@media(display-mode:standalone){#install-help{display:none}}@media(max-width:375px){h1{font-size:33px}.tab{font-size:11px}.brand-plate{font-size:9px}}

/* BOTYA first aid 0.3.0-2026-10-04. Fully scoped; no inline CSS or global resets. */
#first-aid{scroll-margin-top:84px}
#first-aid .firstaid-content{overflow-wrap:anywhere}
#first-aid .firstaid-title{font-size:clamp(24px,5vw,32px);line-height:1.2;margin:0 0 14px}
#first-aid .lede,#first-aid .muted{color:var(--soft)}
#first-aid p{margin:8px 0 16px}
#first-aid .emergency{padding:18px;border-radius:14px;border:1px solid #ba7653;background:#30201c;margin:20px 0}
#first-aid .emergency h2{color:#ffe6db;font-size:22px;line-height:1.3}
#first-aid .calls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 14px}
#first-aid .call{display:flex;align-items:center;justify-content:center;padding:14px;border-radius:12px;background:#ffe1cf;color:#29170d;font-weight:750;text-decoration:none;text-align:center;min-height:58px}
#first-aid .call.secondary{background:#362b26;color:#ffe1cf;border:1px solid #d09b7b}
#first-aid .small{font-size:13px;line-height:1.5}
#first-aid a{color:var(--cyan);text-underline-offset:3px}
#first-aid .call{color:#29170d}
#first-aid .call.secondary{color:#ffe1cf}
#first-aid a:focus-visible,#first-aid summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
#first-aid nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 22px}
#first-aid nav a{padding:10px 12px;border:1px solid #355268;border-radius:10px;font-size:14px;text-decoration:none;min-height:44px}
#first-aid article{border:1px solid var(--edge);border-radius:14px;margin:14px 0;padding:18px;scroll-margin-top:84px}
#first-aid article h2{font-size:21px;line-height:1.3;margin:0 0 12px}
#first-aid article p:last-of-type{margin-bottom:0}
#first-aid .number{display:block;font-size:12px;letter-spacing:.08em;color:var(--cyan);font-weight:700;margin-bottom:10px}
#first-aid details{border-top:1px solid var(--edge);margin-top:24px;padding-top:16px}
#first-aid summary{cursor:pointer;font-weight:700;padding:10px 0;min-height:44px}
#first-aid .scope{border-left:3px solid var(--gold);padding-left:14px;color:var(--soft)}
#first-aid .clinical-label{color:var(--gold);font-weight:700;font-size:14px}
#first-aid li{margin-bottom:12px}
#first-aid ol,#first-aid ul{padding-left:24px}
#first-aid footer{text-align:left;color:var(--soft);font-size:12px;margin-top:24px;padding:0}
@media(max-width:480px){#first-aid .calls{grid-template-columns:1fr}#first-aid .emergency,#first-aid article{padding:15px}#first-aid article h2{font-size:20px}}
@media print{#first-aid{display:block;color:#111;background:#fff}#first-aid nav{display:none}#first-aid article{break-inside:avoid}#first-aid .emergency{background:#fff;border-color:#333}#first-aid .emergency h2,#first-aid article h2{color:#111}#first-aid .call,#first-aid .call.secondary{color:#111;background:#fff;border:1px solid #555}#first-aid .lede,#first-aid .muted,#first-aid .scope,#first-aid footer{color:#333}}

/* Ecosystem entry: 2026-10-15 */
:root{--focus:#a6eef4}.shell{max-width:1080px;padding-inline:24px}.ecosystem-hero{text-align:left;padding:34px 230px 26px 12px;min-height:340px}.ecosystem-hero .botya-mark{position:absolute;right:35px;top:40px;width:135px;max-width:28%;margin:0;border-radius:24px;box-shadow:0 0 70px #d2aa6015}.ecosystem-hero .hero-copy{max-width:570px;margin:18px 0 0;font-size:17px}.ecosystem-hero h1{font-size:clamp(36px,4.5vw,54px);line-height:1.07;letter-spacing:-1.7px;margin:15px 0}.ecosystem-hero .brand-plate{font-size:12px;letter-spacing:2px}.ecosystem-hero .eyebrow{margin:18px 0 0}.ecosystem-hero .hero-stats{margin-top:18px;font-size:12px}.ecosystem-hero .availability{display:inline-block;margin:8px 0 0;padding:5px 11px;background:#8ce5ed0b;border:1px solid #8ce5ed25;border-radius:30px}.journey{margin:14px 0 24px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:16px}.section-kicker{font-size:10px;letter-spacing:1.7px;color:var(--gold);font-weight:700;margin:0 0 8px}.section-heading h2{font-size:26px;color:var(--text);margin:0}.service-note{font-size:12px;color:var(--soft);max-width:220px}.journey-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.journey-card{display:flex;flex-direction:column;gap:10px;min-height:220px;padding:18px;border:1px solid var(--edge);border-radius:18px;background:linear-gradient(145deg,#171e25,#10151a);color:var(--text);text-decoration:none;transition:border-color .15s,background .15s}.journey-card:hover{border-color:var(--gold);background:#1a2026}.journey-card strong{font-size:18px;line-height:1.25;min-height:45px}.journey-card>span:not(.step-number):not(.card-action){font-size:13px;color:var(--soft);line-height:1.55}.step-number{font-size:11px;letter-spacing:2px;color:var(--gold)}.card-action{margin-top:auto;font-size:12px;color:var(--gold);padding-top:8px}.tabs{max-width:760px;margin:0 auto;top:0;padding:12px 0;backdrop-filter:blur(14px)}.tab{cursor:pointer;min-height:46px}.panel{max-width:760px;margin:8px auto 0;padding:28px;scroll-margin-top:84px}.panel>h2{font-size:27px}.ecosystem-guide{max-width:760px;margin:36px auto 22px;padding:26px;border:1px solid var(--edge);border-radius:20px;background:#10161b}.ecosystem-guide h2{color:var(--text);font-size:24px}.ecosystem-guide details{border-top:1px solid var(--edge);padding:14px 0}.ecosystem-guide summary{cursor:pointer;font-size:14px;font-weight:600}.ecosystem-guide details p{font-size:14px;color:var(--soft);margin-bottom:0}.install-help{max-width:760px;margin:20px auto}.skip-link{position:fixed;left:16px;top:8px;z-index:20;transform:translateY(-160%);background:var(--gold);color:#111;padding:10px 16px;border-radius:10px;font-weight:700}.skip-link:focus{transform:none}:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--focus);outline-offset:4px}.button,.chip,.support-link{cursor:pointer}.panel h2:focus{outline:none}@media(max-width:800px){.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-card{min-height:190px}.ecosystem-hero{padding-right:160px}.ecosystem-hero .botya-mark{right:10px;width:110px}.section-heading{align-items:start}.service-note{max-width:190px}}@media(max-width:520px){.shell{padding-inline:16px}.ecosystem-hero{padding:20px 78px 20px 0;min-height:0}.ecosystem-hero .botya-mark{right:0;top:58px;width:65px;border-radius:16px;max-width:25%}.ecosystem-hero h1{font-size:32px;letter-spacing:-1px}.ecosystem-hero .brand-plate{font-size:9px;letter-spacing:1px}.ecosystem-hero .eyebrow{font-size:8px;letter-spacing:1px;margin-top:16px}.ecosystem-hero .hero-copy{font-size:14px;margin-top:12px}.ecosystem-hero .hero-stats{font-size:10px;margin-top:16px}.ecosystem-hero .availability{font-size:10px;padding:4px 7px}.section-heading{display:block}.section-heading h2{font-size:23px}.service-note{display:block;max-width:none;margin-top:8px}.journey{margin-top:10px;margin-bottom:18px}.journey-grid{gap:9px}.journey-card{padding:13px;min-height:190px;gap:9px}.journey-card strong{font-size:15px}.journey-card>span:not(.step-number):not(.card-action){font-size:12px}.card-action{font-size:11px}.panel{padding:20px 16px}.panel>h2{font-size:24px}.ecosystem-guide{padding:20px 16px}.ecosystem-guide h2{font-size:21px}.tab{font-size:11px}}@media(max-width:340px){.journey-grid{grid-template-columns:1fr}.journey-card{min-height:150px}.journey-card strong{min-height:0}.ecosystem-hero{padding-right:0}.ecosystem-hero .botya-mark{display:none}}@media(prefers-reduced-motion:reduce){.journey-card{transition:none}html{scroll-behavior:auto}}

.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hero-actions a{display:inline-block;text-decoration:none;padding:10px 15px;border-radius:10px;font-size:13px;font-weight:700}.hero-start{background:var(--gold);color:#111}.hero-docs{border:1px solid #695334;color:var(--gold)}@media(max-width:520px){.hero-actions{margin-top:16px;gap:8px}.hero-actions a{font-size:12px;padding:9px 11px}}

.document-search{padding:16px;border:1px solid #695334;border-radius:14px;margin:0 0 20px;background:#11181d}.document-search label{display:block;font-weight:700;margin-bottom:8px}.document-search input{width:100%;box-sizing:border-box}.document-search-results{display:flex;flex-wrap:wrap;gap:8px;max-height:280px;overflow:auto}.document-search-results .chip{text-align:left;white-space:normal}.document-search .muted{font-size:12px;line-height:1.5}.document-search .muted:empty{display:none}

.topic-navigator{padding:18px;border:1px solid #2b3842;border-radius:16px;background:linear-gradient(145deg,#151e25,#10161a)}.topic-navigator>label{display:block;font-weight:700;margin-bottom:10px}.topic-navigator input{width:100%;box-sizing:border-box}.topic-navigator .muted{font-size:12px;line-height:1.6}.topic-navigator .muted:empty{display:none}.topic-navigator #topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topic-navigator #topics .chip{text-align:left;border-radius:10px;white-space:normal;padding:12px;min-height:48px}.topic-navigator [hidden]{display:none!important}.topic-toggle{margin-top:14px;color:var(--gold)}@media(max-width:520px){.topic-navigator{padding:14px}.topic-navigator #topics{grid-template-columns:1fr}}

/* BOTYA wallpaper v1: decorative only; original image bytes, no content changes. */
body { isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #090c10;
  background-image:
    linear-gradient(90deg, rgba(9,12,16,.88) 0%, rgba(9,12,16,.62) 48%, rgba(9,12,16,.18) 100%),
    url("/assets/botya-wallpaper.38f9fb6a98896d2e.png");
  background-position: center, right bottom;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
}
@media (max-width: 800px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(9,12,16,.30), rgba(9,12,16,.48)),
      url("/assets/botya-wallpaper.38f9fb6a98896d2e.png");
    background-position: center, 65% center;
    background-size: cover, cover;
  }
}
@media print {
  body::before { display: none; }
}

/* v2: mobile contrast + in-flow chat; no content or chat logic changes. */
@media (max-width: 800px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(9,12,16,.72), rgba(9,12,16,.66)),
      url("/assets/botya-wallpaper.38f9fb6a98896d2e.png");
  }
  .ecosystem-hero {
    background-color: rgba(9,12,16,.84);
    border-radius: 16px;
  }
  .ecosystem-hero .hero-copy, .journey .service-note { color: #c6ccd2; }
  .ecosystem-hero .hero-stats, .ecosystem-hero .availability { font-size: 12px; }
  .ecosystem-hero .brand-plate, .ecosystem-hero .eyebrow { font-size: 10px; }
  #botya-chat-launcher {
    /* Override only the host's inline positioning; preserve control/status UI. */
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 560px !important;
    width: calc(100% - 32px);
    margin: 16px auto 0;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #11161b;
    border: 1px solid #48371e;
    border-radius: 16px;
  }
}

/* v3: owner-requested full viewport artwork, no duplicate hero portrait. */
body::before {
  background-image:
    linear-gradient(90deg, rgba(9,12,16,.66) 0%, rgba(9,12,16,.48) 48%, rgba(9,12,16,.24) 100%),
    url("/assets/botya-wallpaper.38f9fb6a98896d2e.png");
  background-size: cover, cover;
  background-position: center, center 48%;
}
.ecosystem-hero > img.botya-mark[src="/assets/botya.jpg"] { display: none; }
.ecosystem-hero { padding-right: 0; }
@media (max-width: 800px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(9,12,16,.72), rgba(9,12,16,.66)),
      url("/assets/botya-wallpaper.38f9fb6a98896d2e.png");
    background-position: center, 65% center;
  }
}

/* v4: compact mobile masthead, same text and actions, no portrait. */
@media (max-width: 800px) {
  .shell { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .ecosystem-hero { min-height: 0; padding: 12px 0 16px; }
  .ecosystem-hero .brand-plate {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 1.1px;
  }
  .ecosystem-hero .brand-plate::before {
    content: "";
    display: block;
    flex: 0 0 22px;
    height: 2px;
    background: #d2aa60;
  }
  .ecosystem-hero .eyebrow {
    margin: 6px 0 0 31px;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .8px;
    color: #bba379;
  }
  .ecosystem-hero h1 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.06;
    letter-spacing: -.8px;
    margin: 15px 0 10px;
  }
  .ecosystem-hero .hero-copy { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  .ecosystem-hero .hero-actions { margin-top: 13px; gap: 8px; }
  .ecosystem-hero .hero-stats { margin: 12px 0 3px; font-size: 12px; line-height: 1.5; }
  .ecosystem-hero .availability { margin-top: 5px; font-size: 12px; }
}

/* v4 desktop: dedicated wide artwork; portrait remains on mobile. */
@media (min-width: 801px) {
  body::before {
    background-image:
      linear-gradient(90deg, rgba(9,12,16,.58) 0%, rgba(9,12,16,.40) 48%, rgba(9,12,16,.18) 100%),
      url("/assets/botya-desktop-wide.c6a3e8be4e2d38d9.png");
    background-size: cover, cover;
    background-position: center, right center;
  }
}

/* v5 usability: real controls stay in normal flow, consent stays explicit. */
#botya-chat-launcher {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  max-width: 570px !important;
  width: 100%;
  margin: 14px 0 0;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  background: #11161b;
  border: 1px solid #48371e;
  border-radius: 14px;
}
#botya-chat-launcher > button { grid-column: 1; grid-row: 1 / span 2; }
#botya-chat-launcher > a { grid-column: 2; margin: 0 !important; }
#botya-chat-launcher-status { grid-column: 2; margin: 0 !important; }
.external-ai-consent { margin: 16px 0 0; padding: 12px; border: 1px solid #695334; border-radius: 12px; background: #151a1f; }
label.external-ai-consent-label { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.5; cursor: pointer; color: #f5f1e8; }
.external-ai-consent-label > input[type="checkbox"] { display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 2px 0 0; accent-color: #d2aa60; }
.external-ai-consent > details { margin: 8px 0 0 30px; font-size: 13px; color: #c6ccd2; }
.external-ai-consent summary { cursor: pointer; color: #d2aa60; }
@media (max-width: 480px) {
  #botya-chat-launcher { grid-template-columns: 1fr; gap: 6px; }
  #botya-chat-launcher > button, #botya-chat-launcher > a, #botya-chat-launcher-status { grid-column: 1; grid-row: auto; }
  #botya-chat-launcher > button { grid-row: 1; justify-self: start; }
}
/* Identity-scoped reset: zero-height CLOSED frame must not retain UA borders. */
iframe#parent_frame[data-botya-frame="true"] {
  border: 0 !important;
  box-sizing: border-box !important;
}

/* Outer frame only. Scope requires exact verified id/origin/path/GUID in JS. */
@media (max-width: 800px) {
  iframe#parent_frame[data-botya-viewport="true"] {
    position: fixed !important;
    box-sizing: border-box !important;
    left: calc(var(--botya-vv-left, 0px) + env(safe-area-inset-left, 0px) + 8px) !important;
    top: calc(var(--botya-vv-top, 0px) + env(safe-area-inset-top, 0px) + 8px) !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(var(--botya-vv-width, 100vw) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px) !important;
    max-width: calc(var(--botya-vv-width, 100vw) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px) !important;
    min-width: 0 !important;
    height: calc(var(--botya-vv-height, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
    max-height: min(630px, calc(var(--botya-vv-height, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 14px !important;
  }
}

#voice-answer-controls[hidden], #voice-answer-controls [hidden] { display: none !important; }
