:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #202925;
  background: #f6f8f6;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #88a793;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.loading {
  padding: 50px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #112e26;
  color: #d7e5dc;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    800 22px Manrope,
    system-ui;
  letter-spacing: -1px;
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
}
.logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #a9e3ba;
  color: #153c2d;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.workspace {
  margin: 43px 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #90aa9a;
}
.nav {
  padding: 12px 13px;
  border-radius: 8px;
  color: #d4e3d8;
  background: #29493b;
  font-weight: 600;
}
.navicon {
  margin-right: 11px;
}
.side-bottom {
  margin-top: auto;
  padding: 20px 6px 0;
  border-top: 1px solid #345448;
  line-height: 1.5;
  font-size: 14px;
}
.side-bottom strong {
  color: #fff;
}
.side-bottom button {
  display: block;
  border: 0;
  background: none;
  color: #bcd3c4;
  padding: 10px 0 0;
}
.main {
  min-width: 0;
}
.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #e4eae6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  color: #718079;
  font-size: 14px;
}
.topbar strong {
  color: #27352c;
}
.synthetic {
  background: #f2f6f2;
  color: #52685b;
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 35px 42px 80px;
}
.breadcrumbs {
  font-size: 14px;
  color: #819087;
  margin-bottom: 18px;
}
.breadcrumbs strong {
  color: #34463b;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  color: #718579;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
.heading h1 {
  font:
    700 31px Manrope,
    system-ui;
  letter-spacing: -1.1px;
  margin: 8px 0;
}
.heading p {
  color: #718078;
  margin: 0;
}
.heading button,
.primary {
  border: 0;
  background: #184f38;
  color: white;
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: 700;
}
.tabs {
  border-bottom: 1px solid #dce4de;
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}
.tab {
  border: 0;
  background: none;
  padding: 14px 0;
  color: #718078;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.tab.active {
  border-color: #285c42;
  color: #1e4b34;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #e2e9e3;
  border-radius: 12px;
  box-shadow: 0 4px 15px #183b2210;
}
.card-pad {
  padding: 24px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.card-head h2,
.card-head h3 {
  font:
    700 17px Manrope,
    system-ui;
  margin: 0;
}
.count,
.tag {
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.count {
  background: #f0f4f1;
  color: #536a5a;
}
.tag.failed {
  background: #fff0ec;
  color: #ae4c35;
}
.tag.passed {
  background: #eaf6ed;
  color: #26734a;
}
.tag.not_reviewed {
  background: #f3f3ef;
  color: #6e756a;
}
.tag.approved {
  background: #dff4e6;
  color: #207747;
}
.versions {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding-bottom: 4px;
}
.version {
  border: 1px solid #dce6de;
  border-radius: 8px;
  background: #fff;
  color: #56685b;
  padding: 9px 12px;
  white-space: nowrap;
}
.version.active {
  background: #eaf4ed;
  border-color: #a3c5ac;
  color: #204a30;
  font-weight: 700;
}
.draft-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #84938a;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 24px;
}
.draft-title {
  font:
    700 23px Manrope,
    system-ui;
  letter-spacing: -0.5px;
  margin: 12px 0;
}
.draft-copy {
  line-height: 1.7;
  color: #435248;
  white-space: pre-wrap;
}
.meta {
  display: flex;
  gap: 15px;
  color: #7e8e83;
  font-size: 13px;
  margin-top: 23px;
}
.divider {
  height: 1px;
  background: #edf1ee;
  margin: 20px 0;
}
.brief {
  color: #53645a;
  line-height: 1.65;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.small-label {
  font-size: 12px;
  color: #89978e;
  margin-bottom: 6px;
}
.detail {
  font-size: 14px;
  line-height: 1.5;
  color: #354b3d;
}
.review-intro {
  color: #697b70;
  font-size: 14px;
  line-height: 1.55;
}
.finding {
  padding: 16px 0;
  border-top: 1px solid #edf1ee;
}
.finding-title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: start;
}
.warning {
  color: #bb5b40;
}
.finding p {
  font-size: 14px;
  line-height: 1.5;
  color: #708077;
  margin: 8px 0;
}
.ref-link {
  font-size: 13px;
  color: #2c7550;
  font-weight: 700;
}
.finding blockquote {
  margin: 10px 0;
  padding: 9px 12px;
  border-left: 2px solid #d98a74;
  background: #fff7f4;
  font-size: 13px;
  color: #805446;
}
.empty-review {
  padding: 18px;
  background: #f1f8f3;
  color: #306447;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}
.action {
  width: 100%;
  border: 1px solid #ccdad0;
  background: white;
  border-radius: 8px;
  padding: 11px 14px;
  color: #28533a;
  font-weight: 700;
  margin-top: 12px;
}
.action.primary {
  background: #184f38;
  color: #fff;
  border: 0;
}
.ref {
  padding: 15px 0;
  border-top: 1px solid #edf1ee;
}
.ref strong {
  font-size: 14px;
}
.ref p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #738378;
}
.ref .approved-label {
  color: #43845c;
  font-size: 12px;
  font-weight: 700;
  float: right;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: #eef4ef;
}
.login {
  width: min(440px, 100%);
  padding: 36px;
}
.login .brand {
  color: #174431;
}
.login h1 {
  font:
    700 27px Manrope,
    system-ui;
  letter-spacing: -0.7px;
  margin-top: 38px;
}
.login p {
  color: #748478;
  line-height: 1.6;
}
.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7e2d9;
  border-radius: 8px;
  padding: 12px;
  color: #263a2c;
  background: white;
}
.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.5;
}
.login button {
  width: 100%;
}
.notice {
  color: #718078;
  font-size: 13px;
  line-height: 1.5;
}
.error {
  color: #a63827;
  font-size: 14px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #071c13a6;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(590px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 14px;
  padding: 26px;
}
.modal h2 {
  margin: 0;
  font:
    700 21px Manrope,
    system-ui;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-actions button {
  width: auto;
}
.secondary {
  background: white;
  border: 1px solid #d6e0d7;
  border-radius: 8px;
  padding: 11px 15px;
  color: #3d5344;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #193d2c;
  color: white;
  border-radius: 8px;
  padding: 12px 16px;
  display: none;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .sidebar .workspace,
  .sidebar .nav {
    display: none;
  }
  .side-bottom {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .side-bottom span {
    display: none;
  }
  .side-bottom button {
    padding: 0;
  }
  .topbar {
    padding: 0 22px;
    height: 58px;
  }
  .content {
    padding: 25px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  .heading {
    flex-direction: column;
  }
  .heading button {
    width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .card-pad {
    padding: 19px;
  }
  .topbar .top-title {
    display: none;
  }
  .synthetic {
    margin-left: auto;
  }
}
.campaign-list {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}
.campaign-choice {
  text-align: left;
  color: #b9d0c0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}
.campaign-choice.chosen {
  color: #fff;
  background: #244536;
}
.field select {
  width: 100%;
  border: 1px solid #d7e2d9;
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: #263a2c;
}
@media (max-width: 900px) {
  .campaign-list {
    display: flex;
    margin: 0 0 0 10px;
    max-width: 55vw;
    overflow: auto;
  }
  .campaign-choice {
    white-space: nowrap;
  }
  .campaign-choice.chosen {
    display: none;
  }
}
/* Native dialogs provide focus containment and Escape dismissal. */
.modal {
  border: 0;
  color: inherit;
  box-shadow: 0 24px 80px #071c1340;
}
.modal::backdrop {
  background: #071c13a6;
}
.card {
  min-width: 0;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ref-link {
  border: 0;
  background: none;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
select {
  font: inherit;
}
select:focus-visible,
a:focus-visible {
  outline: 3px solid #88a793;
  outline-offset: 2px;
}
.stack,
.versions {
  min-width: 0;
}
.count,
.tag {
  flex-shrink: 0;
}
.tabs {
  overflow-x: auto;
}
.tab {
  white-space: nowrap;
}
.draft-copy,
.brief,
.detail,
.ref p,
.finding p {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .sidebar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar .brand {
    flex: 1;
  }
  .side-bottom {
    order: 1;
  }
  .campaign-list {
    order: 2;
    flex-basis: 100%;
    max-width: 100%;
    margin: 0;
  }
  .campaign-choice.chosen {
    display: block;
  }
}
@media (max-width: 520px) {
  .side-bottom strong {
    display: none;
  }
  .tabs {
    gap: 20px;
  }
  .meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-head {
    gap: 8px;
  }
  .count,
  .tag {
    font-size: 11px;
  }
  .modal {
    padding: 22px;
    width: calc(100% - 32px);
  }
}

/* Readable supporting text on white and pale surfaces. */
.eyebrow,
.draft-label,
.small-label,
.meta,
.notice,
.review-intro,
.finding p,
.ref p,
.login p {
  color: #5e7064;
}
