:root {
  --green: #244f40;
  --deep: #153c2f;
  --sage: #e9efdf;
  --cream: #f7f8f3;
  --ink: #233b32;
  --muted: #65736b;
  --line: #dde4dc;
  --gold: #d7bc79;
  --red: #9b4033;
  --radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #be9851;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.skip {
  position: absolute;
  top: -60px;
  z-index: 9;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 0;
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--deep);
  color: #eef3e9;
  position: fixed;
  width: 244px;
  inset: 0 auto 0 0;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}
.brandmark {
  width: 43px;
  height: 48px;
  border: 1px solid #b7c69c;
  border-radius: 24px 24px 6px 6px;
  display: grid;
  place-items: center;
  font: 31px Georgia;
  color: #d4dfb8;
}
.brand strong {
  font: 26px Georgia;
  display: block;
  letter-spacing: 0.4px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a8bdac;
  margin: 45px 16px 13px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #d9e5dc;
  padding: 13px 16px;
  border-radius: 8px;
  min-height: 47px;
}
.nav a.active {
  background: #365d4b;
  color: white;
}
.nav a:hover {
  background: #2e5543;
  text-decoration: none;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: none;
  vertical-align: middle;
}
.sidebottom {
  margin-top: auto;
  padding: 28px 12px 0;
  color: #b8cabb;
  font-size: 12px;
  line-height: 1.7;
}
.sidebottom strong {
  color: #f1f5ed;
  font-size: 14px;
}
.content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 87px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  background: #fcfdf9;
  gap: 16px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.user {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
}
.avatar {
  background: #dfe7d2;
  color: var(--green);
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.user small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.preview {
  font-size: 12px;
  background: #faf0d8;
  padding: 9px 46px;
  color: #6f5325;
  border-bottom: 1px solid #eadcbb;
}
.main {
  max-width: 1450px;
  margin: auto;
  padding: 39px 46px 60px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: bold;
  color: #6f8063;
  margin: 0 0 12px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font:
    38px/1.12 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}
h2 {
  font:
    24px/1.2 Georgia,
    "Times New Roman",
    serif;
  margin: 0 0 10px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.subtext {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  background: #f0f3eb;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: var(--deep);
}
.btn.danger {
  color: var(--red);
  border-color: #e5c8c1;
}
.btn.small {
  padding: 8px 12px;
  min-height: 42px;
  font-size: 12px;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.hero {
  background: #e9eddd;
  min-height: 190px;
  border: 1px solid #dbe1cb;
  border-radius: var(--radius);
  padding: 31px 35px;
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
}
.hero h2 {
  font-size: 29px;
  max-width: 540px;
  margin-bottom: 12px;
}
.hero p {
  max-width: 630px;
  color: #61705a;
  font-size: 13px;
  margin: 0;
}
.hero-symbol {
  font: 100px Georgia;
  color: #a4b58a;
  text-align: center;
  opacity: 0.65;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 29px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--ink);
}
.stat:hover {
  border-color: #96ad87;
  text-decoration: none;
}
.stat .statlabel {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: center;
}
.stat strong {
  font: 34px Georgia;
  display: block;
  margin: 17px 0 7px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat.urgent strong {
  color: var(--red);
}
.columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.panelhead h2 {
  font-size: 22px;
  margin: 0;
}
.panelhead a {
  font-size: 12px;
  font-weight: bold;
}
.taskrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid #edf0ea;
}
.taskrow:first-of-type {
  border-top: 0;
}
.taskrow > div {
  min-width: 0;
  flex: 1;
}
.taskrow strong {
  font-size: 13px;
}
.taskrow p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.datepill {
  font-size: 11px;
  padding: 6px 9px;
  background: #eff3e9;
  color: #5c714e;
  border-radius: 5px;
  white-space: nowrap;
}
.datepill.overdue {
  background: #f9ebe5;
  color: #9b4033;
}
.badge {
  display: inline-flex;
  padding: 6px 9px;
  background: #edf0e9;
  color: #607155;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
}
.badge.interested,
.badge.joined {
  background: #e4eee4;
  color: #3b6c44;
}
.badge.followup {
  background: #fbefd7;
  color: #876a2d;
}
.badge.dnc {
  background: #f7e4e0;
  color: #8d352b;
}
.badge.declined {
  background: #eeece9;
  color: #726963;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 12px;
}
.statusbar .track {
  flex: 1;
  background: #f0f3ec;
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
}
.statusbar .track i {
  display: block;
  height: 100%;
  background: #95aa7a;
}
.statusbar > span:first-child {
  width: 122px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search {
  flex: 1;
  min-width: 220px;
}
.search input {
  padding-left: 15px;
}
.filters select {
  width: auto;
  min-width: 150px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contactcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  color: var(--ink);
}
.contactcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px #173d2b0c;
  text-decoration: none;
}
.portrait {
  height: 176px;
  background: #e8edde;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.portrait.tone1 {
  background: #e5e9e2;
}
.portrait.tone2 {
  background: #ebe7dd;
}
.portrait.tone3 {
  background: #dfe8df;
}
.portrait svg {
  width: 82px;
  height: 82px;
  stroke: #98aa89;
  stroke-width: 0.8;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fffffff0;
}
.portrait .badge.dnc {
  background: #f7e4e0;
}
.cardbody {
  padding: 20px;
}
.cardbody h3 {
  font: 21px Georgia;
  margin: 0 0 9px;
}
.cardbody p {
  font-size: 12px;
  color: var(--muted);
  min-height: 38px;
  margin: 0 0 18px;
}
.cardmeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #edf0e9;
  color: var(--muted);
  font-size: 11px;
  align-items: center;
}
.cardmeta .avatar {
  width: 25px;
  height: 25px;
  font-size: 9px;
}
.assigned {
  display: flex;
  align-items: center;
  gap: 7px;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #cbd6c5;
  border-radius: 12px;
  grid-column: 1/-1;
}
.empty h2 {
  color: var(--ink);
  font-size: 22px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spaced {
  justify-content: space-between;
}
.detailhead {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}
.detailphoto {
  width: 115px;
  height: 115px;
  border-radius: 18px;
  background: #e4ebd9;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.detailphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detailphoto svg {
  width: 65px;
  height: 65px;
  stroke: #8ba378;
}
.detailhead h1 {
  font-size: 33px;
}
.detailhead .id {
  font: 11px monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.fact dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.fact dd {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wide {
  grid-column: 1/-1;
}
.history {
  border-left: 2px solid #d9e3d0;
  padding-left: 23px;
  margin-left: 7px;
}
.entry {
  position: relative;
  padding: 0 0 26px;
}
.entry:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 3px solid white;
  background: #7f9972;
  border-radius: 50%;
  left: -31px;
  top: 2px;
}
.entry p {
  font-size: 13px;
  white-space: pre-wrap;
  margin: 9px 0;
}
.entry small {
  color: var(--muted);
  font-size: 11px;
}
.entry h3 {
  font-size: 14px;
}
.note {
  font-size: 12px;
  line-height: 1.6;
  background: #f3f5ef;
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--muted);
}
.warning {
  background: #fcf0dd;
  color: #795e2d;
}
.error {
  background: #f9e7e3;
  color: #8e352b;
  padding: 13px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0;
}
.file {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.outline {
  white-space: pre-wrap;
  font: 15px/1.85 Georgia;
  max-width: 880px;
}
.outline textarea {
  min-height: 65vh;
  font: 15px/1.7 Georgia;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: bold;
  color: #4f6155;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #cfd9ce;
  border-radius: 7px;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
input[type="file"] {
  font-size: 12px;
  padding: 10px;
}
textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.5;
}
select[multiple] {
  min-height: 130px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 23px;
}
legend {
  font: 21px Georgia;
  margin-bottom: 18px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.help {
  font-size: 11px;
  color: var(--muted);
  font-weight: normal;
  line-height: 1.5;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  line-height: 1.5;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.actions.sticky {
  position: sticky;
  bottom: 0;
  background: white;
  padding-bottom: 12px;
}
.back {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 24px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(730px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 25px 90px #14251b33;
}
dialog::backdrop {
  background: #102c225e;
  backdrop-filter: blur(3px);
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
}
.dialoghead h2 {
  margin: 0;
}
.dialogbody {
  padding: 25px 27px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.authstory {
  background: var(--deep);
  padding: 60px;
  display: flex;
  flex-direction: column;
  color: #f0f4e9;
  justify-content: space-between;
}
.authstory h1 {
  font-size: 53px;
  max-width: 450px;
  line-height: 1.17;
}
.authstory p {
  color: #b8c8b9;
  max-width: 410px;
}
.authform {
  display: grid;
  place-items: center;
  padding: 40px;
}
.authbox {
  width: 100%;
  max-width: 385px;
}
.authbox h1 {
  font-size: 32px;
}
.authbox label {
  margin-bottom: 18px;
}
.authbox .btn {
  width: 100%;
  margin-top: 6px;
}
.authbox .brand {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: white;
  padding: 14px 23px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #183c2530;
  z-index: 50;
  max-width: 90vw;
  display: none;
  font-size: 13px;
}
.loading {
  padding: 80px;
  text-align: center;
}
.muted {
  color: var(--muted);
}
.textsmall {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: normal;
}
.mobilemenu {
  display: none;
}
progress {
  accent-color: var(--green);
  width: 100%;
  height: 7px;
}
.archived {
  opacity: 0.65;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.counts {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 18px;
}
.error:empty {
  display: none;
}
.hintline {
  font-size: 11px;
  color: #778573;
  margin-top: 20px;
}
.passwordrow {
  display: flex;
  gap: 8px;
}
.passwordrow input {
  min-width: 0;
}
.passwordrow button {
  flex: none;
}
.settingsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settingsgrid .panel {
  margin: 0;
}
.banner {
  padding: 16px;
  border-radius: 10px;
  background: #f8e5df;
  color: #8d3a2e;
  margin-bottom: 20px;
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px 0;
  min-height: 44px;
  font-size: 12px;
  text-align: left;
}
.topbar .btn {
  min-height: 40px;
}
.form-section-title {
  margin: 15px 0;
}
.choicegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.choicegrid label {
  background: #f5f7f2;
  padding: 10px;
  border-radius: 7px;
}
.projectcard {
  padding: 25px;
}
.projectcard h2 {
  margin: 18px 0 12px;
}
.projectcard p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.projectcard .cardmeta {
  margin-top: 24px;
}
.progressdesc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.tabbar {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabbar a {
  font-size: 13px;
  padding: 12px 0;
}
.tabbar a.active {
  border-bottom: 2px solid var(--green);
  font-weight: bold;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 48px;
  }
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 13px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .preview {
    padding: 9px 28px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns,
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .settingsgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: auto;
    padding: 20px 18px 12px;
  }
  .brand strong {
    font-size: 23px;
  }
  .brandmark {
    width: 35px;
    height: 39px;
    font-size: 24px;
  }
  .brand small {
    font-size: 8px;
  }
  .navlabel,
  .sidebottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 3px;
    overflow: auto;
    margin-top: 20px;
  }
  .nav a {
    font-size: 11px;
    padding: 10px 12px;
    white-space: nowrap;
    gap: 6px;
    min-height: 44px;
  }
  .nav .icon {
    width: 15px;
    height: 15px;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .preview {
    padding: 9px 20px;
    font-size: 10px;
  }
  .main {
    padding: 25px 18px 40px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .heading .btn {
    padding: 10px 12px;
    font-size: 11px;
  }
  h1 {
    font-size: 31px;
  }
  .heading .subtext {
    font-size: 12px;
  }
  .hero {
    padding: 24px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-symbol {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-bottom: 22px;
  }
  .stat strong {
    font-size: 30px;
    margin: 12px 0 6px;
  }
  .stat .statlabel {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .columns {
    gap: 0;
  }
  .panel {
    padding: 20px;
  }
  .panelhead h2 {
    font-size: 21px;
  }
  .cards {
    gap: 13px;
  }
  .portrait {
    height: 142px;
  }
  .cardbody {
    padding: 16px;
  }
  .cardbody h3 {
    font-size: 19px;
  }
  .cardmeta {
    flex-wrap: wrap;
  }
  .filters {
    gap: 9px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters select {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }
  .detailhead {
    gap: 15px;
    align-items: flex-start;
  }
  .detailphoto {
    width: 75px;
    height: 85px;
    border-radius: 10px;
  }
  .detailhead h1 {
    font-size: 27px;
  }
  .detailhead .id {
    font-size: 9px;
  }
  .detailhead .row {
    gap: 7px;
  }
  .facts {
    gap: 20px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .formgrid .wide {
    grid-column: auto;
  }
  .dialoghead {
    padding: 20px;
  }
  .dialogbody {
    padding: 20px;
  }
  .auth {
    display: block;
  }
  .authstory {
    display: none;
  }
  .authform {
    padding: 45px 23px;
    min-height: 100vh;
  }
  .authbox .brand {
    display: flex;
    margin-bottom: 42px;
    color: var(--green);
  }
  .authbox .brandmark {
    color: var(--green);
    border-color: var(--green);
  }
  .crumb {
    font-size: 11px;
  }
  .user .avatar {
    width: 30px;
    height: 30px;
  }
  .user {
    font-size: 11px;
  }
  .user small {
    font-size: 9px;
  }
  .user .btn {
    font-size: 11px;
    padding: 8px;
  }
  .panel .row .btn {
    font-size: 11px;
  }
  .choicegrid {
    grid-template-columns: 1fr;
  }
  .portrait svg {
    width: 66px;
    height: 66px;
  }
  .taskrow {
    gap: 10px;
  }
  .taskrow strong {
    font-size: 12px;
  }
  .taskrow .datepill {
    font-size: 9px;
    padding: 5px;
  }
  .taskrow .avatar {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }
  .panelhead a {
    font-size: 11px;
  }
}
@media (max-width: 400px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .portrait {
    height: 190px;
  }
  .nav a {
    padding: 9px;
    font-size: 10px;
  }
  .nav .icon {
    display: none;
  }
  .heading {
    flex-wrap: wrap;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts .wide {
    grid-column: auto;
  }
  .user small {
    display: none;
  }
  .topbar {
    gap: 8px;
  }
  .crumb {
    max-width: 110px;
  }
  .main {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 760px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 4px;
  }
  .nav a {
    justify-content: center;
    padding: 10px 5px;
    font-size: 11px;
    min-height: 44px;
  }
  .nav .icon {
    display: none;
  }
  .sidebar {
    padding-bottom: 15px;
  }
}
@media (max-width: 400px) {
  .nav a {
    font-size: 10px;
  }
}
.response-wrap { max-width: 780px; margin: 48px auto; padding: 0 22px; }
.response-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
.response-wrap h2 { margin-top: 28px; }
.response-wrap label { margin-top: 18px; }
.response-wrap [hidden] { display: none; }
.response-wrap .consent { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.response-wrap .consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; }
.share-link { overflow-wrap: anywhere; }
@media(max-width: 600px) { .response-wrap { margin: 24px auto; padding: 0 16px; } }
