/* Standalone platform release-notification entry and dialog. */
.platform-detail .platform-guide-stack {
  display: grid;
  gap: 14px;
  /* Center both cards together inside the main platform hero frame. */
  align-self: center;
  min-width: 0;
}
.platform-detail .platform-updates-tab {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--platform-accent, #4ee3dd);
  border-radius: 13px;
  color: #eff8fa;
  background: #021820e8;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}
.platform-detail .platform-updates-tab:hover {
  background: color-mix(in srgb, var(--platform-accent) 9%, #021820);
}
.platform-detail .platform-updates-tab:focus-visible {
  outline: 3px solid var(--platform-accent); outline-offset: 4px;
}
.platform-detail .platform-updates-tab svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--platform-accent, #4ee3dd);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.platform-detail .platform-updates-tab .updates-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
}
.phygitai-updates-modal {
  --updates-accent: #4ee3dd;
  --updates-border: #186475;
  position: fixed;
  inset: 0;
  width: min(440px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  margin: auto;
  padding: 32px;
  box-sizing: border-box;
  border: 1px solid var(--updates-border);
  border-radius: 19px;
  color: #edf8fb;
  background: #041a25;
  box-shadow: 0 28px 90px #000b12bb, 0 0 38px color-mix(in srgb, var(--updates-accent) 12%, transparent);
  font-family: inherit;
}
.phygitai-updates-modal[data-platform="claude"] {
  --updates-accent: #f1aa70;
  --updates-border: #785134;
}
.phygitai-updates-modal[data-platform="gemini"] {
  --updates-accent: #8aa9ff;
  --updates-border: #3857a5;
}
.phygitai-updates-modal :focus-visible {
  outline: 3px solid var(--updates-accent); outline-offset: 4px;
}
.phygitai-updates-modal::backdrop { background: #001119cf; backdrop-filter: blur(4px); }
.phygitai-updates-modal .updates-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #a9c8d5;
  font-size: 25px;
  cursor: pointer;
}
.phygitai-updates-modal .updates-close:hover { background: #123542; color: white; }
.phygitai-updates-modal .updates-mail-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--updates-border);
  border-radius: 13px;
  color: var(--updates-accent);
  background: color-mix(in srgb, var(--updates-accent) 9%, #071d27);
}
.phygitai-updates-modal .updates-mail-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.phygitai-updates-modal h2 { margin: 0 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.22; }
.phygitai-updates-modal .updates-intro { margin: 0 0 23px; color: #bfd0d9; line-height: 1.6; font-size: 14px; }
.phygitai-updates-modal label:not(.updates-consent) { display: block; margin: 0 0 8px; color: #dfedf2; font-size: 13px; }
.phygitai-updates-modal input[type=email] {
  width: 100%; min-height: 47px; padding: 12px 14px;
  box-sizing: border-box; border: 1px solid var(--updates-border); border-radius: 9px;
  background: #092632; color: #f4fdff; font: inherit; font-size: 16px;
}
.phygitai-updates-modal input::placeholder { color: #94b4c2; }
.phygitai-updates-modal .updates-consent { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0; font-size: 12px; line-height: 1.5; color: #aec9d3; }
.phygitai-updates-modal .updates-consent input { accent-color: var(--updates-accent); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.phygitai-updates-modal a { color: var(--updates-accent); }
.phygitai-updates-modal .updates-submit {
  display: block; width: 100%; min-height: 47px; border-radius: 9px;
  background: var(--updates-accent); border: 1px solid var(--updates-accent); color: #05202b;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.phygitai-updates-modal .updates-submit:disabled { background: #092632; border-color: #186475; color: #bfd0d9; opacity: 1; cursor: not-allowed; }
.phygitai-updates-modal .updates-fineprint { text-align: center; color: #a3bbc6; font-size: 11px; line-height: 1.5; margin: 12px 0 0; }
.phygitai-updates-modal .updates-status { margin: 14px 0 0; color: #b9e3e7; font-size: 12px; line-height: 1.5; }
@media (max-width: 700px) {
  .platform-detail .platform-guide-stack { gap: 12px; }
  .platform-detail .platform-updates-tab { min-height: 55px; padding: 13px 17px; font-size: 14px; }
  .phygitai-updates-modal { padding: 26px 22px; }
  .phygitai-updates-modal h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .platform-detail .platform-updates-tab { transition: none; } }

.phygitai-updates-modal .updates-consent { min-height: 44px; align-items: center; cursor: pointer; }
.phygitai-updates-modal .updates-consent span { min-width: 0; }
