@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --ink: #102749;
  --muted: #536279;
  --navy: #102749;
  --gold: #ffcc33;
  --gold-ink: #865600;
  --line: #dce1e8;
  --soft-blue: #e9edf4;
  --white: #fff;
  --danger: #9c2935;
  --font: Figtree, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-color: #8492a7 var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
input,
textarea {
  caret-color: var(--gold-ink);
}
:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.13;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
p {
  max-width: 68ch;
  text-wrap: pretty;
}
small,
.hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: var(--navy);
  color: white;
  padding: 12px 20px;
}
.skip:focus {
  transform: none;
}
.masthead {
  min-height: 96px;
  max-width: 1320px;
  margin: auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.035em;
}
.brand img {
  border-radius: 10px;
}
.docs-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.docs-link:hover {
  color: var(--gold-ink);
}
.notice {
  max-width: 1224px;
  margin: 16px auto 0;
  padding: 14px 20px;
  background: #fff0b8;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fbecef;
  color: #84232e;
}
.boot,
.no-script {
  max-width: 1160px;
  margin: 70px auto;
  padding: 0 24px;
}
.boot p {
  margin-top: 16px;
}
.login {
  max-width: 1160px;
  margin: 76px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 0 36px;
  align-items: start;
}
.welcome {
  padding-top: 8px;
}
.welcome > img {
  width: 96px;
  border-radius: 22px;
  margin-bottom: 32px;
}
.welcome h1 {
  font-size: clamp(42px, 5vw, 62px);
  max-width: 9ch;
  letter-spacing: -0.04em;
}
.welcome > p {
  max-width: 31ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
}
.welcome .guest-note {
  font-size: 15px;
  margin-top: 32px;
  max-width: 36ch;
}
.auth-panel {
  padding-top: 28px;
}
.auth-panel h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-panel > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}
.field label {
  font-size: 15px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  min-width: 0;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #8492a7;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 12px;
}
.field textarea {
  min-height: 104px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #66758b;
}
.field input:disabled,
.field select:disabled {
  background: var(--soft-blue);
}
.field .code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease-out;
}
.button:hover {
  background: #f1bc20;
}
.button.secondary {
  background: transparent;
  border-color: #b8c2ce;
}
.button.secondary:hover {
  background: var(--soft-blue);
}
.button.quiet {
  background: transparent;
  padding: 8px 6px;
  color: var(--muted);
}
.button.quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}
.button.danger {
  background: transparent;
  border-color: #d8a9ae;
  color: var(--danger);
}
.button.danger:hover {
  background: #fbecef;
}
.button.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.auth-panel .actions .button:first-child {
  min-width: 160px;
}
.form-error {
  color: var(--danger);
  font-size: 15px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.form-status {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
}
.resend {
  margin-top: 20px;
}
.shell {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 96px);
}
.sidebar {
  padding: 34px 24px 28px 48px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar a:hover {
  background: var(--soft-blue);
}
.sidebar a[aria-current="page"] {
  background: #fff0b8;
  color: var(--ink);
}
.sidebar .identity {
  margin-top: auto;
  padding: 60px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sidebar .identity .button {
  margin-top: 8px;
  padding-left: 0;
}
.workspace {
  padding: 44px 48px 80px;
  min-width: 0;
}
.page-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-top p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
  max-width: 54ch;
}
.page-top > .button {
  flex-shrink: 0;
  margin-top: 3px;
}
.section {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.section h2 + p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}
.list {
  border-top: 1px solid var(--line);
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.list-row .row-main {
  min-width: 0;
  flex: 1;
}
.row-main h3,
.row-main a {
  overflow-wrap: anywhere;
}
.row-main p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.row-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-heading a {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.row-heading a:hover {
  text-decoration: underline;
}
.row-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-top: 6px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--soft-blue);
  color: #344963;
  white-space: nowrap;
}
.badge.active {
  background: #e5f0e9;
  color: #275c3b;
}
.badge.paused {
  background: #fff0b8;
  color: var(--gold-ink);
}
.empty {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.empty h2 {
  font-size: 25px;
}
.empty p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 48ch;
}
.empty .actions {
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  max-width: 730px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.key-reveal {
  margin-top: 28px;
  background: var(--navy);
  color: #f5f7fc;
  border-radius: 12px;
  padding: 24px;
  animation: reveal 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.key-reveal h3 {
  font-size: 20px;
}
.key-reveal p {
  font-size: 14px;
  margin-top: 9px;
  color: #c2cede;
}
.key-reveal input {
  margin-top: 18px;
  display: block;
  width: 100%;
  font: 13px/1.6 var(--mono);
  padding: 12px;
  border: 1px solid #526680;
  border-radius: 6px;
  background: #091b33;
  color: #f5f7fc;
  min-height: 46px;
}
.key-reveal .button {
  font-size: 14px;
}
.key-reveal .button.secondary {
  color: #f5f7fc;
  border-color: #526680;
}
.key-reveal .button.secondary:hover {
  background: #243d61;
}
.key-reveal :focus-visible {
  outline-color: var(--gold);
}
.key-reveal .form-status {
  color: #c2cede;
}
.inline-form {
  max-width: 600px;
}
.details-form {
  margin-top: 20px;
}
.detail-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.activity-list .list-row {
  align-items: start;
}
.activity-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px !important;
  color: var(--ink) !important;
  max-width: 62ch;
}
.activity-title {
  font-size: 17px;
}
.time {
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.account-email {
  overflow-wrap: anywhere;
}
.danger-section {
  margin-top: 48px;
}
.danger-section h2 {
  font-size: 22px;
}
.confirmation {
  margin-top: 18px;
  background: var(--white);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 650px;
}
.confirmation p {
  font-size: 15px;
}
.confirmation h3 {
  margin-bottom: 10px;
}
.device-name {
  font-weight: 600;
}
.loading {
  padding: 36px 0;
  color: var(--muted);
}
.compact-fields {
  max-width: 580px;
}
.session-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
}
summary:hover {
  color: var(--gold-ink);
}
.api-warning {
  max-width: 720px;
}
.native-return {
  max-width: 580px;
  margin: 70px auto;
  padding: 0 24px;
}
.native-return img {
  width: 80px;
  border-radius: 18px;
  margin-bottom: 28px;
}
.native-return p {
  margin-top: 20px;
  color: var(--muted);
}
@keyframes reveal {
  from {
    background: #243d61;
  }
  to {
    background: var(--navy);
  }
}
@media (min-width: 1400px) {
  .masthead {
    padding-inline: 36px;
  }
  .sidebar {
    padding-left: 36px;
  }
}
@media (max-width: 900px) {
  .login {
    gap: 50px;
    padding-inline: 28px;
    margin-top: 48px;
  }
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 20px;
    padding-right: 16px;
  }
  .workspace {
    padding: 36px 28px 64px;
  }
  .masthead {
    padding-inline: 28px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 16px;
  }
  .masthead {
    min-height: 80px;
    padding: 16px 20px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 36px;
  }
  .docs-link {
    font-size: 14px;
  }
  .login {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 36px auto 60px;
    padding-inline: 24px;
  }
  .welcome {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px 18px;
    align-items: center;
  }
  .welcome > img {
    width: 64px;
    grid-row: 1/3;
    margin: 0;
    border-radius: 15px;
  }
  .welcome h1 {
    font-size: 34px;
    max-width: 12ch;
  }
  .welcome > p {
    grid-column: 1/-1;
    font-size: 17px;
    max-width: 38ch;
    margin-top: 8px;
  }
  .welcome .guest-note {
    display: none;
  }
  .auth-panel {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .auth-panel h2 {
    font-size: 25px;
  }
  .shell {
    display: block;
    min-height: 0;
  }
  .sidebar {
    padding: 14px 20px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 6px;
    overflow-x: auto;
  }
  .sidebar a {
    padding: 9px 13px;
    white-space: nowrap;
  }
  .sidebar .identity {
    display: none;
  }
  .workspace {
    padding: 28px 20px 64px;
  }
  .page-top {
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
  }
  .page-top > .button {
    min-height: 42px;
    font-size: 14px;
  }
  .page-top h1 {
    font-size: 32px;
  }
  .page-top p {
    font-size: 15px;
  }
  .notice {
    margin: 12px 16px 0;
    font-size: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .list-row {
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0;
  }
  .list-row .row-main {
    min-width: 180px;
  }
  .time {
    white-space: normal;
  }
  .activity-list .time {
    width: 100%;
  }
  .section {
    margin-top: 32px;
    padding-top: 24px;
  }
  .actions {
    gap: 10px;
  }
  .confirmation {
    padding: 18px;
  }
  .key-reveal {
    padding: 20px;
  }
  .native-return {
    margin-top: 44px;
  }
  .boot {
    margin-top: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.list-row > .confirmation {
  flex-basis: 100%;
}
.list-row:has(> .confirmation) {
  flex-wrap: wrap;
}
.workspace:focus {
  outline: none;
}
.origin-keys,
.origin-empty {
  flex-basis: 100%;
  width: 100%;
}
.list-row:has(> .origin-keys),
.list-row:has(> .origin-empty) {
  flex-wrap: wrap;
}
.origin-keys {
  margin-top: 0;
}
.origin-key-group {
  margin-top: 20px;
}
.origin-key-group > h3 {
  font-size: 16px;
}
.origin-keys .origin-key-group {
  margin-left: 16px;
}
.origin-key-group .list-row {
  padding-block: 14px;
}
.origin-key-group .row-main h3 {
  font-size: 16px;
}
.origin-empty {
  margin-top: -8px;
}
