:root {
  --bg: #020804;
  --panel: #041108;
  --ink: #7dff7a;
  --bright: #39ff14;
  --muted: #3d8a45;
  --line: #145c22;
  --danger: #ff4d4d;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}
body {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 4px);
  opacity: .35;
}
.mast { margin-bottom: 1.25rem; }
.logo { display: block; height: 42px; width: auto; image-rendering: pixelated; }
.tag { margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(57,255,20,.08);
  padding: 1rem;
}
h2 { margin: 0 0 .75rem; font-size: .95rem; font-weight: 700; color: var(--bright); text-transform: lowercase; }
.prompt { color: var(--bright); margin-right: .35rem; }
form { display: grid; gap: .5rem; }
input, textarea, button {
  font: inherit;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #010503;
  color: var(--bright);
  padding: .55rem .7rem;
}
input:focus, textarea:focus { outline: 1px solid var(--bright); }
textarea { min-height: 4.5rem; resize: vertical; }
button {
  background: transparent;
  color: var(--bright);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .14em;
  width: fit-content;
}
button:hover { background: var(--bright); color: #020804; }
button.ghost { border: 0; color: var(--muted); padding: 0; letter-spacing: .08em; }
button.ghost:hover { background: transparent; color: var(--danger); }
button.ghost:disabled { opacity: .35; cursor: default; color: var(--muted); }
.actions { display: flex; gap: .45rem; align-items: center; }
ul { list-style: none; margin: 0; padding: 0; }
li.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .4rem .65rem;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--line);
}
li.task.done .title { text-decoration: line-through; color: var(--muted); }
.title { color: var(--bright); font-weight: 700; align-self: center; }
.notes-wrap {
  grid-column: 2 / 3;
}
.notes-wrap summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .75rem;
  list-style: none;
}
.notes-wrap summary::-webkit-details-marker { display: none; }
.notes-wrap summary::before { content: "> "; color: var(--bright); }
.notes-wrap[open] summary::before { content: "v "; }
.note {
  margin-top: .4rem;
  width: 100%;
  min-height: 3.25rem;
  color: var(--ink);
  border-color: #0d3a16;
}
.composer {
  margin-top: auto;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
  position: sticky;
  bottom: 0;
  background: var(--panel);
}
