/* Application-wide readable type scale. Keep this stylesheet last. */
html{font-size:17px}
body{font-size:17px;line-height:1.55}

/* Navigation and application chrome */
.sidebar nav a{font-size:16px;line-height:1.35;min-height:46px}
.nav-label{font-size:13px;letter-spacing:.11em}
.topbar h1{font-size:24px;line-height:1.2}
.topbar p,.side-foot{font-size:15px;line-height:1.4}
.user-chip b,.user-chip small{font-size:14px}
.connection,.sidebar nav a b{font-size:14px}
.side-foot small{font-size:13px}

/* Page headings, panels, and descriptive copy */
.page-head h2,.module-card h2,.module-card h3,.data-panel-head h2{font-size:21px;line-height:1.25}
.page-head p,.data-panel-head p,.module-card p{font-size:15px;line-height:1.6}
.eyebrow,.kicker{font-size:13px;line-height:1.35;letter-spacing:.1em}
.page-note{font-size:14px;line-height:1.5}
.pulse-copy p{font-size:16px;line-height:1.65}
.section-title h3,.panel-head h3{font-size:19px;line-height:1.3}
.empty-module{font-size:15px;line-height:1.5}

/* Controls */
.button,.button.wide{font-size:15px;line-height:1.25;min-height:44px;padding:10px 16px}
.mini-button{font-size:14px;line-height:1.25;min-height:38px;padding:8px 12px}
.search-input,.select-input,.form-input,.form-textarea{font-size:17px;line-height:1.4;min-height:48px}
.form-field{font-size:16px;line-height:1.4;gap:8px}
.field-counter,.validation-feedback,.field-help,.requirement{font-size:14px;line-height:1.5;color:#687787}
.intent-checks label{font-size:15px}
.user-edit-grid .form-input,.user-edit-grid .select-input,.user-password-row .form-input{font-size:16px;min-height:44px;height:44px}
.user-table select[name="role"]{min-width:150px}
.module-toolbar form:has(select[name="status"]):has(select[name="priority"]){max-width:850px}
.module-toolbar select[name="status"],.module-toolbar select[name="priority"]{flex:0 0 185px}

/* DataTables and record lists */
.data-table th{font-size:13px;line-height:1.35}
.data-table td{font-size:15px;line-height:1.5}
.data-table strong{font-size:16px}
.data-table small{font-size:14px;line-height:1.45}
.dt-footer,.dt-search,.dt-length{font-size:14px}
.dt-search input,.dt-length select,.dt-pagination button{font-size:15px;min-height:38px}
.pager{font-size:14px}

/* Badges, statuses, workflow, and dashboard details */
.status-pill,.badge,.live-pill{font-size:13px;line-height:1.25}
.action-group{align-items:center}
.journey-step span{font-size:15px}.journey-step small{font-size:13px}
.focus-row strong,.focus-row small,.campaign-main strong,.campaign-main small,.agent-row strong,.agent-row small,.timeline-copy strong,.timeline-copy p,.timeline-copy small,.timeline-row time{font-size:14px;line-height:1.45}
.score,.text-link,.focus-count{font-size:14px}
.metric-copy>span,.metric-copy small,.metric-copy>strong em,.campaign-stats,.agent-count,.agent-count small,.legend,.budget-ok,.agent-tag{font-size:13px;line-height:1.4}
.metric-copy>strong{font-size:28px;line-height:1.1}
.metric-budget{min-height:132px;padding-bottom:42px}
.metric-budget .budget-ok{left:73px;right:14px;bottom:12px;max-width:calc(100% - 87px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.campaign-logo,.agent-avatar,.avatar-stack i{font-size:13px}
.workspace-avatar,.agent-tag,.journey-step>b{font-size:13px}
.stat-box span,.stat-box small,.bar-row>div,.flash,.channel-icon,.score-ring b{font-size:14px;line-height:1.4}
.detail-grid small,.detail-grid strong,.flow-step>small,.automation-picker button{font-size:14px;line-height:1.45}
.empty-mini,.empty-state strong,.empty-state p,.toast strong,.toast small{font-size:14px;line-height:1.5}
.module-content [style*="font-size:8px"],.module-content [style*="font-size:9px"],.module-content [style*="font-size:10px"],.module-content [style*="font-size:11px"],.module-content [style*="font-size:12px"],.module-content [style*="font-size:13px"]{font-size:14px!important}

/* Authentication */
.login-card label,.muted,.auth-signal strong,.auth-signal small,.security-note,.alert.error{font-size:15px;line-height:1.5}
.login-card input{font-size:17px}

/* Accessible multi-selects */
.select-input[multiple]{height:auto;min-height:140px;padding:8px}
.select-input[multiple] option{padding:9px 10px;border-radius:5px}
.select-input[multiple] option:checked{background:#dff5f8;color:#0b6273;font-weight:700}

/* Sidebar scrolling blends into the Ironhand navigation surface. */
.sidebar nav{flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#2b526b transparent;scrollbar-gutter:stable}
.sidebar nav::-webkit-scrollbar{width:8px}
.sidebar nav::-webkit-scrollbar-track{background:transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:#24445b;border:2px solid #07111f;border-radius:999px}
.sidebar nav::-webkit-scrollbar-thumb:hover{background:#2f6a82}

@media(max-width:600px){
  html,body{font-size:16px}
  .content{padding:20px 16px 36px}
  .topbar h1{font-size:21px}
  .search-input,.select-input,.form-input,.form-textarea{font-size:16px}
  .data-table td{font-size:14px}
}
