@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --background: #ffffff;
  --foreground: #18181b;
  --muted-surface: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --ring: #a1a1aa;
  --accent: #15803d;
  --ink: var(--foreground);
  --muted: var(--muted-foreground);
  --line: var(--border);
  --canvas: var(--background);
  --green: var(--accent);
  --dark: var(--primary);
  --sidebar: #18181b;
  --sidebar-foreground: #d4d4d8;
  --sidebar-active: #27272a;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.5 "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.035em;
}
button,
input,
select {
  font: inherit;
}
a {
  text-decoration: none;
}
i.ti {
  font-size: 19px;
  line-height: 1;
  vertical-align: middle;
}
.app {
  min-height: 100vh;
}
.sidebar {
  --foreground: #fafafa;
  --muted-foreground: #a1a1aa;
  --border: #3f3f46;
  --accent: #86efac;
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--sidebar);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  padding: 25px 14px 17px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  border-right: 1px solid var(--border);
  scroll-behavior: smooth;
}
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}
.sidebar:hover {
  scrollbar-color: #52525b transparent;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: #52525b;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px 26px;
  color: var(--foreground);
  font:
    800 20px Manrope,
    sans-serif;
  letter-spacing: -0.05em;
}
.brand:hover {
  color: var(--foreground);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  font-size: 21px;
  transform: none;
}
.brand-mark i {
  transform: none;
}
.sidebar .brand-mark {
  background: #fafafa;
  color: #18181b;
}
.brand span span {
  color: var(--accent);
}
.sidebar-caption {
  color: var(--muted-foreground);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  padding: 18px 16px 10px;
}
.nav-list {
  display: grid;
  gap: 3px;
}
.nav-list > a,
.nav-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sidebar-foreground);
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.15s,
    color 0.15s;
  min-height: 44px;
}
.nav-submenu-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
}
.nav-list > a i,
.nav-submenu-toggle > i:first-child {
  font-size: 18px;
}
.nav-list > a:hover,
.nav-list > a.active,
.nav-submenu-toggle:hover,
.nav-submenu-toggle[aria-expanded="true"] {
  background: var(--sidebar-active);
  color: var(--foreground);
}
.nav-list > a.active i,
.nav-submenu-toggle[aria-expanded="true"] > i:first-child {
  color: var(--foreground);
}
.nav-submenu-chevron {
  margin-left: auto;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.nav-submenu-toggle[aria-expanded="true"] .nav-submenu-chevron {
  transform: rotate(180deg);
}
.nav-submenu {
  display: grid;
  gap: 3px;
  margin: 5px 0 7px 21px;
  padding-left: 13px;
  border-left: 1px solid var(--border);
}
.nav-submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--sidebar-foreground);
  font-size: 12px;
  font-weight: 600;
}
.nav-submenu a,
.nav-submenu-toggle {
  min-height: 44px;
}
.nav-submenu .nav-submenu-toggle {
  padding: 11px 12px;
  font-size: 12px;
}
.nav-submenu .nav-submenu {
  margin-left: 10px;
  padding-left: 10px;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: var(--sidebar-active);
  color: var(--foreground);
}
.sidebar a:focus-visible,
.nav-submenu-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--muted-surface);
  color: var(--foreground);
  font-weight: 800;
  font-size: 11px;
}
.main {
  margin-left: 248px;
  min-width: 0;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39px;
  gap: 18px;
}
.crumb {
  font-size: 12px;
  color: #929b96;
}
.crumb strong {
  color: #303835;
  font-weight: 700;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-icon {
  border: 0;
  background: transparent;
  color: #666f69;
  position: relative;
  padding: 5px;
}
.top-icon.dropdown-toggle::after {
  display: none;
}
.top-icon:focus-visible {
  outline: 2px solid #83b954;
  outline-offset: 3px;
}
.notification-menu {
  width: min(320px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(24, 40, 28, 0.1);
  color: var(--ink);
}
.notification-menu-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.notification-menu-header strong {
  font-size: 13px;
}
.notification-menu-header span {
  color: #626e65;
  font-size: 11px;
}
.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notification-list li {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
}
.notification-list li + li {
  border-top: 1px solid var(--line);
}
.notification-list strong {
  font-size: 12px;
  font-weight: 700;
}
.notification-list span {
  color: #626e65;
  font-size: 12px;
  line-height: 1.45;
}
.top-profile {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.top-profile-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
.top-profile-toggle::after {
  display: none;
}
.top-profile-toggle:focus-visible,
.nav-submenu-toggle:focus-visible {
  outline: 2px solid #83b954;
  outline-offset: 3px;
}
.profile-menu {
  min-width: 208px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(24, 40, 28, 0.1);
}
.profile-menu-identity {
  display: grid;
  gap: 2px;
  padding: 11px 10px 9px;
  line-height: 1.4;
}
.profile-menu-identity strong {
  color: var(--ink);
  font-size: 13px;
}
.profile-menu-identity span {
  color: #626e65;
  font-size: 12px;
  font-weight: 500;
}
.profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.profile-menu .dropdown-item:not(.disabled):hover,
.profile-menu .dropdown-item:not(.disabled):focus {
  background: #eef5e9;
  color: #4d823a;
}
.profile-menu .dropdown-item.disabled {
  color: #626e65;
}
.profile-menu .dropdown-divider {
  border-color: var(--line);
}
.top-profile .avatar {
  height: 32px;
  width: 32px;
}
.top-profile-toggle .profile-chevron {
  color: #89928c;
  font-size: 15px;
}
.content {
  max-width: 1510px;
  margin: auto;
  padding: 33px 39px 60px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #789856;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.page-heading h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 5px;
}
.subtitle {
  font-size: 12px;
  color: #929b95;
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.btn {
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  min-height: 44px;
  padding: 9px 14px;
  box-shadow: none !important;
}
.btn i {
  font-size: 17px;
  margin-right: 5px;
}
.btn-primary {
  --bs-btn-active-bg: #3f3f46;
  --bs-btn-active-border-color: #3f3f46;
  --bs-btn-disabled-bg: #18181b;
  --bs-btn-disabled-border-color: #18181b;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #3f3f46;
  border-color: #3f3f46;
  color: var(--primary-foreground);
}
.btn-outline-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline-secondary:hover {
  background: var(--muted-surface);
  border-color: var(--border);
  color: var(--foreground);
}
.btn-dark {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-soft {
  background: var(--muted-surface);
  color: var(--foreground);
}
.btn-soft:hover {
  background: #e4e4e7;
  color: var(--foreground);
}
.card-ui {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.card-pad {
  padding: 22px 23px;
}
.card-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}
.card-subtitle {
  font-size: 11px;
  color: #99a19b;
  margin: 4px 0 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-head .link {
  font-size: 11px;
  color: #609638;
  font-weight: 700;
}
.metric {
  min-height: 150px;
  padding: 21px 22px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #eef5e9;
  color: #77ad4d;
}
.metric-icon.blue {
  background: #edf3fa;
  color: #7198cc;
}
.metric-icon.orange {
  background: #fff3e8;
  color: #e5a45e;
}
.metric-icon.purple {
  background: #f3effa;
  color: #a384cc;
}
.metric-icon i {
  font-size: 20px;
}
.metric-label {
  font-size: 11px;
  color: #838f86;
  font-weight: 700;
}
.metric-value {
  font:
    800 26px Manrope,
    sans-serif;
  letter-spacing: -0.05em;
  margin: 15px 0 4px;
}
.metric-foot {
  font-size: 10px;
  color: #9da69e;
}
.trend {
  font-size: 10px;
  font-weight: 800;
  color: #69a944;
  background: #f0f7eb;
  border-radius: 5px;
  padding: 3px 6px;
  margin-right: 5px;
}
.trend.down {
  color: #e0715b;
  background: #fff1ed;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 19px;
  margin-top: 19px;
}
body[data-page="dashboard"] .dashboard-grid > *,
body[data-page="dashboard"] .section-grid > * {
  min-width: 0;
}
.chart-wrap {
  height: 250px;
  position: relative;
}
.chart-wrap canvas {
  max-width: 100%;
  max-height: 100%;
}
.segmented {
  display: flex;
  gap: 3px;
  background: #f5f7f3;
  border-radius: 7px;
  padding: 3px;
}
.segmented button {
  border: 0;
  background: none;
  color: #9ba49b;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 5px;
}
.segmented button.active {
  color: #313b32;
  background: #fff;
  box-shadow: 0 1px 3px #dce1da;
}
.traffic-item {
  margin: 0 0 20px;
}
.traffic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.traffic-row span:last-child {
  color: #717b72;
}
.traffic-bar {
  height: 7px;
  border-radius: 10px;
  background: #f1f3ef;
  overflow: hidden;
}
.traffic-bar span {
  display: block;
  height: 100%;
  border-radius: 10px;
}
.table {
  font-size: 11px;
  vertical-align: middle;
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  padding: 13px 12px;
  border-color: #f0f2ee;
}
.table thead th {
  color: #99a29b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.table tbody td {
  color: #69746a;
}
.table tbody td strong {
  color: #242d25;
  font-weight: 700;
}
.post-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-thumb {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
}
.thumb-a {
  background: #e6ead9;
  color: #738755;
}
.thumb-b {
  background: #f5eadd;
  color: #bb8463;
}
.thumb-c {
  background: #e1eaf2;
  color: #6c94b6;
}
.thumb-d {
  background: #efe4e9;
  color: #b17d93;
}
.thumb-e {
  background: #e4eee7;
  color: #78a385;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 8px;
  background: #edf7e9;
  color: #558c3a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.draft {
  background: #f2f3f1;
  color: #89918a;
}
.status.review {
  background: #fff5e6;
  color: #c99342;
}
.table-action {
  border: 0;
  background: none;
  color: #879188;
  padding: 4px;
}
.table-action:hover {
  color: #56873e;
}
.activity-item {
  display: flex;
  gap: 11px;
  position: relative;
  padding-bottom: 18px;
}
.activity-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  border-left: 1px dashed #dfe6dc;
}
.activity-icon {
  height: 31px;
  width: 31px;
  border-radius: 50%;
  background: #ecf4e7;
  color: #69a348;
  display: grid;
  place-items: center;
  flex: none;
}
.activity-icon i {
  font-size: 16px;
}
.activity-item strong {
  display: block;
  font-size: 11px;
  color: #333d35;
}
.activity-item p {
  margin: 3px 0 0;
  color: #939d93;
  font-size: 10px;
}
.activity-item time {
  margin-left: auto;
  color: #abb3aa;
  font-size: 10px;
  white-space: nowrap;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 19px;
  margin-top: 19px;
}
.mini-note {
  background: #f6f9f3;
  border: 1px solid #edf3e7;
  border-radius: 10px;
  padding: 17px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mini-note i {
  color: #77ad4e;
  font-size: 21px;
}
.mini-note strong {
  font-size: 12px;
}
.mini-note p {
  font-size: 11px;
  color: #8c978b;
  margin: 3px 0 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.input-group-text,
.form-control,
.form-select {
  border-color: #e6ebe5;
  font-size: 12px;
  min-height: 36px;
}
.form-control:focus,
.form-select:focus {
  border-color: #9bc881;
  box-shadow: 0 0 0 0.2rem rgba(130, 186, 84, 0.12);
}
.input-group-text {
  background: white;
  color: #8a958b;
}
.table-search {
  width: 240px;
}
.filter-select {
  width: 142px;
}
.pagination-info {
  color: #98a198;
  font-size: 11px;
}
.dt-container .dt-layout-row {
  align-items: center;
  margin: 15px 0 0 !important;
}
.dt-container .dt-layout-row:first-child {
  margin: 0 0 14px !important;
}
.dt-container .dt-search input,
.dt-container .dt-length select {
  border: 1px solid #e4eae2;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
  outline: none;
}
.dt-container .dt-info {
  color: #98a198;
  font-size: 11px;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-row + .demo-row {
  margin-top: 18px;
}
.demo-label {
  font-size: 10px;
  color: #929d93;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 18px 0 10px;
}
.demo-label:first-of-type {
  margin-top: 0;
}
.btn-outline-primary {
  color: #6b9e49;
  border-color: #88b968;
}
.btn-outline-primary:hover {
  background: #83b954;
  border-color: #83b954;
  color: #fff;
}
.btn-danger {
  background: #e8756d;
  border-color: #e8756d;
}
.btn-warning {
  background: #e7b75e;
  border-color: #e7b75e;
  color: #392b14;
}
.btn-info {
  background: #75afd0;
  border-color: #75afd0;
  color: #173447;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
}
.btn-lg {
  padding: 12px 20px;
  font-size: 13px;
}
.ladda-button {
  border-radius: 8px !important;
}
.ladda-button[data-loading] {
  pointer-events: none;
}
.info-box {
  border: 1px solid #e9eee8;
  background: #fbfcfa;
  border-radius: 10px;
  padding: 17px 19px;
}
.info-box h3 {
  font-size: 12px;
  font-weight: 800;
}
.info-box p {
  font-size: 11px;
  color: #929c91;
  margin: 0;
}
.sample-block {
  padding: 20px;
  border: 1px solid #eef0ed;
  border-radius: 10px;
}
.sample-block h3 {
  font-size: 13px;
  font-weight: 800;
}
.sample-block p {
  font-size: 11px;
  color: #929c91;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.icon-tile {
  min-height: 94px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  border: 1px solid #edf0ea;
  border-radius: 10px;
  background: #fff;
  transition: 0.2s;
  cursor: pointer;
}
.icon-tile:hover {
  border-color: #93c375;
  background: #f8fbf5;
  transform: translateY(-2px);
}
.icon-tile i {
  font-size: 24px;
  color: #456448;
}
.icon-tile small {
  font-size: 10px;
  color: #8c968e;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  gap: 19px;
}
body.editor-full-page .main {
  margin-left: 0;
}
body.editor-full-page .content {
  max-width: 1040px;
  padding-top: 30px;
}
body.editor-full-page .eyebrow {
  color: #4e7234;
}
body.editor-full-page .subtitle,
body.editor-full-page .card-subtitle {
  color: #626e65;
}
.editor-full-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.editor-full-header .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.editor-full-header .btn:focus-visible {
  outline: 2px solid #34572e;
  outline-offset: 2px;
}
body.editor-full-page .editor-shell {
  min-height: 60dvh;
}
.editor-field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}
.editor-shell {
  min-height: 340px;
  border: 1px solid #e6ebe5;
  border-radius: 9px;
  padding: 17px 19px;
  background: #fff;
}
.editor-media {
  min-width: 0;
  padding: 12px 0;
}
.editor-media-action {
  min-height: 44px;
}
.editor-media-or {
  color: #626e65;
  font-size: 12px;
  margin: 12px 0;
}
.editor-media-message {
  margin: 10px 0;
  color: #626e65;
  font-size: 12px;
}
.editor-media-hint,
.editor-media-error {
  margin: 10px 0 0;
  font-size: 12px;
}
.editor-media-hint {
  color: #626e65;
}
.editor-media-error {
  color: #a02929;
}
.editor-media-image {
  display: block;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.editor-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.editor-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}
.ce-block__content,
.ce-toolbar__content {
  max-width: 100% !important;
}
.codex-editor__redactor {
  padding-bottom: 80px !important;
}
.editor-output {
  margin-top: 15px;
  background: #18221a;
  color: #b8deb0;
  padding: 15px;
  border-radius: 9px;
  white-space: pre-wrap;
  font:
    11px/1.6 Consolas,
    monospace;
  max-height: 190px;
  overflow: auto;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #edf0eb;
  font-size: 11px;
  color: #5c675c;
}
.setting-row:last-child {
  border: 0;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.chart-demo {
  height: 290px;
  position: relative;
}
.chart-demo.small {
  height: 245px;
}
.chart-demo canvas {
  max-height: 100%;
}
.mobile-toggle,
.sidebar-overlay {
  display: none;
}
.footer {
  font-size: 11px;
  color: #a5aea5;
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
}
.empty-state {
  text-align: center;
  padding: 32px;
  color: #939d93;
  font-size: 12px;
}
@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
  }
  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1399px) {
  body[data-page="dashboard"] .dashboard-grid,
  body[data-page="dashboard"] .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #1018109e;
    z-index: 1040;
  }
  .main {
    margin-left: 0;
  }
  .mobile-toggle {
    display: block;
    border: 0;
    background: none;
    padding: 4px;
    color: #313c34;
  }
  .topbar {
    padding: 0 22px;
  }
  .content {
    padding: 28px 22px 50px;
  }
}
@media (max-width: 767px) {
  body.editor-full-page .content {
    padding: 20px 15px 40px;
  }
  body.editor-full-page .editor-shell {
    min-height: 55dvh;
  }
  .dashboard-grid,
  .section-grid,
  .editor-layout,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .top-profile-toggle .profile-name,
  .top-profile-toggle .profile-chevron {
    display: none;
  }
  .topbar {
    height: 62px;
  }
  .content {
    padding: 25px 15px 40px;
  }
  .topbar {
    padding: 0 15px;
  }
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .chart-wrap {
    height: 220px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 5px;
  }
  .table-responsive {
    overflow-x: auto;
  }
  .table {
    min-width: 600px;
  }
  body[data-page="dashboard"] .section-grid .table {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  body[data-page="dashboard"] .dashboard-grid .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  body[data-page="dashboard"] .segmented {
    width: 100%;
  }
  body[data-page="dashboard"] .segmented button {
    flex: 1;
    min-height: 44px;
  }
  body[data-page="dashboard"] .section-grid .table thead {
    display: none;
  }
  body[data-page="dashboard"] .section-grid .table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2ee;
  }
  body[data-page="dashboard"] .section-grid .table tbody tr:last-child {
    border-bottom: 0;
  }
  body[data-page="dashboard"] .section-grid .table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  body[data-page="dashboard"] .section-grid .table tbody td:first-child {
    grid-column: 1 / -1;
  }
  body[data-page="dashboard"] .section-grid .table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
  }
  body[data-page="dashboard"] .section-grid .table tbody td:nth-child(3),
  body[data-page="dashboard"] .section-grid .table tbody td:nth-child(4) {
    grid-column: 1;
  }
  body[data-page="dashboard"]
    .section-grid
    .table
    tbody
    td:nth-child(3)::before {
    content: "Date: ";
  }
  body[data-page="dashboard"]
    .section-grid
    .table
    tbody
    td:nth-child(4)::before {
    content: "Views: ";
  }
  body[data-page="dashboard"] .post-title strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body[data-page="dashboard"] .activity-item > div {
    min-width: 0;
  }
  body[data-page="dashboard"] .activity-item time {
    white-space: normal;
    text-align: right;
  }
}
@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-actions {
    gap: 9px;
    position: relative;
  }
  .top-notifications {
    position: static;
  }
  .notification-menu {
    top: calc(100% + 12px);
    right: 0;
    left: auto;
  }
  .metric {
    min-height: 138px;
  }
  .card-pad {
    padding: 18px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
}

/* Standalone authentication pages (no admin shell) */
body.auth-page {
  min-height: 100vh;
  background: #fafafa;
}
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
}
.auth-card {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
  padding: 37px;
  background: var(--muted-surface);
  color: var(--foreground);
  overflow: hidden;
}
.auth-aside:before,
.auth-aside:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(167, 216, 121, 0.16);
  border-radius: 50%;
  width: 450px;
  height: 450px;
  right: -255px;
  top: 80px;
  pointer-events: none;
}
.auth-aside:after {
  width: 315px;
  height: 315px;
  right: -160px;
  top: 146px;
  background: none;
}
.auth-aside > * {
  position: relative;
  z-index: 1;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font:
    800 21px Manrope,
    sans-serif;
  letter-spacing: -0.05em;
}
.auth-brand:hover {
  color: #fff;
}
.auth-brand .brand-mark {
  transform: none;
}
.auth-brand .brand-mark i {
  transform: none;
}
.auth-brand > span:last-child > span {
  color: #98c862;
}
.auth-aside h2 {
  font:
    800 32px/1.25 Manrope,
    sans-serif;
  letter-spacing: -0.06em;
  max-width: 280px;
  margin: 0 0 14px;
}
.auth-aside h2 em {
  font-style: normal;
  color: #abd976;
}
.auth-aside p {
  color: #a8b7aa;
  font-size: 13px;
  line-height: 1.8;
  max-width: 300px;
}
.auth-aside small {
  color: #87988a;
  font-size: 11px;
}
.auth-form-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 43px;
}
.auth-kicker {
  color: #72a748;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 9px;
}
.auth-form-area h1 {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 7px;
}
.auth-intro {
  color: #929e93;
  font-size: 12px;
  margin: 0 0 28px;
}
.auth-form-area label:not(.form-check-label) {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #313e33;
  margin-bottom: 8px;
}
.auth-form-area .form-control {
  height: 43px;
  border-radius: 8px;
  font-size: 12px;
  padding: 10px 13px;
}
.auth-form-area .form-control::placeholder {
  color: #abb5aa;
}
.auth-form-area .form-control:focus {
  border-color: #9bc881;
  box-shadow: 0 0 0 0.2rem rgba(130, 186, 84, 0.12);
}
.auth-input {
  position: relative;
}
.auth-input .form-control {
  padding-right: 45px;
}
.auth-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #829084;
  padding: 6px;
  display: grid;
  place-items: center;
}
.auth-toggle:hover {
  color: #4d823a;
}
.auth-toggle i {
  font-size: 18px;
}
.auth-form-area .form-check-label,
.auth-form-area .auth-link {
  font-size: 11px;
}
.auth-form-area .form-check-label {
  color: #788478;
}
.auth-link {
  color: #649c3e;
  font-weight: 700;
}
.auth-link:hover {
  color: #3f7226;
}
.auth-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 21px;
  font-size: 12px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a1aba0;
  font-size: 10px;
  margin: 24px 0 16px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  flex: 1;
  border-top: 1px solid #e9eee8;
}
.auth-bottom {
  text-align: center;
  color: #889489;
  font-size: 11px;
  margin: 0;
}
.auth-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #f5f9f2;
  border: 1px solid #edf4e8;
  border-radius: 9px;
  padding: 11px 12px;
  color: #6d806b;
  font-size: 11px;
  line-height: 1.5;
}
.auth-note i {
  color: #76aa53;
  font-size: 17px;
  flex: none;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 25px;
}
.auth-back i {
  font-size: 16px;
}
.auth-legal {
  margin-top: 24px;
  color: #9ca69c;
  font-size: 10px;
  text-align: center;
}
@media (max-width: 767px) {
  .auth-card {
    max-width: 440px;
    grid-template-columns: 1fr;
  }
  .auth-aside {
    min-height: 0;
    padding: 20px 25px;
  }
  .auth-aside h2,
  .auth-aside p,
  .auth-aside small {
    display: none;
  }
  .auth-form-area {
    padding: 33px 26px;
  }
  .auth-layout {
    padding: 22px 14px;
  }
}
@media (max-width: 400px) {
  .auth-form-area {
    padding: 28px 20px;
  }
  .auth-form-area h1 {
    font-size: 23px;
  }
}

/* Breadcrumb below each admin page title */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 8px;
  color: #778378;
  font-size: 11px;
  font-weight: 600;
}
.page-breadcrumb a {
  color: #8a9789;
}
.page-breadcrumb a:hover {
  color: #619740;
}
.page-breadcrumb span {
  color: #415343;
}
.page-breadcrumb i {
  font-size: 12px;
  color: #aeb9ae;
}

.eyebrow,
.auth-kicker,
.demo-label {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.subtitle,
.card-subtitle,
.metric-label,
.metric-foot,
.traffic-row span:last-child,
.table tbody td,
.activity-item p,
.activity-item time,
.mini-note p,
.info-box p,
.sample-block p,
.icon-tile small,
.footer,
.empty-state,
.auth-intro,
.auth-bottom,
.auth-legal,
.auth-divider,
.auth-form-area .form-check-label,
.notification-list span,
.notification-menu-header span,
.profile-menu .dropdown-item.disabled,
.page-breadcrumb,
.page-breadcrumb a,
.dt-container .dt-info,
body.editor-full-page .subtitle,
body.editor-full-page .card-subtitle {
  color: var(--muted-foreground);
}
.subtitle,
.card-subtitle,
.metric-label,
.table,
.sample-block p,
.info-box p,
.auth-intro,
.auth-form-area label:not(.form-check-label),
.auth-form-area .form-check-label,
.auth-form-area .auth-link {
  font-size: 13px;
}
.card-title,
.page-heading h1,
.auth-form-area h1 {
  font-weight: 600;
}
.metric-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metric-icon,
.metric-icon.blue,
.metric-icon.orange,
.metric-icon.purple,
.post-thumb,
.activity-icon {
  color: #52525b;
  background: var(--muted-surface);
  border-radius: 6px;
}
.metric-icon {
  background: transparent;
}
.trend {
  color: #166534;
  background: #f0fdf4;
}
.trend.down {
  color: #b91c1c;
  background: #fef2f2;
}
.status {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.status.draft {
  color: #52525b;
  background: #fafafa;
  border-color: var(--border);
}
.status.review {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
.segmented,
.traffic-bar,
.input-group-text {
  background: var(--muted-surface);
}
.segmented button {
  color: var(--muted-foreground);
  min-height: 44px;
  min-width: 44px;
  font-size: 12px;
}
.segmented button.active {
  color: var(--foreground);
  box-shadow: none;
}
.table thead th {
  color: #52525b;
  background: #fafafa;
  font-size: 11px;
  font-weight: 500;
}
.table > :not(caption) > * > *,
.setting-row,
.sample-block,
.icon-tile,
.editor-shell,
.auth-divider:before,
.auth-divider:after {
  border-color: var(--border);
}
.table tbody td strong,
.activity-item strong,
.page-breadcrumb span {
  color: var(--foreground);
}
.table tbody tr:hover {
  --bs-table-bg: #fafafa;
}
.card-head .link,
.auth-link,
.auth-link:hover,
.page-breadcrumb a:hover,
.table-action:hover,
.icon-tile i,
.mini-note i,
.auth-note i,
body.editor-full-page .eyebrow {
  color: var(--foreground);
}
.mini-note,
.info-box,
.auth-note {
  background: #fafafa;
  border-color: var(--border);
  color: #52525b;
  border-radius: var(--radius);
}
.icon-tile:hover {
  border-color: #a1a1aa;
  background: var(--muted-surface);
  transform: none;
}
.form-control,
.form-select,
.input-group-text,
.auth-form-area .form-control {
  min-height: 44px;
  border-color: var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--foreground);
}
.form-control::placeholder,
.auth-form-area .form-control::placeholder {
  color: var(--muted-foreground);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.auth-form-area .form-control:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(161 161 170 / 20%);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.top-icon:focus-visible,
.top-profile-toggle:focus-visible,
.nav-submenu-toggle:focus-visible,
.editor-full-header .btn:focus-visible {
  outline: 2px solid #71717a;
  outline-offset: 3px;
}
.btn-outline-primary {
  --bs-btn-active-bg: #e4e4e7;
  --bs-btn-active-color: #18181b;
  --bs-btn-active-border-color: #d4d4d8;
  color: var(--foreground);
  border-color: #a1a1aa;
}
.btn-outline-primary:hover {
  color: var(--foreground);
  background: var(--muted-surface);
  border-color: #a1a1aa;
}
.btn-danger {
  background: #b91c1c;
  border-color: #b91c1c;
}
.btn-warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #78350f;
}
.btn-info {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}
.top-icon,
.top-profile-toggle,
.table-action,
.auth-toggle,
.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  color: #52525b;
}
.top-icon:hover,
.top-profile-toggle:hover,
.table-action:hover,
.profile-menu .dropdown-item:hover,
.profile-menu .dropdown-item:focus {
  background: var(--muted-surface);
  color: var(--foreground);
}
.notification-menu,
.profile-menu,
.modal-content,
.swal2-popup {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}
.swal2-popup {
  font-family: "DM Sans", sans-serif;
  color: var(--foreground);
}
.swal2-styled.swal2-confirm {
  background: var(--primary) !important;
}
.swal2-styled.swal2-cancel {
  background: var(--muted-surface) !important;
  color: var(--foreground);
}
#toast-container > div {
  opacity: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}
#toast-container > .toast-success {
  background-color: #166534;
}
#toast-container > .toast-info {
  background-color: #27272a;
}
#toast-container > .toast-warning {
  background-color: #92400e;
}
#toast-container > .toast-error {
  background-color: #991b1b;
}
.dt-container .dt-paging .pagination {
  --bs-pagination-color: var(--foreground);
  --bs-pagination-bg: var(--background);
  --bs-pagination-border-color: var(--border);
  --bs-pagination-border-radius: 6px;
  --bs-pagination-hover-color: var(--foreground);
  --bs-pagination-hover-bg: var(--muted-surface);
  --bs-pagination-hover-border-color: var(--border);
  --bs-pagination-focus-color: var(--foreground);
  --bs-pagination-focus-bg: var(--muted-surface);
  --bs-pagination-active-color: var(--primary-foreground);
  --bs-pagination-active-bg: var(--primary);
  --bs-pagination-active-border-color: var(--primary);
  --bs-pagination-disabled-color: var(--muted-foreground);
  --bs-pagination-disabled-bg: var(--muted-surface);
  --bs-pagination-disabled-border-color: var(--border);
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.dt-container .dt-paging .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}
.dt-container .dt-paging .page-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.dt-container .dt-paging .page-item.disabled .page-link {
  cursor: default;
}
.editor-output {
  background: #18181b;
  color: #fafafa;
}
.auth-aside:before,
.auth-aside:after {
  content: none;
}
.auth-brand,
.auth-brand:hover,
.auth-aside h2 em {
  color: var(--foreground);
}
.auth-brand > span:last-child > span {
  color: var(--accent);
}
.auth-aside p,
.auth-aside small {
  color: #52525b;
}
.auth-toggle {
  right: 0;
}
.auth-input .form-control {
  padding-right: 48px;
}
.sidebar-overlay.show {
  background: rgb(9 9 11 / 45%);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
