/* Magazine Mundo Internacional · editor visual del Home */
.admin-main.hde-host-active > :not(.hde-root) {
  display: none !important;
}

.hde-root {
  --hde-bg: #101116;
  --hde-card: #17191f;
  --hde-card-2: #1d2027;
  --hde-line: rgba(255, 255, 255, .1);
  --hde-muted: #9ea3af;
  display: none;
  color: #f7f7f8;
  min-width: 0;
}

.admin-main.hde-host-active > .hde-root {
  display: block;
}

.hde-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.hde-header h1 {
  margin: 3px 0 5px;
  font-size: 27px;
  line-height: 1.1;
}

.hde-header p,
.hde-section-head p,
.hde-modal-head p {
  color: var(--hde-muted);
  margin: 0;
  font-size: 13.5px;
}

.hde-eyebrow {
  color: var(--red-ink, #ef3340);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.hde-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hde-sync {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 197, 94, .22);
  background: rgba(34, 197, 94, .07);
  border-radius: 9px;
  font-size: 12.5px;
}

.hde-sync span:last-child {
  color: #9ca6a0;
}

.hde-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.hde-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: #0c0d11;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  overflow-x: auto;
}

.hde-tabs button {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #aeb1ba;
  font-size: 13px;
  font-weight: 800;
}

.hde-tabs button:hover {
  background: #181a20;
  color: #fff;
}

.hde-tabs button.on {
  color: #fff;
  background: var(--red, #e11d2a);
  box-shadow: 0 5px 18px rgba(225, 29, 42, .24);
}

.hde-workspace {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(320px, 42%);
  gap: 18px;
  align-items: start;
}

.hde-pane {
  min-width: 0;
}

.hde-preview-wrap {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid var(--hde-line);
  border-radius: 11px;
  background: #090a0d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.hde-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hde-line);
  font-size: 12px;
}

.hde-preview-head span {
  padding: 3px 8px;
  border-radius: 20px;
  background: #20222a;
  color: #aeb2bc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.hde-preview {
  display: block;
  width: 150%;
  height: 720px;
  border: 0;
  background: #08090c;
  transform: scale(.6667);
  transform-origin: top left;
  margin-right: -50%;
  margin-bottom: -240px;
}

.hde-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hde-section-head h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.hde-link {
  color: var(--red-ink, #ef3340);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hde-section-list,
.hde-slides {
  display: grid;
  gap: 10px;
}

.hde-section-card {
  display: grid;
  grid-template-columns: 24px 34px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 11px 13px;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  background: var(--hde-card);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.hde-section-card:hover {
  border-color: rgba(255, 255, 255, .2);
  background: var(--hde-card-2);
  transform: translateY(-1px);
}

.hde-drag {
  color: #6d727e;
  cursor: grab;
  letter-spacing: -3px;
  font-weight: 900;
  user-select: none;
}

.hde-section-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(225, 29, 42, .12);
  color: var(--red-ink, #ef3340);
  font-weight: 900;
  font-size: 12px;
}

.hde-section-copy {
  display: grid;
  gap: 3px;
}

.hde-section-copy b {
  font-size: 13.5px;
}

.hde-section-copy span {
  color: var(--hde-muted);
  font-size: 11.5px;
}

.hde-order-actions {
  display: flex;
  gap: 5px;
}

.hde-order-actions button,
.hde-icon {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--hde-line);
  border-radius: 7px;
  background: #0f1015;
  color: #c4c7cf;
  font-size: 12px;
}

.hde-order-actions button:hover:not(:disabled),
.hde-icon:hover {
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

.hde-order-actions button:disabled {
  opacity: .28;
  cursor: default;
}

.hde-order-actions.wide {
  flex-wrap: wrap;
}

.hde-order-actions.wide button {
  display: inline-flex;
  width: auto;
  white-space: nowrap;
}

.hde-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.hde-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hde-switch > span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #343740;
  transition: background .18s ease;
}

.hde-switch > span:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.hde-switch input:checked + span {
  background: #22a45a;
}

.hde-switch input:checked + span:after {
  transform: translateX(16px);
}

.hde-switch em {
  color: #adb1bb;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  min-width: 38px;
}

.hde-switch.compact > span {
  width: 32px;
  height: 18px;
}

.hde-switch.compact > span:after {
  width: 12px;
  height: 12px;
}

.hde-switch.compact input:checked + span:after {
  transform: translateX(14px);
}

.hde-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--red, #e11d2a);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .035);
  color: #a9adb6;
  font-size: 12px;
  line-height: 1.55;
}

.hde-note b {
  color: #e6e7ea;
}

.hde-hero-media {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  background: var(--hde-card);
}

.hde-bg-preview {
  position: relative;
  min-height: 105px;
  overflow: hidden;
  border-radius: 8px;
  background: #090a0e center / cover no-repeat;
}

.hde-bg-preview:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.hde-bg-preview span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
}

.hde-bg-fields {
  display: grid;
  align-content: center;
  gap: 9px;
}

.hde-bg-fields > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.hde-root label,
.hde-modal label {
  display: grid;
  gap: 6px;
  color: #d8dae0;
  font-size: 11.5px;
  font-weight: 700;
}

.hde-root input[type='text'],
.hde-root input[type='search'],
.hde-root textarea,
.hde-root select,
.hde-modal input[type='search'] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hde-line);
  border-radius: 7px;
  background: #0c0d12;
  color: #fff;
  padding: 9px 10px;
  outline: 0;
  font: inherit;
  font-size: 12.5px;
}

.hde-root input:focus,
.hde-root textarea:focus,
.hde-root select:focus,
.hde-modal input:focus {
  border-color: var(--red, #e11d2a);
  box-shadow: 0 0 0 3px rgba(225, 29, 42, .12);
}

.hde-root textarea {
  resize: vertical;
  min-height: 68px;
}

.hde-slider-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 7px 2px 10px;
  font-size: 11.5px;
  color: var(--hde-muted);
}

.hde-slider-summary b {
  color: #fff;
}

.hde-slide {
  overflow: hidden;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  background: var(--hde-card);
}

.hde-slide-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hde-line);
  background: rgba(0, 0, 0, .12);
}

.hde-slide-top b {
  flex: 1;
  font-size: 12px;
}

.hde-icon.danger {
  color: #ff7474;
  font-size: 20px;
}

.hde-slide-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px;
}

.hde-slide-image {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid var(--hde-line);
  border-radius: 7px;
  background: #090a0e center / cover no-repeat;
}

.hde-slide-image:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .85));
}

.hde-slide-image span {
  position: absolute;
  z-index: 2;
  bottom: 9px;
  left: 8px;
  right: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.hde-slide-fields {
  display: grid;
  gap: 9px;
}

.hde-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  background: var(--hde-card);
}

.hde-form-grid .span-2 {
  grid-column: 1 / -1;
}

.hde-form-grid.appearance {
  margin-top: 14px;
}

.hde-setting-block {
  padding: 14px;
  border: 1px solid var(--hde-line);
  border-radius: 10px;
  background: var(--hde-card);
}

.hde-setting-block h3 {
  margin: 0 0 11px;
  font-size: 13px;
}

.hde-layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hde-layout-option {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--hde-line);
  border-radius: 8px;
  background: #101217;
  color: #d7d9df;
  text-align: left;
}

.hde-layout-option:hover,
.hde-layout-option.on {
  border-color: var(--red, #e11d2a);
  background: rgba(225, 29, 42, .08);
}

.hde-layout-option b {
  font-size: 11.5px;
}

.hde-layout-option em {
  color: var(--hde-muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.35;
}

.hde-layout-mini {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3px;
  width: 100%;
  height: 32px;
  padding: 4px;
  border-radius: 5px;
  background: #08090d;
}

.hde-layout-mini i {
  display: block;
  border-radius: 3px;
  background: #484d59;
}

.hde-layout-mini i:first-child {
  background: var(--red, #e11d2a);
}

.hde-layout-mini.text-left {
  grid-template-columns: .8fr 1.2fr;
}

.hde-layout-mini.text-left i:first-child {
  background: #484d59;
}

.hde-layout-mini.text-left i:last-child {
  background: var(--red, #e11d2a);
}

.hde-layout-mini.stacked {
  grid-template-columns: 1fr;
  grid-template-rows: 1.2fr .8fr;
}

.hde-color {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 7px;
}

.hde-color input[type='color'] {
  width: 42px;
  height: 37px;
  padding: 3px;
  border: 1px solid var(--hde-line);
  border-radius: 7px;
  background: #0c0d12;
}

.hde-range > div {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 9px;
}

.hde-range input {
  accent-color: var(--red, #e11d2a);
}

.hde-range output {
  color: #fff;
  text-align: right;
  font-size: 11px;
}

.hde-empty,
.hde-error,
.hde-loading {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--hde-line);
  border-radius: 9px;
  color: var(--hde-muted);
  text-align: center;
  font-size: 12.5px;
}

.hde-loading {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hde-loading span {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--red, #e11d2a);
  border-radius: 50%;
  animation: hde-spin .75s linear infinite;
}

@keyframes hde-spin {
  to { transform: rotate(360deg); }
}

.hde-toast {
  position: fixed;
  z-index: 100000;
  right: 24px;
  bottom: 24px;
  max-width: 380px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9px;
  background: #14161c;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
  font-size: 13px;
}

.hde-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hde-toast.ok { border-color: rgba(34, 197, 94, .4); }
.hde-toast.error { border-color: rgba(239, 68, 68, .5); }

.hde-modal-bg {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(5px);
}

.hde-modal {
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: #111319;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}

.hde-modal-head,
.hde-modal-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hde-modal-head h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.hde-modal-head > button {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  font-size: 25px;
}

.hde-modal-tools input {
  flex: 1;
}

.hde-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding: 16px;
}

.hde-media-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #090a0e;
  color: #cfd1d7;
  text-align: left;
}

.hde-media-item:hover {
  border-color: var(--red, #e11d2a);
  transform: translateY(-1px);
}

.hde-media-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hde-media-item span {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
}

/* Aplicación pública del diseño guardado */
#root.hde-home-root {
  display: flex;
  flex-direction: column;
}

#root.hde-home-root > [data-home-section] {
  width: 100%;
}

#root.hde-home-root > [data-home-section][hidden] {
  display: none !important;
}

:root {
  --home-accent: #e11d2a;
  --home-overlay: .78;
  --home-hero-height: 380px;
  --home-cover-scale: 1;
  --home-cover-scale-side: .86;
  --home-cover-fit: cover;
  --home-section-space: 40px;
}

.home-hero .hero-stage {
  min-height: var(--home-hero-height) !important;
}

.home-hero .mag .photo {
  object-fit: var(--home-cover-fit) !important;
}

.home-hero .hero-covers .mag:nth-child(1) {
  transform: translateY(-50%) rotate(-8deg) scale(var(--home-cover-scale-side));
}

.home-hero .hero-covers .mag:nth-child(2) {
  transform: translateY(-52%) rotate(0deg) scale(var(--home-cover-scale));
}

.home-hero .hero-covers .mag:nth-child(3) {
  transform: translateY(-50%) rotate(8deg) scale(var(--home-cover-scale-side));
}

#root.hde-home-root > [data-home-section='categories'],
#root.hde-home-root > [data-home-section='reels'] {
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space);
}

#root.hde-home-root > [data-home-section='news'] {
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space) !important;
}

.home-hero.hde-text-left .hero-covers {
  grid-column: 2;
  grid-row: 1;
}

.home-hero.hde-text-left .hero-text {
  grid-column: 1;
  grid-row: 1;
}

.home-hero.hde-stacked .hero-stage {
  grid-template-columns: 1fr;
  align-content: center;
  padding: 20px 0 34px;
}

.home-hero.hde-stacked .hero-covers,
.home-hero.hde-stacked .hero-text {
  grid-column: 1;
}

.home-hero.hde-stacked .hero-covers {
  width: min(520px, 100%);
  margin: 0 auto;
}

.home-hero.hde-stacked .hero-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-hero.hde-stacked .hero-text p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .hde-workspace {
    grid-template-columns: 1fr;
  }
  .hde-preview-wrap {
    position: relative;
    top: auto;
  }
  .hde-preview {
    height: 660px;
    margin-bottom: -220px;
  }
}

@media (max-width: 760px) {
  .hde-header,
  .hde-section-head,
  .hde-slider-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .hde-header-actions .btn {
    flex: 1;
  }
  .hde-workspace {
    display: block;
  }
  .hde-preview-wrap {
    margin-top: 16px;
  }
  .hde-section-card {
    grid-template-columns: 22px 30px minmax(0, 1fr) auto;
  }
  .hde-section-card .hde-switch {
    grid-column: 3 / -1;
  }
  .hde-hero-media,
  .hde-slide-body,
  .hde-form-grid,
  .hde-layout-options {
    grid-template-columns: 1fr;
  }
  .hde-form-grid .span-2 {
    grid-column: auto;
  }
  .hde-bg-preview,
  .hde-slide-image {
    min-height: 190px;
  }
  .hde-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hde-modal-bg {
    padding: 8px;
  }
  .hde-sync span:last-child {
    display: none;
  }
}

@media (max-width: 720px) {
  .home-hero.hde-text-left .hero-covers,
  .home-hero.hde-text-left .hero-text {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Correcciones globales verificadas durante el QA del editor Home */
.admin-side nav .hde-sidebar-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: #8f94a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .75px;
  text-transform: uppercase;
}

.admin-side nav .hde-sidebar-toggle:hover,
.admin-side nav .hde-sidebar-toggle.expanded {
  border-color: rgba(225, 29, 42, .42);
  background: rgba(225, 29, 42, .08);
  color: #fff;
}

.admin-side nav .hde-sidebar-toggle .hde-toggle-title {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-side nav .hde-sidebar-toggle .hde-toggle-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #c8cbd2;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.admin-side nav .hde-sidebar-toggle svg {
  transition: transform .18s ease;
}

.admin-side nav .hde-sidebar-toggle.expanded svg {
  transform: rotate(90deg);
}

.admin-side nav button[data-hde-group] {
  margin-left: 8px;
  width: calc(100% - 8px);
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13px;
}

.admin-side nav button.hde-group-hidden {
  display: none !important;
}

.hde-admin-menu-trigger,
.hde-admin-menu-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .admin {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-main {
    width: 100% !important;
    padding-top: 82px !important;
  }

  .admin-side {
    position: fixed !important;
    z-index: 1002 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(320px, 88vw) !important;
    height: 100dvh !important;
    padding: 18px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    overflow-y: auto !important;
    transform: translateX(-104%);
    transition: transform .2s ease;
    box-shadow: 22px 0 60px rgba(0, 0, 0, .55);
  }

  .admin-side.hde-mobile-open {
    transform: translateX(0);
  }

  .admin-side nav {
    width: 100% !important;
    padding-bottom: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .admin-side nav button {
    width: 100%;
  }

  .admin-side .spacer {
    display: block !important;
  }

  .hde-admin-menu-trigger {
    position: fixed;
    z-index: 1001;
    top: 14px;
    left: 14px;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(12, 13, 17, .96);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .42);
  }

  .hde-admin-menu-trigger:hover,
  .hde-admin-menu-trigger[aria-expanded='true'] {
    border-color: var(--red);
    background: #17191f;
  }

  .hde-admin-menu-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .68);
    border: 0;
    border-radius: 0;
  }

  body.hde-sidebar-open {
    overflow: hidden;
  }

  body.hde-sidebar-open .hde-admin-menu-backdrop {
    display: block;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 76px 16px 24px !important;
  }

  .hde-admin-menu-trigger {
    top: 12px;
    left: 12px;
  }
}

.footer .cols {
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 1.3fr)
    minmax(0, 1.1fr)
    minmax(0, 1fr)
    minmax(0, 1.2fr) !important;
  gap: clamp(18px, 2.1vw, 30px) !important;
}

.footer .cols > *,
.footer .newsletter,
.footer .newsletter input {
  min-width: 0 !important;
  max-width: 100%;
}

@media (max-width: 1080px) {
  .footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .subtabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    padding: 12px 0 !important;
  }

  .subtabs button {
    flex: 1 1 calc(33.333% - 8px) !important;
    min-width: 150px !important;
    padding: 10px 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 7px !important;
    text-align: center !important;
    white-space: normal !important;
    background: rgba(255, 255, 255, .03) !important;
  }

  .subtabs button.on {
    border-color: var(--red) !important;
    background: rgba(216, 31, 42, .14) !important;
  }

  .subtabs button.on:after {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .page-hero .inner,
  .page-hero:not(.center) .inner {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .page-hero h1 {
    max-width: 100% !important;
    font-size: clamp(29px, 9vw, 38px) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .page-hero p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .subtabs button {
    flex-basis: calc(50% - 8px) !important;
    min-width: 0 !important;
  }

  .footer .cols {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
