:root {
  --share-accent: #aa9fff;
  --share-green: #85d5ad;
  --share-line: #2b303c;
  --share-muted: #b3bac8;
  --share-surface: #12151c;
  --share-raised: #191d27;
  --share-focus: #3ec6e0;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #0b0d12;
  color: #ebedf5;
}

.shared-bundle {
  width: min(1080px, calc(100% - 48px));
  padding: 40px 0 48px;
}
.wordmark {
  margin: 0 0 48px;
  color: #eef4f0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.wordmark span {
  margin-left: 10px;
  color: var(--share-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.sender {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--share-green);
  overflow-wrap: anywhere;
}
.shared-bundle h1 {
  max-width: 850px;
  font-size: clamp(26px, 4.8vw, 44px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.shared-bundle .expiry {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--share-muted);
}
.bundle-summary {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--share-accent);
}
.bundle-instructions {
  max-width: 600px;
  margin: 0;
  color: var(--share-muted);
  font-size: 14px;
}
.share-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.shared-bundle .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid var(--share-accent);
  background: var(--share-accent);
  color: #151029;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  padding: 10px 17px;
}
.shared-bundle .button.secondary {
  border-color: #53616b;
  background: transparent;
  color: #e6eeea;
}
.shared-bundle .button:hover {
  filter: brightness(1.08);
}
.shared-bundle .button.is-copied {
  background: #333d43;
  border-color: #53616b;
  color: #dce6df;
}
.shared-bundle .copy-split.is-copied .copy-toggle {
  background: #333d43;
  border-color: #53616b;
  color: #dce6df;
}
.shared-bundle :is(button, a, summary, select):focus-visible {
  outline: 2px solid var(--share-focus);
  outline-offset: 4px;
}
.copy-split {
  display: inline-flex;
  align-items: stretch;
}
.shared-bundle .copy-primary {
  border-radius: 7px 0 0 7px;
  min-width: 138px;
}
.copy-options {
  position: relative;
}
.shared-bundle .copy-toggle {
  height: 100%;
  border-radius: 0 7px 7px 0;
  border-left-color: #7567b8;
  padding: 10px 11px;
  list-style: none;
  cursor: pointer;
}
.copy-toggle::-webkit-details-marker {
  display: none;
}
.copy-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 5;
  width: 185px;
  padding: 5px;
  border: 1px solid #4d5b64;
  border-radius: 8px;
  background: #192126;
  box-shadow: 0 8px 24px #0006;
}
.copy-menu button {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ecf2ee;
  text-align: left;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.copy-menu button:hover {
  background: #2c383e;
}
.copy-menu button[hidden] {
  display: none;
}
.copy-menu button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.bundle-picker {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  color: var(--share-muted);
  font-size: 12px;
  font-weight: 500;
}
.bundle-picker select {
  min-height: 44px;
  min-width: 125px;
  padding: 8px 12px;
  border: 1px solid #53616b;
  border-radius: 7px;
  background: #151b20;
  color: #edf2ef;
  font: inherit;
  font-size: 14px;
}
.shared-bundle .copy-status {
  min-height: 22px;
  margin: 10px 0 15px;
  color: var(--share-muted);
  font-size: 13px;
}
.shared-bundle .copy-status.error {
  color: #ffaaaa;
}
.bundle-list {
  display: grid;
  gap: 30px;
}
.bundle-preview {
  min-width: 0;
  border: 1px solid var(--share-line);
  border-radius: 10px;
  padding: 20px;
  background: var(--share-surface);
}
.bundle-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bundle-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.bundle-heading span {
  color: var(--share-muted);
  font-size: 12px;
}
.bundle-preview figure {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--share-line);
  border-radius: 8px;
  background: #12171a;
}
.bundle-preview figure img {
  max-height: 700px;
  object-fit: contain;
  border-radius: 0;
}
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.quiet-link {
  color: #bdc9c3;
  font-size: 13px;
  text-underline-offset: 4px;
}
.text-bundle-note {
  padding: 24px 0;
  color: var(--share-muted);
}
.markdown-preview {
  margin-top: 30px;
  border-top: 1px solid var(--share-line);
  padding-top: 20px;
}
.markdown-preview > summary {
  padding: 6px 0;
  cursor: pointer;
  font-size: 15px;
  color: #dce6df;
}
.markdown-preview article {
  margin: 14px 0;
  border-radius: 7px;
  background: #10161a;
}
.markdown-preview article h1 {
  font-size: 26px;
}
.markdown-preview article h2 {
  font-size: 22px;
}
.markdown-preview article table {
  display: block;
  overflow-x: auto;
}
.share-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--share-line);
  color: var(--share-muted);
  font-size: 12px;
}
.copy-help {
  max-width: 340px;
}
.copy-help summary {
  cursor: pointer;
}
.copy-help p {
  margin: 8px 0 0;
  font-size: 12px;
}
@media (max-width: 520px) {
  .shared-bundle {
    width: calc(100% - 28px);
    padding-top: 22px;
  }
  .wordmark {
    margin-bottom: 32px;
  }
  .share-toolbar {
    gap: 10px;
  }
  .bundle-picker {
    flex-basis: 100%;
  }
  .bundle-picker select {
    width: 100%;
  }
  .share-footer > span:last-child {
    flex-basis: 100%;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #0b0d12;
  -webkit-font-smoothing: antialiased;
}
main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 96px;
}
.pairing {
  width: min(1080px, calc(100% - 48px));
}
.eyebrow {
  color: #99a5c6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1 {
  margin: 0.3em 0;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.045em;
}
h2 {
  margin-top: 2.5rem;
}
p,
li {
  line-height: 1.65;
  color: #c9cede;
}
.expiry {
  color: #99a5c6;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 42px;
}
.button {
  appearance: none;
  display: inline-block;
  border: 1px solid var(--share-accent);
  border-radius: 7px;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--share-accent);
  color: #151029;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: #dce4ff;
}
.button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.button:focus-visible {
  outline: 3px solid var(--share-focus);
  outline-offset: 3px;
}
.copy-status {
  min-height: 1.65em;
  margin: -25px 0 25px;
  color: #99a5c6;
  font-size: 0.9rem;
}
.copy-status.error {
  color: #ff9c9c;
}
.copy-note {
  margin: -14px 0 25px;
  color: #99a5c6;
  font-size: 0.82rem;
}
article {
  padding: 24px;
  border: 1px solid #262c3b;
  border-radius: 14px;
  background: #11141c;
  overflow-wrap: anywhere;
}
article pre {
  padding: 16px;
  overflow: auto;
  border-radius: 8px;
  background: #080a0e;
}
article code {
  font-family: 'SFMono-Regular', Consolas, monospace;
}
article a {
  color: #b8c7ff;
}
.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
figure {
  margin: 0;
  padding: 12px;
  border: 1px solid #262c3b;
  border-radius: 12px;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}
figcaption {
  margin-top: 9px;
  color: #99a5c6;
  font-size: 0.85rem;
}
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.image-actions .button {
  padding: 7px 11px;
  font-size: 0.82rem;
}
footer {
  margin-top: 48px;
  color: #737d9a;
  font-size: 0.82rem;
}
label {
  display: block;
  margin: 28px 0 8px;
  color: #c9cede;
  font-weight: 700;
}
textarea {
  width: 100%;
  resize: none;
  padding: 12px;
  border: 1px solid #3c4660;
  border-radius: 8px;
  background: #080a0e;
  color: #f1f3f9;
  font-family: monospace;
}
.error {
  color: #ff9c9c;
}

[hidden] {
  display: none !important;
}

a,
button,
summary,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:is(a, button, summary, textarea, select):focus-visible {
  outline: 2px solid var(--share-focus);
  outline-offset: 4px;
}

.button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--share-accent);
  color: #151029;
}

.skip-link:focus {
  transform: translateY(0);
}

.service-header,
.service-footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-header {
  min-height: 88px;
  border-bottom: 1px solid var(--share-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f5f7;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.brand-context {
  margin-left: 4px;
  color: var(--share-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.service-home {
  width: min(1200px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding: 72px 0 48px;
}

.service-intro h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.12;
  margin: 24px 0;
  text-wrap: balance;
}

.service-intro h1 span {
  color: var(--share-muted);
}

.lede {
  color: var(--share-muted);
  font-size: 18px;
  max-width: 560px;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.entry-actions .button span {
  padding-left: 16px;
}

.entry-note {
  max-width: 340px;
  margin-top: 20px;
  color: var(--share-muted);
  font-size: 13px;
}

.handoff-outline {
  border: 1px solid var(--share-line);
  border-radius: 10px;
  padding: 28px;
  background: var(--share-surface);
}

.handoff-outline h2 {
  margin: 12px 0 28px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.handoff-steps,
.pairing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.handoff-steps li,
.pairing-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--share-line);
}

.step-number,
.format-label {
  font-family: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--share-accent);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.step-number {
  padding-top: 3px;
}

.handoff-steps h3,
.pairing-steps h2 {
  color: #f4f5f7;
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.4;
}

.handoff-steps p,
.pairing-steps p {
  margin: 0 0 12px;
  color: var(--share-muted);
  font-size: 14px;
}

.format-label {
  color: var(--share-muted);
  font-size: 10px;
}

.privacy-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 32px;
  border-top: 1px solid var(--share-line);
  padding-top: 24px;
}

.privacy-strip strong {
  font-size: 15px;
  line-height: 1.6;
}

.privacy-strip p {
  margin: 0;
  color: var(--share-muted);
  font-size: 13px;
}

.service-footer {
  border-top: 1px solid var(--share-line);
  padding: 24px 0 32px;
  color: var(--share-muted);
  font-size: 12px;
}

.pairing-heading h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 16px 0;
}

.pairing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  margin: 40px 0;
  align-items: start;
}

.pairing-steps li {
  padding: 24px 0;
}

.pairing-steps li[aria-current='step'] .step-number {
  color: var(--share-focus);
}

.pairing-steps li[aria-current='step'] h2 {
  color: var(--share-accent);
}

.pairing-panel {
  min-width: 0;
  padding: 28px;
  background: var(--share-surface);
  border: 1px solid var(--share-line);
  border-radius: 10px;
}

.panel-heading,
.code-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-heading h2 {
  font-size: 18px;
  margin: 0;
}

.connection-state {
  color: var(--share-muted);
  font-size: 12px;
}

.connection-state[data-state='ready'] {
  color: var(--share-green);
}

.connection-state[data-state='expired'] {
  color: #e9c480;
}

.pairing-panel p {
  font-size: 14px;
}

.pairing-panel label {
  margin-top: 24px;
  font-size: 12px;
}

.pairing-panel textarea {
  font-size: 16px;
  line-height: 1.6;
  padding: 16px;
}

.code-actions {
  margin-top: 16px;
}

#expiry {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--share-muted);
  font-size: 13px;
}

#code-help,
.pairing-status {
  color: var(--share-muted);
  font-size: 13px;
}

.pairing-panel :is(.error, .pairing-status):empty {
  display: none;
}

@media (max-width: 820px) {
  .service-home,
  .pairing-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-home {
    padding-top: 40px;
  }
  .pairing-layout .pairing-panel {
    grid-row: 1;
  }
  .privacy-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .service-header,
  .service-footer,
  .service-home,
  .pairing {
    width: calc(100% - 32px);
  }
  .service-header {
    min-height: 72px;
    gap: 12px;
  }
  .brand-context {
    display: none;
  }
  .service-footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .pairing-panel,
  .handoff-outline,
  .bundle-preview {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 520px) {
  main {
    padding-top: 36px;
  }
  article {
    padding: 17px;
  }
}

.pairing-heading {
  background: url('/static/assets/annotation-marks.svg') no-repeat right center / 180px auto;
  padding-right: 200px;
}
.pairing-guide {
  min-width: 0;
}
.pairing-art {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 12px auto 0;
  border: 1px solid var(--share-line);
  border-radius: 10px;
}
.pairing-steps .step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--share-line);
  border-radius: 50%;
}
.pairing-steps [aria-current='step'] .step-number {
  background: #6857f5;
  border-color: #6857f5;
  color: #fff;
}
.pairing-page .button:not(.secondary),
.shared-bundle .button:not(.secondary):not(.is-copied) {
  background: #6857f5;
  border-color: #6857f5;
  color: #fff;
}
.shared-bundle .copy-split.is-copied .copy-toggle {
  background: #333d43;
  border-color: #53616b;
  color: #dce6df;
}
.shared-bundle :is(article, figure) {
  border-radius: 10px;
}
@media (max-width: 820px) {
  .pairing-art {
    display: none;
  }
}
@media (max-width: 520px) {
  .pairing-heading {
    background: none;
    padding-right: 0;
  }
}
