:root {
  --geco-bg: #f4f3fa;
  --geco-surface: #ffffff;
  --geco-surface-muted: #f7f6fb;
  --geco-sidebar: #120b45;
  --geco-header: #120b45;
  --geco-text: #18142d;
  --geco-muted: #77728b;
  --geco-border: #e8e5f1;
  --geco-blue: #8548f5;
  --geco-blue-soft: #f0e9ff;
  --geco-cyan: #84e9ff;
  --geco-yellow: #f5b91f;
  --geco-green: #26a269;
  --geco-red: #d84a4a;
  --geco-shadow: 0 14px 36px rgba(31, 19, 82, 0.10);
  --primary: var(--geco-blue);
  --secondary: #1b1257;
  --accent: var(--geco-yellow);
  --header-bg: var(--geco-surface);
  --header-color: var(--geco-text);
  --breadcrumbs-bg: transparent;
  --breadcrumbs-fg: var(--geco-muted);
  --body-bg: var(--geco-bg);
  --body-fg: var(--geco-text);
  --body-quiet-color: var(--geco-muted);
  --hairline-color: var(--geco-border);
  --border-color: var(--geco-border);
  --darkened-bg: var(--geco-surface-muted);
  --selected-bg: var(--geco-blue-soft);
  --selected-row: #f4efff;
  color-scheme: light;
}

html[data-geco-theme="dark"] {
  --geco-bg: #0c0828;
  --geco-surface: #17113b;
  --geco-surface-muted: #20194b;
  --geco-sidebar: #09061f;
  --geco-header: #100b3d;
  --geco-text: #f4f5f8;
  --geco-muted: #9ba1b1;
  --geco-border: #30285f;
  --geco-blue-soft: #342267;
  --geco-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  --selected-row: #2b2059;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: var(--geco-bg);
  color: var(--geco-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
a:link, a:visited { color: var(--geco-blue); }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

#header {
  align-items: center;
  background: var(--geco-header);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: white;
  display: flex;
  height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
#branding { min-width: 232px; }
#branding h1 { margin: 0; }
.geco-brand {
  align-items: center;
  color: white !important;
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
}
.geco-brand-mark {
  align-items: center;
  background: var(--geco-blue);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.geco-brand strong, .geco-brand small { display: block; letter-spacing: 0; }
.geco-brand strong { font-size: 15px; line-height: 19px; }
.geco-brand small { color: #aaa3d0; font-size: 10px; font-weight: 500; line-height: 14px; }
#user-tools {
  align-items: center;
  color: #aaa3d0;
  display: flex;
  font-size: 12px;
  gap: 4px;
  margin-left: auto;
  padding: 0;
}
#user-tools a { border: 0; color: white; font-weight: 600; margin: 0 3px; }
#user-tools a:hover { color: var(--geco-cyan); }
#logout-form button { color: white; font-weight: 600; letter-spacing: 0; }
#nav-global { margin-left: 12px; }
.geco-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}
.theme-dark-icon { display: none; }
html[data-geco-theme="dark"] .theme-light-icon { display: none; }
html[data-geco-theme="dark"] .theme-dark-icon { display: block; }

.main { min-height: calc(100vh - 72px); }
#nav-sidebar {
  background: var(--geco-sidebar);
  border: 0;
  color: #b6bac6;
  flex: 0 0 260px;
  padding: 20px 14px;
}
#nav-sidebar .module { background: transparent; margin: 0 0 18px; }
#nav-sidebar .module caption {
  background: transparent;
  color: #707687;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 12px 7px;
  text-transform: uppercase;
}
#nav-sidebar table, #nav-sidebar tbody { display: block; }
#nav-sidebar tr { display: block; }
#nav-sidebar th { display: block; padding: 0; }
#nav-sidebar td { display: none; }
#nav-sidebar a {
  border-radius: 6px;
  color: #c6cad4;
  display: block;
  font-size: 12px;
  font-weight: 550;
  padding: 9px 12px;
}
#nav-sidebar a:hover { background: #251b68; color: white; }
#nav-sidebar .current-model a { background: var(--geco-blue); color: white; }
.toggle-nav-sidebar {
  background: var(--geco-sidebar);
  border: 0;
  color: white;
}

#content-start { min-width: 0; }
#content { padding: 28px 32px 48px; }
div.breadcrumbs {
  background: transparent;
  border-bottom: 1px solid var(--geco-border);
  color: var(--geco-muted);
  font-size: 12px;
  padding: 14px 32px;
}
div.breadcrumbs a { color: var(--geco-text); font-weight: 600; }
#content > h1, .geco-page-heading h1 {
  color: var(--geco-text);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}
#content > h2 { color: var(--geco-text); font-size: 18px; }
.geco-page-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 22px; }
.geco-page-heading p:not(.geco-eyebrow) { color: var(--geco-muted); margin: 7px 0 0; }
.geco-eyebrow { color: var(--geco-blue); font-size: 10px; font-weight: 800; letter-spacing: 0.09em; margin: 0 0 7px; text-transform: uppercase; }
.button.geco-primary-action, .geco-primary-action {
  align-items: center;
  background: var(--geco-blue) !important;
  border: 0 !important;
  border-radius: 7px;
  color: white !important;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px !important;
}

.geco-metrics { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.geco-metric {
  align-items: center;
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
}
.geco-metric-icon, .geco-app-icon, .geco-login-icon {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.geco-metric-icon.blue { background: var(--geco-blue-soft); color: var(--geco-blue); }
.geco-metric-icon.yellow { background: #fff6db; color: #a97200; }
.geco-metric-icon.green { background: #e8f7ef; color: var(--geco-green); }
html[data-geco-theme="dark"] .geco-metric-icon.yellow { background: #3b3117; color: #f5c84e; }
html[data-geco-theme="dark"] .geco-metric-icon.green { background: #173329; color: #5bd49a; }
.geco-metric div { min-width: 0; }
.geco-metric small, .geco-metric strong, .geco-metric span { display: block; }
.geco-metric small { color: var(--geco-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.geco-metric strong { color: var(--geco-text); font-size: 22px; line-height: 30px; }
.geco-metric div span { color: var(--geco-muted); font-size: 10px; }

.geco-dashboard-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 310px; }
.geco-workspace, .geco-activity {
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 8px;
  padding: 20px;
}
.geco-workspace { background: transparent; border: 0; padding: 0; }
.geco-section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.geco-section-heading h2 { color: var(--geco-text); font-size: 15px; font-weight: 750; margin: 0; }
.geco-section-heading p { color: var(--geco-muted); font-size: 11px; margin: 3px 0 0; }
.geco-app-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geco-app-panel { background: var(--geco-surface-muted); border: 1px solid var(--geco-border); border-radius: 7px; margin: 0 !important; overflow: hidden; }
.geco-app-panel > header { align-items: center; background: transparent; display: flex; gap: 11px; padding: 14px; }
.geco-app-icon { background: var(--geco-surface); color: var(--geco-blue); height: 36px; width: 36px; }
.geco-app-panel h3 { color: var(--geco-text); font-size: 13px; font-weight: 750; margin: 0; }
.geco-app-panel header small { color: var(--geco-muted); font-size: 9px; }
.geco-model-list { background: var(--geco-surface); border-top: 1px solid var(--geco-border); padding: 5px 9px; }
.geco-model-row { align-items: center; border-bottom: 1px solid var(--geco-border); display: flex; min-height: 38px; }
.geco-model-row:last-child { border-bottom: 0; }
.geco-model-row > a:first-child { align-items: center; color: var(--geco-text); display: flex; flex: 1; font-size: 11px; font-weight: 600; justify-content: space-between; min-width: 0; padding: 8px 5px; }
.geco-model-row > a:first-child:hover { color: var(--geco-blue); }
.geco-model-row > a:first-child svg { height: 14px; width: 14px; }
.geco-add-link { align-items: center; border-radius: 5px; color: var(--geco-muted) !important; display: inline-flex; height: 26px; justify-content: center; width: 26px; }
.geco-add-link:hover { background: var(--geco-blue-soft); color: var(--geco-blue) !important; }
.geco-add-link svg { height: 14px; width: 14px; }
.geco-activity-list { display: grid; gap: 3px; }
.geco-activity-row { align-items: center; border-bottom: 1px solid var(--geco-border); display: flex; gap: 10px; min-height: 57px; padding: 8px 0; }
.geco-activity-row:last-child { border: 0; }
.geco-activity-icon { align-items: center; background: var(--geco-surface-muted); border-radius: 6px; color: var(--geco-muted); display: flex; flex: 0 0 31px; height: 31px; justify-content: center; }
.geco-activity-icon.add { color: var(--geco-green); }
.geco-activity-icon.change { color: var(--geco-blue); }
.geco-activity-icon.delete { color: var(--geco-red); }
.geco-activity-icon svg { height: 14px; width: 14px; }
.geco-activity-row div { min-width: 0; }
.geco-activity-row a, .geco-activity-row strong { color: var(--geco-text); display: block; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geco-activity-row small { color: var(--geco-muted); display: block; font-size: 9px; margin-top: 2px; }
.geco-empty { color: var(--geco-muted); font-size: 12px; padding: 28px 10px; text-align: center; }

/* Analytics landing page */
.geco-analytics-heading { align-items: center; }
.geco-heading-actions { align-items: center; display: flex; gap: 9px; }
.geco-date-chip {
  align-items: center;
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 7px;
  color: var(--geco-muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
}
.geco-date-chip svg { height: 15px; width: 15px; }
.geco-kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.geco-kpi-card {
  align-items: flex-start;
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 126px;
  padding: 17px;
}
.geco-kpi-card div { min-width: 0; }
.geco-kpi-card small, .geco-kpi-card strong, .geco-kpi-card div span { display: block; }
.geco-kpi-card small { color: var(--geco-muted); font-size: 10px; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.geco-kpi-card strong { color: var(--geco-text); font-size: 28px; line-height: 35px; }
.geco-kpi-card div span { color: var(--geco-muted); font-size: 9px; margin-top: 5px; }
.geco-kpi-icon {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}
.geco-kpi-icon svg { height: 16px; width: 16px; }
.geco-kpi-card.purple .geco-kpi-icon { background: var(--geco-blue-soft); color: var(--geco-blue); }
.geco-kpi-card.cyan .geco-kpi-icon { background: #e6faff; color: #168ba7; }
.geco-kpi-card.pink .geco-kpi-icon { background: #fdebf7; color: #c34696; }
.geco-kpi-card.green .geco-kpi-icon { background: #e8f8f0; color: #25875b; }
html[data-geco-theme="dark"] .geco-kpi-card.cyan .geco-kpi-icon { background: #173d51; color: var(--geco-cyan); }
html[data-geco-theme="dark"] .geco-kpi-card.pink .geco-kpi-icon { background: #4a2144; color: #f29bd4; }
html[data-geco-theme="dark"] .geco-kpi-card.green .geco-kpi-icon { background: #153a2b; color: #6ee0a9; }

.geco-analytics-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.geco-dashboard-panel { background: var(--geco-surface); border: 1px solid var(--geco-border); border-radius: 8px; min-width: 0; padding: 17px; }
.geco-download-panel { grid-column: span 8; min-height: 330px; }
.geco-ring-panel { grid-column: span 4; min-height: 330px; }
.geco-ring-panel:nth-of-type(3) { grid-column: span 4; }
.geco-quick-panel { grid-column: span 8; }
.geco-recent-panel { grid-column: 1 / -1; }
.geco-panel-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 14px; }
.geco-panel-heading h2 { color: var(--geco-text); font-size: 13px; font-weight: 750; margin: 0; }
.geco-panel-heading p { color: var(--geco-muted); font-size: 9px; margin: 3px 0 0; }
.geco-panel-heading > a { align-items: center; color: var(--geco-blue); display: inline-flex; font-size: 9px; font-weight: 700; gap: 4px; }
.geco-panel-heading > a svg { height: 13px; width: 13px; }

.geco-bar-chart { align-items: end; display: grid; gap: clamp(10px, 3vw, 28px); grid-template-columns: repeat(7, minmax(24px, 1fr)); height: 252px; padding: 28px 14px 3px; position: relative; }
.geco-chart-grid { display: flex; flex-direction: column; inset: 28px 10px 26px; justify-content: space-between; pointer-events: none; position: absolute; }
.geco-chart-grid span { border-top: 1px solid var(--geco-border); display: block; }
.geco-bar-column { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: end; min-width: 0; position: relative; z-index: 1; }
.geco-bar-value { color: var(--geco-muted); font-size: 8px; font-weight: 700; margin-bottom: 5px; }
.geco-bar-track { align-items: end; display: flex; height: 190px; justify-content: center; width: min(25px, 70%); }
.geco-bar-track > span { background: var(--geco-blue); border-radius: 4px 4px 1px 1px; display: block; min-height: 8px; width: 100%; }
.geco-bar-column:nth-of-type(3n) .geco-bar-track > span { background: var(--geco-cyan); }
.geco-bar-column small { color: var(--geco-muted); font-size: 8px; font-weight: 650; margin-top: 7px; text-transform: uppercase; }

.geco-chart-wrap { height: 178px; margin: 4px auto 12px; max-width: 230px; position: relative; }
.geco-chart-legend { display: grid; gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geco-chart-legend span { align-items: center; color: var(--geco-muted); display: grid; font-size: 8px; gap: 5px; grid-template-columns: 7px minmax(0, 1fr) auto; }
.geco-chart-legend i { border-radius: 2px; display: inline-block; height: 7px; width: 7px; }
.geco-chart-legend b { color: var(--geco-text); font-size: 8px; }

.geco-quick-list { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geco-quick-list > a { align-items: center; background: var(--geco-surface-muted); border: 1px solid var(--geco-border); border-radius: 7px; color: var(--geco-text); display: flex; gap: 10px; min-height: 68px; padding: 10px; }
.geco-quick-list > a:hover { background: var(--selected-row); border-color: #cfc2ef; }
.geco-quick-list > a > span { align-items: center; border-radius: 6px; display: flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.geco-quick-list > a > span.violet { background: var(--geco-blue-soft); color: var(--geco-blue); }
.geco-quick-list > a > span.cyan { background: #e6faff; color: #168ba7; }
.geco-quick-list > a > span.pink { background: #fdebf7; color: #c34696; }
.geco-quick-list > a > span.green { background: #e8f8f0; color: #25875b; }
.geco-quick-list > a > span svg, .geco-quick-list > a > svg { height: 15px; width: 15px; }
.geco-quick-list > a > div { flex: 1; min-width: 0; }
.geco-quick-list strong, .geco-quick-list small { display: block; }
.geco-quick-list strong { color: var(--geco-text); font-size: 10px; }
.geco-quick-list small { color: var(--geco-muted); font-size: 8px; margin-top: 2px; }
.geco-quick-list > a > svg { color: var(--geco-muted); }
html[data-geco-theme="dark"] .geco-quick-list > a > span.cyan { background: #173d51; color: var(--geco-cyan); }
html[data-geco-theme="dark"] .geco-quick-list > a > span.pink { background: #4a2144; color: #f29bd4; }
html[data-geco-theme="dark"] .geco-quick-list > a > span.green { background: #153a2b; color: #6ee0a9; }

.geco-dashboard-table { min-width: 0; }
.geco-dashboard-table-head, .geco-dashboard-table-row { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(180px, 1.6fr) minmax(100px, .8fr) minmax(130px, 1fr) 90px; }
.geco-dashboard-table-head { color: var(--geco-muted); font-size: 8px; font-weight: 750; padding: 0 12px 7px; text-transform: uppercase; }
.geco-dashboard-table-row { background: var(--geco-surface-muted); border: 1px solid var(--geco-border); border-radius: 7px; color: var(--geco-muted); font-size: 9px; margin-top: 7px; min-height: 54px; padding: 8px 12px; }
.geco-dashboard-table-row > span { min-width: 0; }
.geco-dashboard-table-row a, .geco-dashboard-table-row strong { color: var(--geco-text); display: block; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geco-dashboard-table-row small { color: var(--geco-muted); display: block; font-size: 8px; margin-top: 2px; }
.geco-status { border-radius: 5px; display: inline-flex; font-size: 8px; font-weight: 750; justify-content: center; min-width: 61px; padding: 5px 7px; }
.geco-status.created { background: #e4f7ed; color: #247651; }
.geco-status.updated { background: var(--geco-blue-soft); color: var(--geco-blue); }
.geco-status.deleted { background: #fdebec; color: #ad3942; }
html[data-geco-theme="dark"] .geco-status.created { background: #153a2b; color: #6ee0a9; }
html[data-geco-theme="dark"] .geco-status.deleted { background: #452126; color: #ff9ca4; }

/* Permission-aware application workspaces */
.geco-app-heading { align-items: center; }
.geco-back-dashboard {
  align-items: center;
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 7px;
  color: var(--geco-text) !important;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
}
.geco-back-dashboard:hover { border-color: var(--geco-blue); color: var(--geco-blue) !important; }
.geco-back-dashboard svg { height: 15px; width: 15px; }
.geco-app-summary {
  align-items: center;
  background: var(--geco-header);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 14px;
  margin-bottom: 15px;
  min-height: 112px;
  padding: 18px;
}
.geco-app-summary-mark { align-items: center; background: var(--geco-blue); border-radius: 7px; display: flex; height: 48px; justify-content: center; width: 48px; }
.geco-app-summary-mark svg { height: 22px; width: 22px; }
.geco-app-summary small, .geco-app-summary strong, .geco-app-summary span { display: block; }
.geco-app-summary small { color: var(--geco-cyan); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.geco-app-summary strong { font-size: 20px; line-height: 28px; }
.geco-app-summary span { color: #aaa3d0; font-size: 9px; }
.geco-module-section { background: transparent; }
.geco-module-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.geco-module-tile {
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 15px;
}
.geco-module-tile:hover { border-color: #cfc2ef; box-shadow: 0 12px 28px rgba(31, 19, 82, .07); }
.geco-module-tile-top { align-items: center; display: flex; justify-content: space-between; }
.geco-module-icon { align-items: center; background: var(--geco-blue-soft); border-radius: 7px; color: var(--geco-blue); display: flex; height: 38px; justify-content: center; width: 38px; }
.geco-module-icon svg { height: 17px; width: 17px; }
.geco-permission-badge { align-items: center; background: #e8f8f0; border-radius: 5px; color: #25875b; display: inline-flex; font-size: 8px; font-weight: 750; gap: 4px; padding: 5px 7px; }
.geco-permission-badge svg { height: 11px; width: 11px; }
html[data-geco-theme="dark"] .geco-permission-badge { background: #153a2b; color: #6ee0a9; }
.geco-module-copy { flex: 1; padding: 16px 0 12px; }
.geco-module-copy h2 { color: var(--geco-text); font-size: 13px; font-weight: 750; margin: 0; }
.geco-module-copy p { color: var(--geco-muted); font-size: 9px; line-height: 1.55; margin: 5px 0 0; }
.geco-module-actions { align-items: center; border-top: 1px solid var(--geco-border); display: flex; gap: 7px; justify-content: space-between; padding-top: 11px; }
.geco-module-view { align-items: center; color: var(--geco-blue) !important; display: inline-flex; font-size: 9px; font-weight: 750; gap: 5px; }
.geco-module-view svg { height: 13px; width: 13px; }
.geco-module-add { align-items: center; background: var(--geco-blue); border-radius: 6px; color: white !important; display: inline-flex; height: 30px; justify-content: center; width: 30px; }
.geco-module-add:hover { background: #6f34dd; }
.geco-module-add svg { height: 14px; width: 14px; }

/* Make application names in Django's navigation explicit destinations. */
#nav-sidebar .module caption a { color: #8f88b9; display: flex; padding: 0; }
#nav-sidebar .module caption a:hover { background: transparent; color: var(--geco-cyan); }

/* Native Django modules, tables, search, filters, actions, and forms. */
.module, .inline-group, #changelist-filter, #changelist .actions, #toolbar {
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}
.module h2, .module caption, .inline-group h2 {
  background: var(--geco-surface-muted);
  color: var(--geco-text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 12px 15px;
  text-transform: none;
}
#changelist { display: flex; gap: 16px; }
#changelist .changelist-form-container { min-width: 0; flex: 1; }
#changelist-filter { flex: 0 0 230px; order: 2; }
#changelist-filter h2 { background: var(--geco-surface-muted); color: var(--geco-text); font-size: 13px; padding: 14px; }
#changelist-filter h3 { color: var(--geco-text); font-size: 10px; font-weight: 750; margin: 14px 14px 5px; text-transform: uppercase; }
#changelist-filter ul { margin: 0 8px 10px; }
#changelist-filter li { font-size: 11px; margin: 1px 0; }
#changelist-filter li a { border-radius: 5px; color: var(--geco-muted); display: block; padding: 6px; }
#changelist-filter li.selected { border: 0; }
#changelist-filter li.selected a { background: var(--geco-blue-soft); color: var(--geco-blue); font-weight: 700; }
#toolbar { margin-bottom: 12px; padding: 12px !important; }
#changelist-search { align-items: center; display: flex; gap: 8px; }
#changelist-search > div { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
#changelist-search label { margin: 0; }
#changelist-search img { opacity: .45; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="tel"], textarea, select, .vTextField {
  background: var(--geco-surface);
  border: 1px solid var(--geco-border);
  border-radius: 6px;
  color: var(--geco-text);
  min-height: 38px;
  padding: 8px 10px;
}
textarea { min-height: 100px; }
input:focus, textarea:focus, select:focus { border-color: var(--geco-blue); box-shadow: 0 0 0 3px rgba(133, 72, 245, .13); outline: none; }
input[type="submit"], button, .button, a.button, .submit-row input, .object-tools a:link, .object-tools a:visited {
  background: var(--geco-blue);
  border: 0;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 36px;
  padding: 9px 14px;
}
input[type="submit"]:hover, button:hover, .button:hover, .object-tools a:hover { background: #6f34dd; }
#logout-form button {
  background: transparent;
  min-height: auto;
  padding: 0;
}
.geco-icon-button {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  min-height: 36px;
  padding: 0;
}
.toggle-nav-sidebar { background: var(--geco-sidebar); border: 0; padding: 0; }
button.theme-toggle { background: transparent; min-height: auto; padding: 0; }
.object-tools { margin-top: -40px; }
.object-tools a.addlink { background-image: none; padding-right: 14px; }
.object-tools a.addlink::before { content: "+"; font-size: 16px; margin-right: 6px; }
#changelist .actions { align-items: center; border-radius: 8px 8px 0 0; display: flex; gap: 7px; padding: 10px 12px; }
#changelist .actions label { align-items: center; display: flex; gap: 7px; }
#changelist .actions select { min-height: 34px; }
#changelist .actions button { min-height: 34px; padding: 7px 12px; }
#changelist-form .results { overflow-x: auto; }
#result_list { background: transparent; border: 0; border-collapse: separate; border-spacing: 0 8px; }
#result_list thead th { background: transparent; border: 0; color: var(--geco-muted); font-size: 9px; font-weight: 750; padding: 4px 12px 7px; text-transform: uppercase; }
#result_list tbody tr { background: transparent; box-shadow: 0 5px 18px rgba(31, 19, 82, .06); }
#result_list tbody tr:hover td, #result_list tbody tr:hover th { background: var(--selected-row); }
#result_list tbody td, #result_list tbody th { background: var(--geco-surface); border-bottom: 1px solid var(--geco-border); border-top: 1px solid var(--geco-border); color: var(--geco-text); font-size: 11px; padding: 14px 12px; vertical-align: middle; }
#result_list tbody tr > :first-child { border-left: 1px solid var(--geco-border); border-radius: 7px 0 0 7px; }
#result_list tbody tr > :last-child { border-right: 1px solid var(--geco-border); border-radius: 0 7px 7px 0; }
#result_list tbody th a { color: var(--geco-blue); font-weight: 700; }
.paginator { background: transparent; border: 0; color: var(--geco-muted); margin: 0 !important; padding: 14px !important; }
.paginator a:link, .paginator a:visited { background: var(--geco-surface-muted); border-radius: 5px; color: var(--geco-text); padding: 5px 9px; }
.paginator .this-page { background: var(--geco-blue); border-radius: 5px; color: white; padding: 5px 9px; }

.form-row { border-bottom: 1px solid var(--geco-border); padding: 15px; }
.form-row label { color: var(--geco-text); font-size: 11px; font-weight: 700; }
.form-row .help, .help, p.help, form p.help { color: var(--geco-muted); font-size: 10px; }
.aligned label { padding-top: 10px; width: 190px; }
.aligned .form-row > div { min-width: 0; }
.submit-row { background: var(--geco-surface); border: 1px solid var(--geco-border); border-radius: 8px; padding: 12px; }
.submit-row a.deletelink { align-items: center; background: transparent; border: 1px solid #efcaca; border-radius: 6px; color: var(--geco-red); display: inline-flex; min-height: 36px; padding: 8px 12px; }
.submit-row input.default { background: var(--geco-blue); }
.messagelist { margin: 0 0 18px; padding: 0; }
.messagelist li { background: var(--geco-surface); border: 1px solid var(--geco-border); border-left: 4px solid var(--geco-green); border-radius: 6px; color: var(--geco-text); margin-bottom: 8px; padding: 12px 14px; }
.errornote, .errorlist, .geco-alert { background: #fff1f1; border: 1px solid #f0caca; border-radius: 6px; color: #a92c2c; padding: 10px 12px; }
html[data-geco-theme="dark"] .errornote, html[data-geco-theme="dark"] .errorlist, html[data-geco-theme="dark"] .geco-alert { background: #351c22; border-color: #63303a; color: #ff9da7; }
.selector { width: min(100%, 900px); }
.selector select { min-height: 240px; }

/* Login */
body.geco-login { background: var(--geco-header); padding: 0; }
.geco-login #container { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 38px; }
.geco-login #header, .geco-login .breadcrumbs { display: none; }
.geco-login .main, .geco-login #content-start, .geco-login #content { display: block; min-height: 0; padding: 0; width: 100%; }
.geco-login #content { max-width: 1120px; }
.geco-login-shell { background: white; border-radius: 8px; box-shadow: 0 28px 75px rgba(3, 1, 18, .35); display: grid; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr); min-height: 650px; overflow: hidden; width: 100%; }
.geco-login-intro { background: #21165f; color: white; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(36px, 5vw, 70px); }
.geco-login-intro .geco-brand { color: white !important; }
.geco-login-intro .geco-brand small { color: #858b9b; }
.geco-login-emblem { align-items: center; display: flex; margin-bottom: 28px; position: relative; width: max-content; }
.geco-login-emblem > span { align-items: center; background: var(--geco-blue); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; display: flex; height: 92px; justify-content: center; width: 92px; }
.geco-login-emblem > span svg { height: 42px; width: 42px; }
.geco-login-emblem > svg { background: var(--geco-cyan); border: 5px solid #21165f; border-radius: 50%; color: #17114d; height: 36px; padding: 6px; position: absolute; right: -14px; top: -12px; width: 36px; }
.geco-login-intro h1 { color: white; font-size: clamp(32px, 3.3vw, 47px); font-weight: 750; line-height: 1.08; margin: 12px 0 18px; max-width: 520px; }
.geco-login-intro > div > p:last-child { color: #bbb5dc; font-size: 14px; line-height: 1.7; max-width: 440px; }
.geco-login-status { align-items: center; color: #aeb3c0; display: flex; font-size: 11px; gap: 8px; }
.geco-login-status span { background: #52d392; border-radius: 50%; box-shadow: 0 0 0 4px rgba(82, 211, 146, .12); height: 7px; width: 7px; }
.geco-login-form-wrap { align-items: center; background: #ffffff; display: flex; justify-content: center; padding: 55px; }
.geco-login-form { margin: 0; max-width: 390px; width: 100%; }
.geco-login-form-heading { margin-bottom: 28px; }
.geco-login-icon { background: var(--geco-blue-soft); color: var(--geco-blue); margin-bottom: 18px; }
.geco-login-form h2 { color: #18142d; font-size: 28px; font-weight: 750; margin: 0 0 7px; }
.geco-login-form-heading p { color: var(--geco-muted); margin: 0; }
.geco-field { margin-bottom: 18px; }
.geco-field > label, .geco-label-row label { color: #18142d; display: block; font-size: 11px; font-weight: 750; margin-bottom: 7px; }
.geco-label-row { align-items: center; display: flex; justify-content: space-between; }
.geco-label-row a { font-size: 10px; font-weight: 650; }
.geco-input-wrap { position: relative; }
.geco-input-wrap svg { color: var(--geco-muted); height: 16px; left: 13px; position: absolute; top: 13px; width: 16px; }
.geco-input-wrap input { height: 43px; padding-left: 39px; width: 100%; }
.geco-login .geco-input-wrap input {
  background: #ffffff;
  border-color: #dedbea;
  color: #18142d;
}
.geco-login .geco-input-wrap input::placeholder { color: #aaa5b8; }
.geco-login-submit { align-items: center; display: flex; height: 44px; justify-content: center; margin-top: 8px; width: 100%; }
.geco-login-submit svg { margin-left: 7px; width: 16px; }
.geco-alert { font-size: 11px; margin: 0 0 18px; }

@media (max-width: 1100px) {
  .geco-dashboard-grid { grid-template-columns: 1fr; }
  .geco-activity { order: -1; }
  .geco-activity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geco-download-panel { grid-column: 1 / -1; }
  .geco-ring-panel { grid-column: span 6; }
  .geco-ring-panel:nth-of-type(3) { grid-column: span 6; }
  .geco-quick-panel { grid-column: 1 / -1; }
  .geco-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #header { height: 64px; padding: 0 16px; }
  #branding { min-width: 0; }
  .geco-brand small { display: none; }
  #user-tools { font-size: 0; }
  #user-tools a, #logout-form button { font-size: 11px; }
  #nav-sidebar { flex-basis: 225px; }
  #content { padding: 22px 18px 40px; }
  div.breadcrumbs { padding: 12px 18px; }
  .geco-metrics { grid-template-columns: 1fr; }
  .geco-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geco-metric { min-height: 88px; }
  #changelist { display: block; }
  #changelist-filter { margin-top: 14px; }
  .geco-login #container { padding: 22px; }
  .geco-login-shell { grid-template-columns: 1fr; }
  .geco-login-intro { min-height: 330px; padding: 32px; }
  .geco-login-intro h1 { font-size: 34px; }
  .geco-login-form-wrap { min-height: 520px; padding: 40px 24px; }
}
@media (max-width: 700px) {
  #header { align-items: center; flex-wrap: nowrap; }
  #user-tools a:not(:last-child) { display: none; }
  .geco-brand strong { font-size: 13px; }
  .geco-brand-mark { height: 34px; width: 34px; }
  .geco-page-heading { align-items: flex-start; flex-direction: column; }
  .geco-heading-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .geco-date-chip, .geco-heading-actions .geco-primary-action { justify-content: center; width: 100%; }
  .geco-kpi-grid { grid-template-columns: 1fr; }
  .geco-ring-panel, .geco-ring-panel:nth-of-type(3), .geco-quick-panel { grid-column: 1 / -1; }
  .geco-quick-list { grid-template-columns: 1fr; }
  .geco-dashboard-table { overflow-x: auto; }
  .geco-dashboard-table-head, .geco-dashboard-table-row { min-width: 620px; }
  .geco-bar-chart { gap: 7px; padding-left: 0; padding-right: 0; }
  .geco-module-grid { grid-template-columns: 1fr; }
  .geco-app-grid, .geco-activity-list { grid-template-columns: 1fr; }
  .geco-workspace, .geco-activity { padding: 14px; }
  .object-tools { float: none; margin: 12px 0; position: static; }
  .aligned label { float: none; padding: 0 0 6px; width: auto; }
  .form-row input, .form-row textarea, .form-row select { max-width: 100%; width: 100%; }
  #changelist .actions { align-items: stretch; flex-direction: column; }
  #changelist .actions label { align-items: stretch; flex-direction: column; }
  .geco-login-intro { min-height: 290px; }
  .geco-login-intro > div > p:last-child { display: none; }
}
