:root {
  --bg: #070505;
  --panel: #100b0b;
  --panel2: #171010;
  --red: #ff4b32;
  --orange: #ff7846;
  --text: #f7efed;
  --muted: #9d8d89;
  --line: #2b2020;
  --green: #65d39d;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-weight: 500;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

html.session-pending #loginView,
html.session-pending #appView {
  visibility: hidden;
}
html.session-pending body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at 50% 45%, #35100c 0, #100706 24%, #070505 58%),
    #070505;
}
html.session-pending body::after {
  content: "VERIFICANDO SESIÓN";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10001;
  width: 106px;
  padding-top: 126px;
  transform: translate(-50%, -50%);
  background: url("/assets/branding/hotspicytaco-logo-256.b23cc68c83.png") center top / 106px 106px no-repeat;
  color: #c4afaa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  white-space: nowrap;
  animation: session-pulse 1.25s ease-in-out infinite alternate;
}
@keyframes session-pulse {
  from { opacity: 0.58; filter: saturate(0.72); }
  to { opacity: 1; filter: saturate(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  html.session-pending body::after { animation: none; }
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hidden {
  display: none !important;
}
.eyebrow {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 44%) 1fr;
}
.login-card {
  padding: 9vh clamp(45px, 8vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(155deg, #120b0b 0%, #080505 75%);
  border-right: 1px solid var(--line);
}
.brand-mark {
  width: 58px;
  height: 58px;
  border: 1px solid var(--red);
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
  letter-spacing: -0.08em;
  position: relative;
  margin-bottom: 54px;
}
.brand-mark:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--orange);
  right: -4px;
  bottom: -4px;
}
.brand-mark.small {
  width: 38px;
  height: 38px;
  margin: 0;
  font-size: 12px;
}
.login-card h1 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 0 0 22px;
  font-weight: 900;
}
.login-card h1 span {
  color: var(--red);
}
.stack {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}
.stack label,
dialog label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}
.stack input,
dialog input {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #0d0909;
  border: 1px solid var(--line);
  padding: 15px 16px;
  color: var(--text);
  outline: none;
}
.stack input:focus,
dialog input:focus {
  border-color: var(--red);
}
.primary {
  border: 0;
  background: var(--red);
  color: #100606;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 32px #ff4b3224;
}
.primary:hover {
  background: var(--orange);
}
.primary.compact {
  padding: 13px 20px;
  white-space: nowrap;
}
.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.security-note {
  font-size: 10px;
  color: #665b59;
  margin-top: 22px;
  text-align: center;
}
.login-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 56% 50%,
    #3c100b 0,
    #110807 32%,
    #070505 65%
  );
}
.react-bits-layer{position:absolute;inset:0;z-index:0}.login-art .grid-glow{z-index:1;pointer-events:none}.login-art p{z-index:2}.api-status .system-spotlight{font-size:9px;letter-spacing:.12em;color:var(--muted)}
.login-art:before,
.grid-glow {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ff4b320d 1px, transparent 1px),
    linear-gradient(90deg, #ff4b320d 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(500px) rotateX(54deg) scale(1.4);
  opacity: 0.6;
}
.login-art p {
  font-size: clamp(40px, 6vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
  z-index: 1;
  color: #d2c2be;
  text-shadow: 0 2px 18px #070505, 0 0 2px #070505;
}
.login-art strong {
  color: #ff5b42;
  text-shadow: 0 0 22px #ff4b3266, 0 2px 12px #070505;
}
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  background: #090606;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 30px;
}
.brand > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand b {
  font-size: 13px;
  letter-spacing: 0.13em;
}
.brand span {
  font-size: 8px;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-top: 5px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #938481;
  text-align: left;
  padding: 13px 16px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 800;
  border-left: 2px solid transparent;
}
.nav-item span,
.nav-item svg {
  font-size: 16px;
  display: inline-block;
  width: 28px;
}
.nav-item svg{height:16px;vertical-align:middle;margin-right:2px;color:var(--red)}
.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: #160d0d;
  border-left-color: var(--red);
}
.sidebar-bottom {
  margin-top: auto;
}
.signature-status {
  width: 100%;
  border: 1px solid var(--line);
  background: #100b0b;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
  margin-bottom: 12px;
}
.signature-status span:last-child,
.user-chip span {
  display: flex;
  flex-direction: column;
}
.signature-status b,
.user-chip b {
  font-size: 10px;
}
.signature-status small,
.user-chip small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73514b;
  box-shadow: 0 0 0 4px #39201d;
}
.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 0 4px #173427;
}
.user-chip {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px;
}
.user-chip > div {
  width: 30px;
  height: 30px;
  border: 1px solid var(--red);
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
  font-size: 11px;
}
.user-chip .user-avatar{overflow:hidden;padding:0}.user-avatar img{display:none;width:100%;height:100%;object-fit:cover}.user-avatar img.ready{display:block}.user-chip svg{width:14px;height:14px}
.user-chip span {
  min-width: 0;
}
.user-chip b {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
}
.workspace {
  min-width: 0;
  padding: 26px clamp(24px, 3vw, 48px) 60px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.topbar h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.api-status {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-status i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.search-row,
.list-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.search-box {
  height: 48px;
  border: 1px solid #382624;
  background: #100a0a;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  flex: 1;
}
.search-box:focus-within {
  border-color: var(--red);
}
.search-box > span,
.search-box > svg {
  font-size: 23px;
  color: var(--red);
}
.search-box>svg{width:18px;height:18px;flex:0 0 auto}
.search-box input {
  border: 0;
  background: none;
  color: var(--text);
  outline: none;
  min-width: 0;
  flex: 1;
}
.search-box kbd {
  font-size: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 6px;
}
.search-box.slim {
  max-width: 480px;
}
.create-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(460px, 1.14fr);
  gap: 22px;
}
.editor-panel,
.preview-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
}
.editor-panel {
  padding: 18px;
}
.selected-match {
  min-height: 68px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}
.recipient-step {
  margin-bottom: 10px;
  background: var(--panel);
}
.selected-match > span,
.section-heading > span {
  font-size: 10px;
  color: var(--red);
  font-weight: 800;
}
.selected-match div,
.section-heading div {
  display: flex;
  flex-direction: column;
}
.selected-match b {
  font-size: 12px;
}
.selected-match small,
.section-heading small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.selected-match img {
  width: 44px;
  height: 44px;
}
.recipient-stack{min-width:0;flex:1}.recipient-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.recipient-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#0b0808;color:var(--text);padding:5px 7px;text-align:left}.recipient-chip:hover{border-color:var(--red)}.recipient-chip img{width:28px;height:28px}.recipient-chip span{display:flex;flex-direction:column;font-size:9px;font-weight:800}.recipient-chip small{font-size:7px!important}.recipient-chip i{font-style:normal;color:var(--muted);font-size:15px;margin-left:3px}
.section-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-heading {
  display: flex;
  gap: 13px;
  margin-bottom: 14px;
}
.section-heading b {
  font-size: 11px;
  letter-spacing: 0.11em;
}
.section-block select,
.section-block textarea,
.section-block .custom-prefix-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0707;
  color: var(--text);
  outline: none;
}
.custom-prefix-input{margin-top:8px;padding:10px 12px;font-size:10px;font-weight:800;letter-spacing:.04em}
.document-copy-grid{display:grid;gap:8px;margin-bottom:10px}.document-copy-grid label{display:grid;gap:6px}.document-copy-grid label>small,.field-caption{font-size:7px;color:var(--muted);font-weight:900;letter-spacing:.1em}.field-caption{display:block;margin:12px 0 6px}.compact-toggle{padding:8px 0!important;border-top:0!important}.compact-toggle span{font-size:9px}
.section-block select {
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
}
.section-block textarea {
  resize: vertical;
  min-height: 92px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 9px;
}
.counter {
  position: relative;
  display: block;
  text-align: right;
  margin: -18px 8px 0 0;
  font-size: 8px;
  color: #665b59;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 11px;
  border-top: 1px solid #211717;
}
.toggle-row:first-of-type {
  border-top: 0;
}
.toggle-row input {
  accent-color: var(--red);
}
.toggle-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.text-action {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.stat-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 3px 0 10px;
}
.profile-evidence-note{grid-column:1/-1;padding:11px 12px;border:1px dashed #4a302b;border-radius:8px;color:var(--muted);font-size:8px;line-height:1.5;background:#0b0707}
.evidence-group{border:1px solid #34231f;border-radius:10px;background:#0b0707;margin-bottom:10px;overflow:hidden}.evidence-group>.toggle-row{padding:11px 12px;border-top:0}.profile-group{border-color:#4a302b}.match-group{border-color:#59352f}.evidence-subgroup{padding:0 12px 12px;border-top:1px solid #2b1b18}.evidence-group.unavailable{opacity:.52}.profile-evidence-summary{padding:0 12px 11px;color:var(--muted);font-size:8px;line-height:1.5}.profile-evidence-summary b{color:var(--text)}.ranked-queue-picker{padding:0 12px 12px}.ranked-queue-picker label{display:grid;gap:5px}.ranked-queue-picker small{font-size:6px;color:var(--orange);letter-spacing:.1em;font-weight:800}.ranked-queue-picker select{height:34px;border-radius:7px;background:#120c0b;border:1px solid #4a302b;color:var(--text);font-size:8px;padding:0 9px}.evidence-subgroup>.stat-picker{padding-top:10px}.evidence-subgroup .timeline-list{margin-bottom:2px}
.stat-chip {
  border: 1px solid var(--line);
  background: #0a0707;
  color: var(--muted);
  padding: 9px 4px;
  font-size: 9px;
  font-weight: 800;
}
.stat-chip{display:flex;align-items:center;justify-content:center;gap:6px}.stat-chip .stat-asset,.stat-chip>svg{width:15px;height:15px;object-fit:contain;color:var(--orange)}.stat-asset.missing{display:none}
.stat-chip.selected {
  border-color: var(--red);
  color: var(--text);
  background: #24110e;
}
.small-textarea {
  min-height: 64px !important;
}
.issue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  gap: 20px;
}
.issue-row > div {
  display: flex;
  flex-direction: column;
}
.issue-row small {
  font-size: 8px;
  color: var(--red);
  letter-spacing: 0.1em;
}
.issue-row b {
  font-size: 10px;
  margin-top: 4px;
}
.issue-row .primary {
  font-size: 10px;
  padding: 14px 16px;
}
.preview-wrap {
  padding: 14px;
  background: #0b0808;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted);
  padding: 0 2px 10px;
}
.certificate {
  aspect-ratio: 1.414/1;
  background: #0c0909;
  border: 1px solid #3f2926;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.1vw, 30px);
  overflow: hidden;
  box-shadow: 0 20px 50px #0008;
}
.certificate:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #ff4b320b, transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 60px, #ff78460c 61px);
  pointer-events: none;
}

.cert-top,
.cert-bottom,
.cert-body,
.certificate footer {
  position: relative;
  z-index: 1;
}
.cert-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #352420;
  padding-bottom: 10px;
}
.cert-top small {
  font-size: 5px;
  color: var(--orange);
  letter-spacing: 0.18em;
}
.cert-top h3 {
  font-size: clamp(17px, 2.2vw, 30px);
  letter-spacing: 0.12em;
  margin: 3px 0 0;
}
.serial {
  font-size: 5px;
  color: #685957;
}
.cert-body {
  padding: 3.2% 1% 1%;
  flex: 1;
}
.cert-body > p {
  font-size: 5px;
  letter-spacing: 0.16em;
  color: #9d8d89;
  margin: 0;
  text-align: center;
}
.cert-body h4 {
  font-size: clamp(17px, 2.8vw, 39px);
  line-height: 1;
  margin: 6px 0 8px;
  letter-spacing: -0.04em;
  text-align: center;
}
.red-line {
  height: 2px;
  background: var(--red);
  width: 55px;
  margin: 0 auto 8px;
}
.cert-body > small {
  display: block;
  font-size: 6px;
  color: var(--orange);
  letter-spacing: 0.12em;
  font-weight: 800;
  text-align: center;
}
.cert-body blockquote {
  font-size: clamp(9px, 1.2vw, 17px);
  line-height: 1.15;
  font-weight: 900;
  max-width: 82%;
  margin: 5px auto 10px;
  text-transform: uppercase;
  text-align: center;
}
.match-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
}
.champion-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 900;
  font-size: 9px;
  background-size: cover;
  background-position: center;
}
.champion-badge{position:relative;overflow:hidden}.champion-badge img{display:none;width:100%;height:100%;object-fit:cover}.champion-badge img.ready{display:block}.champion-badge span{position:absolute;inset:0;display:grid;place-items:center}
.match-strip > div:last-child {
  display: flex;
  flex-direction: column;
}
.match-strip b {
  font-size: 8px;
}
.match-strip small {
  font-size: 5px;
  color: var(--muted);
  margin-top: 3px;
}
.preview-single-evidence{margin:7px 0}
.preview-single-evidence.combined-card{border:1px solid #4a302b;background:linear-gradient(135deg,#0e121d 0%,#080a11 100%);border-radius:6px;padding:6px 10px;box-shadow:0 2px 8px rgba(0,0,0,0.4)}
.preview-single-evidence.combined-card .player-rank-card{margin:0;border:0;background:transparent;padding:0;box-shadow:none}
.preview-single-evidence.combined-card .preview-match-group{border-top:1px solid rgba(74,48,43,0.4);margin-top:6px;padding-top:6px}
.preview-single-evidence.match-only-card .player-rank-card{display:none}
.preview-single-evidence.match-only-card .preview-match-group{margin:7px 0;border:1px solid #4a302b;background:linear-gradient(135deg,#0e121d 0%,#080a11 100%);border-radius:6px;padding:6px 10px;box-shadow:0 2px 8px rgba(0,0,0,0.4);border-top:1px solid #4a302b}
.player-rank-card{margin:7px 0;border:1px solid #4a302b;background:linear-gradient(135deg,#0e121d 0%,#080a11 100%);border-radius:6px;padding:6px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 2px 8px rgba(0,0,0,0.4)}.player-rank-identity{display:flex;align-items:center;gap:8px;min-width:0}.player-rank-identity>div:last-child{display:flex;flex-direction:column;min-width:0}.player-rank-identity b{font-size:9.5px;color:#f7efed;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-rank-identity small{font-size:5.5px;color:var(--orange);font-weight:600;margin-top:1px;letter-spacing:.05em}.player-rank-summary{display:flex;align-items:center;gap:8px;min-width:0;color:#f7efed}.player-rank-summary>div{display:flex;flex-direction:column;align-items:flex-end;min-width:0}.player-rank-summary .rank-emblem{width:36px;height:36px;object-fit:contain;flex:0 0 36px;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.6))}.player-rank-summary b{font-size:8.5px;font-weight:700;color:#f7efed;letter-spacing:.02em}.player-rank-summary small{font-size:5px;color:var(--muted);margin-top:1px;letter-spacing:.06em;text-transform:uppercase}.preview-match-group{border-top:1px solid #4a2d27;margin-top:5px;padding-top:5px}.preview-match-heading{display:flex;align-items:center;gap:7px}.preview-match-heading>span{font-size:5px;color:var(--orange);font-weight:900;letter-spacing:.08em}.preview-match-heading>small{font-size:4px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-match-content{display:flex;align-items:center;gap:6px;margin-top:4px}.preview-match-content>img{width:22px;height:22px;object-fit:cover;border-radius:4px;background:#17100f}.preview-match-content>div{min-width:0;flex:1}.preview-match-group .preview-stats{gap:3px}.preview-match-group .preview-stat{padding:2px 4px}.preview-match-group .item-slots{margin-top:3px}.preview-match-group .item-slot{width:14px;height:14px}
.preview-stats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.preview-stat {
  border-left: 1px solid var(--red);
  padding: 3px 6px;
  background: #160e0d;
  display: flex;
  flex-direction: column;
}
.preview-stat{flex-direction:row;align-items:center;gap:5px}.preview-stat>span{display:flex;flex-direction:column}.preview-stat .stat-asset{width:13px;height:13px;object-fit:contain}
.preview-stat small {
  font-size: 4px;
  color: var(--muted);
}
.preview-stat b {
  font-size: 7px;
}
.item-slots {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}
.item-slot {
  width: 21px;
  height: 21px;
  border: 1px solid #352723;
  background: #100b0b;
  background-size: cover;
}
.item-slot img,.data-card .icon img{width:100%;height:100%;display:block;object-fit:cover}
.preview-timeline {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  font-size: 5px;
  color: #bfaeaa;
}
.match-evidence{display:block}
.preview-group-roster{display:grid;grid-template-columns:repeat(var(--group-columns,5),minmax(0,1fr));gap:5px;margin:8px 0}
.preview-group-member{min-width:0;border:1px solid #4a302b;background:linear-gradient(180deg,#0e121d 0%,#080a11 100%);border-radius:5px;padding:4px 5px;display:flex;flex-direction:column;gap:3px;box-shadow:0 2px 6px rgba(0,0,0,0.35)}
.preview-member-identity,.preview-member-rank{display:flex;align-items:center;gap:4px;min-width:0}
.preview-member-identity{padding:0;background:transparent}
.preview-member-identity>img{width:18px;height:18px;border-radius:3px;object-fit:cover;flex:0 0 18px}
.preview-member-rank{padding-top:2px;border-top:1px solid rgba(74,48,43,0.5);background:transparent;color:#f7efed}
.preview-member-rank>img,.preview-member-rank>.rank-placeholder{width:20px;height:20px;object-fit:contain;flex:0 0 20px;display:grid;place-items:center}
.preview-group-member span{display:flex;flex-direction:column;min-width:0}
.preview-group-member b,.preview-group-member small,.preview-group-member em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-member-identity b{font-size:5px;color:#f7efed;font-weight:700}
.preview-member-identity small{font-size:3.8px;color:var(--orange);font-weight:600;margin-top:1px}
.preview-member-rank b{font-size:4.8px;color:#f7efed;font-weight:700}
.preview-member-rank small{font-size:3.6px;color:var(--muted);text-transform:uppercase}
.preview-group-member>em{display:block;padding-top:2px;border-top:1px solid rgba(74,48,43,0.3);color:var(--orange);font-size:3.6px;font-style:normal;font-weight:600}
.preview-group-meta{display:block;text-align:center;font-size:4px;color:var(--muted);letter-spacing:.04em;margin-top:2px}
.certificate.without-match-evidence .cert-body blockquote{max-width:94%;margin-bottom:14px}
.certificate.without-match-evidence .preview-timeline{margin-top:10px;font-size:6px;gap:4px;max-width:90%}
.cert-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #352420;
  padding-top: 8px;
}
.signature-box {
  width: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.signature-box small {
  font-size: 5px;
  color: var(--orange);
  letter-spacing: 0.13em;
  font-weight: 700;
  text-align: center;
}
.signature-image {
  height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #5e514e;
  font-size: 6px;
  font-style: italic;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  width: 100%;
}
.signature-box hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #685653;
  margin: 1px 0 3px;
}
.signature-box .operator-meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5px;
  line-height: 1.3;
}
.signature-box .operator-meta-block b {
  font-size: 6.2px;
  color: #f7efed;
  font-weight: 700;
}
.signature-box .operator-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9e8c87;
  font-size: 4.5px;
  letter-spacing: 0.03em;
}
.operator-icon {
  width: 7.5px;
  height: 7.5px;
  border-radius: 1.5px;
  object-fit: cover;
  flex: 0 0 7.5px;
}
.qr-block {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}
.qr-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.qr-copy b {
  font-size: 5px;
  color: #f7efed;
  font-family: monospace;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.qr-copy .qr-brand-label {
  font-size: 4.2px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qr-copy small {
  font-size: 4px;
  color: #5c504e;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.qr-placeholder {
  width: 34px;
  height: 34px;
  background: #f7efed;
  color: #070505;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  flex: 0 0 34px;
}
.certificate footer {
  font-size: 4px;
  color: #5c504e;
  margin-top: 5px;
}
.search-results {
  border: 1px solid var(--line);
  background: #100b0b;
  padding: 8px;
  margin: -8px 0 18px;
  display: grid;
  gap: 5px;
  max-height: 320px;
  overflow: auto;
}
.profile-result-card{border-color:#744237;background:linear-gradient(90deg,#25120f,#0d0807)}.profile-result-card .result-champion{border-radius:50%}.result-divider{display:flex;align-items:center;gap:10px;padding:10px 4px 6px;color:#796863;font-size:7px;letter-spacing:.1em}.result-divider:before,.result-divider:after{content:"";height:1px;flex:1;background:var(--line)}
.result-card {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: #0b0808;
  color: var(--text);
  padding: 9px;
  text-align: left;
}
.result-card:hover {
  background: #1d1110;
}
.result-card img {
  width: 42px;
  height: 42px;
}
.result-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.result-card b {
  font-size: 11px;
}
.result-card small {
  font-size: 8px;
  color: var(--muted);
}
.result-card em {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  color: var(--green);
}
.list-toolbar {
  justify-content: space-between;
}
.data-list {
  display: grid;
  gap: 10px;
}
.loading,
.empty-list {
  padding: 50px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.group-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 5px;
}
.group-heading h3 {
  margin: 0;
  font-size: 17px;
}
.group-heading span {
  font-size: 9px;
  color: var(--muted);
}
.data-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 13px;
  align-items: center;
}
.data-card .icon {
  width: 48px;
  height: 48px;
  border: 1px solid #3b2824;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
}
.data-card .details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.data-card .details b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-card .details small {
  font-size: 8px;
  color: var(--muted);
}
.data-card .actions {
  display: flex;
  gap: 6px;
}
.data-card .actions button,
.mini-button {
  border: 1px solid var(--line);
  background: #0c0808;
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
  padding: 8px;
}
.data-card .actions button,.secondary{display:inline-flex;align-items:center;gap:6px}.data-card .actions svg,.secondary svg,.primary svg{width:13px;height:13px}.operator-avatar{background-size:cover!important;background-position:center!important}
.data-card .actions button:hover {
  border-color: var(--red);
}
.danger {
  color: #ff7663 !important;
}
dialog {
  border: 1px solid #412923;
  background: #100b0b;
  color: var(--text);
  width: min(480px, calc(100% - 30px));
  padding: 0;
  box-shadow: 0 30px 100px #000;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog form {
  padding: 28px;
  display: grid;
  gap: 17px;
  position: relative;
}
dialog h3 {
  font-size: 25px;
  margin: -8px 0 5px;
}
dialog .dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 23px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
dialog .dialog-close:hover,
dialog .dialog-close:focus-visible {
  color: var(--text);
  background: #291512;
  outline: 1px solid #6b352d;
}
dialog fieldset {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
dialog legend {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
dialog fieldset label {
  font-size: 10px;
  color: var(--text);
}
dialog fieldset input {
  display: inline;
  width: auto;
  margin: 0;
  accent-color: var(--red);
}
.file-drop {
  border: 1px dashed #59413d;
  padding: 22px;
  text-align: center;
  color: var(--text) !important;
  cursor: pointer;
  border-radius: 12px;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--orange);
  background: #1a0e0c;
  box-shadow: 0 0 0 3px #ff784612;
}
.file-drop.selected {
  border-style: solid;
  border-color: #65d39d;
  background: #0d1712;
}
.signature-upload-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin:12px 0;padding:10px 12px;border:1px solid #3f2b27;border-radius:10px;background:#0b0707}
.signature-upload-preview img{width:100%;height:76px;object-fit:contain;background-image:linear-gradient(45deg,#191110 25%,transparent 25%),linear-gradient(-45deg,#191110 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#191110 75%),linear-gradient(-45deg,transparent 75%,#191110 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.signature-upload-preview>span{display:flex;flex-direction:column;max-width:150px}.signature-upload-preview b{font-size:9px;color:var(--green)}.signature-upload-preview small{font-size:7px;color:var(--muted);line-height:1.4;margin-top:4px}
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-drop span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  left: auto;
  bottom: auto;
  z-index: 10000;
  margin: 0;
  border: 1px solid #56352f;
  background: #1c1211;
  color: var(--text);
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--red);
  padding: 13px 17px;
  font-size: 11px;
  transform: translateY(-80px);
  opacity: 0;
  transition: 0.25s;
}
.toast:popover-open {
  display: block;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast.error {
  border-color: #ff8370;
}
.toast.success {
  border-color: var(--green);
}
@media (max-width: 1050px) {
  .create-grid {
    grid-template-columns: 1fr;
  }
  .preview-wrap {
    max-width: 760px;
  }
  .login-art {
    display: none;
  }
  .login-shell {
    display: block;
  }
  .login-card {
    min-height: 100vh;
  }
  .app {
    grid-template-columns: 180px 1fr;
  }
}
@media (max-width: 720px) {
  .app {
    display: block;
  }
  .sidebar {
    height: auto;
    position: sticky;
    z-index: 10;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .brand {
    padding: 0;
  }
  .brand > div:last-child,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: center;
  }
  .nav-item {
    font-size: 0;
    padding: 10px;
  }
  .nav-item span {
    font-size: 18px;
    width: auto;
  }
  .workspace {
    padding: 18px 12px 40px;
  }
  .create-grid {
    grid-template-columns: 1fr;
  }
  .stat-picker {
    grid-template-columns: repeat(3, 1fr);
  }
  .issue-row {
    align-items: stretch;
    flex-direction: column;
  }
  .certificate {
    min-height: 360px;
  }
  .data-card {
    grid-template-columns: 40px 1fr;
  }
  .data-card .actions {
    grid-column: 1/-1;
  }
  .topbar .api-status {
    display: none;
  }
  .login-card {
    padding: 40px 28px;
  }
  .login-card h1 {
    font-size: 52px;
  }
  .login-card .brand-mark {
    margin-bottom: 35px;
  }
}

/* Local brand and legibility refinements */
.brand-mark{border:0;border-radius:50%;overflow:hidden;background:#030202}.brand-mark.small{border-radius:50%}.brand-mark img{width:100%;height:100%;object-fit:cover;transform:scale(1.72);display:block}.brand-mark:after{display:none}
.cert-brand{display:flex;align-items:center;gap:9px}.cert-brand>img{width:30px;height:30px;object-fit:cover;transform:scale(1.05);border-radius:50%;border:0}.cert-brand>div{display:flex;flex-direction:column}
.editor-panel .toggle-row input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:18px;height:18px;flex:0 0 18px;margin:0;border:1px solid #65413b;border-radius:6px;background:#0a0707;display:grid;place-items:center;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.editor-panel .toggle-row input[type="checkbox"]:hover{border-color:var(--orange)}.editor-panel .toggle-row input[type="checkbox"]:focus-visible{outline:2px solid #ff784680;outline-offset:2px}.editor-panel .toggle-row input[type="checkbox"]:checked{border-color:var(--red);background:var(--red);box-shadow:0 0 0 3px #ff4b321c}.editor-panel .toggle-row input[type="checkbox"]:checked:after{content:"";width:8px;height:4px;border-left:2px solid #160706;border-bottom:2px solid #160706;transform:rotate(-45deg) translateY(-1px)}
.timeline-control>label{display:flex;align-items:center;gap:10px}.timeline-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.timeline-actions .text-action{margin-left:0;display:inline-flex;align-items:center;gap:5px}.timeline-actions svg{width:12px;height:12px;transition:transform .18s ease}.timeline-actions .collapsed svg{transform:rotate(-90deg)}.timeline-list{border-left:1px solid #33211e;padding-left:12px;margin-left:8px;max-height:290px;overflow:auto}
.serial{color:#ab9995}.cert-body>p{color:#c3b4b0}.match-strip small,.preview-stat small{color:#b8a8a4}.preview-timeline{color:#d2c3bf}.signature-image{color:#9e8e89}.signature-box p{color:#d4c6c2}.signature-box span,.qr-placeholder small{color:#ad9c98}.certificate footer{color:#978783;font-size:5px}.signature-box hr{border-top-color:#92746e}.cert-top{border-bottom-color:#59352f}.cert-bottom{border-top-color:#59352f}.item-slot{border-color:#5b3b35}

/* Tarjetas KDA inspiradas en el libro de repeticiones */
.result-card{border:1px solid transparent;border-radius:12px;padding:10px 12px}.result-card:hover{border-color:#352724}.result-card .result-champion{border-radius:50%;box-shadow:none}.result-main{min-width:0;flex:1}.result-card>em{display:flex;flex-direction:column;align-items:flex-end;gap:3px;max-width:180px;color:#d7c5bf}.result-card>em small{font-size:6px;color:#947f79;letter-spacing:.12em}
.kda-card{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #4d302b;border-radius:10px;background:linear-gradient(180deg,#1a100f,#100a09);width:max-content;max-width:100%}.kda-card>.stat-asset{width:15px;height:15px;object-fit:contain;margin-right:2px}.kda-card>span{display:flex;align-items:baseline;gap:3px}.kda-card b{font-size:9px;line-height:1;color:#f7efed}.kda-card small{font-size:4px;letter-spacing:.06em;color:#a99691}.kda-card>i{font-style:normal;color:#604b46;font-size:8px}.kda-card .kda-kills b{color:#ff8b58}.kda-card .kda-deaths b{color:#ff6574}.kda-card .kda-assists b{color:#66c9c2}
.kda-card.compact{margin-top:4px;padding:4px 7px;border-radius:8px;gap:4px}.kda-card.compact>.stat-asset{width:13px;height:13px}.kda-card.compact b{font-size:9px}.kda-card.compact small{font-size:5px}.result-card .kda-card.compact small{color:#9f8d88}
.preview-stats .kda-card{padding:3px 5px;border-radius:6px;gap:3px}.preview-stats .kda-card>.stat-asset{width:13px;height:13px}.preview-stats .kda-card b{font-size:7px}.preview-stats .kda-card small{font-size:3px}.preview-stats .kda-card>i{font-size:6px}
@media(max-width:720px){.result-card{align-items:flex-start;flex-wrap:wrap}.result-card>em{width:100%;max-width:none;align-items:flex-start;margin-left:53px}.kda-card.compact small{display:none}}

/* Estados e iconografía sin marcos rojos */
.result-title,.operator-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-badge{display:inline-flex;align-items:center;min-height:18px;padding:3px 7px;border-radius:999px;font-size:7px;font-weight:900;letter-spacing:.08em;line-height:1;border:1px solid transparent}.status-badge.success{color:#8ce6b5;background:#10261c;border-color:#285b40}.status-badge.danger{color:#ff9aa5;background:#2b1116;border-color:#6c2934}.status-badge.neutral{color:#c0b5b2;background:#211918;border-color:#443532}
.user-chip>div,.champion-badge{border:0;border-radius:50%;overflow:hidden;background:#17100f}.recipient-chip img,.data-card .icon,.data-card .icon img{border-radius:50%}.data-card .icon{border:0;background:#17100f}.operator-avatar{box-shadow:none}.preview-stat{border-left-color:#55403b}

/* Flujo de certificados para múltiples destinatarios */
.recipient-step{display:block;padding:0;overflow:hidden;background:linear-gradient(180deg,#120b0a,#0b0707)}
.recipient-step.empty-state{padding:0}
.recipient-empty{display:flex;align-items:center;gap:14px;padding:16px 18px}
.step-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#2a110e;color:var(--orange);font-size:9px;font-weight:900;flex:0 0 auto}
.recipient-empty>div{display:flex;flex-direction:column}
.recipient-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}
.recipient-panel-head>div{display:flex;align-items:center;gap:11px;flex-direction:row}
.recipient-panel-head>div>span:last-child{display:flex;flex-direction:column}
.recipient-panel-head strong{font-size:22px;line-height:1;color:var(--text)}
.recipient-panel-head strong small{font-size:9px;color:var(--muted);font-weight:700}
.recipient-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1px;background:var(--line)}
.recipient-card{position:relative;display:flex;min-width:0;background:#0b0707}
.recipient-card>button:first-child{min-width:0;flex:1;display:grid;grid-template-columns:24px 36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 38px 11px 11px;border:0;background:transparent;color:var(--text);text-align:left}
.recipient-card:hover{background:#130b0a}
.recipient-card.active{background:linear-gradient(90deg,#2a120f,#130b0a);box-shadow:inset 3px 0 var(--red)}
.recipient-card.active>button:first-child{padding-left:14px}
.recipient-order{font-size:8px;color:#7f6d68;font-weight:900}
.recipient-card img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.recipient-identity{display:flex;flex-direction:column;min-width:0}
.recipient-identity b,.recipient-identity small,.recipient-identity em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recipient-identity b{font-size:10px}.recipient-identity small{font-size:8px!important;color:#c8b8b4;margin-top:2px}.recipient-identity em{font-size:7px;font-style:normal;color:#87746f;margin-top:3px}
.active-marker{font-size:6px;font-weight:900;letter-spacing:.09em;color:#ffb094;background:#351713;border:1px solid #623026;border-radius:999px;padding:4px 6px}
.recipient-remove{position:absolute;right:8px;top:8px;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:#806c67;font-size:15px;line-height:1}
.recipient-remove:hover{background:#321512;color:#ff9d82}
.recipient-search{margin-top:10px;margin-bottom:18px}
.recipient-search .search-box{border-style:dashed}.recipient-search:focus-within .search-box{border-style:solid}
.recipient-search .primary{white-space:nowrap;min-width:150px}
.evidence-context{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:10px;margin:-2px 0 12px;border:1px solid #472923;border-radius:10px;background:linear-gradient(90deg,#21100e,#100908)}
.evidence-context img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.evidence-context>span{display:flex;flex-direction:column;min-width:0}.evidence-context small{font-size:6px;color:var(--orange);letter-spacing:.11em;font-weight:900}.evidence-context b{font-size:11px;margin-top:2px}.evidence-context em{font-size:7px;color:var(--muted);font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.evidence-context>strong{font-size:18px}.evidence-context>strong small{font-size:8px;color:var(--muted)}
.timeline-list{border-left:0;padding-left:0;margin-left:0;display:grid;gap:6px;max-height:320px}
.timeline-event{position:relative;display:grid;grid-template-columns:18px 38px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid #2d1d1b;border-radius:9px;background:#0b0707;font-size:10px}
.timeline-event:hover{border-color:#50302a}.timeline-event.highlight{border-color:#6d3329;background:linear-gradient(90deg,#23100d,#0d0807)}
.timeline-event input{margin:0}.event-time{font-variant-numeric:tabular-nums;font-size:8px;font-weight:900;color:var(--orange)}
.event-copy{display:flex;flex-direction:column;min-width:0}.event-copy b{font-size:9px;letter-spacing:.04em}.event-copy small{font-size:7px;color:var(--muted);margin-top:2px;white-space:normal}
.timeline-event>em{font-size:6px;font-style:normal;letter-spacing:.08em;color:#9b7f77;background:#1b1110;border-radius:999px;padding:4px 6px}
.timeline-empty{padding:14px;border:1px dashed #3b2824;border-radius:9px;color:var(--muted);font-size:9px;line-height:1.5;text-align:center}
@media(min-width:1051px){.preview-wrap{position:sticky;top:20px;align-self:start}}
@media(max-width:720px){.recipient-list{grid-template-columns:1fr}.recipient-search{align-items:stretch;flex-direction:column}.recipient-search .primary{width:100%}.recipient-card>button:first-child{grid-template-columns:20px 34px minmax(0,1fr)}.active-marker{display:none}.timeline-control{align-items:flex-start;gap:8px}.timeline-control>label{min-width:0}.timeline-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.timeline-event{grid-template-columns:18px 34px minmax(0,1fr)}.timeline-event>em{display:none}}
@media(max-width:720px){.preview-group-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}
