/* Small widgets inside MusicSara. No body, header, catalog, player or theme overrides. */
.avm-surface{--avm-panel:var(--PostItem,var(--bg,transparent));--avm-field:var(--bg_lighter,transparent);--avm-line:var(--ms-border-color,rgba(127,127,127,.3));--avm-muted:var(--vip-muted,inherit);--avm-accent:#ff164b;--avm-button-text:var(--ms-white,#fff);box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;background:transparent;color:inherit;font:inherit;text-align:start;line-height:inherit}
.avm-surface *,.avm-surface *::before,.avm-surface *::after{box-sizing:border-box;min-width:0}
.avm-surface [hidden]{display:none!important}
.avm-surface :is(h2,h3,h4,p,ul,dl,form){margin-block:0 1rem}
.avm-surface :is(h2,h3,h4){font-family:inherit;color:inherit;font-weight:600;line-height:1.6}
.avm-surface h2{font-size:1.3rem}
.avm-surface h3{font-size:1.12rem}
.avm-surface h4{font-size:1rem}
.avm-surface p{overflow-wrap:anywhere}
.avm-surface a{overflow-wrap:anywhere}
.avm-surface :is(button,input,select){font:inherit}
.avm-surface button{cursor:pointer}
.avm-surface :is(a,button,input,select):focus-visible{outline:2px solid currentColor;outline-offset:4px}
.avm-surface :is(button,input,select):disabled{cursor:not-allowed;opacity:.55}
.avm-surface .avm-page-header{margin-block-end:1rem}
.avm-surface .avm-page-header h2{margin-block-end:.4rem}
.avm-surface .avm-page-header p:last-child{margin-block-end:0;color:var(--avm-muted);font-size:.92em}
.avm-surface .avm-text-link{display:inline-block;align-self:center;text-decoration:underline;text-underline-offset:.25em;font-size:.92em;line-height:1.8}
.avm-surface .avm-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:.6rem .95rem;border:1px solid var(--avm-line);border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:.9em;line-height:1.5;text-decoration:none;text-align:center;white-space:normal;transition:opacity 150ms ease}
.avm-surface .avm-button:not(:disabled):hover{opacity:.85;color:inherit}
.avm-surface .avm-button--primary{border-color:var(--avm-accent);background:var(--avm-accent);color:var(--avm-button-text)}
.avm-surface .avm-button--primary:not(:disabled):hover{color:var(--avm-button-text)}
.avm-surface .avm-button--small{min-height:2.6rem;padding:.4rem .7rem;font-size:.82em}
.avm-surface .avm-button--danger{border-color:var(--avm-accent)}
.avm-surface .avm-status{margin-block-end:.8rem;color:var(--avm-muted);font-size:.9em}
.avm-surface .avm-notice{padding:.85rem 1rem;border:1px solid var(--avm-line);border-inline-start:3px solid currentColor;border-radius:8px;background:transparent;color:inherit;font-size:.9em}
.avm-surface .avm-notice--error{border-inline-start-color:var(--avm-accent)}
.avm-surface .avm-active-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 0;margin-block-end:1rem;border-block:1px solid var(--avm-line)}
.avm-surface .avm-active-bar strong{font-size:.95em;font-weight:600;overflow-wrap:anywhere}
.avm-surface .avm-active-bar span{font-size:.82em;color:var(--avm-muted)}
.avm-surface .avm-family-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.avm-surface .avm-manage-panel{padding-inline-start:1.5rem;border-inline-start:1px solid var(--avm-line)}
.avm-surface .avm-section-heading{display:flex;justify-content:space-between;align-items:center;gap:.7rem;margin-block-end:1rem}
.avm-surface .avm-section-heading h3{margin:0}
.avm-surface .avm-profile-list{display:grid;gap:.65rem;margin-block-end:1rem}
.avm-surface .avm-profile{display:grid;grid-template-columns:2.7rem minmax(0,1fr);gap:.6rem .8rem;align-items:center;padding:.85rem;border:1px solid var(--avm-line);border-radius:12px;background:var(--avm-panel);color:inherit}
.avm-surface .avm-profile--active{border-inline-start:3px solid var(--avm-accent)}
.avm-surface .avm-profile-mark{width:2.7rem;height:2.7rem;display:grid;place-items:center;background:transparent;border-radius:8px;color:inherit;font-size:1.1em;font-weight:600;border:1px solid var(--avm-line);border-block-end:3px solid var(--avm-profile-color,currentColor)}
.avm-surface .avm-profile-main{display:flex;flex-direction:column;gap:.1rem;overflow-wrap:anywhere}
.avm-surface .avm-profile-name{font-size:1em;font-weight:600;color:inherit}
.avm-surface .avm-profile-meta{font-size:.82em;color:var(--avm-muted)}
.avm-surface .avm-profile-actions{grid-column:1/-1;display:flex;gap:.5rem;flex-wrap:wrap;padding-block-start:.3rem}
.avm-surface .avm-profile-actions>.avm-button{flex:1 1 auto}
.avm-surface .avm-muted{color:var(--avm-muted);font-size:.88em}
.avm-surface .avm-form{display:flex;flex-direction:column;gap:.35rem}
.avm-surface .avm-form h4{margin-block-end:.4rem}
.avm-surface .avm-form p{margin-block-end:.8rem;font-size:.9em}
.avm-surface .avm-form label{font-size:.9em;font-weight:500;line-height:1.8}
.avm-surface .avm-form :is(input:not([type=hidden]):not([type=color]),select){display:block;appearance:auto;width:100%;max-width:100%;min-height:2.9rem;padding:.6rem .75rem;border:1px solid var(--avm-line);border-radius:8px;background:var(--avm-field);color:inherit;font:inherit;font-size:1em;line-height:1.6;box-shadow:none;text-align:start}
.avm-surface .avm-form input[type=password]{direction:ltr;text-align:start}
.avm-surface .avm-form input[type=color]{display:block;width:4.5rem;height:2.9rem;padding:.3rem;border:1px solid var(--avm-line);border-radius:8px;background:var(--avm-field)}
.avm-surface .avm-form .avm-field-hint{margin-block:.1rem .7rem;font-size:.8em;color:var(--avm-muted);line-height:1.9}
.avm-surface .avm-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-block-start:.75rem}
.avm-surface .avm-actions>.avm-button{flex:1 1 8rem}
.avm-surface .avm-delete-confirm{margin-block-start:1.2rem}
.avm-surface .avm-delete-confirm p{font-size:.88em}
.avm-surface .avm-footnote{margin-block:1.2rem 0;padding-block-start:.9rem;border-block-start:1px solid var(--avm-line);font-size:.82em;color:var(--avm-muted)}
.avm-surface .avm-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.avm-surface .avm-account-section{padding-block:1rem;border-block-start:1px solid var(--avm-line);background:transparent}
.avm-surface .avm-account-section--wide{grid-column:1/-1}
.avm-surface .avm-details{margin:0}
.avm-surface .avm-details>div{display:grid;grid-template-columns:minmax(5rem,.7fr) minmax(0,1.3fr);gap:.5rem;padding-block:.55rem;border-block-end:1px solid var(--avm-line)}
.avm-surface .avm-details>div:last-child{border-block-end:0}
.avm-surface .avm-details dt{font-size:.82em;color:var(--avm-muted);font-weight:400}
.avm-surface .avm-details dd{margin:0;font-size:.9em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.avm-surface .avm-subscription-state{font-size:1em;font-weight:600;color:inherit}
.avm-surface .avm-payments{list-style:none;display:grid;gap:1rem;padding:0;margin:0}
.avm-surface .avm-payments>li{padding-block-end:1rem;border-block-end:1px solid var(--avm-line)}
.avm-surface .avm-payments>li:last-child{padding-block-end:0;border-block-end:0}
.avm-surface .avm-payments>li>div{display:flex;justify-content:space-between;gap:1rem}
.avm-surface .avm-payments>li>div>span{font-size:.82em;color:var(--avm-muted)}
.avm-surface .avm-account-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-block-start:1rem}
.avm-surface .avm-account-actions>.avm-text-link{margin-inline-start:auto}
.avm-surface.avm-entry{padding:0}
/* Only opt-in page content wrappers gain spacing; existing page templates stay intact. */
.avm-legal{box-sizing:border-box;max-width:70ch;margin-inline:0;padding:0;font:inherit;color:inherit;text-align:start;line-height:2;overflow-wrap:anywhere}
.avm-legal :is(h1,h2,h3){font-family:inherit;color:inherit;line-height:1.7;margin-block:1.5em .5em}
.avm-legal :is(p,ul,ol){margin-block:0 1em}
.avm-legal :is(ul,ol){padding-inline-start:1.4em}
.avm-legal a{text-decoration:underline;text-underline-offset:.2em}
.avm-legal a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:48rem){.avm-surface .avm-family-layout,.avm-surface .avm-account-grid{grid-template-columns:minmax(0,1fr)}.avm-surface .avm-manage-panel{padding-inline-start:0;padding-block-start:1.2rem;border-inline-start:0;border-block-start:1px solid var(--avm-line)}.avm-surface .avm-active-bar{align-items:flex-start;flex-direction:column;gap:.25rem}.avm-surface .avm-account-section--wide{grid-column:auto}}
@media(max-width:25rem){.avm-surface .avm-section-heading{align-items:flex-start;flex-direction:column}.avm-surface .avm-profile{padding:.7rem;gap:.6rem}.avm-surface .avm-profile-actions>.avm-button{flex-basis:100%}.avm-surface .avm-details>div{grid-template-columns:minmax(0,1fr);gap:.1rem}.avm-surface .avm-account-actions{align-items:stretch;flex-direction:column}.avm-surface .avm-account-actions>.avm-text-link{margin-inline-start:0;align-self:flex-start}.avm-surface .avm-payments>li>div{flex-direction:column;gap:.1rem}}
@media(prefers-reduced-motion:reduce){.avm-surface *{transition:none!important;scroll-behavior:auto!important}}
