:root {
  color-scheme: light;
  --ink: #142d29;
  --paper: #f3f5f1;
  --green: #215744;
  --line: #d6ddd5;
  --muted: #4d605a;
  --warm: #d4e88c;
  --panel: #fff;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-height: 46px;
  color: var(--ink);
  font-weight: 630;
}
button:active {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86a536;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.soft {
  background: #e6eddf;
  border-color: transparent;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 13px) max(calc((100vw - 720px) / 2), 20px) 13px;
  background: #112b27;
  color: #f8fbf6;
}
.top > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
}
.brandmark {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  color: #153d32;
  background: var(--warm);
  font-family: Georgia, serif;
  font-weight: bold;
}
.top > span {
  font-size: 0.84rem;
  color: #d1e0d6;
}
.online:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  margin-right: 6px;
  background: #bfdf7e;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px calc(105px + env(safe-area-inset-bottom));
  min-height: 75vh;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 8vw, 3.35rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 0.4rem 0 1.2rem;
}
h2 {
  font-size: 1.26rem;
  line-height: 1.24;
  letter-spacing: -0.024em;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.02rem;
  line-height: 1.4;
}
p {
  line-height: 1.5;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 0.85rem;
  line-height: 1.35;
}
.section {
  margin-top: 1.55rem;
}
.sectionhead,
.between,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.sectionhead h2 {
  margin: 0;
}
.sectionhead {
  margin-bottom: 0.7rem;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.stack {
  display: grid;
  gap: 0.66rem;
}
.card,
.issue,
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-wrap: anywhere;
}
.issue,
.project {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rowbody {
  min-width: 0;
  flex: 1;
}
.rowbody strong,
.rowbody small {
  display: block;
}
.rowbody small {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 450;
  line-height: 1.4;
  margin-top: 3px;
}
.issue i,
.project i {
  font-style: normal;
  color: #607067;
}
.kind {
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9px;
  background: #eaf0e3;
  color: #31513e;
  padding: 0.5rem;
  min-width: 42px;
  text-align: center;
}
.project img {
  width: 64px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}
.hero {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  width: 100%;
  min-height: 154px;
  overflow: hidden;
  background: #223e36;
  color: #fff;
}
.hero > div {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
}
.hero .meta {
  color: #d6e5d0;
}
.hero strong {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.06;
  font-weight: 500;
}
.hero img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  max-height: 230px;
  object-fit: cover;
}
.tag {
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 0.25rem 0.48rem;
  background: var(--warm);
  color: var(--ink);
}
.empty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 15px;
  border: 1px solid #cbd8c4;
  border-radius: 14px;
  background: #e9f0e4;
}
.empty b {
  background: #42684c;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
}
.empty p {
  font-weight: 550;
}
.back {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 0.94rem;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.25rem 0;
}
.media {
  display: block;
  max-height: 52dvh;
  width: 100%;
  object-fit: contain;
  background: #142924;
  border-radius: 12px;
  margin: 0.6rem 0;
}
.media:is(audio) {
  height: 52px;
  background: transparent;
}
.details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 0.96rem;
}
.badge {
  display: inline-block;
  color: var(--green);
  background: #e6ede2;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.83rem;
}
.card .details {
  margin: 0.65rem 0;
}
.form {
  display: grid;
  gap: 0.92rem;
}
.form label,
label.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 580;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.check input {
  width: 21px;
  height: 21px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.two > * {
  min-width: 0;
}
input,
select,
textarea {
  min-height: 46px;
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #aab9ad;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  line-height: 1.35;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
.scroll {
  display: flex;
  overflow: auto;
  gap: 0.5rem;
  padding: 3px 0 0.5rem;
}
.scroll button {
  white-space: nowrap;
  min-height: 43px;
  flex: none;
}
.selected {
  background: #dfeace;
  border-color: #7a9668;
}
.navstep {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0 0.85rem;
}
.navstep button {
  padding: 0.5rem 0.75rem;
}
.navstep select {
  min-width: 0;
}
.frame-card {
  scroll-margin-top: 9px;
}
.frame-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.frame-caption select {
  width: auto;
  max-width: 65%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.frame-card .media {
  height: clamp(144px, 36dvh, 400px);
  object-fit: contain;
}
.frame-dock {
  position: fixed;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1.3fr) minmax(0, 1fr) 48px;
  gap: 6px;
  width: min(100%, 760px);
  margin: auto;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.frame-dock button {
  min-height: 48px;
  padding: 0.45rem 0.2rem;
}
#framePrev, #frameNext {
  font: 1.8rem/1 system-ui;
}
#frameBatch .meta {
  margin-top: 0.4rem;
}
#frameEditor {
  width: min(90vw, 410px);
  max-height: 82dvh;
}
#frameEditor textarea {
  min-height: 6rem;
}
#frameSuggest {
  margin-top: 0.6rem;
}
.loading {
  padding: 2rem 0;
  color: var(--muted);
}
#tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #fbfcf9f7;
  border-top: 1px solid var(--line);
  padding: 5px 8px calc(env(safe-area-inset-bottom) + 5px);
  backdrop-filter: blur(14px);
  z-index: 2;
}
#tabs button {
  width: min(28%, 210px);
  min-height: 53px;
  border: none;
  background: transparent;
  color: #53675f;
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
}
#tabs button b {
  font-family: Arial, sans-serif;
  font-size: 1.23rem;
  line-height: 1;
}
#tabs button.active {
  background: #e4eddc;
  color: #183f30;
}
.error {
  color: #87332a;
  background: #fff0ea;
  border-radius: 10px;
  padding: 0.7rem;
  margin: 0.7rem 0;
}
.notice {
  padding: 0.7rem 0.85rem;
  background: #eff1d7;
  border-radius: 10px;
  line-height: 1.5;
}
#toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  z-index: 5;
  max-width: 90%;
  width: max-content;
}
dialog {
  max-width: min(90vw, 410px);
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  padding: 22px;
}
dialog::backdrop {
  background: #0e261dcc;
}
[hidden] {
  display: none !important;
}
details {
  margin-top: 0.8rem;
}
summary {
  cursor: pointer;
  padding: 0.65rem 0;
  font-weight: 600;
}
#login {
  max-width: 420px;
  margin: 8vh auto;
}
#login input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
}
.split {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.note {
  border-inline-start: 3px solid #b8d27a;
  padding-left: 0.8rem;
  margin: 0.6rem 0;
}
.rowbody small,
.kicker {
  overflow-wrap: anywhere;
}
@media (min-width: 650px) {
  main {
    padding-top: 34px;
  }
  .hero {
    min-height: 190px;
  }
  .hero > div {
    padding: 26px;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 13px;
    padding-right: 13px;
  }
  .hero > div {
    padding: 12px;
  }
  .two {
    gap: 0.45rem;
  }
  .navstep button {
    font-size: 0.88rem;
  }
}
