@font-face {
  font-family: Instrument Sans;
  src: url("/assets/InstrumentSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 550;
  font-display: swap;
}
@font-face {
  font-family: Instrument Sans;
  src: url("/assets/InstrumentSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f7f0;
  --card: #fdfdf8;
  --ink: #1e332a;
  --soft: #576457;
  --line: #dce0d4;
  --green: #24523a;
  --dark: #18372d;
  --side-text: #b9cbbf;
  --title: Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --sidebar: 232px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-width: 280px;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.56;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #bc702e;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: white;
  color: var(--ink);
  z-index: 10;
  padding: 9px 16px;
  border-radius: 6px;
}
.skip:focus {
  top: 10px;
}
.boot {
  max-width: 520px;
  margin: 20vh auto;
  padding: 32px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  background: var(--dark);
  color: #f2f3e9;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 17px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #426252 transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  width: max-content;
  font: 700 33px/1 var(--title);
  letter-spacing: -1.75px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand-ai {
  font-weight: 400;
  color: #b8ccb9;
  font-size: 23px;
  letter-spacing: -1.1px;
}
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #b3c8b9;
  line-height: 1;
  margin: 7px 0 0 59px;
}
.switcher {
  margin: 32px 2px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #486155;
  border-radius: 9px;
  background: #234337;
  color: #ecf1e8;
  padding: 11px 10px;
  text-align: left;
  min-height: 59px;
}
.switcher:hover {
  background: #2a4c3f;
}
.switcher > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.switcher small,
.switcher strong,
.user-info strong,
.user-info small {
  display: block;
  line-height: 1.38;
}
.switcher small,
.user-info small {
  font-size: 10.5px;
  color: #becdc1;
}
.switcher strong,
.user-info strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-icon,
.avatar,
.choice-icon,
.task-symbol,
.run-icon,
.metric-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.ws-icon {
  width: 30px;
  height: 31px;
  border-radius: 6px;
  background: #39594a;
  color: #dae9d8;
}
.nav-label,
.mini-label,
.hero-kicker,
.brand-sub {
  font-weight: 650;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a4bbaa;
  margin: 0 12px 9px;
}
.nav-label.second {
  margin-top: 28px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c8d6ca;
  line-height: 1.2;
  padding: 11px 12px;
  margin: 3px 0;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.nav-item:hover {
  color: white;
  background: #254538;
}
.nav-item.active {
  background: #365745;
  color: #f5fbeb;
  font-weight: 650;
}
.nav-item.active svg {
  color: #d8ecc9;
}
.user-card {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: auto;
  padding: 18px 5px 0;
  border-top: 1px solid #385447;
}
.sidebar nav {
  padding-bottom: 32px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dbdfbf;
  color: #314b36;
  border: 2px solid #aac19e;
  font: 700 12px var(--sans);
}
.user-info {
  min-width: 0;
  flex: 1;
}
.user-card .icon-btn {
  color: #d4dfd6;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 3vw, 48px);
  gap: 16px;
}
.breadcrumbs,
.date-stamp {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #637164;
  font-size: 12px;
}
.breadcrumbs > svg {
  color: #929b8d;
}
.breadcrumbs strong {
  font-weight: 600;
  color: #314635;
}
.date-stamp {
  gap: 8px;
}
.date-stamp svg {
  color: #687c69;
}
#main {
  margin: 0 auto;
  max-width: 1600px;
  padding: 28px clamp(22px, 3vw, 48px) 46px;
}
#main:focus {
  outline: none;
}
.page-title,
.panel-head,
.card-top,
.publication,
.dialog-head,
.form-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-title,
.panel-head,
.card-top,
.publication,
.dialog-head {
  justify-content: space-between;
}
.page-title {
  margin-bottom: 21px;
  min-height: 47px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 400;
}
h1 {
  font-size: clamp(33px, 3vw, 50px);
  letter-spacing: -0.052em;
  line-height: 1.1;
}
.page-title p,
.publication p,
.dialog-lead {
  color: var(--soft);
  font-size: 14px;
  margin-top: 6px;
}
.btn {
  min-height: 37px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 13px;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #193e2c;
}
.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: #cbd3c5;
}
.secondary:hover {
  background: #edf1e6;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #173427;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  align-items: center;
  color: #f6f4dd;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 850px);
  z-index: -1;
  background: url("/assets/field-fox.webp") right center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero-copy {
  padding: 22px 34px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8e5bc;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h2 {
  font-size: clamp(41px, 3.9vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.057em;
  margin: 8px 0;
  color: #fffced;
}
.hero p {
  font-size: 13px;
  line-height: 1.5;
  color: #e1e6d5;
}
.hero-btn {
  margin-top: 16px;
  flex-direction: row-reverse;
  background: #e8edcc;
  color: #203e2a;
  border-color: #e8edcc;
  min-height: 34px;
  padding: 8px 12px;
}
.hero-btn:hover {
  background: #f6f7df;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0;
}
.metric,
.panel,
.content-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 17px 14px;
  min-width: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.metric:hover {
  background: #fff;
  border-color: #aebda8;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 600;
}
.metric-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.lavender {
  background: #e8e7f0;
  color: #5c597c;
}
.peach {
  background: #f5e5d8;
  color: #8c5737;
}
.mint {
  background: #e0eadf;
  color: #426b4c;
}
.butter {
  background: #f2ead2;
  color: #8c732d;
}
.metric > strong {
  font: 400 clamp(25px, 2.3vw, 37px) / 1 var(--title);
  letter-spacing: -0.055em;
  margin: 12px 0 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.metric > small,
.work-title small,
.timeline small,
.runs small,
.record small,
.workspace-option small {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--soft);
  font-weight: 400;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.panel {
  min-width: 0;
  margin-bottom: 17px;
  overflow: hidden;
}
.overview-grid .panel {
  margin: 0;
}
.panel-head {
  padding: 17px 20px 15px;
  border-bottom: 1px solid var(--line);
  min-height: 59px;
}
.panel h2,
.content-card h2 {
  font-size: 24px;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.more:hover {
  text-decoration: underline;
}
.work-list {
  padding: 0 18px;
}
.work-row {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  min-height: 62px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--ink);
}
.work-row:last-child {
  border-bottom: 0;
}
.work-row:hover strong,
.record:hover strong {
  text-decoration: underline;
}
.task-symbol,
.run-icon,
.choice-icon,
.empty-icon {
  background: #ebeee2;
  color: #536c50;
  border-radius: 8px;
}
.task-symbol {
  width: 33px;
  height: 33px;
}
.work-title,
.user-info,
.record,
.metric {
  min-width: 0;
}
.work-title {
  flex: 1;
}
.work-title strong,
.work-title small,
.timeline strong,
.timeline small,
.record strong,
.record small,
.runs strong,
.runs small,
.workspace-option strong,
.workspace-option small {
  display: block;
}
.work-title strong,
.timeline strong,
.runs strong,
.record strong,
.workspace-option strong {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.work-title small,
.timeline small,
.record small,
.runs small {
  margin-top: 3px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  white-space: nowrap;
  border-radius: 100px;
  padding: 4px 8px;
  font: 600 10px/1.3 var(--sans);
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.chip.green {
  background: #e0eddc;
  color: #3d6638;
}
.chip.blue {
  background: #e5edf2;
  color: #43687b;
}
.chip.amber {
  background: #f4ebd3;
  color: #7b6322;
}
.chip.muted {
  background: #eceee6;
  color: #606958;
}
.timeline,
.runs {
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  overflow-wrap: anywhere;
}
.timeline li,
.runs li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0 11px;
}
.timeline li:last-child,
.runs li:last-child {
  padding-bottom: 4px;
}
.timeline-dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 5px 1px 0;
  background: #7f9a77;
  border: 2px solid #e0ead8;
  box-shadow: 0 0 0 1px #b5c6ae;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 23px;
  bottom: -7px;
  width: 1px;
  background: #d9dfd2;
}
.timeline small span {
  padding: 0 6px;
}
.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
}
.icon-btn:hover {
  background: #75907124;
}
.mobile-menu,
.scrim {
  display: none;
}
body[data-role="client"] .agency-only {
  display: none;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 22px 20px 25px;
}
.empty-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
}
.empty strong {
  font-size: 14px;
}
.empty p,
.card-copy,
.meta,
.loading,
.error-box p {
  font-size: 13px;
  color: var(--soft);
}
.empty .btn {
  margin-top: 8px;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f2f4ea;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #647363;
  font-weight: 650;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.record {
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  padding: 3px 0;
}
.table-wrap td {
  overflow-wrap: anywhere;
}
.page-editor {
  padding: 30px clamp(20px, 4vw, 64px) 36px;
  background: #f1f3e8;
}
.mini-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #586c52;
}
.page-editor h3 {
  font-size: clamp(32px, 4vw, 55px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 13px 0 15px;
  overflow-wrap: anywhere;
}
.long-copy,
.card-copy,
.narrative dd,
.meta {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.long-copy {
  max-width: 72ch;
  font: 16px/1.65 var(--title);
  color: #354939;
}
.preview-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 650;
}
.publication {
  padding: 20px;
  flex-wrap: wrap;
}
.publication strong {
  font-size: 15px;
}
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.content-card {
  padding: 20px;
  overflow: hidden;
}
.card-top {
  margin-bottom: 17px;
}
.content-card h2 {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.card-copy {
  margin: 12px 0 19px;
  line-height: 1.65;
  max-height: 260px;
  overflow: auto;
}
.meta {
  margin: 3px 0;
  font-size: 12px;
}
.narrative {
  margin: 0;
  padding: 0 20px;
}
.narrative > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.narrative > div:last-child {
  border: 0;
}
.narrative dt {
  font-size: 12px;
  font-weight: 650;
  color: var(--soft);
}
.narrative dd {
  margin: 0;
  font-size: 14px;
}
.run-icon,
.choice-icon {
  width: 34px;
  height: 34px;
}
.runs li {
  align-items: center;
}
.runs details {
  font-size: 12px;
  color: var(--soft);
  margin-top: 5px;
}
.runs summary {
  cursor: pointer;
  color: var(--green);
}
.runs details p,
.inquiry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 5px 0;
}
.runs details ul {
  padding-left: 17px;
}
.runs details li {
  list-style: disc;
  display: list-item;
  padding: 2px 0;
}
.inquiry {
  padding: 12px 14px;
  margin: 15px 0;
  background: #edf1e6;
  border-radius: 7px;
  font-size: 13px;
}
.inquiry small {
  color: var(--soft);
}
.member-list {
  padding: 0;
  list-style: none;
  margin: 16px 0;
  color: var(--soft);
  font-size: 14px;
}
.member-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.error-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.error-box p {
  margin: 10px 0;
}
dialog {
  width: min(480px, calc(100% - 28px));
  max-height: min(90dvh, 880px);
  border: 1px solid #cad4c4;
  border-radius: 13px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 22px 85px #07150f40;
}
dialog::backdrop {
  background: #11281e83;
  backdrop-filter: blur(2px);
}
#modal-body {
  padding: 24px;
}
.dialog-head {
  gap: 12px;
}
.dialog-head h2 {
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.052em;
}
.dialog-head + .dialog-lead {
  margin: 8px 0 18px;
}
form {
  margin-top: 19px;
}
.field {
  display: block;
  margin: 0 0 13px;
}
.field > span {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
}
.required {
  color: #7d8d73;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #bdc9b7;
  color: var(--ink);
  background: #fffef9;
  border-radius: 6px;
  padding: 9px 11px;
  line-height: 1.45;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 66px;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.form-error {
  color: #a03f33;
  font-size: 13px;
}
.form-error:not(:empty) {
  margin: 13px 0;
}
.suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.suggestions button {
  border: 1px solid #cfdbc6;
  border-radius: 5px;
  background: #edf1e5;
  color: var(--green);
  font-size: 11px;
  padding: 5px 8px;
}
.workspace-options {
  margin: 16px 0;
}
.workspace-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.workspace-option:last-child {
  border-bottom: 1px solid var(--line);
}
.workspace-option:hover {
  background: #eef2e7;
}
.workspace-option span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  background: #224333;
  color: #fff;
  box-shadow: 0 5px 24px #142e252b;
  border-radius: 7px;
  padding: 10px 15px;
  max-width: min(440px, calc(100vw - 32px));
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s;
}
#notice.visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 255px;
  }
  .hero-copy {
    padding: 30px 45px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 208px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .metric {
    padding: 13px;
  }
  .metric-label {
    gap: 6px;
  }
  .work-list {
    padding: 0 14px;
  }
  .panel-head {
    padding: 16px;
  }
  .timeline {
    padding-inline: 17px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 184px;
  }
  .sidebar {
    padding-inline: 10px;
  }
  .nav-item {
    font-size: 12.5px;
  }
  .switcher {
    padding: 9px 7px;
  }
  .hero-copy {
    padding-inline: 23px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 11px 10px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
  }
  .metric > small {
    font-size: 10px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: 242px;
    transform: translateX(-101%);
    visibility: hidden;
    transition:
      transform 0.18s ease,
      visibility 0.18s;
  }
  .nav-open .sidebar {
    transform: none;
    visibility: visible;
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3;
    border: 0;
    background: #152b2180;
  }
  .mobile-menu {
    display: inline-grid;
    flex: none;
  }
  .topbar {
    height: 53px;
    gap: 10px;
    padding: 0 15px;
  }
  .date-stamp {
    margin-left: auto;
    font-size: 11px;
  }
  .breadcrumbs {
    font-size: 11px;
    gap: 5px;
  }
  #main {
    padding: 21px 16px 34px;
  }
  .page-title {
    min-height: 38px;
    gap: 9px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 32px;
  }
  .page-title .btn {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 33px;
  }
  .hero {
    min-height: 195px;
    background-size: auto 100%;
    background-position: 75% center;
  }
  .hero::before {
    background-position: 75% center;
    mask-image: linear-gradient(90deg, transparent 0%, #0006 38%, #000 72%);
  }
  .hero h2 {
    font-size: 40px;
  }
  .hero-copy {
    padding: 19px;
  }
  .hero p {
    font-size: 12px;
    max-width: 230px;
  }
  .hero-btn {
    margin-top: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 13px 0;
  }
  .metric {
    padding: 12px 14px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric > strong {
    font-size: 28px;
    margin: 9px 0 4px;
  }
  .metric > small {
    font-size: 11px;
  }
  .overview-grid {
    gap: 13px;
  }
  .nav-item {
    font-size: 14px;
  }
  .card-grid {
    gap: 12px;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  th,
  td {
    padding: 11px 13px;
  }
  .table-wrap table {
    min-width: 470px;
  }
  .publication {
    align-items: flex-start;
    flex-direction: column;
  }
  .narrative > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (max-width: 420px) {
  .date-stamp svg {
    display: none;
  }
  .page-title h1 {
    font-size: 29px;
  }
  .hero {
    background-position: 71% center;
  }
  .hero-copy {
    padding-left: 15px;
  }
  .hero h2 {
    font-size: 35px;
    max-width: 185px;
  }
  .hero p {
    max-width: 180px;
  }
  .hero .wide {
    display: none;
  }
  .hero-kicker {
    font-size: 9px;
  }
  .work-title strong,
  .timeline strong {
    font-size: 12px;
  }
  .date-stamp {
    font-size: 10px;
  }
  .user-card {
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.os-form-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  border-radius: 6px;
  color: var(--green);
  background: #e5eadf;
}
.os-card h2 {
  margin-bottom: 4px;
}
.os-actions,
.os-question-tools,
.os-section-head,
.os-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.os-actions {
  margin-top: 20px;
}
.os-actions .btn {
  padding-inline: 12px;
}
.os-footer {
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--soft);
}
.btn.os-text {
  background: none;
  padding: 2px 0;
  color: var(--green);
  border: 0;
}
dialog:has(#os-editor),
dialog:has(.os-records),
dialog:has(.os-preview) {
  width: min(740px, calc(100% - 28px));
}
.os-section-head {
  justify-content: space-between;
  margin: 20px 0 10px;
}
.os-section-head h3,
.os-records h3 {
  font: 24px var(--title);
  margin: 0;
}
.os-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.os-question,
.os-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 7px;
  background: var(--card);
}
.os-question > summary,
.os-config > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  font-weight: 600;
}
.os-question > summary > strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.os-question > summary > span:last-child {
  color: var(--soft);
  font-size: 12px;
}
.os-question > summary::after,
.os-config > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid var(--soft);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin: 0 3px 3px;
}
.os-config > summary::after {
  margin-left: auto;
}
.os-question[open] > summary::after,
.os-config[open] > summary::after {
  transform: rotate(225deg);
}
.os-index {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 24px;
  border-radius: 4px;
  background: #e8eddf;
  color: var(--green);
  font: 600 12px var(--sans);
}
.os-question-body {
  margin: 0 12px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.os-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
}
.os-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.os-checks {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
.os-checks legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}
.os-question-tools {
  justify-content: flex-end;
  margin-top: 10px;
}
.os-question-tools .btn {
  font-size: 12px;
  padding: 4px 9px;
}
.os-logic {
  margin-top: 8px;
}
.os-logic > summary,
.os-config summary {
  cursor: pointer;
}
.os-logic .os-two {
  margin-top: 8px;
}
.os-config {
  margin: 18px 0;
  padding: 0 12px;
}
.os-config > summary {
  padding: 13px 0;
}
.os-config h4 {
  margin: 16px 0 6px;
}
.os-preview {
  width: 100%;
  height: min(56dvh, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.os-copy {
  margin-top: 16px;
}
.os-copy .field {
  margin-bottom: 5px;
}
.os-copy .btn {
  padding: 4px 8px;
  font-size: 12px;
}
.os-copy textarea {
  font:
    13px/1.6 ui-monospace,
    monospace;
}
.os-records section + section {
  margin-top: 20px;
}
.os-records h3 {
  margin-bottom: 10px;
}
.os-connection-list {
  list-style: none;
  padding: 0;
}
.os-connection-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.os-connection-list small {
  display: block;
  color: var(--soft);
}
.os-checkbox-list .os-check {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 530px) {
  .os-two {
    grid-template-columns: 1fr;
  }
  .os-question > summary {
    gap: 6px;
  }
  .os-question-tools {
    justify-content: flex-start;
  }
}
