:root {
  --bg: #111111; --bg2: #181614; --card: #1c1a17; --card2: #23201c;
  --cream: #F5F1E8; --dim: #b9b1a1; --mute: #7d766a;
  --gold: #C9A354; --gold-d: #9c7d3c; --sienna: #B2442A; --sage: #7A8B7A; --sage-b: #93a893;
  --line: rgba(245, 241, 232, .12); --line2: rgba(201, 163, 84, .35);
  --r: 14px; --accent: var(--gold);
  --serif: 'Cinzel', Georgia, serif; --sans: 'Jost', system-ui, sans-serif;
  color-scheme: dark;
}
body[data-app="guitar"] { --accent: var(--sage-b); }
body[data-app="perc"] { --accent: var(--sienna); }
body[data-app="voice"] { --accent: var(--sage-b); }
body[data-app="connect"] { --accent: var(--gold); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  color: var(--cream); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  min-height: 100dvh; display: flex; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #221d16 0%, var(--bg) 60%) fixed;
}
#app { width: 100%; max-width: 480px; min-height: 100dvh; position: relative; padding-bottom: 84px; }
#view { padding: 0 16px 24px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 2px 10px; }
.ic { width: 22px; height: 22px; flex: none; }
.gold { color: var(--gold); } .sienna { color: var(--sienna); } .sage { color: var(--sage-b); } .muted { color: var(--mute); } .dim { color: var(--dim); }
.small { font-size: 12.5px; } .center { text-align: center; } .mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .spread { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stack > * + * { margin-top: 10px; }
.sigil { width: 100%; height: 100%; }
.hidden { display: none !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 10px 6px; margin: 0 -16px 6px; padding-inline: 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.brandmark { text-align: center; line-height: 1.1; }
.brandmark .t { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: .18em; }
.brandmark .s { display: block; font-size: 10.5px; letter-spacing: .5em; color: var(--accent); text-transform: uppercase; margin-top: 3px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); background: none; border: 0; cursor: pointer; }
.iconbtn:hover { color: var(--cream); background: var(--card); }
.iconbtn-wrap { display: flex; justify-content: flex-end; }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20;
  display: flex; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 4px 8px; border-top: 2px solid transparent; }
.tabbar a.on { color: var(--accent); }

/* Cards */
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: relative; }
.card.gold-b { border-color: var(--line2); }
.card h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.card .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 86px; cursor: pointer; transition: border-color .2s, transform .1s; }
.tile:hover { border-color: var(--line2); } .tile:active { transform: scale(.98); }
.tile .ic { width: 28px; height: 28px; color: var(--accent); }
.tile span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.list-item + .list-item { margin-top: 8px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 500; }
.list-item .sub { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate { display: flex; gap: 12px; align-items: center; border-color: var(--line2); }
.link { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 16px; border: 1px solid var(--line2);
  background: transparent; color: var(--gold); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; width: 100%; transition: filter .15s, background .15s; }
.btn:hover { background: rgba(201, 163, 84, .08); }
.btn.primary { background: linear-gradient(180deg, #d4b065, var(--gold)); color: #19140b; border: 0; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.sienna { border-color: rgba(178, 68, 42, .6); color: #e0765a; }
.btn.sage { border-color: rgba(122, 139, 122, .6); color: var(--sage-b); }
.btn.sm { padding: 8px 10px; font-size: 11px; width: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chip.on { border-color: var(--accent); color: var(--accent); background: rgba(147, 168, 147, .08); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; background: none; color: var(--gold); cursor: pointer; }
.round .ic { width: 28px; height: 28px; }

/* Inputs */
.field { display: block; }
.field > span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #141210; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--line2); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #333; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--cream); transition: .2s; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(20px); }

/* Big numbers */
.big { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: .02em; }
.mid { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.stat { text-align: center; padding: 10px 6px; }
.stat b { display: block; font-family: var(--serif); font-size: 22px; }
.stat span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bar { height: 6px; background: #2a2723; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

/* Hub */
.hero { text-align: center; padding: 26px 0 8px; }
.hero .sig { width: 70px; height: 70px; margin: 0 auto 10px; color: var(--gold); }
.hero h1 { font-size: 34px; letter-spacing: .24em; }
.hero .sub { font-family: var(--serif); letter-spacing: .6em; color: var(--gold); font-size: 13px; margin-top: 2px; }
.hero p { font-style: italic; color: var(--dim); margin-top: 10px; }
.appcard { display: flex; gap: 14px; align-items: center; padding: 16px; overflow: hidden; }
.appcard .glyph { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--gold); flex: none; background: radial-gradient(circle at 30% 20%, #2c261c, #15130f); }
.appcard .glyph .ic { width: 28px; height: 28px; }
.appcard h3 { margin: 0 0 2px; font-size: 15px; }
.appcard p { font-size: 13px; color: var(--mute); }
.appcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); }
.badge { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--gold); }
.badge.beta { border-color: rgba(178, 68, 42, .6); color: #e0765a; }

/* Fretboard */
.fretwrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: thin; }
.fretboard { display: block; }
.fretboard .note { cursor: pointer; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* Tab */
pre.tab { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 12px; line-height: 1.35; overflow-x: auto; color: var(--cream); background: #141210; border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.dropzone { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 24px 14px; text-align: center; cursor: pointer; }
.dropzone.over { background: rgba(201, 163, 84, .06); }

/* Certificate */
.cert { background: #13110e; border: 1px solid var(--gold-d); outline: 1px solid var(--gold-d); outline-offset: -8px; border-radius: 6px; padding: 26px 20px; text-align: center; }
.cert .seal { width: 54px; height: 54px; margin: 0 auto 8px; color: var(--gold); }
.cert h1 { font-size: 26px; letter-spacing: .2em; color: var(--gold); }
.cert .kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; text-align: left; font-size: 12.5px; margin: 16px 0; }
.cert .kv b { color: var(--dim); font-weight: 400; }
.cert .hash { font-family: ui-monospace, monospace; font-size: 10.5px; word-break: break-all; }
.cert .qr { width: 110px; height: 110px; margin: 10px auto 0; background: var(--cream); padding: 6px; border-radius: 4px; }
.cert .qr img, .cert .qr svg { width: 100%; height: 100%; display: block; }

/* Percussion */
.seq { display: grid; gap: 6px; }
.seq .track { display: grid; grid-template-columns: 62px 1fr; gap: 6px; align-items: center; }
.seq .tname { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.seq .tname.muted-t { opacity: .35; text-decoration: line-through; }
.seq .steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.seq .step { aspect-ratio: 1 / 1.5; border-radius: 3px; background: #26231f; border: 0; cursor: pointer; padding: 0; }
.seq .step:nth-child(4n+1) { background: #2f2b26; }
.seq .step.on { background: var(--sienna); box-shadow: 0 0 8px rgba(178, 68, 42, .5); }
.seq .step.on.v1 { opacity: .6; }
.seq .step.now { outline: 1.5px solid var(--gold); }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.styles .tile.on { border-color: var(--sienna); background: linear-gradient(180deg, #2b1c17, var(--card)); }
.styles .tile .emoji { font-size: 26px; line-height: 1; filter: grayscale(.3); }
.pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, #3a2a22, #1b1714); display: grid; place-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; user-select: none; transition: transform .06s, box-shadow .1s; }
.pad.hit { transform: scale(.95); box-shadow: 0 0 24px rgba(178, 68, 42, .6) inset; border-color: var(--sienna); }
.drum { width: 150px; height: 150px; margin: 6px auto; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 45% 35%, #d9cbab, #a8987a 55%, #5f5442 72%, #2c261d 74%, #191612 80%); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 6px #1a1612, 0 0 0 7px var(--line2); color: #3b2e1e; }
.drum .sigil { width: 60px; height: 60px; }
.drum.hit { transform: scale(.97); }

/* Voice */
.dial { width: 220px; height: 220px; margin: 0 auto; position: relative; }
.dial svg { width: 100%; height: 100%; }
.dial .mid-t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.meter { position: relative; height: 54px; border-radius: 10px; background: #141210; border: 1px solid var(--line); overflow: hidden; }
.meter .zone { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: rgba(122, 139, 122, .18); }
.meter .needle { position: absolute; top: 6px; bottom: 6px; width: 4px; border-radius: 3px; background: var(--gold); left: 50%; transition: left .08s; transform: translateX(-2px); }
.meter .ticks { position: absolute; inset: auto 0 2px; display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); padding: 0 6px; }
.staff { width: 100%; height: 90px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.calendar .d { padding: 8px 0; border-radius: 8px; position: relative; }
.calendar .d.today { border: 1px solid var(--accent); }
.calendar .d.has::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.calendar .d.done { color: var(--accent); font-weight: 600; }
.calendar .hd { font-size: 10.5px; letter-spacing: .1em; color: var(--mute); }

/* Connect */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vtile { aspect-ratio: 4 / 3.4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); position: relative; background: radial-gradient(circle at 50% 40%, #2a241b, #121010); display: grid; place-items: center; }
.vtile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vtile .who { position: absolute; left: 8px; bottom: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.vtile .who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-b); }
.vtile .inst { position: absolute; left: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; background: rgba(0,0,0,.5); color: var(--gold); }
.vtile .inst .ic { width: 18px; height: 18px; }
.vtile .empty { color: var(--mute); font-size: 12px; text-align: center; padding: 10px; }
.rec { color: #e0765a; font-size: 12px; letter-spacing: .12em; display: flex; align-items: center; gap: 6px; }
.rec::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sienna); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mixer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strip { text-align: center; padding: 8px 4px; }
.strip input[type=range] { writing-mode: vertical-lr; direction: rtl; height: 110px; width: 26px; }
.strip .sm { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.strip .sm button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: none; font-size: 11px; cursor: pointer; }
.strip .sm button.on { background: var(--gold); color: #111; }
.chord-prog { display: flex; gap: 8px; font-family: var(--serif); font-size: 26px; color: var(--sage-b); justify-content: center; }
.chord-prog span { opacity: .45; transition: opacity .1s; } .chord-prog span.now { opacity: 1; }
.chat { max-height: 160px; overflow-y: auto; font-size: 13px; }
.chat p { padding: 3px 0; } .chat b { color: var(--gold); font-weight: 500; }

/* Premium */
.plan { padding: 18px; }
.plan.hl { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px rgba(201, 163, 84, .1); }
.plan ul { list-style: none; margin: 10px 0 14px; font-size: 13.5px; }
.plan li { padding: 3px 0 3px 20px; position: relative; color: var(--dim); }
.plan li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 5px; }
.price { font-family: var(--serif); font-size: 22px; color: var(--gold); }

/* Toast / overlay */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #2a2520; border: 1px solid var(--line2); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; opacity: 0; transition: .25s; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.progress-ring { width: 90px; height: 90px; }
.spin { animation: spin 1.4s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login { padding-top: 40px; }
.login .sig { width: 90px; height: 90px; margin: 0 auto; color: var(--gold); }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 20px 0 16px; }
.tabs2 button { background: none; border: 0; padding: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs2 button.on { color: var(--sage-b); border-color: var(--sage-b); }

@media print {
  body { background: #fff !important; color: #000; display: block; }
  #app { max-width: none; padding: 0; }
  .topbar, .tabbar, .no-print, .toast { display: none !important; }
  .cert { background: #fff; color: #111; border-color: #9c7d3c; }
  .cert h1, .cert .seal { color: #9c7d3c; }
  pre.tab { background: #fff; color: #000; border: 0; font-size: 11pt; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- Keys / Bass / DJ ---------- */
body[data-app="keys"] { --accent: var(--gold); }
body[data-app="bass"] { --accent: var(--sienna); }
body[data-app="dj"] { --accent: var(--gold); }
.keywrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: thin; }
.piano { --kw: 36px; --bw: 24px; position: relative; display: flex; height: 150px; width: calc(var(--n) * var(--kw)); min-width: 100%; user-select: none; touch-action: none; }
.piano .wk { flex: 0 0 var(--kw); height: 100%; background: linear-gradient(180deg, #e9e3d4, #f5f1e8 80%, #d8d0bd); border: 1px solid #2a2520; border-radius: 0 0 6px 6px; position: relative; cursor: pointer; }
.piano .wk span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 10px; color: #5a5246; }
.piano .bk { position: absolute; top: 0; width: var(--bw); height: 62%; background: linear-gradient(180deg, #2a2520, #111); border-radius: 0 0 4px 4px; z-index: 2; cursor: pointer; box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.piano .wk.scale { background: linear-gradient(180deg, #cfdccf, #e3ebe1); }
.piano .wk.tonic { background: linear-gradient(180deg, #e4b3a3, #f1d2c6); }
.piano .bk.scale { background: linear-gradient(180deg, #4f604f, #2b352b); }
.piano .bk.tonic { background: linear-gradient(180deg, #8f3a24, #5a2213); }
.piano .wk.hl { background: linear-gradient(180deg, #d4b065, var(--gold)); }
.piano .bk.hl { background: linear-gradient(180deg, #d4b065, #9c7d3c); }
.deck canvas.wave { width: 100%; height: 60px; background: #141210; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; display: block; }
.deck .vu { width: 10px; height: 28px; background: #26231f; border-radius: 3px; position: relative; overflow: hidden; margin-left: 8px; flex: none; }
.deck .vu i { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: linear-gradient(0deg, var(--sage-b) 60%, var(--gold) 85%, var(--sienna)); }
.deck input[type=range] { flex: 1; min-width: 0; }

/* Nombres de acordes: Cinzel no tiene minúsculas (Am se vería AM) */
.chord-prog, .chordtxt { font-family: var(--sans) !important; font-weight: 500; letter-spacing: 0; }

/* ============ Deshumanizando el Arte · extensión IA (magenta discreto) ============ */
:root { --ai: #D81B7A; --ai-soft: rgba(216, 27, 122, .14); --ai-line: rgba(216, 27, 122, .45); }
body[data-app="da"] { --accent: var(--gold); background: radial-gradient(900px 500px at 50% -10%, #241a1c 0%, var(--bg) 60%) fixed, repeating-radial-gradient(circle at 50% 30%, rgba(255,255,255,.012) 0 1px, transparent 1px 4px); }
.ai-t { color: var(--ai); }
.da-s { color: var(--ai) !important; letter-spacing: .32em !important; font-size: 9.5px !important; }
.da-mini { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.da-hero { text-align: center; padding: 6px 0 14px; }
.da-hero .da-logo { width: 120px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.da-hero h1 { font-size: 21px; letter-spacing: .14em; margin-top: 8px; }
.da-hero p { color: var(--gold); font-size: 11.5px; letter-spacing: .38em; text-transform: uppercase; margin: 6px 0 10px; }
.da-emb { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 8px; }
.da-emb::before, .da-emb::after { content: ''; height: 1px; width: 70px; background: var(--line2); }
.da-emb img { width: 30px; opacity: .9; }
.badge.da-badge { border-color: var(--ai-line); color: #e46aa8; }
.da-hubcard { border-color: var(--ai-line); box-shadow: inset 0 0 0 1px rgba(216,27,122,.08), 0 0 24px rgba(216,27,122,.06); }
.da-hubcard::after { border-color: var(--ai-line) !important; }
.da-glyph { background: radial-gradient(circle at 30% 20%, #2a1d22, #120f10) !important; border-color: var(--ai-line) !important; }
.da-glyph img { width: 40px; height: 40px; object-fit: contain; }
.da-tile { min-height: 104px; }
.da-tile .ic { color: var(--gold); width: 32px; height: 32px; }
.da-tile.ai { border-color: var(--ai-line); box-shadow: inset 0 -3px 0 var(--ai); }
.da-tile.ai .ic { color: var(--ai); }
.btn.da-cta { background: linear-gradient(180deg, #d4b065, var(--gold)); color: #19140b; border: 0; font-weight: 600; box-shadow: 0 0 0 1px var(--ai-line), 0 6px 22px rgba(216,27,122,.18); }
.btn.da-cta:hover { filter: brightness(1.06); }
.btn.da-rec { border-color: var(--ai-line); color: #e46aa8; }
.chip.ai { border-color: var(--ai); color: #f0a6cb; background: var(--ai-soft); }
.da-human { border-color: rgba(122,139,122,.4); }
.da-carousel { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.da-pc { flex: 0 0 132px; padding: 10px; }
.da-pc .title { font-size: 13px; margin: 8px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-cover { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, hsl(var(--h) 70% 38% / .55), #141012 62%), repeating-radial-gradient(circle, #1b1718 0 2px, #121012 2px 4px); background-size: cover; background-position: center; border: 1px solid var(--line); font-family: var(--serif); font-size: 26px; color: var(--cream); cursor: pointer; }
.da-cover.big { width: 104px; flex: none; }
.da-release { display: flex; gap: 14px; align-items: center; }
.da-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
.da-bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.da-bars i { display: block; width: 70%; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--ai), rgba(216,27,122,.45)); }
.da-bars span { font-size: 10px; color: var(--mute); text-transform: uppercase; }
.da-player { border-color: var(--line2); }
.da-title { background: none; border: 0; font-family: var(--serif); font-size: 19px; color: var(--cream); width: 70%; padding: 0; outline: none; letter-spacing: .04em; }
.da-wave { width: 100%; height: 64px; margin-top: 10px; fill: var(--ai); opacity: .85; }
.da-player audio { width: 100%; margin-top: 8px; height: 36px; }
.da-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.da-steps span { font-size: 10px; text-align: center; padding: 6px 2px; border-top: 2px solid #2a2622; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.da-steps span.on { border-color: var(--gold); color: var(--cream); }
.da-lyrics { white-space: pre-wrap; font-family: var(--sans); font-size: 13px; color: var(--dim); margin-top: 8px; max-height: 160px; overflow: auto; }
.da-ring { position: relative; width: 210px; height: 210px; margin: 6px auto 10px; }
.da-ring svg { width: 100%; height: 100%; }
.da-ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.da-ring-t b { font-family: var(--serif); font-size: 46px; line-height: 1; }
.da-ring-t span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.da-ring-t em { font-size: 11px; color: var(--mute); font-style: normal; margin-top: 3px; max-width: 120px; }
.da-meter { display: flex; gap: 12px; align-items: center; }
.da-meter > span .ic { width: 22px; height: 22px; }
.da-q { padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; font-size: 13.5px; }
.da-check { padding: 9px 0; border-bottom: 1px solid var(--line); }
.da-check.ok b { color: var(--sage-b); } .da-check.warn b { color: var(--gold); } .da-check.bad b { color: #e0765a; }
.da-plat { cursor: pointer; } .da-plat input { width: 20px; height: 20px; accent-color: var(--gold); }
.da-top .s { letter-spacing: .32em; }
@media print { .da-ring-t span { color: #9c7d3c; } .da-bars i, .da-ring circle { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* ============ Ritual Connect · marketplace (tarjetas crema, CTA salvia) ============ */
body[data-app="connect"] { --accent: var(--sage-b); }
.mk-head .t { font-size: 18px !important; }
.mk-head .s { letter-spacing: .12em !important; text-transform: none !important; font-size: 11px !important; color: var(--sage-b) !important; }
.mk-insts { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.mk-ic { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mk-ic span { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid #cfc6b3; display: grid; place-items: center; color: var(--cream); }
.mk-ic.on { color: var(--sage-b); } .mk-ic.on span { background: #8fa384; color: #1b1a14; border-color: #8fa384; }
.mk-card { position: relative; background: linear-gradient(180deg, #f1e9d8, #e7dcc4); color: #1d1a15; border-radius: 12px; padding: 14px; margin-top: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); overflow: hidden; }
.mk-top { display: flex; gap: 12px; align-items: flex-start; }
.mk-av { border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: #f5f1e8; background: radial-gradient(circle at 35% 30%, hsl(var(--h) 30% 42%), hsl(var(--h) 25% 16%)); }
.mk-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: #1d1a15; }
.mk-inst { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #3d382f; }
.mk-rate { font-size: 12.5px; margin-top: 4px; color: #3d382f; }
.mk-stars { color: #c79a3c; letter-spacing: 1px; } .mk-stars.big { font-size: 28px; cursor: pointer; } .mk-stars.big .off { color: #6b6357; }
.mk-tag { flex: none; background: var(--gold); color: #1b160c; font-family: var(--serif); font-weight: 700; font-size: 20px; padding: 6px 8px 14px; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); line-height: 1.1; margin: -14px 0 0; }
.mk-tag small { display: block; font-family: var(--sans); font-size: 8.5px; letter-spacing: .1em; font-weight: 500; text-transform: uppercase; }
.mk-genres { font-size: 14px; margin-top: 8px; color: #2b271f; }
.mk-meta { font-size: 10.5px; letter-spacing: .14em; color: #4a4439; margin-top: 6px; line-height: 1.6; }
.mk-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 8px; }
.mk-slot { border: 1px solid #6b6252; border-radius: 99px; padding: 3px 9px; font-size: 11px; letter-spacing: .06em; color: #2b271f; white-space: nowrap; }
.mk-cta { background: #4f6b4a; color: #f5f1e8; border-radius: 8px; padding: 10px 16px; font-family: var(--serif); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.mk-demo { position: absolute; left: 10px; bottom: 6px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #7a705f; }
.mk-card .mk-demo { position: static; margin-top: 8px; }
.mk-course { flex: 0 0 170px; padding: 10px; }
.mk-cv { aspect-ratio: 16/10; border-radius: 8px; display: grid; place-items: center; color: var(--cream); background: radial-gradient(circle at 50% 40%, hsl(var(--h) 30% 30%), #141210 70%); border: 1px solid var(--line); margin-bottom: 8px; }
.mk-cv.big { aspect-ratio: 16/8; }
.mk-course .title { font-size: 13px; line-height: 1.3; }
.mk-become { border-color: rgba(122,139,122,.5); }
.mk-plan ul { list-style: none; font-size: 12px; color: var(--dim); margin: 8px 0; } .mk-plan li::before { content: '✦ '; color: var(--gold); font-size: 9px; }
.mk-svc { cursor: pointer; }
.mk-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 130px; align-items: end; }
.mk-bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mk-bars i { width: 100%; min-height: 2px; border-radius: 2px 2px 0 0; background: #6f826f; } .mk-bars i.cur { background: var(--gold); }
.mk-bars span { font-size: 9px; color: var(--mute); text-transform: capitalize; }
.mk-row { border-bottom: 1px solid var(--line); margin: 0 !important; }
.mk-row:last-child { border-bottom: 0; }
.mk-ri { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--cream); flex: none; }
.mk-count { background: var(--gold); color: #1b160c; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.mk-impact { display: flex; gap: 14px; align-items: center; border-color: var(--line2); }
.mk-impact .ic { width: 44px; height: 44px; }
.mk-avail { display: grid; gap: 4px; }
.mk-avail > div { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.mk-avail b { width: 34px; flex: none; font-size: 11px; color: var(--dim); font-weight: 500; }
.mk-avail button { flex: 0 0 auto; width: 32px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: none; font-size: 11px; cursor: pointer; }
.mk-avail button.on { background: #6f826f; border-color: #6f826f; color: #111; }

/* ============ Backing tracks ============ */
body[data-app="jam"] { --accent: var(--gold); }
.jam-stage { border-color: var(--line2); }
.jam-chord { font-size: 46px; line-height: 1.05; color: var(--cream); }
.jam-next { font-size: 24px; color: var(--mute); }
.jam-beats { display: flex; gap: 8px; }
.jam-beats i { flex: 1; height: 6px; border-radius: 3px; background: #2a2622; transition: background .05s; }
.jam-beats i.on { background: var(--gold); }
.jam-prog { display: flex; flex-wrap: wrap; gap: 6px; }
.jam-prog span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.jam-prog span.now { border-color: var(--gold); color: var(--cream); background: rgba(201,163,84,.12); }
.jam-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.jam-notes span { min-width: 46px; text-align: center; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); font-size: 18px; }
.jam-notes span.ct { border-color: var(--gold); color: var(--gold); background: rgba(201,163,84,.1); }
.jam-grid .row { gap: 3px; margin-top: 4px; }
.jam-grid i { flex: 1; height: 16px; border-radius: 3px; background: #26231f; }
.jam-grid i.o { background: #6f826f; } .jam-grid i.x { background: var(--sienna); }
