/* vbeatner — listener accounts: header menu, dialogs, personal cabinet */
:root {
  --acc-bg: #fcfcf7;
  --acc-line: #dedfd5;
  --acc-ink: #191b18;
  --acc-muted: #6c7064;
  --acc-green: #24341c;
  --acc-lime: #d5ff62;
  --acc-danger: #a53a31;
}

/* ---------- header ---------- */
.account-menu { display: flex; align-items: center; gap: 8px; position: relative; }
.acc-link, .acc-cta { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 10px 14px; white-space: nowrap; }
.acc-link { background: none; border: 1px solid transparent; }
.acc-link:hover { border-color: var(--acc-line); }
.acc-cta { background: var(--acc-lime); border: 1px solid var(--acc-lime); color: #1c2415; }
.acc-cta:hover { background: #e4ff9a; }
.acc-icon { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c8cbbf; background: transparent; padding: 0; align-items: center; justify-content: center; }
.acc-icon svg { width: 18px; height: 18px; }
.acc-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: hsl(var(--h, 90) 42% 84%); color: #1f2a17; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.acc-avatar:hover { filter: brightness(.96); }
.acc-avatar.big { width: 46px; height: 46px; font-size: 18px; flex-shrink: 0; }
.acc-admin-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--acc-lime); border: 2px solid var(--paper, #f5f4ed); outline: 1px solid #5f7b3a; }
.acc-dropdown { position: absolute; right: 0; top: 46px; z-index: 40; width: 250px; background: var(--acc-bg); border: 1px solid var(--acc-line); border-radius: 10px; box-shadow: 0 16px 40px #1a24122e; padding: 6px; display: grid; }
.acc-dropdown[hidden] { display: none; }
.acc-dropdown a, .acc-dropdown button { display: block; text-align: left; padding: 10px 12px; border-radius: 6px; font-size: 13px; background: none; border: 0; width: 100%; }
.acc-dropdown a:hover, .acc-dropdown button:hover { background: #edf2e4; }
.acc-dropdown .acc-admin-link { font-weight: 700; background: #f1f9d4; }
.acc-dropdown [data-logout] { border-top: 1px solid var(--acc-line); margin-top: 4px; border-radius: 0 0 6px 6px; color: var(--acc-danger); }
.acc-who { padding: 10px 12px 12px; display: grid; gap: 2px; border-bottom: 1px solid var(--acc-line); margin-bottom: 4px; }
.acc-who small { color: var(--acc-muted); overflow: hidden; text-overflow: ellipsis; }
.acc-who em { justify-self: start; margin-top: 4px; font-style: normal; font-size: 10px; letter-spacing: 1px; background: var(--acc-lime); border-radius: 4px; padding: 2px 6px; font-weight: 700; }

.track-actions { display: grid; justify-items: center; align-content: center; gap: 0; }
.track-add { width: 27px; height: 26px; padding: 5px; color: #809a6b; }
.track-add svg { width: 14px; }
.track-actions .track-favorite { height: 26px; }
.soon-badge { font-style: normal; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; background: #ecefe0; border: 1px solid #cfd6b8; color: #55663f; border-radius: 4px; padding: 2px 5px; margin-left: 4px; font-weight: 700; white-space: nowrap; }
.track-detail-actions .soon-badge { margin-left: 0; }

/* ---------- account mode: the cabinet replaces the landing sections ---------- */
body.account-mode main > section:not(#account-view) { display: none; }
.account-view[hidden] { display: none; }
.account-view { padding: 10px 0 50px; }

/* ---------- shared controls ---------- */
.account-view button, .acc-dialog button { font: inherit; }
.acc-primary, .acc-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 11px 16px; font-size: 13px; font-weight: 700; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.acc-primary svg, .acc-secondary svg { width: 16px; height: 16px; }
.acc-primary { background: var(--acc-lime); color: #1c2415; border-color: var(--acc-lime); }
.acc-primary:hover:not(:disabled) { background: #e4ff9a; }
.acc-secondary { background: transparent; border-color: #c8cbbf; color: var(--acc-ink); }
.acc-secondary:hover:not(:disabled) { background: #edf2e4; }
.acc-primary:disabled, .acc-secondary:disabled { opacity: .45; cursor: not-allowed; }
.acc-primary.danger { background: var(--acc-danger); border-color: var(--acc-danger); color: #fff; }
.acc-secondary.danger { color: var(--acc-danger); border-color: #dcb4af; }
.acc-text-button { background: none; border: 0; padding: 6px 0; color: #3f6428; text-decoration: underline; cursor: pointer; font-size: 13px; }
.acc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.acc-muted { color: var(--acc-muted); line-height: 1.55; margin: 8px 0; }
.acc-fine { color: var(--acc-muted); font-size: 12px; line-height: 1.5; margin: 6px 0; }
.acc-eyebrow { font: 10px/1 monospace; letter-spacing: 1.6px; color: #708361; }
.acc-form { display: grid; gap: 14px; max-width: 460px; margin: 18px 0 8px; }
.acc-form label, .acc-inline { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #46573a; }
.acc-form small { font-weight: 400; color: var(--acc-muted); }
.acc-form input:not([type=checkbox]), .acc-inline input, .acc-search { width: 100%; border: 1px solid #c9d3bd; background: #fff; border-radius: 6px; padding: 11px 12px; font: inherit; color: var(--acc-ink); }
.acc-form input:disabled { background: #f0f1ea; color: var(--acc-muted); }
.acc-form input:focus, .acc-inline input:focus, .acc-search:focus { outline: 2px solid #8fb04f; outline-offset: 1px; }
.acc-inline { grid-template-columns: 1fr auto; align-items: center; max-width: 520px; margin: 14px 0; gap: 10px; }
.acc-inline[hidden] { display: none; }
.acc-check { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; line-height: 1.45; }
.acc-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #5f7b3a; flex-shrink: 0; }
.acc-error { color: var(--acc-danger); min-height: 18px; font-size: 13px; margin: 10px 0 0; }
.acc-icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: transparent; color: #7a8f69; padding: 0; cursor: pointer; }
.acc-icon-button:hover { background: #edf2e4; color: var(--acc-ink); }
.acc-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-icon-button.on svg { fill: #b5cd8c; stroke: #5f7b3a; }

/* ---------- dialog ---------- */
.acc-dialog { width: min(520px, calc(100vw - 28px)); max-height: 88dvh; padding: 30px 30px 24px; border: 0; border-radius: 14px; background: #f9faf3; color: var(--acc-ink); overflow: auto; box-shadow: 0 30px 80px #0d160855; }
.acc-dialog::backdrop { background: #0c1308b3; backdrop-filter: blur(6px); }
.acc-dialog h2 { font-size: 26px; letter-spacing: -.8px; margin: 0 38px 12px 0; }
.acc-dialog-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.acc-dialog-close:hover { background: #edf2e4; }
.acc-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.acc-lead { color: #55624a; line-height: 1.6; margin: 0 0 8px; }
.acc-badge { display: inline-block; margin: 0 0 12px; }
.acc-checklist { list-style: none; padding: 0; margin: 12px 0; max-height: 240px; overflow: auto; border-top: 1px solid var(--acc-line); }
.acc-checklist li { border-bottom: 1px solid var(--acc-line); padding: 10px 2px; }
.acc-checklist small { color: var(--acc-muted); margin-left: 6px; }

/* ---------- cabinet ---------- */
.acc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.acc-side { position: sticky; top: 18px; display: grid; gap: 18px; }
.acc-id { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--acc-line); }
.acc-id div { min-width: 0; display: grid; gap: 2px; }
.acc-id b, .acc-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id small { color: var(--acc-muted); }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 7px; font-size: 13px; color: #4b5642; }
.acc-nav a:hover { background: #ecefe0; }
.acc-nav a.active { background: var(--acc-green); color: #eef6e2; font-weight: 700; }
.acc-nav small { background: #e4ead6; color: #46573a; border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: auto; }
.acc-nav a.active small { background: #3b5230; color: #d9edc2; }
.acc-main { min-width: 0; }
.acc-head { margin-bottom: 22px; }
.acc-head h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -2px; line-height: 1.05; margin: 10px 0 8px; }
.acc-head p { color: var(--acc-muted); margin: 0; line-height: 1.5; }
.acc-back { font-size: 12px; color: #55663f; }
.acc-back:hover { text-decoration: underline; }
.acc-banner { background: #fff6d6; border: 1px solid #ecd98a; color: #6a5412; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; }
.acc-banner a { font-weight: 700; text-decoration: underline; }
.acc-block { margin: 30px 0; }
.acc-block h2 { font-size: 18px; letter-spacing: -.4px; margin: 0 0 10px; }
.acc-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.acc-block-head a { font-size: 12px; color: #3f6428; text-decoration: underline; }
.acc-empty-page { max-width: 560px; margin: 8vh auto; text-align: left; }
.acc-empty-page h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -2px; margin: 14px 0; }
.acc-empty-page p { color: var(--acc-muted); line-height: 1.6; }
.acc-loading { text-align: center; padding: 10vh 0; }

.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-stat { background: var(--acc-bg); border: 1px solid var(--acc-line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; transition: transform .15s, border-color .15s; }
.acc-stat:hover { transform: translateY(-2px); border-color: #b5c59d; }
.acc-stat b { font-size: 30px; letter-spacing: -1.5px; }
.acc-stat span { font-size: 12px; color: var(--acc-muted); }
.acc-stat.muted { background: #f0f1e8; }

.acc-cards { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.acc-card a { display: grid; gap: 6px; padding: 18px; min-height: 96px; align-content: end; background: linear-gradient(160deg, #e8f3cf, #f6f8ea); border: 1px solid #d3deb9; border-radius: 12px; transition: transform .15s; }
.acc-card a:hover { transform: translateY(-2px); }
.acc-card b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.acc-card small { color: var(--acc-muted); }

.acc-tracks { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid var(--acc-line); }
.acc-track { display: grid; grid-template-columns: 38px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--acc-line); }
.acc-track[draggable=true] { grid-template-columns: 18px 38px 44px minmax(0, 1fr) auto; cursor: grab; }
.acc-track.dragging { opacity: .4; }
.acc-track.drop-target { box-shadow: inset 0 2px #7ea23f; }
.acc-track.is-playing { background: #f1f8dc; }
.acc-grip { color: #98a88a; font-size: 18px; text-align: center; user-select: none; }
.acc-play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--acc-green); color: #eaf5d8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.acc-play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.acc-play:hover { background: #38512b; }
.acc-cover { width: 44px; height: 44px; border-radius: 6px; background: #b9c9a4; overflow: hidden; display: block; }
.acc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-title { min-width: 0; display: grid; gap: 3px; }
.acc-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.acc-title small { color: var(--acc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-tools { display: flex; align-items: center; gap: 2px; }
.acc-found { list-style: none; padding: 0; margin: 12px 0; }
.acc-found li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--acc-line); }
.acc-search { max-width: 520px; }

.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.acc-chip { border: 1px solid #ccd6b9; border-radius: 20px; padding: 7px 13px; font-size: 13px; background: #fff; color: #3f5230; }
.acc-chip:hover { background: #edf2e4; }
.acc-chip.active { background: var(--acc-green); color: #eef6e2; border-color: var(--acc-green); }

.acc-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.acc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-switch-ui { width: 44px; height: 26px; border-radius: 13px; background: #cfd5c3; position: relative; transition: background .2s; flex-shrink: 0; }
.acc-switch-ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0003; }
.acc-switch input:checked + .acc-switch-ui { background: #5f8a2c; }
.acc-switch input:checked + .acc-switch-ui::after { transform: translateX(18px); }
.acc-switch input:focus-visible + .acc-switch-ui { outline: 2px solid #8fb04f; outline-offset: 2px; }

.acc-table-empty { border: 1px dashed #c4ceb3; border-radius: 10px; background: #fafaf4; }
.acc-table-head { display: grid; grid-template-columns: 50px 1fr 90px 50px; padding: 10px 14px; font: 10px monospace; letter-spacing: 1.4px; color: #7c8a6d; border-bottom: 1px solid var(--acc-line); text-transform: uppercase; }
.acc-table-empty p { padding: 22px 14px; margin: 0; color: var(--acc-muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; gap: 20px; }
  .acc-side { position: static; }
  .acc-id { border: 0; padding: 0; }
  .acc-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .acc-nav a { white-space: nowrap; border: 1px solid var(--acc-line); }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .acc-link, .acc-cta { display: none; }
  .acc-icon { display: inline-flex; }
  .account-menu { gap: 4px; }
  .acc-dropdown { position: fixed; right: 12px; top: 68px; width: min(290px, calc(100vw - 24px)); }
  .acc-dialog { padding: 24px 20px 20px; }
  .acc-track { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .acc-track[draggable=true] { grid-template-columns: 14px 36px minmax(0, 1fr) auto; }
  .acc-cover { display: none; }
  .acc-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 112px; gap: 0; }
  .acc-icon-button { width: 30px; height: 30px; }
  .acc-inline { grid-template-columns: 1fr; }
}
