/**
 * Shared Component Styles
 * Reusable UI: section nav, snackbar, fullscreen modal, confirm dialogs,
 * buttons, cards, forms, login/error modals, What's New modal, utility classes.
 */

/* ==================== */
/* SECTION NAVIGATION   */
/* ==================== */

.section-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: calc(1.5rem + 80px) 2rem 0.25rem;
  margin-left: 60px;
}

@media (max-width: 992px) {
  .section-nav {
    margin-left: 0;
  }
}

.section-nav-inner {
  /* Kept in sync with .dashboard-content so the top section-nav aligns
   * visually with the dashboard content beneath it on wide screens. */
  max-width: 2000px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.breadcrumb-nav a {
  color: var(--dark-grey);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.breadcrumb-nav a:hover {
  color: var(--dark-blue);
}

.breadcrumb-nav .breadcrumb-separator {
  color: var(--dark-grey);
  margin: 0 0.125rem;
}

.breadcrumb-nav .breadcrumb-current {
  color: var(--darker-grey);
}

.section-nav h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 0 -1.25rem;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.section-tabs li {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-tabs li a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--darker-grey);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.section-tabs li a:hover {
  color: var(--dark-blue);
  border-bottom-color: var(--light-blue);
}

.section-tabs li a.active {
  color: var(--dark-blue);
  border-bottom-color: var(--light-blue);
}

.section-tabs li.disabled a {
  color: var(--dark-grey);
  pointer-events: none;
  cursor: default;
}

.section-tabs li.disabled a:hover {
  color: var(--dark-grey);
  border-bottom-color: transparent;
}

/* ==================== */
/* SNACKBAR             */
/* ==================== */
.snackbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.snackbar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Success snackbar (AAA: #166534 on #dcfce7 = 7.2:1) */
.snackbar wa-callout {
  --snackbar-bg: var(--success-light);
  --snackbar-fg: var(--success-dark);
  background: var(--snackbar-bg);
  color: var(--snackbar-fg);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border-radius: 0.5rem;
  border: none;
  --wa-panel-border-width: 0;
  gap: 0.75rem;
}

.snackbar wa-callout::part(icon) {
  color: var(--snackbar-fg);
}

.snackbar wa-callout > [slot='icon'] {
  margin-inline-end: 0.125rem !important;
}

.snackbar wa-callout::part(message) {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Warning snackbar (AAA: #92400e on #fffbeb = 7.1:1) */
.snackbar wa-callout[variant="warning"] {
  --snackbar-bg: var(--warning-light);
  --snackbar-fg: var(--warning-dark);
  background: var(--snackbar-bg);
  color: var(--snackbar-fg);
}

/* Danger snackbar (AAA: #7f1d1d on #fef2f2 = 9.5:1) */
.snackbar wa-callout[variant="danger"] {
  --snackbar-bg: var(--red-light);
  --snackbar-fg: var(--red-dark);
  background: var(--snackbar-bg);
  color: var(--snackbar-fg);
}

.snackbar wa-callout[variant="neutral"] {
  --snackbar-bg: var(--light-blue-accent);
  --snackbar-fg: var(--dark-blue);
  background: var(--snackbar-bg);
  color: var(--snackbar-fg);
}

.snackbar wa-callout[variant="danger"]::part(icon) {
  color: var(--snackbar-fg);
}

.snackbar wa-callout[variant="warning"]::part(icon),
.snackbar wa-callout[variant="neutral"]::part(icon) {
  color: var(--snackbar-fg);
}

.snackbar-message {
  white-space: nowrap;
}

.snackbar-action {
  color: var(--snackbar-fg);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1.5px solid var(--snackbar-fg);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.snackbar-action:hover {
  background: var(--snackbar-fg);
  color: #ffffff;
  text-decoration: none;
}

/* ==================== */
/* FULLSCREEN MODAL     */
/* ==================== */

.fullscreen-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 53, 90, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s linear;
}

.fullscreen-modal-backdrop.show,
.fullscreen-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-modal-backdrop.is-entering,
.fullscreen-modal-backdrop.is-closing {
  opacity: 0;
}

.fullscreen-modal {
  position: fixed;
  inset: 2%;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-grey) 100%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 80px rgba(18, 53, 90, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s linear;
}

.fullscreen-modal.show,
.fullscreen-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fullscreen-modal.is-entering,
.fullscreen-modal.is-closing {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

.fullscreen-modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Wizard header - stays fixed at top of modal */
.wizard-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Close button for wizard header */
.btn-close-wizard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--darker-grey);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-close-wizard:hover {
  background: var(--light-grey);
  color: var(--dark);
}

/* Confirmation Dialog */
.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 53, 90, 0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s linear;
}

.confirm-dialog-overlay.show,
.confirm-dialog-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-dialog-overlay.is-entering,
.confirm-dialog-overlay.is-closing {
  opacity: 0;
}

.confirm-dialog {
  background: white;
  border-radius: 1.25rem;
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(18, 53, 90, 0.2);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.confirm-dialog-overlay.show .confirm-dialog,
.confirm-dialog-overlay.is-open .confirm-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confirm-dialog-overlay.is-entering .confirm-dialog,
.confirm-dialog-overlay.is-closing .confirm-dialog {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}

.confirm-dialog-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.confirm-dialog-icon i {
  color: var(--red);
}

.confirm-dialog h4 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.confirm-dialog p {
  text-align: center;
  color: var(--darker-grey);
  margin-bottom: 1.5rem;
}

.confirm-dialog-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--darker-grey);
  cursor: pointer;
  margin-bottom: 1rem;
  justify-content: center;
}

.confirm-dialog-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.confirm-dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* Inline export checkbox (outline viewer footer) */
.export-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark-grey);
  white-space: nowrap;
  margin-bottom: 0;
}

.export-inline-checkbox input[type="checkbox"] {
  width: 0.9375rem;
  height: 0.9375rem;
  cursor: pointer;
  accent-color: var(--light-blue);
}

.btn-danger {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-cancel {
  background: white;
  color: var(--dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cancel:hover {
  border-color: var(--dark);
  background: var(--light-grey);
}

/* Editable title in outline viewer (curriculum mode) */
.viewer-title-editable {
  cursor: text;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s ease;
  outline: none;
  border-radius: 2px;
  padding-bottom: 2px;
  position: relative;
  display: inline-block;
}
.viewer-title-editable::after {
  /* Lucide pencil-line icon as inline SVG */
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: var(--dark-grey);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z'/%3E%3Cpath d='m15 5 3 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z'/%3E%3Cpath d='m15 5 3 3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.viewer-title-editable:hover::after {
  opacity: 0.6;
}
.viewer-title-editable:focus::after {
  opacity: 0;
}
.viewer-title-editable:hover {
  border-bottom-color: var(--light-blue);
}
.viewer-title-editable:focus {
  border-bottom-color: var(--purple);
}

.viewer-title-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Client name input in viewer */
.viewer-client-name-wrap {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  max-width: 500px;
}
.viewer-client-name-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}
.viewer-client-name-wrap::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  background: var(--dark-grey);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z'/%3E%3Cpath d='m15 5 3 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z'/%3E%3Cpath d='m15 5 3 3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.viewer-client-name-wrap:hover::after {
  opacity: 0.6;
}
.viewer-client-name-wrap:focus-within::after {
  opacity: 0;
}
.viewer-client-name-input {
  border: none;
  border-bottom: 1px dashed transparent;
  background: transparent;
  font-size: 1rem;
  color: var(--dark);
  padding: 0.25rem 0;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}
.viewer-client-name-input:hover {
  border-bottom-color: var(--light-blue);
}
.viewer-client-name-input:focus {
  border-bottom-color: var(--purple);
}
.viewer-client-name-input::placeholder {
  color: var(--dark-grey);
  opacity: 1;
}

/* Curriculum actions zone (regenerate + delete) */
.curriculum-actions-zone {
  padding: 0 1rem 1rem;
}
.curriculum-actions-zone .btn-ai-outline {
  flex-shrink: 0;
}

.delete-curriculum-zone {
  margin-top: 1rem;
}

.delete-curriculum-zone .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Status Change Confirmation Dialog */
.status-change-dialog {
  text-align: center;
}

.status-change-dialog .confirm-dialog-icon {
  background: rgba(34, 197, 94, 0.1);
}

.status-change-dialog.unpublish .confirm-dialog-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* Save Confirmation Dialog */
.save-confirm-dialog .confirm-dialog-icon {
  background: rgba(32, 152, 208, 0.1);
}

.save-confirm-dialog .confirm-dialog-icon i {
  color: var(--light-blue);
}

.save-confirm-dialog .btn-ai-primary {
  background: linear-gradient(135deg, var(--light-blue) 0%, #1976D2 100%);
}

.save-confirm-dialog .btn-ai-primary:active,
.save-confirm-dialog .btn-ai-primary:focus {
  background: linear-gradient(135deg, #1976D2 0%, #1976D2 100%);
}

.save-confirm-dialog .confirm-dialog-actions {
  flex-direction: column-reverse;
}

.status-change-course-info {
  background: var(--light-grey);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.status-change-course-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark-blue);
}

.btn-confirm {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-confirm:hover {
  background: #16a34a;
}

.btn-confirm.btn-publish {
  background: var(--success);
}

.btn-confirm.btn-publish:hover {
  background: #16a34a;
}

.btn-confirm.btn-warning,
.btn-confirm.btn-unpublish {
  background: var(--warning);
  color: #fff;
}

.btn-confirm.btn-warning:hover,
.btn-confirm.btn-unpublish:hover {
  background: #d97706;
  color: #fff;
}

.btn-confirm.btn-warning:focus,
.btn-confirm.btn-warning:active,
.btn-confirm.btn-unpublish:focus,
.btn-confirm.btn-unpublish:active {
  color: #fff;
}

/* ==================== */
/* BUTTON STYLES        */
/* ==================== */

.btn-ai-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7B1FA2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.btn-ai-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-ai-primary:active,
.btn-ai-primary:focus {
  transform: translateY(0);
  background: linear-gradient(135deg, #7B1FA2 0%, #7B1FA2 100%);;
}

.btn-ai-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ai-secondary {
  background: white;
  color: var(--dark-blue);
  border: 2px solid var(--border);
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-ai-secondary:hover {
  border-color: var(--light-blue);
  background: var(--light-grey);
  color: var(--dark-blue);
}

.btn-ai-outline {
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--border);
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-ai-outline:hover {
  border-color: var(--dark-blue);
  background: var(--light-grey);
}

.btn-ai-small {
  padding: .75rem 1.25rem;
  font-size: 0.875rem;
}

.inline-link {
  color: var(--purple);
  text-decoration: underline;
  cursor: pointer;
}

.inline-link:hover {
  color: var(--purple-dark);
}

.btn-ai-sm {
  padding: .625rem 1.5rem;
  font-size: .875rem;
}

/* Card Styles */
.custom-card {
  background: white;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Status badge — shared across dashboard and wizard */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Published Badge - Green (AAA: #166534 on #dcfce7 = 7.2:1) */
.status-badge.published {
  background: #dcfce7;
  color: #166534;
}

/* Draft Badge - Amber (AAA: #78350f on #fef3c7 = 8.1:1) */
.status-badge.draft {
  background: #fef3c7;
  color: #78350f;
}

/* Outline Badge - Blue (AAA: #1e40af on #dbeafe = 7.5:1) */
.status-badge.outline {
  background: #dbeafe;
  color: #1e40af;
}

/* Textarea */
.custom-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: 'Public Sans', sans-serif;
  resize: none;
  transition: border-color 0.2s ease;
}

.custom-textarea:focus {
  outline: none;
  border-color: var(--light-blue);
}

/* Tags */
.meta-tag {
  padding: 0.1875rem 0.5rem;
  background: var(--light-grey);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Modal Overrides */
.modal-backdrop {
  z-index: 1190;
}

.modal-content {
  border-radius: 1.5rem;
  border: none;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0 1.5rem 1.5rem;
  justify-content: space-between;
}

/* Utility */
.text-purple { color: var(--purple) !important; }
.text-light-blue { color: var(--light-blue) !important; }
.text-dark-blue { color: var(--dark-blue) !important; }
.bg-light-grey { background: var(--light-grey) !important; }

/* ==================== */
/* LOGIN MODAL          */
/* ==================== */

.login-dialog {
  max-width: 360px;
}

.login-dialog .confirm-dialog-icon {
  background: rgba(32, 152, 208, 0.1);
}

.login-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: var(--red);
  font-size: 0.875rem;
  text-align: center;
}

.login-btn {
  width: 100%;
}

/* Google OAuth Sign-In Button */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-login-btn:hover {
  background: #f8f9fa;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border-color: #c6c8cc;
}

.google-login-btn:active {
  background: #f1f3f4;
}

.google-login-btn .google-icon {
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--dark-grey);
  font-size: 0.8125rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dadce0;
}

.login-divider span {
  padding: 0 12px;
}

.password-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: 'Public Sans', sans-serif;
  color: var(--font-color);
  background: white;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 2px rgba(32, 152, 208, 0.15);
}

.login-input::placeholder {
  color: #9aa0a6;
}

.password-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.password-login-btn:hover {
  background: #1a86bd;
  color: white;
}

.password-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-domain-note {
  font-size: 0.75rem;
  color: var(--dark-grey);
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
}

/* ==================== */
/* API ERROR MODAL      */
/* ==================== */

.api-error-dialog {
  max-width: 420px;
}

.api-error-dialog .confirm-dialog-icon {
  background: rgba(239, 68, 68, 0.1);
}

.api-error-dialog .confirm-dialog-icon.error-icon i {
  color: var(--red);
}

.api-error-dialog #apiErrorMessage {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==================== */
/* DROPZONE              */
/* ==================== */

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--light-blue);
  background: rgba(32, 152, 208, 0.03);
}

.dropzone.dragging {
  border-color: var(--purple);
  background: rgba(156, 39, 176, 0.05);
}

.dropzone i {
  color: var(--light-blue);
}

/* ==================== */
/* SOURCE FILE LIST      */
/* ==================== */

/* Shared file list styles used by the script editor, outline viewer, and wizard */

.source-file-list {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.source-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--light-grey);
  border: 1px solid var(--purple);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.source-file-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-file-item .remove-file {
  background: none;
  border: none;
  color: var(--dark-grey);
  cursor: pointer;
  padding: 0.125rem;
  border-radius: 0.25rem;
  display: inline-flex;
  flex-shrink: 0;
}

.source-file-item .remove-file:hover {
  color: var(--red);
}

.source-file-download {
  background: none;
  border: 1px solid var(--border);
  color: var(--dark-grey);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-file-download:hover:not(:disabled) {
  color: var(--light-blue);
  border-color: var(--light-blue);
}

.source-file-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Outline Viewer: Source Materials Section */

.viewer-source-section {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.viewer-source-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==================== */
/* PROCESSING PROGRESS   */
/* ==================== */

/* Shared processing styles used by both the wizard generating screen
   and the script editor processing overlay. */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes stepPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(156, 39, 176, 0);
  }
}

.processing-icon {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 2rem;
  animation: pulse 2s infinite;
}

.processing-icon i {
  color: var(--purple);
}

.processing-icon i.spinning {
  animation: spin 1.5s linear infinite;
}

i.spin,
svg.spin {
  animation: spin 1s linear infinite;
}

.progress-bar-custom {
  height: 0.5rem;
  background: var(--mid-grey);
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--light-blue) 100%);
  border-radius: 0.25rem;
  transition: width 0.5s ease;
}

.progress-bar-fill.indeterminate {
  background: linear-gradient(90deg, var(--purple) 0%, var(--light-blue) 50%, var(--purple) 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.progress-step.completed {
  opacity: 1;
}

.progress-step .step-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--mid-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-step.completed .step-circle {
  background: transparent;
  border: none;
}

.progress-step.completed .step-circle i {
  color: var(--success);
}

/* Active step indicator */
.progress-step.active {
  opacity: 1;
}

.progress-step.active .step-circle {
  border-color: var(--purple);
  background: rgba(156, 39, 176, 0.1);
  animation: stepPulse 1.5s ease-in-out infinite;
}

.font-weight-medium {
  font-weight: 500;
}

/* ==================== */
/* PROCESSING ERROR STATE */
/* ==================== */

.processing-error {
  text-align: center;
  padding: 2rem;
}

.processing-error-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.processing-error-icon i {
  color: var(--red);
}

.processing-error h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.processing-error p {
  color: var(--darker-grey);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.processing-error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive modal */
@media (max-width: 768px) {
  .fullscreen-modal {
    inset: 0;
    border-radius: 0;
  }
}

/* ========================================= */
/* What's New Modal                          */
/* ========================================= */

.whats-new-dialog {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

.whats-new-header {
  position: relative;
  padding: 1.5rem 2rem 1rem;
  text-align: center;
}

.whats-new-header h4 {
  margin-bottom: 0;
}

.whats-new-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--darker-grey);
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.whats-new-close:hover {
  background: var(--light-grey);
}

.whats-new-icon {
  background: rgba(168, 85, 247, 0.1);
}

.whats-new-icon i {
  color: var(--purple);
}

.whats-new-body {
  padding: 0 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.whats-new-footer {
  padding: 1.25rem 2rem;
  justify-content: center;
}

.whats-new-version {
  margin-bottom: 1.5rem;
}

.whats-new-version:last-child {
  margin-bottom: 0.5rem;
}

.whats-new-version-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.whats-new-version-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark-blue);
}

.whats-new-version-date {
  font-size: 0.75rem;
  color: var(--darker-grey);
}

.whats-new-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.whats-new-item-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whats-new-item-icon.type-feature {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
}

.whats-new-item-icon.type-improvement {
  background: rgba(32, 152, 208, 0.1);
  color: var(--light-blue);
}

.whats-new-item-icon.type-fix {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.whats-new-item-content {
  flex: 1;
  min-width: 0;
}

.whats-new-item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-blue);
  margin-bottom: 0.125rem;
}

.whats-new-item-description {
  font-size: 0.8125rem;
  color: var(--darker-grey);
  line-height: 1.5;
}

/* Separator between new and previously-seen entries */
.whats-new-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--darker-grey);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.whats-new-separator::before,
.whats-new-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Dim previously-seen entries */
.whats-new-version--seen {
  opacity: 0.55;
}

/* Header button */
.whats-new-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whats-new-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.whats-new-badge {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--dark-blue);
}

/* ========================================= */
/* Feedback Modal                            */
/* ========================================= */

.feedback-dialog {
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.feedback-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.feedback-dialog-title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.feedback-dialog-header h4 {
  margin: 0;
  text-align: left;
  line-height: 1.2;
}

.feedback-icon {
  margin: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(32, 152, 208, 0.12);
  flex-shrink: 0;
}

.feedback-icon i {
  color: var(--light-blue);
}

.feedback-close {
  position: static;
  flex-shrink: 0;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0;
}

.feedback-form-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.feedback-reporter {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--light-blue) !important;
  background: #2098d01f;
  width: fit-content;
  margin: auto;
  padding: .375rem 1rem;
  border-radius: .375rem 5.775px;
  margin-bottom: 1rem !important;
}

.feedback-form-group {
  margin-bottom: 0.875rem;
}

.feedback-label {
  display: block;
  margin-bottom: 0.375rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--dark-blue);
}

.feedback-input,
.feedback-textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.75rem 0.875rem;
  font-family: 'Public Sans', sans-serif;
  color: var(--dark);
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-input {
  min-height: 2.625rem;
}

.feedback-type-dropdown {
  width: 100%;
}

.feedback-type-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.feedback-type-toggle.dropdown-toggle::after {
  display: none;
}

.feedback-type-caret {
  color: var(--dark-grey);
  flex-shrink: 0;
}

.feedback-type-toggle:hover {
  border-color: var(--light-blue);
}

.feedback-type-menu {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.25rem 0;
}

.feedback-type-menu .dropdown-item {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.feedback-type-menu .dropdown-item:hover {
  background: var(--light-grey);
  color: var(--dark-blue);
}

.feedback-type-menu .dropdown-item.active,
.feedback-type-menu .dropdown-item:active {
  background: rgba(32, 152, 208, 0.12);
  color: var(--dark-blue);
}

.feedback-textarea {
  resize: vertical;
  min-height: 88px;
}

.feedback-input:focus,
.feedback-textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(32, 152, 208, 0.18);
}

.feedback-bug-fields[hidden] {
  display: none;
}

.feedback-bug-fields {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.feedback-diagnostics-wrap {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fafcff;
}

.feedback-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--dark-blue);
  cursor: pointer;
}

.feedback-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--light-blue);
}

.feedback-diagnostics-summary {
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  color: var(--darker-grey);
}

.feedback-console-errors {
  min-height: 120px;
  margin: 0;
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #374151;
  background: #f3f4f6;
}

.feedback-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  justify-content: space-between;
  margin-top: 0;
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

@media (max-width: 640px) {
  .feedback-dialog {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .feedback-dialog-header,
  .feedback-form-body,
  .feedback-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .feedback-actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snackbar,
  .fullscreen-modal-backdrop,
  .fullscreen-modal,
  .confirm-dialog-overlay,
  .confirm-dialog {
    transition: none !important;
  }
}

/* ==================== */
/* MEDIA PICKER         */
/* ==================== */

body.media-picker-open {
  overflow: hidden;
}

.media-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 53, 90, 0.52);
}

.media-picker-overlay.show {
  display: flex;
}

.media-picker-dialog {
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  max-height: min(760px, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 20px 60px rgba(18, 53, 90, 0.22);
  overflow: hidden;
}

.media-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark-blue);
}

.media-picker-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark-blue-accent);
}

.media-picker-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dark-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.media-picker-close:hover {
  background: color-mix(in srgb, var(--dark-color-accent), transparent 70%);
  color: var(--dark-blue-accent);
}

.media-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.media-picker-search {
  flex: 1;
  min-width: 240px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #fff;
}

.media-picker-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

.media-picker-search:focus-within {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 2px rgba(32, 152, 208, 0.16);
}

.media-picker-status-row {
  padding: 0.55rem 1.25rem 0.35rem;
}

.media-picker-selected-count {
  font-size: 0.8125rem;
  color: var(--dark-grey);
}

.media-picker-body {
  min-height: 220px;
  padding: 0.5rem 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-picker-loading,
.media-picker-empty {
  padding: 1.25rem 0.15rem;
  font-size: 0.875rem;
  color: var(--dark-grey);
}

.media-picker-grid {
  width: 100%;
  height: min(420px, 52vh);
  border-radius: 0.75rem;
  overflow: hidden;
}

.media-picker-grid.ag-theme-alpine {
  --ag-header-background-color: var(--light-grey);
  --ag-header-foreground-color: var(--dark);
  --ag-row-hover-color: rgba(32, 152, 208, 0.04);
  --ag-selected-row-background-color: rgba(32, 152, 208, 0.08);
  --ag-border-color: var(--border);
  --ag-font-family: 'Public Sans', sans-serif;
  --ag-font-size: 0.875rem;
  --ag-header-height: 44px;
  --ag-row-height: 68px;
  --ag-cell-horizontal-padding: 1rem;
  --ag-row-border-style: solid;
  --ag-row-border-width: 1px;
  --ag-row-border-color: var(--border);
  --ag-header-column-separator-display: none;
  --ag-borders: none;
  --ag-wrapper-border-radius: 0.75rem;
  --ag-border-radius: 0.75rem;
}

.media-picker-grid .ag-header-cell-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--darker-grey);
}

.media-picker-grid .ag-header-cell-filter-button,
.media-picker-grid .ag-header-cell-menu-button {
  color: var(--dark-grey);
}

.media-picker-grid .ag-header-cell-filter-button:hover,
.media-picker-grid .ag-header-cell-menu-button:hover {
  color: var(--dark-blue);
}

.media-picker-grid .ag-checkbox-input-wrapper {
  border-radius: 0.25rem;
}

.media-picker-grid .ag-checkbox-input-wrapper::after {
  border-radius: 0.25rem;
}

.media-picker-grid.ag-theme-alpine .ag-row-selected:hover {
  background-color: rgba(32, 152, 208, 0.12);
}

.media-picker-grid-name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.media-picker-grid-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-grid-path {
  font-size: 0.75rem;
  color: var(--dark-grey);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-grid-tags {
  font-size: 0.7rem;
  color: var(--dark-grey);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-footer {
  padding: 0.9rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}
