/* Profile + Team (+ small shared helpers). Theme tokens only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pre-line { white-space: pre-line; margin: 0; }
.section-t { margin: 8px 0 -4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.alert.good { background: var(--good-bg); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.btn.warn { background: var(--pending-bg); color: var(--pending); border-color: color-mix(in srgb, var(--pending) 40%, transparent); }
.kv { display: flex; gap: 12px; align-items: baseline; }
.kv > .sub { width: 90px; flex: none; }

.av.lg { width: 56px; height: 56px; font-size: 18px; }
img.av { object-fit: cover; background: var(--hover); }
a.me-row { color: inherit; border-radius: 10px; padding: 4px; margin: -4px; }
a.me-row:hover, a.me-row.on { background: var(--hover); }

.grad-name { background: linear-gradient(90deg, var(--g1), var(--g2), var(--g1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-move 6s linear infinite; font-weight: 800; }
@keyframes grad-move { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .grad-name { animation: none; } }

.profile-head { display: flex; align-items: center; gap: 18px; padding: 18px; }
.profile-name { font-size: 20px; font-weight: 800; }
.avatar-edit { position: relative; flex: none; }
.avatar-edit .av.lg { width: 72px; height: 72px; font-size: 22px; }
.avatar-btn { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); cursor: pointer; }
.avatar-btn:hover { border-color: var(--accent); color: var(--accent); }
.avatar-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar-busy { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 11px; color: var(--muted); }

input.color { width: 34px; height: 26px; padding: 0; border: 1px solid var(--border-2); border-radius: 6px; background: var(--panel); cursor: pointer; }
.link-row, .block-row { display: grid; gap: 8px; align-items: center; }
.link-row { grid-template-columns: 140px minmax(0, 1fr) auto; }
.block-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto auto auto; }

.theme-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.theme-btn:hover { border-color: var(--muted-2); color: var(--text); }
.theme-btn.on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent); }
.theme-sw { display: inline-flex; border-radius: 5px; overflow: hidden; border: 1px solid var(--border-2); }
.theme-sw i { width: 9px; height: 16px; }
.theme-sw i:nth-child(1) { background: var(--bg); }
.theme-sw i:nth-child(2) { background: var(--surface); }
.theme-sw i:nth-child(3) { background: var(--accent); }

.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.shortcut { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
.key-input { width: 44px; text-align: center; text-transform: lowercase; padding: 0; font-family: ui-monospace, Consolas, monospace; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.team-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.team-card.is-hidden { opacity: .6; }
.team-open { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.team-open:hover .strong { text-decoration: underline; text-underline-offset: 3px; }
.team-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.team-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.team-admin { border-top: 1px dashed var(--border-2); padding-top: 10px; }
.sm-num { width: 80px; height: 30px; }
.resp-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

@media (max-width: 700px) {
  .block-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .block-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .link-row input:first-child { grid-column: 1 / -1; }
}

/* Problems */
.h1 { margin: 0; font-size: 22px; font-weight: 800; }
.stat { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 90px; }
.stat b { font-size: 20px; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prob-block.critical { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.prob-item { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.prob-item:last-child { border-bottom: 0; }
.prob-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tid { color: var(--accent); font-weight: 800; }
.issue { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); font-size: 13px; flex-wrap: wrap; }
.issue .ico { color: var(--pending); flex: none; }
.issue.critical { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: var(--bad-bg); color: var(--bad); }
.issue.critical .ico { color: var(--bad); }
.issue.muted { opacity: .6; }
.issue-actions { display: inline-flex; gap: 6px; align-items: center; }
.sm-date { width: 150px; height: 30px; }
.cond-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 700px) { .cond-row { grid-template-columns: minmax(0, 1fr) auto; } .cond-row select, .cond-row input:nth-of-type(2) { grid-column: 1 / -1; } }
.nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--bad-bg); color: var(--bad); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tabs .nav-badge { margin-left: 6px; }

/* Tasks */
.good-text { color: var(--good); }
.struck { text-decoration: line-through; color: var(--muted); }
.task-row { gap: 12px; }
.task-link { display: flex; flex-direction: column; gap: 2px; color: inherit; min-width: 0; }
.task-link:hover .strong { text-decoration: underline; text-underline-offset: 3px; }
.task-title { font-size: 16px; }
.w-auto { width: auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 260px; overflow: auto; }
.picker-list button { width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--hover); }
.chip-x { border: 0; background: none; color: inherit; padding: 0; margin-left: 2px; cursor: pointer; display: inline-flex; }
.chip-x .ico { width: 12px; height: 12px; }
.reply { padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.reply.from-artist { border-color: color-mix(in srgb, var(--info) 45%, transparent); background: var(--info-bg); }

/* Dashboard + My Queue */
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-feed { position: relative; min-height: 420px; }
.dash-feed > .card { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dash-feed .feed { flex: 1; min-height: 0; overflow-y: auto; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } .dash-feed { min-height: 0; } .dash-feed > .card { position: static; } .dash-feed .feed { max-height: 480px; } }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: inherit; }
.tile:hover { border-color: var(--border-2); background: var(--hover); }
.tile b { font-size: 26px; font-weight: 800; }
.tile span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.tile.bad b { color: var(--bad); }
.phase-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--panel); gap: 2px; }
.phase-seg { min-width: 4px; }
.ph-setup { background: var(--muted-2); }
.ph-contract { background: var(--info); }
.ph-distribution { background: var(--pending); }
.ph-release { background: var(--accent); }
.ph-done { background: var(--good); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow: auto; }
.feed a { color: var(--text); }
.feed a:hover { color: var(--accent); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.note-actions { gap: 12px; }
.queue-row { color: inherit; }
.queue-row:hover { background: var(--hover); }
.note a { color: var(--accent); font-weight: 600; }

/* Guide (styles follow the old page) */
.guide-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.guide { max-width: 760px; }
.guide h1 { margin: 0 0 6px; font-size: 24px; }
.guide .lede { color: var(--muted); font-size: 14px; margin: 8px 0 30px; max-width: 64ch; line-height: 1.6; }
.guide h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 40px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.guide h3 { font-size: 16px; margin: 24px 0 6px; color: var(--text); }
.guide details { margin: 10px 0; }
.guide details summary { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
.guide details summary::-webkit-details-marker { display: none; }
.guide details summary::before { content: "▸ "; color: var(--muted-2); }
.guide details[open] summary::before { content: "▾ "; }
.guide p { font-size: 14px; line-height: 1.65; color: var(--text-2); margin: 0 0 10px; max-width: 66ch; }
.guide p.who { color: var(--accent); font-size: 12px; margin: 0 0 6px; }
.guide .also { color: var(--muted); }
.guide .also strong { color: var(--text-2); font-weight: 600; }
.guide li { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 4px 0; }
.guide .tabs-list { margin: 6px 0 10px; padding-left: 0; list-style: none; }
.guide .tabs-list li { color: var(--muted); padding-left: 16px; position: relative; }
.guide .tabs-list li::before { content: "-"; position: absolute; left: 0; color: var(--muted-2); }
.guide.rtl .tabs-list li { padding-left: 0; padding-right: 16px; }
.guide.rtl .tabs-list li::before { left: auto; right: 0; }
.guide a { color: var(--accent); }

/* Calendar + Updates */
.cal-nav { align-items: center; }
.cal-month { min-width: 130px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 6px; }
.cal-d { min-height: 104px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-d.out { opacity: .45; }
.cal-d.fri { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cal-d.today { box-shadow: 0 0 0 2px var(--accent); }
.cal-n { font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-r { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-r:hover { background: var(--accent); color: var(--accent-text); }
.cal-r.off { background: var(--hover); color: var(--muted); cursor: not-allowed; }
@media (max-width: 800px) { .cal { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; } .cal-r { white-space: normal; } }
.upd { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }

/* Artists */
.tbl tr.clickable { cursor: pointer; }
.tbl tr.expand > td { background: var(--panel); padding: 16px 18px; }
.artist-details { display: flex; flex-direction: column; gap: 12px; }
.alert.warn { background: var(--pending-bg); color: var(--pending); border: 1px solid color-mix(in srgb, var(--pending) 35%, transparent); }
.chips button.chip { cursor: pointer; background: var(--surface); font: inherit; font-size: 11.5px; font-weight: 700; }
.artist-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* Contracts */
.signer { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.grow-input { flex: 1 1 220px; }
.btn.disabled { opacity: .6; pointer-events: none; }
.contract-row { padding: 8px 0; gap: 8px; }
.num-input { width: 90px; text-align: right; } .tbl tfoot td { border-top: 2px solid var(--border-2); background: var(--panel); } .pdf-export { gap: 6px; }

/* TikTok Audio */
.clip-row { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.clip-row:last-child { border-bottom: 0; }
.clip-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.clip-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-slot { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border); font-size: 13px; }
.clip-slot a { color: var(--accent); display: inline-flex; gap: 4px; align-items: center; }
.clip-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 8px; }

/* Marketing Tool */
.with-basket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.creator-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.creator-card.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.creator-top { display: flex; gap: 10px; align-items: center; }
.creator-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.creator-foot > .select { width: 100%; }
.creator-actions { display: flex; gap: 6px; align-items: center; }
.ico-sep { flex: 1; }
.ico-btn { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px; line-height: 1; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; appearance: none; transition: border-color .12s, background .12s; }
.ico-btn:hover { background: var(--hover); border-color: var(--muted-2); }
.ico-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ico-btn.bad:hover { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: var(--bad-bg); }
.ico-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.ico-btn[data-tip]:hover::after, .ico-btn[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--panel); color: var(--text); border: 1px solid var(--border-2); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; z-index: 20; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.creator-actions .ico-btn:first-child[data-tip]:hover::after { left: 0; transform: none; }
.creator-actions .ico-btn:last-child[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.stars { color: #f5c518; letter-spacing: 1px; font-size: 13px; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.danger-text { color: var(--bad); }
.basket { width: 300px; position: sticky; top: 0; }
.avatars { display: inline-flex; }
.avatars .av { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.song-chip { height: auto; padding: 3px 4px 3px 10px; gap: 6px; }
.tiny-num { width: 56px; height: 24px; padding: 0 6px; font-size: 12px; }
.note-pre { margin: 0; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.invoice-doc { padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.invoice-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.invoice-brand { font-size: 20px; }
.invoice-no { align-items: flex-end; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
@media print { .side, .top, .no-print, .banner { display: none !important; } .invoice-doc { border: 0; } }
@media (max-width: 1000px) { .with-basket { grid-template-columns: minmax(0, 1fr); } .basket { width: auto; position: static; } }

/* Chats */
.chats-page { padding-bottom: 16px; }
.chat-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; min-height: 0; flex: 1; height: calc(100vh - 130px); }
.chat-list { display: flex; flex-direction: column; gap: 8px; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.chat-items { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; color: inherit; min-width: 0; }
.chat-item:hover { background: var(--hover); }
.chat-item.on { background: var(--accent-soft); }
.chat-item-top { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.chat-empty { padding: 10px; }
.chat-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.chat-head { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.chat-back { display: none; }
.chat-messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.center-self { align-self: center; }
.bubble { max-width: 72%; padding: 9px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.bubble.staff { align-self: flex-end; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bubble.system { align-self: center; background: transparent; border-style: dashed; }
.bubble-img { max-width: 260px; max-height: 260px; border-radius: 8px; display: block; }
.bubble-actions { display: flex; gap: 10px; }
.bubble-read { text-align: right; }
.composer { display: flex; flex-direction: column; gap: 6px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row textarea { flex: 1; }
.cover-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 800px) {
  .chat-shell { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat-shell.open .chat-list { display: none; }
  .chat-shell:not(.open) .chat-main { display: none; }
  .chat-back { display: inline-flex; }
  .bubble { max-width: 90%; }
}

/* Ticket file uploads: one progress row per file (ticket-upload.js) */
.up-list { display: flex; flex-direction: column; gap: 6px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(80px, 1fr) minmax(70px, auto); gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.up-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.up-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .15s linear; }
.up-row.saving .up-fill { animation: up-pulse 1s ease-in-out infinite alternate; }
.up-row.done .up-fill { background: var(--good); }
.up-row.failed .up-fill { background: var(--bad); }
.up-row.failed .up-state { color: var(--bad); }
.up-row.done .up-state { color: var(--good); }
.up-state { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes up-pulse { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .up-row.saving .up-fill { animation: none; } }
@media (max-width: 640px) { .up-row { grid-template-columns: minmax(0, 1fr) auto; } .up-bar { grid-column: 1 / -1; } }
.rd-audio { margin: 2px 0 8px; }

/* Audio player (Ui/AudioPlayer.razor + js/player.js) */
.mp { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; padding: 6px 10px 6px 6px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); }
.mp audio { display: none; }
.mp-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--accent); color: var(--accent-text); }
.mp-btn:hover { filter: brightness(1.1); }
.mp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.mp .mp-i-pause, .mp.playing .mp-i-play { display: none; }
.mp.playing .mp-i-pause { display: block; }
.mp.mp-loading .mp-btn { opacity: .7; }
.mp.mp-error .mp-btn { background: var(--bad); }
.mp-time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.mp-seek { --mp-fill: 0%; flex: 1; min-width: 60px; height: 18px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.mp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--mp-fill), var(--border-2) var(--mp-fill)); }
.mp-seek::-moz-range-track { height: 4px; border-radius: 999px; background: var(--border-2); }
.mp-seek::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.mp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--text); border: 0; }
.mp-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.mp-seek:focus-visible { outline: none; }
.mp-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-soft); }
