:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #e9edf8;
  background: #090d1a;
  font-size: 16px;
  line-height: 1.6;
  --border: #2c3550;
  --muted: #b5c0d6;
  --accent: #b9adff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #c2b9ff;
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  border: 1px solid #556383;
  border-radius: 9px;
  background: #202a43;
  color: #f4f6fd;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  background: #303e5d;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.primary {
  background: #b9adff;
  color: #151129;
  border-color: #b9adff;
}
.primary:hover {
  background: #d1c9ff;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #556383;
  border-radius: 8px;
  background: #0c1325;
  color: #f5f7fc;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 550;
  margin: 0.55rem 0 0.25rem;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b9adff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  max-width: 1440px;
  margin: auto;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #eef0ff;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 2rem;
}
.page-heading,
.detail-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.2;
  margin: 0.4rem 0;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 0.8rem;
}
h3 {
  font-size: 1.08rem;
  margin: 0.3rem 0 0.8rem;
}
.lede,
.muted {
  color: var(--muted);
}
p {
  margin: 0.7rem 0;
}
.message {
  min-height: 1.6rem;
  color: #d3ccff;
}
.message.error {
  color: #ffb9bb;
}
.notice {
  background: #1a2136;
  border-left: 3px solid #a89ae9;
  border-radius: 5px;
  padding: 0.85rem 1rem;
  color: #d9dded;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.review-sidebar {
  display: grid;
  gap: 1.2rem;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  background: #10172a;
  min-width: 0;
}
.review-button {
  display: block;
  text-align: left;
  width: 100%;
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
}
.review-button[aria-current="true"] {
  border-color: var(--accent);
  background: #302b51;
}
.review-button small {
  display: block;
  color: #c3cbe0;
}
.badge {
  display: inline-block;
  border: 1px solid #756b9f;
  border-radius: 20px;
  color: #d5cbff;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}
.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.coverage span {
  font-size: 0.82rem;
  background: #202a43;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}
.coverage .missing {
  color: #f2cd93;
}
.detail-heading h2 {
  margin: 0;
}
.detail-heading {
  margin-bottom: 0.75rem;
}
section + section,
#minutes-form section {
  margin-top: 1.5rem;
}
details {
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
}
summary {
  cursor: pointer;
  color: #c8bfff;
}
ol,
ul {
  padding-left: 1.3rem;
}
li {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
}
.source-refs {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.item-editor {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 1rem;
  margin: 0.8rem 0;
}
.item-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}
.item-editor .remove {
  margin-top: 0.8rem;
  background: transparent;
  font-size: 0.85rem;
  color: #ffc1c4;
}
.save-panel {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.save-panel input {
  max-width: 13rem;
}
.save-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.observation {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}
.observation p {
  margin: 0.25rem 0;
}
.history-entry {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0;
}
.history-entry summary {
  font-size: 0.92rem;
}
.history-content {
  padding: 0.6rem 0;
}
.history-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.followup-button {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0;
  overflow-wrap: anywhere;
}
.followup-button small {
  display: block;
  color: var(--muted);
}
#notes {
  white-space: pre-wrap;
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: 1rem;
}
.skip-link:focus {
  left: 1rem;
  z-index: 10;
  background: #202a43;
  padding: 1rem;
}
@media (max-width: 850px) {
  .review-layout {
    grid-template-columns: 1fr;
  }
  .review-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .site-header,
  main {
    padding: 1rem;
  }
}
@media (max-width: 540px) {
  .review-sidebar {
    grid-template-columns: 1fr;
  }
  .page-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading button,
  .section-heading button {
    width: 100%;
  }
  .item-fields {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 1rem;
  }
  .site-header {
    font-size: 0.85rem;
    gap: 0.65rem;
  }
  .save-actions button {
    flex: 1;
  }
  .badge {
    white-space: normal;
  }
  .detail-heading {
    align-items: flex-start;
  }
  #review-title {
    overflow-wrap: anywhere;
  }
}
