:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #65717c;
  --line: #d9e0e5;
  --panel: #ffffff;
  --page: #f5f7f8;
  --accent: #117c6f;
  --accent-dark: #075d53;
  --danger: #a33a2d;
  --good: #127348;
}

.chat-shell { max-width: 900px; margin: 0 auto; }
.chat-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.chat-platforms { display: flex; gap: .6rem; margin: 1rem 0; }
.chat-platforms span { border: 1px solid #40505a; border-radius: 999px; padding: .3rem .65rem; opacity: .55; }
.chat-platforms span[data-status="connected"] { border-color: #20d6a4; color: #79f3d0; opacity: 1; }
.chat-platforms span[data-status="error"] { border-color: #dc635d; color: #ffaaa5; opacity: 1; }
.unified-chat-feed { min-height: 55vh; max-height: 72vh; overflow-y: auto; padding: 1rem; border: 1px solid #33454f; border-radius: 14px; background: rgba(8, 14, 18, .82); }
.chat-message { display: grid; grid-template-columns: auto auto 1fr; gap: .65rem; align-items: baseline; padding: .55rem .2rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.chat-platform-badge { min-width: 4.5rem; border-radius: 999px; padding: .15rem .45rem; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
.chat-youtube .chat-platform-badge { background: #d92828; }
.chat-twitch .chat-platform-badge { background: #7652c7; }
.chat-kick .chat-platform-badge { background: #398c18; }
.chat-author { white-space: nowrap; }
.chat-message-body { overflow-wrap: anywhere; }
.chat-emote { display: inline-block; width: auto; height: 1.75em; max-width: 4em; margin: -.3em .08em; object-fit: contain; vertical-align: middle; }
.chat-empty { margin: 4rem auto; text-align: center; color: #9aabb4; }
.chat-setup { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid #8d6b2f; border-radius: 10px; background: rgba(120, 78, 16, .18); color: #f1cf8d; }
.chat-setup p { margin: .25rem 0; }
.chat-permission-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; padding: .75rem 1rem; border: 1px solid #8d6b2f; border-radius: 10px; background: rgba(120, 78, 16, .18); }
.chat-overlay-link { margin: 0 0 1rem; }
.chat-overlay-link label { display: block; margin-bottom: .35rem; font-weight: 700; }
.chat-overlay-link .inline-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.chat-overlay-link input { width: 100%; }
.obs-chat-overlay { min-height: 100vh; padding: 12px; color: #fff; background: transparent; overflow: hidden; }
.obs-chat-feed { display: flex; min-height: calc(100vh - 24px); flex-direction: column; justify-content: flex-end; }
.obs-chat-feed .chat-message { grid-template-columns: auto auto 1fr; padding: .35rem .55rem; border: 0; border-radius: 8px; background: rgba(8, 14, 18, .72); text-shadow: 0 1px 2px #000; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  color: var(--ink);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

nav form {
  margin: 0;
}

main {
  width: min(1120px, calc(100vw - 32px));
  margin: 28px auto 56px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

p {
  color: var(--muted);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: #ffffff;
  color: var(--accent-dark);
}

button.danger,
.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

button.compact,
.button.compact {
  min-height: 30px;
  padding: 0 9px;
  font-size: 13px;
}

button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

button.ghost {
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.oauth-button {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

input,
select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea.copy-text {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

label {
  display: block;
  color: #34414c;
  font-weight: 650;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.auth-copy {
  padding: 32px 0;
}

.auth-copy p {
  max-width: 560px;
}

.auth-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgb(20 30 35 / 5%);
}

.auth-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.stack {
  display: grid;
  gap: 12px;
}

.workspace {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 20px;
}

.job-history {
  padding: 0;
  color: var(--muted);
}

.job-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.job-history-summary::-webkit-details-marker {
  display: none;
}

.job-history-summary::before {
  content: "›";
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease;
}

.job-history[open] .job-history-summary::before {
  transform: rotate(90deg);
}

.job-history-summary > span:first-child {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.job-history-summary strong {
  color: var(--text);
  font-size: 16px;
}

.job-history-summary small {
  font-size: 13px;
}

.job-history-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.job-history-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.job-history-content .table {
  margin-top: 16px;
}

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

.section-heading .hint {
  margin-bottom: 0;
}

.submit-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.job-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px;
  gap: 14px;
  align-items: end;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / span 2;
  color: var(--muted);
  font-weight: 500;
}

.checkbox:has(input[name="upload_requested"]),
.checkbox:has(input[name="drive_upload_requested"]),
.checkbox:has(input[name="tiktok_upload_requested"]),
.checkbox:has(input[name="twitch_clip_requested"]),
.checkbox:has(input[name="bluesky_upload_requested"]),
.checkbox:has(input[name="snapchat_share_requested"]),
.checkbox:has(input[type="checkbox"]:not([name])) {
  position: relative;
  padding-left: 28px;
}

.checkbox:has(input[name="upload_requested"])::before,
.checkbox:has(input[name="drive_upload_requested"])::before,
.checkbox:has(input[name="tiktok_upload_requested"])::before,
.checkbox:has(input[name="twitch_clip_requested"])::before,
.checkbox:has(input[name="bluesky_upload_requested"])::before,
.checkbox:has(input[name="snapchat_share_requested"])::before,
.checkbox:has(input[type="checkbox"]:not([name]))::before {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.checkbox:has(input[name="upload_requested"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect y='4' width='24' height='16' rx='5' fill='%23ff0033'/%3E%3Cpath d='m10 8 6 4-6 4z' fill='white'/%3E%3C/svg%3E");
}

.checkbox:has(input[name="drive_upload_requested"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8l7 12h-8z' fill='%23fbbc04'/%3E%3Cpath d='M8 2 1 14l4 7 7-12z' fill='%230f9d58'/%3E%3Cpath d='M5 21h14l4-7H9z' fill='%234285f4'/%3E%3C/svg%3E");
}

.checkbox:has(input[name="tiktok_upload_requested"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v11.2a4.8 4.8 0 1 1-4-4.73v2.8a2 2 0 1 0 1.2 1.83V3z' fill='%23101010'/%3E%3Cpath d='M14 3c.5 2.6 2 4 5 4.3v2.8c-2-.1-3.7-.8-5-2z' fill='%23ff0050'/%3E%3Cpath d='M12.7 4.2v10a4 4 0 0 1-5.8 3.6' fill='none' stroke='%2300f2ea' stroke-width='1.5'/%3E%3C/svg%3E");
}

.checkbox:has(input[name="twitch_clip_requested"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 2h19v13l-6 6h-5l-3 3v-3H3z' fill='%239146ff'/%3E%3Cpath d='M7 5v11h4v3l3-3h4V5z' fill='white'/%3E%3Cpath d='M11 8v5M15 8v5' stroke='%239146ff' stroke-width='2'/%3E%3C/svg%3E");
}

.checkbox:has(input[name="bluesky_upload_requested"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10C10.5 7 6.4 2.3 3.2 3.8.6 5 2 10.7 4.2 12.2 2 12.8.5 14.1 1.4 16.8 2.8 21 8.7 19.3 12 15.5c3.3 3.8 9.2 5.5 10.6 1.3.9-2.7-.6-4-2.8-4.6C22 10.7 23.4 5 20.8 3.8 17.6 2.3 13.5 7 12 10Z' fill='%231185fe'/%3E%3C/svg%3E");
}

.checkbox:has(input[name="snapchat_share_requested"])::before,
.checkbox:has(input[type="checkbox"]:not([name]))::before {
  border-radius: 5px;
  background-color: #fffc00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='5' fill='%23fffc00'/%3E%3Cpath d='M12 4c-3 0-4 2.4-4 5.2 0 1-.5 1.7-1.8 2.3-1 .5-.7 1.3.4 1.5-.2 1.5-1.3 2.1-2.2 2.5.8 1.2 2.2.8 3.2 1.5.9.6 1.5 2 4.4 2s3.5-1.4 4.4-2c1-.7 2.4-.3 3.2-1.5-.9-.4-2-1-2.2-2.5 1.1-.2 1.4-1 .4-1.5C16.5 10.9 16 10.2 16 9.2 16 6.4 15 4 12 4Z' fill='white' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 38px;
  min-width: 38px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #747f85;
  background-image: radial-gradient(circle at 10px 50%, #fff 0 7px, transparent 7.5px);
  cursor: pointer;
  transition: background-color 150ms ease, background-position 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.checkbox input[type="checkbox"]:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: radial-gradient(circle at 27px 50%, #fff 0 7px, transparent 7.5px);
}

.checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.checkbox:has(input[type="checkbox"]:disabled) {
  opacity: 0.72;
}

.monitor-toggle-form {
  margin: 14px 0;
}

.kick-switch > span:first-child::before {
  content: "K";
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  place-items: center;
  border-radius: 4px;
  color: #0b0d0c;
  background: #53fc18;
  font-size: 13px;
  font-weight: 900;
  vertical-align: -2px;
}

.profile-url-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.profile-url-form button {
  justify-self: start;
}

.connected-source-settings-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.connected-source-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.connected-source-settings-form label {
  font-size: 13px;
}

.connected-source-settings-form input,
.connected-source-settings-form select {
  min-height: 36px;
}

.connected-source-settings-grid .checkbox {
  grid-column: auto;
  align-self: center;
}

.connected-source-settings-form button {
  justify-self: start;
}

.connected-source-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.state-time {
  color: var(--muted);
  font-size: 12px;
}

.connected-source-state .pill.running {
  background: #e5f4ec;
  color: var(--good);
}

.connected-source-state .pill.queued,
.connected-source-state .pill.waiting {
  background: #fff4d6;
  color: #7a5400;
}

.switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 240px);
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.switch-button:hover {
  color: var(--accent-dark);
}

.switch-button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 999px;
}

.switch-track {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #dfe6e8;
  transition: background 150ms ease, border-color 150ms ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(20 30 35 / 25%);
  transition: transform 150ms ease;
}

.switch-button.is-on .switch-track {
  border-color: var(--accent);
  background: var(--accent);
}

.switch-button.is-on .switch-thumb {
  transform: translateX(20px);
}

.auto-source-form {
  grid-template-columns: minmax(260px, 1fr) 130px 120px 170px;
  margin-bottom: 18px;
}

.auto-source-form .checkbox {
  grid-column: auto;
  align-self: center;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.restream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.auto-restream-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.auto-restream-form h3 {
  margin: 0;
  font-size: 16px;
}

.auto-restream-form p {
  margin-bottom: 0;
}

.restream-form {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.restream-form h3 {
  margin: 0;
  font-size: 16px;
}

.restream-form button {
  justify-self: start;
}

.restream-table {
  margin-top: 18px;
}

.restream-row {
  grid-template-columns: 110px minmax(160px, 0.7fr) minmax(0, 1fr) 150px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status {
  color: var(--muted);
}

.status.good {
  color: var(--good);
}

.hint {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.error {
  margin: 0;
  color: var(--danger);
  font-weight: 650;
}

.error-block {
  overflow: auto;
  max-height: 360px;
  padding: 14px;
  border-radius: 6px;
  background: #fff1ed;
  color: var(--danger);
  white-space: pre-wrap;
}

.table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 150px 110px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row.head {
  background: #eef3f2;
  color: #48545f;
  font-weight: 750;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.row-actions form,
.inline-action {
  margin: 0;
}

.auto-source-row {
  grid-template-columns: 110px 90px minmax(0, 1fr) minmax(170px, 0.7fr) 160px 230px;
}

.auto-source-error {
  grid-template-columns: 200px minmax(0, 1fr);
  background: #fff9f6;
}

.auto-upload-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auto-source-settings-row {
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: start;
  background: #fbfcfc;
}

.auto-settings-label {
  padding-top: 9px;
  color: #34414c;
  font-weight: 750;
}

.auto-source-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.auto-source-settings-form .checkbox {
  grid-column: auto;
  align-self: center;
}

.auto-source-settings-form button {
  align-self: center;
}

.inline-action {
  margin-top: 14px;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf0f2;
  color: #4a5660;
  font-size: 12px;
  font-weight: 750;
}

.pill.succeeded {
  background: #e5f4ec;
  color: var(--good);
}

.pill.failed {
  background: #ffe9e4;
  color: var(--danger);
}

.pill.running,
.pill.queued,
.pill.cancel_requested,
.pill.monitoring,
.pill.waiting {
  background: #e7f1fb;
  color: #226299;
}

.pill.offline,
.pill.disabled,
.pill.cancelled {
  background: #edf0f2;
  color: #4a5660;
}

.artifact-list {
  display: grid;
  gap: 10px;
}

.artifact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.artifact span {
  display: block;
  color: var(--muted);
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.share-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.share-copy,
.clip-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgb(20 30 35 / 5%);
}

.share-copy {
  padding: 24px;
}

.clip-preview {
  padding: 12px;
}

.clip-preview video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 6px;
  background: #101417;
}

.upload-list {
  display: grid;
  gap: 10px;
}

.upload-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.upload-filter-form .checkbox {
  grid-column: auto;
  margin: 0;
  white-space: nowrap;
}

.upload-filter-form .compact-field {
  display: grid;
  grid-template-columns: auto minmax(150px, 190px);
  gap: 8px;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

.upload-filter-form select {
  min-height: 30px;
  margin-top: 0;
  padding: 4px 8px;
  font-size: 13px;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.upload-main,
.upload-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.upload-meta {
  justify-items: end;
  text-align: right;
}

.upload-item .upload-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
}

.upload-meta form {
  margin: 0;
}

.destination-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.destination {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.destination-name {
  color: #34414c;
  font-size: 13px;
  font-weight: 750;
}

.destination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.destination form {
  margin: 0;
}

.destination-form {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.destination-form select {
  min-height: 30px;
  margin-top: 0;
  padding: 4px 8px;
  font-size: 13px;
}

.upload-preview {
  grid-column: 1 / -1;
  justify-self: start;
  width: min(220px, 100%);
}

.upload-preview details {
  display: grid;
  gap: 10px;
  width: 100%;
}

.upload-preview summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 9px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.upload-preview summary::-webkit-details-marker {
  display: none;
}

.upload-preview video {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 6px;
  background: #050607;
}

.muted,
.upload-meta span {
  color: var(--muted);
}

.upload-error {
  overflow-wrap: anywhere;
  color: var(--danger);
  font-size: 13px;
}

.upload-error-detail {
  display: grid;
  gap: 8px;
  color: var(--danger);
  font-size: 13px;
}

.upload-error-detail summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}

.upload-error-detail pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: #fff1ed;
  color: var(--danger);
  white-space: pre-wrap;
}

.doc {
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.doc h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.doc p,
.doc li {
  color: #4c5964;
}

.doc ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.doc .effective {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.doc code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef3f2;
  color: #34414c;
}

.billing-shell {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.billing-card {
  max-width: 620px;
  padding: 36px;
}

.billing-price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 24px 0 8px;
}

.billing-price strong {
  font-size: clamp(42px, 8vw, 64px);
  letter-spacing: -0.04em;
}

.billing-price span {
  color: var(--muted);
}

.billing-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 820px) {
  .auth-shell,
  .submit-panel,
  .grid.two,
  .grid.three,
  .job-form,
  .share-shell,
  .upload-item,
  .row,
  .auto-source-form,
  .auto-source-row,
  .auto-source-settings-row,
  .auto-source-settings-form,
  .connected-source-settings-grid,
  .auto-source-error,
  .auto-restream-form,
  .restream-grid,
  .restream-row {
    grid-template-columns: 1fr;
  }

  .upload-meta {
    justify-items: start;
    text-align: left;
  }

  .destination,
  .destination-form {
    grid-template-columns: 1fr;
  }

  .upload-preview {
    width: min(220px, 100%);
  }

  .checkbox {
    grid-column: auto;
  }

  .artifact {
    align-items: stretch;
    flex-direction: column;
  }

  .artifact-actions {
    justify-content: flex-start;
  }

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

/* Public marketing site */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
}

.brand-mark::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.brand-mark > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.landing-body {
  --landing-bg: #07100f;
  --landing-surface: #0d1917;
  --landing-surface-raised: #12211e;
  --landing-line: rgb(174 221 204 / 15%);
  --landing-ink: #edf8f4;
  --landing-muted: #9db4ac;
  --landing-mint: #62efbd;
  --landing-mint-dark: #169b75;
  color-scheme: dark;
  color: var(--landing-ink);
  background: var(--landing-bg);
}

.landing-body main {
  width: 100%;
  margin: 0;
}

.landing-body .landing-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 15px max(24px, calc((100vw - 1180px) / 2));
  border-color: rgb(174 221 204 / 12%);
  background: rgb(7 16 15 / 82%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 15%);
  backdrop-filter: blur(18px);
}

.landing-body .brand {
  color: var(--landing-ink);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.landing-body .brand-mark {
  background: var(--landing-mint);
  box-shadow: 0 0 24px rgb(98 239 189 / 24%);
}

.landing-body .brand-mark::before,
.landing-body .brand-mark::after {
  border-color: #07100f;
}

.landing-body .brand-mark > span {
  background: #07100f;
}

.landing-body .site-nav {
  gap: 24px;
}

.landing-body .site-nav a {
  color: #b9ccc5;
  font-size: 14px;
  font-weight: 620;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.landing-body .site-nav a:hover {
  color: #fff;
}

.landing-body .site-nav .nav-signin {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgb(98 239 189 / 42%);
  border-radius: 9px;
  color: var(--landing-mint);
}

.landing-body .site-nav .nav-signin:hover {
  border-color: var(--landing-mint);
  background: rgb(98 239 189 / 8%);
  color: #fff;
}

.landing-shell {
  overflow: hidden;
  color: var(--landing-ink);
  background:
    linear-gradient(180deg, #07100f 0, #091311 42%, #07100f 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3,
.landing-shell p {
  color: inherit;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3 {
  letter-spacing: -0.035em;
}

.landing-shell h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
}

.landing-shell h3 {
  font-size: 21px;
  line-height: 1.15;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 710px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 32px 96px;
  grid-template-columns: minmax(340px, 0.8fr) minmax(570px, 1.2fr);
  gap: 62px;
  align-items: center;
}

.landing-glow {
  position: absolute;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(1px);
  pointer-events: none;
}

.landing-glow-one {
  top: 40px;
  right: -230px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #27dba5 0, rgb(39 219 165 / 0%) 68%);
}

.landing-glow-two {
  bottom: -310px;
  left: -280px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #176c65 0, rgb(23 108 101 / 0%) 68%);
}

.landing-hero-copy,
.landing-product-visual {
  position: relative;
  z-index: 1;
}

.landing-kicker,
.landing-section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--landing-mint) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.landing-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-mint);
  box-shadow: 0 0 0 5px rgb(98 239 189 / 11%), 0 0 18px rgb(98 239 189 / 70%);
  animation: landing-live-pulse 2.2s ease-in-out infinite;
}

@keyframes landing-live-pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.72; }
  50% { transform: scale(1); opacity: 1; }
}

.landing-hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.062em;
}

.landing-hero h1 span {
  display: block;
  color: var(--landing-mint);
}

.landing-hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--landing-muted) !important;
  font-size: 18px;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
}

.landing-primary-button {
  min-height: 52px;
  padding: 0 22px;
  border-color: var(--landing-mint);
  border-radius: 11px;
  background: var(--landing-mint);
  box-shadow: 0 12px 34px rgb(30 215 157 / 19%);
  color: #07100f !important;
  font-weight: 780;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.landing-primary-button:hover {
  transform: translateY(-2px);
  background: #80f5cc;
  box-shadow: 0 16px 40px rgb(30 215 157 / 28%);
}

.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--landing-ink);
  font-weight: 700;
}

.landing-text-link span {
  color: var(--landing-mint);
  font-size: 18px;
  transition: transform 160ms ease;
}

.landing-text-link:hover span {
  transform: translateX(3px);
}

.landing-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: #829b92;
  font-size: 12px;
  list-style: none;
}

.landing-hero-notes li {
  position: relative;
  padding-left: 14px;
}

.landing-hero-notes li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--landing-mint);
  content: "";
}

.landing-product-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(179 235 214 / 17%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(20 38 34 / 95%), rgb(7 14 13 / 98%));
  box-shadow:
    0 40px 100px rgb(0 0 0 / 42%),
    0 0 0 8px rgb(255 255 255 / 1.5%),
    inset 0 1px rgb(255 255 255 / 4%);
}

.landing-window-bar {
  display: grid;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--landing-line);
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #95aaa2;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.landing-window-dots {
  display: flex;
  gap: 5px;
}

.landing-window-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #426159;
}

.landing-window-dots span:nth-child(2) { opacity: 0.7; }
.landing-window-dots span:nth-child(3) { opacity: 0.45; }

.landing-workflow-status {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 6px;
  color: #a5c4b8;
}

.landing-workflow-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-mint);
  box-shadow: 0 0 10px var(--landing-mint);
}

.landing-workflow-canvas {
  position: relative;
  display: grid;
  min-height: 430px;
  padding: 30px 24px 28px;
  grid-template-columns: minmax(130px, 0.85fr) minmax(166px, 1fr) minmax(130px, 0.85fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgb(58 192 147 / 11%), transparent 38%),
    linear-gradient(rgb(111 164 144 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(111 164 144 / 3%) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.landing-workflow-canvas::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(98 239 189 / 34%), transparent);
  content: "";
}

.landing-source-stack,
.landing-delivery-stack,
.landing-phone-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.landing-visual-label {
  margin: 0 0 9px;
  color: #6f8b81 !important;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-source-card,
.landing-delivery-card {
  display: grid;
  min-width: 0;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid rgb(174 221 204 / 11%);
  border-radius: 10px;
  background: rgb(20 35 32 / 88%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.landing-source-card.is-live {
  border-color: rgb(98 239 189 / 26%);
  background: linear-gradient(90deg, rgb(31 66 55 / 85%), rgb(18 33 30 / 90%));
}

.landing-source-card strong,
.landing-delivery-card strong {
  display: block;
  overflow: hidden;
  color: #e5f2ed;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-source-card small,
.landing-delivery-card small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #718b81;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-source-card > i,
.landing-delivery-card > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-mint);
  box-shadow: 0 0 8px rgb(98 239 189 / 60%);
}

.landing-delivery-card > i.queued {
  border: 1px solid #ecc26d;
  background: transparent;
  box-shadow: none;
}

.landing-source-card > b {
  color: #5f8979;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.landing-platform-dot {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 8px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.landing-platform-dot.youtube,
.landing-monitor-demo i.youtube,
.landing-route-destinations i.youtube { background: #e44747; }
.landing-platform-dot.twitch,
.landing-monitor-demo i.twitch { background: #8158d6; }
.landing-platform-dot.kick,
.landing-monitor-demo i.kick { background: #43a926; }
.landing-platform-dot.tiktok,
.landing-route-destinations i.tiktok { background: linear-gradient(135deg, #26d8dd 0 30%, #161b1c 31% 68%, #f35b82 69%); }
.landing-platform-dot.drive,
.landing-route-destinations i.drive { background: linear-gradient(135deg, #34a853 0 33%, #fbbc04 34% 66%, #4285f4 67%); }
.landing-platform-dot.bluesky { background: #2784d7; }
.landing-platform-dot.snapchat { background: #f3dc31; color: #171b1a; }

.landing-phone-stage {
  display: grid;
  justify-items: center;
}

.landing-phone-meta {
  display: flex;
  width: 170px;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #839c92;
  font-size: 8px;
  font-weight: 720;
  text-transform: uppercase;
}

.landing-phone-meta .landing-strength {
  color: var(--landing-mint);
}

.landing-phone {
  width: 170px;
  padding: 6px;
  border: 1px solid rgb(203 239 225 / 24%);
  border-radius: 22px;
  background: #050908;
  box-shadow: 0 22px 54px rgb(0 0 0 / 45%), 0 0 34px rgb(58 223 167 / 8%);
}

.landing-phone-video {
  position: relative;
  height: 286px;
  overflow: hidden;
  border-radius: 17px 17px 10px 10px;
  background:
    linear-gradient(180deg, rgb(3 13 17 / 12%), rgb(1 5 6 / 70%)),
    linear-gradient(145deg, #10434a, #361f50 48%, #0e2925);
}

.landing-phone-video::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(255 255 255 / 7%) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, rgb(255 255 255 / 6%) 50%, transparent 50.3%);
  background-size: 52px 52px;
  content: "";
  opacity: 0.32;
}

.landing-video-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.landing-video-light.light-one {
  top: 18px;
  right: -22px;
  width: 104px;
  height: 104px;
  background: rgb(73 229 180 / 32%);
}

.landing-video-light.light-two {
  bottom: 30px;
  left: -28px;
  width: 110px;
  height: 110px;
  background: rgb(179 80 225 / 26%);
}

.landing-video-subject {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 98px;
  height: 156px;
  transform: translateX(-50%);
}

.landing-subject-head {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 51px;
  height: 58px;
  transform: translateX(-50%);
  border: 2px solid rgb(255 255 255 / 14%);
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(135deg, #d5a982, #8c604e);
  box-shadow: inset -10px -8px 18px rgb(46 20 23 / 22%);
}

.landing-subject-head::before {
  position: absolute;
  top: -9px;
  right: -5px;
  left: -5px;
  height: 31px;
  border-radius: 50% 50% 38% 42%;
  background: #251d22;
  content: "";
}

.landing-subject-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 112px;
  border-radius: 42px 42px 14px 14px;
  background: linear-gradient(160deg, #1d8f79, #0d433c 75%);
  box-shadow: inset 0 1px rgb(255 255 255 / 13%);
}

.landing-caption-chip {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 52px;
  left: 12px;
  padding: 8px 6px;
  border-radius: 7px;
  background: rgb(3 9 8 / 82%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 28%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-align: center;
}

.landing-caption-lines {
  position: absolute;
  right: 16px;
  bottom: 24px;
  left: 16px;
  display: flex;
  height: 13px;
  align-items: end;
  gap: 3px;
}

.landing-caption-lines span {
  width: 20%;
  border-radius: 2px;
  background: var(--landing-mint);
}

.landing-caption-lines span:nth-child(1) { height: 35%; }
.landing-caption-lines span:nth-child(2) { height: 80%; }
.landing-caption-lines span:nth-child(3) { height: 52%; }
.landing-caption-lines span:nth-child(4) { height: 100%; }
.landing-caption-lines span:nth-child(5) { height: 48%; }

.landing-phone-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 2px 3px;
  color: #769087;
  font-size: 7px;
  font-weight: 720;
  text-transform: uppercase;
}

.landing-phone-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.landing-phone-footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--landing-mint);
}

.landing-platform-band {
  padding: 32px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  background: rgb(14 27 24 / 70%);
  text-align: center;
}

.landing-platform-band > p {
  margin: 0 0 20px;
  color: #789087 !important;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-platform-band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-platform-band li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c2d4cd;
  font-size: 13px;
  font-weight: 680;
}

.landing-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 112px 32px;
}

.landing-section-heading {
  max-width: 730px;
  margin-bottom: 54px;
}

.landing-section-heading > p:last-child,
.landing-pricing-copy > p:not(.landing-section-kicker),
.landing-routing-copy > p:not(.landing-section-kicker) {
  margin-top: 20px;
  color: var(--landing-muted) !important;
  font-size: 17px;
  line-height: 1.65;
}

.landing-section-heading.split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.75fr);
  gap: 70px;
  align-items: end;
}

.landing-section-heading.split > p {
  margin: 0 0 6px;
  color: var(--landing-muted) !important;
  font-size: 16px;
  line-height: 1.65;
}

.landing-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  counter-reset: none;
}

.landing-steps li {
  position: relative;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgb(20 36 32 / 92%), rgb(10 20 18 / 96%));
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
}

.landing-step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #3f5a51;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.landing-step-icon {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 12px 0 42px;
  border: 1px solid rgb(98 239 189 / 18%);
  border-radius: 20px;
  background: rgb(98 239 189 / 6%);
}

.landing-step-icon.source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.landing-step-icon.source-icon i {
  width: 12px;
  border-radius: 4px;
  background: var(--landing-mint);
}

.landing-step-icon.source-icon i:nth-child(1) { height: 22px; opacity: 0.45; }
.landing-step-icon.source-icon i:nth-child(2) { height: 38px; }
.landing-step-icon.source-icon i:nth-child(3) { height: 28px; opacity: 0.7; }

.landing-step-icon.edit-icon span {
  position: absolute;
  inset: 14px 22px;
  border: 2px solid var(--landing-mint);
  border-radius: 8px;
}

.landing-step-icon.edit-icon span::before,
.landing-step-icon.edit-icon span::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: solid var(--landing-mint);
  content: "";
}

.landing-step-icon.edit-icon span::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.landing-step-icon.edit-icon span::after { right: -6px; bottom: -6px; border-width: 0 2px 2px 0; }

.landing-step-icon.edit-icon i {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0c468;
}

.landing-step-icon.route-icon i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--landing-mint);
  border-radius: 50%;
}

.landing-step-icon.route-icon i:nth-child(1) { top: 30px; left: 14px; }
.landing-step-icon.route-icon i:nth-child(2) { top: 15px; right: 15px; }
.landing-step-icon.route-icon i:nth-child(3) { right: 15px; bottom: 14px; }

.landing-step-icon.route-icon::before,
.landing-step-icon.route-icon::after {
  position: absolute;
  left: 27px;
  width: 27px;
  height: 1px;
  transform-origin: left center;
  background: var(--landing-mint);
  content: "";
}

.landing-step-icon.route-icon::before { top: 34px; transform: rotate(-28deg); }
.landing-step-icon.route-icon::after { top: 38px; transform: rotate(26deg); }

.landing-steps h3 {
  margin: 0 0 12px;
}

.landing-steps p {
  margin: 0;
  color: var(--landing-muted) !important;
  line-height: 1.65;
}

.landing-features {
  padding-top: 72px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.landing-feature-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 20px;
  background: var(--landing-surface);
  grid-column: span 6;
}

.landing-feature-grid > :nth-child(1) { grid-column: span 7; }
.landing-feature-grid > :nth-child(2) { grid-column: span 5; }
.landing-feature-grid > :nth-child(3) { grid-column: span 5; }
.landing-feature-grid > :nth-child(4) { grid-column: span 7; }
.landing-feature-grid > .feature-wide { grid-column: span 12; }

.landing-feature-card::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(60 218 163 / 8%), transparent 68%);
  content: "";
  pointer-events: none;
}

.landing-feature-card h3 {
  max-width: 460px;
  margin: 24px 0 12px;
  font-size: 25px;
}

.landing-feature-card > p:not(.landing-feature-tag),
.landing-feature-copy > p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0;
  color: var(--landing-muted) !important;
  font-size: 15px;
  line-height: 1.65;
}

.landing-feature-tag {
  display: inline-flex;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgb(98 239 189 / 18%);
  border-radius: 999px;
  color: var(--landing-mint) !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-feature-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(98 239 189 / 18%);
  border-radius: 13px;
  background: rgb(98 239 189 / 6%);
}

.landing-feature-icon.monitor span {
  position: absolute;
  inset: 11px;
  border: 2px solid var(--landing-mint);
  border-radius: 50%;
}

.landing-feature-icon.monitor span::before,
.landing-feature-icon.monitor span::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgb(98 239 189 / 30%);
  border-radius: 50%;
  content: "";
}

.landing-feature-icon.monitor span::after { inset: 4px; background: var(--landing-mint); }

.landing-feature-icon.crop i {
  position: absolute;
  inset: 10px;
  border: solid var(--landing-mint);
  border-width: 0 0 2px 2px;
}

.landing-feature-icon.crop i::before {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: solid var(--landing-mint);
  border-width: 2px 2px 0 0;
  content: "";
}

.landing-feature-icon.publish i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--landing-mint);
  border-radius: 50%;
}

.landing-feature-icon.publish i:nth-child(1) { top: 17px; left: 8px; }
.landing-feature-icon.publish i:nth-child(2) { top: 8px; right: 7px; }
.landing-feature-icon.publish i:nth-child(3) { right: 7px; bottom: 7px; }

.landing-feature-icon.publish::before,
.landing-feature-icon.publish::after {
  position: absolute;
  left: 18px;
  width: 15px;
  height: 1px;
  background: var(--landing-mint);
  content: "";
}

.landing-feature-icon.publish::before { top: 18px; transform: rotate(-27deg); }
.landing-feature-icon.publish::after { top: 24px; transform: rotate(27deg); }

.landing-feature-icon.restream i {
  position: absolute;
  top: 12px;
  width: 12px;
  height: 18px;
  border: 2px solid var(--landing-mint);
  border-radius: 4px;
}

.landing-feature-icon.restream i:nth-child(1) { left: 6px; }
.landing-feature-icon.restream i:nth-child(2) { right: 6px; }

.landing-feature-icon.restream span {
  position: absolute;
  top: 21px;
  left: 18px;
  width: 8px;
  height: 2px;
  background: var(--landing-mint);
}

.landing-feature-icon.chat i {
  position: absolute;
  width: 20px;
  height: 15px;
  border: 2px solid var(--landing-mint);
  border-radius: 5px;
}

.landing-feature-icon.chat i:nth-child(1) { top: 8px; left: 7px; }
.landing-feature-icon.chat i:nth-child(2) { right: 6px; bottom: 7px; opacity: 0.55; }

.landing-monitor-demo {
  display: grid;
  max-width: 460px;
  margin-top: 28px;
  gap: 7px;
}

.landing-monitor-demo > span {
  display: grid;
  padding: 10px 12px;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  background: rgb(6 14 12 / 60%);
  grid-template-columns: 8px 1fr auto;
  gap: 9px;
  align-items: center;
  color: #bcd0c8;
  font-size: 11px;
  font-weight: 680;
}

.landing-monitor-demo i,
.landing-route-destinations i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.landing-monitor-demo b {
  color: #557268;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-monitor-demo b.live { color: var(--landing-mint); }

.landing-feature-card.feature-wide {
  display: grid;
  min-height: 340px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.landing-feature-copy h3 {
  margin: 24px 0 12px;
}

.landing-chat-demo {
  display: grid;
  padding: 14px;
  border: 1px solid var(--landing-line);
  border-radius: 14px;
  background: #080f0e;
  gap: 8px;
}

.landing-chat-demo > div {
  display: grid;
  padding: 10px;
  border-radius: 9px;
  background: #111d1a;
  grid-template-columns: 27px auto 1fr;
  gap: 9px;
  align-items: center;
}

.landing-chat-demo span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 7px;
  font-weight: 850;
}

.landing-chat-demo span.youtube { background: #e44747; }
.landing-chat-demo span.twitch { background: #8158d6; }
.landing-chat-demo span.kick { background: #43a926; }

.landing-chat-demo b {
  color: #d9e8e2;
  font-size: 10px;
}

.landing-chat-demo p {
  margin: 0;
  color: #8ca49b !important;
  font-size: 11px;
}

.landing-routing {
  display: grid;
  max-width: 1096px;
  padding: 64px;
  border-radius: 28px;
  background: #dff7ee;
  color: #10201c;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.landing-routing .landing-section-kicker {
  color: #167e61 !important;
}

.landing-routing-copy h2 {
  color: #10201c;
  font-size: clamp(34px, 4.2vw, 52px);
}

.landing-routing-copy > p:not(.landing-section-kicker) {
  color: #557269 !important;
  font-size: 15px;
}

.landing-routing .landing-text-link { color: #10201c; }
.landing-routing .landing-text-link span { color: #167e61; }

.landing-routing-board {
  padding: 15px;
  border: 1px solid rgb(17 65 51 / 12%);
  border-radius: 18px;
  background: #f7fcfa;
  box-shadow: 0 24px 54px rgb(30 78 63 / 14%);
}

.landing-route-row {
  display: grid;
  padding: 12px;
  border: 1px solid #dce9e4;
  border-radius: 12px;
  background: #fff;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}

.landing-route-art {
  display: grid;
  width: 48px;
  height: 62px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #1f6866, #311e47);
}

.landing-route-art i {
  width: 17px;
  height: 25px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 4px;
}

.landing-route-row strong {
  display: block;
  color: #17241f;
  font-size: 12px;
}

.landing-route-row small {
  display: block;
  margin-top: 3px;
  color: #758a83;
  font-size: 9px;
}

.landing-route-row > b {
  padding: 5px 7px;
  border-radius: 999px;
  background: #dff7ee;
  color: #167e61;
  font-size: 8px;
  text-transform: uppercase;
}

.landing-route-line {
  width: 1px;
  height: 26px;
  margin-left: 38px;
  background: #b9d4ca;
}

.landing-route-destinations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.landing-route-destinations > span {
  display: grid;
  padding: 10px;
  border: 1px solid #dce9e4;
  border-radius: 10px;
  background: #fff;
  grid-template-columns: 8px 1fr;
  gap: 4px 7px;
  align-items: center;
}

.landing-route-destinations strong {
  color: #26362f;
  font-size: 9px;
}

.landing-route-destinations small {
  color: #83968f;
  font-size: 7px;
  grid-column: 1 / -1;
}

.landing-pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(410px, 0.75fr);
  gap: 100px;
  align-items: center;
}

.landing-pricing-copy h2 {
  max-width: 600px;
}

.landing-pricing-copy .landing-pricing-aside {
  max-width: 530px;
  margin-top: 34px !important;
  padding-top: 28px;
  border-top: 1px solid var(--landing-line);
  color: #789087 !important;
  font-size: 14px !important;
}

.landing-price-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border-radius: 22px;
  background: #f0faf6;
  box-shadow: 0 32px 90px rgb(0 0 0 / 34%);
  color: #10201c;
}

.landing-price-card::before {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(32 194 145 / 20%), transparent 65%);
  content: "";
}

.landing-price-card-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.landing-price-card-head > span {
  color: #213b33;
  font-size: 13px;
  font-weight: 800;
}

.landing-price-card-head > b {
  padding: 6px 8px;
  border: 1px solid #b5e4d3;
  border-radius: 999px;
  color: #167e61;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-price {
  position: relative;
  display: flex;
  margin: 32px 0 6px;
  gap: 8px;
  align-items: baseline;
  color: #10201c !important;
}

.landing-price strong {
  font-size: clamp(48px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.landing-price span {
  color: #607870;
  font-size: 14px;
}

.landing-price-summary {
  margin: 0 0 24px;
  color: #607870 !important;
  font-size: 13px;
}

.landing-price-card ul {
  display: grid;
  margin: 0 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid #d2e7df;
  gap: 12px;
  list-style: none;
}

.landing-price-card li {
  position: relative;
  padding-left: 26px;
  color: #344f46;
  font-size: 13px;
}

.landing-price-card li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #c9f2e2;
  color: #116c52;
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
}

.landing-price-card .landing-primary-button {
  position: relative;
  width: 100%;
  background: #142721;
  border-color: #142721;
  box-shadow: none;
  color: #fff !important;
}

.landing-price-card .landing-primary-button:hover {
  background: #1e3b31;
}

.landing-price-fineprint {
  margin: 16px 0 0;
  color: #7b9088 !important;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.landing-faq {
  padding-top: 64px;
}

.landing-faq-list {
  border-top: 1px solid var(--landing-line);
}

.landing-faq details {
  border-bottom: 1px solid var(--landing-line);
}

.landing-faq summary {
  position: relative;
  padding: 25px 48px 25px 0;
  color: #dcebe5;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.landing-faq summary::-webkit-details-marker { display: none; }

.landing-faq summary::after {
  position: absolute;
  top: 20px;
  right: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--landing-line);
  border-radius: 50%;
  color: var(--landing-mint);
  content: "+";
  font-size: 20px;
  font-weight: 400;
}

.landing-faq details[open] summary::after { content: "\2212"; }

.landing-faq details p {
  max-width: 800px;
  margin: -5px 0 25px;
  color: var(--landing-muted) !important;
  line-height: 1.7;
}

.landing-final-cta {
  display: flex;
  max-width: 1160px;
  min-height: 270px;
  margin: 24px auto 0;
  padding: 56px 64px;
  overflow: hidden;
  border: 1px solid rgb(98 239 189 / 26%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 20%, rgb(98 239 189 / 20%), transparent 36%),
    linear-gradient(135deg, #11261f, #0b1714);
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
  justify-content: space-between;
  gap: 50px;
  align-items: center;
}

.landing-final-cta h2 {
  max-width: 650px;
  font-size: clamp(36px, 5vw, 58px);
}

.landing-final-cta .landing-primary-button {
  flex: 0 0 auto;
}

.landing-footer {
  display: grid;
  max-width: 1160px;
  margin: 0 auto;
  padding: 68px 32px 42px;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.landing-footer p {
  margin: 0;
  color: #647e74 !important;
  font-size: 12px;
}

.landing-footer nav {
  justify-self: end;
}

.landing-footer nav a {
  color: #7f978e;
  font-size: 12px;
}

.landing-footer nav a:hover { color: #fff; }

.landing-body a:focus-visible,
.landing-body summary:focus-visible {
  outline: 3px solid rgb(98 239 189 / 55%);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 82px;
  }

  .landing-hero-copy {
    max-width: 760px;
  }

  .landing-product-visual {
    width: 100%;
    max-width: 780px;
    justify-self: center;
  }

  .landing-routing,
  .landing-pricing {
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .landing-body .landing-topbar {
    flex-direction: row;
    align-items: center;
  }

  .landing-body .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .landing-body .site-nav a:not(.nav-signin) {
    display: none;
  }

  .landing-hero {
    padding: 66px 22px 76px;
    gap: 48px;
  }

  .landing-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .landing-workflow-canvas {
    min-height: 400px;
    padding: 24px 18px;
    grid-template-columns: minmax(105px, 0.75fr) minmax(155px, 1fr) minmax(105px, 0.75fr);
    gap: 10px;
  }

  .landing-source-card,
  .landing-delivery-card {
    padding: 7px;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .landing-source-card .landing-platform-dot,
  .landing-delivery-card .landing-platform-dot {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .landing-phone {
    width: 155px;
  }

  .landing-phone-meta { width: 155px; }
  .landing-phone-video { height: 260px; }

  .landing-section {
    padding: 84px 22px;
  }

  .landing-section-heading.split,
  .landing-routing,
  .landing-pricing,
  .landing-feature-card.feature-wide {
    grid-template-columns: 1fr;
  }

  .landing-section-heading.split { gap: 24px; }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-steps li { min-height: 260px; }

  .landing-feature-grid > :nth-child(n) {
    grid-column: span 12;
  }

  .landing-feature-card.feature-wide { gap: 30px; }

  .landing-routing {
    margin-right: 22px;
    margin-left: 22px;
    padding: 42px 28px;
  }

  .landing-pricing { gap: 50px; }

  .landing-final-cta {
    margin-right: 22px;
    margin-left: 22px;
    padding: 46px 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-footer {
    grid-template-columns: 1fr auto;
  }

  .landing-footer > p { display: none; }
}

@media (max-width: 590px) {
  .landing-body .landing-topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .landing-body .site-nav { gap: 10px; }

  .landing-hero-lede { font-size: 16px; }

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

  .landing-hero-actions .landing-primary-button { width: 100%; }

  .landing-hero-actions .landing-text-link { justify-content: center; }

  .landing-window-bar {
    grid-template-columns: 1fr auto;
  }

  .landing-window-bar > span:nth-child(2) { display: none; }

  .landing-workflow-canvas {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-workflow-canvas::before { display: none; }

  .landing-source-stack,
  .landing-delivery-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .landing-source-stack .landing-visual-label,
  .landing-delivery-stack .landing-visual-label {
    grid-column: 1 / -1;
    margin: 0;
  }

  .landing-source-card,
  .landing-delivery-card { margin: 0; }

  .landing-source-card:nth-of-type(4),
  .landing-delivery-card:nth-of-type(4),
  .landing-delivery-card:nth-of-type(5) { display: none; }

  .landing-phone {
    width: 178px;
  }

  .landing-phone-meta { width: 178px; }
  .landing-phone-video { height: 300px; }

  .landing-platform-band ul { gap: 12px 18px; }

  .landing-section-heading { margin-bottom: 38px; }

  .landing-feature-card { padding: 24px; }

  .landing-chat-demo > div {
    grid-template-columns: 27px 1fr;
  }

  .landing-chat-demo p { grid-column: 2; }

  .landing-route-row {
    grid-template-columns: 40px 1fr;
  }

  .landing-route-art {
    width: 40px;
    height: 54px;
  }

  .landing-route-row > b { display: none; }

  .landing-route-destinations { grid-template-columns: 1fr; }

  .landing-price-card { padding: 26px 22px; }

  .landing-price-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer {
    padding-right: 22px;
    padding-left: 22px;
    grid-template-columns: 1fr;
  }

  .landing-footer nav {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-live-dot,
  .landing-primary-button,
  .landing-text-link span {
    transition: none;
    animation: none;
  }
}
