/* Presentation only: no changes to data, pricing or role-controlled visibility. */
#portal-view .content-section { min-width: 0; }
#portal-view .section-heading { align-items: center; gap: 20px; margin-bottom: 20px; }
#portal-view .section-heading h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin-bottom: 8px; overflow-wrap: anywhere; }
#portal-view .section-intro { max-width: 65ch; line-height: 1.5; }
#portal-view .panel { border-radius: 14px; box-shadow: 0 4px 20px #20202005; }
#portal-view .filter-bar, #portal-view .search-bar { gap: 12px; padding: 16px; align-items: end; }
#portal-view .detail-actions { flex-wrap: wrap; gap: 8px; }
#portal-view .detail-actions > .button { min-height: 44px; }
#portal-view .inquiry-layout, #portal-view .customer-layout { gap: 18px; align-items: start; }
#portal-view .list-panel, #portal-view .detail-panel { min-width: 0; }
#portal-view .inquiry-item { padding: 16px; border-radius: 10px; margin-bottom: 8px; }
#portal-view .detail-panel { padding: clamp(16px, 2vw, 28px); overflow-wrap: anywhere; }
#portal-view .detail-panel h3 { line-height: 1.3; }
#portal-view .detail-grid { gap: 12px; }
#portal-view .staff-admin-grid { align-items: start; gap: 18px; }
#portal-view .staff-member-card { padding: 18px; border: 1px solid #e2dfd9; border-radius: 12px; background: #fff; margin-bottom: 12px; }
#portal-view .staff-member-heading { gap: 12px; flex-wrap: wrap; }
#portal-view .staff-member-heading small, #portal-view .account strong { overflow-wrap: anywhere; }
#portal-view .staff-member-danger { border-top: 1px solid #eee5df; margin-top: 14px; padding-top: 14px; }
#portal-view .records-list { gap: 12px; }
#portal-view .records-list > * { min-width: 0; overflow-wrap: anywhere; }
.workspace-menu-toggle, .workspace-back { display: none; }
.workspace-fold { background: white; border: 1px solid #e2dfd9; border-radius: 14px; margin-bottom: 16px; }
.workspace-fold > summary { cursor: pointer; padding: 16px 18px; font-weight: 750; }
.workspace-fold > form { border: 0 !important; box-shadow: none !important; margin: 0; }
@media (max-width: 1100px) {
  #portal-view .portal-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  #portal-view .inquiry-layout, #portal-view .customer-layout, #portal-view .staff-admin-grid { grid-template-columns: minmax(0, 1fr); }
  #portal-view .filter-bar, #portal-view .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #portal-view .detail-panel { position: static; }
}
@media (max-width: 720px) {
  #portal-view .portal-grid { display: block; }
  #portal-view .topbar { gap: 12px; padding: 14px; flex-wrap: wrap; }
  #portal-view .brand-inline { flex-wrap: wrap; gap: 10px; min-width: 0; }
  #portal-view .brand-lockup-small .fahrmal-wordmark { display: inline-flex; font-size: 22px; }
  #portal-view .brand-inline > div:last-child { display: block; }
  #portal-view .account { width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
  #portal-view .account > div { display: block; min-width: 0; }
  #portal-view .account strong { font-size: 12px; }
  #portal-view .workspace-state { display: none; }
  #portal-view .sidebar { position: static; margin-bottom: 18px; padding: 10px; }
  .workspace-menu-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 48px; padding: 12px; border: 1px solid #d5d1ca; border-radius: 9px; background: white; color: #202020; font-weight: 750; }
  #portal-view .sidebar:not(.workspace-menu-open) > :not(.workspace-menu-toggle) { display: none; }
  #portal-view .sidebar .nav-item { min-height: 48px; }
  #portal-view .section-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  #portal-view .section-heading h2 { font-size: 28px; }
  #portal-view .filter-bar, #portal-view .search-bar { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  #portal-view input, #portal-view select, #portal-view textarea { font-size: 16px; max-width: 100%; min-width: 0; }
  #portal-view .detail-grid, #portal-view .staff-member-controls, #portal-view .process-steps { grid-template-columns: minmax(0, 1fr); }
  #portal-view .detail-actions > .button { flex: 0 1 auto; white-space: normal; }
  #portal-view .inquiry-item-top { flex-wrap: wrap; gap: 8px; }
  #portal-view .record-card, #portal-view .audit-entry, #portal-view .email-log-item { overflow-wrap: anywhere; }
  #portal-view table { display: block; max-width: 100%; overflow-x: auto; }
  .workspace-back:not([hidden]) { display: block; min-height: 44px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 9px; background: white; color: #202020; }
  #portal-view .list-panel { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  #portal-view * { scroll-behavior: auto !important; }
}
