.hb-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hb-confirm-dialog {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  animation: hb-confirm-in .16s ease-out;
}
@keyframes hb-confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.hb-confirm-body {
  padding: 22px 24px 10px;
}
.hb-confirm-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #102a43;
  line-height: 1.3;
}
.hb-confirm-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.6;
  white-space: pre-wrap;
}
.hb-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
}
html[dir="rtl"] .hb-confirm-actions,
.hb-rtl .hb-confirm-actions {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.hb-confirm-btn {
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.hb-confirm-cancel {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.hb-confirm-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.hb-confirm-ok {
  background: var(--brand-primary, #179BEE);
  border: 1px solid var(--brand-primary-hover, #0E86D4);
  color: #fff;
  box-shadow: 0 8px 16px rgba(var(--brand-primary-rgb, 23, 155, 238), 0.28);
}
.hb-confirm-ok:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.hb-confirm-ok:hover {
  background: var(--brand-primary-hover, #0E86D4);
}
.hb-confirm-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 23, 155, 238), 0.22);
}
body.hb-confirm-open {
  overflow: hidden;
}
.hb-os-search {
  width: 100%;
  margin: 12px 0 8px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: #102a43;
  background: #fff;
}
.hb-os-search:focus {
  outline: 0;
  border-color: var(--brand-primary, #179BEE);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 23, 155, 238), 0.16);
}
.hb-os-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px 2px 4px;
}
.hb-os-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  background: #fff;
  font-weight: 700;
  color: #102a43;
  font-size: 13px;
}
.hb-os-opt span {
  flex: 1;
}
.hb-os-opt input {
  margin: 0;
  margin-inline-start: auto;
  flex: 0 0 auto;
  accent-color: var(--brand-primary, #179BEE);
  width: 16px;
  height: 16px;
}
.hb-os-opt.is-empty {
  cursor: default;
  font-weight: 600;
  color: #9a3412;
  background: #fff7ed;
}
.hb-os-dialog .hb-os-list {
  text-align: start;
  margin-bottom: 10px;
  max-height: 240px;
}
.hb-os-opt:hover {
  border-color: var(--brand-primary, #179BEE);
}
.hb-os-dialog {
  width: min(520px, 100%);
}
.hb-os-families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}
.hb-os-family {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 12px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  color: #1e293b;
  font-family: inherit;
}
.hb-os-family.is-on {
  border-color: #7dd3fc;
  background: #f8fbff;
  box-shadow: 0 0 0 1px #7dd3fc;
}
.hb-os-family svg {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.hb-os-family .hb-os-tux {
  overflow: visible;
}
.hb-os-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.hb-os-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex: 0 0 46px;
  border-inline-end: 1px solid #e2e8f0;
  color: #179BEE;
  background: #f8fafc;
}
.hb-os-ico .fa { font-size: 16px; }
.hb-os-field input,
.hb-os-field select {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  appearance: none;
}
.hb-os-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23334155' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-inline-end: 28px;
}
html[dir="rtl"] .hb-os-field select,
.hb-rtl .hb-os-field select {
  background-position: left 12px center;
}
.hb-os-tool {
  width: 42px;
  flex: 0 0 42px;
  border: 0;
  border-inline-start: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.hb-os-gen {
  color: #ca8a04;
}
.hb-os-copy {
  color: #0e86d4;
}
.hb-os-copy.is-ok {
  color: #15803d;
}
.hb-os-pass-wrap {
  margin: 4px 0 8px;
}
.hb-os-pass-label {
  display: block;
  margin: 0 2px 6px;
  font-size: 13px;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.45;
}
.hb-os-hint {
  margin: 2px 2px 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}
.hb-confirm-text.is-warn {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.hb-install-overlay {
  background: rgba(15, 23, 42, 0.62);
}
.hb-install-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35);
}
.hb-install-spinner {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  position: relative;
}
.hb-install-spinner span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: hb-spin 1s linear infinite;
}
.hb-install-spinner span:first-child {
  border-top-color: #179BEE;
  border-right-color: #179BEE;
}
.hb-install-spinner span:last-child {
  inset: 8px;
  border-bottom-color: #38bdf8;
  border-left-color: #38bdf8;
  animation-duration: 1.4s;
  animation-direction: reverse;
}
@keyframes hb-spin {
  to { transform: rotate(360deg); }
}
.hb-install-loading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #179BEE;
  margin-bottom: 6px;
}
.hb-install-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.hb-install-os {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.hb-install-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.hb-install-bar-fill {
  display: block;
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8 50%, #7dd3fc);
  background-size: 200% 100%;
  animation: hb-bar-shine 1.2s linear infinite;
  transition: width .45s ease;
}
@keyframes hb-bar-shine {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
.hb-install-meta {
  display: flex;
  justify-content: space-between;
  margin: 8px 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.hb-install-eta {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.hb-install-stay {
  margin: 0 0 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.hb-install-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  text-align: start;
}
.hb-install-steps li {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
}
.hb-install-steps li.is-on {
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}
.hb-install-steps li.is-done {
  color: #15803d;
  background: #f0fdf4;
}
.hb-install-status {
  margin: 0;
  font-size: 13px;
  color: #334155;
  min-height: 18px;
}
.hb-install-done-btn {
  margin-top: 14px;
}
.hb-install-overlay.is-ok .hb-install-spinner,
.hb-install-overlay.is-fail .hb-install-spinner {
  animation: none;
}
.hb-install-overlay.is-ok .hb-install-loading { color: #15803d; }
.hb-install-overlay.is-fail .hb-install-loading { color: #b91c1c; }
