/* Product expansion surfaces. Native CSS keeps the prototype usable in the static dist build. */
.yx-home-tool .yx-mini-symbol,
.yx-account-symbol,
.yx-arch-icon,
.yx-row-icon { display: grid; place-items: center; color: #5d54c9; background: #efedff; font-size: 10px; font-weight: 850; letter-spacing: 0; }
.yx-home-tool .yx-mini-symbol { width: 18px; height: 18px; border-radius: 7px; font-size: 8px; }
.yx-home-tool { border-color: #d9d7f4 !important; color: #2e3555 !important; }
.home-screen .composer-tools { gap: 6px; }
.home-screen .composer-tools button { height: 36px; gap: 4px; padding: 0 7px; font-size: 10px; }
.home-screen .composer-tools button svg { width: 18px; height: 18px; }
.yx-expansion-layer { position: absolute; inset: 0; z-index: 96; display: flex; flex-direction: column; overflow: hidden; border-radius: 36px; color: #242b4c; background: #f7f8fc; font-family: inherit; }
.yx-header { flex: 0 0 64px; display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; align-items: center; padding: 10px 14px 0; border-bottom: 1px solid #e4e7f0; background: rgba(255,255,255,.98); }
.yx-header > div { min-width: 0; display: grid; justify-items: center; gap: 2px; }.yx-header strong { overflow: hidden; max-width: 240px; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.25; }.yx-header span { color: #858ca4; font-size: 10px; }
.yx-icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #e1e4ef; border-radius: 12px; color: #4a5272; background: #f6f7fb; font-size: 23px; line-height: 1; cursor: pointer; }
.yx-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 16px 28px; scrollbar-width: none; }.yx-scroll::-webkit-scrollbar { display: none; }
.yx-hero { min-height: 156px; display: grid; grid-template-columns: minmax(0,1fr) 116px; gap: 13px; align-items: center; padding: 16px; border: 1px solid #e0e3ef; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(61,70,127,.06); }
.yx-hero-copy { min-width: 0; }.yx-hero-copy small { color: #6258ca; font-size: 10px; font-weight: 850; }.yx-hero-copy h1 { margin: 7px 0; color: #222a4a; font-size: 21px; line-height: 1.27; letter-spacing: 0; }.yx-hero-copy p { margin: 0; color: #727b95; font-size: 11px; line-height: 1.55; }
.yx-hero-mark { display: grid; justify-items: center; align-content: center; gap: 5px; color: #6d7590; font-size: 9px; text-align: center; }.yx-hero-mark img { width: 78px; height: 78px; object-fit: cover; border: 3px solid #fff; border-radius: 24px; box-shadow: 0 7px 16px rgba(57,66,122,.14); }.yx-hero-mark strong { color: #2d3557; font-size: 12px; }
.yx-image-block { margin: 0; overflow: hidden; border: 1px solid #e0e3ef; border-radius: 14px; background: #fff; }.yx-hero .yx-image-block { width: 116px; }.yx-image-block img { width: 100%; height: 110px; display: block; object-fit: cover; }.yx-hero .yx-image-block img { height: 116px; }.yx-image-block figcaption { padding: 7px 9px 8px; color: #737c96; font-size: 9px; line-height: 1.35; }
.yx-section,.yx-choices,.yx-form,.yx-receipt,.yx-progress-block,.yx-inventory,.yx-compare,.yx-template-grid,.yx-sounds { margin-top: 14px; }.yx-section-head { min-height: 23px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }.yx-section-head h2,.yx-choices h2,.yx-form h2 { margin: 0; color: #2b3352; font-size: 13px; }.yx-section-head span { color: #8a91a7; font-size: 9px; }
.yx-row-list { overflow: hidden; border: 1px solid #e2e5ef; border-radius: 14px; background: #fff; }.yx-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto 13px; gap: 8px; align-items: center; position: relative; padding: 8px 11px; border: 0; border-top: 1px solid #edf0f5; color: inherit; background: #fff; text-align: left; cursor: pointer; }.yx-row:first-child { border-top: 0; }.yx-row.static { cursor: default; }.yx-row:hover { background: #fbfbff; }.yx-row-icon { width: 26px; height: 26px; border-radius: 9px; }.yx-row-copy { min-width: 0; display: grid; gap: 3px; }.yx-row-copy strong { overflow: hidden; color: #2e3655; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.yx-row-copy small { overflow: hidden; color: #858ca2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.yx-row-arrow { color: #a5acc0; font-size: 19px; line-height: 1; }.yx-row-price { color: #5d54c9; font-size: 11px; white-space: nowrap; }.yx-row em { position: absolute; top: 6px; right: 26px; padding: 2px 5px; border-radius: 5px; color: #5d54c9; background: #f0efff; font-size: 7px; font-style: normal; font-weight: 800; }
.yx-note { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; margin-top: 14px; padding: 11px 12px; border: 1px solid #e0e3ef; border-radius: 12px; color: #606a84; background: #fff; }.yx-note.safe { border-color: #d7e8e0; background: #f7fcfa; }.yx-note.warning { border-color: #f1d4c6; background: #fff9f5; }.yx-note-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #5f56cf; background: #efedff; font-size: 11px; font-weight: 900; }.yx-note.warning .yx-note-mark { color: #b55737; background: #ffeade; }.yx-note.safe .yx-note-mark { color: #268365; background: #e3f6ed; }.yx-note strong { display: block; color: #394263; font-size: 10px; }.yx-note p { margin: 4px 0 0; color: #737c95; font-size: 9px; line-height: 1.55; }
.yx-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }.yx-metrics > div { min-height: 68px; display: grid; align-content: center; gap: 5px; padding: 10px 9px; border: 1px solid #e1e4ef; border-radius: 13px; background: #fff; }.yx-metrics strong { color: #5d54c9; font-size: 16px; line-height: 1; }.yx-metrics span { color: #858ca2; font-size: 8px; }
.yx-choices > div { display: grid; gap: 7px; margin-top: 7px; }.yx-choices button { width: 100%; min-height: 44px; display: grid; grid-template-columns: minmax(0,1fr) 21px; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid #e0e3ee; border-radius: 11px; color: #4b5574; background: #fff; text-align: left; font-size: 10px; cursor: pointer; }.yx-choices button.selected { border-color: #8c85e5; color: #4b43ae; background: #f3f2ff; }.yx-choices button i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d0d5e1; border-radius: 50%; color: #fff; background: #fff; font-size: 11px; font-style: normal; font-weight: 900; }.yx-choices button.selected i { border-color: #655ed8; background: #655ed8; }
.yx-form { padding: 12px; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-form label { display: grid; gap: 6px; margin-top: 10px; }.yx-form label:first-of-type { margin-top: 9px; }.yx-form label > span { color: #5e6782; font-size: 9px; font-weight: 750; }.yx-form input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #dfe2ec; border-radius: 9px; color: #303957; background: #fbfcff; font-size: 10px; }
.yx-sounds > .yx-section-head { margin-bottom: 7px; }.yx-sound { width: 100%; min-height: 64px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; gap: 8px; align-items: center; margin-top: 7px; padding: 9px 10px; border: 1px solid #e1e4ef; border-radius: 13px; color: #313958; background: #fff; text-align: left; cursor: pointer; }.yx-sound.playing { border-color: #8b83e4; background: #f4f2ff; }.yx-sound-wave { height: 28px; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 5px; border-radius: 9px; background: #efedff; }.yx-sound-wave i { width: 3px; height: 7px; border-radius: 2px; background: #695fd6; }.yx-sound-wave i:nth-child(2) { height: 16px; }.yx-sound-wave i:nth-child(3) { height: 22px; }.yx-sound-wave i:nth-child(4) { height: 12px; }.yx-sound.playing .yx-sound-wave i { animation: yx-wave 520ms ease-in-out infinite alternate; }.yx-sound.playing .yx-sound-wave i:nth-child(2) { animation-delay: 90ms; }.yx-sound.playing .yx-sound-wave i:nth-child(3) { animation-delay: 150ms; } @keyframes yx-wave { from { transform: scaleY(.55); } to { transform: scaleY(1.15); } }.yx-sound > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.yx-sound strong { font-size: 10px; }.yx-sound small { color: #858ca2; font-size: 8px; }.yx-sound b { color: #5f56cf; font-size: 9px; white-space: nowrap; }.yx-sound em { color: #9aa1b5; font-size: 8px; font-style: normal; white-space: nowrap; }
.yx-upload { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; margin-top: 14px; padding: 12px; border: 1px dashed #cfcff0; border-radius: 14px; background: #fbfaff; }.yx-upload-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #5d54c9; background: #efedff; font-size: 10px; font-weight: 850; }.yx-upload h2 { margin: 0; color: #303858; font-size: 11px; }.yx-upload p { margin: 4px 0 0; color: #8990a5; font-size: 8px; line-height: 1.4; }.yx-upload button { min-height: 30px; padding: 0 9px; border: 1px solid #8d86e7; border-radius: 9px; color: #5d54c9; background: #fff; font-size: 9px; cursor: pointer; }.yx-upload-status { grid-column: 2 / -1; color: #6a7290; font-size: 8px; }
.yx-timeline { overflow: hidden; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-timeline > div { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 6px; min-height: 56px; padding: 9px 12px 9px 15px; border-top: 1px solid #edf0f5; }.yx-timeline > div:first-child { border-top: 0; }.yx-timeline > div::before { content: ""; position: absolute; top: 17px; left: 7px; width: 5px; height: 5px; border-radius: 50%; background: #655ed8; }.yx-timeline span { color: #655ed8; font-size: 8px; font-weight: 800; }.yx-timeline strong { color: #394261; font-size: 10px; }.yx-timeline small { grid-column: 2; color: #858ca2; font-size: 8px; }
.yx-receipt { padding: 12px; border: 1px solid #e0e3ee; border-radius: 14px; background: #fff; }.yx-receipt > div:not(.yx-section-head) { min-height: 32px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f5; color: #707994; font-size: 9px; }.yx-receipt > div strong { color: #3b4564; font-size: 10px; }.yx-receipt .total { margin-top: 3px; padding-top: 7px; color: #303858; font-weight: 800; }.yx-receipt .total strong { color: #5d54c9; font-size: 15px; }
.yx-progress-block { padding: 14px; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-progress-track { height: 6px; margin-bottom: 12px; overflow: hidden; border-radius: 4px; background: #e6e7f1; }.yx-progress-track i { display: block; width: 100%; height: 100%; background: #655ed8; }.yx-progress-block > div:not(.yx-progress-track) { display: flex; gap: 8px; align-items: center; min-height: 28px; color: #56607c; font-size: 9px; }.yx-progress-block span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #655ed8; font-size: 8px; }.yx-progress-block strong { font-size: 9px; }
.yx-video-block { position: relative; margin: 14px 0 0; overflow: hidden; border: 1px solid #dedfee; border-radius: 14px; background: #22233d; }.yx-video-block img { width: 100%; height: 236px; display: block; object-fit: cover; }.yx-video-play { position: absolute; top: 92px; left: calc(50% - 24px); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(25,28,62,.45); font-size: 16px; }.yx-video-block figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 11px; color: #fff; font-size: 10px; }.yx-video-block figcaption small { color: #c9cbe0; font-size: 8px; }
.yx-template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.yx-template-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid #e1e4ef; border-radius: 13px; color: #303858; background: #fff; text-align: left; cursor: pointer; }.yx-template-card img { width: 100%; height: 112px; display: block; object-fit: cover; }.yx-template-card > span { display: grid; gap: 4px; padding: 8px 8px 2px; }.yx-template-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.yx-template-card small { overflow: hidden; color: #858ca2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.yx-template-card > b { display: block; padding: 5px 8px 9px; color: #5d54c9; font-size: 10px; }
.yx-ledger { overflow: hidden; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-ledger > div { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 6px; align-items: center; min-height: 52px; padding: 8px 11px; border-top: 1px solid #edf0f5; }.yx-ledger > div:first-child { border-top: 0; }.yx-ledger span { color: #8a91a6; font-size: 8px; }.yx-ledger strong { font-size: 10px; }.yx-ledger small { grid-column: 2; color: #858ca2; font-size: 8px; }.yx-ledger b { grid-row: 1 / 3; grid-column: 3; color: #278365; font-size: 10px; }
.yx-tasks { overflow: hidden; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-tasks button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto 15px; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-top: 1px solid #edf0f5; background: #fff; text-align: left; cursor: pointer; }.yx-tasks button:first-child { border-top: 0; }.yx-task-who { color: #655ed8; font-size: 9px; font-weight: 800; }.yx-tasks strong { font-size: 9px; }.yx-tasks small { color: #858ca2; font-size: 8px; }.yx-tasks i { color: #a5acc0; font-size: 19px; font-style: normal; }
.yx-compare { display: grid; gap: 8px; }.yx-device-card { width: 100%; min-height: 96px; display: grid; grid-template-columns: 82px minmax(0,1fr) 13px; gap: 9px; align-items: center; padding: 9px; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }.yx-device-card img { width: 82px; height: 82px; object-fit: cover; border-radius: 10px; }.yx-device-card > span { min-width: 0; display: grid; gap: 3px; }.yx-device-card small { color: #8c93a9; font-size: 8px; }.yx-device-card strong { color: #303858; font-size: 10px; line-height: 1.3; }.yx-device-card em { color: #5d54c9; font-size: 8px; font-style: normal; font-weight: 800; }.yx-device-card p { margin: 0; overflow: hidden; color: #858ca2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.yx-device-card b { color: #5d54c9; font-size: 9px; }.yx-device-card > i { color: #a5acc0; font-size: 19px; font-style: normal; }
.yx-inventory { overflow: hidden; border: 1px solid #e1e4ef; border-radius: 14px; background: #fff; }.yx-inventory button { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0,1fr) auto 15px; gap: 8px; align-items: center; padding: 9px 11px; border: 0; border-top: 1px solid #edf0f5; background: #fff; text-align: left; cursor: pointer; }.yx-inventory button:first-child { border-top: 0; }.yx-inventory span { min-width: 0; display: grid; gap: 4px; }.yx-inventory strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.yx-inventory small { color: #858ca2; font-size: 8px; }.yx-inventory b { color: #5d54c9; font-size: 10px; white-space: nowrap; }.yx-inventory .warn b { color: #bc643e; }.yx-inventory .muted b { color: #9097aa; }.yx-inventory i { color: #a5acc0; font-size: 19px; font-style: normal; }
.yx-lost-card { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 9px; align-items: center; margin-top: 14px; padding: 10px; border: 1px solid #e7dfe0; border-radius: 14px; background: #fffafa; }.yx-lost-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 13px; }.yx-lost-card > div { min-width: 0; display: grid; gap: 3px; }.yx-lost-card strong { font-size: 11px; }.yx-lost-card span { color: #8b6870; font-size: 8px; }.yx-lost-card p { margin: 2px 0 0; color: #737c95; font-size: 8px; line-height: 1.45; }.yx-lost-card button { min-height: 29px; padding: 0 8px; border: 1px solid #d39ca4; border-radius: 9px; color: #a54e5d; background: #fff; font-size: 9px; cursor: pointer; }
.yx-footer { flex: 0 0 auto; min-height: 76px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: center; padding: 10px 16px 16px; border-top: 1px solid #e1e4ed; background: rgba(255,255,255,.98); box-shadow: 0 -8px 22px rgba(47,54,91,.06); }.yx-footer > button { min-height: 45px; padding: 0 14px; border-radius: 12px; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }.yx-primary { border: 0; color: #fff; background: #655ed8; }.yx-secondary { border: 1px solid #d9ddea; color: #5d6682; background: #fff; }.yx-footer > .yx-primary:only-child { grid-column: 1 / -1; width: 100%; }
.yx-toast { position: absolute; z-index: 120; left: 50%; bottom: 92px; max-width: calc(100% - 32px); padding: 10px 13px; border-radius: 10px; color: #fff; background: rgba(38,44,76,.94); box-shadow: 0 8px 20px rgba(33,38,72,.2); font-size: 10px; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: opacity 160ms ease, transform 160ms ease; }.yx-toast.show { opacity: 1; transform: translate(-50%,0); }.yx-expansion-layer button:active,.yx-arch-item:active,.yx-home-tool:active { transform: scale(.985); }.yx-expansion-layer button:focus-visible,.yx-arch-item:focus-visible,.yx-home-tool:focus-visible { outline: 3px solid rgba(101,94,216,.25); outline-offset: 2px; }
.account-group > button[data-yx-nav] { width: 100%; min-height: 58px; display: grid; grid-template-columns: 28px minmax(0,1fr) 14px; gap: 9px; align-items: center; padding: 0 14px; border: 0; border-top: 1px solid #edf0f5; background: #fff; text-align: left; cursor: pointer; }.account-group > button[data-yx-nav] > div { min-width: 0; display: grid; gap: 3px; }.account-group > button[data-yx-nav] strong { font-size: 11px; }.account-group > button[data-yx-nav] span:not(.yx-account-symbol):not(.yx-account-arrow) { color: #858ca2; font-size: 8px; }.yx-account-symbol { width: 27px; height: 27px; border-radius: 9px; }.yx-account-arrow { color: #a5acc0; font-size: 19px; }
.yx-architecture { margin-top: 14px; }.yx-architecture-head { display: flex; align-items: end; justify-content: space-between; gap: 9px; margin-bottom: 8px; }.yx-architecture-head small { color: #6258ca; font-size: 9px; font-weight: 850; }.yx-architecture-head h2 { margin: 4px 0 0; color: #2a3252; font-size: 16px; }.yx-architecture-head > span { color: #8a91a5; font-size: 8px; }.yx-arch-group { margin-top: 12px; }.yx-arch-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }.yx-arch-group-head > div { display: grid; gap: 3px; }.yx-arch-group-head strong { color: #363e5f; font-size: 12px; }.yx-arch-group-head small { color: #8a91a5; font-size: 8px; }.yx-arch-group-head > span { color: #a0a6b9; font-size: 8px; }.yx-arch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.yx-arch-item { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 28px minmax(0,1fr) 12px; gap: 7px; align-items: center; position: relative; padding: 9px; border: 1px solid #e2e5ef; border-radius: 13px; color: #303858; background: #fff; text-align: left; cursor: pointer; }.yx-arch-icon { width: 27px; height: 27px; border-radius: 9px; font-size: 9px; }.yx-arch-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.yx-arch-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.yx-arch-item small { overflow: hidden; color: #858ca2; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.yx-arch-item > i { color: #a5acc0; font-size: 18px; font-style: normal; }.yx-arch-item em { position: absolute; right: 6px; top: 5px; color: #6258ca; font-size: 7px; font-style: normal; font-weight: 850; }
@media (max-width:760px) { .yx-expansion-layer { position: fixed; width: min(390px,100vw); height: 100dvh; margin-inline: auto; border-radius: 0; }.yx-hero { grid-template-columns: minmax(0,1fr) 104px; padding: 14px; }.yx-hero-copy h1 { font-size: 20px; }.yx-hero .yx-image-block { width: 104px; }.yx-hero .yx-image-block img { height: 104px; }.yx-scroll { padding-inline: 14px; }.yx-arch-grid { gap: 6px; }.yx-arch-item { padding: 8px; }.yx-sound { grid-template-columns: 34px minmax(0,1fr) auto; }.yx-sound em { display: none; } }
@media (prefers-reduced-motion:no-preference) { .yx-expansion-layer { animation: yx-enter 180ms cubic-bezier(.16,1,.3,1); } @keyframes yx-enter { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } } }
@media (prefers-reduced-motion:reduce) { .yx-sound.playing .yx-sound-wave i { animation: none; }.yx-toast { transition: none; } }

/* All capabilities: compact core grid above a collapsed secondary map. */
.capabilities-screen .capability-grid,
.capabilities-screen .capability-prompts { display: none !important; }
.capabilities-screen .capability-scroll { padding-top: 8px; }
.capabilities-screen .capability-intro { min-height: 96px; padding: 14px; border-radius: 16px; }
.capabilities-screen .capability-intro h1 { margin: 5px 0 4px; font-size: 15px; }
.capabilities-screen .capability-intro p { font-size: 8px; }
.capabilities-screen .capability-intro .pet-avatar { width: 52px; height: 52px; border-radius: 16px; }
.yx-capability-shell { margin-top: 12px; }
.yx-core-head { min-height: 30px; display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.yx-core-head > div { display: grid; gap: 3px; }
.yx-core-head small { color: #6258ca; font-size: 8px; font-weight: 850; }
.yx-core-head h2 { margin: 0; color: #2a3252; font-size: 14px; }
.yx-core-head > span { color: #8d94a8; font-size: 8px; }
.yx-core-primary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.yx-core-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.yx-core-item { min-width: 0; min-height: 84px; display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto; gap: 7px; align-items: center; position: relative; padding: 9px; border: 1px solid #e0e3ee; border-radius: 13px; color: #2e3656; background: #fff; text-align: left; cursor: pointer; }
.yx-core-item:hover { border-color: #cfccec; background: #fbfaff; }
.yx-core-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #5d54c9; background: #efedff; font-size: 9px; font-weight: 850; }
.yx-core-copy { min-width: 0; display: grid; gap: 4px; }
.yx-core-item strong { width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.yx-core-item small { width: 100%; overflow: hidden; color: #858ca2; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.yx-core-item > i { display: none; color: #8a91a5; font-size: 18px; font-style: normal; }
.yx-core-primary-grid .yx-core-item { min-height: 94px; grid-template-columns: 39px minmax(0,1fr) 14px; padding: 12px; border-color: #d7d9ee; background: linear-gradient(145deg,#fff,#f5f5ff); box-shadow: 0 9px 22px rgba(65,70,126,.06); }
.yx-core-primary-grid .yx-core-item:first-child { border-color: #d6e1f7; background: linear-gradient(145deg,#f8fbff,#eef4ff); }
.yx-core-primary-grid .yx-core-item:nth-child(2) { border-color: #dfdaf6; background: linear-gradient(145deg,#fbfaff,#f2efff); }
.yx-core-primary-grid .yx-core-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 11px; }
.yx-core-primary-grid .yx-core-item:first-child .yx-core-icon { color: #4269c8; background: #e4edff; }
.yx-core-primary-grid .yx-core-item:nth-child(2) .yx-core-icon { color: #6c56d7; background: #eae5ff; }
.yx-core-primary-grid .yx-core-item strong { font-size: 12px; }
.yx-core-primary-grid .yx-core-item small { font-size: 8px; line-height: 1.4; white-space: normal; }
.yx-core-primary-grid .yx-core-item > i { display: block; }
.yx-core-secondary-head { margin: 15px 2px 7px; }
.yx-core-secondary-head strong { color: #4d5571; font-size: 10px; }
.yx-core-grid-secondary .yx-core-item { min-height: 76px; grid-template-columns: 27px minmax(0,1fr); padding: 8px; }
.yx-core-grid-secondary .yx-core-icon { width: 26px; height: 26px; }
.yx-capability-shell .yx-architecture { margin-top: 18px; }
.yx-capability-shell .yx-architecture-head { margin-bottom: 8px; }
.yx-accordion-list { overflow: hidden; border: 1px solid #e0e3ee; border-radius: 14px; background: #fff; }
.yx-arch-accordion { border-top: 1px solid #eceef4; }
.yx-arch-accordion:first-child { border-top: 0; }
.yx-arch-accordion > summary { min-height: 56px; display: grid; grid-template-columns: 29px minmax(0,1fr) 16px; gap: 8px; align-items: center; padding: 8px 11px; list-style: none; cursor: pointer; }
.yx-arch-accordion > summary::-webkit-details-marker { display: none; }
.yx-arch-accordion > summary:hover { background: #fbfbff; }
.yx-arch-accordion[open] > summary { background: #f7f6ff; }
.yx-arch-accordion > summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.yx-arch-accordion > summary strong { overflow: hidden; color: #343d5d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.yx-arch-accordion > summary small { overflow: hidden; color: #858ca2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.yx-arch-accordion > summary b { color: #777f98; font-size: 8px; white-space: nowrap; }
.yx-arch-accordion > summary > i { color: #8f96aa; font-size: 16px; font-style: normal; transition: transform 160ms ease; }
.yx-arch-accordion[open] > summary > i { transform: rotate(180deg); }
.yx-arch-body { padding: 4px 9px 7px 48px; border-top: 1px solid #ebeaf5; background: #fafaff; }
.yx-arch-body button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 27px minmax(0,1fr) 14px; gap: 8px; align-items: center; padding: 7px 4px; border: 0; border-top: 1px solid #eceef4; color: #303858; background: transparent; text-align: left; cursor: pointer; }
.yx-arch-body button:first-child { border-top: 0; }
.yx-arch-body button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.yx-arch-body button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.yx-arch-body button small { overflow: hidden; color: #858ca2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.yx-arch-body button > i { color: #a5acc0; font-size: 17px; font-style: normal; }
.yx-direct-entry { width: 100%; min-height: 54px; display: grid; grid-template-columns: 29px minmax(0,1fr) 15px; gap: 9px; align-items: center; margin-top: 10px; padding: 8px 11px; border: 1px solid #dedcf3; border-radius: 13px; color: #343c5e; background: #f8f7ff; text-align: left; cursor: pointer; }
.yx-direct-entry > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #655ed8; font-size: 9px; font-weight: 850; }
.yx-direct-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.yx-direct-entry strong { font-size: 10px; }
.yx-direct-entry small { color: #7f879f; font-size: 8px; }
.yx-direct-entry > i { color: #8f96aa; font-size: 18px; font-style: normal; }
@media (max-width:760px) { .yx-core-grid { gap: 6px; }.yx-core-grid-secondary .yx-core-item { min-height: 76px; padding: 7px; }.yx-core-primary-grid { gap: 7px; }.yx-core-primary-grid .yx-core-item { min-height: 92px; padding: 10px; }.yx-arch-body { padding-left: 43px; } }
@media (prefers-reduced-motion:reduce) { .yx-arch-accordion > summary > i { transition: none; } }

/* Mobile browser dock: keep tools and composer out of the page content flow. */
@media (max-width: 760px) {
  body .mobile-prototype > .status-bar {
    display: none !important;
  }

  body .home-screen {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: calc(136px + env(safe-area-inset-bottom)) !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body .home-screen::-webkit-scrollbar {
    display: none;
  }

  body .home-screen .composer-wrap {
    position: fixed !important;
    z-index: 80;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(390px, 100vw);
    margin: 0;
    padding: 7px 14px calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(248,249,255,.74), rgba(248,249,255,.98) 24%);
    box-shadow: 0 -10px 28px rgba(45,55,105,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body .home-screen .composer-tools {
    margin: 0 -14px 8px;
    padding-inline: 14px;
    scroll-snap-type: x proximity;
  }

  body .home-screen .composer-tools button {
    scroll-snap-align: start;
  }

  body .home-screen .home-next-step {
    margin-bottom: 8px;
  }
}

/* Runtime bridge for the existing compiled React bundle. */
.home-screen .home-pet-dashboard > header { min-height: 42px !important; height: auto !important; gap: 8px; align-items: center !important; }
.home-screen .home-pet-switch { min-width: 0; height: auto !important; display: flex !important; gap: 7px !important; align-items: center; padding: 0 !important; border: 0; border-radius: 0 !important; color: #2c3455 !important; background: transparent !important; text-align: left; cursor: pointer; }
.home-screen .home-pet-switch img { width: 32px; height: 32px; flex: 0 0 auto; object-fit: cover; border: 2px solid rgba(255,255,255,.92); border-radius: 11px; box-shadow: 0 4px 12px rgba(58,65,118,.12); }
.home-screen .home-pet-switch > span { min-width: 0; display: grid; gap: 1px; }
.home-screen .home-pet-switch small { color: #7f86a1; font-size: 7px; font-weight: 700; }
.home-screen .home-pet-switch strong { overflow: hidden; color: #2c3455; font-size: 14px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.home-screen .home-pet-switch > i { flex: 0 0 auto; color: #6b63cf; font-size: 14px; font-style: normal; font-weight: 800; }
.home-screen .home-profile-entry { flex: 0 0 auto; }
.back-header:has(.yx-standard-header-actions) { grid-template-columns: 44px 1fr auto !important; }
.back-header:has(.yx-standard-header-actions) > strong { position: absolute; left: 50%; max-width: calc(100% - 156px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.yx-standard-header-actions { justify-self: end; display: flex; gap: 2px; align-items: center; }
.yx-standard-home-button > span { display: block; color: #3c4567; font-size: 19px; line-height: 1; transform: translateY(-1px); }
