/* STIMLAB UX R5.1: make the real R4 forms clearer without replacing the design system. */
html.ux51-ready .dash-side {display:none!important}
html.ux51-ready main.dashboard-layout,html.ux51-ready main.admin-layout{grid-template-columns:minmax(0,1fr)!important}
html.ux51-ready .dash-content{min-width:0;width:100%;max-width:100%}
html.ux51-ready .ux-work-nav{margin:12px 0 6px;gap:8px}
html.ux51-ready .ux51-location{margin:0 0 18px;color:var(--muted,#5e7280);font-size:13px}
html.ux51-ready .ux51-admin-entry{background:#e5f0f3;color:#15566a!important}
html.ux51-ready .ux51-admin-entry[hidden]{display:none!important}
html.ux51-ready .ux51-schedule-card{margin:14px 0 20px;padding:14px;border-radius:14px;border:1px solid var(--line,#cddde0);background:var(--surface,#fff)}
html.ux51-ready .ux51-schedule-card .s3-quick-card{border:0;padding:0;margin:0;box-shadow:none;background:transparent}
html.ux51-ready .ux51-schedule-card .s3-quick-card h3{margin:0 0 12px}
html.ux51-ready .ux51-inline-help,html.ux51-ready .ux51-note{font-size:14px;color:var(--muted,#526774);margin:8px 0 12px}
html.ux51-ready .ux51-note.care-error{color:#9c3030}
html.ux51-ready .ux51-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
html.ux51-ready .ux51-advanced{border:1px solid var(--line,#d8e0e4);border-radius:12px;margin:14px 0;padding:12px}
html.ux51-ready .ux51-advanced summary{font-weight:600;cursor:pointer;padding:7px 2px;min-height:44px;display:list-item}
html.ux51-ready .ux51-advanced[open]>summary{margin-bottom:14px}
html.ux51-ready .ux51-report-progress{position:relative;background:#edf5f7;color:#123b48;border:1px solid #c7dfe6;border-radius:13px;padding:13px 16px;margin:16px 0}
html.ux51-ready .ux51-progress-label{display:block;font-size:14px;margin-bottom:6px}
html.ux51-ready .ux51-report-progress progress{display:block;width:100%;height:11px;accent-color:#19738d}
html.ux51-ready .ux51-next-missing{margin-top:10px;min-height:42px;padding:8px 12px;border-radius:10px;border:1px solid #83aebc;color:#15566a;background:#fff;font-weight:600}
html.ux51-ready .ux51-next-missing[hidden]{display:none!important}
html.ux51-ready .ux51-validation{margin:8px 0 0;color:#a23434;font-size:14px}
html.ux51-ready .care-section.ux51-empty{outline:2px solid #b24646;outline-offset:2px;border-radius:8px}
html.ux51-ready .ux51-doc-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
html.ux51-ready .ux51-doc-filters input,html.ux51-ready .ux51-doc-filters select{min-width:0;min-height:44px;padding:10px;border:1px solid #b8cdd4;border-radius:10px;background:#fff;color:#173e4b;font:inherit;flex:1 1 180px}
html.ux51-ready .ux51-doc-count{font-size:13px;color:var(--muted,#546b78)}
html.ux51-ready .care-list-item[hidden]{display:none!important}
html.ux51-ready button:focus-visible,html.ux51-ready a:focus-visible,html.ux51-ready input:focus-visible{outline:3px solid #2692ba;outline-offset:2px}
@media(max-width:600px){
 html.ux51-ready .ux-work-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html.ux51-ready .ux-work-nav a{min-height:48px;padding:9px 7px;font-size:13px}
 html.ux51-ready .ux51-report-progress{padding:12px}
 html.ux51-ready .ux51-schedule-card{padding:12px}
 html.ux51-ready .ux51-doc-filters{display:grid;grid-template-columns:minmax(0,1fr)}
 html.ux51-ready .ux51-doc-filters input,html.ux51-ready .ux51-doc-filters select{width:100%;flex:auto}
 html.ux51-ready .care-actions>*{min-height:44px}
}
@media(prefers-reduced-motion:reduce){html.ux51-ready *{scroll-behavior:auto!important}}
/* Retire the second, mobile-only legacy administrator menu (R3 tabs replace it). */
html.ux51-ready #adminMobileSections{display:none!important}
/* The skip-navigation link is keyboard-only and must not cover controls while browsing. */
html.ux51-ready a.skip-link:not(:focus-visible){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html.ux51-ready .admin-main .dash-head h1{font-size:clamp(26px,5vw,37px);line-height:1.15;max-width:21ch}
html.ux51-ready #s2Admin .ux51-schedule-card button[type="submit"]{width:100%;min-height:46px;border:0;border-radius:10px;background:#20778d;color:#fff;font:inherit;font-weight:650;padding:10px 18px;cursor:pointer;margin:10px 0}
html.ux51-ready #s2Admin .ux51-schedule-card label{display:grid;gap:5px;margin:8px 0}
html.ux51-ready #s2Admin .ux51-schedule-card input,
html.ux51-ready #s2Admin .ux51-schedule-card select{min-height:44px;max-width:100%;width:100%;box-sizing:border-box}
/* Keep forms and navigation unobstructed instead of a large sticky account header. */
html.ux51-ready .account-top{position:relative!important;top:auto!important}
