:root {
  --ink: #f2faf4;
  --mute: rgba(242,250,244,.72);
  --accent: #7dcea0;
  --accent-hot: #c8f0d4;
  --line: rgba(125,206,160,.28);
  --bg: #0a1a12;
  --panel: rgba(12, 40, 28, .72);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.kds-app {
  min-height: 100dvh;
  font-family: Sora, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(125,206,160,.2), transparent 55%),
    linear-gradient(165deg, #123226, var(--bg) 72%);
}
.wrong-bundle {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: #3a1212;
  color: #ffe8e8;
}
.wrong-bundle[hidden] { display: none !important; }
.wrong-bundle h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.wrong-bundle a { color: #ffd0d0; }
.app-badge {
  display: inline-block;
  width: fit-content;
  margin: 0 auto 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125,206,160,.22);
  border: 1px solid rgba(125,206,160,.45);
  color: var(--accent-hot);
  font: 700 .72rem/1 Sora, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.board .app-badge { margin: 0 0 6px; }
.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  width: min(420px, 100%);
  margin: 0 auto;
}
.boot[hidden],
.boot.is-hidden,
.board[hidden],
.board.is-hidden {
  display: none !important;
}
.lang-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.home-link {
  color: rgba(232, 245, 236, 0.7);
  font: 600 .78rem/1 Sora, system-ui, sans-serif;
  text-decoration: none;
  letter-spacing: .02em;
  padding: 8px 2px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.home-link:hover,
.home-link:focus-visible {
  color: #c8f0d4;
  outline: none;
}
.home-link--header {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  opacity: 0.85;
}
.home-link--header:hover,
.home-link--header:focus-visible {
  border-color: rgba(200, 240, 212, .4);
  background: rgba(200, 240, 212, .08);
  opacity: 1;
}
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lang-toggle {
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.06);
  color: var(--ink); font: 700 .7rem/1 Sora, system-ui, sans-serif;
  letter-spacing: .06em; cursor: pointer;
}
.lang-toggle.is-es { color: var(--accent-hot); border-color: rgba(125,206,160,.5); }
.logo { border-radius: 18px; margin: 0 auto 6px; box-shadow: 0 0 0 3px rgba(125,206,160,.25); }
.kicker {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
h1, h2 { font-family: Fraunces, Georgia, serif; }
.boot h1 { font-size: 1.85rem; }
.help { color: var(--mute); font-size: .9rem; line-height: 1.4; }
.path-hint { font-size: .78rem; opacity: .85; }
.path-hint code { color: var(--accent-hot); }
label { display: grid; gap: 6px; color: var(--mute); font-size: .85rem; }
input {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.28); color: var(--ink); padding: 0 12px;
  font: 700 1rem/1 Sora, system-ui, sans-serif; letter-spacing: .08em;
  text-transform: uppercase;
}
#pin { text-transform: none; letter-spacing: normal; font-weight: 600; }
.btn {
  min-height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(160deg, #7dcea0, #3d8f62); color: #06140c;
  font: 700 1rem/1 Sora, system-ui, sans-serif;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px;
}
.btn.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}
.status { color: var(--accent-hot); min-height: 1.2em; }
.board { padding: 16px; }
.top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 14px;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-height: 70vh;
}
.cols section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.cols h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-hot);
}
.col { display: grid; gap: 10px; }
.ticket {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.ticket strong { display: block; margin-bottom: 6px; }
.ticket ul { margin: 0 0 8px 1.1rem; color: var(--mute); font-size: .9rem; }
.ticket .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.help { color: var(--mute); }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; min-height: 0; }
}
