/* src/css/_variables.css */
:root {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-input: #f7f9fc;
  --bg-hover: #f1f5f9;
  --ink-primary: #000000;
  --ink-secondary: #475569;
  --ink-muted: #94a3b8;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-black: #000000;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --radius-btn: 10px;
  --radius-container: 20px;
  --radius-input: 8px;
  --text: var(--ink-primary);
  --subtext: var(--ink-secondary);
  --muted: var(--ink-muted);
  --border: var(--border-strong);
  --bg-card: var(--bg-surface);
  --bg-alt: var(--bg-hover);
  --primary-color: #0b82d4;
  --focus-ring: rgba(11, 130, 212, 0.12);
  --radius-md: 10px;
}

/* src/css/_typography.css */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-primary);
  margin-top: 0;
  font-weight: 800;
  line-height: 1.2;
}
h2 {
  font-size: 2.5em;
}
h3 {
  font-size: 1.5em;
}
p {
  color: var(--ink-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* src/css/_layout.css */
body {
  background: var(--bg-page);
  color: var(--ink-primary);
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  margin: 40px;
}
.app-page {
}
.container,
.pod,
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-black);
  border-radius: var(--radius-container);
  padding: 1.5rem;
}
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pod-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.card-hover {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.card-hover:hover {
  border-color: var(--primary-color, #0a6baf);
  background: var(--bg-hover);
}

/* src/css/_navigation.css */
header {
  padding: 0 1rem;
  background: var(--btn-bg);
  border-bottom: 1px solid #333;
  min-height: 154px;
  display: flex;
  align-items: center;
}
.brand-wordmark {
  display: block;
  height: 147px;
  max-height: none;
  width: auto;
  object-fit: contain;
}
.brand-fallback {
  display: none;
  margin: 0;
  color: var(--bg-page);
  font-size: 2rem;
  font-weight: 800;
}
.brand-profile-logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
}
.brand-profile-button {
  margin-left: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
  color: var(--bg-page);
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.top-nav {
  background: var(--btn-bg);
  border-bottom: 1px solid var(--btn-bg);
  padding: 0;
  position: relative;
  z-index: 20;
}
.menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.menu-item {
  position: relative;
  border-right: 1px solid #333;
}
.menu-item:last-child {
  border-right: none;
}
.menu-item-right-start {
  margin-left: auto;
  border-left: 1px solid #333;
}
.menu-item-right {
  border-left: 1px solid #333;
}
.menu-link {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--btn-text);
  font-weight: 700;
  line-height: 1;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}
.menu-link:hover,
.menu-link.active {
  background: #222;
  color: #fff;
}
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: var(--btn-bg);
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 var(--radius-input) var(--radius-input);
  overflow: hidden;
}
.docs-menu-anchor .submenu,
.menu-item-right .submenu {
  left: auto;
  right: 0;
  min-width: 220px;
}
.submenu .submenu-link {
  border-bottom: 1px solid #333;
  white-space: normal;
  line-height: 1.25;
}
.submenu .submenu-link:last-child {
  border-bottom: none;
}
.menu-item.has-submenu:hover .submenu {
  display: block;
}

/* src/css/_auth.css */
.auth-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  background: #000000;
}
.auth-banner {
  width: 100%;
  text-align: left;
  margin-bottom: 2rem;
}
.auth-banner img {
  max-width: 100%;
  height: auto;
}
.auth-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.auth-hero h1 {
  margin: 0.6rem 0 0.9rem;
  font-size: 3rem;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}
.auth-hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.8rem;
  line-height: 1.6;
  color: #cccccc;
  white-space: nowrap;
}
.auth-logo {
  width: min(100%, 840px);
  height: auto;
}
.auth-card {
  background: #eaf4ff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  padding: 2.5rem 2rem;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.auth-card h2 {
  margin: 0.1rem 0 1.5rem;
  text-align: center;
  color: var(--ink-primary);
  font-size: 2rem;
}
.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.auth-mode-toggle button {
  margin: 0;
  background: var(--bg-input);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
}
.auth-mode-toggle button.active {
  background: var(--ink-primary);
  color: #fff;
  border-color: var(--ink-primary);
}
.auth-mode-toggle button:not(.active):hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  opacity: 1;
}
#authForgotPasswordForm button[type=submit],
#authResetPasswordForm button[type=submit] {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}
#authLoginForm button[type=submit],
#authRegisterForm button[type=submit] {
  width: auto;
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
}
.auth-message {
  min-height: 1.1rem;
  margin: 0.3rem 0 0.7rem;
  color: var(--ink-secondary);
}
.auth-message.error {
  color: #dc2626;
  font-weight: 600;
}
.auth-welcome-name {
  margin: 0;
  color: var(--ink-primary);
  font-weight: 700;
  text-decoration: none;
}
.auth-header-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.auth-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.auth-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  background: var(--bg-surface);
  z-index: 40;
}
.auth-user-menu:hover .auth-user-dropdown {
  display: block;
}
.auth-logout-link {
  width: auto;
  margin: 0;
  border: none;
  position: relative;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-welcome-name:hover,
.auth-logout-link:hover {
  text-decoration: underline;
}

/* src/css/_buttons.css */
button,
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--radius-btn);
  border: none;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
button:hover,
.btn:hover {
  opacity: 0.8;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn-primary:hover {
  background: #eaf4ff;
  color: var(--ink-primary);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  opacity: 1;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
}

/* src/css/_forms.css */
input,
textarea,
select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  padding: 0.8rem 1rem;
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 1.1rem;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink-primary);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink-primary);
}
.standard-form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}
.standard-form-grid > label {
  text-align: right;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* src/css/_tables.css */
.table-wrap {
  overflow-x: auto;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-primary);
  vertical-align: middle;
}
thead tr:not(.table-filter-row) th {
  background: #000;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border-bottom: none;
  transition: background-color 0.15s, color 0.15s;
}
thead tr:not(.table-filter-row) th:hover {
  background: #b8e0ff;
  color: #0b3d7a;
}
thead tr:not(.table-filter-row) th:last-child {
  text-align: center;
}
.table-filter-row th,
.contacts-filter-row th {
  background: #b8e0ff;
  border-bottom: 1px solid var(--border-light);
  cursor: default;
}
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: var(--bg-page);
}
.stat-col-header {
  text-align: center;
  font-size: 0.85rem;
  min-width: 70px;
}
.stat-col {
  text-align: center;
  font-size: 1.1rem;
}
.stat-col--zero {
  color: var(--ink-muted);
}
.stat-col a {
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
}
.stat-col a:hover {
  text-decoration: underline;
}
.actions-col {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

/* src/css/legacy.css */
:root {
  --bg-left: #020205;
  --bg-mid: #031122;
  --bg-right: #043b79;
  --paper: #ffffff;
  --paper-elevated: #ffffff;
  --ink: #101923;
  --accent: #27a6ff;
  --accent-strong: #0b82d4;
  --accent-soft: #1a4f81;
  --muted: #445465;
  --border: #0f4f8f;
  --field-bg: #ffffff;
  --black: #000;
}
.settings-projects-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.settings-project-column {
  min-height: 320px;
}
.settings-project-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.6rem 0 0.8rem;
}
.settings-project-inline-list {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  color: #20384f;
}
.settings-project-list-item {
  border: 1px solid #b8d7f0;
  border-radius: 8px;
  background: #f7fbff;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  text-align: left;
}
.settings-project-list-item.is-active {
  border-color: #0b82d4;
  background: #e7f4ff;
}
.settings-project-list-item-name {
  font-weight: 700;
  color: #0f2f4c;
}
.settings-project-list-item-meta {
  font-size: 0.82rem;
  color: #3d5870;
}
.project-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.project-details-form,
.project-details-media {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.project-logo-preview-wrap {
  min-height: 220px;
  border: 1px solid #c8ddef;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f7fbff;
  padding: 0.8rem;
}
#settingsProjectLogoPreview {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
h2 {
  margin-top: 0;
}
.page-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.page-heading-row h2 {
  margin: 0;
}
.training-page .page-heading-row h2 {
  font-size: 2rem;
  font-weight: 800;
}
.training-page .youtube-miner-category-header-row label,
.training-page .form-row > label {
  font-size: 1.15rem;
  font-weight: 800;
}
.page-heading-row button {
  width: auto;
  min-height: 42px;
  box-sizing: border-box;
}
.section-settings-gear-btn {
  background: #000;
  border-color: #000;
  color: #fff;
}
.section-settings-gear-btn:hover,
.section-settings-gear-btn:focus-visible {
  background: #111;
  border-color: #2aa7fa;
  color: #fff;
}
.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.page-heading-actions button {
  height: 42px;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.section-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}
.section-settings-main,
.section-settings-nav {
  min-width: 0;
}
.section-settings-nav-list {
  display: grid;
  gap: 0.65rem;
}
.section-settings-nav-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
}
.section-settings-nav-btn.is-active,
.section-settings-nav-btn:disabled {
  background: #000;
  border-color: #000;
  color: #fff;
  opacity: 1;
  cursor: default;
}
@media (max-width: 960px) {
  .section-settings-shell {
    grid-template-columns: 1fr;
  }
}
.acquire-workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 50px;
  align-items: start;
}
.acquire-workbench-pane {
  height: 100%;
}
.form-container-spacious {
  padding: 50px;
}
.bluesky-posting-panel {
  background:
    linear-gradient(
      180deg,
      #edf7ff 0%,
      #dff1ff 100%);
}
.acquire-workbench-form {
  padding: 0;
}
.acquire-workbench-form .form-row,
.acquire-workbench-form .grid-form {
  margin-bottom: 1.1rem;
}
.acquire-workbench-compact-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 1100px) {
  .acquire-workbench-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-container-spacious {
    padding: 30px;
  }
}
input,
textarea,
select {
  width: 100%;
  margin: 0.3rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--field-bg);
}
input[type=color] {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  min-width: 84px;
  height: 46px;
  padding: 4px;
  border: 1px solid #444;
  border-radius: 12px;
  cursor: pointer;
  background:
    linear-gradient(#fff, #fff) 8px 8px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 14px 8px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 20px 8px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 8px 14px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 14px 14px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 20px 14px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 8px 20px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 14px 20px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 20px 20px / 4px 4px no-repeat,
    linear-gradient(
      135deg,
      #ef4444 0%,
      #f59e0b 25%,
      #eab308 40%,
      #22c55e 55%,
      #0ea5e9 72%,
      #8b5cf6 86%,
      #ec4899 100%);
  background-color: #d7e5f5;
  background-repeat: no-repeat;
  box-shadow: none;
}
input[type=color]::-webkit-color-swatch-wrapper {
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
input[type=color]::-webkit-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}
input[type=color]::-moz-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}
.develop-landing-page-editing input.develop-field-complete,
.develop-landing-page-editing textarea.develop-field-complete,
.develop-landing-page-editing select.develop-field-complete {
  border-color: #1f9d55;
  box-shadow: 0 0 0 2px rgba(31, 157, 85, 0.16);
}
.develop-landing-page-editing input.develop-field-missing,
.develop-landing-page-editing textarea.develop-field-missing,
.develop-landing-page-editing select.develop-field-missing {
  border-color: #d43f3a;
  box-shadow: 0 0 0 2px rgba(212, 63, 58, 0.14);
}
.develop-landing-pages-form {
  gap: 0.9rem;
}
.develop-landing-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  align-items: start;
}
.develop-landing-pages-column {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.develop-landing-pages-column > input,
.develop-landing-pages-column > select,
.develop-landing-pages-column .develop-color-control {
  margin: 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.checkbox-row input {
  width: auto;
  margin: 0;
}
button {
  cursor: pointer;
  border: none;
  position: relative;
  background: transparent;
  padding: 0;
  font-family: inherit;
}
.primary-btn,
.secondary-btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  padding: 0.3rem 2rem;
  border-radius: 0.5rem;
  border: none;
  position: relative;
  font-size: 1.1rem;
  transition: opacity 0.2s ease-in-out;
}
.primary-btn:hover,
.primary-btn:focus,
.secondary-btn:hover,
.secondary-btn:focus {
  color: #cceeff;
  box-shadow: 0 0 12px rgba(204, 238, 255, 0.4);
  opacity: 1;
}
button[type=submit] {
  display: inline-flex;
  align-self: flex-start;
  justify-content: center;
  width: auto;
  max-width: 100%;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}
.stack-form {
  display: flex;
  flex-direction: column;
}
.standard-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  align-items: center;
}
.standard-form-grid > label {
  text-align: right;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.standard-form-grid > input,
.standard-form-grid > select,
.standard-form-grid > textarea,
.standard-form-grid > button {
  margin: 0;
  width: 100%;
}
.standard-form-grid-full {
  grid-column: 1 / -1;
  margin: 0;
}
.standard-form-checkbox {
  width: auto;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}
.contacts-filter-row input {
  margin: 0;
  min-width: 110px;
}
.contacts-filter-row select {
  margin: 0;
  min-width: 120px;
}
.table-filter-row input,
.table-filter-row select {
  margin: 0;
}
.assets-bulk-action-row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.assets-bulk-action-row .tiny-btn {
  width: auto;
}
.assets-select-checkbox {
  width: auto;
  margin: 0;
}
.bluesky-discovery-quality-select {
  min-width: 88px;
}
#blueskyDiscoveryBulkActions {
  justify-content: flex-start;
  align-items: center;
  gap: 0.65rem;
}
#blueskyDiscoveryBulkActions label {
  margin: 0;
}
.bluesky-discovery-feedback-pop textarea {
  min-height: 140px;
}
#blueskyDiscoveryResultsTable {
  table-layout: fixed;
  width: 100%;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-post-col,
#blueskyDiscoveryResultsTable .bluesky-discovery-post-cell {
  width: 24%;
  max-width: 24%;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-score-col,
#blueskyDiscoveryResultsTable .bluesky-discovery-score-cell {
  width: 58px;
  min-width: 58px;
  text-align: center;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-metric-col,
#blueskyDiscoveryResultsTable .bluesky-discovery-metric-cell {
  width: 64px;
  min-width: 64px;
  text-align: center;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-actions-col,
#blueskyDiscoveryResultsTable .bluesky-discovery-actions-cell {
  min-width: 168px;
  width: 168px;
  white-space: nowrap;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-post-cell {
  overflow: visible;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-post-preview-wrap {
  position: relative;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-post-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-post-link {
  cursor: pointer;
}
.bluesky-discovery-post-overlay {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #8bc4f4;
  background: #f4fbff;
  box-shadow: 0 24px 60px rgba(9, 28, 48, 0.28);
  color: #16324c;
  font-size: 1rem;
}
.bluesky-discovery-post-overlay.hidden {
  display: none;
}
.bluesky-discovery-post-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid #c7e3fb;
  background:
    linear-gradient(
      180deg,
      #e8f5ff 0%,
      #f4fbff 100%);
}
.bluesky-discovery-post-overlay-body {
  flex: 1 1 auto;
  padding: 1rem 1.15rem 1.1rem;
  white-space: pre-wrap;
  overflow-y: auto;
  overflow-x: hidden;
  line-height: 1.65;
}
#blueskyDiscoveryResultsTable .bluesky-discovery-actions-cell > * {
  vertical-align: middle;
}
.bluesky-reply-source-row td {
  padding: 0.55rem 0.65rem;
}
.bluesky-reply-source-card {
  background:
    linear-gradient(
      180deg,
      #edf7ff 0%,
      #dff1ff 100%);
  border: 1px solid #b9dfff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.bluesky-reply-source-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4f91;
  margin-bottom: 0.35rem;
}
.bluesky-reply-source-text {
  font-weight: 700;
  color: #123456;
  white-space: pre-wrap;
}
.bluesky-reply-feedback-pop textarea {
  min-height: 150px;
}
.bluesky-prompt-summary {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #b9dfff;
  border-radius: 10px;
  background: #f6fbff;
  color: #17324d;
  line-height: 1.45;
}
.bluesky-prompt-summary.is-missing {
  border-color: #f0b6a3;
  background: #fff4ef;
  color: #8a2d17;
}
.youtube-date-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.youtube-date-filter-wrap input[type=date] {
  min-width: 150px;
}
.youtube-date-filter-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.youtube-date-filter-item span {
  min-width: 34px;
  font-size: 0.82rem;
  color: #1b3554;
  white-space: nowrap;
}
.contacts-go-cell {
  min-width: 170px;
  width: 170px;
  vertical-align: middle;
  position: sticky;
  right: 0;
  background-color: var(--bg-card, #ffffff);
  z-index: 2;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}
.contacts-go-cell button {
  width: 100%;
  min-width: 56px;
  padding: 0.25rem 0.5rem;
}
#segmentsList {
  list-style: none;
  padding-left: 0;
}
#segmentsList li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0.35rem 0;
  background: #ffffff;
}
.cards {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
#messagingPage .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.messaging-content-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 126, 208, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at top left,
      rgba(216, 241, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.95) 38%,
      #ffffff 100%);
}
.messaging-content-node {
  display: grid;
  gap: 0.3rem;
  min-height: 104px;
  padding: 0.9rem;
  border: 1px solid rgba(16, 126, 208, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #16324c;
  text-align: left;
  box-shadow: 0 10px 20px rgba(16, 38, 58, 0.06);
  cursor: pointer;
}
.messaging-content-node:hover {
  border-color: rgba(16, 126, 208, 0.4);
  background: #dff1ff;
  box-shadow: 0 14px 24px rgba(16, 38, 58, 0.1);
}
.messaging-content-node-kicker {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d88a4;
}
.messaging-content-node-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}
.messaging-content-node-short {
  background:
    linear-gradient(
      180deg,
      rgba(255, 251, 239, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.messaging-content-node-social {
  background:
    linear-gradient(
      180deg,
      rgba(238, 250, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.messaging-content-node-long {
  background:
    linear-gradient(
      180deg,
      rgba(241, 247, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.messaging-content-node-support {
  background:
    linear-gradient(
      180deg,
      rgba(244, 255, 245, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.messaging-category-map {
  margin-bottom: 1rem;
}
#messagingPage .messaging-category-map.messaging-content-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.2rem;
}
#messagingPage .messaging-category-map .messaging-content-node {
  min-height: 136px;
  padding: 1.1rem;
}
.messaging-category-node {
  background:
    linear-gradient(
      180deg,
      rgba(232, 245, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.develop-flow-map {
  position: relative;
  min-height: 560px;
  margin-top: 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
}
.develop-flow-node {
  position: absolute;
  width: 220px;
  min-height: 126px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  background: var(--bg-card);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}
.develop-flow-node:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  box-shadow: none;
}
.develop-flow-node-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtext);
}
.develop-flow-node-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}
.develop-flow-node-top {
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
}
.develop-flow-node-top:hover {
  transform: translateX(-50%) translateY(-3px);
}
.develop-flow-node-upper-right {
  top: 160px;
  right: 16%;
}
.develop-flow-node-lower-right {
  right: 23%;
  bottom: 54px;
}
.develop-flow-node-lower-left {
  left: 23%;
  bottom: 54px;
}
.develop-flow-node-upper-left {
  top: 160px;
  left: 16%;
}
.messaging-content-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(16, 126, 208, 0.18);
  border-radius: 14px;
  background: rgba(223, 241, 255, 0.7);
}
.messaging-content-filter span {
  font-weight: 700;
  color: #0b4d80;
}
.messaging-content-filter button {
  width: auto;
}
.asset-launcher-block {
  margin-top: 1rem;
}
.asset-launcher-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}
.asset-launcher-node {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  min-height: 140px;
  padding: 1rem;
  border: 1px solid rgba(16, 126, 208, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 20px rgba(16, 38, 58, 0.06);
  color: #16324c;
  text-align: center;
  cursor: pointer;
}
.asset-launcher-node:hover {
  border-color: rgba(16, 126, 208, 0.42);
  background: #dff1ff;
  box-shadow: 0 14px 24px rgba(16, 38, 58, 0.1);
}
.asset-launcher-node-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4d80;
  border: 1px solid rgba(16, 126, 208, 0.18);
  background: rgba(255, 255, 255, 0.92);
}
.asset-launcher-node-title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.1;
}
.asset-launcher-node-image {
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 236, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.asset-launcher-node-audio {
  background:
    linear-gradient(
      180deg,
      rgba(238, 250, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.asset-launcher-node-video {
  background:
    linear-gradient(
      180deg,
      rgba(243, 244, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.asset-launcher-node-magnet {
  background:
    linear-gradient(
      180deg,
      rgba(244, 255, 245, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
.asset-category-map .messaging-content-node {
  min-height: 92px;
}
.asset-category-node {
  background:
    linear-gradient(
      180deg,
      rgba(232, 245, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.98) 100%);
}
#messagingContentPage .page-heading-row h2 {
  font-size: 2.25rem;
}
.messaging-content-actions-heading,
.messaging-content-actions-cell {
  width: 1%;
  white-space: nowrap;
}
.campaign-actions-cell {
  width: 1%;
  white-space: nowrap;
}
.campaign-content-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.campaign-content-row label {
  text-align: right;
}
.campaign-content-row.user-hidden {
  display: none;
}
.campaign-content-row .content-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted, #888);
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}
.campaign-content-row .content-remove-btn:hover {
  color: #c0392b;
  background-color: rgba(192, 57, 43, 0.1);
}
.hidden {
  display: none !important;
}
.icon-builder-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 0.8rem 0 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper-elevated);
}
.icon-builder-result img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}
.icon-builder-result-meta {
  display: grid;
  gap: 0.25rem;
}
.icon-builder-result-meta strong {
  font-size: 0.98rem;
}
.icon-builder-result-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}
.docs-page {
  max-width: 1000px;
  margin: 0 auto;
}
.profile-logo-preview {
  margin-top: 0.25rem;
}
.media-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.media-edit-primary,
.media-edit-sidebar {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.media-edit-preview {
  justify-items: center;
  align-items: center;
  min-height: 280px;
}
.profile-logo-preview {
  width: 100%;
}
.profile-logo-preview-link {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.profile-logo-preview-link.is-disabled {
  cursor: default;
  pointer-events: none;
}
.profile-logo-preview img {
  display: block;
  max-width: min(75%, 720px);
  max-height: 440px;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  position: relative;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.profile-save-row {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}
@media (max-width: 900px) {
  .media-edit-layout {
    grid-template-columns: 1fr;
  }
  .media-edit-preview {
    justify-items: center;
  }
  .project-details-layout {
    grid-template-columns: 1fr;
  }
}
.docs-intro {
  max-width: 1000px;
  margin: 0.35rem auto 1rem;
  line-height: 1.6;
}
.docs-nav-grid,
.docs-panel-grid {
  display: block;
  max-width: 1000px;
  margin: 1rem auto 0;
}
.docs-nav-grid {
  margin-bottom: 1.35rem;
}
.docs-nav-btn {
  display: block;
  width: auto;
  min-width: 220px;
  margin: 0 0 0.7rem 0;
}
.docs-flow-infographic {
  max-width: 1000px;
  margin: 1.2rem auto 1.6rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(16, 126, 208, 0.34);
  border-radius: 18px;
  position: relative;
  background:
    radial-gradient(
      circle at top right,
      rgba(166, 219, 255, 0.9),
      transparent 34%),
    linear-gradient(
      180deg,
      #fafdff 0%,
      #edf6ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.docs-flow-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}
.docs-flow-row + .docs-flow-row {
  margin-top: 0.9rem;
}
.docs-flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  color: #0b73c6;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(11, 115, 198, 0.14);
}
.docs-flow-drop {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 0;
  margin: -0.15rem auto -0.5rem;
  border-left: 180px solid transparent;
  border-right: 180px solid transparent;
  border-top: 42px solid rgba(127, 195, 244, 0.24);
  filter: drop-shadow(0 10px 16px rgba(61, 137, 199, 0.08));
}
.docs-flow-drop-secondary {
  border-top-color: rgba(110, 184, 241, 0.2);
}
.docs-flow-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: stretch;
  column-gap: 0.9rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 117, 194, 0.28);
  text-align: left;
  line-height: 1.25;
  color: #10263a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(16, 38, 58, 0.06);
}
.docs-flow-node:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 126, 208, 0.5);
  box-shadow: 0 14px 30px rgba(16, 38, 58, 0.1);
}
.docs-flow-node-copy {
  display: block;
  min-width: 0;
}
.docs-flow-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  margin-top: 0.05rem;
  padding: 0 0.5rem;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(219, 242, 255, 0.95) 0%,
      rgba(194, 228, 250, 0.92) 100%);
  border: 1px solid rgba(16, 126, 208, 0.34);
  color: #0a5e9f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.docs-flow-node-kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f7aa3;
}
.docs-flow-node-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
}
.docs-flow-node-meta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: #52667c;
}
.docs-flow-node-intake {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #eef8ef 100%);
}
.docs-flow-node-structure {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f4f8ff 100%);
}
.docs-flow-node-build {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fff7ea 100%);
}
.docs-flow-node-launch {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fef2e8 100%);
}
.docs-flow-node-execute {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #eef7ff 100%);
}
.docs-flow-node-measure {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #eefaf9 100%);
}
.docs-flow-support {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(16, 126, 208, 0.16);
}
.docs-flow-support-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a7188;
}
.docs-flow-node-support {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f3f8ff 100%);
}
.docs-flow-node-wide {
  min-height: 96px;
}
.docs-flow-node-support-secondary {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbff 100%);
}
.acquire-flow-map {
  position: relative;
  min-height: 920px;
  margin: 1.2rem 0 1.8rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(16, 126, 208, 0.18);
  background:
    radial-gradient(
      circle at center,
      rgba(196, 230, 252, 0.45) 0%,
      rgba(244, 250, 255, 0.9) 30%,
      #ffffff 72%);
}
.acquire-flow-core-wrap {
  position: absolute;
  left: 50%;
  top: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}
.acquire-flow-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 2px solid rgba(16, 126, 208, 0.28);
  background:
    radial-gradient(
      circle at 35% 30%,
      #ffffff 0%,
      #dff1ff 45%,
      #cbe7fb 100%);
  color: #0b4d80;
  box-shadow: 0 14px 28px rgba(13, 75, 125, 0.12);
  text-align: center;
}
.acquire-flow-core-kicker {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c7e9e;
}
.acquire-flow-core-title {
  margin-top: 0.35rem;
  font-size: 6.6rem;
  font-weight: 900;
  line-height: 1;
}
.acquire-flow-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 1rem;
  border: 1px solid rgba(16, 126, 208, 0.22);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  color: #16324c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(16, 38, 58, 0.06);
  text-align: center;
}
.acquire-flow-node:hover {
  border-color: rgba(16, 126, 208, 0.42);
  box-shadow: 0 12px 24px rgba(16, 38, 58, 0.1);
}
.acquire-flow-node::before {
  content: "";
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.96) 0%,
      rgba(11, 130, 212, 0.78) 100%);
  pointer-events: none;
}
.acquire-flow-node::after {
  content: "";
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid rgba(11, 130, 212, 0.96);
  pointer-events: none;
}
.acquire-flow-label {
  line-height: 1.1;
  font-size: 0.98rem;
}
.acquire-flow-node-web {
  left: 430px;
  top: 140px;
}
.acquire-flow-node-web::before {
  left: 100%;
  top: 50%;
  width: 72px;
  height: 10px;
  transform: translate(10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.96) 0%,
      rgba(11, 130, 212, 0.78) 100%);
}
.acquire-flow-node-web::after {
  left: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid rgba(11, 130, 212, 0.96);
  border-right: 0;
}
.acquire-flow-node-youtube {
  left: 380px;
  top: 300px;
}
.acquire-flow-node-youtube::before {
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
}
.acquire-flow-node-youtube::after {
  left: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
}
.acquire-flow-node-instagram {
  left: 340px;
  top: 460px;
}
.acquire-flow-node-instagram::before {
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
}
.acquire-flow-node-instagram::after {
  left: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
}
.acquire-flow-node-tiktok {
  left: 380px;
  top: 620px;
}
.acquire-flow-node-tiktok::before {
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
}
.acquire-flow-node-tiktok::after {
  left: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
}
.acquire-flow-node-facebook {
  left: 430px;
  top: 780px;
}
.acquire-flow-node-facebook::before {
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
}
.acquire-flow-node-facebook::after {
  left: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
}
.acquire-flow-node-x {
  right: 430px;
  top: 140px;
}
.acquire-flow-node-x::before {
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.78) 0%,
      rgba(11, 130, 212, 0.96) 100%);
}
.acquire-flow-node-x::after {
  right: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-left: 0;
  border-right: 24px solid rgba(11, 130, 212, 0.96);
}
.acquire-flow-node-reddit {
  right: 380px;
  top: 300px;
}
.acquire-flow-node-reddit::before {
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.78) 0%,
      rgba(11, 130, 212, 0.96) 100%);
}
.acquire-flow-node-reddit::after {
  right: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-left: 0;
  border-right: 24px solid rgba(11, 130, 212, 0.96);
}
.acquire-flow-node-quora {
  right: 340px;
  top: 460px;
}
.acquire-flow-node-quora::before {
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.78) 0%,
      rgba(11, 130, 212, 0.96) 100%);
}
.acquire-flow-node-quora::after {
  right: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-left: 0;
  border-right: 24px solid rgba(11, 130, 212, 0.96);
}
.acquire-flow-node-substack {
  right: 380px;
  top: 620px;
}
.acquire-flow-node-substack::before {
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.78) 0%,
      rgba(11, 130, 212, 0.96) 100%);
}
.acquire-flow-node-substack::after {
  right: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-left: 0;
  border-right: 24px solid rgba(11, 130, 212, 0.96);
}
.acquire-flow-node-medium {
  right: 430px;
  top: 780px;
}
.acquire-flow-node-medium::before {
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background:
    linear-gradient(
      90deg,
      rgba(11, 130, 212, 0.78) 0%,
      rgba(11, 130, 212, 0.96) 100%);
}
.acquire-flow-node-medium::after {
  right: calc(100% + 82px);
  top: 50%;
  transform: translateY(-50%);
  border-left: 0;
  border-right: 24px solid rgba(11, 130, 212, 0.96);
}
@media (max-width: 1100px) {
  .acquire-flow-map {
    min-height: 760px;
  }
  .acquire-flow-core {
    width: 360px;
    height: 360px;
  }
  .acquire-flow-core-title {
    font-size: 4.4rem;
  }
  .acquire-flow-node {
    width: 112px;
    height: 112px;
    font-size: 0.94rem;
  }
  .acquire-flow-node::before {
    width: 60px;
    height: 9px;
  }
  .acquire-flow-node::after {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
  }
}
@media (max-width: 900px) {
  .acquire-flow-map {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: auto;
    padding: 1rem;
  }
  .acquire-flow-core-wrap,
  .acquire-flow-node {
    position: static;
    transform: none;
  }
  .acquire-flow-core-wrap {
    order: -1;
    margin-bottom: 0.35rem;
  }
  .acquire-flow-core {
    width: 150px;
    height: 150px;
  }
  .acquire-flow-node {
    width: 100%;
    height: auto;
    min-height: 78px;
  }
  .acquire-flow-node::before,
  .acquire-flow-node::after {
    display: none;
  }
}
.docs-panel {
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.docs-panel h3 {
  margin: 0 0 0.45rem 0;
}
.docs-panel p:last-child,
.docs-panel ul:last-child {
  margin-bottom: 0;
}
.docs-platform-selector {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.docs-platform-selector-left {
  display: grid;
  gap: 0.55rem;
}
.docs-platform-selector-left .docs-nav-btn {
  margin: 0;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.docs-platform-selector-right {
  border: 1px solid rgba(16, 126, 208, 0.2);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: #f7fbff;
}
.docs-platform-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.docs-platform-docs-body h4 {
  margin: 0.25rem 0 0.5rem;
}
.docs-platform-docs-body ul {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding-left: 1.1rem;
}
.docs-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
}
.docs-list li + li {
  margin-top: 0.35rem;
}
.docs-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}
.docs-kv-item {
  font-size: 0.95rem;
}
.docs-checklist-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.35rem 0;
}
.docs-checklist-line input[type=checkbox] {
  margin-top: 0.2rem;
}
.docs-checklist-line a {
  margin-left: 0.1rem;
  font-size: 0.88rem;
}
#docsOrchestratorChannelsBody tr.docs-orchestrator-row-complete {
  background: #eaf8ec;
}
#docsOrchestratorChannelsBody tr.docs-orchestrator-row-incomplete {
  background: #fdecef;
}
.docs-portal-link {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #b91c1c;
  color: #b91c1c;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  background: #fff;
}
.docs-portal-link:hover {
  background: #fff5f5;
}
.docs-portal-link-done {
  border-color: #157347;
  color: #157347;
}
.docs-portal-link-done:hover {
  background: #eefaf3;
}
.docs-kicker {
  display: block;
  margin: 0 0 0.35rem 0;
  padding: 0;
  background: transparent;
  color: #0b82d4;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .docs-flow-infographic {
    padding: 1rem;
  }
  .docs-flow-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .docs-flow-arrow {
    display: none;
  }
  .docs-flow-drop {
    display: none;
  }
  .docs-flow-node {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .docs-flow-support {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .docs-kv-grid {
    grid-template-columns: 1fr;
  }
}
.toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.toolbar button {
  width: auto;
}
.contacts-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.top-module {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  background: #ffffff;
}
.top-module h3 {
  margin: 0 0 0.6rem;
}
.code-box {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #08131f;
  color: #d6f1ff;
  font-size: 0.86rem;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.social-grid-left {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.filters.filters-contacts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filters.filters-contacts-3x4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.filters input {
  margin: 0;
}
.segment-social-controls {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  background: #ffffff;
}
.segment-social-mode {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}
.segment-social-mode .checkbox-row {
  padding: 0;
  margin: 0;
}
.segment-social-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.8rem;
  margin-bottom: 0.45rem;
}
.labeled-form .form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.6rem;
  align-items: center;
}
.labeled-form .form-row.hidden {
  display: none;
}
.labeled-form .form-row > label {
  font-weight: 600;
}
.labeled-form .form-row .field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.labeled-form .form-row:has(textarea),
.labeled-form .form-row:has(.messaging-richtext-editor) {
  align-items: start;
}
.labeled-form .form-row:has(textarea) > label,
.labeled-form .form-row:has(.messaging-richtext-editor) > label {
  align-self: start;
  padding-top: 0.55rem;
}
.labeled-form {
  --label-col-width: 180px;
  --label-col-gap: 0.6rem;
}
.labeled-form > button[type=submit] {
  width: min(520px, calc(100% - var(--label-col-width) - var(--label-col-gap)));
  min-width: min(400px, calc(100% - var(--label-col-width) - var(--label-col-gap)));
  max-width: calc(100% - var(--label-col-width) - var(--label-col-gap));
  margin-top: 0.55rem;
  margin-left: calc(var(--label-col-width) + var(--label-col-gap) + ((100% - var(--label-col-width) - var(--label-col-gap) - min(520px, calc(100% - var(--label-col-width) - var(--label-col-gap)))) / 2));
  margin-right: 0;
  align-self: auto;
}
#campaignForm.labeled-form {
  --label-col-width: 150px;
  --label-col-gap: 0.75rem;
}
#campaignForm > .grid-form {
  align-items: start;
}
#campaignForm > .grid-form > .stack-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding-top: 0;
}
#campaignForm.labeled-form .form-row > label {
  margin: 0;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}
#campaignForm.labeled-form .form-row > input,
#campaignForm.labeled-form .form-row > select,
#campaignForm.labeled-form .form-row > textarea {
  width: 100%;
  min-width: 0;
}
#messagingCreateContentSuggestionsTable th:first-child,
#messagingCreateContentSuggestionsTable td:first-child {
  width: 44px;
  text-align: center;
}
.messaging-create-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 1rem;
  align-items: start;
}
.messaging-create-content-column {
  min-width: 0;
}
.messaging-create-content-results {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 14px;
  background: var(--bg-surface);
}
#messagingCreateContentFeedbackWrap textarea {
  min-height: 120px;
}
#messagingCreateContentSuggestionsEmpty {
  color: #39516d;
  line-height: 1.45;
}
.messaging-richtext-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
}
.messaging-richtext-toolbar button {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}
.messaging-richtext-editor {
  min-height: 320px;
  border: 1px solid #b9caea;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(19, 37, 68, 0.04);
}
.messaging-richtext-editor:focus {
  outline: 2px solid rgba(47, 108, 223, 0.22);
  outline-offset: 1px;
}
.messaging-content-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
#campaignForm > .grid-form > .stack-form > h3 {
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.2;
}
#campaignContentChannelHint {
  margin: 0 0 0.35rem 0;
  min-height: 0;
}
.asset-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.asset-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.asset-upload-progress {
  margin-top: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #f8fbff;
}
.asset-upload-progress-text {
  font-size: 0.86rem;
  color: #1f2937;
  margin-bottom: 0.35rem;
}
.asset-upload-progress progress {
  width: 100%;
  height: 12px;
}
.messaging-topics-ai-toolbar {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.6rem;
}
.messaging-topics-ai-toolbar button {
  width: auto;
  min-width: 260px;
}
.messaging-topics-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}
.messaging-topics-suggestion-card {
  border: 1px solid #c9def4;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #f8fbff;
}
.messaging-topics-suggestion-card h4 {
  margin: 0 0 0.75rem;
  color: #17324d;
}
.messaging-topics-suggestion-list {
  display: grid;
  gap: 0.45rem;
}
.messaging-topics-suggestion-list .checkbox-row {
  align-items: flex-start;
  padding: 0;
}
.messaging-topics-suggestion-list .checkbox-row span {
  line-height: 1.35;
}
.asset-edit-layout #assetForm {
  margin: 0;
}
.asset-preview-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 0.7rem;
  background: var(--bg-surface);
}
.asset-preview-panel h3 {
  margin: 0;
}
.asset-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.asset-preview-label {
  font-weight: 700;
  margin-right: 0.3rem;
}
.asset-preview-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  min-height: 460px;
  max-height: 70vh;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-page);
}
.asset-preview-empty {
  color: var(--muted);
}
.asset-preview-media {
  width: 100%;
  max-width: 100%;
  max-height: calc(70vh - 120px);
  object-fit: contain;
}
.asset-preview-audio {
  width: 100%;
  max-width: 100%;
}
.asset-preview-frame {
  width: 100%;
  height: calc(70vh - 130px);
  max-height: calc(70vh - 130px);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}
.asset-preview-copy {
  width: 100%;
  white-space: pre-wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 0.7rem;
  min-height: 120px;
}
.asset-preview-link {
  margin: 0;
}
.asset-preview-meta {
  margin-top: 0.55rem;
  width: 100%;
}
.asset-preview-meta-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.develop-template-canvas {
  --lp-primary: #0b82d4;
  --lp-background: #f5fbff;
  --lp-accent: #1a4f81;
  --lp-page-background-image: none;
  --lp-page-background-overlay:
    linear-gradient(
      135deg,
      rgba(238, 248, 255, 0.54) 0%,
      rgba(248, 252, 255, 0.62) 44%,
      rgba(237, 244, 255, 0.58) 100%);
  --lp-border-thickness: 1px;
  --lp-radius: 12px;
  --lp-blur: 0px;
  --lp-filter: none;
  --lp-border: rgba(15, 79, 143, 0.24);
  --lp-border-soft: rgba(15, 79, 143, 0.2);
  --lp-dash-border: rgba(94, 143, 189, 0.78);
  --lp-surface: rgba(255, 255, 255, 0.92);
  --lp-surface-strong: rgba(255, 255, 255, 0.94);
  --lp-surface-soft: rgba(255, 255, 255, 0.88);
  --lp-surface-alt: #f4f9ff;
  margin-top: 0.8rem;
  padding: 1rem;
  border: var(--lp-border-thickness, 1px) solid var(--lp-border, var(--border));
  border-radius: calc(var(--lp-radius, 12px) + 2px);
  background-color: var(--lp-background, #f5fbff);
  background-image:
    var(--lp-page-background-overlay),
    var(--lp-page-background-image),
    radial-gradient(
      circle at 20% 20%,
      rgba(71, 176, 255, 0.18),
      transparent 34%),
    radial-gradient(
      circle at 82% 18%,
      rgba(22, 84, 163, 0.22),
      transparent 26%);
  background-size:
    cover,
    cover,
    auto,
    auto;
  background-position:
    center center,
    center center,
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  filter: var(--lp-filter, none);
}
.develop-template-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.8rem;
}
.develop-template-library-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 168px;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(15, 79, 143, 0.24);
  border-radius: 12px;
  padding: 0.85rem;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f4fbff 100%);
  text-align: left;
}
.develop-template-library-copy {
  min-width: 0;
}
.develop-template-library-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.develop-extensions-tree {
  display: grid;
  gap: 0;
  margin-top: 0.8rem;
}
.develop-extensions-header,
.develop-extension-table-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(160px, 0.55fr) minmax(0, 1.7fr);
  gap: 0;
  align-items: start;
  width: 100%;
}
.develop-extensions-header {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.2rem;
}
.develop-extensions-header-cell,
.develop-extension-table-cell {
  padding: 0.35rem 0.6rem;
  text-align: left;
}
.develop-extensions-header-cell {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtext);
}
.develop-extension-table-row {
  border-bottom: 1px solid var(--border-light);
}
.develop-extension-table-cell {
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--text);
}
.develop-extension-name-cell {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  padding: 0.35rem 0.6rem;
  padding-left: calc(0.6rem + (var(--extension-depth, 0) * 40px));
  width: 100%;
}
.develop-extension-tree-toggle {
  min-width: 14px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.develop-extension-tree-toggle.is-empty {
  opacity: 0.65;
}
.develop-extension-name-link {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
}
.develop-extension-name-link:hover,
.develop-extension-name-link:focus-visible {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}
.develop-extension-summary-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 980px) {
  .develop-extensions-header,
  .develop-extension-table-row {
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.5fr) minmax(0, 1.2fr);
  }
}
.develop-template-library-card.is-selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.develop-template-library-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}
.develop-template-library-card p {
  margin: 0 0 0.7rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--subtext);
}
.develop-template-library-card button {
  width: auto;
  min-width: 160px;
}
.develop-template-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.develop-template-card-actions button {
  min-width: 128px;
}
.develop-template-editor {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 0;
  background: var(--bg-surface);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.develop-template-section {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.develop-template-section-header-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: #000;
}
.develop-template-section-header-row > button:not(.accordion-header) {
  flex: 0 0 auto;
  margin: 0.45rem;
  min-width: 0;
  width: auto;
  white-space: nowrap;
  margin-left: auto;
}
.develop-template-editor .develop-template-section-header-row > button:not(.accordion-header) {
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  padding-left: 1rem;
  padding-right: 1rem;
}
.develop-template-section-body {
  padding: 1rem 0.95rem 1rem;
}
.develop-template-section-body.hidden {
  display: none;
}
.develop-template-editor--page-mode {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin: 0;
  overflow: visible;
}
.develop-template-editor--page-mode .develop-template-section-header-row,
.develop-template-editor--page-mode #developPageTemplateEditorMeta {
  display: none;
}
.develop-template-editor--page-mode .develop-template-section-body {
  padding: 0;
}
#developLandingPagesPage.app-page {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.develop-template-records-host {
  margin: 0.75rem 0 1rem;
}
.develop-template-records-card {
  border: 1px solid rgba(15, 79, 143, 0.18);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.develop-template-records-card h4 {
  margin: 0;
  padding: 0.8rem 0.95rem;
  background: #eef6ff;
  border-bottom: 1px solid rgba(15, 79, 143, 0.14);
  font-size: 0.98rem;
}
.develop-template-records-table {
  width: 100%;
  border-collapse: collapse;
}
.develop-template-records-table th,
.develop-template-records-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(15, 79, 143, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}
.develop-template-records-table th {
  background: #061018;
  color: #fff;
  font-weight: 700;
}
.develop-template-records-table tbody tr:last-child td {
  border-bottom: 0;
}
.develop-template-records-table td.actions-cell {
  white-space: nowrap;
}
.develop-template-records-empty {
  padding: 0.9rem 0.95rem;
  color: #3a5873;
}
.develop-template-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 79, 143, 0.14);
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
}
.develop-template-picker-row__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.develop-template-picker-row__title {
  font-weight: 800;
  color: #173c61;
}
.develop-template-picker-row__meta {
  color: #587592;
  font-size: 0.88rem;
}
.develop-template-picker-row__action {
  color: #0b82d4;
  font-weight: 800;
  white-space: nowrap;
}
.develop-template-module-list {
  display: grid;
  gap: 0.6rem;
}
.develop-template-module-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  border: 1px solid rgba(15, 79, 143, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem;
}
.develop-template-module-item.is-drag-over {
  border-color: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
}
.develop-template-module-item.is-dragging {
  opacity: 0.65;
}
.develop-template-module-grip {
  width: 30px;
  min-height: 64px;
  border: 1px dashed rgba(15, 79, 143, 0.35);
  border-radius: 8px;
  background: #f3f9ff;
  color: #2f5a7c;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.develop-template-module-grip:active {
  cursor: grabbing;
}
.develop-template-module-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}
.develop-template-module-fields textarea,
.develop-template-module-fields input,
.develop-template-module-fields select {
  width: 100%;
}
.develop-template-module-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.develop-template-module-fields .develop-template-module-span {
  grid-column: 1 / -1;
}
.develop-template-module-fields textarea {
  min-height: 68px;
}
.develop-layout-toolbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.6rem;
}
.develop-layout-toolbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin: 0 0 0.9rem;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #4f6f90;
}
.develop-layout-toolbar-heading {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.develop-layout-tile {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 78px;
  padding: 0.45rem;
  border: 1px solid #444;
  border-radius: 12px;
  background: #f7fbff;
  cursor: grab;
  user-select: none;
}
.develop-layout-tile:focus-visible {
  outline: 2px solid #0b82d4;
  outline-offset: 2px;
}
.develop-layout-tile.is-dragging {
  opacity: 0.7;
}
.develop-layout-tile.is-selected {
  background: #d8e8f7;
  border-color: #173c61;
  box-shadow: inset 0 0 0 1px rgba(23, 60, 97, 0.15);
}
.develop-layout-toolbar-icon,
.develop-layout-picker-icon {
  display: grid;
  width: 100%;
  max-width: 112px;
  min-height: 30px;
  gap: 0.28rem;
}
.develop-layout-toolbar-icon span,
.develop-layout-picker-icon span {
  border-radius: 5px;
  border: 1px solid #444;
  background: rgba(15, 79, 143, 0.18);
  min-height: 30px;
}
.develop-row-layout-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}
.develop-row-layout-picker__tile {
  min-height: 66px;
  padding: 0.35rem;
  justify-items: stretch;
}
.develop-row-layout-picker .develop-layout-picker-icon {
  display: block;
  width: 88%;
  max-width: none;
  min-height: 44px;
  justify-self: stretch;
}
.develop-row-layout-picker .develop-layout-picker-icon svg {
  display: block;
  width: 100%;
  height: 44px;
}
.develop-layout-toolbar .develop-layout-toolbar-icon {
  display: block;
  width: 88%;
  max-width: none;
  min-height: 44px;
  margin: 0 auto;
}
.develop-layout-toolbar .develop-layout-toolbar-icon svg {
  display: block;
  width: 100%;
  height: 44px;
}
.develop-layout-tile-ghost {
  position: fixed;
  z-index: 10000;
  width: 140px;
  pointer-events: none;
  opacity: 0.88;
  box-shadow: 0 12px 28px rgba(15, 79, 143, 0.18);
}
.develop-layout-toolbar-icon--1-5,
.develop-layout-picker-icon--1-5 {
  grid-template-columns: 1fr 5fr;
}
.develop-layout-toolbar-icon--2-4,
.develop-layout-picker-icon--2-4 {
  grid-template-columns: 2fr 4fr;
}
.develop-layout-toolbar-icon--2-2-2,
.develop-layout-picker-icon--2-2-2 {
  grid-template-columns: 1fr 1fr 1fr;
}
.develop-layout-toolbar-icon--3-3,
.develop-layout-picker-icon--3-3 {
  grid-template-columns: 1fr 1fr;
}
.develop-layout-toolbar-icon--4-2,
.develop-layout-picker-icon--4-2 {
  grid-template-columns: 4fr 2fr;
}
.develop-layout-toolbar-icon--5-1,
.develop-layout-picker-icon--5-1 {
  grid-template-columns: 5fr 1fr;
}
.develop-layout-toolbar-icon--1-4-1,
.develop-layout-picker-icon--1-4-1 {
  grid-template-columns: 1fr 4fr 1fr;
}
.develop-layout-toolbar-icon--6,
.develop-layout-picker-icon--6 {
  grid-template-columns: 1fr;
}
.develop-page-template-section-card {
  display: grid;
  gap: 0.75rem;
}
.develop-page-template-section-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      #fbfdff 0%,
      #eef6fd 100%);
  text-align: left;
}
.develop-page-template-section-summary.is-collapsed {
  background:
    linear-gradient(
      180deg,
      #f7fbff 0%,
      #e7f2fb 100%);
}
.develop-page-template-section-summary-grip {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #315879;
  cursor: grab;
}
.develop-page-template-section-summary-name {
  display: grid;
  gap: 0.15rem;
}
.develop-page-template-section-summary-title {
  font-weight: 700;
  color: #173c61;
}
.develop-page-template-section-summary-layout {
  min-width: 110px;
}
.develop-page-template-section-summary-toggle {
  font-size: 0.95rem;
  color: #173c61;
}
.develop-page-template-section-remove {
  justify-self: end;
  align-self: start;
  margin-bottom: -0.15rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 27, 74, 0.16);
  background: #fff5f8;
  color: #941b4a;
  font-size: 0.76rem;
  font-weight: 700;
}
.develop-page-template-section-body {
  display: grid;
  gap: 0.75rem;
  padding-left: 0.2rem;
}
.develop-page-template-row-config {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}
.develop-layout-picker-btn {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 12px;
  background: #f7fbff;
  cursor: pointer;
}
.develop-layout-picker-btn.is-active {
  border-color: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
  background: #e9f4ff;
}
.develop-layout-picker-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #214c71;
}
.develop-page-template-section-modules {
  display: grid;
  gap: 0;
}
.develop-page-template-workspace {
  display: grid;
  gap: 0.9rem;
  min-height: 260px;
  padding: 1rem;
  border: 1px solid #444;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      #eef4f9 0%,
      #e7eef5 100%);
}
.develop-page-template-workspace-heading {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #173c61;
  letter-spacing: 0.02em;
}
.develop-page-template-workspace.is-drag-over {
  border-color: #0b82d4;
  box-shadow: inset 0 0 0 3px rgba(11, 130, 212, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(233, 245, 255, 0.98) 0%,
      rgba(225, 241, 255, 0.98) 100%);
}
.develop-page-template-workspace-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(15, 79, 143, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 1rem;
}
.develop-page-template-workspace-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #173c61;
}
.develop-page-template-workspace-empty-copy {
  margin-top: 0.35rem;
  color: #587592;
  max-width: 520px;
}
.develop-page-template-workspace-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 20px;
  border: 1px solid #777;
  border-radius: 14px;
  background: #d7e1ea;
  overflow: visible;
  align-items: stretch;
}
.develop-page-template-row-actions {
  position: static;
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  width: 54px;
  min-width: 54px;
  padding-left: 0.2rem;
}
.develop-page-template-row-action {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #8c939b;
  background: rgba(126, 134, 143, 0.96);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(45, 55, 68, 0.16);
}
.develop-builder-inline-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}
.develop-builder-inline-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.develop-page-template-row-action:hover,
.develop-page-template-row-action:focus-visible {
  background: #69717a;
  border-color: #69717a;
}
.develop-page-template-row-action--delete {
  color: #f3e6e4;
}
.develop-page-template-workspace-row.is-dragging {
  opacity: 0.55;
}
.develop-page-template-workspace-row.is-drop-before::before,
.develop-page-template-workspace-row.is-drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
  z-index: 8;
  pointer-events: none;
}
.develop-page-template-workspace-row.is-drop-before::before {
  top: -8px;
}
.develop-page-template-workspace-row.is-drop-after::after {
  bottom: -8px;
}
.develop-page-template-row-cells {
  display: grid;
  gap: 0.85rem;
}
.develop-page-template-row-cell {
  display: grid;
  min-height: 190px;
  border: 1px solid #999;
  border-radius: 14px;
  background: #c8d8e8;
  position: relative;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.develop-page-template-cell-settings {
  position: absolute;
  inset: 0.7rem 0.7rem auto auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 143, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #173c61;
  font-size: 0.9rem;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 79, 143, 0.12);
  z-index: 2;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}
.develop-page-template-cell-settings:hover,
.develop-page-template-cell-settings:focus-visible {
  background: #ffffff;
  border-color: rgba(15, 79, 143, 0.28);
}
.develop-page-template-cell-settings .develop-builder-inline-icon,
.develop-page-template-module-pill-action .develop-builder-inline-icon,
.develop-page-template-row-action .develop-builder-inline-icon {
  width: 13px;
  height: 13px;
}
.develop-page-template-cell-settings .develop-builder-inline-icon svg,
.develop-page-template-module-pill-action .develop-builder-inline-icon svg,
.develop-page-template-row-action .develop-builder-inline-icon svg {
  width: 13px;
  height: 13px;
}
.develop-page-template-row-action .develop-builder-inline-icon {
  width: 24px;
  height: 24px;
}
.develop-page-template-row-action .develop-builder-inline-icon svg {
  width: 24px;
  height: 24px;
}
.develop-page-template-cell-add .develop-builder-inline-icon {
  width: 22px;
  height: 22px;
}
.develop-page-template-cell-add .develop-builder-inline-icon svg {
  width: 22px;
  height: 22px;
}
.develop-page-template-row-cell.is-module-drop-target {
  border-color: #0b82d4;
  box-shadow: inset 0 0 0 3px rgba(11, 130, 212, 0.12);
  background: #c3d6e8;
}
.develop-page-template-row-cell-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 0.5rem 2.8rem 0.5rem 0.5rem;
}
.develop-page-template-row-cell-stack.is-drop-append {
  outline: 3px dashed rgba(11, 130, 212, 0.35);
  outline-offset: 6px;
  border-radius: 18px;
}
.develop-page-template-cell-add {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  min-width: 54px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 143, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #0f4f8f;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 79, 143, 0.12);
}
.develop-page-template-cell-add:hover,
.develop-page-template-cell-add:focus-visible {
  transform: translate(-50%, -50%);
}
.develop-page-template-row-cell:has(.develop-page-template-module-pill) .develop-page-template-cell-add {
  inset: auto 0.8rem 0.8rem auto;
  transform: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
}
.develop-page-template-row-cell:has(.develop-page-template-module-pill) .develop-page-template-cell-add:hover,
.develop-page-template-row-cell:has(.develop-page-template-module-pill) .develop-page-template-cell-add:focus-visible {
  transform: none;
}
.develop-page-template-module-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 2.35rem 0.5rem 0.7rem;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 143, 0.16);
  background: #aebfd0;
  color: #173c61;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.develop-page-template-module-pill.is-dragging {
  opacity: 0.4;
}
.develop-page-template-module-pill.is-drop-before::before,
.develop-page-template-module-pill.is-drop-after::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  height: 4px;
  border-radius: 999px;
  background: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
  pointer-events: none;
}
.develop-page-template-module-pill.is-drop-before::before {
  top: -8px;
}
.develop-page-template-module-pill.is-drop-after::after {
  bottom: -8px;
}
.develop-page-template-module-pill:focus-visible {
  outline: 2px solid rgba(11, 130, 212, 0.45);
  outline-offset: 2px;
}
.develop-page-template-module-pill-icon {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: rgba(23, 60, 97, 0.16);
  font-size: 0.78rem;
}
.develop-page-template-module-pill-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.develop-page-template-module-pill-label {
  font-size: 0.85rem;
}
.develop-page-template-module-pill-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: #587592;
}
.develop-page-template-module-pill-preview {
  font-size: 0.72rem;
  font-weight: 500;
  color: #35516c;
}
.develop-page-template-module-pill-actions {
  position: absolute;
  top: 0.28rem;
  right: 0.38rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
}
.develop-page-template-module-pill-action {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 143, 0.14);
  background: #f7fbff;
  color: #0f4f8f;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
}
.develop-page-template-module-pill-action:hover,
.develop-page-template-module-pill-action:focus-visible {
  background: #e9f4ff;
}
.develop-page-template-module-pill-action--delete {
  color: #b42318;
}
.develop-module-picker-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 10001;
  width: min(760px, calc(100vw - 2.4rem));
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 55, 90, 0.22);
  backdrop-filter: blur(10px);
}
.develop-module-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
}
.develop-module-editor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 24, 0.46);
}
.develop-module-editor-modal__dialog {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  bottom: 1.2rem;
  width: min(860px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 2.4rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 56px rgba(15, 55, 90, 0.26);
}
.develop-module-editor-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.develop-module-editor-modal__header h3 {
  margin: 0;
}
.develop-module-editor-modal__header p {
  margin: 0.25rem 0 0;
  color: #587592;
}
.develop-module-editor-modal__body {
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.develop-module-editor-modal__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 79, 143, 0.16);
  flex-shrink: 0;
}
.develop-container-editor-preview {
  display: grid;
  gap: 0.5rem;
}
.develop-container-editor-preview__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #35516c;
}
.develop-container-editor-preview__box {
  min-height: 120px;
  border: 2px dashed rgba(15, 79, 143, 0.18);
  border-radius: 16px;
  background: rgba(240, 248, 255, 0.72);
  display: grid;
  place-items: center;
  color: #35516c;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.develop-module-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.develop-module-picker-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #173c61;
}
.develop-module-picker-subtitle {
  margin-top: 0.2rem;
  color: #587592;
}
.develop-module-picker-close {
  min-width: 0;
}
.develop-module-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.develop-module-picker-tile {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  min-width: 0;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 14px;
  background: #f7fbff;
  cursor: grab;
  user-select: none;
}
.develop-module-picker-tile.is-dragging {
  opacity: 0.7;
}
.develop-module-picker-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(15, 79, 143, 0.12);
  color: #173c61;
  font-size: 1rem;
  font-weight: 800;
}
.develop-module-picker-label {
  text-align: center;
  color: #173c61;
  font-weight: 700;
}
.develop-richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.develop-richtext-tool {
  min-width: 0;
  padding: 0.35rem 0.6rem;
}
.develop-richtext-editor {
  min-height: 220px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #173c61;
  line-height: 1.6;
  outline: none;
}
.develop-richtext-editor:empty::before {
  content: attr(data-placeholder);
  color: #7b92aa;
}
.develop-richtext-editor p:first-child,
.develop-richtext-editor h2:first-child,
.develop-richtext-editor h3:first-child,
.develop-richtext-editor ul:first-child,
.develop-richtext-editor ol:first-child {
  margin-top: 0;
}
.develop-richtext-editor p:last-child,
.develop-richtext-editor h2:last-child,
.develop-richtext-editor h3:last-child,
.develop-richtext-editor ul:last-child,
.develop-richtext-editor ol:last-child {
  margin-bottom: 0;
}
.develop-richtext-editor ul,
.develop-richtext-editor ol {
  padding-left: 1.35rem;
}
.develop-richtext-editor a {
  color: #0f4f8f;
  text-decoration: underline;
}
.develop-page-template-module-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 10px;
  background: #f9fcff;
}
.develop-page-template-module-card.is-drag-over {
  border-color: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
}
.develop-page-template-module-card.is-dragging {
  opacity: 0.6;
}
.develop-page-template-module-card-grip {
  grid-column: 1 / 2;
  align-self: start;
  justify-self: start;
  padding: 0.2rem 0.4rem;
  border: 1px dashed rgba(15, 79, 143, 0.28);
  border-radius: 8px;
  background: #eef7ff;
  color: #315879;
  font-size: 0.88rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
}
.develop-page-template-module-summary-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(15, 79, 143, 0.12);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}
.develop-page-template-module-icon {
  min-width: 36px;
  height: 30px;
  padding: 0 0.3rem;
  border-radius: 8px;
  background: #e9f4ff;
  color: #214c71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
}
.develop-page-template-module-summary-name {
  font-weight: 700;
  color: #173c61;
}
.develop-page-template-module-summary-type {
  font-size: 0.82rem;
  color: #587592;
  font-weight: 700;
}
.develop-page-template-module-toggle {
  font-size: 0.92rem;
  color: #173c61;
}
.develop-page-template-module-body {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.develop-page-template-module-body textarea,
.develop-page-template-module-body input,
.develop-page-template-module-body select {
  width: 100%;
}
.develop-page-template-add-module-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}
.develop-page-template-module-summary {
  grid-column: 1 / -1;
  color: #315879;
  font-size: 0.9rem;
}
.develop-page-template-module-add-btn {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  align-items: center;
  min-height: 58px;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
}
.develop-page-template-module-add-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}
.develop-modular-page-preview {
  display: grid;
  gap: 1rem;
}
.develop-modular-page-section {
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}
.develop-modular-page-columns {
  display: grid;
  gap: 0.9rem;
}
.develop-modular-page-column {
  display: grid;
  gap: 0.7rem;
}
.develop-modular-page-column-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(15, 79, 143, 0.18);
  border-radius: 12px;
  background: rgba(240, 248, 255, 0.58);
  color: #587592;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.develop-modular-page-preview .develop-modular-page-section {
  border: none;
  background: transparent;
  padding: 0;
}
.develop-modular-page-preview .develop-modular-page-column-empty {
  display: none;
}
@media (max-width: 900px) {
  .develop-template-module-fields {
    grid-template-columns: 1fr;
  }
  .develop-layout-toolbar,
  .develop-page-template-row-config,
  .develop-page-template-add-module-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .develop-page-template-column-groups,
  .develop-page-template-module-card,
  .develop-modular-page-columns,
  .develop-page-template-module-body {
    grid-template-columns: 1fr;
  }
  .develop-page-template-section-summary,
  .develop-page-template-module-summary-bar {
    grid-template-columns: auto 1fr auto;
  }
  .develop-page-template-section-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.develop-template-preview-frame {
  width: 160px;
  height: 122px;
  overflow: hidden;
  border: 1px solid rgba(15, 79, 143, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(233, 246, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px rgba(19, 65, 108, 0.08);
}
.develop-template-preview-scale {
  width: 720px;
  transform: scale(0.2222);
  transform-origin: top left;
  pointer-events: none;
}
.develop-template-preview-frame .develop-template-canvas {
  margin-top: 0;
  min-height: 0;
  padding: 1rem;
  border: none;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}
.develop-template-canvas-mini .develop-template-form-card {
  box-shadow: 0 8px 18px rgba(7, 33, 66, 0.06);
}
.develop-template-canvas-mini .develop-template-form-card input,
.develop-template-canvas-mini .develop-template-form-card textarea {
  pointer-events: none;
}
@media (max-width: 900px) {
  .develop-template-library-card {
    grid-template-columns: 1fr;
  }
  .develop-template-library-media {
    justify-content: flex-start;
  }
  .develop-template-preview-frame {
    width: 184px;
    height: 138px;
  }
  .develop-template-preview-scale {
    transform: scale(0.2556);
  }
}
.develop-template-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
  border: var(--lp-border-thickness, 1px) dashed var(--lp-dash-border, #4c86bf);
  border-radius: calc(var(--lp-radius, 12px) * 0.9);
  background:
    linear-gradient(
      90deg,
      #0c1823 0%,
      #103b62 50%,
      #dff4ff 100%);
  color: #f3fbff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.develop-template-banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: contain;
}
.develop-template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
  background: transparent;
  filter: var(--lp-filter, none);
  border-radius: calc(var(--lp-radius, 12px) * 0.95);
  padding: 0.2rem;
}
.develop-template-copy {
  padding: 1.2rem;
  border: var(--lp-border-thickness, 1px) solid var(--lp-border, rgba(15, 79, 143, 0.22));
  border-radius: var(--lp-radius, 14px);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(var(--lp-blur, 2px));
}
.develop-template-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--lp-accent, #0b5ea0);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.develop-template-copy h3,
.develop-template-form-card h3,
.develop-template-body-copy h3 {
  margin: 0 0 0.65rem 0;
  font-size: 2rem;
  line-height: 1.1;
}
.develop-template-copy p,
.develop-template-form-card p,
.develop-template-body-copy p {
  margin: 0 0 0.9rem 0;
  color: #20313f;
  line-height: 1.6;
}
.develop-template-cta-row {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1.1rem;
}
.develop-template-cta-row button {
  width: auto;
  min-width: 180px;
}
.develop-template-secondary-btn {
  background: var(--lp-surface-alt, #f4f9ff);
  color: var(--lp-accent, #0b3760);
}
.develop-template-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.develop-template-feature-card,
.develop-template-body-copy,
.develop-template-side-image {
  border: var(--lp-border-thickness, 1px) solid var(--lp-border-soft, rgba(15, 79, 143, 0.2));
  border-radius: var(--lp-radius, 12px);
  background: var(--lp-surface, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--lp-blur, 0px));
}
.develop-template-feature-card {
  padding: 0.8rem;
}
.develop-template-feature-card h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
}
.develop-template-feature-card p {
  margin: 0;
  font-size: 0.92rem;
}
.develop-template-image-slot,
.develop-template-video-slot,
.develop-template-side-image,
.develop-template-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--lp-border-thickness, 1px) dashed var(--lp-dash-border, #5e8fbd);
  border-radius: calc(var(--lp-radius, 10px) * 0.8);
  background:
    linear-gradient(
      135deg,
      #edf6ff 0%,
      #d7edff 100%);
  color: var(--lp-accent, #214c71);
  font-weight: 700;
  text-align: center;
}
.develop-template-image-slot {
  min-height: 0;
  margin-bottom: 0.7rem;
  padding: 0.35rem;
}
.develop-template-video-slot {
  min-height: 0;
  margin-bottom: 0.7rem;
  padding: 0.35rem;
  overflow: hidden;
}
.develop-template-form-card {
  padding: 1.1rem;
  border: var(--lp-border-thickness, 1px) solid var(--lp-border, rgba(15, 79, 143, 0.24));
  border-radius: var(--lp-radius, 14px);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(var(--lp-blur, 0px));
  box-shadow: 0 12px 28px rgba(7, 33, 66, 0.08);
}
.develop-template-runtime-form {
  display: block;
}
.develop-template-runtime-form-disabled {
  cursor: default;
}
.develop-template-logo-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 88px;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.develop-template-logo-slot {
  min-height: 58px;
  padding: 0.35rem;
}
.develop-template-logo-square {
  min-height: 88px;
}
.develop-template-image-slot img,
.develop-template-side-image img,
.develop-template-logo-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.develop-template-video-slot video,
.develop-template-video-slot iframe,
.develop-table-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border: 0;
}
.develop-template-form-card input,
.develop-template-form-card textarea {
  margin: 0 0 0.55rem 0;
}
.develop-template-form-status {
  min-height: 1.25rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: #32587c;
}
.develop-template-form-status.is-success {
  color: #1f7a35;
}
.develop-template-form-status.is-error {
  color: #b42318;
}
.develop-thankyou-canvas {
  min-height: 440px;
}
.develop-thankyou-hero,
.develop-thankyou-hero-shell {
  min-height: 380px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 79, 143, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}
.develop-thankyou-center {
  width: min(760px, 94%);
  padding: 2rem 1.2rem;
  text-align: center;
  display: grid;
  gap: 1rem;
}
.develop-thankyou-center h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #164b7f;
}
.develop-thankyou-center p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.08rem;
  color: #214362;
  line-height: 1.6;
}
.develop-thankyou-download {
  width: 190px;
  min-height: 210px;
  margin: 0.55rem auto 0;
  border-radius: 18px;
  border: 2px solid rgba(11, 130, 212, 0.5);
  background:
    linear-gradient(
      180deg,
      rgba(229, 245, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 100%);
  color: #0e4f82;
  text-decoration: none;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  box-shadow: 0 14px 28px rgba(11, 130, 212, 0.18);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.develop-thankyou-download:hover,
.develop-thankyou-download:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11, 130, 212, 0.78);
  box-shadow: 0 18px 32px rgba(11, 130, 212, 0.24);
}
.develop-thankyou-download.is-disabled {
  pointer-events: none;
  opacity: 0.58;
}
.develop-thankyou-download-icon {
  font-size: 2rem;
  line-height: 1;
}
.develop-thankyou-download-icon-wrap {
  width: 140px;
  height: 120px;
  display: grid;
  place-items: center;
}
.develop-thankyou-download-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(11, 130, 212, 0.25);
  background: #ffffff;
}
.develop-thankyou-download-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.develop-template-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.develop-template-body-copy {
  padding: 1.1rem;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.78);
}
.develop-template-body-copy h3 {
  font-size: 1.5rem;
}
.develop-template-side-image {
  min-height: 0;
  padding: 1rem;
}
.develop-landing-editable {
  cursor: pointer;
  transition:
    box-shadow 140ms ease,
    outline-color 140ms ease,
    transform 140ms ease;
  outline: 2px dashed transparent;
  outline-offset: 3px;
}
.develop-landing-editable:hover {
  outline-color: rgba(11, 130, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 130, 212, 0.12);
}
.develop-landing-editing-active {
  outline-color: rgba(11, 130, 212, 0.88);
  box-shadow: 0 0 0 4px rgba(11, 130, 212, 0.16);
}
.develop-inline-hidden-target {
  display: none !important;
}
.develop-inline-textarea-wrap {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0 0.5rem;
}
.develop-inline-text-controls {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 12px;
  background: rgba(246, 251, 255, 0.96);
}
.develop-inline-text-controls-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #31597d;
}
.develop-inline-fontsize-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.develop-inline-fontsize-row button {
  width: auto;
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  font-weight: 800;
}
.develop-inline-fontsize-label {
  min-width: 8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f4d73;
  text-align: center;
}
.develop-inline-fontsize-hint {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #5d7891;
}
.develop-inline-textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 79, 143, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #183d60;
  font: inherit;
  line-height: 1.45;
}
.develop-inline-textarea-close {
  width: auto;
  justify-self: end;
}
.develop-inline-image-editor-target {
  padding: 0.8rem;
  gap: 0.55rem;
  display: grid;
  align-content: center;
}
.develop-inline-image-select {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}
.develop-selector-filter-wrap {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(15, 79, 143, 0.12);
  border-radius: 12px;
  background: #f7fbff;
}
.develop-inline-image-select button {
  width: auto;
  justify-self: end;
}
.develop-inline-editor {
  margin: 0.6rem 0 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(15, 79, 143, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 33, 66, 0.08);
  width: 100%;
  max-width: 420px;
  flex-basis: 100%;
  grid-column: 1 / -1;
}
.develop-inline-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.develop-inline-editor-header button {
  width: auto;
}
.develop-inline-editor-body {
  display: grid;
  gap: 0.65rem;
}
.develop-inline-editor-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.develop-inline-editor-field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #20496d;
}
.develop-inline-asset-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
}
.develop-inline-asset-nav button {
  width: auto;
  min-width: 0;
  padding: 0.45rem 0.65rem;
}
.develop-inline-asset-status {
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px dashed rgba(15, 79, 143, 0.18);
  border-radius: 10px;
  background: rgba(247, 251, 255, 0.76);
  color: #3b5d7b;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-self: stretch;
}
.develop-inline-asset-preview {
  min-height: 92px;
  padding: 0.45rem;
  border: 1px solid rgba(15, 79, 143, 0.14);
  border-radius: 10px;
  background: #f7fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a607f;
  text-align: center;
}
.develop-inline-asset-preview img {
  max-width: 100%;
  max-height: 120px;
  display: block;
  object-fit: contain;
}
.develop-modules-studio-form {
  --modules-label-col: 190px;
  --modules-row-gap: 0.9rem;
  gap: 0.9rem;
}
.develop-modules-studio-intro {
  display: grid;
  gap: 0.7rem;
}
.develop-modules-studio-row {
  display: grid;
  grid-template-columns: var(--modules-label-col) minmax(0, 1fr);
  gap: var(--modules-row-gap);
  align-items: center;
}
.develop-modules-studio-row > :not(span) {
  width: min(760px, 100%);
  max-width: 760px;
  justify-self: start;
}
.develop-modules-studio-row > span {
  font-weight: 700;
  color: #1f2f44;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}
.develop-modules-studio-row:has(textarea),
.develop-modules-studio-row:has(.develop-richtext-editor),
.develop-modules-studio-row:has(.develop-inline-asset-preview) {
  align-items: start;
}
.develop-modules-studio-row:has(textarea) > span,
.develop-modules-studio-row:has(.develop-richtext-editor) > span,
.develop-modules-studio-row:has(.develop-inline-asset-preview) > span {
  padding-top: 0.75rem;
}
#developModulesTypeHelp {
  margin-left: calc(var(--modules-label-col) + var(--modules-row-gap));
  color: #365271;
}
#developModulesSettingsFields {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
#developModulesForm input[type=text],
#developModulesForm input[type=number],
#developModulesForm input[type=url],
#developModulesForm input[type=color],
#developModulesForm select,
#developModulesForm textarea,
#developModulesForm .develop-richtext-editor,
#developModulesForm .develop-inline-asset-status,
#developModulesForm .develop-inline-asset-preview {
  border: 1px solid #444;
  background: #fff;
  box-shadow: none;
}
#developModulesForm input[type=color] {
  min-height: 46px;
  width: 84px;
  max-width: 84px;
}
#developModulesForm .develop-richtext-toolbar {
  margin-bottom: 0.35rem;
}
#developModulesForm .develop-inline-asset-status {
  border-style: solid;
  color: #243b55;
}
#developModulesForm .develop-inline-asset-preview {
  border-color: #999;
  background: #f7fbff;
}
#developModulesForm .develop-richtext-editor,
#developModulesForm textarea {
  max-width: 760px;
}
#developModulesForm .develop-inline-asset-nav,
#developModulesForm .develop-inline-asset-preview,
#developModulesForm .develop-inline-asset-status {
  max-width: 760px;
}
#developModulesForm .develop-inline-asset-nav button,
#developModulesForm .develop-richtext-tool {
  border: 1px solid #444;
}
.develop-modules-studio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: calc(var(--modules-label-col) + var(--modules-row-gap));
  width: min(760px, 100%);
  max-width: 760px;
}
.develop-modules-studio-actions button {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
.develop-modules-studio-actions button[type=submit] {
  width: 100%;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
@media (max-width: 900px) {
  .develop-modules-studio-row {
    grid-template-columns: 1fr;
  }
  .develop-modules-studio-row > span {
    justify-self: start;
    text-align: left;
    padding-top: 0;
  }
  #developModulesTypeHelp,
  .develop-modules-studio-actions {
    margin-left: 0;
  }
}
.develop-visual-editor-panel-wrap {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 79, 143, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #f8fcff 0%,
      #eef7ff 100%);
}
.develop-visual-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.develop-visual-editor-card {
  padding: 0.9rem;
  border: 1px solid rgba(15, 79, 143, 0.18);
  border-radius: 12px;
  background: #ffffff;
}
.develop-visual-editor-card h4 {
  margin: 0;
}
.develop-form-config-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 0.6rem;
}
.develop-form-builder-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  gap: 1rem;
  align-items: start;
}
.develop-form-editor-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 126, 208, 0.2);
  border-radius: 16px;
  background: rgba(247, 252, 255, 0.92);
}
.develop-form-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(15, 79, 143, 0.18);
  border-radius: 10px;
  background: #f7fbff;
}
.develop-form-config-label {
  font-weight: 700;
}
.develop-color-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 79, 143, 0.18);
  border-radius: 10px;
  background: #f7fbff;
}
.develop-color-control-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.develop-color-control input[type=color] {
  width: 64px;
  min-width: 64px;
  height: 42px;
  padding: 0.2rem;
  margin: 0;
  cursor: pointer;
}
.develop-color-control-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 55, 96, 0.35);
  background:
    conic-gradient(
      #ef4444 0deg,
      #f59e0b 60deg,
      #eab308 120deg,
      #22c55e 180deg,
      #06b6d4 240deg,
      #3b82f6 300deg,
      #ef4444 360deg);
  display: inline-block;
}
.develop-form-preview {
  margin-top: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5fbff 100%);
  box-shadow: 0 10px 22px rgba(7, 33, 66, 0.06);
}
.develop-form-preview h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.5rem;
}
.develop-email-template-modal {
  max-width: 760px;
}
.develop-email-template-modal-body {
  background:
    linear-gradient(
      180deg,
      #f4f9ff 0%,
      #ecf5ff 100%);
}
.develop-email-template-preview {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(15, 79, 143, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 33, 66, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}
.develop-email-template-preview-meta {
  margin: 0 0 1rem 0;
  font-size: 0.96rem;
  color: #26435c;
}
.develop-email-template-preview h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.7rem;
  line-height: 1.2;
}
.develop-email-template-preview p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #1d3550;
  word-wrap: break-word;
}
.develop-email-template-preview button {
  width: auto;
  max-width: 100%;
}
.develop-email-template-image-wrap {
  margin: 0.9rem 0;
  width: 100%;
  max-width: 100%;
}
.develop-email-template-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(15, 79, 143, 0.16);
  box-sizing: border-box;
}
.develop-email-template-image-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.9rem 0;
  border: 1px dashed rgba(15, 79, 143, 0.3);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #f3f9ff 0%,
      #e3f0ff 100%);
  color: #36506a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-sizing: border-box;
}
.develop-form-save-wrap {
  margin: 3.6rem auto 0;
  max-width: 560px;
}
.develop-visual-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.7rem 0;
}
.develop-visual-toolbar label {
  font-weight: 600;
  margin: 0;
}
.develop-visual-toolbar select {
  width: auto;
  min-width: 170px;
}
.develop-themes-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  padding: 0.8rem;
  margin-bottom: 1rem;
}
.develop-themes-card h3 {
  margin-top: 0;
}
.develop-themes-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 1fr) auto auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.develop-themes-toolbar label {
  margin: 0;
  white-space: nowrap;
}
.develop-themes-toolbar button {
  width: auto;
  min-width: 0;
}
.develop-themes-status {
  margin: 0 0 0.8rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}
.develop-theme-table-thumb {
  vertical-align: middle;
  min-width: 88px;
  width: 88px;
}
.develop-theme-table-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-container);
  border: 1px solid var(--border-light);
  margin: 0 auto;
}
.develop-theme-table-thumb-empty {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: var(--radius-container);
  border: 1px dashed var(--border);
  color: var(--subtext);
  font-size: 0.8rem;
  background: var(--bg-surface);
}
.develop-themes-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
  gap: 0.8rem;
}
.develop-themes-side-stack {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.develop-themes-assets-card {
  min-height: 100%;
}
.develop-themes-stack {
  display: grid;
  gap: 0.65rem;
}
.develop-themes-stack .form-row {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 0.55rem;
}
.develop-themes-stack .form-row.develop-theme-asset-row {
  grid-template-columns: 110px minmax(0, 1fr);
}
.develop-themes-stack .form-row label {
  margin: 0;
}
.develop-theme-asset-field {
  display: grid;
  gap: 0.45rem;
}
.develop-theme-asset-picker-btn {
  width: 100%;
  justify-self: stretch;
  min-width: 0;
}
.develop-theme-asset-preview {
  min-height: 74px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  padding: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--subtext);
}
.develop-theme-asset-preview img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-container);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}
.develop-theme-asset-preview-text {
  display: grid;
  gap: 0.15rem;
}
.develop-theme-asset-preview-text strong {
  color: var(--text);
}
.develop-themes-preview-host {
  margin-top: 0.2rem;
}
.develop-themes-preview-frame {
  padding: 1.2rem;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(15, 79, 143, 0.18);
}
.develop-themes-preview-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.1rem;
  box-shadow: 0 14px 34px rgba(7, 33, 66, 0.14);
}
.develop-themes-preview-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.develop-themes-preview-card h4 {
  margin: 0.45rem 0;
  font-size: 2rem;
}
.develop-themes-preview-card p {
  margin: 0.35rem 0 0.85rem 0;
  font-size: 1rem;
}
.develop-themes-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.develop-themes-preview-brand {
  display: grid;
  gap: 0.5rem;
}
.develop-themes-preview-logo-wide {
  max-width: min(340px, 100%);
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.develop-themes-preview-logo-square {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 79, 143, 0.16);
  padding: 0.35rem;
}
.develop-themes-preview-logo-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}
.develop-themes-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1.2rem;
  align-items: center;
}
.develop-themes-preview-copy {
  display: grid;
  gap: 0.65rem;
}
.develop-themes-preview-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.develop-themes-preview-feature {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(15, 79, 143, 0.18);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
}
.develop-themes-preview-feature img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.develop-themes-preview-feature-placeholder {
  color: #5a6f84;
  font-weight: 700;
}
.develop-themes-preview-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.develop-themes-preview-module {
  padding: 0.95rem;
  border: 1px solid rgba(15, 79, 143, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 0.45rem;
}
.develop-themes-preview-module h5,
.develop-themes-preview-body-copy h5 {
  margin: 0;
  font-size: 1.15rem;
}
.develop-themes-preview-module p,
.develop-themes-preview-body-copy p {
  margin: 0;
}
.develop-themes-preview-module-subheading {
  color: #35597a;
  font-weight: 700;
}
.develop-themes-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 1rem;
  margin-top: 1rem;
}
.develop-themes-preview-body-copy {
  padding: 1rem;
  border: 1px solid rgba(15, 79, 143, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 0.55rem;
}
.develop-themes-preview-body-side {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
}
.develop-themes-preview-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.develop-themes-preview-actions button {
  width: auto;
  min-width: 120px;
}
@media (max-width: 980px) {
  .develop-themes-preview-hero,
  .develop-themes-preview-body,
  .develop-themes-preview-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}
.develop-theme-palette-cell {
  display: grid;
  gap: 0.35rem;
}
.develop-theme-palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #24415d;
  font-weight: 600;
}
.develop-theme-palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 143, 0.24);
  display: inline-block;
}
.develop-theme-style-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #24415d;
  font-weight: 600;
}
.develop-theme-style-glyph {
  width: 20px;
  height: 20px;
  border-style: solid;
  border-color: #24415d;
  background: rgba(255, 255, 255, 0.9);
  display: inline-block;
  flex: 0 0 auto;
}
.develop-themes-plan {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.c-modal__dialog.develop-theme-picker-modal {
  width: min(1880px, 98vw);
  max-width: min(1880px, 98vw);
}
.c-modal__backdrop.develop-module-image-picker-backdrop {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  background: transparent;
  z-index: 10040;
  pointer-events: none;
}
.c-modal__backdrop.develop-module-image-picker-backdrop .c-modal__dialog {
  pointer-events: auto;
}
.c-modal__dialog.develop-theme-picker-modal.develop-module-image-picker-modal {
  width: min(1120px, calc(100vw - 2.4rem));
  max-width: min(1120px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 2.4rem);
  box-shadow: 0 24px 64px rgba(15, 55, 90, 0.28);
}
.c-modal__backdrop.develop-nested-modal-backdrop {
  z-index: 10040;
}
.c-modal__backdrop.develop-nested-modal-backdrop--transparent {
  background: transparent;
}
.c-modal__backdrop.develop-nested-modal-backdrop--upper-right {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  pointer-events: none;
}
.c-modal__backdrop.develop-nested-modal-backdrop--upper-right .c-modal__dialog {
  pointer-events: auto;
}
.c-modal__dialog.develop-nested-modal-dialog--upper-right {
  width: min(1120px, calc(100vw - 2.4rem));
  max-width: min(1120px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 2.4rem);
  box-shadow: 0 24px 64px rgba(15, 55, 90, 0.28);
}
.c-modal__dialog.develop-theme-picker-modal .c-modal__body {
  padding: 16px 18px 18px;
}
.develop-theme-picker-body {
  display: grid;
  gap: 0.9rem;
}
.develop-theme-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(170px, 0.75fr)) auto auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.develop-theme-picker-toolbar input,
.develop-theme-picker-toolbar select {
  margin: 0;
}
.develop-theme-picker-result-count {
  min-width: 110px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3f5872;
}
.develop-theme-picker-upload {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.develop-theme-picker-grid {
  display: grid;
  gap: 0.8rem;
}
.develop-theme-picker-group {
  display: grid;
  gap: 0.6rem;
}
.develop-theme-picker-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 0.2rem;
  color: #27445f;
}
.develop-theme-picker-group-heading strong {
  color: #123d67;
}
.develop-theme-picker-grid--wide,
.develop-theme-picker-grid--square,
.develop-theme-picker-grid--tall,
.develop-theme-picker-grid--unknown {
  display: grid;
  gap: 0.8rem;
}
.develop-theme-picker-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.develop-theme-picker-grid--square {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.develop-theme-picker-grid--tall {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.develop-theme-picker-grid--unknown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.develop-theme-picker-body .develop-theme-picker-grid {
  max-height: min(74vh, 980px);
  overflow: auto;
  padding-right: 0.35rem;
}
.develop-theme-picker-card {
  border: 1px solid rgba(15, 79, 143, 0.16);
  border-radius: 14px;
  background: #fff;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.develop-theme-picker-card:hover,
.develop-theme-picker-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11, 130, 212, 0.5);
  box-shadow: 0 10px 24px rgba(7, 33, 66, 0.08);
}
.develop-theme-picker-card.is-selected {
  border-color: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.15);
}
.develop-theme-picker-card-image-btn {
  width: 100%;
  padding: 0.45rem;
  border: 1px solid rgba(15, 79, 143, 0.12);
  border-radius: 12px;
  background: #f7fbff;
  cursor: zoom-in;
  display: grid;
  place-items: center;
}
.develop-theme-picker-card-image-btn img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f7fb;
  display: block;
}
.develop-theme-picker-card--wide .develop-theme-picker-card-image-btn {
  min-height: 150px;
}
.develop-theme-picker-card--square .develop-theme-picker-card-image-btn {
  min-height: 220px;
}
.develop-theme-picker-card--tall .develop-theme-picker-card-image-btn {
  min-height: 320px;
}
.develop-theme-picker-card--unknown .develop-theme-picker-card-image-btn {
  min-height: 200px;
}
.develop-theme-picker-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.develop-theme-picker-card-actions button {
  width: 100%;
  min-width: 0;
}
.develop-theme-picker-card-title {
  font-weight: 700;
  color: #123d67;
  font-size: 0.92rem;
  word-break: break-word;
}
.develop-theme-picker-card-meta {
  color: #5a6f84;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}
.c-modal__dialog.develop-theme-image-preview-modal {
  width: min(1480px, 96vw);
  max-width: min(1480px, 96vw);
}
.develop-theme-image-preview-modal-body {
  display: grid;
  gap: 0.8rem;
}
.develop-theme-image-preview-stage {
  display: grid;
  place-items: center;
  min-height: min(72vh, 920px);
  padding: 1rem;
  border: 1px solid rgba(15, 79, 143, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      #fbfdff 0%,
      #eef6ff 100%);
}
.develop-theme-image-preview-stage img {
  max-width: 100%;
  max-height: min(68vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.develop-theme-image-preview-meta {
  display: grid;
  gap: 0.2rem;
  color: #27445f;
}
.develop-theme-image-preview-meta strong {
  color: #123d67;
}
@media (max-width: 980px) {
  .develop-theme-picker-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .develop-theme-picker-result-count {
    text-align: left;
  }
  .develop-theme-picker-grid--wide,
  .develop-theme-picker-grid--square,
  .develop-theme-picker-grid--unknown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .develop-theme-picker-grid--tall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .develop-theme-picker-grid--wide,
  .develop-theme-picker-grid--square,
  .develop-theme-picker-grid--tall,
  .develop-theme-picker-grid--unknown {
    grid-template-columns: minmax(0, 1fr);
  }
}
.develop-save-notice {
  margin: 0.45rem 0 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-container);
  border: 1px solid #84cc16;
  background: #ecfccb;
  color: #365314;
  font-weight: 700;
  box-shadow: none;
}
.develop-form-required {
  color: #a61d24;
  font-weight: 700;
  margin-left: 0.25rem;
}
.asset-preview-meta-row:last-child {
  border-bottom: none;
}
.tiny-btn {
  width: auto;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  vertical-align: middle;
  border: 1px solid #b9c9d8;
  background: rgba(255, 255, 255, 0.92);
  color: #24486b;
  box-shadow: 0 2px 8px rgba(19, 44, 68, 0.08);
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}
.icon-btn-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.icon-btn-glyph svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  background: #ffffff;
  border-color: #8fb0cd;
  color: #173c61;
  box-shadow: 0 4px 14px rgba(19, 44, 68, 0.12);
}
.icon-btn-primary {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}
.icon-btn-danger {
  background: #9f1239;
  border-color: #9f1239;
  color: #ffffff;
}
.develop-pages-actions-heading {
  text-align: center;
}
.develop-pages-actions-cell {
  text-align: center;
  white-space: nowrap;
}
.develop-pages-actions-cell .icon-btn + .icon-btn {
  margin-left: 10px;
}
.contact-personas-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 150px;
  min-width: 150px;
}
.contact-personas-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 150px;
  min-width: 150px;
}
.contact-personas-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.messaging-topics-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.messaging-topics-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.messaging-topics-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.asset-categories-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.asset-categories-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.asset-categories-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.channels-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.channels-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.channels-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.contacts-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 170px;
  min-width: 170px;
  position: sticky;
  right: 0;
  background-color: var(--bg-card, #ffffff);
  z-index: 2;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}
.contacts-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 170px;
  min-width: 170px;
  position: sticky;
  right: 0;
  background-color: var(--bg-card, #ffffff);
  z-index: 1;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}
.contacts-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #d7e2f2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.contact-detail-row {
  display: contents;
}
.contact-detail-label,
.contact-detail-value {
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebf7;
}
.contact-detail-label {
  font-weight: 700;
  background: #f5f9ff;
}
.contact-detail-value {
  background: #fff;
  word-break: break-word;
}
.settings-projects-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 180px;
  min-width: 180px;
}
.settings-projects-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 180px;
  min-width: 180px;
}
.settings-projects-actions-cell .tiny-btn + .tiny-btn {
  margin-left: 8px;
}
.settings-project-active-btn,
.settings-project-active-btn:disabled {
  background: #1fc04b;
  border-color: #149238;
  color: #ffffff;
  opacity: 1;
}
.develop-agents-actions-heading {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.develop-agents-actions-cell {
  text-align: center;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.develop-agents-actions-cell .icon-btn + .icon-btn {
  margin-left: 8px;
}
.acquire-web-form .form-row label {
  font-weight: 700;
}
.acquire-web-hero-form {
  max-width: 1800px;
  margin: 0 auto 1.5rem;
  align-items: center;
}
.acquire-web-hero-row {
  width: 100%;
}
.labeled-hero-stack {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}
.labeled-hero-stack-label {
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
  margin-top: 1.05rem;
}
.labeled-hero-stack-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: min(100%, 630px);
  max-width: 630px;
  gap: 1rem;
}
.labeled-hero-stack-body > input,
.labeled-hero-stack-body > button {
  width: 100%;
}
.labeled-hero-stack-body > .acquire-web-hero-options-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 0.9rem;
}
.acquire-web-hero-row input {
  font-size: 1.3rem;
  padding: 1.05rem 1.2rem;
  border-radius: 24px;
}
.hero-action-input {
  border: 1px solid var(--border);
  background-color: var(--field-bg);
  transition: all 180ms ease;
}
.hero-action-input:hover,
.hero-action-input:focus {
  border-color: #2aa7fa;
  box-shadow: 0 0 0 2px #2aa7fa inset, 0 0 16px rgba(42, 167, 250, 0.45);
  background-color: #f6fbff;
  outline: none;
}
.acquire-web-hero-options-row {
  width: min(100%, 1260px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 50px 0;
}
.hanging-details > summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.hanging-details > summary::-webkit-details-marker {
  display: none;
}
.hanging-details > summary::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  margin-top: -4px;
  width: 0;
  height: 0;
  border-left: 5px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 150ms ease;
}
.hanging-details[open] > summary::before {
  transform: rotate(90deg);
}
.acquire-web-advanced-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 320px) minmax(260px, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.acquire-web-advanced-acquire h4 {
  margin: 0 0 0.75rem;
}
.acquire-web-advanced-acquire .checkbox-row {
  margin: 0 0 0.45rem;
}
.acquire-web-advanced-fields {
  display: grid;
  gap: 0.9rem;
}
.acquire-web-advanced-fields-tertiary textarea {
  min-height: 132px;
}
.acquire-web-harvest-btn {
  width: min(100%, 1260px);
  margin: 0 auto;
  display: block;
}
#directAcquireProgressWrap {
  width: min(100%, 1260px);
  margin: 0 auto;
}
#acquireWebPage .page-heading-actions > label,
#acquireWebPage .page-heading-actions > .direct-acquire-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.direct-acquire-inline-control {
  position: relative;
}
.direct-acquire-dropdown {
  position: relative;
}
.direct-acquire-dropdown summary {
  list-style: none;
  min-width: 220px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #8ab4f8;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.direct-acquire-dropdown summary::after {
  content: "\25be";
  margin-left: 10px;
  font-size: 0.9em;
}
.direct-acquire-dropdown summary::-webkit-details-marker {
  display: none;
}
.direct-acquire-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 320px;
  max-width: 420px;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  padding: 10px 12px;
}
.direct-acquire-dropdown-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  row-gap: 0;
  margin-bottom: 6px;
  line-height: 1.25;
  white-space: normal;
}
.direct-acquire-dropdown-option input {
  margin: 2px 0 0;
}
.direct-acquire-dropdown-option:last-child {
  margin-bottom: 0;
}
.acquire-web-expandable-card {
  padding: 0;
  overflow: hidden;
}
.acquire-web-expandable-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
}
.acquire-web-expandable-summary::-webkit-details-marker {
  display: none;
}
.acquire-web-expandable-summary::after {
  content: "\25be";
  font-size: 0.95rem;
  color: #1d4ed8;
}
.acquire-web-expandable-card[open] > .acquire-web-expandable-summary::after {
  transform: rotate(180deg);
}
.acquire-web-expandable-body {
  padding: 0 18px 18px;
  border-top: 1px solid #dbe7ff;
}
.acquire-web-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.direct-acquire-contact-label {
  font-weight: 700;
}
.direct-acquire-image-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.75rem;
}
.direct-acquire-image-card {
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.direct-acquire-image-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px 0;
}
.direct-acquire-image-link {
  display: block;
  aspect-ratio: 1 / 1;
  background: #eef4ff;
  margin: 8px 10px 0;
  border-radius: 8px;
  overflow: hidden;
}
.direct-acquire-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.direct-acquire-image-meta {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.direct-acquire-image-name {
  font-size: 0.83rem;
  line-height: 1.2;
  font-weight: 600;
  color: #10233f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.direct-acquire-image-meta select {
  width: 100%;
}
@media (max-width: 1600px) {
  .direct-acquire-image-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .acquire-web-results-grid {
    grid-template-columns: 1fr;
  }
  .direct-acquire-image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .direct-acquire-image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tiny-btn-blue {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}
#youtubeMinerRepositoryBody .contacts-filter-row th {
  vertical-align: top;
}
.youtube-repository-bulk-actions-cell {
  min-width: 350px;
  max-width: 450px;
}
.youtube-repository-bulk-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
}
#youtubeMinerRepositoryBody .youtube-repository-bulk-actions > button {
  width: auto;
  background: #000;
  border-color: #000;
  color: #fff;
  border-radius: 15px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}
#youtubeMinerRepositoryBody .youtube-repository-bulk-actions > button:hover,
#youtubeMinerRepositoryBody .youtube-repository-bulk-actions > button:focus-visible {
  background: #020202;
  border-color: #2aa7fa;
}
#youtubeMinerRepositoryBody .youtube-repository-bulk-actions > button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}
.promote-email-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}
.promote-email-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 1rem;
  background: var(--bg-surface);
}
.promote-email-preview-panel {
  background: var(--bg-page);
}
.promote-email-preview-meta {
  display: grid;
  gap: 0.25rem;
  margin: 0.4rem 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.promote-email-preview-meta-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.9rem;
}
.promote-email-preview-meta-row strong {
  color: #1b3957;
}
.promote-email-preview-canvas {
  border: 1px solid rgba(99, 123, 158, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #edf4fb 0%,
      #e8f1fb 100%);
  padding: 0.85rem;
  min-height: 420px;
  overflow: auto;
}
.promote-email-preview-email {
  width: min(640px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(31, 51, 72, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(16, 38, 58, 0.08);
}
.promote-email-preview-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(31, 51, 72, 0.12);
}
.promote-email-preview-body {
  padding: 1rem 1rem 1.15rem;
}
.promote-email-preview-template {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a738f;
}
.promote-email-preview-empty {
  margin: 0;
  color: #4c6175;
  font-size: 0.95rem;
}
.promote-email-preview-block {
  margin: 0 0 0.8rem;
}
.promote-email-preview-heading {
  margin: 0 0 0.55rem;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #13273a;
}
.promote-email-preview-subheading {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.25;
  color: #173752;
}
.promote-email-preview-copy {
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
  line-height: 1.52;
  color: #233c56;
  white-space: pre-wrap;
}
.promote-email-preview-caption {
  margin: 0 0 0.32rem;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6f869c;
}
.promote-email-preview-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.58rem 0.85rem;
  border-radius: 8px;
  background: #0a2741;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}
.engage-social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}
.engage-social-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-container);
  padding: 1rem;
  background: var(--bg-surface);
}
.engage-social-side-panel {
  background: var(--bg-page);
}
.engage-social-channel-bar,
.engage-social-meta-row,
.engage-social-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.engage-social-meta-row {
  align-items: flex-end;
}
.engage-social-action-row {
  margin-top: 0.65rem;
}
.engage-social-action-row button {
  min-width: 180px;
  width: auto;
}
.engage-social-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.engage-social-channel-name {
  font-size: 1.45rem;
  font-weight: 700;
}
.engage-social-schedule-field {
  flex: 1 1 auto;
}
.engage-social-counter-wrap {
  flex: 0 0 auto;
  min-width: 92px;
  text-align: right;
}
.engage-social-counter {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.84rem;
  font-weight: 600;
}
.engage-social-counter-over {
  background: #ffeef3;
  color: #ab2a55;
}
.engage-social-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}
.engage-social-stat-card {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.engage-social-stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}
.engage-social-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.engage-social-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.engage-social-section-title {
  margin: 0.95rem 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.engage-social-section-divider {
  margin: 0.85rem 0 0.35rem;
  border: 0;
  border-top: 1px solid var(--border-light);
}
.engage-social-platform-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.engage-social-platform-option input[type=checkbox] {
  width: auto;
  margin: 0;
  transform: translateY(-1px);
}
.engage-social-platform-name {
  font-weight: 800;
  color: var(--text);
}
.engage-social-campaign-image {
  margin: 0 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  padding: 0;
  overflow: hidden;
}
.engage-social-campaign-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  object-fit: cover;
}
.explore-filters-shell {
  margin: 1rem 0;
}
.explore-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.explore-filter-column {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7fbff 100%);
}
.explore-filter-column h4 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  line-height: 1.2;
}
#acquireAdvancedPanel {
  margin-top: 1rem;
}
#acquireAdvancedPanel > summary {
  cursor: pointer;
  font-weight: 600;
}
.tiny-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-ok {
  background: #e6f4ff;
  color: #13568a;
}
.status-warn {
  background: #f4f7fb;
  color: #f6c47f;
}
.status-bad {
  background: #ffeef3;
  color: #ff9bb2;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
#message {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
  min-height: 2.5rem;
}
@media (max-width: 720px) {
  .menu-root {
    flex-direction: column;
  }
  .menu-item {
    border-right: none;
    border-bottom: 1px solid #ffffff;
  }
  .submenu {
    position: static;
    border: none;
    position: relative;
    border-top: 1px solid #ffffff;
  }
  .grid-form {
    grid-template-columns: 1fr;
  }
  .contacts-top-grid {
    grid-template-columns: 1fr;
  }
  .social-grid-left {
    grid-template-columns: 1fr;
  }
  .filters.filters-contacts,
  .filters.filters-contacts-3x4 {
    grid-template-columns: 1fr;
  }
  .labeled-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .labeled-form > button[type=submit] {
    width: min(520px, 100%);
    min-width: min(400px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .asset-edit-layout {
    grid-template-columns: 1fr;
  }
  .asset-upload-grid {
    grid-template-columns: 1fr;
  }
  .promote-email-layout {
    grid-template-columns: 1fr;
  }
  .develop-themes-columns {
    grid-template-columns: 1fr;
  }
  .develop-themes-toolbar {
    grid-template-columns: 1fr;
  }
  .develop-themes-stack .form-row {
    grid-template-columns: 1fr;
  }
  .develop-landing-pages-grid {
    grid-template-columns: 1fr;
  }
  .develop-visual-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .develop-template-hero,
  .develop-template-content,
  .develop-template-feature-grid {
    grid-template-columns: 1fr;
  }
  .develop-form-builder-layout {
    grid-template-columns: 1fr;
  }
  .develop-template-library {
    grid-template-columns: 1fr;
  }
  .develop-template-logo-row {
    grid-template-columns: 1fr;
  }
  .develop-template-cta-row {
    flex-direction: column;
  }
  .develop-template-cta-row button {
    width: 100%;
    min-width: 0;
  }
  .engage-social-layout {
    grid-template-columns: 1fr;
  }
  .explore-filters-grid {
    grid-template-columns: 1fr;
  }
  .docs-platform-selector,
  .docs-platform-detail-layout {
    grid-template-columns: 1fr;
  }
  .engage-social-meta-row,
  .engage-social-action-row,
  .engage-social-channel-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .engage-social-action-row button {
    width: 100%;
  }
  .engage-social-counter-wrap {
    text-align: left;
  }
  .engage-social-stats-grid {
    grid-template-columns: 1fr;
  }
  .asset-preview-wrap {
    min-height: 280px;
    max-height: 55vh;
  }
  .asset-preview-media {
    max-height: calc(55vh - 100px);
  }
  .asset-preview-frame {
    height: calc(55vh - 110px);
    max-height: calc(55vh - 110px);
  }
  #messagingPage .cards {
    grid-template-columns: 1fr;
  }
}
.env-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.env-table th,
.env-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e8eaed);
}
.env-th-status {
  width: 32px;
}
.env-th-key {
  width: 40%;
}
.env-th-value {
  width: 40%;
}
.env-th-action {
  width: 120px;
  text-align: right;
}
.env-group-row td.env-group-label {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #5f6368);
  background: var(--bg-subtle, #f8f9fa);
  padding: 8px 12px;
}
.env-row:hover {
  background: var(--bg-hover, #f8f9fa);
}
.env-row--editing {
  background: var(--bg-subtle, #f8f9fa);
}
.env-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.env-dot--set {
  background: #34a853;
}
.env-dot--missing {
  background: #dadce0;
  border: 1px solid #bdc1c6;
}
.env-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted, #5f6368);
}
.env-key {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--text-primary, #202124);
}
.env-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #5f6368);
  margin-top: 2px;
}
.env-value {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  word-break: break-all;
}
.env-value--missing {
  color: var(--text-muted, #9aa0a6);
  font-style: italic;
}
.env-action-cell {
  text-align: right;
  white-space: nowrap;
}
.env-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid var(--border-focus, #1a73e8);
  border-radius: 4px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}
.env-loading {
  text-align: center;
  color: var(--text-muted, #9aa0a6);
  padding: 24px;
}
.env-footer {
  font-size: 12px;
  color: var(--text-muted, #5f6368);
  padding: 12px 16px;
  border-top: 1px solid var(--border, #e8eaed);
  line-height: 1.8;
}
.env-footer code {
  background: var(--bg-subtle, #f8f9fa);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
:root {
  --c-border: #e2e8f0;
  --c-radius: 6px;
  --c-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --c-shadow-md: 0 4px 16px rgba(0,0,0,0.14);
  --c-bg: #ffffff;
  --c-bg-subtle: #f8fafc;
  --c-text: #1a202c;
  --c-text-muted: #718096;
  --c-primary: #1a73e8;
  --c-primary-dark: #1557b0;
  --c-error: #e53e3e;
  --c-success: #38a169;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.crud-actions-cell {
  text-align: right;
  white-space: nowrap !important;
}
.c-grid {
  width: 100%;
  overflow-x: auto;
}
.c-grid__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.c-grid__filter-input {
  flex: 1 1 120px;
  min-width: 80px;
  max-width: 200px;
  padding: 5px 9px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  font-size: 12px;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.15s;
}
.c-grid__filter-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}
.c-grid__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--c-bg);
}
.c-grid__th {
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  user-select: none;
}
.c-grid__th--sortable {
  cursor: pointer;
}
.c-grid__th--sortable:hover {
  color: var(--c-primary);
}
.c-grid__td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: middle;
}
.c-grid__row:hover .c-grid__td {
  background: var(--c-bg-subtle);
}
.c-grid__row--selected .c-grid__td {
  background: rgba(26, 115, 232, 0.08);
}
.c-grid__toolbar {
  transition: opacity 0.2s;
}
.c-grid__toolbar.hidden {
  display: none !important;
}
.c-grid__row--clickable {
  cursor: pointer;
}
.c-grid__empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 13px;
}
.c-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.c-modal__dialog {
  background: var(--c-bg);
  border-radius: calc(var(--c-radius) * 1.5);
  box-shadow: var(--c-shadow-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.c-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.c-modal__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.c-modal__close {
  background: none;
  border: none;
  position: relative;
  font-size: 20px;
  color: var(--c-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--c-radius);
  transition: background 0.15s;
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}
.c-modal__close:hover {
  background: var(--c-bg-subtle);
  color: var(--c-text);
}
.c-modal__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
}
.c-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.c-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: calc(var(--c-radius) * 1.5);
  box-shadow: var(--c-shadow-sm);
  overflow: hidden;
}
.c-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
}
.c-card__title-wrap {
  flex: 1;
  min-width: 0;
}
.c-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-card__subtitle {
  font-size: 12px;
  color: var(--c-text-muted);
  margin: 2px 0 0;
}
.c-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.c-card__body {
  padding: 16px 18px;
  font-size: 13px;
  color: var(--c-text);
}
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.c-toast__container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.c-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow-md);
  font-size: 13px;
  font-weight: 500;
  width: 380px;
  max-width: calc(100vw - 48px);
  pointer-events: all;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #fff;
}
.c-toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.c-toast--success {
  background: var(--c-success);
}
.c-toast--error {
  background: var(--c-error);
}
.c-toast--info {
  background: var(--c-primary);
}
.c-toast__message {
  flex: 1;
  line-height: 1.4;
}
.c-toast__close {
  background: none;
  border: none;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.c-toast__close:hover {
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--c-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    opacity 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--c-bg-subtle);
}
.btn-danger {
  background: var(--c-error);
  color: #fff;
  border-color: var(--c-error);
}
.btn-danger:hover:not(:disabled) {
  background: #c53030;
  border-color: #c53030;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.api-actions-col {
  width: 150px;
  min-width: 150px;
}
.api-actions-cell {
  width: 150px;
  min-width: 150px;
  white-space: nowrap;
}
#apiConfigsTable tr.api-config-row-complete,
#apiChannelsTableBody tr.api-config-row-complete {
  background: #eaf8ec;
}
#apiConfigsTable tr.api-config-row-incomplete,
#apiChannelsTableBody tr.api-config-row-incomplete {
  background: #fdecef;
}
.api-stale-flags {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.api-stale-flag {
  font-size: 12px;
  line-height: 1.35;
}
.api-stale-flag-warning {
  color: #7a4a00;
}
.api-stale-flag-error {
  color: #8a1d2b;
  font-weight: 600;
}
.api-settings-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.api-provider-help {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-bg-subtle);
  padding: 12px;
}
.api-provider-help h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.api-provider-help p {
  margin: 0 0 8px;
  color: var(--c-text-soft);
}
.api-provider-help ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.api-provider-help .api-help-note {
  margin-top: 10px;
  font-size: 12px;
}
.api-provider-logo-link {
  display: inline-flex;
  width: 76px;
  height: 76px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 6px 0 8px;
}
.api-provider-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
@media (max-width: 960px) {
  .api-settings-form-grid {
    grid-template-columns: 1fr;
  }
}
.connection-ops-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.connection-ops-level-green {
  background: #e8f5ea;
  color: #17633a;
}
.connection-ops-level-yellow {
  background: #fff7dc;
  color: #8a6500;
}
.connection-ops-level-red {
  background: #fdecef;
  color: #8a1d2b;
}
.channel-gate-cell {
  text-align: center;
  width: 48px;
}
.channel-gate-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.channel-gate-icon-done {
  background: #ecfff2;
  color: #00b83f;
  border: 1px solid #00b83f;
}
.channel-gate-icon-todo {
  background: #fff2f5;
  color: #8a1d2b;
  border: 1px solid #d7738b;
}
.connection-ops-accordion {
  display: grid;
  gap: 10px;
}
.connection-ops-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f7fbff;
}
.connection-ops-section-body {
  padding: 0.65rem 0.75rem 0.75rem;
}
.connection-ops-section-body.hidden {
  display: none;
}
.api-setup-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 18px;
  margin-bottom: 20px;
}
#settingsApisPage .api-setup-top-grid > .docs-panel,
#settingsApisPage .api-setup-top-grid > #apiSettingsForm {
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
}
@media (max-width: 1180px) {
  .api-setup-top-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.youtube-acquire-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#youtubeVideoUrlInput {
  width: 52%;
  max-width: 640px;
  min-width: 320px;
}
#youtubeCategoryInput {
  width: auto;
  min-width: 220px;
}
.youtube-capture-checkbox {
  margin: 0;
  white-space: nowrap;
}
.youtube-video-details-section {
  scroll-margin-top: 90px;
}
.youtube-video-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.youtube-video-details-heading {
  font-size: 36px;
  line-height: 1.15;
  margin: 18px 0 8px;
}
.youtube-video-title-heading {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.youtube-video-title-heading a {
  color: inherit;
  text-decoration: underline;
}
.youtube-video-heading-dash.hidden {
  display: none;
}
.youtube-detail-block {
  margin: 0 0 14px;
}
.youtube-upper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.youtube-upper-main {
  min-width: 0;
}
.youtube-comment-submit-panel {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.youtube-comment-submit-panel h4 {
  margin-top: 0;
}
.youtube-comment-submit-panel textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  margin: 0 0 10px;
  min-height: 120px;
}
.youtube-comment-submit-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: #4b5563;
}
.youtube-comment-suggestions {
  margin: 6px 0 10px;
}
.youtube-comment-suggestions-status {
  min-height: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4b5563;
}
.youtube-comment-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
}
.youtube-comment-suggestion-item label {
  cursor: pointer;
  line-height: 1.35;
}
.youtube-actions-heading {
  text-align: center;
}
@media (max-width: 1200px) {
  .auth-landing {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
  }
  .messaging-content-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #messagingPage .messaging-category-map.messaging-content-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-launcher-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .develop-flow-map {
    min-height: 520px;
  }
  .develop-flow-node {
    width: 190px;
    min-height: 114px;
  }
  .develop-flow-node-upper-left {
    left: 10%;
  }
  .develop-flow-node-upper-right {
    right: 10%;
  }
  .develop-flow-node-lower-left {
    left: 17%;
  }
  .develop-flow-node-lower-right {
    right: 17%;
  }
}
@media (max-width: 800px) {
  .messaging-content-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.8rem;
  }
  #messagingPage .messaging-category-map.messaging-content-map {
    grid-template-columns: 1fr;
  }
  .develop-flow-map {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
  }
  .develop-flow-node {
    position: static;
    width: 100%;
    min-height: 0;
  }
  .develop-flow-node-top,
  .develop-flow-node-top:hover {
    transform: none;
  }
  .develop-visual-editor-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .messaging-content-map {
    grid-template-columns: 1fr;
  }
  .asset-launcher-map {
    grid-template-columns: 1fr;
  }
  .develop-flow-map {
    grid-template-columns: 1fr;
  }
}
.messaging-articles-top-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#youtubeRunsTable td:last-child {
  text-align: center;
  white-space: nowrap;
}
#acquireYoutubePage table thead tr:nth-child(2) th:last-child {
  text-align: center !important;
}
.youtube-detail-block h4 {
  margin: 0 0 6px;
  font-size: 26px;
}
.youtube-detail-text {
  white-space: pre-wrap;
  line-height: 1.45;
}
.youtube-transcript-text {
  white-space: pre-wrap;
}
.youtube-scroll-field {
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
}
.youtube-top-btn {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  z-index: 20;
}
@media (max-width: 980px) {
  .youtube-content-top-row {
    grid-template-columns: 1fr;
  }
  .youtube-content-filters-panel .youtube-miner-content-controls {
    grid-template-columns: 1fr;
  }
  .youtube-upper-grid {
    grid-template-columns: 1fr;
  }
  .develop-template-hero,
  .develop-template-content {
    grid-template-columns: 1fr;
  }
  .develop-form-builder-layout {
    grid-template-columns: 1fr;
  }
  .develop-template-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #messagingPage .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.youtube-comment-item {
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
}
.youtube-comment-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.youtube-comment-meta {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}
.comment-reply-row td:nth-child(4) {
  padding-left: 24px;
}
.comment-reply-row {
  background: #fafafa;
}
.deploy-test-banner {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 2px solid #7c2d12;
  border-radius: 8px;
  background: #fef08a;
  color: #7c2d12;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.youtube-miner-panel .accordion-header {
  padding-left: 28px;
}
.youtube-miner-panel {
  padding-left: 28px;
  margin: 14px 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mode-toggle {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}
.mode-toggle button {
  min-width: 120px;
  width: auto;
}
.youtube-miner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.youtube-miner-header h3 {
  margin: 0;
}
.youtube-miner-mode-panel {
  margin-top: 0;
}
.youtube-content-top-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}
.youtube-content-filters-panel,
.youtube-video-details-inline {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}
.youtube-content-filters-panel #youtubeCommentMinerSummary {
  margin-top: 10px;
}
.youtube-video-details-inline {
  margin: 0;
}
.youtube-video-details-inline .youtube-video-details-heading {
  margin: 0;
  font-size: 24px;
}
.youtube-video-details-inline .youtube-upper-grid {
  display: block;
  margin-top: 12px;
}
.youtube-video-details-inline .youtube-detail-block + .youtube-detail-block {
  margin-top: 14px;
}
.youtube-content-filters-panel .youtube-miner-content-controls .form-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.youtube-content-filters-panel .youtube-miner-content-controls .form-row label {
  margin: 0;
}
.youtube-content-filters-panel .youtube-miner-content-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
}
.youtube-content-media-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.youtube-edit-run-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.youtube-edit-run-media-panel {
  position: sticky;
  top: 12px;
}
.youtube-edit-run-layout #youtubeRunEditForm {
  margin: 0;
}
.youtube-video-media-frame {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #0f172a;
  overflow: hidden;
  min-height: 210px;
}
.youtube-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtube-video-player {
  border: 0;
}
.youtube-video-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 18px;
  color: #cbd5e1;
  text-align: center;
}
.youtube-comments-scheduler-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(100px, 0.5fr) minmax(150px, 0.7fr) minmax(110px, 0.5fr) minmax(140px, 0.8fr);
  gap: 10px 14px;
  align-items: end;
}
.youtube-comments-scheduler-field {
  display: grid;
  gap: 6px;
  text-align: left;
}
.youtube-comments-scheduler-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f3f5a;
}
.youtube-comments-scheduler-field-wide {
  min-width: 0;
}
.youtube-comments-schedule-summary {
  margin-top: 8px;
  color: #3d556f;
  font-size: 0.92rem;
}
.youtube-comments-schedule-warning {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #b91c1c;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}
.youtube-comments-agent-queue {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #b8d7f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.youtube-comments-agent-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.youtube-comments-agent-queue-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.youtube-comments-agent-queue-empty {
  padding: 10px 12px;
  border: 1px dashed #b8d7f0;
  border-radius: 8px;
  color: #3d556f;
  background: rgba(255, 255, 255, 0.7);
}
.youtube-comments-agent-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #b8d7f0;
  border-radius: 8px;
  background: #fff;
}
.youtube-comments-agent-card.is-current {
  border-color: #0b82d4;
  box-shadow: 0 0 0 2px rgba(11, 130, 212, 0.12);
}
.youtube-comments-agent-card.is-due {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12);
}
.youtube-comments-agent-card.is-error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}
.youtube-comments-agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.youtube-comments-agent-card-title {
  font-weight: 700;
  color: #12263a;
}
.youtube-comments-agent-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 12px;
  font-size: 0.92rem;
  color: #30475d;
}
.youtube-comments-agent-card-note {
  font-size: 0.92rem;
  color: #3d556f;
}
.youtube-comments-agent-card-note.is-error {
  color: #b42318;
  font-weight: 700;
}
.youtube-comments-agent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #dbeafe;
  color: #1d4ed8;
}
.youtube-comments-agent-badge.is-due {
  background: #ffedd5;
  color: #c2410c;
}
.youtube-comments-agent-badge.is-completed {
  background: #dcfce7;
  color: #166534;
}
.youtube-comments-agent-badge.is-disabled {
  background: #e5e7eb;
  color: #4b5563;
}
.youtube-comments-agent-badge.is-error {
  background: #fee2e2;
  color: #b91c1c;
}
@media (max-width: 960px) {
  .youtube-comments-scheduler-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .youtube-edit-run-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .youtube-edit-run-media-panel {
    position: static;
  }
}
.youtube-miner-collapsible {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 10px;
  overflow: visible;
}
.youtube-miner-section-badge {
  position: absolute;
  left: -24px;
  top: 0;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.youtube-miner-section-badge[data-step-index="1"] {
  background: #dc2626;
}
.youtube-miner-section-badge[data-step-index="2"] {
  background: #eab308;
}
.youtube-miner-section-badge[data-step-index="3"] {
  background: #16a34a;
}
.youtube-miner-section-badge[data-step-index="4"] {
  background: #2563eb;
}
.youtube-miner-section-badge[data-step-index="5"] {
  background: #7c3aed;
}
.youtube-miner-section-badge[data-step-index="6"] {
  background: #9333ea;
}
.youtube-miner-section-badge[data-step-index="7"] {
  background: #db2777;
}
.youtube-miner-collapsible-arrow::before {
  content: "\25be";
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
}
.youtube-miner-collapsible:not(.is-open) .youtube-miner-collapsible-arrow::before {
  content: "\25b8";
}
.youtube-miner-collapsible-body {
  padding: 10px 12px 12px;
}
.youtube-miner-collapsible:not(.is-open) .youtube-miner-collapsible-body {
  display: none;
}
.youtube-miner-mode-panel .form-row input[type=text],
.youtube-miner-mode-panel .form-row input[type=number],
.youtube-miner-mode-panel .form-row input[type=date],
.youtube-miner-mode-panel .form-row textarea,
.youtube-miner-mode-panel .form-row select {
  width: 100%;
}
.youtube-miner-training-label {
  min-width: 130px;
}
.youtube-miner-training-grid {
  display: grid;
  grid-template-columns: minmax(440px, 1.25fr) minmax(460px, 1fr);
  gap: 12px;
  align-items: start;
}
.youtube-miner-col-left,
.youtube-miner-col-right {
  min-width: 0;
}
.youtube-miner-target-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}
.youtube-miner-target-history-row select {
  width: 100%;
}
.youtube-miner-target-history-row button {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}
#youtubeCommentMinerForm.labeled-form .form-row {
  display: block;
}
#youtubeCommentMinerForm.labeled-form .form-row > label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.youtube-miner-col-right .form-row > label {
  white-space: nowrap;
}
.youtube-miner-col-right .form-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.youtube-miner-col-right .form-row > label {
  margin-bottom: 0;
}
.youtube-miner-filter-checks {
  justify-content: flex-start;
  gap: 18px;
  margin-top: 2px;
}
#youtubeCommentMinerForm .youtube-miner-filter-checks {
  display: flex;
  grid-column: 1 / -1;
}
#youtubeResearchForm .youtube-research-checkbox-row {
  display: block;
  grid-template-columns: 1fr;
  margin-bottom: 0.2rem;
}
#youtubeResearchForm .youtube-research-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
#youtubeResearchForm .youtube-research-checkbox-row input[type=checkbox] {
  width: auto;
  margin: 0;
}
#youtubeResearchForm .youtube-research-left-column .form-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
#youtubeResearchForm .youtube-research-left-column .form-row > label {
  white-space: nowrap;
}
#youtubeResearchForm .youtube-research-right-column .form-row {
  display: grid;
  grid-template-columns: 190px minmax(92px, 124px);
  gap: 0.75rem;
  align-items: center;
  justify-content: start;
}
#youtubeResearchForm .youtube-research-right-column .form-row > label {
  white-space: nowrap;
}
#youtubeResearchForm .youtube-research-right-column .form-row > input {
  width: 100%;
}
#youtubeMinerTargets {
  min-height: 110px;
  max-height: 130px;
}
#youtubeMinerCategoryConfigTable input[type=text],
#youtubeMinerCategoryConfigTable input[type=number] {
  width: 100%;
}
.youtube-miner-category-config {
  width: 100%;
  margin-bottom: 0;
}
.youtube-miner-category-config .table-wrap {
  width: 100%;
}
.youtube-miner-category-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.youtube-miner-category-toolbar-right {
  display: inline-flex;
  gap: 8px;
}
.youtube-miner-category-toolbar-right button {
  width: auto;
  min-width: 0;
}
.youtube-miner-category-table {
  width: 100%;
  table-layout: fixed;
}
.youtube-miner-category-table th:nth-child(1),
.youtube-miner-category-table td:nth-child(1) {
  width: 42px;
  text-align: center;
}
.youtube-miner-category-table th:nth-child(2),
.youtube-miner-category-table td:nth-child(2) {
  width: 12%;
}
.youtube-miner-category-table th:nth-child(3),
.youtube-miner-category-table td:nth-child(3) {
  width: 34%;
}
.youtube-miner-category-table th:nth-child(4),
.youtube-miner-category-table td:nth-child(4) {
  width: 14%;
}
.youtube-miner-category-table th:nth-child(5),
.youtube-miner-category-table td:nth-child(5) {
  width: 90px;
}
.youtube-miner-category-table th:nth-child(6),
.youtube-miner-category-table td:nth-child(6) {
  width: 22%;
}
.youtube-miner-category-table th:nth-child(7),
.youtube-miner-category-table td:nth-child(7) {
  width: 180px;
}
.youtube-miner-category-table td:last-child {
  white-space: nowrap;
}
.youtube-miner-category-table td:last-child button {
  width: auto;
  min-width: 0;
  margin-right: 6px;
}
.youtube-miner-category-table td:last-child button:last-child {
  margin-right: 0;
}
.youtube-miner-category-table input[type=checkbox] {
  width: auto;
  margin: 0;
}
.yt-miner-cat-rationale-editor {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.yt-miner-cat-rationale-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--c-border);
  background: #f8fafc;
}
.yt-miner-rte-btn {
  width: auto;
  min-width: 0;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}
.yt-miner-cat-rationale-rich {
  min-height: 160px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.yt-miner-cat-rationale-rich:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}
.youtube-miner-category-table td:nth-child(3) a {
  color: #2563eb;
  text-decoration: underline;
}
.youtube-comment-filter-row th {
  vertical-align: top;
  background:
    linear-gradient(
      180deg,
      #eef7ff 0%,
      #e3f0ff 100%);
  border-top: 1px solid rgba(12, 73, 132, 0.18);
  border-bottom: 1px solid rgba(12, 73, 132, 0.18);
}
.youtube-comment-filter-grid {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.15fr) minmax(120px, 0.55fr) minmax(150px, 0.7fr) minmax(320px, 1.9fr) minmax(170px, 0.8fr) minmax(180px, 1.05fr) minmax(180px, 1.05fr);
  gap: 0.75rem;
  align-items: center;
}
.youtube-comment-filter-row input,
.youtube-comment-filter-row select,
.youtube-comment-filter-grid input,
.youtube-comment-filter-grid select {
  width: 100%;
  box-sizing: border-box;
}
.youtube-comment-filter-row th:first-child,
#youtubeCommentMinerTable td:first-child {
  width: 42px;
  text-align: center;
}
.youtube-comment-bulk-actions-row {
  background: #ffffff;
}
.youtube-comment-bulk-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 0.75rem;
}
.youtube-comment-bulk-checkall {
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-comment-bulk-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.youtube-comment-bulk-actions > button {
  width: auto;
  background: #000;
  border-color: #000;
  color: #fff;
  border-radius: 15px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}
.youtube-comment-bulk-actions > button:hover,
.youtube-comment-bulk-actions > button:focus-visible {
  background: #020202;
  border-color: #2aa7fa;
}
.youtube-comment-bulk-actions > button:disabled {
  opacity: 1;
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  cursor: not-allowed;
}
#youtubeResearchRunsTable button {
  width: auto;
  background: #000;
  border-color: #000;
  color: #fff;
  border-radius: 15px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}
#youtubeResearchRunsTable button:hover,
#youtubeResearchRunsTable button:focus-visible {
  background: #020202;
  border-color: #2aa7fa;
}
.youtube-research-bulk-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.6rem 0;
}
.youtube-research-checkall {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-weight: 700;
}
.youtube-research-bulk-actions {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
}
.numeric-col {
  text-align: right;
}
#youtubeResearchRunsTable td:last-child {
  white-space: nowrap;
}
.youtube-research-hover-preview {
  position: fixed;
  z-index: 3000;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.youtube-research-hover-preview.hidden {
  display: none;
}
.youtube-research-hover-preview-card {
  background: #fff;
  border: 1px solid #111;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.youtube-research-hover-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d9e6f5;
}
.youtube-research-hover-preview-title,
.youtube-research-hover-preview-description {
  padding: 0.8rem 1rem;
}
.youtube-research-hover-preview-title {
  font-weight: 700;
  padding-bottom: 0.2rem;
}
.youtube-research-hover-preview-description {
  padding-top: 0;
  color: #243f63;
  white-space: pre-wrap;
}
.youtube-miner-comment-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.youtube-miner-comment-text {
  min-width: 0;
  white-space: pre-wrap;
}
.youtube-miner-comment-text.is-truncated {
  max-width: 360px;
}
.youtube-miner-feedback-cell,
.youtube-miner-reply-cell {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.youtube-miner-inline-action {
  width: auto;
  justify-self: start;
  background: #000;
  border-color: #000;
  color: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}
.youtube-miner-reply-text {
  max-width: 260px;
  white-space: pre-wrap;
}
.youtube-miner-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.youtube-comment-highlight {
  background: #fff3a3;
  color: inherit;
  padding: 0 0.08em;
  border-radius: 3px;
}
.youtube-miner-feedback-wrap {
  position: relative;
  align-self: flex-start;
}
.youtube-miner-feedback-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid #991b1b;
  border-radius: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.youtube-miner-feedback-icon.has-feedback {
  background: #16a34a;
  border-color: #166534;
}
.youtube-miner-row-reviewed {
  background: rgba(22, 163, 74, 0.06);
}
.youtube-miner-row-ignored {
  opacity: 0.72;
}
.youtube-miner-score-btn {
  min-width: 56px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 700;
}
.youtube-miner-feedback-pop {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10020;
  width: min(960px, 88vw);
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
  padding: 14px;
}
.youtube-miner-feedback-pop.hidden {
  display: none;
}
.youtube-miner-feedback-pop h4 {
  margin: 0 0 8px;
}
.youtube-miner-feedback-pop .form-row {
  margin-bottom: 10px;
}
.youtube-miner-feedback-pop .form-row > label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.youtube-miner-feedback-factor-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 8px;
  align-items: start;
}
.youtube-miner-feedback-factor-row > label {
  margin-bottom: 0;
  padding-top: 6px;
}
.youtube-miner-feedback-pop textarea {
  min-height: 210px;
}
.youtube-miner-feedback-pop select[multiple] {
  min-height: 150px;
}
.bluesky-training-feedback-comment {
  margin: 0 0 0.9rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #b9dfff;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #edf7ff 0%,
      #dff1ff 100%);
  font-weight: 700;
  color: #17324d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.youtube-miner-provide-replies-btn {
  margin-top: 8px;
}
.youtube-miner-provide-replies-btn.is-pending {
  background: #dc2626;
  border-color: #991b1b;
  color: #fff;
}
.youtube-miner-provide-replies-btn.is-ready {
  background: #0f9960;
  border-color: #0f9960;
  color: #fff;
}
.youtube-miner-ignore-btn {
  margin-top: 2px;
  background: #374151;
  border-color: #374151;
  color: #fff;
}
.youtube-miner-ignore-btn.is-ignored {
  background: #7f1d1d;
  border-color: #7f1d1d;
  color: #fff;
}
.youtube-miner-draft-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.youtube-miner-reply-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.youtube-miner-replies-modal {
  max-width: min(1120px, 96vw);
  max-height: 94vh;
}
.youtube-miner-replies-modal-body {
  padding: 16px 18px;
}
.youtube-miner-reply-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}
.youtube-miner-reply-offer textarea {
  min-height: 110px;
}
.youtube-miner-score-modal h4 {
  margin: 0 0 8px;
}
.youtube-miner-score-modal ul {
  margin: 0 0 12px 18px;
  padding: 0;
}
.youtube-miner-score-modal li {
  margin: 4px 0;
}
.youtube-miner-score-meta p {
  margin: 6px 0;
}
.youtube-miner-reply-meta {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto 180px auto minmax(220px, 1fr);
  gap: 6px 8px;
  align-items: center;
}
.youtube-miner-reply-mini-label {
  font-size: 0.78rem;
  color: #4b5d75;
  white-space: nowrap;
}
.youtube-miner-reply-rating {
  min-width: 180px;
}
.youtube-miner-reply-why {
  width: 100%;
  min-width: 220px;
}
.youtube-miner-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 1200px) {
  .youtube-miner-training-grid {
    grid-template-columns: 1fr;
  }
  .youtube-miner-col-right .form-row > label {
    white-space: normal;
  }
}
@media (max-width: 860px) {
  .youtube-miner-content-controls {
    grid-template-columns: 1fr;
  }
  .youtube-miner-category-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .youtube-miner-category-toolbar-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .youtube-miner-reply-meta {
    grid-template-columns: 1fr;
  }
}
.readonly-metric {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line, #c9d7ea);
  border-radius: 8px;
  background: #f4f8fd;
  font-weight: 700;
}
.field-help {
  margin: 10px 0 0;
  color: #50627a;
  font-size: 0.95rem;
}
.develop-richtext-tool {
  width: auto;
  display: inline-block;
  padding: 6px 10px;
  margin: 0 4px 4px 0;
  background-color: #f1f3f5;
  color: #333;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  min-height: auto;
  line-height: normal;
  box-shadow: none;
  min-width: 0;
}
.develop-richtext-tool:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
  box-shadow: none;
  transform: none;
}
.develop-richtext-editor.ProseMirror {
  min-height: 150px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 12px;
  background: white;
  color: black;
  margin-top: 8px;
}
.develop-richtext-editor.ProseMirror:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
button.section-settings-gear-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  align-self: center !important;
}
button.section-settings-gear-btn svg {
  stroke: currentColor;
  width: 22px;
  height: 22px;
  margin: 0;
  display: block;
}
.youtube-repository-bulk-actions button {
  background: #000;
  color: #fff;
  border-color: #000;
}
.youtube-repository-bulk-actions button:disabled {
  background: #000 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
.youtube-miner-stats-table {
  width: 100%;
  font-size: 0.95rem;
  border-collapse: collapse;
}
.youtube-miner-stats-table td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}
.youtube-miner-stats-table tr:last-child td {
  border-bottom: none;
}
.youtube-miner-stats-table td:last-child {
  font-weight: bold;
  text-align: right;
}
.form-grid-4col {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  gap: 0.75rem;
  align-items: center;
}
.form-grid-4col > label {
  text-align: right;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-grid-4col > input,
.form-grid-4col > select,
.form-grid-4col > textarea,
.form-grid-4col > button {
  width: 100%;
  margin: 0;
}
.populated-glow {
  box-shadow: 0 0 8px 1px rgba(46, 204, 113, 0.6) !important;
  border-color: rgba(46, 204, 113, 0.8) !important;
}
.empty-glow {
  box-shadow: 0 0 8px 1px rgba(231, 76, 60, 0.6) !important;
  border-color: rgba(231, 76, 60, 0.8) !important;
}
.youtube-target-thumbnail {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.youtube-target-thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #2aa7fa;
}
.youtube-target-thumbnail img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg);
}
.youtube-target-thumbnail-meta {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.youtube-target-thumbnail-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.youtube-target-thumbnail-url {
  font-size: 0.75rem;
  color: var(--meta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.youtube-research-summary-container {
  background-color: #eaf4ff;
  border: 2px solid #1a4f81;
  border-radius: 6px;
  padding: 1rem;
}
.youtube-research-summary-headline {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  color: #031122;
}
.dev-chat-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 200px);
  min-height: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: 1rem;
  min-width: 0;
  position: relative;
}
.dev-sessions-sidebar {
  background: var(--bg-body);
  border-right: 1px solid #c0c0c0;
  display: flex;
  flex-direction: column;
  padding-right: 20px;
}
.dev-friction-sidebar {
  width: 100%;
  height: 100%;
  background: var(--bg-body, #ffffff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.dev-friction-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  padding: 2rem;
  height: calc(100vh - 120px);
  align-items: flex-start;
}
.dev-friction-sidebar-wrapper {
  height: 100%;
}
.dev-friction-log-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dev-friction-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dev-friction-item.resolved {
  opacity: 0.7;
}
.dev-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.dev-session-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion-header {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: space-between;
  background-color: #111;
  color: #fff;
  border: none;
  position: relative;
  margin: 0 0 2px 0;
  padding: 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  overflow: hidden;
}
button.accordion-header {
  cursor: pointer;
}
.accordion-header:hover {
  background-color: #000;
}
.accordion-title {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
}
.accordion-toggle {
  width: auto;
  background: transparent;
  border: none;
  position: relative;
  color: inherit;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
}
button.accordion-toggle:hover,
button.accordion-toggle:focus,
button.accordion-toggle:active {
  background: transparent;
  box-shadow: none;
  outline: none;
}
.accordion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}
button.accordion-header[aria-expanded=false] .accordion-arrow {
  transform: rotate(-90deg);
}
button.accordion-toggle[aria-expanded=false] .accordion-arrow {
  transform: rotate(-90deg);
}
.develop-template-section-header-row .accordion-header {
  background: transparent;
  border-radius: 0;
}
.develop-template-section-header-row .accordion-header:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dev-session-item {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dev-session-item:hover,
.dev-session-item.active {
  background-color: var(--bg-hover);
  color: var(--accent);
  font-weight: 500;
}
.dev-chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.dev-chat-main-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.dev-chat-main-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.dev-chat-main-header h3:hover {
  opacity: 0.8;
}
.session-title-edit {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-dark);
  width: 100%;
  max-width: 400px;
  outline: none;
}
.session-title-edit:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}
.dev-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.dev-chat-log::after {
  content: "";
  display: block;
  min-height: 1.5rem;
  flex-shrink: 0;
}
.dev-chat-thread-block {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
  position: relative;
}
.dev-chat-thread-block:has(> .dev-chat-children:not(:empty))::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 23px;
  width: 2px;
  background-color: var(--border-light, #cbd5e1);
  z-index: 0;
}
.dev-chat-children {
  margin-left: 23px;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dev-chat-children > .dev-chat-thread-block > .dev-chat-bubble-wrapper {
  position: relative;
}
.dev-chat-children > .dev-chat-thread-block > .dev-chat-bubble-wrapper::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background-color: var(--border-light, #cbd5e1);
  z-index: 0;
}
.dev-chat-children > .dev-chat-thread-block:last-child {
  position: relative;
}
.dev-chat-children > .dev-chat-thread-block:last-child::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -1rem;
  left: -1.6rem;
  width: 6px;
  background-color: var(--bg-card, #ffffff);
  z-index: 1;
}
.dev-inline-reply-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.dev-chat-bubble-wrapper {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 1rem;
}
.dev-chat-bubble-wrapper.user {
  justify-content: flex-start;
}
.dev-chat-children .dev-chat-bubble-wrapper.user {
  justify-content: flex-start !important;
}
.dev-chat-bubble-wrapper.roger {
  justify-content: flex-start;
}
.dev-chat-bubble-wrapper.antigravity {
  justify-content: center;
}
.dev-chat-bubble-wrapper.angie {
  justify-content: flex-start;
}
.dev-chat-bubble-wrapper.archie {
  justify-content: flex-start;
}
.dev-chat-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--border-light);
  background-color: var(--bg-card);
  position: relative;
  z-index: 1;
}
.dev-chat-avatar.archie,
.dev-chat-avatar.antigravity {
  border-color: #22c55e !important;
}
.dev-chat-avatar.checkdev-alert {
  background-color: #fee2e2 !important;
  border: 4px solid #ef4444 !important;
  animation: pulse-halo-red 2s infinite !important;
}
@keyframes pulse-halo-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
.dev-chat-avatar.harvest-alert {
  background-color: #f3e8ff !important;
  border: 4px solid #a855f7 !important;
  animation: pulse-halo-purple 2s infinite !important;
}
@keyframes pulse-halo-purple {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  }
}
.dev-chat-content-col {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  min-width: 0;
}
.dev-chat-bubble {
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.dev-chat-bubble.user {
  background-color: #e0f2fe;
  color: var(--text-dark);
  border-top-left-radius: 4px;
}
.dev-chat-bubble.roger {
  background-color: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #831843;
  border-top-left-radius: 4px;
}
.dev-chat-bubble.antigravity {
  background-color: #fef9c3;
  color: #1a1a1a;
  border-radius: var(--radius-md);
  box-shadow: 0 0 10px rgba(251, 238, 165, 0.4);
}
.dev-chat-bubble.angie {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-top-left-radius: 4px;
}
.dev-chat-bubble.archie {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-top-left-radius: 4px;
}
.dev-chat-header {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  margin: -1rem -1.25rem 0.75rem -1.25rem;
  background-color: rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.dev-chat-bubble.user .dev-chat-header {
  border-top-left-radius: 4px;
  background-color: #bae6fd;
  border-bottom: 1px solid #7dd3fc;
}
.dev-chat-bubble.roger .dev-chat-header {
  border-top-left-radius: 4px;
  background-color: #fce7f3;
  border-bottom: 1px solid #f9a8d4;
}
.dev-chat-bubble.antigravity .dev-chat-header {
  background-color: #fde047;
  border-bottom: 1px solid #facc15;
}
.dev-chat-bubble.angie .dev-chat-header {
  border-top-left-radius: 4px;
  background-color: #fee2e2;
  border-bottom: 1px solid #fca5a5;
}
.dev-chat-bubble.archie .dev-chat-header {
  border-top-left-radius: 4px;
  background-color: #dcfce7;
  border-bottom: 1px solid #86efac;
}
.dev-chat-header strong {
  font-weight: 600;
}
.dev-copy-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}
.dev-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: auto;
}
.dev-chat-bubble.user .dev-copy-btn {
  border-color: rgba(0, 0, 0, 0.2);
}
.dev-copy-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}
.dev-code-actions {
  display: flex;
  gap: 6px;
}
.dev-code-save-btn,
.dev-code-actions .dev-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a0a0a0;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  width: 28px !important;
  height: 28px !important;
  min-width: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
}
.dev-code-save-btn:hover,
.dev-code-actions .dev-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.dev-copy-btn.main-copy {
  margin-left: 10px;
  width: 28px;
  height: 28px;
}
.dev-header-icon {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  color: #000;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.dev-header-icon:hover {
  color: #888;
  background: rgba(0, 0, 0, 0.05);
}
.dev-chat-main-header {
  display: flex;
  align-items: center;
}
.dev-chat-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  margin: 0.5rem 0;
}
.dev-chat-content code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}
.dev-chat-bubble.antigravity .dev-chat-content code {
  background: rgba(0, 0, 0, 0.06);
  color: #ab2c2c;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}
.dev-chat-content pre code,
.dev-chat-bubble.antigravity .dev-chat-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.dev-chat-input-area {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-body, #ffffff);
  gap: 1rem;
  align-items: flex-end;
  z-index: 10;
}
.dev-chat-input-area textarea {
  flex: 1;
  min-height: 50px;
  max-height: 200px;
  resize: vertical;
  background: var(--bg-input, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
}
.dev-chat-input-area textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.task-discussion-input {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 5px rgba(0, 122, 255, 0.2);
}
.dev-chat-bubble.loading {
  font-style: italic;
  opacity: 0.7;
}
.dev-chat-bubble.pending {
  font-style: italic;
  font-weight: bold;
  opacity: 0.9;
  border: 2px solid var(--accent-warning, #f59e0b);
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0% {
    border-color: rgba(245, 158, 11, 0.4);
  }
  50% {
    border-color: rgba(245, 158, 11, 1);
  }
  100% {
    border-color: rgba(245, 158, 11, 0.4);
  }
}
.dev-chat-input-area {
  flex-direction: column;
  align-items: stretch;
}
.dev-chat-attachment-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-hover);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
}
.dev-chat-attachment-preview.hidden {
  display: none;
}
.attachment-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent);
  font-weight: 500;
}
.attachment-clear-btn {
  background: transparent;
  border: none;
  position: relative;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 4px;
}
.attachment-clear-btn:hover {
  color: var(--text-primary);
}
.dev-chat-attachment img {
  border: 1px solid var(--border-light);
  background: var(--bg-body);
  transition: opacity 0.2s;
}
.dev-chat-attachment img:hover {
  opacity: 0.9;
}
.dev-chat-input-row button {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  margin: 0;
}
#rogerFileTriggerBtn {
  padding: 0.55rem 0.8rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dev-chat-input-row {
  align-items: center;
}
.dev-chat-content {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dev-search-match {
  background-color: #ffeb3b;
  color: #000;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ff9800;
}
.dev-chat-summary {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b5563;
  cursor: pointer;
}
.dev-chat-log.dev-collapsed-mode .dev-chat-content-col {
  max-width: 100%;
}
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble:not(.expanded) .dev-chat-content,
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble:not(.expanded) .dev-chat-attachment,
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble:not(.expanded) .dev-chat-header {
  display: none !important;
}
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble-wrapper:not(.expanded) {
  gap: 0.5rem;
}
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble:not(.expanded) {
  padding: 0.5rem 1rem;
}
.dev-chat-log.dev-collapsed-mode .dev-chat-bubble:not(.expanded) .dev-chat-summary {
  display: block;
}
.dev-chat-bubble .dev-chat-summary {
  display: none;
}
.dev-chat-bubble .dev-chat-summary:hover {
  opacity: 0.8;
}
.dev-expand-link {
  color: #2563eb;
  text-decoration: none;
  margin-left: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: monospace;
}
.dev-expand-link::after {
  content: "[+]";
}
.dev-chat-bubble.expanded .dev-expand-link::after,
.dev-chat-bubble-wrapper.expanded .dev-expand-link::after {
  content: "[-]";
}
.dev-persistent-overlay {
  background: white;
  border-top: 4px solid var(--accent-warning);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 100;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dev-persistent-overlay.hidden {
  display: none !important;
}
.dev-overlay-active #rogerChatInput {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
}
.dev-overlay-active #rogerChatForm .primary-btn,
.dev-overlay-active #rogerFileTriggerBtn {
  opacity: 0.5;
  pointer-events: none;
}
.dev-search-match.active-match {
  background-color: #ff9800;
  color: #fff;
  box-shadow: 0 0 0 2px #e65100;
}
.video-curation-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.video-curation-filters {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.video-curation-viewer-arena {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.viewer-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 480px;
}
.carousel-nav-btn {
  background: var(--bg-card, #f8f9fa);
  color: var(--text-dark, #333);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.carousel-nav-btn:hover {
  background: var(--bg-hover, #e2e8f0);
  transform: scale(1.1);
}
.viewer-main-screen {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  resize: horizontal;
}
.video-curation-tags-popup {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #ccc);
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1));
  padding: 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  min-width: 500px;
  max-height: 400px;
  overflow-y: auto;
}
.video-curation-tags-popup label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: var(--text-dark, #333);
  margin: 0;
}
.viewer-main-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
}
.viewer-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  text-align: center;
}
.video-metadata-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.video-metadata-bar h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
}
.meta-channel {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
}
.video-curation-thumbnail-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.video-curation-thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}
.video-curation-thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.curation-thumb {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  opacity: 0.6;
}
.curation-thumb:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}
.curation-thumb.active {
  border-color: #3b82f6;
  opacity: 1;
}
.video-curation-feedback-tools {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.score-selector select {
  font-weight: bold;
  color: var(--primary-color);
}
.video-curation-split-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.star-rating {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  cursor: pointer;
  font-size: 1.5rem;
}
.star-btn {
  color: #cbd5e1 !important;
  transition: color 0.2s, transform 0.1s;
  user-select: none;
}
.star-btn:hover,
.star-btn.yt-star-golden {
  color: #ffb700 !important;
  transform: scale(1.15);
}
@media (max-width: 900px) {
  .video-curation-split-layout {
    grid-template-columns: 1fr;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-content {
  background: var(--paper, #fff);
  padding: 2rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, #ccc);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.studio-collapsible-wrapper {
  margin-bottom: 2rem;
}
.studio-collapsible-header {
  background: var(--text, #000);
  color: #fff;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: border-radius 0.2s ease;
}
.studio-collapsible-header.collapsed {
  border-radius: var(--radius-md);
}
.studio-collapsible-header h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.studio-collapsible-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.studio-collapsible-header:not(.collapsed) .studio-collapsible-icon {
  transform: rotate(180deg);
}
.studio-collapsible-body {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.5rem;
  background: var(--bg-card);
}
.studio-collapsible-body.hidden {
  display: none;
}
.pod {
  display: flex;
  gap: 1.25rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s;
  cursor: pointer;
}
.pod:hover {
  background: rgba(39, 166, 255, 0.12);
  border-color: rgba(39, 166, 255, 0.4);
}
.pod-icon-col {
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.pod-content {
  flex: 1;
  min-width: 0;
}
.messaging-content-map {
  background: var(--bg-card);
}
.studio-collapsible-body.hidden {
  display: none;
}
.develop-template-accordion-summary {
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.8rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem;
}
.develop-template-accordion[open] .develop-template-accordion-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  border-bottom-width: 0;
}
.parameter-grid {
  display: grid;
  grid-template-columns: 1fr max-content;
  column-gap: 2rem;
  row-gap: 0.75rem;
  align-items: center;
  white-space: nowrap;
}
.parameter-grid label {
  margin: 0;
  text-align: right;
}
.parameter-grid input {
  width: 100px;
  text-align: right;
}
.dev-version-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.dev-version-link:hover {
  text-decoration-style: solid;
  color: var(--accent-hover);
}
.dev-chat-bubble {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.dev-chat-bubble.highlight-ping {
  animation: rogerHighlightPing 1.5s ease-out;
}
@keyframes rogerHighlightPing {
  0% {
    background-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.4);
    transform: scale(1.01);
  }
  50% {
    background-color: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    transform: scale(1.005);
  }
  100% {
    background-color: inherit;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    transform: scale(1);
  }
}
.task-accordion-header {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.task-accordion-header:hover {
  background-color: var(--bg-hover, rgba(0,0,0,0.05));
  opacity: 0.85;
}
body.dev-linking-mode {
  cursor: crosshair !important;
}
body.dev-linking-mode::before {
  content: "LINKING MODE: Select a task or message to link...";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: var(--accent-primary, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 999999;
  pointer-events: none;
  animation: pulseBg 2s infinite;
}
@keyframes pulseBg {
  0% {
    background-color: var(--accent-primary, #3b82f6);
  }
  50% {
    background-color: #2563eb;
  }
  100% {
    background-color: var(--accent-primary, #3b82f6);
  }
}
body.dev-linking-mode .dev-chat-bubble-wrapper,
body.dev-linking-mode .dev-session-item,
body.dev-linking-mode button[onclick^="App.devAgent.openTaskEditor"] {
  cursor: crosshair !important;
  transition: all 0.2s ease;
}
body.dev-linking-mode .dev-chat-bubble-wrapper:hover .dev-chat-bubble,
body.dev-linking-mode .dev-session-item:hover,
body.dev-linking-mode button[onclick^="App.devAgent.openTaskEditor"]:hover {
  outline: 2px dashed var(--accent-primary, #3b82f6) !important;
  background-color: rgba(59, 130, 246, 0.05) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
body.dev-linking-mode .dev-copy-btn[id^=linkChat_] {
  color: var(--accent-primary, #3b82f6);
  opacity: 1;
}
.kanban-board {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  height: calc(100vh - 150px);
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-body);
}
.kanban-column {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  max-height: 100%;
}
.kanban-column-header {
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-hover);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.kanban-count {
  background: var(--accent);
  color: #000;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
}
.kanban-column-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kanban-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card[data-status=backlog] {
  background: rgba(107, 114, 128, 0.05);
}
.kanban-card[data-status=todo] {
  background: rgba(59, 130, 246, 0.05);
}
.kanban-card[data-status=in_progress] {
  background: rgba(245, 158, 11, 0.05);
}
.kanban-card[data-status=review] {
  background: rgba(16, 185, 129, 0.05);
}
.kanban-card[data-status=completed] {
  background: rgba(34, 197, 94, 0.05);
}
.kanban-column-body.drag-over {
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-md);
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.kanban-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.kanban-priority {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.kanban-priority.critical {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}
.kanban-priority.high {
  background: #fef3c7;
  color: #f59e0b;
  border: 1px solid #fcd34d;
}
.kanban-priority.medium {
  background: #e0f2fe;
  color: #3b82f6;
  border: 1px solid #bae6fd;
}
.kanban-priority.low {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.kanban-assignee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-hover);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* src/css/main.css */
