:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111118;
  color: #f4eefc;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #2a1f3f 0, #111118 38rem);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

h1, h2, p { margin: 0; }
header p { color: #bfb3d4; margin-top: .25rem; }

.token-box {
  display: grid;
  gap: .35rem;
  color: #cfc4e8;
  font-size: .85rem;
}

input, button {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: inherit;
  border-radius: .65rem;
  padding: .55rem .7rem;
}
button { cursor: pointer; }
button:hover { background: rgba(255,255,255,0.14); }

main {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 1rem;
  padding: 1rem;
}

aside, section {
  background: rgba(8,8,14,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  min-height: 75vh;
}

aside { padding: .75rem; }
section { padding: 1rem; overflow: hidden; }
.toolbar { margin-bottom: .75rem; }
.dates { display: grid; gap: .35rem; }
.date-item {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.date-item small { color: #9f93b8; }
.content {
  margin-top: 1rem;
  white-space: pre-wrap;
  line-height: 1.65;
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", serif;
  color: #f7f0ff;
  overflow: auto;
  max-height: 72vh;
}
.error { color: #ffb4c8; }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; }
  aside, section { min-height: auto; }
}
