:root {
  font: 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color: #142e33;
  background: #f1f8f5;
  --green: #00694f;
  --border: #cbded6;
  --mint: #e4f4eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  max-width: 780px;
  background: #fff;
  margin: auto;
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

header img {
  width: 53px;
  height: 53px;
  object-fit: contain;
}

header b {
  font: 700 29px/1.05 Georgia,serif;
  color: #19363d;
}

main {
  padding: 18px 22px 26px;
}

.role,.chip {
  display: inline-block;
  background: var(--mint);
  color: #006149;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 650;
  font-size: 14px;
}

.demo,.warn {
  background: #ffead1;
  color: #874100;
}

.demo {
  margin-left: 7px;
}

h1 {
  font-size: clamp(26px,6vw,36px);
  line-height: 1.13;
  letter-spacing: -.03em;
  margin: 15px 0;
}

h2 {
  font-size: 20px;
  margin: 20px 0 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

.link,.row,summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.link:after,summary:after {
  content: "›";
  color: var(--green);
  font-size: 21px;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open]>summary:after {
  content: "⌄";
}

.row>span:last-child,.row>strong {
  text-align: right;
}

.row>span strong {
  display: block;
  color: var(--green);
}

.back {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  min-height: 44px;
  font-weight: 600;
}

.date,.empty,small {
  color: #506963;
}

.seg {
  display: flex;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}

.seg a {
  flex: 1;
  text-align: center;
  padding: 11px 3px;
  min-height: 44px;
  font-size: 14px;
  align-content: center;
}

.seg a+a {
  border-left: 1px solid var(--border);
}

.seg .active,button,.hero {
  background: var(--green);
  color: white;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
  margin: 12px 0;
  border-radius: 13px;
}

.hero strong {
  font-size: clamp(30px,7vw,40px);
  font-variant-numeric: tabular-nums;
  line-height: 1.16;
}

.hero span {
  font-weight: 650;
}

.hero small {
  color: inherit;
}

.mint {
  color: #164c3f;
  background: var(--mint);
}

.amber {
  color: #683908;
  background: #ffecd5;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 16px 0;
}

.tile {
  background: var(--mint);
  color: #004c3a;
  padding: 20px 15px;
  border-radius: 12px;
  font-weight: 700;
  min-height: 70px;
  align-content: center;
}

.link:hover,.row[href]:hover,summary:hover {
  background: #f3f8f5;
}

form {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #345148;
}

button,input,select {
  font: inherit;
  border: 1px solid #9db8ac;
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  min-height: 44px;
}

input,select {
  background: white;
  color: #193b32;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 650;
}

.filters {
  display: flex;
  align-items: end;
}

.filters label {
  flex: 1;
}

.filters button {
  background: #e5f3ed;
  color: var(--green);
}

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 9px 0;
}

details>form,details>p {
  margin: 12px;
}

nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px,100%);
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 4px 2px calc(5px + env(safe-area-inset-bottom));
  z-index: 2;
}

nav a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  min-height: 48px;
  padding: 3px;
  color: #4e625c;
}

nav i {
  display: block;
  font: 600 21px/1.3 sans-serif;
}

nav [aria-current] {
  color: var(--green);
  font-weight: bold;
}

.secret {
  overflow-wrap: anywhere;
  user-select: all;
  display: block;
  padding: 10px;
  background: var(--mint);
}

.notice {
  border-left: 3px solid #b65b0c;
  padding: 9px 12px;
}

.chip {
  white-space: normal;
}

a:focus-visible,summary:focus-visible,button:focus-visible {
  outline: 3px solid #df893a;
  outline-offset: 2px;
}

@media(max-width:420px) {
  main {
    padding: 13px;
  }
  header {
    padding: 8px 14px;
  }
  .row {
    padding: 12px 8px;
  }
}

@media(min-width:900px) {
  .shell {
    margin-top: 16px;
    box-shadow: 0 6px 32px #19473512;
    border-radius: 16px;
  }
  main {
    padding: 22px 34px;
  }
}

.brandmark {
  position: relative;
  display: block;
  width: 53px;
  height: 53px;
  overflow: hidden;
}

.brandmark img {
  position: absolute;
  width: 67px;
  height: auto;
  max-width: none;
  left: -7px;
  top: -11px;
}

.chip {
  flex-shrink: 0;
  max-width: 48%;
  overflow-wrap: normal;
  word-break: normal;
}

.tile svg,nav svg {
  width: 24px;
  height: 24px;
  display: block;
}

.tile svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

nav svg {
  margin: 0 auto 3px;
}

.counts {
  border-radius: 12px;
  padding: 14px;
  background: var(--mint);
  margin: 12px 0;
}

.counts>span {
  font-weight: 650;
}

.counts>div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.counts>div>span {
  flex: 1;
}

.counts>div>span+span {
  border-left: 1px solid #9bbfb0;
  padding-left: 14px;
}

.counts b {
  font-size: 26px;
}

.dark {
  background: var(--green);
  color: white;
}

.dark b {
  font-size: 38px;
  display: block;
}

.dark>span {
  display: block;
  margin-bottom: 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}

th,td {
  padding: 9px 5px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th:first-child {
  text-align: left;
}

thead {
  background: var(--mint);
}

tbody th {
  font-weight: 550;
}

.primary>summary {
  background: var(--green);
  color: white;
  border-radius: 9px;
  font-weight: 650;
}

.primary>summary:after {
  color: inherit;
}

.primary>summary:hover {
  background: #00563f;
}
