:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #24261f;
  background: #f2eee5;
  font-synthesis: none;
  --paper: #f2eee5;
  --ink: #24261f;
  --muted: #63655b;
  --rust: #a53d25;
  --line: #ccc9bd;
  --green: #37613b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
.button {
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #e5e1d7;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover {
  background: #42453a;
}
.danger {
  border-color: var(--rust);
  color: var(--rust);
}
.danger:hover {
  background: #eedbd2;
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.site-header,
main,
footer {
  max-width: 1184px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span {
  color: var(--rust);
  margin-right: 8px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.eyebrow {
  font-family: Consolas, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.header-right .eyebrow {
  margin: 0;
}
main {
  min-height: 65vh;
  padding-top: 52px;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -2.5px;
  line-height: 1.04;
  margin: 0;
}
h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
}
h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}
p {
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0;
}
.intro {
  max-width: 520px;
  font-size: 19px;
  margin: 28px 0;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.plan-tag {
  padding: 8px 13px;
  border: 1px solid var(--line);
  font:
    12px Consolas,
    monospace;
  text-transform: uppercase;
}
.connection {
  display: flex;
  align-items: center;
  gap: 22px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  font-size: 14px;
  flex-wrap: wrap;
}
.connection strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.connector {
  color: var(--muted);
}
.connection .status {
  margin-left: auto;
}
.status {
  font:
    11px Consolas,
    monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.status.online {
  color: var(--green);
}
.status.online:before {
  background: var(--green);
}
.usage-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  padding: 38px 0 40px;
}
.usage-total {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 8px;
}
#usage-count {
  font-size: 72px;
  letter-spacing: -4px;
  font-weight: 500;
  line-height: 1.1;
}
#usage-allowance {
  font-size: 16px;
  color: var(--muted);
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 22px;
  border: 0;
  background: #d9d6ca;
  accent-color: var(--rust);
}
progress::-webkit-progress-bar {
  background: #d9d6ca;
}
progress::-webkit-progress-value {
  background: var(--rust);
}
progress::-moz-progress-bar {
  background: var(--rust);
}
.usage-note {
  align-self: center;
  max-width: 400px;
}
.usage-note p:first-child {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}
.usage-note button {
  margin: 4px 0 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.6;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading .eyebrow {
  color: var(--rust);
  margin-bottom: 12px;
}
#account > section:not(.usage-section) {
  border-top: 1px solid var(--ink);
  padding: 32px 0 40px;
}
#devices {
  margin-top: 24px;
}
.device {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.device:last-child {
  border-bottom: 1px solid var(--line);
}
.device h3 {
  overflow-wrap: anywhere;
}
.device .small {
  margin: 4px 0 0;
}
.device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.selected-label {
  font:
    11px Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 10px;
}
.empty {
  border: 1px dashed var(--line);
  padding: 28px;
  margin: 24px 0;
}
.setup {
  margin-top: 26px;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  font-size: 14px;
}
details p {
  max-width: 650px;
}
.copy-line {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: #e9e5db;
  padding: 12px 16px;
  max-width: 100%;
}
.copy-line code {
  font:
    12px/1.6 Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.copy-line button {
  flex-shrink: 0;
}
.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 28px 0 16px;
}
.billing-row h3 {
  font-size: 28px;
}
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.account-details {
  margin: 28px 0;
}
.account-details > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  gap: 28px;
  font-size: 14px;
  line-height: 1.6;
}
.account-details > div:last-child {
  border-bottom: 1px solid var(--line);
}
dd {
  margin: 0;
  max-width: 650px;
  overflow-wrap: anywhere;
}
dt {
  color: var(--muted);
}
.delete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.delete-row p {
  max-width: 640px;
}
.delete-row button {
  flex-shrink: 0;
}
footer {
  padding-top: 28px;
  padding-bottom: 36px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer nav {
  display: flex;
  gap: 28px;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer > span {
  align-self: center;
}
#signed-out {
  padding: 35px 0 100px;
}
#loading {
  padding: 35px 0 100px;
}
#message {
  padding: 16px 20px;
  border-left: 3px solid var(--rust);
  background: #e8e2d6;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 32px;
  max-width: 500px;
  width: calc(100% - 32px);
}
dialog::backdrop {
  background: #24261f88;
}
dialog h2 {
  margin-bottom: 20px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
dialog label {
  display: block;
  font-size: 14px;
  margin-top: 20px;
}
dialog input {
  display: block;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 12px;
  margin-top: 8px;
  width: 100%;
  font:
    16px Consolas,
    monospace;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 8px;
}
@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header {
    min-height: 84px;
  }
  .brand {
    font-size: 21px;
  }
  .header-right .eyebrow {
    display: none;
  }
  .header-right {
    gap: 0;
  }
  main {
    padding-top: 36px;
  }
  h1 {
    letter-spacing: -1.5px;
  }
  h2 {
    font-size: 27px;
  }
  .page-title {
    gap: 16px;
    align-items: center;
  }
  .connection {
    gap: 12px;
    font-size: 12px;
  }
  .connection .status {
    margin-left: 0;
  }
  .usage-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }
  .usage-note {
    max-width: none;
  }
  .usage-note p:first-child {
    font-size: 19px;
  }
  #usage-count {
    font-size: 64px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .section-heading button {
    padding: 10px;
    font-size: 12px;
  }
  .device {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .device-actions {
    grid-column: 1/-1;
    flex-wrap: wrap;
  }
  .device-actions button {
    min-width: 110px;
  }
  .billing-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .billing-actions {
    justify-content: flex-start;
  }
  .copy-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .copy-line button {
    align-self: stretch;
  }
  .account-details > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .delete-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  footer > span {
    align-self: flex-start;
  }
  footer nav {
    gap: 24px;
  }
  #signed-out {
    padding-top: 16px;
  }
  .plan-tag {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

#security-fields {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
#security-fields legend {
  font-weight: 600;
  margin-bottom: 16px;
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.workspace-field {
  grid-column: 1 / -1;
}
.security-grid label,
.full-host-control label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.security-grid input,
.security-grid select,
#full-host-duration {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font: inherit;
}
.observe-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
}
.observe-control input {
  width: 20px;
  height: 20px;
}
.full-host-control {
  border-top: 1px solid currentColor;
  padding-top: 24px;
}
.full-host-control label {
  max-width: 540px;
}
.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
#security-receipt,
#security-backend {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

#host-read-files {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: 0.65rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: vertical;
}
