/* Presentation only. No visibility, state, navigation or print rules are changed. */
@media screen {
  :root { --ui-radius:16px; --ui-shadow:0 6px 24px rgba(0,0,0,.10); }
  body.light-theme { --ui-shadow:0 5px 22px rgba(25,39,61,.055); }
  #main-portal-header .nav-tabs { gap:4px; padding:5px; border-radius:13px; }
  #main-portal-header .nav-tab { padding:10px 14px; border-radius:9px; letter-spacing:0; }
  .trainer-page-heading { margin-bottom:24px; }
  .trainer-page-heading h1 { font-size:clamp(1.4rem,2.2vw,1.85rem); font-weight:750; letter-spacing:-.035em; }
  .trainer-page-heading p { line-height:1.6; }
  :is(#generator-view,#database-view,#archive-view,#calendar-view) .panel {
    border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); padding:24px;
  }
  :is(#generator-view,#database-view,#archive-view,#calendar-view) .panel-title { font-size:.98rem; letter-spacing:.015em; line-height:1.5; }
  #generator-view .form-grid { column-gap:18px; row-gap:20px; }
  #generator-view .form-group > label { font-size:.76rem; letter-spacing:.025em; line-height:1.5; margin-bottom:7px; }
  :is(#generator-view,#database-view,#archive-view,#calendar-view) :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=range]),select,textarea) {
    background:var(--bg-primary); color:var(--text-primary); border:1px solid var(--border-strong); border-radius:10px; padding:11px 12px; line-height:1.45;
  }
  :is(#generator-view,#database-view,#archive-view,#calendar-view) select { min-height:44px; }
  #generator-view :is(.days-selector,.duration-selector) { display:grid; gap:7px; }
  #generator-view .days-selector { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #generator-view .duration-selector { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #generator-view :is(.day-pill,.duration-pill) { min-width:0; min-height:44px; padding:10px 8px; border-radius:10px; line-height:1.4; display:flex; align-items:center; justify-content:center; text-align:center; }
  #generator-view :is(.custom-split-toggle-btn,.injury-toggle-btn,.focus-muscle-toggle-btn) { padding:15px; border-radius:12px; gap:12px; }
  #generator-view :is(.cst-subtitle,.inj-subtitle,.fmt-subtitle) { line-height:1.5; margin-top:4px; }
  #generator-view .preset-tag-btn { border-radius:8px; padding:9px 11px; line-height:1.4; }
  #database-view .exercise-card { border:1px solid var(--border-subtle); border-radius:14px; box-shadow:var(--ui-shadow); gap:12px; }
  #database-view .exercise-card-title { line-height:1.45; overflow-wrap:anywhere; }
  #database-view .exercise-card-header { gap:10px; align-items:flex-start; }
  #archive-view .clients-sidebar { padding:12px; border-radius:16px; }
  #archive-view .archive-nav-tab { padding:15px 13px; margin-bottom:8px; }
  .staff-accounts .staff-client-card { border-radius:16px !important; box-shadow:var(--ui-shadow); }
  .staff-accounts .staff-client-card h3 { line-height:1.45; }
  .staff-accounts .staff-client-card p { color:var(--text-secondary); }
  .staff-accounts :is(input,select) { border-color:var(--border-strong) !important; border-radius:10px; }
  .staff-accounts .staff-client-card__top { flex-wrap:wrap; }
  .staff-accounts .staff-client-identity { flex:1 1 180px; }
  body.light-theme .staff-assignment--active { color:#166534; background:#f0fdf4; border-color:#86cba0; }
  body.light-theme .staff-verified-match b { color:#1d4ed8; }
  body.light-theme .staff-verified-match button { color:#1d4ed8 !important; }
  :is(#generator-view,#editor-view,#database-view,#archive-view,#calendar-view,.athlete-viewport,.staff-accounts) :is(button,a,input,select,textarea):focus-visible {
    outline:3px solid var(--fz-orange); outline-offset:3px;
  }
  .athlete-profile-card { border:1px solid var(--border-subtle); border-radius:18px; box-shadow:var(--ui-shadow); }
  .athlete-name { letter-spacing:-.025em; line-height:1.25; overflow-wrap:anywhere; }
  .athlete-profile-top { gap:16px; flex-wrap:wrap; }
  .athlete-meta-tags { gap:7px; flex-wrap:wrap; }
  .athlete-meta-pill { line-height:1.5; padding:6px 10px; }
  .athlete-coach-cues { line-height:1.65; }
  .athlete-exercise-list { gap:16px; }
  .athlete-ex-card { border-radius:16px; box-shadow:var(--ui-shadow); }
  .athlete-ex-title-row { min-width:0; }
  .athlete-ex-name { line-height:1.4; overflow-wrap:anywhere; }
  .athlete-ex-notes { line-height:1.6; color:var(--text-secondary); }
  .athlete-detail-label { color:var(--text-secondary); }
  .athlete-session-sub-stats { gap:10px; flex-wrap:wrap; color:var(--text-secondary); line-height:1.5; }
  .athlete-week-chip { border-radius:12px; min-height:48px; }
  .athlete-bottom-nav { background:rgba(18,18,22,.94); border-color:rgba(255,255,255,.19); box-shadow:0 8px 28px rgba(0,0,0,.22); }
  body.light-theme .athlete-bottom-nav { background:rgba(255,255,255,.96); border-color:#d7dce3; box-shadow:0 8px 28px rgba(25,39,61,.14); }
  .athlete-viewport .athlete-weight-modal-card { border-radius:18px; border:1px solid var(--border-subtle); }
  .athlete-viewport .athlete-weight-modal-subtitle { line-height:1.6; }
  @media(min-width:701px) and (max-width:1150px) {
    .staff-assignment-controls__fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .staff-assignment-controls__fields button { grid-column:1/-1; }
  }
  @media(max-width:700px) {
    :is(#generator-view,#database-view,#archive-view,#calendar-view) .panel { padding:18px; border-radius:14px; }
    .trainer-page-heading { gap:10px; margin-bottom:18px; }
    #generator-view .form-grid { gap:16px 12px; }
    #generator-view :is(.day-pill,.duration-pill) { padding:10px 6px; font-size:.78rem; }
    :is(#generator-view,#database-view,#archive-view,#calendar-view,.staff-accounts) :is(input:not([type=hidden]),select,textarea) { font-size:16px; }
    .staff-accounts .staff-create-btn { flex:1 1 150px !important; }
    .athlete-profile-card { border-radius:14px; }
    .athlete-ex-card { padding:16px; }
    .athlete-viewport .athlete-header-content { gap:8px; }
    .athlete-meta-pill { font-size:calc(.75rem * var(--athlete-font-scale,1)); }
  }
  @media(prefers-reduced-motion:reduce) {
    :is(#main-portal-header,.athlete-viewport) *,#generator-view .preset-tag-btn { scroll-behavior:auto; transition-duration:.01ms; animation-duration:.01ms; animation-iteration-count:1; }
  }
}
