:root {
  --ink: #243d34;
  --green: #32634c;
  --cream: #f6f5ef;
  --muted: #717b72;
  --line: #dce1d7;
  --soft: #edf0e6;
  --orange: #e5a06b;
  --red: #9d3e36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    sans-serif;
}
header {
  height: 100px;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fbfbf7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--cream);
  height: 46px;
  width: 46px;
  border-radius: 50% 50% 15% 50%;
  font:
    34px Georgia,
    serif;
}
.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-top: 5px;
}
.layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 100px);
}
aside {
  padding: 44px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 20px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  background: none;
  color: var(--ink);
  text-align: left;
  border-radius: 9px;
  padding: 12px 15px;
}
nav button.active {
  background: var(--soft);
  font-weight: 650;
}
.aside-note {
  margin-top: 75px;
  color: #919b8d;
  font:
    italic 20px/1.5 Georgia,
    serif;
}
main {
  padding: 45px 5%;
  min-width: 0;
}
h1 {
  font:
    normal clamp(32px, 4vw, 54px) / 1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
h2 {
  font:
    normal 29px/1.25 Georgia,
    serif;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 18px;
}
.muted,
small {
  color: var(--muted);
}
button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 11px 18px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: #244f3b;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.secondary {
  background: var(--soft);
  color: var(--ink);
}
.secondary:hover {
  background: #e1e7d7;
}
.danger {
  background: var(--red);
}
.hero {
  background: #e9eddf;
  border-radius: 20px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.hero p {
  max-width: 510px;
}
.hero .eyebrow {
  color: var(--green);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  background: #fdfdf9;
  min-width: 0;
}
.card p {
  color: var(--muted);
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.7px;
  border-radius: 5px;
  background: var(--soft);
  padding: 4px 8px;
  text-transform: uppercase;
}
.overdue {
  color: var(--red);
  background: #fae4df;
}
.empty {
  padding: 45px;
  border: 1px dashed #bac5b5;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}
input,
select,
textarea {
  font:
    400 16px/1.5 system-ui,
    sans-serif;
  border: 1px solid #c9d2c4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  width: 100%;
  min-width: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  justify-self: start;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 12px 0;
  padding: 15px;
}
legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0 8px;
}
form {
  max-width: 780px;
}
.array-item {
  border-left: 3px solid var(--line);
  padding: 12px;
  margin: 10px 0;
  background: #f6f7f1;
}
.array-item button {
  font-size: 12px;
  padding: 6px 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  padding: 30px;
  color: var(--ink);
  background: var(--cream);
}
dialog::backdrop {
  background: #20372d77;
}
#notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  border-radius: 9px;
  padding: 14px 22px;
  max-width: min(500px, 90vw);
  background: var(--ink);
  color: white;
  display: none;
  z-index: 20;
}
#notice.error {
  background: var(--red);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--soft);
  padding: 15px;
  border-radius: 8px;
  font: 13px/1.6 monospace;
}
video {
  width: 100%;
  max-height: 400px;
  border-radius: 10px;
}
.readable {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
a {
  color: var(--green);
}
.spacer {
  margin-top: 30px;
}
.toolbar {
  margin: 20px 0;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 800px) {
  header {
    height: 85px;
    padding: 18px 20px;
  }
  .layout {
    display: block;
  }
  aside {
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .eyebrow,
  .aside-note {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    padding: 8px 12px;
  }
  main {
    padding: 28px 20px;
  }
  .hero {
    padding: 27px;
  }
  .card {
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 38px;
  }
  #identity {
    font-size: 12px;
    max-width: 100px;
  }
  table {
    display: block;
    overflow: auto;
  }
}

.crm-video {
  display: block;
  max-width: 100%;
  max-height: 500px;
}
