
@font-face{font-family:Chillax;src:url(/static/fonts/chillax-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Chillax;src:url(/static/fonts/chillax-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"General Sans";src:url(/static/fonts/general-sans-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"General Sans";src:url(/static/fonts/general-sans-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"General Sans";src:url(/static/fonts/general-sans-600.woff2) format("woff2");font-weight:600;font-display:swap}
:root{color-scheme:light;
  --ground:#F4F3FA;--surface:#EAE8F5;--surface-2:#DFDCF0;--ink:#15142B;--muted:#4D4B70;
  --indigo:#4245C4;--purple:#7436C6;--cyan:#0B76B8;--accent:#1F5FD1;--on-accent:#FFFFFF;--link:#1F5FD1;
  --action:var(--ink);--on-action:var(--ground);--danger:#A3263A;--danger-bg:#F6DDE1;
  --k-resource:var(--indigo);--k-tutorial:var(--cyan);--k-recipe:var(--purple);--k-idea:#C9C4EA;--k-other:#D6D3E6;
  --on-k-resource:#fff;--on-k-tutorial:#fff;--on-k-recipe:#fff;--on-k-idea:var(--ink);--on-k-other:var(--ink);
  --sweep:linear-gradient(90deg,#18B8F5,#2878F4 28%,#7840E8 58%,#C936D6 86%,#F044B8);--pill:6px;--r:10px;--maxw:1920px;--logo-light:block;--logo-dark:none;
  --display:Chillax,ui-sans-serif,system-ui,sans-serif;--text:"General Sans",ui-sans-serif,system-ui,sans-serif;
  --step-small:.8125rem;--step-body:clamp(.9375rem,.9rem + .15vw,1rem);
  --step-lead:clamp(1.0625rem,1rem + .3vw,1.25rem);--step-head:clamp(1.75rem,1.3rem + 1.4vw,2.5rem);
  --step-display:clamp(2rem,1.4rem + 1.9vw,3rem);
  --margin:clamp(16px,2.4vw,40px)}
:root[data-theme=dark]{color-scheme:dark;--ground:#0E0E1C;--surface:#17172C;--surface-2:#21213C;--ink:#EDECFA;--muted:#B0AED3;--indigo:#8387F6;--purple:#B68BF6;--cyan:#4CC3F7;--accent:#86ADFF;--on-accent:#06142E;--link:#8DB4FF;--danger:#FF9C8F;--danger-bg:#3A1C25;--k-idea:#3A3762;--k-other:#2B2A45;--on-k-resource:#0E0E1C;--on-k-tutorial:#04202E;--on-k-recipe:#160B2A;--logo-light:none;--logo-dark:block;}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--ground:#0E0E1C;--surface:#17172C;--surface-2:#21213C;--ink:#EDECFA;--muted:#B0AED3;--indigo:#8387F6;--purple:#B68BF6;--cyan:#4CC3F7;--accent:#86ADFF;--on-accent:#06142E;--link:#8DB4FF;--danger:#FF9C8F;--danger-bg:#3A1C25;--k-idea:#3A3762;--k-other:#2B2A45;--on-k-resource:#0E0E1C;--on-k-tutorial:#04202E;--on-k-recipe:#160B2A;--logo-light:none;--logo-dark:block;}}
*{box-sizing:border-box}
html{background:var(--ground);color:var(--ink);font:400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing:antialiased;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body{margin:0;min-height:100svh}
.shell{max-width:var(--maxw);margin:0 auto;min-height:100svh;display:flex;flex-direction:column}
main{flex:1}
a{color:var(--link);text-underline-offset:3px}
h1,h2,h3{font-family:var(--display);font-weight:500;letter-spacing:-.02em;line-height:1.1;margin:0;text-wrap:balance}
p{margin:0}
ul,ol{margin:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px}.skip:focus{left:var(--margin);background:var(--ink);color:var(--ground);padding:8px 14px;border-radius:var(--pill);z-index:2}
.muted{color:var(--muted)}.small{font-size:var(--step-small)}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* El motivo */
.reel{aspect-ratio:9/16;border-radius:22%/12.375%;position:relative;overflow:hidden;flex:none;display:inline-block}
.reel::after{content:"";position:absolute;left:0;right:0;top:var(--at,18%);height:9%;background:var(--sweep)}

/* Barra superior */
.bar{display:flex;align-items:center;gap:10px 28px;flex-wrap:wrap;padding:16px var(--margin)}
.brand{display:flex;align-items:center;color:var(--ink);text-decoration:none;flex:none}
/* Logotipo: versión de letras claras u oscuras según el tema; monocromo (máscara) sobre fondos de color */
.logo{height:34px;width:auto}.logo-light{display:var(--logo-light)}.logo-dark{display:var(--logo-dark)}
.beta{align-self:flex-start;margin:-2px 0 0 4px;padding:3px 7px;border-radius:5px;background:linear-gradient(90deg,#2878F4,#7840E8);color:#fff;font:600 .625rem/1.2 var(--text);letter-spacing:.08em;text-transform:uppercase;transform:rotate(-15deg);box-shadow:0 2px 6px rgba(80,40,200,.25)}
.logo-mono{display:block;height:40px;aspect-ratio:1110.8/354;background:currentColor;-webkit-mask:url(/static/brand/logo-mono.svg?v=273b380f61) center/contain no-repeat;mask:url(/static/brand/logo-mono.svg?v=273b380f61) center/contain no-repeat}
.nav{display:flex;gap:4px;flex:1;overflow-x:auto}
.nav a{color:var(--muted);text-decoration:none;font-weight:500;padding:6px 12px;border-radius:var(--pill);white-space:nowrap}
.nav a:hover{color:var(--ink);background:var(--surface)}
.nav a[aria-current]{color:var(--ink);background:var(--surface)}
.who{display:flex;align-items:center;gap:14px;font-size:var(--step-small)}
.who a{color:var(--ink);font-weight:500}
.theme{display:flex;background:var(--surface);border-radius:var(--pill);padding:3px}
.theme a{color:var(--muted);text-decoration:none;padding:4px 10px;border-radius:4px;font-weight:400}
.theme a[aria-current]{background:var(--ink);color:var(--ground)}
.menu{display:none;position:relative;margin-left:auto;height:44px}
.menu summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:var(--pill);background:var(--surface);font-weight:500;cursor:pointer;user-select:none}
.menu summary::-webkit-details-marker{display:none}
.menu[open] summary{background:var(--ink);color:var(--ground)}
.burger{width:18px;height:12px;position:relative;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat;transition:background-size .2s}
.burger::before,.burger::after{content:"";position:absolute;left:0;right:0;height:2px;background:currentColor;transition:transform .2s}
.burger::before{top:0}.burger::after{bottom:0}
.menu[open] .burger{background-size:0 2px}.menu[open] .burger::before{transform:translateY(5px) rotate(45deg)}.menu[open] .burger::after{transform:translateY(-5px) rotate(-45deg)}
.sheet{position:absolute;right:0;top:calc(100% + 8px);z-index:10;width:min(320px,calc(100vw - 2 * var(--margin)));display:flex;flex-direction:column;gap:8px;padding:8px;background:var(--ground);border:1px solid var(--surface-2);border-radius:var(--r);box-shadow:0 18px 40px -16px rgba(20,10,60,.35);max-height:calc(100svh - 90px);overflow:auto;overscroll-behavior:contain}
.sheet-nav{display:flex;flex-direction:column}
.sheet-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:var(--pill);color:var(--ink);text-decoration:none;font-weight:500}
.sheet-nav a:hover,.sheet-nav a[aria-current]{background:var(--surface)}
.sheet-nav .account{margin-top:4px;border-top:1px solid var(--surface-2);border-radius:0 0 var(--pill) var(--pill);color:var(--muted)}
.sheet .theme a{flex:1;display:grid;place-items:center;min-height:36px}

/* Botones y campos */
.btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:500;border:0;border-radius:var(--pill);padding:10px 20px;
  background:var(--action);color:var(--on-action);cursor:pointer;text-decoration:none;transition:transform .15s ease;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(1px) scale(.98)}
.btn.quiet{background:var(--surface-2);color:var(--ink)}
.btn.danger{background:var(--danger-bg);color:var(--danger)}
.btn.small{padding:6px 13px;font-size:var(--step-small)}
.field{display:flex;flex-direction:column;gap:6px}
.field>span,.label{font-size:var(--step-small);font-weight:500}
.field small,.hint{font-size:var(--step-small);color:var(--muted)}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:0;border-radius:8px;padding:10px 13px;width:100%;min-width:0}
textarea{resize:vertical;min-height:7em}
input::placeholder,textarea::placeholder{color:var(--muted)}
input[type=checkbox]{width:auto;accent-color:var(--accent)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:var(--step-small)}
.check input{margin-top:3px}
.form{display:flex;flex-direction:column;gap:16px;max-width:620px}
.panel{background:var(--surface);border-radius:var(--r);padding:clamp(18px,2.4vw,28px)}
.panel input,.panel select,.panel textarea{background:var(--ground)}
.notice{background:var(--surface-2);border-radius:8px;padding:11px 15px;overflow-wrap:anywhere}
.error{background:var(--danger-bg);color:var(--danger);border-radius:8px;padding:11px 15px}
.chip{display:inline-block;font-size:var(--step-small);padding:3px 10px;border-radius:6px;background:var(--surface);color:var(--ink);text-decoration:none;position:relative;z-index:1}
.chip:hover{background:var(--surface-2)}.chip[aria-current]{background:var(--ink);color:var(--ground)}
.chips{display:flex;flex-wrap:wrap;gap:5px}
.state{display:inline-block;font-size:var(--step-small);font-weight:500;padding:1px 9px;border-radius:5px;background:var(--ground);color:var(--ink)}
.state.done{background:var(--accent);color:var(--on-accent)}.state.failed{background:var(--danger-bg);color:var(--danger)}
.state.running{background:var(--indigo);color:var(--on-k-resource)}

/* Cabecera de página */
.head{padding:clamp(24px,3vw,40px) var(--margin) 8px;display:flex;flex-direction:column;gap:10px}
.head h1{font-size:var(--step-head);max-width:26ch}
.head .lede{font-size:var(--step-lead);line-height:1.4;max-width:58ch;color:var(--muted)}
.section{padding:24px var(--margin)}
.section>h2,.h2{font-size:clamp(1.25rem,1.1rem + .6vw,1.6rem);margin-bottom:14px}
.h3{font-size:var(--step-lead)}

/* Entrada de reels */
.intake{background:var(--surface);border-radius:12px;margin:8px var(--margin) 0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(20px,3.5vw,56px);padding:clamp(22px,3vw,40px);align-items:center}
.intake>div{min-width:0}
.intake .h1{font-family:var(--display);font-weight:500;letter-spacing:-.025em;line-height:1.05;font-size:var(--step-display);max-width:20ch}
.paste{display:flex;margin-top:20px;background:var(--ground);border-radius:var(--pill);padding:5px;max-width:720px}
.paste input{flex:1;background:none;border-radius:var(--pill);padding:10px 16px}
.paste input:focus-visible{outline:none}
.paste:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.intake .hint{margin-top:10px}
.running{display:flex;flex-direction:column;gap:8px}
.running h2{font-size:var(--step-lead)}
.job{display:flex;gap:14px;align-items:center;background:var(--ground);border-radius:10px;padding:10px 16px 10px 10px;color:var(--ink)}
.job .reel{width:30px;background:var(--surface-2)}
.job.live .reel::after{animation:sweep 2.4s ease-in-out infinite alternate}
.job strong{display:block;font-weight:500}
.job span{color:var(--muted);font-size:var(--step-small);overflow-wrap:anywhere}.job>:last-child{min-width:0}
.stages{display:flex;gap:3px;margin-top:6px}.stages i{height:5px;width:20px;border-radius:3px;background:var(--surface-2)}.stages i.on{background:var(--sweep);background-size:184px 100%}.stages i:nth-child(2){background-position:-23px 0}.stages i:nth-child(3){background-position:-46px 0}.stages i:nth-child(4){background-position:-69px 0}.stages i:nth-child(5){background-position:-92px 0}.stages i:nth-child(6){background-position:-115px 0}.stages i:nth-child(7){background-position:-138px 0}.stages i:nth-child(8){background-position:-161px 0}
@keyframes sweep{from{top:6%}to{top:85%}}

/* Tipos */
.kinds{display:flex;gap:6px;padding:24px var(--margin) 0;overflow-x:auto}
.kind{display:flex;align-items:center;gap:10px;padding:7px 16px 7px 8px;border-radius:var(--pill);background:var(--surface);color:var(--ink);text-decoration:none;white-space:nowrap;font-weight:500}
.kind:hover{background:var(--surface-2)}
.kind .reel{width:12px}.kind .reel::after{display:none}
.kind em{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}
.kind[aria-current]{background:var(--ink);color:var(--ground)}.kind[aria-current] em{color:var(--ground)}

/* Biblioteca */
.library{display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(20px,3vw,44px);padding:20px var(--margin) 72px}
.library>*{min-width:0}
.filters{display:flex;flex-direction:column;gap:24px}
.search{display:flex;background:var(--surface);border-radius:var(--pill)}
.search input{background:none;border-radius:var(--pill);padding:9px 15px}
.filters h2{font-size:var(--step-small);font-family:var(--text);font-weight:600;letter-spacing:0;color:var(--muted);margin-bottom:8px}
.cats{display:flex;flex-direction:column;gap:6px}
.cat{background:var(--surface);border-radius:8px;padding:4px}
.cat>a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:6px;color:var(--ink);text-decoration:none;font-weight:500}
.cat>a:hover{background:var(--surface-2)}
.cat>a[aria-current]{background:var(--ink);color:var(--ground)}
.count{font-size:var(--step-small);font-weight:500;font-variant-numeric:tabular-nums;min-width:24px;text-align:center;padding:0 7px;border-radius:5px;background:var(--ground);color:var(--muted)}
.cat>a[aria-current] .count{background:var(--ground);color:var(--ink)}
.cat .subs{display:flex;flex-wrap:wrap;gap:4px;padding:2px 6px 6px}
.cat .subs a{font-size:var(--step-small);padding:2px 9px;border-radius:5px;color:var(--muted);text-decoration:none;background:var(--ground)}
.cat .subs a:hover{color:var(--ink)}.cat .subs a[aria-current]{background:var(--action);color:var(--on-action)}
.list-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.list-head h2{font-size:clamp(1.25rem,1.1rem + .6vw,1.6rem)}
.crumbs{display:flex;gap:6px;flex-wrap:wrap;font-size:var(--step-small);color:var(--muted);margin-bottom:6px}
.cards{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}
.card{position:relative;background:var(--surface);border-radius:var(--r);padding:16px 18px 16px;display:flex;flex-direction:column;gap:9px;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.card:hover{transform:translateY(-3px);background:var(--surface-2);box-shadow:0 12px 28px -14px rgba(40,24,110,.35)}
.card:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.card .top{display:flex;align-items:center;gap:10px;font-size:var(--step-small);color:var(--muted);min-width:0}
.card .top span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .reel{width:26px;display:grid;place-items:center;font-family:var(--display);font-weight:600;font-size:13px}
.card .reel::after{top:auto;bottom:14%;height:8%;background:currentColor;opacity:.35}
.card h3{font-size:var(--step-lead);overflow-wrap:anywhere}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0;border-radius:var(--r)}
.card h3 a:focus-visible{outline:none}
.card .purpose{color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card .facts{display:flex;gap:12px;flex-wrap:wrap;font-size:var(--step-small);color:var(--muted)}
.card .facts b{color:var(--ink);font-weight:600}
.card .foot{margin-top:auto;padding-top:6px;display:flex;flex-direction:column;gap:8px}
.card .chip{background:var(--ground);color:var(--muted)}
.card .src{font-size:var(--step-small);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;z-index:1}
.empty{background:var(--surface);border-radius:var(--r);padding:28px;display:flex;gap:22px;align-items:center}
.empty .reel{width:44px;background:var(--surface-2);overflow:visible}
/* Motas de la escoba del logo, detrás del barrido */
.empty .reel::before{content:"";position:absolute;left:calc(100% + 6px);top:18%;width:26px;height:9px;background:radial-gradient(circle at 3px 50%,#2878F4 2.5px,transparent 3px),radial-gradient(circle at 12px 50%,#7840E8 2px,transparent 2.5px),radial-gradient(circle at 20px 50%,#C936D6 1.5px,transparent 2px)}

/* Ficha */
.back{display:inline-block;padding:18px var(--margin) 0;font-size:var(--step-small)}
.detail{display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:clamp(24px,4vw,64px);padding:14px var(--margin) 80px;align-items:start}
.detail>*{min-width:0}
.detail>div{max-width:1100px}
.cover{position:sticky;top:20px;display:flex;flex-direction:column;gap:16px}
.cover .reel{width:100%;padding:16% 12%;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}
.cover .reel::after{top:24%;height:6%}
.cover .reel strong{font-family:var(--display);font-size:clamp(1.2rem,1rem + .7vw,1.6rem);line-height:1.08;letter-spacing:-.02em;font-weight:500;overflow-wrap:anywhere}
.cover .reel span{font-size:var(--step-small);font-weight:500}
.sources{display:flex;flex-direction:column;gap:6px;font-size:var(--step-small);color:var(--muted);overflow-wrap:anywhere}
.sources b{color:var(--ink);font-weight:500}
.detail h1{font-size:var(--step-display);max-width:22ch;overflow-wrap:anywhere}
.detail .lede{font-size:var(--step-lead);line-height:1.45;margin-top:14px;max-width:60ch;color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}
.numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:28px 0 40px}
.numbers div{background:var(--surface);padding:14px 16px;border-radius:10px}
.numbers dt{font-size:var(--step-small);color:var(--muted)}
.numbers dd{margin:4px 0 0;font-family:var(--display);font-size:var(--step-lead);font-weight:500}
.numbers dd.none{color:var(--muted);font-family:var(--text);font-weight:400;font-size:var(--step-body)}
.detail h2{font-size:clamp(1.25rem,1.1rem + .6vw,1.6rem);margin:0 0 14px}
.components{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:6px;margin-bottom:40px}
.component{background:var(--surface);border-radius:var(--r);padding:18px 20px}
.component h3{font-size:var(--step-body);color:var(--purple);margin-bottom:10px;letter-spacing:0}
.component ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:7px}
.component li{display:flex;justify-content:space-between;gap:14px;font-size:var(--step-small)}
.component li b{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.component li b.none{color:var(--muted);font-weight:400}
.tools{list-style:none;padding:0;margin:0 0 40px;display:flex;flex-wrap:wrap;gap:8px 24px}
.tools li{display:flex;align-items:center;gap:9px}
.tools li::before{content:"";width:8px;aspect-ratio:9/16;border-radius:22%/12.375%;background:var(--accent,var(--purple));flex:none}
.steps{padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:5px;margin-bottom:40px}
.steps li{counter-increment:s;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:baseline;padding:13px 18px;border-radius:10px;background:var(--surface);max-width:80ch}
.steps li:nth-child(even){background:var(--surface-2)}
.steps li::before{content:counter(s);font-family:var(--display);font-size:var(--step-lead);font-weight:500;color:var(--accent,var(--purple));font-variant-numeric:tabular-nums}
.linklist{list-style:none;padding:0;display:flex;flex-direction:column;gap:5px;margin-bottom:40px}
.linklist li{background:var(--surface);border-radius:8px;padding:12px 16px;overflow-wrap:anywhere}
.linklist small{display:block;color:var(--muted)}.linklist form{margin-top:8px}
.quotes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:6px}
.quote{border-radius:8px;background:var(--surface);padding:11px 14px;font-size:var(--step-small);overflow-wrap:anywhere}
.quote b{display:block;color:var(--muted);font-weight:500}
details>summary{cursor:pointer;font-weight:500}
details[open]>summary{margin-bottom:12px}

/* Listas en bandas (trabajos, usuarios, solicitudes) */
.data{width:100%;border-collapse:separate;border-spacing:0 4px;font-size:var(--step-small)}
.data th{color:var(--muted);font-weight:500;text-align:left;padding:4px 16px}
.data td{background:var(--surface);padding:12px 16px;vertical-align:top;overflow-wrap:anywhere}
.data tbody tr:nth-child(even) td{background:var(--surface-2)}
.data td:first-child{border-radius:8px 0 0 8px}.data td:last-child{border-radius:0 8px 8px 0}
.data .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:640px){.data,.data tbody,.data tr,.data td{display:block}.data thead{display:none}
  .data tr{background:var(--surface);border-radius:8px;padding:10px 14px;margin-bottom:5px}
  .data tbody tr:nth-child(even){background:var(--surface-2)}
  .data td,.data tbody tr:nth-child(even) td{background:none;padding:3px 0;border-radius:0}
  .data td.n{display:flex;justify-content:space-between;gap:12px;white-space:normal}
  .data td.n::before{content:attr(data-label);color:var(--muted);text-align:left}}
.bands{list-style:none;padding:0;display:flex;flex-direction:column;gap:5px}
.bands>li{background:var(--surface);border-radius:10px;padding:14px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;align-items:center}
.bands>li:nth-child(even){background:var(--surface-2)}
.bands>li>div{min-width:0;overflow-wrap:anywhere}
.bands .meta{font-size:var(--step-small);color:var(--muted);overflow-wrap:anywhere}
.bands form{margin:0}
.log{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px;font-size:var(--step-small)}
.log time{color:var(--muted);font-variant-numeric:tabular-nums}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:clamp(18px,2.4vw,32px);align-items:start}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--step-small);background:var(--surface-2);border-radius:6px;padding:9px 13px;overflow-wrap:anywhere}

/* Acceso (login, invitación, solicitud) */
.auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100svh;max-width:var(--maxw);margin:0 auto}
.auth .field-side{background:var(--indigo);color:var(--on-k-resource);padding:clamp(24px,4vw,56px);display:flex;flex-direction:column;justify-content:space-between;gap:32px;overflow:hidden;position:relative}
.auth .field-side .brand{color:inherit}
.auth .field-side p{font-family:var(--display);font-size:clamp(1.9rem,1.2rem + 2.4vw,3.4rem);font-weight:500;letter-spacing:-.03em;line-height:1.02;max-width:11ch;position:relative;z-index:1}
.auth .big{position:absolute;right:-6%;bottom:-16%;width:min(38vw,440px);background:var(--purple)}
.auth .big::after{top:34%;height:7%}
.auth .form-side{display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4vw,64px);gap:20px}
.auth .form-side h1{font-size:var(--step-head)}
/* Turnstile mide al menos 300 px: en móviles estrechos invade el margen en vez de desbordar */
.cf-turnstile{min-height:65px;margin-inline:min(0px,calc((100% - 300px) / 2))}
.beta-note{position:relative;display:flex;flex-direction:column;gap:8px;padding:16px 18px 16px 22px;border-radius:12px;background:var(--surface-2);overflow:hidden}
.beta-note::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--sweep)}
.beta-note-title{display:flex;align-items:center;gap:10px;font-weight:600}.beta-note .beta{transform:none;margin:0;align-self:auto;box-shadow:none}
.auth .form,.auth .beta-note{max-width:400px}

footer.foot{padding:24px var(--margin);color:var(--muted);font-size:var(--step-small);display:flex;gap:14px;flex-wrap:wrap;justify-content:space-between}

/* Aviso para vincular Telegram */
.toast{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px 14px;align-items:center;margin:8px var(--margin) 0;padding:10px 6px 10px 18px;background:var(--surface);border-radius:var(--r);box-shadow:0 16px 36px -24px rgba(40,24,110,.5);animation:toast-in .55s cubic-bezier(.2,.8,.2,1) both}
.toast::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#18B8F5,#2878F4 28%,#7840E8 58%,#C936D6 86%,#F044B8)}
.toast-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:var(--cyan);color:#fff}
.toast-icon svg{width:20px;height:20px}
.toast p{margin:0}.toast p+p{font-size:var(--step-small);color:var(--muted)}
.toast form{margin:0}
.toast-close{width:44px;height:44px;border:0;background:none;color:var(--muted);font-size:22px;line-height:1;border-radius:8px;cursor:pointer;touch-action:manipulation}
.toast-close:hover{background:var(--surface-2);color:var(--ink)}
@keyframes toast-in{from{opacity:0;transform:translateY(-14px)}}
@media (max-width:640px){.toast{grid-template-columns:auto minmax(0,1fr) auto;padding-left:16px}.toast .btn{grid-column:2;justify-self:start}.toast form{grid-column:3;grid-row:1}}

/* Tour de bienvenida */
.tour{margin:0 var(--margin) 56px}
.tour-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:clamp(14px,2vw,26px)}
.tour-count{font-size:var(--step-small);color:var(--muted);font-weight:500;margin:0}
.tour-skip{margin:0}.tour-skip button{background:none;border:0;color:var(--muted);font:inherit;font-size:var(--step-small);text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px;padding:0 4px}
.tour-skip button:hover{color:var(--ink)}
.tour-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:4px}
.tour-steps a{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--muted);font-size:var(--step-small);padding:6px 0;min-width:0}
.tour-steps a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tour-steps a::before{content:"";height:5px;border-radius:3px;background:var(--surface-2)}
.tour-steps a.done::before,.tour-steps a[aria-current]::before{background:var(--sweep);background-size:600% 100%;background-position:calc(var(--i) * 20%) 0}
.tour-steps a[aria-current]{color:var(--ink);font-weight:500}
.tour-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,4vw,64px);align-items:center;margin-top:clamp(14px,2vw,24px);background:var(--surface);border-radius:12px;padding:clamp(22px,3.4vw,48px)}
.tour-text{display:flex;flex-direction:column;gap:16px;min-width:0;animation:toast-in .45s cubic-bezier(.2,.8,.2,1) both}
.tour-text h1{font-family:var(--display);font-weight:500;letter-spacing:-.02em;line-height:1.08;font-size:clamp(1.65rem,1.2rem + 1.5vw,2.5rem);max-width:20ch}
.tour-text .lede{font-size:var(--step-lead);color:var(--muted);line-height:1.45;max-width:52ch;margin:0}
.tour-text p{margin:0}
.tour-points{display:flex;flex-direction:column;gap:12px;padding:0;margin:0;list-style:none;counter-reset:p}
.tour-points li{counter-increment:p;position:relative;padding:3px 0 0 40px;min-height:28px;line-height:1.45;overflow-wrap:anywhere}
.tour-points li::before{content:counter(p);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:7px;background:var(--ground);display:grid;place-items:center;font-weight:600;font-size:var(--step-small)}
.panel .tour-points li::before{background:var(--surface-2)}
.tour-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:8px}
.tour-nav form{margin:0;min-width:0}.tour-nav .btn{white-space:normal}
.tour-visual{min-width:0;display:grid;place-items:center;background:var(--ground);border-radius:10px;padding:clamp(18px,3vw,36px);min-height:340px}
.manual summary{cursor:pointer;font-size:var(--step-small);color:var(--link);min-height:32px;display:flex;align-items:center}
.manual>*+*{margin-top:8px}
.tg{width:min(100%,340px);display:flex;flex-direction:column;gap:8px;font-size:var(--step-small)}
.tg-head{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding-bottom:10px;border-bottom:1px solid var(--surface-2)}
.tg-avatar{width:30px;height:30px;border-radius:50%;background:var(--sweep)}
.tg-head small{color:var(--muted)}
.tg-msg{max-width:86%;padding:9px 12px;border-radius:12px;line-height:1.4;overflow-wrap:anywhere;margin:0;animation:msg-in .4s ease-out both}
.tg-msg.me{align-self:flex-end;background:var(--accent);color:var(--on-accent);border-bottom-right-radius:4px}
.tg-msg.bot{align-self:flex-start;background:var(--surface);border-bottom-left-radius:4px}
.tg-msg:nth-child(3){animation-delay:.6s}.tg-msg:nth-child(4){animation-delay:1.3s}
@keyframes msg-in{from{opacity:0;transform:translateY(8px)}}
.tour-flow{display:flex;align-items:center;gap:clamp(12px,2vw,22px)}
.tour-reel{width:clamp(64px,7vw,96px);background:var(--ink)}
.tour-reel::after{animation:sweep 2.4s ease-in-out infinite alternate}
.tour-arrow{flex:none;width:34px;height:2px;background:var(--muted);position:relative;margin:0}
.tour-arrow::after{content:"";position:absolute;right:-2px;top:-5px;border:6px solid transparent;border-left:8px solid var(--muted);border-right:0}
.tour-arrow.down{width:2px;height:30px}.tour-arrow.down::after{right:-5px;top:auto;bottom:-2px;border:6px solid transparent;border-top:8px solid var(--muted);border-bottom:0}
.tour-card{background:var(--surface);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;width:min(100%,230px);box-shadow:0 12px 28px -18px rgba(40,24,110,.4)}
.tour-card .top{display:flex;align-items:center;gap:8px;font-size:var(--step-small);color:var(--muted);margin:0}
.tour-card .top .reel{width:11px}.tour-card .top .reel::after{display:none}
.tour-card>span{font-size:var(--step-small);color:var(--muted)}
.tour-card i{display:block;height:6px;border-radius:3px;background:var(--surface-2)}.tour-card i.short{width:60%}
.tour-search{display:flex;flex-direction:column;gap:10px;width:min(100%,290px)}
.tour-search .tour-card{width:100%}
.tour-input{display:flex;gap:10px;align-items:center;background:var(--surface);border-radius:var(--pill);padding:10px 16px;margin:0}
.tour-input span{width:12px;height:12px;border:2px solid var(--muted);border-radius:50%}
.tour-kinds{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tour-kinds li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:2px 10px;background:var(--ground);border-radius:8px;padding:10px 12px}
.tour-kinds .reel{width:14px;grid-row:span 2;align-self:center}.tour-kinds .reel::after{display:none}
.tour-kinds li span:last-child{font-size:var(--step-small);color:var(--muted)}
.tour-share{display:flex;flex-direction:column;align-items:center;gap:12px}
.tour-person{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:var(--pill);padding:6px 18px 6px 6px;margin:0}
.tour-person span{width:30px;height:30px;border-radius:50%;background:var(--purple);color:#fff;display:grid;place-items:center;font-weight:600}
.tour-commands{display:flex;flex-direction:column;gap:5px;margin:0}
.tour-commands div{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:12px;background:var(--ground);border-radius:8px;padding:9px 12px}
.tour-commands dt{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--step-small)}
.tour-commands dd{margin:0;color:var(--muted);font-size:var(--step-small)}
@media (max-width:900px){.tour-body{grid-template-columns:minmax(0,1fr)}.tour-visual{min-height:0}.tour-steps a span{display:none}}
@media (max-width:520px){.tour-kinds{grid-template-columns:minmax(0,1fr)}.tour-commands div{grid-template-columns:minmax(0,1fr);gap:2px}.tour-nav>.btn,.tour-nav>form{flex:1}.tour-nav .btn{width:100%;text-align:center}}
/* Guía */
.guide{display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(24px,4vw,64px);padding:16px var(--margin) 72px;align-items:start}
.guide-toc{position:sticky;top:20px;display:flex;flex-direction:column;gap:2px}
.guide-toc p{font-size:var(--step-small);font-weight:600;color:var(--muted);margin:0 0 8px}
.guide-toc a{color:var(--ink);text-decoration:none;padding:7px 12px;border-radius:6px;font-size:var(--step-small)}
.guide-toc a:hover{background:var(--surface)}
.guide-body{display:flex;flex-direction:column;gap:12px;min-width:0;max-width:900px}
.guide-sec{background:var(--surface);border-radius:var(--r);padding:clamp(20px,2.6vw,32px);display:flex;flex-direction:column;gap:14px;scroll-margin-top:16px}
.guide-sec .h2{margin:0}
.guide-sec p{margin:0;max-width:68ch;line-height:1.55}
.guide-sec .tour-points li::before{background:var(--surface-2)}
.guide-two{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:center}
.guide-two>div:first-child{display:flex;flex-direction:column;gap:14px}
.guide-two .tour-visual{min-height:0}
.guide-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0;counter-reset:st}
.guide-stages div{background:var(--ground);border-radius:8px;padding:12px;counter-increment:st}
.guide-stages dt{font-weight:600;font-size:var(--step-small)}.guide-stages dt::before{content:counter(st) ". ";color:var(--muted)}
.guide-stages dd{margin:4px 0 0;color:var(--muted);font-size:var(--step-small)}
.guide-kinds{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.guide-sec .tour-commands div{background:var(--ground)}
.faq{background:var(--ground);border-radius:8px}
.faq summary{cursor:pointer;padding:13px 16px;font-weight:500;min-height:44px;display:flex;align-items:center}
.faq p{padding:0 16px 14px;color:var(--muted)}
@media (max-width:900px){.guide{grid-template-columns:minmax(0,1fr)}.guide-toc{position:static;flex-direction:row;flex-wrap:wrap;gap:5px}
  .guide-toc p{width:100%;margin:0}.guide-toc a{background:var(--surface)}.guide-two,.guide-stages{grid-template-columns:minmax(0,1fr)}}
@media (max-width:980px){
  .bar>.nav,.bar>.who{display:none}
  .menu{display:block}
  .kinds{flex-wrap:wrap;overflow:visible}
}
@media (max-width:900px){
  .intake,.library,.detail,.auth{grid-template-columns:1fr}
  .library>aside{order:2}
  .cover{position:static;flex-direction:row;align-items:end}.cover .reel{width:40%}.cover .sources{flex:1}
  .numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bands>li{grid-template-columns:1fr}
  .auth .field-side{min-height:34svh}.auth .big{width:48vw}
}
@media (prefers-reduced-motion:reduce){.job.live .reel::after,.tour-reel::after{animation:none;top:50%}.toast,.tour-text,.tg-msg{animation:none}*{transition:none!important}}

:root{--side:#EEEDF8;--hover:#E5E3F2;--sel:rgba(31,95,209,.10);--k-dot-idea:#9C95D6;--k-dot-other:#A9A6C2}
:root[data-theme=dark]{--side:#121226;--hover:#1D1D36;--sel:rgba(134,173,255,.14);--k-dot-idea:#8E87D6;--k-dot-other:#6F6C93}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--side:#121226;--hover:#1D1D36;--sel:rgba(134,173,255,.14);--k-dot-idea:#8E87D6;--k-dot-other:#6F6C93}}
.i{flex:none;display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100svh;max-width:var(--maxw);margin:0 auto}
.content{min-width:0;display:flex;flex-direction:column}
.content>main{flex:1}
/* Barra lateral */
.side{position:sticky;top:0;height:100svh;overflow-y:auto;overscroll-behavior:contain;background:var(--side);padding:20px 14px 16px;display:flex;flex-direction:column;gap:18px}
.side-brand{padding:2px 8px 4px}.side .logo{height:30px}
.btn.add{justify-content:center;padding:10px 16px}
.side-nav{display:flex;flex-direction:column;gap:2px}
.side-nav a,.me{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 10px;border-radius:8px;color:var(--muted);text-decoration:none;font-weight:500;transition:background-color .12s,color .12s}
.side-nav a:hover,.me:hover{background:var(--hover);color:var(--ink)}
.side-nav a[aria-current],.me[aria-current]{background:var(--sel);color:var(--ink)}
.side-nav a[aria-current] .i{color:var(--accent)}
.side-nav a>span:first-of-type{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.n{font-size:var(--step-small);font-variant-numeric:tabular-nums;color:var(--muted);display:flex;align-items:center;gap:6px}
.n.live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.side-foot .theme{align-self:stretch}.side-foot .theme a{flex:1;text-align:center;font-size:var(--step-small)}
.topbar{display:none}
/* Botón de icono */
.ib{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;border:0;background:none;color:var(--muted);cursor:pointer;text-decoration:none;transition:background-color .12s,color .12s;list-style:none}
.ib::-webkit-details-marker{display:none}
.ib:hover{background:var(--hover);color:var(--ink)}
.ib:active{transform:scale(.96)}
/* Cabecera de página de la aplicación: compacta */
.head h1{font-size:clamp(1.4rem,1.2rem + .6vw,1.8rem);max-width:none}
.head .lede{font-size:var(--step-body)}
/* Biblioteca */
.lib-head{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;padding:28px var(--margin) 0}
.lib-head h1{font-size:clamp(1.4rem,1.2rem + .6vw,1.8rem)}
.lib-head .paste{margin:0;flex:1;max-width:560px;min-width:min(100%,320px);background:var(--surface)}
.paste .i{margin-left:10px;color:var(--muted);align-self:center}
.strip{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:16px var(--margin) 0;padding:10px 16px;border-radius:10px;background:var(--surface);color:var(--ink);text-decoration:none;font-size:var(--step-small)}
.strip:hover{background:var(--hover)}
.strip b{font-weight:600;display:flex;align-items:center;gap:8px}
.strip b::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);animation:pulse 1.6s ease-in-out infinite}
.strip .go{margin-left:auto;color:var(--link)}
.strip .stages{margin:0}
.review{margin:16px var(--margin) 0;padding:16px 18px;border-radius:12px;background:var(--surface)}
.review-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:10px}
.review-head h2{font-family:var(--text);font-size:var(--step-body);font-weight:600;letter-spacing:0;display:flex;align-items:center;gap:8px}
.review-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}
.review-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;background:var(--ground);border-radius:8px;padding:10px 12px}
.review-list li>div{min-width:0}
.review-list a.name{color:var(--ink);font-weight:600;text-decoration:none}.review-list a.name:hover{text-decoration:underline}
.review-list p{color:var(--muted);font-size:var(--step-small);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.review-list form{margin:0}
.decide{display:flex;gap:6px}
.toolbar{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;padding:22px var(--margin) 0}
.toolbar .search{flex:1;max-width:420px;min-width:min(100%,240px);align-items:center}
.search .i{margin-left:12px;color:var(--muted)}
.tabs{display:flex;gap:2px;flex-wrap:wrap}
.tabs a{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border-radius:8px;color:var(--muted);text-decoration:none;font-weight:500;font-size:var(--step-small)}
.tabs a:hover{background:var(--hover);color:var(--ink)}
.tabs a[aria-current]{background:var(--sel);color:var(--ink)}
.tabs em{font-style:normal;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:400}
.dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--k-resource)}
.dot.recipe{background:var(--k-recipe)}.dot.tutorial{background:var(--k-tutorial)}.dot.idea{background:var(--k-dot-idea)}.dot.other{background:var(--k-dot-other)}.dot.all{background:var(--ink)}
.filterbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px var(--margin) 0}
.pop{position:relative}
.pop>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:36px;padding:0 10px 0 12px;border-radius:8px;background:var(--surface);font-weight:500;font-size:var(--step-small);cursor:pointer;user-select:none}
.pop>summary::-webkit-details-marker{display:none}
.pop>summary:hover{background:var(--hover)}
.pop[open]>summary{background:var(--sel)}
.pop>summary .i{color:var(--muted)}
.pop-body{position:absolute;left:0;top:calc(100% + 6px);z-index:20;width:min(320px,calc(100vw - 2 * var(--margin)));max-height:min(60svh,440px);overflow:auto;overscroll-behavior:contain;background:var(--ground);border-radius:10px;padding:6px;box-shadow:0 18px 44px -18px rgba(20,10,60,.45),0 0 0 1px var(--surface-2);display:flex;flex-direction:column;gap:1px}
.pop-body a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:0 10px;border-radius:6px;color:var(--ink);text-decoration:none;font-size:var(--step-small)}
.pop-body a:hover{background:var(--hover)}.pop-body a[aria-current]{background:var(--sel);font-weight:600}
.pop-body a span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pop-body a.sub{padding-left:24px;color:var(--muted)}
.pop-body em{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.pop-body .more{margin-top:4px;padding-top:6px;color:var(--link)}
.active-filter{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 6px 0 12px;border-radius:8px;box-shadow:inset 0 0 0 1.5px var(--surface-2);color:var(--ink);text-decoration:none;font-size:var(--step-small);max-width:100%}
.active-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.active-filter .i{color:var(--muted)}
.active-filter:hover{background:var(--hover)}
.filterbar .total{margin-left:auto;font-size:var(--step-small);color:var(--muted);font-variant-numeric:tabular-nums}
.views{display:flex;background:var(--surface);border-radius:8px;padding:2px}
.views a{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;color:var(--muted)}
.views a:hover{color:var(--ink)}.views a[aria-current]{background:var(--ground);color:var(--ink)}
.results{padding:14px var(--margin) 64px}
/* Filas */
.entries{list-style:none;padding:0;display:flex;flex-direction:column;gap:2px}
.entry{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,220px) minmax(0,150px) auto;gap:4px 16px;align-items:center;min-height:60px;padding:8px 8px 8px 12px;border-radius:10px;transition:background-color .1s}
.entry:hover,.entry:focus-within{background:var(--surface)}
.entry .reel{width:24px;justify-self:center;display:grid;place-items:center;font-family:var(--display);font-weight:600;font-size:12px}
.entry .reel::after{display:none}
.e-main{min-width:0}
.e-main h3{font-family:var(--text);font-size:var(--step-body);font-weight:600;letter-spacing:0;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-main h3 a{color:var(--ink);text-decoration:none}
.e-main h3 a::after{content:"";position:absolute;inset:0;border-radius:10px}
.e-main h3 a:focus-visible{outline:none}
.entry:has(h3 a:focus-visible){outline:3px solid var(--accent);outline-offset:1px}
.e-purpose{color:var(--muted);font-size:var(--step-small);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.e-cat,.e-src{font-size:var(--step-small);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-src a{color:var(--muted);text-decoration:none;position:relative;z-index:1}.e-src a:hover{color:var(--link);text-decoration:underline}
.e-actions{display:flex;gap:2px;position:relative;z-index:2}
.e-actions .ib{color:color-mix(in srgb,var(--muted) 75%,transparent)}
.entry:hover .e-actions .ib,.entry:focus-within .e-actions .ib{color:var(--muted)}
.e-actions .ib:hover{color:var(--ink)}
.facts-inline{display:flex;gap:10px;font-size:var(--step-small);color:var(--muted);margin-top:2px}.facts-inline b{color:var(--ink);font-weight:600}
/* Confirmación de borrado sin JavaScript */
.confirm{position:relative}
/* La fila con un diálogo abierto se pinta por encima de las siguientes. */
.entry:has(details[open]){z-index:10}
.confirm[open]>summary{background:var(--danger-bg);color:var(--danger)}
.confirm-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:250px;background:var(--ground);border-radius:10px;padding:14px;box-shadow:0 18px 44px -18px rgba(20,10,60,.45),0 0 0 1px var(--surface-2);display:flex;flex-direction:column;gap:10px;font-size:var(--step-small)}
.confirm-pop p{overflow-wrap:anywhere}
.confirm-pop b{font-weight:600}
.btn.danger.solid{background:var(--danger);color:var(--ground)}
/* Vista de tarjetas */
.entries.cards-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
.cards-view .entry{grid-template-columns:24px minmax(0,1fr) auto;grid-template-rows:1fr auto;grid-template-areas:"thumb main main" "thumb cat actions";align-items:start;gap:10px 12px;background:var(--surface);padding:14px 8px 8px 14px;min-height:0}
.cards-view .entry:hover,.cards-view .entry:focus-within{background:var(--hover)}
.cards-view .entry .reel{grid-area:thumb;margin-top:2px}
.cards-view .e-main{grid-area:main}
.cards-view .e-main h3{white-space:normal;font-size:var(--step-lead);font-family:var(--display);font-weight:500;letter-spacing:-.01em}
.cards-view .e-purpose{white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-top:6px}
.cards-view .e-actions{grid-area:actions;align-self:end}
.cards-view .facts-inline{flex-wrap:wrap;gap:4px 12px;margin-top:8px}
.cards-view .e-actions .ib{width:32px;height:32px}
.cards-view .e-cat{grid-area:cat;align-self:center}
.cards-view .e-src{display:none}
.empty-state{display:flex;gap:20px;align-items:center;background:var(--surface);border-radius:12px;padding:24px}
.empty-state .reel{width:40px;background:var(--surface-2)}
/* Ficha: acciones */
.actions .btn.quiet{background:var(--surface);color:var(--ink)}.actions .btn.quiet:hover{background:var(--hover)}
.actions summary.btn{list-style:none}.actions summary.btn::-webkit-details-marker{display:none}
.actions .confirm[open]>summary{background:var(--danger-bg);color:var(--danger)}
.actions .confirm-pop{left:0;right:auto}
.pending-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:20px;padding:14px 16px;border-radius:10px;background:var(--surface)}
.pending-note p{flex:1;min-width:220px}
/* Pantallas medianas: sin columnas secundarias */
@media (max-width:1180px){.entry{grid-template-columns:32px minmax(0,1fr) minmax(0,180px) auto}.e-src{display:none}}
@media (max-width:1023px){
  .app{display:block}
  .side{display:none}
  .topbar{display:flex;align-items:center;gap:6px;padding:12px var(--margin);position:sticky;top:0;z-index:15;background:var(--ground)}
  .topbar .brand{margin-right:auto}.topbar .logo{height:28px}
  .topbar .menu{display:block;margin:0;height:auto}
  .topbar .menu summary{min-height:40px;padding:0 12px;gap:8px;background:var(--surface)}
  .topbar .sheet{gap:10px}
  .topbar .sheet .side-nav a,.topbar .sheet .me{min-height:44px}
}
@media (max-width:760px){
  /* En móvil las acciones van en una segunda línea, siempre visibles: el texto conserva todo el ancho. */
  .entry{grid-template-columns:28px minmax(0,1fr);gap:2px 12px;padding:10px 8px 4px}
  .entry .reel{align-self:start;margin-top:3px}
  .e-cat{display:none}
  .e-actions{grid-column:2;margin-left:-10px}
  .e-actions .ib{width:44px;height:40px}
  .e-actions .confirm{position:static}.e-actions .confirm-pop{left:0;right:0;width:auto}
  .cards-view .entry{grid-template-columns:24px minmax(0,1fr) auto;padding-bottom:6px}
  .cards-view .e-actions{grid-column:auto;margin-left:0}
  .review-list li{grid-template-columns:minmax(0,1fr)}
  .lib-head .paste{max-width:none}
  .toolbar .search{max-width:none}
  .filterbar .total{margin-left:0;width:100%;order:9}
}
@media (prefers-reduced-motion:reduce){.n.live::before,.strip b::before{animation:none}}
