:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: #183c34;
  background: #f4f3ec;
  font-synthesis: none;
  --green: #123f36;
  --accent: #d4ed9c;
  --line: #d5dcd4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 12px 22px;
  background: var(--green);
  color: white;
  font-weight: 650;
  cursor: pointer;
}
button.secondary {
  background: white;
  color: var(--green);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #6e9c36;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.55;
}
label {
  line-height: 1.5;
}
input:not([type='radio']),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid #9eada3;
  border-radius: 10px;
  background: white;
  color: #183c34;
  padding: 12px;
  margin: 7px 0 20px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  width: min(100% - 32px, 640px);
  margin: 30px auto;
}
.intro {
  margin-top: 10vh;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 750;
  margin-bottom: 22px;
}
.muted,
small {
  color: #566c63;
}
.badge {
  display: inline-block;
  background: #e5efd7;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 14px;
}
.notice {
  padding: 14px 18px;
  background: #fff1cd;
  border: 1px solid #d8be72;
  border-radius: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.error {
  color: #8b261c;
  background: #fff0ed;
  border: 1px solid #d3a7a0;
  border-radius: 10px;
  padding: 12px;
  line-height: 1.4;
}
.error:empty {
  display: none;
}
.progress {
  height: 6px;
  background: #e3e8df;
  border-radius: 5px;
  margin: 12px 0 24px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #5c8339;
  width: 33%;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0 0 27px;
}
legend {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 12px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 9px;
  cursor: pointer;
}
.choice:has(input:checked) {
  background: #edf4df;
  border-color: #608340;
}
.choice input {
  width: 21px;
  height: 21px;
  flex: none;
  margin: 1px 0;
  accent-color: var(--green);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.actions button:last-child {
  flex: 1;
}
.review {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.review dt {
  font-weight: 650;
  margin-top: 10px;
}
.review dd {
  margin: 0;
  color: #566c63;
}
.success {
  font-size: 64px;
  background: #e5efd7;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  text-align: center;
  margin-bottom: 25px;
}
.screen {
  min-height: 100vh;
  padding: 30px 42px;
  background: #f4f3ec;
  display: grid;
  grid-template-columns: minmax(270px, 30%) 1fr;
  gap: 28px;
}
.screen h1 {
  font-size: clamp(28px, 2.8vw, 54px);
  margin-bottom: 10px;
}
.screen aside {
  background: var(--green);
  border-radius: 24px;
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.screen aside h2 {
  font-size: clamp(26px, 2.4vw, 42px);
  margin: 0;
}
.screen aside img {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  height: auto;
}
.screen aside a {
  color: white;
  font-size: clamp(15px, 1.4vw, 24px);
  overflow-wrap: anywhere;
}
.screen aside p {
  margin: 0;
  color: #deeadf;
  font-size: 18px;
}
.screen .main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.screen .eyebrow {
  margin-bottom: 10px;
}
.screen header .muted {
  font-size: 20px;
}
.count-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 14px 0 2px;
  flex-wrap: wrap;
}
.count-row strong {
  font-size: clamp(60px, 6.8vw, 110px);
  line-height: 1;
  letter-spacing: -0.06em;
}
.count-row .denom {
  font-size: clamp(22px, 2.5vw, 42px);
}
.percent {
  font-size: 28px;
  font-weight: 700;
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 10px;
}
.freshness {
  font-size: 16px;
  margin: 10px 0 18px;
  color: #566c63;
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}
.chart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.chart h2 {
  font-size: clamp(18px, 1.65vw, 27px);
  line-height: 1.25;
  margin: 6px 0 18px;
}
.chart .branch {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #566c63;
}
.bar-row {
  margin-bottom: 13px;
}
.bar-label {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.3;
  margin-bottom: 6px;
}
.bar-label span {
  overflow-wrap: anywhere;
}
.bar {
  height: 10px;
  background: #edf0e9;
  border-radius: 5px;
  overflow: hidden;
}
.bar i {
  display: block;
  background: #72984a;
  height: 100%;
  width: var(--width);
}
.screen footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 14px;
}
.screen footer button {
  min-height: 42px;
  padding: 8px 16px;
}
.screen .notice {
  font-size: 16px;
  margin: 5px 0 12px;
}
.empty {
  padding: 20px 0;
  color: #566c63;
}
.manage {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}
.manage .card {
  width: 100%;
  margin: 20px 0;
}
.manage .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.manage pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.manage .session-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
details {
  margin: 20px 0;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 650;
}
.connection {
  font-size: 13px;
}
.hidden {
  display: none !important;
}
@media (max-width: 700px) {
  .card {
    padding: 24px 20px;
    margin: 16px auto;
  }
  .screen {
    padding: 15px;
    grid-template-columns: 1fr;
  }
  .screen aside {
    padding: 20px;
  }
  .screen aside img {
    max-width: 260px;
  }
  .charts {
    grid-template-columns: 1fr;
  }
  .screen footer {
    flex-wrap: wrap;
  }
  .manage .grid {
    grid-template-columns: 1fr;
  }
  .count-row {
    gap: 10px;
  }
  .screen header .muted {
    font-size: 16px;
  }
  h1 {
    font-size: 32px;
  }
  .actions button {
    padding: 12px 16px;
  }
  .manage {
    padding: 0 12px;
  }
}
@media (min-width: 1200px) and (max-height: 800px) {
  .screen {
    padding: 22px 30px;
    gap: 22px;
  }
  .screen aside {
    padding: 22px;
  }
  .screen aside img {
    max-width: 290px;
  }
  .chart {
    padding: 16px;
  }
  .chart h2 {
    margin-bottom: 12px;
  }
  .bar-row {
    margin-bottom: 10px;
  }
  .count-row {
    margin: 8px 0;
  }
  .freshness {
    margin: 8px 0 12px;
  }
  .screen header .muted {
    font-size: 18px;
  }
  .screen footer {
    margin-top: 10px;
  }
}
.bar-label b {
  flex-shrink: 0;
  white-space: nowrap;
}
.choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
fieldset {
  min-width: 0;
}
.screen .main {
  min-height: 0;
}
@media (min-width: 1200px) and (max-height: 800px) {
  .screen {
    padding: 18px 26px;
  }
  .screen h1 {
    font-size: 34px;
  }
  .screen .count-row strong {
    font-size: 76px;
  }
  .screen .count-row .denom {
    font-size: 28px;
  }
  .screen aside h2 {
    font-size: 30px;
  }
  .chart h2 {
    font-size: 21px;
  }
  .bar-label {
    font-size: 16px;
  }
  .screen .freshness {
    font-size: 14px;
  }
  .bar-row {
    margin-bottom: 9px;
  }
  .screen footer {
    font-size: 13px;
  }
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
.screen.compact .charts {
  grid-template-columns: 1fr;
}
.screen.compact .chart {
  padding: 18px 22px;
}
.screen.compact .chart h2 {
  font-size: 24px;
}
.screen.compact .bar-label {
  font-size: 18px;
}
.screen.compact .bar-row {
  margin-bottom: 9px;
}
.screen.compact .notice {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.35;
}
