:root {
  --bg: #0b0f1a;
  --panel: #0f1626;
  --text: #e6f0ff;
  --muted: #93a3b8;
  --accent1: #6b9dff;
  --accent2: #9f6bff;
  --accent3: #19e3ff;
  --ok: #36f2b9;
  --bad: #ff6b8a;
  --glow: 0 0 24px rgba(105, 145, 255, 0.35), 0 0 54px rgba(25, 227, 255, 0.25);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter,
    Arial, Noto Sans, Helvetica, Apple Color Emoji, Segoe UI Emoji;
  background: radial-gradient(
      1200px 600px at 20% 0%,
      rgba(159, 107, 255, 0.25),
      transparent 40%
    ),
    radial-gradient(
      1000px 700px at 80% 0%,
      rgba(105, 157, 255, 0.25),
      transparent 50%
    ),
    linear-gradient(180deg, #0b0f1a 0%, #0a0e18 100%);
  color: var(--text);
}

.app-shell {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}
.header {
  margin-bottom: 16px;
  text-align: center;
}
.title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 32px;
  text-shadow: 0 0 8px rgba(105, 157, 255, 0.6),
    0 0 18px rgba(25, 227, 255, 0.5);
}
.title .by {
  font-weight: 500;
  opacity: 0.85;
}
.tagline {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  position: relative;
}
.glow {
  box-shadow: var(--glow);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field.small {
  margin-left: auto;
}
label {
  color: var(--muted);
  font-size: 14px;
}
input,
select,
button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
input[type="range"] {
  width: 200px;
}
.sep {
  opacity: 0.8;
}

.btn {
  background: linear-gradient(
    90deg,
    rgba(159, 107, 255, 0.25),
    rgba(25, 227, 255, 0.2)
  );
  border: 1px solid rgba(159, 107, 255, 0.4);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(159, 107, 255, 0.18);
}
.btn.subtle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.participants .person {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 110px auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.participants .person:last-child {
  border-bottom: none;
}
.person .remove {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  cursor: pointer;
}

.timeline .row {
  align-items: stretch;
}
.timeline .header-row {
  margin-bottom: 8px;
}
.col.name-col {
  width: 180px;
  font-weight: 600;
  opacity: 0.9;
}
.col.zone-col {
  width: 200px;
  color: var(--muted);
}
.col.grid-col {
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(
    30,
    1fr
  ); /* 30 blocks for 15 minute steps across 7.5 hours x 4 segments per hour */
  gap: 2px;
  width: 100%;
}
.grid .cell {
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
}
.grid .cell.label {
  height: auto;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 2px 0 6px;
  background: transparent;
}
.grid .cell.ok {
  background: linear-gradient(
    90deg,
    rgba(54, 242, 185, 0.25),
    rgba(25, 227, 255, 0.25)
  );
  box-shadow: 0 0 18px rgba(54, 242, 185, 0.35) inset;
}
.grid .cell.best {
  background: linear-gradient(
    90deg,
    rgba(159, 107, 255, 0.45),
    rgba(25, 227, 255, 0.45)
  );
  box-shadow: 0 0 20px rgba(159, 107, 255, 0.55) inset,
    0 0 18px rgba(25, 227, 255, 0.35);
}
.now-indicator {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: var(--accent3);
  box-shadow: 0 0 10px rgba(25, 227, 255, 0.8);
  transform: translateX(-1px);
}

.results h2 {
  margin: 0 0 12px 0;
}
.results ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.results li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
}
.results .copy {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}
.share-link {
  color: var(--accent1);
  text-decoration: none;
}
.share-link:hover {
  text-decoration: underline;
}
