:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #9aa6a1;
  --panel: #15231f;
  --panel-soft: #1a2b26;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #c8f36d;
  --accent-ink: #15200c;
  --warm: #f1d8ad;
  --danger: #ff8f83;
  --background: #0b1412;
  --background-soft: #0f1c19;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 10%, rgba(82, 140, 106, 0.18), transparent 28rem),
    var(--background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 243, 109, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.brand-mark span {
  width: 10px;
  height: 14px;
  border: 2px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  position: relative;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  background: var(--accent);
  top: -5px;
  left: 2px;
}

.header-actions,
.hero-actions,
.trust-row {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 20px;
}

.pilot-badge {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: 90px;
  align-items: center;
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 690;
}

h1 span {
  color: var(--warm);
}

.lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: #b7c0bc;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  gap: 26px;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  padding: 0 21px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 760;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.65;
}

.primary-button.full {
  width: 100%;
}

.secondary-link {
  color: var(--ink);
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.32);
}

.trust-row {
  margin-top: 46px;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.connection-card {
  min-height: 520px;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.connection-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 10%;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 243, 109, 0.13), transparent 65%);
  pointer-events: none;
}

.trial-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.trial-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.trial-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
}

.trial-form .step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.app-topbar,
.app-details,
.account-summary,
.subheading,
.subscription-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-topbar > div {
  display: grid;
  gap: 4px;
}

.app-caption,
.card-label,
.subscription-card span,
.app-details span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill,
.verified-badge {
  padding: 7px 10px;
  border: 1px solid rgba(200, 243, 109, 0.26);
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connection-visual {
  min-height: 348px;
  display: grid;
  place-items: center;
  position: relative;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(200, 243, 109, 0.12);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-style: dashed;
}

.connect-preview {
  width: 176px;
  height: 176px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 243, 109, 0.48);
  background: #172720;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 70px rgba(200, 243, 109, 0.08);
  position: relative;
  z-index: 1;
}

.connect-preview small {
  color: var(--muted);
  font-size: 10px;
}

.power-icon {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}

.power-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 8px;
  width: 2px;
  height: 12px;
  background: var(--accent);
}

.app-details {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.app-details > div {
  display: grid;
  gap: 5px;
}

.app-details > div:not(:first-child) {
  text-align: right;
}

.app-details strong {
  font-size: 13px;
}

.principles {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  background: #efe9dd;
  color: #101a17;
}

.principles .eyebrow {
  color: #52713b;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 70px;
}

.section-heading h2,
.pilot-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 640;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(16, 26, 23, 0.18);
}

.principle-grid article {
  padding: 28px 42px 20px 0;
}

.principle-grid article:not(:last-child) {
  border-right: 1px solid rgba(16, 26, 23, 0.14);
  margin-right: 42px;
}

.number {
  color: #69805e;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.principle-grid h3 {
  margin: 72px 0 15px;
  font-size: 22px;
}

.principle-grid p {
  margin: 0;
  color: #4d5955;
  line-height: 1.6;
}

.pilot-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 90px;
  align-items: end;
}

.pilot-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

dialog {
  width: min(610px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--background-soft);
  color: var(--ink);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}

dialog::backdrop {
  background: rgba(2, 8, 7, 0.76);
  backdrop-filter: blur(9px);
}

.dialog-shell {
  padding: 31px;
  max-height: calc(100vh - 30px);
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.close-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.step-copy {
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 11px;
}

label {
  color: #c3cbc7;
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 52px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: rgba(200, 243, 109, 0.7);
}

.notice {
  margin: -5px 0 20px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(200, 243, 109, 0.07);
  color: #dfe9d8;
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  border-left-color: var(--danger);
  background: rgba(255, 143, 131, 0.08);
}

.development-code {
  margin: 18px 0;
  padding: 15px;
  border: 1px dashed rgba(200, 243, 109, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.development-code span {
  color: var(--muted);
  font-size: 12px;
}

.development-code strong {
  color: var(--accent);
  font: 19px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.back-button {
  margin-top: 20px;
}

.account-summary {
  margin-bottom: 20px;
}

.account-summary > div {
  display: grid;
  gap: 4px;
}

.account-summary span {
  color: var(--muted);
  font-size: 12px;
}

.subscription-card,
.device-section,
.config-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.subscription-card {
  padding: 19px;
  margin-bottom: 13px;
}

.subscription-card > div {
  display: grid;
  gap: 6px;
}

.subscription-card small {
  color: var(--muted);
}

.subscription-state {
  color: var(--warm) !important;
}

.subscription-state.active {
  color: var(--accent) !important;
}

.device-section,
.config-section {
  margin-top: 18px;
  padding: 18px;
}

.subheading strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.small-button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
}

.device-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.pairing-code-card {
  margin-top: 15px;
  padding: 14px;
  border: 1px dashed rgba(200, 243, 109, 0.35);
  display: grid;
  gap: 7px;
}

.pairing-code-card span,
.pairing-code-card small {
  color: var(--muted);
  font-size: 11px;
}

.pairing-code-card strong {
  color: var(--accent);
  font: 21px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.pairing-code-card input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pairing-code-card .small-button {
  justify-self: start;
}

.device-empty,
.device-row {
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.device-row {
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-row span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.device-row button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
}

.config-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.config-facts div {
  display: grid;
  gap: 5px;
}

.config-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.config-facts dd {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .connection-card {
    width: min(540px, 100%);
  }

  .pilot-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .pilot-section,
  footer {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .pilot-badge {
    display: none;
  }

  .hero {
    padding: 62px 0 70px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(50px, 16vw, 70px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-card {
    min-height: 470px;
    padding: 20px;
  }

  .connection-visual {
    min-height: 320px;
  }

  .orbit-two {
    width: 285px;
    height: 285px;
  }

  .orbit-one {
    width: 225px;
    height: 225px;
  }

  .principles {
    padding: 75px 22px;
  }

  .section-heading {
    display: block;
    margin-bottom: 45px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article,
  .principle-grid article:not(:last-child) {
    margin: 0;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 26, 23, 0.14);
  }

  .principle-grid h3 {
    margin-top: 35px;
  }

  .pilot-section {
    padding: 75px 0;
  }

  footer {
    min-height: 80px;
  }

  .dialog-shell {
    padding: 22px;
  }

  .subheading {
    align-items: flex-start;
    gap: 15px;
  }

  .config-facts {
    grid-template-columns: 1fr;
  }
}

/* CDF-2B customer /connect */
.connect-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 243, 109, 0.12), transparent 42%),
    linear-gradient(180deg, #0f1714 0%, #15201b 100%);
  color: var(--ink, #e8f0ea);
}
.connect-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.connect-shell h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 8px 0 12px;
}
.connect-shell h2 {
  font-size: 1.25rem;
  margin: 8px 0 16px;
}
.connect-subtitle {
  margin: 28px 0 12px;
  font-size: 1rem;
  color: var(--muted, #9bb0a4);
}
.connect-meta,
.connect-steps,
.connect-note,
.connect-support {
  color: var(--muted, #9bb0a4);
  font-size: 0.95rem;
}
.connect-steps {
  margin-bottom: 8px;
}
.connect-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.connect-actions-row {
  align-items: stretch;
  margin-top: 12px;
}
.connect-actions-row > .connect-choice {
  min-height: 48px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.connect-choices-stack {
  flex-direction: column;
}
.workspace-support-history {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 243, 109, 0.12);
}
.workspace-support-history > summary {
  cursor: pointer;
  color: var(--muted, #9bb0a4);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.workspace-support-attachment-actions {
  width: 100%;
  margin-top: 4px;
}
.workspace-action-heading {
  margin: 12px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9bb0a4);
}
.workspace-support-timeline {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.workspace-support-message {
  border: 1px solid rgba(200, 243, 109, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}
.workspace-support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.connect-choice {
  appearance: none;
  border: 1px solid rgba(200, 243, 109, 0.35);
  background: rgba(23, 39, 32, 0.92);
  color: inherit;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  cursor: pointer;
  min-width: 140px;
  text-align: left;
}
.connect-choice:hover,
.connect-choice:focus-visible {
  border-color: rgba(200, 243, 109, 0.85);
  outline: none;
}
.connect-client-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.connect-linkish {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--accent, #c8f36d);
  padding: 0;
  margin: 0 0 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.connect-other {
  margin-top: 28px;
}
.connect-other summary {
  cursor: pointer;
  color: var(--muted, #9bb0a4);
}
.connect-loading {
  color: var(--muted, #9bb0a4);
}
.connect-error {
  margin-top: 18px;
  color: #ffb4a8;
}
.connect-ol {
  margin: 0 0 18px 1.2rem;
  padding: 0;
  display: grid;
  gap: 8px;
}
.connect-url {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 243, 109, 0.25);
  background: #101a16;
  color: inherit;
  font: inherit;
}
.connect-uri {
  min-height: 72px;
  resize: vertical;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}
.connect-import-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.connect-hint {
  margin: 0 0 8px;
  color: var(--muted, #9bb0a4);
  font-size: 0.92rem;
}
.connect-primary {
  border-color: rgba(200, 243, 109, 0.85);
  box-shadow: 0 0 0 1px rgba(200, 243, 109, 0.25);
}
.connect-advanced {
  margin: 12px 0 18px;
  color: var(--muted, #9bb0a4);
}
.connect-advanced summary {
  cursor: pointer;
  margin-bottom: 8px;
}
.connect-support {
  margin-top: 36px;
}
.connect-support a {
  color: var(--accent, #c8f36d);
}

.workspace-summary {
  margin: 12px 0 20px;
  color: var(--muted, #9bb0a4);
}
.workspace-summary p {
  margin: 4px 0;
}
.workspace-device-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.workspace-device-card {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(200, 243, 109, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.workspace-device-card strong {
  display: block;
}
.workspace-copy-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.workspace-header h1 {
  margin-bottom: 4px;
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 243, 109, 0.15);
}

.workspace-nav a {
  color: var(--muted, #9bb0a4);
  text-decoration: none;
  font-size: 0.95rem;
}

.workspace-nav a.is-active,
.workspace-nav a:hover {
  color: var(--accent, #c8f36d);
}

.workspace-support-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 20px;
}

.workspace-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.workspace-account {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: right;
  word-break: break-word;
  max-width: 14rem;
}

.workspace-section {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(200, 243, 109, 0.12);
}

.workspace-section:last-child {
  border-bottom: 0;
}

.workspace-file-picker {
  display: grid;
  gap: 10px;
}

.workspace-file-list {
  display: grid;
  gap: 8px;
}

.workspace-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.workspace-file-card-open {
  appearance: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.workspace-file-card-open:hover,
.workspace-file-card-open:focus-visible {
  border-color: rgba(200, 243, 109, 0.85);
  outline: none;
}

.workspace-attachment-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 14, 12, 0.72);
}

.workspace-attachment-viewer-dialog {
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel, #13201a);
  border: 1px solid rgba(200, 243, 109, 0.25);
}

.workspace-attachment-viewer-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-attachment-viewer-media {
  width: 100%;
  min-height: 240px;
  max-height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #0b1210;
  object-fit: contain;
}

.workspace-file-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.workspace-file-meta {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.workspace-file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .workspace-header-bar {
    flex-direction: column;
  }

  .workspace-header-aside {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .workspace-account {
    text-align: left;
    max-width: none;
  }

  .workspace-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--background);
    padding-top: 8px;
  }
}


/* Onboarding V2 — First Connection Wizard */
.onboarding-wizard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
}
.onboarding-label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
}
.onboarding-name {
  width: 100%;
  box-sizing: border-box;
}
.onboarding-platforms,
.onboarding-clients .connect-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.onboarding-primary-cta {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
}
.onboarding-toast {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(200, 243, 109, 0.12);
  border: 1px solid rgba(200, 243, 109, 0.35);
}
.onboarding-store-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.onboarding-installed-confirm {
  margin-top: 12px;
}
@media (max-width: 680px) {
  .onboarding-wizard {
    gap: 12px;
  }
  .onboarding-platforms .connect-choice,
  .onboarding-clients .connect-choice {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }
  .onboarding-primary-cta {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 3;
  }
}
