:root {
  font-family: Inter, system-ui, sans-serif;
  color-scheme: light;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  --page: #f5f6f2;
  --surface: #fff;
  --text: #182526;
  --green: #1f5144;
  --button-text: #fff;
  --secondary-text: #263b33;
  --field-line: #b8c6ba;
  --focus: #82b79f;
  --badge: #edf1ec;
  --attention: #e3ecd0;
  --attention-text: #486029;
  --review: #eef3e9;
  --review-line: #ccdac8;
  --added: #e1efdf;
  --added-edge: #36723b;
  --removed: #f8e8e4;
  --removed-edge: #a74e3e;
  --empty-line: #b7c5b7;
  --error-text: #842f27;
  --error: #ffebe6;
  --success-text: #1c5142;
  --success: #e2eee4;
  --muted: #65716c;
  --line: #d9e0d8;
}
[data-theme="dark"] {
  color-scheme: dark;
  --page: #11191a;
  --surface: #1b2526;
  --text: #e8efeb;
  --green: #8ecbb6;
  --button-text: #10271e;
  --secondary-text: #d6e7de;
  --muted: #a6b7b0;
  --line: #354442;
  --field-line: #52635c;
  --focus: #9ad6b6;
  --badge: #293b34;
  --attention: #30432a;
  --attention-text: #cdeaaa;
  --review: #1d322a;
  --review-line: #3e5b4d;
  --added: #203b2a;
  --added-edge: #75bb84;
  --removed: #482a2a;
  --removed-edge: #dd8b7e;
  --empty-line: #546b5e;
  --error-text: #ffc2bc;
  --error: #472825;
  --success-text: #bae0cb;
  --success: #23392e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-identity,
.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 850;
  color: var(--text);
  border-radius: 3px;
}
.brand-os,
.brand-bolt {
  color: var(--green);
}
.brand-bolt {
  width: 20px;
  height: 30px;
  fill: currentColor;
  flex-shrink: 0;
}
.brand-mascot {
  display: block;
  width: 64px;
  height: auto;
  margin-right: 5px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.brand-mascot img {
  display: block;
  width: 100%;
  height: auto;
}
.strap {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.header-actions button {
  min-height: 44px;
}
#theme-toggle[aria-pressed="true"] {
  background: var(--badge);
  border-color: var(--green);
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 32px 32px 80px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--green);
  color: var(--button-text);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.secondary {
  background: var(--surface);
  color: var(--secondary-text);
  border: 1px solid var(--line);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 12px 0 24px;
}
h2 {
  letter-spacing: -0.6px;
  font-size: 24px;
}
h3 {
  margin-top: 26px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--green);
}
.lead {
  font-size: 22px;
  line-height: 1.5;
  max-width: 590px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
#welcome {
  padding: 60px 0;
}
#notice:not(:empty) {
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 8px;
}
.error {
  color: var(--error-text);
  background: var(--error);
}
.success {
  color: var(--success-text);
  background: var(--success);
}
.toolbar,
.heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.toolbar {
  margin-bottom: 36px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.heading h1 {
  font-size: 40px;
  letter-spacing: -1.3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0 28px;
}
.metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metrics strong {
  font-size: 32px;
}
.metrics span {
  font-size: 14px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 6px;
}
.proposal-card {
  width: 100%;
  display: block;
  text-align: left;
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line);
  padding: 26px;
  margin: 12px 0;
  border-radius: 12px;
  font-weight: 400;
}
.proposal-card h2 {
  margin-bottom: 10px;
}
.proposal-card p {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 700;
  display: inline-block;
  padding: 6px 8px;
  background: var(--badge);
  border-radius: 4px;
  margin-right: 6px;
}
.attention {
  background: var(--attention);
  color: var(--attention-text);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 24px;
  color: var(--green);
  gap: 20px;
}
.empty {
  border: 1px dashed var(--empty-line);
  padding: 40px;
  border-radius: 12px;
  margin-top: 16px;
}
.detail,
.event,
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin: 16px 0;
}
.detail h2 {
  font-size: 32px;
}
.proposal-body {
  white-space: pre-wrap;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
code,
small {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
}
small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 16px;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(680px, 92vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #10282088;
}
dialog p {
  line-height: 1.6;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
input,
textarea,
select {
  border: 1px solid var(--field-line);
  background: var(--surface);
  border-radius: 6px;
  padding: 12px;
  color: inherit;
}
input,
textarea {
  display: block;
  width: 100%;
  margin: 8px 0 20px;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.check input {
  width: auto;
  margin: 0;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 5%;
  color: var(--muted);
  font-size: 12px;
}
footer .brand {
  font-size: 22px;
  letter-spacing: -0.8px;
  gap: 5px;
}
footer .brand-bolt {
  width: 15px;
  height: 23px;
}
footer .brand-mascot {
  width: 48px;
}
footer .strap {
  font-size: 12px;
}
.practice-status {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  header {
    padding: 18px 20px;
    gap: 20px;
  }
  .header-identity {
    flex-basis: 100%;
  }
  .header-actions {
    margin-left: 0;
    gap: 10px;
  }
  .header-actions button {
    padding: 10px 12px;
    font-size: 12px;
  }
  footer {
    padding: 24px 20px;
    gap: 20px;
  }
  main {
    padding: 24px 18px;
  }
  .toolbar,
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar label {
    flex-wrap: wrap;
  }
  .metrics {
    gap: 8px;
  }
  .metrics article {
    padding: 16px 12px;
  }
  .metrics span {
    font-size: 12px;
  }
  .card-foot {
    flex-direction: column;
    gap: 10px;
  }
  .detail,
  .event,
  .member {
    padding: 20px;
  }
  nav {
    flex-wrap: wrap;
  }
  .detail h2 {
    font-size: 26px;
  }
  code {
    font-size: 12px;
  }
}
.review-summary {
  background: var(--review);
  border: 1px solid var(--review-line);
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
}
.review-summary h3 {
  margin-top: 0;
}
.demo-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.change-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.change-part {
  padding: 12px;
  background: var(--surface);
}
.change-part.added {
  background: var(--added);
  border-left: 4px solid var(--added-edge);
}
.change-part.removed {
  background: var(--removed);
  border-left: 4px solid var(--removed-edge);
}
.change-part.unchanged {
  color: var(--muted);
}
.change-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}
/* One palette supports both themes and future organisation branding. */
main { padding-top: 28px; }
h2 { margin: 12px 0; }
h4 { font-size: 16px; margin: 20px 0 12px; }
nav { border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 16px; }
nav button[aria-current="true"] { background: var(--badge); border-color: var(--green); color: var(--green); }
.metrics article { padding: 20px 24px; }
.metrics strong { color: var(--green); }
.review-summary { padding: 22px 24px; }
.review-summary p { line-height: 1.6; }
.review-summary details { padding-bottom: 0; }
.review-summary summary { font-weight: 650; }
.card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.card-top .badge { margin: 0; }
.badge { letter-spacing: .3px; font-size: 11px; }
.progress { display: grid; grid-template-columns: repeat(4,1fr); padding: 0; margin: 26px 0; list-style: none; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.progress li span { display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; background: var(--badge); }
.progress li.active { color: var(--text); background: var(--review); border-color: var(--green); font-weight: 650; }
.progress li.finished { color: var(--green); }
.full-proposal, .reading, .vote-panel, .delivery-panel, .discussion { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 4px; }
.full-proposal h3 { margin-bottom: 20px; }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.inline-form label { flex: 1; min-width: 220px; }
.inline-form select { display: block; width: 100%; margin-top: 8px; }
.inline-form button { align-self: flex-end; }
#review-outcome-form select { display: block; width: 100%; margin: 8px 0 20px; }
.notification { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 16px 0; }
.notification.unread { border-left: 4px solid var(--green); }
.notification h3 { margin: 12px 0; }
.notification p { margin: 8px 0; }
.notification-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex-shrink: 0; }
.empty.compact { padding: 24px; }
.task { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 20px 0; }
.task h4 { margin-top: 14px; }
.task select { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid select { display: block; width: 100%; margin: 8px 0 20px; }
#task-form { border-top: 1px solid var(--line); margin: 28px 0; padding-top: 4px; }
.comment { background: var(--page); padding: 20px; border: 1px solid var(--line); border-radius: 10px; margin: 18px 0; scroll-margin-top: 32px; }
.comment.highlight { border-color: var(--green); background: var(--review); }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.small-button { font-size: 12px; padding: 8px 12px; margin-top: 12px; }
.mentions { color: var(--green); font-size: 13px; font-weight: 650; }
.mention-picker { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.mention-picker legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.mention-picker .check { margin: 6px 0; font-size: 13px; }
.history { margin-top: 32px; }
@media (max-width:680px) {
  .progress { grid-template-columns: repeat(2,1fr); }
  .progress li { font-size: 12px; padding: 10px; }
  .notification { align-items: stretch; flex-direction: column; padding: 20px; gap: 12px; }
  .notification-actions { flex-direction: row; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .review-summary { padding: 18px; }
  .metrics article { padding: 16px 12px; }
}
