/* AlterDistro refresh: status pills + sidebar. Loaded after app.css, safe to delete to roll back. */

/* ---------- Status pills (Live = green "Same tool" look) ---------- */
.status {
  --st-fg: #a1a1ab; --st-bg: rgba(255,255,255,.06); --st-bd: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1; white-space: nowrap;
  color: var(--st-fg); background: var(--st-bg); border: 1px solid var(--st-bd); box-shadow: none;
}
.status[data-tone="success"] { --st-fg: #4ade80; --st-bg: rgba(34,197,94,.12); --st-bd: rgba(34,197,94,.38); }
.status[data-tone="info"]    { --st-fg: #7aa2ff; --st-bg: rgba(59,99,245,.14); --st-bd: rgba(59,99,245,.4); }
.status[data-tone="review"]  { --st-fg: #c4a2ff; --st-bg: rgba(139,92,246,.14); --st-bd: rgba(139,92,246,.4); }
.status[data-tone="warning"] { --st-fg: #fbbf24; --st-bg: rgba(245,158,11,.13); --st-bd: rgba(245,158,11,.4); }
.status[data-tone="danger"]  { --st-fg: #f87171; --st-bg: rgba(239,68,68,.13); --st-bd: rgba(239,68,68,.4); }
html[data-theme="light"] .status { --st-fg: #52525b; --st-bg: #f4f4f5; --st-bd: #e4e4e7; }
html[data-theme="light"] .status[data-tone="success"] { --st-fg: #15803d; --st-bg: #dcfce7; --st-bd: #86efac; }
html[data-theme="light"] .status[data-tone="info"]    { --st-fg: #1d4ed8; --st-bg: #dbeafe; --st-bd: #93c5fd; }
html[data-theme="light"] .status[data-tone="review"]  { --st-fg: #6d28d9; --st-bg: #ede9fe; --st-bd: #c4b5fd; }
html[data-theme="light"] .status[data-tone="warning"] { --st-fg: #b45309; --st-bg: #fef3c7; --st-bd: #fcd34d; }
html[data-theme="light"] .status[data-tone="danger"]  { --st-fg: #b91c1c; --st-bg: #fee2e2; --st-bd: #fca5a5; }

.status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: none; opacity: 1; margin: 0; }
.status[data-tone="success"]::before {
  width: 13px; height: 13px; border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- AI Mastering banner: smaller, sits under the release hero / promo banner ---------- */
.content .amx-banner { gap: 10px; margin: 0 0 18px; padding: 7px 10px 7px 8px; border-radius: 12px; }
.content .amx-banner-ico { width: 28px; height: 28px; border-radius: 9px; }
.content .amx-banner-ico svg { width: 16px; height: 16px; }
.content .amx-banner p { font-size: 12.5px; line-height: 1.4; }
.content .amx-banner .btn { height: 30px; padding: 0 14px; font-size: 12.5px; }

/* ---------- API connections: platform tiles ---------- */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.ap-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1 / 1; padding: 14px; border: 0; border-radius: 24px; cursor: pointer; text-decoration: none; text-align: center;
  color: #fff; font: inherit;
  background: linear-gradient(155deg, color-mix(in srgb, var(--ap) 100%, #fff 12%), color-mix(in srgb, var(--ap) 82%, #000 18%));
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 30px -18px color-mix(in srgb, var(--ap) 70%, #000);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ap-tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 20px 36px -16px color-mix(in srgb, var(--ap) 80%, #000); filter: brightness(1.05); }
.ap-tile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ap-tile .store-logo { width: 58px; height: 58px; background: transparent !important; box-shadow: none !important; border: 0 !important; color: #fff !important; }
.ap-tile .store-logo svg { width: 46px; height: 46px; }
.ap-tile .store-logo img { max-width: 52px; max-height: 52px; }
.ap-mono { display: grid; place-items: center; width: 58px; height: 58px; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.ap-name { font-size: 13.5px; font-weight: 700; line-height: 1.15; }
.ap-sub { font-size: 11.5px; opacity: .78; line-height: 1.1; }
.ap-state { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.ap-state.is-on { background: #4ade80; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 10px #4ade80; }
.ap-tile.is-preset, .ap-tile.is-custom { opacity: .88; }
.ap-tile.is-preset:hover, .ap-tile.is-custom:hover { opacity: 1; }
.ap-plus { position: absolute; top: 8px; right: 12px; font-size: 20px; font-weight: 600; opacity: .85; line-height: 1; }
.ap-section-collapsed { padding: 0 !important; margin: 0 !important; border: 0 !important; min-height: 0; }
.ap-section-collapsed > .form-section-head { display: none; }
.ap-dialog { max-width: min(640px, calc(100vw - 24px)); }
.ap-dialog .store-conn { margin: 0; }

/* ---------- Admin analytics ---------- */
.an-admin { --an-r: 20px; }
.an-admin .an-top { position: sticky; top: 0; z-index: 20; padding: 10px 0; margin-bottom: 18px; background: color-mix(in srgb, var(--bg, #0c0c0f) 88%, transparent); backdrop-filter: blur(10px); }
.an-admin .an-card { border-radius: var(--an-r); transition: border-color .2s ease, transform .2s ease; }
.an-admin a.an-card:hover { transform: translateY(-2px); border-color: rgba(74,116,255,.45); }
.an-admin .an-value { letter-spacing: -.02em; }
.an-admin .an-table tbody tr { transition: background .15s ease; }
.an-admin .an-table tbody tr:hover { background: rgba(255,255,255,.035); }
html[data-theme="light"] .an-admin .an-table tbody tr:hover { background: #f6f7fb; }
.an-admin .an-table thead th { position: sticky; top: 0; z-index: 1; }
.ax-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.ax-jump span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .5; margin-right: 4px; }
.ax-jump a { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: inherit; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background .15s, border-color .15s; }
.ax-jump a:hover { background: rgba(74,116,255,.16); border-color: rgba(74,116,255,.4); }
html[data-theme="light"] .ax-jump a { background: #f3f4f8; border-color: #e5e7ef; }
html { scroll-behavior: smooth; }
#an-streams, #an-sources, #an-map, #an-rank { scroll-margin-top: 76px; }
@media (max-width: 640px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } .an-admin .an-top { position: static; } }

/* API connections: the page sections are two-column by default; tiles need the full width */
#stores.form-section, #partners.form-section { display: block !important; }
#stores > .form-section-head, #partners > .form-section-head { max-width: 760px; margin-bottom: 4px; }
#stores .ap-grid, #partners .ap-grid { margin-top: 20px; }
#stores form > .row { margin-top: 4px; }
#stores .notice { margin-top: 6px; }
/* sidebar icons (duotone set) */
.icon-nx { flex: none; }

/* Release page: artist cards with profile picture / initial avatar */
.rd-artist.rd-artist-av { display: flex; align-items: center; gap: 14px; }
.rd-artist-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-av { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.rd-av-ph { display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #7ea0ff; background: #1a2342; box-shadow: inset 0 0 0 1px rgba(110,140,255,.25); }
html[data-theme="light"] .rd-av-ph { color: #2f4bb8; background: #e4eaff; box-shadow: inset 0 0 0 1px rgba(47,75,184,.2); }
