:root {
  --bg: #0f0f0f;
  --card: #1a1a2e;
  --card2: #21213a;
  --text: #e8e8e8;
  --muted: #8f8f8f;
  --accent: #e040fb;
  --accent2: #7c4dff;
  --ok: #4caf50;
  --line: #2c2c44;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(15,15,15,.94); backdrop-filter: blur(8px); z-index: 5;
}
.brand { font-size: 18px; color: var(--text); letter-spacing: .5px; }
.brand span { color: var(--accent); margin-left: 4px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
nav a { color: var(--muted); }
nav a.on { color: var(--text); }
.logout { margin-left: auto; }
main { max-width: 1000px; margin: 0 auto; padding: 22px; }
footer { color: #4a4a5a; text-align: center; font-size: 12px; padding: 26px; }
h1 { font-size: 26px; margin: 0 0 6px; font-weight: 500; }
h2 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.card {
  background: var(--card); border-radius: 14px; padding: 20px 22px;
  margin-bottom: 16px; border: 1px solid var(--line);
}
.card.narrow { max-width: 460px; margin: 40px auto; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  main { padding: 14px; }
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { background: #3a1520; color: #ff9db0; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.flash { background: #14301c; color: #a8e6b8; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.banner { background: #332a12; color: #ffd98a; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); border: 1px solid #4a2456; padding: 3px 9px; border-radius: 999px;
}
.tag.evening { color: var(--accent2); border-color: #35306a; }
.truth { font-size: 19px; line-height: 1.55; color: #f0f0f0; margin: 10px 0; }
.truth.small { font-size: 16px; }
.practice {
  background: var(--card2); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; color: #dedede; margin-top: 12px;
}
.reply {
  background: var(--card2); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 12px 14px; margin-top: 14px; white-space: pre-wrap; font-size: 15px;
}
.reply-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.slot-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea, button {
  font: inherit; color: var(--text); background: #12121f;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent); }
textarea { resize: vertical; }
button, .button {
  cursor: pointer; background: #262643; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 9px; color: var(--text);
  display: inline-block; font-size: 15px;
}
button:hover, .button:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .primary {
  background: linear-gradient(135deg, #7b1fa2, #c2185b); border: none; color: #fff;
}
button.link { background: none; border: none; color: var(--accent); padding: 0; }
button.link:hover { text-decoration: underline; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.space { justify-content: space-between; }
.right { text-align: right; }
.ok { color: var(--ok); font-size: 12px; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 8px; }
table.list td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
table.list tr.off td { opacity: .45; }
td.pos { color: #555; width: 34px; font-size: 13px; }
.progress-list { display: flex; flex-direction: column; gap: 12px; }
.progress-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.bar { height: 6px; background: #262640; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.stat { text-align: center; }
.stat-num { font-size: 34px; color: #fff; }
.entry-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
