/* Cardioteca — papel de ECG, rojo arterial / azul venoso */
:root {
  --bg: #FBF3F1;
  --panel: #FFFCFB;
  --panel-2: #F6E9E6;
  --ink: #2A1114;
  --muted: #86686C;
  --line: #EBD5D1;
  --art: #B3172B;
  --art-ink: #FFFFFF;
  --art-soft: #F8DEE1;
  --ven: #2B5D8E;
  --ven-soft: #DDE9F4;
  --amber: #B8701A;
  --amber-soft: #F6E6CF;
  --grid: rgba(179, 23, 43, .05);
  --grid-2: rgba(179, 23, 43, .105);
  --focus: #2B5D8E;
  --radius: 14px;
  --radius-sm: 10px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #150C0F;
  --panel: #1E1216;
  --panel-2: #291920;
  --ink: #F7E9E6;
  --muted: #B39499;
  --line: #3A252B;
  --art: #FF6477;
  --art-ink: #2A0A10;
  --art-soft: #3C1B22;
  --ven: #7DB3E8;
  --ven-soft: #1A2B3D;
  --amber: #E9A44C;
  --amber-soft: #3A2A14;
  --grid: rgba(255, 100, 119, .045);
  --grid-2: rgba(255, 100, 119, .1);
  --focus: #7DB3E8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15.5px/1.55 var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── layout ───────── */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 20px 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 8px; }
.brand__mark { width: 34px; height: 34px; color: var(--art); flex: none; }
.brand__name { font: 400 29px/1 var(--serif); letter-spacing: -.01em; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--muted); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__link svg { width: 20px; height: 20px; flex: none; }
.nav__link:hover { background: var(--panel-2); color: var(--ink); }
.nav__link[aria-current="page"] { background: var(--art-soft); color: var(--art); }
.nav__badge {
  margin-left: auto; min-width: 22px; padding: 0 7px; text-align: center;
  font-size: 12.5px; font-weight: 600; line-height: 20px; border-radius: 999px;
  background: var(--panel-2); color: var(--ink);
}
.nav__link[aria-current="page"] .nav__badge { background: var(--art); color: var(--art-ink); }

.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monitor { position: relative; height: 74px; border-radius: var(--radius-sm); background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.monitor canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.monitor__bpm { position: absolute; right: 10px; top: 6px; font-size: 12.5px; font-weight: 600; color: var(--art); font-variant-numeric: tabular-nums; }
.sync { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 20px; }
.sync__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.sync[data-s="saved"] .sync__dot { background: var(--ven); }
.sync[data-s="saving"] .sync__dot { background: var(--amber); }
.sync[data-s="error"] .sync__dot { background: var(--art); }

.main { padding: 44px clamp(24px, 5vw, 64px) 80px; max-width: 1240px; width: 100%; outline: none; }

/* ───────── controls ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--art); border-color: var(--art); color: var(--art-ink); }
.btn--primary:hover { background: var(--art); filter: brightness(1.08); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn--danger { color: var(--art); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--danger:hover { color: var(--art); background: var(--art-soft); }

.field {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.field::placeholder { color: var(--muted); opacity: .8; }
.field:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
textarea.field { resize: vertical; min-height: 84px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
button.chip:hover { color: var(--ink); background: var(--panel-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ───────── page headers ───────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.ph h1 { font: 400 clamp(40px, 5vw, 60px)/1 var(--serif); letter-spacing: -.015em; }
.ph p { color: var(--muted); margin-top: 8px; max-width: 54ch; }
.ph__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__head h2 { font: 400 27px/1.1 var(--serif); }
.link { font-size: 14px; font-weight: 600; color: var(--art); text-decoration: none; }
.link:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 18px 4px; }
.empty strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }

/* ───────── inicio ───────── */
.hero { position: relative; margin: -4px 0 32px; }
.hero__trace { position: relative; height: 150px; margin: 0 calc(-1 * clamp(24px, 5vw, 64px)); }
.hero__trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero h1 { font: 400 clamp(52px, 7.4vw, 96px)/.95 var(--serif); letter-spacing: -.02em; }
.hero p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.hero p b { color: var(--ink); font-weight: 600; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--radius); margin-bottom: 24px;
  background: var(--ink); color: var(--bg);
}
.cta-card h2 { font: 400 26px/1.15 var(--serif); }
.cta-card p { opacity: .75; margin-top: 4px; max-width: 52ch; }
.cta-card .btn { background: var(--art); border-color: var(--art); color: var(--art-ink); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-col { display: grid; gap: 20px; }

/* ───────── pendientes ───────── */
.score { font: 400 clamp(56px, 7vw, 88px)/.9 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.score small { font-size: .45em; color: var(--muted); margin-left: 4px; }
.datenav { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.datenav__label { font-weight: 600; padding: 0 6px; text-transform: capitalize; min-width: 7ch; text-align: center; }
.bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 6px 0 22px; }
.bar > i { display: block; height: 100%; background: var(--art); border-radius: inherit; transition: width .35s cubic-bezier(.3, .8, .3, 1); }
.bar[data-full="1"] > i { background: var(--ven); }
.tadd { display: flex; gap: 10px; margin-bottom: 14px; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.titem {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.titem__text { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; }
.titem__edit { flex: 1; min-width: 0; }
.titem[data-done="1"] .titem__text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--art); text-decoration-thickness: 1.5px; }
.titem__actions { display: flex; opacity: 0; transition: opacity .15s; }
.titem:hover .titem__actions, .titem:focus-within .titem__actions { opacity: 1; }
@media (hover: none) { .titem__actions { opacity: 1; } }
.check {
  width: 26px; height: 26px; border-radius: 50%; flex: none; padding: 0;
  border: 2px solid var(--line); background: transparent; display: grid; place-items: center;
  color: transparent; transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.check:hover { border-color: var(--art); }
.check svg { width: 15px; height: 15px; }
.check[aria-checked="true"] { background: var(--ven); border-color: var(--ven); color: #fff; transform: scale(1.04); }
.tfoot { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.hist { margin-top: 40px; }
.hist h2 { font: 400 27px/1.1 var(--serif); margin-bottom: 14px; }
.hist__row { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 110px; }
.hist__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; }
.hist__col i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--panel-2); min-height: 4px; }
.hist__col[data-has="1"] i { background: var(--art); }
.hist__col[data-full="1"] i { background: var(--ven); }
.hist__col[aria-current="date"] { color: var(--ink); font-weight: 700; }
.hist__col:hover i { filter: brightness(.92); }

/* ───────── biblioteca ───────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 10px; font-size: 14.5px; }
.crumbs button { background: none; border: 0; padding: 4px 6px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.crumbs button:hover { color: var(--ink); background: var(--panel-2); }
.crumbs button[aria-current="page"] { color: var(--ink); font-weight: 600; cursor: default; background: none; }
.crumbs span { color: var(--muted); opacity: .6; }
.lib-tools { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.lib-tools .field { max-width: 360px; }
.sec-title { font: 400 24px/1.1 var(--serif); margin: 6px 0 12px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 30px; }
.folder {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 16px 14px; border-radius: 4px var(--radius) var(--radius) var(--radius);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--art);
  transition: transform .15s, border-color .15s;
}
.folder::before {
  content: ""; position: absolute; left: -1px; top: -13px; width: 54px; height: 11px;
  background: var(--art); border-radius: 6px 6px 0 0; opacity: .9;
}
.folder:nth-child(3n+2) { border-top-color: var(--ven); }
.folder:nth-child(3n+2)::before { background: var(--ven); }
.folder:hover { transform: translateY(-2px); border-color: var(--muted); }
.folder__name { font: 400 22px/1.15 var(--serif); overflow-wrap: anywhere; }
.folder__meta { font-size: 13px; color: var(--muted); }
.folder__tools { position: absolute; right: 6px; top: 8px; display: flex; opacity: 0; transition: opacity .15s; }
.folder:hover .folder__tools, .folder:focus-within .folder__tools { opacity: 1; }
@media (hover: none) { .folder__tools { opacity: 1; } }
.folder__open { position: absolute; inset: 0; background: none; border: 0; border-radius: inherit; }
.folder__tools { z-index: 1; }

.files { display: grid; gap: 6px; }
.frow {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel);
}
.frow:hover { border-color: var(--muted); }
.frow { position: relative; }
.frow__open { all: unset; cursor: pointer; display: block; max-width: 100%; }
.frow__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.frow__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.frow__actions { position: relative; z-index: 1; }
.frow__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__sub { color: var(--muted); font-size: 13px; }
.frow__size, .frow__date { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.frow__actions { display: flex; opacity: 0; transition: opacity .15s; min-width: 80px; justify-content: flex-end; }
.frow:hover .frow__actions, .frow:focus-within .frow__actions { opacity: 1; }
@media (hover: none) { .frow__actions { opacity: 1; } }
.ftype {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--panel-2); color: var(--muted);
}
.ftype[data-k="pdf"] { background: var(--art-soft); color: var(--art); }
.ftype[data-k="ppt"] { background: var(--amber-soft); color: var(--amber); }
.ftype[data-k="doc"], .ftype[data-k="img"] { background: var(--ven-soft); color: var(--ven); }
.dropzone-hint {
  position: fixed; inset: 0; z-index: 40; display: none; place-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px);
}
.dropzone-hint.is-on { display: grid; }
.dropzone-hint div {
  padding: 56px 72px; border: 2px dashed var(--art); border-radius: 22px; background: var(--panel);
  font: 400 34px/1.1 var(--serif); text-align: center;
}
.dropzone-hint small { display: block; font: 400 15px var(--sans); color: var(--muted); margin-top: 8px; }
.skeleton { height: 62px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--panel-2), var(--panel), var(--panel-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ───────── videos ───────── */
.vadd { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; margin-bottom: 26px; }
.stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 30px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage__info { display: grid; gap: 12px; }
.stage__info h2 { font: 400 28px/1.15 var(--serif); overflow-wrap: anywhere; }
.stage__row { display: flex; gap: 8px; flex-wrap: wrap; }
.vfilters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.vcard { position: relative; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 0; background: none; border: 0; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vcard:hover .vcard__thumb img { transform: scale(1.03); }
.vcard[aria-current="true"] .vcard__thumb { outline: 3px solid var(--art); outline-offset: 2px; }
.vcard__play {
  position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--art); color: var(--art-ink);
}
.vcard__play svg { width: 16px; height: 16px; margin-left: 2px; }
.vcard__seen { position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ven); color: #fff; }
.vcard__title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__tag { font-size: 13px; color: var(--muted); }
.vcard__x { position: absolute; right: 6px; top: 6px; opacity: 0; background: var(--panel); }
.vwrap { position: relative; }
.vwrap:hover .vcard__x, .vwrap:focus-within .vcard__x { opacity: 1; }
.vmini { display: grid; gap: 12px; }
.vmini__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; background: none; border: 0; padding: 0; text-decoration: none; }
.vmini__item img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.vmini__item b { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmini__item small { color: var(--muted); }

/* ───────── dialog, toasts, uploads ───────── */
.dlg { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--panel); color: var(--ink); width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.dlg::backdrop { background: rgba(20, 8, 12, .55); backdrop-filter: blur(2px); }
.dlg--wide { width: min(1080px, calc(100vw - 32px)); }
.dlg__body { padding: 26px; display: grid; gap: 16px; }
.dlg__body h2 { font: 400 30px/1.1 var(--serif); }
.dlg__body p { color: var(--muted); }
.dlg__actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 10px; margin-top: 4px; }
.dlg__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dlg__bar h2 { font: 600 15px var(--sans); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg__frame { width: 100%; height: min(76vh, 780px); border: 0; display: block; background: var(--panel-2); }
.dlg__note { padding: 60px 30px; text-align: center; color: var(--muted); }
.picklist { display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--art); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14.5px; animation: toast .25s ease-out; }
.toast[data-k="error"] { background: var(--art); color: var(--art-ink); }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
.upanel { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(340px, calc(100vw - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .4); }
.upanel h3 { font: 600 14px var(--sans); }
.up { display: grid; gap: 4px; font-size: 13.5px; }
.up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .bar { margin: 0; height: 4px; }

/* ───────── responsive ───────── */
@media (max-width: 960px) {
  .home-grid, .stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; }
  .brand__name { font-size: 25px; }
  .side__foot { margin: 0; flex-direction: row; align-items: center; }
  .side__foot .monitor, .side__foot .sync { display: none; }
  .nav {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line);
  }
  .nav__link { flex-direction: column; gap: 2px; padding: 6px 12px; font-size: 12.5px; position: relative; }
  .nav__badge { position: absolute; top: 0; right: 4px; margin: 0; }
  .main { padding-top: 26px; }
  .vadd { grid-template-columns: minmax(0, 1fr); }
  .frow { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .frow__size, .frow__date { display: none; }
  .hero__trace { height: 110px; }
  .upanel { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ───────── videos dentro de cada carpeta ───────── */
.vadd--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.vadd--folder { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 22px; }
select.field { appearance: none; padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.fvid { position: relative; margin-top: 34px; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ven); }
.fvid__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fvid__head .sec-title { margin: 0; overflow-wrap: anywhere; }
.fvid__count { font-size: 13px; color: var(--muted); }
.fvid .stage { margin-top: 4px; }
.stage__folder { display: grid; gap: 6px; }
.stage__folder label { font-size: 13px; color: var(--muted); }
.vcard__folder { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ven); }
.vcard__folder svg { width: 14px; height: 14px; }
.folder__vids { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 1px 8px 1px 6px; border-radius: 999px; font-weight: 600; font-size: 12px; color: var(--art); background: color-mix(in srgb, var(--art) 12%, transparent); }
.folder__vids svg { width: 10px; height: 10px; }
@media (max-width: 820px) { .vadd--3, .vadd--folder { grid-template-columns: minmax(0, 1fr); } .fvid { padding: 20px 16px; } }
