/* EAI City — building screen (bld-), chat (chat-), partner ads (ad-), energy (en-). Uses the tokens of css/eai.css.
   The building colour arrives calm (desaturated) as --bc with --bc-ink (icons/text), --bc-l, --bc-ll (tints), --bc-m (borders),
   --bc-d, --bc-dd (dark, for the hero skeleton).
   Hierarchy: a short hero → tabs → the helper's greeting → 4 action cards (+ «Ещё») → 3 examples → the chat → one input. */

/* ---------------------------------------------------------------- the panel */
#city { transition: transform 0.6s var(--ease); }
body.bld-open:not(.bld-phone) #city { transform: translateX(calc(var(--bld-shift, 0px) * -1)); }
body.bld-open #screen { pointer-events: none; }
.bld {
  --bc: #3f6f75; --bc-ink: #284a4f; --bc-l: #e4eeee; --bc-ll: #f2f7f7; --bc-m: #b9cfd1; --bc-d: #2f5257; --bc-dd: #17292c;
  --top-h: 68px; --kb: 0px;
  /* docked to the right edge: the city is shifted left underneath (--bld-shift), so the panel must cover the edge it leaves */
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(1000px, 92vw);
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border-radius: 22px 0 0 22px; overflow: hidden; pointer-events: auto;
  box-shadow: -24px 0 70px rgba(10, 14, 20, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: translateX(calc(100% + 24px)); transition: transform 0.42s var(--ease);
  container-type: inline-size; container-name: bld; outline: none;
}
.bld.in { transform: none; }
.bld.out { transform: translateX(calc(100% + 24px)); transition-duration: 0.3s; transition-timing-function: ease-in; }
.bld.drop::after { content: 'Отпустите фото здесь'; position: absolute; inset: 12px; z-index: 30; display: grid; place-items: center; border: 2px dashed var(--bc); border-radius: 16px; background: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 1.2rem; color: var(--bc-ink); pointer-events: none; }
.bld [hidden] { display: none !important; }

/* ---------------------------------------------------------------- top bar: floats over the hero, solid on scroll */
.bld-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: #fff; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; border-bottom: 1px solid transparent; }
.bld-back, .bld-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(14, 19, 26, 0.46); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); color: #fff; font-family: var(--font); white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.bld-back { flex: none; height: 46px; padding: 0 16px 0 10px; border-radius: 12px; font-weight: 700; font-size: 1rem; }
.bld-back:hover { background: rgba(14, 19, 26, 0.62); }
.bld-back .ico { width: 20px; height: 20px; }
.bld-titles { flex: 1 1 auto; min-width: 0; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }
.bld-topname { font: 700 1.2rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-pills { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bld-pill { height: 44px; padding: 0 14px 0 12px; border-radius: 12px; font-weight: 700; font-size: 1rem; }
.bld-pill .ico { width: 16px; height: 16px; }
button.bld-pill { cursor: pointer; }
button.bld-pill:hover { background: rgba(14, 19, 26, 0.62); }
.bld-energy .ico { color: #e3c88e; }
.bld-energy b { font-size: 1.05rem; font-weight: 800; }
.bld-energy__l { font-weight: 600; font-size: 0.9rem; opacity: 0.85; }
.bld-energy.low b { color: #f4a097; }
/* (v8.2) solid: on some GPUs the blurred backdrop let the scrolled text show through the bar */
.bld.is-scrolled .bld-top { background: var(--panel); border-bottom-color: var(--line); color: var(--ink); }
.bld.is-scrolled .bld-titles { opacity: 1; transform: none; }
.bld.is-scrolled .bld-back, .bld.is-scrolled .bld-pill { background: var(--panel); border-color: var(--line2); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bld.is-scrolled .bld-back:hover, .bld.is-scrolled button.bld-pill:hover { background: var(--panel2); }
.bld.is-scrolled .bld-energy .ico { color: var(--gold-d); }
.bld.is-scrolled .bld-energy.low b { color: var(--danger); }
.bld :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bld-top :focus-visible { outline-color: #e3c88e; }
.bld.is-scrolled .bld-top :focus-visible { outline-color: var(--primary); }

/* ---------------------------------------------------------------- scroll area + a short hero */
.bld-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.bld-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; overflow: hidden; isolation: isolate; color: #fff; }
.bld-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 100% at 72% 18%, var(--bc-d) 0%, var(--bc-dd) 72%); }
.bld-hero-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 70%); background-size: 220% 100%; animation: shimmer 2.4s ease-in-out infinite; }
.bld-hero-media.ready::before { display: none; }
.bld-hero-wm { position: absolute; right: 9%; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.1); display: grid; transition: opacity 0.6s ease; }
.bld-hero-wm .ico { width: 120px; height: 120px; }
.bld-hero-media.ready .bld-hero-wm { opacity: 0; }
.bld-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.8s ease, transform 1.4s var(--ease); }
.bld-hero-media.ready .bld-hero-img { opacity: 1; transform: none; }
/* v7.2: a banner that was ready (warmed / cached) appears at once — no fade that reads as loading */
.bld-hero-media.quick .bld-hero-img { transition-duration: 0.18s, 0.5s; transform: none; }
.bld-hero-media.quick::before { display: none; }
.bld-hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.5) 0%, rgba(10, 14, 20, 0.08) 38%, rgba(10, 14, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 14, 20, 0.5) 0%, rgba(10, 14, 20, 0.12) 55%, rgba(10, 14, 20, 0) 80%); }
.bld-hero-in { position: relative; display: flex; flex-direction: column; gap: 6px; padding: calc(var(--top-h) + 24px) 28px 22px; }
.bld-name { font: 700 2.3rem/1.08 var(--display); color: #fff; letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 24px rgba(0, 0, 0, 0.45); }
.bld-about { font-size: 1.02rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }

/* ---------------------------------------------------------------- tabs + panes */
.bld-tabs { position: sticky; top: var(--top-h); z-index: 4; padding: 0 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.bld-tabs .tabs { gap: 6px; padding: 0; border-radius: 0; background: none; }
.bld-tabs .tab { position: relative; flex: 0 0 auto; min-height: 56px; padding: 0 12px; border-radius: 0; font-size: 1rem; color: var(--ink2); }
.bld-tabs .tab .ico { width: 18px; height: 18px; }
.bld-tabs .tab:hover { color: var(--ink); }
.bld-tabs .tab.on { background: none; box-shadow: none; color: var(--ink); }
.bld-tabs .tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--bc-ink); }
.bld-tabs .tab.on .ico { color: var(--bc-ink); }
.bld-pane { padding: 22px 28px 34px; }
.bld-sec { margin-bottom: 24px; }
.bld-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bld-sec-h h3 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.bld-sec-title { font-size: 1.5rem; }
.bld-sec-h .faint { font-weight: 600; font-size: 0.92rem; }
.bld-sec-ic { display: grid; color: var(--bc-ink); }
.bld-sec-ic .ico { width: 20px; height: 20px; }

/* the helper's greeting: the first message */
.bld-greet { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bld-greet__ava .ava { width: 60px; height: 60px; background: var(--bc-l); border-width: 2px; }
.bld-greet__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bld-greet__who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.bld-greet__who b { font: 700 1.25rem/1.2 var(--display); }
.bld-greet__who span { font-size: 0.94rem; font-weight: 600; color: var(--ink2); }
.bld-greet__msg { align-self: flex-start; max-width: 640px; padding: 13px 17px; border-radius: 4px 16px 16px 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 32, 43, 0.04); font-size: 1.04rem; line-height: 1.55; font-weight: 500; color: var(--ink); }

/* «answers are examples» (demo mode) */
.bld-demo { display: flex; align-items: flex-start; gap: 12px; margin: -4px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--gold-ll); border: 1px solid #ecdcb6; }
.bld-demo .isq { --tc: var(--gold-l); --ti: var(--gold-t); }
.bld-demo__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.98rem; line-height: 1.45; color: var(--ink2); }
.bld-demo__t b { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.bld-demo__ok { flex: none; align-self: center; }
.bld-demo.is-folded { margin: -6px 0 14px; padding: 0; border: 0; background: none; }
.bld-demo__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 10px; border-radius: 999px; border: 1px solid #ecdcb6; background: var(--gold-ll); color: var(--gold-t); font: 700 0.92rem var(--font); cursor: pointer; }
.bld-demo__chip .ico { width: 16px; height: 16px; }
.bld-demo__chip:hover { background: var(--gold-l); }

/* teachers (Academy): one compact row */
.bld-sec-teachers { margin-bottom: 18px; }
.bld-teachers { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.bld-teacher { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-height: 56px; max-width: 240px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-align: left; color: var(--ink); transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.bld-teacher:hover { border-color: var(--bc-m); }
.bld-teacher.on { border-color: var(--bc-ink); background: var(--bc-ll); box-shadow: inset 0 0 0 1px var(--bc-ink); }
.bld-teacher .ava { width: 42px; height: 42px; }
.bld-teacher-txt { min-width: 0; }
.bld-teacher-txt b { display: block; font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-teacher-txt span { display: block; font-size: 0.86rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* action cards: 4 main ones, the rest behind «Ещё» */
.bld-start { display: block; }
.bld.has-chat .bld-start { display: none; }
.bld-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bld-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 120px; padding: 14px 14px 14px; border-radius: 14px; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 32, 43, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.bld-tile:hover { border-color: var(--bc-m); box-shadow: 0 10px 28px rgba(23, 32, 43, 0.1); transform: translateY(-1px); }
.bld-tile:active { transform: none; box-shadow: 0 1px 2px rgba(23, 32, 43, 0.06); }
.bld-tile-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bc-l); color: var(--bc-ink); }
.bld-tile-ic .ico { width: 24px; height: 24px; }
.bld-tile-txt { min-width: 0; max-width: 100%; }
.bld-tile-t { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.bld-tile-s { display: block; margin-top: 3px; font-size: 0.92rem; line-height: 1.3; color: var(--ink2); font-weight: 500; }
.bld-tile-e { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: 999px; background: var(--gold-ll); font-size: 0.84rem; font-weight: 800; color: var(--gold-t); line-height: 1; }
.bld-tile-e .ico { width: 12px; height: 12px; color: var(--gold-d); }
.bld-tile-e.go { background: none; padding: 0; }
.bld-tile-e.go .ico { width: 18px; height: 18px; color: var(--ink3); }
.bld-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 6px 12px; border: 0; border-radius: 10px; background: none; color: var(--bc-ink); font: 700 1rem var(--font); cursor: pointer; }
.bld-more:hover { background: var(--bc-ll); }
.bld-more__i { width: 18px; height: 18px; transition: transform 0.2s ease; }
.bld-more.on .bld-more__i { transform: rotate(180deg); }
.bld-starters { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bld-starters-l { display: flex; flex-wrap: wrap; gap: 8px; }
.bld-starters .chip { font-weight: 500; font-size: 0.98rem; text-align: left; white-space: normal; line-height: 1.3; }
.bld-starters .chip:hover { border-color: var(--bc-m); background: var(--panel); }
.bld-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.bld-soon { text-align: center; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- composer */
.bld-composer { flex: none; position: relative; z-index: 4; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.bld-quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.bld-quick::-webkit-scrollbar { display: none; }
.bld-qchip { flex: none; min-height: 44px; font-size: 0.94rem; font-weight: 600; }
.bld-qchip .ico { color: var(--bc-ink); }
.bld-qchip:hover { border-color: var(--bc-m); background: var(--panel); }
.bld-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; }
.bld-ctx-chip, .bld-ctx-photo { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 3px 3px 3px 12px; border-radius: 12px; background: var(--bc-ll); border: 1px solid var(--bc-m); font-weight: 700; font-size: 0.98rem; color: var(--bc-ink); }
.bld-ctx-chip > .ico { width: 18px; height: 18px; }
.bld-ctx-e { display: inline-flex; align-items: center; gap: 2px; font-size: 0.86rem; color: var(--gold-t); }
.bld-ctx-e .ico { width: 12px; height: 12px; color: var(--gold-d); }
.bld-ctx-hint { color: var(--ink2); font-weight: 500; font-size: 0.94rem; }
.bld-ctx-photo { padding-left: 3px; }
.bld-ctx-photo img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.bld-ctx-x { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.85); color: var(--ink2); display: grid; place-items: center; }
.bld-ctx-x::after { content: ''; position: absolute; inset: -3px; }
.bld-ctx-x:hover { background: #fff; color: var(--ink); }
.bld-ctx-x .ico { width: 18px; height: 18px; }
.bld-inrow { display: flex; align-items: flex-end; gap: 8px; }
.bld-cbtn { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); display: grid; place-items: center; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.bld-cbtn:hover { background: var(--panel2); color: var(--ink); border-color: #c5bcad; }
.bld-cbtn .ico { width: 23px; height: 23px; }
.bld-mic.on { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1s infinite; }
.bld-input { flex: 1 1 auto; min-width: 0; min-height: 50px; max-height: 160px; padding: 13px 18px; border-radius: 25px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 500; font-size: 1.04rem; line-height: 1.4; resize: none; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.bld-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 80, 92, 0.12); }
.bld-input::placeholder { color: #6f7680; font-weight: 400; }
.bld-send { flex: none; width: 50px; min-width: 50px; height: 50px; min-height: 50px; }
.bld-send .ico { width: 22px; height: 22px; }
.bld-send.off { opacity: 0.4; }

/* ---------------------------------------------------------------- «Полезное» */
.bld-useful-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.bld-ucard { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); animation: rise 0.35s var(--ease) both; }
.bld-ucard-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bld-ucard-t { display: block; margin: 4px 0 4px; font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.bld-ucard-p { color: var(--ink2); font-weight: 500; line-height: 1.55; font-size: 1rem; }
.bld-ucard-ask { margin-top: 12px; }
.bld-ucard-ask .ico { color: var(--bc-ink); }
.bld-useful-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink2); font-weight: 500; font-size: 0.96rem; }
.bld-week, .bld-mygarden { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.bld-zones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bld-zones .chip { font-size: 0.94rem; }
.bld-week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bld-week-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 12px; border-radius: 12px; background: var(--panel2); }
.bld-week-list b { font-weight: 700; }
.bld-week-list p { color: var(--ink2); font-weight: 500; margin-top: 2px; font-size: 0.98rem; }
.bld-remind { margin-top: 14px; font-weight: 600; color: var(--ink); align-items: center; }
.bld-mygarden .muted { margin-bottom: 12px; }
.bld-plants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bld-plant { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 3px 3px 12px; border-radius: 999px; background: var(--bc-ll); border: 1px solid var(--bc-m); color: var(--bc-ink); font-weight: 600; font-size: 0.96rem; }
.bld-plant > .ico { width: 15px; height: 15px; }
.bld-plant-x { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); color: var(--ink2); display: grid; place-items: center; }
.bld-plant-x::after { content: ''; position: absolute; inset: -4px; }
.bld-plant-x .ico { width: 14px; height: 14px; }
.bld-addrow { display: flex; gap: 8px; }
.bld-addrow .input { flex: 1; min-width: 0; }
.bld-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bld-sug .chip { font-size: 0.94rem; font-weight: 500; }
.bld-ads { display: grid; gap: 12px; }
.bld-ads .bld-sec-h { margin-bottom: 0; }

/* ---------------------------------------------------------------- chat */
.chat-thread { display: flex; flex-direction: column; gap: 18px; padding: 6px 0 10px; }
.chat-row { display: flex; gap: 12px; align-items: flex-start; animation: rise 0.28s var(--ease) both; }
.chat-row.me { justify-content: flex-end; }
.chat-row.note { justify-content: center; }
.chat-note { padding: 6px 14px; border-radius: 999px; background: var(--panel3); color: var(--ink2); font-weight: 600; font-size: 0.92rem; text-align: center; }
.chat-bubble.me { max-width: min(78%, 560px); padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--primary); color: #fff; font-weight: 500; font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(13, 60, 70, 0.2); }
.chat-text { white-space: pre-wrap; }
/* the gateway hid personal data before the model saw the message */
.chat-col.me { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: min(78%, 560px); }
.chat-col.me .chat-bubble.me { max-width: 100%; }
.chat-pii { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink2); font-size: 0.86rem; font-weight: 600; }
.chat-pii .ico { width: 13px; height: 13px; color: var(--primary); }
.chat-act { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); font-size: 0.88rem; font-weight: 700; }
.chat-act .ico { width: 13px; height: 13px; color: #e3c88e; }
.chat-photo { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 12px; margin-bottom: 8px; object-fit: cover; }
.chat-photo-fb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; opacity: 0.9; margin-bottom: 4px; }
.chat-ava { flex: none; padding-top: 24px; }
.chat-ava .ava { width: 40px; height: 40px; background: var(--bc-l); }
.chat-ava-fb { color: var(--bc-ink); }
.chat-col { min-width: 0; flex: 0 1 auto; max-width: min(100%, 720px); }
.chat-name { margin: 0 0 5px 2px; font-size: 0.9rem; font-weight: 700; color: var(--ink2); }
.chat-bubble.ai { padding: 14px 18px; border-radius: 4px 16px 16px 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 32, 43, 0.04); color: var(--ink); font-weight: 500; font-size: 1.02rem; line-height: 1.6; overflow-wrap: anywhere; }
.chat-bubble.ai.err { background: var(--danger-l); border-color: #efcfca; }
.chat-md > :first-child { margin-top: 0; }
.chat-md > :last-child { margin-bottom: 0; }
.chat-md p { margin: 0 0 10px; }
.chat-md ul, .chat-md ol { margin: 4px 0 10px; padding-left: 22px; }
.chat-md li { margin: 5px 0; }
.chat-md li::marker { color: var(--bc-ink); font-weight: 700; }
.chat-md h4 { margin: 14px 0 6px; font-size: 1.04rem; }
.chat-md b { color: var(--ink); font-weight: 700; }
.chat-md code { padding: 1px 6px; border-radius: 6px; background: rgba(23, 32, 43, 0.06); font-size: 0.92em; }
.chat-md a { font-weight: 700; color: var(--primary); }
/* demo answers: an intentional, calm label — not an error */
.chat-demo { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; padding: 6px 10px; border-radius: 10px; background: var(--gold-ll); color: var(--gold-t); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.chat-demo .ico { width: 15px; height: 15px; flex: none; }
.chat-typing { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-weight: 500; font-size: 1rem; min-height: 24px; }
.chat-dots { display: inline-flex; gap: 4px; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bc-ink); opacity: 0.4; animation: chatDot 1.2s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-err { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-weight: 600; color: var(--danger); }
.chat-err__t { display: inline-flex; align-items: center; gap: 8px; }
.chat-err__t .ico { width: 18px; height: 18px; }
.chat-stopped { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink3); }
.chat-stopped .ico { width: 12px; height: 12px; }
.chat-gone { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); color: var(--ink2); font-size: 0.94rem; font-weight: 500; }
.chat-gone .ico { width: 18px; height: 18px; color: var(--ink3); }
.chat-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chat-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); font-weight: 600; font-size: 0.94rem; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.chat-tool .ico { width: 17px; height: 17px; }
.chat-tool__i { display: grid; }
.chat-tool:hover { border-color: var(--line2); color: var(--ink); }
.chat-tool--voice { color: var(--ink); border-color: var(--line2); }
.chat-tool.on { background: var(--bc-ll); border-color: var(--bc-m); color: var(--bc-ink); }
.chat-tool[disabled] { opacity: 0.7; cursor: default; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-chip { border-color: var(--bc-m); color: var(--bc-ink); background: var(--bc-ll); font-weight: 600; white-space: normal; text-align: left; line-height: 1.3; }
.chat-chip:hover { background: var(--panel); border-color: var(--bc-ink); color: var(--bc-ink); }
.chat-chip[disabled] { opacity: 0.5; pointer-events: none; }
.chat-ads { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.chat-lead { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.chat-lead .isq { --tc: var(--bc-l); --ti: var(--bc-ink); }
.chat-lead b { display: block; font-weight: 700; margin-top: 2px; }
.chat-lead .faint { display: block; font-size: 0.92rem; font-weight: 500; }
.chat-lead .btn { flex: none; }

/* result cards */
.chat-card { margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.chat-card-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
.chat-card-bar .row { gap: 6px; }
.chat-card-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.chat-card-title .ico { width: 18px; height: 18px; color: var(--bc-ink); }
.chat-card-sub { font-size: 0.88rem; font-weight: 500; color: var(--ink2); margin-top: 2px; }
.chat-card-img { max-width: 460px; }
.chat-img-box { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in; background: repeating-conic-gradient(#f3efe8 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.chat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.chat-img.fresh { animation: fadeIn 0.7s ease; }
.chat-img-veil { position: absolute; left: 10px; right: 10px; bottom: 10px; display: none; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 0.92rem; color: var(--ink2); box-shadow: var(--sh-1); }
.chat-card-img.busy .chat-img-veil { display: flex; }
.chat-img-note { padding: 0 12px 12px; font-size: 0.92rem; font-weight: 600; color: var(--plum); }
.chat-img-note[hidden] { display: none; }
.chat-lightbox .chat-lightbox-img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: repeating-conic-gradient(#f3efe8 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.chat-card-film { width: min(100%, 640px); }
.chat-card-film.vert { width: min(100%, 320px); }
.chat-film { position: relative; aspect-ratio: 16 / 9; background: #05070f; cursor: pointer; overflow: hidden; }
.chat-film.vert { aspect-ratio: 9 / 16; }
.chat-film-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chat-film-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-weight: 700; font-size: 1rem; box-shadow: var(--sh-2); white-space: nowrap; transition: background-color 0.15s ease; }
.chat-film-big:hover { background: #fff; }
.chat-film-big[hidden] { display: none; }
.chat-film-bigic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.chat-film-bigic .ico { width: 16px; height: 16px; }
.chat-film.playing.muted .chat-film-big { top: auto; bottom: 64px; transform: translateX(-50%); font-size: 0.94rem; padding: 7px 14px 7px 8px; }
.chat-film.playing.muted .chat-film-bigic { width: 28px; height: 28px; }
.chat-film-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); color: #fff; opacity: 0; transition: opacity 0.2s; }
.chat-film:hover .chat-film-ui, .chat-film:not(.playing) .chat-film-ui, .chat-film:focus-within .chat-film-ui { opacity: 1; }
@media (pointer: coarse) { .chat-film-ui { opacity: 1; } }
.chat-film-bar { display: flex; gap: 3px; height: 18px; align-items: center; cursor: pointer; touch-action: none; }
.chat-film-seg { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.chat-film-seg i { display: block; height: 100%; width: 0; background: #fff; }
.chat-film-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.chat-film-ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); color: #fff; }
.chat-film-ctl .ico { width: 18px; height: 18px; }
.chat-film-time { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.chat-film-badge { position: absolute; top: 10px; left: 10px; display: none; padding: 5px 11px; border-radius: 8px; background: rgba(5, 7, 15, 0.62); color: #fff; font-size: 0.86rem; font-weight: 700; }
.chat-film-badge.on { display: block; }
.chat-film-rec { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5, 7, 15, 0.5); }
.chat-film.rec .chat-film-rec { display: grid; }
.chat-film.rec .chat-film-big, .chat-film.rec .chat-film-ui { display: none; }
.chat-film-recbox { display: grid; gap: 8px; min-width: 220px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.95); color: var(--ink); font-weight: 700; font-size: 0.96rem; }
.chat-film-recdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); margin-right: 6px; animation: pulse 1s infinite; }
.chat-card-music { width: min(100%, 560px); }
.chat-music { display: flex; align-items: center; gap: 14px; padding: 14px; background: linear-gradient(135deg, var(--bc-ll), var(--panel)); }
.chat-music-cover { flex: none; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--bc-l); color: var(--bc-ink); box-shadow: var(--sh-1); }
.chat-music-cover > .ico { width: 36px; height: 36px; }
.chat-music-cover canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.chat-card-music.playing .chat-music-cover { animation: chatSpin 6s linear infinite; border-radius: 50%; }
@keyframes chatSpin { to { transform: rotate(360deg); } }
.chat-music-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.chat-music-play { --c: var(--bc-ink); --cd: var(--bc-dd); flex: none; }
.chat-music-viz { flex: 1 1 auto; min-width: 0; width: 100%; height: 52px; }
.chat-lyrics { padding: 0 14px 14px; background: var(--panel); }
.chat-lyrics-h { margin: 12px 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.chat-lyrics-t { white-space: pre-line; padding: 12px 14px; border-radius: 10px; background: var(--panel2); font-weight: 500; line-height: 1.65; color: var(--ink); }
.chat-card-music .chat-card-bar { border-top: 1px solid var(--line); }
.chat-card-music .chat-card-bar .faint { font-size: 0.9rem; font-weight: 500; }

/* ---------------------------------------------------------------- partner ads (always clearly marked) */
.ad-label { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: var(--gold-l); color: var(--gold-t); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; line-height: 1.4; }
.ad-label.on-dark { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.32); color: #fff; }
.ad-block { padding: 14px; border-radius: 14px; background: var(--gold-ll); border: 1px solid #ece0c4; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-h { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.ad-h .ico { width: 18px; height: 18px; color: var(--gold-d); }
.ad-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.ad-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 14px 12px 12px; border-radius: 12px; background: var(--panel); border: 1px solid #efe6d2; }
.ad-card.static { display: flex; align-items: center; }
.ad-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ad-foot .ad-meta { margin-top: 0; }
.ad-card > .ad-label { position: absolute; top: 10px; right: 10px; }
.ad-card .ad-body { padding-right: 64px; }
.ad-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-l, var(--panel3)); color: var(--pc-ink, var(--ink)); font-weight: 800; font-size: 1.15rem; font-family: var(--display); }
.ad-title { display: block; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.ad-text { color: var(--ink2); font-weight: 500; font-size: 0.94rem; line-height: 1.4; margin-top: 2px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--ink2); }
.ad-price { color: var(--ink); font-weight: 700; }
.ad-by { color: var(--ink2); font-weight: 600; font-size: 0.88rem; }
.ad-cta { flex: none; }
.ad-sponsor { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: linear-gradient(120deg, var(--gold-ll), var(--panel) 70%); border: 1px solid #ece0c4; }
.ad-sp-art { flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--pc-l, var(--gold-l)); color: var(--pc-ink, var(--gold-t)); }
.ad-sp-art .ico { width: 28px; height: 28px; }
.ad-sp-title { display: block; margin: 6px 0 2px; font-weight: 700; font-size: 1.05rem; }
.ad-zone { position: relative; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ad-zone-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ad-zone-emoji { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-l, var(--panel3)); color: var(--pc-ink, var(--ink)); }
.ad-zone-emoji .ico { width: 24px; height: 24px; }
.ad-zone-title { display: block; font-weight: 700; font-size: 1.05rem; }
.ad-zone-tips { margin: 6px 0 12px; padding-left: 20px; color: var(--ink2); font-weight: 500; }
.ad-zone .ad-text { margin-bottom: 12px; }
.ad-modal { gap: 12px; }
.ad-lead textarea { min-height: 84px; }
.ad-lead-err { min-height: 1.2em; color: var(--danger); font-weight: 600; }
.ad-lead-err:empty { display: none; }
/* 15-second partner video for energy */
.ad-v-stage { position: relative; height: 270px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.22), transparent 55%), radial-gradient(circle at 85% 90%, rgba(0, 0, 0, 0.35), transparent 55%), var(--pc, #2f5257); }
.ad-v-emoji { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); margin-bottom: 6px; }
.ad-v-emoji .ico { width: 34px; height: 34px; }
.ad-v-sponsor { margin-top: 4px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.ad-v-title { font: 700 1.8rem/1.15 var(--display); }
.ad-v-line { min-height: 1.4em; font-weight: 600; font-size: 1.06rem; opacity: 0.94; }
.ad-v-line.in { animation: rise 0.4s var(--ease); }
.ad-v-sparks { display: none; }
.ad-v-foot { gap: 14px; margin-top: 6px; }
.ad-v-count { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 0; border: 2px solid var(--line2); color: var(--ink); }
.ad-v-count b { font-size: 1.3rem; line-height: 1; }
.ad-v-count span { font-size: 0.76rem; font-weight: 700; color: var(--ink2); }
.ad-v-count.done { background: var(--success); border-color: var(--success); color: #fff; }
.ad-v-count.done span { color: rgba(255, 255, 255, 0.85); }
.ad-v-hint { font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.ad-v-claim { margin-top: 6px; animation: rise 0.3s var(--ease); }
.ad-v-claim[hidden] { display: none; }

/* ---------------------------------------------------------------- energy modal of energy.js (other entry points) */
.en-body { gap: 14px; font-size: 1rem; }
.en-meter { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--gold-ll); border: 1px solid #ece0c4; }
.en-meter .row.between { flex-wrap: wrap; gap: 2px 10px; }
.en-meter b { white-space: nowrap; font-size: 1.1rem; }
.en-bolt { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold-l); color: var(--gold-d); font-size: 0; }
.en-bolt::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.en-meter .bar { margin-top: 8px; height: 6px; }
.en-meter .bar > i { background: linear-gradient(90deg, #d9bb7a, var(--gold-d)); }
.en-modal .modal__actions { justify-content: stretch; }
.en-modal .modal__actions .btn { flex: 1 1 220px; }
.en-invite { min-height: 120px; font-size: 1rem; }

/* ---------------------------------------------------------------- narrower panels (tablets, big font) */
@container bld (max-width: 820px) {
  .bld-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bld-tile { flex-direction: row; align-items: center; min-height: 80px; padding: 12px 40px 12px 12px; }
  .bld-tile-e { top: 50%; transform: translateY(-50%); right: 10px; }
}
@container bld (max-width: 640px) {
  .bld { --top-h: 60px; }
  .bld-top { gap: 10px; padding: 8px 12px; }
  .bld-back { padding: 0 12px; width: 46px; justify-content: center; }
  .bld-back > span:not(.ico) { display: none; }
  .bld-energy__l { display: none; }
  .bld-hero { min-height: 150px; }
  .bld-hero-in { padding: calc(var(--top-h) + 14px) 16px 14px; gap: 4px; }
  .bld-name { font-size: 1.75rem; }
  .bld-about { font-size: 0.96rem; }
  .bld-tabs { padding: 0 8px; }
  .bld-tabs .tabs { gap: 0; }
  .bld-tabs .tab { padding: 0 10px; font-size: 0.98rem; min-height: 52px; }
  .bld-pane { padding: 16px 14px 26px; }
  .bld-greet { gap: 10px; margin-bottom: 14px; }
  .bld-greet__ava .ava { width: 46px; height: 46px; }
  .bld-greet__who b { font-size: 1.12rem; }
  .bld-greet__msg { font-size: 1rem; padding: 11px 14px; }
  .bld-demo { flex-wrap: wrap; }
  .bld-demo__t { flex: 1 1 calc(100% - 50px); }
  .bld-demo__ok { margin-left: auto; }
  .bld-tiles { gap: 8px; }
  .bld-tile { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 108px; padding: 12px; }
  .bld-tile-e { top: 10px; right: 10px; transform: none; }
  .bld-tile-ic { width: 42px; height: 42px; }
  .bld-tile-t { font-size: 1rem; }
  .bld-tile-s { font-size: 0.88rem; }
  .bld-tile-e.go { top: 14px; }
  .chat-bubble.me { max-width: 88%; }
  .chat-row { gap: 10px; }
  .chat-ava { padding-top: 22px; }
  .chat-ava .ava { width: 32px; height: 32px; }
  .chat-bubble.ai { padding: 12px 14px; }
  .chat-music-cover { width: 80px; height: 80px; }
  .chat-lead { flex-wrap: wrap; }
  .chat-lead .btn { flex: 1 1 100%; }
  .bld-composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- phones: a bottom sheet */
@media (max-width: 600px) {
  body.bld-phone #screen::before { content: ''; position: fixed; inset: 0; background: rgba(10, 14, 20, 0.45); animation: fadeIn 0.3s ease; }
  .bld { top: calc(env(safe-area-inset-top, 0px) + 8px); left: 0; right: 0; bottom: var(--kb, 0px); width: auto; border-radius: 18px 18px 0 0; transform: translateY(100%); box-shadow: 0 -10px 40px rgba(10, 14, 20, 0.3); transition: transform 0.42s var(--ease), bottom 0.2s ease; }
  .bld.in { transform: none; }
  .bld.out { transform: translateY(100%); }
  .bld.kb-open .bld-hero { min-height: 0; }
  .bld::before { content: ''; position: absolute; top: 6px; left: 50%; z-index: 8; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); }
  .bld.is-scrolled::before { background: var(--line2); }
  .bld-inrow { gap: 6px; }
  .bld-cbtn, .bld-send { width: 48px; min-width: 48px; height: 48px; min-height: 48px; }
  .bld-input { min-height: 48px; padding: 12px 16px; }
  .ad-v-stage { height: 230px; }
  .bld-addrow .btn { padding: 10px 14px; }
}
@media (max-width: 420px) {
  .bld-cbtn, .bld-send { width: 46px; min-width: 46px; height: 46px; min-height: 46px; }
  .bld-cbtn .ico { width: 21px; height: 21px; }
  .bld-input { min-height: 46px; padding: 11px 14px; font-size: 1rem; }
  .bld-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
html.big .bld-tile { min-height: 128px; }
html.big .bld-name { font-size: 2.1rem; }
@container bld (max-width: 640px) { html.big .bld-tile { min-height: 116px; } html.big .bld-name { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .bld-hero-media::before { animation: none; } }

/* ---------------------------------------------------------------- v7.5 «Скоро открытие»: a studio under construction (bsoon-)
   The same panel / sheet: the construction site in a taller hero, the helper's greeting, «Что здесь будет» with the
   «Сообщить об открытии» switch, two open helpers that fit. No tabs, no composer. */
.bld.is-soon .bld-hero { min-height: 320px; }
.bld.is-soon .bld-hero-in { gap: 8px; }
.bsoon-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(201, 163, 90, 0.95); color: #241a06; font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.bsoon-badge .ico { width: 17px; height: 17px; }
.bsoon { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.bsoon .bld-greet { margin-bottom: 0; }
.bsoon-asked { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink2); font-size: 0.98rem; line-height: 1.45; }
.bsoon-asked b { color: var(--ink); font-weight: 700; }
.bsoon-asked__i { width: 18px; height: 18px; margin-top: 2px; color: var(--ink3); }
.bsoon-card { padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 32, 43, 0.04); }
.bsoon-card .bld-sec-h { margin-bottom: 10px; }
.bsoon-what { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bsoon-what li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--ink); animation: pop 0.3s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.bsoon-notify { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: var(--bc-ll); border: 1px solid var(--bc-m); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.bsoon-notify:hover { border-color: var(--bc-ink); }
.bsoon-notify__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); color: var(--bc-ink); }
.bsoon-notify__ic .ico { width: 20px; height: 20px; }
.bsoon-notify.on .bsoon-notify__ic { background: var(--bc-ink); color: #fff; }
.bsoon-notify__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bsoon-notify__t b { font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.bsoon-notify__s { font-size: 0.92rem; color: var(--ink2); line-height: 1.35; }
/* the switch: a real checkbox (role="switch") under a drawn track */
.bsoon-switch { position: relative; flex: none; width: 52px; height: 30px; }
.bsoon-switch__in { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.bsoon-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background-color 0.18s ease; }
.bsoon-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 32, 43, 0.25); transition: transform 0.18s var(--ease); }
.bsoon-switch__in:checked + i { background: var(--bc-ink); }
.bsoon-switch__in:checked + i::after { transform: translateX(22px); }
.bsoon-switch__in:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 3px; }
.bsoon-sec .bld-sec-h { margin-bottom: 10px; }
.bsoon-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.bsoon-alt { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-align: left; transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s var(--ease); }
.bsoon-alt:hover { border-color: var(--bc-m); box-shadow: 0 10px 28px rgba(23, 32, 43, 0.1); transform: translateY(-1px); }
.bsoon-alt__ava { width: 60px; height: 60px; background: var(--bc-l); }
.bsoon-alt__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bsoon-alt__t b { font: 700 1.12rem/1.25 var(--display); }
.bsoon-alt__b { font-size: 0.9rem; font-weight: 700; color: var(--bc-ink); }
.bsoon-alt__w { font-size: 0.94rem; color: var(--ink2); line-height: 1.35; }
.bsoon-alt__go { width: 20px; height: 20px; color: var(--ink3); flex: none; }
.bsoon-pm .pm-chip { width: 100%; }
@container bld (max-width: 640px) {
  .bld.is-soon .bld-hero { min-height: 210px; }
  .bsoon { gap: 14px; }
  .bsoon-card { padding: 14px; }
  .bsoon-what li { font-size: 0.98rem; }
  .bsoon-notify { gap: 12px; padding: 10px 12px; }
  .bsoon-alts { grid-template-columns: minmax(0, 1fr); }
}
html.big .bsoon-what li { font-size: 1.04rem; }
