/* v4.3: scoped layout and interaction polish; editor/CMS business rules are unchanged. */
.public-body .showcase-header .showcase-desktop-nav{margin-left:auto!important;margin-right:0!important;gap:25px!important}
.public-body .showcase-header .showcase-header-tools{flex-shrink:0}
.showcase-mobile-drawer[inert]{visibility:hidden}
.showcase-mobile-drawer.open{visibility:visible}
.showcase-home{padding-bottom:22px}
.showcase-hero h1{color:#f7fbff}
.showcase-media-card .media{height:152px;display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 50% 40%,#214b77,#102442)}
.showcase-media-card .media>img{width:100%;height:100%;max-width:115px;max-height:108px;object-fit:contain!important;transition:transform .25s ease;filter:drop-shadow(0 6px 10px #0003)}
.showcase-media-card .math-card-art{padding:25px 20px 16px;gap:5px}
.math-card-art>span:not(.difficulty){font-size:17px}
.showcase-media-card,.showcase-guide-card,.showcase-app-card,.product-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.showcase-media-card:hover,.showcase-guide-card:hover,.showcase-app-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #0003;border-color:#56b9ff}
.showcase-media-card:hover .media>img{transform:scale(1.06)}
.showcase-guide-card img{height:116px;object-fit:contain;padding:10px;transition:transform .25s ease}
.showcase-guide-card:hover img{transform:scale(1.04)}
.showcase-category-icon{transition:transform .22s ease,box-shadow .22s ease}
.showcase-category:hover .showcase-category-icon{transform:translateY(-2px) rotate(-4deg);box-shadow:0 7px 21px #218fff55}
.showcase-section-head{align-items:flex-start}
.showcase-section-head>div{min-width:0}
.showcase-section-head p{line-height:1.65;font-size:12px}
.showcase-media-card p{font-size:11px;line-height:1.6;min-height:54px;margin-bottom:12px}
.showcase-media-card>b{font-size:13px;padding-top:12px}
.card-action{height:34px;font-size:11px;margin:0 10px 10px}
.showcase-guide-card b{font-size:12px;line-height:1.55;min-height:55px}
.showcase-feature-panel.visual-panel{display:flex;flex-direction:column;min-height:0}
.visual-panel .panel-preview{position:relative;right:auto;bottom:auto;width:min(100%,360px);align-self:center;transform:none;margin:10px auto -18px;pointer-events:none}
.showcase-app-list{grid-template-columns:1fr;gap:10px}
.showcase-app-card{grid-template-columns:52px minmax(0,1fr) auto;align-items:center;min-height:88px;padding:14px;gap:12px}
.showcase-app-card b{font-size:14px;line-height:1.4}
.showcase-app-card small{font-size:11px;line-height:1.5}
.showcase-app-card strong{font-size:12px;color:#1471d1}
.showcase-app-card .buy-pill{position:static;min-width:74px;height:32px;padding:0 10px}
.app-thumb{width:52px;height:52px}
.showcase-login,.showcase-search-link,.showcase-theme-toggle,.showcase-chat-launcher,.showcase-socials a,.showcase-section-head>a,.btn,.icon-btn{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.showcase-login:hover,.showcase-chat-launcher:hover,.showcase-socials a:hover{transform:translateY(-2px);box-shadow:0 6px 20px #198dff44}
.showcase-theme-toggle:hover{background:#1e3b60;border-color:#64b8ff}
.showcase-section-head>a:hover{background:#18436b;border-color:#66b8fc}
:is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #25a5ff;outline-offset:3px}
.public-body .public-page-main>.section{max-width:var(--public-shell,1480px);margin-inline:auto}
.public-body :is(.section,.product-info,.product-gallery,.details-grid)>*{min-width:0}
.public-body .action-row,.public-body .button-wrap,.cms-main .button-wrap,.cms-top{flex-wrap:wrap;gap:10px}
.cms-main :is(.cms-top,.panel-head)>div{min-width:0}
.cms-main :is(.table-wrap,.ops-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.cms-main .table-wrap td,.cms-main .table-wrap th{vertical-align:top}
.cms-main .table-wrap td code{overflow-wrap:anywhere}
.cms-main .cms-ops-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.cms-main :is(.panel,.stack,.cms-grid,.cms-metrics,.notes-workspace){min-width:0}
.cms-main :is(input,select,textarea){max-width:100%;min-width:0}
.cms-main .panel :is(img:not(.chat-message-image)){max-width:100%;object-fit:contain}
.cms-side :is(a,button){transition:background .2s ease,box-shadow .2s ease}
.cms-sidebar-toggle{flex-shrink:0}
.cms-top :is(.btn,.button-wrap){flex-shrink:0}
.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #12407215}
.real-app-art .real-app-icon{object-fit:contain!important;max-width:42%!important;max-height:60%!important}
.main-preview.real-app-art .real-app-icon{max-width:46%!important;max-height:66%!important}
.public-body.page-home[data-showcase-theme="light"] .showcase-hero h1{color:#10213b}
.public-body.page-home[data-showcase-theme="light"] :is(.showcase-category,.showcase-section,.showcase-feature-panel){background:#fff;border-color:#d4e3f4}
.public-body.page-home[data-showcase-theme="light"] :is(.showcase-category b,.showcase-section h2,.showcase-feature-panel h2){color:#10213b}
.public-body.page-home[data-showcase-theme="light"] :is(.showcase-category small,.showcase-section-head p,.showcase-feature-panel p){color:#526b87}
.public-body.page-home[data-showcase-theme="light"] :is(.showcase-media-card,.showcase-guide-card){background:#f6faff;border-color:#d6e3f3;color:#10213b}
.public-body.page-home[data-showcase-theme="light"] .showcase-media-card p{color:#526b87}
.public-body.page-home[data-showcase-theme="light"] .showcase-section-head>a{color:#1261a9;border-color:#98b7da}
.public-body[data-showcase-theme="light"] .showcase-btn.secondary{color:#17385e;background:#fff;border-color:#9cb4d0}
.public-body[data-showcase-theme="dark"]:not(.page-home){--bg:#09162b;--panel:#10223c;--ink:#eaf3ff;--muted:#aabed8;--line:#2c4765;background:var(--bg);color:var(--ink)}
.public-body[data-showcase-theme="dark"] :is(.about-hero-v42,.about-values article,.team-v42-card,.guides-v42-grid article){background:#10223c;border-color:#2c4765}
.public-body[data-showcase-theme="dark"] :is(.about-hero-v42 h1,.about-story-v42 h2,.about-team-v42 h2,.about-long-v42 h2,.about-visual-v42 h2,.about-values b,.team-v42-card h3){color:#eaf3ff}
.public-body[data-showcase-theme="dark"] :is(.about-hero-v42 p,.about-story-v42>p,.about-long-v42>p,.about-visual-v42 p,.about-values p,.team-v42-card p,.guides-v42-grid p){color:#aabed8}
.public-body[data-showcase-theme="dark"] .about-visual-v42{background:#142e50}
@media(prefers-reduced-motion:no-preference){.public-body .showcase-hero-copy{animation:bitstream-page-in .4s ease both}.public-body :is(.showcase-section,.about-hero-v42,.guides-hero-v42){animation:bitstream-page-in .35s ease both}@keyframes bitstream-page-in{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:1180px){.public-body .showcase-header .showcase-desktop-nav{gap:18px!important}.visual-panel .panel-preview{width:min(100%,460px)}}
@media(max-width:1000px){.cms-main .cms-ops-grid,.cms-main .notes-workspace{grid-template-columns:minmax(0,1fr)}.cms-main .cms-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.showcase-theme-toggle{display:flex}.showcase-header-tools{gap:7px}.public-body .showcase-header{padding-inline:12px!important;gap:8px!important}.showcase-brand span{font-size:14px!important}.showcase-brand img{width:28px!important;height:28px!important}.showcase-login{min-width:58px;font-size:11px;padding-inline:8px}.showcase-theme-toggle{width:34px;padding:0;justify-content:center}.showcase-theme-toggle .moon{display:none}.showcase-mobile-toggle{width:34px}.showcase-section-head{flex-wrap:wrap;gap:12px}.showcase-section-head p{display:block}.showcase-section-head h2{font-size:18px}.showcase-media-card .media{height:144px;padding:20px}.showcase-app-card{grid-template-columns:46px minmax(0,1fr)}.showcase-app-card .buy-pill{grid-column:2;justify-self:start}.app-thumb{width:46px;height:46px}.showcase-app-card small{font-size:11px}.cms-main .cms-top{padding-block:12px!important}.cms-main .cms-grid,.cms-main .notes-grid{grid-template-columns:minmax(0,1fr)}.cms-main .contract-edit-grid{grid-template-columns:1fr}.showcase-media-card p{min-height:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.cms-main .settings-grid{align-items:start}
.cms-main .form-grid{align-content:start;grid-template-columns:repeat(2,minmax(0,1fr))}
.cms-main .form-grid label{min-width:0}
@media(max-width:600px){.cms-main .form-grid{grid-template-columns:minmax(0,1fr)}.showcase-categories,.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.showcase-category{padding:12px}.showcase-guide-card img{height:100px}.game-grid{grid-template-columns:minmax(0,1fr)}}
.public-body.page-services .company-page-hero{background:linear-gradient(135deg,#09203d,#153d6c)!important;color:#fff!important}
.public-body.page-services .company-page-hero :is(h1,p,.eyebrow){color:#f2f7ff!important}
