:root {
  color-scheme: light;
  --ink: #203f35;
  --muted: #59675e;
  --paper: #f7f6f0;
  --white: #fffefa;
  --line: #dddeda;
  --sage: #e9ede2;
  --gold: #cfbc85;
  --sidebar: 238px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  background: #315345;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
button.quiet:hover {
  background: var(--sage);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: #47634c;
}
:focus-visible {
  outline: 3px solid #a47523;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9;
  background: var(--white);
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 34px 24px;
  background: var(--ink);
  color: #f6f4e9;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
  color: inherit;
}
.brand:hover {
  color: inherit;
}
.brand strong {
  font-weight: normal;
}
.brand-mark {
  font-size: 25px;
  border: 1px solid #82937c;
  border-radius: 50%;
  height: 45px;
  width: 45px;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #d3d9cc;
  margin: 52px 12px 18px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: block;
  padding: 13px 14px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 7px;
  min-height: 44px;
  color: #e2e8dc;
}
nav a:hover,
nav a[aria-current="page"] {
  background: #365448;
  color: #fffefa;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 7px 0;
  font-size: 12px;
  color: #e0e5d8;
  line-height: 1.8;
}
.sidebar-bottom small {
  color: #d0d8ca;
}
.local-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #b9d394;
  border-radius: 100%;
  margin-right: 6px;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  min-height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 42px;
  gap: 20px;
  background: var(--white);
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar > div {
  display: flex;
  gap: 10px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 42px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
}
h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 14px;
}
.intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 750px;
  margin-bottom: 0;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head > div:first-child {
  max-width: 760px;
}
.page-head > button {
  flex-shrink: 0;
  margin-top: 20px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
  border-radius: 30px;
  background: var(--sage);
  padding: 6px 10px;
  white-space: nowrap;
  color: #344b37;
}
.pill.warning {
  background: #f4e8cc;
  color: #73521a;
}
.pill.blocked {
  background: #f4dfdc;
  color: #75342e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.metric-value {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.1;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-head h2 {
  margin: 0;
}
.panel-head a {
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  padding: 38px 15px;
  text-align: center;
  border: 1px dashed #cbd2c4;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty h2,
.empty h3 {
  color: var(--ink);
  margin-bottom: 10px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 18px;
}
.empty.compact {
  padding: 23px 12px;
}
.empty.compact p {
  margin-bottom: 0;
}
.rows {
  display: grid;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
  padding-top: 0;
}
.row:last-child {
  padding-bottom: 0;
}
.row strong {
  font-size: 14px;
}
.row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}
.row .quiet {
  font-size: 12px;
  padding: 9px 12px;
}
.callout {
  background: var(--sage);
  border: 1px solid #d5dccd;
  padding: 22px 25px;
  border-radius: 9px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.callout h3 {
  margin-bottom: 7px;
}
.callout p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.toolbar label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
input,
select,
textarea {
  border: 1px solid #bdc6b7;
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 6px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 110px;
}
.table-wrap {
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 17px;
  color: var(--muted);
  font-weight: 700;
  background: #eeefe7;
  white-space: nowrap;
}
td {
  padding: 19px 17px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
td p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}
td .quiet {
  font-size: 12px;
  white-space: nowrap;
}
td a {
  font-size: 12px;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.draft-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.draft-head h2 {
  margin-bottom: 7px;
}
.draft-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  color: #3c4e42;
  padding: 20px;
  background: var(--paper);
  border-radius: 7px;
  border: 1px solid #e5e5db;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions .quiet {
  font-size: 12px;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 15px;
  overflow: auto;
  padding-bottom: 12px;
}
.lane {
  background: #eeefe7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  min-height: 240px;
}
.lane > h2 {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.deal {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 17px;
  border-radius: 7px;
  margin-bottom: 12px;
}
.deal h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.deal p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.deal .quiet {
  width: 100%;
  font-size: 12px;
}
.timeline {
  max-width: 950px;
}
.timeline article {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 23px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.timeline p {
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 0;
  color: var(--muted);
}
.timeline strong {
  font-size: 14px;
}
.timeline code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
footer {
  padding: 20px 42px 30px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.7;
}
dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 24px 80px #17382d38;
}
dialog::backdrop {
  background: #17382d65;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 23px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  font-size: 23px;
  min-width: 44px;
  padding: 5px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 17px;
}
.field span {
  font-weight: 600;
}
.field small {
  color: var(--muted);
  line-height: 1.6;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
#form-error {
  font-size: 13px;
  line-height: 1.6;
  color: #873d32;
}
#form-error:empty {
  display: none;
}
.notice {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: min(550px, calc(100vw - 44px));
  padding: 17px 23px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 5px 24px #17382d22;
  z-index: 10;
  overflow-wrap: anywhere;
}
.notice:empty {
  display: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 23px;
  margin-bottom: 24px;
}
.detail-fit {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
}
.subhead {
  margin: 30px 0 15px;
}
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.integration-list {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}
.error-panel {
  color: #873d32;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  font-size: 13px;
  text-align: left;
}
.text-button:hover {
  background: none;
  color: #47634c;
}
@media (min-width: 1650px) {
  main {
    padding-top: 55px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 200px;
  }
  .sidebar {
    padding: 30px 18px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .topbar {
    padding: 18px 25px;
  }
  main {
    padding: 30px 25px;
  }
  .two-col,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 32px;
  }
  footer {
    padding: 20px 25px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 20px;
  }
  .brand {
    font-size: 18px;
  }
  .brand br {
    display: none;
  }
  .brand strong {
    margin-left: 4px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    margin-top: 20px;
  }
  nav a {
    white-space: normal;
    text-align: center;
    padding: 11px;
    font-size: 12px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 13px 20px;
  }
  .topbar > span {
    display: none;
  }
  .topbar > div {
    width: 100%;
    justify-content: space-between;
  }
  main {
    padding: 28px 20px;
  }
  h1 {
    font-size: 32px;
  }
  .page-head {
    flex-direction: column;
    gap: 15px;
  }
  .page-head > button {
    margin-top: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-label {
    font-size: 11px;
  }
  .panel {
    padding: 20px;
  }
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px;
    flex-direction: column;
    gap: 8px;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar select {
    max-width: 70%;
  }
  dialog {
    padding: 22px;
  }
}
:root .callout h2 {
  font-size: 20px;
  margin-bottom: 7px;
}
.field > label {
  font-weight: 600;
}
.field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  vertical-align: middle;
  margin: 0 8px 0 0;
}
#no-matches {
  padding: 15px;
}
