:root {
  --cp-brand-blue: #0273d4;
  --cp-brand-dark: #003366;
  --cp-brand-red: #e11d48;
  --cp-bg: #f8fafc;
  --cp-surface: #ffffff;
  --cp-surface-muted: #f8fafc;
  --cp-border: #e2e8f0;
  --cp-text: #0f172a;
  --cp-muted: #64748b;
  --cp-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --cp-shadow-topbar: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --cp-sidebar-width: 18rem;
  --cp-topbar-height: 4rem;
}

html,
body {
  min-height: 100%;
}

body.cp-body,
body.cp-auth-body {
  margin: 0;
  color: var(--cp-text);
  background:
    radial-gradient(circle at top left, rgba(2, 115, 212, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 40%, #f1f5f9 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cp-shell {
  min-height: 100vh;
}

.cp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: min(var(--cp-sidebar-width), calc(100vw - 3rem));
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--cp-shadow);
  transform: translateX(-110%);
  transition: transform 180ms ease;
  overflow-y: auto;
}

.cp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
  margin-bottom: 0.5rem;
}

.cp-brandmark,
.cp-topbar-brand,
.cp-auth-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.cp-brandmark img,
.cp-topbar-brand img,
.cp-auth-brand img {
  width: auto;
  height: 2rem;
  object-fit: contain;
}

.cp-brandcopy,
.cp-auth-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cp-brandtitle,
.cp-topbar-brand-title,
.cp-auth-brand-title {
  color: var(--cp-brand-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.cp-brandsubtitle,
.cp-topbar-brand-subtitle,
.cp-auth-brand-subtitle {
  color: var(--cp-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.cp-sidebar-close,
.cp-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--cp-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cp-brand-dark);
  box-shadow: var(--cp-shadow-topbar);
}

.cp-sidebar-close {
  font-size: 1.5rem;
  line-height: 1;
}

.cp-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1 1 auto;
}

.cp-nav-divider {
  height: 1px;
  margin: 0.5rem 0;
  background: rgba(226, 232, 240, 0.95);
}

.cp-nav-heading {
  padding: 0.25rem 0.625rem;
  color: var(--cp-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.95rem;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.cp-nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #94a3b8;
}

.cp-nav-link:hover,
.cp-nav-link.is-active {
  background: rgba(2, 115, 212, 0.08);
  color: var(--cp-brand-dark);
}

.cp-nav-link:hover .cp-nav-icon,
.cp-nav-link.is-active .cp-nav-icon {
  color: #4f46e5;
}

.cp-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 0.22rem;
  border-radius: 999px;
  background: var(--cp-brand-blue);
}

.cp-sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.cp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.cp-sidebar-open .cp-sidebar {
  transform: translateX(0);
}

body.cp-sidebar-open .cp-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cp-main {
  min-height: 100vh;
}

.cp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--cp-shadow-topbar);
}

.cp-topbar-inner {
  min-height: var(--cp-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.cp-topbar-start,
.cp-topbar-end,
.cp-topbar-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cp-topbar-start {
  min-width: 0;
  flex: 0 1 auto;
}

.cp-topbar-slot {
  min-width: 0;
  flex: 0 1 auto;
}

.cp-topbar-brand {
  min-width: 0;
}

.cp-topbar-search-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 24rem;
  min-width: 0;
}

.cp-topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cp-topbar-search-icon {
  position: absolute;
  left: 0.8rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #9ca3af;
  pointer-events: none;
}

.cp-topbar-search-input {
  width: 100%;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--cp-text);
  padding: 0 0.75rem 0 2.15rem;
  font-size: 1rem;
  outline: none;
}

.cp-topbar-search-input::placeholder {
  color: #9ca3af;
}

.cp-topbar-end {
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.cp-topbar-divider {
  width: 1px;
  height: 1.5rem;
  background: #e5e7eb;
}

.cp-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #9ca3af;
  border-radius: 999px;
}

.cp-icon-button:hover {
  color: #6b7280;
  background: rgba(148, 163, 184, 0.08);
}

.cp-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.cp-content-shell {
  padding: 1.25rem 1rem 2rem;
}

.cp-content {
  max-width: 90rem;
  margin: 0 auto;
}

.cp-content-fluid {
  max-width: none;
  width: 100%;
}

.cp-impersonation-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: var(--cp-shadow);
}

.cp-impersonation-banner.is-manage {
  border-color: #fde68a;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.cp-impersonation-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cp-impersonation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cp-impersonation-badge {
  background: #e0f2fe;
  color: #075985;
}

.cp-impersonation-badge.is-manage {
  background: #fef3c7;
  color: #92400e;
}

.cp-impersonation-title {
  color: var(--cp-brand-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.cp-impersonation-text {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cp-impersonation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.cp-user-menu {
  position: relative;
}

.cp-user-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.125rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  list-style: none;
  cursor: pointer;
}

.cp-user-summary:hover .cp-user-avatar,
.cp-user-summary:focus-visible .cp-user-avatar {
  outline-color: rgba(15, 23, 42, 0.12);
}

.cp-user-summary:focus-visible {
  outline: 0;
}

.cp-user-summary::-webkit-details-marker {
  display: none;
}

[data-tw-dropdown] > summary::-webkit-details-marker {
  display: none;
}

.cp-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--cp-brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
  outline: 1px solid rgba(15, 23, 42, 0.05);
  outline-offset: -1px;
}

.cp-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-user-meta {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}

.cp-user-name {
  color: var(--cp-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.cp-user-role {
  color: var(--cp-muted);
  font-size: 0.72rem;
}

.cp-user-caret {
  color: var(--cp-muted);
  width: 1.25rem;
  height: 1.25rem;
  display: none;
  flex-shrink: 0;
}

.cp-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  padding: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.cp-dropdown-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(226, 232, 240, 0.95);
}

.cp-dropdown-form {
  margin: 0;
}

.cp-dropdown-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.cp-dropdown-item:hover {
  background: rgba(2, 115, 212, 0.08);
  color: var(--cp-brand-dark);
}

.cp-dropdown-item.is-danger {
  color: #be123c;
}

.cp-dropdown-item.is-danger:hover {
  background: #fff1f2;
  color: #9f1239;
}

.cp-flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cp-flash {
  padding: 0.875rem 1rem;
  border: 1px solid var(--cp-border);
  border-radius: 1rem;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: var(--cp-shadow-topbar);
}

.cp-flash-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.cp-flash-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.cp-flash-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.cp-auth-shell {
  display: grid;
  min-height: 100vh;
}

.cp-auth-aside {
  display: none;
  position: relative;
  padding: 3rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #003366 0%, #0a4d87 58%, #0273d4 100%);
  color: #eff6ff;
}

.cp-auth-copy {
  margin-top: 3rem;
}

.cp-auth-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cp-auth-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  color: rgba(239, 246, 255, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.cp-auth-highlights {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.cp-auth-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(191, 219, 254, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.cp-auth-highlight::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 0 0.22rem rgba(125, 211, 252, 0.18);
}

.cp-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cp-auth-panel {
  width: min(100%, 28rem);
}

.tw-card,
.tw-alert {
  border: 1px solid var(--cp-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--cp-shadow);
  padding: 1.25rem;
}

.tw-alert-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.tw-card-title {
  color: var(--cp-brand-dark);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.tw-btn:hover {
  transform: translateY(-1px);
}

.tw-btn-primary {
  background: linear-gradient(135deg, #003366 0%, #0273d4 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(2, 115, 212, 0.16);
}

.tw-btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #002650 0%, #0062ba 100%);
}

.tw-btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--cp-border);
  color: #334155;
}

.tw-btn-ghost:hover {
  background: #f8fafc;
  color: var(--cp-brand-dark);
}

.tw-btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.tw-btn-danger:hover {
  background: #ffe4e6;
}

.tw-btn-sm {
  min-height: 2.1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

.tw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.tw-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cp-border);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--cp-text);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.tw-input:focus {
  outline: 0;
  border-color: rgba(2, 115, 212, 0.65);
  box-shadow: 0 0 0 3px rgba(2, 115, 212, 0.12);
}

.tw-label,
.tw-form-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--cp-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tw-link,
.tw-navlink {
  color: var(--cp-brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.tw-link:hover,
.tw-navlink:hover {
  color: var(--cp-brand-dark);
  text-decoration: underline;
}

.tw-table-wrap {
  overflow: hidden;
  border: 1px solid var(--cp-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--cp-shadow-topbar);
}

.tw-table {
  width: 100%;
  border-collapse: collapse;
}

.tw-th,
.tw-td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.tw-th {
  color: var(--cp-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f8fafc;
  border-bottom: 1px solid var(--cp-border);
}

.tw-td {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.tw-tr-hover:hover td {
  background: #f8fafc;
}

.tw-prose {
  color: var(--cp-text);
  line-height: 1.75;
}

.tw-prose > * + * {
  margin-top: 1em;
}

.tw-prose a {
  color: var(--cp-brand-blue);
}

.tw-prose code {
  padding: 0.12rem 0.3rem;
  border-radius: 0.4rem;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.9em;
}

.tw-prose-slate {
  color: #334155;
}

.tw-shadow-soft {
  box-shadow: var(--cp-shadow);
}

.tw-fixed { position: fixed; }
.tw-absolute { position: absolute; }
.tw-relative { position: relative; }
.tw-inset-0 { inset: 0; }
.tw-top-1\/2 { top: 50%; }
.tw-left-0 { left: 0; }
.tw-left-1\/2 { left: 50%; }
.tw-right-0 { right: 0; }
.tw-z-50 { z-index: 50; }
.tw-hidden { display: none; }
.tw-inline { display: inline; }
.tw-inline-block { display: inline-block; }
.tw-inline-flex { display: inline-flex; }
.tw-flex { display: flex; }
.tw-grid { display: grid; }
.tw-flex-col { flex-direction: column; }
.tw-flex-wrap { flex-wrap: wrap; }
.tw-flex-nowrap { flex-wrap: nowrap; }
.tw-grow { flex: 1 1 0%; }
.tw-shrink-0 { flex-shrink: 0; }
.tw-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tw-gap-1 { gap: 0.25rem; }
.tw-gap-2 { gap: 0.5rem; }
.tw-gap-3 { gap: 0.75rem; }
.tw-gap-4 { gap: 1rem; }
.tw-gap-6 { gap: 1.5rem; }
.tw-gap-x-4 { column-gap: 1rem; }
.tw-gap-y-1 { row-gap: 0.25rem; }
.tw-items-center { align-items: center; }
.tw-items-start { align-items: flex-start; }
.tw-items-end { align-items: flex-end; }
.tw-justify-between { justify-content: space-between; }
.tw-justify-center { justify-content: center; }
.tw-justify-end { justify-content: flex-end; }
.tw-h-2\.5 { height: 0.625rem; }
.tw-h-4 { height: 1rem; }
.tw-h-10 { height: 2.5rem; }
.tw-h-12 { height: 3rem; }
.tw-w-2\.5 { width: 0.625rem; }
.tw-w-4 { width: 1rem; }
.tw-w-10 { width: 2.5rem; }
.tw-w-12 { width: 3rem; }
.tw-w-32 { width: 8rem; }
.tw-w-52 { width: 13rem; }
.tw-w-56 { width: 14rem; }
.tw-w-64 { width: 16rem; }
.tw-w-72 { width: 18rem; }
.tw-w-full { width: 100%; }
.tw-min-w-0 { min-width: 0; }
.tw-min-w-\[280px\] { min-width: 280px; }
.tw-max-w-md { max-width: 28rem; }
.tw-max-w-xl { max-width: 36rem; }
.tw-max-w-2xl { max-width: 42rem; }
.tw-max-w-3xl { max-width: 48rem; }
.tw-max-w-6xl { max-width: 72rem; }
.tw-max-w-none { max-width: none; }
.tw-max-h-\[70vh\] { max-height: 70vh; }
.tw-min-h-\[70vh\] { min-height: 70vh; }
.tw-w-\[min\(44rem\,calc\(100vw-2rem\)\)\] { width: min(44rem, calc(100vw - 2rem)); }
.tw-ml-auto { margin-left: auto; }
.tw-mx-auto { margin-left: auto; margin-right: auto; }
.tw-mt-1 { margin-top: 0.25rem; }
.tw-mt-2 { margin-top: 0.5rem; }
.tw-mt-3 { margin-top: 0.75rem; }
.tw-mt-4 { margin-top: 1rem; }
.tw-mt-6 { margin-top: 1.5rem; }
.tw-p-0 { padding: 0; }
.tw-p-2 { padding: 0.5rem; }
.tw-p-3 { padding: 0.75rem; }
.tw-p-4 { padding: 1rem; }
.tw-p-5 { padding: 1.25rem; }
.tw-pb-1 { padding-bottom: 0.25rem; }
.tw-pt-2 { padding-top: 0.5rem; }
.tw-pt-4 { padding-top: 1rem; }
.tw-space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.tw-space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.tw-space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.tw-space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.tw-space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.tw-rounded-full { border-radius: 999px; }
.tw-rounded-lg { border-radius: 0.75rem; }
.tw-rounded-xl { border-radius: 1rem; }
.tw-rounded-2xl { border-radius: 1.25rem; }
.tw-border { border: 1px solid var(--cp-border); }
.tw-border-4 { border-width: 4px; border-style: solid; }
.tw-border-b { border-bottom: 1px solid var(--cp-border); }
.tw-border-t { border-top: 1px solid var(--cp-border); }
.tw-border-slate-200 { border-color: #e2e8f0; }
.tw-border-brand-blue { border-color: var(--cp-brand-blue); }
.tw-border-t-transparent { border-top-color: transparent; }
.tw-bg-transparent { background: transparent; }
.tw-bg-white { background: #fff; }
.tw-bg-white\/60 { background: rgba(255, 255, 255, 0.6); }
.tw-bg-black\/40 { background: rgba(0, 0, 0, 0.4); }
.tw-bg-slate-50 { background: #f8fafc; }
.tw-bg-slate-100 { background: #f1f5f9; }
.tw-bg-slate-300 { background: #cbd5e1; }
.tw-bg-brand-blue { background: var(--cp-brand-blue); }
.tw-bg-amber-500 { background: #f59e0b; }
.tw-bg-emerald-600 { background: #059669; }
.tw-bg-rose-600 { background: #e11d48; }
.tw-text-right { text-align: right; }
.tw-text-xs { font-size: 0.75rem; line-height: 1rem; }
.tw-text-sm { font-size: 0.875rem; line-height: 1.35; }
.tw-text-base { font-size: 1rem; line-height: 1.5; }
.tw-text-lg { font-size: 1.125rem; line-height: 1.5; }
.tw-text-xl { font-size: 1.25rem; line-height: 1.5; }
.tw-text-2xl { font-size: 1.5rem; line-height: 1.2; }
.tw-font-medium { font-weight: 500; }
.tw-font-semibold { font-weight: 600; }
.tw-font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tw-text-white { color: #fff; }
.tw-text-brand-dark { color: var(--cp-brand-dark); }
.tw-text-slate-600 { color: #475569; }
.tw-text-slate-700 { color: #334155; }
.tw-text-slate-800 { color: #1e293b; }
.tw-text-slate-900 { color: #0f172a; }
.tw-text-rose-700 { color: #be123c; }
.tw-text-amber-700 { color: #b45309; }
.tw-tracking-wider { letter-spacing: 0.08em; }
.tw-uppercase { text-transform: uppercase; }
.tw-underline { text-decoration: underline; }
.tw-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-break-all { word-break: break-all; }
.tw-whitespace-nowrap { white-space: nowrap; }
.tw-object-cover { object-fit: cover; }
.tw-opacity-60 { opacity: 0.6; }
.tw-overflow-hidden { overflow: hidden; }
.tw-overflow-y-auto { overflow-y: auto; }
.tw-cursor-pointer { cursor: pointer; }
.tw-list-none { list-style: none; }
.tw-backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tw-translate-x-\[-50\%\],
.tw-translate-y-\[-50\%\] {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0));
}

.tw-translate-x-\[-50\%\] { --tw-translate-x: -50%; }
.tw-translate-y-\[-50\%\] { --tw-translate-y: -50%; }
.tw-animate-spin { animation: tw-spin 1s linear infinite; }

.hover\:tw-text-gray-900:hover { color: #111827; }
.hover\:tw-text-rose-800:hover { color: #9f1239; }

@keyframes tw-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .cp-impersonation-banner {
    flex-direction: column;
  }

  .cp-impersonation-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 640px) {
  .sm\:tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:tw-flex { display: flex; }
  .md\:tw-flex-row { flex-direction: row; }
  .md\:tw-flex-nowrap { flex-wrap: nowrap; }
  .md\:tw-items-center { align-items: center; }
  .md\:tw-gap-x-11 { column-gap: 2.75rem; }
  .md\:tw-font-semibold { font-weight: 600; }
  .md\:tw-leading-6 { line-height: 1.5rem; }
  .md\:tw-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:tw-text-gray-700 { color: #374151; }
  .md\:tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:tw-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cp-sidebar {
    transform: translateX(0);
  }

  .cp-sidebar-close,
  .cp-menu-toggle {
    display: none;
  }

  .cp-main {
    margin-left: var(--cp-sidebar-width);
  }

  .cp-topbar-brand {
    display: none;
  }

  .cp-topbar-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cp-topbar-search-wrap {
    max-width: none;
  }

  .cp-content-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lg\:tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:tw-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .cp-user-meta {
    display: flex;
  }

  .cp-user-caret {
    display: inline;
  }
}

@media (min-width: 1180px) {
  .cp-auth-shell {
    grid-template-columns: minmax(24rem, 42rem) minmax(24rem, 1fr);
  }

  .cp-auth-aside {
    display: block;
  }
}

.cp-mobile-only {
  display: inline-flex;
}

.cp-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .cp-mobile-only {
    display: none;
  }

  .cp-desktop-only {
    display: inline-flex;
  }
}
