:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --line: #2a2e37;
  --text: #e6e8ec;
  --muted: #9aa0ab;
  --accent: #4f8cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: .3px; }
.nav { display: flex; gap: 16px; margin-left: 24px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.logout button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}

main { padding: 24px; max-width: 1100px; margin: 0 auto; }

h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 28px 0 10px; color: var(--muted); }
.count {
  font-size: 13px; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; margin-left: 6px;
}

.filters { display: flex; gap: 10px; margin-bottom: 18px; align-items: center; }
.filters select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 8px;
}
.filters .clear { color: var(--accent); text-decoration: none; font-size: 13px; }

table.sessions { width: 100%; border-collapse: collapse; }
table.sessions th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.sessions td { padding: 12px; border-bottom: 1px solid var(--line); }
table.sessions tbody tr { cursor: pointer; }
table.sessions tbody tr:hover { background: var(--panel); }
td.notes { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.back { color: var(--accent); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 10px; }

dl.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 8px; }
dl.meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
dl.meta dd { margin: 2px 0 0; }

.actions { display: flex; gap: 10px; margin: 16px 0 4px; }
.btn {
  background: var(--accent); color: #fff; border: none; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px;
}

canvas { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }

.login { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px; width: 300px; text-align: center; }
.login h1 { margin: 0 0 18px; }
.login input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); margin-bottom: 12px; }
.login button { width: 100%; padding: 10px; border-radius: 8px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
.login .error { color: #ff6b6b; font-size: 13px; margin: 0 0 12px; }
