/* DONEI backend: compact navigation and a quiet white canvas. */
html .backend-wrap {
  --bg: #fff;
  --panel: #fff;
  --ink: #242424;
  --muted: #666;
  --line: #dedede;
  --accent: #f3c322;
  background: #fff;
}
html .backend-wrap .backend-frame { gap: 28px; grid-template-columns: 238px minmax(0, 1fr); }
html .backend-wrap .backend-frame .backend-sidebar {
  background: #292929;
  border: 1px solid #292929;
  border-radius: 18px;
  box-shadow: none;
  padding: 18px 14px;
  scrollbar-color: #767676 transparent;
}
html .backend-wrap .backend-sidebar h2 {
  color: #f3c322;
  font-size: 13px;
  letter-spacing: .08em;
  margin: 2px 8px 14px;
  padding: 0;
}
html .backend-wrap .backend-sidebar .backend-nav { gap: 4px; }
html .backend-wrap .backend-sidebar .backend-nav a {
  color: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 46px;
  padding: 8px 10px;
  font-weight: 600;
}
html .backend-wrap .backend-sidebar .backend-nav a:hover,
html .backend-wrap .backend-sidebar .backend-nav a:focus-visible {
  color: #fff;
  background: #414141;
  border-color: #5a5a5a;
}
html .backend-wrap .backend-sidebar .backend-nav a.active {
  color: #202020;
  background: #f8d344;
  border-color: #f8d344;
  box-shadow: none;
}
html .backend-wrap .backend-nav-icon { background: #414141; color: #f1f1f1; }
html .backend-wrap .backend-nav .active .backend-nav-icon { background: #292929; color: #f8d344; }
html .backend-wrap .backend-sidebar .actions { border-color: #555; }
html .backend-wrap .backend-sidebar .actions :is(a, label, span) { color: #f2f2f2; }
html .backend-wrap .backend-sidebar select { color: #252525; background: #fff; }
html .backend-wrap .backend-main .eyebrow {
  background: #fff6d7;
  border: 1px solid #eed98c;
  color: #51400b;
}
html .backend-wrap .backend-main .panel,
html .backend-wrap .backend-main .stat {
  background: #fff;
  border: 1px solid #dfdfdf;
  box-shadow: none;
  border-radius: 16px;
}
html .backend-wrap .backend-main .stat strong { color: #222; }
html .backend-wrap .backend-main :is(.note, .code, .form-savebar) {
  background: #f6f6f6;
  color: #444;
  border-color: #ddd;
  box-shadow: none;
}
html .backend-wrap .backend-main .btn { background: #f3c322; border-color: #f3c322; color: #202020; box-shadow: none; }
html .backend-wrap .backend-main .btn:hover { background: #e3b315; border-color: #e3b315; color: #202020; }
html .backend-wrap .backend-main .btn.secondary { background: #fff; border-color: #ccc; color: #303030; }
html .backend-wrap .backend-main .btn.secondary:hover { background: #f3f3f3; border-color: #aaa; }
html .backend-wrap .backend-main .field :is(input, select, textarea) { background: #fff; border-color: #ccc; color: #202020; }
html .backend-wrap :is(input, select, textarea):focus { border-color: #bd9300; outline-color: #f3c32255; }
html .backend-wrap :focus-visible { outline-color: #f3c322; }

html .backend-wrap .admin-overview-heading,
html .backend-wrap .admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
html .backend-wrap .admin-overview-heading { margin-bottom: 20px; }
html .backend-wrap .admin-overview-heading h1 { margin-bottom: 3px; }
html .backend-wrap .admin-overview-heading p,
html .backend-wrap .admin-section-heading p { margin: 0; }
html .backend-wrap .admin-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
html .backend-wrap .admin-overview-stats .stat { margin: 0; min-width: 0; padding: 18px 20px; }
html .backend-wrap .admin-overview-stats .stat span { color: #606060; font-size: 13px; }
html .backend-wrap .admin-overview-stats .stat strong { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
html .backend-wrap .admin-overview-stats .stat small { color: #777; font-size: 14px; font-weight: 500; }
html .backend-wrap .admin-stage-note { margin: 0 0 24px; border-left: 3px solid #f3c322; }
html .backend-wrap .admin-orders-panel { padding: 24px; }
html .backend-wrap .admin-section-heading { margin-bottom: 22px; }
html .backend-wrap .admin-section-heading h2 { margin: 8px 0 3px; }
html .backend-wrap .admin-utilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
html .backend-wrap .admin-advanced { margin: 0; padding: 0; overflow: hidden; }
html .backend-wrap .admin-advanced summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
html .backend-wrap .admin-advanced summary::-webkit-details-marker { display: none; }
html .backend-wrap .admin-advanced summary::after { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; }
html .backend-wrap .admin-advanced[open] summary::after { content: '−'; }
html .backend-wrap .admin-advanced > :not(summary) { margin-left: 20px; margin-right: 20px; }
html .backend-wrap .admin-advanced > :last-child { margin-bottom: 20px; }
html .backend-wrap .order-report-summary > div { background: #f8f8f8; border-color: #e2e2e2; color: #252525; }
html .backend-wrap .order-report-summary :is(span, strong) { color: #303030; }
html .backend-wrap .order-report th { background: #f5f5f5; color: #333; }

@media (max-width: 1050px) {
  html .backend-wrap .backend-frame { grid-template-columns: 208px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  html .backend-wrap .backend-frame { display: flex; gap: 16px; }
  html .backend-wrap .backend-sidebar { width: 100%; padding: 12px; }
  html .backend-wrap .backend-menu-toggle { color: #f8d344; }
  html .backend-wrap .admin-overview-stats { grid-template-columns: 1fr; }
  html .backend-wrap .admin-utilities { grid-template-columns: 1fr; }
  html .backend-wrap .admin-orders-panel { padding: 18px; }
}
