:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #3e4243;
  background: #f5f5f5;
  font-synthesis: none;
  line-height: 1.5;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #92121a;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c01722;
  border-radius: 7px;
  background: #c01722;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}
button:hover,
.button:hover {
  background: #92121a;
}
button.secondary {
  background: white;
  color: #3e4243;
  border-color: #d5d6d7;
}
button.secondary:hover {
  background: #f2f2f3;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #155157;
  outline-offset: 3px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b6b8ba;
  background: #fff;
  border-radius: 6px;
  color: #3e4243;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 16px 0;
}
label input,
label select,
label textarea {
  margin-top: 6px;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 0;
  flex: none;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.wordmark {
  font-weight: 750;
  letter-spacing: 0.18em;
  font-size: 22px;
  color: #69111f;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #626568;
}
.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid #e0e1e2;
  background: #fafafa;
  gap: 24px;
}
.account {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
}
.account > span {
  max-width: 350px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 20px;
  background: #f0f1f2;
  color: #505457;
  border: 1px solid #dedfe0;
  text-transform: capitalize;
  margin: 2px;
  white-space: normal;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 94px);
}
aside {
  padding: 38px 22px;
  border-right: 1px solid #e0e1e2;
}
aside .eyebrow {
  padding-left: 12px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 14px;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
nav a[aria-current] {
  background: #f7e9eb;
  color: #92121a;
}
.nav-index {
  color: #626568;
  font-size: 11px;
  align-self: center;
  font-weight: 400;
}
.aside-note {
  margin: 70px 12px 0;
  font-size: 12px;
  color: #626568;
  line-height: 1.8;
}
main {
  min-width: 0;
  padding: 38px 42px 80px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
h1 {
  font-size: 36px;
  line-height: 1.17;
  letter-spacing: -0.035em;
  margin: 8px 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 620;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 620;
}
p {
  margin: 8px 0 16px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #65676a;
  font-size: 10px;
  font-weight: 650;
  margin: 0;
}
.subtitle {
  font-size: 14px;
  color: #626568;
  max-width: 670px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading > button {
  flex: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #dedfe0;
  padding: 20px 0;
  margin-bottom: 28px;
}
.stats > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid #dedfe0;
}
.stats > div:first-child {
  padding-left: 0;
}
.stats > div:last-child {
  border: 0;
}
.stats strong {
  font-size: 29px;
  font-weight: 550;
}
.stats span {
  font-size: 12px;
  color: #626568;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.filters label {
  margin-top: 0;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.record-card {
  padding: 22px;
  background: #fff;
  border: 1px solid #dedfe0;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 3px 10px #19382203;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.record-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.record-card h2 a {
  text-decoration: none;
}
.record-card h2 a:hover {
  text-decoration: underline;
}
.record-card p {
  font-size: 13px;
  color: #626568;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.record-card footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #626568;
}
.record-card footer span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel {
  background: white;
  border: 1px solid #dedfe0;
  border-radius: 9px;
  padding: 26px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.section-heading button {
  font-size: 12px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 24px;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
}
dl {
  margin: 0;
}
dt {
  font-size: 11px;
  font-weight: 650;
  color: #626568;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 15px;
}
dd {
  margin: 6px 0 18px;
  white-space: pre-wrap;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.record-fields > div {
  border-bottom: 1px solid #ededee;
}
.record-fields > div:last-child {
  border: 0;
}
.readiness {
  background: #fafafa;
}
.readiness h2 {
  margin-top: 8px;
}
.readiness-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-block: 1px solid #dedfe0;
  margin: 20px 0;
}
.readiness-flags p {
  padding-top: 12px;
}
.readiness-flags span {
  font-size: 14px;
  display: block;
  font-weight: 620;
}
.readiness-flags small {
  font-size: 10px;
  color: #626568;
}
.requirements {
  list-style: none;
  padding: 0;
}
.requirements li {
  padding: 14px 0;
  border-bottom: 1px solid #dedfe0;
}
.requirements p {
  font-size: 13px;
  margin: 5px 0;
}
.warning {
  background: #fff7e7;
  border: 1px solid #e8d8b6;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #775b25;
}
.error {
  padding: 14px;
  background: #fff0ed;
  color: #993c30;
  border: 1px solid #e6c9c2;
  border-radius: 6px;
  font-size: 13px;
}
.fine,
.field-help {
  font-size: 12px;
  color: #626568;
}
.field-help {
  margin-top: -8px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  border: 1px dashed #c8cacc;
  border-radius: 9px;
  color: #626568;
}
.empty h2 {
  color: #3e4243;
}
.empty p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 14px;
}
.loading {
  padding: 30px;
  color: #626568;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.person-card {
  border: 1px solid #dedfe0;
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.person-card > p {
  font-size: 13px;
}
.person-card > button {
  display: block;
  margin-top: 18px;
  font-size: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f7e9eb;
  border-radius: 50%;
  color: #92121a;
  margin-bottom: 14px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #dedfe0;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row p {
  margin: 5px 0;
  font-size: 13px;
}
.list-row button {
  font-size: 12px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.decision {
  border-bottom: 1px solid #dedfe0;
  padding: 17px 0;
}
.decision p {
  font-size: 13px;
}
.work-card {
  border-top: 1px solid #dedfe0;
  padding: 25px 0 5px;
}
.work-card > p {
  font-size: 13px;
}
.login {
  max-width: 1050px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 100px;
  background: radial-gradient(ellipse at 85% 20%, #e3ebd9, transparent 65%);
}
.login-card {
  max-width: 600px;
  margin: 70px 0 40px;
}
.login-card h1 {
  font-size: 58px;
  line-height: 1.06;
  max-width: 530px;
  margin: 16px 0 25px;
}
.login-card > p {
  max-width: 500px;
  color: #626568;
  font-size: 16px;
}
.login-card > .button {
  margin: 22px 0;
}
.login-card > .fine {
  font-size: 12px;
  margin-top: 18px;
}
.login-card > button {
  margin-right: 8px;
}
.account-id {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.editor {
  width: min(670px, calc(100% - 32px));
  max-height: 90dvh;
  border: 1px solid #b6b8ba;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 30px 100px #13241f35;
  color: #3e4243;
}
.editor::backdrop {
  background: #24262980;
  backdrop-filter: blur(3px);
}
.editor form {
  display: flex;
  flex-direction: column;
  max-height: 89dvh;
}
.editor header,
.editor footer {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fafafa;
  flex-shrink: 0;
}
.editor header {
  border-bottom: 1px solid #dedfe0;
}
.editor header h2 {
  margin: 0;
}
.editor footer {
  border-top: 1px solid #dedfe0;
}
.form-body {
  overflow-y: auto;
  padding: 8px 26px 24px;
}
.form-body > p {
  font-size: 13px;
}
.form-body label {
  font-size: 13px;
}
h1,
h2,
h3,
p,
.list-row,
.decision {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  main {
    padding-inline: 65px;
  }
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  main {
    padding: 30px 25px 60px;
  }
  .topbar {
    padding: 0 25px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .stats > div {
    display: block;
  }
  .stats span {
    display: block;
  }
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    padding: 18px;
    gap: 15px;
    align-items: flex-start;
  }
  .wordmark {
    font-size: 19px;
  }
  .wordmark span {
    font-size: 8px;
  }
  .account {
    gap: 8px;
    align-items: flex-end;
    flex-direction: column;
  }
  .account > span {
    font-size: 10px;
    max-width: 150px;
    text-align: right;
  }
  .account .badge {
    display: none;
  }
  .account button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .layout {
    display: block;
  }
  aside {
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid #e0e1e2;
  }
  aside > .eyebrow,
  .aside-note {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    justify-content: space-between;
  }
  nav a {
    font-size: 12px;
    gap: 8px;
    padding: 12px;
  }
  .nav-index {
    font-size: 9px;
  }
  main {
    padding: 27px 18px 60px;
  }
  h1 {
    font-size: 31px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }
  .page-heading button {
    font-size: 12px;
  }
  .subtitle {
    font-size: 13px;
  }
  .stats {
    padding: 14px 0;
    gap: 0;
  }
  .stats > div {
    padding: 0 10px;
  }
  .stats strong {
    font-size: 25px;
  }
  .stats span {
    font-size: 10px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .filters label {
    margin-bottom: 0;
  }
  .record-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  .record-card {
    padding: 20px;
  }
  .panel {
    padding: 20px;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .detail-columns {
    gap: 0;
  }
  .login {
    padding: 38px 24px;
  }
  .login-card {
    margin: 60px 0 30px;
  }
  .login-card h1 {
    font-size: 43px;
  }
  .login-card .button {
    width: 100%;
    font-size: 13px;
  }
  .editor {
    width: calc(100% - 20px);
    max-height: 94dvh;
  }
  .editor form {
    max-height: 93dvh;
  }
  .editor header,
  .editor footer {
    padding: 16px;
  }
  .form-body {
    padding: 0 16px 20px;
  }
  .editor h2 {
    font-size: 17px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .section-heading > button {
    font-size: 11px;
  }
  #banner {
    margin: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
main:focus {
  outline: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-item {
  border-top: 1px solid var(--line, #ddd);
  padding: 18px 0;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.panel,
.section-heading,
.account-id {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 700px) {
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  nav a {
    min-width: 0;
  }
}

.proposal-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.proposal-diff > div {
  min-width: 0;
}
.proposal-diff pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 12px;
  background: #f1f3f1;
  max-height: 360px;
  overflow: auto;
}
.proposal-change {
  border-top: 1px solid #ddd;
  margin-top: 20px;
}
.panel code {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .proposal-diff {
    grid-template-columns: 1fr;
  }
}

.tier-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; }
.source-preview { padding:12px; background:#f5f5f5; margin:8px 0 16px; overflow-wrap:anywhere; }
#source-pickers section { margin-bottom:20px; }

/* Official Landau palette; asset provenance in docs/branding.md. */
:root { --landau-red: #c01722; --landau-maroon: #69111f; }
h1, h2, h3 { font-family: Futura, "Century Gothic", "Avenir Next", sans-serif; }
button, .button, nav a { border-radius: 3px; }
input[type="checkbox"] { accent-color: var(--landau-red); }
.topbar { background: var(--landau-maroon); color: white; border-bottom: 4px solid var(--landau-red); height: 104px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wordmark img { display: block; width: 216px; height: auto; }
.wordmark span { color: white; font-size: 9px; letter-spacing: .25em; padding-left: 52px; }
.topbar .badge { background: #ffffff18; color: white; border-color: #ffffff50; }
.topbar button.secondary { background: transparent; color: white; border-color: #ffffff90; }
.topbar button.secondary:hover { background: #ffffff20; }
.topbar a:focus-visible, .topbar button:focus-visible { outline-color: white; }
.layout { min-height: calc(100vh - 104px); }
aside { background: white; }
nav a { color: #3e4243; border-left: 3px solid transparent; }
nav a:hover { background: #f4f4f4; }
nav a[aria-current] { border-left-color: var(--landau-red); }
.login { max-width: none; padding: 64px max(5vw, 24px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); grid-template-rows: auto 1fr auto; column-gap: 8vw; align-items: start; background: linear-gradient(135deg, #69111f 0%, #47101b 100%); border-top: 6px solid var(--landau-red); }
.login > .wordmark { grid-column: 1; grid-row: 1; }
.brand-intro { grid-column: 1; grid-row: 2; align-self: center; color: white; max-width: 520px; padding: 60px 0; }
.brand-intro .eyebrow { color: #e4b9bf; }
.brand-intro h2 { font-size: clamp(32px, 3.4vw, 54px); font-weight: 500; line-height: 1.15; margin: 22px 0; letter-spacing: -.025em; }
.brand-intro > p:last-child { color: #ecdde0; font-size: 17px; max-width: 360px; }
.login-card { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 100%; max-width: none; margin: 0; background: white; padding: 42px; border-top: 5px solid var(--landau-red); box-shadow: 0 24px 70px #20061035; }
.login-card h1 { font-size: 38px; line-height: 1.15; }
.login-card > p { font-size: 15px; }
.login > .fine { grid-column: 1; grid-row: 3; color: #ecdde0; }
#local-signin > button { width: 100%; margin-top: 8px; }
@media (max-width: 800px) {
 .login { display: flex; padding: 32px 24px; gap: 28px; }
 .brand-intro { display: none; }
 .login-card { padding: 28px; }
 .login-card h1 { font-size: 32px; }
 .login > .fine { margin: 0; }
}
@media (max-width: 650px) {
 .topbar { height: auto; padding: 18px; }
 .wordmark img { width: 172px; }
 .wordmark span { padding-left: 41px; font-size: 8px; }
 .login-card { padding: 24px; }
}
