:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181b21;
  --panel-2: #20242c;
  --text: #f4f1ea;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #78d6b7;
  --accent-2: #f3c969;
  --danger: #ff8c8c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% -10%, rgba(120, 214, 183, 0.22), transparent 34%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 14px 30px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px 18px;
}

.eyebrow, .muted, .hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

h1, h2 {
  margin: 4px 0 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 { font-size: 30px; }
h2 { font-size: 19px; }

.status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--accent);
  font-size: 13px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(24, 27, 33, 0.88));
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
}

.user-panel, .panel-head, .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head { margin-bottom: 12px; }
.actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--accent);
  color: #07110d;
  font-weight: 700;
  font-size: 14px;
}

button.ghost, .seg {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 6px;
}

.seg {
  min-height: 36px;
  padding: 0 10px;
}

.seg.active {
  background: var(--accent-2);
  color: #17120a;
}

textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0f12;
  color: var(--text);
  padding: 12px;
  resize: vertical;
  outline: none;
}

.list { margin-top: 12px; }
.empty { color: var(--muted); }

.item {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.item:first-child { border-top: 0; }
.time { color: var(--accent-2); font-weight: 700; }
.place { color: var(--muted); margin-top: 4px; font-size: 13px; }

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #222731;
  color: var(--text);
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.toast.show { display: block; }
.danger { color: var(--danger); }
