@media (prefers-reduced-motion: no-preference) {
  html:has(.studio) { scroll-behavior: smooth; }
  .studio main, .dashboard-page main { animation: page-arrive .23s ease-out both; }
  .studio .section:target > .section-heading,
  .flow-panel:not([hidden]),
  .plan-dialog[open] { animation: flow-in .24s cubic-bezier(.2,.75,.25,1) both; }
}
@keyframes page-arrive { from { opacity: .55; } }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } }
.studio .section { scroll-margin-top: 16px; }
.studio .plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); gap: 12px; }
.studio .plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(17px, 2vw, 27px);
  background: linear-gradient(158deg, #39271d, #1d1714 72%);
  border-color: #634232;
}
.studio .plan h3 { margin: 0; }
.studio .plan .price { margin: 0; font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.1; letter-spacing: -.045em; }
.studio .plan .btn { margin-top: auto; width: 100%; }
.studio .plan .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.studio .plan:hover { border-color: #bf794f; }
.plan-dialog {
  background: #241b17;
  color: #fff4e8;
  border-color: #84573e;
  border-radius: 22px;
  max-height: 90dvh;
  padding: clamp(19px, 4vw, 32px);
}
.plan-dialog::backdrop { background: #0f0a08cc; backdrop-filter: blur(5px); }
.plan-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-dialog .close-plan { aspect-ratio: 1; min-width: 46px; padding: 0; font-size: 1.35rem; }
.plan-summary { display: grid; gap: 1px; border: 1px solid #5b4032; border-radius: 14px; overflow: hidden; background: #5b4032; }
.plan-summary > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; padding: 11px 14px; background: #2c211b; }
.plan-summary dt { color: #e1c9b9; }
.plan-summary dd { margin: 0; font-weight: 700; }
.plan-dialog .actions { margin-top: 19px; }
.login-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.login-modes .btn { padding-inline: 13px; font-size: .93rem; }
.login-modes .btn[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.password-form { display: grid; gap: 8px; }
.password-form label { font-weight: 650; }
.password-form input { min-height: 48px; margin-bottom: 6px; }
.password-form .btn { justify-self: start; }
.selection-note { margin: 15px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #29201b; padding: 10px 16px; color: #ffd0b0; }
