/* ============================================================
   AUREUM — sistema visual
   Dark mode cálido · dorado · serif elegante
   ============================================================ */

:root {
  /* fondos */
  --bg-void: #08070A;
  --bg-0: #0B0A0C;
  --bg-1: #0E0D10;
  --bg-2: #131217;
  --surface: #15131A;
  --surface-2: #1A1820;
  --surface-hi: #211E29;

  /* dorados */
  --gold: #C9A84C;
  --gold-bright: #E8C96A;
  --gold-deep: #9A7E33;
  --gold-soft: rgba(201, 168, 76, 0.14);
  --gold-line: rgba(201, 168, 76, 0.18);
  --gold-glow: rgba(232, 201, 106, 0.35);

  /* texto */
  --text: #F2ECDD;
  --text-2: #C8C0B2;
  --text-3: #8E877C;
  --text-4: #5E594F;

  /* estados */
  --st-active: #6FBF8A;
  --st-analysis: #D99A4E;
  --st-working: #6E97D6;

  /* bordes / superficies */
  --line: rgba(255, 248, 232, 0.07);
  --line-2: rgba(255, 248, 232, 0.04);

  /* radios y sombras */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-card: 0 18px 50px -22px rgba(0,0,0,0.85), 0 2px 0 rgba(255,255,255,0.02) inset;
  --shadow-pop: 0 30px 80px -28px rgba(0,0,0,0.9);

  /* tipografía */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --accent: var(--gold);
  --accent-bright: var(--gold-bright);
}

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

html, body {
  height: 100%;
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body { font-size: 15px; line-height: 1.5; }

::selection { background: var(--gold-soft); color: var(--gold-bright); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.16);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.3); background-clip: padding-box; }

/* grano desactivado — solo plate-amanecer.png como imagen */
.grain { display: none; }

.serif { font-family: var(--serif); }
.gold { color: var(--gold-bright); }
.dim { color: var(--text-3); }

/* ============================================================
   ESTRUCTURA GENERAL
   ============================================================ */
#stage { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; }
.screen.hidden { display: none !important; }

/* ============================================================
   PANTALLA DE INICIO (LOGIN)
   ============================================================ */
#login {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.scene {
  position: absolute; inset: 0; overflow: hidden;
  background-color: #0A0810;
}
.scene::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url("plate-amanecer.png") center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
  transform: scale(1.18);
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.hero-video.ready { opacity: 1; }
.scene::after {
  z-index: 2;
}
.scene::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 40%, rgba(8,7,10,0.25) 0%, rgba(8,7,10,0.65) 70%, rgba(8,7,10,0.85) 100%),
    linear-gradient(180deg, rgba(8,7,10,0.30) 0%, transparent 30%, rgba(8,7,10,0.50) 100%);
}

#scene-particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.login-content {
  position: relative; z-index: 5; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 100%; min-height: 100vh;
  padding: 12vh 24px 0;
  gap: 0;
  animation: none;
}

.login-mono {
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 14px rgba(232, 201, 106, 0.4));
  line-height: 0;
}
.login-mono img { display: block; margin: 0 auto; }
.login-wordmark {
  font-family: var(--serif); font-weight: 400;
  font-size: 36px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--gold-bright); line-height: 1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.login-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0 24px; color: var(--gold); opacity: 0.55; }
.login-divider .ln { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.login-divider .ln.r { background: linear-gradient(90deg, var(--gold), transparent); }
.login-divider .dot { width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); }

.login-clock {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 108px; line-height: 1; letter-spacing: 0.02em;
  color: #FBF7EE;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 0.08em;
  margin: 0; padding: 0;
  white-space: nowrap;
}
.login-clock .sep {
  display: inline-block;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.8;
  transform: translateY(-0.08em);
  margin: 0 0.02em;
}
.login-clock .cl-hh, .login-clock .cl-mm {
  display: inline-block;
  letter-spacing: 0.03em;
}

.login-date {
  margin-top: 16px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  font-size: 11px; letter-spacing: 0.55em; text-transform: uppercase;
  color: rgba(245,238,225,0.6);
}

.login-greet {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 22px; color: rgba(251, 247, 238, 0.88);
  margin-top: 36px;
  letter-spacing: 0.02em;
}
.login-sub {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(245,238,225,0.42);
  margin-top: 10px;
}

.enter-zone, .enter-label, .enter-track, .enter-handle, .fill { display: none !important; }

/* ============================================================
   ENTRADA — animaciones coreográficas del login
   ============================================================ */
.login-mono       { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.4s forwards; }
.login-wordmark   { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.55s forwards; }
.login-divider    { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.7s forwards; }
.login-clock      { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.85s forwards; }
.login-date       { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.0s forwards; }
.login-greet      { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.2s forwards; }
.login-sub        { opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.35s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none;             filter: none; }
}

/* ============================================================
   BOTÓN DE ACCESO — horizontal elegante, líneas + texto + chevron
   ============================================================ */
.enter-orb {
  position: relative;
  margin-top: 48px;
  z-index: 12;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 14px 8px;
  background: none; border: none;
  cursor: pointer; font: inherit;
  color: var(--gold-bright);
  opacity: 0; transform: translateY(16px);
  animation: orbAppear 1.2s var(--ease-out) 1.7s forwards;
}
@keyframes orbAppear {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);     filter: none; }
}

.eo-line {
  display: block;
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.65;
  transition: width .5s var(--ease-out), opacity .35s;
}
.eo-line-r { background: linear-gradient(90deg, currentColor, transparent); }

.eo-mark {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(232, 201, 106, 0.28);
  transition: letter-spacing .35s, color .35s;
}

.eo-chevron {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.85;
  transition: transform .35s var(--ease-out), background .35s, color .35s, border-color .35s;
}
.eo-chevron svg { width: 12px; height: 12px; transition: transform .35s var(--ease-out); }

/* hover */
.enter-orb:hover { color: #FFE9A8; }
.enter-orb:hover .eo-line { width: 84px; opacity: 1; }
.enter-orb:hover .eo-mark {
  letter-spacing: 0.26em;
  color: #FFE9A8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 0 22px rgba(232, 201, 106, 0.55);
}
.enter-orb:hover .eo-chevron {
  background: rgba(232, 201, 106, 0.18);
  transform: translateX(2px);
}
.enter-orb:hover .eo-chevron svg { transform: translateX(2px); }

.enter-orb:active { transform: translateY(1px); }

/* clic — desvanece elegantemente */
.enter-orb.activated { animation: orbDissolve 0.5s var(--ease-out) forwards; }
@keyframes orbDissolve {
  to { opacity: 0; filter: blur(8px); transform: translateY(-4px) scale(1.05); }
}



/* ============================================================
   APP — layout principal
   ============================================================ */
#app {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  background: var(--bg-void);
  isolation: isolate;
}
#app::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url("plate-amanecer.png") center / cover no-repeat;
  filter: blur(50px) saturate(0.8) brightness(0.45);
  transform: scale(1.15);
}
#app::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(40, 32, 60, 0.25) 0%, transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(10, 8, 14, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8, 7, 12, 0.55) 0%, rgba(8, 7, 12, 0.75) 100%);
}
#app.entered { /* sin animación */ }

.sidebar { display: none; }
.sidebar-brand, .sidebar-foot { display: none; }
.back-home { display: none; }

/* ============================================================
   CROWN BAR — barra superior minimalista
   ============================================================ */
.crown {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 20px 56px;
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.65) 0%, rgba(8, 7, 12, 0.35) 70%, transparent 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.crown-mark {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 14px;
  background: rgba(20, 18, 28, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 999px;
  color: var(--text); cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  font: inherit;
}
.crown-mark:hover {
  border-color: var(--gold);
  background: rgba(30, 24, 40, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 201, 106, 0.12);
}
.cm-mono { display: inline-grid; place-items: center; }
.cm-mono svg { display: block; }
.cm-numeral {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  min-width: 28px; text-align: center;
}

.crown-trail {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.ct-house { color: var(--gold); }
.ct-where { color: var(--text); }

.crown-right { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
.crown-key {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(255, 248, 232, 0.08);
  border-radius: 999px;
  color: var(--text-3);
  font: inherit; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.crown-key:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.crown-key kbd {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  background: rgba(232, 201, 106, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(232, 201, 106, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0;
}

/* contenido full-bleed */
#app .content { padding: 0; min-height: calc(100vh - 80px); }
#app .view { padding: 40px 56px 100px; max-width: 1480px; margin: 0 auto; }
#app .view-wide { max-width: 1640px; }

/* ============================================================
   COMPASS ROSE — overlay invocado
   ============================================================ */
.compass-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
}
.compass-overlay.show { opacity: 1; pointer-events: auto; }
.compass-veil {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(5, 4, 8, 0.78), rgba(5, 4, 8, 0.94));
  backdrop-filter: blur(20px) saturate(0.8);
  -webkit-backdrop-filter: blur(20px) saturate(0.8);
}
.compass-stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: scale(0.92) translateY(20px);
  transition: transform .45s var(--ease-out);
}
.compass-overlay.show .compass-stage { transform: none; }
.compass-mono { display: none; }
.compass-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--gold);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 4px;
}
.compass-sub { display: none; }

@media (max-height: 820px) {
  .compass-stage { transform: scale(0.78) translateY(20px); }
  .compass-overlay.show .compass-stage { transform: scale(0.78); }
}
@media (max-height: 700px) {
  .compass-stage { transform: scale(0.65) translateY(20px); }
  .compass-overlay.show .compass-stage { transform: scale(0.65); }
}

.compass-rose {
  position: relative;
  width: 620px; height: 620px;
  display: grid; place-items: center;
  margin: 4px 0 22px;
}

/* anillos concéntricos con personalidad */
.rose-ring {
  position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
}
.rose-ring-1 {
  inset: 0;
  border: 1px solid rgba(232, 201, 106, 0.20);
  box-shadow: inset 0 0 60px rgba(232, 201, 106, 0.05);
  animation: roseSpin 180s linear infinite;
  opacity: 0;
  animation: roseSpin 180s linear infinite, ringFadeIn 0.6s var(--ease-out) 0.1s forwards;
}
.rose-ring-2 {
  inset: 70px;
  border: 1px dashed rgba(232, 201, 106, 0.14);
  opacity: 0;
  animation: roseSpin 120s linear reverse infinite, ringFadeIn 0.6s var(--ease-out) 0.2s forwards;
}
.rose-ring-3 {
  inset: 140px;
  border: 1px solid rgba(232, 201, 106, 0.08);
  opacity: 0;
  animation: ringFadeIn 0.6s var(--ease-out) 0.3s forwards;
}
@keyframes roseSpin { to { transform: rotate(360deg); } }
@keyframes ringFadeIn { to { opacity: 1; } }

/* cruz cardinal sutil */
.rose-cross {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(232, 201, 106, 0.10) calc(50% - 0.5px), rgba(232, 201, 106, 0.10) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg,  transparent calc(50% - 0.5px), rgba(232, 201, 106, 0.10) calc(50% - 0.5px), rgba(232, 201, 106, 0.10) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 75%, transparent 76%);
          mask: radial-gradient(circle, #000 75%, transparent 76%);
  pointer-events: none;
  opacity: 0;
  animation: ringFadeIn 0.6s var(--ease-out) 0.4s forwards;
}

/* núcleo central con monograma */
.rose-core {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(232, 201, 106, 0.06), rgba(8, 6, 12, 0.85));
  border: 1px solid rgba(232, 201, 106, 0.25);
  box-shadow:
    inset 0 0 40px rgba(232, 201, 106, 0.06),
    0 0 80px -10px rgba(232, 201, 106, 0.20);
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  animation: coreIn 0.7s var(--ease-out) 0.2s forwards, corePulse 6s ease-in-out 1s infinite;
}
@keyframes coreIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes corePulse {
  0%, 100% { box-shadow: inset 0 0 40px rgba(232, 201, 106, 0.06), 0 0 80px -10px rgba(232, 201, 106, 0.20); }
  50%      { box-shadow: inset 0 0 60px rgba(232, 201, 106, 0.12), 0 0 120px -10px rgba(232, 201, 106, 0.32); }
}
.rose-core-mono img,
.rose-core-mono svg { display: block; opacity: 0.95; }

/* tooltip flotante debajo del núcleo */
.rose-tip {
  position: absolute;
  bottom: -42px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  transition: color .25s;
}

/* cuartos en la rosa — botones grandes, glifo dominante */
.rose-room {
  position: absolute; left: 50%; top: 50%;
  width: 104px; height: 104px;
  margin: -52px 0 0 -52px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(20, 18, 30, 0.85), rgba(10, 8, 18, 0.95));
  border: 1px solid rgba(232, 201, 106, 0.18);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  font: inherit;
  color: var(--gold);
  z-index: 3;
  transform: translate(0, 0) scale(0.3);
  opacity: 0;
  animation: roomIn 0.55s var(--ease-out) calc(0.35s + var(--i, 0) * 0.05s) forwards;
  transition: border-color .35s, background .35s, color .25s, box-shadow .35s;
}
@keyframes roomIn {
  to {
    transform: translate(var(--tx), var(--ty)) scale(1);
    opacity: 1;
  }
}
.rose-room:hover {
  border-color: var(--gold-bright);
  color: #FFF6DC;
  background: radial-gradient(60% 60% at 50% 50%, rgba(60, 48, 80, 0.95), rgba(28, 22, 42, 1));
  box-shadow:
    0 0 0 6px rgba(232, 201, 106, 0.12),
    0 0 40px rgba(232, 201, 106, 0.32),
    0 12px 30px -10px rgba(0, 0, 0, 0.7);
}
.rose-room:hover .rr-glyph svg {
  filter: drop-shadow(0 0 14px rgba(232, 201, 106, 0.6));
  transform: scale(1.08);
}
.rose-room:active {
  transform: translate(var(--tx), var(--ty)) scale(0.96);
}

.rr-glyph {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
}
.rr-glyph svg {
  width: 100%; height: 100%;
  transition: transform .25s var(--ease-out), filter .25s;
}
.rr-shortcut {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 12px;
  color: var(--gold);
  opacity: 0.55;
  letter-spacing: 0;
}
.rose-room:hover .rr-shortcut { color: var(--gold-bright); opacity: 1; }

.compass-foot {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-top: 8px;
}
.compass-foot kbd {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  background: rgba(232, 201, 106, 0.10);
  color: var(--gold-bright);
  border: 1px solid rgba(232, 201, 106, 0.22);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0;
  margin: 0 4px;
}
.compass-foot .orn { opacity: 0.45; margin: 0 14px; }
@media (max-height: 760px) {
  .compass-rose { width: 540px; height: 540px; }
  .rose-room { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .rr-glyph { width: 48px; height: 48px; }
}

.sidebar-foot { margin-top: 14px; padding: 14px 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.sidebar-foot .av { width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--gold-line); }
.sidebar-foot .meta .n { font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: 0.04em; }
.sidebar-foot .meta .r { font-size: 12px; color: var(--text-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-active); box-shadow: 0 0 0 0 rgba(111,191,138,0.5); animation: live 2.4s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(111,191,138,0.5);} 70%,100% { box-shadow: 0 0 0 7px rgba(111,191,138,0);} }
.sidebar-foot .av .live-dot { position: absolute; bottom: 1px; right: 1px; border: 2px solid var(--bg-1); }

.content { position: relative; overflow-y: auto; overflow-x: hidden; height: 100vh; padding: 0; }

/* botón "volver al inicio" — esquina superior derecha del app */
.back-home {
  position: fixed; top: 22px; right: 26px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(20,18,26,0.55);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.back-home::before {
  content: ''; width: 10px; height: 10px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 3px;
}
.back-home:hover {
  color: var(--gold-bright); border-color: var(--gold-bright);
  background: var(--gold-soft); transform: translateX(-2px);
}
.view { padding: 48px 56px 80px; min-height: 100%; max-width: 1480px; }

/* ============================================================
   COMPONENTES COMPARTIDOS — estilo editorial / glass
   ============================================================ */
.card {
  background: linear-gradient(180deg, rgba(20, 18, 28, 0.55), rgba(12, 10, 18, 0.65));
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.card-title { font-family: var(--serif); font-size: 22px; color: var(--text); font-weight: 500; letter-spacing: 0.01em; }
.card-link { font-size: 11.5px; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: color .25s; }
.card-link:hover { color: var(--gold-bright); }

/* sección editorial: sin caja, solo hairline arriba */
.section { padding: 28px 0; border-top: 1px solid rgba(201, 168, 76, 0.10); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 24px; }
.section-title { font-family: var(--serif); font-size: 26px; color: var(--text); font-weight: 500; letter-spacing: 0.01em; }
.section-link { font-size: 11px; color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: color .25s; }
.section-link:hover { color: var(--gold-bright); }

.eyebrow { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.s-active { background: var(--st-active); box-shadow: 0 0 9px rgba(111,191,138,0.55); }
.s-analysis { background: var(--st-analysis); box-shadow: 0 0 9px rgba(217,154,78,0.55); }
.s-working { background: var(--st-working); box-shadow: 0 0 9px rgba(110,151,214,0.55); }

.bar { height: 4px; border-radius: 4px; background: rgba(255,248,232,0.07); overflow: hidden; position: relative; }
.bar > span { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); border-radius: 4px; transition: right 1.1s var(--ease); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-md); border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1A1408;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 6px 20px -8px var(--gold-glow); transition: transform .2s, box-shadow .2s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px var(--gold-glow); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,248,232,0.02); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; transition: all .25s;
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }

.search {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-radius: 22px; border: 1px solid var(--line); background: rgba(255,248,232,0.02);
  color: var(--text-3); min-width: 240px;
}
.search svg { width: 16px; height: 16px; flex: none; }
.search input { background: none; border: none; outline: none; color: var(--text); font-family: var(--sans); font-size: 13.5px; width: 100%; }
.search input::placeholder { color: var(--text-3); }

/* SVGs en contextos flex sin tamaño explícito: límite seguro */
.btn-gold svg { width: 15px; height: 15px; flex: none; }
.tab svg, .card-link svg, .section-link svg { width: 14px; height: 14px; flex: none; }

/* ============================================================
   ORNAMENTOS — separadores del lenguaje AUREUM
   ============================================================ */
/* diamante dorado inline, reemplaza el · */
.orn {
  display: inline-block; vertical-align: middle;
  width: 4px; height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 12px;
  opacity: 0.65;
}
.orn.lg { width: 5px; height: 5px; margin: 0 16px; opacity: 0.8; }

/* numeral romano del eyebrow */
.numeral {
  display: inline-block;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.6em; line-height: 0.8;
  color: var(--gold-bright);
  margin-right: 14px;
  vertical-align: -0.18em;
  letter-spacing: 0;
}

.tabs { display: flex; gap: 36px; border-bottom: 1px solid rgba(201, 168, 76, 0.18); }
.tab { padding: 14px 2px; font-size: 13px; color: var(--text-3); cursor: pointer; position: relative; transition: color .25s; white-space: nowrap; letter-spacing: 0.10em; text-transform: uppercase; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--gold-bright); }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-bright); border-radius: 2px; box-shadow: 0 0 10px var(--gold-glow); }

image-slot { display: block; }

.placeholder-portrait {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201,168,76,0.10), transparent 60%),
    linear-gradient(180deg, #211C24, #14111A);
  display: grid; place-items: center; overflow: hidden;
}
.placeholder-portrait .mono-init { font-family: var(--serif); font-size: 54px; color: rgba(232,201,106,0.32); font-weight: 500; }

.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.taller-view { padding: 0 !important; height: 100vh; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr; }
/* íconos en botones dorados: tamaño fijo (evita SVG sin width que llena el botón) */
.taller-view .btn-gold svg, .tm-actions .btn-gold svg { width: 16px; height: 16px; flex: none; }

.taller-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,18,26,0.7), rgba(10,9,12,0.4));
  backdrop-filter: blur(6px); z-index: 4;
}
.tt-title { font-size: 28px; color: var(--gold-bright); font-weight: 500; }
.tt-sub { font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; margin-top: 2px; }
.tt-right { display: flex; align-items: center; gap: 8px; }
.taller-sync { font-size: 11.5px; color: var(--text-4); letter-spacing: 0.02em; margin-right: 4px; transition: color .2s; white-space: nowrap; }
.taller-sync.pending { color: var(--text-3); }
.taller-sync.ok { color: var(--st-active); }
.taller-sync.err { color: var(--st-analysis); }

/* breadcrumb de niveles */
.taller-breadcrumb {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 9px 24px; border-bottom: 1px solid var(--line);
  background: rgba(10,9,12,0.4);
}
.bc-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent;
  color: var(--text-3); font-size: 13px; cursor: pointer; transition: all .18s;
}
.bc-item:not(.current):hover { color: var(--gold-bright); background: var(--gold-soft); border-color: var(--gold-line); }
.bc-item.current { color: var(--text); cursor: default; }
.bc-ic { display: inline-grid; place-items: center; opacity: 0.85; }
.bc-ic svg { width: 14px; height: 14px; }
.bc-sep { color: var(--text-4); margin: 0 1px; }

.taller-shell { display: grid; grid-template-columns: 1fr 230px; min-height: 0; }

/* paleta lateral (a la derecha) */
.taller-palette {
  background: linear-gradient(180deg, rgba(20,18,26,0.6), rgba(10,9,12,0.6));
  border-left: 1px solid var(--line);
  padding: 16px 14px 24px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.tp-title { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-3); padding: 0 6px 6px; }
/* toggle de bibliotecas (2×2) */
.tp-libs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 3px; margin-bottom: 10px;
}
.tp-lib {
  padding: 6px 4px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; color: var(--text-3);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; transition: all .18s;
}
.tp-lib:hover { color: var(--text); }
.tp-lib.on { background: var(--gold-soft); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* buscador de la paleta */
.tp-searchwrap { position: relative; margin-bottom: 10px; }
.tp-search-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.tp-search-ic svg { width: 14px; height: 14px; }
.tp-search {
  width: 100%; padding: 7px 10px 7px 30px; border-radius: var(--r-sm);
  background: rgba(255,248,232,0.03); border: 1px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 12.5px; outline: none; transition: border-color .18s;
}
.tp-search:focus { border-color: var(--gold-line); }
.tp-search::placeholder { color: var(--text-4); }

.tp-groups { display: flex; flex-direction: column; }
.tp-empty { font-size: 12px; color: var(--text-4); padding: 12px 6px; font-style: italic; }
/* crear herramienta (biblioteca Míos) */
.tp-create {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px; margin-bottom: 10px; cursor: pointer;
  background: var(--gold-soft); border: 1px dashed var(--gold-line); border-radius: var(--r-md);
  color: var(--gold-bright); font-family: var(--sans); font-size: 12.5px; transition: all .18s;
}
.tp-create:hover { background: rgba(232,201,106,0.14); }
.tp-create svg { width: 14px; height: 14px; }
.tp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-del {
  margin-left: auto; width: 16px; height: 16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--text-4); font-size: 14px; line-height: 1; flex: none;
}
.tp-item:hover .tp-del { display: flex; }
.tp-del:hover { color: #ff9a8d; background: rgba(217,87,78,0.15); }
.tp-group { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.tp-cat {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-4); padding: 8px 6px 4px;
}
.tp-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--r-sm);
  background: rgba(255,248,232,0.02); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .18s;
  text-align: left;
}
.tp-item { cursor: grab; }
.tp-item:active { cursor: grabbing; }
.tp-item.dragging { opacity: 0.45; }
.tp-item:hover { background: var(--gold-soft); color: var(--gold-bright); border-color: var(--gold-line); transform: translateX(-2px); }
/* lienzo resaltado mientras arrastras un nodo de la paleta */
.taller-stage.drop-target { box-shadow: inset 0 0 0 2px var(--gold-line); }
.taller-stage.drop-target .taller-grid { background-color: rgba(232,201,106,0.03); }

/* caja de selección (marquee) */
.taller-marquee {
  position: absolute; z-index: 3; pointer-events: none;
  border: 1px solid var(--gold-bright);
  background: rgba(232,201,106,0.10);
  border-radius: 4px;
}
.tp-ic { display: inline-grid; place-items: center; flex: none; }
.tp-ic svg { width: 16px; height: 16px; }
.tp-divider { height: 1px; background: var(--line); margin: 10px 4px; }
.tp-hint { font-size: 11px; line-height: 1.8; color: var(--text-3); padding: 0 6px; }
.tp-hint b { color: var(--gold); font-weight: 500; }

/* stage */
.taller-stage {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #15131A 0%, #0C0A10 60%, var(--bg-void) 100%);
  cursor: grab;
  min-height: 0;
}
.taller-stage.panning { cursor: grabbing; }
.taller-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(232,201,106,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.taller-canvas {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  width: 4000px; height: 3000px;
  will-change: transform;
}
.taller-edges {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.taller-edges path.edge {
  fill: none; stroke: rgba(232,201,106,0.55); stroke-width: 1.8;
  pointer-events: stroke; cursor: pointer;
  transition: stroke .2s, stroke-width .2s;
}
.taller-edges path.edge:hover { stroke: var(--gold-bright); stroke-width: 2.4; }
.taller-edges path.edge.selected { stroke: var(--gold-bright); stroke-width: 2.6; filter: drop-shadow(0 0 6px var(--gold-glow)); }
.taller-edges path.edge.ghost { stroke: rgba(232,201,106,0.4); stroke-dasharray: 4 5; }

.taller-nodes { position: absolute; inset: 0; pointer-events: none; }

/* nodos */
.node {
  position: absolute; pointer-events: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--line);
  border-left: 3px solid var(--col, var(--gold));
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.7);
  padding: 10px 12px;
  cursor: grab;
  user-select: none;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.node:hover { box-shadow: 0 16px 38px -14px rgba(0,0,0,0.85), 0 0 0 1px var(--gold-line); }
.node.selected { border-color: var(--gold-bright); box-shadow: 0 0 0 2px var(--gold-soft), 0 16px 38px -14px rgba(0,0,0,0.85); }
.node-head { display: flex; align-items: center; gap: 7px; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.node-ic { display: inline-grid; place-items: center; }
.node-ic svg { width: 14px; height: 14px; }
.node-flag { color: var(--gold); opacity: 0.85; display: inline-grid; place-items: center; }
.node-flag svg { width: 13px; height: 13px; }
.node-head .node-kind { margin-right: auto; }
.node-kids {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--gold-bright); font-size: 10px; font-weight: 700; letter-spacing: 0;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 1px 6px 1px 4px; border-radius: 999px;
}
.node-kids svg { width: 11px; height: 11px; }
.node-label {
  font-family: var(--serif); font-size: 17px; color: var(--text); line-height: 1.2;
  outline: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.node-label[contenteditable="true"] { white-space: normal; overflow: visible; text-overflow: clip; }
.node-label[contenteditable="true"] { background: rgba(232,201,106,0.08); border-radius: 4px; padding: 2px 4px; margin: -2px -4px; }
.node.has-meta { box-shadow: 0 12px 32px -16px rgba(0,0,0,0.7), inset 3px 0 0 var(--gold); }
.node.has-kids { border-left-width: 3px; }

/* nodo con imagen (Pantalla / Brandbook) */
.node.node-media { padding-bottom: 8px; }
.node-img { margin: 6px 0 4px; border-radius: 8px; overflow: hidden; height: 100px; background: #0C0A10; }
.node-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.node-pal { display: flex; gap: 0; height: 16px; border-radius: 5px; overflow: hidden; margin: 6px 0 2px; }
.node-pal span { flex: 1; }

/* botón "Abrir" — abajo a la derecha, aparece al hover (o siempre si tiene hijos) */
.node-open {
  position: absolute; right: 8px; bottom: 7px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(20,18,26,0.85); border: 1px solid var(--gold-line);
  color: var(--gold-bright); font-family: var(--sans); font-size: 11px; cursor: pointer;
  opacity: 0; transform: translateY(2px); transition: opacity .15s, transform .15s, background .15s;
}
.node-open svg { width: 12px; height: 12px; }
.node:hover .node-open { opacity: 1; transform: none; }
.node-open:hover { background: var(--gold-soft); }

/* estado vacío del nivel */
.taller-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; z-index: 1;
}
.taller-empty[hidden] { display: none; }
.taller-empty .te-inner { text-align: center; opacity: 0.65; }
.taller-empty .te-ic { color: var(--gold); opacity: 0.5; margin-bottom: 12px; }
.taller-empty .te-ic svg { width: 44px; height: 44px; }
.taller-empty .te-title { font-size: 22px; color: var(--text-2); }
.taller-empty .te-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; max-width: 320px; }

/* puertos */
.port {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--gold-line);
  opacity: 0; transition: opacity .18s, transform .18s, background .18s;
  cursor: crosshair; z-index: 2;
}
.node:hover .port, .node.selected .port { opacity: 1; }
.port:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: scale(1.3); }
.port-t { top: -6px;    left: 50%;  transform: translateX(-50%); }
.port-b { bottom: -6px; left: 50%;  transform: translateX(-50%); }
.port-l { left: -6px;   top: 50%;   transform: translateY(-50%); }
.port-r { right: -6px;  top: 50%;   transform: translateY(-50%); }

/* badge zoom */
.taller-zoom-badge {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 11px; letter-spacing: 0.16em; color: var(--text-3);
  background: rgba(20,18,26,0.7); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 12px; backdrop-filter: blur(6px);
  pointer-events: none;
}

/* modal: crear herramienta propia */
.tool-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(5,4,7,0.6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s;
}
.tool-modal.open { opacity: 1; }
.tm-card {
  width: min(440px, 92vw); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--gold-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop); padding: 20px 22px;
  transform: translateY(8px) scale(0.98); transition: transform .2s;
}
.tool-modal.open .tm-card { transform: none; }
.tm-head { display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 21px; color: var(--gold-bright); margin-bottom: 14px; }
.tm-head > span { display: inline-flex; align-items: center; gap: 8px; }
.tm-head svg { width: 18px; height: 18px; flex: none; }
.tm-head .tm-x svg { width: 18px; height: 18px; }
.tm-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); font-size: 19px; cursor: pointer; transition: all .2s; }
.tm-x:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.tm-label { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin: 14px 0 6px; }
.tm-input, .tm-area {
  width: 100%; padding: 9px 11px; border-radius: var(--r-sm);
  background: rgba(255,248,232,0.03); border: 1px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .18s; resize: vertical;
}
.tm-input:focus, .tm-area:focus { border-color: var(--gold-line); }
.tm-cols { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-col { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .15s; }
.tm-col:hover { transform: scale(1.12); }
.tm-col.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px currentColor; }
.tm-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.tm-ico { aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,248,232,0.02); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-2); transition: all .15s; }
.tm-ico svg { width: 17px; height: 17px; }
.tm-ico:hover { color: var(--gold-bright); border-color: var(--gold-line); }
.tm-ico.on { color: var(--gold-bright); background: var(--gold-soft); border-color: var(--gold-bright); }
.tm-actions { margin-top: 20px; }
.tm-actions .btn-gold { width: 100%; justify-content: center; }
.tm-actions .btn-gold svg { width: 16px; height: 16px; }

/* tooltip on-hover del nodo */
.taller-tip {
  position: fixed; z-index: 80; display: none; max-width: 280px;
  background: rgba(16,14,20,0.97); border: 1px solid var(--gold-line);
  border-radius: var(--r-md); padding: 11px 13px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.85);
  backdrop-filter: blur(10px); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s;
}
.taller-tip.show { opacity: 1; transform: none; }
.taller-tip .tt-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 5px;
}
.taller-tip .tt-ic { display: inline-grid; place-items: center; }
.taller-tip .tt-ic svg { width: 14px; height: 14px; }
.taller-tip .tt-desc { font-size: 13px; line-height: 1.5; color: var(--text); }
.taller-tip .tt-foot { font-size: 10.5px; color: var(--text-4); margin-top: 7px; letter-spacing: 0.02em; }

/* toast guardado */
.taller-flash {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px);
  padding: 9px 16px; border-radius: 12px;
  background: rgba(20,18,26,0.92); border: 1px solid var(--gold-line);
  color: var(--gold-bright); font-size: 13px;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 100;
}
.taller-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* menú contextual del Taller (click derecho) */
.ctx-menu {
  position: fixed; z-index: 1000;
  min-width: 200px; max-height: 70vh; overflow-y: auto;
  background: rgba(20,18,26,0.96);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 56px -16px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
  padding: 6px;
  backdrop-filter: blur(10px);
  opacity: 0; transform: scale(0.96) translateY(-4px);
  transform-origin: top left;
  transition: opacity .12s, transform .12s;
  user-select: none;
}
.ctx-menu.show { opacity: 1; transform: none; }
.ctx-item {
  display: grid; grid-template-columns: 18px 1fr auto;
  align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2);
  font-family: var(--sans); font-size: 13px; cursor: pointer;
  text-align: left;
}
.ctx-item:hover { background: var(--gold-soft); color: var(--gold-bright); }
.ctx-item.danger { color: #d97a6c; }
.ctx-item.danger:hover { background: rgba(217,122,108,0.10); color: #ff9a8d; }
.ctx-ic { width: 18px; height: 18px; display: grid; place-items: center; opacity: 0.85; }
.ctx-ic svg { width: 14px; height: 14px; }
.ctx-hint { font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.ctx-heading { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-4); padding: 6px 10px 3px; }
.ctx-ic svg { width: 14px; height: 14px; }


/* ============================================================
   DRAWER: detalle del nodo (markdown editor + preview)
   ============================================================ */
.node-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 95vw); z-index: 60;
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border-left: 1px solid var(--gold-line);
  box-shadow: -24px 0 60px -18px rgba(0,0,0,0.85);
  display: grid; grid-template-rows: auto auto 1fr;
  transform: translateX(100%);
  transition: transform .28s var(--ease-out);
}
.node-drawer.open { transform: none; }

.nd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.nd-kind {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
}
.nd-kind .node-dot { width: 7px; height: 7px; border-radius: 50%; }
.nd-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,248,232,0.02); color: var(--text-2);
  font-size: 20px; line-height: 1; cursor: pointer; transition: all .2s;
}
.nd-close:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }

.nd-title-row { padding: 4px 20px 14px; border-bottom: 1px solid var(--line); }
.nd-title {
  width: 100%; background: transparent; border: 0; outline: none;
  font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--text);
  padding: 4px 0;
}
.nd-title:focus { color: var(--gold-bright); }
.nd-title::placeholder { color: var(--text-4); }

/* form estructurado — un campo por bloque */
.nd-form {
  overflow-y: auto; padding: 18px 22px 28px;
  display: flex; flex-direction: column; gap: 18px;
}

/* bloque de imagen del drawer (Pantalla / Brandbook) */
.nd-imgwrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #0C0A10; }
.nd-imgwrap.over { border-color: var(--gold-bright); }
.nd-imgwrap > img { width: 100%; display: block; max-height: 240px; object-fit: contain; background: #0C0A10; }
.nd-img-empty { aspect-ratio: 16/10; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--text-4); text-align: center; padding: 18px; }
.nd-img-empty svg { width: 30px; height: 30px; opacity: 0.5; }
.nd-img-empty span { font-size: 12px; max-width: 220px; }
.nd-img-actions { display: flex; gap: 8px; padding: 8px; background: rgba(0,0,0,0.3); flex-wrap: wrap; }
.nd-imgbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,248,232,0.03); color: var(--text-2); font-size: 12px; cursor: pointer; transition: all .18s; }
.nd-imgbtn svg { width: 13px; height: 13px; }
.nd-imgbtn:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.nd-palette { display: flex; gap: 0; height: 26px; }
.nd-palette .nd-sw { flex: 1; }

/* panel de referencia educativa (read-only) */
.nd-ref {
  background: linear-gradient(180deg, rgba(232,201,106,0.06), rgba(232,201,106,0.02));
  border: 1px solid var(--gold-line); border-radius: var(--r-md);
  padding: 14px 16px;
}
.nd-ref-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 9px;
}
.nd-ref-head .node-ic svg { width: 14px; height: 14px; }
.nd-ref-how { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.nd-ref-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 12px 0 5px; }
.nd-ref-list { margin: 0; padding-left: 18px; }
.nd-ref-list li { font-size: 13px; line-height: 1.55; color: var(--text-2); margin: 3px 0; }
.nd-ref-codewrap { position: relative; margin-top: 12px; }
.nd-ref-lang {
  position: absolute; top: 8px; right: 10px; z-index: 1;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); font-family: 'JetBrains Mono', monospace;
}
.nd-ref-code {
  background: rgba(0,0,0,0.40); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; margin: 0; overflow-x: auto;
}
.nd-ref-code code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; color: var(--text); white-space: pre; tab-size: 2;
}
.nd-field { display: flex; flex-direction: column; gap: 6px; }
.nd-field > label {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}
.nd-input, .nd-area {
  width: 100%; background: rgba(255,248,232,0.02);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); outline: none;
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  padding: 10px 12px; transition: border-color .18s, background .18s;
}
.nd-input:focus, .nd-area:focus {
  border-color: var(--gold-line); background: rgba(232,201,106,0.04);
}
.nd-input::placeholder, .nd-area::placeholder {
  color: var(--text-4); font-style: italic;
}
.nd-area { resize: vertical; min-height: 60px; }
.nd-area.nd-list { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: 13px; }

.nd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .nd-row { grid-template-columns: 1fr; } }

.nd-enter { width: 100%; justify-content: center; margin-top: 6px; }
.nd-enter svg { width: 15px; height: 15px; }

/* bloque de código del detalle */
.nd-code-head { display: flex; align-items: center; justify-content: space-between; }
.nd-lang {
  background: rgba(255,248,232,0.03); color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: 11px;
  padding: 3px 8px; cursor: pointer; outline: none;
}
.nd-lang:focus { border-color: var(--gold-line); }
.nd-code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; tab-size: 2;
  background: rgba(0,0,0,0.30); white-space: pre; overflow-x: auto;
}

/* ============================================================
   ESTUDIO CREATIVO (tipo Stitch)
   ============================================================ */
.estudio-view { padding: 0 !important; height: 100vh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; }
.estudio-view .btn-gold svg { width: 16px; height: 16px; flex: none; }

.es-topbar {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px;
  padding: 16px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,18,26,0.7), rgba(10,9,12,0.4));
}
.es-title { font-size: 26px; color: var(--gold-bright); font-weight: 500; }
.es-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.es-tabs { display: flex; gap: 4px; background: rgba(0,0,0,0.25); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 3px; }
.es-tab { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 13px; transition: all .18s; }
.es-tab svg { width: 15px; height: 15px; }
.es-tab:hover { color: var(--text); }
.es-tab.on { background: var(--gold-soft); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-line); }
.es-actions { display: flex; align-items: center; gap: 8px; }

.es-body { position: relative; overflow: hidden; min-height: 0; }
.es-body.es-dropping::after {
  content: 'Suelta tus imágenes aquí'; position: absolute; inset: 16px; z-index: 5;
  display: grid; place-items: center; border: 2px dashed var(--gold-bright); border-radius: var(--r-lg);
  background: rgba(232,201,106,0.08); color: var(--gold-bright); font-size: 16px; letter-spacing: 0.04em;
}

/* GALERÍA */
.es-grid {
  height: 100%; overflow-y: auto; padding: 24px 28px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px;
  align-content: start;
}
.es-card {
  position: relative; cursor: pointer; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-1)); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.es-card:hover { transform: translateY(-3px); border-color: var(--gold-line);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,0.85); }
.es-thumb { aspect-ratio: 16/10; background: #0C0A10; overflow: hidden; display: block; }
.es-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-thumb-empty { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: var(--text-4); }
.es-thumb-empty svg { width: 30px; height: 30px; opacity: 0.5; }
.es-thumb-empty span { font-size: 12px; }
.es-card-body { padding: 12px 14px 14px; }
.es-card-title { font-family: var(--serif); font-size: 18px; color: var(--text); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.es-tag { font-size: 10.5px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 1px 8px; border-radius: 999px; }
.es-card-del {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(10,9,12,0.75); color: var(--text-2); font-size: 17px; cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s, color .15s; backdrop-filter: blur(6px);
}
.es-card:hover .es-card-del { opacity: 1; }
.es-card-del:hover { color: #ff9a8d; background: rgba(217,87,78,0.25); }
.es-new {
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  aspect-ratio: 16/13; cursor: pointer; border-radius: var(--r-lg);
  background: rgba(255,248,232,0.02); border: 1px dashed var(--gold-line); color: var(--gold);
  font-family: var(--sans); font-size: 13.5px; transition: all .2s;
}
.es-new svg { width: 26px; height: 26px; }
.es-new:hover { background: var(--gold-soft); color: var(--gold-bright); }

/* FLUJO (canvas) */
.es-stage { position: relative; overflow: hidden; height: 100%; cursor: grab;
  background: radial-gradient(120% 100% at 50% 0%, #15131A 0%, #0C0A10 60%, var(--bg-void) 100%); }
.es-stage.panning { cursor: grabbing; }
.es-flowgrid { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(232,201,106,0.08) 1px, transparent 1px); background-size: 24px 24px; }
.es-canvas { position: absolute; top: 0; left: 0; width: 4000px; height: 3000px; transform-origin: 0 0; will-change: transform; }
.es-edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.es-edge { fill: none; stroke: rgba(232,201,106,0.55); stroke-width: 1.8; }
.es-edge.ghost { stroke-dasharray: 4 5; stroke: rgba(232,201,106,0.4); }
.es-nodes { position: absolute; inset: 0; }
.es-node {
  position: absolute; background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: visible; cursor: grab;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.7); user-select: none; transition: box-shadow .2s, border-color .2s;
}
.es-node:hover { box-shadow: 0 16px 38px -14px rgba(0,0,0,0.85), 0 0 0 1px var(--gold-line); }
.es-node.sel { border-color: var(--gold-bright); box-shadow: 0 0 0 2px var(--gold-soft), 0 16px 38px -14px rgba(0,0,0,0.85); }
.es-node-thumb { height: 100px; background: #0C0A10; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; }
.es-node-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-node-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-4); }
.es-node-empty svg { width: 24px; height: 24px; opacity: 0.5; }
.es-node-title { padding: 8px 10px; font-family: var(--serif); font-size: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-port { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2);
  border: 1.5px solid var(--gold-line); opacity: 0; cursor: crosshair; transition: opacity .15s, transform .15s; z-index: 2; }
.es-node:hover .es-port, .es-node.sel .es-port { opacity: 1; }
.es-port:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: scale(1.3); }
.es-port.p-t { top: -6px; left: 50%; transform: translateX(-50%); }
.es-port.p-b { bottom: -6px; left: 50%; transform: translateX(-50%); }
.es-port.p-l { left: -6px; top: 50%; transform: translateY(-50%); }
.es-port.p-r { right: -6px; top: 50%; transform: translateY(-50%); }
.es-zoom { position: absolute; bottom: 14px; right: 14px; font-size: 11px; letter-spacing: 0.16em;
  color: var(--text-3); background: rgba(20,18,26,0.7); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 12px; pointer-events: none; }

/* DRAWER de pantalla */
.es-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 95vw); z-index: 60;
  background: linear-gradient(180deg, var(--surface), var(--bg-1)); border-left: 1px solid var(--gold-line);
  box-shadow: -24px 0 60px -18px rgba(0,0,0,0.85); display: grid; grid-template-rows: auto auto 1fr;
  transform: translateX(100%); transition: transform .28s var(--ease-out); overflow: hidden;
}
.es-drawer.open { transform: none; }
.esd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.esd-kind { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.esd-kind svg { width: 15px; height: 15px; }
.esd-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 20px; cursor: pointer; transition: all .2s; }
.esd-close:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.esd-imgwrap { position: relative; margin: 16px 20px 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #0C0A10; }
.esd-imgwrap.over { border-color: var(--gold-bright); }
.esd-imgwrap img { width: 100%; display: block; max-height: 280px; object-fit: contain; background: #0C0A10; }
.esd-img-empty { aspect-ratio: 16/10; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--text-4); text-align: center; padding: 20px; }
.esd-img-empty svg { width: 32px; height: 32px; opacity: 0.5; }
.esd-img-empty span { font-size: 12px; max-width: 220px; }
.esd-img-actions { display: flex; gap: 8px; padding: 8px; background: rgba(0,0,0,0.3); }
.esd-imgbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,248,232,0.03); color: var(--text-2); font-size: 12px; cursor: pointer; transition: all .18s; }
.esd-imgbtn svg { width: 13px; height: 13px; }
.esd-imgbtn:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.esd-form { overflow-y: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; }
.esd-form label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 6px; }
.esd-hint { text-transform: none; letter-spacing: 0; color: var(--text-4); }
.esd-input, .esd-area { width: 100%; padding: 9px 11px; border-radius: var(--r-sm); background: rgba(255,248,232,0.03);
  border: 1px solid var(--line); color: var(--text); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .18s; resize: vertical; }
.esd-input:focus, .esd-area:focus { border-color: var(--gold-line); background: rgba(232,201,106,0.04); }

/* nota del modal generar */
.es-gen-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px;
  background: rgba(217,154,78,0.08); border: 1px solid rgba(217,154,78,0.25); border-radius: var(--r-sm);
  font-size: 12px; line-height: 1.5; color: var(--text-2); }
.es-gen-note svg { width: 16px; height: 16px; flex: none; color: var(--st-analysis); margin-top: 1px; }

/* ============================================================
   TALLER — Inicio (home multi-proyecto)
   ============================================================ */
.taller-host { height: 100vh; }
.tt-left { display: flex; align-items: center; gap: 14px; }
.tt-back {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: var(--r-md);
  background: rgba(255,248,232,0.03); border: 1px solid var(--line);
  color: var(--text-2); font-family: var(--sans); font-size: 13px; cursor: pointer; transition: all .2s;
}
.tt-back:hover { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }

.taller-home { height: 100vh; overflow-y: auto; padding: 30px 36px 60px; }
.th-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.th-title { font-size: 40px; color: var(--gold-bright); font-weight: 500; line-height: 1; }
.th-sub { font-size: 15px; color: var(--text-3); margin-top: 8px; }
.th-top .btn-gold svg { width: 16px; height: 16px; flex: none; }

.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-content: start; }
.th-loading { color: var(--text-3); font-size: 14px; padding: 20px 4px; }

.th-card {
  position: relative; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-1)); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.th-card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: 0 20px 44px -18px rgba(0,0,0,0.85); }
.th-card-ic { width: 42px; height: 42px; border-radius: var(--r-md); flex: none; display: grid; place-items: center;
  color: var(--gold); background: var(--gold-soft); }
.th-card-ic svg { width: 21px; height: 21px; }
.th-card-body { min-width: 0; flex: 1; }
.th-card-name { font-family: var(--serif); font-size: 20px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-card-meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.th-card-dup { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,9,12,0.6); color: var(--text-3); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.th-card-dup svg { width: 14px; height: 14px; }
.th-card:hover .th-card-dup { opacity: 1; }
.th-card-dup:hover { color: var(--gold-bright); border-color: var(--gold-line); }

.th-new {
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  min-height: 96px; cursor: pointer; border-radius: var(--r-lg);
  background: rgba(255,248,232,0.02); border: 1px dashed var(--gold-line); color: var(--gold);
  font-family: var(--sans); font-size: 13.5px; transition: all .2s;
}
.th-new svg { width: 24px; height: 24px; }
.th-new:hover { background: var(--gold-soft); color: var(--gold-bright); }

/* ---- login: campo de contraseña inline ---- */
.login-pwd-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.login-pwd-wrap.visible {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 18px;
}
.login-pwd {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  color: #F2ECDD;
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 10px 18px;
  text-align: center;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.login-pwd:focus { border-color: rgba(201,168,76,0.6); }
.login-pwd::placeholder { color: rgba(242,236,221,0.25); letter-spacing: 0.08em; }
.login-pwd-err {
  font-size: 11px;
  color: rgba(217,87,78,0.85);
  letter-spacing: 0.06em;
  min-height: 16px;
}
