:root {
  --hh-admin-bg: #f3f6fb;
  --hh-admin-panel: #ffffff;
  --hh-admin-dark: #0f2742;
  --hh-admin-dark-2: #183b63;
  --hh-admin-gold: #d99a2b;
  --hh-admin-text: #172033;
  --hh-admin-muted: #667085;
  --hh-admin-border: #e5e7eb;
  --hh-admin-danger: #dc2626;
  --hh-admin-success: #059669;
  --hh-admin-shadow: 0 16px 40px rgba(15, 39, 66, 0.08);
}

* {
  box-sizing: border-box;
}

body.hh-admin-body {
  margin: 0;
  background: var(--hh-admin-bg);
  color: var(--hh-admin-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

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

.hh-admin-shell {
  min-height: 100vh;
  display: flex;
}

.hh-admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f2742 0%, #102f50 100%);
  color: #ffffff;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 22px 18px;
  box-shadow: 12px 0 34px rgba(15, 39, 66, 0.16);
  z-index: 20;
}

.hh-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.hh-admin-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0c16a, #d99a2b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f2742;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 12px 24px rgba(217, 154, 43, 0.28);
}

.hh-admin-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.hh-admin-brand span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hh-admin-nav-group {
  margin: 18px 0;
}

.hh-admin-nav-title {
  padding: 0 10px 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hh-admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
  transition: all .18s ease;
}

.hh-admin-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.hh-admin-nav a.hh-admin-danger {
  color: #fecaca;
}

.hh-admin-main {
  margin-left: 260px;
  min-height: 100vh;
  width: calc(100% - 260px);
  display: flex;
  flex-direction: column;
}

.hh-admin-topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hh-admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.hh-admin-topbar-title {
  font-weight: 800;
  color: var(--hh-admin-dark);
}

.hh-admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hh-admin-muted);
  font-size: 14px;
}

.hh-admin-user-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edf3fb;
  color: var(--hh-admin-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.hh-admin-content {
  padding: 28px;
}

.hh-admin-card,
.hh-card,
form,
table {
  background: var(--hh-admin-panel);
  border: 1px solid var(--hh-admin-border);
  border-radius: 18px;
  box-shadow: var(--hh-admin-shadow);
}

.hh-admin-card {
  padding: 22px;
  margin-bottom: 22px;
}

.hh-admin-page-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--hh-admin-dark);
}

.hh-admin-page-subtitle {
  margin: 0 0 22px;
  color: var(--hh-admin-muted);
  line-height: 1.7;
}

.hh-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.hh-stat-card {
  background: #ffffff;
  border: 1px solid var(--hh-admin-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--hh-admin-shadow);
}

.hh-stat-label {
  color: var(--hh-admin-muted);
  font-size: 13px;
  font-weight: 700;
}

.hh-stat-value {
  margin-top: 10px;
  color: var(--hh-admin-dark);
  font-size: 26px;
  font-weight: 900;
}

.hh-admin-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hh-action-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--hh-admin-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--hh-admin-shadow);
  transition: all .18s ease;
}

.hh-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 154, 43, 0.45);
  box-shadow: 0 22px 48px rgba(15, 39, 66, 0.12);
}

.hh-action-card strong {
  display: block;
  color: var(--hh-admin-dark);
  font-size: 17px;
  margin-bottom: 8px;
}

.hh-action-card span {
  color: var(--hh-admin-muted);
  font-size: 14px;
  line-height: 1.6;
}

h1 {
  color: var(--hh-admin-dark);
  font-size: 26px;
  margin: 0 0 20px;
}

h2,
h3 {
  color: var(--hh-admin-dark);
}

form {
  padding: 22px;
  margin-bottom: 22px;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--hh-admin-dark);
  font-weight: 750;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hh-admin-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: var(--hh-admin-text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hh-admin-gold);
  box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.13);
}

button,
.btn,
a.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--hh-admin-dark), var(--hh-admin-dark-2));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s ease;
}

button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 39, 66, 0.18);
}

button.danger,
.btn-danger,
a.btn-danger {
  background: var(--hh-admin-danger);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 22px;
}

th {
  background: #f8fafc;
  color: var(--hh-admin-dark);
  text-align: left;
  font-size: 13px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--hh-admin-border);
}

td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--hh-admin-border);
  color: #344054;
  font-size: 14px;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

img {
  max-width: 100%;
}

.hh-admin-footer {
  padding: 18px 28px 26px;
  color: var(--hh-admin-muted);
  font-size: 12px;
}

.hh-admin-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 154, 43, 0.2), transparent 32%),
    linear-gradient(135deg, #0f2742 0%, #183b63 100%);
}

.hh-admin-login-body .hh-admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.hh-admin-login-body form {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 30px;
}

.hh-admin-login-body h1 {
  text-align: center;
}

@media (max-width: 960px) {
  .hh-admin-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    border-radius: 0 0 22px 22px;
  }

  .hh-admin-shell {
    display: block;
  }

  .hh-admin-main {
    margin-left: 0;
    width: 100%;
  }

  .hh-admin-topbar {
    padding: 0 18px;
  }

  .hh-admin-content {
    padding: 18px;
  }

  .hh-dashboard-grid,
  .hh-admin-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Admin Layout Fix & Visual Polish
   修复后台错位，强化左侧导航和内容区专业感
   ========================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body.hh-admin-authenticated {
  overflow-x: hidden;
}

.hh-admin-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 154, 43, 0.10), transparent 26%),
    linear-gradient(135deg, #f5f7fb 0%, #eef3fa 100%);
}

.hh-admin-sidebar {
  flex: 0 0 260px;
}

.hh-admin-main {
  flex: 1;
  min-width: 0;
}

.hh-admin-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hh-admin-topbar-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hh-admin-muted);
}

.hh-admin-nav a span {
  width: 22px;
  display: inline-flex;
  justify-content: center;
}

.hh-admin-page-title {
  letter-spacing: -0.03em;
}

.hh-admin-page-subtitle {
  max-width: 820px;
}

.hh-dashboard-grid {
  align-items: stretch;
}

.hh-stat-card {
  position: relative;
  overflow: hidden;
}

.hh-stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(217, 154, 43, 0.12);
}

.hh-stat-value {
  letter-spacing: -0.04em;
}

.hh-admin-card {
  position: relative;
}

.hh-admin-card h2 {
  margin-top: 0;
}

.hh-action-card {
  min-height: 150px;
}

.hh-action-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hh-action-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

@media (min-width: 961px) {
  .hh-admin-sidebar {
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
  }

  .hh-admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
}

@media (max-width: 960px) {
  .hh-admin-shell {
    display: block;
  }

  .hh-admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .hh-admin-main {
    margin-left: 0;
    width: 100%;
  }

  .hh-admin-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Category layout + Product image preview/sort
   ========================================================= */

.hh-admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.hh-admin-alert {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.hh-admin-table code {
  background: #f2f4f7;
  padding: 3px 7px;
  border-radius: 8px;
  color: #344054;
}

.hh-status-on,
.hh-status-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hh-status-on {
  background: #ecfdf3;
  color: #067647;
}

.hh-status-off {
  background: #fff1f3;
  color: #b42318;
}

.hh-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hh-inline-form {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.btn-small,
.hh-table-actions .btn,
.hh-table-actions button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-secondary {
  background: #667085;
}

.hh-empty-cell,
.hh-empty-hint {
  text-align: center;
  color: #667085;
  padding: 24px;
  background: #f9fafb;
  border-radius: 14px;
}

.hh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hh-form-section h2 {
  margin-top: 0;
  color: var(--hh-admin-dark);
}

.hh-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hh-check-card {
  margin: 0;
  border: 1px solid var(--hh-admin-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hh-check-card input {
  width: auto;
  min-height: auto;
}

.hh-image-preview-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hh-image-preview-box {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  border: 1px solid var(--hh-admin-border);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hh-image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-upload-side {
  flex: 1;
  min-width: 260px;
}

.hh-gallery-sortable,
.hh-new-gallery-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.hh-gallery-item,
.hh-new-gallery-thumb {
  border: 1px solid var(--hh-admin-border);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 39, 66, 0.06);
}

.hh-gallery-item {
  cursor: grab;
}

.hh-gallery-item.dragging {
  opacity: .55;
  border-color: var(--hh-admin-gold);
}

.hh-gallery-item img,
.hh-new-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}

.hh-gallery-item-meta {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #667085;
}

.hh-gallery-item-meta label {
  margin: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hh-gallery-item-meta input {
  width: auto;
  min-height: auto;
}

.hh-upload-new {
  margin-top: 12px;
}

.hh-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}

@media (max-width: 960px) {
  .hh-admin-page-head {
    display: block;
  }

  .hh-form-grid,
  .hh-checkbox-grid,
  .hh-gallery-sortable,
  .hh-new-gallery-preview {
    grid-template-columns: 1fr;
  }
}

/* Admin product drag sort */
.hh-sortable-product-row {
  cursor: grab;
}

.hh-sortable-product-row:hover {
  background: #fffdf5;
}

.hh-row-dragging {
  opacity: .55;
  background: #fff7ed !important;
  outline: 2px dashed #d99a2b;
}

/* Admin drag & drop styles */
.hh-sortable-product-row { cursor: grab; }
.hh-sortable-product-row:hover { background:#fffdf5; }
.hh-row-dragging { opacity:.55; background:#fff7ed !important; outline:2px dashed #d99a2b; }
.home-category-module { cursor: grab; }
.home-category-module.hh-row-dragging { opacity:.55; background:#fff7ed !important; outline:2px dashed #d99a2b; }

.hh-form-help {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #667085;
}

/* Admin category drag sort */
.hh-sortable-category-row {
  cursor: grab;
}

.hh-sortable-category-row:hover {
  background: #fffdf5;
}

.hh-row-dragging {
  opacity: .55;
  background: #fff7ed !important;
  outline: 2px dashed #d99a2b;
}

/* Admin home module drag sort */
#home-module-list tr[data-id] {
  cursor: grab;
}

#home-module-list tr[data-id]:hover {
  background: #fffdf5;
}

.hh-row-dragging {
  opacity: .55;
  background: #fff7ed !important;
  outline: 2px dashed #d99a2b;
}

/* Home decoration module compact table */
.hh-home-admin-head {
  align-items: center;
}

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

.hh-home-sort-message {
  min-height: 22px;
  margin: 10px 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #667085;
}

.hh-home-module-card-wrap {
  padding: 0;
  overflow: hidden;
}

.hh-home-module-table {
  width: 100%;
  border-collapse: collapse;
}

.hh-home-module-table th {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.hh-home-module-row {
  cursor: grab;
  background: #fff;
}

.hh-home-module-row:hover {
  background: #fffdf5;
}

.hh-home-module-row td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}

.hh-drag-sort-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-drag-handle {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-weight: 900;
}

.hh-sort-number {
  color: #0f172a;
}

.hh-home-module-thumb {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}

.hh-home-module-noimg {
  width: 58px;
  height: 42px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #98a2b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hh-home-module-title {
  font-weight: 900;
  color: #101828;
  line-height: 1.4;
}

.hh-home-module-sub {
  margin-top: 3px;
  font-size: 12px;
  color: #667085;
}

.hh-home-module-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
}

.hh-status-on,
.hh-status-off {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.hh-status-on {
  background: #ecfdf3;
  color: #067647;
}

.hh-status-off {
  background: #f2f4f7;
  color: #667085;
}

.hh-mini-link {
  font-weight: 900;
  color: #175cd3;
}

.hh-empty-cell {
  text-align: center;
  color: #667085;
  padding: 28px !important;
}

.hh-row-dragging {
  opacity: .55;
  background: #fff7ed !important;
  outline: 2px dashed #d99a2b;
}

/* Product admin compact table */
.hh-product-admin-head {
  align-items: center;
}

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

.hh-product-sort-message {
  min-height: 22px;
  margin: 10px 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #667085;
}

.hh-product-table-wrap {
  padding: 0;
  overflow: hidden;
}

.hh-product-table {
  width: 100%;
  border-collapse: collapse;
}

.hh-product-table th {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.hh-product-row {
  cursor: grab;
  background: #fff;
}

.hh-product-row:hover {
  background: #fffdf5;
}

.hh-product-row td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}

.hh-product-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: block;
}

.hh-product-title {
  font-weight: 900;
  color: #101828;
  line-height: 1.45;
  max-width: 420px;
}

.hh-product-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #667085;
  line-height: 1.5;
}

.hh-product-sku {
  font-weight: 900;
  color: #344054;
  font-size: 13px;
}

.hh-product-owner {
  margin-top: 4px;
  font-size: 12px;
  color: #667085;
}

.hh-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hh-category-tags span,
.hh-category-tags em {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.hh-muted {
  color: #98a2b3;
  font-size: 12px;
}

.hh-table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hh-drag-sort-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-drag-handle {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-weight: 900;
}

.hh-sort-number {
  color: #0f172a;
}

.hh-row-dragging {
  opacity: .55;
  background: #fff7ed !important;
  outline: 2px dashed #d99a2b;
}

.hh-inline-delete-form {
  display: inline;
  margin: 0;
}

.hh-mini-danger {
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.hh-mini-danger:hover {
  text-decoration: underline;
}

/* Bundle and guide admin */
.hh-compact-admin-table td {
  vertical-align: middle;
}

.hh-admin-small-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.hh-admin-preview {
  width: 180px;
  max-height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin: 8px 0 12px;
}

.hh-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.hh-checkbox-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.hh-checkbox-grid em {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.hh-muted {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

/* Home module form preview and hints */
.hh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hh-upload-hint-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.hh-upload-hint-box h3 {
  margin: 0 0 12px;
  color: #101828;
}

.hh-size-hint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hh-size-hint-grid div {
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.hh-size-hint-grid strong {
  display: block;
  color: #0f172a;
  margin-bottom: 5px;
}

.hh-size-hint-grid span {
  display: block;
  color: #667085;
  line-height: 1.55;
  font-size: 13px;
}

.hh-current-home-image {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  margin: 8px 0 12px;
}

.hh-current-home-image img {
  width: 160px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.hh-current-home-image span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.hh-home-size-tip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b54708;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .hh-form-grid,
  .hh-size-hint-grid {
    grid-template-columns: 1fr;
  }
}
