:root {
  --sl-topbar-height: 76px;
  --sl-sidebar-expanded-width: 238px;
  --sl-sidebar-collapsed-width: 84px;
  --sl-sidebar-width: var(--sl-sidebar-expanded-width);
  --sl-content-max-width: 1480px;
  --sl-tool-content-max-width: 1120px;
  --sl-bg: #061b22;
  --sl-bg-deep: #031319;
  --sl-surface: rgba(9, 35, 45, 0.86);
  --sl-surface-strong: rgba(12, 43, 55, 0.96);
  --sl-surface-soft: rgba(15, 51, 63, 0.7);
  --sl-border: rgba(152, 203, 213, 0.2);
  --sl-border-strong: rgba(152, 203, 213, 0.34);
  --sl-text: #f4fbff;
  --sl-muted: #a8bec8;
  --sl-subtle: #6f8994;
  --sl-green: #42e690;
  --sl-cyan: #24c7ff;
  --sl-blue: #2588ff;
  --sl-purple: #a66bff;
  --sl-red: #ff5b54;
  --sl-amber: #ffb732;
  --sl-radius: 8px;
  --sl-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --sl-sidebar-bottom-offset: 20px;
}

.streamline-app.sidebar-collapsed {
  --sl-sidebar-width: var(--sl-sidebar-collapsed-width);
  --sl-content-max-width: 1640px;
  --sl-tool-content-max-width: 100%;
}

html[data-bs-theme="blue-theme"] {
  --bs-body-bg: var(--sl-bg-deep);
  --bs-body-color: var(--sl-text);
  --bs-border-color: var(--sl-border);
  --bs-card-bg: var(--sl-surface);
}

body.streamline-app {
  min-height: 100vh;
  color: var(--sl-text);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(11, 174, 152, 0.18), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(36, 136, 255, 0.12), transparent 26%),
    linear-gradient(145deg, #04151b 0%, #061e25 46%, #031017 100%);
}

html,
body.streamline-app,
.streamline-app .app-content,
.streamline-app .main-wrapper .main-content,
.timeline-drawer,
.timeline-drawer-content,
.timeline-steps,
.timeline-logs-content,
.pipeline-history-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body.streamline-app::-webkit-scrollbar,
.streamline-app .app-content::-webkit-scrollbar,
.streamline-app .main-wrapper .main-content::-webkit-scrollbar,
.timeline-drawer::-webkit-scrollbar,
.timeline-drawer-content::-webkit-scrollbar,
.timeline-steps::-webkit-scrollbar,
.timeline-logs-content::-webkit-scrollbar,
.pipeline-history-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.streamline-app a {
  color: inherit;
}

.streamline-app .top-header .navbar,
.streamline-app .app-topbar .navbar {
  left: 0;
  right: 0;
  top: 0;
  height: var(--sl-topbar-height);
  padding: 0 24px;
  background:
    linear-gradient(90deg, rgba(4, 26, 34, 0.98) 0%, rgba(5, 42, 50, 0.98) 42%, rgba(3, 18, 26, 0.98) 100%) !important;
  border-bottom: 1px solid var(--sl-border) !important;
  box-shadow: none;
  backdrop-filter: blur(18px);
  z-index: 1040;
}

.streamline-app .app-topbar::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sl-topbar-height);
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 50%, rgba(66, 230, 144, 0.14), transparent 30%),
    radial-gradient(circle at 72% 50%, rgba(36, 199, 255, 0.1), transparent 28%);
  z-index: 1041;
}

.streamline-app .app-topbar .navbar > * {
  position: relative;
  z-index: 1042;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sl-text);
  font-weight: 700;
  min-width: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name {
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--sl-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.icon-button:hover,
.icon-button:focus {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sl-border);
}

.topbar-search {
  position: relative;
  flex: 1 1 520px;
  gap: 8px;
  max-width: 760px;
  height: 48px;
  padding: 4px 6px 4px 5px;
  color: var(--sl-muted);
  background:
    linear-gradient(135deg, rgba(66, 230, 144, 0.08), rgba(36, 199, 255, 0.05)),
    rgba(6, 29, 38, 0.92);
  border: 1px solid rgba(125, 180, 191, 0.34);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.topbar-search:focus-within {
  border-color: rgba(36, 199, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(36, 199, 255, 0.11),
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.topbar-search > .material-icons-outlined:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #b8d7de;
  background: rgba(15, 56, 67, 0.72);
  border-radius: 8px;
  font-size: 23px;
}

.topbar-search .form-control {
  height: 38px;
  min-width: 0;
  padding: 0 12px;
  color: var(--sl-text);
  background: rgba(3, 20, 27, 0.52);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.topbar-search .form-control::placeholder {
  color: var(--sl-muted) !important;
  opacity: 1 !important;
}

.topbar-search .form-control::-webkit-search-cancel-button {
  display: none;
}

.topbar-search .form-control::-ms-clear {
  display: none;
}

.topbar-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  color: var(--sl-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-radius: 8px;
}

.topbar-search-clear:hover,
.topbar-search-clear:focus {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.08);
}

.topbar-search.has-value .topbar-search-clear {
  display: inline-flex;
}

.topbar-search-clear .material-icons-outlined {
  font-size: 18px;
}

.topbar-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  padding: 8px;
  background: rgba(5, 28, 36, 0.98);
  border: 1px solid var(--sl-border-strong);
  border-radius: 8px;
  box-shadow: var(--sl-shadow);
  z-index: 1080;
}

.topbar-search-results.is-open {
  display: grid;
  gap: 4px;
}

.topbar-search-result {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 10px;
  color: var(--sl-text);
  border-radius: 8px;
}

.topbar-search-result:hover,
.topbar-search-result:focus {
  color: var(--sl-text);
  background: rgba(66, 230, 144, 0.1);
}

.topbar-search-result .material-icons-outlined {
  color: var(--sl-cyan);
  font-size: 20px;
}

.topbar-search-result strong {
  font-size: 13px;
}

.topbar-search-result small {
  color: var(--sl-muted);
  font-size: 12px;
}

.topbar-search kbd {
  color: var(--sl-muted);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 500;
}

.streamline-app .nav-right-links .nav-link {
  position: relative;
  color: var(--sl-text);
  background: transparent;
  border: 1px solid transparent;
}

.streamline-app .nav-right-links .nav-link:hover,
.streamline-app .nav-right-links .nav-link:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sl-border);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #d8c3ff;
  background: rgba(166, 107, 255, 0.12);
  border: 1px solid rgba(166, 107, 255, 0.24);
  border-radius: 12px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  color: var(--sl-text);
  background: rgba(166, 107, 255, 0.2);
  border-color: rgba(166, 107, 255, 0.44);
  transform: translateY(-1px);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid rgba(216, 195, 255, 0.72);
  outline-offset: 3px;
}

.theme-toggle-btn .material-icons-outlined {
  font-size: 24px;
}

.topbar-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--sl-blue);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sl-text);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--sl-text);
  background: rgba(19, 69, 80, 0.88);
  border: 1px solid rgba(66, 230, 144, 0.72);
  border-radius: 50%;
  font-weight: 700;
  text-transform: uppercase;
}

.user-meta {
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.user-meta strong {
  font-size: 14px;
}

.user-meta small {
  color: var(--sl-muted);
}

.streamline-app .dropdown-menu {
  color: var(--sl-text);
  background: var(--sl-surface-strong);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
}

.streamline-app .dropdown-item {
  color: var(--sl-text);
}

.streamline-app .dropdown-item:hover,
.streamline-app .dropdown-item:focus {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.08);
}

.app-sidebar {
  --bs-offcanvas-width: var(--sl-sidebar-width);
  width: var(--sl-sidebar-width) !important;
  min-width: var(--sl-sidebar-width);
  max-width: var(--sl-sidebar-width);
  overflow-x: hidden;
  color: var(--sl-text);
  background: rgba(4, 24, 31, 0.94);
  border-right: 1px solid var(--sl-border);
  box-shadow: none;
  transition: width 0.2s ease, min-width 0.2s ease, max-width 0.2s ease;
}

.app-sidebar-header {
  min-height: var(--sl-topbar-height);
  padding: 16px 18px;
  border-bottom: 1px solid var(--sl-border);
}

.app-sidebar-body {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 12px 16px var(--sl-sidebar-bottom-offset);
}

.bottom-section {
  margin-bottom: 32px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--sl-text);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.app-nav-link > .material-icons-outlined:first-child {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
}

.app-nav-link .nav-label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: var(--sl-text);
  background: linear-gradient(135deg, rgba(45, 214, 176, 0.28), rgba(17, 112, 121, 0.62));
  border-color: rgba(66, 230, 144, 0.2);
}

.app-nav-link.is-muted {
  color: rgba(244, 251, 255, 0.82);
}

.app-nav-link .material-icons-outlined {
  font-size: 20px;
}

.app-nav-link .nav-caret {
  margin-left: auto;
  color: var(--sl-muted);
  font-size: 20px;
}

.sidebar-status {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  margin-bottom: 14px;
  padding: 14px 14px 13px;
  background:
    linear-gradient(135deg, rgba(66, 230, 144, 0.14), rgba(36, 199, 255, 0.06)),
    rgba(12, 48, 59, 0.72);
  border: 1px solid var(--sl-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-status::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sl-green), var(--sl-cyan));
  border-radius: 0 999px 999px 0;
}

.sidebar-status::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -32px;
  width: 94px;
  height: 94px;
  background: radial-gradient(circle, rgba(66, 230, 144, 0.16), transparent 68%);
  pointer-events: none;
}

.sidebar-status > .d-flex,
.sidebar-status small {
  position: relative;
  z-index: 1;
}

.sidebar-status > .d-flex {
  align-items: center !important;
}

.sidebar-status-copy {
  min-width: 0;
}

.sidebar-status strong {
  display: block;
  margin: 0 0 9px;
  color: var(--sl-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.sidebar-status p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--sl-green);
  font-size: 14px;
  font-weight: 900;
}

.sidebar-status p span {
  width: 8px;
  height: 8px;
  background: var(--sl-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(66, 230, 144, 0.12);
}

.sidebar-status small {
  display: block;
  color: var(--sl-muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #071f1b;
  background:
    linear-gradient(135deg, rgba(66, 230, 144, 0.96), rgba(36, 199, 255, 0.68));
  border: 1px solid rgba(197, 255, 226, 0.36);
  border-radius: 12px;
  box-shadow:
    0 12px 22px rgba(66, 230, 144, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  font-size: 23px;
}

.status-icon::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  background: #0a7e52;
  border: 2px solid rgba(7, 31, 27, 0.95);
  border-radius: 50%;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 0;
  color: var(--sl-text);
  border-top: 1px solid var(--sl-border);
  font-size: 13px;
  font-weight: 700;
}

.streamline-app .app-main,
.streamline-app .main-wrapper {
  margin-top: var(--sl-topbar-height);
  padding-bottom: 28px;
  transition: margin 0.2s ease, width 0.2s ease;
}

.streamline-app .app-content,
.streamline-app .main-wrapper .main-content {
  width: min(100%, var(--sl-content-max-width));
  margin-right: auto;
  margin-left: auto;
  padding: 24px 28px;
}

.streamline-app .app-footer,
.streamline-app .page-footer {
  color: var(--sl-muted);
  background: rgba(4, 18, 25, 0.92);
  border-top: 1px solid var(--sl-border);
}

.streamline-app .card,
.tool-card {
  color: var(--sl-text);
  background: var(--sl-surface);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius) !important;
  box-shadow: none;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--sl-muted);
  font-size: 14px;
  font-weight: 600;
}

.page-title-row h1 {
  margin: 0;
  color: var(--sl-text);
  font-size: 28px;
  font-weight: 800;
}

.page-pill {
  padding: 8px 12px;
  color: var(--sl-green);
  background: rgba(66, 230, 144, 0.1);
  border: 1px solid rgba(66, 230, 144, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tool-page {
  width: min(100%, var(--sl-tool-content-max-width));
  max-width: var(--sl-tool-content-max-width);
  margin-right: auto;
  margin-left: auto;
}

.tool-card {
  padding: 24px;
}

.streamline-app .form-label {
  color: var(--sl-text);
  font-weight: 700;
}

.streamline-app .form-control,
.streamline-app .form-select,
.streamline-app .input-group-text {
  color: var(--sl-text);
  background-color: rgba(4, 20, 27, 0.72);
  border-color: var(--sl-border);
  border-radius: 8px;
}

.streamline-app .form-control:focus,
.streamline-app .form-select:focus {
  color: var(--sl-text);
  background-color: rgba(5, 26, 34, 0.92);
  border-color: rgba(36, 199, 255, 0.54);
  box-shadow: 0 0 0 0.2rem rgba(36, 199, 255, 0.12);
}

.streamline-app .form-control::placeholder {
  color: var(--sl-subtle) !important;
  opacity: 1 !important;
}

.streamline-app .form-select:disabled,
.streamline-app .form-control:disabled {
  color: var(--sl-subtle);
  background-color: rgba(4, 20, 27, 0.42);
}

.streamline-app .btn {
  border-radius: 8px;
  font-weight: 700;
}

.streamline-app .btn-primary,
.streamline-app .btn-success,
.streamline-app .btn-grd-primary {
  color: #021318;
  background: linear-gradient(135deg, var(--sl-green), var(--sl-cyan));
  border: 0;
}

.streamline-app .btn-outline-primary,
.streamline-app .btn-outline-info {
  color: var(--sl-cyan);
  border-color: rgba(36, 199, 255, 0.72);
  background: transparent;
}

.streamline-app .btn-outline-primary:hover,
.streamline-app .btn-outline-info:hover {
  color: #021318;
  background: var(--sl-cyan);
}

.streamline-app .btn-secondary {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sl-border);
}

.streamline-app .pipeline-run-confirm-modal .modal-content {
  color: var(--sl-text);
  background:
    linear-gradient(145deg, rgba(13, 55, 64, 0.96), rgba(5, 25, 34, 0.98)),
    var(--sl-surface-strong);
  border: 1px solid var(--sl-border-strong);
  border-radius: 8px;
  box-shadow: var(--sl-shadow);
}

.streamline-app .pipeline-run-confirm-modal .modal-header,
.streamline-app .pipeline-run-confirm-modal .modal-footer {
  border-color: rgba(152, 203, 213, 0.16);
}

.streamline-app .pipeline-run-confirm-modal .modal-eyebrow {
  margin: 0 0 5px;
  color: var(--sl-amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.streamline-app .pipeline-run-confirm-modal .modal-title {
  color: var(--sl-text);
  font-weight: 800;
}

.streamline-app .pipeline-run-confirm-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.72;
}

.streamline-app .pipeline-run-confirm-message {
  margin: 0 0 16px;
  color: var(--sl-muted);
}

.pipeline-run-confirm-details {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(4, 20, 27, 0.42);
  border: 1px solid rgba(152, 203, 213, 0.16);
  border-radius: 8px;
}

.pipeline-run-confirm-details p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.pipeline-run-confirm-details span {
  color: var(--sl-muted);
  font-size: 12px;
  font-weight: 800;
}

.pipeline-run-confirm-details strong {
  min-width: 0;
  color: var(--sl-text);
  overflow-wrap: anywhere;
}

.pipeline-run-confirm-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #021318;
  background: linear-gradient(135deg, var(--sl-green), var(--sl-cyan));
  border: 0;
}

.output-box {
  min-height: 200px;
  white-space: pre-wrap;
}

.scroll-top-button {
  position: fixed;
  right: 28px;
  bottom: 72px;
  z-index: 1045;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #021318;
  background: linear-gradient(135deg, var(--sl-green), var(--sl-cyan));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 0 6px rgba(36, 199, 255, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  visibility: hidden;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.scroll-top-button:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38), 0 0 0 7px rgba(66, 230, 144, 0.12);
  transform: translateY(-2px);
}

.scroll-top-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.scroll-top-button .material-icons-outlined {
  font-size: 28px;
  line-height: 1;
}

html[data-streamline-theme="light"] {
  color-scheme: light;
  --bs-body-bg: var(--sl-bg-deep);
  --bs-body-color: var(--sl-text);
  --bs-border-color: var(--sl-border);
  --bs-card-bg: var(--sl-surface-strong);
  --sl-bg: #edf7f8;
  --sl-bg-deep: #f7fbfc;
  --sl-surface: rgba(255, 255, 255, 0.9);
  --sl-surface-strong: #ffffff;
  --sl-surface-soft: rgba(239, 249, 250, 0.92);
  --sl-border: rgba(30, 89, 105, 0.18);
  --sl-border-strong: rgba(30, 89, 105, 0.28);
  --sl-text: #0d2530;
  --sl-muted: #527080;
  --sl-subtle: #77919e;
  --sl-green: #0ba86b;
  --sl-cyan: #078cc1;
  --sl-blue: #2f7ee6;
  --sl-purple: #7457d7;
  --sl-red: #d73b45;
  --sl-amber: #c47a00;
  --sl-shadow: 0 18px 42px rgba(21, 64, 77, 0.13);
}

html[data-streamline-theme="light"] body.streamline-app {
  background:
    radial-gradient(circle at 20% 16%, rgba(11, 168, 107, 0.12), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(7, 140, 193, 0.1), transparent 26%),
    linear-gradient(145deg, #f7fbfc 0%, #edf7f8 50%, #e5f2f5 100%);
}

html[data-streamline-theme="light"] .streamline-app .top-header .navbar,
html[data-streamline-theme="light"] .streamline-app .app-topbar .navbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 249, 250, 0.96) 48%, rgba(255, 255, 255, 0.96) 100%) !important;
  border-bottom-color: rgba(30, 89, 105, 0.16) !important;
  box-shadow: 0 10px 30px rgba(21, 64, 77, 0.08);
}

html[data-streamline-theme="light"] .streamline-app .app-topbar::before {
  background:
    radial-gradient(circle at 28% 50%, rgba(11, 168, 107, 0.12), transparent 30%),
    radial-gradient(circle at 72% 50%, rgba(7, 140, 193, 0.1), transparent 28%);
}

html[data-streamline-theme="light"] .topbar-search {
  color: var(--sl-muted);
  background:
    linear-gradient(135deg, rgba(11, 168, 107, 0.08), rgba(7, 140, 193, 0.05)),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 89, 105, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(21, 64, 77, 0.08);
}

html[data-streamline-theme="light"] .topbar-search:focus-within {
  border-color: rgba(7, 140, 193, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(7, 140, 193, 0.1),
    0 14px 32px rgba(21, 64, 77, 0.1);
}

html[data-streamline-theme="light"] .topbar-search > .material-icons-outlined:first-child {
  color: #087aa8;
  background: rgba(7, 140, 193, 0.1);
}

html[data-streamline-theme="light"] .topbar-search .form-control {
  background: rgba(238, 248, 250, 0.72);
}

html[data-streamline-theme="light"] .topbar-search-clear {
  background: rgba(7, 140, 193, 0.08);
}

html[data-streamline-theme="light"] .topbar-search-results,
html[data-streamline-theme="light"] .streamline-app .dropdown-menu {
  background: #ffffff;
  border-color: var(--sl-border);
  box-shadow: var(--sl-shadow);
}

html[data-streamline-theme="light"] .topbar-search-result:hover,
html[data-streamline-theme="light"] .topbar-search-result:focus,
html[data-streamline-theme="light"] .streamline-app .dropdown-item:hover,
html[data-streamline-theme="light"] .streamline-app .dropdown-item:focus {
  color: var(--sl-text);
  background: rgba(7, 140, 193, 0.09);
}

html[data-streamline-theme="light"] .theme-toggle-btn {
  color: #4f3fb8;
  background: rgba(116, 87, 215, 0.12);
  border-color: rgba(116, 87, 215, 0.22);
}

html[data-streamline-theme="light"] .theme-toggle-btn:hover,
html[data-streamline-theme="light"] .theme-toggle-btn:focus {
  color: #33237e;
  background: rgba(116, 87, 215, 0.18);
  border-color: rgba(116, 87, 215, 0.36);
}

html[data-streamline-theme="light"] .theme-toggle-btn:focus-visible {
  outline-color: rgba(116, 87, 215, 0.38);
}

html[data-streamline-theme="light"] .user-avatar {
  color: #08303b;
  background: #e9fbf2;
  border-color: rgba(11, 168, 107, 0.58);
}

html[data-streamline-theme="light"] .app-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 250, 0.94)) !important;
  border-right-color: var(--sl-border) !important;
}

html[data-streamline-theme="light"] .app-sidebar-header,
html[data-streamline-theme="light"] .app-sidebar-body {
  background: transparent !important;
}

html[data-streamline-theme="light"] .app-nav-link {
  color: var(--sl-text);
}

html[data-streamline-theme="light"] .app-nav-link:hover,
html[data-streamline-theme="light"] .app-nav-link.active {
  color: #06303b;
  background: rgba(7, 140, 193, 0.1);
  border-color: rgba(7, 140, 193, 0.24);
}

html[data-streamline-theme="light"] .sidebar-status {
  background:
    linear-gradient(135deg, rgba(11, 168, 107, 0.11), rgba(7, 140, 193, 0.06)),
    rgba(255, 255, 255, 0.78);
  border-color: var(--sl-border);
  box-shadow: 0 12px 26px rgba(21, 64, 77, 0.08);
}

html[data-streamline-theme="light"] .sidebar-status::after {
  background: radial-gradient(circle, rgba(11, 168, 107, 0.14), transparent 68%);
}

html[data-streamline-theme="light"] .status-icon {
  color: #06352d;
  background:
    linear-gradient(135deg, rgba(11, 168, 107, 0.22), rgba(7, 140, 193, 0.1)),
    #e7fbf2;
  border-color: rgba(11, 168, 107, 0.32);
  box-shadow:
    0 10px 20px rgba(21, 64, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-streamline-theme="light"] .status-icon::after {
  background: #0ba86b;
  border-color: #e7fbf2;
}

html[data-streamline-theme="light"] .filter-button,
html[data-streamline-theme="light"] .page-pill {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--sl-border-strong);
}

html[data-streamline-theme="light"] .streamline-app .app-footer,
html[data-streamline-theme="light"] .streamline-app .page-footer {
  background: rgba(255, 255, 255, 0.88);
  border-top-color: var(--sl-border);
}

html[data-streamline-theme="light"] .streamline-app .card,
html[data-streamline-theme="light"] .tool-card,
html[data-streamline-theme="light"] .metric-card,
html[data-streamline-theme="light"] .dashboard-panel,
html[data-streamline-theme="light"] .compare-result-card,
html[data-streamline-theme="light"] .compare-file-list,
html[data-streamline-theme="light"] .compare-file-preview,
html[data-streamline-theme="light"] .docker-results-card,
html[data-streamline-theme="light"] .docker-control-card,
html[data-streamline-theme="light"] .docker-log-panel {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: var(--sl-border-strong) !important;
  box-shadow: var(--sl-shadow);
}

html[data-streamline-theme="light"] .streamline-app .form-control,
html[data-streamline-theme="light"] .streamline-app .form-select,
html[data-streamline-theme="light"] .streamline-app .input-group-text,
html[data-streamline-theme="light"] .output-box {
  color: var(--sl-text);
  background-color: rgba(255, 255, 255, 0.86);
  border-color: var(--sl-border-strong);
}

html[data-streamline-theme="light"] .streamline-app .form-control:focus,
html[data-streamline-theme="light"] .streamline-app .form-select:focus {
  color: var(--sl-text);
  background-color: #ffffff;
  border-color: rgba(7, 140, 193, 0.52);
  box-shadow: 0 0 0 0.2rem rgba(7, 140, 193, 0.12);
}

html[data-streamline-theme="light"] .streamline-app .form-control::placeholder {
  color: #6e8895 !important;
}

html[data-streamline-theme="light"] .streamline-app .form-select:disabled,
html[data-streamline-theme="light"] .streamline-app .form-control:disabled {
  color: var(--sl-subtle);
  background-color: rgba(239, 249, 250, 0.72);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .modal-content {
  color: var(--sl-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 250, 0.96)),
    var(--sl-surface-strong);
  border-color: var(--sl-border-strong);
  box-shadow: 0 24px 60px rgba(21, 64, 77, 0.18);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .modal-header,
html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .modal-footer {
  border-color: rgba(30, 89, 105, 0.14);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .modal-eyebrow {
  color: #ad6800;
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .modal-title {
  color: var(--sl-text);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .btn-close {
  filter: none;
  opacity: 0.62;
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-message {
  color: var(--sl-muted);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-details {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(30, 89, 105, 0.16);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-details span {
  color: #5f7d8a;
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-details strong {
  color: var(--sl-text);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .btn-secondary {
  color: var(--sl-text);
  background: rgba(13, 37, 48, 0.08);
  border-color: rgba(30, 89, 105, 0.16);
}

html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .btn-secondary:hover,
html[data-streamline-theme="light"] .streamline-app .pipeline-run-confirm-modal .btn-secondary:focus {
  color: var(--sl-text);
  background: rgba(7, 140, 193, 0.12);
  border-color: rgba(7, 140, 193, 0.28);
}

html[data-streamline-theme="light"] .metric-purple .metric-icon,
html[data-streamline-theme="light"] .metric-purple p {
  color: #6650c8;
}

html[data-streamline-theme="light"] .metric-purple .metric-icon {
  background: rgba(116, 87, 215, 0.14);
}

html[data-streamline-theme="light"] .metric-green .metric-icon,
html[data-streamline-theme="light"] .metric-green p {
  color: #0a8b59;
}

html[data-streamline-theme="light"] .metric-green .metric-icon {
  background: rgba(11, 168, 107, 0.13);
}

html[data-streamline-theme="light"] .metric-blue .metric-icon,
html[data-streamline-theme="light"] .metric-blue p,
html[data-streamline-theme="light"] .metric-cyan .metric-icon,
html[data-streamline-theme="light"] .metric-cyan p {
  color: #087aa8;
}

html[data-streamline-theme="light"] .metric-blue .metric-icon,
html[data-streamline-theme="light"] .metric-cyan .metric-icon {
  background: rgba(7, 140, 193, 0.12);
}

html[data-streamline-theme="light"] .metric-red .metric-icon,
html[data-streamline-theme="light"] .metric-red p {
  color: #c4353e;
}

html[data-streamline-theme="light"] .metric-red .metric-icon {
  background: rgba(215, 59, 69, 0.12);
}

html[data-streamline-theme="light"] .dashboard-page .pipeline-card,
html[data-streamline-theme="light"] .pipelines-page .pipeline-card {
  color: var(--sl-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 248, 250, 0.9)) !important;
  border-color: rgba(30, 89, 105, 0.22);
  box-shadow: 0 16px 34px rgba(21, 64, 77, 0.1);
}

html[data-streamline-theme="light"] .pipeline-meta,
html[data-streamline-theme="light"] .section-heading p,
html[data-streamline-theme="light"] .hero-copy,
html[data-streamline-theme="light"] .run-subtitle,
html[data-streamline-theme="light"] .activity-subtitle,
html[data-streamline-theme="light"] .empty-state {
  color: var(--sl-muted);
}

html[data-streamline-theme="light"] .pipeline-runner-tag {
  color: #075f78;
  background: rgba(7, 140, 193, 0.08);
  border-color: rgba(7, 140, 193, 0.22);
}

html[data-streamline-theme="light"] .pipeline-pin-label {
  color: var(--sl-green);
  background: rgba(11, 168, 107, 0.1);
  border-color: rgba(11, 168, 107, 0.2);
}

html[data-streamline-theme="light"] .pipeline-pin-toggle:hover,
html[data-streamline-theme="light"] .pipeline-pin-toggle.is-pinned {
  background: rgba(11, 168, 107, 0.11);
}

html[data-streamline-theme="light"] .dashboard-page .pipeline-card .view-timeline-btn,
html[data-streamline-theme="light"] .pipelines-page .pipeline-card .view-timeline-btn {
  color: #087aa8;
  background: rgba(7, 140, 193, 0.09);
  border-color: rgba(7, 140, 193, 0.24);
}

html[data-streamline-theme="light"] .dashboard-page .pipeline-card .pipeline-history-btn,
html[data-streamline-theme="light"] .pipelines-page .pipeline-card .pipeline-history-btn {
  color: #6650c8;
  background: rgba(116, 87, 215, 0.1);
  border-color: rgba(116, 87, 215, 0.24);
}

html[data-streamline-theme="light"] .dashboard-page .pipeline-card .pipeline-card-actions .run-pipeline-btn,
html[data-streamline-theme="light"] .pipelines-page .pipeline-card .pipeline-card-actions .run-pipeline-btn,
html[data-streamline-theme="light"] .dashboard-page .pipeline-card .run-pipeline-btn,
html[data-streamline-theme="light"] .pipelines-page .pipeline-card .run-pipeline-btn {
  color: #0a8b59;
  background: rgba(11, 168, 107, 0.1);
  border-color: rgba(11, 168, 107, 0.28);
}

html[data-streamline-theme="light"] .timeline-drawer {
  color: var(--sl-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 250, 0.98)),
    var(--sl-surface-strong);
  border-left-color: var(--sl-border-strong);
  box-shadow: -24px 0 48px rgba(21, 64, 77, 0.18);
}

html[data-streamline-theme="light"] .timeline-drawer-overlay {
  background: rgba(8, 32, 40, 0.34);
}

html[data-streamline-theme="light"] .timeline-drawer-header,
html[data-streamline-theme="light"] .timeline-drawer-meta,
html[data-streamline-theme="light"] .timeline-drawer-actions {
  border-color: rgba(30, 89, 105, 0.14);
}

html[data-streamline-theme="light"] .timeline-drawer-close {
  color: var(--sl-muted);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--sl-border);
}

html[data-streamline-theme="light"] .timeline-step-message,
html[data-streamline-theme="light"] .pipeline-history-run-body,
html[data-streamline-theme="light"] .pipeline-history-run-by,
html[data-streamline-theme="light"] .pipeline-history-empty {
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--sl-border);
}

html[data-streamline-theme="light"] .pipeline-history-run-marker span {
  background: #ffffff;
}

html[data-streamline-theme="light"] .compare-db-meta,
html[data-streamline-theme="light"] .compare-note,
html[data-streamline-theme="light"] .compare-scope-box,
html[data-streamline-theme="light"] .docker-loading,
html[data-streamline-theme="light"] .docker-empty-state,
html[data-streamline-theme="light"] .docker-table-wrap,
html[data-streamline-theme="light"] .docker-name-filter {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--sl-border);
}

html[data-streamline-theme="light"] .docker-table th,
html[data-streamline-theme="light"] .docker-table tbody tr {
  color: var(--sl-text);
  background: rgba(239, 249, 250, 0.78);
}

html[data-streamline-theme="light"] .timeline-logs-modal-panel {
  background: #ffffff;
  border-color: var(--sl-border-strong);
}

html[data-streamline-theme="light"] .timeline-logs-content,
html[data-streamline-theme="light"] .compare-file-preview pre {
  color: #14323e;
  background: rgba(240, 248, 250, 0.9);
}

html[data-streamline-theme="light"] .crypto-copy-btn {
  color: #ffffff;
  background: rgba(9, 34, 44, 0.84);
  border-color: rgba(30, 89, 105, 0.12);
}

html[data-streamline-theme="light"] .crypto-copy-btn.is-copied {
  background: transparent;
}

@media (min-width: 1200px) {
  .streamline-app .app-sidebar.offcanvas-xl {
    position: fixed;
    top: var(--sl-topbar-height);
    bottom: 0;
    left: 0;
    width: var(--sl-sidebar-width);
    min-width: var(--sl-sidebar-width);
    max-width: var(--sl-sidebar-width);
    height: calc(100vh - var(--sl-topbar-height));
    transform: none !important;
    visibility: visible !important;
    z-index: 1030;
  }

  .streamline-app .app-sidebar .offcanvas-body {
    overflow: hidden;
  }

  .streamline-app .app-main,
  .streamline-app .main-wrapper {
    margin-left: var(--sl-sidebar-width);
  }

  .streamline-app .app-footer,
  .streamline-app .page-footer {
    left: var(--sl-sidebar-width);
  }

  .streamline-app.sidebar-collapsed .app-sidebar-header {
    justify-content: center;
    padding-right: 12px;
    padding-left: 12px;
  }

  .streamline-app.sidebar-collapsed .app-sidebar .brand-name,
  .streamline-app.sidebar-collapsed .app-sidebar .nav-label,
  .streamline-app.sidebar-collapsed .app-sidebar .sidebar-status-copy,
  .streamline-app.sidebar-collapsed .app-sidebar .sidebar-status small,
  .streamline-app.sidebar-collapsed .app-sidebar .logout-label {
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
  }

  .streamline-app.sidebar-collapsed .app-sidebar-body {
    padding: 14px 12px var(--sl-sidebar-bottom-offset);
  }

  .streamline-app.sidebar-collapsed .app-nav-link {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .streamline-app.sidebar-collapsed .app-nav-link > .material-icons-outlined:first-child {
    width: 44px;
    flex-basis: 44px;
  }

  .streamline-app.sidebar-collapsed .bottom-section {
    margin-bottom: 20px;
  }

  .streamline-app.sidebar-collapsed .sidebar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 10px auto 12px;
    padding: 0;
    overflow: visible;
    transform: translateY(-4px);
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .streamline-app.sidebar-collapsed .sidebar-status > .d-flex {
    width: auto;
    align-items: center !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  .streamline-app.sidebar-collapsed .app-sidebar .sidebar-status-copy {
    display: none;
  }

  .streamline-app.sidebar-collapsed .sidebar-status::before {
    display: none;
  }

  .streamline-app.sidebar-collapsed .sidebar-status::after {
    display: none;
  }

  .streamline-app.sidebar-collapsed .status-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 20px;
    box-shadow:
      0 8px 16px rgba(66, 230, 144, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .streamline-app.sidebar-collapsed .status-icon::after {
    right: 5px;
    bottom: 5px;
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .streamline-app.sidebar-collapsed .logout-link {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 1199.98px) {
  .streamline-app .top-header .navbar {
    padding: 0 16px;
  }

  .streamline-app .app-sidebar {
    width: min(320px, 92vw);
  }

  .streamline-app .app-main,
  .streamline-app .main-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .brand-name,
  .streamline-app .nav-right-links .nav-item:not(.dropdown):not(.theme-toggle-item) {
    display: none;
  }

  .streamline-app .app-content,
  .streamline-app .main-wrapper .main-content {
    padding: 18px 14px;
  }

  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .scroll-top-button {
    right: 18px;
    bottom: 64px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 991.98px) {
  .topbar-search.is-mobile-open {
    display: flex !important;
    position: fixed;
    top: 12px;
    left: 14px;
    right: 14px;
    max-width: none;
    z-index: 1060;
  }

  .topbar-search.is-mobile-open kbd {
    display: none;
  }
}
