/* Compact personal forms share the plan toolbar's gray-green palette. */
.personal-preferences{--preference-text:#536b62;--preference-heading:#365e4c;--preference-muted:#65786d;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start;gap:12px;min-width:0;max-width:1120px;color:var(--preference-text);font-size:13px;line-height:1.5}
.user-page .personal-preferences .preference-card{margin:0;padding:14px 16px;min-width:0}
.preference-header{display:block;margin-bottom:12px}.preference-header p{margin-top:4px}
.user-page .preference-header h2{margin:0;color:var(--preference-heading);font-size:14px;font-weight:600;line-height:1.6}
.preference-header p,.preference-loading{margin:0;color:var(--preference-muted);font-size:12px;line-height:1.6}
.personal-preferences .password-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.user-page .personal-preferences label{margin:0;gap:6px;color:var(--preference-text);font-size:12px;line-height:1.5}
.user-page .personal-preferences input,.user-page .personal-preferences select{height:34px;min-height:34px;width:100%;min-width:0;max-width:100%;padding:6px 8px;border:1px solid #d7e2dc;border-radius:5px;background:#fff;color:var(--preference-heading);font-family:inherit;font-size:13px;line-height:20px}
.preference-footer,.preference-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.preference-footer{margin-top:12px}
.user-page .personal-preferences .preference-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 10px;border:1px solid #dce5df;border-radius:5px;background:#f8faf9;color:var(--preference-heading);font:inherit;font-size:12px;line-height:20px;white-space:normal}
.user-page .personal-preferences .preference-button.is-primary{border-color:var(--preference-heading);background:var(--preference-heading);color:#fff}
.user-page .personal-preferences .preference-button:hover:enabled{border-color:#b9d0c3;background:#eaf2ee;color:var(--green)}
.user-page .personal-preferences .preference-button:disabled{opacity:.5}
.personal-preferences [role=status]{min-height:0;margin:0;font-size:12px;color:var(--preference-heading);overflow-wrap:anywhere}
.personal-preferences [role=status]:empty{display:none}.personal-preferences [role=status].error{color:#a35446}
.homepage-preference{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.user-page .homepage-preference select{width:100%;max-width:100%}
.homepage-preference [role=status]{flex-basis:100%}
.user-page .personal-preferences .personal-control-sections{display:block;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.personal-control-sections .control-section{margin:0;padding:0;border:0}
.personal-control-sections .control-section+.control-section{margin-top:14px;padding-top:12px;border-top:1px solid #edf2ee}
.personal-control-sections .control-section>summary{min-height:28px;padding:0 0 8px;color:var(--preference-heading);font-size:13px;font-weight:500}
.personal-control-sections .sample-heading{display:flex;align-items:center;gap:10px;list-style:none}
.personal-control-sections .sample-heading-title{margin-right:auto}
.personal-control-sections .sample-heading-actions{display:flex;gap:5px;align-items:center}
.personal-control-sections .sample-controls{max-width:none;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:0}
.personal-control-sections .compact-ranges{display:contents}
.user-page .personal-control-sections .filter-year,.user-page .personal-control-sections .chart-search{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:8px}
.user-page .personal-control-sections .compact-ranges fieldset{grid-template-columns:78px minmax(0,1fr) auto minmax(0,1fr);gap:8px}
.personal-control-sections .range-label{color:var(--preference-text)}
.personal-control-sections .compact-statistics{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-top:0}
.user-page .personal-control-sections .compact-statistics>label,.user-page .personal-control-sections .statistic-with-help>label{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:8px}
.personal-control-sections .chart-order-controls select{flex:1;width:0}
.personal-control-sections .statistic-with-help{grid-template-columns:minmax(0,1fr) 22px 22px;width:100%;min-width:0;gap:5px}
.personal-control-sections .statistic-with-help>label select{min-width:0}
.personal-control-sections .chart-type-control{grid-template-columns:78px minmax(0,1fr);gap:8px;width:100%;margin-top:8px}
.personal-control-sections .method-help{position:static}
.personal-control-sections .method-tooltip{position:static;max-width:100%;width:auto;max-height:none;margin-top:8px;padding:10px;border-color:#dce5df;box-shadow:none;font-size:12px;color:var(--preference-text)}
.personal-control-sections .method-help:has(.method-tooltip:not([hidden])){grid-column:1/-1}
.personal-control-sections #additional-statistics{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.personal-control-sections .additional-statistic .chart-type-control{width:100%;margin-top:8px}
.personal-control-sections .additional-statistic{min-width:0}.personal-control-sections .additional-metric-field{min-width:0}
.user-page .personal-control-sections .additional-metric-field label{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:8px;flex:1;min-width:0}
.personal-control-sections #chart-type-note,.personal-control-sections .additional-chart-note{color:var(--preference-muted);font-size:11px}
.personal-control-sections .multi-filters label{display:flex;flex-direction:row;align-items:center}
.user-page .personal-control-sections .choices input{width:auto;height:auto;min-height:0;accent-color:var(--green)}
.personal-control-sections #validation{margin:8px 0 0;font-size:12px;color:#a35446}
.personal-control-sections #validation:empty{display:none}
.personal-control-sections .sample-heading-actions button{font-family:inherit}
@media(max-width:760px){
 .user-page .personal-preferences .preference-card{padding:12px}.preference-header{display:block;margin-bottom:10px}.preference-header p{margin-top:3px}
 .personal-preferences .password-fields{grid-template-columns:1fr;gap:10px}
 .personal-control-sections .sample-controls,.personal-control-sections .compact-statistics,.personal-control-sections #additional-statistics{grid-template-columns:1fr}
 .user-page .personal-preferences input,.user-page .personal-preferences select{height:44px;min-height:44px;font-size:16px}
 .user-page .personal-preferences .preference-button,.personal-control-sections .sample-heading-actions button{min-height:44px}
 .personal-control-sections .chart-type-switch,.personal-control-sections .chart-order-controls button{height:44px}
 .personal-control-sections .statistic-with-help{grid-template-columns:minmax(0,1fr) 36px 36px}
 .user-page .homepage-preference select{width:100%;flex:1;min-width:140px}.homepage-preference .preference-buttons{width:100%}
 .personal-control-sections .method-help>button,.personal-control-sections #add-statistic{min-height:44px}
}
@media(pointer:coarse){.user-page .personal-preferences input,.user-page .personal-preferences select,.user-page .personal-preferences .preference-button{min-height:44px}}

@media(max-width:560px){.personal-preferences{grid-template-columns:minmax(0,1fr)}}
