/*
 * Graphite Note Modern SaaS visual system (Variation C)
 *
 * Purpose: modernize the existing AngularJS/Bootstrap/DevExtreme UI without
 * changing application behavior or backend contracts. This file is loaded last
 * and intentionally overrides legacy visual defaults.
 */

:root {
  --gn3-canvas: #f7f9fc;
  --gn3-surface: #ffffff;
  --gn3-surface-soft: #f8fafc;
  --gn3-surface-blue: #f5f8ff;
  --gn3-text: #0f172a;
  --gn3-text-2: #334155;
  --gn3-muted: #64748b;
  --gn3-muted-2: #94a3b8;
  --gn3-border: #e2e8f0;
  --gn3-border-strong: #cbd5e1;
  --gn3-brand: #1769ff;
  --gn3-brand-2: #5b5ce2;
  --gn3-brand-hover: #0e55d8;
  --gn3-brand-soft: #eef4ff;
  --gn3-success: #16a34a;
  --gn3-success-soft: #ecfdf3;
  --gn3-warning: #b45309;
  --gn3-warning-soft: #fff7ed;
  --gn3-danger: #dc2626;
  --gn3-danger-soft: #fef2f2;
  --gn3-radius-xs: 6px;
  --gn3-radius-sm: 8px;
  --gn3-radius-md: 12px;
  --gn3-radius-lg: 16px;
  --gn3-shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --gn3-shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --gn3-shadow-md: 0 14px 36px rgba(15, 23, 42, .09);
  --gn3-focus: 0 0 0 3px rgba(23, 105, 255, .16);
  --gn3-content: 1180px;
  --gn3-topbar: 72px;
}

/* --------------------------------------------------------------------------
   App shell / page canvas
   -------------------------------------------------------------------------- */

.gn-app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 2%, rgba(91, 92, 226, .055), transparent 28%),
    radial-gradient(circle at 5% 12%, rgba(23, 105, 255, .04), transparent 23%),
    var(--gn3-canvas);
  color: var(--gn3-text);
}

.gn-app-main {
  padding: calc(var(--gn3-topbar) + 30px) 24px 72px;
}

.gn-app-container {
  width: min(100%, var(--gn3-content));
  margin: 0 auto;
}

.gn-app-shell .root-ui-view {
  width: 100%;
}

.gn-app-shell .container,
.gn-app-shell .container-fluid {
  max-width: 100%;
}

.gn-app-shell h1,
.gn-app-shell h2,
.gn-app-shell h3,
.gn-app-shell h4,
.gn-app-shell h5,
.gn-app-shell h6 {
  color: var(--gn3-text);
  letter-spacing: -.02em;
}

.gn-app-shell h1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
.gn-app-shell h2 { font-size: 26px; line-height: 1.25; font-weight: 700; }
.gn-app-shell h3 { font-size: 22px; line-height: 1.3; font-weight: 650; }
.gn-app-shell h4 { font-size: 18px; line-height: 1.35; font-weight: 650; }
.gn-app-shell h5 { font-size: 16px; line-height: 1.4; font-weight: 650; }

.gn-app-shell .normal,
.gn-app-shell .small,
.gn-app-shell .extraSmall {
  color: var(--gn3-text-2);
}

/* --------------------------------------------------------------------------
   Top navigation
   -------------------------------------------------------------------------- */

.navigation-wrap.gn-topbar,
.navigation-wrap {
  height: var(--gn3-topbar);
  padding: 0;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navigation-wrap > .container {
  width: min(100% - 48px, var(--gn3-content));
  max-width: var(--gn3-content);
  height: 100%;
  padding: 0;
}

.navigation-wrap .navbar {
  min-height: var(--gn3-topbar);
  padding: 0;
  background: transparent !important;
}

.navigation-wrap .navbar-brand {
  padding: 0;
  margin-right: 28px;
}

.navigation-wrap .navbar-brand img,
.q-main-menu-navbar-brand img {
  height: 31px;
}

.navigation-wrap .nav-item.customGap {
  margin-left: 4px;
}

.navigation-wrap .navbar-light .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--gn3-text-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: color .15s ease, background-color .15s ease;
}

.navigation-wrap .navbar-light .navbar-nav .nav-link:hover {
  color: var(--gn3-text);
  background: #f5f7fb;
}

.navigation-wrap .navbar-light .navbar-nav .nav-item.active > .nav-link {
  color: var(--gn3-brand);
  background: var(--gn3-brand-soft);
  font-weight: 600;
}

.navigation-wrap .q-main-menu-nav-item:after {
  display: none;
}

.navigation-wrap .navbar-nav.ml-auto {
  gap: 2px;
  align-items: center;
}

.navigation-wrap .q-main-menu-nav-item .nav-link img {
  width: 22px;
  height: 22px;
}

.navigation-wrap .badge-danger {
  border: 2px solid #fff;
  background: #ef4444;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  line-height: 16px;
  padding: 0 5px;
}

.navigation-wrap .q-main-menu-dropdown-menu {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--gn3-border);
  border-radius: 12px;
  box-shadow: var(--gn3-shadow-md);
}

.navigation-wrap .q-main-menu-dropdown-item,
.navigation-wrap .dropdown-item {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--gn3-text-2);
  font-size: 13px;
}

.navigation-wrap .q-main-menu-dropdown-item:hover,
.navigation-wrap .dropdown-item:hover {
  background: var(--gn3-surface-soft);
  color: var(--gn3-text);
}

/* --------------------------------------------------------------------------
   Common surfaces / buttons / inputs / DevExtreme
   -------------------------------------------------------------------------- */

.gn-card,
.gn-panel {
  background: var(--gn3-surface);
  border: 1px solid var(--gn3-border);
  border-radius: var(--gn3-radius-md);
  box-shadow: var(--gn3-shadow-xs);
}

.gn-app-shell .card {
  border: 1px solid var(--gn3-border);
  border-radius: var(--gn3-radius-md) !important;
  box-shadow: var(--gn3-shadow-xs);
}

.gn-app-shell .btn_main,
.gn-app-shell .btn-primary,
.gn-app-shell .dx-button-mode-contained.dx-button-default,
.gn-app-shell .dx-button-mode-contained.dx-button-success,
.gn-app-shell .dx-button-mode-outlined.dx-button-default {
  border-radius: var(--gn3-radius-sm) !important;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
}

.gn-app-shell .dx-button-mode-contained.dx-button-default,
.gn-app-shell .dx-button-mode-contained.dx-button-success {
  background: var(--gn3-brand);
  border-color: var(--gn3-brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23,105,255,.16);
}

.gn-app-shell .dx-button-mode-contained.dx-button-default:hover,
.gn-app-shell .dx-button-mode-contained.dx-button-success:hover {
  background: var(--gn3-brand-hover);
  border-color: var(--gn3-brand-hover);
}

.gn-app-shell .dx-button-mode-outlined.dx-button-default {
  background: #fff;
  border-color: #cfd8e6;
  color: var(--gn3-text-2);
}

.gn-app-shell .dx-button-mode-outlined.dx-button-default:hover {
  border-color: #9fbaf3;
  color: var(--gn3-brand);
  background: #fbfdff;
}

.gn-app-shell .dx-texteditor,
.gn-app-shell .form-control,
.gn-app-shell .dx-dropdowneditor {
  border: 1px solid var(--gn3-border-strong) !important;
  border-radius: var(--gn3-radius-sm) !important;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.gn-app-shell .dx-texteditor.dx-state-focused,
.gn-app-shell .form-control:focus,
.gn-app-shell .dx-dropdowneditor.dx-state-focused {
  border-color: #8eb3ff !important;
  box-shadow: var(--gn3-focus) !important;
}

.gn-app-shell .dx-texteditor-input {
  color: var(--gn3-text);
  font-size: 13px;
}

.gn-app-shell .dx-placeholder {
  color: var(--gn3-muted-2);
}

.gn-app-shell .dx-popup-wrapper > .dx-overlay-content {
  border-radius: var(--gn3-radius-lg);
  border: 1px solid var(--gn3-border);
  box-shadow: var(--gn3-shadow-md);
  overflow: hidden;
}

.gn-app-shell .dx-popup-title {
  border-bottom: 1px solid var(--gn3-border);
  background: #fff;
  color: var(--gn3-text);
  font-weight: 650;
}









.gn-app-shell .dx-page.dx-selection {
  background: var(--gn3-brand);
  color: #fff;
  border-radius: 7px;
}

/* --------------------------------------------------------------------------
   Welcome / home screen
   -------------------------------------------------------------------------- */

.gn-welcome {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gn-welcome-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at 94% 5%, rgba(91, 92, 226, .16), transparent 34%),
    radial-gradient(circle at 72% 38%, rgba(23, 105, 255, .11), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fbfdff 55%, #f3f6ff 100%);
  border: 1px solid #dfe7f4;
  border-radius: 18px;
  box-shadow: var(--gn3-shadow-sm);
}

.gn-welcome-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -95px;
  width: 360px;
  height: 240px;
  border: 1px solid rgba(91,92,226,.1);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}

.gn-welcome-eyebrow {
  margin-bottom: 7px;
  color: var(--gn3-muted);
  font-size: 12px;
  font-weight: 600;
}

.gn-welcome-title {
  margin: 0;
  max-width: 650px;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: -.035em;
  color: var(--gn3-text);
}

.gn-welcome-subtitle {
  margin: 10px 0 18px;
  max-width: 620px;
  color: var(--gn3-muted);
  font-size: 14px;
  line-height: 1.6;
}

.gn-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gn-primary-action,
.gn-secondary-action,
.gn-link-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-family: var(--primary_font);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all .15s ease;
}

.gn-primary-action {
  border: 1px solid var(--gn3-brand);
  background: var(--gn3-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23,105,255,.18);
}
.gn-primary-action:hover { background: var(--gn3-brand-hover); color: #fff; transform: translateY(-1px); }
.gn-primary-action:disabled,
.gn-secondary-action:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.gn-secondary-action {
  border: 1px solid #b9cdf7;
  background: rgba(255,255,255,.86);
  color: var(--gn3-brand);
}
.gn-secondary-action:hover { border-color: #82a8f8; background: #fff; color: var(--gn3-brand-hover); }

.gn-ai-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(196, 211, 245, .95);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(51,65,85,.07);
  backdrop-filter: blur(10px);
}

.gn-ai-card__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--gn3-text);
  font-size: 14px;
  font-weight: 700;
}

.gn-ai-card__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8efff, #f3edff);
  color: var(--gn3-brand-2);
  font-size: 15px;
}

.gn-ai-card p {
  margin: 0 0 12px;
  color: var(--gn3-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gn-ai-prompt {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--gn3-border);
  border-radius: 10px;
  background: #fff;
}

.gn-ai-prompt__placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
  color: var(--gn3-muted-2);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gn-ai-prompt button {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--gn3-brand);
  color: #fff;
  cursor: pointer;
}

.gn-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.gn-stat-card {
  position: relative;
  min-height: 105px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--gn3-border);
  border-radius: 13px;
  box-shadow: var(--gn3-shadow-xs);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.gn-stat-card:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: #c6d6f4;
  box-shadow: var(--gn3-shadow-sm);
}

.gn-stat-card.is-disabled { opacity: .55; }

.gn-stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gn-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f6ff;
}

.gn-stat-card__icon img { width: 21px; height: 21px; }
.gn-stat-card__arrow { color: var(--gn3-muted-2); font-size: 15px; }
.gn-stat-card__value { color: var(--gn3-text); font-size: 22px; line-height: 1; font-weight: 750; letter-spacing: -.03em; }
.gn-stat-card__label { margin-left: 5px; color: var(--gn3-text-2); font-size: 13px; font-weight: 650; }
.gn-stat-card__desc { margin-top: 8px; color: var(--gn3-muted); font-size: 11px; }

.gn-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, .85fr);
  gap: 16px;
}

.gn-section-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gn3-border);
  border-radius: 14px;
  box-shadow: var(--gn3-shadow-xs);
}

.gn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.gn-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--gn3-text);
}

.gn-section-subtitle {
  margin-top: 3px;
  color: var(--gn3-muted);
  font-size: 11px;
}

.gn-recent-group + .gn-recent-group { margin-top: 15px; }
.gn-recent-group__label {
  margin-bottom: 7px;
  color: var(--gn3-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gn-recent-list { display: grid; gap: 8px; }
.gn-recent-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gn-recent-item:hover { background: #fbfdff; border-color: #d6e2f8; transform: translateY(-1px); }
.gn-recent-item__icon {
  flex: 0 0 36px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f4f7ff;
}
.gn-recent-item__icon img { max-width: 24px; max-height: 24px; }
.gn-recent-item__body { min-width: 0; flex: 1; }
.gn-recent-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gn3-text); font-size: 12px; font-weight: 650; }
.gn-recent-item__meta { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gn3-muted); font-size: 10px; }
.gn-recent-item__time { flex: 0 0 auto; color: var(--gn3-muted-2); font-size: 10px; }

.gn-quick-list { display: grid; gap: 4px; }
.gn-quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--gn3-text-2);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.gn-quick-action:hover { background: #f7faff; color: var(--gn3-brand); }
.gn-quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dce6fb;
  border-radius: 8px;
  background: #f6f9ff;
  color: var(--gn3-brand);
}

.gn-next-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dce6fb;
  border-radius: 11px;
  background: linear-gradient(90deg, #f7faff, #fff);
  color: var(--gn3-text-2);
  font-size: 12px;
}
.gn-next-step strong { color: var(--gn3-text); }
.gn-next-step a { font-weight: 650; }

/* --------------------------------------------------------------------------
   List headers / filters
   -------------------------------------------------------------------------- */

.gn-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.gn-list-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 750;
  color: var(--gn3-text);
  letter-spacing: -.03em;
}

.gn-list-count {
  color: var(--gn3-muted);
  font-weight: 500;
}

.gn-list-description {
  margin-top: 6px;
  color: var(--gn3-muted);
  font-size: 12px;
}

.gn-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gn-list-toolbar {
  padding: 0;
  margin: 0 0 18px;
}

.gn-list-toolbar .row.ml-4.mr-3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(170px, .85fr));
  gap: 10px;
}

.gn-list-toolbar .row.ml-4.mr-3 > [class*="col-"] {
  max-width: none;
  flex: none;
  padding: 0;
}

.gn-list-toolbar .dx-texteditor,
.gn-list-toolbar .dx-dropdowneditor {
  min-height: 38px;
  background: #fff;
}

.gn-list-toolbar .gn-bulk-actions {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Tile / asset cards
   -------------------------------------------------------------------------- */

.gn-tile-grid #tileView {
  margin: 0;
}

.gn-app-shell .dx-tile {
  border: 1px solid var(--gn3-border) !important;
  border-radius: 13px !important;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--gn3-shadow-xs);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.gn-app-shell .dx-tile:hover,
.gn-app-shell .custom_dx_tile .dx-item.dx-tile:hover .dx-item-content.dx-tile-content {
  border-color: #bdd0f5 !important;
  box-shadow: var(--gn3-shadow-sm);
}

.gn-app-shell .dx-tile:hover { transform: translateY(-2px); }

.gn-asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 12px;
  color: var(--gn3-text);
}

.gn-asset-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.gn-asset-card__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f3f7ff;
}
.gn-asset-card__icon .picture-icon-holder,
.gn-asset-card__icon img {
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gn-asset-card__body { min-height: 0; padding-top: 10px; }
.gn-asset-card .tileViewName {
  height: 43px;
  margin: 0;
  color: var(--gn3-text);
  text-align: left;
  font-family: var(--primary_font);
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
}

.gn-asset-card .model-list-model-name,
.gn-asset-card__type {
  display: block;
  min-height: 22px;
  margin: 2px 0 8px;
  color: var(--gn3-muted) !important;
  text-align: left !important;
  font-family: var(--primary_font);
  font-size: 10.5px !important;
  line-height: 16px !important;
}

.gn-asset-card .model-list-model-name > div,
.gn-asset-card .small.text-center {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9 !important;
  color: var(--gn3-muted) !important;
  font-size: 10px;
  line-height: 16px;
  text-align: left !important;
}

.gn-asset-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
}

.gn-asset-card .tile-view-item-subtitle {
  color: var(--gn3-muted);
  font-family: var(--primary_font);
  font-size: 9.5px;
  line-height: 14px;
}
.gn-asset-card .tile-view-item-value {
  color: var(--gn3-text);
  font-family: var(--primary_font);
  font-size: 11px;
  line-height: 16px;
  font-weight: 650;
}

.gn-asset-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  padding-top: 8px;
}

.gn-asset-card .tileViewTag,
.gn-asset-card .tileViewNoTag {
  max-width: 110px;
  height: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--primary_font);
  font-size: 9px;
  line-height: 14px;
}
.gn-asset-card .tileViewNoTag { background: #f1f5f9; color: var(--gn3-muted); }
.gn-asset-card .hoverCreateDate { color: var(--gn3-muted-2); font-size: 9.5px; }
.gn-asset-card .hoverCreateDate img { width: 13px !important; opacity: .7; }

.gn-asset-card .tile-model-not-run-holder {
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
}
.gn-asset-card .tile-model-not-run-text { color: var(--gn3-muted); font-size: 10px; }

.q-tile-view-list-item-standalone {
  border-radius: 13px;
  border: 1px solid var(--gn3-border);
}

/* --------------------------------------------------------------------------
   Entity/model resource header
   -------------------------------------------------------------------------- */

.gn-entity-header {
  margin-bottom: 10px;
}

.gn-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 13px;
  color: var(--gn3-muted);
  font-size: 12px;
  font-weight: 500;
}
.gn-breadcrumb:hover { color: var(--gn3-brand); }
.gn-breadcrumb .material-icons { font-size: 18px !important; color: inherit; }

.gn-entity-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.gn-entity-header__titleblock { min-width: 0; }
.gn-entity-header__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gn3-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gn-entity-header__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gn3-text);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -.03em;
}

.gn-entity-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 4px;
}

.gn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
}
.gn-status-pill::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity:.8; }
.gn-status-pill--success { background: var(--gn3-success-soft); color: #15803d; }
.gn-status-pill--pending { background: #f3f0ff; color: #6d5bd0; }
.gn-status-pill--training { background: #eef6ff; color: #2563eb; }
.gn-status-pill--danger { background: var(--gn3-danger-soft); color: #b91c1c; }

.gn-logs-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--gn3-brand);
  font-size: 11px;
  font-weight: 600;
}
.gn-logs-link:hover { background: var(--gn3-brand-soft); }

/* --------------------------------------------------------------------------
   Model navigation / performance / charts
   -------------------------------------------------------------------------- */

.gn-app-shell .top-tabs {
  margin-top: 12px;
  gap: 4px;
  border-bottom: 1px solid var(--gn3-border);
  padding: 0;
}
.gn-app-shell .top-tabs a {
  margin: 0 0 -1px;
  padding: 9px 12px 10px;
  border-radius: 8px 8px 0 0;
  color: var(--gn3-muted);
  font-size: 12px;
  font-weight: 550;
}
.gn-app-shell .top-tabs a:hover { background: #f8fafc; color: var(--gn3-text); }
.gn-app-shell .top-tabs a.is-active,
.gn-app-shell .top-tabs a[aria-current="page"] {
  background: transparent;
  color: var(--gn3-brand);
  font-weight: 650;
}
.gn-app-shell .top-tabs a.is-active::after,
.gn-app-shell .top-tabs a[aria-current="page"]::after {
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--gn3-brand);
}

.gn-app-shell .pill-tabs {
  margin-top: 15px;
  gap: 7px;
}
.gn-app-shell .pill-tabs button {
  min-height: 31px;
  padding: 6px 11px;
  border-color: var(--gn3-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gn3-muted);
  font-size: 11px;
}
.gn-app-shell .pill-tabs button.is-active,
.gn-app-shell .pill-tabs button[aria-selected="true"] {
  background: #f2f6ff;
  border-color: #8fb1f7;
  color: var(--gn3-brand);
  box-shadow: none;
  font-weight: 650;
}

.gn-model-results { margin-top: 2px; }
.gn-model-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 14px;
}
.gn-model-metric {
  min-height: 77px;
  padding: 13px 15px;
  border: 1px solid var(--gn3-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--gn3-shadow-xs);
}
.gn-model-metric__label { margin-bottom: 8px; color: var(--gn3-muted); font-size: 9.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .045em; }
.gn-model-metric__value { color: var(--gn3-text); font-size: 21px; line-height: 1; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gn-model-metric__unit { margin-left: 2px; color: var(--gn3-muted); font-size: 10px; font-weight: 600; }

.gn-chart-card {
  margin-top: 13px;
  padding: 17px 18px 12px;
  border: 1px solid var(--gn3-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--gn3-shadow-xs);
}
.gn-chart-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.gn-chart-card__title { margin: 0; color: var(--gn3-text); font-size: 13px; font-weight: 700; }
.gn-chart-card__subtitle { margin-top: 3px; color: var(--gn3-muted); font-size: 10px; }
.gn-chart-card .bayesian-fit-summary { margin-bottom: 12px; }
.gn-chart-card .q-maximize-chart,
.gn-chart-card .q-maximize-canvas-js-chart { border-radius: 8px; }

/* --------------------------------------------------------------------------
   Scenario/workflow modernization
   -------------------------------------------------------------------------- */

.gn-app-shell .modelScenario.wrapper {
  border-color: var(--gn3-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--gn3-shadow-xs);
}

.gn-app-shell .stickybar {
  bottom: 12px;
  margin: 14px 0 0;
  padding: 0 12px;
  border: 1px solid #dbe6f8;
  border-radius: 11px;
  background: rgba(247,250,255,.96);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  backdrop-filter: blur(12px);
}

.gn-app-shell .modelScenarioH2 { font-size: 18px; color: var(--gn3-text); }
.gn-app-shell .modelScenarioH3 { font-size: 14px; color: var(--gn3-text); }
.gn-app-shell .modelScenario.label { color: var(--gn3-text-2); font-size: 12px; }
.gn-app-shell .modelScenario.help,
.gn-app-shell .modelScenario.small { color: var(--gn3-muted); }

.gn-app-shell .steps,
.gn-app-shell .stepper,
.gn-app-shell .bs-stepper-header {
  border-color: var(--gn3-border);
}

/* Notifications / tips become soft enterprise callouts. */
.gn-app-shell .alert,
.gn-app-shell .q-notifications,
.gn-app-shell .notification-tip {
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  :root { --gn3-content: 1080px; }
  .gn-list-toolbar .row.ml-4.mr-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  :root { --gn3-topbar: 64px; }
  .navigation-wrap > .container { width: calc(100% - 32px); }
  .gn-app-main { padding: calc(var(--gn3-topbar) + 22px) 16px 56px; }
  .gn-welcome-hero { grid-template-columns: 1fr; }
  .gn-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .gn-welcome-grid { grid-template-columns: 1fr; }
  .gn-model-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .navigation-wrap .navbar-collapse {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid var(--gn3-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--gn3-shadow-md);
  }
}

@media (max-width: 767.98px) {
  .gn-welcome-hero { padding: 22px; }
  .gn-welcome-title { font-size: 26px; }
  .gn-stat-grid { grid-template-columns: 1fr; }
  .gn-list-header { align-items: flex-start; flex-direction: column; }
  .gn-list-actions { width: 100%; justify-content: flex-start; }
  .gn-list-toolbar .row.ml-4.mr-3 { grid-template-columns: 1fr; }
  .gn-entity-header__row { flex-direction: column; gap: 12px; }
  .gn-entity-header__actions { padding-top: 0; }
  .gn-entity-header__title { white-space: normal; }
}

@media (max-width: 575.98px) {
  .gn-app-main { padding-left: 12px; padding-right: 12px; }
  .gn-welcome-hero { border-radius: 14px; padding: 18px; }
  .gn-model-metrics { grid-template-columns: 1fr 1fr; }
  .gn-chart-card { padding: 13px 12px 8px; }
}

/* Legacy qTileViewListItem structure mapped into the new compact asset card. */
.gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px;
  background: #f3f7ff;
}
.gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block q-tile-view-icon,
.gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block img {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gn-asset-card > .row.ml-3.mr-3 {
  margin: 10px 0 0 !important;
}
.gn-asset-card > .row.ml-3.mr-3 > .col-12 {
  padding: 0 !important;
  margin: 0 !important;
}
.gn-asset-card > .row.mb-2 {
  margin: 0 !important;
}
.gn-asset-card > .row.mb-2 > .col-12 {
  padding: 0 !important;
}
.gn-asset-card > .row.mb-2 .small.text-center {
  padding-bottom: 0 !important;
}
.gn-asset-card > .row.mx-0.mt-2 {
  margin-top: 6px !important;
}
.gn-asset-card > .row.mx-0:not(.mt-2) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.gn-asset-card > .col-12[style*="position:absolute"] {
  position: static !important;
  padding: 0 !important;
  margin-top: auto;
}
.gn-asset-card > .col-12[style*="position:absolute"] > .row {
  margin: 0 !important;
  align-items: center;
}
.gn-asset-card > span[style*="position: absolute;left: 13px;top: 4px"] {
  left: auto !important;
  right: 12px !important;
  top: 12px !important;
  color: var(--gn3-muted-2);
}
.gn-asset-card .under-items {
  margin-top: 4px !important;
}
.gn-asset-card .under-items > .row {
  height: 36px !important;
}

/* Model scenario progress indicator, refined to match the compact SaaS visual system. */
.gn-app-shell .steps {
  width: min(100%, 920px);
  margin: 18px auto 24px;
}
.gn-app-shell .step-content {
  width: 10.5rem;
  min-width: 10.5rem;
  max-width: 10.5rem;
  padding-right: .75rem;
}
.gn-app-shell .step-circle {
  width: 22px;
  height: 22px;
  border-width: 1.5px;
  border-color: #cbd5e1;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 650;
}
.gn-app-shell .step-circle::before {
  width: calc(10.5rem + .75rem - 22px);
  height: 1.5px;
  color: #dbe3ee;
}
.gn-app-shell .step-text {
  margin-top: 7px;
  color: var(--gn3-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 550;
}
.gn-app-shell .step-active .step-circle,
.gn-app-shell .step-success .step-circle {
  color: #fff;
  background: var(--gn3-brand);
  border-color: var(--gn3-brand);
  font-size: 10px;
}
.gn-app-shell .step-active .step-circle::before,
.gn-app-shell .step-success .step-circle::before {
  color: #8fb1f7;
}
.gn-app-shell .step-active .step-text,
.gn-app-shell .step-success .step-text {
  color: var(--gn3-brand);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
@media (max-width: 991.98px) {
  .gn-app-shell .steps { overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
  .gn-app-shell .steps .step:first-child { margin-left: 0; }
  .gn-app-shell .steps .step:last-child { margin-right: 0; }
}

/* Final compatibility pass for legacy tile/filter markup. Keep these selectors
   narrow so the modernization does not alter popup picker tiles. */
.gn-list-toolbar .dx-texteditor,
.gn-list-toolbar .dx-dropdowneditor {
  width: 100% !important;
}

.gn-quick-action.disabled,
.gn-quick-action[disabled] {
  opacity: .48;
  pointer-events: none;
  cursor: default;
}

.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block {
  width: 36px;
  height: 36px;
  margin: 0 0 10px 0 !important;
  padding: 6px !important;
  border-radius: 9px;
  background: #f3f7ff;
}

.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block q-tile-view-icon,
.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
}

.gn-tile-grid .gn-asset-card > .row.ml-3.mr-3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.gn-tile-grid .gn-asset-card > .row.ml-3.mr-3 > .col-12,
.gn-tile-grid .gn-asset-card > .row.mb-2 > .col-12 {
  padding-left: 0;
  padding-right: 0;
}

.gn-tile-grid .gn-asset-card > .row.mb-2 {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 8px !important;
}

.gn-tile-grid .gn-asset-card > .row.mb-2 .small.text-center {
  padding-bottom: 0 !important;
}

.gn-tile-grid .gn-asset-card .under-items {
  margin-top: 4px !important;
  padding-top: 8px;
  border-top: 1px solid #edf1f6;
}

.gn-tile-grid .gn-asset-card > .row.mx-0.mt-2 {
  margin-top: 6px !important;
  padding-top: 7px;
  border-top: 1px solid #edf1f6;
}

.gn-tile-grid .gn-asset-card > .col-12[style*="position:absolute"] {
  left: 0;
  right: 0;
  bottom: 9px !important;
  padding-left: 14px;
  padding-right: 14px;
}

.gn-tile-grid .gn-asset-card .tileViewName {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Graphite Enterprise refinement (website-aligned)
   Brand reference: graphite-note.com 2026.
   Manrope = display hierarchy. DM Sans = interface/body.
   ========================================================================== */

:root {
  --primary_font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gn-display-font: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --gn3-canvas: #ffffff;
  --gn3-surface: #ffffff;
  --gn3-surface-soft: #f7f9fc;
  --gn3-surface-blue: #f4f8ff;
  --gn3-text: #07162c;
  --gn3-text-2: #22324a;
  --gn3-muted: #627087;
  --gn3-muted-2: #8996a8;
  --gn3-border: #dbe3ef;
  --gn3-border-strong: #c6d2e2;
  --gn3-brand: #195cff;
  --gn3-brand-2: #876dff;
  --gn3-brand-hover: #0f4de0;
  --gn3-brand-soft: #eef4ff;
  --gn3-cyan: #46d7ff;
  --gn3-success: #1ca778;
  --gn3-success-soft: #eafaf4;
  --gn3-warning: #b86a16;
  --gn3-warning-soft: #fff8e8;
  --gn3-danger: #d3445c;
  --gn3-danger-soft: #fff0f3;
  --gn3-radius-xs: 5px;
  --gn3-radius-sm: 7px;
  --gn3-radius-md: 10px;
  --gn3-radius-lg: 12px;
  --gn3-shadow-xs: 0 1px 2px rgba(0, 17, 41, .025);
  --gn3-shadow-sm: 0 8px 24px rgba(0, 17, 41, .055);
  --gn3-shadow-md: 0 18px 44px rgba(0, 17, 41, .09);
  --gn3-focus: 0 0 0 3px rgba(25, 92, 255, .15);
  --gn3-content: 1480px;
  --gn3-topbar: 64px;
}

html,
body,
.gn-app-shell {
  font-family: var(--primary_font);
  color: var(--gn3-text);
}

.gn-app-shell {
  background: var(--gn3-canvas);
}

.gn-app-main {
  padding: calc(var(--gn3-topbar) + 24px) 32px 64px;
}

.gn-app-container {
  width: min(calc(100vw - 64px), var(--gn3-content));
  max-width: var(--gn3-content);
}

.gn-app-shell h1,
.gn-app-shell h2,
.gn-app-shell h3,
.gn-app-shell h4,
.gn-app-shell h5,
.gn-app-shell h6,
.gn-list-title,
.gn-entity-header__title,
.gn-welcome-title,
.gn-section-title,
.gn-model-metric__value {
  font-family: var(--gn-display-font);
}

.gn-app-shell h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.gn-app-shell h2 { font-size: 22px; font-weight: 700; letter-spacing: -.028em; }
.gn-app-shell h3 { font-size: 18px; font-weight: 700; letter-spacing: -.022em; }
.gn-app-shell h4 { font-size: 16px; font-weight: 700; }
.gn-app-shell h5 { font-size: 14px; font-weight: 700; }

/* Shell */
.navigation-wrap.gn-topbar,
.navigation-wrap {
  height: var(--gn3-topbar);
  background: #fff !important;
  border-bottom: 1px solid var(--gn3-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navigation-wrap > .container {
  width: min(calc(100vw - 64px), var(--gn3-content));
  max-width: var(--gn3-content);
}

.navigation-wrap .navbar { min-height: var(--gn3-topbar); }
.navigation-wrap .navbar-brand { margin-right: 32px; }
.navigation-wrap .navbar-brand img,
.q-main-menu-navbar-brand img { height: 29px; }

.navigation-wrap .navbar-light .navbar-nav .nav-link {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 7px;
  color: #35445a;
  font-size: 13px;
  font-weight: 600;
}

.navigation-wrap .navbar-light .navbar-nav .nav-link:hover {
  color: var(--gn3-text);
  background: #f7f9fc;
}

.navigation-wrap .navbar-light .navbar-nav .nav-item.active > .nav-link {
  color: var(--gn3-brand);
  background: var(--gn3-brand-soft);
}

/* Shared enterprise primitives */
.gn-card,
.gn-panel,
.gn-section-card,
.gn-stat-card,
.gn-model-metric,
.gn-chart-card,
.gn-app-shell .card,
.gn-app-shell .modelScenario.wrapper {
  border-color: var(--gn3-border);
  border-radius: var(--gn3-radius-md) !important;
  box-shadow: var(--gn3-shadow-xs);
}

.gn-app-shell .btn_main,
.gn-app-shell .btn-primary,
.gn-app-shell .dx-button,
.gn-primary-action,
.gn-secondary-action {
  border-radius: 7px !important;
  font-family: var(--primary_font);
  font-weight: 600;
}

.gn-primary-action,
.gn-app-shell .dx-button-mode-contained.dx-button-default,
.gn-app-shell .dx-button-mode-contained.dx-button-success {
  background: var(--gn3-brand);
  border-color: var(--gn3-brand);
  box-shadow: none;
}

.gn-primary-action:hover,
.gn-app-shell .dx-button-mode-contained.dx-button-default:hover,
.gn-app-shell .dx-button-mode-contained.dx-button-success:hover {
  background: var(--gn3-brand-hover);
  border-color: var(--gn3-brand-hover);
  transform: none;
}

.gn-app-shell .dx-texteditor,
.gn-app-shell .form-control,
.gn-app-shell .dx-dropdowneditor {
  min-height: 36px;
  border-color: var(--gn3-border-strong) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.gn-app-shell .dx-texteditor.dx-state-focused,
.gn-app-shell .form-control:focus,
.gn-app-shell .dx-dropdowneditor.dx-state-focused {
  border-color: #82a9ff !important;
  box-shadow: var(--gn3-focus) !important;
}

/* Welcome */
.gn-welcome { gap: 16px; }
.gn-welcome-hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .7fr);
  gap: 30px;
  padding: 28px 30px;
  border: 1px solid var(--gn3-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(70, 215, 255, .13), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 62%, #f4f8ff 100%);
  box-shadow: none;
}
.gn-welcome-hero::after { opacity: .42; border-color: rgba(25, 92, 255, .12); }
.gn-welcome-eyebrow { color: var(--gn3-muted); font-size: 12px; font-weight: 600; }
.gn-welcome-title { max-width: 720px; font-size: 31px; font-weight: 700; letter-spacing: -.045em; }
.gn-welcome-subtitle { max-width: 760px; margin: 9px 0 17px; color: var(--gn3-muted); font-size: 13px; line-height: 1.55; }

.gn-ai-card {
  min-height: 142px;
  padding: 17px;
  border: 1px solid var(--gn3-border);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: none;
  backdrop-filter: none;
}
.gn-ai-card__icon { border-radius: 7px; background: var(--gn3-brand-soft); color: var(--gn3-brand); }
.gn-ai-prompt { border-radius: 7px; }
.gn-ai-prompt button { border-radius: 6px; }

.gn-stat-grid { gap: 10px; }
.gn-stat-card { min-height: 92px; padding: 14px 15px; border-radius: 9px; box-shadow: none; }
.gn-stat-card:not(.is-disabled):hover { transform: none; border-color: #b7c7df; box-shadow: 0 6px 18px rgba(0,17,41,.045); }
.gn-stat-card__top { margin-bottom: 8px; }
.gn-stat-card__icon { width: 30px; height: 30px; border-radius: 7px; background: #f2f6ff; }
.gn-stat-card__icon img { width: 19px; height: 19px; }
.gn-stat-card__value { font-family: var(--gn-display-font); font-size: 21px; font-weight: 700; }
.gn-stat-card__label { font-size: 12px; }
.gn-stat-card__desc { margin-top: 6px; font-size: 10.5px; }

.gn-welcome-grid { grid-template-columns: minmax(0, 2.5fr) minmax(280px, .72fr); gap: 12px; }
.gn-section-card { padding: 17px; border-radius: 10px; box-shadow: none; }
.gn-section-title { font-size: 17px; }
.gn-section-subtitle { font-size: 10.5px; }
.gn-recent-list { gap: 6px; }
.gn-recent-item { min-height: 49px; padding: 7px 9px; border-radius: 7px; }
.gn-recent-item:hover { transform: none; background: #f9fbfe; border-color: #cbd8e8; }
.gn-recent-item__icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; }
.gn-recent-item__name { font-size: 11.5px; }
.gn-recent-item__meta,
.gn-recent-item__time { font-size: 9.5px; }
.gn-quick-action { min-height: 38px; border-radius: 7px; }
.gn-quick-action__icon { width: 26px; height: 26px; border-radius: 6px; }
.gn-next-step { padding: 10px 12px; border-color: var(--gn3-border); border-radius: 8px; background: var(--gn3-surface-soft); }

/* List hierarchy / density */
.gn-list-header { align-items: center; margin-bottom: 14px; }
.gn-list-title { font-size: 27px; font-weight: 700; letter-spacing: -.04em; }
.gn-list-count { color: #7a8799; font-weight: 500; }
.gn-list-description { margin: 4px 0 0; font-size: 11.5px; }
.gn-list-toolbar { margin-bottom: 13px; }
.gn-list-toolbar .row.ml-4.mr-3 {
  grid-template-columns: minmax(300px, 1.5fr) minmax(200px, .9fr) minmax(200px, .9fr) minmax(220px, .95fr);
  gap: 8px;
}
.gn-list-toolbar .dx-texteditor,
.gn-list-toolbar .dx-dropdowneditor { min-height: 36px; }
.gn-bulk-actions h6 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--gn3-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.gn-bulk-actions h6:hover { background: var(--gn3-surface-soft); color: var(--gn3-text); }

/* Asset cards */
.gn-app-shell .dx-tile { border-radius: 9px !important; box-shadow: none; }
.gn-app-shell .dx-tile:hover,
.gn-app-shell .custom_dx_tile .dx-item.dx-tile:hover .dx-item-content.dx-tile-content {
  transform: none;
  border-color: #b8c8df !important;
  box-shadow: 0 7px 20px rgba(0,17,41,.045);
}
.gn-tile-grid .gn-asset-card { padding: 12px 12px 10px !important; }
.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block {
  width: 31px;
  height: 31px;
  margin-bottom: 8px !important;
  padding: 5px !important;
  border-radius: 7px;
  background: #f2f6ff;
}
.gn-tile-grid .gn-asset-card > .row.pb-3.pt-4.mx-auto.d-block img {
  width: 21px !important;
  height: 21px !important;
  max-width: 21px !important;
  max-height: 21px !important;
}
.gn-tile-grid .gn-asset-card .tileViewName {
  font-family: var(--gn-display-font);
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -.018em;
}
.gn-tile-grid .gn-asset-card .under-items,
.gn-tile-grid .gn-asset-card > .row.mx-0.mt-2 { border-color: #e8edf4; }
.gn-tile-grid .tile-view-item-subtitle { font-size: 9.5px; color: var(--gn3-muted); }
.gn-tile-grid .tile-view-item-value { font-size: 11px; color: var(--gn3-text); font-weight: 650; }
.gn-tile-grid .tileViewTag,
.gn-tile-grid .tileViewNoTag { font-size: 9.5px; }

/* Entity hierarchy / statuses */
.gn-entity-header { margin-bottom: 0; padding-bottom: 0; }
.gn-breadcrumb { margin-bottom: 10px; color: var(--gn3-muted); font-size: 11px; font-weight: 600; }
.gn-entity-header__row { align-items: center; gap: 24px; }
.gn-entity-header__kicker { color: #718099; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.gn-entity-header__title { max-width: 1050px; font-size: 29px; line-height: 1.15; font-weight: 700; letter-spacing: -.045em; }
.gn-entity-header__actions { gap: 7px; padding-top: 2px; }
.gn-status-pill { min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 650; }
.gn-status-pill--success { background: #eafaf4; color: #11865e; }
.gn-status-pill--training { background: #eef4ff; color: #195cff; }
.gn-status-pill--pending { background: #f3f0ff; color: #6d58d9; }
.gn-status-pill--danger { background: #fff0f3; color: #c23b53; }
.gn-logs-link { color: #42526a; }
.gn-logs-link:hover { background: var(--gn3-surface-soft); color: var(--gn3-text); }

/* Navigation tabs */
.gn-app-shell .top-tabs { margin-top: 10px; gap: 18px; }
.gn-app-shell .top-tabs a {
  padding: 8px 2px 10px;
  border-radius: 0;
  color: #5b697e;
  font-size: 12px;
  font-weight: 600;
}
.gn-app-shell .top-tabs a:hover { background: transparent; color: var(--gn3-text); }
.gn-app-shell .top-tabs a.is-active,
.gn-app-shell .top-tabs a[aria-current="page"] { color: var(--gn3-brand); }
.gn-app-shell .top-tabs a.is-active::after,
.gn-app-shell .top-tabs a[aria-current="page"]::after { left: 0; right: 0; height: 2px; }

.gn-app-shell .pill-tabs { margin-top: 11px; gap: 5px; }
.gn-app-shell .pill-tabs button {
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  color: #58667b;
  font-size: 10.5px;
  font-weight: 600;
}
.gn-app-shell .pill-tabs button.is-active,
.gn-app-shell .pill-tabs button[aria-selected="true"] {
  background: var(--gn3-brand-soft);
  border-color: #a9c1f5;
  color: var(--gn3-brand);
}

/* Model performance / charts */
.gn-model-results > .col-12 { padding-left: 0; padding-right: 0; }
.gn-model-metrics { gap: 8px; margin: 11px 0 12px; }
.gn-model-metric { min-height: 70px; padding: 11px 13px; border-radius: 8px; box-shadow: none; }
.gn-model-metric__label { margin-bottom: 6px; color: #718099; font-size: 9px; letter-spacing: .07em; }
.gn-model-metric__value { font-size: 20px; font-weight: 700; }
.gn-chart-card { margin-top: 10px; padding: 16px 16px 10px; border-radius: 10px; box-shadow: none; }
.gn-chart-card__title { font-family: var(--gn-display-font); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.gn-chart-card__subtitle { color: var(--gn3-muted); font-size: 10.5px; }

/* Tables */






/* Configure pages */
.gn-app-shell .modelScenario.wrapper { padding: 20px; border-radius: 10px; box-shadow: none; }
.gn-app-shell .modelScenarioH2 { font-family: var(--gn-display-font); font-size: 17px; }
.gn-app-shell .modelScenarioH3 { font-size: 13px; }
.gn-app-shell .modelScenario.help,
.gn-app-shell .modelScenario.small { line-height: 1.5; }
.gn-app-shell .stickybar {
  bottom: 10px;
  border-color: var(--gn3-border);
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(0,17,41,.07);
}
.gn-app-shell .steps { width: min(100%, 1080px); margin: 14px 0 20px; }
.gn-app-shell .step-content { width: 11.5rem; min-width: 11.5rem; max-width: 11.5rem; }
.gn-app-shell .step-circle { border-color: #c8d4e3; }
.gn-app-shell .step-circle::before { color: var(--gn3-border); }
.gn-app-shell .step-active .step-circle,
.gn-app-shell .step-success .step-circle { background: var(--gn3-brand); border-color: var(--gn3-brand); }

/* Predict surface */
.gn-predict-panel {
  max-width: 980px;
  margin: 18px 0 14px;
  padding: 20px;
  border: 1px solid var(--gn3-border);
  border-radius: 10px;
  background: #fff;
}
.gn-predict-panel__header { margin-bottom: 16px; }
.gn-predict-panel__eyebrow,
.gn-api-panel__eyebrow {
  margin-bottom: 4px;
  color: #718099;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gn-predict-panel__header h2,
.gn-api-panel__header h2 { margin: 0; font-family: var(--gn-display-font); font-size: 18px; font-weight: 700; }
.gn-predict-panel__header p,
.gn-api-panel__header p { margin: 5px 0 0; color: var(--gn3-muted); font-size: 12px; }
.gn-predict-fields { display: grid; grid-template-columns: repeat(3, minmax(180px, 240px)); gap: 12px; align-items: end; }
.gn-predict-field label { display: block; margin-bottom: 6px; color: #3c4b61; font-size: 11px; font-weight: 650; }
.gn-predict-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.gn-predict-results { margin-top: 16px; }

/* API surface */
.gn-api-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--gn3-border); border-radius: 10px; background: #fff; }
.gn-api-panel__header { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #edf1f6; }
.gn-code-editor { border: 1px solid var(--gn3-border); border-radius: 8px; overflow: hidden; background: #fbfcfe; }
.gn-api-panel .nav-link-edit-scenario { border-radius: 6px; }

/* Quiet callouts */
.gn-app-shell .alert,
.gn-app-shell .q-notifications,
.gn-app-shell .notification-tip,
.gn-app-shell .qNotificationText { border-radius: 8px; box-shadow: none; }

/* Responsive */
@media (max-width: 1599.98px) {
  :root { --gn3-content: 1320px; }
}

@media (max-width: 1399.98px) {
  :root { --gn3-content: 1180px; }
  .gn-app-main { padding-left: 24px; padding-right: 24px; }
  .gn-app-container,
  .navigation-wrap > .container { width: min(calc(100vw - 48px), var(--gn3-content)); }
}

@media (max-width: 1199.98px) {
  :root { --gn3-content: 1080px; }
  .gn-welcome-hero { grid-template-columns: 1fr; }
  .gn-welcome-grid { grid-template-columns: 1fr; }
  .gn-list-toolbar .row.ml-4.mr-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
  .gn-app-main { padding: calc(var(--gn3-topbar) + 18px) 14px 48px; }
  .gn-app-container,
  .navigation-wrap > .container { width: 100%; }
  .gn-welcome-hero { padding: 20px; }
  .gn-predict-fields { grid-template-columns: 1fr; }
}
