@import url("./ui-tokens.css");
:root,
:host {
  --handoff-accent: var(--ui-brand);
  --handoff-button-accent: var(--ui-primary);
  --handoff-link: var(--ui-primary);
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --line: var(--ui-border);
  font-family: var(--ui-font);
  font-size: var(--ui-type-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ui-bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
a {
  color: var(--handoff-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--handoff-accent);
  outline-offset: 3px;
}
code {
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  overflow-wrap: anywhere;
}
.handoff-nav {
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--handoff-accent);
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark img {
  object-fit: contain;
}
.handoff-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--muted);
  font-size: 13px;
}
.handoff-main {
  width: min(640px, calc(100% - 48px));
  margin: 32px auto 40px;
}
h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.handoff-description,
.page-heading > p {
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.invitation-meta {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.invitation-meta > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 6px 0;
}
.invitation-meta dt {
  color: var(--muted);
}
.invitation-meta dd {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.handoff-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ui-subtle);
  display: inline-grid;
  place-items: center;
  flex: none;
  font-size: 10px;
  font-weight: 600;
}
.handoff-promise {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.setup-card {
  margin-top: 16px;
}
.handoff-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
}
.handoff-step + .handoff-step {
  border-top: 1px solid var(--line);
}
.step-dot {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
}
.current .step-dot {
  border-color: var(--handoff-button-accent);
  color: var(--handoff-button-accent);
}
.done .step-dot {
  color: var(--ui-success-text);
  background: var(--ui-success-bg);
  border-color: transparent;
}
.step-content {
  min-width: 0;
}
.step-content > p {
  color: var(--muted);
  margin-top: 4px;
}
.handoff-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.handoff-button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.handoff-button.primary {
  background: var(--handoff-button-accent);
  color: #fff;
  border-color: transparent;
}
.step-content > .handoff-button {
  margin-top: 12px;
}
details {
  margin-top: 12px;
}
summary {
  color: var(--muted);
  font-size: 12px;
  width: fit-content;
}
summary:hover {
  color: var(--ink);
}
details ol {
  padding-left: 20px;
  margin: 8px 0;
}
details li + li {
  margin-top: 4px;
}
.install-note,
.handoff-fallback,
.record-note {
  font-size: 12px;
  color: var(--muted);
}
.handoff-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--ui-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.handoff-code > div {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.handoff-code span {
  color: var(--muted);
  font-size: 12px;
}
.handoff-code code {
  font-size: 13px;
  letter-spacing: 1px;
}
.handoff-code button {
  color: var(--handoff-link);
  font-size: 12px;
  padding: 4px;
}
.handoff-error {
  color: var(--ui-danger-text);
  background: var(--ui-danger-bg);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.handoff-status {
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
}
.handoff-status:empty {
  display: none;
}
.handoff-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
}
.handoff-bottom a {
  color: var(--muted);
}
.small-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.keep-card {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.record-preview {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.record-preview p,
.keep-actions p {
  margin-top: 4px;
  color: var(--muted);
}
.keep-actions {
  padding: 16px 0;
}
.keep-actions .handoff-button {
  margin-top: 12px;
}
.subtle-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  font-size: 12px;
}
.record-note {
  margin-top: 0;
}
.browser-start {
  margin-top: 48px;
}
.access-details {
  margin-top: 24px;
  max-width: 520px;
}
.access-details p {
  margin-top: 8px;
  color: var(--muted);
}
.documentation {
  width: min(720px, calc(100% - 48px));
}
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.documentation section {
  padding-top: 24px;
  scroll-margin-top: 24px;
}
.documentation section > p {
  margin-top: 8px;
}
.documentation section h2 {
  font-size: 15px;
}
.documentation ol {
  padding-left: 20px;
  margin: 8px 0 0;
}
.documentation li + li {
  margin-top: 4px;
}
.guide-rows {
  margin-top: 8px;
}
.guide-rows > div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.guide-rows dt {
  color: var(--muted);
}
@media (max-width: 560px) {
  .handoff-nav {
    padding: 0 16px;
    height: 48px;
  }
  .handoff-nav nav {
    gap: 16px;
  }
  .handoff-main,
  .documentation {
    width: calc(100% - 32px);
    margin-top: 24px;
  }
  .handoff-button {
    min-height: 40px;
  }
  h1 {
    font-size: 20px;
  }
  .invitation-meta > div {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .guide-rows > div {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .handoff-code > div {
    gap: 4px 12px;
  }
}

[data-public-account] { display: inline-flex; align-items: center; gap: 14px; }
.desktop-requirement { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.desktop-handoff { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.desktop-handoff h2 { font-size: 16px; }
.desktop-handoff p, .invitation-limits p { color: var(--muted); margin: 8px 0 12px; font-size: 13px; }
.desktop-steps-toggle { display: block; padding: 12px 0 0; font-size: 12px; text-decoration: underline; }
.desktop-handoff input { display: block; width: 100%; min-width: 0; }
.invitation-limits { margin-top: 18px; font-size: 12px; color: var(--muted); }
#retry-invitation { margin-bottom: 18px; }
