@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Google+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --tc-font-admin: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --tc-font-screener: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --tc-font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

  --tc-blue-50: #eff6ff;
  --tc-blue-100: #dbeafe;
  --tc-blue-200: #bfdbfe;
  --tc-blue-300: #93c5fd;
  --tc-blue-400: #60a5fa;
  --tc-blue-500: #3b82f6;
  --tc-blue-600: #2563eb;
  --tc-blue-700: #1d4ed8;
  --tc-blue-800: #1e3a8a;

  --tc-slate-50: #f8fafc;
  --tc-slate-100: #f1f5f9;
  --tc-slate-200: #e2e8f0;
  --tc-slate-300: #cbd5e1;
  --tc-slate-500: #64748b;
  --tc-slate-700: #334155;
  --tc-slate-900: #0f172a;

  --tc-shell-950: #0e1929;
  --tc-shell-900: #0b1220;

  --tc-green-50: #f0fdf4;
  --tc-green-200: #bbf7d0;
  --tc-green-700: #15803d;

  --tc-amber-50: #fffbeb;
  --tc-amber-200: #fde68a;
  --tc-amber-700: #b45309;

  --tc-red-50: #fef2f2;
  --tc-red-200: #fecaca;
  --tc-red-700: #b91c1c;

  --tc-primary: var(--tc-blue-600);
  --tc-primary-strong: var(--tc-blue-700);
  --tc-text: var(--tc-slate-900);
  --tc-text-secondary: var(--tc-slate-700);
  --tc-text-muted: var(--tc-slate-500);
  --tc-bg-app: #f8faff;
  --tc-surface: #ffffff;
  --tc-border: var(--tc-slate-200);

  --tc-radius-xs: 6px;
  --tc-radius-sm: 8px;
  --tc-radius-md: 10px;
  --tc-radius-lg: 12px;
  --tc-radius-xl: 14px;
  --tc-radius-2xl: 16px;
  --tc-radius-pill: 999px;

  --tc-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --tc-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
  --tc-shadow-lift: 0 10px 22px rgba(37, 99, 235, 0.14);
  --tc-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#tc-root {
  font-family: var(--tc-font-admin);
  background: var(--tc-shell-950);
}

#tc-root .sidebar {
  background: var(--tc-surface);
  border-right: 1px solid var(--tc-border);
}

#tc-root .sidebar-section,
#tc-root .sidebar-list-box {
  border-color: var(--tc-border);
}

#tc-root .sidebar-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#tc-root .project-item {
  border-radius: var(--tc-radius-md);
  border: 1px solid var(--tc-border);
  background: var(--tc-surface);
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#tc-root .project-item:hover {
  background: var(--tc-slate-50);
  border-color: var(--tc-blue-200);
  box-shadow: var(--tc-shadow-sm);
}

#tc-root .project-item.active {
  background: var(--tc-blue-50);
  border-color: var(--tc-blue-300);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.12);
}

#tc-root .tc-btn {
  border-radius: var(--tc-radius-md);
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#tc-root .tc-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

#tc-root .tc-btn:focus-visible {
  outline: none;
  box-shadow: var(--tc-focus-ring);
}

#tc-root .btn-secondary {
  border-color: var(--tc-blue-200);
  color: var(--tc-blue-700);
}

#tc-root .btn-secondary:hover:not(:disabled) {
  border-color: var(--tc-blue-300);
  background: var(--tc-blue-50);
}

#tc-root .tc-input,
#tc-root .tc-select,
#tc-root textarea,
#tc-root input[type="text"],
#tc-root input[type="email"],
#tc-root input[type="number"],
#tc-root input[type="password"] {
  border-radius: var(--tc-radius-md);
  border-color: var(--tc-border);
  color: var(--tc-text);
  font-family: var(--tc-font-admin);
}

#tc-root .tc-input:focus,
#tc-root .tc-select:focus,
#tc-root textarea:focus,
#tc-root input[type="text"]:focus,
#tc-root input[type="email"]:focus,
#tc-root input[type="number"]:focus,
#tc-root input[type="password"]:focus {
  border-color: var(--tc-blue-400);
  box-shadow: var(--tc-focus-ring);
}

#tc-root .tab-btn,
#tc-root .settings-tab-btn,
#tc-root .embed-tab-btn {
  border-radius: var(--tc-radius-md);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#tc-root .tab-btn.active,
#tc-root .settings-tab-btn.active,
#tc-root .embed-tab-btn.active {
  background: var(--tc-blue-50);
  border-color: var(--tc-blue-300);
  color: var(--tc-blue-700);
}

#tc-root .dashboard-header-card,
#tc-root .dashboard-widget-card,
#tc-root .sidebar-list-box,
#tc-root .modal-content,
#tc-root .settings-modal {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow-sm);
}

#tc-root .modal-overlay {
  backdrop-filter: blur(2px);
}

#tc-root .beta-pill {
  border-radius: var(--tc-radius-pill);
}

#tc-root .status-pill.success,
#tc-root .pill-success {
  background: var(--tc-green-50);
  border-color: var(--tc-green-200);
  color: var(--tc-green-700);
}

#tc-root .status-pill.warning,
#tc-root .pill-warning {
  background: var(--tc-amber-50);
  border-color: var(--tc-amber-200);
  color: var(--tc-amber-700);
}

#tc-root .status-pill.error,
#tc-root .pill-error {
  background: var(--tc-red-50);
  border-color: var(--tc-red-200);
  color: var(--tc-red-700);
}

body,
.container,
.card,
.header,
.question,
.choice,
.option {
  font-family: var(--tc-font-screener);
}

body {
  color: var(--tc-text);
}

.card {
  border-radius: var(--tc-radius-xl);
  border: 1px solid var(--tc-border);
  box-shadow: var(--tc-shadow-soft);
}

.header {
  border-bottom: 1px solid var(--tc-border);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.choice,
.option {
  border-radius: var(--tc-radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.choice:hover,
.option:hover {
  border-color: var(--tc-blue-300);
  box-shadow: var(--tc-shadow-sm);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--tc-focus-ring);
}

.pwa-header,
.pwa-start-card,
.pwa-menu,
.pwa-drawer,
.pwa-modal {
  border-radius: var(--tc-radius-lg);
  border-color: var(--tc-border);
}

.pwa-header h1,
.pwa-start-title {
  letter-spacing: -0.01em;
}

/* Force standards over legacy inline styles in admin app templates */
#tc-root,
#tc-root button,
#tc-root input,
#tc-root select,
#tc-root textarea,
#tc-root label,
#tc-root div,
#tc-root span,
#tc-root p,
#tc-root h1,
#tc-root h2,
#tc-root h3,
#tc-root h4,
#tc-root h5,
#tc-root h6,
#tc-root small,
#tc-root strong,
#tc-root em,
#tc-root a,
#tc-root li {
  font-family: var(--tc-font-admin) !important;
}

#tc-root .fa-solid,
#tc-root .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
}

#tc-root .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

#tc-root .fa-solid {
  font-weight: 900 !important;
}

#tc-root .fa-regular {
  font-weight: 400 !important;
}

#tc-root {
  background: var(--tc-shell-950) !important;
}

#tc-root #view-app,
#tc-root .main,
#tc-root .main-content,
#tc-root .dashboard-content {
  background: var(--tc-bg-app) !important;
}

#tc-root .sidebar,
#tc-root .sidebar-rail,
#tc-root .sidebar-list-box,
#tc-root .sidebar-section {
  background: var(--tc-surface) !important;
  border-color: var(--tc-border) !important;
}

#tc-root .project-item {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-md) !important;
  color: var(--tc-text-secondary) !important;
}

#tc-root .project-item:hover {
  background: var(--tc-slate-50) !important;
  border-color: var(--tc-blue-200) !important;
  box-shadow: var(--tc-shadow-sm) !important;
}

#tc-root .project-item.active,
#tc-root .project-selected {
  background: var(--tc-blue-50) !important;
  border-color: var(--tc-blue-300) !important;
  color: var(--tc-blue-700) !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

#tc-root .dashboard-header-card,
#tc-root .dashboard-widget-card,
#tc-root .dashboard-card,
#tc-root .dashboard-range-card,
#tc-root .settings-modal,
#tc-root .modal-content,
#tc-root .tc-card {
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-lg) !important;
  background: var(--tc-surface) !important;
  box-shadow: var(--tc-shadow-sm) !important;
}

#tc-root .tc-btn,
#tc-root button.tc-btn,
#tc-root .btn,
#tc-root button.btn {
  border-radius: var(--tc-radius-md) !important;
  font-weight: 700 !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

#tc-root .tc-btn:hover:not(:disabled),
#tc-root .btn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
}

#tc-root .tc-btn.btn-secondary,
#tc-root .btn.btn-secondary {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-blue-200) !important;
  color: var(--tc-blue-700) !important;
}

#tc-root .tc-btn.btn-secondary:hover:not(:disabled),
#tc-root .btn.btn-secondary:hover:not(:disabled) {
  background: var(--tc-blue-50) !important;
  border-color: var(--tc-blue-300) !important;
}

#tc-root .tc-btn.btn-danger,
#tc-root .btn.btn-danger,
#tc-root .btn-danger {
  background: var(--tc-red-700) !important;
  border-color: var(--tc-red-700) !important;
  color: #fff !important;
}

#tc-root .tab-btn,
#tc-root .settings-tab-btn,
#tc-root .embed-tab-btn {
  border-radius: var(--tc-radius-md) !important;
}

#tc-root .tab-btn.active,
#tc-root .settings-tab-btn.active,
#tc-root .embed-tab-btn.active {
  background: var(--tc-blue-50) !important;
  border-color: var(--tc-blue-300) !important;
  color: var(--tc-blue-700) !important;
}

#tc-root .tc-input,
#tc-root .tc-select,
#tc-root input,
#tc-root select,
#tc-root textarea {
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-md) !important;
  color: var(--tc-text) !important;
  background: #fff !important;
}

#tc-root .tc-input:focus,
#tc-root .tc-select:focus,
#tc-root input:focus,
#tc-root select:focus,
#tc-root textarea:focus {
  border-color: var(--tc-blue-400) !important;
  box-shadow: var(--tc-focus-ring) !important;
}

#tc-root .status-pill,
#tc-root .beta-pill,
#tc-root .pill {
  border-radius: var(--tc-radius-pill) !important;
}

/* Match the current admin SPA DOM, not only the prototype kit markup. */
#tc-root .project-empty-state {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%) !important;
}

#tc-root .project-empty-card {
  max-width: 34rem !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08) !important;
}

#tc-root .project-empty-eyebrow,
#tc-root .project-empty-checklist-title,
#tc-root .config-column-header-title,
#tc-root .general-settings-card .general-section-title {
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

#tc-root .project-empty-checklist,
#tc-root .general-settings-card,
#tc-root .form-properties-inner,
#tc-root .q-card,
#tc-root .q-block,
#tc-root .branch-preview-panel {
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-lg) !important;
  background: var(--tc-surface) !important;
  box-shadow: var(--tc-shadow-sm) !important;
}

#tc-root .project-empty-checklist {
  background: #f8fbff !important;
}

#tc-root .project-empty-checklist-item {
  border-radius: var(--tc-radius-md) !important;
}

#tc-root .project-empty-checklist-item.is-pending {
  background: #ffffff !important;
  border: 1px solid var(--tc-border) !important;
}

#tc-root .project-empty-checklist-item.is-complete {
  background: var(--tc-green-50) !important;
  border: 1px solid var(--tc-green-200) !important;
  color: var(--tc-green-700) !important;
}

#tc-root .col-config,
#tc-root .col-preview {
  background: var(--tc-bg-app) !important;
}

#tc-root .config-column-header {
  border-color: var(--tc-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%) !important;
  box-shadow: var(--tc-shadow-sm) !important;
}

#tc-root .config-column-header-icon {
  border-radius: 12px !important;
}

#tc-root .general-settings-card {
  padding: 16px !important;
  border-radius: 16px !important;
}

#tc-root #questionnaire-forms-manager > div,
#tc-root #questionnaire-forms-manager .project-item,
#tc-root #questionnaire-forms-manager .sidebar-list-item {
  border-radius: var(--tc-radius-md) !important;
}

#tc-root .form-properties-inner {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px) !important;
}

#tc-root .inline-add-row,
#tc-root .block-insert-row {
  border: 1px dashed var(--tc-blue-200) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%) !important;
}

#tc-root .inline-add-row button,
#tc-root .block-insert-row button {
  color: var(--tc-blue-700) !important;
  font-weight: 700 !important;
}

#tc-root .inline-add-row .inline-add-block-btn {
  color: #4f46e5 !important;
}

#tc-root .q-card,
#tc-root .q-block,
#tc-root .q-block .block-field-card {
  border-radius: 18px !important;
  overflow: hidden !important;
}

#tc-root .q-card {
  padding: 18px !important;
}

#tc-root .q-header,
#tc-root .q-block-header {
  margin-bottom: 14px !important;
}

#tc-root .q-num,
#tc-root .block-field-count {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

#tc-root .q-num {
  min-width: 34px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: var(--tc-blue-700) !important;
}

#tc-root .q-type-pill,
#tc-root .block-repeat-badge,
#tc-root .branch-mini-edge-pill {
  border-radius: 999px !important;
}

#tc-root .q-type-pill {
  background: #f8fbff !important;
  border-color: #bfdbfe !important;
  color: var(--tc-blue-700) !important;
}

#tc-root .icon-btn {
  border-radius: 10px !important;
  border-color: var(--tc-border) !important;
  color: var(--tc-text-muted) !important;
  box-shadow: none !important;
}

#tc-root .icon-btn:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: var(--tc-blue-700) !important;
}

#tc-root .icon-btn.delete:hover {
  background: var(--tc-red-50) !important;
  border-color: var(--tc-red-200) !important;
  color: var(--tc-red-700) !important;
}

#tc-root .tc-textarea,
#tc-root .q-setting input,
#tc-root .q-setting select,
#tc-root .q-setting textarea {
  border-radius: 12px !important;
}

#tc-root .tc-textarea {
  min-height: 56px !important;
}

#tc-root .q-settings-grid,
#tc-root .q-card-collapsible-body {
  gap: 10px !important;
}

#tc-root .q-card-collapsible {
  border-radius: 12px !important;
}

#tc-root .q-card-collapsible.disqualify-wrap {
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%) !important;
}

#tc-root .q-card-collapsible.show-when-wrap {
  background: linear-gradient(180deg, #f8fdff 0%, #f0f9ff 100%) !important;
}

#tc-root .q-type-hint,
#tc-root .q-setting-hint,
#tc-root .general-hint,
#tc-root .project-empty-next {
  color: var(--tc-text-muted) !important;
}

#tc-root .q-block {
  border-color: #c7d2fe !important;
}

#tc-root .q-block-header {
  background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%) !important;
}

#tc-root .block-name-input {
  color: #1e1b4b !important;
}

#tc-root .block-repeat-badge.active {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

/* ========================================================================== */
/* TrialConnect UX Refresh v4 (2026-04-23)                                     */
/* ========================================================================== */

body.tc-admin-shell {
  --tc-primary: #7c3aed;
  --tc-primary-strong: #6d28d9;
  --tc-primary-gradient-start: #7c3aed;
  --tc-primary-gradient-end: #6d28d9;
  --tc-teal: #14b8a6;
  --tc-bg-dark: #eef2f8;
  --tc-foreground: #0f172a;
  --tc-text: #1f2f46;
  --tc-text-muted: #7b8ba5;
  --tc-border: #dbe3ef;
  --tc-border-dark: #c8d3e3;
  --tc-surface-muted: #f5f8fd;
  --tc-input-bg-dark: #f3f6fb;
  background: #eef2f8 !important;
  color: #1f2f46 !important;
  padding: 8px !important;
}

body.tc-admin-shell #tc-root {
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid #d6deeb !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1) !important;
  background: #eef2f8 !important;
  height: calc(100vh - 16px) !important;
}

body.tc-admin-shell #view-app {
  background: #eef2f8 !important;
}

body.tc-admin-shell #tc-root .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #dbe3ef !important;
  padding: 14px !important;
  gap: 8px !important;
}

body.tc-admin-shell #tc-root .account-header {
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
}

body.tc-admin-shell #tc-root .sidebar-user-display {
  border: 1px solid #dde6f3 !important;
  background: #f8fbff !important;
  border-radius: 12px !important;
  transition: background 0.18s ease, border-color 0.18s ease !important;
}

body.tc-admin-shell #tc-root .sidebar-user-display:hover {
  background: #f2f7ff !important;
  border-color: #c7d7ee !important;
}

body.tc-admin-shell #tc-root .sidebar-plan-link,
body.tc-admin-shell #tc-root .sys-admin-btn,
body.tc-admin-shell #tc-root .sidebar-signout-link {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  color: #51627d !important;
  transition: 0.18s ease !important;
}

body.tc-admin-shell #tc-root .sidebar-plan-link:hover,
body.tc-admin-shell #tc-root .sys-admin-btn:hover,
body.tc-admin-shell #tc-root .sidebar-signout-link:hover {
  background: #f2f6fc !important;
  border-color: #d7e2f1 !important;
  color: #1f2f46 !important;
}

body.tc-admin-shell #tc-root .sidebar-eyebrow {
  color: #b1bdd1 !important;
  letter-spacing: 0.1em !important;
  font-weight: 800 !important;
}

body.tc-admin-shell #tc-root .new-project-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25) !important;
}

body.tc-admin-shell #tc-root .new-project-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.3) !important;
}

body.tc-admin-shell #tc-root .sidebar-search-input {
  border: 1px solid #d7e1f0 !important;
  background: #f6f9ff !important;
  color: #1f2f46 !important;
  border-radius: 10px !important;
}

body.tc-admin-shell #tc-root .sidebar-search-input:focus {
  border-color: #8f63ef !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

body.tc-admin-shell #tc-root .project-group {
  border-radius: 14px !important;
  border-color: #d7e2f1 !important;
  background: #f9fbff !important;
}

body.tc-admin-shell #tc-root .project-item {
  border: 1px solid #dbe4f2 !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  padding: 10px 10px !important;
}

body.tc-admin-shell #tc-root .project-item:hover {
  background: #f5f9ff !important;
  border-color: #c5d8f0 !important;
}

body.tc-admin-shell #tc-root .project-item.active {
  background: #f3edff !important;
  border-color: #b898f5 !important;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.14) !important;
}

body.tc-admin-shell #tc-root .project-item.active .project-name {
  color: #6528cd !important;
}

body.tc-admin-shell #tc-root .main-area {
  background: #f3f6fb !important;
}

body.tc-admin-shell #tc-root .nav-bar {
  height: 56px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dbe3ef !important;
  padding: 8px 16px !important;
  box-shadow: none !important;
}

body.tc-admin-shell #tc-root .nav-tab {
  border-radius: 10px !important;
  color: #6a7d97 !important;
  border: 1px solid transparent !important;
  font-weight: 600 !important;
}

body.tc-admin-shell #tc-root .nav-tab:hover {
  background: #f4f8ff !important;
  color: #243750 !important;
}

body.tc-admin-shell #tc-root .nav-tab.active {
  background: #f1eaff !important;
  border-color: #c8adf8 !important;
  color: #6c2ed8 !important;
}

body.tc-admin-shell #tc-root .nav-tab-mode {
  background: #f9fbff !important;
  border-color: #dbe5f3 !important;
  color: #546b8a !important;
}

body.tc-admin-shell #tc-root .nav-tab-mode.mode-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 14px rgba(124, 58, 237, 0.24) !important;
}

body.tc-admin-shell #tc-root .nav-utility-btn {
  border-radius: 999px !important;
  border-color: #d7e2f1 !important;
  background: #ffffff !important;
  color: #637b98 !important;
}

body.tc-admin-shell #tc-root .nav-utility-btn:hover {
  background: #f3f7ff !important;
  color: #2c4162 !important;
}

body.tc-admin-shell #tc-root .nav-save-btn,
body.tc-admin-shell #tc-root .nav-save-menu-toggle,
body.tc-admin-shell #tc-root .tc-btn:not(.btn-secondary):not(.insert-btn):not(.icon-btn):not(.btn-ai) {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.24) !important;
}

body.tc-admin-shell #tc-root .tc-btn:hover:not(:disabled):not(.btn-secondary):not(.insert-btn):not(.icon-btn):not(.btn-ai) {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  border-color: #7c3aed !important;
}

body.tc-admin-shell #tc-root .tc-btn.btn-secondary,
body.tc-admin-shell #tc-root .btn-secondary {
  background: #ffffff !important;
  border-color: #d4deee !important;
  color: #3f5472 !important;
  box-shadow: none !important;
}

body.tc-admin-shell #tc-root .tc-btn.btn-secondary:hover,
body.tc-admin-shell #tc-root .btn-secondary:hover {
  background: #f3f7ff !important;
  border-color: #c1d3ea !important;
}

body.tc-admin-shell #tc-root .tc-input,
body.tc-admin-shell #tc-root .tc-select,
body.tc-admin-shell #tc-root .tc-textarea,
body.tc-admin-shell #tc-root input[type="text"],
body.tc-admin-shell #tc-root input[type="email"],
body.tc-admin-shell #tc-root input[type="password"],
body.tc-admin-shell #tc-root input[type="number"],
body.tc-admin-shell #tc-root select,
body.tc-admin-shell #tc-root textarea {
  border: 1px solid #d5e0ef !important;
  border-radius: 10px !important;
  background: #f5f8fd !important;
  color: #1f2f46 !important;
}

body.tc-admin-shell #tc-root .tc-input:focus,
body.tc-admin-shell #tc-root .tc-select:focus,
body.tc-admin-shell #tc-root .tc-textarea:focus,
body.tc-admin-shell #tc-root input:focus,
body.tc-admin-shell #tc-root select:focus,
body.tc-admin-shell #tc-root textarea:focus {
  border-color: #8e63ef !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

body.tc-admin-shell #tc-root .editor-grid,
body.tc-admin-shell #tc-root #content-editor,
body.tc-admin-shell #tc-root #content-design,
body.tc-admin-shell #tc-root #content-website,
body.tc-admin-shell #tc-root #content-results,
body.tc-admin-shell #tc-root #content-settings,
body.tc-admin-shell #tc-root #content-social {
  background: #f3f6fb !important;
}

body.tc-admin-shell #tc-root .col-config {
  background: #ffffff !important;
  border-right: 1px solid #dbe3ef !important;
}

body.tc-admin-shell #tc-root .config-column-header {
  border-radius: 14px !important;
  border: 1px solid #dbe4f1 !important;
  background: #f8fbff !important;
  margin-bottom: 16px !important;
}

body.tc-admin-shell #tc-root .config-column-header-icon {
  background: #ece2ff !important;
  color: #6f2fdd !important;
}

body.tc-admin-shell #tc-root .config-column-header-title,
body.tc-admin-shell #tc-root .general-section-title {
  color: #2c3e58 !important;
}

body.tc-admin-shell #tc-root .general-settings-card,
body.tc-admin-shell #tc-root .sec-card,
body.tc-admin-shell #tc-root .dashboard-header-card,
body.tc-admin-shell #tc-root .dashboard-results-card,
body.tc-admin-shell #tc-root .settings-section,
body.tc-admin-shell #tc-root .settings-modal,
body.tc-admin-shell #tc-root .widget-preview-panel,
body.tc-admin-shell #tc-root .branch-preview-panel {
  border: 1px solid #dbe4f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.tc-admin-shell #tc-root .tab-btn,
body.tc-admin-shell #tc-root .settings-tab-btn,
body.tc-admin-shell #tc-root .embed-tab-btn,
body.tc-admin-shell #tc-root .device-btn {
  border-radius: 10px !important;
  border-color: #d6e0ee !important;
  background: #ffffff !important;
  color: #5f728e !important;
}

body.tc-admin-shell #tc-root .tab-btn.active,
body.tc-admin-shell #tc-root .settings-tab-btn.active,
body.tc-admin-shell #tc-root .embed-tab-btn.active,
body.tc-admin-shell #tc-root .device-btn.active {
  background: #f1eaff !important;
  border-color: #c8adf8 !important;
  color: #6a2fd6 !important;
}

body.tc-admin-shell #tc-root .q-card,
body.tc-admin-shell #tc-root .q-card-collapsible,
body.tc-admin-shell #tc-root .question-card {
  border: 1px solid #dbe4f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.tc-admin-shell #tc-root .q-card.active,
body.tc-admin-shell #tc-root .q-card.selected,
body.tc-admin-shell #tc-root .q-card:focus-within {
  border-color: #b997f4 !important;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.18), 0 8px 20px rgba(124, 58, 237, 0.08) !important;
}

body.tc-admin-shell #tc-root .q-num {
  background: #eef3fb !important;
  color: #6d7f98 !important;
}

body.tc-admin-shell #tc-root .q-type-pill {
  background: #f0f6ff !important;
  border-color: #c7daf2 !important;
  color: #45658c !important;
}

body.tc-admin-shell #tc-root .q-type-hint,
body.tc-admin-shell #tc-root .q-setting-hint,
body.tc-admin-shell #tc-root .general-hint {
  color: #7f8ea5 !important;
}

body.tc-admin-shell #tc-root .insert-btn {
  background: #ffffff !important;
  border: 1px dashed #c5d2e5 !important;
  color: #6a7d9a !important;
}

body.tc-admin-shell #tc-root .insert-btn:hover {
  background: #f4f8ff !important;
  border-color: #8f63ef !important;
  color: #6d28d9 !important;
}

body.tc-admin-shell #tc-root .res-table th {
  background: #f8fbff !important;
  color: #91a2bb !important;
  border-bottom-color: #dbe5f3 !important;
}

body.tc-admin-shell #tc-root .res-table td {
  border-bottom-color: #ebf0f8 !important;
}

body.tc-admin-shell #tc-root .res-table tbody tr:hover td,
body.tc-admin-shell #tc-root .dashboard-response-row:hover .dashboard-response-cell {
  background: #f3f7ff !important;
}

body.tc-admin-shell #tc-root .status-pill,
body.tc-admin-shell #tc-root .pill,
body.tc-admin-shell #tc-root .cm-pill {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body.tc-admin-shell #tc-root .dashboard-range-pill.active {
  background: #f1eaff !important;
  border-color: #c7adf7 !important;
  color: #6f2edc !important;
}

body.tc-admin-shell #tc-root .dashboard-analytics-shell,
body.tc-admin-shell #tc-root .dashboard-analytics-table-card {
  border: 1px solid #dbe4f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}

body.tc-admin-shell #tc-root .dashboard-analytics-chip {
  border-color: #d9e3f1 !important;
  background: #f8fbff !important;
}

body.tc-admin-shell #tc-root .project-empty-card {
  border: 1px solid #dbe4f1 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
}

body.tc-admin-shell #tc-root .project-empty-checklist {
  border: 1px solid #d8e3f1 !important;
  background: #f8fbff !important;
}

body.tc-admin-shell #tc-root .modal-overlay {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(2px);
}

body.tc-admin-shell #tc-root .modal-content {
  border: 1px solid #dbe3ef !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.2) !important;
}

body.tc-admin-shell #tc-root .modal-header {
  border-bottom: 1px solid #e5ebf5 !important;
  background: #ffffff !important;
}

body.tc-admin-shell #tc-root .modal-close {
  background: #f2f6fd !important;
  border: 1px solid #dbe4f1 !important;
  color: #6d7f99 !important;
}

body.tc-admin-shell #tc-root .modal-close:hover {
  background: #eaf0fb !important;
  color: #32465f !important;
}

body.tc-admin-shell #tc-root .settings-tab-btn {
  font-weight: 600 !important;
}

body.tc-admin-shell #tc-root .settings-tab-btn.active {
  color: #6a2fd8 !important;
}

body.tc-admin-shell #tc-root .sidebar-signout-link {
  color: #ed4d5b !important;
}

body.tc-admin-shell #tc-root .sidebar-signout-link:hover {
  background: #fff1f3 !important;
  border-color: #ffd3d9 !important;
  color: #dc3347 !important;
}

@media (max-width: 1200px) {
  body.tc-admin-shell {
    padding: 0 !important;
  }

  body.tc-admin-shell #tc-root {
    border-radius: 0 !important;
    height: 100vh !important;
  }
}

/* Public pages (index / pwa / site) ---------------------------------------- */
body.tc-public-shell {
  --tc-public-primary: #7c3aed;
  --tc-public-primary-strong: #6d28d9;
  --tc-public-accent: #0ea5e9;
  --tc-public-border: #dbe5f3;
  --tc-public-surface: #ffffff;
  --tc-public-bg: #f2f6fc;
  --tc-public-text: #1f2f46;
  --tc-public-muted: #6f809b;
  background: var(--tc-public-bg) !important;
  color: var(--tc-public-text) !important;
}

body.tc-public-shell .tc-btn,
body.tc-public-shell .btn-start,
body.tc-public-shell .pwa-start-btn,
body.tc-public-shell .tc-launch-btn {
  background: linear-gradient(135deg, var(--tc-public-primary), var(--tc-public-primary-strong)) !important;
  border-color: var(--tc-public-primary-strong) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.24) !important;
}

body.tc-public-shell .card,
body.tc-public-shell .pwa-start-card,
body.tc-public-shell .glass-card,
body.tc-public-shell .pi-card,
body.tc-public-shell .tc-modal,
body.tc-public-shell .tc-leave-msg {
  background: var(--tc-public-surface) !important;
  border: 1px solid var(--tc-public-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08) !important;
}

body.tc-public-shell .header,
body.tc-public-shell .pwa-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--tc-public-border) !important;
}

body.tc-public-shell .choice,
body.tc-public-shell .image-choice-card,
body.tc-public-shell .repeat-field-item,
body.tc-public-shell .file-item,
body.tc-public-shell .tc-section,
body.tc-public-shell .tc-grid-item {
  border: 1px solid var(--tc-public-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

body.tc-public-shell input,
body.tc-public-shell select,
body.tc-public-shell textarea {
  border: 1px solid var(--tc-public-border) !important;
  border-radius: 10px !important;
  background: #f6f9ff !important;
  color: var(--tc-public-text) !important;
}

body.tc-public-shell input:focus,
body.tc-public-shell select:focus,
body.tc-public-shell textarea:focus {
  border-color: #8f63ef !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

body.tc-public-shell .status,
body.tc-public-shell .pill-badge,
body.tc-public-shell .pwa-sequence-pill {
  border-radius: 999px !important;
}

body.tc-public-shell.tc-pwa-shell .pwa-header {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

body.tc-public-shell.tc-pwa-shell .pwa-btn,
body.tc-public-shell.tc-pwa-shell .comm-send-btn,
body.tc-public-shell.tc-pwa-shell .comm-banner-btn,
body.tc-public-shell.tc-pwa-shell .pwa-preview-return-btn {
  border-radius: 10px !important;
}

body.tc-public-shell.tc-site-shell .inner-content,
body.tc-public-shell.tc-site-shell .tc-section,
body.tc-public-shell.tc-site-shell .tc-grid {
  border-color: var(--tc-public-border) !important;
}

/* Login Screen (reference-match) ------------------------------------------- */
body.tc-admin-shell:has(#view-auth:not(.hidden)) {
  background: #ecf1f8 !important;
  padding: 0 !important;
}

body.tc-admin-shell:has(#view-auth:not(.hidden)) #tc-root {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  height: 100vh !important;
}

body.tc-admin-shell #view-auth:not(.hidden)::before {
  display: none !important;
  content: none !important;
}

body.tc-admin-shell #view-auth:not(.hidden) {
  width: min(92vw, 396px) !important;
  margin: 14px auto !important;
  padding: 28px 18px 22px !important;
  border-radius: 18px !important;
  border: 1px solid #d0dbea !important;
  background: #f5f8fc !important;
  text-align: center !important;
  box-shadow: 0 8px 24px rgba(27, 49, 77, 0.06) !important;
  backdrop-filter: none !important;
  color: #0f2747 !important;
}

body.tc-admin-shell #view-auth:not(.hidden) #login-form {
  margin-top: 8px;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-brand {
  margin-bottom: 18px;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-logo {
  width: 82px;
  height: 82px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 20px;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: #102a4b;
  font-family: "Google Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap .tc-input {
  margin: 0 !important;
  height: 52px;
  border-radius: 12px !important;
  border: 1px solid #b9c8dc !important;
  background: #edf2f9 !important;
  color: #1f3555 !important;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  padding: 12px 52px 12px 16px !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap .tc-input::placeholder {
  color: #89a0bf !important;
  font-weight: 500;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap .tc-input:focus {
  border-color: #9f7aea !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16) !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-icon-static {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #c7d0dc;
  color: #ffffff;
  font-size: 12px;
  pointer-events: none;
  line-height: 1;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap-password .tc-input {
  padding-right: 82px !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap-password .auth-input-icon-static {
  right: 42px;
}

body.tc-admin-shell #view-auth:not(.hidden) .password-toggle-btn {
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #89a0bf !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .password-toggle-btn:hover {
  background: #e7eef8 !important;
  color: #4e6788 !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .cf-turnstile {
  margin: 10px 0 16px !important;
  min-height: 66px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible;
}

body.tc-admin-shell #view-auth:not(.hidden) .cf-turnstile > div,
body.tc-admin-shell #view-auth:not(.hidden) .cf-turnstile iframe {
  max-width: 100% !important;
  border-radius: 0;
  box-shadow: none !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .tc-btn {
  width: 100% !important;
  height: 50px;
  border-radius: 12px !important;
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1;
  font-family: "Google Sans", "Inter", system-ui, sans-serif !important;
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 10px 16px rgba(124, 58, 237, 0.22) !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .tc-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 20px rgba(124, 58, 237, 0.28) !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-legal-links {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #6f809b !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-legal-link {
  color: #0f8d87 !important;
  font-weight: 500 !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-legal-sep {
  color: #b3c0d2 !important;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-link-row {
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: color 0.18s ease;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-link-primary {
  margin-top: 6px;
  color: #0f8d87;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-link-primary:hover {
  color: #0c7a74;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-link-secondary {
  margin-top: 12px;
  color: #5f7290;
  font-size: 13px;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-link-secondary:hover {
  color: #445a79;
}

body.tc-admin-shell #view-auth:not(.hidden) .auth-helper-text {
  margin: 0 0 16px;
  color: #5f7290;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

body.tc-admin-shell #view-auth:not(.hidden) #auth-msg,
body.tc-admin-shell #view-auth:not(.hidden) #auth-success-msg {
  margin-top: 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

body.tc-admin-shell #view-auth:not(.hidden) #auth-msg:empty,
body.tc-admin-shell #view-auth:not(.hidden) #auth-success-msg:empty {
  display: none !important;
}

body.tc-admin-shell #view-auth:not(.hidden) #auth-msg:not(:empty),
body.tc-admin-shell #view-auth:not(.hidden) #auth-success-msg:not(:empty) {
  display: block !important;
  padding: 10px 12px !important;
}

@media (max-width: 768px) {
  body.tc-admin-shell #view-auth:not(.hidden) {
    width: min(96vw, 396px) !important;
    margin: 10px auto !important;
    padding: 24px 16px 20px !important;
    border-radius: 16px !important;
  }

  body.tc-admin-shell #view-auth:not(.hidden) .auth-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  body.tc-admin-shell #view-auth:not(.hidden) .auth-title {
    font-size: 28px;
  }

  body.tc-admin-shell #view-auth:not(.hidden) .auth-input-wrap .tc-input {
    height: 52px;
    font-size: 16px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  body.tc-admin-shell #view-auth:not(.hidden) .tc-btn {
    height: 52px;
    font-size: 16px !important;
  }

  body.tc-admin-shell #view-auth:not(.hidden) .auth-link-row {
    font-size: 13px;
  }
}
