@charset "utf-8";
/* Fan30Tech Project-wide Responsive & Accessibility Layer | sit v10 */

/* ===== Global Safety Start ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 0;
}

main,
section,
article,
aside,
header,
footer,
nav,
div,
form,
fieldset,
figure {
  min-width: 0;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
a,
span,
small,
strong,
td,
th,
code,
pre {
  overflow-wrap: anywhere;
}

[id] {
  scroll-margin-top: calc(var(--global-header-height, 82px) + 20px);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(241, 214, 146, 0.9);
  outline-offset: 3px;
}

:where(button, [role="button"], input[type="submit"], input[type="button"], .btn) {
  touch-action: manipulation;
}

/* Keep decorative artwork from creating horizontal page scroll. */
.site-glow,
.page-background,
.page-background__glow,
.visual-orbit,
.portfolio-logo-orbit,
.auth-showcase::before,
.auth-showcase::after,
.management-hero::before,
.management-hero::after,
.profile-hero::before,
.profile-hero::after,
.communication-hero::before,
.communication-hero::after {
  pointer-events: none;
}
/* ===== Global Safety End ===== */

/* ===== Shared Header Start ===== */
.global-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.global-header__inner,
.global-nav,
.global-nav__main,
.global-nav__account {
  min-width: 0;
}

.global-nav.is-open {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body.menu-open {
  overscroll-behavior: none;
}
/* ===== Shared Header End ===== */

/* ===== Generic Base Pages Start ===== */
.app-shell .main,
.app-shell .main > .container,
.page-head > *,
.grid > *,
.sidebar-layout > *,
.card,
.card-body {
  min-width: 0;
}

.page-head form {
  max-width: 100%;
}

.page-head input[type="search"],
.page-head input[type="text"] {
  width: min(100%, 360px);
}

.row-actions,
.actions,
.form-actions {
  align-items: center;
}

.row-actions form,
.actions form {
  margin: 0;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.table-wrap table {
  margin: 0;
}

.table-wrap td,
.table-wrap th {
  white-space: normal;
}

.form-row,
.form-row > *,
.form-grid > * {
  min-width: 0;
}

input[type="file"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item > * {
  min-width: 0;
}

.chart {
  display: block;
  max-width: 100%;
}
/* ===== Generic Base Pages End ===== */

/* ===== Mobile Card Tables Start ===== */
@media (max-width: 700px) {
  .table-wrap--cards {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .responsive-card-table,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .responsive-card-table {
    border-collapse: separate;
  }

  .responsive-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-card-table tr {
    overflow: hidden;
    padding: 7px 13px;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  }

  .responsive-card-table tr:has(td[colspan]) {
    padding: 0;
  }

  .responsive-card-table td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.1));
    text-align: right;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    color: var(--muted, #aaa6a0);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .responsive-card-table td[colspan] {
    display: block;
    padding: 18px;
    text-align: center;
  }

  .responsive-card-table td[colspan]::before {
    display: none;
  }

  .responsive-card-table .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .responsive-card-table .row-actions > *,
  .responsive-card-table .row-actions form,
  .responsive-card-table .row-actions .btn,
  .responsive-card-table .row-actions button {
    width: 100%;
  }
}
/* ===== Mobile Card Tables End ===== */

/* ===== Public Home & Portfolio Start ===== */
@media (max-width: 640px) {
  .hero-content,
  .portfolio-hero__content,
  .project-detail-copy,
  .project-detail-side,
  .portfolio-library__heading > *,
  .footer-grid > * {
    min-width: 0;
  }

  .hero-actions,
  .portfolio-cta__card,
  .footer-bottom {
    width: 100%;
  }

  .hero-actions .btn,
  .portfolio-cta__card .btn {
    width: 100%;
  }

  .hero-stats > div,
  .portfolio-hero__notes > span,
  .demo-card__features > span {
    min-width: 0;
  }

  .portfolio-filters input,
  .portfolio-filters select,
  .portfolio-filters button {
    width: 100%;
  }

  .project-rich-text,
  .demo-card__content p,
  .portfolio-hero__content p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .site-glow--one,
  .site-glow--two {
    max-width: 100vw;
  }

  .hero-visual,
  .visual-stage,
  .portfolio-hero__visual,
  .project-detail-cover {
    width: 100%;
    max-width: calc(100vw - 20px);
    margin-inline: auto;
  }

  .visual-orbit--outer,
  .portfolio-logo-orbit {
    width: min(300px, calc(100vw - 26px)) !important;
    height: min(300px, calc(100vw - 26px)) !important;
  }
}
/* ===== Public Home & Portfolio End ===== */

/* ===== Auth, Profile, Dashboard & Communication Start ===== */
.auth-experience > *,
.profile-layout > *,
.management-layout > *,
.communication-layout > *,
.conversation-layout > * {
  min-width: 0;
}

.auth-password-toggle {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-password-toggle .icon-eye-off,
.auth-password-toggle.is-visible .icon-eye {
  display: none;
}

.auth-password-toggle.is-visible .icon-eye-off {
  display: block;
}

.password-field-shell {
  position: relative;
}

.password-field-shell > input[type="password"],
.password-field-shell > input[type="text"] {
  padding-left: 52px;
}

.password-eye-toggle {
  position: absolute;
  top: 50%;
  left: 7px;
  z-index: 2;
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--muted, #aaa6a0);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-50%);
  cursor: pointer;
}

.password-eye-toggle:hover,
.password-eye-toggle:focus-visible {
  color: var(--gold-2, #f0ce7a);
  border-color: rgba(216, 173, 85, 0.4);
}

.password-eye-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.password-eye-toggle .icon-eye-off,
.password-eye-toggle.is-visible .icon-eye {
  display: none;
}

.password-eye-toggle.is-visible .icon-eye-off {
  display: block;
}
/* ===== Auth, Profile, Dashboard & Communication End ===== */

/* ===== Tablet Start ===== */
@media (max-width: 900px) {
  .page-head {
    align-items: stretch;
  }

  .page-head > .row-actions,
  .page-head > form {
    width: 100%;
  }

  .page-head > .row-actions .btn,
  .page-head > .row-actions form {
    flex: 1 1 160px;
  }

  .gallery-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .gallery-item img {
    width: 72px;
    height: 58px;
  }
}
/* ===== Tablet End ===== */

/* ===== Mobile Start ===== */
@media (max-width: 640px) {
  :root {
    --mobile-edge: 10px;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  body.app-shell > .main {
    padding-bottom: 48px;
  }

  .main {
    padding-bottom: 48px;
  }

  .page-head {
    gap: 14px;
  }

  .page-head h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.35;
  }

  .page-head p {
    line-height: 1.8;
  }

  .page-head > .row-actions,
  .row-actions,
  .actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-head > .row-actions > *,
  .row-actions > *,
  .row-actions form,
  .actions > *,
  .actions form,
  .form-actions > *,
  .btn,
  .row-actions button,
  .actions button {
    width: 100%;
  }

  .card-body {
    padding: 16px;
  }

  .form-card,
  .auth-card {
    width: 100%;
  }

  .form-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery,
  .security-grid,
  .overview-grid,
  .profile-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row.full,
  .form-grid__wide {
    grid-column: auto;
  }

  .gallery-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .gallery-item > :last-child {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gallery-item img {
    width: 64px;
    height: 54px;
  }

  .chart {
    height: 220px;
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .global-menu-toggle,
  .btn,
  button,
  a.global-nav__link,
  a.global-nav__account-link,
  a.global-nav__logout {
    min-height: 44px;
  }

  .message {
    max-width: 100%;
  }
}
/* ===== Mobile End ===== */

/* Prevent iOS from zooming the page when focusing compact form fields. */
@media (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .global-brand__copy strong {
    font-size: 0.95rem;
  }

  .global-brand__mark {
    width: 44px;
    height: 44px;
  }

  .global-menu-toggle {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .card-body,
  .profile-panel,
  .management-panel,
  .communication-panel {
    padding-right: 13px;
    padding-left: 13px;
  }

  .badge,
  .status,
  .tag {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Utility Classes Start ===== */
.section-gap-top { margin-top: 20px; }
.stack-gap-sm { margin-top: 10px; }
.actions--start { justify-content: flex-start; }
.filter-actions { margin: 0 0 18px; }
.select-auto { width: auto; }
.soft-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.list-row,
.list-row-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child,
.list-row-link:last-child { border-bottom: 0; }
.list-row-link:hover { color: var(--gold-2); }
.two-factor-qr { width: min(220px, 100%); margin: 0 auto 18px; padding: 10px; border-radius: 16px; background: #fff; }
.break-all { word-break: break-all; }
.recovery-codes { direction: ltr; }
/* ===== Utility Classes End ===== */

@media (max-width: 640px) {
  .select-auto { width: 100%; }
  .recovery-codes { grid-template-columns: minmax(0, 1fr); }
}

/* Put the actual account form before promotional content on narrow screens. */
@media (max-width: 1050px) {
  .auth-experience .auth-panel,
  .auth-experience--signup .auth-panel {
    order: 1;
  }

  .auth-experience .auth-showcase,
  .auth-experience--signup .auth-showcase {
    order: 2;
  }
}

@media (max-width: 720px) {
  .auth-showcase {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .auth-showcase .auth-kicker {
    margin-top: 18px;
  }

  .auth-showcase__status {
    margin-top: 18px;
  }
}
