* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #111827;
  border-bottom: 1px solid #334155;
}
header h1 { margin: 0; font-size: 20px; }
nav a {
  color: #93c5fd;
  text-decoration: none;
  margin-left: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  padding: 16px;
}
.card {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
}
.full { grid-column: 1 / -1; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}
.stats div {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
}
.stats span { display: block; color: #94a3b8; font-size: 12px; }
.stats strong { font-size: 24px; }
.preview-wrap {
  position: relative;
  display: inline-block;
  border: 1px solid #334155;
}
#stream {
  max-width: 100%;
  display: block;
}
#lineEditor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
button:hover { background: #1d4ed8; }
.hint { color: #94a3b8; font-size: 13px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
input, select {
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid #334155;
  padding: 8px 10px;
  text-align: left;
}
.table th {
  color: #93c5fd;
  font-weight: 600;
}

.signage {
  background: #020617;
  color: #e2e8f0;
}
.signage-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}
.signage-title {
  letter-spacing: 0.2em;
  color: #93c5fd;
  font-size: 20px;
}
.signage-number {
  font-size: clamp(72px, 20vw, 220px);
  font-weight: 800;
  line-height: 1;
}
.signage-sub {
  display: flex;
  gap: 24px;
  font-size: 20px;
}
.signage-clock {
  font-size: 28px;
  color: #cbd5e1;
}
.signage-log {
  width: min(900px, 100%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
}
.signage-log ul {
  margin: 0;
  padding-left: 18px;
}
.signage-log li {
  margin: 6px 0;
}
