.card {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.96), rgba(18, 25, 35, 0.96));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.app-header {
  padding: 10px 14px;
}

.app-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-nav-link {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(33, 50, 71, 0.35);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.app-nav-link:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.app-nav-link.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: #b7f7dd;
  background: rgba(49, 196, 141, 0.14);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #04120c;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.toolbar-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-select {
  width: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  font-size: 13px;
}

.status-chip.ok {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: #b7f7dd;
}

.status-chip.error {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
  color: #ffd5d9;
}

.status-chip.info {
  color: var(--muted);
}

.session-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(33, 50, 71, 0.6);
  border-radius: 14px;
  background: rgba(18, 25, 35, 0.75);
}

.session-card.live {
  border-color: rgba(49, 196, 141, 0.45);
}

.session-card.error {
  border-color: rgba(239, 107, 115, 0.45);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.session-title {
  font-size: 16px;
  font-weight: 700;
}

.session-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

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

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(33, 50, 71, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-visibility {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.4);
  color: var(--muted);
}

.badge-rec {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-rec-avail {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fbbf24;
}

.scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60dvh;
  overflow: auto;
}

.replay-entry {
  text-align: left;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0.5rem 0;
  min-height: 1.2em;
}
