body:has(.cog-page-shell) {
  background:
    radial-gradient(900px 540px at 20% 8%, rgba(14, 165, 233, .10), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%) !important;
  color: #0f172a !important;
}

html.dark body:has(.cog-page-shell) {
  background:
    radial-gradient(900px 540px at 20% 8%, rgba(127, 231, 255, .09), transparent 55%),
    linear-gradient(180deg, #06070a 0%, #070a0e 100%) !important;
  color: #eaf2ff !important;
}

body:has(.cog-page-shell) > header {
  background: rgba(255, 255, 255, .72) !important;
  border-color: rgba(226, 232, 240, .78) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

html.dark body:has(.cog-page-shell) > header {
  background: rgba(11, 14, 19, .76) !important;
  border-color: rgba(215, 235, 255, .12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

body:has(.cog-page-shell) > header .h-9.w-9 {
  background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
  box-shadow: 0 10px 24px rgba(14, 165, 233, .24);
}

body:has(.cog-page-shell) > header :where(a, button, select) {
  border-color: rgba(226, 232, 240, .86) !important;
}

html.dark body:has(.cog-page-shell) > header :where(a, button, select) {
  border-color: rgba(215, 235, 255, .14) !important;
}

body:has(.cog-page-shell) main#main-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

body:has(.cog-page-shell) > footer {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(226, 232, 240, .78) !important;
}

html.dark body:has(.cog-page-shell) > footer {
  background: rgba(11, 14, 19, .70);
  border-color: rgba(215, 235, 255, .12) !important;
}

.cog-page-shell {
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --table-head: rgba(248, 250, 252, .96);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
  margin: 0;
  min-height: calc(100vh - 4rem);
  padding: 28px 18px 56px;
  color: var(--text);
  background: radial-gradient(900px 540px at 20% 8%, rgba(14, 165, 233, .10), transparent 55%);
}

html.dark .cog-page-shell {
  --panel: #12161e;
  --panel-soft: #0e1116;
  --line: rgba(215, 235, 255, .12);
  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, .68);
  --dim: rgba(234, 242, 255, .52);
  --table-head: #0b0e13;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35);
  background: radial-gradient(900px 540px at 20% 8%, rgba(127, 231, 255, .09), transparent 55%);
}

.cog-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.cog-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
}

.cog-page-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.cog-page-title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.cog-page-subtitle {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 14px;
}

.cog-page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.cog-page-shell :where(div, section, article).bg-white,
.cog-page-shell :where(div, section, article).dark\:bg-slate-900 {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft)) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow);
}

.cog-page-shell :where(div, section, article).bg-slate-50,
.cog-page-shell :where(div, section, article).dark\:bg-slate-800 {
  background: var(--panel-soft) !important;
  border-color: var(--line) !important;
}

.cog-page-shell :where(h1, h2, h3, h4, label, summary) {
  color: var(--text);
}

.cog-page-shell :where(p, small, .text-slate-500, .text-slate-600, .dark\:text-slate-300, .dark\:text-slate-400) {
  color: var(--muted) !important;
}

.cog-page-shell :where(input, select, textarea) {
  border-color: var(--line) !important;
  background-color: var(--panel) !important;
  color: var(--text) !important;
}

html.dark .cog-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
html.dark .cog-page-shell input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.cog-page-shell :where(table) {
  border-collapse: collapse;
}

.cog-page-shell :where(thead) {
  background: var(--table-head) !important;
}

.cog-page-shell :where(th) {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim) !important;
  font-weight: 600;
}

.cog-page-shell :where(td) {
  color: var(--muted) !important;
}

.cog-page-shell :where(td a, .text-indigo-600, .dark\:text-indigo-400) {
  color: #2563eb !important;
}

html.dark .cog-page-shell :where(td a, .text-indigo-600, .dark\:text-indigo-400) {
  color: #7fe7ff !important;
}

.cog-page-shell :where(a[class*="border"], button[class*="border"]) {
  border-color: var(--line) !important;
}

.cog-page-shell :where(.rounded-3xl) {
  border-radius: var(--radius) !important;
}

@media (max-width: 700px) {
  .cog-page-shell {
    margin: 0;
    padding: 22px 14px 48px;
  }

  .cog-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cog-page-title {
    font-size: 28px;
  }
}
