:root {
  --bg: #fff6fb;
  --card: #ffffff;
  --line: #f3d3e3;
  --accent: #e4539f;
  --accent-soft: #ffe0f0;
  --text: #3d2440;
  --muted: #7b5f80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #ffdff1 0, transparent 30%),
              radial-gradient(circle at 90% 20%, #e6e0ff 0, transparent 25%),
              var(--bg);
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

nav a {
  margin-left: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(228, 83, 159, 0.08);
}

h1, h2, h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
}

button, .pill {
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.tiny-link {
  font-size: 13px;
  color: var(--accent);
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.day-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.flash {
  border-radius: 10px;
  padding: 10px;
}

.flash.error {
  background: #ffe7ee;
  color: #9e2156;
}

.flash.success {
  background: #e8fff2;
  color: #0d7a45;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.week-days div {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.calendar-cell {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.calendar-cell.empty {
  background: #fff8fc;
}

.day-number {
  display: block;
  font-weight: 700;
}

.log-pill {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent-soft);
  color: #8f2a67;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.danger {
  background: #f55386;
}

.login-card {
  max-width: 460px;
  margin: 6vh auto 0;
}
