:root {
  color-scheme: dark;
  --bg: #080908;
  --panel: #121412;
  --panel-2: #191d19;
  --line: rgba(236, 242, 230, 0.12);
  --ink: #f3f6ef;
  --muted: rgba(243, 246, 239, 0.66);
  --accent: #b7ef73;
  --accent-2: #7cb7ff;
  --warn: #ffd27d;
  --danger: #ff7a68;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  margin: 0 auto;
  max-width: 1720px;
  padding: 24px;
}

.topbar,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 20px;
}

.eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.system-status {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  margin-top: 8px;
}

button,
.button-link {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  border-color: rgba(183, 239, 115, 0.45);
  color: var(--accent);
}

.layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 16px;
}

.section-title {
  margin-bottom: 14px;
}

.section-title.inline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
  margin-bottom: 12px;
}

input,
textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  outline: none;
  padding: 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.mini-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.45;
  margin-top: 12px;
}

.mini-item,
.idea-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.idea-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idea-card {
  display: grid;
  gap: 8px;
}

.idea-card strong {
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  background: rgba(183, 239, 115, 0.12);
  border: 1px solid rgba(183, 239, 115, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 5px 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1180px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.copy {
  color: rgba(243, 246, 239, 0.86);
  line-height: 1.45;
  white-space: pre-wrap;
}

.score-good {
  color: var(--accent);
}

.score-warn {
  color: var(--warn);
}

.toast {
  background: var(--accent);
  border-radius: 6px;
  bottom: 20px;
  color: #111;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 10px 14px;
  position: fixed;
  transform: translate(-50%, 10px);
  transition: 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .layout,
  .idea-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
}
