/* [TFH-999:TFH_COMMON:RESPONSIVE-CSS-START] */
@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .tfh-login-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tfh-brand-panel {
    min-height: 500px;
    padding: 34px clamp(28px, 7vw, 60px) 28px;
  }

  .tfh-main-logo {
    max-height: 270px;
  }

  .tfh-login-developer {
    align-self: flex-start;
    width: min(390px, 82%);
  }

  .tfh-main-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-main-header {
    flex-wrap: wrap;
  }

  .tfh-header-context {
    width: 100%;
  }

  .tfh-company-button {
    flex: 1 1 320px;
    min-width: 0;
  }

  .tfh-main-body {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .tfh-login-screen {
    overflow-y: auto;
    align-items: start;
    padding: 12px;
  }

  .tfh-brand-panel {
    min-height: 420px;
    padding: 26px 22px 20px;
  }

  .tfh-metallic-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .tfh-owner-block strong {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .tfh-main-logo {
    max-height: 220px;
  }

  .tfh-login-developer {
    width: min(390px, 94%);
  }

  .tfh-form-panel {
    padding: 30px 22px 34px;
  }

  .tfh-main-shell {
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-main-header {
    padding: 8px 12px;
  }

  .tfh-main-brand img {
    width: 60px;
    height: 48px;
  }

  .tfh-main-brand strong {
    font-size: 0.88rem;
  }

  .tfh-header-context {
    gap: 8px;
  }

  .tfh-company-button {
    min-height: 50px;
  }

  .tfh-user-box {
    display: none;
  }

  .tfh-logout-button span {
    display: none;
  }

  .tfh-main-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-side-panel {
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--tfh-line);
  }

  .tfh-side-heading,
  .tfh-side-footer {
    display: none;
  }

  .tfh-tab-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 12px;
  }

  .tfh-tab-button {
    width: auto;
    min-width: 145px;
    flex: 0 0 auto;
    margin: 0;
  }

  .tfh-work-area {
    padding: 18px 14px;
  }

  .tfh-work-header {
    padding-bottom: 14px;
  }

  .tfh-work-status {
    display: none;
  }

  .tfh-menu-grid {
    grid-template-columns: 1fr;
  }

  .tfh-menu-card {
    min-height: 112px;
  }
}

@media (max-width: 480px) {
  .tfh-service-strip {
    gap: 7px;
    font-size: 0.55rem;
    letter-spacing: 0.09em;
  }

  .tfh-login-developer span {
    display: none;
  }

  .tfh-main-brand div {
    display: none;
  }

  .tfh-company-copy small {
    display: none;
  }

  .tfh-company-button {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .tfh-company-badge {
    width: 34px;
    height: 34px;
  }

  .tfh-company-copy strong {
    font-size: 0.77rem;
  }

  .tfh-modal-layer {
    padding: 10px;
  }

  .tfh-modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }

  .tfh-modal-head {
    padding: 19px 18px 16px;
  }

  .tfh-company-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

@media (max-height: 700px) and (min-width: 981px) {
  .tfh-login-card {
    min-height: 620px;
  }

  .tfh-brand-panel,
  .tfh-form-panel {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .tfh-main-logo {
    max-height: 260px;
  }

  .tfh-login-developer {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* [TFH-999:TFH_COMMON:RESPONSIVE-CSS-END] */
