/* Shared readable controls with the terminal palette preserved. */
body::after{display:none}
.portal-brand{background:repeating-linear-gradient(0deg,transparent 0 3px,#00000012 3px 4px)}
body .button,body button,body input,body select,body textarea,body label,
body .macro-help,body .workspace-layout-label,body .editor-links span,
body .device-state,body .page-heading p,body .release-link,
body .connection-strip>span,body .dfu-photo figcaption,
body .landing .landing-note,body .landing #demo-status,
body .landing .use-grid a,body .landing .account-benefits>a:last-child{font-size:14px;line-height:1.65}
body textarea,body #workspace-text{font-size:16px;line-height:1.8}
body .panel-heading h2{font-size:14px}
body #log{font-size:13px;line-height:1.8}
body .macro-help,body .device-state,body .page-heading p{color:#afc5b2}
body .landing .hardware-illustration p{font-size:14px!important}
body .connection-strip{gap:14px;flex-wrap:wrap;height:auto;min-height:52px;padding:14px 18px}
.program-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;margin:20px 0 12px;list-style:none;counter-reset:stage}
.program-stages[hidden],.program-result[hidden]{display:none}
.program-stages li{counter-increment:stage;border-top:3px solid #35483a;padding:12px 4px;font:14px/1.6 Consolas,monospace;color:#96aa99}
.program-stages li:before{content:counter(stage) ' / ';font-size:12px}
.program-stages .current{border-color:#ffb454;color:#ffcf8e;background:#ffb4540a}
.program-stages .complete{border-color:#39ff14;color:#b4eda9}
.program-result{padding:18px;border:1px solid #62a75b;background:#102713;color:#cdffc5;font:16px/1.7 Consolas,monospace;overflow-wrap:anywhere}
.program-result.failed{border-color:#c37658;background:#28170e;color:#ffd1b6}
@media(max-width:650px){.program-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.connection-strip>span{white-space:normal}body .button{min-height:44px}}

.library-subnav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:10px;border:1px solid #34513c}
.library-subnav a{padding:12px 16px;font:14px/1.5 Consolas,monospace;border-radius:0;color:#b3cab6}
.library-subnav a[aria-current=page]{background:#193322;color:#39ff14;border-bottom:2px solid #39ff14}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #ffd447;outline-offset:4px}
.community-main h1{overflow-wrap:anywhere}
@media(max-width:650px){.library-subnav a{flex:1 1 180px}.admin-card form{min-width:0}.admin-card input,.admin-card select,.admin-card textarea{max-width:100%}dialog{max-width:calc(100vw - 32px)}}

/* Keep connection guidance and footer links comfortably readable. */
body .bottom-note{font-size:14px;line-height:1.8;letter-spacing:0;gap:16px}
body footer{font-size:13px;line-height:1.8;letter-spacing:.3px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 28px;padding-top:24px;padding-bottom:24px}
body footer a{font-size:14px;color:#ffb454;white-space:nowrap}
@media(max-width:650px){body footer{align-items:flex-start;flex-direction:column;gap:12px}}
