/* Local visual polish. Keep the existing navigation, data flow and layouts. */
:root{
 --navy:#203d5c;
 --navy2:#315570;
 --red:#2870d7;
 --gold:#b58736;
 --text:#21374f;
 --muted:#586f87;
 --line:#dfe7f0;
 --bg:#f2f6fb;
 --green:#16816d;
 --polish-surface:#fff;
 --polish-soft:#ecf3fa;
 --polish-focus:#2870d7;
 --polish-shadow:0 5px 18px #23476b07,0 1px 2px #23476b05;
}
body{line-height:1.65;background:var(--bg);-webkit-font-smoothing:antialiased}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{
 outline:2px solid var(--polish-focus);
 outline-offset:3px;
}
h1{font-size:28px;line-height:1.35;letter-spacing:-.5px;font-weight:650}
h2{line-height:1.5;font-weight:600}
.eyebrow{letter-spacing:1.5px;color:#59728d}
.page-heading{margin-bottom:24px;align-items:flex-start}
.page-heading>div{min-width:0}
.page-heading p:last-child{max-width:76ch;line-height:1.8}
.page-heading>.button{align-self:center}
.topbar{background:#fff;border-color:var(--line);box-shadow:none}
.breadcrumb{color:#6b7b8d}
.breadcrumb b{font-weight:600}
.footer{line-height:1.8}

/* A quiet sidebar gives the work area and selected module a clear hierarchy. */
#sidebar{background:#eaf2fb;color:#4f6b85;border-right:1px solid #d8e1ea}
#sidebar .brand{color:#1c3b5a}
#sidebar .brand small{color:#526d87}
#sidebar .brand-icon,.auth-brand .brand-icon{background:#2870d7;color:#fff}
#sidebar .nav-label{color:#526d87;letter-spacing:1.5px}
#sidebar .nav-section>summary,#sidebar .nav-subsection>summary{color:#496882}
#sidebar .nav-section[open]>summary{color:#1c3b5a}
#sidebar .nav-section>summary:hover,#sidebar .nav-subsection>summary:hover{background:#e2e9f0;color:#204f83}
#navigation .nav{color:#496985}
#navigation .nav:hover{background:#deebfa;color:#204f83}
#navigation .nav.active{background:#d8e8ff;color:#204f83;box-shadow:inset 2px 0 #4187e3}
#sidebar .nav-section>summary>span,#navigation .nav>span{font-variant-emoji:text}
#sidebar .nav-subsection{border-color:#cdd8e3}
#sidebar .sidebar-foot{border-color:#d0dbe5;color:#4f6b85}
#sidebar .sidebar-foot small,#sidebar .version{color:#526d87}
#sidebar .navigation-close{background:#dfe7ef;color:#415b73}

/* Shared surfaces and controls use one border, radius and restrained shadow. */
.panel,.metric,.quick-card,.care-card,.care-hero,.care-advanced,.source-card{
 background:var(--polish-surface);
 border-color:var(--line);
 border-radius:14px;
 box-shadow:var(--polish-shadow);
}
/* The workbench greeting carries useful context, without a decorative dark block. */
.today-workbench .welcome-panel{background:linear-gradient(115deg,#eefaf5 0%,#eef5ff 100%);color:var(--text);border:1px solid #d9e9ec;border-radius:16px;padding:26px 28px;box-shadow:var(--polish-shadow)}
.today-workbench .welcome-panel h2{color:var(--text)}
.today-workbench .welcome-panel p{color:var(--muted)}
.today-workbench .welcome-panel .tag{color:#4f6b85;background:#e9f2fb}
.panel{overflow:visible}
.panel-head,.panel-footer,.panel-note,.legend,.pagination{border-color:#e7edf2}
.panel-head{padding-top:19px;padding-bottom:19px}
.panel-head h2{font-size:16px}
.panel-note{background:#fafbfd;line-height:1.8}
.metric:before{height:3px;background:#78a5e1}
.metric:nth-child(n+3):before{background:#78a5e1}
.metric strong{color:#2b435c;font-weight:650;letter-spacing:-.6px}
.metric>span{color:#586d82;font-size:12px}
.metric small{line-height:1.8}
.quick-card{line-height:1.65}
.quick-card b{font-size:14px}
.quick-card p{font-size:12px}
.quick-card span{color:#2870d7}
.quick-card:hover{border-color:#adc6df;box-shadow:0 2px 6px #243b530c}
.care-card h2,.care-card .care-card-head h2{color:#2b435c}
.care-hero{padding:24px 28px;gap:24px;margin-bottom:16px}
.care-hero h2{font-size:24px;color:#2b435c;margin:6px 0 10px}
.care-hero p{margin-bottom:10px}
.care-status-line{margin-bottom:14px}
.care-card dl>div{border-color:#e7edf2}
.care-card dd{color:#30485f}
.status-list.daily-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 0 16px}
.status-list.daily-summary>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;min-width:0;padding:12px 14px;background:#f6f9fb;border:1px solid #e2eaf1;border-radius:9px}
.daily-summary span{font-size:11px;color:#586f87;overflow-wrap:anywhere}
.daily-summary b{font-size:14px;color:#30485f;line-height:1.7;overflow-wrap:anywhere}
.daily-summary+.muted{margin-bottom:12px;line-height:1.8}
#daily-details{padding:14px 18px;margin:16px 22px 20px}
#care-source-details{padding:16px 20px;margin:20px 0}
.today-status-grid section{background:#fff}
.today-status-grid h3{font-size:13px;color:#3e566e}
.today-context{line-height:1.9}
.today-todo-head h3{line-height:1.6;color:#30485f}
.today-todo-body p{line-height:1.9}
.today-secondary>summary{color:#5f7388}
.care-advanced>summary{font-size:14px;color:#425a71;line-height:1.8}
.care-advanced>summary span{font-size:12px;line-height:1.8}
.care-advanced[open]>summary{margin-bottom:20px}

.button,.tab-strip button{min-height:36px;border-color:#cfdce9;border-radius:9px;font-weight:600}
.button{background:#fff;color:#3b526a}
.button:hover:not(:disabled){background:#f2f6f9;border-color:#a9bbcb}
.button.primary{background:#2870d7;border-color:#2870d7;color:#fff}
.button.primary:hover:not(:disabled){background:#1d5dbb;border-color:#1d5dbb}
.button.small{min-height:32px}
.text-button{min-height:32px;color:#2466b1;line-height:1.7}
.icon-button{width:32px;height:32px;border-radius:8px;background:#eef3f7;color:#526b82}
.tab-strip{gap:8px}
.tab-strip button{color:#596f84;background:#fff}
.tab-strip button.active{background:#dfedff;border-color:#bdd5f4;color:#2a4660}
.settings-nav button.active{color:#2466b1;border-color:var(--line)}
input,select,textarea{border-color:#ced9e3;border-radius:8px;color:#2f455b;line-height:1.6}
input::placeholder,textarea::placeholder{color:#6d8299}
input:hover,select:hover,textarea:hover{border-color:#adc6df}
input:disabled,select:disabled,textarea:disabled{background:#f3f6f9;color:#788a9d}
.switch-field,.row-editor,.detail-grid>div,.preview-summary{background:#f6f9fb;border-color:#dfe7ee;border-radius:9px}
.row-editor{gap:12px}
.inline-actions,.dialog-actions,.toolbar-actions{gap:10px}
.badge{border-radius:6px;font-weight:600;letter-spacing:.1px}
.badge.neutral{background:#e9f2fb;color:#60758a}
.badge.good{background:#e5f6ee;color:#136e56}
.badge.gold{background:#fff4dc;color:#805d20}
.badge.bad{background:#fff0f1;color:#a43e50}
.notice{border-radius:9px;background:#edf5f0;border-color:#c5ddce;color:#35644c;line-height:1.8}
.notice.error{background:#fbefef;border-color:#e5c7ca;color:#934c54}
.info-box{background:#f0f5f9;border-color:#d9e5ee;color:#506a82;border-radius:9px}
.readonly-note,.official-publication-note{background:#fbf7ee;border-color:#e5d9bd;color:#7b6741}

/* Tables keep their horizontal scrolling and all focus outlines remain visible. */
.table-wrap{max-width:100%;overflow-x:auto}
th{padding:12px 18px;font-size:12px;letter-spacing:.1px;background:#f4f8fc;color:#62788e;border-color:#e6edf3}
td{padding:15px 18px;border-color:#e7edf2;font-size:13px;line-height:1.75}
tbody tr:nth-child(even){background:#fbfcfd}
tbody tr:hover,tbody tr:focus-within{background:#f1f6fa}
td small{line-height:1.8;color:#62758b}
.table-empty{color:#74879a}

/* Feedback stays light; page and dialog entrances do not animate. */
.button,.text-button,.icon-button,.tab-strip button,.quick-card,
input,select,textarea,#navigation .nav,
#sidebar .nav-section>summary,#sidebar .nav-subsection>summary{
 transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease;
}
tbody tr{transition:background-color 120ms ease}
dialog{
 border-color:#d3dfe9;
 border-radius:12px;
 box-shadow:0 10px 30px #243b531f;
 max-height:90dvh;
 overflow:auto;
}
dialog::backdrop{background:#24394f66;backdrop-filter:none}
.dialog-head{margin-bottom:22px}
.dialog-head h2{font-size:21px;line-height:1.5}

/* Static loading bars supplement, rather than replace, the real status text. */
.loading{padding:44px 22px;color:#647b91;line-height:1.8}
.loading::before{
 content:'';
 display:block;
 width:min(420px,100%);
 height:42px;
 margin:0 auto 17px;
 border-radius:5px;
 background:linear-gradient(#e3eaf1,#e3eaf1) left top/100% 9px no-repeat,linear-gradient(#eaf0f5,#eaf0f5) left center/78% 9px no-repeat,linear-gradient(#eaf0f5,#eaf0f5) left bottom/56% 9px no-repeat;
 pointer-events:none;
}

.auth-screen{background:#edf2f7;color:#2b4057;overflow:visible}
.auth-screen:before{content:none}
.auth-copy .eyebrow,.auth-label{color:#377b83}
.auth-copy h1{font-size:36px;line-height:1.55;letter-spacing:-.7px}
.auth-copy>p:last-of-type{color:#657a90}
.auth-brand small,.auth-decoration{color:#526d87}
.auth-decoration span{border-color:#bba8aa}
.auth-card{border:1px solid #dce5ed;border-radius:18px;box-shadow:0 10px 32px #294c720b}
.auth-captcha{margin-top:20px;padding:13px 14px;border:1px solid #d6e3f1;border-radius:10px;background:#f5f9fe;color:#365675;min-width:0}
.auth-captcha-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;font-size:12px;line-height:1.6}
.auth-captcha-heading svg{flex:0 0 18px;color:#397fc1}
.auth-captcha-heading strong{font-weight:600}
.auth-captcha-heading span{margin-left:auto;font-size:10px;padding:2px 7px;border-radius:5px;background:#e6effb;color:#315c8a}
.auth-captcha>p{margin:7px 0 0;font-size:11px;line-height:1.8;color:#526b83;overflow-wrap:anywhere}
.auth-captcha[data-state="off"]{background:#f7f9fb;border-color:#e1e7ee}
.auth-captcha[data-state="off"] .auth-captcha-heading span{background:#e9eef3;color:#52687c}
.auth-captcha[data-state="unavailable"],.auth-captcha[data-state="error"]{background:#fff9ef;border-color:#eddbb9}
.auth-captcha[data-state="unavailable"] .auth-captcha-heading span,.auth-captcha[data-state="error"] .auth-captcha-heading span{background:#fff0d8;color:#805d20}
.auth-captcha-local{margin-top:14px;min-width:0}
.auth-captcha-preview{display:flex;align-items:center;justify-content:center;min-height:76px;border:1px solid #dce5ed;border-radius:8px;background:#fff}
.auth-captcha-preview img{display:block;max-width:100%;height:auto;object-fit:contain;border-radius:7px}
.auth-captcha-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;color:#586f87;font-size:10px;line-height:1.8}
.auth-captcha-help>.text-button{font-size:11px;min-height:32px}
.auth-card .auth-captcha-local label{margin-top:9px;gap:7px;font-size:11px}
#captcha-answer{font-size:16px;letter-spacing:4px;text-transform:uppercase;max-width:100%;min-width:0}
#captcha-answer::placeholder{font-size:11px;letter-spacing:0;text-transform:none}
.auth-captcha-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:11px}
.auth-captcha-actions>.button{flex:1 1 130px;min-height:36px;white-space:normal}
.auth-captcha-actions>.text-button{font-size:11px;min-height:36px}
.auth-captcha-local>.error-text{margin:8px 0 0;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.auth-footer,.auth-footer span{color:#526d87}

@media(max-width:1150px){
 .status-list.daily-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
 #sidebar{box-shadow:4px 0 14px #243b5310}
 .page-heading{gap:14px}
 .care-hero{padding:22px;gap:18px}
 .care-hero h2{font-size:22px}
 .auth-copy h1{font-size:29px}
}
@media(max-width:580px){
 h1{font-size:23px}
 .page-heading{flex-wrap:wrap;gap:12px;margin-bottom:20px}
 .page-heading>div{flex:1 1 100%}
 .page-heading>.button{max-width:100%;white-space:normal}
 .page-heading p:last-child{font-size:12px}
 .panel-head{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .panel-head h2{font-size:14px}
 .dialog-actions,.inline-actions{flex-wrap:wrap}
 .dialog-actions>.button{white-space:normal}
 .care-advanced{padding:18px}
 .care-advanced>summary span{display:block;margin-left:0}
 #daily-details{margin-left:16px;margin-right:16px}
 th,td{padding-left:14px;padding-right:14px}
 .loading{padding:32px 16px}
 dialog{padding:22px;max-height:calc(100dvh - 28px)}
}
@media(max-width:420px){
 .status-list.daily-summary{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .loading::before{display:none}
}

/* Reference-inspired workspace: original modules and data, lighter hierarchy. */
#workspace{background:#f2f6fb}
#workspace main{max-width:1560px;padding-top:30px}
#sidebar{background:linear-gradient(165deg,#edf5fd 0%,#e9f1fa 100%);border-right-color:#d9e5f1}
#sidebar .brand-icon,.auth-brand .brand-icon{display:flex;align-items:center;justify-content:center;background:transparent;box-shadow:none;border-radius:12px}
.brand-icon>img,.brand-icon>svg{display:block;width:100%;height:100%;object-fit:contain}
#sidebar .brand small{font-size:11px;letter-spacing:1px;font-weight:500}
#sidebar .brand{min-width:0;gap:10px;font-size:21px;letter-spacing:.8px;line-height:1.35}
#sidebar .brand>span:last-child{min-width:0}
#sidebar .brand .brand-icon{flex:0 0 40px;width:40px;height:40px}
#sidebar .brand small{font-size:10.5px;letter-spacing:.6px;line-height:1.55;white-space:normal;margin-top:5px}
.auth-brand .brand-icon{flex:0 0 48px;width:48px;height:48px}
.auth-brand p{font-size:26px;line-height:1.35;font-weight:700;letter-spacing:1px}
.auth-brand small{font-size:11px;line-height:1.6;letter-spacing:1.6px;margin-top:5px}
#sidebar .nav-label{font-size:10px;letter-spacing:1.2px;margin-bottom:13px}
#sidebar .nav-section>summary{min-height:44px;border-radius:10px;font-size:12px;gap:10px}
#sidebar .nav-section[open]>summary{color:#254d77;background:#e4eef9}
#navigation .nav{gap:10px;min-height:39px;padding:9px 11px 9px 18px;border-radius:9px;font-size:12px;line-height:1.6}
#navigation .nav>b{flex:1;min-width:0;overflow-wrap:anywhere}
#navigation .nav.active{background:#dceaff;color:#205ca7;box-shadow:inset 3px 0 #4b8eeb;font-weight:600}
#navigation .nav.active>b{font-weight:650}
#sidebar .nav-group-icon,#navigation .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;padding:0}
.nav-icon-image{display:block;width:20px;height:20px;object-fit:contain;flex:none}
#sidebar .nav-section>summary>i,#sidebar .nav-subsection>summary>i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}
.nav-chevron{display:block;width:15px;height:15px;object-fit:contain;opacity:.65}
#sidebar .nav-subsection{border-color:#cbdaea;margin-left:17px}
#sidebar .nav-subsection>summary{color:#526e89;gap:8px}
#sidebar .sidebar-foot{background:transparent;border-color:#d1dfec;margin-top:28px;padding-top:18px}
#sidebar .sidebar-foot .dot{background:#269782}
.navigation-toggle img,.navigation-close img,.dialog-head .icon-button img,.navigation-toggle svg,.navigation-close svg,.dialog-head .icon-button svg{display:block;flex:none;width:18px;height:18px;object-fit:contain;margin:auto}
.navigation-toggle{gap:7px}
.navigation-toggle img,.navigation-toggle svg{margin:0}
.navigation-close,.dialog-head .icon-button{align-items:center;justify-content:center}
.topbar{background:#ffffffd9;border-bottom-color:#dfe7f0}
.top-actions .button.small{border-radius:9px}
.page-heading .eyebrow{font-size:11px;font-weight:600;letter-spacing:1px}
.page-heading h1{color:#1b3856;font-size:28px;font-weight:700}
.page-heading p:last-child{color:#5d748c;font-size:13px}
.today-workbench .welcome-panel h2{font-size:24px;color:#1e4560;font-weight:700}
.today-workbench .welcome-panel .tag{background:#dff1eb;color:#236e5d;border-radius:6px;padding:5px 9px}
.today-workbench .welcome-panel .badge.good{border:1px solid #bfe2d2}
.today-summary .metric:nth-child(2):before{background:#50b59e}
.today-summary .metric:nth-child(3):before{background:#9b83ce}
.today-summary .metric:nth-child(4):before{background:#d5ac62}
.today-summary .metric{padding:23px 22px 20px}
.today-workbench .today-summary strong{font-size:32px;color:#254b72;line-height:1.45}
.today-summary .metric small{font-size:11px;color:#61778e}
.today-status-grid section{background:#fff}
.today-status-grid h3{color:#365978;font-size:13px}
.today-todo-head h3{color:#294c6d;font-size:15px}
.quick-card{border-radius:14px;padding:21px}
.quick-card:hover{background:#f8fbff;border-color:#b8cfe8;box-shadow:0 7px 20px #294c720b}
.quick-card>span{color:#397fc1}
.button.danger,.text-button.danger{color:#ad3f50;border-color:#ebc7ce;background:#fff6f7}
.button.primary:disabled{background:#2870d7;border-color:#2870d7;color:#fff}
#view>:first-child,dialog[open],.notice:not([hidden]),.nav-section-items{animation:none}

/* P.panel places body content directly after its heading. Keep prose and this
   import form inset without narrowing full-width tables or modal contents. */
#view .panel>p{margin:12px 22px;line-height:1.85;color:#526b83;overflow-wrap:anywhere}
#view .panel>.panel-head+p{margin-top:18px}
#view .panel>p:last-child{margin-bottom:21px}
#match-upgrade-form{padding:20px 22px 22px;min-width:0}
#match-upgrade-form>label{margin:0 0 18px;gap:8px;min-width:0;line-height:1.6}
#match-upgrade-form>label>input,#match-upgrade-form>label>select,#match-upgrade-form>label>textarea{max-width:100%;min-width:0}
#match-upgrade-form>p{margin:16px 0;line-height:1.85;color:#526b83;overflow-wrap:anywhere}
#match-upgrade-form>.button{margin:4px 10px 4px 0;max-width:100%;white-space:normal}
#match-upgrade-form>.button:last-child{margin-right:0}
@media(max-width:850px){
 #workspace main{padding-top:25px}
 #sidebar .navigation-close{display:flex}
}
@media(max-width:580px){
 #workspace main{padding:22px 16px 20px}
 .page-heading h1{font-size:24px}
 .today-workbench .welcome-panel{padding:22px 20px;gap:18px}
 .today-workbench .welcome-panel h2{font-size:21px;line-height:1.5}
 .today-summary .metric{padding:19px 16px}
 .today-workbench .today-summary strong{font-size:27px}
 #sidebar .nav-section>summary{font-size:13px}
 #view .panel>p{margin-left:18px;margin-right:18px}
 #match-upgrade-form{padding:18px}
}

/* Control rhythm: regular fields/actions 40px; dense rows/actions 32–36px;
   login action 44px. Textareas, switches and navigation keep their own roles. */
button,input,select,textarea{box-sizing:border-box;vertical-align:middle}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select{
 height:40px;min-height:40px;max-width:100%;padding:8px 12px;font-size:13px;line-height:20px;
}
select{padding-right:28px}
textarea{height:auto;min-height:104px;max-width:100%;padding:10px 12px;font-size:13px;line-height:1.7}
input[type="checkbox"],input[type="radio"]{flex:none;width:17px;height:17px;min-height:17px;margin:0;vertical-align:middle}
input[type="color"]{padding:4px 6px}
input[type="file"]{padding:4px 8px;font-size:12px;line-height:28px}
input[type="file"]::file-selector-button{height:28px;margin:0 10px 0 0;padding:0 10px;border:1px solid #cfdce9;border-radius:5px;background:#f3f7fc;color:#3b526a;font:inherit;line-height:26px;vertical-align:middle}
.button,.tab-strip button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 14px;font-size:12px;line-height:20px;vertical-align:middle}
.care-hero>.button{height:40px;min-height:40px;padding:8px 16px;font-size:12px;line-height:20px}
.button.small{min-height:32px;padding:5px 11px;font-size:11px;line-height:20px}
.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 2px;font-size:12px;line-height:20px;vertical-align:middle}
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:32px;padding:0;line-height:1}
.auth-card .auth-submit{display:flex;min-height:44px;padding:11px 14px;line-height:20px}
.auth-captcha-actions>.button,.auth-captcha-actions>.text-button{min-height:40px}
.badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;vertical-align:middle}

/* Headings, filter fields and action groups share a common left/right rhythm. */
.panel-head{min-width:0;min-height:72px;padding:15px 22px;align-items:center;flex-wrap:wrap;gap:12px 16px}
.panel-head h2{flex:1 1 160px;min-width:0;margin:0;overflow-wrap:anywhere}
.panel-head>.muted{min-width:0;max-width:100%;line-height:1.7;overflow-wrap:anywhere}
.panel-head>.button,.panel-head>.text-button{flex:none;align-self:center;margin:0;min-height:40px}
.panel-head>.inline-actions,.panel-head>.toolbar-actions{margin-left:auto}
.page-toolbar{align-items:center;gap:16px;min-width:0}
.page-toolbar>.filters{flex:1 1 300px;min-width:0;margin:0;padding:0}
.filters{align-items:flex-end;gap:16px;padding:20px 22px}
.filters>label{flex:1 1 150px;min-width:140px;max-width:100%;margin:0;gap:8px;line-height:20px}
.filters>.button,.filters>.text-button{flex:none;align-self:flex-end;min-height:40px;margin:0}
.search-box{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.page-toolbar .search-box{flex:1 1 280px;min-width:0;gap:10px;align-items:center}
.search-box:has(>label),.page-toolbar .search-box:has(>label){align-items:flex-end}
.page-toolbar .search-box>input{flex:1 1 180px;width:auto;min-width:0;max-width:360px}
.search-box>label{flex:1 1 220px;min-width:0;margin:0;gap:8px;line-height:20px}
.search-box>.button{flex:none;min-height:40px}
.search-box:has(>label>small)>label{flex-basis:100%;width:100%}
.search-box:has(>label>small)>.button{align-self:flex-start}
#events-date-form{flex:0 1 300px;width:300px;max-width:100%;justify-content:flex-start}
#events-date-form>label{flex:0 1 220px;min-width:160px;max-width:240px}
.toolbar-actions,.inline-actions,.dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;min-width:0;white-space:normal}
.toolbar-actions>.button,.inline-actions>.button,.dialog-actions>.button{margin:0}
.toolbar-actions>.button,.inline-actions>.button,.dialog-actions>.button{font-size:12px}
.toolbar-actions>.button.small,.inline-actions>.button.small,.dialog-actions>.button.small{font-size:11px}
.toolbar-actions>.text-button,.page-toolbar>.text-button{min-height:40px}
.panel-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding:18px 22px}
.pagination{align-items:center;flex-wrap:wrap;gap:12px;min-height:64px}
.form-grid{align-items:start;gap:20px 24px}
.form-grid>label{min-width:0;max-width:100%;margin:0;gap:8px;line-height:20px}
.form-grid>label>small{font-weight:400;line-height:1.7}
.settings-form{padding:22px}
.switch-field{min-height:40px;gap:10px;padding:9px 12px;align-self:end;line-height:20px}
.row-editor{align-items:flex-start;gap:12px}
.row-editor label{min-width:130px;gap:7px;line-height:18px}
.row-editor input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),.row-editor select{height:36px;min-height:36px;padding:6px 9px;font-size:12px;line-height:20px}
.row-editor input[type="file"]{padding:3px 6px}
.row-editor .switch-field{min-height:36px;margin-top:25px;padding:7px 10px;align-self:flex-start}
.row-editor .remove-row{width:36px;height:36px;min-height:36px;margin-top:25px;padding:0;align-self:flex-start;line-height:1}

/* Keep action columns compact and centered, without turning table cells into
   flex containers or breaking their existing horizontal scrolling. */
.table-wrap td{vertical-align:middle}
.table-wrap td .inline-actions{align-items:center;justify-content:center;flex-wrap:nowrap;gap:8px;white-space:nowrap}
.table-wrap td .button,.table-wrap td .text-button{min-height:32px;padding:5px 10px;font-size:11px;line-height:20px;white-space:nowrap}
.table-wrap td>.text-button+.text-button,.table-wrap td>.button+.button{margin-left:8px}
.table-wrap td:last-child:has(>.button,>.text-button,>.inline-actions):not(:has(>small,>p,>b,>strong)){text-align:center;white-space:nowrap}
.table-wrap table:has(td:last-child>.inline-actions) th:last-child{ text-align:center }
.table-wrap table:has(td:last-child>.text-button):not(:has(td:last-child>small)) th:last-child{ text-align:center }
.table-wrap td input.input-inline,.table-wrap td input.interval{height:32px;min-height:32px;padding:5px 8px;line-height:20px;vertical-align:middle}
/* Navigation visibility is component state, not a generic button display. */
#navigation-toggle,#sidebar .navigation-close{display:none}
@media(max-width:850px){
 #navigation-toggle,#sidebar .navigation-close{display:inline-flex}
}
@media(max-width:580px){
 .panel-head,.panel-footer{padding:16px 18px}
 .filters{padding:18px;gap:14px}
 .filters>label{min-width:140px;flex-basis:140px}
 .page-toolbar .search-box{flex-basis:100%}
 .page-toolbar .search-box>input{max-width:none;flex-basis:160px}
 .page-toolbar>.filters{padding:0}
 .toolbar-actions,.inline-actions,.dialog-actions{gap:10px}
 .form-grid{gap:18px}
 .settings-form{padding:18px}
 .row-editor label{min-width:0;flex-basis:100%}
 .row-editor .switch-field{flex-basis:auto}
 .row-editor .switch-field,.row-editor .remove-row{margin-top:0}
}
