/* ===== PH Header — sticky chrome, dropdowns, ⌘K palette, toasts ===== */

.wpc-widget-ph_header,
#ewb-block-1 {
  position: sticky;
  top: 0;
  z-index: 500;
  font-family: var(--font-body);
}

#ewb-block-1 .ph-hd {
  position: relative;
}

/* ---- Top navigation progress bar ---- */
#ewb-block-1 .ph-hd__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

#ewb-block-1 .ph-hd__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary), #3a3d47);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 180ms linear;
}

#ewb-block-1 .ph-hd__progress.is-loading i {
  transform: scaleX(0.82);
  opacity: 1;
}

#ewb-block-1 .ph-hd__progress.is-done i {
  transform: scaleX(1);
  opacity: 0;
  transition: transform 160ms linear, opacity 300ms linear 120ms;
}

/* ---- Bar ---- */
#ewb-block-1 .ph-hd__bar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

#ewb-block-1.is-scrolled .ph-hd__bar {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--color-border), 0 6px 20px rgba(18, 19, 22, 0.07);
}

#ewb-block-1 .ph-hd__inner {
  max-width: var(--ph-max-w);
  margin: 0 auto;
  height: var(--ph-header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- Brand ---- */
#ewb-block-1 .ph-hd__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
}

#ewb-block-1 .ph-hd__mark {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  display: block;
  transition: transform var(--dur-base) var(--ease-spring);
}

#ewb-block-1 .ph-hd__mark svg { width: 100%; height: 100%; display: block; }

#ewb-block-1 .ph-hd__brand:hover .ph-hd__mark { transform: rotate(-8deg) scale(1.08); }

#ewb-block-1 .ph-hd__word {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--color-text);
  white-space: nowrap;
}

/* ---- Search trigger ---- */
#ewb-block-1 .ph-hd__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: 232px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  transition: width var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) linear,
              background var(--dur-fast) linear,
              box-shadow var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__search:hover {
  width: 268px;
  background: #fff;
  border-color: var(--color-border-strong);
}

#ewb-block-1 .ph-hd__search:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

#ewb-block-1 .ph-hd__search-ico { width: 15px; height: 15px; flex: 0 0 auto; }

#ewb-block-1 .ph-hd__search-ph {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ewb-block-1 .ph-hd__kbd { display: flex; gap: 3px; flex: 0 0 auto; }

#ewb-block-1 kbd {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  min-width: 17px;
  padding: 4px 4px;
  text-align: center;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ---- Nav ---- */
#ewb-block-1 .ph-hd__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

#ewb-block-1 .ph-hd__item { position: relative; }

#ewb-block-1 .ph-hd__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__link--soft { color: var(--color-text-muted); }

#ewb-block-1 .ph-hd__link:hover,
#ewb-block-1 .ph-hd__item.is-open .ph-hd__link {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

#ewb-block-1 .ph-hd__caret {
  width: 13px;
  height: 13px;
  transition: transform var(--dur-base) var(--ease-out);
}

#ewb-block-1 .ph-hd__item.is-open .ph-hd__caret { transform: rotate(180deg); }

/* ---- Dropdown menus ---- */
#ewb-block-1 .ph-hd__menu {
  z-index: 600;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 266px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -6px, 0) scale(0.98);
  transform-origin: top left;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base) linear;
}

#ewb-block-1 .ph-hd__menu--right { left: auto; right: 0; transform-origin: top right; }

#ewb-block-1 .ph-hd__item.is-open .ph-hd__menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

#ewb-block-1 .ph-hd__menu a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__menu a:hover { background: var(--color-surface-hover); }

#ewb-block-1 .ph-hd__menu strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}

#ewb-block-1 .ph-hd__menu em {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-style: normal;
  color: var(--color-text-muted);
}

#ewb-block-1 .ph-hd__me {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

#ewb-block-1 .ph-hd__me-av {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #121316, #3a3d47);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

#ewb-block-1 .ph-hd__me-txt strong { font-size: 13.5px; }
#ewb-block-1 .ph-hd__me-txt em { font-size: 12px; }

/* ---- Right-side actions ---- */
#ewb-block-1 .ph-hd__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-left: 6px;
}

#ewb-block-1 .ph-hd__submit {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #2a2c33, var(--color-primary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(255, 194, 26, 0.4);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              filter var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__submit:hover {
  transform: translateY(-1px);
  filter: saturate(115%);
  box-shadow: 0 4px 12px rgba(255, 194, 26, 0.38);
}

#ewb-block-1 .ph-hd__submit:active { transform: translateY(0) scale(0.98); }

#ewb-block-1 .ph-hd__icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__icon-btn:hover { background: var(--color-surface-hover); color: var(--color-text); }
#ewb-block-1 .ph-hd__icon-btn svg { width: 19px; height: 19px; }

#ewb-block-1 .ph-hd__dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 1.5px solid #fff;
}

#ewb-block-1 .ph-hd__avatar {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #121316, #3a3d47);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

#ewb-block-1 .ph-hd__avatar:hover { transform: scale(1.06); box-shadow: 0 2px 10px rgba(18, 19, 22, 0.4); }

/* ---- Burger + mobile drawer ---- */
#ewb-block-1 .ph-hd__burger {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 9px 7px;
  flex-direction: column;
  justify-content: space-between;
}

#ewb-block-1 .ph-hd__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#ewb-block-1 .ph-hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#ewb-block-1 .ph-hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#ewb-block-1 .ph-hd__scrim {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 22, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 190;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) linear;
}

#ewb-block-1.is-drawer .ph-hd__scrim { opacity: 1; visibility: visible; }

#ewb-block-1 .ph-hd__drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 282px;
  max-width: 82vw;
  z-index: 195;
  background: #fff;
  border-right: 1px solid var(--color-border);
  padding: 76px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translate3d(-100%, 0, 0);
  transition: transform var(--dur-slow) var(--ease-out);
}

#ewb-block-1.is-drawer .ph-hd__drawer { transform: translate3d(0, 0, 0); }

#ewb-block-1 .ph-hd__drawer a,
#ewb-block-1 .ph-hd__drawer button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) linear;
}

#ewb-block-1 .ph-hd__drawer a:hover,
#ewb-block-1 .ph-hd__drawer button:hover { background: var(--color-surface-hover); }

/* ===== Command palette ===== */
#ewb-block-1 .ph-pal {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) linear;
}

#ewb-block-1 .ph-pal.is-open { opacity: 1; visibility: visible; }

#ewb-block-1 .ph-pal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 22, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#ewb-block-1 .ph-pal__box {
  position: relative;
  width: min(624px, calc(100vw - 32px));
  margin: 11vh auto 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.97) translate3d(0, -10px, 0);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}

#ewb-block-1 .ph-pal.is-open .ph-pal__box { transform: scale(1) translate3d(0, 0, 0); opacity: 1; }

#ewb-block-1 .ph-pal__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 56px;
  border-bottom: 1px solid var(--color-border);
}

#ewb-block-1 .ph-pal__field svg { width: 18px; height: 18px; color: var(--color-text-muted); flex: 0 0 auto; }

#ewb-block-1 .ph-pal__field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
  min-width: 0;
}

#ewb-block-1 .ph-pal__field input::placeholder { color: var(--color-text-muted); }

#ewb-block-1 .ph-pal__esc {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  background: var(--color-surface-alt);
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 4px 7px;
  cursor: pointer;
}

#ewb-block-1 .ph-pal__results {
  max-height: min(420px, 54vh);
  overflow-y: auto;
  padding: 8px;
  scroll-behavior: smooth;
}

#ewb-block-1 .ph-pal__grp {
  padding: 8px 8px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

#ewb-block-1 .ph-pal__row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur-fast) linear;
}

#ewb-block-1 .ph-pal__row.is-active { background: var(--color-wash); }

#ewb-block-1 .ph-pal__ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

#ewb-block-1 .ph-pal__txt { min-width: 0; flex: 1; }

#ewb-block-1 .ph-pal__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ewb-block-1 .ph-pal__sub {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ewb-block-1 .ph-pal__row mark { background: rgba(255, 194, 26, 0.2); color: inherit; border-radius: 2px; }

#ewb-block-1 .ph-pal__meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary);
}

#ewb-block-1 .ph-pal__empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

#ewb-block-1 .ph-pal__foot {
  display: flex;
  gap: 16px;
  padding: 9px 14px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  font-size: 11.5px;
  color: var(--color-text-muted);
}

#ewb-block-1 .ph-pal__foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ===== Toasts (shared host) ===== */
#ewb-block-1 .ph-toasts {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 320;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

#ewb-block-1 .ph-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 11px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--shadow-lg);
  animation: ph-toast-in var(--dur-slow) var(--ease-spring) both;
  pointer-events: auto;
}

#ewb-block-1 .ph-toast.is-out {
  animation: ph-fade var(--dur-base) var(--ease-out) reverse both;
}

#ewb-block-1 .ph-toast__ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  font-size: 11px;
}

#ewb-block-1 .ph-toast__ico svg { width: 12px; height: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  #ewb-block-1 .ph-hd__link--soft { display: none; }
  #ewb-block-1 .ph-hd__search { width: 190px; }
  #ewb-block-1 .ph-hd__search:hover { width: 210px; }
}

@media (max-width: 880px) {
  #ewb-block-1 .ph-hd__nav { display: none; }
  #ewb-block-1 .ph-hd__burger { display: flex; }
  #ewb-block-1 .ph-hd__search { width: auto; flex: 1; min-width: 0; }
  #ewb-block-1 .ph-hd__search:hover { width: auto; }
  #ewb-block-1 .ph-hd__kbd { display: none; }
}

@media (max-width: 620px) {
  #ewb-block-1 .ph-hd__word { display: none; }
  #ewb-block-1 .ph-hd__submit { display: none; }
  #ewb-block-1 .ph-hd__search-ph { font-size: 13px; }
  #ewb-block-1 .ph-toasts { left: 12px; right: 12px; bottom: 12px; }
  #ewb-block-1 .ph-toast { max-width: none; }
  #ewb-block-1 .ph-pal__box { margin-top: 6vh; }
}

/* ===== Auth: header buttons ===== */
#ewb-block-1 .ph-hd__auth {
  display: flex;
  align-items: center;
  gap: 6px;
}

#ewb-block-1 .ph-hd__signin,
#ewb-block-1 .ph-hd__signup {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  transition: transform var(--dur, 160ms) ease, background var(--dur, 160ms) ease, box-shadow var(--dur, 160ms) ease;
}

#ewb-block-1 .ph-hd__signin {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
}

#ewb-block-1 .ph-hd__signin:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

#ewb-block-1 .ph-hd__signup {
  background: var(--color-primary);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 1px 6px rgba(255, 194, 26, 0.3);
}

#ewb-block-1 .ph-hd__signup:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 194, 26, 0.42);
}

#ewb-block-1 .ph-hd__signup:active,
#ewb-block-1 .ph-hd__signin:active { transform: translateY(0) scale(0.98); }

/* ===== Auth: modal ===== */
#ewb-block-1 .ph-auth {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#ewb-block-1 .ph-auth.is-open {
  opacity: 1;
  pointer-events: auto;
}

#ewb-block-1 .ph-auth__scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 27, 0.5);
  backdrop-filter: blur(3px);
}

#ewb-block-1 .ph-auth__box {
  position: relative;
  width: min(410px, calc(100vw - 32px));
  margin-top: 12vh;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(16, 18, 27, 0.3);
  padding: 26px 26px 20px;
  transform: translateY(-10px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

#ewb-block-1 .ph-auth.is-open .ph-auth__box { transform: translateY(0) scale(1); }

#ewb-block-1 .ph-auth__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
}

#ewb-block-1 .ph-auth__x:hover { background: var(--color-surface); color: var(--color-text); }
#ewb-block-1 .ph-auth__x svg { width: 15px; height: 15px; }

#ewb-block-1 .ph-auth__tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

#ewb-block-1 .ph-auth__tabs button {
  flex: 1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

#ewb-block-1 .ph-auth__tabs button.is-on {
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(16, 18, 27, 0.1);
}

#ewb-block-1 .ph-auth__blurb {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

#ewb-block-1 .ph-auth__form { display: grid; gap: 12px; }

#ewb-block-1 .ph-auth__form label { display: grid; gap: 5px; }

#ewb-block-1 .ph-auth__form label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

#ewb-block-1 .ph-auth__form input {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#ewb-block-1 .ph-auth__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.16);
}

/* Honeypot — present for bots, never visible or focusable for people. */
#ewb-block-1 .ph-auth__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#ewb-block-1 .ph-auth__err {
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: rgba(229, 50, 45, 0.1);
  border: 1px solid rgba(229, 50, 45, 0.28);
  color: #c0392b;
}

#ewb-block-1 .ph-auth__go {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 16px;
  margin-top: 2px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

#ewb-block-1 .ph-auth__go:hover:not(:disabled) { background: var(--color-primary-hover); transform: translateY(-1px); }
#ewb-block-1 .ph-auth__go:active:not(:disabled) { transform: translateY(0) scale(0.99); }
#ewb-block-1 .ph-auth__go:disabled { opacity: 0.6; cursor: progress; }

#ewb-block-1 .ph-auth__go.is-busy { position: relative; color: transparent; }

#ewb-block-1 .ph-auth__go.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ph-auth-spin 640ms linear infinite;
}

@keyframes ph-auth-spin { to { transform: rotate(360deg); } }

#ewb-block-1 .ph-auth__fine {
  margin: 14px 0 0;
  font-size: 11.5px;
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 620px) {
  #ewb-block-1 .ph-auth__box { margin-top: 7vh; padding: 22px 18px 16px; }
  #ewb-block-1 .ph-hd__signin { display: none; }
}
