/*! Generated from dashboard-assets/scss/dashboard.scss. Run npm run build in dashboard-assets. */
:root {
  --font-small: 0.875rem;
  --font-ui: 0.9375rem;
  --font-body: 1rem;
  --font-section: 1.25rem;
  --font-section-large: 1.375rem;
  --font-page: 1.875rem;
  --font-page-mobile: 1.75rem;
  --canvas: #f5f7fb;
  --surface: #fff;
  --ink: #17243b;
  --muted: #6b778d;
  --line: #e7ecf3;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --sidebar: #122039;
  --sidebar-width: 18rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.text-muted {
  color: var(--muted) !important;
}

.text-strong {
  font-weight: 600;
}

.eyebrow {
  display: block;
  font-size: var(--font-small);
  font-weight: 750;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  color: var(--primary);
}

.dashboard-body {
  background: var(--canvas);
}

.workspace {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #b5c0d4;
  z-index: 40;
  padding: 32px 18px 20px;
  transition: transform 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  min-height: 3rem;
  white-space: nowrap;
}

.brand:hover {
  color: white;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3377ee;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -1.8px;
}

.brand-mark span {
  font-weight: 400;
}

.brand-label {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.sidebar .brand {
  margin: 0 10px 44px;
}

.sidebar-heading {
  margin: 0 14px 8px;
  color: #a7b4ca;
  font-size: var(--font-small);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar nav {
  margin-bottom: 24px;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-section + .nav-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #354966;
}

.nav-link, .nav-group summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 3rem;
  padding: 12px 14px;
  border-radius: 9px;
  color: #b6c2d6;
  font-size: var(--font-body);
  font-weight: 550;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-group summary:hover {
  color: #fff;
  background: #1d2c47;
}

.nav-link.is-active {
  background: #25406a;
  color: #9fc4ff;
}

.nav-group {
  margin: 0;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  color: #e8edf7;
}

.nav-group summary::-webkit-details-marker, .account-menu summary::-webkit-details-marker {
  display: none;
}

.group-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.nav-group[open] .group-chevron {
  transform: rotate(90deg);
}

.nav-submenu {
  margin: 3px 0 5px 24px;
  padding-left: 8px;
  border-left: 1px solid #354966;
}

.nav-submenu-heading {
  margin: 12px 0 0;
  padding-inline: 12px;
  color: #a5b5cd;
  font-size: var(--font-small);
}

.nav-submenu .nav-link {
  min-height: 2.75rem;
  font-size: var(--font-ui);
}

.nav-group.has-active-page > summary {
  color: #b8d4ff;
}

.sidebar .nav-section .icon {
  flex-shrink: 0;
}

.site-switcher {
  position: relative;
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid #354966;
  border-radius: 9px;
  background: #172640;
}

.site-switcher > summary {
  font-weight: 650;
}

.site-switcher-name,
.site-switcher-options {
  overflow-wrap: anywhere;
}

.site-switcher-panel {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 6px) -1px auto;
  display: flex;
  flex-direction: column;
  max-height: min(22rem, max(6rem, 100dvh - 12rem));
  border: 1px solid #354966;
  border-radius: 9px;
  background: #172640;
  box-shadow: 0 8px 18px rgba(11, 20, 47, 0.5019607843);
}

.site-switcher-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}

.site-switcher-options .nav-link,
.site-switcher-current {
  min-height: 2.75rem;
  font-size: var(--font-ui);
}

.site-switcher-current {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  color: #b8d4ff;
}

.workspace-main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar .nav-link:focus-visible,
.sidebar summary:focus-visible,
.sidebar .mobile-sidebar-close:focus-visible {
  outline: 2px solid #9fc4ff;
  outline-offset: 2px;
}

.sidebar .site-switcher-panel .nav-link:focus-visible {
  outline-offset: -2px;
}

.topbar {
  min-height: 5.25rem;
  padding: 0.75rem 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #6c7890;
  cursor: pointer;
}

.icon-button:hover {
  background: #edf2fa;
  color: var(--ink);
}

.topbar-location {
  font-weight: 550;
  color: var(--muted);
  font-size: var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
}

.account-menu summary:hover {
  background: #f7f9fc;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-ui);
  font-weight: 700;
  color: #3769bd;
  background: #eaf1ff;
  flex: 0 0 auto;
}

.account-identity {
  max-width: 190px;
  font-size: var(--font-ui);
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-identity small {
  display: block;
  font-size: var(--font-small);
  color: var(--muted);
  font-weight: 450;
  margin-top: 3px;
}

.account-chevron {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  margin-left: 8px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 8px;
  box-shadow: 0 16px 50px rgba(20, 43, 77, 0.1294117647);
}

.dropdown-identity {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.dropdown-identity strong, .dropdown-identity span {
  display: block;
}

.dropdown-identity strong {
  font-size: var(--font-ui);
  margin-bottom: 4px;
}

.dropdown-identity span {
  color: var(--muted);
  font-size: var(--font-small);
}

.account-dropdown a, .account-dropdown button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  font-size: var(--font-ui);
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
}

.account-dropdown a:hover, .account-dropdown button:hover {
  background: #f1f5fc;
}

.account-dropdown .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.page-content {
  padding: 36px 38px 48px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

h1 {
  font-size: var(--font-page);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  font-size: var(--font-body);
}

.heading-secondary {
  color: #7e8ba2;
  font-size: 0.75em;
  font-weight: 500;
}

.page-heading .btn {
  flex-shrink: 0;
}

.btn {
  border-radius: 8px;
  font-size: var(--font-ui);
  font-weight: 600;
  min-height: 3rem;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--primary-hover);
  --bs-btn-active-border-color: var(--primary-hover);
  box-shadow: 0 3px 5px rgba(37, 99, 235, 0.0745098039);
}

.btn-light {
  background: white;
  border-color: #dbe2ed;
  color: #536078;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: #c8d7f3;
  --bs-btn-hover-bg: #eff5ff;
  --bs-btn-hover-color: var(--primary);
  --bs-btn-hover-border-color: #9ebcef;
}

.btn-outline-danger {
  --bs-btn-color: #c64b55;
  --bs-btn-border-color: #efcfd3;
  --bs-btn-hover-bg: #fff1f3;
  --bs-btn-hover-color: #b83745;
  --bs-btn-hover-border-color: #df9ca4;
}

.btn-sm {
  padding: 6px 10px;
  min-height: 2.25rem;
  font-size: var(--font-small);
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 7px rgba(20, 43, 77, 0.0117647059);
  overflow: hidden;
  margin-bottom: 24px;
}

.panel-header {
  padding: 25px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  font-size: var(--font-section);
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}

.panel-header p {
  font-size: var(--font-ui);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.panel-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f2f5fc;
  color: #6888bd;
  border-radius: 9px;
}

.panel-body {
  padding: 27px 28px;
}

.form-panel {
  max-width: 100%;
  scroll-margin-top: 104px;
}

.catalog-dialog {
  position: fixed;
  inset: 0;
  width: min(900px, 100vw - 32px);
  min-height: min(360px, 100dvh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow-y: auto;
}

.catalog-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.resend-dialog {
  width: min(420px, 100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
}

.resend-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.reward-offer-form {
  display: grid;
  align-items: start;
  gap: 16px;
  max-width: 1040px;
}

.reward-offer-section {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(20, 43, 77, 0.03);
}

.reward-offer-section-wide {
  grid-column: 1/-1;
}

.reward-offer-section > h2 {
  margin: 0 0 12px;
  font-size: var(--font-section);
  font-weight: 650;
}

.reward-offer-fields {
  display: grid;
  gap: 12px;
  max-width: 32rem;
  grid-template-columns: minmax(0, 1fr);
}

.reward-catalog-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.reward-catalog-preview img {
  flex: none;
}

.reward-offer-section [data-denomination] {
  min-width: 0;
  background: var(--bs-tertiary-bg);
}

@media (min-width: 1024px) {
  .reward-offer-form {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}
.reward-catalog-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.reward-catalog-picker .form-control {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
  background: #f8fafc;
}

.reward-catalog-picker .btn {
  flex: 0 0 auto;
}

.workspace-table {
  margin-bottom: 0;
  font-size: var(--font-ui);
}

.workspace-table > thead > tr > th {
  color: #6b778d;
  font-size: var(--font-small);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  background: #fbfcfe;
  padding: 15px 24px;
  border-color: var(--line);
  white-space: nowrap;
}

.workspace-table > tbody > tr > td {
  padding: 19px 24px;
  border-color: #eff2f7;
  vertical-align: middle;
  color: #536078;
}

.workspace-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

.workspace-table > tbody > tr:hover > td {
  background: #fcfdff;
}

.table-primary-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: var(--font-ui);
  font-weight: 600;
  min-width: 150px;
}

.table-record-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.record-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #e5eaf3;
  background: #f6f8fc;
  color: #637fae;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}

.record-icon .icon {
  width: 17px;
  height: 17px;
}

.count-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 28px;
  justify-content: center;
  background: #f0f4fb;
  color: #536b93;
  font-size: var(--font-small);
  font-weight: 600;
}

.table-action {
  font-weight: 600;
  font-size: var(--font-small);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px;
  white-space: nowrap;
}

.table-action .icon {
  width: 16px;
}

.table-footer {
  padding: 0 24px;
}

.table-footer:has(nav) {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.pagination {
  margin-bottom: 0;
  font-size: var(--font-ui);
}

.page-link {
  border-color: #e4eaf4;
  color: var(--primary);
  font-size: var(--font-ui);
  padding: 8px 14px;
}

.table-footer nav p {
  font-size: var(--font-small);
  color: var(--muted);
}

.site-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 25rem;
  min-width: 13rem;
}

.site-tool-link {
  align-items: center;
  background: #f4f7fc;
  border: 1px solid #e1e8f4;
  border-radius: 7px;
  color: #375b91;
  display: inline-flex;
  font-size: var(--font-small);
  font-weight: 600;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}
.site-tool-link .icon {
  height: 1rem;
  width: 1rem;
}
.site-tool-link:hover {
  background: #eaf1ff;
  border-color: #b9cef1;
  color: var(--primary);
}
.site-tool-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.badge-soft {
  display: inline-flex;
  background: #f0f4fb;
  color: #5b7197;
  padding: 6px 9px;
  font-size: var(--font-small);
  font-weight: 550;
  border-radius: 5px;
  line-height: 1.4;
}

.status-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: var(--font-small);
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 9px;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  color: #218766;
  background: #edf9f3;
}

.status-muted {
  color: #7d889a;
  background: #f0f2f6;
}

.status-warning {
  color: #946200;
  background: #fff7e6;
}

.status-danger {
  color: #a52d3a;
  background: #fff0f2;
}

.empty-state {
  text-align: center;
  padding: 55px 20px;
}

.empty-icon {
  background: #f0f5fd;
  color: #7b99c9;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 17px;
}

.empty-state h3 {
  font-size: var(--font-section);
  font-weight: 650;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: var(--font-ui);
  color: var(--muted);
  margin: 0 auto;
  max-width: 360px;
  line-height: 1.7;
}

.empty-state.compact {
  padding: 28px 20px;
}

.empty-state.compact > .icon {
  margin-bottom: 13px;
  color: #7b99c9;
}

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

.field {
  margin-bottom: 22px;
  min-width: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.form-grid .field {
  margin-bottom: 22px;
}

.form-label {
  font-size: var(--font-small);
  font-weight: 600;
  color: #36465f;
  margin-bottom: 9px;
}

.form-control, .form-select {
  background-color: #fff;
  font-size: var(--font-body);
  line-height: 1.5;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  min-height: 3rem;
  color: #24364f;
  padding: 11px 13px;
}

.form-control::placeholder {
  color: #6b778d;
}

.form-control:focus, .form-select:focus {
  border-color: #88aff5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.0745098039);
}

textarea.form-control {
  resize: vertical;
  min-height: 94px;
}

.form-text {
  color: #6b778d;
  font-size: var(--font-small);
  line-height: 1.6;
  margin-top: 8px;
}

.optional {
  color: #6b778d;
  font-size: var(--font-small);
  font-weight: 400;
  margin-left: 5px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  background: #fcfdff;
}

.form-actions.standalone {
  border: 0;
  padding: 0;
  background: transparent;
  margin-top: 4px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6b778d;
  font-size: var(--font-small);
  line-height: 1.6;
  margin-bottom: 0;
}

.form-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

.invalid-feedback {
  font-size: var(--font-small);
  margin-top: 7px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 16px 19px;
  margin-bottom: 22px;
  font-size: var(--font-ui);
  line-height: 1.7;
  border: 1px solid transparent;
}

.notice > .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice-success {
  color: #297459;
  background: #f0faf5;
  border-color: #d6eee2;
}

.notice-error {
  color: #a7424f;
  background: #fff4f5;
  border-color: #f1dce1;
}

.notice-neutral {
  color: #5a7092;
  background: #eff5ff;
  border-color: #dfebfd;
}

.notice ul {
  padding-left: 18px;
  margin-bottom: 0;
  margin-top: 5px;
}

.back-link {
  display: inline-block;
  font-size: var(--font-small);
  font-weight: 550;
  color: #75849c;
  margin-bottom: 22px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  align-items: start;
}

.editor-main {
  min-width: 0;
}

.editor-aside {
  position: sticky;
  top: 108px;
}

.advice-card {
  padding: 26px;
}

.advice-icon {
  width: 43px;
  height: 43px;
  background: #eff5ff;
  color: #6388c5;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 19px;
}

.advice-card h2 {
  font-size: var(--font-section);
  font-weight: 650;
  margin-bottom: 9px;
}

.advice-card p, .advice-card li {
  font-size: var(--font-small);
  color: var(--muted);
  line-height: 1.8;
}

.advice-card ul {
  padding-left: 16px;
  margin: 18px 0;
}

.advice-card li {
  margin-bottom: 10px;
}

.advice-note {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.advice-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: #8295b3;
}

.advice-note p {
  margin: 0;
  font-size: var(--font-small);
}

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

.choice-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
  min-height: 60px;
}

.choice-card:hover {
  border-color: #bdd0ef;
}

.choice-card:has(input:checked) {
  background: #f5f9ff;
  border-color: #a8c5f7;
}

.choice-card input {
  flex-shrink: 0;
  margin: 0;
  width: 16px;
  height: 16px;
}

.choice-card strong {
  display: block;
  font-size: var(--font-ui);
  font-weight: 550;
}

.choice-card small {
  display: block;
  font-size: var(--font-small);
  color: #6b778d;
  margin-top: 3px;
}

.choice-card > .icon {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: #9caac0;
}

.permission-choices {
  display: grid;
  gap: 10px;
}

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

.identifier {
  font-size: var(--font-small);
  color: #8391a7;
}

.avatar-small {
  width: 32px;
  height: 32px;
  font-size: var(--font-small);
}

.two-factor-qr {
  margin-bottom: 1.5rem;
}
.two-factor-qr img {
  display: block;
  max-width: 100%;
  height: auto;
}

.two-factor-secret {
  display: block;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.two-factor-recovery-codes {
  padding-left: 1.5rem;
}
.two-factor-recovery-codes li {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.two-factor-recovery-option {
  margin-block: 1.5rem;
}

.two-factor-recovery-option .auth-form {
  margin-top: 1rem;
}

.credential-panel {
  max-width: 780px;
}

.credential-value {
  border: 1px dashed #c4d4ea;
  background: #f7faff;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: var(--font-body);
  color: #3b5376;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-status {
  font-size: var(--font-small);
  color: var(--muted);
  margin: 10px 0 0;
}

.program-section {
  scroll-margin-top: 100px;
}

.program-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.program-steps a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.program-steps a:hover {
  border-color: var(--primary);
}

.program-steps strong, .program-steps small {
  display: block;
}

.program-steps small {
  color: var(--muted);
  font-size: var(--font-small);
  margin-top: 4px;
}

.program-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--primary);
  font-weight: 700;
}

.program-help {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: var(--font-ui);
}

.program-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  max-width: 680px;
  align-items: start;
}

.program-rate-equals {
  font-size: var(--font-section-large);
  font-weight: 600;
  padding-top: 38px;
  color: var(--muted);
}

.program-preview {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  background: #f5f8ff;
}

.program-preview output {
  font-size: var(--font-section);
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.program-preview small {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.6;
  max-width: 70ch;
}

.program-save-note {
  margin-right: auto;
  color: var(--muted);
  font-size: var(--font-small);
  max-width: 60ch;
}

.program-section-heading {
  font-size: var(--font-section-large);
  margin: 32px 0 20px;
}

.program-rule-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
}

.program-rule-summary::-webkit-details-marker {
  display: none;
}

.program-rule-title {
  display: grid;
  gap: 6px;
  flex: 1;
}

.program-rule-title > strong {
  font-size: var(--font-section);
}

.program-rule-title > span {
  color: var(--muted);
  font-size: var(--font-ui);
}

.program-rule-metrics, .program-rule-edit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-rule-award {
  display: grid;
  gap: 3px;
}

.program-rule-award small {
  color: var(--muted);
  font-size: var(--font-small);
}

.program-rule-edit {
  color: var(--primary);
  font-size: var(--font-ui);
  font-weight: 600;
}

.program-rule-edit .icon {
  width: 18px;
  height: 18px;
}

.program-rule-open, .program-rule[open] .program-rule-closed {
  display: none;
}

.program-rule[open] .program-rule-open {
  display: inline;
}

.program-rule[open] .program-rule-edit .icon {
  transform: rotate(180deg);
}

.program-rule[open] > summary {
  border-bottom: 1px solid var(--line);
}

.program-rule-limit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 24px;
}

.program-rule-limit .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.program-rule-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.program-bonus-toggle {
  padding-top: 34px;
}

.program-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.program-switch input[type=checkbox] {
  appearance: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  border: 1px solid #a8b4c7;
  border-radius: 20px;
  background: #e7ecf3;
  cursor: pointer;
}

.program-switch input[type=checkbox]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 36, 59, 0.1882352941);
}

.program-switch input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.program-switch input:checked::after {
  left: 21px;
}

.program-advanced summary {
  color: var(--primary);
  cursor: pointer;
  font-size: var(--font-ui);
  margin-bottom: 16px;
}

.program-steps a:focus-visible, .program-rule-summary:focus-visible,
.program-advanced summary:focus-visible, .program-switch input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

@media (max-width: 1200px) {
  .program-steps {
    grid-template-columns: 1fr;
  }
  .program-rule-summary {
    flex-wrap: wrap;
    gap: 16px;
  }
  .program-rule-title {
    flex-basis: 100%;
  }
  .program-rule-edit {
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .program-rate, .program-rule-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .program-rate-equals {
    display: none;
  }
  .program-bonus-toggle {
    padding-top: 0;
    margin-bottom: 24px;
  }
  .program-rule-summary {
    padding: 22px;
  }
  .program-rule-metrics {
    flex-wrap: wrap;
  }
}
.activity-region-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.5rem;
}
.activity-region-grid label {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.4rem;
  min-width: 3.5rem;
}

.activity-question {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
}
.activity-question label {
  display: block;
  margin-bottom: 0.75rem;
}

.collection-form fieldset {
  min-width: 0;
}
.collection-form .collection-details-fields {
  gap: 1rem;
}
.collection-form .collection-details-fields .field {
  margin-bottom: 0;
}
.collection-form .collection-option-fields {
  display: grid;
  gap: 1.5rem;
  padding-top: 1rem;
}
.collection-form .collection-options {
  margin-top: 1.5rem;
}
.collection-form .collection-options summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
}

.collection-editor .collection-search-fields,
.collection-editor .collection-result-fields {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.collection-editor .collection-search-fields > div,
.collection-editor .collection-result-fields > div {
  flex: 1 1 14rem;
  min-width: 0;
}
.collection-editor .collection-result-fields {
  margin-top: 1.5rem;
}
.collection-editor .collection-feedback {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.6;
  margin: 0;
}
.collection-editor .collection-feedback:not(:empty) {
  margin: 0.75rem 0;
}
.collection-editor .activity-collection-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.collection-editor .activity-collection-items li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}
.collection-editor .activity-collection-items [data-item-label] {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.collection-editor .collection-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.collection-editor .collection-shortcode {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.collection-editor .collection-shortcode code {
  overflow-wrap: anywhere;
}

.trivia-form fieldset,
.trivia-form [data-trivia-panel] {
  min-width: 0;
}
.trivia-form .panel-body > .form-label:not(:first-child),
.trivia-form [data-choice-widget] > .form-label {
  margin-top: 1.25rem;
}
.trivia-form [data-choice-widget] {
  margin: 1.5rem 0;
}
.trivia-form .activity-question {
  background: #fbfcfe;
  padding: 1.5rem;
}
.trivia-form .activity-question legend {
  font-size: var(--font-small);
  font-weight: 700;
  padding: 0 0.5rem;
}
.trivia-form .activity-question label {
  font-weight: 600;
  margin-bottom: 1rem;
}
.trivia-form .activity-question .form-control,
.trivia-form .activity-question .form-select {
  margin-top: 0.5rem;
}
.trivia-form .trivia-actions {
  margin-top: 1rem;
}
.trivia-form .trivia-actions [data-trivia-next],
.trivia-form .trivia-actions [data-trivia-save] {
  margin-left: auto;
}
.trivia-form .trivia-score-fields,
.trivia-form .trivia-group-search {
  display: grid;
  gap: 0.75rem;
}
.trivia-form .trivia-score-fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.trivia-form .trivia-group-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.trivia-form .trivia-group-search label {
  grid-column: 1/-1;
  margin-bottom: 0;
}

.content-library-table .table-primary-link {
  display: inline-block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.content-library-table .content-library-meta {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.content-library-table .content-library-meta span {
  display: block;
}
.content-library-table .status-badge {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .collection-editor .collection-search-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
  .collection-editor .collection-search-fields > div:first-child {
    grid-column: 1/-1;
  }
  .collection-editor .collection-result-fields {
    align-items: stretch;
    flex-direction: column;
  }
  .collection-editor .collection-result-fields > div {
    flex: none;
  }
  .collection-editor .activity-collection-items li {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }
  .content-library-table.workspace-table > thead > tr > th,
  .content-library-table.workspace-table > tbody > tr > td {
    padding-inline: 12px;
  }
}
.activity-step-form,
.group-activities {
  --group-inset: 24px;
}

.activity-step-form {
  margin-bottom: 24px;
}
.activity-step-form .video-steps {
  margin-top: 0;
}
.activity-step-form .panel-body {
  padding: var(--group-inset);
}
.activity-step-form .panel {
  margin-bottom: 0;
}
.activity-step-form .form-actions {
  margin-top: 1rem;
  justify-content: space-between;
}
.activity-step-form .form-actions > .btn-primary {
  margin-left: auto;
}

.group-activities .panel-header {
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 16px var(--group-inset);
}
.group-activities h2 {
  margin: 0;
}

.group-activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.group-activity-list,
.group-activity-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group-activity-list > li {
  display: grid;
  align-items: start;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px var(--group-inset);
}
.group-activity-list > li + li {
  border-top: 1px solid var(--line);
}
.group-activity-list > li .status-badge {
  white-space: nowrap;
}

.group-activity-details a {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.group-activity-details a:hover {
  text-decoration: underline;
}

.group-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.875rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: var(--font-small);
}

@media (max-width: 767px) {
  .activity-step-form,
  .group-activities {
    --group-inset: 16px;
  }
  .group-activity-list > li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .group-activity-list > li .status-badge {
    grid-column: 2;
    justify-self: start;
  }
}
@media (min-width: 1201px) {
  .trivia-form.activity-step-form .video-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .trivia-form.activity-step-form .video-step:last-child {
    grid-column: 1/-1;
    align-items: center;
    flex-direction: row;
  }
}
@media (max-width: 767px) {
  .trivia-form .panel-body,
  .trivia-form .activity-question {
    padding: 1rem;
  }
  .trivia-form .trivia-group-search {
    grid-template-columns: minmax(0, 1fr);
  }
}
.video-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.video-step {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  gap: 0.875rem;
  min-width: 0;
  padding: 1.125rem;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.video-step[href]:hover {
  background: #f8faff;
  border-color: #b8cdf5;
  color: var(--primary);
}
.video-step:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.video-step[aria-disabled=true] {
  background: #f8f9fc;
  color: var(--muted);
}
.video-step[aria-current=step] {
  background: #eff5ff;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary);
}
.video-step[aria-current=step] .video-step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.video-step-number {
  align-items: center;
  background: #f3f5f9;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  font-size: var(--font-ui);
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}
.video-step-number .icon {
  height: 1.25rem;
  width: 1.25rem;
}

.video-step.is-saved:not([aria-current=step]) .video-step-number {
  background: #edf9f3;
  border-color: #ccebdc;
  color: #218766;
}

.video-step-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.video-step-copy small {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.4;
}

.video-step-label {
  font-size: var(--font-ui);
  font-weight: 650;
  line-height: 1.4;
}

.form-actions.video-form-actions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
}
.form-actions.video-form-actions .video-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}
.form-actions.video-form-actions .video-back-action .icon {
  transform: rotate(180deg);
}
.form-actions.video-form-actions > .btn {
  flex: 0 0 auto;
}

.calendar-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .video-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .video-steps {
    gap: 0.5rem;
  }
  .video-step {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem;
  }
  .form-actions.video-form-actions {
    padding: 1rem;
  }
  .form-actions.video-form-actions .video-save-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    width: 100%;
  }
}
.video-create-form .panel + .panel {
  margin-top: 1rem;
}
.video-create-form .video-save-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 767px) {
  .video-create-form .video-save-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .video-create-form .video-source-options {
    gap: 0.75rem;
  }
}
.video-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.video-filters > div {
  flex: 1;
  min-width: 12rem;
}

.video-preview {
  background: #111827;
  border-radius: 0.75rem;
  display: block;
  margin: 1.5rem 0 0.5rem;
  max-height: 28rem;
  width: 100%;
}

.video-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.video-schedule {
  margin-top: 1.5rem;
}
.video-schedule summary {
  cursor: pointer;
  margin-bottom: 1rem;
}

.video-review {
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 3fr);
}
.video-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.state-chip {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 2rem;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
}
.state-chip.is-invalid {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.state-chip button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.video-upload-progress {
  margin-top: 1rem;
}
.video-upload-progress progress {
  display: block;
  width: 100%;
}

.video-library .video-filters {
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  gap: 1rem 1.25rem;
}
.video-library .video-filters > .video-filter-search {
  flex: 2;
}
.video-library .video-filters > .video-filter-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.content-library-table.video-library-table .table-primary-link {
  display: flex;
  gap: 0.5rem;
}
.content-library-table.video-library-table .table-primary-link .icon {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .video-library .video-filters {
    padding: 1rem;
  }
  .video-library .video-filters > div,
  .video-library .video-filters > .video-filter-search {
    flex-basis: 100%;
    min-width: 0;
  }
}
.video-status-paused {
  background: #fff7e6;
  color: #946200;
}

.video-review-readiness {
  align-items: center;
  background: #f0faf5;
  border: 1px solid #d6eee2;
  border-radius: var(--radius);
  color: #216449;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
}
.video-review-readiness h2 {
  font-size: var(--font-section);
  margin: 0 0 0.35rem;
}
.video-review-readiness p {
  line-height: 1.6;
  margin: 0;
}
.video-review-readiness.needs-attention {
  background: #fffbef;
  border-color: #f2e4b7;
  color: #805b14;
}

.video-review-readiness-icon {
  align-items: center;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  justify-content: center;
}
.video-review-readiness-icon .icon {
  height: 1.5rem;
  width: 1.5rem;
}

.video-review-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 1fr);
}
.video-review-layout .video-review-section-title {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}
.video-review-layout .video-review-section-title h2 {
  margin: 0;
}
.video-review-layout .panel-header-inline {
  flex-wrap: wrap;
}
.video-review-layout .panel-body > :last-child {
  margin-bottom: 0;
}
.video-review-layout .video-review {
  gap: 1rem 1.5rem;
  margin-bottom: 0;
}
.video-review-layout .video-review dt {
  color: var(--muted);
  font-size: var(--font-ui);
  font-weight: 500;
}
.video-review-layout .video-review dd {
  color: var(--ink);
  line-height: 1.6;
}

.video-review-name {
  color: var(--ink);
  font-size: var(--font-section-large);
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}

.video-review-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.video-review-detail {
  color: var(--muted);
  display: block;
  font-size: var(--font-small);
  margin-top: 0.25rem;
}

.video-review-reward strong {
  color: var(--primary);
  font-size: var(--font-page);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.video-review-reward span {
  color: var(--muted);
  margin-left: 0.35rem;
}
.video-review-reward p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.video-review-approval {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 1.5rem;
  padding: 1rem;
}
.video-review-approval p {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.video-review-approval-label {
  align-items: start;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  line-height: 1.6;
}
.video-review-approval-label input {
  accent-color: var(--primary);
  flex-shrink: 0;
  height: 1.125rem;
  margin-top: 0.25rem;
  width: 1.125rem;
}

.video-review-wordpress h2 {
  font-size: var(--font-section);
}
.video-review-wordpress p {
  color: var(--muted);
  line-height: 1.6;
}
.video-review-wordpress input {
  font-family: monospace;
  font-size: var(--font-small);
}

@media (max-width: 1200px) {
  .video-review-layout {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .video-review-readiness {
    align-items: start;
    padding: 1rem;
  }
  .video-review-layout .video-review {
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr);
  }
  .video-review-layout .video-review dd + dt {
    margin-top: 0.75rem;
  }
}
.calendar-form .video-step {
  color: var(--primary);
  text-align: left;
}
.calendar-form .video-step:not([aria-current=step]) {
  border-color: #c8d7f3;
}
.calendar-form .video-step:hover {
  background: #eff5ff;
  border-color: #9ebcef;
}

.calendar-form .video-step-number {
  background: #eff5ff;
  border-color: #c8d7f3;
  color: var(--primary);
}

.calendar-bulk {
  align-items: center;
  background: #f0f6ff;
  border: 1px solid #d5e4fc;
  border-radius: 12px;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.calendar-bulk-copy h3,
.calendar-points-heading h3 {
  font-size: var(--font-body);
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.calendar-bulk-copy p,
.calendar-points-heading p {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.6;
  margin: 0;
}

.calendar-bulk-controls {
  align-items: end;
  display: flex;
  gap: 0.75rem;
}
.calendar-bulk-controls > div {
  width: 10rem;
}
.calendar-bulk-controls .form-label {
  margin-bottom: 0.5rem;
}
.calendar-bulk-controls .btn {
  white-space: nowrap;
}

.calendar-bulk-status {
  color: var(--primary-hover);
  font-size: var(--font-small);
  grid-column: 1/-1;
  margin: 0;
}
.calendar-bulk-status:empty {
  display: none;
}

.calendar-points-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.calendar-points-heading .calendar-points-summary {
  background: #eff5ff;
  border-radius: 8px;
  color: var(--primary-hover);
  font-weight: 600;
  padding: 0.625rem 0.875rem;
}
.calendar-points-heading .calendar-points-summary:empty {
  display: none;
}

.calendar-points-error {
  color: #b42335;
  font-size: var(--font-small);
  margin: 0 0 1rem;
}
.calendar-points-error:empty {
  display: none;
}

.calendar-months {
  display: grid;
  gap: 2rem;
}

.calendar-month h3 {
  font-size: var(--font-section);
  font-weight: 650;
  margin: 0 0 1.25rem;
}

.calendar-weekdays,
.calendar-day-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--muted);
  font-size: var(--font-small);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}

.calendar-day {
  background: white;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 1rem 0.75rem;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.calendar-day:focus-within {
  background: #f7faff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.0784313725);
}
.calendar-day time {
  align-items: baseline;
  display: flex;
  gap: 0.375rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calendar-day .form-control {
  border-color: #c8d7f3;
  font-size: var(--font-ui);
  min-width: 0;
  padding: 0.625rem 0.5rem;
}

.calendar-day-number {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1;
}

.calendar-day-weekday,
.calendar-day-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.calendar-day-label {
  margin-bottom: 0.5rem;
}

@media (max-width: 1200px) {
  .calendar-weekdays,
  .calendar-day-spacer {
    display: none;
  }
  .calendar-day-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .calendar-bulk {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .calendar-points .panel-body {
    padding: 1.25rem;
  }
  .calendar-bulk {
    padding: 1.125rem;
  }
  .calendar-bulk-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .calendar-bulk-controls > div {
    width: 100%;
  }
  .calendar-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.calendar-bonuses-intro {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 48rem;
}

.calendar-bonus-options {
  display: grid;
  gap: 1.5rem;
  max-width: 54rem;
}

.calendar-bonus-card {
  border: 1px solid #d5e4fc;
  border-radius: 12px;
  margin: 0;
  min-width: 0;
  padding: 1.25rem 1.5rem 1.5rem;
}
.calendar-bonus-card legend {
  color: var(--ink);
  float: none;
  font-size: var(--font-body);
  font-weight: 650;
  margin: 0;
  padding: 0 0.5rem;
  width: auto;
}

.calendar-bonus-description {
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.calendar-bonus-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.calendar-bonus-fields > div {
  max-width: 100%;
  width: 12rem;
}
.calendar-bonus-fields .form-label {
  font-size: var(--font-small);
  margin-bottom: 0.5rem;
}
.calendar-bonus-fields .form-control {
  font-size: var(--font-ui);
  padding: 0.625rem 0.75rem;
}

.calendar-bonus-example {
  background: #f0f6ff;
  border-radius: 8px;
  color: var(--primary-hover);
  font-size: var(--font-small);
  line-height: 1.6;
  margin: 0 0 0.875rem;
  padding: 0.875rem 1rem;
}

.calendar-bonus-help {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.6;
  margin: 0;
}

.activity-create-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.activity-create-actions .btn {
  gap: 0.625rem;
  white-space: nowrap;
}
.activity-create-actions .icon {
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
}

@media (max-width: 767px) {
  .activity-create-actions {
    align-items: stretch;
    width: 100%;
  }
  .activity-create-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
.points-report-filters {
  align-items: end;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  padding: 1.25rem 1.75rem;
}

.points-report-filters .field {
  margin: 0;
}

.points-report-filters .form-label {
  margin-bottom: 0.375rem;
}

.points-report-date-range {
  grid-column: span 2;
  min-width: 0;
}

.points-report-date-picker {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.points-report-date-error {
  color: var(--bs-form-invalid-color);
  font-size: var(--font-small);
}

.points-report-filters .form-control,
.points-report-filters .form-select,
.points-report-page-size .form-select {
  font-size: var(--font-small);
  min-height: 2.375rem;
  padding-bottom: 0.375rem;
  padding-top: 0.375rem;
}

.points-report-filters .form-select,
.points-report-page-size .form-select {
  padding-right: 2.25rem;
}

.points-report-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.points-report-page-size {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--font-small);
  gap: 0.5rem;
}

.points-report-page-size .form-select {
  width: auto;
}

.points-report-table > tbody > tr > td {
  padding: 0.9rem 1.5rem;
}

.points-report-table a {
  font-weight: 600;
  text-decoration: none;
}

.points-report-table a:hover {
  text-decoration: underline;
}

.points-report-table .points-report-number {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.redemptions-report-reward {
  width: 26%;
  min-width: 16rem;
}

.points-report-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}

@media (max-width: 767px) {
  .points-report-filters {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    padding: 1rem;
  }
  .points-report-date-range {
    grid-column: 1/-1;
  }
}
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.overview-metric {
  margin-bottom: 0;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.75rem);
}

.overview-metric h2 {
  color: var(--ink);
  font-size: var(--font-section);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.overview-metric-value {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.overview-metric-value strong {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.overview-metric-icon {
  align-items: center;
  background: #eff5ff;
  border-radius: 0.75rem;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  justify-content: center;
}

.overview-metric-icon-active {
  background: #e8f7ef;
  color: #15803d;
}

.overview-metric-icon-reward {
  background: #f2edff;
  color: #6d28d9;
}

.overview-metric-icon .icon {
  height: 1.125rem;
  width: 1.125rem;
}

.overview-metric p,
.overview-note {
  color: var(--muted);
  font-size: var(--font-small);
  margin: 0.375rem 0 0;
}

.overview-chart-panel {
  margin-bottom: 1rem;
}

.overview-insights-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.overview-insights-grid > .panel {
  min-width: 0;
}

.overview-activities-table {
  margin: 0;
  width: 100%;
}

.overview-details h3 {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.overview-activities-table th:last-child,
.overview-activities-table td:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.overview-chart {
  height: 17rem;
  padding: 0.75rem 1.5rem;
  position: relative;
}

.overview-engagement-chart {
  height: 18rem;
}

.overview-note {
  padding: 1rem 1.5rem;
}

.overview-details {
  border-top: 1px solid #e8edf5;
  padding: 1rem 1.5rem 1.25rem;
}

.overview-details dl {
  display: grid;
  gap: 0.625rem;
  margin: 0.875rem 0 0;
}

.overview-details dl > div {
  display: grid;
  gap: 0.25rem 0.75rem;
  grid-template-columns: minmax(7rem, auto) 1fr;
}

.overview-details dt {
  color: var(--ink);
  font-size: var(--font-small);
  font-weight: 600;
}

.overview-details dd {
  color: var(--muted);
  font-size: var(--font-small);
  margin: 0;
}

@media (max-width: 600px) {
  .overview-chart {
    height: 15rem;
    padding: 0.5rem;
  }
  .overview-details dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.workspace-footer {
  padding: 18px 38px;
  border-top: 1px solid var(--line);
  color: #6b778d;
  font-size: var(--font-small);
  display: flex;
  justify-content: space-between;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 20px rgba(23, 36, 59, 0.1450980392);
}

.skip-link:focus {
  top: 12px;
}

.mobile-sidebar-close,
.mobile-sidebar-toggle {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(16, 31, 58, 0.4);
  border: 0;
}

/* Account access */
.auth-body {
  background: white;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px;
  position: relative;
}

.auth-panel {
  width: 100%;
  max-width: 28rem;
  padding: 40px 0;
}

.auth-panel h2 {
  font-size: var(--font-page);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

.auth-symbol {
  background: #eff5ff;
  color: #477ed1;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
}

.auth-symbol .icon {
  width: 22px;
  height: 22px;
}

.auth-panel .eyebrow {
  font-size: var(--font-small);
  margin-bottom: 12px;
}

.auth-intro {
  color: #6b778d;
  font-size: var(--font-body);
  line-height: 1.8;
  margin-bottom: 32px;
}

.auth-form .field {
  margin-bottom: 23px;
}

.auth-form .form-control {
  min-height: 48px;
}

.auth-form .form-label {
  font-size: var(--font-small);
}

.auth-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 7px;
  justify-content: space-between;
  padding-inline: 18px;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-small);
  margin: -3px 0 25px;
}

.auth-form-links span {
  color: #6b778d;
}

.auth-form-links a {
  font-weight: 600;
}

.auth-help {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 25px;
  margin-top: 33px;
  border-top: 1px solid var(--line);
}

.auth-help > .icon {
  color: #9aaac4;
  width: 18px;
  height: 18px;
}

.auth-help p {
  font-size: var(--font-small);
  color: #5f6e84;
  font-weight: 550;
  margin: 0;
  line-height: 1.9;
}

.auth-help span {
  color: #6b778d;
  font-weight: 400;
}

.auth-back {
  display: block;
  margin-top: 25px;
  font-size: var(--font-small);
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  top: 2.25rem;
  right: 6px;
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

/* Center account access pages. */
.auth-centered {
  background: #f6f9fe;
}

.auth-centered .auth-shell {
  display: block;
}

.auth-centered .auth-form-side {
  min-height: 100vh;
  justify-content: center;
  padding: 32px 24px;
  background: transparent;
}

.auth-centered .auth-panel {
  max-width: 28rem;
  padding: 40px;
  background: white;
  border-radius: 13px;
  box-shadow: 0 12px 32px rgba(16, 31, 57, 0.08);
}

.auth-centered .auth-symbol {
  margin-inline: auto;
}

.auth-centered .auth-panel > .eyebrow,
.auth-centered .auth-panel > h2,
.auth-centered .auth-intro {
  text-align: center;
}

.auth-centered .auth-panel > .eyebrow {
  display: block;
}

@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .page-content {
    padding-inline: 28px;
  }
  .topbar {
    padding-inline: 28px;
  }
}
@media (max-width: 1023px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 20px;
  }
  .sidebar .brand {
    margin-bottom: 20px;
  }
  .workspace-main {
    width: 100%;
    margin-left: 0;
  }
  .dashboard-body[data-navigation-ready] .sidebar {
    position: fixed;
    width: min(var(--sidebar-width), 100vw);
    padding: 30px 18px;
    transform: translateX(-100%);
  }
  .dashboard-body[data-navigation-ready].sidebar-open .sidebar {
    transform: translateX(0);
  }
  .dashboard-body[data-navigation-ready] .sidebar .brand {
    margin: 0 36px 28px 0;
    white-space: normal;
  }
  .dashboard-body[data-navigation-ready] .mobile-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .dashboard-body[data-navigation-ready] .mobile-sidebar-close {
    position: absolute;
    top: 36px;
    right: 18px;
    display: inline-flex;
    color: #b6c2d6;
  }
  .mobile-sidebar-close:hover {
    background: #243752;
    color: #fff;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .sidebar-open {
    overflow: hidden;
  }
  .auth-form-side {
    padding-inline: 32px;
  }
}
@media (max-width: 767px) {
  .topbar {
    min-height: 4.5rem;
    height: auto;
    padding-inline: 20px;
  }
  .topbar-context {
    gap: 12px;
  }
  .account-identity {
    display: none;
  }
  .account-chevron {
    margin-left: 0;
  }
  .page-content {
    padding: 26px 20px 36px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: var(--font-page-mobile);
  }
  .page-heading p {
    font-size: var(--font-body);
  }
  .panel-header {
    padding: 22px;
  }
  .panel-body {
    padding: 24px 22px;
  }
  .panel-header-inline {
    flex-wrap: wrap;
  }
  .form-grid, .choice-grid, .editor-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .editor-aside {
    position: static;
    margin-top: 28px;
  }
  .form-actions {
    padding: 18px 22px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .form-actions.standalone {
    padding: 0;
  }
  .workspace-footer {
    padding-inline: 20px;
  }
  .workspace-footer span {
    display: none;
  }
  .workspace-table > thead > tr > th, .workspace-table > tbody > tr > td {
    padding-inline: 20px;
  }
  .auth-shell {
    display: block;
  }
  .auth-form-side {
    min-height: 100vh;
    padding: 25px 28px 65px;
    justify-content: flex-start;
    background: linear-gradient(#f6f9fe 0%, white 30%);
  }
  .auth-panel {
    padding-block: 20px 30px;
  }
  .auth-panel h2 {
    font-size: var(--font-page-mobile);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
h1, h2, .page-heading p {
  overflow-wrap: anywhere;
}
