
/* ================= instalador hermes (widget) ================= */
.hw-root { position: relative; }
.hw-root h2.hw-title {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 6px;
}
.hw-root p.hw-lead { color: var(--ink-2); font-size: 16px; margin: 10px 0 4px; }
.hw-screen { display: none; }
.hw-screen.hw-on { display: block; }

/* ---- formulario ---- */
.hw-fields { margin-top: 18px; display: grid; gap: 16px; }
.hw-field { display: block; }
.hw-field > span.hw-lb {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.hw-input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-cream);
  border: 2px solid rgba(87, 61, 33, 0.4);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: var(--shadow-small);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.hw-input::placeholder { color: var(--ink-3); font-weight: 400; }
.hw-input:focus {
  border-color: var(--teal);
  box-shadow: 4px 5px 0 rgba(7, 136, 126, 0.22);
}
.hw-input:disabled { opacity: 0.6; }
.hw-pass { position: relative; display: block; }
.hw-pass .hw-input { padding-right: 54px; }
.hw-eye {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.hw-eye:hover { color: var(--teal); background: rgba(7, 136, 126, 0.1); }
.hw-eye svg { width: 20px; height: 20px; display: block; }
.hw-note-privacy {
  margin-top: 16px;
  background: #def1ec;
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 15px;
}
.hw-alert {
  margin-top: 14px;
  background: #fceae5;
  border-left: 6px solid var(--coral);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 15px;
  display: none;
}
.hw-alert.hw-on { display: block; }
.hw-cta { margin-top: 20px; }
.hw-cta .hw-btn { width: 100%; justify-content: center; }
.hw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font);
  font-weight: 700; font-size: 17px;
  text-decoration: none;
  border: 2px solid rgba(87, 61, 33, 0.4);
  border-radius: 12px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hw-btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 8px 0 rgba(78, 48, 23, 0.22); }
.hw-btn:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 rgba(78, 48, 23, 0.22); }
.hw-btn-coral { background: var(--coral); color: var(--white-ink); }
.hw-btn-teal { background: var(--teal); color: var(--white-ink); }
.hw-btn-paper { background: var(--paper-cream); color: var(--navy); }
.hw-btn[disabled] { opacity: 0.65; cursor: default; transform: none; }
.hw-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---- lista de etapas ---- */
.hw-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 2px; }
.hw-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 600;
}
.hw-steps li[data-state="running"] {
  background: var(--paper-cream);
  border-color: rgba(87, 61, 33, 0.3);
  color: var(--navy);
  font-weight: 800;
}
.hw-steps li[data-state="done"] { color: var(--ink-2); }
.hw-steps li[data-state="error"] {
  background: #fceae5;
  border-color: rgba(233, 88, 79, 0.45);
  color: var(--coral-2);
  font-weight: 800;
}
.hw-mark {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: currentColor;
}
.hw-mark svg { width: 22px; height: 22px; display: block; }
.hw-circle {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(87, 61, 33, 0.4);
  background: var(--paper-light);
}
.hw-spin {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(87, 61, 33, 0.25);
  border-top-color: var(--teal);
  animation: hw-rot 0.8s linear infinite;
}
@keyframes hw-rot { to { transform: rotate(360deg); } }
.hw-check { color: var(--teal); }
.hw-x { color: var(--coral); }

/* ---- oauth ---- */
.hw-oauth {
  margin-top: 22px;
  background: var(--paper-cream);
  border: 2px solid rgba(87, 61, 33, 0.4);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  padding: 20px 20px 18px;
  display: none;
}
.hw-oauth.hw-on { display: block; }
.hw-oauth-tag {
  display: inline-block;
  background: var(--navy); color: var(--white-ink);
  font-weight: 800; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: var(--shadow-small);
  margin-bottom: 12px;
}
.hw-oauth p.hw-oauth-step {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.hw-code-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper-light);
  border: 2px dashed rgba(112, 69, 34, 0.55);
  border-radius: 12px;
  padding: 12px 16px;
}
.hw-code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 0.16em;
  color: var(--kraft-dark);
  word-break: break-all;
}
.hw-copy {
  font-family: var(--font); font-weight: 700; font-size: 14px;
  background: var(--mustard); color: var(--navy);
  border: 2px solid rgba(87, 61, 33, 0.4);
  border-radius: 9px;
  padding: 8px 16px; cursor: pointer;
  box-shadow: var(--shadow-small);
}
.hw-copy:active { transform: translate(1px, 1px); box-shadow: none; }
.hw-waiting {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}
.hw-hide { display: none !important; }

/* ---- sucesso ---- */
.hw-done-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white-ink);
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: var(--shadow-small);
  margin-bottom: 12px;
}
.hw-done-tag svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .hw-steps li { font-size: 15px; padding: 10px 10px; gap: 10px; }
  .hw-oauth { padding: 16px 15px; }
}
