/* The header account control (assets/account.js). Self-contained, so it looks the same in the
   toolkit header (toolkit.css) and the site header (site.css); colours fall back to the palette. */
.acc-ctl { position: relative; display: inline-flex; align-items: center; flex: none; }
.acc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* signed out: "Sign in" with a person icon (the word hides on small screens) */
.acc .acc-in { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 4px; box-sizing: border-box; text-decoration: none; font: 600 14px Archivo, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--p-sage-hi, #F4F3EC); white-space: nowrap; }
.acc .acc-in:hover { color: var(--p-text, #ECEDE8); }
.acc .acc-in:hover span { text-decoration: underline; text-underline-offset: 4px; }
.acc .acc-in svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* signed in: the round button with the first letter, and PRO */
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; color: var(--p-text, #ECEDE8); font: inherit; }
.acc-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p-panel-3, #424542); box-shadow: inset 0 0 0 1.5px var(--p-sage, #F4F3EC); color: var(--p-sage-hi, #F4F3EC); font: 700 15px Archivo, "Helvetica Neue", Arial, sans-serif; }
.acc-btn.is-pro .acc-av { background: var(--p-sage-dim, rgba(244, 243, 236, 0.14)); box-shadow: inset 0 0 0 2px var(--p-sage-hi, #F4F3EC); }
.acc-btn:hover .acc-av { background: var(--p-panel-2, #3A3C3A); }
.acc-btn[aria-expanded="true"] .acc-av { background: var(--p-sage, #F4F3EC); color: var(--p-ink, #222322); }
.acc-tag { padding: 2px 6px; border-radius: 3px; background: none; box-shadow: inset 0 0 0 1px var(--p-sage, #F4F3EC); color: var(--p-sage, #F4F3EC); font: 700 10px Archivo, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

/* the menu under it */
.acc-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 290px; padding: 6px; border-radius: 8px; border: 1px solid var(--p-line-2, rgba(244, 243, 236, 0.26)); background: var(--p-panel, #323432); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75); text-transform: none; letter-spacing: 0; }
.acc-menu[hidden] { display: none; }
.acc-who { display: flex; flex-direction: column; gap: 3px; margin: 0 0 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--p-line, rgba(244, 243, 236, 0.14)); font: 400 14px/1.4 Archivo, "Helvetica Neue", Arial, sans-serif; }
.acc-label { font: 600 11px Archivo, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--p-muted, #A9ADA8); }
.acc-who b { color: var(--p-text, #ECEDE8); font-weight: 700; overflow-wrap: anywhere; }
.acc-plan { color: var(--p-muted, #A9ADA8); font-size: 13px; }
.acc-plan.is-pro { color: var(--p-sage, #F4F3EC); }
.acc .acc-item { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 4px; background: none; box-sizing: border-box; text-align: left; text-decoration: none; cursor: pointer; font: 600 15px Archivo, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--p-text, #ECEDE8); white-space: nowrap; }
.acc .acc-item:hover, .acc .acc-item:focus-visible { background: var(--p-panel-3, #424542); color: var(--p-text, #ECEDE8); }
.acc .acc-item--pro { color: var(--p-sage, #F4F3EC); text-decoration: underline; text-decoration-color: rgba(244, 243, 236, 0.5); text-underline-offset: 4px; }
.acc .acc-item[data-acc-out] { color: var(--p-muted, #A9ADA8); }
.acc .acc-item:disabled { cursor: default; opacity: 0.7; }
.acc-ctl :focus-visible { outline: 2px solid var(--p-sage-hi, #F4F3EC); outline-offset: 2px; }

/* room for it in the toolkit header on a phone */
@media (max-width: 560px) {
  .has-acc .p-top .p-wrap { gap: 10px; }
  .has-acc .p-nav { gap: 12px; }
  .has-acc .p-nav .p-btn { padding: 0 12px; letter-spacing: 0.03em; }
}
@media (max-width: 440px) {
  .has-acc .p-brand > svg, .has-acc .p-brand .p-bar { display: none; }
}
/* and in the site header (guides, legal pages, FL Studio pages) */
@media (max-width: 480px) {
  .has-acc header.nav .nav-links { flex-wrap: nowrap; gap: 10px; }
  .has-acc header.nav .brand { font-size: 15px; }
  .has-acc header.nav .nav-links .btn-inv { padding: 0 12px; font-size: 12px; letter-spacing: 0.03em; white-space: nowrap; }
}
@media (max-width: 359px) {
  .has-acc .p-nav, .has-acc .nav-links { gap: 4px; }
  .has-acc .p-nav .p-btn, .has-acc .nav-links .btn-inv { padding: 0 10px; font-size: 12px; letter-spacing: 0.02em; }
  .has-acc .p-brand b { font-size: 13px; }
  .has-acc .nav > .brand { font-size: 13px; letter-spacing: 0.03em; }
  .has-acc header.nav .nav-links { gap: 2px; }
  .has-acc header.nav .nav-links .btn-inv { padding: 0 8px; }
  .acc-av { width: 32px; height: 32px; font-size: 14px; }
}

@media (max-width: 560px) {
  .acc .acc-in span { display: none; }
  .acc-tag { display: none; }
  .acc-menu { position: fixed; left: 12px; right: 12px; width: auto; }
}

/* the header control in the site system (2026-11-11): off-white text, orange for Pro and the open state, no sage */
.acc .acc-in { color: #F4F3EC; }
.acc .acc-in:hover { color: #F4F3EC; }
.acc-av { background: #3A3C3A; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.5); color: #F4F3EC; }
.acc-btn.is-pro .acc-av { background: #3A3C3A; box-shadow: inset 0 0 0 2px #F06A3B; }
.acc-btn[aria-expanded="true"] .acc-av { background: #F4F3EC; color: #1F201F; }
.acc-tag { box-shadow: inset 0 0 0 1px #F06A3B; color: #F28A62; }
.acc-menu { border-color: rgba(244, 243, 236, 0.16); background: #323432; }
.acc-who { border-bottom-color: rgba(244, 243, 236, 0.12); }
.acc-plan.is-pro { color: #F28A62; }
.acc .acc-item--pro { color: #F28A62; text-decoration-color: rgba(242, 138, 98, 0.5); }
.acc-ctl :focus-visible { outline-color: #F06A3B; }
