/* Jarvis: interfaz de estilo holográfico. Todo el color sale de las variables de :root. */

@font-face { font-family: "Orbitron"; src: url("/fonts/orbitron.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/rajdhani-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/rajdhani-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("/fonts/share-tech-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --void: #02060d;
  --holo: #4fd2ff;          /* color principal */
  --holo-hi: #c4f1ff;
  --h: 79, 210, 255;        /* el mismo, en RGB, para transparencias */
  --amber: #ffb84d;         /* tus mensajes y los avisos */
  --a: 255, 184, 77;
  --red: #ff5d73;
  --r: 255, 93, 115;
  --ink: #e4f7ff;
  --muted: #7aa9c2;
  --line: rgba(var(--h), .4);
  --line-soft: rgba(var(--h), .16);
  --panel: #06182a;
  --panel-2: #082037;
  --f-display: "Orbitron", "Rajdhani", system-ui, sans-serif;
  --f-text: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--void);
  color: var(--ink);
  font: 500 17px/1.3 var(--f-text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app-h, 100dvh);
  overflow: hidden;
}

/* Trama fina de pantalla por encima de todo */
#app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px);
}

.screen { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3, p { margin: 0; }

/* ---------- fondo: resplandor, rejilla y un barrido de luz ---------- */
.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(95% 50% at 50% -6%, rgba(var(--h), .22), transparent 70%),
    radial-gradient(80% 36% at 50% 106%, rgba(var(--h), .12), transparent 70%),
    linear-gradient(180deg, #030b17, var(--void));
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--h), .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--h), .075) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 15%, transparent 78%);
}
.backdrop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(var(--h), .055), transparent);
  animation: sweep 10s linear infinite;
}

/* ---------- forma angular: la capa de fuera es la línea; ::before, el relleno ---------- */
.cut {
  --cut: 12px;
  --edge: var(--line);
  --bg: var(--panel);
  --shape: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  position: relative;
  isolation: isolate;
  background: var(--edge);
  -webkit-clip-path: var(--shape);
          clip-path: var(--shape);
}
.cut::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  -webkit-clip-path: var(--shape);
          clip-path: var(--shape);
}
.cut.flip {
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.glow { filter: drop-shadow(0 0 9px rgba(var(--h), .55)); }

/* ---------- esquinas de visor ---------- */
.brackets i {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 0 solid rgba(var(--h), .65);
  pointer-events: none;
}
.brackets i:nth-child(1) { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.brackets i:nth-child(2) { top: 6px; right: 6px; border-top-width: 2px; border-right-width: 2px; }
.brackets i:nth-child(3) { bottom: 6px; left: 6px; border-bottom-width: 2px; border-left-width: 2px; }
.brackets i:nth-child(4) { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- el núcleo: su tamaño es su font-size ---------- */
.core {
  --c: var(--h);
  position: relative;
  isolation: isolate;
  flex: none;
  width: 1em;
  height: 1em;
  font-size: 40px;
}
.core::after {
  content: "";
  position: absolute;
  inset: -.14em;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c), .3), transparent 64%);
}
.core i { position: absolute; border-radius: 50%; }
.c-ticks {
  inset: 0;
  background: repeating-conic-gradient(rgba(var(--c), .95) 0 1.3deg, transparent 1.3deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .06em), #000 calc(100% - .055em));
          mask: radial-gradient(farthest-side, transparent calc(100% - .06em), #000 calc(100% - .055em));
  animation: spin 60s linear infinite;
}
.c-arcs {
  inset: .1em;
  border: max(1.5px, .022em) solid transparent;
  border-top-color: rgb(var(--c));
  border-bottom-color: rgba(var(--c), .45);
  animation: spin 9s linear infinite reverse;
}
.c-segs {
  inset: .19em;
  background: conic-gradient(from 15deg,
    rgba(var(--c), .8) 0 75deg, transparent 75deg 120deg,
    rgba(var(--c), .8) 120deg 195deg, transparent 195deg 240deg,
    rgba(var(--c), .8) 240deg 315deg, transparent 315deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .03em), #000 calc(100% - .025em));
          mask: radial-gradient(farthest-side, transparent calc(100% - .03em), #000 calc(100% - .025em));
  animation: spin 24s linear infinite;
}
.c-sweep {
  inset: .27em;
  background: conic-gradient(transparent 0 55%, rgb(var(--c)) 99.5%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .05em), #000 calc(100% - .045em));
          mask: radial-gradient(farthest-side, transparent calc(100% - .05em), #000 calc(100% - .045em));
  animation: spin 3.2s linear infinite;
}
.c-inner { inset: .36em; border: 1px solid rgba(var(--c), .5); }
.c-heart {
  inset: .41em;
  background: radial-gradient(circle, #fff 0 22%, rgba(var(--c), .95) 46%, rgba(var(--c), 0) 72%);
  animation: beat 2.6s ease-in-out infinite;
}
.core-sm .c-ticks {
  background: repeating-conic-gradient(rgba(var(--c), .95) 0 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.core-sm .c-segs, .core-sm .c-inner { display: none; }
.core-sm .c-arcs { inset: 5px; }
.core-sm .c-sweep {
  inset: 9px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.core-sm .c-heart { inset: 14px; }
.core.busy .c-arcs { animation-duration: 2.2s; }
.core.busy .c-sweep { animation-duration: .9s; }
.core.busy .c-heart { animation-duration: .7s; }
.core.off { --c: var(--a); }
.core.off i { animation-play-state: paused; }
.core.off .c-heart { animation: blink 1.1s steps(2) infinite; animation-play-state: running; }

.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--holo-hi);
  text-shadow: 0 0 14px rgba(var(--h), .85), 0 0 2px rgba(var(--h), .9);
}

/* ---------- botones ---------- */
.btn {
  --cut: 10px;
  --bg: var(--panel-2);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  color: var(--holo-hi);
  font: 700 15px/1.1 var(--f-text);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn.primary { --edge: var(--holo-hi); --bg: linear-gradient(180deg, #8fe6ff, #2bb4ec); color: #021220; }
.btn.danger { --edge: rgba(var(--r), .6); --bg: #1c0a12; color: var(--red); }
.btn.ghost { --edge: transparent; --bg: transparent; color: var(--muted); }
.btn.small { --cut: 8px; flex: none; width: auto; min-height: 36px; padding: 6px 14px; font-size: 13px;
  --edge: var(--amber); --bg: var(--amber); color: #1a0f00; }
.btn:active, .send:active, .icon-btn:active { filter: brightness(1.35); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .send:focus-visible, .icon-btn:focus-visible { --edge: #fff; outline: none; }

/* ---------- acceso ---------- */
#login { align-items: center; justify-content: center; padding: 28px; }
#login .brackets i { width: 22px; height: 22px; }
#login .brackets i:nth-child(1), #login .brackets i:nth-child(2) { top: calc(env(safe-area-inset-top) + 14px); }
#login .brackets i:nth-child(3), #login .brackets i:nth-child(4) { bottom: calc(env(safe-area-inset-bottom) + 14px); }
#login .brackets i:nth-child(odd) { left: 14px; }
#login .brackets i:nth-child(even) { right: 14px; }
.login-card {
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: rise .7s cubic-bezier(.2, .9, .25, 1) both;
}
.core-xl { font-size: min(52vw, 208px); margin-bottom: 14px; }
#login .wordmark { font-size: 30px; padding-left: .34em; }
.kicker {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font: 400 11px var(--f-mono);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before, .kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.kicker::after { transform: scaleX(-1); }
.field { --bg: #04101c; display: block; width: 100%; padding: 9px 16px 5px; text-align: left; cursor: text; }
.field:focus-within { --edge: var(--holo); }
.field-label { display: block; font: 400 10px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--holo); }
.field input {
  width: 100%;
  padding: 3px 0 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 20px/1.3 var(--f-mono);
  letter-spacing: .14em;
}
.login-card .glow { width: 100%; }
.error { min-height: 20px; color: var(--red); font: 400 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.footnote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  text-align: center;
  font: 400 10px var(--f-mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(var(--h), .45);
}

/* ---------- cabecera ---------- */
.bar {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 12px) 11px calc(env(safe-area-inset-left) + 14px);
  background: linear-gradient(180deg, rgba(2, 9, 18, .95), rgba(2, 9, 18, .78));
  animation: drop .55s cubic-bezier(.2, .9, .25, 1) both;
}
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--holo) 16%, rgba(var(--h), .3) 50%, var(--holo) 84%, transparent);
  box-shadow: 0 0 12px rgba(var(--h), .7);
}
.bar::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: run 7s linear infinite;
}
.ident { min-width: 0; }
.bar .wordmark { font-size: 17px; line-height: 1.15; }
.status {
  margin-top: 2px;
  font: 400 10.5px var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--holo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status.warn { color: var(--amber); }
.telemetry { margin-left: auto; text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.clock { display: block; font-size: 15px; letter-spacing: .08em; color: var(--ink); }
.date { display: block; margin-top: 1px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.icon-btn {
  --cut: 9px;
  --bg: #04101c;
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--holo);
  cursor: pointer;
}

/* ---------- aviso superior ---------- */
.banner {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 12px 0;
  padding: 9px 12px 9px 16px;
  border: 1px solid rgba(var(--a), .45);
  border-left: 3px solid var(--amber);
  background: rgba(var(--a), .08);
  color: #ffe6bd;
  font-size: 15.5px;
  line-height: 1.22;
}
.banner p { flex: 1; }

/* ---------- mensajes ---------- */
.viewport { position: relative; flex: 1; min-height: 0; animation: fade .7s .15s both; }
/* los mensajes se desvanecen al acercarse a la cabecera y a la barra de escribir */
.viewport::before, .viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 18px;
  pointer-events: none;
}
.viewport::before { top: 0; background: linear-gradient(180deg, rgba(2, 9, 18, .95), transparent); }
.viewport::after { bottom: 0; background: linear-gradient(0deg, rgba(2, 9, 18, .95), transparent); }
.list {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px calc(env(safe-area-inset-right) + 14px) 14px calc(env(safe-area-inset-left) + 14px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.empty { margin: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.empty .core { font-size: min(44vw, 170px); margin-bottom: 8px; }
.empty-title { font: 600 13px var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--holo-hi); }
.empty-hint { max-width: 270px; color: var(--muted); font-size: 16.5px; }
.day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 6px 2px;
  font: 400 10.5px var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.day::after { transform: scaleX(-1); }
.more { align-self: center; width: auto; min-height: 36px; padding: 6px 16px; font-size: 12.5px; }

.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.panel {
  --edge: linear-gradient(150deg, rgba(var(--h), .85), rgba(var(--h), .2) 45%, rgba(var(--h), .55));
  --bg: linear-gradient(90deg, var(--holo) 0 2px, transparent 2px), linear-gradient(180deg, #08223a, #05131f);
  min-width: 132px;
  max-width: min(88%, 600px);
  padding: 7px 14px 9px 17px;
}
.msg.me .panel {
  --edge: linear-gradient(210deg, rgba(var(--a), .9), rgba(var(--a), .22) 45%, rgba(var(--a), .6));
  --bg: linear-gradient(270deg, var(--amber) 0 2px, transparent 2px), linear-gradient(180deg, #2b1d09, #151006);
  padding: 7px 17px 9px 14px;
}
.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
  font: 400 10.5px var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.who { color: var(--holo); }
.msg.me .who { color: var(--amber); }
.head time { color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
.text {
  font-size: 17.5px;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
          user-select: text;
}
.text a { color: var(--holo); }
.msg.me .text a { color: var(--amber); }
.msg.pending .panel { opacity: .6; }
.msg.failed .panel {
  --edge: rgba(var(--r), .8);
  --bg: linear-gradient(270deg, var(--red) 0 2px, transparent 2px), #1c0a12;
  cursor: pointer;
}
.msg.failed .who, .msg.failed .head time { color: var(--red); }

/* un mensaje nuevo se "materializa": aparece, una línea de luz lo recorre y el texto se revela */
.msg.in .panel { animation: materialize .45s cubic-bezier(.2, .9, .25, 1) both; }
.msg.in .text { animation: reveal .5s .1s ease-out both; }
.msg.in .panel::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--holo-hi), transparent);
  animation: scan .55s .05s ease-in both;
}

.thinking .panel { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 17px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; height: 100%; background: var(--holo); transform: scaleY(.25); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
.think-label { font: 400 11px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--holo); }
.think-label::after { content: "_"; animation: blink 1s steps(2) infinite; }

/* ---------- redactar ---------- */
.composer {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px);
  background: linear-gradient(0deg, rgba(2, 9, 18, .97), rgba(2, 9, 18, .8));
  animation: rise .55s cubic-bezier(.2, .9, .25, 1) both;
}
.composer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--h), .7) 16%, rgba(var(--h), .2) 50%, rgba(var(--h), .7) 84%, transparent);
}
.kb .composer { padding-bottom: 10px; }
.input-wrap { --cut: 10px; --bg: #04101c; flex: 1; min-width: 0; min-height: 46px; display: flex; align-items: flex-end; }
.input-wrap:focus-within { --edge: var(--holo); }
.prompt { flex: none; padding: 0 0 12px 14px; font: 400 18px/1.2 var(--f-mono); color: var(--holo); }
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 132px;
  resize: none;
  padding: 11px 12px 9px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 18px/1.3 var(--f-text);
}
.composer textarea::placeholder { color: var(--muted); opacity: .75; }
.send-wrap { flex: none; }
.send-wrap:has(.send:enabled) { filter: drop-shadow(0 0 9px rgba(var(--h), .7)); }
.send {
  --cut: 10px;
  --edge: var(--holo-hi);
  --bg: linear-gradient(180deg, #8fe6ff, #2bb4ec);
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  color: #021220;
  cursor: pointer;
}
.send:disabled { --edge: var(--line-soft); --bg: #04101c; color: rgba(var(--h), .35); cursor: default; }

/* ---------- panel de sistema ---------- */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(1, 4, 9, .74);
}
.sheet-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(180deg, #082037, #030b15 70%);
  border-top: 1px solid var(--holo);
  box-shadow: 0 -12px 44px rgba(var(--h), .2);
  animation: rise .28s cubic-bezier(.2, .9, .25, 1) both;
}
.sheet-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 15px var(--f-display);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--holo-hi);
  text-shadow: 0 0 12px rgba(var(--h), .7);
}
.sheet-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.block { display: flex; flex-direction: column; gap: 10px; }
.block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 11px var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--holo);
}
.block h3::before { content: ""; width: 6px; height: 6px; background: var(--holo); box-shadow: 0 0 8px var(--holo); }
.muted { color: var(--muted); font-size: 16px; line-height: 1.28; }
.note { color: var(--amber); font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.note:empty { display: none; }
@media (min-width: 600px) {
  .sheet { align-items: center; }
  .sheet-card { border: 1px solid var(--line); border-top-color: var(--holo); }
}

/* ---------- movimiento ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(.82); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes sweep { to { transform: translateY(440%); } }
@keyframes run { from { transform: translateX(-70px); } to { transform: translateX(100vw); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes materialize {
  from { opacity: 0; transform: translateY(8px) scale(.985); filter: brightness(2.4); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes reveal {
  from { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); opacity: .2; }
  to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes scan { from { top: 0; opacity: 1; } to { top: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .core i, .backdrop::after, .bar::before { animation: none !important; }
}
