/* Keep the existing screens and controls; make spacing and form flow consistent. */
:root{--border-radius:8px;--q-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html{scroll-behavior:auto}
body{font-family:var(--q-font);line-height:1.5}
button,input,select,textarea{font:inherit}
.card{box-shadow:none!important;border:1px solid var(--border-color,#e2e8f0);border-radius:8px!important}
.card-header{padding:16px 20px!important}
.card-body{padding:20px}
.page-content,.main-content,#page-content{min-width:0}
.btn{min-height:36px;border-radius:6px!important;font-weight:600;box-shadow:none!important}
.btn-icon,.btn-xs{min-height:30px}
.form-control{min-height:38px;border-radius:6px!important}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.data-table th{font-size:12px;font-weight:650;text-transform:none;letter-spacing:0}
.data-table td{vertical-align:middle}
.table-responsive{overscroll-behavior-x:contain}
.text-muted{color:var(--text-secondary,#64748b)}
button:disabled{cursor:wait;opacity:.65}
.live-preferences{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.live-note{color:var(--text-secondary,#64748b);font-size:13px;line-height:1.6}
.live-settings-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start}
.live-section-title{font-size:17px;margin:0 0 8px;font-weight:650}
.live-form{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.live-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;min-width:0}
.live-field input[type=checkbox]{width:20px;height:20px;align-self:flex-start}
.live-error{color:#b91c1c;font-size:13px;white-space:pre-wrap}
.live-form details{border-top:1px solid var(--border-color,#e2e8f0);padding-top:12px}
.live-form summary{cursor:pointer;font-weight:600;margin-bottom:12px}
.live-form .btn{align-self:flex-start}
.live-preferences+.table-responsive{margin-top:20px}
[data-density=compact] .card-body{padding:14px}
[data-density=compact] .data-table td{padding-top:6px;padding-bottom:6px}
#page-content h1{font-size:clamp(22px,3vw,28px);letter-spacing:-.025em}
@media(max-width:768px){
 .live-settings-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .card-header,.card-body{padding:16px!important}
 .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .form-grid>.card{grid-column:1/-1!important}
 .btn,.form-control{min-height:42px}
 .filter-bar{width:100%;gap:8px!important}
 .filter-bar .form-control{max-width:100%}
 .modal-content{max-width:calc(100vw - 24px)!important}
 .data-table td,.data-table th{padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
