:root {
  --smart1-primary: #0b5cab;
  --smart1-primary-dark: #08467f;
  --smart1-accent: #00a3ff;
  --smart1-bg: #f5f8fa;
  --smart1-text: #181c32;
  --smart1-muted: #7e8299;
  --smart1-border: #eff2f5;
}

* { box-sizing: border-box; }

body.smart1-metronic-body,
body.smart1-app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--smart1-bg);
  color: var(--smart1-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

code {
  background: #f1f3f8;
  color: #3f4254;
  border-radius: .475rem;
  padding: .15rem .45rem;
  word-break: break-word;
}

.min-vh-100 { min-height: 100vh; }
.flex-root { flex: 1; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-5 { gap: 1.25rem; }
.gap-8 { gap: 2rem; }

/* Basis-UI-Komponenten für das smart1 Backend. */
.container-xxl { width: min(100%, 1320px); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.card { background: #fff; border: 1px solid var(--smart1-border); border-radius: 1.25rem; box-shadow: 0 0 20px rgba(76, 87, 125, .05); }
.card-header { min-height: 68px; padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--smart1-border); }
.card-body { padding: 1.75rem; }
.card-title { margin: 0; }
.card-flush { box-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .625rem; min-height: 40px; padding: .65rem 1rem; font-weight: 700; cursor: pointer; }
.btn-sm { min-height: 34px; padding: .45rem .8rem; font-size: .875rem; }
.btn-lg { min-height: 48px; padding: .85rem 1.25rem; }
.btn-primary { background: var(--smart1-primary); color: #fff; }
.btn-primary:hover { background: var(--smart1-primary-dark); color: #fff; }
.btn-light { background: #f5f8fa; color: #3f4254; }
.btn-light-primary { background: #eef6ff; color: var(--smart1-primary); }
.btn-light-danger { background: #fff5f8; color: #d9214e; }
.badge { display: inline-flex; align-items: center; border-radius: .475rem; padding: .35rem .65rem; font-weight: 700; font-size: .82rem; }
.badge-light-primary { background: #eef6ff; color: var(--smart1-primary); }
.badge-light-success { background: #e8fff3; color: #50cd89; }
.badge-light-warning { background: #fff8dd; color: #f1bc00; }
.badge-light-danger { background: #fff5f8; color: #d9214e; }
.badge-light-info { background: #f1faff; color: #009ef7; }
.badge-light-secondary { background: #f5f8fa; color: #7e8299; }
.alert { border-radius: .95rem; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.alert-primary { background: #eef6ff; color: #0b5cab; }
.alert-success { background: #e8fff3; color: #0f7b47; }
.alert-warning { background: #fff8dd; color: #8a6300; }
.alert-danger { background: #fff5f8; color: #a61b43; }
.form-control { width: 100%; min-height: 48px; border: 1px solid #e4e6ef; border-radius: .65rem; padding: .75rem 1rem; background: #f9f9f9; font: inherit; }
.form-control:focus { outline: none; border-color: var(--smart1-accent); background: #fff; box-shadow: 0 0 0 .2rem rgba(0, 163, 255, .08); }
.form-label { display: block; margin-bottom: .5rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .95rem .75rem; border-bottom: 1px dashed #e4e6ef; vertical-align: top; }
.table thead th { text-align: left; }
.table-responsive { width: 100%; overflow-x: auto; }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-muted, .text-gray-500 { color: var(--smart1-muted); }
.text-gray-600 { color: #5e6278; }
.text-gray-900 { color: var(--smart1-text); }
.text-danger { color: #d9214e; }
.text-white { color: #fff; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: 800; }
.fs-7 { font-size: .85rem; }
.fs-6 { font-size: 1rem; }
.fs-5 { font-size: 1.15rem; }
.fs-4 { font-size: 1.25rem; }
.fs-2hx { font-size: clamp(2rem, 4vw, 3rem); }
.w-100 { width: 100%; }
.w-200px { width: 200px; }
.w-250px { width: 250px; }
.mw-650px { max-width: 650px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-11 { margin-bottom: 2.75rem; }
.mt-2 { margin-top: .5rem; }
.mt-5 { margin-top: 1.25rem; }
.ms-1 { margin-left: .25rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }
.py-15 { padding-top: 3.75rem; padding-bottom: 3.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.d-grid { display: grid; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-center { align-items: center; justify-content: center; }
.h-100 { height: 100%; }

.smart1-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, var(--smart1-primary), var(--smart1-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 12px 26px rgba(11, 92, 171, .25);
}
.smart1-brand-icon.small {
  width: 42px;
  height: 42px;
  border-radius: .85rem;
  font-size: .95rem;
}

.smart1-auth-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 163, 255, .18), transparent 24rem),
    radial-gradient(circle at 90% 90%, rgba(11, 92, 171, .14), transparent 24rem),
    #f5f8fa;
}
.smart1-auth-card {
  background: #fff;
  border: 1px solid var(--smart1-border);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 18px 48px rgba(76, 87, 125, .12);
}
.smart1-auth-side {
  background: linear-gradient(135deg, #0b5cab 0%, #072c59 100%);
}
.smart1-auth-side-card {
  max-width: 560px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}

.smart1-topbar {
  height: 74px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.smart1-content {
  padding: 2rem 0 3rem;
}
.smart1-hero-card {
  background:
    radial-gradient(circle at top right, rgba(0, 163, 255, .14), transparent 22rem),
    #fff;
}

.smart1-aianswer-body {
  background: #f5f8fa;
}
.smart1-iframe-page {
  padding: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}
.smart1-iframe-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 163, 255, .16), transparent 20rem),
    #fff;
}
.smart1-items-table {
  max-height: 430px;
  overflow: auto;
}
.preview-cell {
  max-width: 520px;
  white-space: pre-wrap;
  word-break: break-word;
}

.smart1-status-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
}
.smart1-status-circle.success {
  color: #0f7b47;
  background: #e8fff3;
}
.smart1-status-circle.danger {
  color: #d9214e;
  background: #fff5f8;
}

@media (min-width: 992px) {
  .flex-lg-row { flex-direction: row; }
  .flex-lg-row-fluid { flex: 1 0 0; }
  .w-lg-50 { width: 50%; }
  .w-lg-500px { width: 500px; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .align-items-lg-end { align-items: flex-end; }
  .p-lg-15 { padding: 3.75rem; }
}

@media (min-width: 768px) {
  .flex-md-row { flex-direction: row; }
  .align-items-md-end { align-items: flex-end; }
  .px-md-15 { padding-left: 3.75rem; padding-right: 3.75rem; }
}

@media (max-width: 991.98px) {
  .smart1-auth-side { min-height: 260px; }
  .smart1-topbar { height: auto; padding: .75rem 0; }
  .smart1-topbar .container-xxl { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media (max-width: 767.98px) {
  .container-xxl { padding-left: 1rem; padding-right: 1rem; }
  .smart1-content { padding: 1rem 0 2rem; }
  .smart1-auth-card { padding: 1.5rem; }
  .card-header { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem 1.25rem; }
}


/* AIAnswer generation UI */
.smart1-aianswer-page .smart1-progress {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--smart1-border);
}

.smart1-aianswer-page .smart1-progress-bar {
  height: 100%;
  background: var(--smart1-primary);
  transition: width .25s ease;
}

.smart1-aianswer-page .smart1-answer-body {
  min-height: 320px;
  white-space: pre-wrap;
}

.smart1-aianswer-page .input-group {
  display: flex;
  width: 100%;
}

.smart1-aianswer-page .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.smart1-aianswer-page .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cursor-pointer {
  cursor: pointer;
}


.smart1-json-log {
  display: block;
  max-height: 520px;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--smart1-border);
  border-radius: .85rem;
  background: #0f172a;
  color: #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .82rem;
  line-height: 1.45;
}

.smart1-log-detail {
  border: 1px solid var(--smart1-border);
  border-radius: .95rem;
  padding: 1rem;
  background: #fff;
}

.smart1-log-detail summary {
  cursor: pointer;
}


/* Mature backend shell */
.smart1-public-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 163, 255, .14), transparent 24rem),
    radial-gradient(circle at 90% 90%, rgba(11, 92, 171, .12), transparent 22rem),
    var(--smart1-bg);
}
.smart1-public-card {
  width: min(100%, 520px);
  padding: 3rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--smart1-border);
  box-shadow: 0 24px 70px rgba(76, 87, 125, .14);
  text-align: center;
}
.smart1-public-card h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}
.smart1-public-card p {
  margin: 0;
  color: var(--smart1-muted);
}
.smart1-public-actions {
  margin-top: 2rem;
}

.smart1-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  background: var(--smart1-bg);
}
.smart1-auth-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
}
.smart1-auth-visual {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 163, 255, .28), transparent 18rem),
    linear-gradient(135deg, #062a54 0%, #0b5cab 100%);
}
.smart1-auth-visual-card {
  width: min(100%, 620px);
  padding: 3rem;
  border-radius: 1.5rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.smart1-auth-visual-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.smart1-auth-visual-card p {
  color: rgba(255,255,255,.78);
  font-size: 1.125rem;
  margin: 0;
}
.smart1-auth-meta {
  margin-top: 1.25rem;
  color: var(--smart1-muted);
  font-size: .85rem;
  text-align: center;
}

.smart1-backend-shell {
  min-height: 100vh;
  display: flex;
  background: var(--smart1-bg);
}
.smart1-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 292px;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e5e7eb;
  box-shadow: 20px 0 60px rgba(15, 23, 42, .14);
}
.smart1-sidebar-brand {
  min-height: 82px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.smart1-sidebar-logo {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.smart1-sidebar-logo strong,
.smart1-sidebar-logo small {
  display: block;
}
.smart1-sidebar-logo small {
  color: #94a3b8;
  font-weight: 600;
  margin-top: .12rem;
}
.smart1-sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: .75rem;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 1.5rem;
}
.smart1-sidebar-nav {
  flex: 1;
  padding: .5rem 1rem 1rem;
  overflow-y: auto;
}
.smart1-nav-section {
  margin: 1.15rem .75rem .45rem;
  color: #64748b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.smart1-nav-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 46px;
  border-radius: .85rem;
  padding: .65rem .75rem;
  color: #cbd5e1;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.smart1-nav-link:hover,
.smart1-nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, .24);
  transform: translateX(2px);
}
.smart1-nav-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, .12);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 900;
}
.smart1-nav-icon {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  line-height: 1;
}

.smart1-sidebar-user-avatar-glyph,
.smart1-sidebar-user-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.smart1-sidebar-user-link-icon {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  color: #93c5fd;
  font-weight: 900;
}

.smart1-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.smart1-sidebar-user-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem;
  border-radius: 1rem;
  background: rgba(148, 163, 184, .12);
  color: #fff;
}
.smart1-sidebar-user-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .95rem;
  background: rgba(59, 130, 246, .18);
  color: #93c5fd;
  font-size: 1.35rem;
}
.smart1-sidebar-user-meta {
  min-width: 0;
}
.smart1-sidebar-user-meta strong,
.smart1-sidebar-user-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smart1-sidebar-user-meta strong {
  font-size: .95rem;
  line-height: 1.2;
}
.smart1-sidebar-user-meta small {
  margin-top: .15rem;
  color: #bfdbfe;
  font-weight: 700;
}
.smart1-sidebar-user-actions {
  display: grid;
  gap: .4rem;
  margin-top: .7rem;
}
.smart1-sidebar-user-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .7rem;
  border-radius: .8rem;
  color: #cbd5e1;
  font-weight: 750;
  font-size: .88rem;
}
.smart1-sidebar-user-link:hover,
.smart1-sidebar-user-link.active {
  color: #fff;
  background: rgba(37, 99, 235, .24);
}
.smart1-card-actions {
  border-top: 1px solid var(--smart1-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.smart1-backend-main {
  flex: 1;
  min-width: 0;
  margin-left: 292px;
}
.smart1-backend-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(245, 248, 250, .88);
  border-bottom: 1px solid var(--smart1-border);
  backdrop-filter: blur(12px);
}
.smart1-mobile-menu-button {
  display: none;
  border: 0;
  border-radius: .75rem;
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--smart1-text);
  font-weight: 900;
}
.smart1-page-heading {
  min-width: 0;
}
.smart1-page-kicker {
  color: var(--smart1-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: .2rem;
}
.smart1-page-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 900;
  color: var(--smart1-text);
}
.smart1-page-heading p {
  margin: .25rem 0 0;
  color: var(--smart1-muted);
  font-weight: 600;
}
.smart1-topbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.smart1-global-search {
  position: relative;
  width: min(36vw, 440px);
}
.smart1-global-search .form-control {
  min-height: 44px;
  background: #fff;
}
.smart1-global-search-results {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--smart1-border);
  border-radius: 1rem;
  box-shadow: 0 20px 56px rgba(76, 87, 125, .18);
  padding: .45rem;
}
.smart1-global-search-results.open {
  display: block;
}
.smart1-search-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .75rem;
  padding: .75rem .85rem;
  border-radius: .75rem;
  color: var(--smart1-text);
}
.smart1-search-result:hover {
  background: #f5f8fa;
}
.smart1-search-type {
  grid-row: span 2;
  align-self: center;
  border-radius: .55rem;
  background: #eef6ff;
  color: var(--smart1-primary);
  font-size: .72rem;
  font-weight: 900;
  padding: .25rem .45rem;
}
.smart1-search-result small,
.smart1-search-empty {
  color: var(--smart1-muted);
}
.smart1-search-empty {
  padding: .85rem;
}

.smart1-backend-content {
  padding: 0 2rem 2.5rem;
}
.smart1-content-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  gap: 1rem;
}
.smart1-content-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.smart1-message-stack {
  margin-bottom: 1rem;
}
.smart1-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}
.smart1-span-12 { grid-column: span 12; }
.smart1-span-8 { grid-column: span 8; }
.smart1-span-7 { grid-column: span 7; }
.smart1-span-6 { grid-column: span 6; }
.smart1-span-5 { grid-column: span 5; }
.smart1-span-4 { grid-column: span 4; }

.smart1-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.smart1-hero-title {
  margin: 0 0 .65rem;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  font-weight: 900;
  color: var(--smart1-text);
}
.smart1-health-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.smart1-kpi-card {
  grid-column: span 3;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--smart1-border);
  border-radius: 1.25rem;
  box-shadow: 0 0 20px rgba(76, 87, 125, .05);
}
.smart1-kpi-card span {
  color: var(--smart1-muted);
  font-weight: 800;
}
.smart1-kpi-card strong {
  display: block;
  margin: .35rem 0;
  color: var(--smart1-text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
}
.smart1-kpi-card small {
  color: #5e6278;
  font-weight: 700;
}

.smart1-action-list,
.smart1-list-stack {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.smart1-action-list a,
.smart1-list-item {
  display: block;
  padding: 1rem;
  border: 1px dashed #dfe3ea;
  border-radius: 1rem;
  background: #fbfcfe;
  color: var(--smart1-text);
}
.smart1-action-list a:hover {
  border-color: var(--smart1-primary);
  background: #f1f8ff;
}
.smart1-action-list strong,
.smart1-list-item strong {
  display: block;
  margin-bottom: .25rem;
}
.smart1-action-list span,
.smart1-list-item span,
.smart1-list-item small {
  display: block;
  color: var(--smart1-muted);
}
.smart1-definition-list {
  display: grid;
  gap: .8rem;
}
.smart1-definition-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: .8rem;
  border-bottom: 1px dashed #e4e6ef;
}
.smart1-definition-list span {
  color: var(--smart1-muted);
  font-weight: 800;
}
.smart1-definition-list code {
  word-break: break-all;
}
.smart1-table th,
.smart1-table td {
  vertical-align: middle;
}
.smart1-table thead th {
  color: var(--smart1-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.text-end { text-align: right; }

.smart1-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(180px, 260px) auto;
  gap: 1rem;
  align-items: end;
}
.smart1-filter-grid-wide {
  grid-template-columns: minmax(160px, 240px) minmax(160px, 240px) minmax(140px, 180px) minmax(260px, 1fr) auto;
}
.smart1-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.smart1-form-layout .card,
.smart1-dashboard-grid > .card {
  min-width: 0;
}
.smart1-form-field {
  margin-bottom: 1rem;
}
.form-text,
.smart1-field-hint {
  margin-top: .35rem;
  color: var(--smart1-muted);
  font-size: .84rem;
}
.invalid-feedback {
  color: #d9214e;
  font-size: .84rem;
  margin-top: .35rem;
}
.smart1-textarea {
  min-height: 140px;
  resize: vertical;
}
.smart1-switch-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-switch {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.form-check-input {
  width: 2.8rem;
  height: 1.45rem;
  flex: 0 0 auto;
}
.smart1-check-panel {
  border: 1px dashed #dfe3ea;
  background: #fbfcfe;
  border-radius: 1rem;
  padding: 1rem;
  max-height: 340px;
  overflow: auto;
}
.smart1-check-grid,
.smart1-check-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.smart1-check-grid li {
  margin: .35rem 0;
}
.smart1-check-panel label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .65rem;
  border-radius: .75rem;
  cursor: pointer;
}
.smart1-check-panel label:hover {
  background: #eef6ff;
}
.smart1-sticky-actions {
  position: sticky;
  bottom: 1rem;
  z-index: 10;
  box-shadow: 0 16px 46px rgba(76, 87, 125, .14);
}
.smart1-answer-body {
  min-height: 420px;
  white-space: pre-wrap;
}

.smart1-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.smart1-library-card {
  border: 1px solid var(--smart1-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: #fff;
}
.smart1-library-card-header,
.smart1-library-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.smart1-library-card p {
  margin: 1rem 0;
}
.smart1-placeholder-list {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.smart1-library-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e4e6ef;
  color: var(--smart1-muted);
  font-weight: 700;
}
.smart1-url-mask {
  display: inline-block;
  max-width: 320px;
  word-break: break-all;
  color: #5e6278;
}

.smart1-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.smart1-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Bootstrap-kompatibles Grid für die smart1 Oberfläche. */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
}
.row > * {
  padding-left: .75rem;
  padding-right: .75rem;
  margin-top: 1rem;
}
.g-6 { gap: 0; }
.col-12 { width: 100%; }
.col-lg-2, .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8 { width: 100%; }
.card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--smart1-border);
}
hr {
  border: 0;
  border-top: 1px dashed #e4e6ef;
  margin: 1.25rem 0;
}
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-6 { margin-bottom: 1.5rem; }

@media (min-width: 992px) {
  .col-lg-2 { width: 16.666%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666%; }
}

@media (max-width: 1199.98px) {
  .smart1-global-search { width: min(44vw, 360px); }
  .smart1-kpi-card { grid-column: span 6; }
  .smart1-span-8,
  .smart1-span-7,
  .smart1-span-6,
  .smart1-span-5,
  .smart1-span-4 { grid-column: span 12; }
  .smart1-filter-grid,
  .smart1-filter-grid-wide {
    grid-template-columns: 1fr 1fr;
  }
  .smart1-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .smart1-auth-shell {
    grid-template-columns: 1fr;
  }
  .smart1-auth-visual {
    display: none;
  }
  .smart1-sidebar {
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  body.smart1-sidebar-open .smart1-sidebar {
    transform: translateX(0);
  }
  .smart1-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .smart1-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, .42);
  }
  body.smart1-sidebar-open .smart1-sidebar-backdrop {
    display: block;
  }
  .smart1-backend-main {
    margin-left: 0;
  }
  .smart1-backend-topbar {
    padding: 1rem;
    align-items: flex-start;
  }
  .smart1-mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .smart1-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .smart1-global-search {
    width: min(100%, 420px);
  }
  .smart1-backend-content {
    padding: 0 1rem 1.5rem;
  }
  .smart1-content-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .smart1-backend-topbar {
    flex-direction: column;
  }
  .smart1-topbar-actions {
    width: 100%;
    justify-content: stretch;
  }
  .smart1-global-search {
    width: 100%;
  }
  .smart1-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .smart1-span-12,
  .smart1-span-8,
  .smart1-span-7,
  .smart1-span-6,
  .smart1-span-5,
  .smart1-span-4,
  .smart1-kpi-card {
    grid-column: span 1;
  }
  .smart1-hero-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .smart1-health-badges {
    justify-content: flex-start;
  }
  .smart1-filter-grid,
  .smart1-filter-grid-wide {
    grid-template-columns: 1fr;
  }
  .smart1-sticky-actions {
    position: static;
  }
  .smart1-definition-list > div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}


.smart1-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.smart1-json-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-height: 180px;
  white-space: pre;
}

.smart1-pre {
  max-height: 420px;
  overflow: auto;
  border-radius: .85rem;
  background: #f5f8fa;
  border: 1px solid #e4e6ef;
  padding: 1rem;
  font-size: .82rem;
  white-space: pre-wrap;
}

.smart1-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--smart1-border);
}

.smart1-list-row:last-child { border-bottom: 0; }

.text-muted { color: var(--smart1-muted); }
.mt-3 { margin-top: .75rem; }
.mt-5 { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .smart1-form-grid { grid-template-columns: 1fr; }
  .smart1-form-grid > * { grid-column: 1 / -1 !important; }
}



/* Messeboost visual field mapping editor */
.smart1-mapping-editor {
  padding-bottom: 5.25rem;
}

.smart1-mapping-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.smart1-inline-check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: #3f4254;
}

.smart1-inline-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.smart1-mapping-section,
.smart1-option-section {
  border: 1px solid var(--smart1-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.smart1-mapping-section-head,
.smart1-option-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.smart1-mapping-section-head h4,
.smart1-option-section-head h4 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
}

.smart1-mapping-section-head p,
.smart1-option-section-head p {
  margin: 0;
}

.smart1-mapping-table td,
.smart1-option-table td {
  vertical-align: top;
}

.smart1-mapping-table select,
.smart1-option-table select {
  min-width: 360px;
}

.smart1-mapping-progress {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--smart1-border);
  margin-top: 1rem;
}

.smart1-mapping-progress > div {
  height: 100%;
  background: var(--smart1-primary);
  transition: width .25s ease;
}

.smart1-mapping-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

.smart1-mapping-summary-grid > div {
  border: 1px dashed #dfe3ea;
  background: #fbfcfe;
  border-radius: .9rem;
  padding: .85rem;
}

.smart1-mapping-summary-grid strong {
  display: block;
  color: var(--smart1-text);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 900;
}

.smart1-mapping-summary-grid span {
  display: block;
  color: var(--smart1-muted);
  font-weight: 700;
  margin-top: .35rem;
  font-size: .82rem;
}

.smart1-sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 0;
  margin-top: 1rem;
  background: linear-gradient(to top, var(--smart1-bg) 70%, rgba(245, 248, 250, 0));
}

@media (max-width: 1100px) {
  .smart1-mapping-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smart1-mapping-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .smart1-mapping-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .smart1-mapping-section-head,
  .smart1-option-section-head {
    flex-direction: column;
  }

  .smart1-mapping-table select,
  .smart1-option-table select {
    min-width: 240px;
  }
}

