  :root {
    --hm-cms-admin-bar-height: 0px;
  }

  body.hm-cms-admin-bar-active {
    padding-top: var(--hm-cms-admin-bar-height);
  }

  body.hm-cms-admin-bar-active #site-navbar,
  body.hm-cms-admin-bar-active .site-navbar,
  body.hm-cms-admin-bar-active .promo-navbar,
  body.hm-cms-admin-bar-active .ch-navbar {
    top: var(--hm-cms-admin-bar-height) !important;
  }

  body.hm-cms-admin-bar-active .mobile-menu,
  body.hm-cms-admin-bar-active .promo-mobile {
    padding-top: calc(var(--hm-cms-admin-bar-height) + var(--mobile-nav-h, 64px) + 24px) !important;
    top: var(--hm-cms-admin-bar-height) !important;
  }

  body.hm-cms-admin-bar-active .ch-mobile-menu {
    max-height: calc(100vh - var(--hm-cms-admin-bar-height) - 74px) !important;
    top: calc(var(--hm-cms-admin-bar-height) + 74px) !important;
  }

  body.hm-cms-admin-bar-active .ch-navbar.is-blog-nav .ch-mobile-menu {
    max-height: calc(100vh - var(--hm-cms-admin-bar-height) - 58px) !important;
    top: calc(var(--hm-cms-admin-bar-height) + 58px) !important;
  }

  .hm-cms-admin-bar,
  .hm-cms-admin-tab {
    color-scheme: light;
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .hm-cms-admin-bar {
    align-items: center;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
    color: #f8fafc;
    display: flex;
    gap: 10px;
    inset: 0 0 auto 0;
    min-height: 44px;
    padding: 6px 14px;
    position: fixed;
    z-index: 2147483000;
  }

  .hm-cms-admin-brand,
  .hm-cms-admin-score,
  .hm-cms-admin-meta {
    align-items: center;
    display: inline-flex;
    min-width: 0;
  }

  .hm-cms-admin-brand {
    background: #ba0003;
    border-radius: 7px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    padding: 7px 9px;
  }

  .hm-cms-admin-meta {
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
  }

  .hm-cms-admin-title {
    color: #fff;
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-cms-admin-sub {
    color: #cbd5e1;
    display: block;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-cms-admin-score {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    line-height: 1;
    padding: 8px 10px;
  }

  .hm-cms-admin-score-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
  }

  .hm-cms-admin-score-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #111827;
    display: grid;
    gap: 10px;
    left: 50%;
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    transform: translate(-50%, -4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    width: min(380px, calc(100vw - 28px));
    z-index: 2147483002;
  }

  .hm-cms-admin-score-wrap:hover .hm-cms-admin-score-panel,
  .hm-cms-admin-score-wrap:focus-within .hm-cms-admin-score-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .hm-cms-admin-score-panel::before {
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    right: 0;
    top: -12px;
  }

  .hm-cms-admin-score-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }

  .hm-cms-admin-score-head b {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
  }

  .hm-cms-admin-score-head span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    margin-top: 2px;
  }

  .hm-cms-admin-score-formula {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    padding: 9px 10px;
  }

  .hm-cms-admin-score-metrics {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-cms-admin-score-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 2px;
    padding: 8px;
  }

  .hm-cms-admin-score-metric b {
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
  }

  .hm-cms-admin-score-metric span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }

  .hm-cms-admin-score-section {
    display: grid;
    gap: 6px;
  }

  .hm-cms-admin-score-section strong {
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
  }

  .hm-cms-admin-score-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
  }

  .hm-cms-admin-score-list span {
    border-radius: 7px;
    color: #334155;
    display: block;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    padding: 7px 8px;
  }

  .hm-cms-admin-score-list .pass {
    background: #ecfdf3;
    color: #047857;
  }

  .hm-cms-admin-score-list .warn {
    background: #fff7ed;
    color: #c2410c;
  }

  .hm-cms-admin-score-list .bad {
    background: #fef2f2;
    color: #b91c1c;
  }

  .hm-cms-admin-score.good {
    background: #064e3b;
    color: #d1fae5;
  }

  .hm-cms-admin-score.warn {
    background: #7c2d12;
    color: #ffedd5;
  }

  .hm-cms-admin-score.bad {
    background: #7f1d1d;
    color: #fee2e2;
  }

  .hm-cms-admin-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
  }

  .hm-cms-admin-history {
    display: inline-flex;
    position: relative;
  }

  .hm-cms-admin-history-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #111827;
    display: grid;
    gap: 10px;
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    width: min(420px, calc(100vw - 28px));
    z-index: 2147483002;
  }

  .hm-cms-admin-history:hover .hm-cms-admin-history-panel,
  .hm-cms-admin-history:focus-within .hm-cms-admin-history-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hm-cms-admin-history-panel::before {
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    right: 0;
    top: -12px;
  }

  .hm-cms-admin-history-head {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .hm-cms-admin-history-head b {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
  }

  .hm-cms-admin-history-head span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    margin-top: 2px;
  }

  .hm-cms-admin-history-tabs {
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
  }

  .hm-cms-admin-history-tab {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    height: 28px;
  }

  .hm-cms-admin-history-tab.is-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    color: #111827;
  }

  .hm-cms-admin-history-list {
    display: grid;
    gap: 9px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .hm-cms-admin-history-list[hidden] {
    display: none;
  }

  .hm-cms-admin-history-item {
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 2px;
    padding: 0 0 9px;
  }

  .hm-cms-admin-history-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hm-cms-admin-history-item b {
    color: #111827;
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
  }

  .hm-cms-admin-history-item small {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
  }

  .hm-cms-admin-history-item span {
    color: #334155;
    display: block;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }

  .hm-cms-admin-history-more,
  .hm-cms-admin-history-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 10px;
  }

  .hm-cms-admin-history-foot {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-top: 10px;
  }

  .hm-cms-admin-history-foot a,
  .hm-cms-admin-history-foot button {
    background: transparent;
    border: 0;
    color: #ba0003;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    padding: 0;
    text-decoration: none;
  }

  .hm-cms-admin-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0 10px;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
  }

  .hm-cms-admin-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 15px;
    justify-content: center;
    width: 15px;
  }

  .hm-cms-admin-icon svg {
    display: block;
    height: 15px;
    width: 15px;
  }

  .hm-cms-admin-btn.icon-only {
    padding: 0;
    width: 32px;
  }

  .hm-cms-admin-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
  }

  .hm-cms-admin-btn.primary {
    background: #fff;
    border-color: #fff;
    color: #111827;
  }

  .hm-cms-admin-btn.danger {
    background: #ba0003;
    border-color: #ef4444;
    color: #fff;
  }

  .hm-cms-admin-btn[disabled] {
    cursor: wait;
    opacity: 0.62;
    transform: none;
  }

  .hm-cms-admin-profile {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #f8fafc;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    height: 32px;
    max-width: 220px;
    padding: 3px 10px 3px 4px;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  }

  .hm-cms-admin-profile:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
  }

  .hm-cms-admin-profile-avatar {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 11px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    overflow: hidden;
    width: 24px;
  }

  .hm-cms-admin-profile-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .hm-cms-admin-profile-name {
    display: block;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-cms-admin-tab {
    align-items: center;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 0 9px 9px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    height: 32px;
    left: 16px;
    padding: 0 10px;
    position: fixed;
    top: 0;
    z-index: 2147483000;
  }

  .hm-cms-admin-toast {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    bottom: 22px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    max-width: min(360px, calc(100vw - 28px));
    padding: 12px 14px;
    position: fixed;
    right: 22px;
    z-index: 2147483001;
  }

  @media (max-width: 860px) {
    .hm-cms-admin-bar {
      align-items: flex-start;
      flex-wrap: wrap;
      padding: 7px 10px;
    }

    .hm-cms-admin-meta {
      flex: 1 1 calc(100% - 92px);
    }

    .hm-cms-admin-title,
    .hm-cms-admin-sub {
      max-width: calc(100vw - 126px);
    }

    .hm-cms-admin-actions {
      flex: 1 1 100%;
      flex-wrap: wrap;
    }

    .hm-cms-admin-btn {
      flex: 1 1 auto;
      min-width: 96px;
    }

    .hm-cms-admin-btn.icon-only {
      flex: 0 0 38px;
      min-width: 38px;
    }

    .hm-cms-admin-history {
      flex: 1 1 auto;
    }

    .hm-cms-admin-score-wrap {
      flex: 1 1 auto;
    }

    .hm-cms-admin-score-wrap > .hm-cms-admin-score {
      justify-content: center;
      width: 100%;
    }

    .hm-cms-admin-score-panel {
      left: 0;
      transform: translate(0, -4px);
      width: min(380px, calc(100vw - 20px));
    }

    .hm-cms-admin-score-wrap:hover .hm-cms-admin-score-panel,
    .hm-cms-admin-score-wrap:focus-within .hm-cms-admin-score-panel {
      transform: translate(0, 0);
    }

    .hm-cms-admin-history > .hm-cms-admin-btn {
      width: 100%;
    }

    .hm-cms-admin-history-panel {
      left: 0;
      right: auto;
      width: min(420px, calc(100vw - 20px));
    }

    .hm-cms-admin-profile {
      flex: 1 1 auto;
      max-width: none;
      min-width: 160px;
    }
  }