@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(410px, .82fr) minmax(480px, 1.18fr); }
  .auth-brand-panel { padding-inline: 2.5rem; }
  .auth-brand-panel h1 { font-size: clamp(2.2rem, 4.2vw, 3.35rem); }
  .auth-feature-list { grid-template-columns: 1fr; }
  .auth-feature { display: none; }
  .auth-feature:first-child { display: flex; border: 0; padding-left: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .execution-grid, .signature-layout { grid-template-columns: 1fr; }
  .detail-side, .compact-form, .signature-summary { position: static; }
  .detail-side { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sticky-form { position: static; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: 238px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 40px rgb(0 0 0 / 22%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { padding-inline: 1rem; }
  .topbar-context { display: none; }
  .topbar-account > span:last-child { display: none; }
  .topbar-account { border-left: 0; padding-left: 0; }
  .content { padding: 1.2rem 1rem 3rem; }
  .auth-layout { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .auth-card-wrap { order: 1; min-height: 0; padding: 1.2rem; }
  .auth-brand-panel { order: 2; display: flex; min-height: 270px; justify-content: center; padding: 2rem clamp(1.4rem, 7vw, 3rem); }
  .auth-brand-copy { margin: 0; }
  .auth-brand-panel h1 { max-width: 30rem; font-size: clamp(2rem, 8.5vw, 3.3rem); }
  .auth-brand-panel .lede { max-width: 29rem; }
  .auth-feature-list { display: none; }
  .auth-card { width: 100%; max-width: 520px; }
  .auth-page-footer { margin-bottom: .2rem; }
  .wizard-shell { grid-template-columns: 1fr; }
  .wizard-nav { position: static; flex-direction: row; overflow-x: auto; }
  .wizard-step span { display: none; }
  .wizard-step { padding: .35rem; }
  .order-hero, .page-header { align-items: flex-start; flex-direction: column; }
  .order-actions { justify-content: flex-start; }
  .workflow-strip { overflow-x: auto; grid-template-columns: repeat(6, minmax(100px, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-metrics { grid-template-columns: repeat(3, 1fr); gap: 1rem 0; }
  .dashboard-grid, .history-layout { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr; }
  .catalog-groups { grid-template-columns: 1fr; }
  .contract-banner { min-height: 140px; padding: 1.2rem; }
  .contract-client-logo { width: 96px; height: 52px; }
  .floating-action-panel {
    inset: auto 8px 8px !important;
    width: auto;
    max-height: 45vh;
    overflow-y: auto;
    border-radius: 14px;
  }
  .floating-action-header { cursor: default; touch-action: auto; }
  .floating-action-reopen { right: 12px; bottom: 12px; }
}

@media (max-width: 560px) {
  .topbar-actions { gap: .4rem; }
  .topbar-notifications { width: 34px; height: 34px; }
  .topbar-account { display: none; }
  .auth-card-wrap { padding: .75rem; }
  .auth-card { border-radius: 14px; padding: 1.25rem 1.15rem; }
  .auth-card-header { margin-bottom: 1rem; }
  .auth-lockup { gap: .65rem; }
  .auth-logo-frame--inhaus { width: 140px; height: 50px; }
  .auth-logo--inhaus { left: 0; top: -44px; width: 140px; height: 140px; }
  .auth-client-tag { gap: .3rem; padding-left: .65rem; }
  .auth-client-tag small { font-size: .6rem; }
  .auth-logo-frame--hydro { width: 105px; height: 36px; }
  .auth-hydro-symbol, .auth-hydro-word { height: 36px; }
  .auth-hydro-symbol { width: 36px; }
  .auth-hydro-word { width: 69px; }
  .auth-logo--hydro { width: 238px; height: 74.7px; }
  .auth-hydro-symbol .auth-logo--hydro { left: -102px; top: -6px; }
  .auth-hydro-word .auth-logo--hydro { left: -86px; top: -46px; }
  .auth-brand-panel { min-height: 225px; padding-block: 1.55rem; }
  .auth-brand-panel h1 { font-size: clamp(1.85rem, 10.8vw, 2.7rem); margin-block: .55rem .8rem; }
  .auth-brand-panel .lede { font-size: .82rem; }
  .auth-bg-ring--1, .auth-bg-ring--3 { display: none; }
  .contract-banner { align-items: flex-start; min-height: 148px; }
  .contract-client-logo { position: absolute; top: 1rem; right: 1rem; width: 78px; height: 43px; }
  .contract-banner-copy { padding-top: 2.2rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .metric-card { min-height: 145px; padding: .9rem; }
  .metric-card > strong { font-size: 2rem; }
  .metric-card > small { font-size: .66rem; }
  .filter-row { flex-direction: column; }
  .filter-row .form-select { max-width: none; }
  .detail-grid, .check-grid, .review-panel, .verify-card dl { grid-template-columns: 1fr; }
  .detail-grid .span-2 { grid-column: auto; }
  .attachment-grid { grid-template-columns: 1fr; }
  .wizard-footer { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .wizard-footer > div { display: flex; width: 100%; }
  .wizard-footer .btn { flex: 1; }
  .form-row-3 { grid-template-columns: 1fr; }
  .execution-checklist .service-type-grid { grid-template-columns: 1fr; }
  .observation-form { grid-template-columns: 1fr; }
  .observation-row { grid-template-columns: 1fr; }
  .notification-item { grid-template-columns: 10px 1fr; }
  .notification-item form { grid-column: 2; }
  .verify-brand { position: static; margin-bottom: 1rem; }
  .verify-shell { display: flex; flex-direction: column; justify-content: center; }
  .data-table { min-width: 690px; }
  .table-responsive { overscroll-behavior-inline: contain; }
}

@media (max-width: 360px) {
  .auth-card-wrap { padding: .5rem; }
  .auth-card { padding-inline: .95rem; }
  .auth-client-tag small { display: none; }
  .auth-row { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
}

@media (min-width: 821px) and (max-height: 720px) {
  .auth-brand-panel { padding-top: clamp(3rem, 10vh, 4.5rem); padding-bottom: 1.5rem; }
  .auth-brand-panel h1 { margin-block: .55rem .75rem; }
  .auth-feature-list { padding-top: .8rem; }
  .auth-card-wrap { padding-block: .55rem; }
  .auth-card { padding-block: .85rem; }
  .auth-logo-frame--inhaus { width: 180px; height: 63px; }
  .auth-logo--inhaus { top: -56px; width: 180px; height: 180px; }
  .auth-logo-frame--hydro { width: 118px; height: 40px; }
  .auth-hydro-symbol, .auth-hydro-word { height: 40px; }
  .auth-hydro-symbol { width: 40px; }
  .auth-hydro-word { width: 78px; }
  .auth-logo--hydro { width: 264px; height: 83px; }
  .auth-hydro-symbol .auth-logo--hydro { left: -113px; top: -6px; }
  .auth-hydro-word .auth-logo--hydro { left: -95px; top: -50px; }
  .auth-card-header { padding-bottom: .65rem; margin-bottom: .75rem; }
  .auth-card > p.text-muted { margin-bottom: .7rem; }
  .auth-field { margin-bottom: .58rem; }
  .auth-input-wrap .form-control { min-height: 42px; }
  .auth-row { margin-bottom: .72rem; }
  .auth-card [data-auth-submit] { min-height: 42px; padding-block: .4rem; }
  .security-note { margin-top: .55rem; }
  .auth-page-footer { margin-top: .35rem; }
}
