:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
  --ink: #18181b;
  --muted: #66666f;
  --line: #e4e4e7;
  --line-strong: #c4c4cb;
  --canvas: #fafafa;
  --paper: #fff;
  --subtle: #f4f4f5;
  --hover: #ededf0;
  --success: #256344;
  --success-bg: #eff7f1;
  --warning: #875c18;
  --warning-bg: #fff8eb;
  --danger: #a52f34;
  --danger-bg: #fff1f2;
  --radius: 12px;
  --control-radius: 8px;
  --page-width: 1200px;
  --gutter: 32px;
  --control-height: 44px;
  --shadow-control: 0 1px 2px #18181b08;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
}
img,
svg {
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: progress;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: var(--shadow-control);
}
button:hover,
.button:hover {
  background: var(--subtle);
  border-color: var(--line-strong);
}
button:active,
.button:active {
  background: var(--hover);
}
.primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.primary:hover {
  color: var(--paper);
  background: #333338;
  border-color: #333338;
}
.primary:active {
  background: #45454c;
}
.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.quiet:hover {
  border-color: transparent;
}
.danger {
  color: var(--danger);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.button .icon,
button > .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--page-width);
  margin-inline: auto;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 8px;
}
#account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-toggle {
  flex-shrink: 0;
  min-width: 72px;
  padding-inline: 10px;
  font-size: 13px;
  white-space: nowrap;
}
html[lang="en"] .hero h1 {
  letter-spacing: -2.4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  text-decoration: none;
  color: var(--muted);
}
.nav-link:hover {
  color: var(--ink);
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-status::before,
.status-dot {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
  padding: 12px max(var(--gutter), calc((100% - var(--page-width)) / 2));
  font-size: 14px;
  line-height: 1.7;
}
#notice.error {
  background: var(--danger-bg);
  color: var(--danger);
}
#main {
  min-height: calc(100dvh - 145px);
}
.loading,
.inline-loading {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  font-size: 12px;
  color: var(--muted);
}
/* Full-bleed landing; its sections, header and footer share fluid gutters.
   Workspace width and reading measure remain independent of marketing layout. */
body:not(.in-workspace) {
  --page-width: 100%;
  --gutter: clamp(20px, 4vw, 128px);
}
.landing {
  width: 100%;
}
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 73px);
  padding: clamp(72px, 10svh, 144px) var(--gutter) 112px;
}
.hero-copy {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, #fff 8%, #eeeeF2 74%, var(--canvas) 100%);
  mask-image: linear-gradient(#000 78%, transparent);
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#18181b07 1px, transparent 1px), linear-gradient(90deg, #18181b07 1px, transparent 1px);
  background-size: clamp(40px, 3vw, 72px) clamp(40px, 3vw, 72px);
  mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%);
}
.ambient-orbit {
  position: absolute;
  width: max(800px, 72vw);
  height: auto;
  aspect-ratio: 5 / 4;
  top: calc(50% - max(320px, 28.8vw));
  stroke-width: 1;
}
.orbit-left {
  right: 50%;
  margin-right: -18vw;
}
.orbit-right {
  left: 50%;
  margin-left: -18vw;
  transform: scaleX(-1);
}
.ambient-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #fafafaf5 0%, #fafafae6 32%, #fafafa00 65%);
}
.motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding-inline: 12px;
  border-radius: 100px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.hero-scroll .icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}
.hero-scroll:hover {
  color: var(--ink);
}
.motion-paused .ambient-orbit {
  animation-play-state: paused;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 104px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -2px;
  margin: 24px 0;
}
.hero h1 span {
  color: #53535c;
}
.hero-description {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.9;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.hero-actions .button {
  min-height: 48px;
  padding-inline: 20px;
}
.hero .login-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.product-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 40px #18181b06, 0 2px 6px #18181b03;
  overflow: hidden;
}
.preview-header {
  min-height: 64px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.preview-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.preview-heading > span:not(.slash) {
  font-weight: 600;
  letter-spacing: -0.5px;
}
.preview-heading h2 {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}
.slash {
  color: var(--line-strong);
}
.preview-label {
  font-size: 11px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}
.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  padding: clamp(24px, 2.5vw, 56px);
  background: var(--canvas);
}
.sample {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: clamp(24px, 2vw, 48px);
  align-self: stretch;
  min-width: 0;
}
.sample-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--ink);
}
.sample-label p {
  font-size: 13px;
  font-weight: 550;
  margin: 0;
}
.sample h3 {
  font-size: clamp(18px, 1.35vw, 28px);
  margin: 24px 0 8px;
  letter-spacing: -0.3px;
}
.sample-description {
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
  max-width: 65ch;
  line-height: 1.8;
  margin: 0;
  min-height: 47px;
}
.sample-facts {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.4fr;
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sample-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.sample-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.preview-connection {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.preview-connection .icon {
  width: 24px;
  height: 24px;
}
.sample-checks {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.sample-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sample-checks .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: var(--ink);
}
.preview-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.preview-footer .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.preview-disclaimer {
  margin-left: auto;
  font-size: 11px;
}
.how-section {
  padding: clamp(64px, 5vw, 120px) 0;
  scroll-margin-top: 32px;
}
.section-heading {
  margin-bottom: 24px;
}
.how-section .section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.landing .section-heading h2 {
  font-size: clamp(24px, 2vw, 40px);
}
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.steps article {
  padding: clamp(24px, 2.5vw, 56px);
}
.steps article + article {
  border-left: 1px solid var(--line);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.step-number {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: clamp(16px, 1.3vw, 24px);
  margin: 24px 0 8px;
}
.steps p {
  font-size: clamp(13px, 1vw, 16px);
  max-width: 65ch;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.install-section {
  padding: 0 0 clamp(64px, 5vw, 120px);
  scroll-margin-top: 32px;
}
.install-section .section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2vw, 48px);
  align-items: start;
}
.install-card {
  min-width: 0;
  padding: clamp(24px, 2.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.install-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.brand-tile {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #1a1a1a;
}
.brand-tile img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.install-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 28px);
  letter-spacing: -0.4px;
}
.install-description {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--muted);
  line-height: 24px;
  font-size: clamp(14px, 1vw, 16px);
  max-width: 65ch;
}
.install-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  min-height: 20px;
}
.install-copy {
  width: 100%;
}
.install-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.install-source:hover {
  color: var(--ink);
  text-decoration: underline;
}
.install-source .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  transform: rotate(-45deg);
}
.install-status {
  margin: 4px 0 12px;
  min-height: 40px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.install-details {
  border-top: 1px solid var(--line);
}
.install-details summary {
  min-height: 44px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.install-prompt {
  margin: 12px 0 0;
  padding: 16px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  user-select: text;
}
.install-footnote {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
/* Workspace: one navigation column and one shared content grid. */
.in-workspace {
  background: var(--canvas);
}
.workspace {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--page-width);
  margin: auto;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100dvh - 145px);
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 20px 32px 0;
  border-right: 1px solid var(--line);
}
.nav-section-label {
  padding: 0 12px 16px;
  color: var(--muted);
  font-size: 12px;
}
.sidebar button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
}
.sidebar button .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.sidebar button:hover {
  background: var(--subtle);
  color: var(--ink);
}
.sidebar button.active {
  background: var(--subtle);
  color: var(--ink);
  font-weight: 600;
}
.sidebar-note {
  margin-top: auto;
  padding: 48px 12px 0;
}
.sidebar-note > .icon {
  display: block;
  margin-bottom: 12px;
}
.sidebar-note strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 550;
}
.sidebar-note p {
  font-size: 12px;
  white-space: pre-line;
  margin: 8px 0 0;
}
.content {
  padding: 32px 0 48px 32px;
  min-width: 0;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.pagehead h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0;
}
.pagehead p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.pagehead > button {
  flex-shrink: 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  box-shadow: 0 2px 6px #18181b03;
}
.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 24px;
  align-items: start;
}
.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section-heading h2 {
  margin: 0;
  font-size: 16px;
}
.guide {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.guide-title {
  display: flex;
  gap: 8px;
  align-items: center;
}
.guide-title .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.guide h2,
.guide h3 {
  font-size: 14px;
  margin: 0;
}
.guide p,
.guide-list {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.guide-list {
  padding-left: 16px;
  margin: 16px 0 0;
}
.guide-list li {
  padding-left: 4px;
  margin-top: 8px;
}
.guide hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field > label,
.field-label {
  font-size: 14px;
  font-weight: 550;
}
.field small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--paper);
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
  min-width: 0;
  box-shadow: var(--shadow-control);
}
input:not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--control-height);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--ink);
  cursor: pointer;
  box-shadow: none;
}
textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 144px;
}
textarea[rows="2"] {
  min-height: 88px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 12px;
  padding: 0;
}
.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--control-radius);
  cursor: pointer;
  font-size: 13px;
}
.choice:hover {
  background: var(--canvas);
}
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--canvas);
}
.choice input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
  margin: 0;
  box-shadow: none;
}
.choice strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.required-mark {
  color: var(--muted);
}
.contact-field {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.field-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.field-tag .icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-footer p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  max-width: 36em;
}
.form-footer button {
  flex-shrink: 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}
.searchbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 24px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-field > .icon {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 40px;
}
.list {
  display: grid;
  gap: 16px;
}
.intent-card {
  display: block;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius);
  text-align: left;
  font-weight: 400;
  box-shadow: none;
}
.intent-card:hover {
  background: var(--canvas);
  border-color: var(--line-strong);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.intent-type {
  color: var(--muted);
  font-size: 12px;
}
.intent-card h2,
.match-card h2,
.match-card h3 {
  font-size: 18px;
  margin: 12px 0 8px;
  font-weight: 600;
  line-height: 1.5;
}
.intent-card p,
.match-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.card-open .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--muted);
  font-weight: 500;
  white-space: normal;
  line-height: 1.5;
}
.badge.active,
.badge.approved,
.badge.accepted {
  background: var(--success-bg);
  color: var(--success);
  border-color: #cde2d2;
}
.badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #ebdbb9;
}
.badge.rejected,
.badge.revoked {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #f0cdd0;
}
.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}
.empty > .icon {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-control);
}
.empty h2 {
  font-size: 18px;
  margin: 24px 0 0;
}
.empty p {
  max-width: 400px;
  margin: 8px auto 24px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--muted);
}
.back {
  margin: -8px 0 16px -12px;
  padding-inline: 12px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(288px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.detail h2 {
  font-size: 18px;
  margin: 24px 0 12px;
}
.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.panel-heading h2 .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail > .body-text {
  margin: 0;
}
.intent-settings {
  display: flex;
  flex-direction: column;
}
.intent-settings > .actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intent-settings .contact-box {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-box > p:last-child {
  margin-bottom: 0;
}
.body-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
}
.fields {
  margin-top: 24px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.field-value {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  font-size: 13px;
  gap: 16px;
  line-height: 1.8;
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
  overflow-wrap: anywhere;
}
.field-value span:first-child {
  color: var(--muted);
}
.contact-box h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.contact-box p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contact-box > p:not(.muted) {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 12px;
}
.checks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.8;
  cursor: pointer;
  min-height: 44px;
}
.checks input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin: 4px 0 0;
  accent-color: var(--ink);
  box-shadow: none;
}
.detail-grid aside > .primary {
  width: 100%;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 32px 0 16px;
}
.section-title h2 {
  font-size: 20px;
  margin: 0;
}
.match-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.match-card > button:last-child {
  margin-top: 20px;
}
.conditions {
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 24px 64px #0003;
}
dialog::backdrop {
  background: #18181b80;
}
dialog h2 {
  margin: 0 0 16px;
  font-size: 22px;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog .actions {
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--paper);
  padding: 16px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.counter {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.message {
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--canvas);
  color: var(--muted);
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 24px;
}
[role="alert"].message {
  background: var(--danger-bg);
  color: var(--danger);
}
@media (max-width: 1199px) {
  .compose-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide {
    display: none;
  }
  .form-footer {
    align-items: flex-start;
  }
}
@media (min-width: 961px) and (max-width: 1119px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .workspace {
    display: block;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .sidebar .nav-section-label,
  .sidebar-note {
    display: none;
  }
  .sidebar button {
    padding: 10px 8px;
    justify-content: center;
  }
  .content {
    padding: 32px 0 48px;
  }
  .compose-layout {
    grid-template-columns: minmax(0, 1fr) 208px;
  }
  .guide {
    display: block;
  }
  .preview-body {
    padding: 24px;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  }
  .sample {
    padding: 20px;
  }
  .sample-facts {
    gap: 8px;
  }
  .hero {
    padding-top: 64px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .preview-disclaimer {
    display: none;
  }
  .form-footer {
    flex-direction: column;
    gap: 16px;
  }
  .form-footer button {
    align-self: flex-end;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 24px;
  }
  .brand span {
    display: none;
  }
  #account .nav-link {
    display: none;
  }
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .install-card {
    padding: 24px;
  }
  .install-description {
    min-height: 0;
  }
  .compose-layout,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide {
    display: none;
  }
  .hero h1 {
    font-size: 44px;
  }
  .preview-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .preview-connection {
    transform: rotate(90deg);
  }
  .sample-description {
    min-height: 0;
  }
  .sample-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .steps h3 {
    margin-top: 16px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 26px;
  }
  .match-footer {
    flex-wrap: wrap;
  }
  .form-footer {
    flex-direction: row;
    align-items: center;
  }
  .form-footer button {
    align-self: auto;
  }
}
@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }
  .topbar-inner {
    min-height: 68px;
    gap: 12px;
  }
  .brand strong {
    font-size: 22px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .header-actions {
    gap: 4px;
  }
  .language-toggle {
    min-width: 64px;
    padding-inline: 8px;
  }
  html[lang="en"] .hero h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
  }
  #account {
    gap: 0;
  }
  #account .nav-link,
  #account .profile-status {
    display: none;
  }
  #account > .button {
    padding-inline: 12px;
  }
  .hero {
    min-height: calc(100svh - 69px);
    padding: 48px var(--gutter) 120px;
  }
  .ambient-orbit {
    top: 0;
    width: 560px;
    height: 448px;
  }
  .orbit-left {
    margin-right: -128px;
  }
  .orbit-right {
    margin-left: -128px;
  }
  .motion-toggle {
    right: 50%;
    transform: translateX(50%);
    bottom: 12px;
  }
  .hero-scroll {
    bottom: 60px;
    white-space: nowrap;
  }
  .hero-label {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
    margin-block: 20px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.9;
  }
  .hero-actions {
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
  }
  .hero-actions > .button {
    width: 100%;
  }
  .hero .login-hint {
    font-size: 11px;
    margin-top: 8px;
  }
  .preview-header,
  .preview-footer {
    padding: 16px;
  }
  .preview-heading {
    gap: 8px;
  }
  .preview-heading > span:not(.slash),
  .preview-heading .slash {
    display: none;
  }
  .preview-heading h2 {
    font-size: 12px;
  }
  .preview-label {
    font-size: 10px;
  }
  .preview-body {
    padding: 16px;
  }
  .sample {
    padding: 20px;
  }
  .sample h3 {
    font-size: 17px;
  }
  .preview-footer {
    align-items: flex-start;
    font-size: 11px;
  }
  .preview-footer .icon {
    margin-top: 1px;
  }
  .how-section {
    padding: 40px 0;
  }
  .install-section {
    padding-bottom: 40px;
  }
  .install-card {
    padding: 20px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .steps article {
    padding: 20px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 20px;
    font-size: 11px;
  }
  .sidebar {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 0;
  }
  .sidebar button {
    font-size: 12px;
    padding: 12px;
    gap: 8px;
    justify-content: flex-start;
  }
  .sidebar button .icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
  .pagehead {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .pagehead h1 {
    font-size: 24px;
  }
  .pagehead p {
    font-size: 13px;
  }
  .pagehead > button.primary {
    width: 100%;
  }
  .content {
    padding: 24px 0 40px;
  }
  .panel,
  .intent-card,
  .match-card {
    padding: 20px;
  }
  .form-section-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .form-section-heading .small {
    font-size: 11px;
  }
  .choice {
    gap: 8px;
    padding: 12px;
    align-items: flex-start;
  }
  .choice input {
    margin-top: 3px;
  }
  .choice strong {
    font-size: 12px;
  }
  .choice small {
    font-size: 11px;
  }
  .field-tag {
    margin-left: 0;
    display: flex;
    margin-top: 4px;
  }
  input,
  textarea {
    font-size: 16px;
  }
  .form-footer {
    flex-direction: column;
    gap: 16px;
  }
  .form-footer button {
    width: 100%;
  }
  .field-value {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .card-meta {
    gap: 12px;
  }
  .card-open {
    margin-left: 0;
  }
  .section-title h2 {
    font-size: 18px;
  }
  .empty {
    padding: 48px 20px;
  }
  .empty h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-left {
    animation: orbit-flow-left 18s ease-in-out infinite alternate;
  }
  .orbit-right {
    animation: orbit-flow-right 18s ease-in-out infinite alternate;
  }
  @keyframes orbit-flow-left {
    from { transform: translate(-16px, 8px) rotate(-4deg); }
    to { transform: translate(20px, -12px) rotate(4deg); }
  }
  @keyframes orbit-flow-right {
    from { transform: scaleX(-1) translate(-16px, 8px) rotate(-4deg); }
    to { transform: scaleX(-1) translate(20px, -12px) rotate(4deg); }
  }
  button,
  .button,
  .choice,
  .nav-link {
    transition:
      background-color 0.15s ease,
      color 0.15s ease,
      border-color 0.15s ease;
  }
  dialog[open] {
    animation: appear 0.15s ease-out;
  }
  button[aria-busy="true"]::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes appear {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}

/* Visibility uses the same spacing and neutral palette as the detail panels. */
.visibility-panel {
  min-width: 0;
}
.visibility-panel > h3 {
  margin: 0;
  font-size: 14px;
}
.visibility-panel > p {
  margin: 12px 0 0;
}
.visibility-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  min-height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--canvas);
  margin-top: 12px;
  cursor: pointer;
}
.visibility-choice:hover {
  border-color: var(--ink);
}
.visibility-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--subtle);
}
.visibility-choice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.visibility-choice-text {
  display: grid;
  gap: 3px;
}
.visibility-choice-text strong {
  font-size: 14px;
  font-weight: 550;
}
.visibility-choice-text .small {
  font-size: 12px;
}
.visibility-choice input {
  margin: 0;
  padding: 0;
  min-height: 18px;
}
.visibility-panel > button {
  width: 100%;
  margin-top: 16px;
}
.public-preview {
  overflow-wrap: anywhere;
}
.public-preview h3 {
  margin: 16px 0 10px;
}
.visibility-panel .public-preview {
  padding: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}
.badge.visibility {
  color: #52525b;
  background: #f4f4f5;
}
