:root {
  --card: #ffffff;
}
:root[data-theme="dark"] {
  --card: #1c1c1e;
}
button.button {
  border: 0;
}
button.button.secondary {
  background: var(--background);
  color: var(--ink);
}
.button.wide {
  width: 100%;
  height: 50px;
  border-radius: 14px;
}
.pricing {
  width: min(100%, 1168px);
  gap: 48px;
}
.pricing .intro {
  align-items: center;
  text-align: center;
}
.plan-cards {
  display: flex;
  gap: 16px;
}
.plan-card {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--background);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--outline);
  text-align: left;
}
.plan-card.on {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.plan-card .button {
  margin-top: auto;
}
.plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price b {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.6px;
}
.plan-price span,
.plan-credits small,
.lines span,
.rules p,
.kv,
.hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--soft);
}
.plan-price span {
  font-size: 15px;
  font-weight: 500;
}
.plan-credits {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.plan-credits small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: var(--canvas);
  font:
    500 12px/1 "IBM Plex Mono",
    monospace;
  color: var(--soft);
  white-space: nowrap;
}
.lines > div {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.lines > div > div {
  flex: 1;
}
.lines b,
.rules b {
  display: block;
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
}
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  margin-top: 8px;
}
.rules > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.rules b {
  font-size: 16px;
  line-height: 21px;
}
.rules p {
  margin: 4px 0 0;
}
.billing h2 {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -1px;
}
.billing {
  width: min(100%, 1128px);
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.billing:has(.invite-row) {
  width: min(100%, 868px);
}
.billing h1 {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -1.4px;
}
.billing > p {
  margin: -16px 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--soft);
}
.back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}
.columns {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
.columns > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel {
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel h3,
.dialog h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.panel h3 .hint,
.panel h3 .more {
  margin-left: auto;
  font-weight: 400;
}
.buttons {
  display: flex;
  gap: 10px;
}
.buttons .button {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  height: 44px;
  font-size: 15px;
}
.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan-summary {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.plan-summary div {
  flex: 1;
}
.plan-summary .button {
  width: 300px;
}
.panel > .link {
  align-self: flex-end;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.kv b {
  color: var(--ink);
  font-weight: 500;
}
.ring {
  position: relative;
  width: 188px;
  height: 188px;
  margin: 0 auto;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke: var(--canvas);
  stroke-width: 8;
}
.ring circle + circle {
  stroke: var(--ink);
  stroke-linecap: round;
}
.ring div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}
.ring b {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.4px;
  color: var(--ink);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.table th {
  text-align: left;
  font:
    500 12px/1 "IBM Plex Mono",
    monospace;
  color: var(--grey);
  letter-spacing: 0.3px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.table th + th,
.table td + td {
  padding-left: 12px;
}
.table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table .soft {
  color: var(--soft);
  white-space: nowrap;
}
.table .number {
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  white-space: nowrap;
}
.table .link {
  float: right;
}
.bar {
  display: inline-block;
  width: 120px;
  height: 6px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 3px;
  background: var(--canvas);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--ink);
}
.invite-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 10px 10px 10px 14px;
}
.invite-link code {
  flex: 1;
  font:
    500 14px/1.5 "IBM Plex Mono",
    monospace;
}
.copy {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--background);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--outline);
  font-size: 12px;
  font-weight: 500;
}
.copy svg,
.button svg {
  width: 16px;
  height: 16px;
}
.invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.invite-row .invite-link {
  flex: 1;
}
.invite-row .button {
  height: 44px;
  font-size: 15px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--outline);
  font-weight: 500;
}
.choice input,
.limits input {
  position: absolute;
  opacity: 0;
}
.choice::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--outline);
}
.choice:has(:checked) {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.choice:has(:checked)::before {
  box-shadow: inset 0 0 0 6px var(--ink);
}
.choice span {
  margin-left: auto;
  color: var(--soft);
  font-weight: 400;
}
.limits {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: var(--canvas);
}
.limits label {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--soft);
}
.limits label:has(:checked) {
  background: var(--background);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--outline);
}
input.toggle,
.toggle {
  display: block;
  appearance: none;
  width: 46px;
  height: 28px;
  margin: 0 0 0 auto;
  border-radius: 14px;
  background: var(--outline);
  position: relative;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.toggle:is(:checked, .on) {
  background: var(--ink);
}
.toggle:is(:checked, .on)::after {
  left: 20px;
  background: var(--background);
}
.reload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
}
.reload-row b {
  display: block;
  font-size: 15px;
  line-height: 20px;
}
.dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 96px auto 0;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 80px rgba(0, 0, 0, 0.18);
  padding: 28px;
}
.dialog::backdrop {
  background: color-mix(in srgb, var(--background) 78%, transparent);
  backdrop-filter: blur(6px);
}
.dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dialog h3 {
  justify-content: space-between;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.6px;
}
.dialog .kicker {
  margin: 4px 0 0;
  font:
    500 13px/1 "IBM Plex Mono",
    monospace;
  color: var(--grey);
  letter-spacing: 0.4px;
}
.dialog .hint {
  margin: 0;
}
p.tax {
  margin: -32px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--grey);
}
.billing > p.tax,
.dialog .tax {
  margin: -8px 0 0;
}
.dialog .link {
  align-self: center;
  color: var(--grey);
  font-size: 13px;
  font-weight: 400;
}
.close {
  border: 0;
  padding: 0;
  background: none;
  color: var(--grey);
  display: flex;
}
.done {
  padding: 120px 24px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.done > span {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done h1 {
  font-size: 36px;
  line-height: 42px;
  letter-spacing: -1.2px;
}
.done p {
  margin: 0;
  max-width: 440px;
  font-size: 18px;
  line-height: 28px;
  color: var(--soft);
}
.done .panel {
  width: min(360px, 100%);
  gap: 8px;
  background: var(--canvas);
  box-shadow: none;
  padding: 20px 24px;
}
.done .button {
  margin-top: 8px;
}
@media (max-width: 1080px) {
  .plan-cards,
  .columns {
    display: flex;
    flex-direction: column;
  }
  .rules {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pricing .intro {
    align-items: flex-start;
    text-align: left;
  }
  .invite-row {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-signed-in="true"][data-wide="true"] {
    background: var(--background);
    overflow: auto;
  }
  .billing h1 {
    font-size: 34px;
    line-height: 40px;
  }
}
#wide-root {
  width: 100%;
}
body:not([data-signed-in="true"][data-wide="true"]) #wide-root,
body[data-wide="true"] .desktop-app {
  display: none;
}
