/* Intrinsic sizing and one bounded work area, including enlarged text. */
.frame{grid-template-rows:auto minmax(0,1fr) auto}.topbar{height:auto;min-height:5rem}
.brand>div,.device-header>div,.item-card>div,.diagnostic,.diagnostic-layout,.stack,.panel,.two-col>*,.form-grid>*,.nav-card>span{min-width:0;max-width:100%}
.workspace,.body{min-height:0}.viewport{overflow:auto;scroll-padding-block:1rem;padding-bottom:max(1rem,env(safe-area-inset-bottom))}
.bottombar{padding-bottom:env(safe-area-inset-bottom);min-width:0;height:auto}
.screenbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center}
.screenbar h1,.device-header h1,.question h2,.nav-card strong{word-break:normal;overflow-wrap:normal;hyphens:manual}
.screenbar h1{line-height:1.35}.row{min-width:0;flex-wrap:wrap}.row>*{max-width:100%;min-width:0}
.pathbar{flex-wrap:wrap;overflow:visible;gap:.35rem;max-width:100%}.path-dot{width:1.8rem;height:1.8rem}.path-line{width:.5rem;flex:0 1 .5rem}
.question{align-items:flex-start;min-height:0;padding:1.25rem;gap:1rem}
.question h2,.question .result{min-width:0;max-width:100%;font-size:1.125rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:break-word}
.question .question-mark{width:2rem;height:2rem;font-size:1.25rem;flex:0 0 2rem}
.answer-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.75rem;min-width:0}
.answer{width:100%;min-width:0;height:auto;min-height:3.5rem;padding:.9rem;font-size:1.125rem;white-space:normal;overflow-wrap:break-word;line-height:1.4}
.answer.custom{font-size:1rem}.answer .icon{width:1.5rem;height:1.5rem}
.small,.item-meta,.brand-subtitle,.nav-card small,.notice,.bottom-button,.translation-chip,.badge,.version{font-size:.875rem;line-height:1.45}
.badge{white-space:normal}.bottom-button{overflow-wrap:normal;word-break:normal;white-space:normal;line-height:1.2}
.item-card,.nav-card{overflow:visible}.item-card>div{flex:1}.item-extra{flex-shrink:1}
.cards,.manufacturers,.two-col,.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.tech-table{table-layout:auto;min-width:38rem}.table-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.table-scroll td,.table-scroll th{font-size:.875rem;white-space:normal}.source-refs{display:grid;gap:.4rem;overflow-wrap:anywhere}
.related-context{border-color:var(--gold2)}.choice-search{display:grid;gap:.5rem}
.code-filters,.evidence-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.75rem}
.diagnostic-layout aside{min-width:0}.device-header h1{font-size:1.4rem;line-height:1.4}
[hidden]{display:none!important}
.hero{flex-wrap:wrap;min-width:0;max-width:100%}
.hero>div:not(.hero-icon){min-width:0;max-width:100%;flex:1 1 12rem}
.hero>.icon-button{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;flex-wrap:wrap}
.button-label{min-width:0;max-width:100%;hyphens:auto;overflow-wrap:anywhere}
.device-header h1,.notice{hyphens:auto;overflow-wrap:anywhere}
.screenbar .back .button-label{font-size:inherit}
.tabs{min-width:0;max-width:100%}.tabs button{min-width:0;flex:1 1 8rem;max-width:100%;white-space:normal;overflow-wrap:break-word}
@media(max-width:900px){.body{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.topbar{padding:1rem}.brand-title{font-size:1.5rem}.wordmark{display:none}.diagnostic-layout{grid-template-columns:minmax(0,1fr)}.diagnostic-layout aside{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){
 .topbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem .75rem;padding:.65rem .75rem;min-height:0}
 .brand{grid-column:1/-1;grid-row:1;display:block}.brand-title{font-size:1.25rem;white-space:normal;line-height:1.2;letter-spacing:0}
 .brand-subtitle{margin-top:.35rem;font-size:.875rem;line-height:1.3;-webkit-line-clamp:2}
 .service-key{grid-column:1;grid-row:2;width:2.5rem;min-height:2.5rem;padding:.5rem}
 .top-actions{grid-column:2;grid-row:2;max-width:none;display:flex;flex-wrap:wrap;justify-content:end}.top-actions .version{display:block;font-size:.875rem}
 .language{width:4.5rem;min-height:2.5rem;font-size:1rem}
 .screenbar{grid-template-columns:auto minmax(0,1fr) auto;gap:.5rem;padding:.6rem .75rem;min-height:0}.screenbar h1{font-size:1rem;grid-column:1/-1;grid-row:1}
 .screenbar .status-line{grid-column:3;font-size:.875rem;white-space:normal}.viewport{padding:1rem .75rem}
 .question{padding:1rem;display:block}.question .question-mark,.device-header .item-icon{display:none}.device-header h1{font-size:1.25rem}
 .diagnostic{gap:1rem}.diagnostic>.row.between{justify-content:flex-start}.cards,.manufacturers{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
 .nav-card strong,.item-title{font-size:1rem;line-height:1.4;overflow-wrap:break-word}.nav-card small,.notice,.item-meta{font-size:.875rem}.nav-card{padding:1rem;gap:.75rem}
 .bottombar{gap:0;padding-inline:.25rem}.bottom-button{font-size:.875rem;min-height:3.5rem;padding:.5rem .15rem;max-width:none}.bottom-button .icon{width:1.25rem;height:1.25rem}
 .hero .eyebrow{font-size:.875rem}.hero h1{font-size:1.2rem}
}
@media(max-height:480px){.brand-subtitle,.brand .wordmark{display:none}.topbar{padding:.4rem .75rem}.screenbar{padding:.35rem .75rem}.bottombar .icon{display:none}.bottom-button{min-height:2.5rem}.brand-title{font-size:1rem}}

.bottombar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr))}.bottom-button{width:100%;max-width:none}
@media(max-width:360px){.brand-title{font-size:1rem}}

.diagnostic{grid-template-columns:minmax(0,1fr);width:100%}.diagnostic>*{min-width:0;max-width:100%}
.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
@media(max-width:650px){.cards{grid-template-columns:minmax(0,1fr)}.nav-card strong{overflow-wrap:normal;hyphens:manual}}

.screenbar{width:100%;max-width:100%;min-width:0}.screenbar .status-line{min-width:0}
.viewport{padding-block:min(1rem,16px)}
@media(max-width:650px){.top-actions .version{display:none}.language{width:3rem;min-width:64px}.screenbar{grid-template-columns:auto auto minmax(0,1fr)}.screenbar .back{font-size:0}.screenbar .back .icon{width:24px;height:24px}.screenbar h1{grid-column:1/-1}.bottom-button{min-height:44px;padding-block:.3rem}.bottom-button .icon{width:24px;height:24px}}

.reference-details{min-width:0;max-width:100%}.reference-details .detail-grid dt,.reference-details .detail-grid dd,.tech-table details dd{min-width:0;overflow-wrap:anywhere}.tech-table details{max-width:30rem}.reference-details summary{cursor:pointer}
