/* QF-050: one desktop scale; breakpoints remain the unzoomed media viewport. */
:root { --app-scale:1; --app-vw:calc(100vw / var(--app-scale)); --app-vh:calc(100dvh / var(--app-scale)); }
@media screen and (min-width:768px) { :root { --app-scale:0.75; } }
html { zoom:var(--app-scale); }
@media print { html { --app-scale:1; zoom:1!important; } }

@font-face{font-family:"Figtree";font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/Figtree-Variable.woff2") format("woff2")}
body { --font:"Figtree","Segoe UI",system-ui,-apple-system,Arial,sans-serif; --tblr-font-sans-serif:var(--font); font:14px/1.45 var(--font); -webkit-font-smoothing:antialiased; }

:root,
[data-bs-theme="light"] {
  --admin-accent: #f04e23;
  --admin-accent-rgb: 240, 78, 35;
  --admin-action-orange: #c2410c;
  --admin-action-orange-deep: #ac370a;
  --admin-accent-soft: rgba(240, 78, 35, 0.1);
  --admin-accent-soft-strong: rgba(240, 78, 35, 0.16);
  --admin-sidebar-bg: #ffffff;
  --admin-sidebar-border: rgba(15, 23, 42, 0.08);
  --admin-page-bg: #f5f7fb;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f8fafc;
  --admin-border: rgba(15, 23, 42, 0.08);
  --admin-border-strong: rgba(15, 23, 42, 0.12);
  --admin-text: #182433;
  --admin-muted: #66758c;
  --admin-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --admin-shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
  --admin-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --admin-radius-sm: 12px;
  --admin-radius-md: 18px;
  --admin-radius-lg: 24px;
  --admin-sidebar-width: 17.5rem;
  --admin-sidebar-surface: #ffffff;
  --admin-sidebar-surface-rgb: 255, 255, 255;
  --admin-sidebar-foreground: #66758c;
  --admin-sidebar-foreground-strong: #182433;
  --admin-sidebar-hover: #f8fafc;
  --admin-sidebar-active-bg: rgba(240, 78, 35, 0.14);
  --admin-sidebar-tint: #f04e23;
  --admin-sidebar-tint-rgb: 240, 78, 35;
  --admin-sidebar-tint-strong: #1f2b3d;
  --admin-sidebar-active-text: var(--admin-sidebar-tint);
}

[data-bs-theme="dark"] {
  --admin-accent: #ff7a59;
  --admin-accent-rgb: 255, 122, 89;
  --admin-action-orange: #c2410c;
  --admin-action-orange-deep: #ac370a;
  --admin-accent-soft: rgba(255, 122, 89, 0.14);
  --admin-accent-soft-strong: rgba(255, 122, 89, 0.2);
  --admin-sidebar-bg: #111827;
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);
  --admin-page-bg: #0b1220;
  --admin-surface: #111827;
  --admin-surface-muted: #182132;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-strong: rgba(255, 255, 255, 0.12);
  --admin-text: #eff4fb;
  --admin-muted: #94a3b8;
  --admin-shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.45);
  --admin-shadow-md: 0 14px 40px rgba(2, 6, 23, 0.45);
  --admin-shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.5);
  --admin-sidebar-surface: #111827;
  --admin-sidebar-surface-rgb: 17, 24, 39;
  --admin-sidebar-foreground: #94a3b8;
  --admin-sidebar-foreground-strong: #eff4fb;
  --admin-sidebar-hover: #182132;
  --admin-sidebar-active-bg: rgba(255, 122, 89, 0.18);
  --admin-sidebar-tint: #ff7a59;
  --admin-sidebar-tint-rgb: 255, 122, 89;
  --admin-sidebar-tint-strong: #0f172a;
  --admin-sidebar-active-text: var(--admin-sidebar-tint);
}

[data-bs-theme="dark"] .admin-shell :is(.text-muted,.text-secondary,.card-subtitle,.form-hint,.empty-subtitle,.text-body-secondary) {
  color: #b8c5d6 !important;
}

/* Explicit light surfaces retain dark muted copy even in a dark workspace. */
[data-bs-theme="dark"] .admin-shell :is(.bg-white,.bg-light,[data-bs-theme="light"],.ticket-attachment-link,.admin-ticket-intelligence-card,.admin-ticket-actions-card,.admin-ticket-side-hero,.admin-intel-group,.admin-ticket-brief-card,.admin-ticket-ai-card,.admin-ticket-message-card,.admin-intake-panel,.admin-bubble-franchisee,.admin-bubble-agent,.admin-bubble-system,.admin-bubble-internal,.admin-ticket-composer,.admin-reply-header,.ticket-tag-menu-head,.ticket-tag-search-wrap) :is(.text-muted,.text-secondary,.card-subtitle,.form-hint,.empty-subtitle,.text-body-secondary) {
  color: #526277 !important;
}

[data-bs-theme="dark"] .admin-shell .admin-conversation-header .text-muted {
  color: #fff !important;
}

[data-sidebar-tone="sunset"] {
  --admin-sidebar-surface: #fff7f4;
  --admin-sidebar-surface-rgb: 255, 247, 244;
  --admin-sidebar-foreground: #695b56;
  --admin-sidebar-muted: #695b56;
  --admin-sidebar-border: #dcc7bf;
  --admin-sidebar-foreground-strong: #1f2937;
  --admin-sidebar-hover: #fff1eb;
  --admin-sidebar-active-bg: #fbded4;
  --admin-sidebar-tint: #ac370a;
  --admin-sidebar-tint-rgb: 172, 55, 10;
  --admin-sidebar-tint-strong: #1f2b3d;
}

[data-sidebar-tone="slate"] {
  --admin-sidebar-surface: #f8fafc;
  --admin-sidebar-surface-rgb: 248, 250, 252;
  --admin-sidebar-foreground: #475569;
  --admin-sidebar-muted: #475569;
  --admin-sidebar-border: #cbd5e1;
  --admin-sidebar-foreground-strong: #0f172a;
  --admin-sidebar-hover: #eef2f7;
  --admin-sidebar-active-bg: #e2e8f0;
  --admin-sidebar-tint: #475569;
  --admin-sidebar-tint-rgb: 71, 85, 105;
  --admin-sidebar-tint-strong: #e2e8f0;
}

[data-sidebar-tone="ocean"] {
  --admin-sidebar-surface: #1e293b;
  --admin-sidebar-surface-rgb: 30, 41, 59;
  --admin-sidebar-foreground: #cbd5e1;
  --admin-sidebar-muted: #cbd5e1;
  --admin-sidebar-border: #475569;
  --admin-sidebar-foreground-strong: #f8fafc;
  --admin-sidebar-hover: #273449;
  --admin-sidebar-active-bg: #203550;
  --admin-sidebar-tint: #93c5fd;
  --admin-sidebar-tint-rgb: 147, 197, 253;
  --admin-sidebar-tint-strong: #0f172a;
}

[data-sidebar-tone="forest"] {
  --admin-sidebar-surface: #17261e;
  --admin-sidebar-surface-rgb: 23, 38, 30;
  --admin-sidebar-foreground: #c8d5cd;
  --admin-sidebar-muted: #c8d5cd;
  --admin-sidebar-border: #476451;
  --admin-sidebar-foreground-strong: #f3faf5;
  --admin-sidebar-hover: #203228;
  --admin-sidebar-active-bg: #173f27;
  --admin-sidebar-tint: #86efac;
  --admin-sidebar-tint-rgb: 134, 239, 172;
  --admin-sidebar-tint-strong: #052e16;
}

[data-sidebar-tone="graphite"], body.admin-shell:not([data-sidebar-tone]) {
  --admin-sidebar-surface: #1b1f24;
  --admin-sidebar-surface-rgb: 27, 31, 36;
  --admin-sidebar-foreground: #c9ced6;
  --admin-sidebar-foreground-strong: #fff;
  --admin-sidebar-muted: #adb5c1;
  --admin-sidebar-border: #2f353e;
  --admin-sidebar-hover: #252a31;
  --admin-sidebar-active-bg: #313843;
  --admin-sidebar-tint: #f04e23;
  --admin-sidebar-tint-rgb: 240, 78, 35;
  --admin-sidebar-tint-strong: #111827;
  --admin-sidebar-active-text: #f04e23;
}

body.admin-shell {
  font-family: var(--font) !important;
  font-feature-settings: "cv03", "cv04", "cv11";
  background:
    radial-gradient(circle at top right, rgba(var(--admin-accent-rgb), 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(148, 163, 184, 0.05), transparent 14rem),
    var(--admin-page-bg);
  color: var(--admin-text);
}

.admin-shell .page {
  position: relative;
  min-height: var(--app-vh);
}

.admin-shell .navbar-vertical {
  background: linear-gradient(180deg, rgba(var(--admin-sidebar-surface-rgb), 0.98), rgba(var(--admin-sidebar-surface-rgb), 1));
  border-right: 1px solid var(--admin-sidebar-border);
  box-shadow: var(--admin-shadow-sm);
  position: relative;
}

.admin-shell .navbar-vertical::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--admin-sidebar-tint), rgba(var(--admin-sidebar-tint-rgb), 0.25));
}

.admin-shell .navbar-vertical .container-fluid {
  padding: 1.1rem 1rem 1.25rem;
}

.admin-shell .navbar-brand {
  margin: 0;
  padding: 0.4rem 0 1.2rem;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.admin-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.88);
  color: var(--admin-sidebar-tint);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.admin-brand-mark-image {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  display: block;
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-brand-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--admin-sidebar-foreground-strong);
}

.admin-brand-wordmark {
  color: inherit;
}

.admin-brand-iq {
  color: var(--admin-accent);
}

/* Keep the accent lettering readable on dark sidebar themes. */
[data-sidebar-tone="ocean"] .admin-brand-iq,
[data-sidebar-tone="forest"] .admin-brand-iq,
[data-bs-theme="dark"] .admin-brand-iq {
  color: #ff9a80;
}

.admin-brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-sidebar-foreground);
}

.admin-shell .navbar-toggler {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-muted);
  border-radius: 0.9rem;
  padding: 0.55rem;
  color: var(--admin-text);
}

.admin-shell .navbar-vertical .navbar-nav {
  gap: 0.35rem;
}

.admin-shell .navbar-vertical .nav-link {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.78rem 0.95rem;
  border-radius: 0.95rem;
  color: var(--admin-sidebar-foreground);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-shell .navbar-vertical .nav-link:hover {
  background: var(--admin-sidebar-hover);
  color: var(--admin-sidebar-foreground-strong);
  transform: translateX(2px);
}

.admin-shell .navbar-vertical .nav-item.active .nav-link {
  background: linear-gradient(180deg, var(--admin-sidebar-active-bg), rgba(var(--admin-sidebar-tint-rgb), 0.1));
  color: var(--admin-sidebar-active-text);
  box-shadow: inset 0 0 0 1px rgba(var(--admin-sidebar-tint-rgb), 0.14);
}

.admin-shell .nav-link-icon {
  width: 1.9rem !important;
  margin-right: 0.7rem !important;
  color: currentColor;
  opacity: 0.95;
}

.admin-shell .nav-link-icon i {
  font-size: 1.15rem !important;
}

.admin-shell .nav-link-title {
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.admin-sidebar-card {
  padding: 1rem;
  border-radius: var(--admin-radius-md);
  background: linear-gradient(180deg, rgba(var(--admin-sidebar-tint-rgb), 0.08), rgba(var(--admin-sidebar-tint-rgb), 0.02));
  border: 1px solid rgba(var(--admin-sidebar-tint-rgb), 0.12);
}

.admin-sidebar-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-sidebar-card-copy {
  margin: 0;
  color: var(--admin-sidebar-foreground);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  flex: 0 0 auto !important;
  gap: 0.5rem;
}

.admin-quickbar {
  position: relative;
  top: auto;
  right: auto;
  width: max-content;
  max-width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1rem auto;
  z-index: 1035;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.6rem 0.5rem 0.6rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--admin-shadow-md);
}

@media (max-width: 991.98px) {
  .admin-quickbar > :not(.dropdown):not(.franchisee-utility-cluster) { display: none !important; }
  .admin-quickbar { margin: 0 1rem .75rem auto; gap: .25rem; padding: .25rem; }
  .admin-quickbar .dropdown-menu { max-width: calc(var(--app-vw) - 2rem); }
}

[data-bs-theme="dark"] .admin-quickbar {
  background: rgba(17, 24, 39, 0.88);
}

.admin-topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-muted);
  box-shadow: var(--admin-shadow-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-topbar-button:hover {
  color: var(--admin-accent);
  border-color: rgba(var(--admin-accent-rgb), 0.22);
  background: rgba(var(--admin-accent-rgb), 0.06);
  transform: translateY(-1px);
}

.admin-topbar-button.system-updates-topbar-link {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  padding-inline: 0.7rem !important;
}

.admin-user-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 8rem;
  padding: 0.45rem 1.6rem 0.45rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.admin-user-link .avatar {
  background: linear-gradient(135deg, var(--admin-action-orange), var(--admin-action-orange-deep));
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--admin-text);
  white-space: nowrap;
}

.admin-user-role {
  font-size: 0.73rem;
  line-height: 1.05;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.admin-main {
  position: relative;
  min-width: 0;
  padding: 1rem 0 0;
  background: transparent;
}

@media (min-width: 992px) {
  .admin-shell .admin-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0;
    width: var(--admin-sidebar-width);
    z-index: 1030;
    overflow-y: auto;
  }

  .admin-main {
    margin-left: var(--admin-sidebar-width);
    width: calc(100% - var(--admin-sidebar-width));
    min-height: var(--app-vh);
  }
}

.admin-page-head {
  margin: 0;
  padding: 0.5rem 0 0.35rem;
}

.admin-page-pretitle {
  color: var(--admin-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-page-title {
  color: var(--admin-text) !important;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-page-title .avatar {
  background: #fff !important;
  color: var(--admin-text) !important;
  border-radius: 0.95rem !important;
  border: 2px solid rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
}

.admin-page-title-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-page-title-mark-image {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: block;
}

.admin-main-body {
  margin: 0;
  padding-bottom: 2rem;
}

.admin-shell .container-fluid {
  max-width: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.admin-shell .card {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md) !important;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.admin-shell .card:hover {
  box-shadow: var(--admin-shadow-md);
}

.admin-shell .card-header,
.admin-shell .card-footer {
  border-color: var(--admin-border);
  background: transparent;
}

.admin-shell .form-control,
.admin-shell .form-select,
.admin-shell .btn,
.admin-shell .input-group-text {
  border-radius: 0.9rem !important;
}

.admin-shell .form-control,
.admin-shell .form-select {
  min-height: 2.7rem;
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: none;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
  border-color: rgba(var(--admin-accent-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--admin-accent-rgb), 0.12);
}

.admin-shell .btn-primary {
  background: linear-gradient(135deg, var(--admin-action-orange), var(--admin-action-orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--admin-accent-rgb), 0.2);
}

.admin-shell .btn-primary:is(:hover, :focus-visible, :active) {
  background: var(--admin-action-orange-deep);
  color: #fff;
}

.admin-shell .btn-outline-secondary,
.admin-shell .btn-outline-success,
.admin-shell .btn-outline-primary,
.admin-shell .btn-outline-danger {
  border-color: var(--admin-border-strong);
}

.admin-shell .btn-ghost-danger,
.admin-shell .btn-outline-secondary,
.admin-shell .btn-outline-success,
.admin-shell .btn-outline-primary,
.admin-shell .btn-outline-danger,
.admin-shell .btn-light {
  background: var(--admin-surface);
}

.admin-shell :is(.btn-ghost-danger, .btn-outline-secondary, .btn-outline-success, .btn-outline-primary, .btn-outline-danger, .btn-light):is(:hover, :focus-visible) {
  background-color: var(--admin-surface);
  background-image: linear-gradient(var(--admin-accent-soft), var(--admin-accent-soft));
  border-color: var(--admin-border-strong);
  color: var(--admin-text);
}

.admin-shell :is(.btn-ghost-danger, .btn-outline-secondary, .btn-outline-success, .btn-outline-primary, .btn-outline-danger, .btn-light):focus-visible {
  box-shadow: 0 0 0 0.18rem var(--admin-accent-soft-strong);
}

.system-update-card.is-recent {
  background-color: var(--admin-surface);
  background-image: linear-gradient(var(--admin-accent-soft), var(--admin-accent-soft));
}

.guide-link-card:hover,
.guide-link-card:focus-visible {
  background-color: var(--admin-accent-soft);
  outline: 2px solid var(--admin-border-strong);
}

.guide-article-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.guide-search-panel .form-control {
  border-radius: 0.8rem;
}

.guide-answer-card {
  border-radius: 0.9rem;
}

.guide-answer-card .card-title,
.guide-answer-summary,
.guide-warning {
  overflow-wrap: anywhere;
}

.guide-answer-summary {
  font-weight: 600;
}

.guide-steps {
  padding-left: 1.35rem;
  line-height: 1.55;
}

.guide-steps li + li {
  margin-top: 0.4rem;
}

.guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--admin-accent);
  border-radius: 0.45rem;
  background: var(--admin-accent-soft);
}

.guide-warning .ti {
  flex: none;
  margin-top: 0.08rem;
}

.guide-related .badge {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.guide-browse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0;
}

.guide-browse-toggle::-webkit-details-marker {
  display: none;
}

.guide-browse-toggle .ti {
  transition: transform 0.15s ease;
}

#guide-browse[open] .guide-browse-toggle .ti {
  transform: rotate(180deg);
}

.guide-browse-toggle:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

#guide-results-section:not(.d-none) {
  min-height: 12rem;
}

.guide-search-panel .form-control:focus-visible,
.guide-link-card:focus-visible,
.guide-related a:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .guide-warning {
    padding-right: 4rem;
  }
}

.admin-shell .table {
  margin-bottom: 0;
  color: inherit;
}

.admin-shell .table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
  background: var(--admin-surface-muted);
  border-bottom-color: var(--admin-border);
}

.admin-shell .table td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: var(--admin-border);
  vertical-align: middle;
}

.admin-shell .table-hover tbody tr:hover {
  background: rgba(var(--admin-accent-rgb), 0.035);
}

.admin-shell .badge {
  border-radius: 999px;
}

.admin-footer {
  padding-bottom: 1.5rem;
}

.account-settings-page {
  max-width: 76rem;
  margin-left: 0;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
}

.account-settings-page .card {
  margin-left: clamp(0.75rem, 1.8vw, 1.5rem);
  border-color: var(--admin-border) !important;
  border-left-color: var(--admin-border) !important;
}

.account-settings-page .card::before,
.account-settings-page .card > .card-status-start {
  display: none !important;
}

.admin-sidebar-tone-option {
  border-radius: 0.95rem !important;
  border: 1px solid var(--admin-border) !important;
  box-shadow: none !important;
}

.admin-sidebar-tone-option.active {
  border-color: rgba(var(--admin-sidebar-tint-rgb), 0.35) !important;
  background: rgba(var(--admin-sidebar-tint-rgb), 0.08) !important;
  color: var(--admin-text) !important;
}

.admin-tone-swatch {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.admin-tone-check {
  opacity: 0;
  color: var(--admin-sidebar-tint);
}

.admin-sidebar-tone-option.active .admin-tone-check {
  opacity: 1;
}

.reports-page .reports-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reports-page .reports-toolbar-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.reports-page .reports-toolbar-copy p {
  margin: 0.35rem 0 0;
  color: var(--admin-muted);
}

.reports-page .report-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reports-page .report-stat-card:hover {
  transform: translateY(-2px);
}

.reports-page .report-stat-card.report-stat-card-active {
  border-color: rgba(var(--admin-accent-rgb), 0.2);
  box-shadow: 0 18px 40px rgba(var(--admin-accent-rgb), 0.14);
  background:
    linear-gradient(180deg, rgba(var(--admin-accent-rgb), 0.08), rgba(var(--admin-accent-rgb), 0.02)),
    var(--admin-surface);
}

.reports-page .report-stat-card.report-stat-card-primary {
  background: linear-gradient(135deg, #1b2435 0%, #24324a 52%, var(--admin-action-orange) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--admin-shadow-lg);
}

.reports-page .report-stat-card.report-stat-card-primary .text-muted,
.reports-page .report-stat-card.report-stat-card-primary .report-stat-label {
  color: rgba(255, 255, 255, 0.74) !important;
}

.reports-page .report-stat-card-primary::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.reports-page .report-stat-card .avatar {
  border-radius: 1rem;
}

.reports-page .report-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.reports-page .report-stat-label {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reports-page .report-filter-card .card-header,
.reports-page .report-table-card .card-header {
  padding: 1.15rem 1.25rem;
}

.reports-page .report-filter-card .card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  background: transparent !important;
}

.reports-page .report-focus-card {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(var(--admin-accent-rgb), 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(var(--admin-accent-rgb), 0.04), transparent 75%),
    var(--admin-surface);
}

.reports-page .report-focus-label,
.reports-page .report-table-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-accent);
}

.reports-page .report-focus-title {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.reports-page .report-focus-copy {
  margin-top: 0.35rem;
  color: var(--admin-muted);
}

.reports-page .report-focus-chips,
.reports-page .report-table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reports-page .report-focus-chip,
.reports-page .report-table-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--admin-accent-rgb), 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-bs-theme="dark"] .reports-page .report-focus-chip,
[data-bs-theme="dark"] .reports-page .report-table-summary-chip {
  background: rgba(17, 24, 39, 0.7);
}

.ticket-participants-card .card-body {
  background: rgba(var(--admin-accent-rgb), 0.025);
  padding: 0.75rem 1rem;
}

.ticket-participants-card .card-header {
  padding: 0.7rem 1rem;
}

.ticket-participants-card .card-title {
  font-size: 0.9rem;
}

.ticket-participants-card .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.ticket-cc-add-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ticket-cc-add-controls .form-select,
.ticket-cc-add-controls .form-control,
.ticket-cc-add-controls > .ts-wrapper {
  flex: 1 1 11rem;
  min-width: 0;
}

.ticket-cc-add-controls .btn {
  flex: 1 0 8.5rem;
  min-height: 2.5rem;
}

.ticket-cc-section {
  padding: 0.5rem;
  border: 1px solid var(--admin-border, rgba(15, 23, 42, 0.08));
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.52);
}

.ticket-cc-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--admin-text, #1f2937);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  min-height: 2.75rem;
  margin: -0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ticket-cc-section > summary::-webkit-details-marker {
  display: none;
}

.ticket-cc-section > summary::marker {
  content: '';
}

.ticket-cc-section > summary:hover {
  background: rgba(var(--admin-accent-rgb), 0.07);
  color: var(--admin-accent, #f4511e);
}

.ticket-cc-section > summary:focus-visible {
  outline: 2px solid rgba(var(--admin-accent-rgb), 0.45);
  outline-offset: 2px;
}

.ticket-cc-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ticket-cc-chevron {
  color: var(--admin-muted, #66758c);
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.ticket-cc-section[open] > summary .ticket-cc-chevron {
  transform: rotate(90deg);
}

.ticket-cc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(var(--admin-accent-rgb), 0.1);
  color: var(--admin-action-orange-deep, #9a3412);
  font-size: 0.72rem;
}

[data-bs-theme="dark"] .ticket-cc-count {
  color: #ffb29d;
}

.ticket-cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ticket-cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.2rem 0.25rem 0.2rem 0.6rem;
  border: 1px solid rgba(var(--admin-accent-rgb), 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--admin-text, #1f2937);
  font-size: 0.76rem;
  font-weight: 600;
}

.ticket-cc-chip:not(.ticket-cc-chip-external) {
  flex: 0 1 auto;
  min-width: 0;
}

.ticket-cc-chip-external {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.06);
}

.ticket-cc-chip-role {
  color: var(--admin-muted, #66758c);
  font-size: 0.65rem;
  font-weight: 500;
}

.ticket-cc-chip .text-truncate {
  min-width: 0;
}

.ticket-cc-chip-remove-form {
  display: inline-flex;
  margin: 0;
}

.ticket-cc-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ticket-cc-chip-remove:hover {
  background: #dc3545;
  color: #fff;
}

.ticket-cc-chip-remove:focus-visible {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

[data-bs-theme="dark"] .ticket-cc-section,
[data-bs-theme="dark"] .ticket-cc-chip {
  background: rgba(17, 24, 39, 0.7);
}

[data-bs-theme="dark"] .ticket-participants-card .card-body {
  background: rgba(var(--admin-accent-rgb), 0.035);
}

[data-bs-theme="dark"] .ticket-cc-chip-external {
  background: rgba(37, 99, 235, 0.12);
}

.reports-page .report-table-card .card-header {
  padding: 1.25rem 1.25rem 0.95rem;
}

.reports-page .report-table-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reports-page .filter-chip {
  border-radius: 999px !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
  color: var(--admin-muted) !important;
  font-weight: 600;
  box-shadow: none !important;
}

.reports-page .filter-chip.active,
.reports-page .filter-chip.btn-primary {
  background: linear-gradient(135deg, var(--admin-action-orange), var(--admin-action-orange-deep)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.reports-page .filter-banner {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--admin-accent-rgb), 0.18);
  background: rgba(var(--admin-accent-rgb), 0.08);
}

.reports-page .filter-banner .badge {
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--admin-accent) !important;
  border: none !important;
}

.reports-page .report-table-card {
  overflow: hidden;
}

.dashboard-shell .dashboard-hero {
  min-height: 100%;
  overflow: hidden;
}

.dashboard-shell .dashboard-hero .card-body {
  padding: 1.6rem 1.7rem;
}

.dashboard-shell .dashboard-hero-art {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-shell .dashboard-hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 6% 0 auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--admin-accent-rgb), 0.12), transparent 68%);
}

.dashboard-shell .dashboard-hero-art img {
  position: relative;
  z-index: 1;
  max-height: 170px !important;
}

.dashboard-shell .dashboard-kpi-card,
.dashboard-shell .dashboard-summary-card,
.dashboard-shell .dashboard-panel {
  overflow: hidden;
}

.dashboard-shell .dashboard-kpi-card .card-body,
.dashboard-shell .dashboard-summary-card .card-body {
  padding: 1.25rem 1.35rem;
}

.dashboard-shell .dashboard-kpi-label,
.dashboard-shell .dashboard-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.dashboard-shell .dashboard-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.dashboard-shell .dashboard-kpi-meta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--admin-muted);
}

.dashboard-shell .dashboard-dual-metric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-shell .dashboard-dual-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-muted);
  color: var(--admin-text);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.dashboard-shell .dashboard-dual-metric-item:hover {
  border-color: rgba(var(--admin-accent-rgb), 0.24);
  background: rgba(var(--admin-accent-rgb), 0.06);
  transform: translateY(-1px);
}

.dashboard-shell .dashboard-dual-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
  overflow-wrap: normal;
  word-break: normal;
}

.dashboard-shell .dashboard-progress-copy {
  font-size: 0.92rem;
  color: var(--admin-muted);
}

.dashboard-shell .dashboard-summary-icon {
  border-radius: 1rem !important;
}

.dashboard-shell .dashboard-panel .card-header {
  padding: 1.1rem 1.3rem 0.8rem;
}

.dashboard-shell .dashboard-panel .card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

.dashboard-shell .dashboard-panel .table-responsive {
  max-height: 360px;
}

.dashboard-shell .dashboard-panel .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dashboard-shell .dashboard-table-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-shell .dashboard-tag-badge {
  border-radius: 999px !important;
  padding: 0.42rem 0.72rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em !important;
}

.dashboard-shell .dashboard-location-row:hover,
.dashboard-shell .dashboard-tag-row:hover,
.dashboard-shell .dashboard-recent-row:hover {
  background: rgba(var(--admin-accent-rgb), 0.04);
}

.reports-page table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
}

.reports-page table.dataTable thead tr.filters th {
  padding-top: 0.75rem;
  padding-bottom: 0.85rem;
  background: var(--admin-surface);
}

.reports-page table.dataTable thead tr.filters .form-control {
  min-height: 2.2rem;
  font-size: 0.8rem;
  background: var(--admin-surface-muted);
  border-color: transparent;
}

.reports-page #reportsDatatable tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.reports-page #reportsDatatable tbody tr:hover {
  background: rgba(var(--admin-accent-rgb), 0.04);
}

.reports-page div.dataTables_wrapper div.dataTables_processing {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  box-shadow: var(--admin-shadow-md);
  color: var(--admin-accent);
  font-weight: 700;
}

[data-bs-theme="dark"] .reports-page div.dataTables_wrapper div.dataTables_processing {
  background: rgba(17, 24, 39, 0.95);
}

.reports-page .dataTables_wrapper .dataTables_length,
.reports-page .dataTables_wrapper .dt-buttons,
.reports-page .dataTables_wrapper .dataTables_info,
.reports-page .dataTables_wrapper .dataTables_paginate {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.reports-page .dataTables_wrapper .dt-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reports-page .dataTables_wrapper .dt-buttons .btn {
  margin: 0 !important;
}

.reports-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  margin: 0 0.15rem;
}

.reports-page .dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
.reports-page .dataTables_wrapper .pagination .page-link {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-muted);
  border-radius: 0.8rem !important;
  min-width: 2.4rem;
  text-align: center;
}

.reports-page .dataTables_wrapper .pagination .active .page-link {
  border-color: transparent;
  background: linear-gradient(135deg, var(--admin-action-orange), var(--admin-action-orange-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(var(--admin-accent-rgb), 0.18);
}

@media (max-width: 991.98px) {
  .admin-shell .admin-sidebar {
    position: relative !important;
    width: 100%;
    inset: auto;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
  }

  .reports-page .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-page .report-focus-chips,
  .reports-page .report-table-summary {
    gap: 0.5rem;
  }

  .dashboard-shell .dashboard-hero-art {
    margin-top: 1rem;
  }
}

.admin-sidebar-subnav {
  display: grid;
  gap: 0.2rem;
  margin: 0.15rem 0 0.65rem 2.65rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(148, 163, 184, 0.24);
}

.admin-sidebar-subnav-link {
  display: block;
  padding: 0.38rem 0.65rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-sidebar-subnav-link:hover,
.admin-sidebar-subnav-link.active {
  background: var(--admin-sidebar-hover);
  color: var(--admin-sidebar-active-text);
  text-decoration: none;
}
.admin-notification-menu {
    --tblr-dropdown-min-width: 26.25rem;
    width: min(420px, calc(var(--app-vw) - 24px));
    min-width: min(420px, calc(var(--app-vw) - 24px));
    max-width: min(420px, calc(var(--app-vw) - 24px));
    padding: 0;
    overflow: hidden;
    max-height: var(--admin-notification-height, calc(var(--app-vh) - 120px));
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.admin-notification-menu > .card {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: var(--admin-notification-height, calc(var(--app-vh) - 120px));
}

.admin-notification-menu :is(.card-header, .card-footer) { flex: 0 0 auto; }

.admin-notification-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #d63939 !important;
    border: 2px solid #ffffff;
    font-size: 10px;
    line-height: 1;
}

.admin-topbar-button.admin-notification-trigger {
    color: #ffffff;
    background: var(--admin-action-orange);
    border-color: var(--admin-action-orange);
}

.admin-topbar-button.admin-notification-trigger:hover,
.admin-topbar-button.admin-notification-trigger:focus-visible,
.admin-topbar-button.admin-notification-trigger[aria-expanded="true"] {
    color: #ffffff;
    background: var(--admin-action-orange-deep);
    border-color: var(--admin-action-orange-deep);
}

.admin-notification-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 70px;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.admin-notification-head-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-accent);
    background: rgba(var(--admin-accent-rgb), 0.1);
    border-radius: 8px;
}

.admin-notification-head-copy {
    min-width: 0;
}

.admin-notification-head .card-title {
    margin: 0;
    color: var(--admin-text);
    font-size: 0.95rem;
    line-height: 1.25;
}

.admin-notification-menu .list-group {
    max-height: 520px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-notification-item {
    display: block;
    margin: 0;
    padding: 0;
    background: var(--admin-surface);
    border: 0;
    border-bottom: 1px solid var(--admin-border);
    text-decoration: none;
}

.admin-notification-item:last-child {
    border-bottom: 0;
}

.admin-notification-item.is-unread {
    background: rgba(240, 78, 35, 0.06);
}

.admin-notification-item--ticket .admin-notification-icon {
    color: #b42318;
    background: #fff0ec;
}

.admin-notification-item--developer .admin-notification-icon {
    color: #175cd3;
    background: #eff8ff;
}

.admin-notification-item--ticket .admin-notification-action {
    color: #b42318;
}

.admin-notification-item--developer .admin-notification-action {
    color: #175cd3;
}

.admin-notification-item--mention-ticket .admin-notification-icon {
    color: #9a3412;
    background: #fff7ed;
}

.admin-notification-item--mention-ticket .admin-notification-action {
    color: #9a3412;
}

.admin-notification-item--mention-developer .admin-notification-icon {
    color: #6d28d9;
    background: #f5f3ff;
}

.admin-notification-item--mention-developer .admin-notification-action {
    color: #6d28d9;
}

.admin-notification-preview {
    display: block;
    margin-top: 0.15rem;
    overflow: hidden;
    color: var(--admin-text-muted, #64748b);
    font-size: 0.75rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-notification-open {
    appearance: none;
    width: 100%;
    min-height: 78px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    color: var(--admin-text);
    font: inherit;
    text-align: left !important;
    white-space: normal;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.admin-notification-open:hover,
.admin-notification-open:focus-visible {
    background: rgba(240, 78, 35, 0.08);
}

.admin-notification-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d43f19;
    background: #fff0eb;
    border-radius: 8px;
}

.admin-notification-content {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-align: left;
}

.admin-notification-title {
    display: block;
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.admin-notification-meta,
.admin-notification-action {
    display: block;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.35;
}

.admin-notification-action {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 2px;
    padding: 2px 6px;
    color: var(--admin-accent);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    background: rgba(var(--admin-accent-rgb), 0.08);
    border-radius: 4px;
}

.admin-notification-empty {
    padding: 22px 16px;
    color: var(--admin-muted);
    text-align: center;
}

/* Ticket and escalation attachments remain readable across light/dark/hover states. */
.ticket-attachment-link {
    color: #172033 !important;
    background-color: #fff !important;
    border-color: rgba(23, 32, 51, 0.2) !important;
    text-decoration-color: currentColor;
}

.ticket-attachment-link:hover,
.ticket-attachment-link:focus-visible {
    color: #9f2f12 !important;
    background-color: #fff3ee !important;
    border-color: #f04e23 !important;
}

.ticket-attachment-link:focus-visible {
    outline: 3px solid rgba(240, 78, 35, 0.28);
    outline-offset: 2px;
}

@media (max-height: 700px) {
    .admin-notification-menu .list-group {
        max-height: calc(var(--app-vh) - 130px);
    }
}
.ticket-cc-name-chip{display:inline-flex;align-items:center;border:1px solid #bfd7fb;border-radius:999px;background:#eaf3ff;color:#23589e;font-size:12px;font-weight:700;line-height:1.2;padding:5px 9px;white-space:nowrap}
[data-bs-theme="dark"] .ticket-cc-name-chip{background:#243e60;border-color:#466c9c;color:#d7e8ff}

/* QF-033: readable controls, alerts and status chips in both themes. */
.admin-shell .form-control::placeholder,
.admin-shell textarea.form-control::placeholder {
  color: #526277;
  opacity: 1;
}
[data-bs-theme="dark"] .admin-shell .form-control::placeholder,
[data-bs-theme="dark"] .admin-shell textarea.form-control::placeholder {
  color: #aebdd0;
}
.admin-shell .btn-outline-success { color: #166534; }
.admin-shell .btn-outline-warning { color: #92400e; }
.admin-shell .btn-outline-primary { color: var(--admin-action-orange); }
[data-bs-theme="dark"] .admin-shell .btn-outline-success { color: #86efac; }
[data-bs-theme="dark"] .admin-shell .btn-outline-warning { color: #fcd34d; }
[data-bs-theme="dark"] .admin-shell .btn-outline-primary { color: #ff9a80; }
.admin-shell .badge.bg-yellow.text-white {
  color: #422006 !important;
}
/* QF-044: semantic badges keep a complete, readable colour pair in dark mode. */
[data-bs-theme="dark"] .admin-shell .badge:not(.ticket-tag) {
  background: #263449; color: #eff4fb;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-yellow,.bg-yellow-lt,.bg-warning,.bg-warning-lt) {
  background: #f59f00 !important; color: #422006 !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-green,.bg-green-lt,.bg-success,.bg-success-lt) {
  background: #163c2b !important; color: #a7f3c0 !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-azure,.bg-azure-lt,.bg-blue,.bg-blue-lt,.bg-info,.bg-info-lt,.bg-cyan,.bg-cyan-lt) {
  background: #173a58 !important; color: #b7e3ff !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-red,.bg-red-lt,.bg-danger,.bg-danger-lt) {
  background: #702626 !important; color: #fff !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-orange,.bg-orange-lt) {
  background: #66300e !important; color: #ffdbb0 !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-indigo,.bg-indigo-lt,.bg-purple,.bg-purple-lt,.bg-primary,.bg-primary-lt) {
  background: #392b60 !important; color: #e5d8ff !important;
}
[data-bs-theme="dark"] .admin-shell .badge:is(.bg-secondary,.bg-secondary-lt,.bg-white,.bg-light) {
  background: #263449 !important; color: #eff4fb !important;
}
[data-bs-theme="dark"] .admin-shell .filter-banner .badge {
  background: #263449 !important; color: #eff4fb !important;
}
[data-bs-theme="dark"] .admin-shell .wi-grid-pill[data-priority="low"] {
  background: #f1f5f9 !important; color: #475569 !important;
}
[data-bs-theme="dark"] .admin-shell .wi-grid-pill[data-priority="high"] {
  background: #fed7aa !important; color: #7c2d12 !important;
}
[data-bs-theme="dark"] .admin-shell .ticket-status-chip {
  background: #173a58 !important; color: #b7e3ff !important;
}
[data-bs-theme="dark"] .admin-shell .ticket-priority-chip {
  background: #66300e !important; color: #ffdbb0 !important;
}
/* A transparent upload input receives the pointer; its group still highlights the button. */
[data-bs-theme="dark"] .admin-shell :is(.btn[class*="btn-outline-"],.btn-secondary,.btn-light,.btn-ghost-secondary):is(:hover,:focus-visible,:active),
[data-bs-theme="dark"] .admin-shell .position-relative:is(:hover,:focus-within):has(> input[type="file"]) > .btn {
  background: #263449 !important; color: #eff4fb !important; border-color: #94a3b8 !important;
}
/* End QF-044 dark-only component pairs. */
/* QF-044 follow-up: internal-note surfaces and initials retain readable pairs. */
.admin-shell .admin-reply-card textarea.form-control { color: #172033 !important; }
.admin-shell .dev-status:not([data-tone]),
.admin-shell .dev-status[data-tone="info"] { background: #e0f2fe; color: #075985; }
[data-bs-theme="dark"] .admin-shell .dev-status:not([data-tone]),
[data-bs-theme="dark"] .admin-shell .dev-status[data-tone="info"] { background: #173a58; color: #b7e3ff; }
.admin-shell .dev-status[data-tone="success"] { background: #e8f5ec; color: #166534; }
.admin-shell :is(.dev-status[data-tone="warning"],.dev-alert-pill.is-warning) { background: #fff3d6; color: #854d0e; }
.admin-shell .dev-alert-pill:not(.is-warning) { background: #fee2e2; color: #991b1b; }
[data-bs-theme="dark"] .admin-shell .dev-status[data-tone="success"] { background: #163c2b; color: #a7f3c0; }
[data-bs-theme="dark"] .admin-shell :is(.dev-status[data-tone="warning"],.dev-alert-pill.is-warning) { background: #302719; color: #fcd34d; }
[data-bs-theme="dark"] .admin-shell .dev-alert-pill:not(.is-warning) { background: #702626; color: #fff; }
.admin-shell :is(.avatar.bg-primary,.admin-user-link .avatar) {
  background: #c2410c !important; color: #fff !important;
}
[data-bs-theme="dark"] .admin-shell .admin-reply-card .admin-ticket-composer {
  background: #302719 !important; color: #eff4fb; border-color: #b78327 !important;
}
[data-bs-theme="dark"] .admin-shell .admin-reply-card textarea.form-control {
  background: #172033 !important; color: #eff4fb !important;
}
/* Shared staff/studio text controls: pair placeholders with their actual dark surface. */
[data-bs-theme="dark"] .admin-shell :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]):not([type="color"]),textarea,.form-select,.ts-control) {
  background-color: #172033 !important; color: #eff4fb !important;
}
[data-bs-theme="dark"] .admin-shell :is(input,textarea)::placeholder {
  color: #b8c5d6 !important; opacity: 1 !important;
}
[data-bs-theme="dark"] .admin-shell .admin-reply-card .admin-ticket-composer :is(.text-muted,.form-hint) {
  color: #b8c5d6 !important;
}
[data-bs-theme="dark"] .admin-shell .admin-ticket-message-card:not(.admin-reply-card) .text-warning {
  background: #302719; color: #fcd34d !important;
}
.admin-shell .alert-success {
  color: #166534;
}
[data-bs-theme="dark"] .admin-shell .alert-success {
  color: #86efac;
}
.admin-shell .franchisee-current-location {
  color: #9a3412 !important;
}
[data-bs-theme="dark"] .admin-shell .franchisee-current-location {
  color: #ffb29d !important;
}
.admin-shell .system-updates-topbar-link .badge.bg-red {
  color: #fff !important;
  background: #b91c1c !important;
}
.admin-shell .admin-user-link .avatar {
  color: #fff;
}
.admin-shell .admin-notification-meta,
.admin-shell .admin-notification-preview,
.admin-shell .admin-notification-item a:not(.admin-notification-action) {
  color: var(--admin-text);
}
.admin-shell .admin-reply-card .form-check-label.text-warning,
.admin-shell .admin-ticket-message-card .text-warning {
  color: #92400e !important;
}
[data-bs-theme="dark"] .admin-shell .admin-reply-card .form-check-label.text-warning,
[data-bs-theme="dark"] .admin-shell .admin-ticket-message-card .text-warning {
  color: #fcd34d !important;
}
.swal2-icon.swal2-info { color: #0369a1; border-color: #0369a1; }
.swal2-icon.swal2-success { color: #166534; border-color: #166534; }
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long { background-color: #166534; }
.swal2-confirm,
.swal2-styled.swal2-confirm {
  background-color: #c2410c !important;
  color: #fff !important;
}
.swal2-icon.swal2-warning { color: #9a3412; border-color: #9a3412; }
[data-bs-theme="dark"] .swal2-icon.swal2-info { color: #7dd3fc; border-color: #7dd3fc; }
[data-bs-theme="dark"] .swal2-icon.swal2-success { color: #86efac; border-color: #86efac; }
[data-bs-theme="dark"] .swal2-icon.swal2-success .swal2-success-line-tip,
[data-bs-theme="dark"] .swal2-icon.swal2-success .swal2-success-line-long { background-color: #86efac; }
[data-bs-theme="dark"] .swal2-icon.swal2-warning { color: #fdba74; border-color: #fdba74; }

/* Keep the reply split arrow's full rectangle clickable, including its corners. */
.admin-shell form:has(#adminReply) .dropdown-toggle-split {
  border-radius: 0 !important;
}
.admin-shell form:has(#adminReply) .btn-group:has(> .dropdown-toggle-split) > .btn:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* QF-049: shared full-width staff/studio shell, below the environment notice. */
body.admin-shell:has(>.app-header) { --app-header-height:56px; --app-header-bg:#fff; --app-header-line:#E3E6EC; --app-header-ink:#323338; --app-header-muted:#4B5563; --app-header-hover:#ECEEF3; }
[data-bs-theme="dark"] body.admin-shell:has(>.app-header), body.admin-shell[data-bs-theme="dark"]:has(>.app-header) { --app-header-bg:#181B22; --app-header-line:#2A2F3A; --app-header-ink:#E5E7EB; --app-header-muted:#9CA3AF; --app-header-hover:#262B36; }
.admin-shell>.app-header { position:sticky; top:var(--environment-bar-height,0px); z-index:1040; flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; height:var(--app-header-height); padding:0 14px 0 18px; background:var(--app-header-bg); border-bottom:1px solid var(--app-header-line); color:var(--app-header-ink); }
.app-header-left { display:flex; align-items:center; gap:6px; min-width:0; flex-shrink:0; }
.app-header-product-button { display:flex; align-items:center; gap:6px; height:40px; padding:0; border:0; background:transparent; color:var(--app-header-ink); white-space:nowrap; }
button.app-header-product-button { cursor:pointer; border-radius:8px; }
button.app-header-product-button:hover { background:var(--app-header-hover); }
.app-header-flame { width:30px; height:30px; object-fit:contain; }
.app-header-brand { font:700 17px/1.2 var(--font); }
.app-header-product { font:500 15px/1.2 var(--font); color:var(--app-header-muted); }
.app-header-chevron { font-size:12px; color:var(--app-header-muted); }
.admin-shell .app-header .admin-quickbar.app-header-actions { position:static; display:flex!important; align-items:center; gap:4px; width:auto; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; flex-wrap:nowrap; }
.app-header .admin-topbar-button, .app-header .admin-user-link, .app-header .app-menu-toggle { display:inline-flex; position:relative; align-items:center; justify-content:center; width:38px!important; min-width:38px; height:38px!important; padding:0!important; border:0!important; border-radius:8px!important; background:transparent!important; background-image:none!important; box-shadow:none!important; color:var(--app-header-ink)!important; }
.app-header .admin-topbar-button>i, .app-header .app-menu-toggle>i { font-size:20px; }
.app-header .admin-topbar-button:hover, .app-header .admin-user-link:hover, .app-header .app-menu-toggle:hover { background:var(--app-header-hover)!important; }
.app-header :is(a,button,select):focus-visible { outline:2px solid #2563eb!important; outline-offset:2px; }
.app-header .admin-topbar-button .badge { position:absolute; top:0; right:0; min-width:16px; height:16px; padding:2px 4px; border:0; border-radius:10px; font-size:9px; line-height:12px; background:#D92D39!important; color:#fff!important; }
.app-header .admin-user-link { width:46px!important; min-width:46px; margin-left:8px; }
.app-header .admin-user-link:before { content:""; position:absolute; left:-6px; top:8px; height:22px; border-left:1px solid var(--app-header-line); }
.app-header .admin-user-link .avatar { width:34px!important; height:34px!important; min-width:34px; border-radius:50%; font-size:11px; }
.app-profile-identity { padding:8px 16px; margin-bottom:4px; border-bottom:1px solid var(--app-header-line); }
.app-header .admin-sidebar-tone-option { color:var(--app-header-ink)!important; }
.app-header-mobile-tools:empty { display:none; }
.app-header-mobile-tools { display:flex; align-items:center; gap:8px; padding:6px 12px; }
.app-header .dropdown-menu { z-index:1060; max-width:calc(var(--app-vw) - 24px); }
@media(min-width:768px){.admin-shell .app-header .dropdown-menu { position:absolute!important; top:calc(100% + 13px)!important; right:0!important; left:auto!important; transform:none!important; }.admin-shell .app-header .app-header-switcher>.dropdown-menu { left:0!important; right:auto!important; }}
.app-header .admin-notification-menu { max-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height) - 16px); overflow-y:auto; }
.app-header .admin-notification-menu .card { max-height:none; }
.app-header .franchisee-utility-cluster, .app-header .franchisee-utility-buttons { display:contents; }
.app-header .app-header-location { order:-1; width:230px; margin-right:12px!important; }
.app-header .franchisee-context-switcher, .app-header .franchisee-context-switcher-inner, .app-header .franchisee-context-switcher-copy { min-width:0; width:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.app-header .franchisee-context-switcher-mark, .app-header .franchisee-context-switcher-badge, .app-header .franchisee-context-switcher-help { display:none; }
.app-header .franchisee-context-switcher-label { font-size:9px; letter-spacing:.03em; }
.app-header .franchisee-location-select { height:28px; min-height:28px; padding-top:2px; padding-bottom:2px; font-size:12px; }
.app-header .franchisee-bell-dropdown { order:4; }
.app-header .franchisee-utility-buttons>.dropdown:not(.franchisee-bell-dropdown) { order:5; }
.app-header .franchisee-utility-cluster>.dropdown { order:6; }
.app-header .franchisee-utility-buttons>button { order:3; }
.app-header .system-updates-topbar-link { order:1; }
.app-header .system-updates-topbar-link[aria-label="Help"] { order:2; }
.app-header .app-header-actions>#theme-dark-btn, .app-header .app-header-actions>#theme-light-btn { order:3; }
.app-header .dropdown:has(>.admin-notification-trigger) { order:4; }
.app-header .dropdown:has(>[aria-label="Change sidebar color"]) { order:5; }
.app-header .dropdown:has(>.admin-user-link) { order:6; }
.app-header .app-menu-toggle { display:none; }
body.admin-shell:has(>.app-header)>.page { min-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height)); }
body.admin-shell:has(>.app-header) .admin-main { min-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height)); padding-top:14px; }
body.admin-shell:has(>.app-header) .navbar.admin-sidebar { top:calc(var(--environment-bar-height,0px) + var(--app-header-height))!important; }
@media(min-width:992px){body.admin-shell:has(>.app-header) .navbar.admin-sidebar { height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height)); min-height:0; }}
@media(max-width:991px){
  .app-header .app-menu-toggle { display:inline-flex; }
  .app-header .app-header-location { width:180px; }
  body.admin-shell:has(>.app-header) .navbar.admin-sidebar { position:fixed!important; left:0; bottom:0; width:min(320px,calc(var(--app-vw) - 32px)); padding:0; z-index:1035; overflow:auto; border:0; align-items:flex-start; background:rgb(var(--admin-sidebar-surface-rgb)); }
  body.admin-shell:has(>.app-header) .navbar.admin-sidebar:not(:has(.navbar-collapse.show,.navbar-collapse.collapsing)) { display:none; }
  body.admin-shell:has(>.app-header) .navbar.admin-sidebar .container-fluid { padding:0; }
  body.admin-shell:has(>.app-header) .navbar.admin-sidebar .navbar-collapse { width:100%; }
  body.admin-shell:has(>.app-header) .navbar.admin-sidebar .form-label { color:var(--admin-sidebar-foreground-strong); }
}
@media(max-width:767px){
  body.admin-shell:has(>.app-header) { --app-header-height:52px; }
  .admin-shell>.app-header { padding-left:8px; padding-right:8px; gap:4px; }
  .app-header .app-header-product, .app-header .app-header-chevron { display:none; }
  .app-header-brand { font-size:16px; }
  .app-header-flame { width:26px; height:26px; }
  .app-header .app-header-switcher>.app-header-product-button { pointer-events:none; }
  .app-header .app-header-actions>.system-updates-topbar-link, .app-header .app-header-location { display:none!important; }
  .admin-shell .app-header .admin-quickbar.app-header-actions { gap:2px; }
  .app-header .admin-quickbar>.dropdown { display:flex!important; }
  .app-header .admin-user-link { margin-left:2px; }
  .app-header .admin-user-link:before { display:none; }
  .app-header .app-header-mobile-tools .dropdown { display:flex!important; }
  .admin-shell .app-header .dropdown-menu { position:fixed!important; top:calc(var(--environment-bar-height,0px) + var(--app-header-height) + 4px)!important; right:12px!important; left:auto!important; bottom:auto!important; transform:none!important; max-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height) - 16px); overflow-y:auto; }
  .app-header .admin-notification-menu { width:calc(var(--app-vw) - 24px)!important; min-width:0!important; }
}

/* QF-049 Round 2: the header and navigation form one continuous frame. */
body.admin-shell:has(>.app-header) {
  --app-frame-bg:var(--admin-sidebar-surface);
  --app-frame-ink:#1D2127;
  --app-frame-muted:#323338;
  --app-frame-line:#D6DAE1;
  --app-frame-hover:rgba(0,0,0,.06);
  --app-nav-hover:rgba(0,0,0,.04);
  --app-nav-active:rgba(240,78,35,.10);
  --app-picker-bg:#fff;
  --app-picker-line:#E3E6EC;
  --app-avatar-ring:#E3E6EC;
  --app-canvas-bg:#fff;
  --app-canvas-shadow:0 1px 2px rgba(15,23,42,.06),0 12px 32px rgba(15,23,42,.14);
  --app-header-bg:var(--app-frame-bg);
  --app-header-ink:var(--app-frame-ink);
  --app-header-muted:var(--app-frame-ink);
  --app-header-line:var(--app-frame-line);
  --app-header-hover:var(--app-frame-hover);
  background:var(--app-frame-bg);
}
body.admin-shell:is([data-sidebar-tone="ocean"],[data-sidebar-tone="forest"],[data-sidebar-tone="graphite"]):has(>.app-header),
body.admin-shell:not([data-sidebar-tone]):has(>.app-header) {
  --app-frame-ink:#F3F4F6;
  --app-frame-muted:#E5E7EB;
  --app-frame-line:rgba(255,255,255,.22);
  --app-frame-hover:rgba(255,255,255,.10);
  --app-nav-hover:rgba(255,255,255,.06);
  --app-nav-active:rgba(255,255,255,.10);
  --app-picker-bg:rgba(255,255,255,.06);
  --app-picker-line:rgba(255,255,255,.10);
  --app-avatar-ring:rgba(255,255,255,.22);
}
[data-bs-theme="dark"] body.admin-shell:has(>.app-header) {
  --app-canvas-bg:#1E222A;
  --app-canvas-shadow:0 0 0 1px rgba(255,255,255,.06);
  --app-header-bg:var(--app-frame-bg);
  --app-header-ink:var(--app-frame-ink);
  --app-header-muted:var(--app-frame-ink);
  --app-header-line:var(--app-frame-line);
  --app-header-hover:var(--app-frame-hover);
}
[data-bs-theme="dark"] body.admin-shell:is([data-sidebar-tone="graphite"],:not([data-sidebar-tone])):has(>.app-header) { --app-frame-bg:#15181D; }
.admin-shell>.app-header { padding-left:20px; border-bottom:0; }
.app-header-flame { width:28px; height:28px; }
.app-header-brand { font-size:16px; letter-spacing:.02em; }
.app-header-product { display:inline-flex; align-items:center; gap:0; font-weight:500; }
.app-header-product:before { content:""; display:block; height:18px; border-left:1px solid var(--app-frame-line); margin:0 10px 0 4px; }
.app-header .admin-topbar-button { transition:background .15s; }
.app-header .admin-topbar-button:hover { transform:none; }
.app-header .admin-topbar-button .badge { min-width:16px; height:16px; padding:0 4px; font-size:10px; font-weight:700; line-height:16px; background:#DC2626!important; box-shadow:0 0 0 2px var(--app-frame-bg); }
.app-header .admin-user-link .avatar { box-shadow:0 0 0 2px var(--app-avatar-ring); }
.app-header :is(a,button,select):focus-visible,
body.admin-shell:has(>.app-header) .admin-sidebar :is(a,button,select):focus-visible { outline:2px solid #F04E23!important; outline-offset:2px; }
.app-header .dropdown-menu { background:var(--app-canvas-bg); color:var(--admin-text); }
.app-header .dropdown-menu>.card { background:var(--app-canvas-bg); }
[data-bs-theme="dark"] .app-header .admin-notification-action { color:#fdba74; background:#302719; }
.app-header .admin-sidebar-tone-option { color:var(--admin-text)!important; }
.app-header .franchisee-context-switcher-label { color:var(--app-frame-muted); }
body.admin-shell:has(>.app-header)>.page,
body.admin-shell:has(>.app-header) .admin-main { background:var(--app-frame-bg); }
body.admin-shell:has(>.app-header) .admin-main { padding:0 12px 0 0; }
body.admin-shell:has(>.app-header) .navbar.admin-sidebar { background:var(--app-frame-bg); border:0; box-shadow:none; }
body.admin-shell:has(>.app-header) .navbar.admin-sidebar:before { display:none; }
body.admin-shell:has(>.app-header) .navbar-vertical .nav-link { color:var(--admin-sidebar-foreground); font-weight:500!important; transition:background .15s,box-shadow .15s; }
body.admin-shell:has(>.app-header) .navbar-vertical .nav-link:hover { background:var(--app-nav-hover); transform:none; }
body.admin-shell:has(>.app-header) .navbar-vertical .nav-item.active>.nav-link { background:var(--app-nav-active); color:var(--admin-sidebar-foreground-strong); box-shadow:none; }
body.admin-shell:has(>.app-header) .navbar-vertical .nav-item.active::after { display:none; }
body.admin-shell:has(>.app-header) .navbar-vertical :is(.nav-item.active>.nav-link,.nav-link.active,.admin-sidebar-subnav-link.active,[aria-current="page"]) { position:relative; box-shadow:none; }
body.admin-shell:has(>.app-header) .navbar-vertical :is(.nav-item.active>.nav-link,.nav-link.active,.admin-sidebar-subnav-link.active,[aria-current="page"])::before { content:""; position:absolute; left:4px; top:22%; bottom:22%; width:3px; border-radius:3px; background:var(--app-theme-pill,#F04E23); pointer-events:none; }
body.admin-shell:has(>.app-header) .admin-sidebar .form-label { color:var(--app-frame-ink); }
body.admin-shell:has(>.app-header) .admin-sidebar .form-select { background-color:var(--app-picker-bg)!important; border:1px solid var(--app-picker-line); color:var(--app-frame-ink)!important; }
body.admin-shell:has(>.app-header) .admin-sidebar .dropdown-header { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--admin-sidebar-muted); }
body.admin-shell:has(>.app-header) .admin-sidebar-card-title { color:var(--app-frame-ink); }
body.admin-shell:has(>.app-header) .admin-sidebar-card-copy { color:var(--app-frame-muted); }
.app-frame-breadcrumb { padding:12px 28px 8px; color:var(--app-frame-muted); font-size:12px; font-weight:500; }
.app-content-canvas { min-width:0; min-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height) - 38px); padding:28px; border-radius:16px 16px 0 0; background:var(--app-canvas-bg); box-shadow:var(--app-canvas-shadow); }
.app-content-canvas>.admin-page-head { padding-top:0; }
.app-content-canvas>.admin-page-head>.container-fluid,
.app-content-canvas>.admin-main-body>.container-fluid,
.app-content-canvas>.admin-footer>.container-fluid { padding-left:0; padding-right:0; }
.app-content-canvas { font-variant-numeric:tabular-nums; }
@media(max-width:767px){
  .admin-shell>.app-header { padding-left:8px; }
  .app-header .app-header-product { display:none; }
  body.admin-shell:has(>.app-header) .admin-main { padding-left:12px; }
  .app-content-canvas { padding:16px; }
  .app-frame-breadcrumb { padding-left:16px; }
}
@media print{.app-content-canvas{padding:0;box-shadow:none;border-radius:0}}

/* QF-049 Rounds 3/4: slim shell scrollbars and an inset breadcrumb. */
html:has(body.admin-shell>.app-header) { --shell-scroll-thumb:rgba(15,23,42,.18); --shell-scroll-hover:rgba(15,23,42,.32); }
html:has(body.admin-shell:is([data-sidebar-tone="ocean"],[data-sidebar-tone="forest"],[data-sidebar-tone="graphite"])>.app-header),
html:has(body.admin-shell:not([data-sidebar-tone])>.app-header) { --shell-scroll-thumb:rgba(255,255,255,.18); --shell-scroll-hover:rgba(255,255,255,.32); }
body.admin-shell:has(>.app-header), body.admin-shell:has(>.app-header) * { scrollbar-width:thin; scrollbar-color:var(--shell-scroll-thumb) transparent; }
body.admin-shell:has(>.app-header) :is(.app-content-canvas,.dropdown-menu) { --shell-scroll-thumb:rgba(15,23,42,.18); --shell-scroll-hover:rgba(15,23,42,.32); }
[data-bs-theme="dark"] body.admin-shell:has(>.app-header) :is(.app-content-canvas,.dropdown-menu) { --shell-scroll-thumb:rgba(255,255,255,.18); --shell-scroll-hover:rgba(255,255,255,.32); }
body.admin-shell:has(>.app-header)::-webkit-scrollbar,
body.admin-shell:has(>.app-header) *::-webkit-scrollbar { width:8px; height:8px; }
body.admin-shell:has(>.app-header)::-webkit-scrollbar-track,
body.admin-shell:has(>.app-header) *::-webkit-scrollbar-track { background:transparent; }
body.admin-shell:has(>.app-header)::-webkit-scrollbar-thumb,
body.admin-shell:has(>.app-header) *::-webkit-scrollbar-thumb { background:var(--shell-scroll-thumb); border:2px solid transparent; border-radius:8px; background-clip:padding-box; }
body.admin-shell:has(>.app-header)::-webkit-scrollbar-thumb:hover,
body.admin-shell:has(>.app-header) *::-webkit-scrollbar-thumb:hover { background-color:var(--shell-scroll-hover); }
body.admin-shell:has(>.app-header)::-webkit-scrollbar-button,
body.admin-shell:has(>.app-header) *::-webkit-scrollbar-button { display:none; width:0; height:0; }
/* Tabler outline paths, shared by both layouts; SVG masks give every icon a real 2px stroke. */
.app-header .admin-topbar-button { width:40px!important; min-width:40px; height:40px!important; }
.app-header .admin-user-link { height:40px!important; }
.app-header .admin-topbar-button>i { display:block; width:22px; height:22px; opacity:1; }
.app-header .admin-topbar-button>i:before { content:""; display:block; width:22px; height:22px; background:currentColor; -webkit-mask:var(--header-icon) center/22px 22px no-repeat; mask:var(--header-icon) center/22px 22px no-repeat; }
.app-header .admin-topbar-button>.ti-speakerphone { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a3 3 0 0 1 0 6M10 8v11a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1v-5M12 8l4.524 -3.77a.9 .9 0 0 1 1.476 .692v12.156a.9 .9 0 0 1 -1.476 .692l-4.524 -3.77h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h8'/%3E%3C/svg%3E"); }
.app-header .admin-topbar-button>.ti-help { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0M12 17l0 .01M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4'/%3E%3C/svg%3E"); }
.app-header .admin-topbar-button>.ti-moon { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008'/%3E%3C/svg%3E"); }
.app-header .admin-topbar-button>.ti-sun { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7'/%3E%3C/svg%3E"); }
.app-header .admin-topbar-button>.ti-bell { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6M9 17v1a3 3 0 0 0 6 0v-1'/%3E%3C/svg%3E"); }
.app-header .admin-topbar-button>.ti-palette { --header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0'/%3E%3C/svg%3E"); }
body.admin-shell:has(>.app-header) .admin-main { padding-top:12px; }
.app-content-canvas { padding-top:0; min-height:calc(var(--app-vh) - var(--environment-bar-height,0px) - var(--app-header-height) - 12px); }
.app-content-canvas>.app-frame-breadcrumb { padding:18px 0 0; font-size:13px; font-weight:500; color:#656C76; }
.app-frame-breadcrumb>[aria-current="page"] { color:#1D2127; font-weight:600; }
[data-bs-theme="dark"] .app-content-canvas>.app-frame-breadcrumb { color:#9CA3AF; }
[data-bs-theme="dark"] .app-frame-breadcrumb>[aria-current="page"] { color:#F3F4F6; }
.app-content-canvas>.admin-page-head { padding-top:6px; }
.app-content-canvas>.app-frame-breadcrumb+.admin-main-body { padding-top:6px; }
@media(max-width:767px){.app-content-canvas>.app-frame-breadcrumb{padding-top:14px}}

/* Shared PMS typography also wins over the optional new-UI shell. */
html body,html[data-ui="new"] body { --display:var(--font); --label:var(--font); font-size:14px; line-height:1.45; }
.admin-shell .page-title,.admin-shell .admin-page-title { font-weight:700; }
.admin-shell table td { font-weight:400; }
.admin-shell .admin-sidebar-subnav-link { font-weight:500; }

/* QF-049: the page edge uses the same unobtrusive root scrollbar as PMS. */
html { --root-scroll-thumb:rgba(15,23,42,.18); --root-scroll-thumb-hover:rgba(15,23,42,.32); scrollbar-width:thin; scrollbar-color:var(--root-scroll-thumb) transparent; }
html:has(body.admin-shell:is([data-sidebar-tone="graphite"],[data-sidebar-tone="ocean"],[data-sidebar-tone="forest"],:not([data-sidebar-tone]))) { --root-scroll-thumb:rgba(255,255,255,.18); --root-scroll-thumb-hover:rgba(255,255,255,.32); }
html[data-bs-theme="dark"],html:has(body[data-bs-theme="dark"],body.theme-dark) { --root-scroll-thumb:rgba(255,255,255,.18); --root-scroll-thumb-hover:rgba(255,255,255,.32); }
html::-webkit-scrollbar { width:8px; height:8px; }
html::-webkit-scrollbar-track { background:transparent; }
html::-webkit-scrollbar-thumb { background:var(--root-scroll-thumb); border:2px solid transparent; border-radius:8px; background-clip:padding-box; }
html::-webkit-scrollbar-thumb:hover { background-color:var(--root-scroll-thumb-hover); }
html::-webkit-scrollbar-button { display:none; width:0; height:0; }

/* Cloud: shared sixth tone; Graphite remains the preference default. */
body.admin-shell[data-sidebar-tone="cloud"] {
  --admin-sidebar-surface:#F6F7FB; --admin-sidebar-surface-rgb:246,247,251;
  --admin-sidebar-foreground:#323338; --admin-sidebar-foreground-strong:#323338; --admin-sidebar-muted:#676879;
  --admin-sidebar-hover:#DCDFEC; --admin-sidebar-active-bg:#CCE5FF; --admin-sidebar-border:#D0D4E4;
  --admin-sidebar-tint:#0073EA; --admin-sidebar-tint-rgb:0,115,234; --admin-sidebar-active-text:#323338;
}
body.admin-shell[data-sidebar-tone="cloud"]:has(>.app-header) {
  --app-frame-ink:#323338; --app-frame-muted:#676879; --app-frame-line:#D0D4E4;
  --app-frame-hover:#DCDFEC; --app-nav-hover:#DCDFEC; --app-nav-active:#CCE5FF;
  --app-picker-bg:#fff; --app-picker-line:#D0D4E4; --app-avatar-ring:#D0D4E4;
  --app-canvas-shadow:0 0 0 1px rgba(208,212,228,.6),0 4px 16px rgba(0,0,0,.06);
}
body.admin-shell[data-sidebar-tone="cloud"] .navbar-vertical :is(.nav-link,.nav-link-title,.admin-sidebar-subnav-link) { font-weight:400!important; }
body.admin-shell[data-sidebar-tone="cloud"]:has(>.app-header) .navbar-vertical :is(.nav-item.active>.nav-link,.nav-link.active,.admin-sidebar-subnav-link.active,[aria-current="page"])::before { background:#0073EA; }
html:has(body.admin-shell[data-sidebar-tone="cloud"]) { --root-scroll-thumb:rgba(50,51,56,.20); --root-scroll-thumb-hover:rgba(50,51,56,.34); --shell-scroll-thumb:rgba(50,51,56,.20); --shell-scroll-hover:rgba(50,51,56,.34); }
[data-bs-theme="dark"] body.admin-shell[data-sidebar-tone="cloud"]:has(>.app-header) {
  --admin-sidebar-foreground:#C9CED6; --admin-sidebar-foreground-strong:#fff; --admin-sidebar-muted:#ADB5C1;
  --app-frame-bg:#15181D; --app-frame-ink:#F3F4F6; --app-frame-muted:#E5E7EB;
  --app-frame-line:rgba(255,255,255,.22); --app-frame-hover:rgba(255,255,255,.10);
  --app-nav-hover:rgba(255,255,255,.06); --app-nav-active:rgba(0,115,234,.18);
  --app-picker-bg:rgba(255,255,255,.06); --app-picker-line:rgba(255,255,255,.10); --app-avatar-ring:rgba(255,255,255,.22);
  --app-canvas-bg:#1E222A; --app-canvas-shadow:0 0 0 1px rgba(255,255,255,.06);
}
html[data-bs-theme="dark"]:has(body.admin-shell[data-sidebar-tone="cloud"]) { --root-scroll-thumb:rgba(255,255,255,.18); --root-scroll-thumb-hover:rgba(255,255,255,.32); --shell-scroll-thumb:rgba(255,255,255,.18); --shell-scroll-hover:rgba(255,255,255,.32); }

/* QF-049: five owner-approved looks; existing six palettes retain their defaults. */
body.admin-shell[data-sidebar-tone="midnight"] {
  --admin-sidebar-surface-rgb:14,16,34; --admin-sidebar-tint-rgb:124,92,255;
  --admin-sidebar-surface:#0E1022; --admin-sidebar-foreground:#C7CAF0; --admin-sidebar-foreground-strong:#FFFFFF;
  --admin-sidebar-muted:#8D91BE; --admin-sidebar-hover:rgba(255,255,255,.07); --admin-sidebar-active:rgba(124,92,255,.22);
  --admin-sidebar-border:rgba(255,255,255,.12); --admin-sidebar-accent:#7C5CFF;
}
body.admin-shell[data-sidebar-tone="aurora"] {
  --admin-sidebar-surface-rgb:6,20,27; --admin-sidebar-tint-rgb:45,212,191;
  --admin-sidebar-surface:transparent; --admin-sidebar-foreground:#D4F1EE; --admin-sidebar-foreground-strong:#FFFFFF;
  --admin-sidebar-muted:#9CC9C4; --admin-sidebar-hover:rgba(255,255,255,.09); --admin-sidebar-active:rgba(45,212,191,.20);
  --admin-sidebar-border:rgba(255,255,255,.16); --admin-sidebar-accent:#2DD4BF;
}
body.admin-shell[data-sidebar-tone="ember"] {
  --admin-sidebar-surface-rgb:22,16,15; --admin-sidebar-tint-rgb:240,78,35;
  --admin-sidebar-surface:#16100F; --admin-sidebar-foreground:#E8D5CF; --admin-sidebar-foreground-strong:#FFF7F3;
  --admin-sidebar-muted:#B39A92; --admin-sidebar-hover:rgba(255,255,255,.06); --admin-sidebar-active:rgba(240,78,35,.18);
  --admin-sidebar-border:rgba(255,255,255,.10); --admin-sidebar-accent:#F04E23;
}
body.admin-shell[data-sidebar-tone="sand"] {
  --admin-sidebar-surface-rgb:243,238,230; --admin-sidebar-tint-rgb:180,83,9;
  --admin-sidebar-surface:#F3EEE6; --admin-sidebar-foreground:#4A4036; --admin-sidebar-foreground-strong:#2B241D;
  --admin-sidebar-muted:#6B5D4D; --admin-sidebar-hover:#E8E0D3; --admin-sidebar-active:#E3D6C3;
  --admin-sidebar-border:#DCCFBE; --admin-sidebar-accent:#B45309;
}
body.admin-shell[data-sidebar-tone="paper"] {
  --admin-sidebar-surface-rgb:255,255,255; --admin-sidebar-tint-rgb:9,9,11;
  --admin-sidebar-surface:#FFFFFF; --admin-sidebar-foreground:#3F3F46; --admin-sidebar-foreground-strong:#09090B;
  --admin-sidebar-muted:#71717A; --admin-sidebar-hover:#F4F4F5; --admin-sidebar-active:#F4F4F5;
  --admin-sidebar-border:#E4E4E7; --admin-sidebar-accent:#09090B;
}
body.admin-shell:is([data-sidebar-tone="midnight"],[data-sidebar-tone="aurora"],[data-sidebar-tone="ember"],[data-sidebar-tone="sand"],[data-sidebar-tone="paper"]):has(>.app-header) {
  --admin-sidebar-active-bg:var(--admin-sidebar-active); --admin-sidebar-tint:var(--admin-sidebar-accent);
  --admin-sidebar-active-text:var(--admin-sidebar-foreground-strong); --admin-sidebar-tint-strong:var(--admin-sidebar-foreground-strong);
  --app-frame-ink:var(--admin-sidebar-foreground-strong); --app-frame-muted:var(--admin-sidebar-muted);
  --app-frame-line:var(--admin-sidebar-border); --app-frame-hover:var(--admin-sidebar-hover);
  --app-nav-hover:var(--admin-sidebar-hover); --app-nav-active:var(--admin-sidebar-active);
  --app-picker-line:var(--admin-sidebar-border); --app-avatar-ring:var(--admin-sidebar-border);
  --app-picker-bg:rgba(255,255,255,.06); --app-canvas-bg:#FFFFFF;
  --app-theme-focus:#F04E23;
}
body.admin-shell[data-sidebar-tone="midnight"]:has(>.app-header) {
  --app-theme-pill:#8B6CFF; --app-theme-cta:#6D4AFF; --app-theme-focus:#8B6CFF;
  --app-canvas-shadow:0 0 0 1px rgba(124,92,255,.10),0 20px 50px rgba(5,6,20,.55);
}
body.admin-shell[data-sidebar-tone="aurora"]:has(>.app-header) {
  --app-theme-pill:#5EEAD4; --app-theme-cta:#0F766E; --app-theme-focus:#5EEAD4;
  --app-picker-bg:rgba(255,255,255,.08); --app-header-bg:rgba(6,20,27,.18);
  --app-canvas-shadow:0 20px 60px rgba(4,20,30,.45);
  background:radial-gradient(900px 520px at 6% -8%,rgba(45,212,191,.55) 0%,transparent 62%),radial-gradient(1000px 560px at 70% -18%,rgba(99,102,241,.55) 0%,transparent 60%),radial-gradient(800px 600px at 105% 60%,rgba(168,85,247,.35) 0%,transparent 60%),linear-gradient(165deg,#06141B 0%,#0A1230 55%,#120B2B 100%);
  background-attachment:fixed;
}
body.admin-shell[data-sidebar-tone="aurora"]:has(>.app-header) .admin-main { background:transparent; }
body.admin-shell[data-sidebar-tone="aurora"]>.app-header { backdrop-filter:blur(16px) saturate(160%); box-shadow:inset 0 -1px 0 rgba(255,255,255,.10); }
@supports not (backdrop-filter:blur(16px)) { body.admin-shell[data-sidebar-tone="aurora"]:has(>.app-header) { --app-header-bg:rgba(6,20,27,.85); } }
body.admin-shell[data-sidebar-tone="ember"]:has(>.app-header) {
  --app-header-bg:linear-gradient(90deg,#16100F 0%,#2A1410 55%,#16100F 100%);
  --app-theme-pill:linear-gradient(180deg,#FFB547,#F04E23); --app-theme-cta:linear-gradient(135deg,#C2410C,#9A3412);
  --app-canvas-shadow:0 0 0 1px rgba(240,78,35,.10),0 20px 50px rgba(0,0,0,.5);
}
body.admin-shell[data-sidebar-tone="ember"]>.app-header { box-shadow:inset 0 -1px 0 rgba(240,78,35,.25); }
body.admin-shell[data-sidebar-tone="sand"]:has(>.app-header) {
  --app-picker-bg:#FBF8F3; --app-theme-pill:#C2410C; --app-theme-cta:#B4471A; --app-canvas-bg:#FFFDF9;
  --app-canvas-shadow:0 0 0 1px rgba(180,160,130,.25),0 10px 30px rgba(90,70,40,.10);
}
body.admin-shell[data-sidebar-tone="paper"]:has(>.app-header) {
  --app-picker-bg:#FFFFFF; --app-theme-pill:#09090B; --app-theme-cta:#09090B; --app-theme-focus:#09090B;
  --app-canvas-shadow:0 0 0 1px #E4E4E7;
}
body.admin-shell[data-sidebar-tone="paper"]>.app-header { border-bottom:1px solid var(--app-frame-line); }
body.admin-shell[data-sidebar-tone="paper"]:has(>.app-header) .navbar.admin-sidebar { border-right:1px solid var(--app-frame-line); }
body.admin-shell[data-sidebar-tone="paper"] .navbar-vertical :is(.nav-item.active>.nav-link,.nav-item.active>.nav-link .nav-link-title,.nav-link.active,.admin-sidebar-subnav-link.active) { font-weight:600!important; }
body.admin-shell:has(>.app-header) .btn-primary { background:var(--app-theme-cta,linear-gradient(135deg,var(--admin-action-orange),var(--admin-action-orange-deep))); }
body.admin-shell:has(>.app-header) .btn-primary:is(:hover,:focus-visible,:active) { background:var(--app-theme-cta,var(--admin-action-orange-deep)); }
body.admin-shell:has(>.app-header) :is(.app-header,.admin-sidebar) :is(a,button,select):focus-visible { outline-color:var(--app-theme-focus,#F04E23)!important; }
[data-bs-theme="dark"] body.admin-shell:is([data-sidebar-tone="midnight"],[data-sidebar-tone="aurora"],[data-sidebar-tone="ember"],[data-sidebar-tone="sand"],[data-sidebar-tone="paper"]):has(>.app-header) { --app-canvas-bg:#1E222A; }
[data-bs-theme="dark"] body.admin-shell[data-sidebar-tone="aurora"]:has(>.app-header) { --app-canvas-bg:rgba(20,24,34,.92); }
[data-bs-theme="dark"] body.admin-shell:is([data-sidebar-tone="sand"],[data-sidebar-tone="paper"]):has(>.app-header) {
  --admin-sidebar-surface-rgb:21,24,29;
  --admin-sidebar-surface:#15181D; --admin-sidebar-foreground:#C9CED6; --admin-sidebar-foreground-strong:#FFFFFF;
  --admin-sidebar-muted:#ADB5C1; --admin-sidebar-border:rgba(255,255,255,.10);
  --admin-sidebar-hover:rgba(255,255,255,.06); --admin-sidebar-active:rgba(255,255,255,.10);
  --app-frame-ink:#F3F4F6; --app-frame-muted:#E5E7EB; --app-frame-line:rgba(255,255,255,.22);
  --app-frame-hover:rgba(255,255,255,.10); --app-picker-bg:rgba(255,255,255,.06);
  --app-canvas-shadow:0 0 0 1px rgba(255,255,255,.06);
}
[data-bs-theme="dark"] body.admin-shell[data-sidebar-tone="paper"]:has(>.app-header) { --app-theme-pill:#F4F4F5; --app-theme-focus:#F4F4F5; }
html:has(body.admin-shell:is([data-sidebar-tone="midnight"],[data-sidebar-tone="aurora"],[data-sidebar-tone="ember"])) { --root-scroll-thumb:rgba(255,255,255,.18); --root-scroll-thumb-hover:rgba(255,255,255,.32); --shell-scroll-thumb:rgba(255,255,255,.18); --shell-scroll-hover:rgba(255,255,255,.32); }
html:has(body.admin-shell[data-sidebar-tone="sand"]) { --root-scroll-thumb:rgba(43,36,29,.20); --root-scroll-thumb-hover:rgba(43,36,29,.34); --shell-scroll-thumb:rgba(43,36,29,.20); --shell-scroll-hover:rgba(43,36,29,.34); }
html:has(body.admin-shell[data-sidebar-tone="paper"]) { --root-scroll-thumb:rgba(9,9,11,.20); --root-scroll-thumb-hover:rgba(9,9,11,.34); --shell-scroll-thumb:rgba(9,9,11,.20); --shell-scroll-hover:rgba(9,9,11,.34); }
html[data-bs-theme="dark"]:has(body.admin-shell:is([data-sidebar-tone="sand"],[data-sidebar-tone="paper"])) { --root-scroll-thumb:rgba(255,255,255,.18); --root-scroll-thumb-hover:rgba(255,255,255,.32); --shell-scroll-thumb:rgba(255,255,255,.18); --shell-scroll-hover:rgba(255,255,255,.32); }
