/**
 * CLIM-PLANNeD — Professional Django admin theme
 * Aligned with the Angular DSS (LULC / LST / landing): teal–slate, Inter, card UI.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cp-ink: #0b1220;
  --cp-ink-2: #1e293b;
  --cp-muted: #64748b;
  --cp-muted-2: #94a3b8;
  --cp-border: #e2e8f0;
  --cp-border-2: #cbd5e1;
  --cp-surface: #ffffff;
  --cp-surface-2: #f8fafc;
  --cp-surface-3: #f1f5f9;
  --cp-accent: #0d9488;
  --cp-accent-dark: #0f766e;
  --cp-accent-darker: #115e59;
  --cp-accent-light: #ccfbf1;
  --cp-brand: #059669;
  --cp-header-from: #0f172a;
  --cp-header-mid: #134e4a;
  --cp-header-accent: #0d9488;
  --cp-radius: 14px;
  --cp-radius-sm: 10px;
  --cp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --cp-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --cp-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --cp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cp-max: 1440px;

  --primary: #0f766e;
  --secondary: #0d9488;
  --accent: #0ea5e9;
  --header-bg: linear-gradient(118deg, var(--cp-header-from) 0%, var(--cp-header-mid) 42%, #0c4a6e 100%);
  --header-color: #f8fafc;
  --header-branding-color: #f8fafc;
  --breadcrumbs-bg: var(--cp-surface);
  --breadcrumbs-link-fg: var(--cp-accent-dark);
  --body-bg: #e8edf4;
  --body-fg: var(--cp-ink);
  --body-quiet-color: var(--cp-muted);
  --body-loud-color: var(--cp-ink);
  --hairline-color: var(--cp-border);
  --border-color: var(--cp-border);
  --darkened-bg: var(--cp-surface-3);
  --selected-bg: #e0f2f1;
  --selected-row: #ecfdf5;
  --link-fg: var(--cp-accent-dark);
  --link-hover-color: var(--cp-accent-darker);
  --link-selected-fg: var(--cp-accent);
  --button-fg: #fff;
  --button-bg: var(--cp-accent);
  --button-hover-bg: var(--cp-accent-dark);
  --default-button-bg: #475569;
  --default-button-hover-bg: #334155;
  --object-tools-bg: var(--cp-ink-2);
  --object-tools-hover-bg: #0f172a;
}

html[data-theme="dark"],
:root[data-theme="dark"] {
  --body-bg: #0f172a;
  --body-fg: #e2e8f0;
  --cp-surface: #1e293b;
  --cp-surface-2: #0f172a;
  --cp-surface-3: #1e293b;
  --hairline-color: #334155;
  --border-color: #334155;
}

/* ─── Base ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--cp-font) !important;
  -webkit-font-smoothing: antialiased;
  background: var(--body-bg) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#container {
  background: transparent;
  min-height: 100vh;
  min-width: 0 !important;
}

/* ─── Header ───────────────────────────────────────────────────────────── */
#header {
  background: var(--header-bg) !important;
  color: var(--header-color) !important;
  padding: 0 !important;
  min-height: 64px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--cp-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cp-accent), #38bdf8, var(--cp-brand));
  opacity: 0.85;
}

#branding {
  padding: 0 1.25rem;
  flex: 0 1 auto;
  min-width: 0;
}

.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: #f8fafc !important;
  min-width: 0;
}

.cp-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a7f3d0;
}

.cp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.cp-brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cp-header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
  padding: 0 0.5rem;
  min-width: 180px;
}

.cp-header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.88) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.cp-header-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.cp-header-nav-link--app {
  background: rgba(13, 148, 136, 0.35);
  border: 1px solid rgba(167, 243, 208, 0.25);
}

.cp-header-nav-link--app:hover {
  background: rgba(13, 148, 136, 0.55);
}

.cp-user-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-right: 1.25rem;
  margin-left: auto;
  min-width: 0;
}

.cp-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #059669);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.cp-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#user-tools {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
  margin: 0;
}

#user-tools a {
  color: #e2e8f0 !important;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

#user-tools a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  margin-left: 0.25rem;
  opacity: 0.9;
}

/* ─── Breadcrumbs ──────────────────────────────────────────────────────── */
div.breadcrumbs {
  background: var(--cp-surface) !important;
  border-bottom: 1px solid var(--cp-border) !important;
  padding: 0.7rem 1.5rem !important;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: none;
  margin: 0;
  box-shadow: var(--cp-shadow-sm);
}

div.breadcrumbs a {
  color: var(--cp-accent-dark) !important;
  font-weight: 600;
}

/* ─── Content shell ────────────────────────────────────────────────────── */
#content {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#content h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  color: var(--cp-ink);
  margin-bottom: 0.75rem;
}

#content-main {
  float: none !important;
  width: 100% !important;
}

.cp-dashboard #content > h1:first-child,
.cp-admin-dashboard #content > h1:first-child {
  display: none;
}

.cp-admin-dashboard #content {
  padding-top: 1rem;
  max-width: none;
}

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.cp-dash-hero {
  background: linear-gradient(135deg, var(--cp-header-from) 0%, var(--cp-header-mid) 45%, #0c4a6e 100%);
  border-radius: var(--cp-radius);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  color: #f8fafc;
  box-shadow: var(--cp-shadow-lg);
  position: relative;
  overflow: hidden;
}

.cp-dash-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.cp-dash-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.cp-dash-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99f6e4;
}

.cp-dash-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff !important;
}

.cp-dash-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.88);
}

.cp-dash-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--cp-radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cp-btn--primary {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.cp-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.cp-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cp-dash-hero-panel {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cp-radius-sm);
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(8px);
}

.cp-dash-panel-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #99f6e4;
}

.cp-dash-panel-user {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cp-dash-panel-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.85);
}

/* KPI strip */
.cp-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cp-kpi {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--cp-shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cp-kpi:hover {
  box-shadow: var(--cp-shadow);
  transform: translateY(-2px);
}

.cp-kpi--accent {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

.cp-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-muted);
}

.cp-kpi-value {
  display: block;
  margin: 0.25rem 0 0.15rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cp-ink);
  line-height: 1.1;
}

.cp-kpi-hint {
  font-size: 0.72rem;
  color: var(--cp-muted-2);
  line-height: 1.35;
}

/* Sections */
.cp-dash-section {
  margin-bottom: 1.75rem;
}

.cp-dash-section-head {
  margin-bottom: 0.85rem;
}

.cp-dash-section-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.cp-dash-section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cp-muted);
}

/* Quick actions */
.cp-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.cp-action-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  text-decoration: none !important;
  color: var(--cp-ink) !important;
  box-shadow: var(--cp-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cp-action-card:hover {
  border-color: #99f6e4;
  box-shadow: var(--cp-shadow);
  transform: translateY(-2px);
}

.cp-action-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #fff;
}

.cp-action-icon--teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.cp-action-icon--slate { background: linear-gradient(135deg, #475569, #334155); }
.cp-action-icon--green { background: linear-gradient(135deg, #059669, #047857); }
.cp-action-icon--blue { background: linear-gradient(135deg, #0284c7, #0369a1); }
.cp-action-icon--amber { background: linear-gradient(135deg, #d97706, #b45309); }
.cp-action-icon--violet { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.cp-action-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cp-action-body span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--cp-muted);
}

/* Module grid (default admin app list) */
.cp-modules-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.cp-modules-wrap .module {
  margin: 0 !important;
  height: 100%;
}

.cp-modules-wrap table {
  width: 100%;
}

/* ─── Global module cards ───────────────────────────────────────────────── */
.module {
  background: var(--cp-surface) !important;
  border: 1px solid var(--cp-border) !important;
  border-radius: var(--cp-radius-sm) !important;
  box-shadow: var(--cp-shadow-sm) !important;
  overflow: hidden;
}

.module caption,
.module h2 {
  background: var(--cp-surface-2) !important;
  color: var(--cp-ink) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 0.8rem 1rem !important;
  border-bottom: 1px solid var(--cp-border) !important;
}

.module caption a {
  color: var(--cp-accent-dark) !important;
}

.module th,
.module td {
  padding: 0.65rem 1rem !important;
  border-bottom: 1px solid var(--cp-border) !important;
  font-size: 0.86rem;
}

.module tr:hover td {
  background: var(--cp-surface-2) !important;
}

/* ─── Changelist ─────────────────────────────────────────────────────────── */
#changelist {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.15rem;
  box-shadow: var(--cp-shadow-sm);
}

#changelist .changelist-form-container {
  border-radius: var(--cp-radius-sm);
}

#toolbar {
  background: var(--cp-surface-2);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

#changelist-search input {
  border-radius: 8px !important;
  min-width: 240px;
}

#changelist-filter {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  box-shadow: var(--cp-shadow-sm);
  top: 80px;
}

#changelist-filter h2 {
  background: linear-gradient(135deg, var(--cp-accent-dark), var(--cp-accent)) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem !important;
  border-radius: var(--cp-radius-sm) var(--cp-radius-sm) 0 0;
}

#changelist-filter h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#result_list {
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  overflow: hidden;
}

#result_list thead th {
  background: var(--cp-surface-2) !important;
  color: var(--cp-ink-2) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 0.75rem !important;
  border-bottom: 2px solid var(--cp-border) !important;
}

#result_list tbody td {
  padding: 0.7rem 0.75rem !important;
  vertical-align: middle;
}

#result_list tbody tr:nth-child(even) {
  background: var(--cp-surface-2);
}

#result_list tbody tr:hover {
  background: var(--selected-row) !important;
}

#result_list tbody tr.selected {
  background: var(--selected-bg) !important;
}

/* ─── Forms & fieldsets ──────────────────────────────────────────────────── */
fieldset.module {
  border-radius: var(--cp-radius-sm) !important;
  margin-bottom: 1rem;
  box-shadow: var(--cp-shadow-sm);
}

fieldset.module h2 {
  border-radius: var(--cp-radius-sm) var(--cp-radius-sm) 0 0 !important;
}

.form-row {
  padding: 0.55rem 0;
}

label {
  font-weight: 600;
  color: var(--cp-ink-2);
  font-size: 0.86rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select,
.vTextField {
  border-radius: 8px !important;
  border: 1px solid var(--cp-border) !important;
  padding: 0.5rem 0.7rem !important;
  font-family: var(--cp-font) !important;
  font-size: 0.9rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cp-accent) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
  outline: none;
}

.submit-row {
  background: var(--cp-surface-2) !important;
  border: 1px solid var(--cp-border) !important;
  border-radius: var(--cp-radius-sm) !important;
  padding: 0.85rem 1rem !important;
  margin-top: 1rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.button,
input[type="submit"],
input[type="button"],
a.button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-family: var(--cp-font) !important;
  padding: 0.45rem 0.9rem !important;
  transition: background 0.15s ease, transform 0.1s ease;
}

.button.default,
input[type="submit"].default,
.submit-row input.default {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
  border: none !important;
}

.button.default:hover,
input[type="submit"].default:hover {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
}

ul.object-tools a {
  border-radius: 8px !important;
  font-weight: 600;
  background: var(--cp-ink-2) !important;
  padding: 0.45rem 0.85rem !important;
}

ul.object-tools a.addlink {
  background: var(--cp-accent-dark) !important;
}

ul.object-tools a:hover {
  background: var(--cp-header-from) !important;
}

.process-btn,
a.process-btn {
  background: var(--cp-accent) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Messages */
ul.messagelist li {
  border-radius: var(--cp-radius-sm);
  font-weight: 500;
  padding: 0.75rem 1rem;
  box-shadow: var(--cp-shadow-sm);
}

ul.messagelist li.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

ul.messagelist li.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

ul.messagelist li.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* Nav sidebar */
#nav-sidebar {
  background: var(--cp-surface);
  border-right: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-sm);
}

#nav-sidebar .current-app .section {
  color: var(--cp-accent-dark);
  font-weight: 800;
}

#nav-sidebar .current-model {
  background: var(--selected-bg);
}

#nav-filter {
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  margin: 0.5rem;
  width: calc(100% - 1rem);
}

/* Footer */
.cp-admin-footer {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--cp-muted);
  text-align: center;
  border-top: 1px solid var(--cp-border);
}

/* ─── Operations dashboard (custom_index) ─────────────────────────────────── */
.cp-shell {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 0 0 2rem;
}

.cp-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #99f6e4;
}

/* Hero */
.cp-hero {
  position: relative;
  border-radius: calc(var(--cp-radius) + 2px);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--cp-shadow-lg);
  background: linear-gradient(128deg, #0f172a 0%, #134e4a 38%, #0c4a6e 100%);
  color: #f8fafc;
}

.cp-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(56, 189, 248, 0.12), transparent 50%);
  pointer-events: none;
}

.cp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  padding: 2rem 2rem 1.75rem;
  align-items: start;
}

.cp-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.cp-hero__lead {
  margin: 0;
  max-width: 54ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.88);
}

.cp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.cp-btn--light {
  background: #fff;
  color: var(--cp-accent-darker) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cp-btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}

.cp-btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cp-btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cp-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cp-hero__user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cp-radius-sm);
  backdrop-filter: blur(10px);
}

.cp-hero__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  font-weight: 800;
  font-size: 1.1rem;
}

.cp-hero__user-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #99f6e4;
  margin-bottom: 0.15rem;
}

.cp-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cp-hero__stats li {
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--cp-radius-sm);
}

.cp-hero__stats span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.65);
  margin-bottom: 0.2rem;
}

.cp-hero__stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Quick strip */
.cp-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.cp-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  text-decoration: none !important;
  color: var(--cp-ink) !important;
  box-shadow: var(--cp-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.cp-strip__item:hover {
  border-color: #99f6e4;
  box-shadow: var(--cp-shadow);
  transform: translateY(-2px);
}

.cp-strip__icon {
  flex-shrink: 0;
  width: 10px;
  height: 38px;
  border-radius: 6px;
}

.cp-strip__icon--teal { background: linear-gradient(180deg, #14b8a6, #0f766e); }
.cp-strip__icon--green { background: linear-gradient(180deg, #22c55e, #15803d); }
.cp-strip__icon--blue { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.cp-strip__icon--amber { background: linear-gradient(180deg, #fbbf24, #d97706); }
.cp-strip__icon--violet { background: linear-gradient(180deg, #a78bfa, #7c3aed); }

.cp-strip__item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.cp-strip__item small {
  display: block;
  font-size: 0.72rem;
  color: var(--cp-muted);
  margin-top: 0.1rem;
}

/* Module panel */
.cp-panel {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--cp-shadow-sm);
}

.cp-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cp-border);
}

.cp-panel__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.cp-panel__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cp-muted);
}

.cp-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--cp-surface-2);
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  min-width: min(320px, 100%);
  color: var(--cp-muted);
}

.cp-search:focus-within {
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.cp-search input {
  border: none !important;
  background: transparent !important;
  padding: 0.35rem 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem !important;
}

.cp-search input:focus {
  outline: none;
  box-shadow: none !important;
}

/* App cards grid */
.cp-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.cp-app-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: var(--cp-shadow-sm);
  transition: box-shadow 0.15s, transform 0.12s;
}

.cp-app-card:hover {
  box-shadow: var(--cp-shadow);
  transform: translateY(-2px);
}

.cp-app-card__head {
  padding: 1rem 1.05rem 0.75rem;
  border-bottom: 3px solid var(--cp-border);
}

.cp-app-card--teal .cp-app-card__head { border-bottom-color: #14b8a6; }
.cp-app-card--green .cp-app-card__head { border-bottom-color: #22c55e; }
.cp-app-card--orange .cp-app-card__head { border-bottom-color: #f97316; }
.cp-app-card--amber .cp-app-card__head { border-bottom-color: #f59e0b; }
.cp-app-card--violet .cp-app-card__head { border-bottom-color: #8b5cf6; }
.cp-app-card--blue .cp-app-card__head { border-bottom-color: #3b82f6; }
.cp-app-card--slate .cp-app-card__head { border-bottom-color: #64748b; }
.cp-app-card--indigo .cp-app-card__head { border-bottom-color: #6366f1; }
.cp-app-card--cyan .cp-app-card__head { border-bottom-color: #06b6d4; }
.cp-app-card--rose .cp-app-card__head { border-bottom-color: #f43f5e; }

.cp-app-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--cp-surface-3);
  color: var(--cp-muted);
  margin-bottom: 0.45rem;
}

.cp-app-card--teal .cp-app-card__badge { background: #ccfbf1; color: #0f766e; }
.cp-app-card--green .cp-app-card__badge { background: #dcfce7; color: #15803d; }
.cp-app-card--orange .cp-app-card__badge { background: #ffedd5; color: #c2410c; }
.cp-app-card--amber .cp-app-card__badge { background: #fef3c7; color: #b45309; }
.cp-app-card--violet .cp-app-card__badge { background: #ede9fe; color: #6d28d9; }
.cp-app-card--blue .cp-app-card__badge { background: #dbeafe; color: #1d4ed8; }
.cp-app-card--rose .cp-app-card__badge { background: #ffe4e6; color: #be123c; }

.cp-app-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-app-card__title a {
  color: var(--cp-ink) !important;
  text-decoration: none;
}

.cp-app-card__title a:hover {
  color: var(--cp-accent-dark) !important;
}

.cp-app-card__blurb {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--cp-muted);
}

.cp-app-card__meta {
  padding: 0.45rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cp-muted-2);
  background: var(--cp-surface-2);
  border-bottom: 1px solid var(--cp-border);
}

.cp-app-card__models {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  flex: 1;
}

.cp-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border-bottom: 1px solid var(--cp-border);
  font-size: 0.84rem;
}

.cp-model-row:last-child {
  border-bottom: none;
}

.cp-model-row:hover {
  background: var(--cp-surface-2);
}

.cp-model-row__name {
  font-weight: 600;
  color: var(--cp-ink-2) !important;
  text-decoration: none !important;
  flex: 1;
  min-width: 0;
}

.cp-model-row__name:hover {
  color: var(--cp-accent-dark) !important;
}

.cp-model-row__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.cp-model-row__btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--cp-muted) !important;
  border: 1px solid var(--cp-border);
  background: var(--cp-surface);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.cp-model-row__btn:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent-dark) !important;
  background: #ecfdf5;
}

.cp-model-row__btn--add {
  color: var(--cp-accent-dark) !important;
  border-color: #99f6e4;
  background: #ecfdf5;
}

.cp-model-row--empty {
  color: var(--cp-muted);
  font-style: italic;
  justify-content: flex-start;
}

.cp-empty,
.cp-search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--cp-muted);
  font-size: 0.9rem;
}

.cp-app-card[hidden] {
  display: none !important;
}

/* Professional admin console overrides */
.cp-admin-dashboard {
  --body-bg: #f3f6f8;
  --cp-console-border: #d8e0e7;
  --cp-console-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.cp-admin-dashboard #content {
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-x: hidden;
}

.cp-admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1.45rem 1.6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--cp-console-border);
  border-radius: 18px;
  box-shadow: var(--cp-console-shadow);
}

.cp-admin-topbar > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.cp-admin-topbar h1 {
  margin: 0 0 0.35rem !important;
  color: #0f172a !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
  letter-spacing: -0.04em;
}

.cp-admin-topbar p:not(.cp-eyebrow) {
  margin: 0;
  max-width: 68ch;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cp-admin-topbar .cp-eyebrow {
  color: var(--cp-accent-dark);
}

.cp-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
}

.cp-topbar-actions .cp-btn {
  white-space: nowrap;
}

.cp-btn--secondary {
  color: #0f766e !important;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
}

.cp-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.cp-metric {
  position: relative;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--cp-console-border);
  border-radius: 16px;
  box-shadow: var(--cp-shadow-sm);
}

.cp-metric::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--cp-accent);
}

.cp-metric span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-metric strong {
  display: block;
  margin: 0.3rem 0 0.15rem;
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cp-metric small {
  color: #94a3b8;
  font-size: 0.76rem;
}

.cp-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.cp-sidebar-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.cp-card,
.cp-directory-panel {
  background: #ffffff;
  border: 1px solid var(--cp-console-border);
  border-radius: 18px;
  box-shadow: var(--cp-shadow-sm);
  min-width: 0;
}

.cp-profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
}

.cp-profile-card__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0f172a);
  font-weight: 800;
  font-size: 1.05rem;
}

.cp-profile-card span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cp-profile-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}

.cp-card__head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--cp-border);
}

.cp-card__head span,
.cp-directory-head span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--cp-accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-card__head h2,
.cp-directory-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-workflow-list {
  display: grid;
  gap: 0;
  padding: 0.35rem;
}

.cp-workflow-list a {
  display: block;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  color: #0f172a !important;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.cp-workflow-list a:hover {
  background: #f8fafc;
  border-color: var(--cp-border);
}

.cp-workflow-list strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.cp-workflow-list small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.cp-directory-panel {
  padding: 1.15rem;
}

.cp-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cp-border);
}

.cp-directory-head > div {
  flex: 1 1 320px;
  min-width: 0;
}

.cp-directory-head p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.cp-directory-panel .cp-search {
  flex: 0 1 340px;
  min-width: 280px;
  max-width: 100%;
  background: #ffffff;
}

.cp-directory-panel .cp-app-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0.85rem;
}

.cp-directory-panel .cp-app-card {
  border-radius: 16px;
  border-color: var(--cp-console-border);
  box-shadow: none;
}

.cp-directory-panel .cp-app-card:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.cp-directory-panel .cp-app-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.55rem;
  border-bottom: none;
}

.cp-directory-panel .cp-app-card__head > div {
  min-width: 0;
}

.cp-app-card__count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
}

.cp-directory-panel .cp-app-card__badge {
  margin-bottom: 0.35rem;
  padding: 0;
  background: transparent !important;
  color: #64748b !important;
}

.cp-directory-panel .cp-app-card__title {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.cp-directory-panel .cp-app-card__blurb {
  padding: 0 1rem 0.8rem;
  min-height: 2.5rem;
}

.cp-directory-panel .cp-app-card__models {
  padding: 0;
  border-top: 1px solid var(--cp-border);
}

.cp-directory-panel .cp-model-row {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  min-width: 0;
}

.cp-directory-panel .cp-model-row__actions {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cp-directory-panel .cp-model-row__btn {
  width: auto;
  min-width: 44px;
  height: 28px;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cp-directory-panel .cp-app-card--teal { border-top: 3px solid #0d9488; }
.cp-directory-panel .cp-app-card--green { border-top: 3px solid #16a34a; }
.cp-directory-panel .cp-app-card--orange { border-top: 3px solid #f97316; }
.cp-directory-panel .cp-app-card--amber { border-top: 3px solid #d97706; }
.cp-directory-panel .cp-app-card--violet { border-top: 3px solid #7c3aed; }
.cp-directory-panel .cp-app-card--blue { border-top: 3px solid #2563eb; }
.cp-directory-panel .cp-app-card--slate { border-top: 3px solid #475569; }
.cp-directory-panel .cp-app-card--indigo { border-top: 3px solid #4f46e5; }
.cp-directory-panel .cp-app-card--cyan { border-top: 3px solid #0891b2; }
.cp-directory-panel .cp-app-card--rose { border-top: 3px solid #e11d48; }

/* ─── Admin console dashboard ───────────────────────────────────────────── */
.cp-admin-dashboard #content {
  max-width: none;
  padding: 0 !important;
}

.cp-admin-console {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
  background: #f4f7fb;
  color: #0f172a;
}

.cp-console-sidebar {
  position: sticky;
  top: 67px;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
  padding: 1.25rem;
  background: #0f172a;
  color: #e2e8f0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-console-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-console-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cp-console-brand strong,
.cp-console-user strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cp-console-brand small,
.cp-console-user small {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.74rem;
}

.cp-console-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.cp-console-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: #cbd5e1 !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
}

.cp-console-nav a:hover,
.cp-console-nav a.is-active {
  background: rgba(13, 148, 136, 0.18);
  color: #ffffff !important;
}

.cp-console-nav a.is-active {
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.cp-console-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-console-user > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  font-weight: 800;
}

.cp-console-main {
  min-width: 0;
  padding: 1.5rem;
}

.cp-console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  border: 1px solid #dbe3eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cp-console-header > div:first-child {
  min-width: 0;
}

.cp-console-kicker {
  margin: 0 0 0.25rem;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-console-header h1 {
  margin: 0 0 0.35rem !important;
  color: #0f172a !important;
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cp-console-header p:not(.cp-console-kicker) {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cp-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cp-console-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.cp-console-btn--primary {
  background: #0f766e;
  color: #ffffff !important;
  border: 1px solid #0f766e;
}

.cp-console-btn--ghost {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

.cp-console-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.cp-console-stats article {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #dbe3eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cp-console-stats span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-console-stats strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cp-console-stats small {
  display: block;
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.76rem;
}

.cp-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.cp-console-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #dbe3eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cp-console-card--wide {
  overflow: hidden;
}

.cp-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.cp-section-header--stacked {
  display: block;
}

.cp-section-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-section-header p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
}

.cp-console-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(360px, 100%);
  min-height: 38px;
  padding: 0 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #64748b;
}

.cp-console-search input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 0.86rem !important;
}

.cp-module-table {
  display: grid;
}

.cp-module-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.cp-module-row:last-child {
  border-bottom: 0;
}

.cp-module-row:hover {
  background: #f8fafc;
}

.cp-module-summary {
  min-width: 0;
}

.cp-module-tag {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: #475569;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-module-tag--teal { color: #0f766e; }
.cp-module-tag--green { color: #15803d; }
.cp-module-tag--orange { color: #c2410c; }
.cp-module-tag--amber { color: #b45309; }
.cp-module-tag--violet { color: #6d28d9; }
.cp-module-tag--blue { color: #1d4ed8; }
.cp-module-tag--slate { color: #475569; }
.cp-module-tag--indigo { color: #4f46e5; }
.cp-module-tag--cyan { color: #0891b2; }
.cp-module-tag--rose { color: #be123c; }

.cp-module-summary h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-module-summary h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.cp-module-summary h3 a:hover {
  color: #0f766e !important;
}

.cp-module-summary p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.cp-module-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.cp-module-models .cp-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.8rem;
}

.cp-module-models .cp-model-row__name {
  min-width: 0;
  color: #1e293b !important;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-module-models .cp-model-row__actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.cp-module-models .cp-model-row__btn {
  width: auto;
  min-width: auto;
  height: auto;
  padding: 0.28rem 0.45rem;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569 !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.cp-module-models .cp-model-row__btn--add {
  color: #0f766e !important;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.cp-operation-list {
  display: grid;
  padding: 0.5rem;
}

.cp-operation-list a {
  display: block;
  padding: 0.8rem;
  border-radius: 10px;
  color: #0f172a !important;
  text-decoration: none !important;
}

.cp-operation-list a:hover {
  background: #f8fafc;
}

.cp-operation-list strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.cp-operation-list small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .cp-admin-console {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .cp-console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .cp-admin-console {
    display: block;
  }

  .cp-console-sidebar {
    position: static;
    min-height: auto;
    padding: 1rem;
  }

  .cp-console-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .cp-console-nav a {
    flex: 0 0 auto;
  }

  .cp-console-user {
    display: none;
  }

  .cp-console-main {
    padding: 1rem;
  }

  .cp-console-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-module-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cp-console-header,
  .cp-section-header {
    flex-direction: column;
  }

  .cp-console-actions,
  .cp-console-actions .cp-console-btn,
  .cp-console-search {
    width: 100%;
  }

  .cp-console-stats {
    grid-template-columns: 1fr;
  }

  .cp-console-main {
    padding: 0.75rem;
  }

  .cp-module-row {
    padding: 0.9rem;
  }

  .cp-module-models .cp-model-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cp-module-models .cp-model-row__name {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ─── Login page (standalone template) ───────────────────────────────────── */
body.cp-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cp-font);
  background:
    radial-gradient(circle at 10% 10%, rgba(13, 148, 136, 0.14), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #111827 48%, #0f172a 100%);
}

.cp-login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cp-login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 50%, #0c4a6e 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.cp-login-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.2), transparent 50%);
}

.cp-login-brand-panel > * {
  position: relative;
  z-index: 1;
}

.cp-login-brand-panel h1 {
  margin: 1rem 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cp-login-brand-panel p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.6;
  opacity: 0.9;
  font-size: 0.92rem;
}

.cp-login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cp-surface-2);
}

.cp-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--cp-surface);
  border-radius: var(--cp-radius);
  padding: 2rem;
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-lg);
}

.cp-login-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cp-ink);
}

.cp-login-card .cp-login-sub {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--cp-muted);
}

.cp-login-card label {
  display: block;
  margin-bottom: 0.35rem;
}

.cp-login-card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.cp-login-submit {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: var(--cp-radius-sm);
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

.cp-login-submit:hover {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.cp-login-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cp-accent-dark);
  text-decoration: none;
}

.cp-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Professional admin login */
.cp-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1fr);
  align-items: stretch;
}

.cp-login-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  color: #f8fafc;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 94, 89, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.28), transparent 42%);
}

.cp-login-info::before {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  pointer-events: none;
}

.cp-login-info::after {
  content: '';
  position: absolute;
  right: -8rem;
  bottom: -8rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 62%);
  pointer-events: none;
}

.cp-login-orbit {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 50%;
  opacity: 0.9;
}

.cp-login-orbit::before,
.cp-login-orbit::after {
  content: '';
  position: absolute;
  border-radius: inherit;
}

.cp-login-orbit::before {
  inset: 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.cp-login-orbit::after {
  width: 0.7rem;
  height: 0.7rem;
  top: 1.2rem;
  left: 3rem;
  background: #2dd4bf;
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.85);
}

.cp-login-info__content,
.cp-login-highlights,
.cp-login-status {
  position: relative;
  z-index: 1;
}

.cp-login-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  width: fit-content;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.cp-login-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 45px rgba(13, 148, 136, 0.28);
}

.cp-login-logo-row strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.cp-login-logo-row span {
  display: block;
  margin-top: 0.15rem;
  color: #99f6e4;
  font-size: 0.72rem;
  font-weight: 600;
}

.cp-login-kicker {
  margin: 2.2rem 0 0.55rem;
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cp-login-info h1 {
  margin: 0;
  color: #ffffff;
  max-width: 11ch;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.cp-login-lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.7;
}

.cp-login-highlights {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  max-width: 36rem;
}

.cp-login-highlights div {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.16);
  backdrop-filter: blur(10px);
}

.cp-login-highlights dt {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.cp-login-highlights dd {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cp-login-status {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  row-gap: 0.1rem;
  align-items: center;
  width: fit-content;
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.34);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #d1fae5;
}

.cp-login-status span {
  grid-row: span 2;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
}

.cp-login-status strong {
  font-size: 0.78rem;
  line-height: 1.1;
}

.cp-login-status small {
  color: #99f6e4;
  font-size: 0.7rem;
}

.cp-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 4rem);
  background: #f4f7fb;
}

.cp-login-panel .cp-login-card {
  width: min(100%, 440px);
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.cp-login-card__head {
  padding: 1.5rem 1.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.cp-login-card__head span {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-login-card__head h2 {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cp-login-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cp-login-panel form,
.cp-login-panel .cp-login-error,
.cp-login-footer-actions {
  margin-left: 1.6rem;
  margin-right: 1.6rem;
}

.cp-login-panel form {
  padding-top: 1.25rem;
}

.cp-login-field {
  margin-bottom: 1rem;
}

.cp-login-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.cp-login-field input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.8rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem !important;
}

.cp-login-field input:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14) !important;
}

.cp-login-panel .cp-login-submit {
  min-height: 44px;
  margin-top: 0.25rem;
  border-radius: 10px;
  background: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.cp-login-panel .cp-login-submit:hover {
  background: #115e59;
}

.cp-login-footer-actions {
  margin-top: 1rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid #e2e8f0;
}

.cp-login-panel .cp-login-back {
  margin: 0;
  color: #0f766e;
  font-size: 0.84rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .cp-admin-dashboard #content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cp-workspace {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .cp-dash-hero-grid { grid-template-columns: 1fr; }
  .cp-hero__inner { grid-template-columns: 1fr; }
  .cp-strip { grid-template-columns: repeat(3, 1fr); }
  .cp-action-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .cp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-workspace { grid-template-columns: 1fr; }
  .cp-sidebar-panel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
}

@media (max-width: 900px) {
  #header {
    align-items: flex-start;
    gap: 0.4rem;
    padding-bottom: 0.65rem !important;
  }

  #branding {
    padding: 0.75rem 1rem 0.25rem;
  }

  .cp-header-nav {
    order: 3;
    flex: 1 0 100%;
    padding: 0 1rem;
    min-width: 0;
  }

  .cp-user-tools {
    padding: 0.75rem 1rem 0.25rem;
  }

  .cp-admin-topbar {
    gap: 1rem;
  }

  .cp-login-shell {
    grid-template-columns: 1fr;
  }

  .cp-login-info {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .cp-login-info::before {
    inset: 1rem;
  }

  .cp-login-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .cp-login-info h1 {
    max-width: none;
  }

  .cp-login-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  #header { min-height: auto; }
  .cp-header-nav { width: 100%; padding: 0 1rem 0.65rem; overflow-x: auto; }
  .cp-user-tools { padding: 0.5rem 1rem; }
  .cp-user-name { display: none; }
  #content { padding: 1rem; }
  .cp-admin-dashboard #content { padding: 1rem; }
  .cp-admin-topbar { flex-direction: column; padding: 1.2rem; }
  .cp-topbar-actions { width: 100%; justify-content: stretch; }
  .cp-topbar-actions .cp-btn { justify-content: center; flex: 1; }
  .cp-metrics { grid-template-columns: 1fr; }
  .cp-sidebar-panel { grid-template-columns: 1fr; }
  .cp-directory-head { flex-direction: column; }
  .cp-directory-panel .cp-search { width: 100%; min-width: 0; }
  .cp-action-grid { grid-template-columns: 1fr; }
  .cp-strip { grid-template-columns: 1fr; }
  .cp-app-grid { grid-template-columns: 1fr; }
  .cp-directory-panel .cp-app-grid { grid-template-columns: 1fr; }
  .cp-panel__head { flex-direction: column; align-items: stretch; }
  .cp-search { width: 100%; }
  .cp-modules-wrap { grid-template-columns: 1fr; }
  .cp-login-layout { grid-template-columns: 1fr; }
  .cp-login-brand-panel { padding: 2rem; min-height: auto; }
}

@media (max-width: 560px) {
  #branding,
  .cp-user-tools {
    width: 100%;
  }

  .cp-brand-sub,
  .cp-user-chip {
    display: none;
  }

  .cp-header-nav-link {
    padding: 0.38rem 0.65rem;
    font-size: 0.76rem;
  }

  .cp-admin-dashboard #content {
    padding: 0.75rem;
  }

  .cp-shell {
    padding-bottom: 1rem;
  }

  .cp-admin-topbar,
  .cp-card,
  .cp-directory-panel,
  .cp-metric {
    border-radius: 14px;
  }

  .cp-admin-topbar {
    padding: 1rem;
  }

  .cp-topbar-actions {
    flex-direction: column;
  }

  .cp-topbar-actions .cp-btn {
    width: 100%;
  }

  .cp-metrics {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .cp-directory-panel {
    padding: 0.85rem;
  }

  .cp-directory-panel .cp-search {
    min-width: 0;
  }

  .cp-directory-panel .cp-app-card__head,
  .cp-directory-panel .cp-model-row {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .cp-directory-panel .cp-model-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cp-directory-panel .cp-model-row__name {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cp-directory-panel .cp-model-row__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cp-login-info {
    padding: 1.5rem 1rem;
  }

  .cp-login-info::before {
    display: none;
  }

  .cp-login-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .cp-login-info h1 {
    font-size: 2rem;
  }

  .cp-login-lead {
    font-size: 0.9rem;
  }

  .cp-login-highlights {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .cp-login-orbit {
    display: none;
  }

  .cp-login-logo-row {
    width: 100%;
  }

  .cp-login-status {
    width: 100%;
    border-radius: 14px;
  }

  .cp-login-panel {
    padding: 1rem;
  }

  .cp-login-panel .cp-login-card {
    border-radius: 14px;
  }

  .cp-login-card__head {
    padding: 1.2rem 1.1rem 0.9rem;
  }

  .cp-login-panel form,
  .cp-login-panel .cp-login-error,
  .cp-login-footer-actions {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
  }
}

/* Keep the redesigned dashboard flush; older responsive rules above style legacy layouts. */
.cp-admin-dashboard #content {
  padding: 0 !important;
}

@media (max-width: 768px) {
  .cp-admin-dashboard #content {
    padding: 0 !important;
  }
}
