/* Mobile-only scale and intrinsic-width fixes. Desktop typography and all data remain unchanged. */
@media(max-width:800px){
  .app-shell{display:block}
  .sidebar{position:static;height:auto;padding:12px}
  .sidebar .brand{display:flex;align-items:center;gap:14px;padding:0 8px 12px;margin-bottom:8px}
  .sidebar .brand-logo{width:80px;margin:0}
  .sidebar .brand-copy{font-size:16px}
  .sidebar .brand-copy small{font-size:8px;letter-spacing:.08em}
  .sidebar .nav-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;padding:3px 0}
  .sidebar .nav-link{width:100%;min-width:0;justify-content:center;gap:6px;white-space:nowrap;min-height:44px;padding:9px 6px;font-size:13px}
  .nav-section-label,.sidebar .sidebar-bottom,.nav-arrow{display:none}
  .sidebar .nav-index{width:12px;flex-basis:12px;font-size:9px}
  .main-area{padding:12px 12px 0;min-width:0}
  .page,dialog,.toast{font-size:15px;line-height:1.6}
  .page,.card,.two-column,.list-text,.profile-head,.profile-head>div,.definition-grid>div,.form-grid>label,.analysis-content>*{min-width:0;max-width:100%}
  .page>.section-heading{display:block;margin-bottom:14px}
  .page>.section-heading h2,[data-panel="recruitment"]>.section-heading h2,[data-panel="application"]>.section-heading h2{font-size:20px;line-height:1.4}
  .section-heading p,.page .empty,.page .pending-warning,.page .action-result,.page .analysis-note,.page .note-box{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
  .page .card{padding:16px}
  .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:14px}
  .toolbar .search-box{grid-column:1/-1;width:100%;min-width:0;max-width:none;padding:0 10px}
  .toolbar>select{width:100%;max-width:none;min-width:0}
  .toolbar .count-label{grid-column:1/-1;font-size:12px;justify-self:start}
  .toolbar input,.toolbar select{font-size:16px;min-height:44px}
  .page .list-card{padding:6px;font-size:15px}
  .page .list-card .list-item,[data-panel="talents"] .list-card .list-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:10px;align-items:start}
  .page .list-card .avatar,[data-panel="talents"] .list-card .avatar{width:48px;height:56px;flex-basis:48px;font-size:18px}
  .page .list-text strong,[data-panel="talents"] .list-text strong{font-size:16px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
  .page .list-text small,[data-panel="talents"] .list-text small{font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;margin-top:4px;overflow:visible;text-overflow:clip}
  .page .tag,.page .list-card .tag,[data-panel="talents"] .list-card .tag,dialog .tag{font-size:12px;line-height:1.4;padding:4px 6px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .page .profile-head h3{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
  .page .profile-head p,.page .profile-head .profile-job,.page .interview-position{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
  .page .definition-grid dt{font-size:12px;line-height:1.5}
  .page .definition-grid dt,.page .list-text small,.page .profile-head p,.toolbar .count-label{color:#58717e}
  .page .definition-grid dd{font-size:15px;line-height:1.65;overflow-wrap:anywhere}
  .page .field-label,.page .form-grid label,dialog .field-label,dialog .form-grid label{font-size:14px;line-height:1.5}
  .page .form-grid input,.page .form-grid select,dialog .form-grid input,dialog .form-grid select,.page .note-editor,dialog textarea,.page .talent-status-editor{font-size:16px;min-width:0;max-width:100%;width:100%}
  .page .form-grid input,.page .form-grid select,dialog .form-grid input,dialog .form-grid select,.page .talent-status-editor{min-height:44px}
  .page .talent-status-editor{display:block;margin-top:6px;padding:8px 10px;border:1px solid #cbd7d8;background:#fff;color:#12364c}
  .page .auto-status-message{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
  .page .detail-links{flex-wrap:wrap;gap:10px 18px}
  .main-area .page a{font-size:15px;overflow-wrap:anywhere}
  .form-actions{gap:8px;flex-wrap:wrap}
  .form-actions button{flex:1 1 120px;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;font-size:15px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
  .mobile-detail-nav .mobile-detail-back{font-size:14px;min-height:44px;padding:8px 10px;white-space:normal}
  .mobile-detail-nav strong{font-size:14px}
  dialog{width:calc(100% - 24px);max-width:570px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:18px}
  dialog .card-head h2{font-size:20px}
  dialog #create-name{font-size:18px;overflow-wrap:anywhere}
  dialog p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
  #create-form>button[type="submit"]{width:100%;min-height:44px;font-size:16px}
  .dashboard-overview>.section-heading{display:block}
  .dashboard-overview .section-heading h2{font-size:20px;white-space:normal}
  .dashboard-overview .section-heading p{font-size:13px;line-height:1.5;margin-top:4px}
  .dashboard-overview>.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-overview .metric{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px}
  .dashboard-overview .metric span{font-size:13px;line-height:1.4}
  .dashboard-overview .metric strong{font-size:26px;line-height:1.1}
  .dashboard-overview .metric small{font-size:12px;line-height:1.4}
  .dashboard-day-head{gap:10px}
  .dashboard-day-head h3{font-size:17px}
  .day-button{font-size:14px;min-height:44px;padding:8px 10px}
  #dashboard-interviews .interview-preview{grid-template-columns:70px minmax(0,1fr);gap:8px 12px;padding:12px 0}
  .interview-preview .interview-when{grid-column:1;grid-row:1}
  .interview-preview .avatar{grid-column:1;grid-row:2;width:64px;height:80px;flex-basis:64px}
  .interview-preview .interview-who{grid-column:2;grid-row:1/span 2}
  .interview-preview .tag{grid-column:2;grid-row:3;justify-self:start}
  .interview-when .time{font-size:20px}
  .interview-when small,.interview-applied{font-size:12px;line-height:1.5}
  .interview-name{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
  .interview-facts,.interview-job{font-size:13px;line-height:1.6}
  .dashboard-hero{padding:18px}
  .hero-lead{font-size:27px;line-height:1.4}
  .hero-caption{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
  .analysis-content{grid-template-columns:minmax(0,1fr);gap:12px}
  .analysis-content .report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analysis-content .metric-card{padding:12px}
  .analysis-content .metric-label{font-size:14px;line-height:1.5}
  .analysis-content .metric-value{font-size:28px;line-height:1.2}
  .analysis-content .metric-card small{font-size:12px;line-height:1.6}
  .analysis-content .report-section{padding:16px}
  .analysis-content .report-section>h3{font-size:18px;line-height:1.5}
  .analysis-content .report-section .analysis-note,.analysis-content .report-health-warning,.analysis-content .report-observations{font-size:14px;line-height:1.75}
  .analysis-content .report-observations>div{grid-template-columns:minmax(0,1fr);gap:4px}
  .analysis-content .report-observations dt,.analysis-content .report-observations dd{font-size:14px;overflow-wrap:anywhere}
  .analysis-content .report-tasks-list dt,.analysis-content .report-rank-label{font-size:14px;overflow-wrap:anywhere}
  .analysis-content .report-tasks-list dd{flex-wrap:wrap;font-size:13px}
  .analysis-content .report-stock .report-ranking,.analysis-content .report-breakdown{grid-template-columns:minmax(0,1fr)}
  .analysis-content .report-table,.analysis-content .report-table.compact{font-size:14px}
  .analysis-content .report-table th,.analysis-content .report-table td{padding:9px 10px}
  .analysis-content .report-table thead th,.analysis-content .report-table.compact thead th{font-size:13px}
  .analysis-content .report-table-wrap{min-width:0;max-width:100%;overflow-x:auto}
  .analysis-content .report-chart-note,.analysis-content .report-health-context,.analysis-content .report-methodology,.analysis-content .report-methodology p{font-size:13px;line-height:1.7}
  .main-area footer{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .toast{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-width:none;max-height:40vh;overflow:auto;font-size:14px;line-height:1.6;padding:12px 14px;overflow-wrap:anywhere}
}
@media(max-width:480px){
  .sidebar .nav-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .page .definition-grid,.page .form-grid,dialog .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
}
