:root {
  --live-surface: #fffaf2;
  --live-surface-strong: #ffffff;
  --live-border: rgba(15, 76, 92, 0.18);
  --live-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  --live-accent: #0f4c5c;
  --live-accent-strong: #0b3642;
  --live-warm: #f2b84b;
  --live-success: #0f766e;
}

.live-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  display: grid;
  gap: 16px;
}

.live-hero {
  background:
    radial-gradient(circle at 94% 8%, rgba(15, 76, 92, 0.14), transparent 42%),
    radial-gradient(circle at 8% 4%, rgba(242, 184, 75, 0.2), transparent 42%),
    linear-gradient(135deg, #fff4e3 0%, #f8f0df 52%, #fffaf2 100%);
  border: 1px solid var(--live-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--live-shadow);
  display: flex;
  gap: 18px;
  align-items: center;
}

.live-brand {
  flex: 0 0 auto;
}

.live-brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: block;
}

.live-copy {
  min-width: 0;
}

.live-copy h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2rem);
  letter-spacing: -0.01em;
}

.live-copy p {
  margin: 0;
  color: var(--muted);
}

.live-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--live-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  color: var(--live-accent);
  background: rgba(15, 76, 92, 0.09);
}

.live-pill.ok {
  color: var(--live-success);
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.12);
}

.live-pill.warn {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.25);
  background: rgba(146, 64, 14, 0.14);
}

.live-controls {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--live-shadow);
  display: grid;
  gap: 14px;
}

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

.live-stat {
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: var(--live-surface-strong);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.live-stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-stat strong {
  font-size: 1.1rem;
  color: var(--live-accent-strong);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.6fr) minmax(170px, 1fr) auto;
  align-items: end;
}

.live-field {
  display: grid;
  gap: 6px;
}

.live-field span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-field input,
.live-field select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 92, 0.2);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-family: var(--font-body);
}

.live-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.live-btn {
  height: 40px;
  border: 1px solid rgba(15, 76, 92, 0.24);
  border-radius: 10px;
  background: rgba(15, 76, 92, 0.1);
  color: var(--live-accent);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 12px;
  cursor: pointer;
}

.live-btn.live-btn-warn {
  background: rgba(146, 64, 14, 0.12);
  border-color: rgba(146, 64, 14, 0.24);
  color: #92400e;
}

.live-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-check input {
  width: 16px;
  height: 16px;
}

.live-list-wrap {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--live-shadow);
}

.live-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.live-list-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.live-list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 4px;
}

.live-item {
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-left: 4px solid rgba(15, 76, 92, 0.5);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 7px;
  position: relative;
}

.live-item.new {
  border-left-color: #0f766e;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0)),
    #fff;
  animation: liveFlash 1.6s ease-out 1;
}

@keyframes liveFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(15, 118, 110, 0);
  }
}

.live-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.live-source {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 92, 0.2);
  background: rgba(15, 76, 92, 0.07);
  color: var(--live-accent-strong);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 10px;
  max-width: min(100%, 46ch);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-age {
  color: var(--muted);
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.live-item-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.live-item-title a {
  color: #0f1b21;
  text-decoration: none;
}

.live-item-title a:hover {
  color: var(--live-accent);
  text-decoration: underline;
}

.live-item-meta {
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.live-dot {
  color: rgba(15, 76, 92, 0.42);
}

@media (max-width: 920px) {
  .live-stats {
    grid-template-columns: 1fr;
  }

  .live-toolbar {
    grid-template-columns: 1fr;
  }

  .live-actions {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .live-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
