.is-saving { position: relative; cursor: wait; }
.is-saving > img { visibility: hidden; }
[data-profile-action] button[name="action"] { position:relative; padding-right:42px; }
[data-profile-action] button[name="action"] > img { position:absolute; right:14px; }
.is-saving::after { content: ""; position: absolute; right: 14px; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: save-progress 700ms linear infinite; }
@keyframes save-progress { to { transform: rotate(360deg); } }
.save-toast { position: fixed; z-index: 1500; left: 50%; top: calc(84px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 12px 10px 18px; border: 1px solid color-mix(in srgb, #498268 65%, var(--center-line, var(--page-line))); border-radius: 10px; background: color-mix(in srgb, #498268 22%, var(--center-surface, var(--page-surface))); color: var(--center-text, var(--page-text)); box-shadow: 0 8px 30px rgb(0 0 0 / .14); font: 400 14px/1.55 'Open Sans Muzmost', sans-serif; animation: save-notice 220ms ease-out; }
.save-toast[hidden] { display: none; }
.save-toast[data-tone="notice"] { background:color-mix(in srgb, #b9794e 22%, var(--center-surface,var(--page-surface))); border-color:color-mix(in srgb, #b9794e 65%, var(--center-line,var(--page-line))); }
.save-toast[data-tone="error"] { background:color-mix(in srgb, #be5650 22%, var(--center-surface,var(--page-surface))); border-color:color-mix(in srgb, #be5650 65%, var(--center-line,var(--page-line))); }
.save-toast[data-tone="error"]::before { content:"!"; display:grid; place-items:center; width:18px; height:18px; border:1.5px solid currentColor; border-radius:4px; transform:none; font-size:12px; font-weight:700; }
.save-toast::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--center-focus, var(--page-accent-text)); border-bottom: 2px solid var(--center-focus, var(--page-accent-text)); transform: rotate(-45deg); flex: none; }
.save-toast[data-tone="notice"]::before { content:"i"; display:grid; place-items:center; width:18px; height:18px; border:1.5px solid currentColor; border-radius:50%; transform:none; font-size:12px; font-weight:600; }
.save-toast > span { min-width: 0; }
.save-toast > button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 5px; background: transparent; color: inherit; font: 400 23px/1 sans-serif; cursor: pointer; }
.save-toast > button:hover { background: var(--center-muted-surface, var(--page-soft)); }
.save-toast > button:focus-visible { outline: 2px solid var(--center-focus, var(--page-focus)); outline-offset: 2px; }
@keyframes save-notice { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media(max-width: 600px) { .save-toast { width: calc(100vw - 32px); font-size: 13px; } }
@media(prefers-reduced-motion: reduce) { .save-toast, .is-saving::after { animation: none; } }
