/* Agenda Artística — estilos (mobile-first, modo escenario oscuro + claro) */
:root {
  /* Paleta "tejido": colores de mochilas, polleras y patrones geométricos */
  --bg: #170d1f; --bg2: #1f1229; --card: #27162f; --card2: #33203f; --line: #4a2d55;
  --text: #fbf1e6; --muted: #c4abc3; --accent: #ff7a1a; --accent-ink: #1e0b00;
  --pink: #e6337a; --violet: #9b7bff; --turq: #13b5b1; --gold: #ffc93c; --indigo: #3b2e8f; --terra: #c8553d;
  --ok: #3ccf91; --warn: #ffb547; --bad: #ff5d6c; --wa: #25d366;
  --radius: 18px; --shadow: 0 12px 34px rgba(0,0,0,.28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --weave: url("../assets/patron.svg");
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf3e8; --bg2: #f3e5d3; --card: #fffaf3; --card2: #f8ecdc; --line: #ead6bf;
    --text: #2a1638; --muted: #7b5f70; --accent: #e0610f; --accent-ink: #fff;
    --shadow: 0 10px 26px rgba(90,40,30,.10); color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .6em; }
a { color: var(--accent); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: .86rem; } .mt { margin-top: 14px; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .center { text-align: center; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.left { text-align: left; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }

/* ---------- Estructura ---------- */
.shell { display: flex; min-height: 100vh; }
.side { display: none; }
.content { flex: 1; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.org { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.viewer select { max-width: 150px; }
.main { padding: 18px 16px 40px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.brand b { color: var(--accent); margin-left: 3px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; overflow-x: auto; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); scrollbar-width: none; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav a { flex: 1 0 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; color: var(--muted); text-decoration: none; font-size: .7rem; border-radius: 12px; position: relative; }
.bottom-nav a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.bottom-nav .ico { width: 22px; height: 22px; }
.badge { font-style: normal; background: var(--bad); color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px; }
.bottom-nav .badge { position: absolute; top: 2px; right: 14%; }
.bell { position: relative; } .bell .badge { position: absolute; top: -4px; right: -4px; }
.mobile-only { display: flex; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav, .mobile-only { display: none; }
  .side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; width: 240px; flex: none; padding: 22px 14px 30px; background: var(--bg2); border-right: 1px solid var(--line); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; }
  .side-nav a:hover { background: var(--card); color: var(--text); }
  .side-nav a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
  .side-nav .badge { margin-left: auto; }
  .main { padding: 28px 32px 60px; }
  .viewer select { max-width: 240px; }
}
.demo-banner { margin: 12px 16px 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--violet) 18%, var(--card)); font-size: .88rem; }

/* ---------- Controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--card); }
.btn.glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #06260f; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .84rem; }
select.btn { padding-right: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--card2); color: var(--text); }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0 4px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
input[type=checkbox] { width: auto; min-height: 0; }
input[type=color] { width: 44px; padding: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--muted); }
.field > span { font-weight: 600; }
.field small { font-size: .78rem; }
.field input, .field select, .field textarea, .field .voice-wrap { color: var(--text); font-size: .95rem; }
.full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; font-size: .86rem; color: var(--muted); }
.search { max-width: 520px; }
.voice-wrap { position: relative; display: flex; width: 100%; }
.voice-wrap > input, .voice-wrap > textarea { padding-right: 46px; }
.mic { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.mic:hover { color: var(--accent); background: var(--card2); }
.mic.rec { color: #fff; background: var(--bad); animation: pulse 1s infinite; }
.mic-big { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); margin: 10px auto; display: grid; place-items: center; }
.mic-big .ico { width: 40px; height: 40px; }
.mic-big.rec { background: var(--bad); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--bad) 25%, transparent); } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: 600 .86rem var(--font); cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg.wrap { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
button.chip { cursor: pointer; padding: 6px 12px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.xs { font-size: .7rem; padding: 1px 8px; }
.chip.ok, .st-confirmado { background: color-mix(in srgb, var(--ok) 18%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.warn, .st-pendiente { background: color-mix(in srgb, var(--warn) 18%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.st-no { background: color-mix(in srgb, var(--bad) 18%, var(--card)); }
.st-obs { background: color-mix(in srgb, var(--violet) 22%, var(--card)); }
.chip.soft { color: var(--muted); }
.chip.tag { background: color-mix(in srgb, var(--pink) 16%, var(--card)); }
.chip .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; padding: 0 0 0 2px; }
.chip.check input { margin: 0; }
.chip-select { width: auto; min-height: 36px; padding: 4px 8px; font-size: .82rem; font-weight: 600; border-radius: 999px; }
.gdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); }
.card.list { padding: 4px 0; } .card.list > * { padding: 12px 16px; } .card.list > * + * { border-top: 1px solid var(--line); }
.grid2, .grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: .9rem; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 16px; }
.empty img { opacity: .9; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--card2); border-left: 4px solid var(--violet); margin-bottom: 14px; font-size: .9rem; }

/* Hero con ilustración */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; margin-bottom: 18px; color: #fff; min-height: 200px;
  background: radial-gradient(120% 140% at 85% 0%, #5b2a86 0%, #2a1840 45%, #120e1b 100%); display: flex; align-items: center; }
.hero h1 { color: #fff; } .hero p { color: #e8dcff; } .hero .eyebrow { color: #ffc867; }
.hero-text { position: relative; z-index: 1; max-width: 560px; }
.hero-art { position: absolute; right: -20px; bottom: 0; height: 100%; max-height: 260px; opacity: .55; pointer-events: none; }
@media (min-width: 720px) { .hero { padding: 32px; min-height: 230px; } .hero-art { opacity: 1; right: 10px; } }
.hero.slim { min-height: 150px; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.kpi span { font-size: .8rem; color: var(--muted); } .kpi b { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; } .kpi small { color: var(--muted); font-size: .76rem; }
.kpi.hot { border-color: var(--bad); }

.ev-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.ev-card:hover { border-color: var(--accent); }
.datebox { flex: none; width: 54px; text-align: center; border-radius: 12px; padding: 6px 0; background: linear-gradient(160deg, var(--accent), #e2602b); color: #1b0d00; }
.datebox b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; } .datebox span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--bg2); margin: 8px 0 4px; }
.bar i { display: block; } .bar .ok { background: var(--ok); } .bar .obs { background: var(--violet); } .bar .no { background: var(--bad); }
.desc-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin: 4px 0 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.desc-box .ico { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.desc-box p { margin: 0; } .desc-box.sm { font-size: .9rem; margin: 0; }
.kv { display: flex; flex-direction: column; gap: 2px; } .kv span { color: var(--muted); font-size: .8rem; } .kv b { font-size: 1.05rem; } .kv small { color: var(--muted); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 6px 0 16px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: .82rem;
  background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; }
.avatar.lg { width: 50px; height: 50px; font-size: 1rem; } .avatar.xs { width: 26px; height: 26px; font-size: .66rem; vertical-align: middle; }
.person-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.person-row select { width: auto; min-width: 0; }
@media (max-width: 600px) { .person-row > select:not(.chip-select) { flex: 1 1 100%; } }
.conf { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; margin: 3px 6px 0 0; padding: 2px 8px; border-radius: 8px; }
.conf.interno { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.conf.externo { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.conf.personal { background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet); }
.conf.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.conf .ico { width: 14px; height: 14px; }
.pick-group { margin-bottom: 12px; } .pick-group legend { display: flex; align-items: center; gap: 8px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.pick input { margin-top: 4px; width: 18px; height: 18px; }
.people-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font: inherit; text-align: left; }
.person:hover, .inv-row:hover { border-color: var(--accent); }
.inv-row { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.qty-badge { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--card2); font-family: var(--display); font-size: 1.15rem; color: var(--accent); }

/* Checklist */
.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.check-row.done strong { text-decoration: line-through; color: var(--muted); }
.check-row select { width: auto; }
.qty { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.qty select { min-width: 64px; font-weight: 700; }
.tick { position: relative; display: inline-block; width: 28px; height: 28px; flex: none; }
.tick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.tick span { position: absolute; inset: 0; border-radius: 8px; border: 2px solid var(--line); background: var(--bg2); }
.tick input:checked + span { background: var(--ok); border-color: var(--ok); }
.tick input:checked + span::after { content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #062; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.progress { height: 8px; border-radius: 8px; background: var(--bg2); overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .3s; }
.setlist, .pickups, .plain { margin: 0; padding: 0; list-style: none; }
.setlist li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.setlist .num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--card2); font-weight: 700; font-size: .8rem; flex: none; }
.pickups { counter-reset: p; } .pickups li { counter-increment: p; padding: 6px 0; } .pickups li::before { content: counter(p); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #4aa3ff; color: #fff; font-size: .74rem; font-weight: 700; }
.pickups li.muted::before { display: none; }
.plain li { padding: 4px 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td input { min-height: 36px; padding: 6px 8px; min-width: 90px; }
details.card summary { cursor: pointer; list-style: none; gap: 10px; } details.card summary::-webkit-details-marker { display: none; }
details.card + details.card { margin-top: 12px; }
details[open] summary { margin-bottom: 10px; }
.log-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Alertas */
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; }
.alert.lv-alta { border-left-color: var(--bad); } .alert.lv-media { border-left-color: var(--warn); } .alert.lv-info { border-left-color: #4aa3ff; }
.alert-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card2); flex: none; }
.lv-alta .alert-ico { color: var(--bad); } .lv-media .alert-ico { color: var(--warn); } .lv-info .alert-ico { color: #4aa3ff; }

/* Estadísticas */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 10px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.stack-bar { flex: 1; width: 100%; max-width: 48px; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--bg2); }
.stack-bar i { display: block; width: 100%; }
.stack-bar .done, .sw.done { background: var(--accent); } .stack-bar .planned, .sw.planned { background: var(--violet); } .stack-bar .cancel, .sw.cancel { background: var(--bad); }
.chart b { font-size: .9rem; } .chart span { font-size: .74rem; color: var(--muted); text-transform: capitalize; }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.meter { display: inline-block; width: 70px; height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; margin-right: 8px; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--violet); } .meter.ok i { background: var(--ok); }

/* Mapa */
.route-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .route-grid { grid-template-columns: 340px 1fr; } }
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg2); z-index: 0; }
.map.sm { height: 260px; }
.map.picking, .map .picking { cursor: crosshair; outline: 3px solid var(--accent); }
.map-off { display: grid; place-items: center; height: 100%; color: var(--muted); }
.map-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font: 700 .8rem var(--font); box-shadow: 0 4px 10px rgba(0,0,0,.35); border: 2px solid #fff; }
.map-pin > * { transform: rotate(45deg); }
.map-pin.start { background: #22a06b; } .map-pin.end { background: #e5484d; } .map-pin.member { background: #4aa3ff; } .map-pin.muted { background: #7d7891; }
.map-pin.sm { display: inline-grid; width: 20px; height: 20px; font-size: .62rem; font-style: normal; border-width: 1px; vertical-align: middle; }
.leaflet-div-icon { background: none; border: 0; }
.leaflet-container { font-family: var(--font); }
.georesults { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.georow { text-align: left; border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .84rem; cursor: pointer; }
.georow:hover { border-color: var(--accent); }

/* WhatsApp cola */
.wa-progress { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; margin-bottom: 8px; }
.wa-progress div { height: 100%; background: var(--wa); transition: width .3s; }
.wa-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .wa-grid { grid-template-columns: 220px 1fr; } }
.wa-steps { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.wa-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .86rem; }
.wa-steps li:hover { background: var(--card2); }
.wa-steps .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.wa-steps .ok .dot { background: var(--wa); border-color: var(--wa); } .wa-steps .skip .dot { background: var(--muted); }
.wa-steps .skip { color: var(--muted); text-decoration: line-through; }
.wa-steps .now { background: color-mix(in srgb, var(--wa) 14%, transparent); font-weight: 700; } .wa-steps .now .dot { border-color: var(--wa); }
@media (max-width: 759px) { .wa-steps { flex-direction: row; overflow-x: auto; max-height: none; } .wa-steps li { white-space: nowrap; } }
.wa-card { display: flex; flex-direction: column; gap: 12px; }
.wa-to { display: flex; gap: 12px; align-items: center; }
#waText { font-size: .9rem; background: color-mix(in srgb, var(--wa) 6%, var(--bg2)); }

/* Modal y avisos */
dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog.wide { width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(8,5,15,.6); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 16px 18px 20px; }
@media (max-width: 600px) { dialog, dialog.wide { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; } }
.toasts { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { padding: 12px 16px; border-radius: 12px; background: #2b2540; color: #fff; box-shadow: var(--shadow); font-size: .9rem; transition: opacity .4s, transform .4s; border-left: 4px solid var(--accent); }
.toast.ok { border-left-color: var(--ok); } .toast.warn { border-left-color: var(--warn); }
.toast.out { opacity: 0; transform: translateY(10px); }
@media (max-width: 480px) { .org { display: none; } .viewer select { max-width: 170px; } }


/* ================== Identidad cultural ================== */
body { background:
  radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--pink) 14%, transparent), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--turq) 12%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
.weave { height: 14px; border-radius: 4px; background: var(--weave) repeat-x center / auto 14px; }
.topbar { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--weave) repeat-x center / auto 6px; opacity: .9; }
.side { background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 30%, var(--bg2)), var(--bg2) 40%); }
.side-nav a.on { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent); box-shadow: inset 3px 0 0 var(--accent); }
.hero { background: radial-gradient(120% 140% at 80% 0%, #8a2c6b 0%, #4b1d5c 40%, #1e0f2a 100%); padding-bottom: 40px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--weave) repeat-x center / auto 16px; }
.hero-art { max-height: 280px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff4f6d); border-color: transparent; color: #fff; }
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--pink), var(--accent), var(--gold), var(--turq)); }
.datebox { background: linear-gradient(160deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 60%, #2a1638)); color: #fff; }
.ev-card { border-left: 4px solid var(--c, var(--accent)); }
.chip.art { background: color-mix(in srgb, var(--c) 22%, var(--card)); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.modal-head { border-top: 6px solid transparent; border-image: var(--weave) 0 0 100% 0 / 0 0 6px 0 repeat; }
.mb { margin-bottom: 14px; } .right { text-align: right; } .center-row { justify-content: center; } .label { font-weight: 600; font-size: .86rem; color: var(--muted); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .dl dt { color: var(--muted); font-size: .85rem; } .dl dd { margin: 0; }

/* Mundo artístico */
.sector-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sector-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); transition: transform .15s; }
.sector-card:hover { transform: translateY(-3px); border-color: var(--c); }
.sector-card img { width: 100%; height: 150px; object-fit: contain; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); padding: 10px; }
.sector-card div { padding: 12px 16px 16px; border-top: 4px solid var(--c); display: flex; flex-direction: column; } .sector-card span { color: var(--muted); font-size: .8rem; }
.sector-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sector-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .85rem; }
.sector-mini img { width: 100%; max-width: 110px; aspect-ratio: 4/3; object-fit: contain; }
.sector-mini:hover { border-color: var(--c); }
.sector-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; margin-bottom: 8px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 35%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); }
.sector-hero img { width: 180px; max-width: 38%; margin-left: auto; }
.sector-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--weave) repeat-x center / auto 8px; }
.news-grid, .link-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news { display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--c); }
.news a { color: var(--text); text-decoration: none; } .news a:hover strong { color: var(--accent); }
.link-card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.link-ico, .law-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 25%, var(--card2)); font-weight: 800; color: var(--text); }
.law-row { display: flex; align-items: center; gap: 12px; } .law-row a { color: var(--text); text-decoration: none; } .law-row a:hover strong { color: var(--accent); }

/* Clientes, cobros */
.lead { border-left: 4px solid var(--c); }
.lead-nuevo { background: color-mix(in srgb, var(--pink) 25%, var(--card)); } .lead-ganado { background: color-mix(in srgb, var(--ok) 25%, var(--card)); } .lead-perdido { opacity: .7; }
.copybox { display: flex; gap: 8px; } .copybox input { font-size: .82rem; }
.qr { width: 220px; max-width: 100%; margin: 10px auto; background: #fff; padding: 10px; border-radius: 16px; } .qr svg { width: 100%; height: auto; display: block; }
.inv-borrador { } .inv-enviada { background: color-mix(in srgb, var(--warn) 22%, var(--card)); } .inv-pagada { background: color-mix(in srgb, var(--ok) 22%, var(--card)); } .inv-anulada { opacity: .6; text-decoration: line-through; }
.it-row { display: grid; grid-template-columns: 1fr 64px minmax(150px, 200px) 38px; gap: 6px; margin-top: 6px; align-items: start; }
@media (max-width: 600px) { .it-row { grid-template-columns: 64px 1fr 38px; } .it-row input[name=desc] { grid-column: 1 / -1; } }
.total-line { text-align: right; font-size: 1.1rem; margin-top: 10px; }

/* Marca */
.logo-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 18%, var(--card)), var(--card)); }
.logo-img { border-radius: 16px; object-fit: contain; background: #fff; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-logo { border: 2px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 6px; cursor: pointer; }
.pick-logo.on, .pal.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pal { display: flex; align-items: center; gap: 3px; border: 2px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 6px 8px; cursor: pointer; color: var(--text); font: 600 .78rem var(--font); }
.pal i { width: 14px; height: 22px; border-radius: 4px; display: block; } .pal span { margin-left: 4px; }
.phone-frame { margin: 0 auto; width: 300px; max-width: 100%; border-radius: 36px; padding: 10px; background: #0d0712; box-shadow: var(--shadow); }
.phone-screen { border-radius: 28px; overflow: hidden; background: #fbf3e8; max-height: 560px; overflow-y: auto; }

/* Tarjeta de presentación (también en tarjeta.html) */
.bcard { position: relative; padding: 0 18px 22px; text-align: center; color: #2a1638; font-family: var(--font); background: #fbf3e8; }
.bcard-band { height: 92px; margin: 0 -18px; background: linear-gradient(135deg, #8a2c6b, #ff7a1a); position: relative; }
.bcard-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: url("../assets/patron.svg") repeat-x center / auto 12px; }
.bcard-logo { margin: -50px auto 6px; width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); position: relative; overflow: hidden; }
.bcard-logo svg, .bcard-logo img { width: 92px; height: 92px; }
.bcard h1 { font-family: var(--display); font-size: 1.35rem; margin: 6px 0 2px; color: #2a1638; }
.bcard-slogan { margin: 0; color: #6b4b5c; } .bcard-city { margin: 2px 0 0; font-size: .82rem; color: #8a6d7b; }
.bcard-arts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.bcard-arts span { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 25%, #fff); color: #2a1638; }
.bcard-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.bcard.list .bcard-tiles { grid-template-columns: 1fr; }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 18px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--c); color: #fff; font: 600 .74rem var(--font); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .12s; }
.tile:active { transform: scale(.95); }
.tile.main { grid-column: 1 / -1; width: 100%; aspect-ratio: auto; flex-direction: row; padding: 14px; font-size: .95rem; }
.bcard.list .tile { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; padding: 12px 16px; font-size: .9rem; }
.cico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Socios y bitácora */
.partner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.partner-row input { width: 140px; min-height: 36px; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .money-grid div { background: var(--bg2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; } .money-grid span { color: var(--muted); font-size: .78rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 6px 0 10px 8px; font-size: .9rem; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.place-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg2); }

/* Cartelera */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.filters select { width: auto; }
.ce.promo { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 20%, var(--card)), var(--card)); border-color: var(--gold); }
.promo-chip { background: var(--gold); color: #2a1638; border-color: var(--gold); }
.map.tall { height: 560px; position: sticky; top: 80px; }
@media (max-width: 899px) { .map.tall { height: 320px; position: static; } }
.map-pin.home { background: #3b2e8f; } .map-pin.evt { background: #e6337a; } .map-pin.promo { background: #ffc93c; color: #2a1638; }
.plans { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; } @media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; }
.plan:has(input:checked) { border-color: var(--accent); } .plan.promo:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.plan span { font-size: .8rem; color: var(--muted); }
.pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--bg2); color: var(--text); text-decoration: none; font-size: .8rem; text-align: center; }
.more-grid .ico { width: 24px; height: 24px; color: var(--accent); }

/* ===== Ronda 4: footer, blog, perfil, publicidad, audio, cuentas ===== */
.app-footer { margin: 50px -16px -40px; padding: 18px 16px 24px; text-align: center; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 80%, transparent); }
@media (min-width: 900px) { .app-footer { margin: 60px -32px -60px; } }
.app-footer .weave { margin: -18px -16px 14px; border-radius: 0; height: 8px; background-size: auto 8px; }
.app-footer p { margin: 6px 0; } .app-footer b { color: var(--text); } .app-footer a { color: var(--muted); text-decoration: none; } .app-footer a:hover { color: var(--accent); }
.app-footer .visits span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.about { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 18px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 1.2fr 1fr; } }
.about-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .about-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.about-photos img:only-child { grid-column: 1 / -1; }
.about-add { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); text-decoration: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; position: relative; } .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg2); }
.photo-grid .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; width: 30px; height: 30px; }
.full-span { grid-column: 1 / -1; }
.guide { margin-bottom: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--turq) 18%, var(--card)), var(--card)); }
.guide-steps { margin: 6px 0 10px; padding-left: 20px; } .guide-steps li { margin: 4px 0; }
.manual summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; } .manual summary::-webkit-details-marker { display: none; }
.manual .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; flex: none; }
.manual p { margin: 10px 0 0 40px; }
.blog-zone { margin-top: 30px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 25%, var(--card)), var(--card)); border: 1px solid var(--line); }
.blog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 12px; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--c); }
.blog-card img { width: 100%; height: 150px; object-fit: cover; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
.blog-card img[src$=".svg"] { object-fit: contain; padding: 10px; }
.blog-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; } .blog-body h3 { margin: 0; }
.news-list { display: flex; flex-direction: column; } .news-list a { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; } .news-list a:hover { color: var(--accent); }
.poster { display: grid; place-items: center; min-height: 240px; } .poster-canvas { width: 100%; max-width: 420px; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.poster.story .poster-canvas { max-width: 300px; }
.player { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 18px; background: linear-gradient(120deg, #3b1d5e, #2a1638); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.4); border-top: 4px solid var(--accent); }
.player .icon-btn { color: #fff; } .player .muted { color: #d8c4e0; } .player-n { font-weight: 800; color: var(--gold); }
@media (min-width: 900px) { .player { bottom: 20px; } }
.rep-row { display: flex; align-items: center; gap: 8px; } .plain-btn { border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
.type-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit; cursor: pointer; }
.type .ico { width: 28px; height: 28px; color: var(--accent); } .type.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; align-items: center; gap: 8px; padding: 4px 0; font-size: .88rem; } .bar-row .meter { width: 100%; }

/* ===================================================================
   Ronda 5: aguamarina tipo gema + stickers + ambiente de arte total
   =================================================================== */
:root {
  --gem-ink: #032e29;
  --aqua-1: #b9fff3; --aqua-2: #4df5dc; --aqua-3: #14c9b0; --aqua-4: #08806f; --aqua-5: #034a41;
  --gem: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.85) 0 8%, rgba(255,255,255,0) 30%),
         radial-gradient(80% 60% at 80% 100%, rgba(3,74,65,.55), transparent 70%),
         linear-gradient(145deg, var(--aqua-1) 0%, var(--aqua-2) 28%, var(--aqua-3) 60%, var(--aqua-4) 100%);
  --glitter: radial-gradient(circle at 18% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 72% 22%, #fff 0 1.2px, transparent 2.4px),
             radial-gradient(circle at 40% 75%, #fff 0 .8px, transparent 1.8px), radial-gradient(circle at 86% 64%, #fff 0 1px, transparent 2px),
             radial-gradient(circle at 58% 48%, rgba(255,255,255,.9) 0 .7px, transparent 1.6px), radial-gradient(circle at 8% 80%, #fff 0 .9px, transparent 1.9px);
}


/* Gema aguamarina como joya dentro de la paleta de tejidos:
   destaca lo seleccionado; los botones conservan los tonos cálidos. */
.gem, .side-nav a.on, .bottom-nav a.on::before, .chip.on, .tick input:checked + span {
  background: var(--gem); color: var(--gem-ink);
}
.btn.primary { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.35);
  background: radial-gradient(120% 90% at 30% 10%, rgba(255,255,255,.45) 0 8%, transparent 32%), linear-gradient(135deg, #ff9a3d, var(--accent) 40%, #e6337a);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -5px 12px rgba(120,20,40,.35), 0 8px 20px rgba(230,51,122,.3); color: #fff; }
.btn.primary::after, .gem::after, .side-nav a.on::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--glitter); background-size: 60px 40px; mix-blend-mode: screen; opacity: .9; animation: sparkle 2.6s linear infinite; border-radius: inherit;
}
@keyframes sparkle { 0%, 100% { opacity: .35; background-position: 0 0; } 50% { opacity: 1; background-position: 6px -4px; } }
@media (prefers-reduced-motion: reduce) { .btn.primary::after, .gem::after, .side-nav a.on::after, .kpi::after, .stk { animation: none !important; } }
.btn.primary:hover { filter: brightness(1.08) saturate(1.1); }
.side-nav a.on { position: relative; overflow: hidden; color: var(--gem-ink) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px rgba(20,201,176,.35); }
.side-nav a.on .ico { color: var(--gem-ink); }
.bottom-nav a.on { color: var(--gem-ink); background: transparent; font-weight: 700; }
.bottom-nav a.on::before { content: ''; position: absolute; inset: 4px 10px; border-radius: 12px; z-index: -1; opacity: .9; }
.chip.on { border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.tick input:checked + span { border-color: var(--aqua-3); }
.tabs a.on { border-image: linear-gradient(90deg, var(--aqua-2), var(--aqua-4)) 1; color: var(--text); }
.kpi::before { background: linear-gradient(90deg, var(--pink), var(--accent), var(--gold), var(--aqua-2)); height: 5px; }
.kpi b { background: linear-gradient(160deg, var(--aqua-1), var(--aqua-2) 40%, var(--aqua-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) { .kpi b { background: linear-gradient(160deg, var(--aqua-3), var(--aqua-4) 60%, var(--aqua-5)); -webkit-background-clip: text; background-clip: text; } }
.brand b { background: var(--gem); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero { background: radial-gradient(60% 80% at 92% 10%, rgba(63,240,214,.45), transparent 60%), radial-gradient(120% 140% at 80% 0%, #8a2c6b 0%, #4b1d5c 40%, #1e0f2a 100%); }
.hero::before { content: ''; position: absolute; right: 22%; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--gem); filter: blur(.3px); opacity: .55;
  box-shadow: inset -12px -16px 30px rgba(3,74,65,.6), inset 10px 10px 30px rgba(255,255,255,.6), 0 0 60px rgba(63,240,214,.5); }

/* Confeti y banderines: rompe lo lineal */
body { background-image:
  radial-gradient(circle at 12% 18%, rgba(63,240,214,.18) 0 3px, transparent 4px), radial-gradient(circle at 78% 32%, rgba(230,51,122,.18) 0 3px, transparent 4px),
  radial-gradient(circle at 45% 70%, rgba(255,201,60,.16) 0 2.5px, transparent 3.5px), radial-gradient(circle at 90% 85%, rgba(255,122,26,.16) 0 3px, transparent 4px),
  radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--pink) 14%, transparent), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  background-size: 180px 180px, 220px 220px, 160px 160px, 240px 240px, auto, auto; }
.page-head { position: relative; padding-top: 30px; }
.page-head::before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; height: 34px; pointer-events: none; opacity: .95;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'%3E%3Cpath d='M0 4q60 18 120 0' stroke='%23a07' stroke-width='1.2' fill='none' opacity='.5'/%3E%3Cpath d='M6 7l6 18 6-16z' fill='%23e6337a'/%3E%3Cpath d='M30 11l6 18 6-17z' fill='%23ffc93c'/%3E%3Cpath d='M54 12l6 18 6-18z' fill='%233ff0d6'/%3E%3Cpath d='M78 11l6 18 6-17z' fill='%23ff7a1a'/%3E%3Cpath d='M102 8l6 18 6-17z' fill='%239b7bff'/%3E%3C/svg%3E") repeat-x left top / 120px 34px; }
.page-head .deco { display: flex; gap: 2px; margin-left: auto; align-self: center; }
.stk { display: inline-block; width: 58px; height: 58px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.28)); animation: bob 5s ease-in-out infinite; pointer-events: none; }
.stk svg { width: 100%; height: 100%; display: block; }
.deco .d0 { transform: rotate(-12deg); } .deco .d1 { transform: rotate(9deg) translateY(10px); animation-delay: -1.5s; } .deco .d2 { transform: rotate(-4deg) translateY(-6px); animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 600px) { .page-head .deco { position: absolute; right: 0; top: 14px; } .page-head .deco .stk { width: 40px; height: 40px; } .page-head .deco .d2 { display: none; } }
.has-stk { position: relative; overflow: visible; }
.stk.corner { position: absolute; top: -20px; width: 46px; height: 46px; z-index: 2; }
.stk.corner.r { right: -10px; transform: rotate(14deg); } .stk.corner.l { left: -12px; transform: rotate(-14deg); }
.map-host { position: relative; } .stk.map-stk { position: absolute; z-index: 500; right: -12px; top: -22px; width: 64px; height: 64px; transform: rotate(10deg); }
/* Cajas con ritmo: leve inclinación alternada, se enderezan al pasar */
.kpis .kpi:nth-child(odd), .sector-grid > :nth-child(3n+1), .link-grid > :nth-child(odd), .blog-grid > :nth-child(odd), .comm-grid > :nth-child(odd) { transform: rotate(-.7deg); }
.kpis .kpi:nth-child(even), .sector-grid > :nth-child(3n+2), .link-grid > :nth-child(even), .blog-grid > :nth-child(even), .comm-grid > :nth-child(even) { transform: rotate(.8deg); }
.kpi, .sector-card, .link-card, .blog-card, .comm-card { transition: transform .2s ease, box-shadow .2s; }
.kpi:hover, .sector-card:hover, .link-card:hover, .blog-card:hover, .comm-card:hover { transform: rotate(0) translateY(-3px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.card { border-radius: 20px 20px 20px 8px; }
.card:nth-of-type(even) { border-radius: 8px 20px 20px 20px; }
.ev-card .datebox { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px rgba(0,0,0,.25); transform: rotate(-3deg); }

/* Comunidad */
.comm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.comm-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--c, var(--accent)); }
.comm-card .stk-big { width: 70px; height: 70px; align-self: flex-end; margin: -40px -6px -10px 0; }
.comm-zone { margin-top: 30px; padding: 20px; border-radius: 22px 22px 22px 8px; position: relative;
  background: radial-gradient(70% 90% at 100% 0%, rgba(63,240,214,.22), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--pink) 18%, var(--card)), var(--card)); border: 1px solid var(--line); }
.post { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); } .post:last-child { border-bottom: 0; }
.post p { margin: 4px 0; }
.artist-card { display: flex; gap: 12px; align-items: flex-start; }
.tagline { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gem { position: relative; overflow: hidden; }
.bottom-nav a { isolation: isolate; }

.comm-zone h2 .stk, .blog-zone h2 .stk { width: 40px; height: 40px; vertical-align: middle; }
.post-stk { width: 40px; height: 40px; flex: none; animation: none; }
.post-title { margin: 6px 0 0; font-family: var(--display); font-size: 1.02rem; }
.post.kind-servicios, .post.kind-taller, .post.kind-reunion { background: linear-gradient(90deg, color-mix(in srgb, var(--aqua-2) 10%, transparent), transparent 60%); border-radius: 12px; padding-left: 8px; }
.kind-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kind-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text); }
.kind-opt { position: relative; } .kind-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-opt .stk { width: 40px; height: 40px; animation: none; }
.kind-opt:has(input:checked) { border-color: var(--aqua-3); background: color-mix(in srgb, var(--aqua-2) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aqua-2) 25%, transparent); }

/* ===== Calendario / agenda ===== */
.cal { padding: 16px; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-title { margin: 0; min-width: 180px; text-align: center; }
.icon-btn.flip .ico { transform: scaleX(-1); }
.cal-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 8px; font-size: .88rem; color: var(--muted); }
.cal-stats b { color: var(--text); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: 96px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.cal-day:hover { border-color: var(--aqua-3); }
.cal-day.out { opacity: .4; }
.cal-day.busy { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg2)), var(--bg2)); }
.cal-day.today .cal-n { background: var(--gem); color: var(--gem-ink); box-shadow: 0 0 12px rgba(63,240,214,.6); }
.cal-day.sel { outline: 2px solid var(--aqua-2); outline-offset: 1px; }
.cal-n { align-self: flex-start; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: .85rem; }
.cal-chip { display: block; font-size: .7rem; line-height: 1.25; padding: 2px 5px; border-radius: 6px; background: color-mix(in srgb, var(--c) 28%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.t-personal { background: transparent; border: 1px dashed var(--c); border-left-width: 3px; }
.cal-chip.t-bloqueo { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent) 0 4px, transparent 4px 8px); }
.cal-more { font-size: .7rem; color: var(--muted); }
@media (max-width: 700px) {
  .cal-day { min-height: 54px; padding: 4px; } .cal-chip { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border: 0; background: var(--c); }
  .cal-chip b { display: none; } .cal-more { font-size: .62rem; }
}
.cal-grid.mini .cal-day { min-height: 34px; padding: 2px; align-items: center; justify-content: center; border-radius: 8px; }
.cal-grid.mini .cal-n { min-width: 22px; height: 22px; font-size: .74rem; align-self: center; }
.cal-dots { display: flex; gap: 2px; justify-content: center; } .cal-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-quarter { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cal-qmonth h4 { text-transform: capitalize; margin: 0 0 6px; font-family: var(--display); }
.cal-qsum { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: .8rem; color: var(--muted); } .cal-qsum b { color: var(--text); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 800px) { .cal-week { grid-template-columns: 1fr; } }
.cal-wcol { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); min-height: 160px; position: relative; }
.cal-wcol.today { border-color: var(--aqua-3); box-shadow: 0 0 0 2px color-mix(in srgb, var(--aqua-2) 30%, transparent); }
.cal-wcol.sel { outline: 2px solid var(--aqua-2); }
.cal-whead { display: flex; align-items: baseline; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
.cal-whead span { text-transform: uppercase; font-size: .72rem; color: var(--muted); font-weight: 700; } .cal-whead b { font-family: var(--display); font-size: 1.3rem; }
.cal-witem { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, var(--card)); border-left: 4px solid var(--c); color: var(--text); text-decoration: none; font-size: .8rem; cursor: pointer; }
.cal-witem.t-personal { background: var(--card); border: 1px dashed var(--c); border-left: 4px solid var(--c); }
.cal-witem b { font-size: .72rem; color: var(--muted); }
.cal-free { margin: 4px 0; }
.cal-add { margin-top: auto; align-self: flex-end; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.cal-add:hover { color: var(--aqua-2); border-color: var(--aqua-2); }
.cal-dayp { margin-top: 12px; border-left: 4px solid var(--aqua-3); }
.cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cal-row .cal-time { min-width: 86px; font-weight: 700; display: flex; flex-direction: column; color: var(--c); } .cal-row .cal-time small { color: var(--muted); font-weight: 500; }

/* ===== Contratación y finanzas ===== */
.steps-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.steps-line span { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; }
.steps-line b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gem); color: var(--gem-ink); font-size: .75rem; }
.prop-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.prop-aceptada { background: color-mix(in srgb, var(--ok) 22%, var(--card)); } .prop-enviada { background: color-mix(in srgb, var(--warn) 22%, var(--card)); }
.date-block { padding: 12px 0; border-top: 1px dashed var(--line); } .date-block:first-of-type { border-top: 0; }
.opt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 10px; }
.opt-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); border-top: 5px solid var(--turq); }
.opt-card:nth-child(2) { border-top-color: var(--accent); } .opt-card:nth-child(3) { border-top-color: var(--pink); } .opt-card:nth-child(4) { border-top-color: var(--gold); }
.opt-card.chosen { box-shadow: 0 0 0 3px var(--aqua-2); }
.opt-name { font-weight: 700; } .opt-items { list-style: none; margin: 0; padding: 0; font-size: .85rem; } .opt-items li { padding: 2px 0; }
.opt-items .x { border: 0; background: none; color: var(--muted); cursor: pointer; }
.opt-value { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); } .opt-total { font-family: var(--display); font-size: 1.3rem; color: var(--accent); }
.opt-add { display: grid; place-items: center; gap: 6px; min-height: 160px; border: 2px dashed var(--line); border-radius: 16px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.opt-add:hover { border-color: var(--aqua-2); color: var(--aqua-2); }
.cond { padding: 8px 0; border-top: 1px solid var(--line); } .cond textarea { margin-top: 6px; } .cond:not(.on) { opacity: .7; }
.sched td input { min-height: 34px; padding: 4px 6px; } .mini-check { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: .8rem; } .nowrap { white-space: nowrap; }
.goal { height: 14px; border-radius: 10px; background: var(--bg2); overflow: hidden; margin: 8px 0; } .goal div { height: 100%; background: var(--gem); box-shadow: 0 0 12px rgba(63,240,214,.5); }
.goal.warn div { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.fin-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 10px; }
.fin-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.fin-chart .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.fin-chart i { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; display: block; min-height: 1px; } .fin-chart .inc { background: var(--aqua-3); } .fin-chart .exp { background: var(--pink); }
.fin-chart span { font-size: .7rem; color: var(--muted); }
.mv-row { display: flex; align-items: center; gap: 10px; } .mv-k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; flex: none; }
.mv-k.k-ingreso { background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); } .mv-k.k-compra, .mv-k.k-gasto { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.table.book td, .table.book th { text-align: right; font-size: .82rem; } .table.book td:first-child, .table.book td:nth-child(2) { text-align: left; } .table.book tr.has { background: color-mix(in srgb, var(--aqua-2) 8%, transparent); }
.small-t td, .small-t th { font-size: .8rem; padding: 4px 6px; } tr.hl { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Cajas de valores con operaciones (calc.js) ---------- */
.val-wrap { display: inline-grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 4px; align-items: center; width: 100%; min-width: 0; }
.val-wrap .money-in { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fx-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--muted);
  font: italic 600 15px/1 Georgia, serif; cursor: pointer; padding: 0; }
.fx-btn.on { background: var(--gem); color: var(--gem-ink); border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--aqua-3) 30%, transparent); }
.fx-res { grid-column: 1 / -1; font-size: .78rem; text-align: right; color: var(--aqua-3); font-weight: 700; min-height: 0; }
.fx-res:empty { display: none; }
.fx-res.bad { color: #ff6b6b; }
.qty .val-wrap, .opt-value .val-wrap { width: 190px; }
.calc-tip { font-size: .78rem; color: var(--muted); }
.calc-tip code { background: var(--card2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Foto de perfil (profile.js) ---------- */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--card2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--aqua-3) 55%, transparent); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 92px; height: 92px; font-size: 1.6rem; }
.pf-edit { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.pf-edit p { margin: 4px 0 8px; }
.pf-edit .row input { min-height: 38px; padding: 6px 10px; }
@media (max-width: 520px) { .pf-edit { flex-direction: column; align-items: center; text-align: center; } }
.lb-add { display: grid; grid-template-columns: 76px 150px minmax(200px, 1fr) 110px minmax(170px, 210px) auto; gap: 8px; align-items: end; margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: var(--card2); }
.lb-add .full { grid-column: 1 / -1; margin: 0; }
.lb-add .btn { min-height: 44px; }
@media (max-width: 900px) { .lb-add { grid-template-columns: 1fr 1fr; } .lb-add .lb-concept { grid-column: 1 / -1; } .lb-add .btn { grid-column: 1 / -1; } }

/* ---------- IVA y retenciones (impuestos.js) ---------- */
.tax-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--card2) 60%, transparent); }
.tax-box summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tax-on { margin: 10px 0; font-weight: 600; }
.tax-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.tax-grid .full2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .tax-grid { grid-template-columns: 1fr; } }
.tax-t { margin-top: 12px; } .tax-t td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tax-t .plus td { color: var(--aqua-3); } .tax-t .minus td { color: #ff8a8a; }
.tax-t .tot td, .tax-t .neto td { border-top: 2px solid var(--line); } .tax-t .neto td { font-size: 1.05rem; color: var(--text); }
.tax-notes { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.tax-inv { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tax-inv .field { min-width: 220px; } .tax-inv .btn { align-self: end; }
.tax-gross { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--aqua-3) 12%, transparent); }
.tax-gross p { margin: 4px 0; }

/* ---------- Normas de la comunidad (normas.js) ---------- */
[hidden] { display: none !important; }
.rules-box { margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--aqua-3) 45%, transparent); background: color-mix(in srgb, var(--aqua-3) 10%, transparent); }
.rules-box.warn { border-color: #ffc93c; background: color-mix(in srgb, #ffc93c 14%, transparent); }
.rules-box.bad { border-color: #ff6b6b; background: color-mix(in srgb, #ff6b6b 14%, transparent); color: var(--text); }
.normas section { margin-bottom: 14px; } .normas h3 { margin: 0 0 6px; } .normas li { margin: 4px 0; } .normas-v { color: var(--muted); font-size: .8rem; }
.normas-sum { list-style: none; padding: 0; } .normas-sum li { margin: 6px 0; }
.hidden-post { padding: 10px; border: 1px dashed var(--line); border-radius: 12px; }
.rep-btn { opacity: .75; } .rep-btn:hover { opacity: 1; }

/* ---------- Repositorio de contratación (views-repositorio.js) ---------- */
.sec-t { font-size: 1.15rem; margin: 0; }
.pk-grid, .ci-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.pk-card { display: flex; flex-direction: column; gap: 4px; }
.pk-card.sel { outline: 2px solid var(--aqua-3); box-shadow: 0 0 0 5px color-mix(in srgb, var(--aqua-3) 18%, transparent); }
.pk-pick { font-size: 1.02rem; }
.ci-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ci-card:hover { border-color: var(--aqua-3); }
.ci-parts, .opt-items .parts { color: var(--muted); line-height: 1.4; }
.ci-parts .ext, .opt-items .parts .ext { color: #ffc93c; font-style: normal; }
.opt-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.opt-items li > span { flex: 1; }
.opt-items .parts { flex-basis: 100%; font-size: .76rem; padding-left: 14px; }
.pk-bring { width: 100%; min-height: 36px; padding: 6px 8px; font-size: .82rem; }
.short { padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, #ffc93c 15%, transparent); color: var(--text); }
.part-row, .ext-row { display: grid; gap: 6px; margin-top: 6px; align-items: start; }
.part-row { grid-template-columns: minmax(0, 1fr) 80px 38px; }
.ext-row, .ext-head { display: grid; grid-template-columns: minmax(0, 1.4fr) 64px minmax(150px, 1fr) minmax(0, 1fr) 38px; gap: 6px; }
.ext-head { margin-top: 4px; }
@media (max-width: 640px) { .ext-row { grid-template-columns: 1fr 64px 38px; } .ext-row [name=xCost], .ext-row .val-wrap, .ext-row [name=xNote] { grid-column: 1 / -1; } .ext-head { display: none; } }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.start-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.start-opt:hover { border-color: var(--aqua-3); } .start-ico { font-size: 1.8rem; }
.imp-tabs a { cursor: pointer; }
.imp-list { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-right: 4px; }
.imp-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.imp-row:has(input:checked) { border-color: var(--aqua-3); background: color-mix(in srgb, var(--aqua-3) 10%, transparent); }
.imp-row input { width: auto; min-height: 0; margin-top: 3px; }
.imp-cat { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
