:root {
  color-scheme: dark;
  --bg: #0c1020;
  --panel: #171d34;
  --panel-border: #313d67;
  --text: #eef2ff;
  --muted: #9aa6d4;
  --ok: #0f6f58;
  --error: #7c2f3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, #1f2c5c, transparent 45%),
    radial-gradient(circle at 80% 90%, #26285f, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.layout {
  max-width: 1080px;
  margin: 28px auto;
  padding: 0 16px 30px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
}

.card {
  background: radial-gradient(circle at top left, #202746, var(--panel));
  border: 1px solid rgba(71, 86, 143, 0.9);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: float-in 0.45s ease-out both;
}

.card.wide {
  grid-column: 1 / -1;
}

h1,
h2 {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #425289;
  background: #0f1733;
  color: var(--text);
  padding: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    transform 0.08s ease;
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: #4f7df5;
  box-shadow: 0 0 0 1px #4f7df5, 0 0 0 12px rgba(79, 125, 245, 0.18);
}

input::placeholder {
  color: #7180b3;
}

button {
  cursor: pointer;
  background: linear-gradient(90deg, #2350e8, #2f7bd8);
  border: none;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 14px 30px rgba(35, 80, 232, 0.5);
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #2350e8, #2f7bd8);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 14px 30px rgba(35, 80, 232, 0.5);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s ease;
}

.button.ghost {
  background: transparent;
  border: 1px solid #425289;
}

.session {
  margin-top: 0;
  color: var(--muted);
}

button:disabled,
input:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled),
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(35, 80, 232, 0.65);
}

button:active:not(:disabled),
.button:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(35, 80, 232, 0.5);
}

.notice {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.notice.ok {
  background: var(--ok);
}

.notice.error {
  background: var(--error);
}

.list,
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #253158;
  font-size: 0.95rem;
  transition: background 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}

.list li span {
  color: var(--muted);
}

.list li strong {
  font-variant-numeric: tabular-nums;
}

.list li:hover {
  background: rgba(31, 41, 83, 0.65);
  border-color: #33407a;
  transform: translateY(-1px);
}

.feed li {
  padding: 12px 0;
  border-bottom: 1px solid #253158;
}

.feed .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.feed .top span {
  color: var(--muted);
}

.feed p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.plus {
  color: #58dba4;
  background: rgba(26, 116, 88, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
}

.minus {
  color: #ff8599;
  background: rgba(186, 41, 75, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
}

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

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hero {
  width: min(760px, 100%);
  padding: 30px;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid #425289;
  border-radius: 999px;
  color: #a6b3e2;
  font-weight: 600;
  font-size: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 56ch;
}

.hero-btn {
  margin-top: 10px;
}

.topbar {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #c3ceff;
}

.topbar-tag {
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #2d3a6b;
  background: rgba(9, 16, 40, 0.9);
  color: #9aa6d4;
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #313d67;
  font-size: 0.8rem;
  color: #aab6e6;
}

.stat-pill strong {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.session-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #313d67;
}

.session-highlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
