.cloud-auth-boot { display: none; }
.legacy-origin-banner { position: fixed; z-index: 900; top: max(8px, env(safe-area-inset-top)); left: 50%; width: min(480px, calc(100vw - 20px)); box-sizing: border-box; transform: translateX(-50%); padding: 9px 14px; border: 1px solid #ddc4df; border-radius: 999px; background: #fffaf8ee; color: #62466a; box-shadow: 0 4px 16px #34233f20; font-size: .72rem; font-weight: 750; text-align: center; }
.legacy-origin-banner a { margin-left: .4em; color: #70458a; font-weight: 900; }
#legacy-origin-banner[hidden], .record-transfer[hidden] { display: none !important; }
html.cloud-auth-pending body { background: #f6e9eb; }
html.cloud-auth-pending #app { visibility: hidden; }
html.cloud-auth-pending .cloud-auth-boot { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; padding: 24px; background: #f6e9eb; color: #634669; font: 800 .92rem/1.4 sans-serif; text-align: center; }
.cloud-save-open {
  position: absolute;
  z-index: 3;
  inset: max(14px, env(safe-area-inset-top)) auto auto max(14px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  max-width: min(190px, calc(100% - 112px));
  padding: 7px 12px;
  border: 1.5px solid #d895b7;
  border-radius: 999px;
  background: #fff8f8eF;
  color: #623762;
  box-shadow: 0 3px 12px #6845661c;
  font-family: inherit;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
  cursor: pointer;
}
.cloud-save-mark { color: #b75d8c; font-size: 1rem; }
.cloud-save-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #c5a7b8; }
.cloud-save-open[data-status="saved"] .cloud-save-dot { background: #51a77c; }
.cloud-save-open[data-status="syncing"] .cloud-save-dot { background: #d8a445; animation: cloud-save-pulse 1s ease-in-out infinite alternate; }
.cloud-save-open[data-status="offline"] .cloud-save-dot, .cloud-save-open[data-status="offline-pending"] .cloud-save-dot { background: #b36c4f; }
.cloud-save-open:focus-visible, .cloud-save-dialog button:focus-visible, .cloud-save-dialog input:focus-visible, .cloud-save-dialog select:focus-visible, .cloud-save-dialog summary:focus-visible { outline: 3px solid #efb2d2; outline-offset: 2px; }
.start-screen .start-stage .start-content > .logo-start { transform: translateY(38px); }
.cloud-save-dialog { width: min(440px, calc(100vw - 28px)); max-width: none; max-height: min(92dvh, 760px); padding: 0; overflow: auto; border: 1px solid #e5cade; border-radius: 24px; background: #fffaf8; color: #4e3a56; box-shadow: 0 24px 80px #34233f55; }
.cloud-save-dialog::backdrop { background: #30263c70; backdrop-filter: blur(3px); }
.cloud-save-panel { padding: clamp(18px, 5vw, 26px); }
.cloud-save-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cloud-save-header h2 { margin: 0; color: #593a66; font-size: 1.45rem; }
.cloud-save-kicker { margin: 0 0 4px; color: #a75e8c; font-size: .63rem; font-weight: 950; letter-spacing: .15em; }
.cloud-save-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f5e6ef; color: #653f67; font-size: 1.5rem; cursor: pointer; }
.cloud-save-intro { margin: 12px 0 14px; color: #725c76; font-size: .88rem; line-height: 1.55; }
.cloud-save-state, .cloud-save-identity { margin: 7px 0; font-size: .8rem; }
.cloud-save-state { padding: 9px 12px; border-radius: 12px; background: #f4eaf4; color: #664b6b; font-weight: 850; }
.cloud-save-identity { overflow-wrap: anywhere; color: #78677d; }
.cloud-save-feedback { min-height: 1.25em; margin: 8px 0; color: #398158; font-size: .78rem; line-height: 1.45; }
.cloud-save-feedback.is-error { color: #9e523d; }
.cloud-save-actions, .cloud-save-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cloud-save-actions { margin: 10px 0 14px; }
.cloud-save-form { display: grid; gap: 11px; padding-top: 12px; border-top: 1px solid #ecdeeb; }
.cloud-save-form h3 { margin: 0; font-size: .95rem; color: #5a4264; }
.cloud-save-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 12px; border: 1px solid #747775; border-radius: 10px; background: #fff; color: #1f1f1f; font-family: Arial, sans-serif; font-size: .875rem; font-weight: 600; line-height: 20px; cursor: pointer; }
.cloud-save-google img { display: block; flex: none; width: 20px; height: 20px; object-fit: contain; }
.cloud-save-google:disabled { opacity: .65; cursor: wait; }
.cloud-save-google[hidden], .cloud-save-divider[hidden] { display: none; }
.cloud-save-divider { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; color: #86778b; font-size: .72rem; }
.cloud-save-divider::before, .cloud-save-divider::after { height: 1px; flex: 1; background: #ecdeeb; content: ""; }
.cloud-save-divider span { white-space: nowrap; }
.cloud-save-divider:not([hidden]) + .cloud-save-form { border-top: 0; }
.cloud-save-settings { margin: 0 0 15px; padding: 13px; border: 1px solid #e8d6e7; border-radius: 16px; background: linear-gradient(125deg, #fffaf2, #f8f0ff); }
.cloud-save-settings h3, .cloud-save-account-title { margin: 0; color: #5a4264; font-size: .95rem; }
.cloud-save-settings-description { margin: 4px 0 10px; color: #78677d; font-size: .72rem; line-height: 1.45; }
.cloud-save-dialog .cloud-save-settings .settings-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; margin: 0; }
.cloud-save-dialog .cloud-save-settings .small-button { min-width: 0; min-height: 48px; height: auto; padding: 6px 4px; border: 1px solid #d8c3d7; border-radius: 12px; background: #fff; color: #65456d; font-family: inherit; font-size: .75rem !important; font-weight: 850; line-height: 1.2; text-shadow: none; filter: none; white-space: normal; }
.cloud-save-dialog .cloud-save-settings .small-button[aria-pressed="true"] { border-color: #be91bd; background: #f2e6f6; box-shadow: inset 0 -2px #c5a5cc; }
.cloud-save-dialog .cloud-save-settings #start-timer { padding: 6px 4px !important; background-image: none !important; }
.cloud-save-account { padding-top: 12px; border-top: 1px solid #ecdeeb; }
.cloud-save-account-title { margin-bottom: 4px; }
.record-transfer { display: grid; gap: 9px; margin: 14px 0; padding: 12px; border: 1px solid #e8d8e7; border-radius: 14px; background: #fff6fb; }
.record-transfer h3 { margin: 0; color: #5a4264; font-size: .86rem; }
.record-transfer select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d8c3d7; border-radius: 10px; background: #fff; color: #392d43; font: inherit; font-size: 16px; }
.record-transfer-button { width: 100%; }
.record-transfer-help { margin: 0; color: #78677d; font-size: .69rem; line-height: 1.5; }
.record-transfer-disclosure { margin: 12px 0; }
.record-transfer-disclosure summary { width: fit-content; color: #795486; font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cloud-save-field { display: grid; gap: 5px; color: #68556e; font-size: .76rem; font-weight: 800; }
.cloud-save-field input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #d8c3d7; border-radius: 11px; background: #fff; color: #392d43; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; }
.cloud-save-primary, .cloud-save-secondary { min-height: 42px; padding: 9px 13px; border-radius: 12px; font-family: inherit; font-weight: 850; font-size: .8rem; line-height: 1.2; cursor: pointer; }
.cloud-save-primary { width: 100%; border: 0; background: linear-gradient(120deg, #cb71a5, #8c68ac); color: #fff; box-shadow: 0 4px 12px #9c5d9328; }
.cloud-save-secondary { border: 1px solid #d6bdd5; background: #fff; color: #65456d; }
.cloud-save-signout { color: #9e523d; }
.cloud-save-primary:disabled, .cloud-save-secondary:disabled { opacity: .6; cursor: wait; }
.cloud-save-links { justify-content: flex-start; margin-top: 10px; }
.cloud-save-links button { border: 0; padding: 5px 0; background: none; color: #795486; font-family: inherit; font-weight: 750; font-size: .73rem; line-height: 1.3; text-decoration: underline; cursor: pointer; }
.cloud-save-privacy { margin: 14px 0 0; color: #86778b; font-size: .68rem; line-height: 1.4; }
.cloud-save-privacy a { color: #775084; }
@keyframes cloud-save-pulse { to { opacity: .45; } }
@media (max-width: 420px) {
  .cloud-save-open { inset: max(10px, env(safe-area-inset-top)) auto auto max(10px, env(safe-area-inset-left)); width: 124px; min-width: 124px; max-width: 124px; min-height: 44px; padding: 6px 10px; gap: 6px; font-size: .74rem; }
  .cloud-save-mark { font-size: .88rem; }
  .cloud-save-dialog { width: calc(100vw - 20px); border-radius: 19px; }
  .cloud-save-panel { padding: 17px; }
}
@media (max-width: 360px) {
  .cloud-save-dialog .cloud-save-settings .settings-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cloud-save-dialog .cloud-save-settings #start-timer { grid-column: 1 / -1; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  .cloud-save-open { position: fixed; inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto; }
  .start-screen .start-stage .start-content > .logo-start { transform: none; }
}
