
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ht-ink: #09183F;
  --ht-muted: #68718A;
  --ht-purple: #6425D0;
  --ht-purple-dark: #4E1BAA;
  --ht-soft: #F7F6FA;
  --ht-line: #E8E5EF;
  --ht-white: #FFFFFF;
  --ht-shadow: 0 18px 50px rgba(9, 24, 63, .09);
  --ht-radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F8F8FB;
  color: var(--ht-ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   HEADER AND BRANDING
========================================= */

.ht-topbar {
  height: 72px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--ht-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100% - 1160px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.ht-brand {
  font: 800 23px Manrope, sans-serif;
  letter-spacing: -1px;
}

.ht-brand span {
  color: var(--ht-purple);
}

.ht-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   GENERAL LAYOUT
========================================= */

.ht-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 36px auto 70px;
}

.ht-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.ht-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--ht-purple);
}

h1,
h2,
h3 {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -.7px;
}

h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  margin: 6px 0 8px;
}

h2 {
  font-size: 20px;
  margin: 0 0 5px;
}

.ht-muted {
  color: var(--ht-muted);
}

.ht-small {
  font-size: 12px;
  color: var(--ht-muted);
}

/* =========================================
   BUTTONS
========================================= */

.ht-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 19px;
  background: var(--ht-purple);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  min-height: 43px;
  transition: .2s;
}

.ht-btn:hover {
  background: var(--ht-purple-dark);
  transform: translateY(-1px);
}

.ht-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.ht-btn.secondary {
  background: #F0EAFB;
  color: var(--ht-purple);
}

.ht-btn.ghost {
  background: #FFFFFF;
  color: var(--ht-ink);
  border: 1px solid var(--ht-line);
}

.ht-btn.danger {
  background: #FFF0F0;
  color: #A12D38;
}

/* =========================================
   CARDS AND FORMS
========================================= */

.ht-card {
  background: #FFFFFF;
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-radius);
  padding: 24px;
  box-shadow: var(--ht-shadow);
}

.ht-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: start;
}

.ht-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ht-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ht-field.full {
  grid-column: 1 / -1;
}

.ht-field label {
  font-size: 12px;
  font-weight: 700;
  color: #303A57;
}

.ht-field input,
.ht-field textarea,
.ht-field select {
  width: 100%;
  border: 1px solid #DEDCE7;
  border-radius: 11px;
  background: #FFFFFF;
  padding: 12px 13px;
  color: var(--ht-ink);
  outline: none;
  font-size: 14px;
}

.ht-field textarea {
  min-height: 96px;
  resize: vertical;
}

.ht-field input:focus,
.ht-field textarea:focus,
.ht-field select:focus {
  border-color: var(--ht-purple);
  box-shadow: 0 0 0 3px #6425D018;
}

.ht-divider {
  height: 1px;
  background: var(--ht-line);
  margin: 22px 0;
}

.ht-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================
   AUTHENTICATION
========================================= */

.ht-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 15% 10%, #F0E9FF 0, transparent 35%), #F8F8FB;
}

.ht-auth-card {
  width: min(440px, 100%);
  padding: 34px;
}

.ht-auth-card .ht-field {
  margin: 16px 0;
}

.ht-auth-card h1 {
  font-size: 32px;
}

.ht-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ht-purple);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 15px;
}

/* =========================================
   NOTIFICATIONS
========================================= */

.ht-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #09183F;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--ht-shadow);
  z-index: 99;
  font-size: 13px;
  transition: .2s;
  max-width: min(90vw, 520px);
}

.ht-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ht-toast[data-type="error"] {
  background: #A12D38;
}

.ht-toast[data-type="success"] {
  background: #176B45;
}

/* =========================================
   IMAGE UPLOADS
========================================= */

.ht-upload {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px dashed #CFC9DD;
  border-radius: 13px;
  background: #FBFAFD;
}

.ht-upload img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #EEEEEE;
}

.ht-upload.cover img {
  width: 100px;
  height: 58px;
  border-radius: 8px;
}

/* =========================================
   SOCIAL LINK EDITOR
========================================= */

.ht-link-row {
  display: grid;
  grid-template-columns: 125px 1fr 42px;
  gap: 9px;
  margin: 10px 0;
}

.ht-link-row select,
.ht-link-row input {
  min-width: 0;
  border: 1px solid #DEDCE7;
  border-radius: 10px;
  padding: 10px;
  background: #FFFFFF;
  color: var(--ht-ink);
}

.ht-link-row button {
  border: 0;
  border-radius: 10px;
  background: #FFF0F0;
  color: #A12D38;
}

/* =========================================
   DASHBOARD PROFILE PREVIEW
========================================= */

.ht-preview-frame {
  position: sticky;
  top: 95px;
}

.ht-preview {
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid var(--ht-line);
  border-radius: 27px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--ht-shadow);
  text-align: center;
  padding-top: 22px;
}

.ht-preview-cover {
  display: none;
}

.ht-preview-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #FFFFFF;
  margin-top: 0;
  background: #EEEEEE;
}

.ht-preview-body {
  padding: 0 22px 24px;
}

.ht-preview-name {
  font: 800 22px Manrope, sans-serif;
  margin: 8px 0 0;
}

.ht-preview-prof {
  font-size: 12px;
  color: var(--ht-purple);
  font-weight: 700;
}

.ht-preview-bio {
  font-size: 12px;
  color: var(--ht-muted);
  margin: 10px 0 17px;
}

.ht-preview-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.ht-preview-actions span {
  font-size: 11px;
  border: 1px solid var(--ht-line);
  border-radius: 30px;
  padding: 7px 10px;
}

/* =========================================
   ADMIN TABLE
========================================= */

.ht-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ht-admin-table th,
.ht-admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--ht-line);
}

.ht-admin-table th {
  font-size: 11px;
  color: var(--ht-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.ht-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #EAF7EF;
  color: #176B45;
  font-size: 11px;
  font-weight: 700;
}

.ht-status.off {
  background: #FFF0F0;
  color: #A12D38;
}

.ht-hidden {
  display: none !important;
}

/* =========================================
   PUBLIC PROFILE
   Pure white background and original layout
========================================= */

.profile-page {
  min-height: 100vh;
  padding: 0 16px 35px;
  background: #FFFFFF;
}

.ht-public-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.ht-public-profile {
  width: 100%;
  padding: 0 0 25px;
  text-align: center;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Cover photo */

.ht-public-cover {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #FFFFFF;
}

.ht-public-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Profile identity */

.ht-public-identity {
  padding: 0 20px 20px;
}

.ht-public-avatar-wrap {
  position: relative;
  width: 142px;
  height: 142px;
  margin: -72px auto 15px;
  border: 5px solid #FFFFFF;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 3px 14px rgba(9, 24, 63, .10);
}

.ht-public-avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* If there is no cover photo */

.ht-public-cover.ht-hidden + .ht-public-identity .ht-public-avatar-wrap {
  margin-top: 22px;
}

.ht-public-identity h1 {
  margin: 5px 0 0;
  color: #09183F;
  font: 800 clamp(25px, 5vw, 30px)/1.2 Manrope, Arial, sans-serif;
  letter-spacing: -.8px;
  overflow-wrap: anywhere;
}

.ht-public-identity #public-profession {
  margin: 7px 0 0;
  color: #6425D0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ht-public-identity #public-company {
  margin: 3px 0 0;
  color: #68718A;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ht-public-identity #public-bio {
  max-width: 390px;
  margin: 13px auto 0;
  color: #68718A;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Call, Message and Email buttons */

.ht-public-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding: 0 18px;
  margin: 0 auto 15px;
}

.ht-contact-button {
  min-width: 105px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #6425D0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6425D0;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ht-contact-button:hover {
  background: #6425D0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.ht-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
}

.ht-contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Save contact and share */

.ht-public-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px;
  margin: 0 auto 25px;
}

.ht-save-button,
.ht-share-button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid #6425D0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6425D0;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ht-save-button:hover,
.ht-share-button:hover {
  background: #6425D0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Social links */

.ht-public-links-section {
  padding: 0 14px;
}

.ht-public-links-section h2 {
  margin: 0 0 13px;
  color: #09183F;
  font: 700 16px Manrope, Arial, sans-serif;
  text-align: left;
}

.ht-public-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: 0;
}

.ht-public-link {
  min-height: 62px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  border: 1px solid #E8E5EF;
  border-radius: 14px;
  background: #FFFFFF;
  color: #09183F;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.ht-public-link:hover {
  transform: translateY(-2px);
  border-color: #6425D0;
  box-shadow: 0 5px 16px rgba(100, 37, 208, .08);
}

.ht-public-link:focus-visible {
  outline: 3px solid #BFA6F4;
  outline-offset: 3px;
}

.ht-public-link-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #6425D0;
}

.ht-public-link-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-public-link-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.ht-public-link-arrow {
  color: #6425D0;
  font-size: 18px;
  line-height: 1;
}

/* Footer */

.ht-public-footer {
  padding: 26px 12px 0;
  text-align: center;
  color: #68718A;
  font-size: 12px;
}

.ht-public-footer strong {
  color: #6425D0;
}

/* =========================================
   CONTACT MODAL
========================================= */

.ht-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 24, 63, .48);
  backdrop-filter: blur(5px);
}

.ht-contact-backdrop.is-open {
  display: flex;
}

.ht-contact-modal {
  width: 100%;
  max-width: 390px;
  padding: 27px 23px 22px;
  border-radius: 23px;
  background: #FFFFFF;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
  text-align: center;
  animation: ht-pop-in .18s ease-out;
}

.ht-modal-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 50%;
  background: #EEEAF4;
}

.ht-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-contact-modal h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ht-contact-modal > p {
  margin: 7px 0 19px;
  color: #68718A;
  font-size: .92rem;
  line-height: 1.5;
}

.ht-modal-close {
  margin-top: 12px;
  border: 0;
  padding: 9px 14px;
  background: transparent;
  color: #68718A;
  font: inherit;
  cursor: pointer;
}

@keyframes ht-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   RESPONSIVE LAYOUT
========================================= */

@media(max-width: 800px) {
  .ht-grid {
    grid-template-columns: 1fr;
  }

  .ht-preview-frame {
    position: static;
  }

  .ht-page-head {
    flex-direction: column;
  }

  .ht-topbar {
    padding: 0 18px;
  }

  .ht-admin-wrap {
    overflow: auto;
  }

  .ht-admin-table {
    min-width: 650px;
  }
}

@media(max-width: 520px) {
  .ht-shell {
    width: calc(100% - 24px);
    margin: 22px auto 50px;
  }

  .ht-card {
    padding: 18px;
  }

  .ht-form-grid {
    grid-template-columns: 1fr;
  }

  .ht-field.full {
    grid-column: auto;
  }

  .ht-auth-card {
    padding: 25px;
  }

  .ht-link-row {
    grid-template-columns: 1fr 42px;
  }

  .ht-link-row select {
    grid-column: 1 / -1;
  }

  .profile-page {
    padding: 0 10px 28px;
  }

  .ht-public-cover {
    height: 160px;
  }

  .ht-public-avatar-wrap {
    width: 126px;
    height: 126px;
    margin-top: -63px;
  }

  .ht-public-identity {
    padding: 0 14px 18px;
  }

  .ht-public-contact {
    gap: 8px;
    padding: 0 8px;
  }

  .ht-contact-button {
    min-width: 94px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .ht-public-actions {
    gap: 8px;
    padding: 0 8px;
  }

  .ht-save-button,
  .ht-share-button {
    padding: 9px 13px;
    font-size: 12px;
  }

  .ht-public-links-section {
    padding: 0 5px;
  }

  .ht-public-link {
    min-height: 58px;
    padding: 12px 13px;
    gap: 10px;
  }

  .ht-public-link-label {
    font-size: 13px;
  }
}

@media(max-width: 360px) {
  .ht-public-contact {
    gap: 6px;
  }

  .ht-contact-button {
    min-width: 86px;
    padding: 8px 9px;
  }

  .ht-public-identity h1 {
    font-size: 24px;
  }
}

@media(prefers-reduced-motion: reduce) {
  .ht-contact-modal {
    animation: none;
  }

  .ht-public-link,
  .ht-contact-button,
  .ht-save-button,
  .ht-share-button {
    transition: none;
  }
}

/* =========================================
   HELLOTAP THEME SELECTOR
========================================= */

.ht-theme-toggle {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.ht-theme-option {
  flex: 1;
  min-height: 43px;
  padding: 10px 14px;
  border: 1px solid #E8E5EF;
  border-radius: 12px;
  background: #FFFFFF;
  color: #09183F;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}

.ht-theme-option:hover {
  border-color: #6425D0;
}

.ht-theme-option.active {
  background: #6425D0;
  border-color: #6425D0;
  color: #FFFFFF;
}

/* =========================================
   DASHBOARD PREVIEW THEMES
========================================= */

.ht-preview[data-theme="dark"] {
  background: #111827;
  border-color: #30394B;
  color: #FFFFFF;
}

.ht-preview[data-theme="dark"] .ht-preview-name {
  color: #FFFFFF;
}

.ht-preview[data-theme="dark"] .ht-preview-prof {
  color: #B99AFF;
}

.ht-preview[data-theme="dark"] .ht-preview-bio {
  color: #B7C0D1;
}

.ht-preview[data-theme="dark"] .ht-preview-actions span {
  background: #1E293B;
  border-color: #414B60;
  color: #FFFFFF;
}

.ht-preview[data-theme="dark"] .ht-preview-avatar {
  border-color: #111827;
}

/* =========================================
   PUBLIC PROFILE DARK MODE
========================================= */

html[data-profile-theme="dark"],
body[data-profile-theme="dark"] {
  background: #0B1120;
}

body[data-profile-theme="dark"] .profile-page {
  background: #0B1120;
  color: #FFFFFF;
}

body[data-profile-theme="dark"] .ht-public-profile {
  background: #0B1120;
  color: #FFFFFF;
}

/* Profile identity */

body[data-profile-theme="dark"] .ht-public-identity h1 {
  color: #FFFFFF;
}

body[data-profile-theme="dark"] .ht-public-identity #public-profession {
  color: #B99AFF;
}

body[data-profile-theme="dark"] .ht-public-identity #public-company,
body[data-profile-theme="dark"] .ht-public-identity #public-bio {
  color: #B7C0D1;
}

body[data-profile-theme="dark"] .ht-public-avatar-wrap {
  background: #1E293B;
  border-color: #0B1120;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}

/* Contact buttons */

body[data-profile-theme="dark"] .ht-contact-button {
  background: #111827;
  border-color: #9565F0;
  color: #C5A8FF;
}

body[data-profile-theme="dark"] .ht-contact-button:hover {
  background: #6425D0;
  border-color: #6425D0;
  color: #FFFFFF;
}

/* Save contact and share */

body[data-profile-theme="dark"] .ht-save-button,
body[data-profile-theme="dark"] .ht-share-button {
  background: #111827;
  border-color: #9565F0;
  color: #C5A8FF;
}

body[data-profile-theme="dark"] .ht-save-button:hover,
body[data-profile-theme="dark"] .ht-share-button:hover {
  background: #6425D0;
  color: #FFFFFF;
}

/* Social links */

body[data-profile-theme="dark"] .ht-public-links-section h2 {
  color: #FFFFFF;
}

body[data-profile-theme="dark"] .ht-public-link {
  background: #151E30;
  border-color: #303B50;
  color: #FFFFFF;
}

body[data-profile-theme="dark"] .ht-public-link:hover {
  background: #1D2940;
  border-color: #9565F0;
  box-shadow: 0 5px 18px rgba(100, 37, 208, .18);
}

body[data-profile-theme="dark"] .ht-public-link-icon,
body[data-profile-theme="dark"] .ht-public-link-arrow {
  color: #B99AFF;
}

body[data-profile-theme="dark"] .ht-public-link:focus-visible {
  outline-color: #9565F0;
}

/* Footer */

body[data-profile-theme="dark"] .ht-public-footer {
  color: #A8B2C5;
}

body[data-profile-theme="dark"] .ht-public-footer strong {
  color: #B99AFF;
}

/* Contact modal */

body[data-profile-theme="dark"] .ht-contact-modal {
  background: #151E30;
  color: #FFFFFF;
  border: 1px solid #303B50;
}

body[data-profile-theme="dark"] .ht-contact-modal h2 {
  color: #FFFFFF;
}

body[data-profile-theme="dark"] .ht-contact-modal > p {
  color: #B7C0D1;
}

body[data-profile-theme="dark"] .ht-modal-close {
  color: #B99AFF;
}

body[data-profile-theme="dark"] .ht-modal-avatar {
  background: #1E293B;
}

/* Cover background */

body[data-profile-theme="dark"] .ht-public-cover {
  background: #0B1120;
}

/* =========================================
   MOBILE DASHBOARD OVERFLOW FIX
========================================= */

@media (max-width: 520px) {

  .ht-topbar {
    height: auto;
    min-height: 72px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ht-top-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .ht-top-actions .ht-btn {
    flex: 1 1 auto;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ht-shell,
  .ht-grid,
  .ht-card,
  .ht-preview-frame,
  #profile-form,
  .ht-form-grid,
  .ht-field {
    min-width: 0;
    max-width: 100%;
  }

  .ht-page-head > div {
    min-width: 0;
    max-width: 100%;
  }

  #account-email {
    overflow-wrap: anywhere;
  }

  .ht-upload {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .ht-upload > div {
    min-width: 0;
    max-width: 100%;
  }

  .ht-upload input[type="file"] {
    max-width: 100%;
  }

  .ht-link-row {
    min-width: 0;
    max-width: 100%;
  }

  .ht-preview-frame,
  .ht-preview {
    width: 100%;
  }
}

/* =========================================
   PREVENT IOS SAFARI INPUT ZOOM
========================================= */

@media (max-width: 800px) {
  .ht-field input,
  .ht-field textarea,
  .ht-field select,
  .ht-link-row input,
  .ht-link-row select {
    font-size: 16px;
  }
}
