/* Bradley Poster Bot - "Iron elohell" dashboard */

:root {
  --bg: #0b0909;
  --bg-2: #110d0d;
  --surface: rgba(28, 22, 22, 0.72);
  --surface-solid: #1a1515;
  --surface-2: rgba(40, 32, 31, 0.6);
  --surface-hover: rgba(52, 41, 40, 0.7);
  --line: rgba(176, 146, 136, 0.13);
  --line-strong: rgba(176, 146, 136, 0.26);
  --text: #ece4e1;
  --text-2: #b9aaa5;
  --muted: #86766f;
  --iron-hi: #b49d95;
  --iron: #7d6a64;
  --iron-lo: #3a2d2b;
  --ember: #e0663a;
  --ember-2: #ff9a5c;
  --ember-glow: rgba(224, 102, 58, 0.35);
  --ok: #7cc49a;
  --ok-bg: rgba(124, 196, 154, 0.12);
  --warn: #e3b25a;
  --warn-bg: rgba(227, 178, 90, 0.12);
  --bad: #e2605a;
  --bad-bg: rgba(226, 96, 90, 0.13);
  --info: #8fb2d9;
  --info-bg: rgba(143, 178, 217, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cinzel", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 248px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 520px at 50% 115%, rgba(196, 70, 30, 0.2), transparent 70%),
    radial-gradient(800px 400px at 85% -10%, rgba(125, 106, 100, 0.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--ember-2);
}

::selection {
  background: var(--ember-glow);
}

/* ---------- Boot / login ---------- */

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.boot-emblem {
  width: 150px;
  animation: breathe 2.4s var(--ease) infinite;
  filter: drop-shadow(0 0 24px var(--ember-glow));
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: min(400px, 100%);
  text-align: center;
  padding: 36px 30px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(34, 27, 27, 0.9), rgba(20, 16, 16, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 80px -30px var(--ember-glow);
  backdrop-filter: blur(14px);
  animation: rise 0.7s var(--ease) backwards;
}

.login-card img {
  width: 190px;
  margin: -6px auto 6px;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(224, 102, 58, 0.25));
}

.login-card h1 {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 4px 0 4px;
  background: linear-gradient(180deg, #f3e9e5, var(--iron-hi) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card .error {
  color: var(--bad);
  font-size: 13px;
  min-height: 18px;
  transition: opacity 0.2s;
}

.shake {
  animation: shake 0.42s var(--ease);
}

@keyframes shake {
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 15, 15, 0.85), rgba(13, 10, 10, 0.85));
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 20px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 132px;
  filter: drop-shadow(0 6px 18px rgba(224, 102, 58, 0.18));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.brand:hover img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 26px rgba(224, 102, 58, 0.35));
}

.brand-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--iron-hi);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 4px;
  position: relative;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
  z-index: 1;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav a.active {
  color: var(--text);
}

.nav a svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 0.85;
}

.nav a.active svg {
  color: var(--ember-2);
  opacity: 1;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(224, 102, 58, 0.16), rgba(224, 102, 58, 0.04));
  border: 1px solid rgba(224, 102, 58, 0.22);
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s;
  z-index: 0;
}

.nav-badge {
  margin-left: auto;
  min-width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: pulse 1.6s ease-in-out infinite;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.quip {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 0 6px;
  opacity: 0.8;
  transition: opacity 0.6s;
}

.main {
  min-width: 0;
  padding: 26px 34px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  min-height: 44px;
}

.topbar h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  color: #f1e8e4;
}

.topbar .spacer {
  flex: 1;
}

.view {
  animation: viewIn 0.5s var(--ease) backwards;
}

.view.leaving {
  animation: viewOut 0.18s ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes viewOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Status pills / dots ---------- */

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--muted);
  transition:
    background 0.4s,
    box-shadow 0.4s;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(124, 196, 154, 0.6);
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(227, 178, 90, 0.55);
}

.dot.bad {
  background: var(--bad);
  box-shadow: 0 0 10px rgba(226, 96, 90, 0.6);
}

.dot.live {
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(124, 196, 154, 0.25);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: rgba(227, 178, 90, 0.25);
}

.pill.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(226, 96, 90, 0.28);
}

.pill.live {
  background: rgba(224, 102, 58, 0.14);
  color: var(--ember-2);
  border-color: rgba(224, 102, 58, 0.35);
}

.pill.info {
  background: var(--info-bg);
  color: var(--info);
  border-color: rgba(143, 178, 217, 0.25);
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-12 {
  grid-column: span 12;
}
.span-8 {
  grid-column: span 8;
}
.span-7 {
  grid-column: span 7;
}
.span-6 {
  grid-column: span 6;
}
.span-5 {
  grid-column: span 5;
}
.span-4 {
  grid-column: span 4;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  min-width: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(180, 157, 149, 0.28), transparent 38%, transparent 70%, rgba(224, 102, 58, 0.14));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.card-head .spacer {
  flex: 1;
}

/* Hero */

.hero-phase {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  margin: 10px 0 6px;
  color: #f5ece8;
}

.hero-detail {
  color: var(--text-2);
  font-size: 15px;
  min-height: 22px;
}

.champs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.champ {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  animation: rise 0.5s var(--ease) backwards;
}

.champ img,
.champ .ph {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--iron-lo);
  object-fit: cover;
}

.champ b {
  display: block;
  font-size: 14px;
}

.champ small {
  color: var(--muted);
  font-size: 12px;
}

.timer {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Health list */

/* Stats */

/* Voice mini */

.voice-state {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}

.eq span {
  width: 4px;
  border-radius: 2px;
  background: var(--iron);
  height: 6px;
  transition:
    background 0.4s,
    height 0.4s;
}

.eq.on span {
  background: var(--ember);
  animation: eq 1s ease-in-out infinite;
}

.eq.on span:nth-child(2) {
  animation-delay: -0.3s;
}
.eq.on span:nth-child(3) {
  animation-delay: -0.6s;
}
.eq.on span:nth-child(4) {
  animation-delay: -0.15s;
}
.eq.on span:nth-child(5) {
  animation-delay: -0.45s;
}

@keyframes eq {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 24px;
  }
}

.voice-title {
  font-weight: 600;
  font-size: 16px;
}

.voice-sub {
  color: var(--muted);
  font-size: 13px;
}

/* Last poster */

.caption {
  font-size: 14px;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 18px 4px;
  text-align: center;
}

.empty img {
  width: 90px;
  opacity: 0.25;
  display: block;
  margin: 0 auto 10px;
  filter: grayscale(1);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(62, 50, 48, 0.8), rgba(38, 30, 29, 0.85));
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    opacity 0.25s;
  user-select: none;
}

.btn:hover {
  border-color: rgba(180, 157, 149, 0.45);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn.primary {
  background: linear-gradient(180deg, #e8744a, #b9471f);
  border-color: rgba(255, 150, 100, 0.5);
  color: #fff6f1;
  box-shadow: 0 8px 22px -10px var(--ember-glow);
}

.btn.primary:hover {
  box-shadow: 0 10px 28px -8px rgba(224, 102, 58, 0.6);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
}

.btn.danger {
  color: var(--bad);
  border-color: rgba(226, 96, 90, 0.35);
  background: var(--bad-bg);
}

.btn.block {
  width: 100%;
}

.btn[disabled],
.btn.busy {
  opacity: 0.6;
  pointer-events: none;
}

.btn .spin {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 9, 9, 0.6);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.input:focus {
  border-color: rgba(224, 102, 58, 0.6);
  box-shadow: 0 0 0 4px rgba(224, 102, 58, 0.12);
  background: rgba(12, 9, 9, 0.85);
}

textarea.input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b49d95' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.field .hint {
  font-size: 12.5px;
  color: var(--muted);
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 1fr;
}

.form-section {
  display: grid;
  gap: 16px;
}

.form-section + .form-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: var(--display);
  font-size: 17px;
  margin: 0;
  color: #efe5e1;
}

.section-desc {
  margin: -10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
}

.toggle-row:hover {
  border-color: var(--line-strong);
}

.toggle-row .txt {
  flex: 1;
}

.toggle-row .txt b {
  display: block;
  font-size: 14px;
}

.toggle-row .txt span {
  font-size: 12.5px;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--iron-lo);
  border: 1px solid var(--line-strong);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #cbbab4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.35s var(--ease),
    background 0.3s;
}

.switch input:checked + .track {
  background: linear-gradient(180deg, #e8744a, #b9471f);
  border-color: rgba(255, 150, 100, 0.5);
}

.switch input:checked + .track::after {
  transform: translateX(19px);
  background: #fff4ee;
}

.switch input:focus-visible + .track {
  box-shadow: 0 0 0 4px rgba(224, 102, 58, 0.2);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--ember);
}

.range-val {
  font-family: var(--mono);
  min-width: 56px;
  text-align: right;
  color: var(--text);
}

.counter {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.member {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(124, 196, 154, 0.1);
  color: var(--ok);
  border: 1px solid rgba(124, 196, 154, 0.22);
  animation: rise 0.35s var(--ease) backwards;
}

.savebar {
  position: fixed;
  left: calc(var(--sidebar) + 34px);
  right: 34px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  background: rgba(30, 23, 23, 0.94);
  border: 1px solid rgba(224, 102, 58, 0.35);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9), 0 0 40px -18px var(--ember-glow);
  backdrop-filter: blur(14px);
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s;
}

.savebar.show {
  transform: none;
  opacity: 1;
}

.savebar .txt {
  flex: 1;
  font-weight: 500;
}

/* ---------- Transcript ---------- */

.transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 230px);
  min-height: 300px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  scroll-behavior: smooth;
}

.bubble {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  animation: rise 0.45s var(--ease) backwards;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #140f0f;
  background: hsl(var(--h, 20) 45% 62%);
}

.bubble .meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.bubble .meta b {
  color: hsl(var(--h, 20) 55% 72%);
  font-size: 14px;
}

.bubble .text {
  margin-top: 2px;
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}

.jump {
  position: sticky;
  bottom: 6px;
  align-self: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}

.jump.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Posters ---------- */

.tag {
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 7px;
  text-transform: uppercase;
}

.tag.win {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag.loss {
  background: var(--bad-bg);
  color: var(--bad);
}
.tag.unknown {
  background: var(--surface-2);
  color: var(--text-2);
}

/* ---------- Modal / lightbox ---------- */

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 4, 4, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.25s ease backwards;
}

.modal-back.closing {
  animation: fadeOut 0.2s ease both;
}

.modal {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  animation: pop 0.4s var(--ease) backwards;
}

.modal-back.closing .modal {
  animation: popOut 0.2s ease both;
}

.modal.narrow {
  width: min(760px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface-solid);
  z-index: 1;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  flex: 1;
}

.modal-body {
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

.tabs button.on {
  background: var(--surface-hover);
  color: var(--text);
}

.pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  color: var(--text-2);
  max-height: 60vh;
  overflow: auto;
  animation: fadeIn 0.3s ease backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

@keyframes popOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

/* ---------- Logs ---------- */

.log-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
}

.chip.on {
  background: rgba(224, 102, 58, 0.14);
  border-color: rgba(224, 102, 58, 0.4);
  color: var(--ember-2);
}

.logs {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  max-height: calc(100vh - 250px);
  min-height: 300px;
  overflow: auto;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(6, 4, 4, 0.45);
  border: 1px solid var(--line);
}

.log {
  display: grid;
  grid-template-columns: 74px 92px minmax(0, 1fr);
  gap: 10px;
  padding: 3px 14px;
  border-left: 2px solid transparent;
  transition: background 0.2s;
}

.log.new {
  animation: logIn 1.4s ease backwards;
}

@keyframes logIn {
  from {
    background: rgba(224, 102, 58, 0.16);
  }
  to {
    background: transparent;
  }
}

.log:hover {
  background: rgba(255, 255, 255, 0.025);
}

.log .t {
  color: var(--muted);
}

.log .g {
  color: hsl(var(--h, 20) 45% 68%);
  overflow: hidden;
  text-overflow: ellipsis;
}

.log .m {
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.log.error {
  border-left-color: var(--bad);
  background: rgba(226, 96, 90, 0.05);
}

.log.error .m {
  color: #f0a29e;
}

.log.warnish .m {
  color: #ecc98a;
}

.log-day {
  padding: 10px 14px 4px;
  color: var(--iron-hi);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Toasts ---------- */

#toasts {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(30, 23, 23, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  animation: toastIn 0.45s var(--ease) backwards;
  font-size: 14px;
}

.toast.out {
  animation: toastOut 0.3s ease both;
}

.toast.ok {
  border-color: rgba(124, 196, 154, 0.35);
}
.toast.bad {
  border-color: rgba(226, 96, 90, 0.4);
}

.toast .dot {
  margin-top: 6px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.97);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ---------- Skeleton ---------- */

.skel {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.fade-swap {
  animation: fadeIn 0.35s ease backwards;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

/* ---------- Mobile ---------- */

.mobile-top {
  display: none;
}

@media (max-width: 1100px) {
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(14, 11, 11, 0.94);
  }
  .brand,
  .sidebar-foot {
    display: none;
  }
  .nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }
  .nav a {
    flex-direction: column;
    gap: 3px;
    padding: 7px 2px;
    font-size: 10.5px;
    text-align: center;
  }
  .nav-indicator {
    display: none;
  }
  .nav a.active {
    background: rgba(224, 102, 58, 0.12);
  }
  .nav-badge {
    position: absolute;
    top: 6px;
    right: 22%;
    margin: 0;
  }
  .main {
    padding: 16px 16px 110px;
  }
  .mobile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .mobile-top img {
    width: 58px;
  }
  .mobile-top > span:not(.pill) {
    font-family: var(--display);
    font-weight: 700;
    color: var(--iron-hi);
    letter-spacing: 0.06em;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .hero-phase {
    font-size: 24px;
  }
  .row {
    grid-template-columns: 1fr 1fr;
  }
  .row > :first-child {
    grid-column: span 2;
  }
  .savebar {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .log {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .log .g {
    display: none;
  }
  .modal-back {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #embers {
    display: none;
  }
}

/* ---------- Pocket ID login / signed-in user ---------- */

.btn.pocket {
  text-decoration: none;
  padding: 13px 16px;
  font-size: 15px;
}

.pocket-logo {
  display: inline-flex;
}

.pocket-logo svg {
  width: 19px;
  height: 19px;
}

.login-card .error {
  margin-top: 12px;
}

.login-foot {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  min-width: 0;
}

.who-av {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #1a1212;
  background: linear-gradient(180deg, var(--iron-hi), var(--iron));
}

.who-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =================================================================================
   UX refresh: new name, Állapot page, full-height views, tabbed settings
   ================================================================================= */

.brand-title2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin-top: -2px;
}

.nav-short {
  display: none;
}

.nav-badge.bad {
  background: var(--bad);
  box-shadow: 0 0 10px var(--bad);
}

.titles {
  min-width: 0;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar {
  align-items: flex-start;
}

.topbar > .pill {
  margin-top: 4px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  cursor: pointer;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}

.icon-btn:hover:not([disabled]) {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.who {
  padding: 8px 8px 8px 10px;
}

.who-txt {
  display: grid;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.who-sub {
  font-size: 11px;
  color: var(--muted);
}

.btn.sm {
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 9px;
}

.btn.sm svg {
  width: 15px;
  height: 15px;
}

.pill.sm {
  padding: 3px 9px;
  font-size: 12px;
}

.link-more {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.link-more:hover {
  color: var(--ember-2);
}

.danger-text {
  color: var(--bad) !important;
}

/* ---------- full-height pages (logs, transcript) ---------- */

.main.fill {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.main.fill .view-wrap,
.main.fill .view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.main.fill .view > * {
  flex: 1;
  min-height: 0;
}

.fill-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fill-card,
.logs-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.logs-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.logs-wrap > .logs,
.logs-wrap > .transcript {
  flex: 1;
  min-height: 0;
  max-height: none;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}

.logs-wrap > .jump {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translate(-50%, 10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
}

.logs-wrap > .jump.show {
  transform: translate(-50%, 0);
}

.log-tools {
  margin-bottom: 10px;
}

.log-tools .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.log-tools .chip svg {
  width: 14px;
  height: 14px;
}

.chips {
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--h, 20) 45% 62%);
}

.chip-n {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.danger-chip.on {
  background: var(--bad-bg);
  border-color: rgba(226, 96, 90, 0.4);
  color: var(--bad);
}

.log-count {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.logs-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12.5px;
}

/* ---------- Állapot (heartbeats) ---------- */

.sum-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex: none;
}

.sum-orb.ok {
  background: var(--ok-bg);
  color: var(--ok);
  box-shadow:
    0 0 0 1px rgba(124, 196, 154, 0.3),
    0 0 30px -6px rgba(124, 196, 154, 0.45);
}

.sum-orb.bad {
  background: var(--bad-bg);
  color: var(--bad);
  box-shadow:
    0 0 0 1px rgba(226, 96, 90, 0.35),
    0 0 30px -6px rgba(226, 96, 90, 0.5);
  animation: pulse 1.8s ease-in-out infinite;
}

.sum-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.sum-sub {
  color: var(--muted);
  font-size: 13.5px;
}

.spacer {
  flex: 1;
}

.hb-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--iron-hi);
}

.hb-icon svg {
  width: 18px;
  height: 18px;
}

.hb-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 30px;
  min-width: 0;
}

.tick {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 0.2s,
    filter 0.2s;
}

.tick.ok {
  background: linear-gradient(180deg, #8ad3a8, #4f9a70);
}

.tick.bad {
  background: linear-gradient(180deg, #f07d77, #b8413c);
}

.tick:not(.blank):hover {
  transform: scaleY(1.18);
  filter: brightness(1.25);
}

.tick.fresh {
  animation: tickIn 0.7s var(--ease) backwards;
  transform-origin: bottom;
}

@keyframes tickIn {
  from {
    transform: scaleY(0.1);
    filter: brightness(2);
  }
}

/* ---------- Settings ---------- */

.spanel {
  padding: 24px;
}

.spanel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.spanel-body.swap {
  animation: viewIn 0.4s var(--ease) backwards;
}

.spanel .section-title {
  font-size: 21px;
}

.spanel .section-desc {
  margin: -12px 0 4px;
}

.collapsed {
  display: none !important;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

.segmented button {
  display: grid;
  gap: 1px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  text-align: center;
  transition:
    background 0.3s var(--ease),
    color 0.3s,
    box-shadow 0.3s;
}

.segmented button b {
  font-size: 14px;
}

.segmented button span {
  font-size: 11.5px;
  color: var(--muted);
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.on {
  background: linear-gradient(180deg, rgba(232, 116, 74, 0.28), rgba(185, 71, 31, 0.22));
  color: #fff4ee;
  box-shadow: inset 0 0 0 1px rgba(255, 150, 100, 0.4);
}

.segmented button.on span {
  color: #f3c7b3;
}

.plist {
  display: grid;
  gap: 6px;
}

.prow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition:
    opacity 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.prow.off {
  opacity: 0.55;
}

.prow:not(.off) {
  border-color: rgba(224, 102, 58, 0.22);
}

.prank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ember-2);
  text-align: center;
}

.prow.off .prank {
  color: var(--muted);
}

.ptxt {
  display: grid;
  min-width: 0;
}

.ptxt b {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ptxt > span {
  font-size: 12.5px;
  color: var(--muted);
}

.ptag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.parrows {
  display: flex;
  gap: 4px;
}

.plist-empty {
  padding: 4px 2px;
}

.session-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.session-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  min-width: 0;
}

.session-row .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.key-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.key-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.key-head b {
  font-size: 15px;
}

.key-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}

.key-status .link-more {
  margin-left: auto;
  font-size: 12.5px;
}

.key-input {
  display: flex;
  gap: 8px;
}

.key-input .input {
  flex: 1;
  min-width: 0;
}

.key-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.key-actions:empty {
  display: none;
}

.key-models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.field.compact {
  gap: 4px;
}

.field.compact .label {
  font-size: 12px;
}

.input.sm {
  padding: 8px 10px;
  font-size: 13px;
}

.input.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--info-bg);
  border: 1px solid rgba(143, 178, 217, 0.22);
  color: var(--text-2);
  font-size: 13px;
}

.note svg {
  width: 18px;
  height: 18px;
  color: var(--info);
  flex: none;
  margin-top: 1px;
}

.savebar .dot {
  flex: none;
}

/* ---------- responsive for the refresh ---------- */

@media (max-width: 820px) {
  .nav {
    grid-template-columns: repeat(6, 1fr);
  }
  .nav-label {
    display: none;
  }
  .nav-short {
    display: inline;
  }
  .nav a {
    font-size: 10px;
  }
  .subtitle {
    display: none;
  }
  .topbar > .pill {
    display: none;
  }
  .mobile-top .spacer {
    flex: 1;
  }
  .mobile-top .pill {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .main.fill {
    height: calc(100vh - 70px);
    padding-bottom: 12px;
  }
  .row2,
  .key-models {
    grid-template-columns: 1fr;
  }
  .segmented {
    grid-auto-flow: row;
  }
  .prow {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .prow .parrows {
    grid-column: 2;
    grid-row: 2;
  }
  .savebar {
    left: 12px;
  }
  .spanel {
    padding: 18px;
  }
  .logs-foot .muted {
    display: none;
  }
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
}

.key-head .hint {
  margin-top: 2px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .key-input {
    flex-direction: column;
  }
  .key-status .link-more {
    margin-left: 0;
    width: 100%;
  }
  .mobile-top > span:not(.pill) {
    font-size: 13px;
    line-height: 1.15;
    max-width: 120px;
  }
  .log-tools .log-search {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .mobile-top .pill {
    font-family: var(--font);
    letter-spacing: 0;
    flex: none;
  }
}

/* =================================================================================
   v3: modern overview, readable status list, sticky settings categories, mobile polish
   ================================================================================= */

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* Result tags: fixed height + line-height 1 so the caps sit dead centre. */
.tag {
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
}

/* ---------- Overview ---------- */

.ov {
  display: grid;
  gap: 18px;
}

.ov-hero {
  display: grid;
  gap: 20px;
  padding: 24px 26px 20px;
  overflow: hidden;
}

.ov-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 340px;
  height: 240px;
  background: url("/iron.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  transform: rotate(-8deg);
}

.ov-hero.is-live {
  border-color: rgba(224, 102, 58, 0.4);
  box-shadow: var(--shadow), 0 0 60px -20px var(--ember-glow);
}

.ov-hero.is-paused {
  border-color: rgba(226, 96, 90, 0.3);
}

.ov-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ov-hero-main {
  flex: 1;
  min-width: 0;
}

.ov .hero-phase {
  margin: 12px 0 6px;
}

.ov .hero-detail {
  margin: 0;
  max-width: 62ch;
}

.ov-hero-side {
  flex: none;
  width: 270px;
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.kv .k {
  color: var(--muted);
}

.kv .v {
  font-weight: 600;
  text-align: right;
}

.kv .v.bad {
  color: var(--bad);
}

.ov-timer-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-timer {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--ember-2);
  text-shadow: 0 0 24px var(--ember-glow);
  font-variant-numeric: tabular-nums;
}

.ov-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ov-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ov-tile {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}

.ov-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.ov-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-tile-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--iron-hi);
}

.ov-tile-icon svg {
  width: 16px;
  height: 16px;
}

.ov-tile-icon.ok {
  color: var(--ok);
}
.ov-tile-icon.bad {
  color: var(--bad);
}
.ov-tile-icon.live {
  color: var(--ember-2);
}

.ov-tile-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-tile-go {
  margin-left: auto;
  color: var(--muted);
  transition:
    transform 0.3s var(--ease),
    color 0.3s;
}

.ov-tile:hover .ov-tile-go {
  transform: translateX(3px);
  color: var(--ember-2);
}

.ov-tile-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ov-tile-value.bad {
  color: var(--bad);
}
.ov-tile-value.live {
  color: var(--ember-2);
}

.ov-tile-sub {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ov-poster,
.ov-voice {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ov-poster-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ov-poster-img {
  display: block;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--iron-lo);
  cursor: zoom-in;
}

.ov-poster-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ov-poster-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ov-poster-q {
  font-weight: 700;
  font-size: 16px;
}

.ov-poster-meta {
  font-size: 13px;
  color: var(--muted);
}

.ov-poster-digest {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ov-voice .voice-state {
  margin-bottom: 12px;
}

.ov-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 2px solid rgba(224, 102, 58, 0.55);
  border-radius: 0 9px 9px 0;
  background: rgba(224, 102, 58, 0.06);
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.45;
}

.ov-quote span {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

/* Fills whatever height the poster card next to it gives the row (at least 250px). */
.ov-feed {
  flex: 1 1 auto;
  height: 0;
  min-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 6px 4px 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px);
  mask-image: linear-gradient(180deg, transparent 0, #000 16px);
}

.ov-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  word-break: break-word;
}

.ov-line.fresh {
  animation: rise 0.45s var(--ease) backwards;
}

.ov-line-who {
  font-weight: 700;
  color: hsl(var(--h, 20) 55% 72%);
  margin-right: 6px;
}

.ov-line-at {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 6px;
}

.ov-feed-empty {
  margin: auto 0;
  padding: 18px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.ov-ev-list {
  display: grid;
  gap: 2px;
}

.ov-ev {
  display: grid;
  grid-template-columns: 10px 44px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  border-radius: 9px;
  font-size: 13.5px;
  transition: background 0.2s;
}

.ov-ev:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ov-ev.fresh {
  animation: logIn 1.4s ease backwards;
}

.ov-ev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iron);
}

.ov-ev.ok .ov-ev-dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(124, 196, 154, 0.6);
}
.ov-ev.bad .ov-ev-dot {
  background: var(--bad);
  box-shadow: 0 0 8px rgba(226, 96, 90, 0.6);
}
.ov-ev.live .ov-ev-dot {
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

.ov-ev-at {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.ov-ev-tag {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  background: hsla(var(--h, 20), 40%, 50%, 0.13);
  color: hsl(var(--h, 20) 45% 70%);
}

.ov-ev-msg {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-ev.bad .ov-ev-msg {
  color: #f0a29e;
}

/* ---------- Állapot (status list) ---------- */

.st {
  display: grid;
  gap: 18px;
}

.st-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
}

.st-groups {
  display: grid;
  gap: 18px;
}

.st-group {
  padding: 16px 14px 8px;
}

.st-group .card-title {
  margin: 2px 8px 8px;
}

.st-row + .st-row {
  border-top: 1px solid var(--line);
}

.st-line {
  display: grid;
  grid-template-columns: minmax(200px, 1.25fr) minmax(160px, 1.2fr) auto 96px 32px;
  align-items: center;
  gap: 18px;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.st-line:hover,
.st-row.open .st-line {
  background: rgba(255, 255, 255, 0.025);
}

.st-line:focus-visible {
  outline: 2px solid rgba(224, 102, 58, 0.5);
  outline-offset: -2px;
}

.st-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.st-name b {
  display: block;
  font-size: 14.5px;
}

.st-name span:not(.dot) {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-line .hb-bar {
  height: 24px;
}

.st-stats {
  display: flex;
  gap: 16px;
}

.st-stats > div {
  display: grid;
  min-width: 56px;
}

.st-stats small,
.st-detail small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-num {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.st-line .pill {
  justify-self: end;
}

.st-row[data-state="idle"] .st-line,
.st-row[data-state="none"] .st-line {
  opacity: 0.55;
}

.st-row[data-state="bad"] .st-name b {
  color: var(--bad);
}

.st-detail {
  display: none;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 6px 8px 16px 38px;
}

.st-row.open .st-detail {
  display: grid;
  animation: fadeIn 0.3s ease backwards;
}

.st-detail small {
  margin-bottom: 5px;
}

.st-detail code {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  word-break: break-word;
}

.st-detail-side {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}

.st-fails div {
  font-size: 12px;
  color: #f0a29e;
  margin-top: 3px;
}

.st-fails b {
  color: var(--text-2);
  font-weight: 600;
}

.st-detail .ok-text {
  color: var(--ok);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
}

/* ---------- Settings: sticky category chooser ---------- */

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 90px;
}

.stabs-wrap {
  position: sticky;
  top: 0;
  z-index: 6;
  min-width: 0;
  margin: -8px -6px 0;
  padding: 8px 6px 4px;
}

.stabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(22, 17, 17, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.stabs::-webkit-scrollbar {
  display: none;
}

.stabs button {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s;
}

.stabs button svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.stabs button:hover {
  color: var(--text);
}

.stabs button.on {
  color: #fff4ee;
}

.stabs button.on svg {
  color: var(--ember-2);
  opacity: 1;
}

.stabs-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  z-index: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(232, 116, 74, 0.3), rgba(185, 71, 31, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 150, 100, 0.38);
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease);
  pointer-events: none;
}

/* ---------- Logs ---------- */

.g-inline {
  display: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .ov-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-line {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    row-gap: 10px;
  }
  .st-line .hb-bar,
  .st-stats {
    grid-column: 1 / -1;
  }
  .st-line .hb-bar {
    order: 5;
  }
  .st-stats {
    order: 6;
  }
  .st-detail {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 8px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 820px) {
  /* iOS zooms into any focused field under 16px */
  input,
  select,
  textarea,
  .input,
  .input.sm,
  .input.mono {
    font-size: 16px;
  }

  .main {
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
  }
  .main.fill {
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px - env(safe-area-inset-bottom));
    padding-bottom: 12px;
  }
  .topbar {
    margin-bottom: 14px;
    min-height: 0;
  }
  .card {
    padding: 16px;
  }

  #toasts {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
  }

  /* overview */
  .ov {
    gap: 14px;
  }
  .ov-hero {
    padding: 18px 16px 16px;
    gap: 16px;
  }
  .ov-hero-top {
    flex-direction: column;
    gap: 14px;
  }
  .ov-hero-side {
    width: 100%;
  }
  .ov-timer {
    font-size: 34px;
  }
  .ov-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
  }
  .ov-actions .btn {
    padding: 10px 8px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .ov-actions .btn:first-child {
    grid-column: 1 / -1;
  }
  .ov-tiles {
    gap: 10px;
  }
  .ov-tile {
    padding: 13px 14px;
  }
  .ov-tile-value {
    font-size: 22px;
    margin-top: 6px;
  }
  .ov-tile-go {
    display: none;
  }
  .ov-poster-body {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }
  .ov-poster-digest {
    -webkit-line-clamp: 4;
    font-size: 13px;
  }
  .ov-feed {
    flex: none;
    height: 260px;
    min-height: 0;
  }
  .ov-quote {
    display: none;
  }
  .ov-ev {
    grid-template-columns: 8px 40px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 4px;
    font-size: 13px;
  }
  .ov-ev-tag {
    display: none;
  }
  .ov-ev-msg {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* status */
  .st-summary {
    padding: 16px;
  }
  .st-summary .btn {
    width: 100%;
  }
  .st-summary .spacer {
    display: none;
  }
  .sum-txt {
    flex: 1 1 0;
    min-width: 0;
  }
  .sum-orb {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .sum-title {
    font-size: 18px;
  }
  .st-group {
    padding: 12px 8px 6px;
  }
  .st-line {
    padding: 10px 6px;
    gap: 10px;
  }
  .st-stats {
    gap: 12px;
  }
  .st-stats > div {
    min-width: 0;
  }

  /* settings */
  .stabs-wrap {
    margin: -8px -14px 0;
    padding: 8px 14px 4px;
  }
  .stabs button {
    flex: none;
    padding: 9px 12px;
  }
  .fill-card .card-head .muted {
    display: none;
  }
  .settings-layout {
    padding-bottom: 120px;
  }

  /* logs */
  .logs-card {
    padding: 12px;
  }
  .log-tools {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .log-tools .lbl,
  .log-tools .spacer,
  .log-count {
    display: none;
  }
  .log-tools .chip,
  .log-tools .btn {
    flex: none;
    height: 42px;
    padding: 0 12px;
  }
  .chips-wrap {
    margin: 0 -12px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 12px;
    margin-bottom: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: none;
    padding: 5px 10px;
  }
  .logs {
    font-size: 12px;
    padding: 4px 0;
  }
  .log {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 3px 10px 3px 8px;
    border-left: 2px solid hsla(var(--h, 20), 45%, 60%, 0.45);
  }
  .log.error {
    border-left-color: var(--bad);
  }
  .log .t {
    font-size: 11px;
    padding-top: 1px;
  }
  .g-inline {
    display: inline;
    margin-right: 6px;
    font-weight: 700;
    color: hsl(var(--h, 20) 45% 68%);
  }
  .log-day {
    padding: 8px 10px 2px;
  }
  .logs-foot {
    margin-top: 10px;
  }

  /* voice page */
  .fill-col {
    gap: 12px;
  }
  .transcript {
    min-height: 0;
  }
  .bubble {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 13px;
  }

  /* modal as a bottom sheet */
  .modal-back {
    padding: 0;
    align-items: end;
  }
  .modal,
  .modal.narrow {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheetIn 0.4s var(--ease) backwards;
  }
  .modal-back.closing .modal {
    animation: sheetOut 0.22s ease both;
  }
  .modal-body {
    padding: 14px;
  }
}

@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
}

@keyframes sheetOut {
  to {
    transform: translateY(100%);
  }
}

/* =================================================================================
   Posters: uncropped media, filters, gallery, viewer
   ================================================================================= */

/* Whole image, letterboxed over a blurred copy of itself - never cropped, whatever the ratio. */
.pm {
  position: relative;
  overflow: hidden;
  background: #120e0e;
}

.pm-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2) brightness(0.55);
  opacity: 0;
  transition: opacity 0.5s;
}

.pm-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease);
}

.pm.loaded .pm-bg {
  opacity: 1;
}

.pm.loaded .pm-img {
  opacity: 1;
}

.ov-poster-img .pm {
  width: 100%;
  height: 100%;
}

.ov-poster-img {
  aspect-ratio: 4 / 3;
}

.ov-poster-body {
  grid-template-columns: 280px minmax(0, 1fr);
}

.ov-poster-img:hover .pm-img {
  transform: scale(1.03);
}

.icon-btn.lg {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  text-decoration: none;
}

.icon-btn.lg svg {
  width: 18px;
  height: 18px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ember-2);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.ok-text {
  color: var(--ok);
}

.bad-text {
  color: var(--bad);
}

/* ---------- filter bar ---------- */

.posters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.pf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  /* above the gallery, so the calendar popover isn't painted under the cards */
  z-index: 5;
}

.pf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-search {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
  display: block;
}

.pf-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.pf-search .input {
  padding-left: 40px;
}

.pf-more-btn {
  display: none;
}

.pf-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.pf-chip span {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
}

.pf-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.pf-chip.on {
  color: #fff4ee;
  border-color: rgba(255, 150, 100, 0.45);
  background: linear-gradient(180deg, rgba(232, 116, 74, 0.28), rgba(185, 71, 31, 0.2));
}

.pf-chip.win.on {
  border-color: rgba(124, 196, 154, 0.45);
  background: var(--ok-bg);
  color: var(--ok);
}

.pf-chip.loss.on {
  border-color: rgba(226, 96, 90, 0.45);
  background: var(--bad-bg);
  color: var(--bad);
}

.pf-more {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.pf-more select.input {
  width: auto;
  min-width: 170px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.pf-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.pf-summary b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pf-summary b.ok-text {
  color: var(--ok);
}

.pf-summary b.bad-text {
  color: var(--bad);
}

.pf-summary .link-btn {
  margin-left: auto;
}

/* ---------- gallery ---------- */

.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.pg.swap {
  animation: fadeIn 0.3s ease backwards;
}

.pg-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
}

.pc {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.35s;
}

.pc:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

.pc-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: zoom-in;
}

.pc-media .pm {
  position: absolute;
  inset: 0;
}

.pc:hover .pm-img {
  transform: scale(1.03);
}

.pc-media > .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.pc-media > .tag.win {
  background: rgba(38, 72, 52, 0.85);
}

.pc-media > .tag.loss {
  background: rgba(86, 30, 28, 0.85);
}

.pc-media > .tag.unknown {
  background: rgba(40, 32, 31, 0.85);
}

.pc-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(10, 8, 8, 0.7);
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease);
}

.pc-zoom svg {
  width: 17px;
  height: 17px;
}

.pc:hover .pc-zoom,
.pc-media:focus-visible .pc-zoom {
  opacity: 1;
  transform: none;
}

.pc-body {
  display: grid;
  gap: 6px;
  padding: 13px 15px 15px;
  cursor: pointer;
  flex: 1;
  align-content: start;
}

.pc-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pc-title b {
  font-size: 15px;
}

.pc-date {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.pc-champs {
  font-size: 13px;
  color: var(--text-2);
}

.pc-gist {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- viewer ---------- */

.modal.wide {
  width: min(1320px, 100%);
}

.modal-head .pv-count {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pv {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.pv-stage-wrap {
  position: relative;
  position: sticky;
  top: 0;
}

.pv-stage {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  touch-action: pan-y;
}

.pv-media {
  width: 100%;
  height: min(72vh, 760px);
  animation: pvIn 0.35s var(--ease) backwards;
}

@keyframes pvIn {
  from {
    opacity: 0.2;
    transform: translateX(var(--from, 0));
  }
}

.pv-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 64px;
  margin-top: -32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(10, 8, 8, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    background 0.2s;
}

.pv-nav:hover:not([disabled]) {
  opacity: 1;
  background: rgba(224, 102, 58, 0.35);
}

.pv-nav[disabled] {
  opacity: 0.2;
  cursor: default;
}

.pv-nav[hidden] {
  display: none;
}

.pv-nav.prev {
  left: 12px;
}

.pv-nav.next {
  right: 12px;
}

.pv-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pv-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fact {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  min-width: 0;
}

.fact .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact .v {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-gist {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.pv-quotes {
  display: grid;
  gap: 8px;
}

.pv-side .pre {
  max-height: 34vh;
}

@media (max-width: 1100px) {
  .pv {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv-stage-wrap {
    position: relative;
  }
  .pv-media {
    height: min(62vh, 640px);
  }
  .pf-more {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .pf {
    padding: 12px;
    gap: 10px;
  }
  .pf-row {
    flex-wrap: nowrap;
  }
  .pf-search {
    flex: 1 1 auto;
  }
  .pf-more-btn {
    display: inline-flex;
    flex: none;
    height: 44px;
    padding: 0 12px;
  }
  .pf-row2 {
    flex-direction: column;
    align-items: stretch;
  }
  .pf-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  }
  .pf-chip {
    justify-content: center;
    height: 38px;
    padding: 0 8px;
  }
  .modal-head h2 {
    font-size: 16px;
    line-height: 1.25;
  }
  .pf-more {
    display: none;
    flex-direction: column;
  }
  .pf.open .pf-more {
    display: flex;
    animation: fadeIn 0.25s ease backwards;
  }
  .pf-more select.input {
    width: 100%;
  }
  .pf-summary {
    font-size: 13px;
    gap: 4px 12px;
  }
  .ov-poster-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal-head .pv-count {
    margin-left: auto;
  }
  .pv-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .pv-nav {
    width: 38px;
    height: 52px;
    margin-top: -26px;
    font-size: 26px;
  }
  .pv-nav.prev {
    left: 8px;
  }
  .pv-nav.next {
    right: 8px;
  }
  .pv-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* =================================================================================
   Live game panel (Riot spectator)
   ================================================================================= */

.dd:not([src]) {
  visibility: hidden;
}

.ov-live[hidden] {
  display: none;
}

.lv-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.lv-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.lv-team {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.lv-team.blue {
  border-top: 2px solid rgba(96, 150, 230, 0.6);
}

.lv-team.red {
  border-top: 2px solid rgba(226, 96, 90, 0.6);
}

.lv-team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 8px;
  min-height: 32px;
}

.lv-side {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lv-team.blue .lv-side {
  color: #8fb2e6;
}

.lv-team.red .lv-side {
  color: #ef8a84;
}

.lv-ours {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  line-height: 1;
  border-radius: 6px;
  background: rgba(224, 102, 58, 0.14);
  color: var(--ember-2);
}

.lv-bans {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lv-bans > span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}

.lv-ban {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  filter: grayscale(1) brightness(0.7);
  border: 1px solid var(--line);
}

.lv-player {
  display: grid;
  grid-template-columns: 40px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s;
}

.lv-player:hover {
  background: rgba(255, 255, 255, 0.025);
}

.lv-player.ours {
  background: rgba(224, 102, 58, 0.08);
  border-color: rgba(224, 102, 58, 0.3);
}

.lv-champ-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: block;
}

.lv-champ {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--iron-lo);
}

.lv-kit {
  display: flex;
  gap: 4px;
}

.lv-spells,
.lv-runes {
  display: grid;
  gap: 2px;
}

.lv-spell {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  display: block;
  background: var(--iron-lo);
}

.lv-runes {
  justify-items: center;
}

.lv-keystone {
  width: 22px;
  height: 22px;
  display: block;
}

.lv-substyle {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.8;
}

.lv-who {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.lv-who b {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-who b span {
  font-weight: 500;
  color: var(--muted);
  margin-left: 1px;
}

.lv-who > span em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(224, 102, 58, 0.2);
  color: var(--ember-2);
  vertical-align: 1px;
}

.lv-who > span {
  font-size: 12px;
  color: var(--muted);
}

.lv-rank {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.lv-rank small {
  font-weight: 500;
  opacity: 0.8;
  font-size: 11px;
}

.lv-rank.loading,
.lv-rank.unranked {
  color: var(--muted);
  font-weight: 500;
}

.lv-rank.t-iron { color: #b0a39f; background: rgba(125, 106, 100, 0.2); }
.lv-rank.t-bronze { color: #d49a78; background: rgba(160, 103, 75, 0.18); }
.lv-rank.t-silver { color: #c4ccd3; background: rgba(154, 164, 173, 0.16); }
.lv-rank.t-gold { color: #e8c268; background: rgba(212, 166, 74, 0.16); }
.lv-rank.t-platinum { color: #6fd0c4; background: rgba(79, 179, 169, 0.16); }
.lv-rank.t-emerald { color: #5fd08d; background: rgba(63, 174, 110, 0.16); }
.lv-rank.t-diamond { color: #9bb3f4; background: rgba(111, 143, 232, 0.18); }
.lv-rank.t-master { color: #cf9af0; background: rgba(179, 110, 224, 0.18); }
.lv-rank.t-grandmaster { color: #f08a8a; background: rgba(224, 90, 90, 0.18); }
.lv-rank.t-challenger { color: #f6d77e; background: rgba(240, 199, 94, 0.2); }

.lv-note {
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .lv-teams {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .lv-team {
    padding: 8px 6px;
  }
  .lv-player {
    grid-template-columns: 36px auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 5px 6px;
  }
  .lv-champ,
  .lv-champ-img {
    width: 36px;
    height: 36px;
  }
  .lv-spell {
    width: 17px;
    height: 17px;
  }
  .lv-keystone {
    width: 20px;
    height: 20px;
  }
  .lv-rank small {
    display: none;
  }
  .ov-live .card-head {
    flex-wrap: wrap;
  }
  .lv-hint {
    width: 100%;
  }
}

/* =================================================================================
   Posters v2: view toggle, list view, calendar
   ================================================================================= */

.pf-view {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.pf-view button {
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

.pf-view button svg {
  width: 17px;
  height: 17px;
}

.pf-view button:hover {
  color: var(--text);
}

.pf-view button.on {
  background: var(--surface-hover);
  color: var(--ember-2);
}

/* ---------- calendar ---------- */

.pf-cal {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
}

.pf-cal-btn {
  height: 44px;
}

.pf-cal.active .pf-cal-btn {
  border-color: rgba(255, 150, 100, 0.45);
  color: #fff4ee;
  background: linear-gradient(180deg, rgba(232, 116, 74, 0.26), rgba(185, 71, 31, 0.18));
  padding-right: 34px;
}

.pf-cal-x {
  display: none;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff4ee;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pf-cal.active .pf-cal-x {
  display: grid;
  place-items: center;
}

.pcal {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 330px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95);
}

.pf-cal.open .pcal {
  display: grid;
  gap: 10px;
  animation: pop 0.25s var(--ease) backwards;
}

.pcal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pcal-head b {
  font-size: 15px;
}

.pcal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.pcal-wd {
  padding-bottom: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.pcal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s;
}

.pcal-day[disabled] {
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

.pcal-day.has {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 700;
}

.pcal-day:not([disabled]):hover {
  background: rgba(255, 255, 255, 0.1);
}

.pcal-day.sel,
.pcal-day.sel:not([disabled]):hover {
  background: rgba(224, 102, 58, 0.24);
  color: #fff;
}

.pcal-day.edge,
.pcal-day.edge:not([disabled]):hover {
  background: linear-gradient(180deg, #e8744a, #b9471f);
  color: #fff;
}

.pcal-day.today .n {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pcal-day .dots {
  display: flex;
  gap: 2px;
  height: 5px;
}

.pcal-day .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dots .w {
  background: var(--ok);
}
.dots .l {
  background: var(--bad);
}
.dots .u {
  background: var(--iron-hi);
}

.pcal-day.edge .dots i {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.pcal-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.pcal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pcal-preset {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.pcal-preset:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.pcal-preset.on {
  border-color: rgba(255, 150, 100, 0.45);
  color: var(--ember-2);
}

.pcal-preset.clear {
  margin-left: auto;
  color: var(--ember-2);
}

.pf-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(224, 102, 58, 0.12);
  color: var(--ember-2);
  font-weight: 600;
}

.pf-date-chip svg {
  width: 14px;
  height: 14px;
}

/* ---------- list view ---------- */

.pc-open {
  display: none;
}

.pg.list {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.pg.list .pc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
}

.pg.list .pc:hover {
  transform: translateX(3px);
}

.pg.list .pc-media {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  height: 100%;
  aspect-ratio: 4 / 3;
}

.pg.list .pc-body {
  padding: 12px 18px;
}

.pg.list .pc-title {
  justify-content: flex-start;
}

.pg.list .pc-date {
  margin-left: 12px;
}

.pg.list .pc-open {
  display: inline-flex;
  margin-right: 16px;
}

@media (max-width: 820px) {
  .pf-cal-btn span,
  .pf-more-btn span {
    display: none;
  }
  .pf-cal-btn,
  .pf-more-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .pf-cal.active .pf-cal-btn {
    padding-right: 0;
  }
  .pf-view button {
    width: 34px;
  }
  /* The calendar drops down across the whole filter card, right under the search row. (The
     card's backdrop-filter makes it the containing block even for position: fixed, so it is
     anchored to the card on purpose.) */
  .pf-cal {
    position: static;
  }
  .pf-cal-x {
    display: none !important;
  }
  .pcal {
    top: 66px;
    left: 8px;
    right: 8px;
    width: auto;
    z-index: 40;
  }
  .pg.list .pc {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .pg.list .pc-open {
    display: none;
  }
  .pg.list .pc-body {
    padding: 10px 12px;
    gap: 4px;
  }
  .pg.list .pc-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .pg.list .pc-date {
    margin-left: 0;
    font-size: 12px;
  }
  .pg.list .pc-gist {
    display: none;
  }
  .pc-media > .tag {
    top: 7px;
    left: 7px;
    height: 20px;
    font-size: 10.5px;
    padding: 0 6px;
  }
  .pc-zoom {
    display: none;
  }
  /* grid on a phone: two compact columns */
  .pg.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pg.grid .pc-body {
    padding: 9px 10px 11px;
    gap: 3px;
  }
  .pg.grid .pc-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .pg.grid .pc-title b {
    font-size: 13.5px;
  }
  .pg.grid .pc-date {
    margin-left: 0;
    font-size: 11.5px;
  }
  .pg.grid .pc-champs {
    font-size: 12px;
  }
  .pg.grid .pc-gist,
  .pg.grid .pc-foot {
    display: none;
  }
}

/* =================================================================================
   Tablet: the sidebar becomes an icon rail (821-1180px) so the content keeps its room
   ================================================================================= */

@media (min-width: 821px) and (max-width: 1180px) {
  :root {
    --sidebar: 84px;
  }
  .sidebar {
    padding: 16px 10px 14px;
  }
  .brand {
    padding: 0 0 16px;
  }
  .brand img {
    width: 54px;
  }
  .brand-title,
  .brand-title2,
  .brand-sub,
  .nav-label,
  .nav-short,
  .quip,
  .conn span:not(.dot),
  .who-txt {
    display: none;
  }
  .nav a {
    justify-content: center;
    padding: 12px 0;
  }
  .nav a svg {
    width: 21px;
    height: 21px;
  }
  .nav-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    margin: 0;
  }
  .conn {
    justify-content: center;
    padding: 10px 0;
  }
  .who {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
  }
  .main {
    padding: 22px 24px 60px;
  }
}

/* The "Most" card puts its side panel under the text when the card itself gets narrow. */
.ov-hero {
  container-type: inline-size;
}

@container (max-width: 700px) {
  .ov-hero-top {
    flex-direction: column;
  }
  .ov-hero-side {
    width: 100%;
  }
}

.champ b,
.champ small {
  white-space: nowrap;
}

/* Logs search now uses the same icon field as the posters page. */
.log-tools .log-search {
  flex: 0 1 360px;
  min-width: 160px;
  max-width: none;
  padding: 0;
}

.log-tools .log-search .input {
  padding-top: 9px;
  padding-bottom: 9px;
}

@media (max-width: 820px) {
  .log-tools .log-search {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Soft edge on the side(s) the settings category bar can still scroll to (any width). */
.stabs.fade-r {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}

.stabs.fade-l {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px);
  mask-image: linear-gradient(90deg, transparent, #000 36px);
}

.stabs.fade-l.fade-r {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
