:root {
  --paper: #f6f5f1;
  --ink: #202820;
  --muted: #566056;
  --line: #dedfd7;
  --green: #1b6248;
  --tint: #eef4ee;
  --amber: #87551c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.8 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  min-height: 44px;
  border: 0;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #96763e;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
header {
  height: 82px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  font-size: 21px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand small {
  font: 10px monospace;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: 10px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 400;
}
.status {
  font-size: 12px;
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 740px) 265px;
  gap: 35px;
  max-width: 1450px;
  margin: auto;
  padding: 38px 4%;
}
aside {
  padding-top: 18px;
}
.eyebrow {
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 1.6px;
  color: var(--green);
  margin-bottom: 15px;
}
h1 {
  font-size: 29px;
  line-height: 1.55;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
em {
  font-style: normal;
  color: var(--green);
}
aside p,
.controls p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
nav {
  margin-top: 35px;
}
.nav {
  display: block;
  background: transparent;
  text-align: left;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
}
.nav.active {
  color: var(--green);
  font-weight: 600;
  background: #ebf0e7;
}
.aside-foot {
  margin-top: 40px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
main {
  min-width: 0;
}
h2 {
  font-size: 27px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 15px;
  margin: 18px 0 12px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.section-head p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
}
.demo,
.notice {
  background: #edf1e9;
  color: #3e5c41;
  border: 1px solid #dce3d5;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 22px;
}
.notice {
  background: #faf1e3;
  color: var(--amber);
  border-color: #e7dfcf;
}
.error {
  background: #fff0eb;
  color: #a23e34;
  border: 1px solid #ead7d0;
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 13px;
}
.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.85fr;
  gap: 12px;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
select,
input[type='password'] {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 12px;
  margin: 7px 0 15px;
}
.card,
.pricing {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.name {
  font-size: 15px;
  font-weight: 600;
}
.small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.badge {
  white-space: nowrap;
  background: var(--tint);
  color: var(--green);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge.amber {
  background: #faf1e3;
  color: var(--amber);
}
.badge.gray {
  background: #f0f1ec;
  color: var(--muted);
}
.divider {
  border-top: 1px solid #eff0e9;
  margin-top: 17px;
  padding-top: 15px;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 7px;
  font-size: 12px;
  padding: 10px 15px;
}
.outline {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12px;
}
.full {
  width: 100%;
  margin: 8px 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.actions button {
  flex: 1;
}
.empty {
  background: #fff;
  border: 1px dashed #cbd3c4;
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.controls {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.controls h3 {
  margin-top: 0;
}
.controls label {
  margin-top: 13px;
}
.controls hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.controls details {
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding-top: 12px;
}
pre {
  font:
    10px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  max-height: 300px;
  overflow: auto;
}
.price {
  font-size: 34px;
  line-height: 1.6;
  font-weight: 600;
}
.price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.pricing {
  border-color: var(--green);
}
.pricing h3 {
  margin: 0;
}
.pricing p {
  font-size: 13px;
  color: var(--muted);
}
.unavailable {
  padding: 18px;
  background: #eceee7;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.unavailable span {
  display: block;
}
.order {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
}
.order .actions button {
  flex: none;
}
.link {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px 0;
  font-size: 12px;
  min-height: 44px;
  text-decoration: underline;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  max-width: 460px;
  width: calc(100vw - 30px);
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 20px 75px #172a2333;
}
dialog::backdrop {
  background: #1e2b245f;
  backdrop-filter: blur(2px);
}
.dialog-inner {
  padding: 25px;
}
.close {
  font-size: 23px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
}
.target {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0;
  font-size: 12px;
}
.target input,
.terms input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.inline-error {
  font-size: 12px;
  color: #a23e34;
}
.dialog-inner .demo {
  margin: 20px 0 12px;
}
button,
select {
  touch-action: manipulation;
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 25px;
  }
  .controls {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 25px 0;
    display: block;
    max-width: 600px;
  }
  .aside-foot {
    font-size: 10px;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 720px) {
  header {
    height: 70px;
    padding: 0 18px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  .status {
    font-size: 10px;
  }
  .shell {
    display: block;
    padding: 20px 16px;
  }
  aside {
    padding: 0;
  }
  aside h1,
  aside > p,
  aside > .eyebrow,
  .aside-foot {
    display: none;
  }
  nav {
    display: flex;
    margin: 0 0 25px;
    gap: 8px;
  }
  .nav {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 8px;
    text-align: center;
    font-size: 11px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1 / -1;
  }
  h2 {
    font-size: 25px;
  }
  .card {
    padding: 18px;
  }
  .name {
    font-size: 13px;
  }
  .controls {
    margin-top: 30px;
  }
  button {
    min-height: 44px;
  }
  .section-head {
    gap: 10px;
  }
  .badge {
    font-size: 10px;
  }
  .row {
    flex-wrap: wrap;
  }
  .controls .row {
    flex-wrap: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
