/* jrobertoma.com — Desktop OS blog */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-deep:    #08090b;
  --bg:         #0a0d12;
  --bg-window:  #14161a;
  --bg-window-2:#1a1d22;
  --bg-window-3:#20242b;
  --bg-hover:   rgba(var(--neon-rgb), 0.05);
  --border:     #2a2f38;
  --border-strong: #3a4150;
  --border-neon: rgba(var(--neon-rgb), 0.4);
  --surface:    #1a1d22;
  --text:       #e6e8ec;
  --text-dim:   #a0a6b0;
  --text-faint: #6b7280;
  --neon:       #39ff14;
  --neon-2:     #00f0ff;
  /* Mismos colores en formato "r, g, b" para usarlos con transparencia:
     rgba(var(--neon-rgb), .2). main.jsx los cambia junto con el acento. */
  --neon-rgb:   57, 255, 20;
  --neon-2-rgb: 0, 240, 255;
  --neon-glow:  0 0 12px rgba(var(--neon-rgb), 0.45);
  --accent-pink:#ff00d4;
  --shadow-window: 0 18px 60px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5);
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
  --font-ui:    'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ─── Desktop shell ──────────────────────────────────── */
.desktop {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  font-family: var(--font-ui);
  color: var(--text);
}

/* ─── Wallpaper ──────────────────────────────────────── */
.wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(var(--neon-rgb), 0.08), transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(var(--neon-2-rgb), 0.06), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 0, 212, 0.05), transparent 50%),
    linear-gradient(180deg, #050608 0%, #0a0d12 100%);
  overflow: hidden;
}
.wallpaper::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--neon-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--neon-rgb), 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
/* Wallpaper variants (matrix/sunset override via inline style in desktop.jsx) */
.wallpaper-logo {
  position: absolute;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.wallpaper-logo .name {
  font-size: 96px; font-weight: 700;
  color: rgba(230, 232, 236, 0.1);
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(var(--neon-rgb), 0.2);
}
.wallpaper-logo .tag {
  font-size: 13px; color: rgba(var(--neon-rgb), 0.4);
  letter-spacing: 0.4em; margin-top: 8px; text-transform: uppercase;
}
.matrix-canvas { position: absolute; inset: 0; }

/* ─── Taskbar ──────────────────────────────────────── */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40px;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(var(--neon-rgb), 0.18);
  display: flex; align-items: stretch;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
  z-index: 10000;
}
.tb-menu {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--neon-rgb), 0.05), transparent);
  color: var(--neon); font-weight: 700; letter-spacing: 0.05em;
  transition: background 0.15s;
  user-select: none;
}
.tb-menu:hover { background: rgba(var(--neon-rgb), 0.1); }
.tb-menu .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon); box-shadow: var(--neon-glow);
}
.tb-windows {
  display: flex; flex: 1; align-items: center;
  padding: 0 6px; gap: 4px; overflow-x: auto;
}
.tb-window {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer; color: var(--text-dim);
  white-space: nowrap; transition: all 0.12s;
  max-width: 180px; font-size: 11px;
  user-select: none;
}
.tb-window:hover { background: rgba(var(--neon-rgb), 0.08); border-color: var(--border-strong); color: var(--text); }
.tb-window.active { background: rgba(var(--neon-rgb), 0.12); border-color: rgba(var(--neon-rgb), 0.4); color: var(--neon); }
.tb-window.minimized { opacity: 0.5; }
.tb-window .icon { font-size: 12px; }
.tb-window .label { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.tb-systray {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  font-size: 11px;
}
.tb-systray .clock { color: var(--neon); font-weight: 500; letter-spacing: 0.05em; }
.tb-systray .sysicon { opacity: 0.7; cursor: pointer; transition: opacity 0.12s; }
.tb-systray .sysicon:hover { opacity: 1; color: var(--neon); }

/* ─── Start Menu ──────────────────────────────────────── */
.start-menu {
  position: absolute;
  left: 8px; bottom: 48px;
  width: 380px; height: 460px;
  background: rgba(15, 18, 22, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-window), 0 0 40px rgba(var(--neon-rgb), 0.1);
  z-index: 9999;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: menuIn 0.18s cubic-bezier(.2,.8,.3,1);
}
@keyframes menuIn {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}
.sm-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sm-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  color: #000; font-size: 18px;
  box-shadow: 0 0 16px rgba(var(--neon-rgb), 0.3);
}
.sm-user .name { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-weight: 500; }
.sm-user .domain { font-family: var(--font-mono); font-size: 11px; color: var(--neon); }
.sm-search {
  margin: 12px 14px 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); border-radius: 4px;
}
.sm-search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: 12px; width: 100%;
}
.sm-search input::placeholder { color: var(--text-faint); }
.sm-grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 12px 14px; overflow-y: auto;
}
.sm-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
}
.sm-item:hover { background: rgba(var(--neon-rgb), 0.08); }
.sm-item .ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 18px;
}
.sm-item .lbl {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); text-align: center; line-height: 1.2;
}
.sm-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.sm-footer span { cursor: pointer; transition: color 0.12s; }
.sm-footer span:hover { color: var(--neon); }

/* ─── Desktop icons ──────────────────────────────────────── */
.desk-icons {
  position: absolute; top: 12px; left: 12px;
  display: grid; grid-template-columns: repeat(2, 84px);
  gap: 6px; z-index: 10;
}
.desk-icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 4px; cursor: pointer;
  text-align: center; user-select: none;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.desk-icon:hover { background: rgba(var(--neon-rgb), 0.05); border-color: rgba(var(--neon-rgb), 0.15); }
.desk-icon.selected { background: rgba(var(--neon-rgb), 0.12); border-color: rgba(var(--neon-rgb), 0.3); }
.desk-icon .ico {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 6px; font-size: 18px;
}
.desk-icon .lbl {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(230,232,236,0.75);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  line-height: 1.2;
}

/* ─── Window ──────────────────────────────────────── */
.window {
  position: absolute;
  background: var(--bg-window);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-window);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--font-ui); color: var(--text);
  min-width: 280px; min-height: 180px;
}
.window.focused {
  border-color: rgba(var(--neon-rgb), 0.35);
  box-shadow: var(--shadow-window), 0 0 0 1px rgba(var(--neon-rgb), 0.15), 0 0 24px rgba(var(--neon-rgb), 0.08);
}
.window.minimized { display: none; }
.window.maximized { border-radius: 0; }

.win-titlebar {
  height: 32px;
  background: linear-gradient(180deg, #1c1f25, #15181d);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 6px 0 12px;
  cursor: grab; user-select: none;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
}
.win-titlebar:active { cursor: grabbing; }
.window.focused .win-titlebar { color: var(--text); }
.win-title {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.win-title .icon { font-size: 13px; }
.win-title .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-buttons { display: flex; gap: 2px; }
.win-btn {
  width: 26px; height: 22px;
  border: none; background: transparent;
  color: var(--text-dim); cursor: pointer;
  border-radius: 3px; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.win-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.win-btn.close:hover { background: #e81123; color: white; }

.win-body {
  flex: 1; overflow: auto;
  background: var(--bg-window);
  position: relative;
}
.win-resize {
  position: absolute; right: 0; bottom: 0;
  width: 16px; height: 16px; cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 60%, transparent 60%,
    transparent 70%, rgba(255,255,255,0.15) 70%,
    rgba(255,255,255,0.15) 80%, transparent 80%);
  z-index: 10;
}

/* ─── Scrollbars ──────────────────────────────────────── */
.win-body::-webkit-scrollbar { width: 6px; height: 6px; }
.win-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.win-body::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 3px;
}
.win-body::-webkit-scrollbar-thumb:hover { background: rgba(var(--neon-rgb), 0.3); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ─── Boot screen ──────────────────────────────────────── */
.boot {
  position: absolute; inset: 0;
  background: #000; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--neon);
}
.boot-logo { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 8px; text-shadow: 0 0 20px var(--neon); }
.boot-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 50px; }
.boot-skip {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: 0.15em; color: var(--text-faint); animation: boot-skip-in 0.4s 0.8s both;
}
@keyframes boot-skip-in { from { opacity: 0; } to { opacity: 1; } }
.boot-log { font-size: 11px; color: var(--text-dim); width: 480px; max-width: 80%; line-height: 1.7; }
.boot-log .ok { color: var(--neon); }
.boot-cursor::after { content: '_'; animation: blink 1s steps(1) infinite; color: var(--neon); }
@keyframes blink { 50% { opacity: 0; } }

/* ─── Reader / generic app body ──────────────────────────────────────── */
.app { padding: 20px 24px; font-size: 13.5px; line-height: 1.6; overflow-y: auto; height: 100%; }
.app h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
.app h2 { font-family: var(--font-display); font-size: 18px; margin: 24px 0 8px; color: var(--neon); }
.app .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 16px; }
.app .tag-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(var(--neon-rgb), 0.1); color: var(--neon);
  border: 1px solid rgba(var(--neon-rgb), 0.25); margin-right: 4px;
}
.app :not(.md-code) > pre {
  background: #000; border: 1px solid var(--border);
  border-radius: 4px; padding: 12px 14px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--neon); overflow: auto;
}
.app a { color: var(--neon-2); }
.app p { margin: 0 0 12px; color: var(--text); }

/* Reader App (sidebar layout) */
.reader-layout { display: flex; height: 100%; }
.reader-sidebar {
  width: 200px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-window-2);
  overflow-y: auto; padding: 0;
}
.reader-sidebar-head {
  padding: 6px 14px 10px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint);
}
.reader-post-item {
  padding: 8px 14px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
  background: transparent;
  border-left: 2px solid transparent;
  transition: background 0.1s, color 0.1s;
  line-height: 1.4;
}
.reader-post-item:hover { background: rgba(var(--neon-rgb), 0.05); color: var(--text); }
.reader-post-item.active { background: rgba(var(--neon-rgb), 0.08); color: var(--neon); border-left-color: var(--neon); }
.reader-main { flex: 1; overflow-y: auto; }
.reader-main .post-body { font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.reader-main .post-body h2 { font-size: 15px; font-weight: 600; color: var(--neon); margin: 20px 0 8px; }
.reader-main .post-body p { margin: 0 0 12px; }
.app .post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app .post-body pre { font-size: 12px; }
.app .post-body h3 { font-family: var(--font-display); font-size: 15px; margin: 20px 0 6px; }
.app .post-body h4 { font-size: 13.5px; margin: 16px 0 6px; }
.app .post-body img { border: 1px solid var(--border); }
.app .post-body li { color: var(--text); }
/* Índice del post en la ventana de lectura */
.app .md-toc {
  margin: 0 0 16px; padding: 8px 12px; max-width: 420px;
  border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,0.02);
}
.app .md-toc[open] .md-toc-title { margin-bottom: 6px; }
.app .md-toc-title { cursor: pointer; margin: 0; }
.cat-badge {
  display: inline-block; font-size: 11px; font-family: var(--font-mono);
  padding: 2px 8px; border-radius: 3px; margin-bottom: 16px; border: 1px solid; opacity: 0.9;
}

/* ─── File explorer ──────────────────────────────────────── */
.fx { display: flex; flex-direction: column; height: 100%; }
.fx-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-window-2);
  font-family: var(--font-mono); font-size: 11px;
}
.fx-toolbar button {
  background: transparent; border: 1px solid transparent;
  color: var(--text-dim); padding: 4px 8px; border-radius: 3px;
  cursor: pointer; font-family: inherit; font-size: 11px;
}
.fx-toolbar button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.fx-path {
  flex: 1; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); padding: 4px 10px;
  border-radius: 3px; color: var(--neon); font-size: 11px; margin: 0 8px;
}
.fx-main { display: flex; flex: 1; overflow: hidden; }
.fx-sidebar {
  width: 160px; border-right: 1px solid var(--border);
  background: var(--bg-window-2); padding: 10px 6px;
  overflow-y: auto; font-family: var(--font-mono); font-size: 11px;
}
.fx-sidebar .group {
  color: var(--text-faint); padding: 8px 8px 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
}
.fx-sidebar .item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 3px;
  cursor: pointer; color: var(--text-dim); transition: background 0.12s;
}
.fx-sidebar .item:hover { background: rgba(var(--neon-rgb), 0.07); color: var(--text); }
.fx-sidebar .item.active { background: rgba(var(--neon-rgb), 0.15); color: var(--neon); }
.fx-list { flex: 1; overflow-y: auto; padding: 8px; }
.fx-row {
  display: grid;
  grid-template-columns: 24px 1fr 100px 80px 40px;
  gap: 10px; align-items: center;
  padding: 5px 8px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); border-radius: 3px; cursor: pointer;
}
.fx-row:hover { background: rgba(var(--neon-rgb), 0.08); color: var(--text); }
.fx-row.header {
  color: var(--text-faint); border-bottom: 1px solid var(--border);
  cursor: default; padding-bottom: 6px; margin-bottom: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
}
.fx-row.header:hover { background: transparent; color: var(--text-faint); }
.fx-row .name { color: var(--text); display: flex; align-items: center; gap: 8px; }
.fx-statusbar {
  border-top: 1px solid var(--border); background: var(--bg-window-2);
  padding: 5px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}

/* ─── Terminal ──────────────────────────────────────── */
.term {
  background: #000; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--neon); padding: 12px 14px; height: 100%;
  overflow-y: auto; line-height: 1.55;
  display: flex; flex-direction: column;
}
.term .prompt { color: var(--neon-2); }
.term .user { color: var(--accent-pink); }
.term .out { color: #c0c4cc; white-space: pre-wrap; }
.term .err { color: #ff5555; }
.term .info { color: var(--neon-2); }
.term-input-line { display: flex; gap: 6px; align-items: center; } /* el prompt va justo tras la última salida, como en bash */
/* Clic en cualquier parte = escribir; el cursor es un bloque que parpadea */
.term { cursor: text; }
.term-field { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.term-mirror { display: block; white-space: pre; color: var(--neon); pointer-events: none; }
.term-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: none; outline: none; background: transparent;
  font: inherit; letter-spacing: inherit;
  color: transparent; caret-color: transparent;  /* se ve el espejo, no el input */
}
.term-input::selection { background: rgba(var(--neon-rgb), 0.35); color: transparent; }
.term-cursor {
  background: var(--neon); color: #000; box-shadow: 0 0 8px rgba(var(--neon-rgb), 0.6);
  animation: term-blink 1.06s steps(1) infinite;
}
/* Sin foco: bloque hueco y quieto, como en una terminal real */
.term-cursor.idle { background: transparent; color: var(--neon); box-shadow: inset 0 0 0 1px var(--neon); animation: none; }
@keyframes term-blink { 50% { background: transparent; color: var(--neon); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .term-cursor { animation: none; }
  /* Sin animaciones ni transiciones (ventanas, arranque, brillos) */
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ─── Tags app ──────────────────────────────────────── */
.tags-app { padding: 24px; overflow-y: auto; height: 100%; }
.tags-app h2 { font-family: var(--font-display); margin: 0 0 4px; color: var(--text); }
.tags-app .sub { color: var(--text-dim); font-size: 12px; margin-bottom: 24px; font-family: var(--font-mono); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  cursor: pointer; transition: all 0.15s; color: var(--text-dim);
}
.tag-chip:hover { transform: translateY(-1px); border-color: rgba(var(--neon-rgb), 0.4); color: var(--neon); }
.tag-chip .count { color: var(--text-faint); font-size: 11px; }
.cat-card {
  border: 1px solid var(--border); border-left: 3px solid var(--neon);
  border-radius: 4px; padding: 12px 16px; margin-bottom: 8px;
  background: rgba(255,255,255,0.02); cursor: pointer; transition: background 0.12s;
}
.cat-card:hover { background: rgba(var(--neon-rgb), 0.05); }
.cat-card .name { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-weight: 500; }
.cat-card .desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ─── About me ──────────────────────────────────────── */
.about { padding: 0; overflow-y: auto; height: 100%; }
.about-hero {
  padding: 32px 28px 24px;
  background: linear-gradient(135deg, rgba(var(--neon-rgb), 0.08), rgba(var(--neon-2-rgb), 0.04));
  border-bottom: 1px solid var(--border);
  display: flex; gap: 20px; align-items: center;
}
.about-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  color: #000; font-size: 32px;
  box-shadow: 0 0 24px rgba(var(--neon-rgb), 0.3); flex-shrink: 0;
}
.about-hero .name { font-family: var(--font-display); font-size: 22px; margin: 0; }
.about-hero .role { font-family: var(--font-mono); font-size: 12px; color: var(--neon); margin-top: 4px; }
.about-hero .domain { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.about-section { padding: 18px 28px; border-bottom: 1px solid var(--border); }
.about-section:last-child { border-bottom: none; }
.about-section h3 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--neon); margin: 0 0 10px;
}
.about-section p { font-size: 13px; line-height: 1.65; color: var(--text); margin: 0 0 8px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.skill {
  padding: 8px 12px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.skill .kbd { color: var(--neon); }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
}
.contact-row .key { color: var(--text-faint); width: 70px; font-size: 11px; }

/* ─── Search ──────────────────────────────────────── */
.search-app { padding: 24px; overflow-y: auto; height: 100%; }
.search-input-big {
  width: 100%; padding: 14px 18px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-strong);
  border-radius: 6px; color: var(--text);
  font-family: var(--font-mono); font-size: 14px; outline: none;
}
.search-input-big:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(var(--neon-rgb), 0.1); }
.search-results { margin-top: 18px; }
.search-result {
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 8px;
  cursor: pointer; background: rgba(255,255,255,0.02); transition: all 0.12s;
}
.search-result:hover { border-color: var(--neon); background: rgba(var(--neon-rgb), 0.05); }
.search-result .title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.search-result .preview { font-size: 12px; color: var(--text-dim); }
.search-result .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* ─── Calendar ──────────────────────────────────────── */
.cal { padding: 18px 22px; overflow-y: auto; height: 100%; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-header h3 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); padding: 6px 4px; text-align: center; }
.cal-cell {
  aspect-ratio: 1; border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 6px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); position: relative; cursor: default;
}
button.cal-cell:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.03); }
.cal-cell.today { border-color: var(--neon); color: var(--neon); }
.cal-cell.has-post::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-pink);
  box-shadow: 0 0 6px var(--accent-pink);
}
.cal-cell.empty { border: none; }

/* ─── Notes ──────────────────────────────────────── */
.notes {
  padding: 22px 24px;
  font-family: var(--font-mono);
  background: repeating-linear-gradient(transparent, transparent 23px, rgba(var(--neon-rgb), 0.05) 23px, rgba(var(--neon-rgb), 0.05) 24px);
  background-size: 100% 24px; background-position: 0 22px;
  font-size: 13px; line-height: 24px; color: var(--text); height: 100%;
  overflow-y: auto;
}
.notes .scribble { color: var(--text-dim); }
.notes .star { color: var(--neon); }

/* ─── Gallery ──────────────────────────────────────── */
.gallery { padding: 18px; overflow-y: auto; height: 100%; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item {
  aspect-ratio: 1; border-radius: 4px; overflow: hidden; cursor: pointer;
  position: relative; background: var(--bg-window-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--text-faint); font-size: 11px; text-align: center;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px);
  transition: border-color 0.15s;
}
.gallery-item:hover { border-color: var(--neon); }
.gallery-item .label { padding: 6px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Email/Contact ──────────────────────────────────────── */
.mail { padding: 22px 24px; overflow-y: auto; height: 100%; }
.mail h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; }
.mail .sub { color: var(--text-dim); font-size: 12px; font-family: var(--font-mono); margin-bottom: 18px; }
.mail-form label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 6px; margin-top: 14px; }
.mail-form input, .mail-form textarea {
  width: 100%; padding: 10px 12px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text);
  font-family: var(--font-mono); font-size: 12px; outline: none; resize: vertical;
}
.mail-form input:focus, .mail-form textarea:focus { border-color: var(--neon); }
.mail-form textarea { min-height: 100px; }
.mail-form button {
  margin-top: 16px; padding: 10px 22px;
  background: var(--neon); color: #000; border: none; border-radius: 4px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em; cursor: pointer; text-transform: uppercase;
}
.mail-form button:hover { box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.4); }
.mail-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.mail-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mail-form .row > div { display: flex; flex-direction: column; }
.mail-form .hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.mail-success { text-align: center; padding: 40px 24px; }
.mail-success .icon { font-size: 40px; margin-bottom: 16px; }
.mail-success h2 { margin: 0 0 8px; }
.mail-success p { color: var(--text-dim); font-size: 13px; }

/* ─── Comments ──────────────────────────────────────── */
.comments-section { padding: 18px 28px 28px; border-top: 1px solid var(--border); margin-top: 24px; }
.comments-section .ch3 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--neon); margin: 0 0 14px;
}
.comments-section .ch3 .count { color: var(--text-faint); margin-left: 6px; }
.comment {
  display: flex; gap: 10px; padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.comment:last-of-type { border-bottom: none; }
.comment .avatar {
  width: 28px; height: 28px; border-radius: 4px;
  background: rgba(var(--neon-rgb), 0.08); border: 1px solid var(--neon);
  color: var(--neon); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 11px; flex-shrink: 0;
}
.comment .body { flex: 1; min-width: 0; }
.comment .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.comment .meta .name { color: var(--text); font-weight: 600; }
.comment .meta .when::before { content: ' · '; }
.comment .text { font-size: 13px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }
.comment.you .avatar { background: rgba(var(--neon-2-rgb), 0.08); border-color: var(--neon-2); color: var(--neon-2); }
.comment.you .meta .name::after { content: ' (tú)'; color: var(--text-faint); font-weight: 400; }
.comment-form { margin-top: 14px; }
.comment-form .ce { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 8px 10px;
  background: var(--bg-window-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-mono); font-size: 12px;
  outline: none; resize: vertical; border-radius: 2px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--neon); }
.comment-form textarea { min-height: 70px; }
.comment-form .actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.comment-form button {
  padding: 7px 16px; background: var(--neon); color: #000;
  border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px;
}
.comment-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.comment-form .clear { color: var(--text-faint); cursor: pointer; font-family: var(--font-mono); font-size: 11px; }
.comment-form .clear:hover { color: var(--text); }
.comment-form .ok { color: var(--neon); font-family: var(--font-mono); font-size: 11px; }
/* CommentsApp (API-backed) */
.comment-item { padding: 10px 12px; background: var(--bg-window-3); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.comment-author { font-size: 11px; font-weight: 600; color: var(--neon); font-family: var(--font-mono); }
.comment-date { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.comment-body { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.btn-neon {
  padding: 7px 16px; border: none; border-radius: 2px;
  background: var(--neon); color: #000;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: box-shadow 0.15s;
}
.btn-neon:hover { box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.4); }
.btn-neon:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Context menu ───────────────────────────────────────────── */
.ctx-menu {
  background: var(--bg-window-2); border: 1px solid var(--border-strong);
  border-radius: 6px; overflow: hidden; min-width: 160px;
  box-shadow: var(--shadow-window), 0 0 20px rgba(var(--neon-rgb), 0.08);
}
.ctx-menu-item {
  padding: 8px 14px; font-size: 12px; cursor: pointer;
  font-family: var(--font-mono); color: var(--text-dim);
  transition: background 0.1s, color 0.1s;
}
.ctx-menu-item:hover { background: rgba(var(--neon-rgb), 0.08); color: var(--neon); }
.ctx-menu-item.danger:hover { color: #ff4444; }

/* ─── App shared utility ─────────────────────────────────────── */
.app-scroll { overflow-y: auto; height: 100%; }

/* ─── Tweaks Panel ───────────────────────────────────────────── */
.tweaks-panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: 220px;
  background: #fff; border-left: 1px solid #ddd;
  display: flex; flex-direction: column; z-index: 9100;
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.tweaks-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #999; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 16px 12px; border-bottom: 1px solid #eee;
}
.tweaks-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.tweak-section { padding: 0 16px 16px; }
.tweak-section-label { font-size: 11px; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.tweak-radio { display: flex; flex-direction: column; gap: 4px; }
.tweak-radio label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #444; cursor: pointer; padding: 5px 8px; border-radius: 5px; transition: background 0.1s; }
.tweak-radio label:hover { background: #f5f5f5; }
.tweak-radio input[type=radio] { accent-color: #4f46e5; }
.tweak-toggle { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #444; padding: 4px 0; }
.tweak-toggle-switch { width: 32px; height: 18px; border-radius: 9px; background: #ddd; position: relative; cursor: pointer; transition: background 0.2s; }
.tweak-toggle-switch.on { background: #4f46e5; }
.tweak-toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.tweak-toggle-switch.on::after { transform: translateX(14px); }


.contact-row a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--border-strong); }
.contact-row a:hover { color: var(--neon); border-color: var(--neon); }

/* ─── Tablas Markdown (escritorio) ─────────────────────── */
.md-table { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: 6px; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.md-table th, .md-table td { padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.md-table th {
  position: sticky; top: 0; background: var(--bg-window-3);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--neon);
}
.md-table tbody tr:last-child td { border-bottom: 0; }
.md-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.md-table tbody tr:hover { background: var(--bg-hover); }
.md-table td code { white-space: nowrap; }

/* ─── Sobre mí editable ─────────────────────────────── */
.about-avatar { overflow: hidden; }
.about-avatar img, .sm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio a { color: var(--neon); }
.about-bio code { font-family: var(--font-mono); font-size: .9em; color: var(--neon-2); }

/* Ventana de comentarios de un post */
.app-scroll > .comments-section { border-top: 0; margin-top: 0; }
.comments-section h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; }
.comments-post { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 16px; }

/* ─── Ventanas interactivas ────────────────────────────── */
/* Botones con aspecto de los elementos que sustituyen */
button.tag-chip, button.cal-cell, button.gallery-item { font: inherit; text-align: inherit; }
button.cal-cell { cursor: pointer; background: transparent; text-align: left; font-family: var(--font-mono); font-size: 11px;
  display: flex; align-items: flex-start; justify-content: flex-start; }
button.gallery-item { padding: 0; }

.fx-toolbar button:disabled { opacity: .3; cursor: default; }
.fx-toolbar button:disabled:hover { background: transparent; color: inherit; }
.fx-empty { padding: 18px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.fx-row { cursor: pointer; }

.tag-chip.active { border-color: var(--neon); color: var(--neon); background: rgba(var(--neon-rgb), 0.08); }
.cat-card.active { background: rgba(var(--neon-rgb), 0.07); }
.cat-card:focus-visible { outline: 1px solid var(--neon); }
.tags-results { margin: -12px 0 26px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: rgba(0,0,0,0.25); }
.tags-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--neon); }
.tags-results-head button { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 12px; }
.tags-results .search-result, .cal-posts .search-result { margin-bottom: 6px; }

.cal-cell.selected { background: rgba(var(--neon-rgb), 0.12); border-color: var(--neon); color: var(--text); }
.cal-posts { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.cal-posts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.cal-posts-head button { margin-left: auto; background: none; border: 0; color: var(--neon); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; text-transform: none; letter-spacing: 0; }
.cal-posts-empty { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.gallery-empty { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.img-viewer { display: flex; flex-direction: column; height: 100%; background: #000; }
.img-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px;
  background-image: repeating-conic-gradient(#0d0f12 0 25%, #08090b 0 50%); background-size: 20px 20px; }
.img-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-viewer-bar { display: flex; gap: 14px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); background: var(--bg-window-2); }
.img-viewer-bar span:first-child { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-viewer-bar a { margin-left: auto; color: var(--neon); text-decoration: none; }

/* Ajustes */
.settings-app { padding: 20px 22px; overflow-y: auto; height: 100%; }
.settings-app section { margin-bottom: 22px; }
.settings-app h3 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--neon); margin: 0 0 12px; }
.st-walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-wall { display: flex; flex-direction: column; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.st-wall-preview { display: block; aspect-ratio: 16 / 10; border-radius: 6px; border: 2px solid var(--border);
  transition: border-color .15s, box-shadow .15s; }
/* "Neón" es el fondo por defecto del CSS del escritorio: se replica para la miniatura */
.st-wall-preview.wp-neon { background:
  radial-gradient(ellipse at 30% 40%, rgba(var(--neon-rgb), 0.25), transparent 55%),
  radial-gradient(ellipse at 75% 70%, rgba(var(--neon-2-rgb), 0.18), transparent 55%), linear-gradient(180deg, #050608, #0a0d12); }
.st-wall:hover .st-wall-preview { border-color: var(--border-strong); }
.st-wall.active { color: var(--neon); }
.st-wall.active .st-wall-preview { border-color: var(--neon); box-shadow: 0 0 12px rgba(var(--neon-rgb), 0.3); }
.st-accents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-accent { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 6px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02); cursor: pointer;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.st-accent-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sw), var(--sw2)); }
.st-accent:hover { border-color: var(--border-strong); }
.st-accent.active { border-color: var(--sw); color: var(--text); box-shadow: 0 0 0 1px var(--sw) inset; }
.st-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.st-toggle > span:first-child { display: flex; flex-direction: column; font-size: 13px; color: var(--text); }
.st-toggle b { font-weight: 500; }
.st-toggle small { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.st-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-switch { flex-shrink: 0; width: 36px; height: 20px; border-radius: 10px; background: rgba(255,255,255,0.15); position: relative; transition: background .2s; }
.st-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.st-toggle input:checked + .st-switch { background: var(--neon); }
.st-toggle input:checked + .st-switch::after { transform: translateX(16px); background: #000; }
.st-toggle input:focus-visible + .st-switch { outline: 2px solid var(--neon); outline-offset: 2px; }


/* ─── Accesibilidad ───────────────────────────────────────────────────── */
/* Solo para lectores de pantalla */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Foco visible con teclado en todo el escritorio */
.desktop :focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.desktop .window:focus-visible { outline: none; }   /* la ventana activa ya se resalta con su borde */
.desktop .reader-post-item:focus-visible,
.desktop .fx-row:focus-visible,
.desktop .search-result:focus-visible { outline-offset: -2px; }

/* ─── Al terminar un post: relacionados y anterior/siguiente ──────────── */
.app .post-more { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.app .post-more-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--neon); margin: 0 0 10px; }
.app .post-related { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.app .post-related li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.app .post-related a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.app .post-related a:hover { color: var(--neon); border-bottom-color: currentColor; }
.app .post-related .cat { font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; }
.app .post-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app .post-prevnext a {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,0.02); color: var(--text);
}
.app .post-prevnext a:hover { border-color: var(--border-neon); }
.app .post-prevnext a.next { grid-column: 2; text-align: right; }
.app .post-prevnext small { font-family: var(--font-mono); font-size: 11px; color: var(--neon); }
.app .post-prevnext span { font-size: 13px; font-weight: 600; line-height: 1.3; }
