:root {
  --hb-bg: #0b1220;
  --hb-panel: #ffffff;
  --hb-border: #d6dceb;
  --hb-text: #1d2433;
  --hb-muted: #65748f;
  --hb-brand: #2f67d2;
}

.hb-admin-root,
.hb-admin-root * {
  box-sizing: border-box;
}

.hb-admin-root {
  margin: 0;
  background: #f1f4fa;
  color: var(--hb-text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.hb-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.hb-sidebar {
  display: none;
}

.hb-sidebar__title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1;
  border-bottom: 1px solid #263042;
  padding-bottom: 10px;
}

.hb-tabs {
  display: grid;
  gap: 2px;
}

.hb-tab {
  border: 0;
  text-align: left;
  background: transparent;
  color: #f7f9ff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 30px;
  line-height: 1.05;
  cursor: pointer;
}

.hb-tab:hover,
.hb-tab:focus-visible {
  background: #1f2c44;
  outline: none;
}

.hb-tab.is-active {
  background: #195f98;
}

.hb-content {
  padding: 18px;
}

.hb-panel {
  display: none;
  background: var(--hb-panel);
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  padding: 18px;
}

.hb-panel.is-active {
  display: block;
}

.hb-panel h1,
.hb-panel h2 {
  margin: 0 0 10px;
}

.hb-panel__copy {
  margin: 0 0 14px;
  color: var(--hb-muted);
}

.hb-sp-manager {
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f9fbff;
}

.hb-sp-manager__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.hb-sp-manager__column h3 {
  margin: 0 0 8px;
}

.hb-sp-manager__top-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.hb-sp-manager__listbox {
  border: 1px solid #ccd4e8;
  background: #f4f6fb;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px;
}

.hb-sp-manager__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: none !important;
}

.hb-sp-manager__item {
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.hb-sp-manager__item .hb-btn:hover,
.hb-sp-manager__item .hb-btn:focus-visible {
  background: #c92525;
  border-color: #c92525;
  color: #ffffff;
}

.hb-sp-manager__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hb-sp-manager__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hb-sp-manager__status {
  color: #1e5f2f;
}

.hb-icancook-view .wrap.icancook-seo-admin {
  margin: 0;
}

.hb-icancook-view--seo .icancook-seo-nav-tabs .nav-tab:last-child {
  display: none;
}

.hb-icancook-view--notes .icancook-seo-nav-tabs .nav-tab:first-child {
  display: none;
}

.hb-embed-wrap {
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}

.hb-embed-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  display: block;
}

.hb-btn {
  border: 1px solid #bdc8e3;
  background: #fff;
  color: #273042;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}

.hb-btn--primary {
  background: var(--hb-brand);
  border-color: var(--hb-brand);
  color: #fff;
}

.hb-memory__toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.hb-memory__status {
  color: #b42318;
  min-height: 20px;
}

.hb-memory__panels {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: 14px;
}

.hb-memory__list-wrap {
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  overflow: hidden;
}

.hb-memory__table {
  width: 100%;
  border-collapse: collapse;
}

.hb-memory__table th,
.hb-memory__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e7ecf6;
  text-align: left;
}

.hb-memory__table tbody tr {
  cursor: pointer;
}

.hb-memory__table tbody tr:hover {
  background: #f8faff;
}

.hb-memory__table tbody tr.is-selected {
  background: #edf3ff;
}

.hb-memory__editor {
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  padding: 12px;
}

.hb-memory__placeholder {
  margin: 0;
  color: var(--hb-muted);
}

.hb-input {
  width: 100%;
  border: 1px solid #c4cde0;
  border-radius: 7px;
  padding: 8px 10px;
}

.hb-preview-wrap {
  border: 1px dashed #c7d2ec;
  border-radius: 12px;
  min-height: 360px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef3ff 100%);
  padding: 16px;
  position: relative;
}

.hb-social-proof {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(380px, calc(100% - 32px));
  z-index: 2;
  background: #ffffff;
  border: 1px solid #dfe8fb;
  box-shadow: 0 20px 40px rgba(16, 34, 70, 0.18);
  border-radius: 14px;
  padding: 14px 16px 12px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  line-height: 1.35;
}

.hb-social-proof--frontend {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(380px, calc(100vw - 32px));
  z-index: 99999;
}

#hbSocialProofClose,
.hb-social-proof .hb-social-proof-close {
  display: none !important;
}

.hb-social-proof.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hb-social-proof-title {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--hb-brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.hb-social-proof-message {
  margin: 0;
  font-size: 16px;
  color: var(--hb-text);
  font-weight: 500;
}

#hbProofArea {
  font-weight: 700;
}

#hbProofService {
  font-style: italic;
}

.hb-social-proof-time {
  display: inline;
  margin-left: 4px;
  color: var(--hb-muted);
  font-size: 14px;
  font-weight: 500;
}

.hb-social-proof-verified {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #c92525;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hb-verified-check {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 920px) {
  .hb-shell {
    grid-template-columns: 1fr;
  }

  .hb-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .hb-tab {
    font-size: 22px;
  }

  .hb-memory__panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hb-social-proof {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .hb-social-proof--frontend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .hb-sp-manager__grid {
    grid-template-columns: 1fr;
  }
}
