/* Artist-facing pages: portal sign-in, My Releases, chats, public release / cover links. Uses the theme tokens. */
.portal-wrap { max-width: 980px; margin: 0 auto; padding: 44px 20px 70px; display: flex; flex-direction: column; gap: 18px; }
.portal-brand { font-weight: 800; letter-spacing: .06em; font-size: 14px; text-align: center; margin-bottom: 18px; }
.portal-brand { justify-content: center; }
.portal-brand span { color: var(--accent); }
.portal-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 22px 24px; }
.portal-card.narrow { width: 440px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.portal-card h1, .portal-head h1 { font-size: 22px; margin: 0; }
.portal-wrap .sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; line-height: 1.5; }
.portal-link { font-size: 13px; color: var(--muted); }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.portal-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.portal-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); margin: 18px 0 0; }
.portal-empty { color: var(--muted-2); font-size: 13.5px; border: 1px dashed var(--border-2); border-radius: 16px; padding: 28px; text-align: center; }
.support-toggle { position: relative; }
.support-toggle > summary { list-style: none; }
.support-toggle > summary::-webkit-details-marker { display: none; }
.support-form { position: absolute; right: 0; top: 46px; width: 360px; max-width: 86vw; z-index: 5; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.release-list { display: flex; flex-direction: column; gap: 14px; }
.release-top { display: flex; justify-content: space-between; gap: 14px; }
.release-name { font-size: 17px; font-weight: 700; }
.release-date { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.release-artists { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.release-key { font-size: 11px; color: var(--muted-2); font-family: ui-monospace, monospace; margin-bottom: 14px; }
.release-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.btn.good { background: var(--good); color: #0b1a10; border-color: transparent; }
.btn.disabled { opacity: .45; cursor: not-allowed; }
.chip.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-bg); }
.support-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 14px 20px; }
.support-row:hover { border-color: var(--accent); color: var(--text); }
.portal-chats { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.thread-list { display: flex; flex-direction: column; gap: 4px; padding: 10px; max-height: 72vh; overflow: auto; }
.thread-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13px; }
.thread-row:hover { background: var(--hover); color: var(--text); }
.thread-row.active { background: var(--accent-soft); }
.thread-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot.new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chat-pane { padding: 0; overflow: hidden; }
.achat { display: flex; flex-direction: column; height: 72vh; min-height: 420px; }
.achat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.achat-head > div:first-child { flex: 1; min-width: 0; }
.achat-title { font-weight: 700; }
.achat-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.achat-more { align-self: center; }
.abubble-row { display: flex; }
.abubble-row.mine { justify-content: flex-end; }
.abubble { max-width: min(560px, 80%); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px; display: flex; flex-direction: column; gap: 5px; }
.abubble-row.mine .abubble { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.abubble-meta { font-size: 11px; color: var(--muted); }
.abubble-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.abubble-deleted { font-style: italic; color: var(--muted-2); font-size: 13px; }
.abubble-img { max-width: 100%; max-height: 360px; border-radius: 10px; }
.abubble audio { width: 280px; max-width: 100%; }
.abubble-tools { display: flex; gap: 10px; }
.abubble-seen { font-size: 10.5px; color: var(--muted-2); text-align: right; min-height: 0; }
.abubble-seen:empty { display: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.linkish:hover { color: var(--accent); }
.achat-error { margin: 0 18px; }
.achat-compose { border-top: 1px solid var(--border); padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.achat-compose-row { display: flex; align-items: center; gap: 10px; }
.achat-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-input { font-size: 20px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .portal-chats { grid-template-columns: 1fr; }
  .thread-list { max-height: 30vh; }
  .achat { height: 70vh; }
}
.support-row.plain { padding: 6px 0; border-bottom: 1px solid var(--border); }
.support-row.plain:last-child { border-bottom: 0; }
.alert.good { background: var(--good-bg); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.stack-2 { display: flex; flex-direction: column; gap: 2px; }
/* Chat message formatting (same as the staff side) */
.md-h1, .md-h2, .md-h3 { display: inline-block; font-weight: 750; margin: 4px 0 2px; }
.md-h1 { font-size: 1.35em; } .md-h2 { font-size: 1.2em; } .md-h3 { font-size: 1.07em; }
.abubble-text code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; padding: 1px 5px; border-radius: 5px; background: var(--bg); border: 1px solid var(--border); }
