:root {
  --enciva-nav: #1565c0;
  --enciva-accent: #00a0ab;
  --enciva-bg: #f7f8fa;
  --enciva-text: #111827;
  --enciva-muted: #6b7280;
  --enciva-border: #e5e7eb;
  --enciva-content-max: 1080px;
  --enciva-page-gutter: 2.5rem;
  --enciva-page-inline: max(var(--enciva-page-gutter), calc((100% - var(--enciva-content-max)) / 2));
  --enciva-sidebar-width: 210px;

  /* Semantic component identities (palette icons + canvas node icons). */
  --component-source: #0891b2;
  --component-url: #2563eb;
  --component-http: #db2777;
  --component-s3: #ea580c;
  --component-featureserver: #0d9488;
  --component-qfield: #16a34a;
  --component-mergin: #0f766e;
  --component-transform: #7c3aed;
  --component-python: #3776ab;
  --component-convert: #8b5cf6;
  --component-sync: #6366f1;
  --component-download: #16a34a;
  --component-postgis: #059669;
  --component-sqlserver: #CC2927;
  --component-mysql: #00758F;
  --component-oracle: #C74634;
  --component-duckdb: #c9a227;
  --component-bigquery: #4285F4;
  --component-snowflake: #29B5E8;
  --component-sftp: #0284c7;
  --component-hub: #be185d;
  --component-geoserver: #7c3aed;
  --component-geonode: #0e7490;
  --component-webhook: #4f46e5;
}

html {
  height: 100%;
}

body {
  background: var(--enciva-bg);
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--enciva-text);
  font-family: Inter, Roboto, sans-serif;
}

/* Ligatures must not inherit Inter/Roboto, letter-spacing, or font-weight from
   parents. Without this, icon names render as text (e.g. "cloud_upload"). */
.material-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--enciva-accent);
}

.enciva-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--enciva-page-inline);
  background: #fff;
  border-bottom: 1px solid var(--enciva-border);
  position: relative;
  z-index: 20;
}

.enciva-header-start {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.enciva-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  cursor: pointer;
}

.enciva-sidebar-toggle .material-icons {
  font-size: 22px;
  color: inherit;
}

.enciva-sidebar-toggle:hover,
.enciva-sidebar-toggle:focus {
  background: #f3f4f6;
  color: var(--enciva-text);
}

.enciva-shell {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  width: 100%;
  position: relative;
}

.enciva-sidebar {
  display: none;
}

.enciva-sidebar-backdrop {
  display: none;
}

body.is-authenticated .enciva-sidebar {
  display: flex;
  flex: 0 0 var(--enciva-sidebar-width);
  width: var(--enciva-sidebar-width);
  min-width: var(--enciva-sidebar-width);
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--enciva-border);
  padding: 0.9rem 0.7rem 0.75rem;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

body.is-authenticated .enciva-header {
  padding-left: 1.1rem;
  padding-right: 1.5rem;
}

body.is-authenticated .enciva-main {
  min-width: 0;
  padding: 2.5rem 3rem 2.5rem;
  align-items: flex-start;
  overflow: auto;
}

.enciva-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  height: auto;
  line-height: inherit;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.enciva-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  line-height: 1;
  padding: 0 0.7rem;
  border-radius: 6px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.enciva-sidebar-nav a .material-icons {
  font-size: 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  text-align: center;
  color: #6b7280;
}

.enciva-sidebar-nav a:hover,
.enciva-sidebar-nav a:focus {
  background: #f8fafc;
  color: var(--enciva-text);
}

.enciva-sidebar-nav a[aria-current="page"] {
  background: rgba(0, 160, 171, 0.08);
  color: var(--enciva-accent);
  font-weight: 600;
}

.enciva-sidebar-nav a[aria-current="page"]:hover,
.enciva-sidebar-nav a[aria-current="page"]:focus {
  background: rgba(0, 160, 171, 0.1);
  color: var(--enciva-accent);
}

.enciva-sidebar-nav a[aria-current="page"] .material-icons {
  color: var(--enciva-accent);
}

.enciva-sidebar-account {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--enciva-border);
}

.enciva-sidebar-user,
.enciva-sidebar-signout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.enciva-sidebar-user {
  color: var(--enciva-muted);
  overflow: hidden;
}

.enciva-sidebar-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.enciva-sidebar-user .material-icons,
.enciva-sidebar-signout .material-icons {
  font-size: 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  text-align: center;
  color: #6b7280;
}

.enciva-sidebar-signout {
  cursor: pointer;
}

.enciva-sidebar-signout:hover,
.enciva-sidebar-signout:focus {
  background: #f8fafc;
  color: var(--enciva-text);
}

body.is-authenticated #home-upload-pane {
  display: block !important;
}

body.is-authenticated .home-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  width: 100%;
  margin: 0;
  align-items: start;
  gap: 1.15rem;
}

body.is-authenticated .home-stage {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
}

body.is-authenticated .home-upload,
body.is-authenticated .upload-panel {
  width: 100%;
}

body.is-authenticated .dropzone {
  min-height: 11.25rem;
  padding: 1.85rem 1.25rem 1.5rem;
}

.app-page-header {
  margin: 0;
}

.app-page-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--enciva-text);
}

.app-page-usage {
  margin: 0.2rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.app-page-lede {
  margin: 0.35rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  max-width: 42rem;
}

.app-page-actions {
  margin: 1.15rem 0 0.35rem;
}

.app-manage-page {
  width: 100%;
  max-width: 1200px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-data-table {
  width: 100%;
  margin: 0.35rem 0 0;
  border-collapse: collapse;
  background: transparent;
  box-shadow: none;
}

.app-data-table thead th {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--enciva-border);
  color: var(--enciva-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.app-data-table td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--enciva-border);
  background-color: transparent !important;
  vertical-align: middle;
  color: var(--enciva-text);
  font-size: 0.92rem;
}

.app-data-table tbody tr {
  border-bottom: 0;
}

.app-data-table tbody tr:hover td {
  background-color: #fafbfc !important;
}

.app-data-table .app-table-empty {
  color: var(--enciva-muted);
  padding: 1.25rem 0;
}

.app-entity-name {
  font-weight: 600;
  color: var(--enciva-text);
}

.app-entity-meta {
  display: block;
  margin-top: 0.18rem;
  color: var(--enciva-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.app-data-table .app-col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}

.app-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.app-row-primary {
  height: 36px;
  line-height: 36px;
  padding: 0 0.7rem;
  color: var(--enciva-accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.app-row-primary:hover,
.app-row-primary:focus {
  background: rgba(0, 160, 171, 0.08);
  color: var(--enciva-accent);
}

.app-row-menu {
  position: relative;
  display: inline-block;
}

.app-row-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.app-row-menu > summary::-webkit-details-marker,
.app-row-menu > summary::marker {
  display: none;
  content: "";
}

.app-row-menu > summary .material-icons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
}

.app-row-menu > summary:hover,
.app-row-menu > summary:focus,
.app-row-menu[open] > summary {
  background: #f3f4f6;
  color: var(--enciva-text);
}

.app-row-menu-list {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 8;
  min-width: 9.5rem;
  padding: 0.3rem 0;
  background: #fff;
  border: 1px solid var(--enciva-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.app-row-menu-list button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--enciva-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.app-row-menu-list button:hover,
.app-row-menu-list button:focus {
  background: #f8fafc;
}

.app-row-menu-list .app-row-menu-danger {
  color: #c62828;
}

#jobs-page .app-data-table th:nth-child(1),
#jobs-page .app-data-table td:nth-child(1) {
  width: 38%;
}

#jobs-page .app-data-table th:nth-child(2),
#jobs-page .app-data-table td:nth-child(2) {
  width: 24%;
  white-space: nowrap;
}

#jobs-page .app-data-table th:nth-child(3),
#jobs-page .app-data-table td:nth-child(3) {
  width: 22%;
  white-space: nowrap;
}

#sources-page .app-data-table th:nth-child(1),
#sources-page .app-data-table td:nth-child(1),
#destinations-page .app-data-table th:nth-child(1),
#destinations-page .app-data-table td:nth-child(1) {
  width: 56%;
}

#sources-page .app-data-table th:nth-child(2),
#sources-page .app-data-table td:nth-child(2),
#destinations-page .app-data-table th:nth-child(2),
#destinations-page .app-data-table td:nth-child(2) {
  width: 28%;
}

.enciva-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--enciva-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.enciva-brand:hover,
.enciva-brand:focus {
  color: var(--enciva-text);
}

.gj-wordmark {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.gj-geo {
  color: #0052ff;
}

.gj-jibe {
  color: #00a887;
}

.enciva-brand .gj-wordmark {
  font-size: 1.22rem;
}

.enciva-header-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: auto;
  height: auto;
  line-height: inherit;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.enciva-header-links a,
.enciva-nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.enciva-nav-dropdown {
  position: relative;
}

.enciva-nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.enciva-nav-dropdown > summary::-webkit-details-marker,
.enciva-nav-dropdown > summary::marker {
  display: none;
  content: "";
}

.enciva-nav-dropdown > summary::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.1rem;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: rotate(45deg) translateY(-1px);
}

.enciva-nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  min-width: 10.5rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--enciva-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.enciva-nav-drop-menu a {
  display: flex;
  width: 100%;
  padding: 0.5rem 0.85rem;
  color: #374151;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.enciva-nav-drop-menu a:hover,
.enciva-nav-drop-menu a:focus {
  background: #f8fafc;
  color: var(--enciva-text);
}

.enciva-header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

.enciva-header-links .enciva-nav-btn {
  height: 32px;
  line-height: 32px;
  padding: 0 0.95rem;
  margin: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.enciva-header-links a.enciva-nav-btn {
  color: #fff;
}

.enciva-header-links .enciva-nav-btn-outline,
.enciva-header-links a.enciva-nav-btn-outline {
  background: #fff;
  color: var(--enciva-text);
  border: 1px solid var(--enciva-border);
}

.enciva-header-links .enciva-nav-btn-outline:hover,
.enciva-header-links .enciva-nav-btn-outline:focus {
  background: #f9fafb;
  color: var(--enciva-text);
  border-color: #d1d5db;
}

.enciva-header-links a.enciva-nav-btn[aria-current="page"] {
  color: #fff;
}

.enciva-header-links a.enciva-nav-btn-outline[aria-current="page"] {
  color: var(--enciva-text);
  border-color: #9ca3af;
}

body.is-authenticated .enciva-header-auth {
  display: inline-flex;
}

body.is-authenticated #auth-user-menu {
  display: inline-block;
}

.enciva-nav-drop-menu button {
  display: flex;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  align-items: center;
  gap: 0.35rem;
}

.enciva-nav-drop-menu button:hover,
.enciva-nav-drop-menu button:focus {
  background: #f8fafc;
  color: var(--enciva-text);
}

.enciva-nav-drop-menu .material-icons {
  font-size: 18px;
  width: 18px;
  color: #6b7280;
}

.account-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--enciva-border);
}

.account-tab {
  margin: 0;
  padding: 0.55rem 0.9rem 0.65rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--enciva-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.account-tab[aria-selected="true"] {
  color: var(--enciva-text);
  border-bottom-color: var(--enciva-accent);
}

.account-profile-form,
.account-token-form {
  max-width: 28rem;
}

.account-field {
  margin: 0 0 0.85rem;
}

.account-field label,
.account-scopes legend {
  display: block;
  margin: 0 0 0.3rem;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.account-field input[readonly] {
  background: #f9fafb;
  color: var(--enciva-muted);
}

.account-scopes {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.account-scope-group {
  margin: 0 0 0.85rem;
}

.account-scope-heading {
  margin: 0 0 0.2rem;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.account-scope {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.account-scope label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--enciva-text);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

/* Materialize hides native checkboxes (opacity: 0) and draws a fake box on
   input+span. Create Token originally omitted <span>, so scopes rendered as
   plain labels. Keep a real checkbox visible in this fieldset. */
.account-scopes [type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
}

.account-scopes [type="checkbox"] + span:not(.lever) {
  padding-left: 0;
  height: auto;
  line-height: inherit;
}

.account-scopes [type="checkbox"] + span:not(.lever):before,
.account-scopes [type="checkbox"] + span:not(.lever):after {
  display: none !important;
  content: none !important;
}

.account-profile-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.account-token-once {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: #ecfdf5;
}

.account-token-once h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.account-token-plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0 0 0.6rem;
}

.account-token-once-hint {
  color: var(--enciva-muted);
  font-size: 0.85rem;
}

.account-token-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 44rem;
}

.account-token-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--enciva-border);
  border-radius: 10px;
  background: #fff;
}

.account-token-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.account-token-meta,
.account-token-scopes {
  margin: 0.15rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.82rem;
}

.account-token-scopes h4 {
  margin: 0.45rem 0 0.15rem;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.account-token-scope-line {
  margin: 0.1rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.82rem;
}

.account-token-card .account-token-revoke {
  margin-top: 0.65rem;
}

.account-token-empty {
  color: var(--enciva-muted);
  font-size: 0.9rem;
}

.auth-card {
  max-width: 420px;
  margin: 2.5rem auto 0;
}

body.auth-shell {
  --primary-blue: #0052ff;
  --primary-blue-hover: #0045d8;
  --primary-blue-light: #ebf2fe;
  --accent-teal: #00a887;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bg-page: #fcfdff;
  background: var(--bg-page);
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--text-dark);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  overflow-x: hidden;
}

body.auth-shell a {
  text-decoration: none;
  transition: all 0.2s ease;
}

body.auth-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  height: 80px;
  display: flex;
  align-items: center;
}

body.auth-shell .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

body.auth-shell .brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

body.auth-shell .logo-text {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.8px;
  display: inline-flex;
  align-items: center;
}

body.auth-shell .logo-geo {
  color: var(--primary-blue);
}

body.auth-shell .logo-jibe {
  color: var(--accent-teal);
}

body.auth-shell .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.auth-shell .nav-link {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

body.auth-shell .nav-link:hover,
body.auth-shell .nav-link:focus {
  color: var(--primary-blue);
}

body.auth-shell .nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

body.auth-shell a.btn-sign-in,
body.auth-shell .btn-sign-in {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  height: auto;
  box-shadow: none;
  transition: all 0.2s ease;
}

body.auth-shell a.btn-sign-in:hover,
body.auth-shell a.btn-sign-in:focus,
body.auth-shell .btn-sign-in:hover,
body.auth-shell .btn-sign-in:focus,
body.auth-shell a.btn-sign-in[aria-current="page"] {
  color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

body.auth-shell a.btn-get-started,
body.auth-shell .btn-get-started {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  padding: 0 24px !important;
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 82, 255, 0.25) !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.auth-shell a.btn-get-started:hover,
body.auth-shell a.btn-get-started:focus,
body.auth-shell .btn-get-started:hover,
body.auth-shell .btn-get-started:focus {
  background: var(--primary-blue-hover) !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35) !important;
  transform: translateY(-1px);
}

body.auth-shell .mobile-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
}

body.auth-shell .mobile-menu-trigger .material-icons {
  font-size: 28px;
  color: inherit;
}

body.auth-shell .sidenav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  padding: 24px 16px;
}

body.auth-shell .sidenav .brand-logo-wrap {
  margin-bottom: 8px;
  padding: 12px 12px 0;
  height: auto;
  line-height: inherit;
}

body.auth-shell .sidenav li > a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
  border-radius: 8px;
  height: auto;
  line-height: 1.4;
  padding: 12px 16px;
}

body.auth-shell .sidenav li > a:hover,
body.auth-shell .sidenav li > a:focus {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

body.auth-shell .sidenav .divider {
  margin: 8px 0;
}

body.auth-shell .sidenav-cta {
  padding: 12px 16px;
}

body.auth-shell .sidenav-cta .btn-get-started {
  width: 100%;
  text-align: center;
}

html.auth-is-signup #auth-signin-pane,
html.auth-is-signup #auth-signin-pane.hide {
  display: none !important;
}

html.auth-is-signup #auth-signup-pane,
html.auth-is-signup #auth-signup-pane.hide,
html.auth-is-signup #auth-signup-pane[hidden] {
  display: block !important;
}

html.auth-is-pending #auth-signin-pane,
html.auth-is-pending #auth-signup-pane,
html.auth-is-pending #auth-signin-pane.hide,
html.auth-is-pending #auth-signup-pane.hide,
html.auth-is-pending #auth-signup-pane[hidden] {
  display: none !important;
}

html.auth-is-pending #auth-pending-pane,
html.auth-is-pending #auth-pending-pane.hide,
html.auth-is-pending #auth-pending-pane[hidden] {
  display: block !important;
}

.auth-shell-main {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
}

.auth-shell-card {
  width: 100%;
  padding: 1.85rem 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.auth-shell-title {
  margin: 0 0 1.35rem;
  color: var(--text-dark);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
}

.auth-shell-lede {
  margin: -0.7rem 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
}

body.auth-shell .input-field {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

body.auth-shell .input-field input {
  font-family: inherit;
}

body.auth-shell .btn.auth-submit {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  margin: 0.35rem 0 0;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--primary-blue);
  box-shadow: none;
  text-transform: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.auth-shell .btn.auth-submit:hover,
body.auth-shell .btn.auth-submit:focus {
  background: var(--primary-blue-hover);
}

.auth-forgot {
  margin: 0.85rem 0 0;
  text-align: center;
}

.auth-forgot a {
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 500;
}

.auth-forgot a:hover,
.auth-forgot a:focus {
  color: var(--primary-blue-hover);
}

.auth-shell-alt {
  margin: 1.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.auth-shell-alt a,
.auth-text-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-blue);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  height: auto;
}

.auth-shell-alt a:hover,
.auth-shell-alt a:focus,
.auth-text-btn:hover,
.auth-text-btn:focus {
  color: var(--primary-blue-hover);
  background: none;
}

@media (max-width: 992px) {
  body.auth-shell .nav-links,
  body.auth-shell .nav-actions {
    display: none;
  }

  body.auth-shell .mobile-menu-trigger {
    display: flex;
  }
}

@media (max-width: 600px) {
  body.auth-shell .site-header {
    height: 72px;
  }

  body.auth-shell .nav-container {
    padding: 0 16px;
  }

  body.auth-shell .logo-text {
    font-size: 24px;
  }

  .auth-shell-main {
    padding: 2rem 1.25rem 2.5rem;
  }
}

.auth-switch {
  margin: 1rem 0 0;
}

.auth-switch-btn {
  height: auto;
  line-height: inherit;
  padding: 0;
  margin: 0;
  color: var(--enciva-accent);
  text-transform: none;
}

body.auth-pending .enciva-main > :not(#password-card) {
  display: none !important;
}

body.is-anonymous .wizard-prepare-step {
  display: none;
}

body.is-anonymous #btn-mode-ai,
body.is-anonymous #btn-mode-recipe,
body.is-anonymous #btn-save-recipe {
  display: none !important;
}

/* Hidden until auth/me confirms a session, so logged-out visitors do not
   flash Sources / Destinations / Jobs while that request is in flight. */
body:not(.is-authenticated) .dest-auth-only {
  display: none !important;
}

body:not(.is-anonymous) .dest-anon-only {
  display: none !important;
}

#ai-signin-hint {
  margin: 0.4rem 0 0;
  flex: 1 1 100%;
}

.enciva-header-links a:hover,
.enciva-header-links a:focus,
.enciva-header-links a[aria-current="page"],
.enciva-nav-dropdown > summary:hover,
.enciva-nav-dropdown > summary:focus,
.enciva-nav-dropdown[open] > summary,
.enciva-header-links details[aria-current="page"] > summary {
  color: var(--enciva-text);
}

.enciva-header-links .material-icons {
  font-size: 18px;
  color: #6b7280;
}

.enciva-nav {
  background: var(--enciva-nav);
}

.enciva-nav .brand-logo {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-tag {
  opacity: 0.85;
  font-size: 0.95rem;
}

.enciva-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.home-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem var(--enciva-page-gutter) 1.5rem;
  min-height: 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  width: 100%;
  max-width: var(--enciva-content-max);
  align-items: start;
}

.upload-panel {
  background: #fff;
  border: 1px solid var(--enciva-border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.home-choose-btn {
  text-transform: none;
  box-shadow: none !important;
  border-radius: 8px;
  height: 40px;
  line-height: 40px;
  padding: 0 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.92rem;
}

.import-from {
  margin-top: 0.35rem;
}

.import-from-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.9rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.import-from-rule::before,
.import-from-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--enciva-border);
}

.import-from-rule span {
  white-space: nowrap;
}

.import-source-row {
  display: flex;
  gap: 0.6rem;
}

.import-source-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  margin: 0;
  padding: 0 0.5rem;
  background: #fff;
  border: 1px solid var(--enciva-border);
  border-radius: 8px;
  color: var(--enciva-text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.import-source-btn:hover,
.import-source-btn:focus {
  background: #f9fafb;
  border-color: #d1d5db;
}

.import-source-btn .material-icons {
  font-size: 18px;
  color: #6b7280;
}

.enciva-workspace {
  width: 100%;
  padding: 1.25rem 0 2rem;
}

.enciva-workspace:not(:has(#inspect-panel:not(.hide))) {
  display: none;
}

.enciva-workspace:has(#inspect-panel:not(.hide)) {
  flex: 1 1 auto;
  min-height: 0;
}

#error-card {
  flex: 0 0 auto;
  width: calc(100% - 5rem);
  max-width: 1080px;
  margin: 0.75rem auto 0;
}

#process-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 5.75rem);
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

#process-card:has(#wizard-step-convert:not(.hide)) {
  min-height: calc(100vh - 5.75rem);
}

#process-card:has(#wizard-step-convert:not(.hide)) > .wizard-body {
  overflow: visible;
}

.wizard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex: 0 0 auto;
  padding: 1.1rem 1.5rem 0.35rem;
}

.wizard-header-main {
  flex: 1 1 16rem;
  min-width: 0;
}

.wizard-header .js-open-canvas {
  flex: 0 0 auto;
  margin: 0;
}

.wizard-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

#process-card > .wizard-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 1.5rem 0.75rem;
}

#process-card > .wizard-actions {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(160, 160, 160, 0.2);
  background: #fff;
}

.wizard-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  overflow-x: auto;
}

.wizard-stepper > li {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  min-width: 0;
}

.wizard-stepper > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: #cfd8dc;
  z-index: 0;
}

.wizard-stepper > li:has(.is-complete):not(:last-child)::after {
  background: var(--enciva-accent);
}

button.wizard-step-btn {
  height: auto;
  line-height: 1.2;
  min-height: 0;
}

.wizard-step-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #78909c;
  cursor: default;
}

.wizard-step-btn.is-complete,
.wizard-step-btn.is-unlocked {
  cursor: pointer;
  color: var(--enciva-accent);
}

.wizard-step-btn.is-active {
  cursor: default;
  color: var(--enciva-nav);
  font-weight: 500;
}

.wizard-step-btn.is-locked {
  color: #b0bec5;
  cursor: default;
}

.wizard-step-btn:focus {
  background: transparent;
}

.wizard-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #cfd8dc;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.wizard-step-btn.is-complete .wizard-num {
  border-color: var(--enciva-accent);
  background: var(--enciva-accent);
  color: #fff;
}

.wizard-step-btn.is-active .wizard-num {
  border-color: var(--enciva-nav);
  background: var(--enciva-nav);
  color: #fff;
}

.wizard-step-btn.is-unlocked .wizard-num {
  border-color: var(--enciva-accent);
  background: #fff;
  color: var(--enciva-accent);
}

.wizard-step-btn.is-locked .wizard-num {
  border-color: #cfd8dc;
  background: #eceff1;
  color: #90a4ae;
}

.wizard-label {
  font-size: 0.85rem;
  line-height: 1.15;
}

.wizard-mobile-label {
  margin: 0 0 1rem;
  color: #546e7a;
  font-size: 0.92rem;
}

.wizard-pane {
  margin-top: 0.25rem;
}

.wizard-section {
  padding: 0.65rem 0 0.85rem;
  border-bottom: 1px solid #eceff1;
}

.wizard-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wizard-section-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #37474f;
}

.wizard-hint {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
}

.layers-table-wrap {
  overflow-x: auto;
}

.convert-options-row {
  margin-bottom: 0;
}

#wizard-step-convert .dropdown-content {
  max-height: 22rem !important;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.wizard-action-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.wizard-action-set.hide {
  display: none;
}

.download-meta {
  margin: 0.25rem 0 0;
}

.download-meta dt {
  color: #607d8b;
  margin-top: 0.45rem;
  font-size: 0.85rem;
}

.download-meta dd {
  margin: 0.1rem 0 0;
  font-size: 1rem;
}

.dest-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.5rem;
}

.dest-type-option {
  margin: 0;
}

.dest-type-option span {
  font-size: 0.95rem;
}

.dest-form-row {
  margin-bottom: 0;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.dest-form-row .input-field {
  margin-top: 0.85rem;
  margin-bottom: 0.45rem;
}

.dest-select-field {
  margin-top: 0.85rem;
  margin-bottom: 0.45rem;
}

.dest-select-field > .dest-select-label {
  display: block;
  position: static;
  top: auto;
  left: auto;
  transform: none;
  font-size: 0.75rem;
  color: #9e9e9e;
  margin: 0 0 0.3rem;
  height: auto;
  line-height: 1.15;
  pointer-events: none;
}

.dest-select-field > select.browser-default {
  display: block;
  width: 100%;
  height: 2.6rem;
  margin: 0;
}

#modal-edit-destination .dest-select-field:not(.col),
#modal-edit-source .dest-select-field:not(.col) {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.dest-postgis-panel,
.dest-s3-panel,
.dest-sftp-panel,
.dest-hub-panel {
  margin-top: 0.35rem;
}

.dest-postgis-result,
.dest-s3-result,
.dest-sftp-result {
  margin: 0.4rem 0 0;
  color: #2e7d32;
  font-size: 0.92rem;
  white-space: pre-line;
}

#dest-sftp-private-key {
  min-height: 5.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.python-editor-wrap {
  margin-top: 0.5rem;
}

.python-tabs .indicator {
  background-color: var(--enciva-accent);
}

.python-editor-wrap label {
  position: relative;
  transform: none;
  margin-bottom: 0.35rem;
}

.dropzone {
  border: 1.5px dashed var(--enciva-accent);
  border-radius: 10px;
  padding: 2.15rem 1.25rem 1.7rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  margin-top: 0;
}

.dropzone.dragover {
  border-color: #00838f;
  background: #f0fbfc;
}

.dropzone .material-icons {
  font-size: 42px;
  color: var(--enciva-accent);
  width: auto;
  height: auto;
}

.dropzone-title {
  margin: 0.55rem 0 0.2rem;
  color: var(--enciva-text);
  font-size: 1rem;
  font-weight: 600;
}

.dropzone-or {
  margin: 0.1rem 0 0.85rem;
  color: #9ca3af;
  font-size: 0.88rem;
}

.dropzone input[type="file"] {
  display: none;
}

.meta-row {
  margin-bottom: 0;
}

#layers-table td,
#layers-table th {
  font-size: 0.92rem;
}

#error-details {
  padding: 0.75rem;
  overflow: auto;
  display: none;
}

#error-details.show {
  display: block;
}

.btn,
.btn-flat,
.import-source-btn {
  font-family: inherit;
}

.btn {
  background: var(--enciva-accent);
}

.btn:hover {
  background: #006064;
}

.progress {
  margin-top: 1.5rem;
}

.collection-item.warning {
  border-left: 4px solid #ffb300;
}

#raster-table th {
  width: 8rem;
}

#output-format-other {
  margin-top: 0.5rem;
  width: 100%;
  height: 20rem;
  min-height: 20rem;
}

.enciva-nav ul a {
  font-size: 1rem;
}

.coming-soon {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.url-import-panel {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}

.url-ai-import-wrap {
  margin-top: 0.35rem;
}

.url-ai-import-btn {
  padding-left: 0;
  color: #00838f;
}

.url-ai-import-hint {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

#ai-import-card {
  max-width: 40rem;
  margin: 1.5rem auto;
}

.ai-import-description {
  margin-bottom: 0.75rem;
}

.ai-import-summary {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.ai-import-summary li {
  margin: 0.2rem 0;
}

#error-ai-import {
  margin-top: 0.75rem;
}

.s3-path-hint {
  font-size: 0.88rem;
  margin-top: -0.4rem;
  margin-bottom: 0.75rem;
}

.fs-layers-wrap {
  margin-top: 0.75rem;
}

.fs-service-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fs-layer-list {
  max-height: 16rem;
  overflow: auto;
  margin: 0.5rem 0 0.75rem;
}

.fs-layer {
  position: relative;
  display: block;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.fs-layer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fs-layer.selected {
  border-color: #1565c0;
  background: #e3f2fd;
}

.fs-layer-name {
  font-weight: 600;
}

.fs-layer-meta {
  color: #757575;
  font-size: 0.88rem;
}

.preview-layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.preview-map-wrap {
  flex: 1 1 62%;
  min-width: 0;
  position: relative;
}

.preview-map {
  width: 100%;
  height: 280px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  background: #e3eef5;
}

.preview-details {
  flex: 1 1 38%;
  font-size: 0.92rem;
}

.preview-details dl {
  margin: 0;
}

.preview-details dt {
  color: #607d8b;
  margin-top: 0.55rem;
}

.preview-details dd {
  margin: 0.15rem 0 0 0;
}

.preview-mode-toggle {
  display: inline-flex;
  gap: 0;
  margin: 0.35rem 0 0.6rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  overflow: hidden;
}

.preview-mode-toggle button {
  border: 0;
  background: #fff;
  color: #455a64;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
}

.preview-mode-toggle button.is-active,
.preview-mode-toggle button[aria-pressed="true"] {
  background: #1565c0;
  color: #fff;
}

.preview-mode-toggle button:disabled {
  color: #90a4ae;
  cursor: not-allowed;
  background: #eceff1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-preview {
  min-width: 0;
}

.data-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.data-preview-search input {
  height: 2.1rem;
  margin: 0;
  padding: 0 0.6rem;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  width: 16rem;
  max-width: 100%;
}

.data-preview-cols {
  position: relative;
}

.data-preview-cols summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  padding: 0.28rem 0.65rem;
  font-size: 0.88rem;
}

.data-preview-cols-list {
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  max-height: 16rem;
  overflow: auto;
  min-width: 12rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-preview-cols-list label {
  display: block;
  font-size: 0.88rem;
  margin: 0.15rem 0;
}

.data-preview-meta {
  margin: 0 0 0 auto;
  color: #546e7a;
  font-size: 0.88rem;
}

.data-preview-body {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  min-height: 0;
}

.data-preview-schema {
  flex: 0 0 13rem;
  max-height: 22rem;
  overflow: auto;
  border: 1px solid #eceff1;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #fafafa;
}

.data-preview-schema h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: #546e7a;
  font-weight: 600;
}

.data-preview-schema ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-preview-schema li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.12rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.data-preview-schema-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.data-preview-schema-type {
  color: #78909c;
  text-transform: uppercase;
  font-size: 0.72rem;
  white-space: nowrap;
}

.data-preview-table-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 22rem;
  overflow: auto;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
}

.data-preview-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 0.85rem;
}

.data-preview-table th,
.data-preview-table td {
  border-bottom: 1px solid #eceff1;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-preview-table thead th {
  position: sticky;
  top: 0;
  background: #f5f7f8;
  z-index: 1;
  text-align: left;
  font-weight: 600;
}

.data-preview-rownum {
  color: #90a4ae;
  text-align: right;
  width: 2.2rem;
}

.data-preview-sort {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: inherit;
}

.data-preview-coltype {
  display: block;
  color: #90a4ae;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
}

.data-preview-table td.is-null {
  color: #90a4ae;
  font-style: italic;
}

.data-preview-table td.is-geom,
.data-preview-table td.is-binary {
  color: #455a64;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.data-preview-geom {
  margin-right: 0.4rem;
}

.data-preview-view-map {
  border: 0;
  background: transparent;
  color: #1565c0;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0;
}

.data-preview-status {
  margin: 0.4rem 0 0;
}

.spatial-preview-data-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.spatial-preview-data-wrap .data-preview-table-wrap,
.spatial-preview-data-wrap .data-preview-schema {
  max-height: none;
}

@media (max-width: 720px) {
  .data-preview-schema {
    display: none;
  }
}

.preview-popup {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 0.5rem 0.7rem;
  max-width: 240px;
  font-size: 0.85rem;
}

.fields-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.5rem 0 0.75rem;
}

.fields-toolbar input[type="text"] {
  flex: 1 1 12rem;
  margin: 0;
  height: 2.2rem;
}

.fields-actions {
  display: flex;
  gap: 1rem;
}

.fields-list {
  max-height: 14rem;
  overflow: auto;
  overflow-anchor: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.25rem;
}

button.field-item {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  overflow-anchor: none;
  background-color: #e3f2fd;
  color: #1565c0;
}

button.field-item:hover,
button.field-item:focus {
  outline: none;
  background-color: #bbdefb;
  color: #0d47a1;
}

button.field-item:not(.is-on) {
  background-color: transparent;
  color: #9e9e9e;
}

button.field-item:not(.is-on):hover,
button.field-item:not(.is-on):focus {
  background-color: #f5f5f5;
  color: #616161;
}

button.field-item .grey-text {
  color: inherit !important;
  opacity: 0.7;
}

.field-item-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
}

button.field-item.is-on .field-item-check {
  background-color: #1565c0;
  border-color: #1565c0;
}

button.field-item.is-on .field-item-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#fields-card,
#transform-ops-card,
#transform-preview-card,
#nl-transform-card,
#recipe-transform-card,
#transform-mode-card {
  overflow-anchor: none;
}

#job-ai-unresolved .dest-select-field {
  margin-top: 0.75rem;
}

#job-ai-compose .materialize-textarea {
  min-height: 8rem;
}

.transform-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.15rem 0 0.25rem;
}

.transform-mode-btn {
  border: 1px solid var(--enciva-border);
  border-radius: 4px;
  color: var(--enciva-text);
  text-transform: none;
  letter-spacing: normal;
  padding: 0 14px;
  height: 2.6rem;
  line-height: 2.6rem;
  background: #fff;
}

.transform-mode-btn .material-icons {
  color: var(--enciva-accent);
}

.transform-mode-btn.is-active {
  border-color: var(--enciva-accent);
  background: #e0f7fa;
  color: #006064;
}

.transform-mode-btn.is-active .material-icons {
  color: #006064;
}

.hidden {
  display: none !important;
}

#transform-ops-card code {
  font-size: 0.9em;
}

.compute-error,
.transform-preview-error {
  color: #c62828;
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
}

#btn-add-transformation {
  margin-top: 0.25rem;
}

.transform-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 0.25rem;
}

.recipe-or,
.recipe-or {
  margin: 16px 0 8px;
  font-size: 0.95rem;
}

.recipe-apply-row,
.recipe-apply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.recipe-apply-row select,
.recipe-apply-row select {
  flex: 1 1 220px;
  max-width: 100%;
  height: 2.6rem;
  margin: 0;
}

#recipes-manage-body .recipe-manage-actions,
#destinations-body .recipe-manage-actions,
#sources-body .recipe-manage-actions,
#jobs-body .recipe-manage-actions,
#job-runs-body .recipe-manage-actions {
  white-space: nowrap;
  text-align: right;
}

#job-editor-page,
#job-runs-page {
  max-width: 840px;
  margin: 0;
  width: 100%;
}

body.is-authenticated #destinations-page,
body.is-authenticated #sources-page,
body.is-authenticated #jobs-page,
body.is-authenticated #job-editor-page,
body.is-authenticated #job-runs-page {
  margin: 0;
}

body.is-authenticated .enciva-workspace.container {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
}

body.is-authenticated .enciva-workspace:has(#inspect-panel:not(.hide)) {
  flex: 0 0 auto;
}

body.is-authenticated #inspect-panel,
body.is-authenticated #process-card {
  width: 100%;
  max-width: 1200px;
}

body.is-authenticated #process-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-height: none;
  overflow: visible;
}

body.is-authenticated #process-card:has(#wizard-step-convert:not(.hide)) {
  min-height: 0;
}

body.is-authenticated .wizard-header {
  padding: 0 0 1rem;
}

body.is-authenticated #process-card > .wizard-body {
  flex: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

body.is-authenticated #process-card > .wizard-actions {
  padding: 1.15rem 0 0;
  margin-top: 0.75rem;
  border-top: 1px solid var(--enciva-border);
  background: transparent;
  box-shadow: none;
}

body.is-authenticated #error-card {
  width: 100%;
  max-width: 1080px;
  margin: 0 0 1rem;
}

.job-editor-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
}

.job-review {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
}

.job-review dt {
  margin: 0;
  color: var(--enciva-muted);
  font-weight: 600;
}

.job-review dd {
  margin: 0;
  white-space: pre-wrap;
}

.job-inspect-summary {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--enciva-border, #e0e0e0);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.job-inspect-summary dt {
  color: var(--enciva-muted);
  font-weight: 600;
}


.op-card-incompatible {
  border: 1px solid #ef6c00 !important;
  box-shadow: inset 3px 0 0 #ef6c00;
}

.op-card-incompatible-note {
  color: #e65100;
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.nl-transform-actions {
  margin-top: 0.5rem;
}

.nl-transform-question {
  color: #e65100;
  margin: 0.5rem 0 0;
}

.operations-list {
  margin: 12px 0 16px;
}

.op-card {
  padding: 12px 16px;
  margin: 0 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.op-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-card-order {
  display: flex;
  flex-direction: column;
  margin-right: 4px;
}

.op-card-order .btn-flat {
  padding: 0 4px;
  height: 24px;
  line-height: 24px;
  min-width: 28px;
}

.op-card-order .btn-flat[disabled] {
  opacity: 0.25;
}

.op-icon {
  color: #546e7a;
  font-size: 28px;
}

.op-card-main {
  flex: 1;
  min-width: 0;
}

.op-card-title {
  font-weight: 500;
  font-size: 14px;
  color: #37474f;
}

.op-card-detail {
  font-size: 13px;
  color: #455a64;
  margin-top: 2px;
  word-break: break-word;
}

.op-card-detail .op-arrow {
  vertical-align: middle;
  font-size: 14px;
  color: #78909c;
}

.op-card-actions {
  display: flex;
  flex-shrink: 0;
}

.op-card-actions .btn-flat {
  padding: 0 8px;
}

#transform-preview-card .preview-section {
  margin: 12px 0 4px;
  padding: 0;
  background: transparent;
  border: 0;
}

#transform-preview-card .preview-section h6 {
  margin: 0 0 12px;
  font-weight: 500;
  color: #37474f;
}

#transform-preview-card .preview-section h6 .material-icons {
  vertical-align: middle;
  margin-right: 4px;
}

.preview-summary .summary-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
}

.preview-summary .summary-line .material-icons {
  margin-top: 2px;
}

.preview-schema-diff .schema-section {
  margin-bottom: 12px;
}

.preview-schema-diff .schema-section:last-child {
  margin-bottom: 0;
}

.preview-schema-diff h6 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 6px;
  color: #546e7a;
}

.preview-schema-diff ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.preview-schema-diff li {
  font-size: 13px;
  padding: 2px 0;
}

.removed-list li {
  color: #c62828;
}

.added-list li {
  color: #2e7d32;
}

.preview-warnings {
  margin: 16px 0;
}

.warning-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.warning-item .material-icons {
  flex-shrink: 0;
}

.warning-suggestion {
  font-size: 13px;
  color: #5d4037;
  margin-top: 4px;
}

.preview-row-note {
  font-size: 13px;
  margin: -4px 0 12px;
}

.row-diff-card {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.row-diff-header {
  margin-bottom: 8px;
  font-size: 14px;
}

.row-diff-table {
  font-size: 13px;
  margin: 0;
}

.row-diff-table th {
  font-weight: 500;
  color: #546e7a;
}

.row-diff-table td {
  vertical-align: top;
  word-break: break-word;
}

.diff-before {
  background: #ffebee;
}

.diff-after {
  background: #e8f5e9;
}

.row-diff-card.collapsed .row-diff-extra {
  display: none;
}

#modal-edit-operation,
#modal-job-edit-operation {
  max-width: 42rem;
  min-height: 32rem;
  max-height: 90%;
  overflow-y: visible;
}

#modal-edit-operation.is-visual-op,
#modal-job-edit-operation.is-visual-op {
  width: min(92vw, 76rem) !important;
  max-width: min(92vw, 76rem);
  height: min(90vh, 58rem);
  max-height: 92vh;
  min-height: 36rem;
  top: 4% !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

#modal-edit-operation.is-visual-op .modal-content,
#modal-job-edit-operation.is-visual-op .modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#modal-edit-operation.is-visual-op #edit-op-form,
#modal-job-edit-operation.is-visual-op #job-edit-op-form,
#modal-job-edit-operation.is-visual-op #job-edit-op-body,
#modal-edit-operation.is-visual-op [id$="-op-fields"],
#modal-job-edit-operation.is-visual-op [id$="-op-fields"] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#modal-edit-operation.is-visual-op .modal-footer,
#modal-job-edit-operation.is-visual-op .modal-footer {
  flex: 0 0 auto;
}

#modal-edit-operation.is-visual-op .op-picker,
#modal-job-edit-operation.is-visual-op .op-picker {
  flex: 0 0 auto;
  max-height: 10.5rem;
  overflow-y: auto;
}

#modal-edit-operation.is-visual-op .op-mode-toggle,
#modal-job-edit-operation.is-visual-op .op-mode-toggle,
#modal-edit-operation.is-visual-op .op-crs-note,
#modal-job-edit-operation.is-visual-op .op-crs-note {
  flex: 0 0 auto;
}

.op-clip-editor {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.op-transform-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 18rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.op-transform-map {
  flex: 1 1 auto;
  min-height: 18rem;
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #eceff1;
}

.op-transform-map-status {
  position: absolute;
  top: 8px;
  left: 48px;
  right: 8px;
  z-index: 2;
  font-size: 13px;
  margin: 0;
  pointer-events: none;
}

.op-transform-map-status:empty {
  display: none;
}

.op-transform-map-status.is-error {
  color: #c62828;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
}

.op-draw-tools {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.12);
}

.op-clip-crs {
  margin: 0 0 10px;
}

.op-clip-crs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 720px) {
  #modal-edit-operation.is-visual-op,
  #modal-job-edit-operation.is-visual-op {
    width: 96vw;
    max-width: 96vw;
    height: 94vh;
    top: 2% !important;
  }

  .op-transform-map-wrap,
  .op-transform-map {
    min-height: 16rem;
  }
}

#modal-edit-operation .modal-content,
#modal-job-edit-operation .modal-content {
  overflow: visible;
}

#modal-edit-operation .dropdown-content,
#modal-job-edit-operation .dropdown-content {
  max-height: 20rem;
}

#modal-edit-operation .input-field {
  margin-top: 12px;
}

.op-picker {
  margin: 0 0 12px;
}

.op-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.op-picker-group--geometry {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--enciva-border, #eceff1);
}

.op-picker-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78909c;
  margin: 0 0 6px;
}

.op-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #37474f;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.op-picker-item .material-icons {
  font-size: 20px;
  color: #546e7a;
}

.op-picker-item:hover {
  background: #f5f5f5;
}

.op-picker-item.is-active {
  border-color: var(--enciva-accent, #00838f);
  background: #e0f7fa;
}

.op-picker-item.is-active .material-icons {
  color: #006064;
}

.op-mode-toggle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.op-mode-label {
  font-size: 13px;
  color: #546e7a;
  margin-right: 4px;
}

.op-mode-btn {
  border: 1px solid var(--enciva-border, #cfd8dc);
  border-radius: 4px;
  background: #fff;
  color: #37474f;
  text-transform: none;
  letter-spacing: normal;
  height: 2.2rem;
  line-height: 2.2rem;
  padding: 0 12px;
  cursor: pointer;
}

.op-mode-btn.is-active {
  border-color: var(--enciva-accent, #00838f);
  background: #e0f7fa;
  color: #006064;
}

.op-available-fields {
  margin: 4px 0 10px;
}

.op-available-label {
  font-size: 12px;
  color: #78909c;
  margin-bottom: 6px;
}

.op-field-chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 8px;
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  background: #fff;
  color: #455a64;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.op-field-chip:hover {
  border-color: #00838f;
  color: #006064;
}

.op-crs-note,
.op-help {
  font-size: 13px;
  margin: 0 0 10px;
}

.op-bbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.op-advanced {
  margin: 8px 0 12px;
}

.op-advanced summary {
  cursor: pointer;
  color: #546e7a;
  font-size: 13px;
}

.op-check {
  margin: 8px 0 12px;
}

@media (max-width: 600px) {
  .op-picker-row,
  .op-bbox-grid {
    grid-template-columns: 1fr;
  }
}

.sql-examples {
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.sql-examples code {
  font-size: 0.8rem;
}

.sql-editor-wrap label {
  position: relative;
  transform: none;
  margin-bottom: 0.35rem;
  display: block;
  color: #607d8b;
  font-size: 0.85rem;
}

.sql-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  display: block;
  width: 100%;
  height: 220px;
  min-height: 160px;
  margin: 0;
  padding: 0.6rem 0.7rem;
  overflow: auto;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #fafafa;
  line-height: 1.45;
  white-space: pre;
}

.sql-examples {
  margin-top: 0.45rem;
}

.sql-examples code {
  font-size: 0.82em;
}

.transform-engine-btn {
  border: 1px solid var(--enciva-border);
  border-radius: 4px;
  color: var(--enciva-text);
  text-transform: none;
  letter-spacing: normal;
  padding: 0 14px;
  height: 2.6rem;
  line-height: 2.6rem;
  background: #fff;
}

.transform-engine-btn .material-icons {
  color: var(--enciva-accent);
}

.transform-engine-btn.is-active {
  border-color: var(--enciva-accent);
  background: #e0f7fa;
  color: #006064;
}

.transform-engine-btn.is-active .material-icons {
  color: #006064;
}

#sql-transform-card {
  min-height: 0;
}

.python-editor {
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 13px;
  display: block;
  width: 100%;
  height: 200px;
  max-height: 200px;
  min-height: 140px;
  margin: 0;
  padding: 0.6rem 0.7rem;
  overflow: auto;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #fafafa;
  line-height: 1.4;
}

.python-tabs .indicator {
  background-color: var(--enciva-accent);
}

.python-log {
  max-height: 160px;
  overflow: auto;
  background: #263238;
  color: #eceff1;
  padding: 12px;
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 0.75rem;
}

@media (max-width: 992px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-stage {
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
  .enciva-header {
    padding: 0.7rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    height: auto;
    min-height: 52px;
  }
  body.is-authenticated .enciva-sidebar-toggle {
    display: inline-flex;
  }
  body.is-authenticated .enciva-header {
    padding-left: 0.7rem;
    padding-right: 1.25rem;
  }
  body.is-authenticated .enciva-shell {
    overflow: hidden;
  }
  body.is-authenticated .enciva-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 16;
    flex: none;
    width: var(--enciva-sidebar-width);
    min-width: var(--enciva-sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    box-shadow: none;
  }
  body.is-authenticated.sidebar-open .enciva-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 24px rgba(17, 24, 39, 0.08);
  }
  body.is-authenticated .enciva-sidebar-backdrop {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 15;
    background: rgba(17, 24, 39, 0.28);
    border: 0;
  }
  body.is-authenticated.sidebar-open .enciva-sidebar-backdrop {
    display: block;
  }
  body.is-authenticated .enciva-main {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  body.is-authenticated .home-stage {
    padding: 0;
  }
  .app-data-table th,
  .app-data-table td {
    padding-right: 0.7rem;
  }
  #jobs-page .app-data-table th:nth-child(2),
  #jobs-page .app-data-table td:nth-child(2),
  #jobs-page .app-data-table th:nth-child(3),
  #jobs-page .app-data-table td:nth-child(3) {
    white-space: normal;
  }
  .import-source-row {
    flex-wrap: wrap;
  }
  .import-source-btn {
    min-width: calc(50% - 0.4rem);
  }
  .preview-layout {
    flex-direction: column;
  }
  .preview-map {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .wizard-stepper > li:not(:last-child)::after {
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    top: 13px;
  }
  .wizard-num {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  .wizard-label {
    font-size: 0.7rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --enciva-content-max: 1320px;
  }

  .home-layout {
    gap: 4.75rem;
  }

  .upload-panel {
    padding: 1.45rem;
    border-radius: 16px;
  }

  .dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 15.5rem;
    padding: 2.6rem 1.5rem 2.1rem;
    border-radius: 12px;
  }

  .dropzone .material-icons {
    font-size: 52px;
  }

  .dropzone-title {
    margin: 0.7rem 0 0.25rem;
    font-size: 1.12rem;
  }

  .dropzone-or {
    margin: 0.15rem 0 1rem;
    font-size: 0.95rem;
  }

  .home-choose-btn {
    height: 46px;
    line-height: 46px;
    padding: 0 1.55rem;
    font-size: 1rem;
    border-radius: 9px;
  }

  .import-from-rule {
    gap: 0.85rem;
    margin: 1.15rem 0 1.05rem;
    font-size: 0.88rem;
  }

  .import-source-row {
    gap: 0.7rem;
  }

  .import-source-btn {
    height: 48px;
    font-size: 0.96rem;
    gap: 0.45rem;
    border-radius: 9px;
  }

  .import-source-btn .material-icons {
    font-size: 20px;
  }

  body.is-authenticated .dropzone {
    min-height: 11.25rem;
    padding: 1.85rem 1.25rem 1.5rem;
  }

  body.is-authenticated .dropzone .material-icons {
    font-size: 42px;
  }
}

@media (min-width: 1800px) {
  :root {
    --enciva-content-max: 1400px;
  }

  .home-layout {
    gap: 5.25rem;
  }

  .upload-panel {
    padding: 1.6rem;
  }

  .dropzone {
    min-height: 17rem;
    padding: 3rem 1.6rem 2.4rem;
  }

  .dropzone .material-icons {
    font-size: 54px;
  }

  .dropzone-title {
    margin: 0.8rem 0 0.28rem;
    font-size: 1.18rem;
  }

  .dropzone-or {
    margin: 0.2rem 0 1.1rem;
    font-size: 1rem;
  }

  .home-choose-btn {
    height: 50px;
    line-height: 50px;
    padding: 0 1.7rem;
    font-size: 1.05rem;
  }

  .import-from-rule {
    margin: 1.25rem 0 1.15rem;
    font-size: 0.92rem;
  }

  .import-source-row {
    gap: 0.8rem;
  }

  .import-source-btn {
    height: 52px;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .import-source-btn .material-icons {
    font-size: 22px;
  }

  body.is-authenticated .dropzone {
    min-height: 11.25rem;
    padding: 1.85rem 1.25rem 1.5rem;
  }

  body.is-authenticated .dropzone .material-icons {
    font-size: 42px;
  }
}

/* Pipeline Designer */
body.designer-open #dest-type-row,
body.designer-open #dest-postgis-btn,
body.designer-open #dest-sqlserver-btn,
body.designer-open #dest-mysql-btn,
body.designer-open #dest-oracle-btn,
body.designer-open #dest-bigquery-btn,
body.designer-open #dest-snowflake-btn,
body.designer-open #dest-s3-btn,
body.designer-open #dest-sftp-btn,
body.designer-open #dest-hub-btn,
body.designer-open #dest-geoserver-btn,
body.designer-open #dest-download-meta,
body.designer-open #dest-anon-label,
body.designer-open #url-cancel-btn,
body.designer-open #fs-cancel-btn,
body.designer-open #s3-cancel-btn,
body.designer-open #hub-cancel-btn,
body.designer-open #fs-saved-cancel-btn {
  display: none !important;
}

body.is-authenticated.designer-open .enciva-main {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pipeline-designer {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--enciva-bg);
}

.pipeline-designer:not(.hide) {
  display: flex;
}

.pd-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.15rem 0.6rem;
  background: #fff;
  border-bottom: 1px solid var(--enciva-border);
  flex: 0 0 auto;
}

.pd-toolbar-copy {
  min-width: 0;
}

.pd-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pd-subtitle {
  margin: 0.2rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pd-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.pd-toolbar-actions .btn,
.pd-toolbar-actions .btn-flat {
  margin: 0;
  height: 36px;
  line-height: 36px;
  font-size: 0.82rem;
}

.pd-toolbar-actions .btn .material-icons,
.pd-toolbar-actions .btn-flat .material-icons {
  font-size: 18px;
}

.pd-classic-btn {
  color: var(--enciva-muted) !important;
}

.pd-clear-btn {
  color: var(--enciva-muted) !important;
  font-weight: 500;
  box-shadow: none !important;
  background: transparent !important;
  text-transform: none;
}

.pd-clear-btn:hover,
.pd-clear-btn:focus {
  color: #374151 !important;
  background: #f3f4f6 !important;
}

.pd-save-job-btn {
  color: #374151 !important;
  font-weight: 600;
  text-transform: none;
}

.pd-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.25rem 0.55rem;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
}

.pd-error-actions.hide {
  display: none;
}

.pd-or-manual {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.95rem;
  color: var(--enciva-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-or-manual::before,
.pd-or-manual::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--enciva-border);
}

.pd-error {
  margin: 0;
  padding: 0.55rem 1.25rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.88rem;
  border-bottom: 1px solid #fecaca;
}

.pd-progress {
  padding: 0.45rem 1.25rem 0.55rem;
  background: #fff;
  border-bottom: 1px solid var(--enciva-border);
}

.pd-progress .progress {
  margin: 0.35rem 0 0.4rem;
  height: 4px;
  background: rgba(0, 160, 171, 0.12);
}

.pd-progress .progress .indeterminate {
  background: var(--enciva-accent);
}

.pd-progress p {
  margin: 0;
  color: var(--enciva-muted);
  font-size: 0.82rem;
}

.pd-workspace {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  position: relative;
}

.pd-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.component-icon--source { --component-icon-color: var(--component-source); }
.component-icon--url { --component-icon-color: var(--component-url); }
.component-icon--http { --component-icon-color: var(--component-http); }
.component-icon--s3 { --component-icon-color: var(--component-s3); }
.component-icon--featureserver { --component-icon-color: var(--component-featureserver); }
.component-icon--qfield { --component-icon-color: var(--component-qfield); }
.component-icon--mergin { --component-icon-color: var(--component-mergin); }
.component-icon--transform { --component-icon-color: var(--component-transform); }
.component-icon--python { --component-icon-color: var(--component-python); }
.component-icon--convert { --component-icon-color: var(--component-convert); }
.component-icon--sync { --component-icon-color: var(--component-sync); }
.component-icon--download { --component-icon-color: var(--component-download); }
.component-icon--postgis { --component-icon-color: var(--component-postgis); }
.component-icon--sqlserver { --component-icon-color: var(--component-sqlserver); }
.component-icon--mysql { --component-icon-color: var(--component-mysql); }
.component-icon--oracle { --component-icon-color: var(--component-oracle); }
.component-icon--duckdb { --component-icon-color: var(--component-duckdb); }
.component-icon--bigquery { --component-icon-color: var(--component-bigquery); }
.component-icon--snowflake { --component-icon-color: var(--component-snowflake); }
.component-icon--sftp { --component-icon-color: var(--component-sftp); }
.component-icon--hub { --component-icon-color: var(--component-hub); }
.component-icon--geoserver { --component-icon-color: var(--component-geoserver); }
.component-icon--geonode { --component-icon-color: var(--component-geonode); }
.component-icon--webhook { --component-icon-color: var(--component-webhook); }

.component-icon--source,
.component-icon--url,
.component-icon--http,
.component-icon--s3,
.component-icon--featureserver,
.component-icon--qfield,
.component-icon--mergin,
.component-icon--transform,
.component-icon--python,
.component-icon--convert,
.component-icon--sync,
.component-icon--download,
.component-icon--postgis,
.component-icon--sqlserver,
.component-icon--mysql,
.component-icon--oracle,
.component-icon--duckdb,
.component-icon--bigquery,
.component-icon--snowflake,
.component-icon--sftp,
.component-icon--hub,
.component-icon--geoserver,
.component-icon--geonode,
.component-icon--webhook {
  color: var(--component-icon-color);
}

.pd-palette {
  position: relative;
  z-index: 2;
  flex: 0 0 188px;
  width: 188px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--enciva-border);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.pd-palette-toggle {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem 0.45rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
}

.pd-palette-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.45rem 0.85rem;
}

.pd-palette.is-collapsed .pd-palette-body {
  display: none;
}

.pd-palette-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pd-palette-label {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0.2rem 0 0.05rem;
  padding: 0.5rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  color: #374151;
  text-align: left;
  cursor: pointer;
}

.pd-palette-section:first-child .pd-palette-label {
  margin-top: 0;
}

.pd-palette-label:hover,
.pd-palette-label:focus-visible {
  color: #111827;
  background: #f3f4f6;
}

.pd-palette-label:focus {
  outline: none;
}

.pd-palette-label:focus-visible {
  outline: 1px solid #d1d5db;
  outline-offset: 1px;
  border-radius: 6px;
}

.pd-palette-chevron {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-right: 0.3rem;
  line-height: 16px;
  color: currentColor;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 180ms ease;
}

.pd-palette-section.is-collapsed .pd-palette-chevron {
  transform: rotate(-90deg);
}

.pd-palette-section-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 180ms ease;
}

.pd-palette-section.is-collapsed .pd-palette-section-panel {
  grid-template-rows: 0fr;
}

.pd-palette-section-clip {
  min-height: 0;
  overflow: hidden;
}

.pd-palette-section:not(.is-collapsed) .pd-palette-section-clip {
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .pd-palette-chevron,
  .pd-palette-section-panel {
    transition: none;
  }
}

.pd-palette-items {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.pd-palette-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: grab;
}

.pd-palette-item .material-icons {
  font-size: 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  color: var(--component-icon-color, #6b7280);
}

.pd-palette-item:hover,
.pd-palette-item:focus {
  background: #f8fafc;
  color: var(--enciva-text);
}

.pd-palette-item.is-present {
  background: rgba(0, 160, 171, 0.08);
  color: var(--enciva-accent);
  font-weight: 600;
}

.pd-palette-item.is-present .material-icons {
  color: var(--component-icon-color, var(--enciva-accent));
}

.pd-palette-item.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pd-palette-item.is-disabled .material-icons {
  filter: grayscale(0.45);
  color: var(--component-icon-color, #9ca3af);
}

.pd-palette-hint {
  margin: 0.85rem 0.45rem 0.15rem;
  color: #9ca3af;
  font-size: 0.72rem;
  line-height: 1.4;
}

.pd-canvas {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  overflow: auto;
  background-color: #f7f8fa;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: grab;
}

.pd-canvas:active {
  cursor: grabbing;
}

.pd-world {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  transform-origin: 0 0;
}

.pd-edges {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}

.pd-edge-path {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
}

.pd-edge-source {
  stroke: #3b82f6;
}

.pd-edge-transform,
.pd-edge-convert,
.pd-edge-sync {
  stroke: #7c3aed;
}

.pd-edge-python {
  stroke: #0f766e;
}

.pd-edge-destination {
  stroke: #16a34a;
}

.pd-nodes {
  position: relative;
  min-height: 420px;
}

.pd-node {
  position: absolute;
  width: 176px;
  height: 192px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0.7rem 0;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  cursor: pointer;
  user-select: none;
  overflow: visible;
}

.pd-node-source {
  border-color: #93c5fd;
}

.pd-node-transform,
.pd-node-convert,
.pd-node-sync {
  border-color: #c4b5fd;
}

.pd-node-python {
  border-color: #5eead4;
}

.pd-node-destination {
  border-color: #86efac;
}

.pd-node:hover {
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.pd-node.is-selected {
  box-shadow: 0 0 0 3px rgba(0, 160, 171, 0.08);
}

.pd-node-source.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.pd-node-transform.is-selected,
.pd-node-convert.is-selected,
.pd-node-sync.is-selected {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.pd-node-python.is-selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.pd-node-destination.is-selected {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.pd-node-socket {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.pd-node-socket-in {
  left: -7px;
}

.pd-node-socket-out {
  right: -7px;
}

.pd-node-source .pd-node-socket {
  background: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.pd-node-transform .pd-node-socket,
.pd-node-convert .pd-node-socket,
.pd-node-sync .pd-node-socket {
  background: #7c3aed;
  box-shadow: 0 0 0 1px #7c3aed;
}

.pd-node-python .pd-node-socket {
  background: #0f766e;
  box-shadow: 0 0 0 1px #0f766e;
}

.pd-node-destination .pd-node-socket {
  background: #16a34a;
  box-shadow: 0 0 0 1px #16a34a;
}

.pd-node-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c4c9d1;
  font-size: 15px;
  line-height: 16px;
  cursor: pointer;
  z-index: 2;
}

.pd-node-remove:hover,
.pd-node-remove:focus {
  background: #f3f4f6;
  color: #111827;
}

.pd-node-type {
  display: block;
  width: 100%;
  margin: 0;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: none;
}

.pd-node-type span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-node-source .pd-node-type {
  color: #2563eb;
}

.pd-node-transform .pd-node-type,
.pd-node-convert .pd-node-type,
.pd-node-sync .pd-node-type {
  color: #7c3aed;
}

.pd-node-python .pd-node-type {
  color: #0f766e;
}

.pd-node-destination .pd-node-type {
  color: #16a34a;
}

.pd-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin: 0.45rem auto 0.4rem;
  border-radius: 50%;
  background: #f3f4f6;
}

.pd-node-icon .material-icons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  color: var(--component-icon-color, #6b7280);
}

.pd-node-source .pd-node-icon {
  background: #eff6ff;
}

.pd-node-source .pd-node-icon .material-icons {
  color: var(--component-icon-color, #2563eb);
}

.pd-node-transform .pd-node-icon,
.pd-node-convert .pd-node-icon,
.pd-node-sync .pd-node-icon {
  background: #f5f3ff;
}

.pd-node-python .pd-node-icon {
  background: #f0fdfa;
}

.pd-node-transform .pd-node-icon .material-icons,
.pd-node-convert .pd-node-icon .material-icons,
.pd-node-sync .pd-node-icon .material-icons {
  color: var(--component-icon-color, #7c3aed);
}

.pd-node-python .pd-node-icon .material-icons {
  color: var(--component-icon-color, #3776ab);
}

.pd-node-destination .pd-node-icon {
  background: #f0fdf4;
}

.pd-node-destination .pd-node-icon .material-icons {
  color: var(--component-icon-color, #16a34a);
}

.pd-node-title {
  margin: 0;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--enciva-text);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-node-meta {
  margin: 0.12rem 0 0;
  max-width: 100%;
  color: var(--enciva-muted);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-node-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: calc(100% + 1.4rem);
  margin: auto -0.7rem 0;
  padding: 0.4rem 0.5rem 0.45rem;
  border-top: 1px solid #f3f4f6;
  border-radius: 0 0 10px 10px;
  background: #fafbfc;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.pd-node-status-mark {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

.pd-node.is-ready .pd-node-status,
.pd-node.is-ok .pd-node-status {
  color: #16a34a;
  background: #f0fdf4;
  border-top-color: #dcfce7;
}

.pd-node.is-running .pd-node-status {
  color: var(--enciva-accent);
  background: rgba(0, 160, 171, 0.06);
  border-top-color: rgba(0, 160, 171, 0.16);
}

.pd-node.is-error .pd-node-status {
  color: #dc2626;
  background: #fef2f2;
  border-top-color: #fecaca;
}

.pd-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  pointer-events: none;
  text-align: center;
  padding: 2rem;
}

.pd-empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
}

.pd-empty-copy {
  margin: 0.15rem 0 0;
  max-width: 22rem;
  color: var(--enciva-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pd-empty-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: 28rem;
  pointer-events: auto;
}

.pd-empty-source {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.pd-empty-source:hover,
.pd-empty-source:focus {
  background: #f8fafc;
  color: var(--enciva-accent);
}

.pd-canvas.is-dragover {
  outline: 2px dashed var(--enciva-accent);
  outline-offset: -8px;
  background-color: rgba(0, 160, 171, 0.04);
}

.pd-props {
  flex: 0 0 320px;
  width: 320px;
  max-width: 34vw;
  background: #fff;
  border-left: 1px solid var(--enciva-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  container-type: inline-size;
  container-name: pd-inspector;
}

.pd-props.is-wide {
  flex: 0 0 440px;
  width: 440px;
  max-width: 48vw;
}

.pd-props[hidden] {
  display: none !important;
}

.pd-props-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid var(--enciva-border);
  flex: 0 0 auto;
}

.pd-props-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pd-props-close {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.pd-props-close:hover,
.pd-props-close:focus {
  background: #f3f4f6;
  color: var(--enciva-text);
}

.pd-props-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.9rem 1rem 1.5rem;
}

.pd-props-body .wizard-pane,
.pd-props-body .wizard-section,
.pd-props-body .url-import-panel,
.pd-props-body .job-step {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.pd-props-body .card-title {
  display: none;
}

.pd-props-body .url-import-panel {
  border-top: 0;
  padding-top: 0;
}

.pd-props-body .dest-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Inspector is ~300–440px. Ignore Materialize m6/m3 viewport columns so Host,
   Database, Username, and Password stay full width. Port + SSL may share a row. */
.pd-props-body .dest-form-row > [class*="col"] {
  float: none;
  box-sizing: border-box;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  left: auto;
  right: auto;
  flex: 1 1 100%;
  max-width: 100%;
  width: 100%;
}

.pd-props-body .dest-form-row > .col.s6 {
  flex: 1 1 calc(50% - 0.4rem);
  max-width: calc(50% - 0.375rem);
  width: auto;
}

.pd-props-body .dest-form-row > .input-field,
.pd-props-body .dest-form-row > .dest-select-field {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.pd-props-body .dest-select-field {
  min-width: 0;
}

.pd-props-body .input-field {
  margin: 0 0 0.9rem;
}

.pd-props-body .input-field input,
.pd-props-body .input-field textarea,
.pd-props-body select.browser-default,
.pd-props-body input[type="text"],
.pd-props-body input[type="url"],
.pd-props-body input[type="password"],
.pd-props-body input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  margin: 0;
  padding: 0 0.65rem;
  border: 1px solid var(--enciva-border);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.pd-props-body .url-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0.1rem 0 0.85rem;
}

.pd-props-body .dest-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
}

.pd-props-body .dest-type-option {
  position: relative;
  margin: 0;
  padding-left: 0;
  height: auto;
}

.pd-props-body .dest-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-props-body .dest-type-option span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.7rem;
  border: 1px solid var(--enciva-border);
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 30px;
}

.pd-props-body .dest-type-option span::before,
.pd-props-body .dest-type-option span::after {
  display: none !important;
}

.pd-props-body .dest-type-option input:checked + span {
  border-color: var(--enciva-accent);
  background: rgba(0, 160, 171, 0.08);
  color: var(--enciva-accent);
}

.pd-props-hint {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
  color: var(--enciva-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pd-ai-import-actions,
.pd-ai-import-plan {
  margin: 0.75rem 0 0.5rem;
}

.pd-ai-import-plan ul {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.15rem;
}

.pd-python-editor {
  display: block;
  width: 100%;
  min-height: 280px;
  height: 320px;
  max-height: 60vh;
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--enciva-border);
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.pd-python-log {
  max-height: 140px;
  overflow: auto;
  margin: 0.75rem 0 0;
  padding: 12px;
  background: #263238;
  color: #eceff1;
  font-size: 12px;
  white-space: pre-wrap;
  border-radius: 8px;
}

.pd-summary-dl {
  margin: 0 0 1rem;
}

.pd-summary-dl dt {
  margin: 0.55rem 0 0.1rem;
  color: var(--enciva-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pd-summary-dl dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pd-props-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pd-field {
  margin: 0 0 0.9rem;
}

.pd-field-label,
.pd-field > label {
  display: block;
  margin: 0 0 0.28rem;
  color: var(--enciva-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pd-field input[type="text"],
.pd-field input[type="url"],
.pd-field select {
  display: block;
  width: 100%;
  height: 2.35rem;
  margin: 0;
  padding: 0 0.65rem;
  border: 1px solid var(--enciva-border);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.pd-mode-row {
  display: flex;
  gap: 0.2rem;
}

.pd-mode-btn {
  flex: 1 1 0;
  margin: 0;
  height: 32px;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.pd-mode-btn:hover,
.pd-mode-btn:focus {
  background: #f8fafc;
}

.pd-mode-btn.is-active {
  background: rgba(0, 160, 171, 0.08);
  color: var(--enciva-accent);
  font-weight: 600;
}

.pd-mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--enciva-border);
  border-radius: 0;
}

.pd-stat-row:last-of-type {
  margin-bottom: 0.85rem;
}

.pd-stat-value {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.pd-stat-row .btn-flat {
  margin: 0;
  height: 32px;
  line-height: 32px;
}

.pd-props-body #transform-ops-card > .wizard-section-title,
.pd-props-body #transform-ops-card > .wizard-hint {
  display: none;
}

.pd-props-body #operations-list:not(:has(.op-card)) {
  display: none;
}

.pd-props-backdrop {
  display: none;
}

.pd-modal {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem 1.5rem;
  background: rgba(17, 24, 39, 0.28);
}

.pd-modal.hide {
  display: none !important;
}

.pd-modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.3rem 1.1rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.pd-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.pd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.create-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.create-header-copy {
  min-width: 0;
}

.create-header-actions {
  flex: 0 0 auto;
}

.create-header-actions .btn-flat {
  margin: 0;
}

.job-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-editor-header .wizard-section-title {
  margin: 0;
}

.job-editor-header .js-open-canvas {
  flex: 0 0 auto;
  margin: 0;
}

.pd-job-meta {
  margin: 0.15rem 0 0;
  color: var(--enciva-muted);
  font-size: 0.8rem;
}

@media (max-width: 1600px) {
  .pd-props {
    flex: 0 0 300px;
    width: 300px;
    max-width: 32vw;
  }
}

@media (max-width: 1100px) {
  .pd-props {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: min(320px, 92vw);
    max-width: 92vw;
    box-shadow: -12px 0 28px rgba(17, 24, 39, 0.08);
  }
  .pd-props-backdrop:not([hidden]) {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    background: rgba(17, 24, 39, 0.18);
  }
}

@media (max-width: 720px) {
  .pd-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-toolbar-actions {
    justify-content: flex-start;
  }
  .pd-palette {
    flex-basis: 44px;
    width: 44px;
  }
  .pd-palette:not(.is-collapsed) {
    flex-basis: 188px;
    width: 188px;
  }
  .pd-palette.is-collapsed .pd-palette-toggle {
    padding: 0.65rem 0.2rem;
    writing-mode: vertical-rl;
    text-align: center;
  }
}

.spatial-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.4);
}

.spatial-preview-modal.hide {
  display: none !important;
}

.spatial-preview-card {
  display: flex;
  flex-direction: column;
  width: min(1120px, 96vw);
  height: min(780px, 92vh);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.2);
  overflow: hidden;
}

.spatial-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem 0.55rem;
  border-bottom: 1px solid var(--enciva-border, #e5e7eb);
}

.spatial-preview-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.spatial-preview-close {
  border: 0;
  background: transparent;
  color: #546e7a;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
}

.spatial-preview-close:hover {
  background: #eceff1;
}

.spatial-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1.1rem;
}

.spatial-preview-toggle {
  display: inline-flex;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  overflow: hidden;
}

.spatial-preview-toggle button {
  border: 0;
  background: #fff;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.spatial-preview-toggle button[aria-pressed="true"] {
  background: #1565c0;
  color: #fff;
}

.spatial-preview-count {
  margin: 0 0 0 auto;
  color: #546e7a;
  font-size: 0.92rem;
}

.spatial-preview-layer-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.spatial-preview-layer-wrap select {
  height: 2rem;
  margin: 0;
}

.spatial-preview-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  overflow: hidden;
  background: #e3eef5;
}

.spatial-preview-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 1.1rem;
  gap: 0.75rem;
}

.spatial-preview-feature {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  width: 300px;
  min-width: 280px;
  max-width: 340px;
  min-height: 0;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.spatial-preview-feature.hide {
  display: none !important;
}

.spatial-preview-feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem 0.45rem;
  border-bottom: 1px solid #eceff1;
}

.spatial-preview-feature-mode {
  margin: 0 0 0.2rem;
  color: #546e7a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spatial-preview-feature-mode[data-mode="result"] {
  color: #1565c0;
}

.spatial-preview-feature-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #263238;
}

.spatial-preview-feature-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #546e7a;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.spatial-preview-feature-close:hover {
  background: #eceff1;
}

.spatial-preview-feature-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.15rem 0.9rem 0.9rem;
}

.spatial-preview-feature-fields dt {
  color: #607d8b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 0.7rem;
  word-break: break-word;
}

.spatial-preview-feature-fields dd {
  margin: 0.15rem 0 0;
  color: #263238;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.spatial-preview-feature-fields dd.is-empty {
  color: #90a4ae;
}

.spatial-preview-feature-empty {
  margin-top: 0.7rem;
}

@media (max-width: 720px) {
  .spatial-preview-body {
    position: relative;
  }
  .spatial-preview-feature {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    width: min(300px, calc(100% - 16px));
    min-width: 0;
    max-width: none;
    flex: none;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
  }
}

.spatial-preview-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.spatial-preview-busy,
.spatial-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  color: #37474f;
  z-index: 2;
}

.spatial-preview-crs,
.preview-crs-needed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  color: #37474f;
}

.spatial-preview-crs-title,
.preview-crs-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #263238;
}

.spatial-preview-crs-detail,
.preview-crs-detail {
  margin: 0;
  max-width: 28rem;
  color: #546e7a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.spatial-preview-crs-row,
.preview-crs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.spatial-preview-crs-row select,
.preview-crs-row select {
  min-width: 16rem;
  height: 2.4rem;
  margin: 0;
}

.spatial-preview-crs-row input,
.preview-crs-row input {
  min-width: 10rem;
  height: 2.4rem;
  margin: 0;
  padding: 0 0.6rem;
}

.spatial-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.85rem;
}

.spatial-preview-status {
  margin: 0;
  color: #546e7a;
  font-size: 0.9rem;
}

.spatial-preview-status.is-error {
  color: #c62828;
}

body.spatial-preview-open {
  overflow: hidden;
}

.wh-headers {
  margin: 0.5rem 0;
}
.wh-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.4rem;
}
.wh-advanced {
  margin: 0.75rem 0 1rem;
}
.wh-advanced summary {
  cursor: pointer;
  color: #546e7a;
  font-size: 0.9rem;
}
.job-notify-fields {
  margin: 0 0 1rem 1.5rem;
}
.pd-notify {
  margin-top: 0.75rem;
}
.pd-notify input[type="email"],
.pd-notify select {
  width: 100%;
  margin-bottom: 0.5rem;
}

.pd-http-options {
  margin: 0.85rem 0 0.4rem;
}
.pd-http-options summary {
  cursor: pointer;
  color: var(--enciva-muted);
  font-size: 0.88rem;
}
.pd-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.35rem 0 0.4rem;
}
.pd-kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}
.pd-kv-row input {
  margin: 0;
  width: 100%;
}
.pd-http-options textarea {
  width: 100%;
  min-height: 8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
