.demo-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f5f9fd;border:1px solid #c1d9ee;border-radius:12px;padding:10px 14px;margin:0 0 16px;font-size:.82rem;color:#173454}.demo-notice span{flex:1;min-width:160px}.demo-notice form{margin:0}.demo-notice button{font:inherit;padding:5px 9px;min-height:32px}.demo-notice details{width:auto}.demo-notice details[open]{width:100%}.demo-notice details form{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.demo-notice summary{cursor:pointer;color:#075ba8;font-weight:600}@media(max-width:600px){.demo-notice{gap:6px;padding:8px 10px}.demo-notice span{flex-basis:100%}}

.demo-mobile-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:inherit;font-weight:650;color:#075ba8;border:1px solid #a7cbed;background:white;border-radius:9px;padding:7px 11px}.demo-mobile-link[hidden]{display:none!important}.demo-autark-note{flex-basis:100%;color:#405b77}@media(max-width:900px){body #vehicle-menu .vehicle-menu-panel{max-height:max(120px,calc(100dvh - var(--portal-header-height, 160px) - 112px));overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}.demo-mobile-link{display:none}}

/* Demo 03: never consume screen space in the original framed portal. */
html.demo-in-frame .demo-notice {display:none!important}
/* Explicit single column; avoid intrinsic sizing of nested fieldset/legend. */
body .vehicle-mode-form .vehicle-mode-buttons,
body .vehicle-mode-form .autark-supply-field,
body .vehicle-mode-form .autark-supply-options {grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;width:100%;box-sizing:border-box}
body .vehicle-mode-form .autark-supply-options {display:grid;gap:4px;padding:0;margin:0;border:0}
body .vehicle-mode-form .autark-supply-title {display:block;width:100%;min-width:0;margin:0 0 4px;font-size:14px;font-weight:700;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:normal}
body .vehicle-mode-form .autark-supply-options label {display:flex;align-items:center;width:100%;min-width:0;max-width:100%;gap:9px;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.35;padding:7px 6px;min-height:44px}
body .vehicle-mode-form .autark-supply-options label input[type=radio] {flex:0 0 21px;width:21px;min-width:21px;max-width:21px;height:21px;margin:0;padding:0}
body .vehicle-mode-form .autark-supply-options label span {flex:1;min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
body .vehicle-mode-form .autark-supply-field small {white-space:normal;word-break:normal;overflow-wrap:break-word}
@media(max-width:900px){
 body #vehicle-menu .vehicle-menu-panel {max-height:calc(100dvh - var(--portal-header-height,120px) - var(--rc15-bottom-height,64px) - 24px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
 /* On an actual phone (not the desktop phone preview), keep demo tools below the original page. */
 html:not(.demo-in-frame) .demo-notice {margin:12px 0 0}
}
