/* Hallmark · v2.0.0 · shape: app screen · theme: custom AlllGARD noche polar (Heimdall) · signature: el río de aperturas de Pulso */
/* critique: la información manda; el azul hielo solo marca la acción, la selección y el estado */
/* waive 67: «ᚺᚢᚷᛁᚾᚾ» bajo el nombre es la firma de marca de AlllGARD, idéntica en Heimdall y Skadi por decisión de Ares; no es una etiqueta */
:root {
  --night: #0a1b35; --panel: rgba(16, 36, 64, .84); --line: #23405f; --field: #0a1a30;
  --ice: #a8dcef; --ice-strong: #d3eef8; --ink: #08131c;
  --text: #e8eef2; --soft: #c9d4dc; --muted: #93a7b8;
  --amber: #f5cd6b; --alert: #ff9b8f; --ok: #7fd8ad;
  --bar: rgba(10, 26, 48, .7); --line-hover: #3d5c80; --snow: rgba(255, 255, 255, .5);
  --ice-05: rgba(168, 220, 239, .05); --ice-08: rgba(168, 220, 239, .08); --ice-12: rgba(168, 220, 239, .12); --ice-25: rgba(168, 220, 239, .25);
  --alert-bg: rgba(255, 155, 143, .08); --alert-line: rgba(255, 155, 143, .45);
  --ui: Manrope, system-ui, sans-serif; --head: Montserrat, Manrope, sans-serif; --mono: ui-monospace, Menlo, monospace;
  --r-panel: 16px; --r-ctl: 8px;
  /* Runas del seguimiento (tema oscuro de Gmail, colores del Bifröst) y la muestra de Gmail del asistente */
  --r-sent: #7d8288; --r-got: #9aa0a6; --r-read: #7fe3b5; --r-click: #c3a8ff;
  --gmail-bg: #202124; --gmail-text: #e8eaed;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--night); }
body { font-family: var(--ui); color: var(--text); font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--ice); }
a:hover { color: var(--ice-strong); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.land { position: fixed; inset: 0; z-index: -2; background: var(--night) url(../img/landscape.webp) center bottom / 100% auto no-repeat; }
.snow { position: fixed; inset: -200px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(1.6px 1.6px at 24px 40px, var(--snow), transparent), radial-gradient(1.2px 1.2px at 130px 90px, var(--snow), transparent), radial-gradient(1px 1px at 70px 170px, var(--snow), transparent);
  background-size: 200px 200px; animation: fall 38s linear infinite; }
@keyframes fall { to { transform: translateY(200px); } }

.top { border-bottom: 1px solid var(--line); background: var(--bar); }
.top-in, .wrap { max-width: 1360px; margin: 0 auto; padding-inline: 40px; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand b { display: block; font-family: var(--head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand small { display: block; color: var(--ice); font-size: 12px; letter-spacing: .3em; line-height: 1; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 8px 16px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--ice-05); }
.nav a[aria-current="page"] { color: var(--text); background: var(--ice-12); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

.wrap { padding-block: 32px 64px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
h1 { text-wrap: balance; margin: 0 0 4px; font-family: var(--head); font-weight: 700; font-size: 28px; overflow-wrap: break-word; min-width: 0; }
h1.big { font-size: 40px; }
h2 { text-wrap: balance; margin: 0; font-family: var(--head); font-weight: 700; font-size: 18px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; backdrop-filter: blur(6px); }
.panel.flush { padding: 0; overflow: hidden; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bar h1, .bar h2 { text-wrap: balance; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { border-color: var(--ice); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.btn.primary:hover { background: var(--ice-strong); }
.btn.danger { border-color: var(--alert); color: var(--alert); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); color: var(--soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ice); color: var(--text); }
.chip[aria-current="true"] { border-color: var(--ice); background: var(--ice-12); color: var(--text); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-real { color: var(--ice); } .c-probable { color: var(--soft); } .c-machine, .c-none { color: var(--muted); } .c-alert { color: var(--alert); } .c-ok { color: var(--ok); }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], select {
  min-height: 40px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; font-size: 15px; }
textarea { padding: 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: var(--line-hover); }
input[aria-invalid="true"] { border-color: var(--alert); }
label.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 8px 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
tr.row:hover td { background: var(--ice-05); }
tr.row.sel td { background: var(--ice-08); }
td a.rowlink { color: var(--text); text-decoration: none; font-weight: 600; }
td a.rowlink:hover { color: var(--ice-strong); }
.scroll { overflow-x: auto; }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feed li { display: flex; gap: 20px; align-items: flex-start; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); backdrop-filter: blur(6px); }
.feed .t { flex: none; width: 64px; font-family: var(--head); font-size: 20px; font-weight: 700; }
.card-alert { padding: 20px; border-radius: var(--r-panel); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.card-alert.sec { background: var(--alert-bg); border-color: var(--alert-line); }
.card-alert p { margin: 8px 0 16px; font-size: 14px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.ev { display: flex; gap: 12px; font-size: 13px; color: var(--soft); margin-top: 8px; }
.ev span:first-child { width: 96px; flex: none; }
.empty { padding: 32px 20px; border-radius: var(--r-panel); border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { font-variant-numeric: tabular-nums; margin: 4px 0 0; font-family: var(--head); font-size: 26px; font-weight: 700; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; }
.hours span { height: 36px; border-radius: 4px; }
.flash { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r-ctl); border: 1px solid var(--ok); color: var(--ok); }

.switch { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch .txt { flex: 1; min-width: 0; }
.switch .txt b { display: block; font-weight: 600; }
.switch input[type=checkbox] { appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--field); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease; }
.switch input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s ease, background-color .15s ease; }
.switch input[type=checkbox]:checked { background: var(--ice-25); border-color: var(--ice); }
.switch input[type=checkbox]:checked::after { transform: translateX(18px); background: var(--ice); }
.switch input[type=number] { width: 84px; }
details > summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login { max-width: 400px; margin: 12vh auto 0; }
code { font-size: 13px; color: var(--ice); overflow-wrap: anywhere; }

/* ---------- Asistente de alta (alta.php) y cola de Altas ---------- */
.a-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 64px; }
.a-head { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.a-end { margin-left: auto; }
.a-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.a-nav { flex: 1 1 220px; min-width: 0; }
.a-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.a-st > a, .a-st > span { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-ctl); color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.a-st > a:hover { background: var(--ice-05); color: var(--text); }
.a-st.cur > a, .a-st.cur > span { background: var(--ice-12); color: var(--text); }
.a-st.done > a, .a-st.done > span { color: var(--r-read); }
.a-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; }
.a-main { flex: 999 1 560px; min-width: 0; padding: 32px; }
.a-step { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-h1 { font-size: 30px; margin: 0; }
.a-main .lead { margin: 8px 0 24px; }
.a-lab { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.a-row { display: flex; flex-wrap: wrap; gap: 12px; }
.a-row .a-input { flex: 1 1 280px; min-height: 44px; font-size: 16px; }
.btn.lg { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 700; }
.btn.ice { border-color: var(--ice); color: var(--ice); }
.a-ok { margin: 0 0 4px; font-size: 14px; color: var(--r-read); font-weight: 600; }
.a-stack { display: flex; flex-direction: column; gap: 12px; }
.a-stack form { margin: 0; }
.a-card { display: block; width: 100%; text-align: left; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease; }
.a-card:hover { border-color: var(--line-hover); }
.a-card.sel { border-color: var(--ice); background: var(--ice-08); }
.a-card-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--head); font-weight: 700; font-size: 18px; }
.a-card-time { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--ice); white-space: nowrap; }
.a-card-x { display: block; margin-top: 8px; color: var(--soft); font-size: 14px; }
.a-gsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.a-g, .a-dns { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
.a-g.ok { border-color: var(--r-read); }
.a-dns { margin-top: 16px; }
.a-g-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.a-g-top strong { font-size: 16px; }
.a-g-st { margin-left: auto; font-size: 13px; color: var(--r-read); font-weight: 600; }
.a-g-x { margin: 8px 0 12px; font-size: 14px; color: var(--soft); }
.a-g-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-g-done { margin-left: auto; }
.a-g-msg { margin: 8px 0 0; color: var(--soft); min-height: 0; }
.a-g-msg:empty { display: none; }
.a-code { padding: 4px 8px; border-radius: 6px; background: var(--ice-08); color: var(--ice); font-size: 13px; }
.a-shot { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); }
.a-next { margin: 20px 0 0; }
.a-list { margin: 0 0 20px; padding-left: 20px; color: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.a-done { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--r-read); color: var(--soft); }
.a-done strong, .a-ext-ok { color: var(--r-read); font-weight: 600; }
.a-ask { margin: 0 0 24px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--ice); background: var(--ice-08); }
.a-ask p { margin: 8px 0 0; color: var(--soft); }
.a-gmail { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px; background: var(--gmail-bg); }
.a-gmail-t { font-weight: 700; color: var(--gmail-text); }
.a-gmail-s { color: var(--r-got); }
.a-runes { display: inline-flex; align-items: center; width: 40px; flex: none; }
.a-rune2 { display: inline-flex; margin-left: -12px; }
.a-resend { margin-top: 16px; }
.a-back { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 14px; text-decoration: none; }
.a-back:hover { color: var(--text); }
.a-link { padding: 0; border: 0; background: none; color: var(--ice); font: inherit; text-decoration: underline; cursor: pointer; }
.a-link:hover { color: var(--ice-strong); }
.a-ext p { margin: 12px 0 0; }
.a-alt { margin-top: 16px; }
.a-alt form { display: inline; }
.a-link:focus-visible, .a-card:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.q-item { display: block; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); text-decoration: none; }
.q-item:hover { border-color: var(--line-hover); }
.q-item[aria-current="true"] { border-color: var(--ice); background: var(--ice-08); }
.q-item:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.q-due { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.q-due.late { color: var(--amber); }
.q-secret { font-family: var(--mono); font-size: 18px; letter-spacing: .05em; color: var(--ice); }

@media (max-width: 760px) {
  .top-in, .wrap { padding-inline: 24px; }
  h1.big { font-size: 32px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .feed li { flex-direction: column; gap: 8px; }
  .a-main { padding: 24px; }
  .a-h1 { font-size: 26px; }
}
