:root {
  color-scheme: light;
  --bg: #f4f5f0;
  --shell: #ffffff;
  --sidebar: #ffffff;
  --sidebar-rail: #ffffff;
  --card: #ffffff;
  --card-soft: #f6f8fc;
  --text: #172033;
  --muted: #6a7388;
  --line: rgba(23, 32, 51, 0.11);
  --purple: #5947e8;
  --purple-soft: #ece9ff;
  --blue: #14b8d4;
  --green: #22c55e;
  --yellow: #f5b700;
  --red: #ff6b6b;
  --shadow: 0 24px 70px rgba(35, 43, 70, 0.08);
  --sidebar-width: 316px;
  --topbar-height: 88px;
}

.tag-panel {
  display: grid;
  gap: 18px;
}

.tag-attach-form {
  max-width: 760px;
}

.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-soft);
  font-weight: 700;
}

.tag-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-chip i {
  color: var(--purple);
}

.tag-chip form {
  margin: 0;
}

.tag-chip-remove {
  padding: 0;
  color: var(--muted);
  text-decoration: none;
}

.tag-chip-remove:hover {
  color: var(--danger);
}

.property-panel {
  display: grid;
  gap: 18px;
}

.property-panel-form {
  display: grid;
  gap: 18px;
}

.property-group-list {
  display: grid;
  gap: 16px;
}

.property-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.property-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.property-group-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.property-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.property-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.property-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.property-check .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.property-check .form-check-label {
  color: var(--text);
  font-weight: 700;
}

.property-value-form {
  gap: 10px;
}

.property-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-empty-state {
  min-height: auto;
  padding: 14px;
}

.domain-properties-card {
  display: grid;
  gap: 18px;
}

.domain-property-list {
  display: grid;
  gap: 16px;
}

.domain-property-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-soft);
}

.domain-property-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.domain-property-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.domain-property-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.domain-property-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-property-actions form,
.table-actions form {
  margin: 0;
}

.compact-table {
  margin-bottom: 0;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18212d;
  --shell: #1f2a39;
  --sidebar: #253142;
  --sidebar-rail: #1d2734;
  --card: #283546;
  --card-soft: #222e3f;
  --text: #f7f9ff;
  --muted: #aeb8ca;
  --line: rgba(255, 255, 255, 0.1);
  --purple-soft: rgba(89, 71, 232, 0.25);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 219, 166, 0.33), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(102, 88, 255, 0.10), transparent 25%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(90deg, var(--sidebar-rail) 0 68px, var(--sidebar) 68px 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 18px 82px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.55) transparent;
  transition: transform 0.22s ease;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.55);
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  margin-left: -72px;
  padding-left: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.16);
}

.brand span {
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border-radius: 9px;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.side-link i {
  position: absolute;
  left: -62px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.side-link.active {
  background: var(--purple-soft);
  color: var(--purple);
}

.side-link.active i {
  background: var(--purple);
  color: #fff;
}

.side-menu-group {
  display: grid;
  gap: 4px;
}

.side-parent-link em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 13px;
  font-style: normal;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.side-menu-group.active .side-parent-link em {
  transform: rotate(180deg);
}

.side-subnav {
  display: grid;
  gap: 4px;
  padding: 2px 0 4px 12px;
}

.side-menu-group:not(.active) .side-subnav {
  display: none;
}

.side-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.side-sublink i {
  color: var(--purple);
}

.side-sublink.active {
  background: var(--purple-soft);
  color: var(--purple);
}

.upgrade-card {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
}

.rocket {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 30px;
}

.upgrade-card p {
  margin: 0 0 12px;
  font-size: 13px;
}

.upgrade-card small {
  display: block;
  margin-top: 12px;
}

.main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-preview-form,
.domain-switch-form {
  min-width: 190px;
}

.domain-switch-form {
  min-width: 220px;
}

.role-preview-form .form-select,
.domain-switch-form .form-select {
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
}

.back-link,
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.icon-btn {
  cursor: pointer;
}

.search-box {
  width: min(390px, 36vw);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--card);
  padding: 4px 6px 4px 20px;
  box-shadow: var(--shadow);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.profile-button.show,
.profile-button:hover {
  color: var(--text);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #70d6ff, #c77dff);
  color: #fff;
  font-weight: 800;
}

.profile strong,
.profile span {
  display: block;
  white-space: nowrap;
}

.profile strong {
  line-height: 1.1;
}

.profile span {
  color: var(--muted);
  font-size: 13px;
}

.topbar-dropdown {
  position: relative;
}

.topbar-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--green);
}

.topbar-dot.danger-dot {
  background: var(--red);
}

.topbar-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--card);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.topbar-menu {
  width: min(340px, calc(100vw - 28px));
  margin-top: 12px !important;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.dropdown-head strong {
  font-size: 15px;
}

.dropdown-head span,
.dropdown-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: var(--text);
  padding: 10px;
  white-space: normal;
}

.topbar-menu .dropdown-item:hover,
.topbar-menu .dropdown-item:focus {
  background: var(--purple-soft);
  color: var(--text);
}

.topbar-menu .dropdown-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--card-soft);
  color: var(--purple);
}

.topbar-menu .dropdown-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.topbar-menu .dropdown-item small {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dropdown-empty {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.dropdown-footer {
  display: block;
  margin-top: 6px;
  border-radius: 12px;
  padding: 10px;
  color: var(--purple);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.dropdown-footer:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.user-menu {
  width: min(300px, calc(100vw - 28px));
}

.user-head {
  justify-content: flex-start;
}

.user-head .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.logout-form {
  margin: 0;
}

.logout-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.logout-item i {
  color: var(--red) !important;
}

.dark-icon,
html[data-theme="dark"] .light-icon {
  display: none;
}

html[data-theme="dark"] .dark-icon {
  display: inline-block;
}

.content-shell {
  padding: 4px 24px 32px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-title {
  align-items: flex-start;
}

.dashboard-widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-widget {
  min-height: 180px;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.dashboard-widget-small {
  grid-column: span 3;
}

.dashboard-widget-medium {
  grid-column: span 4;
}

.dashboard-widget-wide {
  grid-column: span 6;
}

.dashboard-widget-full {
  grid-column: 1 / -1;
}

.dashboard-widget-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dashboard-widget-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.dashboard-widget-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.dashboard-widget-metric {
  display: grid;
  gap: 6px;
}

.dashboard-widget-metric strong {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.dashboard-widget-metric small {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-list-widget {
  align-content: start;
}

.dashboard-widget-list {
  display: grid;
  gap: 10px;
}

.dashboard-widget-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.dashboard-widget-list-item i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-soft);
}

.dashboard-widget-list-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-widget-list-item strong,
.dashboard-widget-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-widget-list-item small,
.dashboard-widget-list-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dashboard-widget-empty,
.dashboard-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.dashboard-empty i,
.dashboard-widget-empty i {
  font-size: 30px;
  color: var(--purple);
}

.dashboard-preference-list {
  display: grid;
  gap: 12px;
}

.dashboard-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.dashboard-preference-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
}

.dashboard-preference-check span {
  display: grid;
  gap: 2px;
}

.dashboard-preference-check small {
  color: var(--muted);
}

.dashboard-preference-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-preference-controls label {
  display: grid;
  gap: 6px;
}

.dashboard-preference-controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid > *,
.userlist-layout > * {
  min-width: 0;
}

.dash-card,
.panel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.dash-card {
  min-height: 196px;
  padding: 24px;
}

.metric-card {
  grid-column: span 3;
}

.status-card,
.retention-card {
  grid-column: span 3;
}

.wide-card {
  grid-column: span 6;
  min-height: 340px;
}

.donut-card,
.gauge-card {
  grid-column: span 3;
  min-height: 340px;
}

.card-head,
.status-title,
.wide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-head span,
.card-head h2,
.status-title h2,
.wide-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card-head p,
.status-title p,
.wide-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.metric-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}

.metric-main strong,
.retention-card > strong {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.metric-main small,
.retention-card small {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

.trend-up,
.trend-green {
  color: var(--purple);
}

.trend-green {
  color: var(--green);
}

.trend-red {
  color: #ff3131;
}

.mini-bars {
  height: 72px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.mini-bars span {
  width: 13px;
  border-radius: 5px;
  background: #cfe2ff;
}

.mini-bars span:nth-child(1) { height: 22px; }
.mini-bars span:nth-child(2) { height: 28px; }
.mini-bars span:nth-child(3) { height: 24px; }
.mini-bars span:nth-child(4) { height: 34px; }
.mini-bars span:nth-child(5) { height: 72px; background: var(--purple); }
.mini-bars.purple span { background: var(--purple); }

.mini-wave svg {
  width: 150px;
  height: 70px;
}

.mini-wave path {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
}

.mini-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--purple) 0 35%, #cfe2ff 35% 100%);
}

.mini-ring span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--purple);
  font-size: 12px;
}

.round-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
}

.round-icon.blue { color: #6aa2ff; background: rgba(106, 162, 255, 0.12); }
.round-icon.green { color: var(--green); background: rgba(34, 197, 94, 0.12); }

.status-title .form-select {
  width: 102px;
  border-radius: 999px;
}

.status-bar {
  height: 10px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  margin: 28px 0;
}

.status-bar span:nth-child(1) { background: var(--blue); }
.status-bar span:nth-child(2) { background: var(--green); }
.status-bar span:nth-child(3) { background: var(--yellow); }
.status-bar span:nth-child(4) { background: var(--red); }

.status-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.status-list strong {
  margin-left: auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cyan { background: var(--blue); }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.red { background: var(--red); }

.retention-card {
  text-align: center;
}

.retention-card .card-head {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.area-chart,
.line-chart {
  position: relative;
  height: 140px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(150deg, transparent 0 18%, rgba(89, 71, 232, 0.35) 18% 21%, transparent 21% 33%, rgba(89, 71, 232, 0.35) 33% 36%, transparent 36% 50%, rgba(89, 71, 232, 0.35) 50% 53%, transparent 53% 67%, rgba(89, 71, 232, 0.35) 67% 70%, transparent 70%),
    linear-gradient(180deg, transparent, rgba(89, 71, 232, 0.12));
}

.line-chart {
  height: 175px;
  background:
    linear-gradient(120deg, transparent 0 20%, var(--yellow) 20% 21%, transparent 21% 38%, var(--purple) 38% 39%, transparent 39% 58%, var(--yellow) 58% 59%, transparent 59% 100%),
    repeating-linear-gradient(to right, transparent 0 42px, rgba(120, 132, 160, 0.18) 43px, transparent 44px),
    repeating-linear-gradient(to top, transparent 0 32px, rgba(120, 132, 160, 0.15) 33px, transparent 34px);
}

.wide-card .btn {
  margin-top: 22px;
}

.donut,
.gauge {
  width: min(220px, 70%);
  aspect-ratio: 1;
  margin: 32px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--purple) 0 45%, var(--blue) 45% 75%, var(--red) 75% 100%);
  color: #fff;
  font-weight: 800;
}

.donut::before {
  content: "";
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card);
  position: absolute;
}

.donut {
  position: relative;
}

.donut {
  color: var(--text);
}

.donut {
  font-size: 18px;
}

.gauge {
  height: 120px;
  aspect-ratio: auto;
  border-radius: 120px 120px 0 0;
  background: conic-gradient(from 270deg, var(--purple) 0 40%, var(--red) 40% 55%, var(--blue) 55% 68%, #b155f0 68% 80%, var(--green) 80% 92%, var(--yellow) 92% 100%);
}

.gauge span {
  margin-top: 54px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--card);
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.customer-detail-title {
  width: 100%;
  max-width: none;
  align-items: flex-start;
}

.customer-detail-title h1 {
  max-width: 980px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.customer-detail-title p {
  max-width: 760px;
}

.count-badge {
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 800;
  white-space: nowrap;
}

.academy-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.academy-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.academy-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(92, 70, 230, 0.14), rgba(24, 184, 190, 0.12));
  color: var(--purple);
  text-decoration: none;
}

.academy-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.academy-card:hover .academy-card-media img {
  transform: scale(1.035);
}

.academy-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 44px;
}

.academy-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.academy-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.academy-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.academy-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
}

.academy-card h2 a,
.academy-read-link {
  color: var(--text);
  text-decoration: none;
}

.academy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.academy-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--purple);
  font-weight: 800;
}

.academy-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: var(--card);
  text-align: center;
  color: var(--muted);
}

.academy-empty i {
  color: var(--purple);
  font-size: 44px;
}

.academy-reader-title {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto 22px;
}

.academy-reader-title .btn {
  justify-self: start;
}

.academy-reader-heading h1 {
  max-width: 940px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
}

.academy-reader {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.academy-reader-media {
  overflow: hidden;
  margin: 0 0 24px;
  border-radius: 18px;
  aspect-ratio: 16 / 8;
  background: var(--soft-card);
}

.academy-reader-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-reader-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.academy-reader-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.academy-reader-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.userlist-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.userlist-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.user-form,
.table-panel {
  min-width: 0;
  padding: 20px;
}

.horizontal-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.form-row label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 40px;
  align-items: center;
}

.form-check-grid .form-check {
  margin: 0;
}

.form-check-grid .form-check-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.location-select-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.location-select-item {
  min-width: 0;
}

.field-sub-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-control,
.form-select {
  background-color: var(--card-soft);
  border-color: var(--line);
  color: var(--text);
}

.iti {
  width: 100%;
}

.iti .form-control {
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--card-soft);
  color: var(--text);
  border-color: var(--purple);
  box-shadow: 0 0 0 0.2rem rgba(89, 71, 232, 0.18);
}

.readonly-value {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--card-soft);
  color: var(--muted);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  word-break: break-all;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.admin-modal .modal-content {
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  max-height: calc(100vh - 48px);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

.admin-modal .modal-header {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 22px 26px;
}

.admin-modal .modal-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.admin-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px;
}

.admin-modal .modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-modal .modal-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 16px 26px;
}

.modal-footer-form {
  margin: 0;
}

.content-editor-modal-dialog {
  max-width: min(1540px, calc(100vw - 28px));
}

.content-editor-modal-dialog .modal-body {
  padding: 26px 26px 18px;
}

.content-editor-form .modal-tabs {
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.content-editor-form .modal-tab-content > .tab-pane.active {
  display: grid;
  gap: 12px;
}

.content-editor-form .form-row {
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.content-editor-form .form-row label {
  padding-top: 10px;
  line-height: 1.25;
}

.content-editor-form .form-control,
.content-editor-form .form-select {
  min-height: 40px;
}

.content-editor-form textarea.form-control {
  min-height: 92px;
}

.content-category-tree {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.content-category-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  padding-left: calc(12px + (var(--category-level, 0) * 26px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-soft);
  cursor: pointer;
}

.content-category-check:hover {
  border-color: rgba(99, 102, 241, .35);
  background: rgba(99, 102, 241, .06);
}

.content-category-check .form-check-input {
  margin: 2px 0 0;
}

.content-category-check-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.content-category-check-text strong {
  color: var(--text);
  font-size: .92rem;
}

.content-category-check-text small {
  color: var(--muted);
  font-size: .76rem;
}

.content-editor-form .form-row-builder {
  display: block;
  grid-template-columns: 1fr;
}

.content-editor-form .form-row-builder > label {
  display: none;
}

.campaign-form-detail-panel {
  overflow: hidden;
}

.campaign-form-detail-panel .modal-tab-content > .tab-pane.active {
  min-height: 0;
}

.campaign-form-detail-panel .form-row-builder {
  margin: 0;
}

.customer-edit-modal-dialog {
  max-width: min(1180px, calc(100vw - 32px));
}

.customer-detail-card {
  width: 100%;
  max-width: none;
  overflow: visible;
  padding: 24px;
}

.customer-detail-card .modal-tabs {
  margin: -6px -6px 22px;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.customer-detail-tabs {
  min-height: 430px;
}

.detail-tab-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-vertical-tabs {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-soft) 82%, transparent);
}

.customer-detail-card .detail-vertical-tabs {
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.detail-vertical-tabs .nav-item {
  width: 100%;
}

.detail-vertical-tabs .nav-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
}

.detail-vertical-tabs .nav-link.active {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--card-soft));
}

.detail-tab-content {
  min-width: 0;
}

.customer-detail-card .customer-form {
  max-width: none;
}

.customer-detail-card .form-row {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
}

.domain-detail-card .tab-pane.active {
  display: grid;
  gap: 13px;
}

.domain-detail-card .form-control,
.domain-detail-card .form-select {
  min-height: 40px;
}

.domain-detail-card .form-row-editor {
  align-items: start;
}

.customer-detail-card textarea.form-control {
  min-height: 98px;
}

.customer-campaign-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-soft) 80%, transparent);
}

.customer-campaign-qr-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.customer-campaign-qr-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.customer-campaign-qr-card a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.customer-campaign-qr-card figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.customer-campaign-qr-card img {
  width: 132px;
  height: 132px;
  display: block;
}

.customer-detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--card) 24%);
}

.modal-tabs {
  margin-bottom: 20px;
  border-bottom-color: var(--line);
  overflow-x: auto;
  overflow-y: hidden;
}

.modal-tabs,
.customer-detail-card .modal-tabs,
.content-editor-form .modal-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-tabs::-webkit-scrollbar,
.customer-detail-card .modal-tabs::-webkit-scrollbar,
.content-editor-form .modal-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal-tabs .nav-link {
  color: var(--muted);
  font-weight: 800;
}

.modal-tabs .nav-link.active {
  background: var(--card-soft);
  border-color: var(--line) var(--line) var(--card-soft);
  color: var(--text);
}

.modal-tab-content {
  min-width: 0;
}

.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.compact-header {
  margin-bottom: 1rem;
}

.empty-state.compact {
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 1rem;
}

.campaign-test-form-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
}

.campaign-test-form-preview strong {
  color: var(--text);
}

.modal-user-form {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.table-header h2,
.userlist-layout h2 {
  margin: 0;
  font-size: 22px;
}

.content-type-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.content-type-card {
  padding: 20px;
}

.content-type-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.content-type-card-head h2 {
  margin: 0;
  font-size: 22px;
}

.content-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.content-type-menu {
  display: grid;
  gap: 10px;
}

.content-type-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--card-soft);
  font-weight: 800;
  text-decoration: none;
}

.content-type-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.content-type-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.content-type-empty {
  margin: 0;
  color: var(--muted);
}

.content-section-panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 16px 24px;
  margin-bottom: 18px;
}

[data-theme="dark"] .content-section-panel {
  background: rgba(36, 48, 68, 0.66);
}

.content-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.content-section-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.content-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.content-choice-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.content-choice-card:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
}

.content-choice-card-static:hover {
  border-color: var(--line);
  transform: none;
}

.content-choice-title {
  display: block;
  font-weight: 900;
}

.content-choice-count {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.content-choice-action {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.table-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.list-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.filter-field {
  min-width: 0;
}

.filter-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  min-width: 980px;
}

.domain-panel {
  display: grid;
  gap: 14px;
}

.domain-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.domain-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.domain-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-privacy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-card);
}

.profile-privacy-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.profile-privacy-card p {
  margin: 0;
  color: var(--muted);
}

.profile-permission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-card);
}

.profile-permission-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.profile-permission-card p {
  margin: 0;
  color: var(--muted);
}

.form-row-contact-card {
  align-items: center;
}

.contact-verify-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.contact-verify-card > .form-control,
.contact-verify-card > .iti {
  min-width: 0;
  width: 100%;
}

.contact-verify-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 34px;
  min-width: 0;
  white-space: nowrap;
}

.contact-verify-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.contact-verify-meta .btn {
  flex: 0 0 auto;
  min-width: 128px;
}

.verification-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.verification-action-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-soft);
}

.verification-action-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.verification-action-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.verification-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.verification-state.is-verified {
  color: var(--success);
}

.verification-inline-switch {
  grid-column: 1 / -1;
  padding: 8px 0 0;
}

.verification-modal-text {
  margin: 0 0 14px;
  color: var(--muted);
}

.verification-countdown {
  font-weight: 900;
  color: var(--purple);
}

.tree-cell {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  padding-left: calc(var(--tree-depth, 0) * 1.25rem);
}

.tree-cell i {
  color: var(--muted);
  flex: 0 0 auto;
}

.inline-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.inline-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-sublabel {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reminder-check {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 38px;
}

.domain-table {
  min-width: 720px;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.dt-paging .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}

.table td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.user-name-cell {
  white-space: nowrap;
}

.user-name-cell strong,
.user-name-cell span {
  display: inline;
}

.user-name-cell span {
  margin-left: 4px;
}

.description-cell {
  max-width: 220px;
}

.description-cell,
.description-cell * {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.description-cell p {
  margin: 0;
}

.form-row-editor {
  align-items: start;
}

.ckeditor-wrapper {
  min-width: 0;
}

.ckeditor-wrapper .ck.ck-editor {
  color: #172033;
}

.ckeditor-wrapper .ck.ck-toolbar {
  border-color: var(--line);
  border-radius: 12px 12px 0 0;
}

.ckeditor-wrapper .ck.ck-editor__main > .ck-editor__editable {
  min-height: 320px;
  border-color: var(--line);
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #172033;
}

.admin-modal .ck.ck-editor__main > .ck-editor__editable {
  min-height: 300px;
}

.ckeditor-wrapper .ck.ck-editor__editable.ck-focused {
  border-color: var(--purple);
  box-shadow: 0 0 0 0.2rem rgba(89, 71, 232, 0.18);
}

html[data-theme="dark"] .ckeditor-wrapper .ck.ck-toolbar,
html[data-theme="dark"] .ckeditor-wrapper .ck.ck-editor__main > .ck-editor__editable {
  background: #ffffff;
  color: #172033;
}

.grapesjs-wrapper {
  min-width: 0;
  width: 100%;
}

.grapesjs-layout {
  display: grid;
  grid-template-columns: 330px minmax(520px, 1fr) 300px;
  height: 680px;
  min-height: 560px;
  max-height: calc(100vh - 330px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #253044;
}

.grapesjs-side {
  height: 100%;
  min-height: 0;
  overflow: hidden auto;
  background: #253044;
  color: #dbe4f0;
}

.grapesjs-blocks {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.grapesjs-styles {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.grapesjs-editor {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.grapesjs-wrapper .gjs-one-bg {
  background-color: #253044;
}

.grapesjs-wrapper .gjs-two-color {
  color: #dbe4f0;
}

.grapesjs-wrapper .gjs-three-bg {
  background-color: var(--purple);
}

.grapesjs-wrapper .gjs-four-color,
.grapesjs-wrapper .gjs-four-color-h:hover {
  color: #ffffff;
}

.grapesjs-wrapper .gjs-cv-canvas {
  background: #eef2f8;
  width: 100%;
  height: calc(100% - 40px);
  top: 40px;
}

.grapesjs-wrapper .gjs-frame-wrapper {
  height: 100%;
}

.grapesjs-wrapper .gjs-blocks-c {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.grapesjs-wrapper .gjs-block {
  width: auto;
  min-height: 82px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  box-shadow: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.grapesjs-wrapper .gjs-block:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(81, 68, 239, 0.24);
  transform: translateY(-1px);
}

.grapesjs-wrapper .gjs-block-label {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
}

.builder-block-label {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-height: 56px;
  text-align: center;
}

.builder-block-label .bi {
  display: block;
  color: #d7d2ff;
  font-size: 26px;
  line-height: 1;
}

.builder-block-label span {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.grapesjs-wrapper .gjs-category-title,
.grapesjs-wrapper .gjs-sm-sector-title,
.grapesjs-wrapper .gjs-layer-title,
.grapesjs-wrapper .gjs-trt-trait,
.grapesjs-wrapper .gjs-sm-property {
  font-family: inherit;
}

.grapesjs-wrapper .gjs-category-title,
.grapesjs-wrapper .gjs-sm-sector-title {
  padding: 11px 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.grapesjs-wrapper .gjs-pn-panels {
  position: static;
}

.grapesjs-wrapper .gjs-pn-panel {
  position: static;
}

.grapesjs-wrapper .gjs-pn-views-container {
  height: calc(100% - 40px);
  padding: 0;
  background: #253044;
}

.grapesjs-wrapper .gjs-sm-properties {
  padding: 10px;
}

.grapesjs-wrapper .gjs-trt-traits {
  padding: 10px;
}

.grapesjs-wrapper .gjs-trt-trait {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 12px;
}

.grapesjs-wrapper .gjs-label {
  font-size: 12px;
  font-weight: 800;
  color: #dbe4f0;
}

.grapesjs-wrapper .gjs-field,
.grapesjs-wrapper .gjs-field input,
.grapesjs-wrapper .gjs-field select,
.grapesjs-wrapper .gjs-field textarea {
  width: 100%;
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1b2638;
  color: #f8fafc;
}

.grapesjs-wrapper .gjs-field textarea {
  min-height: 104px;
  resize: vertical;
}

.grapesjs-wrapper .gjs-field-textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1b2638;
  color: #f8fafc;
  line-height: 1.45;
  resize: vertical;
}

.grapesjs-wrapper .gjs-field-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.grapesjs-wrapper .gjs-field-checkbox-wrap input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.grapesjs-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grapesjs-code-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.grapesjs-code-grid textarea {
  min-height: 520px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

@media (max-width: 1200px) {
  .grapesjs-layout {
    grid-template-columns: 1fr;
  }

  .grapesjs-side {
    min-height: 0;
    max-height: 230px;
  }

  .grapesjs-blocks,
  .grapesjs-styles {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.logout-form {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  background: #e9edf9;
  color: #eef4ff;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(520px, 0.97fr);
}

.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 76%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(180deg, #eef2ff 0%, #f7f9ff 100%);
}

.visual-window {
  position: absolute;
  top: 96px;
  width: 376px;
  height: 520px;
  border: 1px solid rgba(64, 82, 120, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
}

.visual-window-left {
  left: 9%;
}

.visual-window-right {
  right: 9%;
}

.phone-card {
  position: absolute;
  top: 210px;
  right: 21%;
  width: 270px;
  height: 365px;
  border-radius: 14px;
  background: #cbd9fb;
  box-shadow: 0 24px 70px rgba(58, 87, 143, 0.14);
}

.phone-avatar {
  width: 72px;
  height: 72px;
  margin: 62px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 16%, transparent 17%),
    radial-gradient(circle at 50% 80%, #fff 0 33%, transparent 34%),
    rgba(255, 255, 255, 0.27);
}

.phone-line {
  width: 176px;
  height: 30px;
  margin: 10px auto;
  border-radius: 999px;
  background: #fff;
}

.phone-line.short {
  width: 138px;
}

.phone-button {
  width: 176px;
  height: 30px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: #477bff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.check-badge {
  position: absolute;
  top: 262px;
  left: 28%;
  width: 74px;
  height: 78px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #477bff;
  color: #fff;
  font-size: 46px;
  box-shadow: 0 0 0 18px rgba(71, 123, 255, 0.13);
}

.lamp {
  position: absolute;
  left: 14%;
  bottom: 110px;
  width: 14px;
  height: 420px;
  background: #68727a;
}

.lamp::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  width: 74px;
  height: 78px;
  clip-path: polygon(50% 0, 100% 24%, 82% 100%, 18% 100%, 0 24%);
  background: linear-gradient(90deg, #71808a 0 22%, #9dbdff 22% 78%, #71808a 78%);
}

.bench {
  position: absolute;
  left: 18%;
  bottom: 118px;
  width: 430px;
  height: 22px;
  background: #9aa3a8;
  box-shadow:
    0 52px 0 #9aa3a8,
    0 104px 0 #9aa3a8,
    24px 150px 0 -4px #737c82,
    300px 150px 0 -4px #737c82;
}

.plant {
  position: absolute;
  right: 13%;
  bottom: 120px;
  width: 86px;
  height: 48px;
  background: #477bff;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.plant::before {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 40px;
  width: 4px;
  height: 160px;
  background: #5d676d;
  box-shadow: 20px -44px 0 -1px #5d676d, -18px -20px 0 -1px #5d676d;
}

.person {
  position: absolute;
  left: 30%;
  bottom: 132px;
  width: 220px;
  height: 390px;
}

.person-head {
  position: absolute;
  left: 48px;
  top: 34px;
  width: 62px;
  height: 70px;
  border-radius: 44% 44% 48% 48%;
  background: #ffbd73;
}

.person-hair {
  position: absolute;
  left: 28px;
  top: 26px;
  width: 70px;
  height: 96px;
  border-radius: 42px 42px 26px 26px;
  background: #172033;
}

.person-body {
  position: absolute;
  left: 26px;
  top: 112px;
  width: 94px;
  height: 142px;
  border-radius: 28px 26px 18px 18px;
  background: linear-gradient(110deg, #2f76ff 0 44%, #8db2ff 45%);
}

.person-arm {
  position: absolute;
  left: 104px;
  top: 116px;
  width: 114px;
  height: 20px;
  border-radius: 999px;
  background: #ffbd73;
  transform: rotate(-17deg);
}

.person-leg {
  position: absolute;
  top: 240px;
  height: 150px;
  border-radius: 999px;
  background: #edb166;
}

.person-leg.one {
  left: 58px;
  width: 36px;
  transform: rotate(-8deg);
}

.person-leg.two {
  left: 112px;
  width: 36px;
  transform: rotate(-34deg);
}

.login-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #253142;
  padding: 64px;
}

.login-card {
  width: min(100%, 464px);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  color: #0f1a2c;
  text-decoration: none;
}

.login-brand .brand-mark {
  width: 72px;
  height: 52px;
  font-size: 34px;
  background: #5747e8;
  color: #111827;
}

.login-brand strong {
  color: #111827;
  font-size: 56px;
  line-height: 1;
}

.login-heading h1 {
  margin: 0 0 12px;
  color: #f1f5ff;
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 800;
}

.login-heading p {
  margin: 0 0 34px;
  color: #f1f5ff;
  font-size: 19px;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-input {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 11px;
  padding: 0 12px;
  color: #dce5f2;
  background: #1d2734;
}

.login-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fbff;
  font-weight: 700;
}

.login-input input::placeholder {
  color: #e8eef8;
  opacity: 0.95;
}

.password-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #e8eef8;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 48px;
}

.password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--muted);
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus-visible {
  color: var(--text);
  background: var(--card-soft);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 22px;
  color: #e8eef8;
  font-weight: 700;
}

.login-row a,
.login-foot a {
  color: #5747ff;
  text-decoration: none;
  font-weight: 800;
}

.remember-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.remember-control input {
  width: 18px;
  height: 18px;
  accent-color: #1877f2;
}

.login-submit {
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: #1877f2;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(24, 119, 242, 0.22);
}

.login-submit:disabled {
  opacity: 0.75;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  color: #f1f5ff;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 232, 240, 0.18);
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-login button {
  height: 54px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.social-login i {
  margin-right: 12px;
  color: #5747ff;
}

.login-foot {
  margin: 36px 0 0;
  text-align: center;
  color: #f1f5ff;
}

.login-settings {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5747e8;
  color: #fff;
  font-size: 22px;
}

.dt-container {
  color: var(--text);
}

.dt-container .dt-length,
.dt-container .dt-search,
.dt-container .dt-info,
.dt-container .dt-paging {
  color: var(--muted);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--text);
}

.dt-container .dt-search input {
  min-height: 38px;
  padding: 0 12px;
}

.dt-container .dt-length select {
  min-height: 36px;
  padding: 0 30px 0 10px;
}

.dt-container .page-link {
  border-color: var(--line);
  background: var(--card-soft);
  color: var(--text);
}

.dt-container .active > .page-link,
.dt-container .page-link.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

html[data-theme="dark"] table.dataTable > thead > tr > th,
html[data-theme="dark"] table.dataTable > tbody > tr > td {
  color: var(--text);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.row-actions form {
  margin: 0;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-pool-detail-card {
  padding: 24px;
}

.request-pool-list-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.request-scope-card {
  padding: 18px;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.request-scope-head {
  margin-bottom: 14px;
}

.request-scope-head h2 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 850;
}

.request-scope-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.request-scope-nav {
  display: grid;
  gap: 8px;
}

.request-scope-link {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.request-scope-link i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--card-soft);
  color: var(--purple);
  font-size: 15px;
}

.request-scope-link:hover,
.request-scope-link.active {
  border-color: rgba(89, 71, 232, 0.16);
  background: var(--purple-soft);
  color: var(--purple);
}

.request-scope-link.active i {
  background: var(--purple);
  color: #fff;
}

.request-pool-tab-card {
  display: grid;
  gap: 18px;
}

.request-pool-tab-content {
  min-width: 0;
}

.request-pool-tab-content > .tab-pane.active {
  display: block;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--card-soft));
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.relation-media-cell {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 180px;
}

.relation-media-cell img {
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.list-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.list-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.request-message-list {
  display: grid;
  gap: 12px;
}

.request-message-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.request-message-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-message-card span {
  color: var(--muted);
  font-size: 13px;
}

.request-message-card p {
  margin: 0;
  white-space: pre-wrap;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
  padding: 16px;
}

.detail-section.full-span {
  grid-column: 1 / -1;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 12px;
  align-items: start;
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.request-description-meta {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-text,
.detail-code {
  margin: 0;
  min-height: 48px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-code {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.notes-panel {
  display: grid;
  gap: 18px;
}

.notes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notes-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.notes-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 12px;
}

.score-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.score-summary-card,
.score-summary-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
  padding: 14px 16px;
}

.score-summary-card {
  display: grid;
  gap: 4px;
}

.score-summary-card span,
.score-summary-card small,
.score-summary-empty {
  color: var(--muted);
}

.score-summary-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.score-summary-empty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-log-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-log-actions form {
  margin: 0;
}

.score-list-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.score-list-badge .bi {
  color: #f59e0b;
  font-size: 15px;
}

.score-list-badge strong {
  font-size: 13px;
}

.note-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.note-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.note-card p {
  margin: 0 0 8px;
  color: var(--text);
  white-space: pre-wrap;
}

.note-card small,
.note-empty-state span {
  color: var(--muted);
}

.note-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--card-soft);
  text-align: center;
  color: var(--muted);
}

.note-empty-state i {
  font-size: 28px;
  color: var(--purple);
}

.media-picker-field {
  display: grid;
  gap: 10px;
}

.media-field-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.media-field-preview img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.media-field-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-field-thumbs img {
  width: 72px;
  height: 56px;
}

.media-field-preview i {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: rgba(81, 68, 239, 0.1);
  color: var(--purple);
  font-size: 25px;
}

.media-field-preview strong,
.media-field-preview span {
  display: block;
}

.media-field-preview span {
  color: var(--muted);
  font-size: 13px;
}

.media-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-relation-stepper {
  display: block;
}

.request-relation-modal .modal-dialog {
  max-width: 920px;
}

.request-relation-modal .modal-body {
  padding: 20px 26px;
}

.stepper-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.stepper-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-soft);
}

.stepper-progress span.active,
.stepper-progress span.done {
  border-color: rgba(81, 68, 239, 0.35);
  color: var(--purple);
  background: rgba(81, 68, 239, 0.1);
}

.request-relation-step {
  display: none;
}

.request-relation-step.active {
  display: block;
}

.request-relation-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.request-relation-step p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.request-relation-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.request-relation-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.request-relation-choice .form-check-input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.request-relation-choice:hover {
  border-color: rgba(81, 68, 239, 0.55);
  box-shadow: 0 8px 18px rgba(28, 28, 43, 0.06);
}

.request-relation-choice:has(input:checked) {
  border-color: rgba(81, 68, 239, 0.7);
  background: rgba(81, 68, 239, 0.08);
  box-shadow: 0 8px 18px rgba(81, 68, 239, 0.1);
}

.request-relation-choice strong,
.request-relation-choice em {
  display: block;
}

.request-relation-choice strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.request-relation-choice em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.request-relation-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.request-reference-search {
  position: relative;
  margin-bottom: 12px;
}

.request-reference-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.request-reference-search .form-control {
  padding-left: 40px;
}

.request-reference-results {
  max-height: 390px;
  overflow: auto;
  padding: 2px;
}

.request-reference-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.request-reference-table {
  margin-bottom: 0;
}

.request-reference-table th.selection-column,
.request-reference-table td.selection-column {
  width: 58px;
  min-width: 58px;
  text-align: center;
}

.request-reference-table tbody tr {
  cursor: pointer;
}

.request-reference-table tbody tr.selected {
  background: rgba(81, 68, 239, 0.08);
}

.request-reference-table td,
.request-reference-table th {
  vertical-align: middle;
}

.request-reference-table td strong {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.request-reference-table .form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.request-reference-results .dt-container {
  padding: 10px;
}

.request-reference-results .dt-layout-row {
  align-items: center;
  gap: 12px;
}

.request-reference-results .dt-search input,
.request-reference-results .dt-length select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  min-height: 34px;
}

.request-reference-results .dt-paging .dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  margin-left: 4px;
  color: var(--text) !important;
  background: var(--surface-soft) !important;
}

.request-reference-results .dt-paging .dt-paging-button.current {
  color: #fff !important;
  border-color: var(--purple) !important;
  background: var(--purple) !important;
}

.request-relation-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

@media (max-width: 991.98px) {
  .request-relation-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .request-relation-modal .modal-body {
    padding: 16px;
  }

  .stepper-progress,
  .request-relation-choice-grid {
    grid-template-columns: 1fr;
  }
}

.media-picker-modal .modal-body {
  background: var(--surface-soft);
}

.media-picker-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 620px;
}

.media-picker-sidebar,
.media-picker-main,
.media-edit-panel,
.media-upload-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.media-picker-sidebar {
  padding: 14px;
}

.media-sidebar-head,
.media-toolbar,
.media-edit-head,
.media-upload-actions,
.media-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.media-sidebar-head span {
  font-weight: 800;
}

.media-category-list,
.media-check-list {
  display: grid;
  gap: 8px;
}

.media-category-list {
  margin-top: 12px;
}

.media-category-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.media-category-item.active,
.media-category-item:hover {
  border-color: rgba(81, 68, 239, 0.28);
  background: rgba(81, 68, 239, 0.1);
}

.media-category-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-category-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.media-picker-main {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.media-toolbar {
  flex-wrap: wrap;
}

.media-search-box {
  position: relative;
  flex: 1 1 280px;
}

.media-search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.media-search-box .form-control {
  padding-left: 40px;
}

.media-toolbar .form-select {
  width: 180px;
}

.media-upload-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.media-upload-drop {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px;
  border: 1px dashed rgba(81, 68, 239, 0.4);
  border-radius: 16px;
  background: rgba(81, 68, 239, 0.06);
  text-align: center;
}

.media-upload-drop i {
  color: var(--purple);
  font-size: 34px;
}

.media-upload-drop span,
.media-empty-note {
  color: var(--muted);
  font-size: 13px;
}

.media-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.media-upload-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.media-upload-item i {
  color: var(--purple);
  font-size: 24px;
}

.media-upload-item input + input {
  margin-top: 6px;
}

.media-recent-bar {
  padding: 2px 0;
}

.media-picker-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  min-height: 0;
}

.media-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  min-height: 300px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.media-card.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(81, 68, 239, 0.14);
}

.media-card:hover {
  transform: translateY(-1px);
}

.media-card-image {
  display: block;
  width: 100%;
  height: 132px;
  padding: 0;
  border: 0;
  background: var(--surface-soft);
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.media-card-check,
.media-card-meta,
.media-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-card-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.media-card-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.media-check-item {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.media-edit-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.media-edit-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.media-edit-image {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.media-edit-form {
  display: grid;
  gap: 10px;
}

.media-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.media-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.media-empty-state i {
  color: var(--purple);
  font-size: 36px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.active {
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
}

.status-pill.passive {
  background: rgba(255, 107, 107, 0.16);
  color: var(--red);
}

.status-pill.warning {
  background: rgba(245, 183, 0, 0.18);
  color: #a16207;
}

.status-pill.pending {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.status-pill.danger {
  background: rgba(255, 107, 107, 0.16);
  color: var(--red);
}

.status-pill.form-status-new {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.status-pill.domain-status-review {
  background: rgba(245, 183, 0, 0.18);
  color: #a16207;
}

.status-pill.form-status-approved {
  background: rgba(34, 197, 94, 0.16);
  color: #047857;
}

.status-pill.form-status-rejected {
  background: rgba(255, 107, 107, 0.16);
  color: var(--red);
}

.status-pill.form-status-cancelled,
.status-pill.form-status-unknown {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.ticket-detail-grid {
  display: grid;
  gap: 20px;
}

.ticket-summary-card,
.ticket-message-card {
  padding: 24px;
}

.ticket-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ticket-summary-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ticket-summary-header p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.record-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.record-detail-grid > div {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 14px;
}

.record-detail-grid strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.record-detail-grid span {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.message-detail-pre {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 14px;
  color: var(--text);
  font-family: inherit;
}

.message-detail-html {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 18px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.message-detail-html p:last-child {
  margin-bottom: 0;
}

.unread-row td {
  background: rgba(99, 102, 241, 0.06);
}

.ticket-message-list {
  display: grid;
  gap: 14px;
}

.ticket-message {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--soft);
}

.ticket-message.staff {
  border-color: rgba(79, 70, 229, 0.24);
  background: rgba(79, 70, 229, 0.06);
}

.ticket-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ticket-message-header strong {
  color: var(--ink);
}

.ticket-message-header span,
.ticket-message-header time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ticket-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
  .record-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ticket-summary-header {
    flex-direction: column;
  }

  .record-detail-grid {
    grid-template-columns: 1fr;
  }
}

.edit-layout {
  max-width: 780px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1390px) {
  .metric-card,
  .status-card,
  .retention-card,
  .donut-card,
  .gauge-card {
    grid-column: span 6;
  }

  .wide-card {
    grid-column: span 12;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 290px;
  }

  .academy-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .userlist-layout {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 360px;
  }

  .login-panel {
    min-height: auto;
  }

  .media-picker-shell,
  .media-picker-content {
    grid-template-columns: 1fr;
  }

  .media-picker-sidebar {
    order: 2;
  }

  .media-picker-main {
    order: 1;
  }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: none;
    background: rgba(0, 0, 0, 0.35);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .main-shell {
    margin-left: 0;
  }

  .search-box {
    width: min(420px, 52vw);
  }
}

@media (max-width: 760px) {
  .academy-blog-grid {
    grid-template-columns: 1fr;
  }

  .academy-reader {
    padding: 16px;
    border-radius: 18px;
  }

  .academy-reader-media {
    aspect-ratio: 16 / 10;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .topbar-left,
  .topbar-actions {
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .profile > div,
  .profile > i {
    display: none;
  }

  .content-shell {
    padding: 12px 14px 24px;
  }

  .dashboard-grid {
    gap: 14px;
  }

  .metric-card,
  .status-card,
  .retention-card,
  .wide-card,
  .donut-card,
  .gauge-card {
    grid-column: span 12;
  }

  .dash-card {
    min-height: auto;
    padding: 18px;
  }

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

  .form-actions {
    flex-direction: column;
  }

  .domain-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .customer-detail-card {
    padding: 18px;
  }

  .customer-detail-card .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .customer-campaign-qr-card {
    grid-template-columns: 1fr;
  }

  .customer-campaign-qr-card figure {
    justify-self: start;
  }

  .detail-tab-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-vertical-tabs,
  .customer-detail-card .detail-vertical-tabs {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .content-editor-form .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .content-editor-form .form-row label {
    padding-top: 0;
  }

  .customer-detail-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .list-filters {
    grid-template-columns: 1fr;
  }

  .location-select-grid {
    grid-template-columns: 1fr;
  }

  .verification-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-permission-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-verify-meta {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .contact-verify-card {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 34px 18px;
  }

  .login-brand {
    margin-bottom: 36px;
  }

  .login-brand .brand-mark {
    width: 56px;
    height: 44px;
    font-size: 26px;
  }

  .login-brand strong {
    font-size: 42px;
  }

  .login-heading h1 {
    font-size: 31px;
  }

  .login-heading p {
    font-size: 16px;
  }

  .login-row,
  .social-login {
    grid-template-columns: 1fr;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-toolbar,
  .media-field-actions,
  .media-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .media-toolbar .form-select,
  .media-toolbar .btn,
  .media-picker-footer .btn,
  .media-picker-footer > div {
    width: 100%;
  }

  .media-grid,
  .media-upload-preview {
    grid-template-columns: 1fr;
  }

  .media-field-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-tools-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
}

.role-list-panel,
.role-permission-panel {
  min-height: 280px;
  padding: 22px;
  overflow: hidden;
}

.role-list-panel .table-header,
.role-permission-panel .table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.role-list-panel .table-header h2,
.role-permission-panel .table-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.role-list-panel .table-header p,
.role-permission-panel .table-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.role-list {
  display: grid;
  gap: 10px;
}

.role-list-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--card-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.role-list-item:hover {
  border-color: rgba(89, 71, 232, 0.45);
  transform: translateY(-1px);
}

.role-list-item > i:first-child {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-soft);
}

.role-list-item span {
  display: grid;
  gap: 2px;
}

.role-list-item small {
  color: var(--muted);
  font-size: 12px;
}

.role-list-item.active {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(89, 71, 232, 0.14);
}

.role-permission-form {
  display: grid;
  gap: 18px;
}

.role-permission-head,
.role-permission-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, 78px);
  gap: 12px;
  align-items: center;
}

.role-permission-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.role-permission-head span:first-child {
  text-align: left;
}

.role-permission-tree {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 360px);
  min-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.role-permission-row {
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.role-permission-row:hover {
  border-color: rgba(89, 71, 232, 0.34);
  background: var(--card-soft);
}

.role-menu-name {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: calc(var(--depth, 0) * 24px);
}

.role-menu-name i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-soft);
}

.role-menu-name span {
  display: grid;
  gap: 2px;
}

.role-menu-name small {
  color: var(--muted);
  font-size: 12px;
}

.role-check {
  display: flex;
  justify-content: center;
  margin: 0;
}

.role-check .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.dashboard-role-form {
  display: grid;
  gap: 18px;
}

.dashboard-setting-form {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-subtitle {
  display: grid;
  gap: 3px;
}

.section-subtitle span {
  color: var(--ink);
  font-weight: 900;
}

.section-subtitle small {
  color: var(--muted);
}

.dashboard-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-setting-grid label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-setting-description {
  grid-column: 1 / -1;
}

.dashboard-role-head,
.dashboard-role-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 74px 110px 150px;
  gap: 12px;
  align-items: center;
}

.dashboard-role-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-role-head span:first-child {
  text-align: left;
}

.dashboard-role-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 360px);
  min-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-role-row {
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dashboard-role-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-role-name i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-soft);
}

.dashboard-role-name span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-role-name strong,
.dashboard-role-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-role-name small {
  color: var(--muted);
}

@media (max-width: 992px) {
  .dashboard-widget-small,
  .dashboard-widget-medium,
  .dashboard-widget-wide,
  .dashboard-widget-full {
    grid-column: 1 / -1;
  }

  .dashboard-preference-row {
    grid-template-columns: 1fr;
  }

  .admin-tools-layout {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .role-permission-head {
    display: none;
  }

  .role-permission-row {
    grid-template-columns: minmax(0, 1fr) repeat(4, 44px);
  }

  .role-permission-tree {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .dashboard-role-head {
    display: none;
  }

  .dashboard-role-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-setting-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-role-list {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .list-filter-grid {
    grid-template-columns: 1fr;
  }

  .list-filter-actions {
    justify-content: stretch;
  }

  .list-filter-actions .btn {
    flex: 1;
  }
}

/* Compact admin visual refresh */
:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --card-soft: #f5f6fa;
  --text: #0f1b2d;
  --muted: #667085;
  --line: rgba(15, 27, 45, 0.09);
  --shadow: 0 10px 26px rgba(15, 27, 45, 0.045);
  --sidebar-width: 312px;
  --topbar-height: 70px;
}

html {
  font-size: 14px;
}

body {
  font-family: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sidebar {
  padding: 18px 16px 16px 82px;
}

.brand {
  gap: 16px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.brand span {
  font-size: 20px;
  font-weight: 850;
}

.side-nav {
  gap: 6px;
}

.side-link {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.side-link i {
  left: -61px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 17px;
}

.side-sublink {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
}

.rocket {
  width: 54px;
  height: 54px;
  font-size: 25px;
}

.topbar {
  height: var(--topbar-height);
  padding: 10px 24px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.88);
}

html[data-theme="dark"] .topbar {
  background: rgba(24, 33, 45, 0.9);
}

.topbar-left,
.topbar-actions {
  gap: 12px;
}

.back-link,
.icon-btn {
  width: 40px;
  height: 40px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.search-box {
  width: min(380px, 34vw);
  height: 42px;
  border-radius: 8px;
  padding: 4px 5px 4px 14px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.search-box button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.role-preview-form .form-select,
.domain-switch-form .form-select {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
}

.avatar {
  width: 42px;
  height: 42px;
}

.profile {
  gap: 10px;
}

.profile strong {
  font-size: 14px;
  font-weight: 850;
}

.profile span {
  font-size: 12px;
}

.content-shell {
  padding: 18px 28px 28px;
}

.dashboard-grid,
.dashboard-widget-grid {
  gap: 16px;
}

.dash-card,
.panel-card,
.customer-detail-card,
.academy-card,
.admin-tools-card,
.ticket-summary-card,
.ticket-message-card,
.media-card,
.domain-property-card,
.property-group,
.property-check,
.request-reference-table-wrap,
.modal-content,
.topbar-menu {
  border-radius: 10px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.dash-card {
  min-height: 168px;
  padding: 18px 20px;
}

.dashboard-widget {
  min-height: 160px;
  padding: 18px 20px;
  gap: 14px;
}

.card-head,
.status-title,
.wide-head,
.dashboard-widget-head {
  gap: 12px;
}

.card-head span,
.card-head h2,
.status-title h2,
.wide-head h2,
.dashboard-widget-head h2 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.card-head p,
.status-title p,
.wide-head p,
.dashboard-widget-head p,
.page-title p {
  font-size: 13px;
  line-height: 1.5;
}

.metric-main {
  margin-top: 18px;
  padding-top: 18px;
}

.metric-main strong,
.retention-card > strong,
.dashboard-widget-metric strong {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 850;
}

.mini-bars {
  height: 58px;
  gap: 7px;
}

.mini-bars span {
  width: 11px;
  border-radius: 4px;
}

.round-icon,
.dashboard-widget-list-item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.page-title {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 850;
}

.page-title h1,
.customer-detail-title h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.12;
}

.count-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.btn {
  --bs-btn-border-radius: 8px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 700;
}

.btn-sm {
  min-height: 32px;
  font-size: 13px;
}

.form-control,
.form-select {
  min-height: 38px;
  border-radius: 8px;
  border-color: var(--line);
  background-color: var(--card-soft);
  color: var(--text);
  font-size: 14px;
}

textarea.form-control {
  line-height: 1.5;
}

.form-label,
.form-row > label,
.dashboard-setting-grid label,
.modal-form label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  margin-bottom: 0;
  font-size: 13px;
}

.table thead th {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom-color: var(--line);
}

.table tbody td {
  padding: 12px 14px;
  border-bottom-color: var(--line);
  vertical-align: middle;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 36px;
  border-radius: 8px;
  background: var(--card-soft);
  font-size: 13px;
}

.dt-container .dt-layout-row {
  margin: 10px 0;
}

.dt-container .dt-paging .dt-paging-button,
.request-reference-results .dt-paging .dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
}

.modal-content {
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom-color: var(--line);
}

.modal-title {
  font-size: 22px;
  font-weight: 850;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 14px 24px;
  border-top-color: var(--line);
}

.modal-tabs .nav-link,
.detail-vertical-tabs .nav-link {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.detail-tab-layout {
  gap: 22px;
}

.detail-vertical-tabs {
  border-radius: 10px;
  border-color: var(--line);
  background: var(--card-soft);
}

.badge,
.status-pill,
.score-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.request-relation-modal .modal-dialog {
  max-width: 980px;
}

.request-relation-choice-grid {
  gap: 10px;
}

.request-relation-choice {
  min-height: 62px;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card);
}

.request-reference-results {
  max-height: 420px;
}

.request-reference-results .dt-container {
  padding: 12px;
}

.request-reference-table td strong {
  font-size: 14px;
}

@media (max-width: 991px) {
  .content-shell {
    padding: 14px 16px 24px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .search-box {
    width: min(360px, 58vw);
  }

  .request-pool-list-layout {
    grid-template-columns: 1fr;
  }

  .request-scope-card {
    position: static;
  }

  .request-scope-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, max-content);
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* DataTable polish */
.panel-card:has(.js-data-table),
.dash-card:has(.js-data-table),
.customer-detail-card:has(.js-data-table),
.request-pool-tab-card:has(.js-data-table),
.request-reference-table-wrap {
  overflow: hidden;
}

.dt-container {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.dt-container .dt-layout-row:first-child {
  margin-bottom: 4px;
}

.dt-container .dt-layout-row:last-child {
  margin-top: 4px;
}

.dt-container .dt-layout-cell {
  display: flex;
  align-items: center;
}

.dt-container .dt-layout-cell.dt-layout-start {
  justify-content: flex-start;
}

.dt-container .dt-layout-cell.dt-layout-end {
  justify-content: flex-end;
  margin-left: auto;
}

.dt-container .dt-length,
.dt-container .dt-search,
.dt-container .dt-info {
  color: #4f5b76;
  font-size: 13px;
  font-weight: 500;
}

.dt-container .dt-search {
  position: relative;
}

.dt-container .dt-search label {
  margin-right: 8px;
  color: var(--muted);
  font-size: 0;
}

.dt-container .dt-search::before {
  content: "\F52A";
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #63708a;
  font-family: "bootstrap-icons";
  font-size: 14px;
  pointer-events: none;
}

.dt-container .dt-search input {
  width: min(260px, 34vw);
  min-height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fc;
  color: var(--text);
  box-shadow: none;
  outline: 0;
}

.dt-container .dt-search input:focus {
  border-color: rgba(89, 71, 232, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(89, 71, 232, 0.08);
}

.dt-container .dt-length select {
  min-height: 36px;
  min-width: 68px;
  margin: 0 8px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f8f9fc;
  color: var(--text);
  box-shadow: none;
}

table.dataTable,
.table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0;
  color: #3f4a67;
  font-size: 13px;
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td,
.table thead th {
  height: 42px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 0;
  background: #f4f5f9;
  color: #0f1b2d;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

table.dataTable > thead > tr > th:first-child,
table.dataTable > thead > tr > td:first-child,
.table thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

table.dataTable > thead > tr > th:last-child,
table.dataTable > thead > tr > td:last-child,
.table thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

table.dataTable > tbody > tr > td,
table.dataTable > tbody > tr > th,
.table tbody td {
  height: 44px;
  padding: 10px 14px;
  border-top: 0;
  border-bottom: 1px solid #e9edf4;
  color: #47526d;
  vertical-align: middle;
}

table.dataTable > tbody > tr:hover > td {
  background: #fbfcff;
}

table.dataTable > tbody > tr:last-child > td,
.table tbody tr:last-child td {
  border-bottom-color: #eef1f6;
}

table.dataTable > tbody > tr > td strong,
.table tbody td strong {
  color: #101828;
  font-weight: 750;
}

table.dataTable input[type="checkbox"],
table.dataTable input[type="radio"],
.table input[type="checkbox"],
.table input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 1px solid #d7dce7;
  border-radius: 6px;
  box-shadow: none;
}

table.dataTable input[type="radio"],
.table input[type="radio"] {
  border-radius: 50%;
}

.row-actions,
.table-actions {
  gap: 6px;
  justify-content: flex-start;
}

.action-icon-btn,
.row-actions .btn,
.table-actions .btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  background: #f3f1ff;
  color: var(--purple);
}

.action-icon-btn:hover,
.row-actions .btn:hover,
.table-actions .btn:hover {
  border-color: rgba(89, 71, 232, 0.14);
  background: #ece9ff;
  color: var(--purple);
}

.row-actions .btn-outline-danger,
.table-actions .btn-outline-danger {
  background: #fff1f3;
  color: #f04438;
}

.row-actions .btn-outline-danger:hover,
.table-actions .btn-outline-danger:hover {
  border-color: rgba(240, 68, 56, 0.16);
  background: #ffe4e8;
  color: #d92d20;
}

.status-pill {
  min-width: 88px;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.status-pill.active,
.status-pill.form-status-approved {
  background: #eaf8f1;
  color: #009c69;
}

.status-pill.pending,
.status-pill.warning,
.status-pill.domain-status-review,
.status-pill.form-status-new {
  background: #fff6e7;
  color: #f59f00;
}

.status-pill.passive,
.status-pill.danger,
.status-pill.form-status-rejected {
  background: #ffeff1;
  color: #f04438;
}

.status-pill.form-status-cancelled,
.status-pill.form-status-unknown {
  background: #eef1f6;
  color: #667085;
}

.dt-container .dt-info {
  padding: 0;
}

.dt-container .dt-paging {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dt-container .dt-paging .dt-paging-button,
.request-reference-results .dt-paging .dt-paging-button {
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px !important;
  border: 1px solid #e4e8f0 !important;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #f4f5f9 !important;
  color: #5a6680 !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none !important;
}

.dt-container .dt-paging .dt-paging-button:hover,
.request-reference-results .dt-paging .dt-paging-button:hover {
  border-color: rgba(89, 71, 232, 0.18) !important;
  background: #ece9ff !important;
  color: var(--purple) !important;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover,
.request-reference-results .dt-paging .dt-paging-button.current,
.request-reference-results .dt-paging .dt-paging-button.current:hover {
  border-color: var(--purple) !important;
  background: var(--purple) !important;
  color: #fff !important;
}

.dt-container .dt-paging .dt-paging-button.disabled,
.dt-container .dt-paging .dt-paging-button.disabled:hover {
  opacity: 0.55;
  cursor: default;
}

html[data-theme="dark"] .dt-container .dt-search input,
html[data-theme="dark"] .dt-container .dt-length select,
html[data-theme="dark"] table.dataTable > thead > tr > th,
html[data-theme="dark"] table.dataTable > thead > tr > td {
  background: var(--card-soft);
  color: var(--text);
}

html[data-theme="dark"] table.dataTable > tbody > tr > td {
  border-bottom-color: var(--line);
  color: var(--muted);
}

html[data-theme="dark"] table.dataTable > tbody > tr:hover > td {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
  .dt-container .dt-layout-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dt-container .dt-layout-cell,
  .dt-container .dt-layout-cell.dt-layout-end {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .dt-container .dt-search,
  .dt-container .dt-search input {
    width: 100%;
  }
}

/* DataTable NexLink correction */
.dt-container .dt-search {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dt-container .dt-search label {
  display: none !important;
}

.dt-container .dt-search::before {
  left: 14px !important;
  color: #77829a !important;
  font-size: 15px !important;
}

.dt-container .dt-search input,
.dt-container .dt-search input[type="search"] {
  width: 220px !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 40px !important;
  border-color: #e5e8f0 !important;
  background-color: #f8f9fc !important;
  color: #1d2939 !important;
}

.dt-container .dt-search input::placeholder {
  color: #69758c;
  opacity: 1;
}

.dt-container .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dt-container .dt-length select {
  margin: 0 !important;
}

div.dt-container table.dataTable.table > thead > tr,
div.dt-container table.dataTable > thead > tr {
  background: #f4f5f9 !important;
}

div.dt-container table.dataTable.table > thead > tr > th,
div.dt-container table.dataTable > thead > tr > th {
  position: relative;
  padding: 12px 14px !important;
  border-bottom: 0 !important;
  background: #f4f5f9 !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

div.dt-container table.dataTable > thead > tr > th.dt-orderable-asc span.dt-column-order,
div.dt-container table.dataTable > thead > tr > th.dt-orderable-desc span.dt-column-order,
div.dt-container table.dataTable > thead > tr > th.dt-ordering-asc span.dt-column-order,
div.dt-container table.dataTable > thead > tr > th.dt-ordering-desc span.dt-column-order {
  display: none !important;
}

div.dt-container table.dataTable > thead > tr > th.dt-orderable-asc::after,
div.dt-container table.dataTable > thead > tr > th.dt-orderable-desc::after {
  content: "\F127";
  margin-left: 6px;
  color: #c2c8d4;
  font-family: "bootstrap-icons";
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
}

div.dt-container table.dataTable > thead > tr > th.dt-ordering-asc::after,
div.dt-container table.dataTable > thead > tr > th.dt-ordering-desc::after {
  color: #6b5cff;
}

div.dt-container table.dataTable > tbody > tr > td {
  padding: 13px 14px !important;
  border-bottom: 1px solid #edf0f5 !important;
  color: #3f4861 !important;
  font-size: 13px !important;
}

div.dt-container table.dataTable > tbody > tr > td:first-child {
  color: #111827 !important;
  font-weight: 700;
}

.dt-container .dt-layout-row:last-child {
  align-items: center !important;
  padding-top: 2px;
}

.dt-container .dt-info {
  color: #59667f !important;
  font-size: 13px !important;
}

.dt-container .dt-paging {
  gap: 5px !important;
}

.dt-container .dt-paging .dt-paging-button,
.dt-container .dt-paging button.dt-paging-button {
  min-width: 36px !important;
  height: 36px !important;
  border: 1px solid #e7eaf1 !important;
  border-radius: 8px !important;
  background: #f6f7fb !important;
  color: #566176 !important;
  opacity: 1 !important;
}

.dt-container .dt-paging .dt-paging-button.disabled,
.dt-container .dt-paging .dt-paging-button.disabled:hover {
  background: #f9fafc !important;
  color: #b2bac8 !important;
  opacity: 1 !important;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
}

/* DataTable Bootstrap pagination correction */
.dt-container .dt-paging nav {
  display: flex !important;
  justify-content: flex-end !important;
}

.dt-container .dt-paging .pagination {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.dt-container .dt-paging .dt-paging-button.page-item {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.dt-container .dt-paging .page-link {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e8ebf2 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f7f8fb !important;
  color: #566176 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.dt-container .dt-paging .page-link:hover {
  border-color: rgba(89, 71, 232, 0.2) !important;
  background: #efedff !important;
  color: var(--purple) !important;
}

.dt-container .dt-paging .page-item.active .page-link {
  border-color: var(--purple) !important;
  background: var(--purple) !important;
  color: #fff !important;
}

.dt-container .dt-paging .page-item.disabled .page-link {
  border-color: #edf0f5 !important;
  background: #fafbfe !important;
  color: #aab3c2 !important;
  cursor: default !important;
  opacity: 1 !important;
}

.dt-container .dt-paging .page-link i {
  display: block;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
}

/* Header action buttons must remain text buttons, not row icon buttons. */
.table-header .table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.table-header .table-actions .btn {
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.table-header .table-actions .btn i {
  font-size: 14px;
  line-height: 1;
}

/* Shared card header rhythm for list, side and detail cards. */
.panel-card > .table-header,
.content-type-card-head,
.admin-tools-card-head,
.customer-detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-card > .table-header > div:first-child,
.content-type-card-head > div:first-child,
.admin-tools-card-head > div:first-child,
.customer-detail-card-head > div:first-child {
  min-width: 0;
}

.request-scope-head {
  display: block;
  margin-bottom: 14px;
}

.panel-card > .table-header h2,
.request-scope-head h2,
.content-type-card-head h2,
.admin-tools-card-head h2,
.customer-detail-card-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel-card > .table-header p,
.request-scope-head p,
.content-type-card-head p,
.admin-tools-card-head p,
.customer-detail-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reference-summary {
  display: grid;
  gap: 3px;
}

.reference-summary strong {
  color: #111827;
  font-size: 13px;
  font-weight: 750;
}

.reference-summary span {
  color: #7c879d;
  font-size: 11px;
  font-weight: 500;
}
