:root {
  --paper: #f6f6ef;
  --white: #fffef9;
  --ink: #202f29;
  --muted: #5e7065;
  --line: #daddcf;
  --green: #194b40;
  --lime: #e3efad;
  --red: #9d412d;
  --serif: Georgia, 'Times New Roman', serif;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a.btn {
  cursor: pointer;
  color: inherit;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bc851f;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(38px, 5vw, 66px);
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 22px;
}
.muted,
small,
time {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo {
  width: 37px;
  height: 37px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 24px/1 var(--serif);
  letter-spacing: -0.04em;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #eeefe6;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.rail .brand {
  padding: 0 8px;
}
.railnav {
  display: grid;
  gap: 5px;
  margin-top: 56px;
}
.navbtn {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 12px 15px;
  min-height: 46px;
  border-radius: 10px;
  font-size: 15px;
}
.navbtn:hover,
.soft:hover,
.row:hover {
  background: #e9eddf;
}
.navbtn.current {
  background: #dce6ce;
  color: #153f34;
  font-weight: 650;
}
.railfoot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 0;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbe2cb;
  color: #395144;
  display: grid;
  place-items: center;
  font: 20px var(--serif);
}
.shell {
  margin-left: 220px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px clamp(18px, 4vw, 64px);
  min-height: 66px;
}
.topactions,
.actions,
.tags,
.hgroup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
}
.iconbtn:hover {
  background: #e9eddf;
}
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 64px) 72px;
}
.pagetitle {
  margin: 7px 0 24px;
}
.hero,
.cover {
  position: relative;
  background: var(--green);
  color: var(--white);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}
.hero {
  padding: 28px clamp(22px, 3vw, 42px);
  margin: 24px 0 32px;
  min-height: 182px;
  display: flex;
  align-items: center;
}
.hero h2 {
  font-size: clamp(30px, 3vw, 44px);
  max-width: 500px;
}
.hero .actions {
  margin-top: 18px;
}
.wave {
  position: absolute;
  right: -3%;
  top: 4%;
  width: 45%;
  height: 96%;
  z-index: -1;
  color: #d7e7a0;
  opacity: 0.84;
}
.hero > div {
  max-width: 60%;
}
.btn,
.primary,
.soft,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
}
.hero .primary {
  background: var(--lime);
  color: var(--green);
}
.hero .soft {
  color: white;
  border-color: #7f9b85;
  background: transparent;
}
.soft {
  border: 1px solid var(--line);
  background: var(--white);
}
.danger {
  color: var(--red);
  border: 1px solid #d9bcb4;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.count,
.pill {
  display: inline-flex;
  align-items: center;
  background: #ecf0df;
  color: #425743;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
}
.count {
  min-width: 26px;
  justify-content: center;
}
.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 14px 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  min-height: 60px;
}
.rowmain {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 4px;
}
.rowmain strong {
  font-size: 15px;
  display: block;
  overflow-wrap: anywhere;
}
.rowmain small {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
.check {
  border: 1px solid #92a397;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
}
.check .icon {
  width: 16px;
}
.notice {
  border-left: 3px solid #af8f3a;
  background: #f4efdc;
  padding: 10px 14px;
  font-size: 14px;
  margin: 10px 0;
}
.footnote {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.capturebar {
  display: grid;
  gap: 10px;
  background: #f0f2e6;
  padding: 16px;
  border-radius: 14px;
}
.capturebar textarea {
  min-height: 88px;
}
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.capturebar textarea,
.filters input,
.filters select {
  width: 100%;
  border: 1px solid #bec9bb;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
}
.field textarea {
  min-height: 72px;
}
.grid2,
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.filters {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.filters input:first-child {
  grid-column: span 2;
}
.conversation {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.quote {
  font: 21px/1.4 var(--serif);
  overflow-wrap: anywhere;
  margin: 8px 0 14px;
}
.record.active {
  color: #8d311e;
  background: #fff0dc;
}
.record.active .icon {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.3;
  }
}
dialog {
  padding: 0;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(610px, 94vw);
  max-height: 89dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #122d245e;
}
.modalbody {
  padding: 24px;
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.modalhead h2 {
  font-size: 30px;
}
.modalbody details {
  margin: 12px 0 18px;
}
.modalbody summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.modalbody .actions {
  margin: 10px 0;
}
.modalbody h3 {
  margin: 22px 0 12px;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #223e32;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 16px #14282026;
  z-index: 9;
  max-width: 90vw;
  font-size: 14px;
}
.loading {
  padding: 36px;
}
.loginpage {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  max-width: 1110px;
  margin: auto;
  padding: 40px;
}
.loginpage > .brand {
  margin: 0 0 26px;
}
.loginwrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
}
.cover {
  border-radius: 0;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
}
.cover h1 {
  font-size: clamp(40px, 4.5vw, 66px);
  max-width: 8em;
}
.cover .wave {
  height: 44%;
  width: 95%;
  right: -9%;
  top: 52%;
  opacity: 0.8;
}
.loginform {
  padding: clamp(24px, 5vw, 65px);
  align-self: center;
}
.loginform h2 {
  font-size: clamp(30px, 3vw, 41px);
  margin-bottom: 24px;
}
.loginform .primary {
  width: 100%;
}
.mobilebrand,
.bottomnav {
  display: none;
}
textarea {
  resize: vertical;
}
audio {
  max-width: 100%;
}
.error {
  color: var(--red);
  font-size: 14px;
}
.inbox {
  display: grid;
  gap: 10px;
}
.inbox article {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.inbox strong,
.inbox small {
  display: block;
}
button[data-op='delete'] {
  margin-left: auto;
}
.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .rail {
    width: 180px;
    padding: 26px 12px;
  }
  .shell {
    margin-left: 180px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .hero > div {
    max-width: 70%;
  }
  .top {
    padding: 10px 22px;
  }
  .page {
    padding: 25px 22px 72px;
  }
  .panel {
    padding: 18px;
  }
}
@media (max-width: 680px) {
  .rail {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .mobilebrand {
    display: flex;
    font-size: 20px;
  }
  .mobilebrand .logo {
    width: 29px;
    height: 29px;
  }
  .top {
    min-height: 54px;
    padding: 7px 14px;
  }
  .top > .eyebrow {
    display: none;
  }
  .topactions {
    gap: 5px;
  }
  .topactions .iconbtn {
    width: 40px;
    height: 40px;
  }
  .page {
    padding: 22px 16px 108px;
  }
  .bottomnav {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    z-index: 3;
  }
  .bottomnav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 11px;
    padding: 7px 8px;
    min-width: 56px;
    color: var(--muted);
    border-radius: 10px;
  }
  .bottomnav button.current {
    color: var(--green);
    background: #e4ead8;
  }
  .hero {
    min-height: 170px;
    margin: 15px 0 22px;
    border-radius: 15px;
    padding: 18px;
  }
  .hero > div {
    max-width: 100%;
  }
  .hero h2 {
    max-width: 210px;
  }
  .hero .wave {
    width: 48%;
    right: -13%;
    opacity: 0.55;
  }
  .panel h2 {
    font-size: 25px;
  }
  .hero .actions {
    gap: 6px;
  }
  .columns,
  .stack {
    gap: 14px;
  }
  .loginpage {
    padding: 20px;
  }
  .loginwrap {
    grid-template-columns: 1fr;
  }
  .cover {
    min-height: 182px;
    padding: 22px;
  }
  .cover h1 {
    font-size: 35px;
    max-width: 8em;
  }
  .cover .wave {
    width: 50%;
    height: 90%;
    right: -9%;
    top: 3%;
  }
  .loginform {
    padding: 26px 22px;
  }
  .grid2 {
    gap: 0 10px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modalbody {
    padding: 18px;
  }
  #toast:not(:empty) {
    bottom: 84px;
  }
  .pagetitle {
    margin-bottom: 17px;
  }
  .brand {
    font-size: 22px;
  }
}
.reviews {
  margin-top: 22px;
}
.source-card {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.evidence {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.source-card blockquote,
.modalbody blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid #a1b59b;
  font-family: var(--serif);
}
.source-body,
.draft-edit {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.draft-edit {
  display: block;
  width: 100%;
  min-height: 80px;
}
.paircode {
  font-size: 32px;
  letter-spacing: 0.12em;
  margin-top: 14px;
}
.capturebar + .actions {
  margin-top: 12px;
}

a.btn.primary {
  color: var(--white);
}
