/* ============================================================
   console.css — shell + Overview. Hereda de celiums-tokens.css.
   Nunca inyectado: cargado por <link>.
   ============================================================ */

/* ---------- texturas vivas de fondo ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, transparent 40%, rgba(0,0,0,0.35) 100%);
}
[data-theme="light"] .vignette { background: radial-gradient(120% 90% at 50% -10%, transparent 50%, rgba(20,23,29,0.06) 100%); }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: var(--grain-opacity, 0.035);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout raíz ---------- */
.app { position: relative; z-index: 3; min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "sidebar header" "sidebar main"; }
.app.nav-collapsed { grid-template-columns: 72px 1fr; }

/* ---------- header ---------- */
.hdr { grid-area: header; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hdr-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: var(--s-3); padding: 9px 14px; border-radius: var(--r-pill); background: var(--field-bg); border: 1px solid var(--line); color: var(--ink-dim); cursor: text; transition: border-color var(--dur) var(--ease); }
.hdr-search:hover { border-color: var(--line-bright); }
.hdr-search .ph { flex: 1; font-size: var(--fs-meta); color: var(--ink-faint); }
.hdr-search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); background: var(--surface-hi); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.hdr-spacer { flex: 1; }
.hdr-actions { display: flex; align-items: center; gap: var(--s-2); }

/* network pill */
.net-pill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-meta); color: var(--ink-dim); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spore); box-shadow: var(--glow-dot); }
.net-pill.live .net-dot { animation: net-breathe 2.6s var(--ease) infinite; }
.net-pill.reconnecting .net-dot { background: var(--warn); box-shadow: 0 0 10px var(--warn-soft); animation: net-blink 1s steps(2) infinite; }
.net-pill.offline .net-dot { background: var(--ink-faint); box-shadow: none; }
@keyframes net-breathe { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }
@keyframes net-blink { 50% { opacity: 0.3; } }

/* lang + theme + avatar */
.lang-select { position: relative; }
.lang-cur { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--ink-faint); font-size: var(--fs-meta); font-weight: 600; padding: 7px 11px; cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.lang-cur:hover { color: var(--ink); }
.lang-cur .lang-flag { font-size: 13px; line-height: 1; }
.lang-menu { position: absolute; top: calc(100% + 7px); right: 0; min-width: 172px; max-height: min(70vh, 420px); overflow-y: auto; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 5px; box-shadow: var(--shadow-card); backdrop-filter: blur(18px); display: none; flex-direction: column; gap: 2px; z-index: 200; }
.lang-select.open .lang-menu { display: flex; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; color: var(--ink-soft); font-size: var(--fs-meta); font-weight: 500; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; }
.lang-opt:hover { background: color-mix(in oklab, var(--accent) 13%, transparent); color: var(--ink); }
.lang-opt.on { color: var(--ink); background: color-mix(in oklab, var(--accent) 18%, transparent); }
.lang-opt .lang-flag { font-size: 15px; line-height: 1; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-opt { text-align: right; flex-direction: row-reverse; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-dim); cursor: pointer; transition: all var(--dur) var(--ease); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-bright); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--on-spore); background: linear-gradient(135deg, var(--spore-hot), var(--spore-deep)); cursor: pointer; border: none; }

/* avatar dropdown (cuenta / cerrar sesión) */
.avatar-wrap { position: relative; }
.avatar-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; z-index: 60;
  background: var(--surface, var(--bg-1)); border: 1px solid var(--line, var(--glass-stroke));
  border-radius: var(--r-md, 14px); box-shadow: 0 18px 48px -18px rgba(0,0,0,.6); padding: 6px;
  display: flex; flex-direction: column; gap: 2px; }
.avatar-menu[hidden] { display: none; }
[dir="rtl"] .avatar-menu { right: auto; left: 0; }
.avatar-menu-item { text-align: start; padding: 10px 12px; border-radius: var(--r-sm, 10px);
  background: none; border: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.avatar-menu-item:hover { background: var(--surface-2, var(--glass-bg)); }
.avatar-menu-item.is-danger { color: var(--danger); }

/* ---------- sidebar ---------- */
.side { grid-area: sidebar; position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--bg-soft) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-4); }
.side-mark { width: 30px; height: 30px; flex: none; }
.side-brand-txt { display: flex; flex-direction: column; line-height: 1.15; overflow: hidden; }
.side-brand-txt b { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.side-brand-txt span { font-size: 10px; color: var(--ink-faint); font-family: var(--font-mono); white-space: nowrap; }
.app.nav-collapsed .side-brand-txt { display: none; }

.side-nav { flex: 1; overflow-y: auto; padding: var(--s-2) var(--s-3) var(--s-4); scrollbar-width: thin; }
.nav-group { margin-bottom: var(--s-4); }
.nav-group-label { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-faint); padding: var(--s-2) var(--s-3); }
.app.nav-collapsed .nav-group-label { opacity: 0; height: 8px; padding: 0; }
.nav-item { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 10px var(--s-3); border-radius: var(--r-sm); background: transparent; border: none; color: var(--ink-dim); font-size: var(--fs-body); cursor: pointer; text-align: left; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); position: relative; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--surface-hi); color: var(--ink); }
.nav-item.active::before { content: ""; position: absolute; left: -3px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--spore); box-shadow: var(--glow-dot); }
.nav-item .ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; color: currentColor; }
.nav-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .soon-tag { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 6px; }
.app.nav-collapsed .nav-item .lbl, .app.nav-collapsed .nav-item .soon-tag { display: none; }
.app.nav-collapsed .nav-item { justify-content: center; padding: 11px; }
.side-foot { padding: var(--s-3) var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.collapse-btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 9px var(--s-3); border-radius: var(--r-sm); background: transparent; border: none; color: var(--ink-faint); font-size: var(--fs-meta); cursor: pointer; transition: color var(--dur) var(--ease); }
.collapse-btn:hover { color: var(--ink-dim); }
.app.nav-collapsed .collapse-btn .lbl { display: none; }
.app.nav-collapsed .collapse-btn { justify-content: center; }
.collapse-btn .ic { transition: transform var(--dur) var(--ease); }
.app.nav-collapsed .collapse-btn .ic { transform: rotate(180deg); }

/* ---------- main ---------- */
.main { grid-area: main; padding: var(--s-7) var(--s-7) var(--s-9); min-width: 0; }
.view { max-width: 1180px; margin: 0 auto; }

/* view header */
.view-head { margin-bottom: var(--s-7); }
.eyebrow { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--spore); font-weight: 600; }
.view-title { font-size: var(--fs-title); letter-spacing: -0.02em; margin: var(--s-2) 0 var(--s-2); }
.view-sub { color: var(--ink-dim); font-size: var(--fs-lead); max-width: 640px; text-wrap: pretty; }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-family: var(--font-mono); color: var(--warn); background: var(--warn-soft); border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent); border-radius: var(--r-pill); padding: 3px 9px; margin-left: var(--s-3); vertical-align: middle; }

/* ---------- card primitive ---------- */
.card { background: color-mix(in oklab, var(--bg-1) 72%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-hi); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); position: relative; overflow: hidden; }
[data-theme="light"] .card { background: color-mix(in oklab, #ffffff 86%, transparent); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.card-title { font-size: var(--fs-lead); font-weight: 600; }
.card-sub { font-size: var(--fs-meta); color: var(--ink-faint); }

/* ---------- bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }

/* stat card */
.stat-card { display: flex; flex-direction: column; gap: var(--s-2); }
.stat-card .label { font-size: var(--fs-meta); color: var(--ink-dim); }
.stat-card .value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-card .value .unit { font-size: 15px; font-weight: 500; color: var(--ink-faint); margin-left: 4px; }
.stat-card .spark { height: 3px; border-radius: 3px; background: var(--surface-hi); overflow: hidden; margin-top: var(--s-1); }
.stat-card .spark span { display: block; height: 100%; background: var(--spore); border-radius: 3px; }
.value.tick { animation: tick 0.5s var(--ease); }
@keyframes tick { 0% { color: var(--spore); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }

/* ---------- latido circadiano ---------- */
.heartbeat { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-7); align-items: center; }
.dial-wrap { position: relative; width: 200px; height: 200px; }
.dial-wrap svg { transform: rotate(-90deg); }
.dial-core { position: absolute; inset: 0; display: grid; place-items: center; }
.dial-core .orb { width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, var(--spore-hot), var(--spore-deep) 72%); box-shadow: 0 0 40px var(--spore-glow), inset 0 0 24px rgba(255,255,255,0.15); animation: breathe var(--bpm, 4s) var(--ease) infinite; }
@keyframes breathe { 0%,100% { transform: scale(0.92); box-shadow: 0 0 28px var(--spore-glow), inset 0 0 18px rgba(255,255,255,0.12); } 50% { transform: scale(1.06); box-shadow: 0 0 56px var(--spore-glow), inset 0 0 30px rgba(255,255,255,0.2); } }
.dial-meta { display: flex; flex-direction: column; gap: var(--s-4); }
.phase-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: var(--fs-meta); font-weight: 600; color: var(--spore); background: color-mix(in oklab, var(--spore) 12%, transparent); border: 1px solid color-mix(in oklab, var(--spore) 28%, transparent); border-radius: var(--r-pill); padding: 5px 13px; }
.hb-bars { display: flex; flex-direction: column; gap: var(--s-3); }
.hb-bar .bar-top { display: flex; justify-content: space-between; font-size: var(--fs-meta); color: var(--ink-dim); margin-bottom: 5px; }
.hb-bar .bar-top b { color: var(--ink); font-weight: 600; }
.bar-track { height: 7px; border-radius: var(--r-pill); background: var(--surface-hi); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--spore-deep), var(--spore-hot)); transition: width var(--dur-slow) var(--ease); }
.hb-clock { display: flex; align-items: baseline; gap: var(--s-3); }
.hb-clock .time { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.hb-clock .lbl { font-size: var(--fs-meta); color: var(--ink-faint); }
.hb-clock .peak { margin-left: auto; font-size: var(--fs-meta); color: var(--ink-dim); }
.hb-clock .peak b { color: var(--ink); }

/* ---------- lifecycle apilado ---------- */
.lifecycle-bar { display: flex; height: 34px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-hi); }
.lifecycle-seg { transition: flex-grow var(--dur-slow) var(--ease); min-width: 2px; }
.lc-active { background: var(--spore); }
.lc-encoding { background: var(--etype-lesson); }
.lc-consolidated { background: var(--etype-arc); }
.lc-decaying { background: var(--warn); }
.lc-archived { background: var(--ink-faint); }
.lifecycle-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }
.lc-key { display: flex; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--ink-dim); }
.lc-key .sw { width: 11px; height: 11px; border-radius: 3px; }
.lc-key b { color: var(--ink); font-weight: 600; }

/* ---------- top tags ---------- */
.tag-list { display: flex; flex-direction: column; gap: var(--s-3); }
.tag-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: var(--s-3); }
.tag-row .name { font-size: var(--fs-body); color: var(--ink); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-row .meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-hi); overflow: hidden; }
.tag-row .meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--spore-deep), var(--spore-hot)); border-radius: var(--r-pill); }
.tag-row .pct { font-size: var(--fs-meta); color: var(--ink-faint); text-align: right; }

/* ---------- ethics pulse ---------- */
.ethics-list { display: flex; flex-direction: column; gap: var(--s-2); }
.ethics-row { display: flex; align-items: center; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.ethics-row:last-child { border-bottom: none; }
.verdict { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); flex: none; }
.verdict.allow { color: var(--spore); background: color-mix(in oklab, var(--spore) 14%, transparent); }
.verdict.flag { color: var(--warn); background: var(--warn-soft); }
.verdict.block { color: var(--danger); background: var(--danger-soft); }
.ethics-row .e-cat { font-size: var(--fs-meta); color: var(--ink-dim); text-transform: capitalize; }
.ethics-row .e-sum { flex: 1; font-size: var(--fs-meta); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ethics-row .e-grounded { font-size: 10px; color: var(--spore); display: inline-flex; align-items: center; gap: 3px; flex: none; }
.ethics-row .e-score { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); flex: none; }

/* ---------- focus mini ---------- */
.focus-mini { display: flex; flex-direction: column; gap: var(--s-4); }
.focus-state { display: flex; align-items: center; gap: var(--s-3); }
.focus-orb { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.focus-orb.focused { background: var(--spore); box-shadow: var(--glow-dot); animation: net-breathe 3s var(--ease) infinite; }
.focus-orb.scattered { background: var(--warn); }
.focus-orb.hyperfocus { background: var(--etype-arc); box-shadow: 0 0 12px color-mix(in oklab, var(--etype-arc) 50%, transparent); }
.focus-state .name { font-size: 22px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.01em; }
.focus-goal { font-size: var(--fs-meta); color: var(--ink-dim); }
.focus-goal b { color: var(--ink); display: block; font-size: var(--fs-body); font-weight: 500; margin-top: 2px; }
.focus-streak { display: flex; align-items: baseline; gap: 6px; font-size: var(--fs-meta); color: var(--ink-faint); }
.focus-streak .n { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--spore); }

/* ---------- skills mini ---------- */
.skills-mini { display: flex; flex-direction: column; gap: var(--s-4); }
.skills-count { display: flex; align-items: baseline; gap: var(--s-3); }
.skills-count .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.skills-count .lbl { font-size: var(--fs-meta); color: var(--ink-dim); }
.skills-count .grow { font-size: 10px; color: var(--spore); border: 1px solid color-mix(in oklab, var(--spore) 30%, transparent); border-radius: var(--r-pill); padding: 2px 8px; }
.skills-recent { display: flex; flex-direction: column; gap: var(--s-2); }
.skill-chip { display: flex; align-items: center; gap: var(--s-2); padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-meta); color: var(--ink-dim); text-decoration: none; transition: border-color var(--dur) var(--ease); }
.skill-chip:hover { border-color: var(--line-bright); color: var(--ink); }
.skill-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--spore); flex: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: transparent; border: none; color: var(--spore); font-size: var(--fs-meta); font-weight: 600; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--spore-hot); }

/* ---------- estados (loading / empty / error) ---------- */
.shimmer { position: relative; overflow: hidden; background: var(--surface-hi); border-radius: var(--r-sm); }
.shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--ink) 6%, transparent), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 12px; margin-bottom: 10px; }
.state-block { display: grid; place-items: center; text-align: center; padding: var(--s-8) var(--s-6); gap: var(--s-3); }
.state-block .st-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-hi); border: 1px solid var(--line); color: var(--ink-dim); }
.state-block h3 { font-size: var(--fs-lead); }
.state-block p { font-size: var(--fs-meta); color: var(--ink-dim); max-width: 320px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: 600; padding: 10px 18px; border-radius: var(--r-pill); cursor: pointer; border: 1px solid transparent; transition: all var(--dur) var(--ease); }
.btn-primary { background: var(--spore); color: var(--on-spore); }
.btn-primary:hover { background: var(--spore-hot); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-bright); }

/* ---------- command palette ⌘K ---------- */
.cmdk-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk { width: min(620px, 92vw); background: var(--bg-soft); border: 1px solid var(--line-bright); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.cmdk-input-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.cmdk-input-row input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-size: 17px; font-family: var(--font-body); }
.cmdk-input-row input::placeholder { color: var(--ink-faint); }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: var(--s-2); }
.cmdk-section { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-faint); padding: var(--s-3) var(--s-3) var(--s-2); }
.cmdk-item { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-3); border-radius: var(--r-sm); cursor: pointer; color: var(--ink-dim); }
.cmdk-item:hover, .cmdk-item.sel { background: var(--surface-hi); color: var(--ink); }
.cmdk-item .ic { width: 18px; flex: none; color: var(--ink-faint); }
.cmdk-item .meta { margin-left: auto; font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.cmdk-empty { padding: var(--s-7); text-align: center; color: var(--ink-faint); font-size: var(--fs-meta); }

/* ---------- mobile chrome ---------- */
.menu-btn, .bottom-nav, .drawer-back { display: none; }

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 80; transform: translateX(-100%); transition: transform var(--dur) var(--ease); border-right: 1px solid var(--line-bright); }
  .app.drawer-open .side { transform: none; }
  .app.nav-collapsed { grid-template-columns: 1fr; }
  .app.nav-collapsed .side-brand-txt, .app.nav-collapsed .nav-item .lbl, .app.nav-collapsed .nav-group-label { display: revert; }
  .app.nav-collapsed .nav-item { justify-content: flex-start; padding: 10px var(--s-3); }
  .drawer-back { display: none; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.5); }
  .app.drawer-open .drawer-back { display: block; }
  .menu-btn { display: grid; }
  .collapse-btn { display: none; }
  .main { padding: var(--s-6) var(--s-5) calc(var(--s-9) + 64px); }
}

@media (max-width: 760px) {
  .hdr { padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .hdr-search { max-width: none; }
  .hdr-search .ph { display: none; }
  .net-pill .net-txt { display: none; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .heartbeat { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-6); }
  .dial-meta { width: 100%; }
  .phase-badge { align-self: center; }
  /* bottom nav for primary views */
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in oklab, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: transparent; border: none; color: var(--ink-faint); font-size: 10px; padding: 6px 2px; cursor: pointer; min-height: 44px; }
  .bottom-nav button.active { color: var(--spore); }
  .main { padding: var(--s-5) var(--s-4) calc(var(--s-9) + 56px); }
  .view-head { margin-bottom: var(--s-6); }
}

/* ============================================================
   polish — entrada de vistas, quick-nav privado, micro-detalles.
   Solo usa tokens existentes (celiums-tokens.css). 
   ============================================================ */

/* entrada suave de cada vista: las cards suben en cascada */
.view > .view-head { animation: view-in 0.5s var(--ease-out, var(--ease)) both; }
.view .card { animation: view-in 0.55s var(--ease-out, var(--ease)) both; }
.view .bento > *:nth-child(1) .card, .view .stack > .card:nth-child(1), .view .grid-2 > .stack:nth-child(1) .card:nth-child(1), .view .grid-2-even > .stack:nth-child(1) .card:nth-child(1) { animation-delay: 0.04s; }
.view .bento > *:nth-child(2) .card { animation-delay: 0.08s; }
.view .bento > *:nth-child(3) .card { animation-delay: 0.12s; }
.view .bento > *:nth-child(4) .card { animation-delay: 0.16s; }
.view .bento > *:nth-child(5) .card { animation-delay: 0.2s; }
.view .bento > *:nth-child(6) .card { animation-delay: 0.24s; }
.view .bento > *:nth-child(n+7) .card { animation-delay: 0.28s; }
.view .grid-2 > .stack:nth-child(2) .card, .view .grid-2-even > .stack:nth-child(2) .card { animation-delay: 0.12s; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* el ícono del nav respira hacia el contenido al pasar el mouse */
.nav-item .ic svg { transition: transform var(--dur) var(--ease); }
.nav-item:hover .ic svg { transform: translateX(1.5px) scale(1.06); }
.nav-item:focus-visible, .quick-chip:focus-visible, .bottom-nav button:focus-visible { outline: 2px solid var(--spore); outline-offset: 2px; }
[dir="rtl"] .nav-item:hover .ic svg { transform: translateX(-1.5px) scale(1.06); }

/* quick-nav del Overview: tu mente, a un toque */
.quick-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.quick-chip { display: flex; align-items: center; gap: var(--s-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-dim); font-size: var(--fs-meta); font-weight: 500; cursor: pointer; text-align: start; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.quick-chip .ic { display: grid; place-items: center; color: var(--spore); flex: none; }
.quick-chip .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-chip .go { display: grid; place-items: center; color: var(--ink-faint); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.quick-chip:hover { border-color: var(--line-bright); color: var(--ink); transform: translateY(-1px); }
.quick-chip:hover .go { opacity: 1; transform: none; }
[dir="rtl"] .quick-chip .go { transform: translateX(4px); }
[dir="rtl"] .quick-chip:hover .go { transform: none; }
@media (max-width: 480px) { .quick-nav { grid-template-columns: 1fr; } }

/* respeto total a reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .view > .view-head, .view .card { animation: none; }
  .nav-item .ic svg, .quick-chip, .quick-chip .go { transition: none; }
}
