:root {
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #1c1c28;
  --surface-3: #24242f;
  --border: #262633;
  --text: #f4f4f7;
  --text-muted: #9494a6;
  --blue: #4f8fff;
  --violet: #a855f7;
  --gradient: linear-gradient(135deg, var(--blue), var(--violet));
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 32px;
}

h1, h2, h3, .brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 8px;
}

.topbar .brand {
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-header {
  padding: 16px;
}

.page-header h1 {
  font-size: 22px;
}

.page-header p {
  margin-top: 4px;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 16px 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.card:active {
  background: var(--surface-2);
  transform: scale(0.98);
}

.card.disabled {
  opacity: 0.5;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.card-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 16px;
}

.row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-title {
  font-size: 15px;
  font-weight: 600;
}

.row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-draft { background: rgba(148, 148, 166, 0.18); color: var(--text-muted); }
.badge-ready, .badge-scheduled { background: rgba(79, 143, 255, 0.16); color: var(--blue); }
.badge-completed { background: rgba(34, 197, 94, 0.16); color: var(--success); }
.badge-cancelled { background: rgba(239, 68, 68, 0.16); color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block {
  width: 100%;
}

.fab-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .glyph {
  font-size: 34px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.status-line {
  padding: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  height: 64px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.error-box {
  margin: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 14px;
}
