:root {
  --bg: #f7f6f2;
  --panel: #ffffff;
  --ink: #151719;
  --muted: #6a7078;
  --line: #d9ded8;
  --green: #26745c;
  --blue: #315f9f;
  --amber: #b7602f;
  --red: #a6403c;
  --shadow: 0 14px 40px rgba(21, 23, 25, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.secondary {
  background: var(--blue);
}

button.danger {
  background: var(--red);
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="time"],
input[type="file"],
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

label,
.label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.shell {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.topbar > div:first-child {
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  font-size: 1rem;
}

.status-line {
  margin-top: 8px;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

button.nav-button {
  cursor: pointer;
}

.badge,
.confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.ok {
  border-color: rgba(38, 116, 92, 0.28);
  background: rgba(38, 116, 92, 0.1);
  color: var(--green);
}

.badge.warn {
  border-color: rgba(183, 96, 47, 0.32);
  background: rgba(183, 96, 47, 0.1);
  color: var(--amber);
}

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel,
.trim-panel,
.suggestion,
.output-panel,
.production-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.import-panel {
  display: grid;
  gap: 18px;
  padding: 16px;
  position: sticky;
  top: 16px;
}

.workflow-picker {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.workflow-picker legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2ee;
}

.workflow-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.workflow-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workflow-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
}

.workflow-option input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(21, 23, 25, 0.08);
}

.workflow-option input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2ee;
}

.tab {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(21, 23, 25, 0.08);
}

.source-form {
  display: grid;
  gap: 9px;
}

.cookie-box {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.cookie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-strip {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.job-strip strong {
  overflow-wrap: anywhere;
}

.job-strip span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.library-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: #eef2ee;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.library-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.library-item {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9faf8;
}

.library-item a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.library-item span,
.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.files-shell {
  max-width: 1180px;
}

.files-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.files-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.files-summary strong {
  font-size: 1.1rem;
}

.files-table-wrap {
  overflow: auto;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.files-table th,
.files-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.files-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.files-table tr:last-child td {
  border-bottom: 0;
}

.file-name-cell {
  display: grid;
  gap: 3px;
  min-width: 260px;
}

.file-name-cell strong,
.file-name-cell span {
  overflow-wrap: anywhere;
}

.file-name-cell span {
  color: var(--muted);
  font-size: 0.86rem;
}

.file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.download.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.publisher-workspace {
  grid-template-columns: 330px minmax(0, 1fr);
}

.publisher-settings {
  display: grid;
  gap: 10px;
}

.automation-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.automation-head,
.automation-toggles,
.toggle-control,
.automation-actions {
  display: flex;
  align-items: center;
}

.automation-head {
  justify-content: space-between;
  gap: 12px;
}

.automation-head > div:not(.automation-toggles) {
  display: grid;
  gap: 3px;
}

.automation-toggles {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.toggle-control {
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.toggle-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.automation-panel p {
  line-height: 1.4;
}

.automation-actions {
  gap: 8px;
}

.automation-actions button {
  flex: 1 1 0;
  min-width: 0;
}

.publisher-panel {
  min-height: 420px;
}

.social-main-panel {
  min-width: 0;
}

.social-package-list {
  display: grid;
}

.social-package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.social-package-item > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.social-package-item small,
.publisher-run small {
  color: var(--muted);
  line-height: 1.4;
}

.social-package-item button {
  flex: 0 0 auto;
}

.social-targets {
  display: grid;
  gap: 8px;
}

.social-runs-heading {
  margin-top: 28px;
}

.platform-results {
  flex-wrap: wrap;
}

.warn-text {
  color: var(--warn);
  font-size: 0.84rem;
}

.channel-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  margin-bottom: 18px;
}

.channel-kpis > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.channel-kpis > div:first-child {
  border-left: 0;
}

.channel-kpis strong {
  font-size: 1.3rem;
}

.channel-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.channel-settings-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 11px;
  padding: 16px;
}

.channel-settings-panel h2,
.channel-section h2,
.connection-dialog h2 {
  margin-top: 3px;
  font-size: 1.04rem;
}

.channel-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.channel-section {
  padding: 16px;
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.setting-toggle {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.compact-copy {
  margin-top: -7px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.branding-controls {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.branding-controls input[type="color"] {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 3px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.secondary-link.compact,
button.compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.channel-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbf9;
  padding: 12px;
}

.channel-card.connected {
  border-top: 3px solid var(--green);
  padding-top: 10px;
}

.channel-card-head,
.channel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.channel-card-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.channel-state {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.channel-state.ok {
  color: var(--green);
}

.channel-state.warn {
  color: var(--amber);
}

.channel-card p {
  min-height: 40px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.channel-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.channel-actions {
  align-self: end;
  margin-top: auto;
}

.text-link {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-table-wrap {
  overflow-x: auto;
  padding-top: 12px;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.schedule-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 48px;
  text-align: center;
}

.schedule-table th:nth-child(2) { width: 125px; }
.schedule-table th:nth-child(3) { width: 112px; }
.schedule-table th:nth-child(5) { width: 190px; }

.schedule-table input,
.schedule-table select {
  min-height: 36px;
  font-size: 0.82rem;
}

.connection-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.connection-dialog::backdrop {
  background: rgba(21, 23, 25, 0.58);
}

.connection-dialog form,
.connection-fields {
  display: grid;
  gap: 14px;
}

.connection-dialog > form > p {
  line-height: 1.45;
}

.connection-fields label {
  display: grid;
  gap: 6px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.icon-command {
  width: 34px;
  min-height: 34px;
  padding: 0;
  background: #eef0ed;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 760px) {
  .social-package-item {
    align-items: stretch;
    flex-direction: column;
  }

  .social-package-item button {
    width: 100%;
  }

  .channel-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-kpis > div:nth-child(3) {
    border-left: 0;
  }

  .channel-kpis > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .channel-layout {
    grid-template-columns: 1fr;
  }

  .channel-settings-panel {
    position: static;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.publisher-runs {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.publisher-run {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.publisher-run:first-child {
  border-top: 0;
  padding-top: 0;
}

.publisher-run-title,
.publisher-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publisher-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publisher-run-actions button {
  width: auto;
}

.publisher-run-title strong {
  overflow-wrap: anywhere;
}

.publisher-links {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.publisher-links a {
  color: var(--blue);
  font-weight: 800;
}

.publisher-run p,
.publisher-run small {
  color: var(--muted);
}

.notification-settings {
  align-content: start;
}

.notification-events {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 0;
}

.notification-events legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-events label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.notification-events input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.notification-list {
  display: grid;
  gap: 0;
  padding-top: 14px;
}

.notification-item {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item.read {
  opacity: 0.62;
}

.notification-item p,
.notification-item small {
  color: var(--muted);
}

.studio-panel {
  min-height: 420px;
}

.studio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
  padding-top: 16px;
}

.studio-item {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
}

.studio-item > p,
.studio-clip span {
  color: var(--muted);
}

.studio-actions,
.studio-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-actions button,
.studio-copy-actions button,
.studio-download {
  width: auto;
}

.studio-clips {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.studio-clip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
}

.studio-clip .studio-download {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.archive-search {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.archive-search label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.archive-search button {
  width: auto;
  white-space: nowrap;
}

.archive-results {
  display: grid;
  gap: 0;
  padding-top: 12px;
}

.archive-result {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.archive-result:first-child {
  border-top: 0;
}

.archive-result p,
.archive-detail p {
  color: var(--muted);
}

.archive-title-button {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.archive-title-button:hover {
  color: var(--blue);
}

.archive-links {
  justify-content: flex-start;
}

.archive-match,
.archive-point {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}

.archive-match a,
.archive-point > a {
  color: var(--blue);
  font-weight: 800;
}

.archive-detail {
  display: grid;
  gap: 14px;
}

.archive-detail > .nav-button {
  width: max-content;
}

.archive-detail h1,
.archive-detail h2 {
  margin-top: 8px;
}

.archive-detail ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

@media (max-width: 1100px) {
  .archive-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-query {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .archive-search {
    grid-template-columns: 1fr;
  }

  .archive-query {
    grid-column: auto;
  }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-panel {
  width: min(100%, 390px);
  display: grid;
  gap: 16px;
}

.login-panel form,
.admin-form {
  display: grid;
  gap: 9px;
}

.login-panel label,
.admin-form label {
  margin: 0;
}

.error-text {
  color: #a33b22;
  font-weight: 700;
}

.active-profile-bar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto minmax(180px, auto);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.active-profile-bar label {
  margin: 0;
}

.active-profile-bar button {
  width: auto;
}

.active-profile-bar strong {
  text-align: right;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-section {
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-list,
.audit-list {
  display: grid;
  gap: 0;
}

.admin-item {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.admin-item > span {
  color: var(--muted);
}

.audit-section {
  margin-top: 16px;
}

.audit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) minmax(140px, 0.7fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.audit-row strong {
  color: var(--ink);
}

@media (max-width: 800px) {
  .admin-grid,
  .active-profile-bar,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .active-profile-bar strong {
    text-align: left;
  }
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.setup-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 16px;
}

.setup-copy,
.setup-note p {
  color: var(--muted);
  line-height: 1.55;
}

.setup-download {
  justify-self: start;
  min-width: 210px;
}

.backup-download {
  justify-self: start;
}

.worker-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.worker-status-head p {
  margin-top: 4px;
}

.worker-list {
  display: grid;
  gap: 8px;
}

.worker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9faf8;
  padding: 10px;
}

.worker-item > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e6e1;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.2s ease;
}

.worker-command-center {
  margin-top: 18px;
}

.queue-list {
  display: grid;
  gap: 14px;
}

.queue-item {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.queue-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.queue-title,
.queue-actions,
.queue-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-title {
  justify-content: space-between;
}

.queue-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.queue-title strong {
  overflow-wrap: anywhere;
}

.queue-title span,
.queue-item p,
.queue-item small,
.queue-progress > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.queue-progress .progress-track {
  flex: 1 1 auto;
}

.queue-actions {
  flex-wrap: wrap;
}

.queue-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: capitalize;
}

.worker-item strong {
  overflow-wrap: anywhere;
}

.worker-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.worker-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.setup-steps {
  display: grid;
  gap: 10px;
}

.setup-steps ol,
.setup-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #2a3035;
  line-height: 1.45;
}

.command-block {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101417;
  color: #f5f7f4;
  padding: 14px;
  font-size: 0.95rem;
}

.setup-note {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.setup-note strong {
  font-size: 0.95rem;
}

.stage {
  display: grid;
  gap: 14px;
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1114;
  border-radius: 8px;
  border: 1px solid #0d1114;
}

.trim-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.time-grid label {
  display: grid;
  gap: 6px;
}

output {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9faf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.range-row {
  display: grid;
  gap: 8px;
}

.mark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mark-row button {
  background: var(--blue);
}

.suggestion,
.output-panel,
.production-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.production-panel {
  gap: 16px;
}

.production-head,
.production-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.production-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.production-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.production-head h2 {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.package-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.package-tab {
  min-height: 38px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.package-tab.active {
  background: #eef2ee;
  color: var(--ink);
}

.package-view {
  display: grid;
  gap: 12px;
}

.package-view h3 {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.package-copy,
.chapter-list,
.content-list,
.publication-copy {
  color: #2a3035;
  line-height: 1.55;
}

.chapter-list,
.content-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.publication-copy {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: inherit;
}

.suggestion-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.suggestion p {
  color: var(--ink);
  line-height: 1.45;
}

dl {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #2a3035;
  line-height: 1.45;
}

.legal-page {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  line-height: 1.65;
}

.legal-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #d5d9d6;
  margin-bottom: 28px;
}

.legal-header a {
  color: #247a61;
  font-weight: 700;
}

.legal-page h1 {
  margin: 12px 0 4px;
}

.legal-page h2 {
  margin: 28px 0 6px;
  font-size: 1.05rem;
}

.legal-page p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 36px));
  border-radius: 8px;
  background: #151719;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.factory-body {
  background: #f4f6f4;
  color: #17191b;
}

.factory-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.factory-header,
.factory-pricing-head,
.factory-account-panel,
.factory-study-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.onboarding-progress {
  margin-bottom: 16px;
}

.onboarding-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding-progress strong {
  font-size: 1.5rem;
}

.onboarding-step {
  border-left: 4px solid transparent;
}

.onboarding-step.onboarding-complete {
  border-left-color: #247a61;
}

.commercial-checklist-section,
.commercial-ops-section {
  margin-top: 16px;
}

.commercial-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.commercial-checklist.compact {
  margin: 12px 0;
}

.commercial-check {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #d9dedb;
}

.commercial-check div,
.commercial-check strong,
.commercial-check small {
  min-width: 0;
}

.commercial-check strong,
.commercial-check small {
  display: block;
}

.commercial-check small {
  margin-top: 3px;
  color: #657078;
  line-height: 1.35;
}

.commercial-check-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e7ebe8;
  color: #59636a;
  font-weight: 900;
}

.commercial-check.ready .commercial-check-icon {
  background: #d8efe5;
  color: #176047;
}

.commercial-check.needed .commercial-check-icon {
  background: #fff0c5;
  color: #795b00;
}

.commercial-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.commercial-metric strong,
.commercial-metric small {
  display: block;
}

.commercial-metric strong {
  margin: 8px 0 4px;
  font-size: 1.8rem;
}

.commercial-metric small {
  color: #687179;
}

.commercial-church-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #d7dcda;
}

.commercial-church-row:last-child {
  border-bottom: 0;
}

.commercial-church-row p,
.commercial-church-row small {
  margin: 6px 0 0;
  color: #606a72;
  line-height: 1.4;
}

.commercial-pilot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commercial-pilot-form label {
  font-weight: 800;
}

.commercial-pilot-form input,
.commercial-pilot-form select {
  width: 100%;
  margin-top: 6px;
}

.commercial-pilot-form button {
  align-self: end;
}

.demo-body main {
  overflow: hidden;
}

.demo-hero {
  background: #10242b;
  color: #fff;
}

.demo-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 56px;
  align-items: center;
  min-height: 650px;
}

.demo-hero h1 {
  max-width: 780px;
  margin: 12px 0 20px;
  font-size: 4.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.demo-hero p {
  max-width: 750px;
  margin: 0 0 28px;
  color: #d7e0e2;
  font-size: 1.15rem;
  line-height: 1.65;
}

.demo-hero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #5b737b;
  border-radius: 8px;
}

.demo-band {
  padding: 72px 0;
  border-bottom: 1px solid #d4d9d6;
}

.demo-band h2,
.demo-cta h2 {
  max-width: 850px;
  margin: 8px 0 28px;
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.demo-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-output {
  min-height: 420px;
  padding: 28px;
  border: 1px solid #cbd1cd;
  border-radius: 8px;
  background: #fff;
}

.demo-output > span {
  color: #247a61;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-output h3 {
  margin: 13px 0 8px;
  font-size: 1.55rem;
}

.demo-output p,
.demo-output li,
.demo-output small {
  color: #5d676f;
  line-height: 1.55;
}

.demo-output li + li {
  margin-top: 8px;
}

.demo-output > strong,
.demo-output > a {
  display: block;
  margin-top: 20px;
}

.demo-output > a {
  color: #1d6e56;
  font-weight: 800;
}

.before-output {
  background: #eef0ef;
}

.demo-empty-lines {
  margin: 40px 0;
}

.demo-empty-lines i {
  display: block;
  width: 75%;
  height: 10px;
  margin-top: 13px;
  background: #d5d9d7;
}

.demo-empty-lines i:nth-child(2) {
  width: 52%;
}

.demo-dark-band {
  background: #17252c;
  color: #fff;
}

.demo-deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #52636a;
}

.demo-deliverables div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #52636a;
}

.demo-deliverables div:nth-child(odd) {
  padding-right: 24px;
}

.demo-deliverables div:nth-child(even) {
  padding-left: 24px;
}

.demo-deliverables span {
  color: #ced7d9;
  line-height: 1.5;
}

.demo-study-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 70px;
  align-items: center;
}

.demo-study-proof p {
  max-width: 700px;
  color: #5b656d;
  font-size: 1.1rem;
  line-height: 1.65;
}

.demo-qr {
  display: grid;
  min-height: 320px;
  align-content: center;
  padding: 34px;
  border: 2px solid #17252c;
  border-left: 12px solid #d9b32e;
  background: #fff;
}

.demo-qr span,
.demo-qr small {
  color: #657078;
}

.demo-qr strong {
  margin-top: 9px;
  font-size: 1.45rem;
}

.demo-qr small {
  margin-top: 22px;
}

.demo-cta {
  padding: 58px 0;
  background: #d9b32e;
}

.demo-cta .factory-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.demo-cta h2 {
  margin-bottom: 0;
}

.factory-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.factory-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.factory-brand span,
.factory-brand small {
  display: block;
}

.factory-brand strong {
  font-size: 1.08rem;
}

.factory-brand small {
  color: #56606a;
  margin-top: 2px;
}

.factory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 56px;
  align-items: end;
  padding: 72px 0 62px;
  border-bottom: 1px solid #cbd1cd;
}

.factory-kicker {
  color: #247a61;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.factory-intro h1 {
  max-width: 780px;
  margin: 10px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.factory-intro p {
  max-width: 760px;
  margin: 0;
  color: #4e5861;
  font-size: 1.16rem;
  line-height: 1.6;
}

.factory-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid #d9b32e;
}

.factory-proof span {
  padding: 13px 6px;
  border-bottom: 1px solid #cbd1cd;
  color: #263039;
  font-weight: 750;
}

.factory-pricing-head {
  padding: 50px 0 22px;
}

.factory-pricing-head h2,
.factory-signup-band h2,
.factory-study-callout h2 {
  margin: 5px 0 0;
  font-size: 1.65rem;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #bec7c1;
  border-radius: 7px;
  background: #fff;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: #4c555d;
  padding: 9px 12px;
}

.billing-toggle button.active {
  background: #17191b;
  color: #fff;
}

.factory-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.factory-plan {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #cbd1cd;
  border-radius: 8px;
  background: #fff;
}

.factory-plan.selected {
  border: 2px solid #247a61;
  padding: 23px;
}

.factory-plan.recommended {
  border-top: 5px solid #d9b32e;
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 8px;
  background: #fff3c7;
  color: #594600;
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.factory-plan h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.factory-plan > p {
  min-height: 72px;
  margin: 0;
  color: #57616a;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 25px;
}

.plan-price strong {
  font-size: 2.25rem;
}

.plan-volume {
  margin: 8px 0 20px;
  color: #247a61;
  font-weight: 800;
}

.factory-plan ul {
  flex: 1;
  margin: 0 0 22px;
  padding-left: 20px;
  color: #343d44;
  line-height: 1.52;
}

.factory-plan li + li {
  margin-top: 8px;
}

.factory-signup-band {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  margin-top: 54px;
  padding: 40px;
  background: #17252c;
  color: #fff;
}

.factory-signup-band > div > p {
  color: #ccd5d8;
  line-height: 1.6;
}

.factory-signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.factory-signup-form label {
  color: #e8ecee;
  font-size: .8rem;
  font-weight: 800;
}

.factory-signup-form input {
  width: 100%;
  margin-top: 5px;
  border-color: #6f7c82;
  background: #fff;
  color: #17191b;
}

.factory-signup-form button,
.factory-signup-form .muted {
  grid-column: 1 / -1;
}

.onboarding-grid,
.factory-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.onboarding-step h2 {
  margin: 0;
  font-size: 1.15rem;
}

.onboarding-step p {
  color: #59636b;
  line-height: 1.5;
}

.step-number,
.factory-flow span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: #17252c;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  background: #247a61;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.factory-account-panel {
  margin-top: 16px;
}

.factory-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.factory-dashboard-grid h2 {
  margin: 7px 0;
  font-size: 1.35rem;
}

.usage-track {
  overflow: hidden;
  height: 9px;
  margin: 18px 0 10px;
  border-radius: 5px;
  background: #dfe4e1;
}

.usage-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #247a61;
}

.connection-pills {
  display: flex;
  min-height: 54px;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
  margin: 15px 0;
}

.connection-pills span {
  padding: 5px 8px;
  border: 1px solid #bbcac1;
  border-radius: 5px;
  color: #315548;
  font-size: .8rem;
  font-weight: 800;
}

.factory-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  padding: 0;
}

.factory-flow > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 22px;
  border-right: 1px solid #d5d9d6;
}

.factory-flow > div:last-child {
  border-right: 0;
}

.factory-flow strong,
.factory-flow small {
  grid-column: 2;
}

.factory-flow small {
  margin-top: 5px;
  color: #626b72;
  line-height: 1.35;
}

.factory-study-callout {
  margin-top: 16px;
  border-left: 5px solid #d9b32e;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar > div:first-child {
    width: 100%;
  }

  .badge-row {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .import-panel {
    position: static;
  }

  .factory-intro,
  .factory-signup-band,
  .factory-plan-grid,
  .factory-dashboard-grid,
  .factory-flow {
    grid-template-columns: 1fr;
  }

  .factory-plan {
    min-height: auto;
  }

  .factory-flow > div {
    border-right: 0;
    border-bottom: 1px solid #d5d9d6;
  }

  .commercial-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-hero-inner,
  .demo-comparison,
  .demo-study-proof {
    grid-template-columns: 1fr;
  }

  .demo-hero-inner {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .demo-hero img {
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(1380px, calc(100vw - 20px));
    padding-top: 12px;
  }

  .time-grid,
  .mark-row,
  .worker-item,
  .worker-status-head,
  .production-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 1.55rem;
  }

  .production-actions {
    width: 100%;
  }

  .production-actions a {
    flex: 1 1 0;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .factory-header,
  .factory-pricing-head,
  .factory-account-panel,
  .factory-study-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .factory-intro {
    gap: 32px;
    padding: 44px 0;
  }

  .factory-signup-band {
    padding: 24px;
  }

  .factory-signup-form,
  .onboarding-grid,
  .commercial-checklist,
  .commercial-metrics,
  .commercial-pilot-form,
  .demo-deliverables {
    grid-template-columns: 1fr;
  }

  .factory-signup-form button,
  .factory-signup-form .muted {
    grid-column: 1;
  }

  .commercial-church-row {
    grid-template-columns: 1fr;
  }

  .commercial-church-row .publisher-run-actions {
    width: 100%;
  }

  .demo-hero h1 {
    font-size: 2.65rem;
  }

  .demo-band h2,
  .demo-cta h2 {
    font-size: 1.9rem;
  }

  .demo-deliverables div,
  .demo-deliverables div:nth-child(odd),
  .demo-deliverables div:nth-child(even) {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .demo-cta .factory-shell {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Public SermonOps story */
.demo-hero-inner {
  min-height: 520px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.demo-hero h1 {
  max-width: 760px;
  font-size: 3.75rem;
}

.demo-hero .demo-lede {
  margin: -6px 0 12px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.demo-text-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-managed-band {
  background: #f7f8f7;
}

.demo-managed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cbd1cd;
  border-bottom: 1px solid #cbd1cd;
}

.demo-managed-grid article {
  min-width: 0;
  padding: 24px 22px 26px;
  border-right: 1px solid #cbd1cd;
}

.demo-managed-grid article:last-child {
  border-right: 0;
}

.demo-managed-grid article > span,
.demo-shot-number {
  color: #247a61;
  font-size: 0.76rem;
  font-weight: 900;
}

.demo-managed-grid h3 {
  margin: 16px 0 8px;
  font-size: 1.08rem;
}

.demo-managed-grid p,
.demo-section-heading > p {
  margin: 0;
  color: #5d676f;
  line-height: 1.55;
}

.demo-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 30px;
}

.demo-section-heading h2 {
  margin-bottom: 0;
}

.demo-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.demo-shot-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-height: 176px;
  padding: 22px;
  border: 1px solid #cbd1cd;
  border-top: 5px solid #17252c;
  border-radius: 6px;
  background: #fff;
}

.demo-shot-grid small,
.demo-shot-grid strong,
.demo-shot-grid p {
  display: block;
}

.demo-shot-grid small {
  color: #247a61;
  font-weight: 900;
}

.demo-shot-grid strong {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.demo-shot-grid p {
  margin: 10px 0 0;
  color: #68727a;
}

.demo-shot-grid em {
  color: #68727a;
  font-size: 0.76rem;
  font-style: normal;
  white-space: nowrap;
}

.demo-channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid #cbd1cd;
  background: #17252c;
}

.demo-channel-strip span {
  padding: 14px 16px;
  border-right: 1px solid #52636a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.demo-channel-strip span:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .demo-managed-grid,
  .demo-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-managed-grid article:nth-child(2) {
    border-right: 0;
  }

  .demo-managed-grid article:nth-child(-n+2) {
    border-bottom: 1px solid #cbd1cd;
  }

  .demo-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .demo-hero-inner {
    min-height: auto;
  }

  .demo-hero h1 {
    font-size: 2.45rem;
  }

  .demo-hero .demo-lede {
    font-size: 1.2rem;
  }

  .demo-managed-grid,
  .demo-shot-grid,
  .demo-channel-strip {
    grid-template-columns: 1fr;
  }

  .demo-managed-grid article,
  .demo-managed-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #cbd1cd;
  }

  .demo-managed-grid article:last-child,
  .demo-channel-strip span:last-child {
    border-bottom: 0;
  }

  .demo-channel-strip span {
    border-right: 0;
    border-bottom: 1px solid #52636a;
  }
}

/* SermonOps application shell */
:root {
  --sc-sidebar: #101820;
  --sc-sidebar-soft: #19242d;
  --sc-sidebar-text: #dce3e6;
  --sc-canvas: #f4f6f5;
  --sc-surface: #ffffff;
  --sc-ink: #182026;
  --sc-muted: #667078;
  --sc-border: #dce1de;
  --sc-primary: #23765e;
  --sc-primary-soft: #e8f3ef;
  --sc-gold: #c69a2b;
  --sc-danger: #aa4742;
}

body.sc-app {
  min-height: 100vh;
  padding-left: 248px;
  background: var(--sc-canvas);
  color: var(--sc-ink);
}

body.sc-app button,
body.sc-app .action-link,
body.sc-app .download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.sc-app button svg,
body.sc-app .action-link svg,
body.sc-app .download svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

body.sc-app .sc-app-main {
  width: min(1240px, calc(100vw - 288px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

body.sc-app .panel,
body.sc-app .trim-panel,
body.sc-app .suggestion,
body.sc-app .output-panel,
body.sc-app .production-panel {
  border-color: var(--sc-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 24, 32, 0.04);
}

body.sc-app .sc-page-header {
  min-height: 58px;
  align-items: center;
  margin-bottom: 22px;
}

body.sc-app .sc-page-header h1 {
  font-size: 1.65rem;
  letter-spacing: 0;
}

body.sc-app .factory-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--sc-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sc-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: 248px;
  min-height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  background: var(--sc-sidebar);
  color: var(--sc-sidebar-text);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sc-brand {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-brand img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.sc-brand span,
.sc-user div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sc-brand strong {
  font-size: 0.95rem;
}

.sc-brand small,
.sc-user small {
  overflow: hidden;
  color: #8fa0aa;
  font-size: 0.71rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-church-switcher {
  display: grid;
  gap: 7px;
  margin: 14px 12px 8px;
}

.sc-church-switcher > span,
.sc-nav-label {
  padding: 0 8px;
  color: #71838d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sc-church-switcher select {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--sc-sidebar-soft);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

#scPrimaryNav {
  display: grid;
  gap: 12px;
  padding: 10px 10px 22px;
}

.sc-nav-section {
  display: grid;
  gap: 3px;
}

.sc-nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: #aebac0;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.sc-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sc-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sc-nav-link.active {
  background: #24342f;
  color: #fff;
  box-shadow: inset 3px 0 var(--sc-gold);
}

.sc-sidebar-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-user {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
}

#scUserAvatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #294239;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.sc-user strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-icon-button {
  display: inline-grid !important;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid var(--sc-border);
  border-radius: 7px;
  background: var(--sc-surface) !important;
  color: var(--sc-ink) !important;
  text-decoration: none;
}

.sc-sidebar .sc-icon-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent !important;
  color: #aebac0 !important;
}

.sc-icon-button svg {
  width: 18px;
  height: 18px;
}

.sc-mobile-header,
.sc-mobile-nav,
.sc-sidebar-backdrop {
  display: none !important;
}

body.sc-app .sc-sidebar-backdrop {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sc-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sc-page-actions .nav-button {
  min-height: 38px;
}

.sc-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  background: var(--sc-surface);
}

.sc-overview-metrics article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-right: 1px solid var(--sc-border);
}

.sc-overview-metrics article:last-child {
  border-right: 0;
}

.sc-overview-metrics article > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sc-overview-metrics small,
.sc-compact-row small,
.sc-rhythm-list span,
.sc-section-heading .label,
.sc-setup-actions > span {
  color: var(--sc-muted);
  font-size: 0.72rem;
}

.sc-overview-metrics strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-metric-icon,
.sc-channel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 7px;
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
}

.sc-metric-icon svg,
.sc-channel-icon svg {
  width: 18px;
  height: 18px;
}

.sc-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.sc-dashboard-grid > .panel {
  min-width: 0;
  padding: 18px;
}

.sc-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sc-section-heading > div:first-child {
  display: grid;
  gap: 5px;
}

.sc-section-heading h2 {
  font-size: 1rem;
}

.sc-section-heading > svg {
  width: 22px;
  height: 22px;
  color: var(--sc-primary);
}

.sc-action-panel .status-line {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--sc-gold);
  background: #fbf8ee;
  font-size: 0.8rem;
}

.sc-action-panel .commercial-checklist {
  margin-top: 0;
}

.sc-action-panel .commercial-check {
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--sc-border);
  border-radius: 0;
  background: transparent;
}

.sc-action-panel .commercial-check:last-child {
  border-bottom: 0;
}

.commercial-check > div {
  display: grid;
  gap: 2px;
}

.commercial-check small {
  color: var(--sc-muted);
  font-size: 0.7rem;
}

.sc-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--sc-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.sc-text-link svg {
  width: 15px;
  height: 15px;
}

.sc-compact-list {
  display: grid;
  margin-top: 12px;
}

.sc-compact-row {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sc-border);
  color: var(--sc-ink);
  text-decoration: none;
}

.sc-compact-row:last-child {
  border-bottom: 0;
}

.sc-compact-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sc-compact-row strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-compact-row > svg {
  width: 16px;
  height: 16px;
  color: var(--sc-muted);
}

.sc-empty-state {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sc-muted);
  font-size: 0.8rem;
}

.sc-rhythm-list {
  display: grid;
  margin-top: 12px;
}

.sc-rhythm-list > div {
  display: grid;
  min-height: 49px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--sc-border);
}

.sc-rhythm-list > div:last-child {
  border-bottom: 0;
}

.sc-rhythm-list svg {
  width: 17px;
  height: 17px;
  color: var(--sc-primary);
}

.sc-rhythm-list strong {
  font-size: 0.78rem;
}

.sc-plan-panel .usage-track {
  margin-top: 18px;
}

.sc-plan-panel button {
  margin-top: 15px;
}

.sc-delivery-flow {
  margin-top: 18px;
  padding: 18px;
}

.sc-delivery-flow .factory-flow {
  margin-top: 16px;
  border: 0;
  background: #f8faf9;
  box-shadow: none;
}

.sc-delivery-flow .factory-flow > div {
  grid-template-columns: 36px 1fr;
}

.sc-delivery-flow .factory-flow > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
  font-size: 0;
}

.sc-delivery-flow .factory-flow svg {
  width: 16px;
  height: 16px;
}

/* Guided setup */
.sc-setup-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.sc-setup-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.sc-setup-progress p {
  color: var(--sc-muted);
  font-size: 0.76rem;
}

.sc-setup-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sc-setup-steps {
  display: grid;
  gap: 4px;
}

.sc-setup-steps button {
  display: grid !important;
  min-height: 62px;
  grid-template-columns: 26px 20px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sc-muted);
  text-align: left;
}

.sc-setup-steps button > span {
  display: grid;
  width: 24px;
  height: 24px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid var(--sc-border);
  border-radius: 50%;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.sc-setup-steps button > svg {
  width: 16px;
  height: 16px;
  grid-row: 1 / 3;
}

.sc-setup-steps button strong {
  align-self: end;
  color: var(--sc-ink);
  font-size: 0.78rem;
}

.sc-setup-steps button small {
  align-self: start;
  font-size: 0.68rem;
}

.sc-setup-steps button.active {
  border-color: var(--sc-border);
  background: #fff;
}

.sc-setup-steps button.active > span,
.sc-setup-steps button.complete > span {
  border-color: var(--sc-primary);
  background: var(--sc-primary);
  color: #fff;
}

.sc-setup-stage {
  min-width: 0;
  padding: 22px;
}

.sc-setup-panel {
  display: grid;
  min-height: 400px;
  align-content: start;
  gap: 22px;
}

.sc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sc-form-grid label,
.sc-select-row {
  display: grid;
  gap: 7px;
}

body.sc-app input[type="email"],
body.sc-app input[type="number"],
body.sc-app input[type="datetime-local"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--sc-border);
  border-radius: 7px;
  background: #fff;
  color: var(--sc-ink);
  padding: 9px 10px;
  font: inherit;
}

.sc-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sc-choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: var(--sc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sc-choice-group label,
.sc-output-options label {
  position: relative;
  cursor: pointer;
}

.sc-choice-group input,
.sc-output-options input {
  position: absolute;
  opacity: 0;
}

.sc-choice-group label > span,
.sc-output-options label > span {
  display: grid;
  min-height: 116px;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 10px;
  padding: 16px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  background: #fff;
}

.sc-choice-group input:checked + span,
.sc-output-options input:checked + span {
  border-color: var(--sc-primary);
  background: var(--sc-primary-soft);
  box-shadow: inset 0 0 0 1px var(--sc-primary);
}

.sc-choice-group svg,
.sc-output-options svg {
  width: 22px;
  height: 22px;
  grid-row: 1 / 3;
  color: var(--sc-primary);
}

.sc-choice-group strong,
.sc-output-options strong {
  font-size: 0.82rem;
}

.sc-choice-group small,
.sc-output-options small {
  color: var(--sc-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sc-number-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-estimate-band,
.sc-inline-notice,
.sc-launch-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  background: #f8faf9;
}

.sc-estimate-band > svg,
.sc-inline-notice > svg,
.sc-launch-result > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--sc-primary);
}

.sc-estimate-band > div,
.sc-launch-result > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sc-estimate-band span,
.sc-estimate-band small,
.sc-launch-result small {
  color: var(--sc-muted);
  font-size: 0.72rem;
}

.sc-estimate-band > small {
  margin-left: auto;
  text-align: right;
}

.sc-inline-notice p {
  color: var(--sc-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.sc-connection-list {
  display: grid;
}

.sc-connection-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sc-border);
  color: var(--sc-ink);
  text-decoration: none;
}

.sc-connection-row > div {
  display: grid;
  gap: 4px;
}

.sc-connection-row strong {
  font-size: 0.82rem;
}

.sc-connection-row small {
  color: var(--sc-muted);
  font-size: 0.72rem;
}

.sc-connection-row.connected .sc-channel-icon {
  background: var(--sc-primary-soft);
}

.sc-status-pill {
  min-width: 66px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--sc-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

.sc-connection-row.connected .sc-status-pill {
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
}

.sc-more-channels > svg {
  width: 17px;
  height: 17px;
  color: var(--sc-muted);
}

.sc-output-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sc-select-row {
  max-width: 300px;
}

.sc-launch-result.ready {
  border-color: rgba(35, 118, 94, 0.35);
  background: var(--sc-primary-soft);
}

.sc-setup-actions {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--sc-border);
}

/* Dense workflow pages */
body.sc-app .workspace,
body.sc-app .publisher-workspace,
body.sc-app .channel-layout,
body.sc-app .admin-grid {
  gap: 14px;
}

body.sc-app .import-panel,
body.sc-app .channel-settings-panel {
  box-shadow: none;
}

body.sc-app .files-table th,
body.sc-app .schedule-table th {
  background: #f7f9f8;
  color: var(--sc-muted);
}

body.sc-app .files-table td,
body.sc-app .files-table th,
body.sc-app .schedule-table td,
body.sc-app .schedule-table th {
  border-color: var(--sc-border);
}

body.sc-app .toast {
  z-index: 90;
  border-radius: 7px;
}

/* Sign in */
body.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
  place-items: stretch;
  background: var(--sc-canvas);
}

.sc-login-brand {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  background: var(--sc-sidebar);
  color: #fff;
}

.sc-login-brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.sc-login-brand h1 {
  max-width: 520px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.sc-login-brand p {
  max-width: 520px;
  color: #afbbc1;
  line-height: 1.6;
}

body.login-page .login-panel {
  width: min(430px, calc(100vw - 40px));
  margin: auto;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.1);
}

.sc-login-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

body.login-page form {
  display: grid;
  gap: 12px;
}

@media (max-width: 1060px) {
  body.sc-app {
    padding-left: 214px;
  }

  .sc-sidebar {
    width: 214px;
  }

  body.sc-app .sc-app-main {
    width: min(1240px, calc(100vw - 242px));
  }

  .sc-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-overview-metrics article:nth-child(2) {
    border-right: 0;
  }

  .sc-overview-metrics article:nth-child(-n+2) {
    border-bottom: 1px solid var(--sc-border);
  }

  .sc-setup-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body.sc-app {
    padding: 56px 0 72px;
  }

  body.sc-app .sc-app-main {
    width: min(100% - 24px, 760px);
    padding: 20px 0 36px;
  }

  .sc-sidebar {
    width: min(300px, 88vw);
    transform: translateX(-105%);
    box-shadow: 22px 0 50px rgba(10, 18, 24, 0.22);
    transition: transform 180ms ease;
  }

  .sc-menu-open .sc-sidebar {
    transform: translateX(0);
  }

  .sc-sidebar-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: rgba(9, 15, 20, 0.48) !important;
  }

  .sc-menu-open .sc-sidebar-backdrop {
    display: block !important;
  }

  .sc-mobile-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto;
    display: grid !important;
    min-height: 56px;
    grid-template-columns: 38px 1fr 14px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--sc-border);
    background: rgba(255, 255, 255, 0.97);
  }

  .sc-mobile-header > a {
    display: grid;
    gap: 1px;
    color: var(--sc-ink);
    text-decoration: none;
  }

  .sc-mobile-header strong {
    font-size: 0.82rem;
  }

  .sc-mobile-header small {
    overflow: hidden;
    color: var(--sc-muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sc-mobile-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sc-gold);
  }

  .sc-mobile-status.ready {
    background: var(--sc-primary);
  }

  .sc-mobile-nav {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: grid !important;
    min-height: 66px;
    grid-template-columns: repeat(5, 1fr);
    padding: 5px max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-top: 1px solid var(--sc-border);
    background: rgba(255, 255, 255, 0.98);
  }

  .sc-mobile-nav .sc-nav-link {
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 2px;
    color: var(--sc-muted);
    font-size: 0.59rem;
  }

  .sc-mobile-nav .sc-nav-link.active {
    background: transparent;
    color: var(--sc-primary);
    box-shadow: none;
  }

  .sc-mobile-nav .sc-nav-link svg {
    width: 19px;
    height: 19px;
  }

  body.sc-app .sc-page-header {
    min-height: auto;
    align-items: center;
    flex-direction: row;
  }

  body.sc-app .sc-page-header h1 {
    font-size: 1.35rem;
  }

  body.sc-app .status-line {
    font-size: 0.74rem;
  }

  .sc-page-actions {
    margin-left: auto;
  }

  .sc-dashboard-grid,
  .sc-setup-layout {
    grid-template-columns: 1fr;
  }

  .sc-setup-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sc-setup-steps button {
    min-width: 126px;
    min-height: 48px;
    grid-template-columns: 24px 1fr;
    grid-template-rows: 1fr;
  }

  .sc-setup-steps button > span {
    grid-row: 1;
  }

  .sc-setup-steps button > svg,
  .sc-setup-steps button small {
    display: none;
  }

  .sc-setup-steps button strong {
    align-self: center;
  }

  .sc-form-grid,
  .sc-number-grid,
  .sc-choice-group,
  .sc-output-options {
    grid-template-columns: 1fr;
  }

  .sc-choice-group label > span,
  .sc-output-options label > span {
    min-height: 84px;
  }

  .sc-setup-panel {
    min-height: 0;
  }

  .sc-estimate-band {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sc-estimate-band > small {
    width: 100%;
    margin-left: 34px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .sc-overview-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .sc-overview-metrics article {
    min-height: 78px;
    padding: 12px;
  }

  .sc-overview-metrics article:nth-child(odd) {
    border-right: 1px solid var(--sc-border);
  }

  .sc-overview-metrics article:nth-child(even) {
    border-right: 0;
  }

  .sc-overview-metrics strong {
    font-size: 0.82rem;
  }

  .sc-metric-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .sc-setup-stage,
  .sc-dashboard-grid > .panel,
  .sc-delivery-flow {
    padding: 15px;
  }

  .sc-setup-actions {
    grid-template-columns: 38px 1fr;
  }

  .sc-setup-actions > span {
    text-align: right;
  }

  .sc-setup-actions #setupNext {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sc-connection-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .sc-connection-row .action-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .sc-status-pill {
    min-width: auto;
  }

  .sc-delivery-flow .factory-flow {
    grid-template-columns: 1fr 1fr;
  }

  .sc-delivery-flow .factory-flow > div:nth-child(odd) {
    border-right: 1px solid var(--sc-border);
  }

  .sc-delivery-flow .factory-flow > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--sc-border);
  }

  body.login-page {
    display: block;
  }

  .sc-login-brand {
    min-height: 230px;
    padding: 28px 22px;
  }

  .sc-login-brand h1 {
    font-size: 2.4rem;
  }

  .sc-login-brand p {
    display: none;
  }

  body.login-page .login-panel {
    margin: -22px auto 30px;
    padding: 24px;
  }
}
