:root {
  --eduloo-modal-overlay: color-mix(
    in srgb,
    var(--on-surface) 32%,
    transparent
  );
  --eduloo-modal-shell-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 90%,
    var(--surface-container-low) 10%
  );
  --eduloo-modal-shell-border: color-mix(
    in srgb,
    var(--outline-variant) 38%,
    transparent
  );
  --eduloo-modal-shell-accent-a: color-mix(
    in srgb,
    var(--primary-container) 30%,
    transparent
  );
  --eduloo-modal-shell-accent-b: color-mix(
    in srgb,
    var(--secondary-container) 24%,
    transparent
  );
  --eduloo-modal-header-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 84%,
    var(--surface-container-low) 16%
  );
  --eduloo-modal-header-accent: color-mix(
    in srgb,
    var(--primary-container) 26%,
    transparent
  );
  --eduloo-modal-title: var(--on-surface);
  --eduloo-modal-text: var(--on-surface);
  --eduloo-modal-muted: var(--on-surface-variant);
  --eduloo-modal-footer-bg: var(--surface-container-low);
  --eduloo-modal-panel-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 86%,
    var(--surface-container-low) 14%
  );
  --eduloo-modal-panel-alt: color-mix(
    in srgb,
    var(--surface-container-low) 82%,
    var(--surface-container) 18%
  );
  --eduloo-modal-row-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 86%,
    var(--surface-container-low) 14%
  );
  --eduloo-modal-row-alt-bg: color-mix(
    in srgb,
    var(--surface-container-low) 80%,
    var(--surface-container) 20%
  );
  --eduloo-modal-row-hover: color-mix(
    in srgb,
    var(--surface-container) 68%,
    var(--primary-container) 32%
  );
  --eduloo-modal-button-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 86%,
    var(--surface-container-low) 14%
  );
  --eduloo-modal-button-hover: color-mix(
    in srgb,
    var(--surface-container) 70%,
    var(--primary-container) 30%
  );
  --eduloo-modal-button-text: var(--on-surface-variant);
  --eduloo-modal-button-strong: var(--on-surface);
  --eduloo-modal-button-primary: color-mix(
    in srgb,
    var(--primary) 78%,
    var(--primary-container) 22%
  );
  --eduloo-modal-button-primary-hover: color-mix(
    in srgb,
    var(--primary) 84%,
    var(--primary-container) 16%
  );
  --eduloo-modal-button-primary-text: var(--on-primary);
  --eduloo-modal-danger-bg: color-mix(
    in srgb,
    var(--error) 20%,
    var(--surface-container-lowest) 80%
  );
  --eduloo-modal-danger-text: color-mix(
    in srgb,
    var(--error) 86%,
    var(--on-surface) 14%
  );
  --eduloo-modal-shadow: 0 34px 72px -36px
    color-mix(in srgb, var(--on-surface) 46%, transparent);
  --eduloo-modal-panel-shadow: 0 22px 38px -30px
    color-mix(in srgb, var(--on-surface) 38%, transparent);
  --eduloo-modal-input-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 94%,
    transparent
  );
  --eduloo-modal-input-focus-bg: color-mix(
    in srgb,
    var(--surface-bright) 84%,
    var(--surface-container-lowest) 16%
  );
  --eduloo-modal-focus: color-mix(
    in srgb,
    var(--secondary-container) 60%,
    transparent
  );
  --eduloo-modal-option-selected-bg: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 72%,
    var(--eduloo-modal-row-hover) 28%
  );
  --eduloo-modal-option-selected-border: color-mix(
    in srgb,
    var(--outline-variant) 42%,
    var(--primary-container) 58%
  );
  --eduloo-modal-option-selected-text: color-mix(
    in srgb,
    var(--primary) 80%,
    var(--on-primary-container) 20%
  );
}

body.theme-dark {
  --eduloo-modal-overlay: color-mix(in srgb, black 74%, transparent);
  --eduloo-modal-shell-bg: color-mix(
    in srgb,
    var(--surface-container-high) 84%,
    var(--surface-container-highest) 16%
  );
  --eduloo-modal-shell-border: color-mix(
    in srgb,
    var(--primary-container) 34%,
    transparent
  );
  --eduloo-modal-shell-accent-a: color-mix(
    in srgb,
    var(--info) 22%,
    transparent
  );
  --eduloo-modal-shell-accent-b: color-mix(
    in srgb,
    var(--primary) 20%,
    transparent
  );
  --eduloo-modal-header-bg: color-mix(
    in srgb,
    var(--surface-container-high) 76%,
    var(--surface-container-highest) 24%
  );
  --eduloo-modal-header-accent: color-mix(
    in srgb,
    var(--secondary) 16%,
    transparent
  );
  --eduloo-modal-title: color-mix(
    in srgb,
    var(--on-surface) 94%,
    var(--on-primary) 6%
  );
  --eduloo-modal-text: color-mix(
    in srgb,
    var(--on-surface) 92%,
    var(--secondary-container) 8%
  );
  --eduloo-modal-muted: color-mix(
    in srgb,
    var(--on-surface-variant) 86%,
    var(--primary-container) 14%
  );
  --eduloo-modal-footer-bg: var(--surface-container-high);
  --eduloo-modal-panel-bg: color-mix(
    in srgb,
    var(--surface-container-high) 78%,
    var(--surface-container-highest) 22%
  );
  --eduloo-modal-panel-alt: color-mix(
    in srgb,
    var(--surface-container-highest) 66%,
    var(--surface-container-high) 34%
  );
  --eduloo-modal-row-bg: color-mix(
    in srgb,
    var(--surface-container-high) 74%,
    var(--surface-container-highest) 26%
  );
  --eduloo-modal-row-alt-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 62%,
    var(--surface-container-high) 38%
  );
  --eduloo-modal-row-hover: color-mix(
    in srgb,
    var(--primary-container) 42%,
    var(--surface-container-highest) 58%
  );
  --eduloo-modal-button-bg: color-mix(
    in srgb,
    var(--surface-container-high) 74%,
    var(--surface-container-highest) 26%
  );
  --eduloo-modal-button-hover: color-mix(
    in srgb,
    var(--primary-container) 36%,
    var(--surface-container-high) 64%
  );
  --eduloo-modal-button-text: color-mix(
    in srgb,
    var(--on-surface-variant) 88%,
    var(--secondary-container) 12%
  );
  --eduloo-modal-button-strong: color-mix(
    in srgb,
    var(--on-surface) 90%,
    var(--on-primary) 10%
  );
  --eduloo-modal-button-primary: color-mix(
    in srgb,
    var(--primary-container) 68%,
    var(--primary) 32%
  );
  --eduloo-modal-button-primary-hover: color-mix(
    in srgb,
    var(--primary-container) 74%,
    var(--primary) 26%
  );
  --eduloo-modal-danger-bg: color-mix(
    in srgb,
    var(--error) 36%,
    var(--surface-container-high) 64%
  );
  --eduloo-modal-danger-text: color-mix(
    in srgb,
    var(--on-primary) 72%,
    var(--on-surface) 28%
  );
  --eduloo-modal-shadow: 0 36px 76px -38px
    color-mix(in srgb, black 78%, transparent);
  --eduloo-modal-panel-shadow: 0 24px 40px -30px
    color-mix(in srgb, black 72%, transparent);
  --eduloo-modal-input-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 88%,
    transparent
  );
  --eduloo-modal-input-focus-bg: color-mix(
    in srgb,
    var(--surface-container-high) 78%,
    var(--surface-container-highest) 22%
  );
  --eduloo-modal-focus: color-mix(
    in srgb,
    var(--secondary-container) 52%,
    transparent
  );
  --eduloo-modal-option-selected-bg: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 62%,
    var(--eduloo-modal-row-hover) 38%
  );
  --eduloo-modal-option-selected-border: color-mix(
    in srgb,
    var(--primary-container) 70%,
    transparent
  );
  --eduloo-modal-option-selected-text: color-mix(
    in srgb,
    var(--on-surface) 90%,
    var(--on-primary) 10%
  );
}

body .st-study-modal {
  background: var(--eduloo-modal-overlay) !important;
  backdrop-filter: blur(14px) saturate(124%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(124%) !important;
}

body .st-study-modal .modal-content {
  width: min(840px, calc(100vw - 28px)) !important;
  max-width: min(840px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 28px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body .st-study-modal .modal-body {
  padding: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body .st-study-modal .st-study-modal-body {
  width: 100% !important;
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body .st-study-modal .st-modal {
  margin: 0 !important;
  width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  background: var(--eduloo-modal-shell-bg) !important;
  box-shadow:
    inset 0 0 0 1px var(--eduloo-modal-shell-border),
    var(--eduloo-modal-shadow) !important;
  gap: 0 !important;
}

body .st-study-modal .st-modal-header {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px 22px 14px !important;
  background: var(--eduloo-modal-header-bg) !important;
}

body .st-study-modal .st-modal-header h2 {
  margin: 0 !important;
  padding: 0 0 3px !important;
  border: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 30px !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: var(--eduloo-modal-title) !important;
}

body .st-study-modal .st-modal-header .st-btn.st-btn--only-icon,
body
  .st-study-modal
  .st-modal-header
  button.button-secondary.st-btn.st-btn--only-icon {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal .st-modal-header .st-btn.st-btn--only-icon:hover,
body
  .st-study-modal
  .st-modal-header
  button.button-secondary.st-btn.st-btn--only-icon:hover {
  background: var(--eduloo-modal-button-hover) !important;
  color: var(--eduloo-modal-button-strong) !important;
  transform: translateY(-1px) !important;
}

body .st-study-modal .st-modal-header .st-btn.st-btn--only-icon i,
body
  .st-study-modal
  .st-modal-header
  button.button-secondary.st-btn.st-btn--only-icon
  i {
  margin: 0 !important;
  font-size: 13px !important;
}

body .st-study-modal .st-modal-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  gap: 12px !important;
  padding: 6px 22px 20px !important;
  background: transparent !important;
  color: var(--eduloo-modal-text) !important;
}

body .st-study-modal .st-modal-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* The !important flex above outranks the UA [hidden] rule, which left
   JS-toggled rows (the modal deck picker) on screen while still empty. */
body .st-study-modal .st-modal-form-group[hidden] {
  display: none !important;
}

body .st-study-modal .st-modal-form-group label {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  color: var(--eduloo-modal-muted) !important;
}

body .st-study-modal .st-modal-form-group input,
body .st-study-modal .st-modal-form-group textarea,
body .st-study-modal .st-modal-form-group select,
body .st-study-modal .st-modal-form-group .custom-dropdown-trigger {
  min-height: 44px !important;
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-modal-input-bg) !important;
  color: var(--eduloo-modal-text) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--outline-variant) 40%, transparent) !important;
  padding: 0 14px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  transition:
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal .st-modal-form-group .st-output-language-select {
  width: 100% !important;
}

body .st-study-modal .st-modal-form-group textarea {
  min-height: 116px !important;
  padding: 12px 14px !important;
}

body .st-study-modal .st-modal-form-group input:focus,
body .st-study-modal .st-modal-form-group input:focus-visible,
body .st-study-modal .st-modal-form-group textarea:focus,
body .st-study-modal .st-modal-form-group textarea:focus-visible,
body .st-study-modal .st-modal-form-group select:focus,
body .st-study-modal .st-modal-form-group select:focus-visible,
body .st-study-modal .st-modal-form-group .custom-dropdown-trigger:focus,
body
  .st-study-modal
  .st-modal-form-group
  .custom-dropdown-trigger:focus-visible,
body
  .st-study-modal
  .st-modal-form-group
  .custom-dropdown.open
  .custom-dropdown-trigger {
  outline: none !important;
  background: var(--eduloo-modal-input-focus-bg) !important;
  box-shadow: 0 0 0 3px var(--eduloo-modal-focus) !important;
  transform: none !important;
}

body .st-study-modal .st-modal-form-group .custom-dropdown-panel {
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow: var(--eduloo-modal-panel-shadow) !important;
  padding: 6px !important;
}

body .st-study-modal .st-modal-form-group .custom-dropdown-option {
  min-height: 36px !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--eduloo-modal-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body
  .st-study-modal
  .st-modal-form-group
  .custom-dropdown-option:hover:not(.disabled),
body
  .st-study-modal
  .st-modal-form-group
  .custom-dropdown-option.focused:not(.disabled) {
  background: var(--eduloo-modal-row-hover) !important;
}

body
  .st-study-modal
  .st-modal-form-group
  .custom-dropdown-option.selected:not(.disabled) {
  background: var(--eduloo-modal-option-selected-bg) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-modal-option-selected-border) !important;
  color: var(--eduloo-modal-option-selected-text) !important;
}

body .st-study-modal input[type='checkbox'] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 7px !important;
  background: var(--eduloo-modal-input-bg) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--outline-variant) 44%, transparent),
    0 10px 16px -14px color-mix(in srgb, var(--on-surface) 50%, transparent) !important;
  display: inline-grid !important;
  place-content: center !important;
  cursor: pointer !important;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal input[type='checkbox']::before {
  content: '' !important;
  width: 8px !important;
  height: 5px !important;
  border-left: 2px solid var(--eduloo-modal-button-primary-text) !important;
  border-bottom: 2px solid var(--eduloo-modal-button-primary-text) !important;
  transform: translateY(-1px) rotate(-45deg) scale(0.7) !important;
  transform-origin: center !important;
  opacity: 0 !important;
  transition:
    transform 180ms ease,
    opacity 180ms ease !important;
}

body .st-study-modal input[type='checkbox']:hover {
  background: var(--eduloo-modal-row-hover) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--eduloo-modal-option-selected-border) 62%,
        transparent
      ),
    0 12px 18px -14px color-mix(in srgb, var(--on-surface) 52%, transparent) !important;
}

body .st-study-modal input[type='checkbox']:focus-visible {
  outline: 2px solid var(--eduloo-modal-focus) !important;
  outline-offset: 2px !important;
}

body .st-study-modal input[type='checkbox']:checked {
  background: var(--eduloo-modal-button-primary) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 62%, transparent),
    0 14px 20px -14px color-mix(in srgb, var(--primary) 58%, transparent) !important;
}

body .st-study-modal input[type='checkbox']:checked::before {
  opacity: 1 !important;
  transform: translateY(-1px) rotate(-45deg) scale(1) !important;
}

body .st-study-modal input[type='checkbox']:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

body .st-study-modal .button.button-secondary.st-btn {
  min-height: 44px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease !important;
}

body .st-study-modal .st-btn.st-btn--sm {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body .st-study-modal .st-btn.st-btn--sm.st-btn--only-icon {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

body .st-study-modal .st-btn.st-btn--sm .icon {
  margin: 0 !important;
  font-size: 12px !important;
}

body .st-study-modal .st-create-quiz-type-text {
  display: inline-block !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body .st-study-modal--document-topics .st-modal.st-modal--document-topics {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body .st-study-modal .button.button-secondary.st-btn:hover,
body .st-study-modal .button.button-secondary.st-btn:focus-visible {
  background: var(--eduloo-modal-button-hover) !important;
  color: var(--eduloo-modal-button-strong) !important;
  transform: none !important;
}

body .st-study-modal .button.button-secondary.st-btn.btn-success,
body .st-study-modal .button.button-primary.st-btn {
  background: var(--eduloo-modal-button-primary) !important;
  color: var(--eduloo-modal-button-primary-text) !important;
  box-shadow: 0 16px 30px -22px
    color-mix(in srgb, var(--primary) 52%, transparent) !important;
}

body .st-study-modal .button.button-secondary.st-btn.btn-success:hover,
body .st-study-modal .button.button-primary.st-btn:hover {
  background: var(--eduloo-modal-button-primary-hover) !important;
}

body .st-study-modal .button.button-secondary.st-btn:focus-visible,
body .st-study-modal .button.button-primary.st-btn:focus-visible {
  outline: 2px solid var(--eduloo-modal-focus) !important;
  outline-offset: 2px !important;
}

body .st-study-modal--document-topics .st-modal-header,
body .st-study-modal--edit-quiz .st-modal-header {
  padding: 16px 18px 12px !important;
}

body .st-study-modal--document-topics .st-modal-header h2,
body .st-study-modal--edit-quiz .st-modal-header h2 {
  font-size: 26px !important;
}

body .st-study-modal--document-topics .st-modal-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 12px 12px !important;
}

body .st-study-modal--edit-quiz .st-modal-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 16px 16px !important;
}

body .st-study-modal--edit-quiz .st-modal {
  --st-edit-quiz-list-bg: color-mix(
    in srgb,
    var(--eduloo-modal-panel-bg) 76%,
    var(--eduloo-modal-panel-alt) 24%
  );
  --st-edit-quiz-list-border: color-mix(
    in srgb,
    var(--eduloo-modal-shell-border) 78%,
    transparent
  );
  --st-edit-quiz-card-bg: color-mix(
    in srgb,
    var(--eduloo-modal-row-bg) 84%,
    var(--eduloo-modal-panel-alt) 16%
  );
  --st-edit-quiz-card-bg-hover: color-mix(
    in srgb,
    var(--eduloo-modal-row-bg) 76%,
    var(--eduloo-modal-row-hover) 24%
  );
  --st-edit-quiz-card-bg-open: color-mix(
    in srgb,
    var(--eduloo-modal-row-bg) 70%,
    var(--eduloo-modal-row-hover) 30%
  );
  --st-edit-quiz-card-border: color-mix(
    in srgb,
    var(--eduloo-modal-shell-border) 72%,
    transparent
  );
  --st-edit-quiz-card-border-strong: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-border) 64%,
    var(--eduloo-modal-shell-border) 36%
  );
  --st-edit-quiz-title: var(--eduloo-modal-title);
  --st-edit-quiz-muted: var(--eduloo-modal-muted);
  --st-edit-quiz-divider: color-mix(
    in srgb,
    var(--eduloo-modal-shell-border) 70%,
    transparent
  );
  --st-edit-quiz-type-bg: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 52%,
    var(--eduloo-modal-row-bg) 48%
  );
  --st-edit-quiz-type-border: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-border) 72%,
    transparent
  );
  --st-edit-quiz-type-text: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-text) 82%,
    var(--eduloo-modal-title) 18%
  );
  --st-edit-quiz-action-feedback-bg: color-mix(
    in srgb,
    var(--eduloo-modal-button-bg) 70%,
    var(--secondary-container) 30%
  );
  --st-edit-quiz-action-feedback-border: color-mix(
    in srgb,
    var(--secondary-container) 66%,
    var(--eduloo-modal-shell-border) 34%
  );
  --st-edit-quiz-action-feedback-text: color-mix(
    in srgb,
    var(--secondary) 74%,
    var(--eduloo-modal-title) 26%
  );
  --st-edit-quiz-action-edit-bg: color-mix(
    in srgb,
    var(--eduloo-modal-button-bg) 66%,
    var(--primary-container) 34%
  );
  --st-edit-quiz-action-edit-border: color-mix(
    in srgb,
    var(--primary-container) 68%,
    var(--eduloo-modal-shell-border) 32%
  );
  --st-edit-quiz-action-edit-text: color-mix(
    in srgb,
    var(--primary) 76%,
    var(--eduloo-modal-title) 24%
  );
  --st-edit-quiz-action-danger-bg: color-mix(
    in srgb,
    var(--eduloo-modal-danger-bg) 66%,
    var(--eduloo-modal-row-bg) 34%
  );
  --st-edit-quiz-action-danger-border: color-mix(
    in srgb,
    var(--eduloo-modal-danger-text) 58%,
    var(--eduloo-modal-shell-border) 42%
  );
  --st-edit-quiz-action-danger-text: var(--eduloo-modal-danger-text);
  --st-edit-quiz-action-success-bg: color-mix(
    in srgb,
    var(--success) 24%,
    var(--eduloo-modal-row-bg) 76%
  );
  --st-edit-quiz-action-success-border: color-mix(
    in srgb,
    var(--success) 68%,
    var(--eduloo-modal-shell-border) 32%
  );
  --st-edit-quiz-action-success-text: color-mix(
    in srgb,
    var(--success) 78%,
    var(--eduloo-modal-title) 22%
  );
}

body .st-study-modal--edit-quiz .st-modal-quiz-list {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-top: 10px !important;
  padding: 10px 8px 10px 6px !important;
  border-radius: 20px !important;
  background: var(--st-edit-quiz-list-bg) !important;
  box-shadow: inset 0 0 0 1px var(--st-edit-quiz-list-border) !important;
  gap: 12px !important;
  max-height: clamp(260px, calc(78vh - 220px), 680px) !important;
  scrollbar-width: thin;
  scrollbar-color: var(--eduloo-modal-option-selected-border)
    color-mix(in srgb, var(--st-edit-quiz-list-bg) 82%, transparent);
}

body .st-study-modal--edit-quiz .st-modal-quiz-list > .st-modal-quiz-item {
  flex: 0 0 auto !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-list::-webkit-scrollbar {
  width: 9px;
}

body .st-study-modal--edit-quiz .st-modal-quiz-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-edit-quiz-list-bg) 84%, transparent);
}

body .st-study-modal--edit-quiz .st-modal-quiz-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid
    color-mix(in srgb, var(--st-edit-quiz-list-bg) 92%, transparent);
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-border) 74%,
    transparent
  );
}

body .st-study-modal--edit-quiz .st-modal-quiz-item {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid var(--st-edit-quiz-card-border) !important;
  background: var(--st-edit-quiz-card-bg) !important;
  box-shadow: 0 12px 26px -24px
    color-mix(in srgb, var(--on-surface) 46%, transparent) !important;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 82%, transparent) 0%,
    color-mix(in srgb, var(--secondary) 72%, transparent) 100%
  ) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item:hover {
  border-color: var(--st-edit-quiz-card-border-strong) !important;
  background: var(--st-edit-quiz-card-bg-hover) !important;
  box-shadow: 0 18px 30px -24px
    color-mix(in srgb, var(--on-surface) 52%, transparent) !important;
  transform: translateY(-1px) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item--expanded {
  border-color: var(--st-edit-quiz-card-border-strong) !important;
  background: var(--st-edit-quiz-card-bg-open) !important;
  box-shadow: 0 20px 34px -24px
    color-mix(in srgb, var(--on-surface) 56%, transparent) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-summary {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-title {
  margin: 0 !important;
  color: var(--st-edit-quiz-title) !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-type {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  border: 1px solid var(--st-edit-quiz-type-border) !important;
  background: var(--st-edit-quiz-type-bg) !important;
  color: var(--st-edit-quiz-type-text) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-type::before {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: color-mix(
    in srgb,
    var(--st-edit-quiz-type-text) 78%,
    transparent
  ) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-search-snippet {
  margin: 1px 0 0 !important;
  color: var(--st-edit-quiz-muted) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-search-snippet-label {
  color: var(--st-edit-quiz-title) !important;
  font-weight: 700 !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-actions {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  align-self: flex-start !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-actions .st-btn {
  width: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  border: 1px solid var(--st-edit-quiz-card-border) !important;
  box-shadow: none !important;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-actions .st-btn i {
  font-size: 14px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-actions .st-btn:hover,
body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  .st-btn:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 20px -16px
    color-mix(in srgb, var(--on-surface) 56%, transparent) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  [data-edit-quiz-feedback] {
  background: var(--st-edit-quiz-action-feedback-bg) !important;
  border-color: var(--st-edit-quiz-action-feedback-border) !important;
  color: var(--st-edit-quiz-action-feedback-text) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  [data-edit-quiz-toggle] {
  background: var(--st-edit-quiz-action-edit-bg) !important;
  border-color: var(--st-edit-quiz-action-edit-border) !important;
  color: var(--st-edit-quiz-action-edit-text) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  [data-edit-quiz-remove] {
  background: var(--st-edit-quiz-action-danger-bg) !important;
  border-color: var(--st-edit-quiz-action-danger-border) !important;
  color: var(--st-edit-quiz-action-danger-text) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  [data-edit-quiz-toggle].st-modal-quiz-item-toggle--accept {
  background: var(--st-edit-quiz-action-success-bg) !important;
  border-color: var(--st-edit-quiz-action-success-border) !important;
  color: var(--st-edit-quiz-action-success-text) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-actions
  [data-edit-quiz-toggle].st-modal-quiz-item-toggle--accept
  i {
  color: var(--st-edit-quiz-action-success-text) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-item-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--st-edit-quiz-divider) !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item:not(.st-modal-quiz-item--expanded)
  .st-modal-quiz-item-content {
  padding-top: 0 !important;
  border-top-color: transparent !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-content
  .st-modal-form-group {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 72%,
    var(--eduloo-modal-row-bg) 28%
  ) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 68%, transparent) !important;
  gap: 8px !important;
}

body
  .st-study-modal--edit-quiz
  .st-modal-quiz-item-content
  .st-modal-form-group
  label {
  color: var(--st-edit-quiz-muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-answer-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-combination-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-combination-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: var(--eduloo-modal-row-alt-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 64%, transparent) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-combination-row > input {
  min-width: 0 !important;
  width: 100% !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-combination-separator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  color: var(--st-edit-quiz-muted) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-answer-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: var(--eduloo-modal-row-alt-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 64%, transparent) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-answer-row--with-tab {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-answer-tab {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 68%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 70%,
    var(--eduloo-modal-row-bg) 30%
  ) !important;
  color: var(--st-edit-quiz-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-correct-btn {
  width: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 11px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-button-bg) 84%,
    var(--eduloo-modal-row-bg) 16%
  ) !important;
  color: var(--st-edit-quiz-muted) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-correct-btn i {
  font-size: 15px !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-correct-btn--active {
  border-color: var(--st-edit-quiz-type-border) !important;
  background: var(--st-edit-quiz-type-bg) !important;
  color: var(--st-edit-quiz-type-text) !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-correct-btn--active i {
  color: var(--st-edit-quiz-type-text) !important;
}

body .st-study-modal--edit-quiz [data-edit-quiz-loading],
body .st-study-modal--edit-quiz [data-edit-quiz-empty],
body .st-study-modal--edit-quiz .st-modal-quiz-search-empty {
  margin: 0 !important;
  padding: 20px 16px !important;
  border-radius: 14px !important;
  border: 1px dashed
    color-mix(in srgb, var(--eduloo-modal-shell-border) 70%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-row-bg) 84%,
    var(--eduloo-modal-panel-alt) 16%
  ) !important;
  color: var(--st-edit-quiz-muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-search-hit {
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 84%,
    var(--eduloo-modal-row-hover) 16%
  ) !important;
  color: inherit !important;
  border-radius: 5px !important;
  padding: 0 2px !important;
  font-weight: 700 !important;
}

body .st-study-modal--edit-quiz .st-modal-quiz-input--search-hit {
  border-color: var(--eduloo-modal-option-selected-border) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 58%,
    var(--eduloo-modal-input-bg) 42%
  ) !important;
  color: var(--eduloo-modal-text) !important;
}

body .st-study-modal--document-topics .st-topic-modal-split {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body .st-study-modal--document-topics .st-topic-list-panel {
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 6px !important;
}

body .st-study-modal--document-topics .st-topic-list-items {
  flex: 0 0 235px !important;
  height: 235px !important;
  min-height: 235px !important;
  overflow: auto !important;
}

body .st-study-modal--document-topics .st-topic-selected-chunks {
  max-height: 180px !important;
  overflow: auto !important;
}

body .st-study-modal--document-topics .st-topic-pdf-panel {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body .st-study-modal--document-topics .st-topic-pdf-viewport {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body .st-study-modal--document-topics .st-topic-text-preview {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 12px !important;
  gap: 12px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-header {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--on-surface-variant, #6e7191) !important;
  flex: 0 0 auto !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-right: 4px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-empty {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--on-surface-variant, #6e7191) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: var(--surface-container-lowest, #ffffff) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--on-surface, #1f1d2c) 8%, transparent) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  cursor: default !important;
  transition:
    box-shadow 120ms ease,
    background 120ms ease !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item[data-dt-text-preview-selectable='1'] {
  cursor: pointer !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item[data-dt-text-preview-selectable='1']:hover {
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--primary, #6366f1) 50%, transparent) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item.is-selected {
  background: color-mix(
    in srgb,
    var(--surface-container-lowest, #ffffff) 91%,
    var(--primary, #6366f1) 9%
  ) !important;
  box-shadow: inset 0 0 0 2px
    color-mix(in srgb, var(--primary, #6366f1) 55%, transparent) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item.is-focused {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--primary, #6366f1) 60%, transparent),
    0 6px 18px -10px
      color-mix(in srgb, var(--primary, #6366f1) 28%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--surface-container-lowest, #ffffff) 88%,
    var(--primary, #6366f1) 12%
  ) !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item.is-selected.is-focused {
  box-shadow:
    inset 0 0 0 2px var(--primary, #6366f1),
    0 6px 18px -10px
      color-mix(in srgb, var(--primary, #6366f1) 28%, transparent) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: color-mix(
    in srgb,
    var(--on-surface, #1f1d2c) 78%,
    transparent
  ) !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item.is-selected
  .st-topic-text-preview-item-title,
body
  .st-study-modal--document-topics
  .st-topic-text-preview-item.is-focused
  .st-topic-text-preview-item-title {
  color: var(--on-surface, #1f1d2c) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: color-mix(
    in srgb,
    var(--primary, #6366f1) 18%,
    transparent
  ) !important;
  color: var(--primary, #6366f1) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--on-surface, #1f1d2c) !important;
  word-break: break-word !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item-body
  > *:first-child {
  margin-top: 0 !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item-body
  > *:last-child {
  margin-bottom: 0 !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body p {
  margin: 0 0 8px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body h1,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h2,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h3,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h4,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h5,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h6 {
  margin: 10px 0 6px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body h1 {
  font-size: 18px !important;
}
body .st-study-modal--document-topics .st-topic-text-preview-item-body h2 {
  font-size: 16px !important;
}
body .st-study-modal--document-topics .st-topic-text-preview-item-body h3 {
  font-size: 15px !important;
}
body .st-study-modal--document-topics .st-topic-text-preview-item-body h4,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h5,
body .st-study-modal--document-topics .st-topic-text-preview-item-body h6 {
  font-size: 14px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body ul,
body .st-study-modal--document-topics .st-topic-text-preview-item-body ol {
  margin: 0 0 8px !important;
  padding-left: 22px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body li {
  margin: 2px 0 !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body a {
  color: var(--primary, #6366f1) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.9em !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: color-mix(
    in srgb,
    var(--on-surface, #1f1d2c) 8%,
    transparent
  ) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body strong {
  font-weight: 700 !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body em {
  font-style: italic !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item-body
  blockquote {
  margin: 0 0 8px !important;
  padding: 4px 12px !important;
  border-left: 3px solid
    color-mix(in srgb, var(--primary, #6366f1) 50%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--on-surface, #1f1d2c) 4%,
    transparent
  ) !important;
  font-style: italic !important;
}

body
  .st-study-modal--document-topics
  .st-topic-text-preview-item-body
  .st-topic-text-preview-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--on-surface, #1f1d2c) 8%, transparent) !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body table {
  width: max-content !important;
  min-width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body th,
body .st-study-modal--document-topics .st-topic-text-preview-item-body td {
  padding: 4px 8px !important;
  border: 1px solid
    color-mix(in srgb, var(--on-surface, #1f1d2c) 12%, transparent) !important;
  text-align: left !important;
  vertical-align: top !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body th {
  background: color-mix(
    in srgb,
    var(--on-surface, #1f1d2c) 6%,
    transparent
  ) !important;
  font-weight: 700 !important;
}

body .st-study-modal--document-topics .st-topic-text-preview-item-body hr {
  border: none !important;
  border-top: 1px solid
    color-mix(in srgb, var(--on-surface, #1f1d2c) 12%, transparent) !important;
  margin: 10px 0 !important;
}

@media (max-width: 760px) {
  body .st-study-modal .modal-content {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 14px) !important;
  }

  body .st-study-modal .st-modal {
    border-radius: 24px !important;
  }

  body .st-study-modal .st-modal-header {
    padding: 16px 16px 12px !important;
  }

  body .st-study-modal .st-modal-header h2 {
    font-size: 24px !important;
  }

  body .st-study-modal .st-modal-body {
    padding: 4px 16px 14px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-body {
    padding: 0 14px 14px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-list {
    margin-top: 8px !important;
    padding: 8px 4px 8px 4px !important;
    border-radius: 16px !important;
    max-height: calc(100vh - 336px) !important;
    gap: 10px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item {
    padding: 12px !important;
    border-radius: 14px !important;
    gap: 9px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item-top {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item-summary {
    width: 100% !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item-title {
    font-size: 14px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item-actions {
    margin-left: auto !important;
    gap: 6px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-item-actions .st-btn {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-answer-row--with-tab {
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-answer-tab {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  body .st-study-modal--edit-quiz .st-modal-quiz-correct-btn {
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
  }

  body .st-study-modal .button.button-secondary.st-btn {
    min-height: 42px !important;
  }

  body .st-study-modal .st-modal-footer,
  body .st-study-modal .modal-footer,
  body .st-study-modal .modal-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: stretch !important;
    gap: 8px !important;
    padding: 12px 16px 16px !important;
  }

  body .st-study-modal .st-modal-footer .st-modal-footer-btn,
  body .st-study-modal .modal-footer .st-modal-footer-btn,
  body .st-study-modal .modal-actions .st-modal-footer-btn,
  body .st-study-modal .st-modal-footer > .st-btn,
  body .st-study-modal .modal-footer > .st-btn,
  body .st-study-modal .modal-actions > .st-btn,
  body .st-study-modal .st-modal-footer > .button,
  body .st-study-modal .modal-footer > .button,
  body .st-study-modal .modal-actions > .button,
  body .st-study-modal .st-modal-footer > .btn,
  body .st-study-modal .modal-footer > .btn,
  body .st-study-modal .modal-actions > .btn,
  body .st-study-modal .st-modal-footer > button,
  body .st-study-modal .modal-footer > button,
  body .st-study-modal .modal-actions > button {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }
}

body .st-study-modal .st-modal-footer,
body .st-study-modal .modal-footer,
body .st-study-modal .modal-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 22px 16px !important;
  background: transparent !important;
  border-top: none !important;
}

body .st-study-modal .modal-footer {
  display: none !important;
}

body .st-study-modal .modal-actions:not(.st-modal-footer) {
  display: none !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn,
body .st-study-modal .modal-footer .st-modal-footer-btn,
body .st-study-modal .modal-actions .st-modal-footer-btn,
body .st-study-modal .st-modal-footer > .st-btn,
body .st-study-modal .modal-footer > .st-btn,
body .st-study-modal .modal-actions > .st-btn,
body .st-study-modal .st-modal-footer > .button,
body .st-study-modal .modal-footer > .button,
body .st-study-modal .modal-actions > .button,
body .st-study-modal .st-modal-footer > .btn,
body .st-study-modal .modal-footer > .btn,
body .st-study-modal .modal-actions > .btn,
body .st-study-modal .st-modal-footer > button,
body .st-study-modal .modal-footer > button,
body .st-study-modal .modal-actions > button {
  min-height: 44px !important;
  min-width: 152px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px !important;
  text-transform: none !important;
  appearance: none !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn i,
body .st-study-modal .modal-footer .st-modal-footer-btn i,
body .st-study-modal .modal-actions .st-modal-footer-btn i {
  margin: 0 !important;
  font-size: 13px !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn:hover,
body .st-study-modal .modal-footer .st-modal-footer-btn:hover,
body .st-study-modal .modal-actions .st-modal-footer-btn:hover,
body .st-study-modal .st-modal-footer > .st-btn:hover,
body .st-study-modal .modal-footer > .st-btn:hover,
body .st-study-modal .modal-actions > .st-btn:hover,
body .st-study-modal .st-modal-footer > .button:hover,
body .st-study-modal .modal-footer > .button:hover,
body .st-study-modal .modal-actions > .button:hover,
body .st-study-modal .st-modal-footer > .btn:hover,
body .st-study-modal .modal-footer > .btn:hover,
body .st-study-modal .modal-actions > .btn:hover,
body .st-study-modal .st-modal-footer > button:hover,
body .st-study-modal .modal-footer > button:hover,
body .st-study-modal .modal-actions > button:hover {
  background: var(--eduloo-modal-button-hover) !important;
  color: var(--eduloo-modal-button-strong) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(
      in srgb,
      var(--eduloo-modal-option-selected-border) 74%,
      transparent
    ) !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn:focus-visible,
body .st-study-modal .modal-footer .st-modal-footer-btn:focus-visible,
body .st-study-modal .modal-actions .st-modal-footer-btn:focus-visible,
body .st-study-modal .st-modal-footer > .st-btn:focus-visible,
body .st-study-modal .modal-footer > .st-btn:focus-visible,
body .st-study-modal .modal-actions > .st-btn:focus-visible,
body .st-study-modal .st-modal-footer > .button:focus-visible,
body .st-study-modal .modal-footer > .button:focus-visible,
body .st-study-modal .modal-actions > .button:focus-visible,
body .st-study-modal .st-modal-footer > .btn:focus-visible,
body .st-study-modal .modal-footer > .btn:focus-visible,
body .st-study-modal .modal-actions > .btn:focus-visible,
body .st-study-modal .st-modal-footer > button:focus-visible,
body .st-study-modal .modal-footer > button:focus-visible,
body .st-study-modal .modal-actions > button:focus-visible {
  outline: 2px solid var(--eduloo-modal-focus) !important;
  outline-offset: 2px !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn.button-primary,
body .st-study-modal .modal-footer .st-modal-footer-btn.button-primary,
body .st-study-modal .modal-actions .st-modal-footer-btn.button-primary,
body .st-study-modal .st-modal-footer > .button.button-primary.st-btn,
body .st-study-modal .modal-footer > .button.button-primary.st-btn,
body .st-study-modal .modal-actions > .button.button-primary.st-btn,
body .st-study-modal .st-modal-footer > .button.button-primary,
body .st-study-modal .modal-footer > .button.button-primary,
body .st-study-modal .modal-actions > .button.button-primary,
body .st-study-modal .st-modal-footer > .btn.btn-primary,
body .st-study-modal .modal-footer > .btn.btn-primary,
body .st-study-modal .modal-actions > .btn.btn-primary,
body .st-study-modal .st-modal-footer .st-modal-footer-btn.btn-success,
body .st-study-modal .modal-footer .st-modal-footer-btn.btn-success,
body .st-study-modal .modal-actions .st-modal-footer-btn.btn-success,
body
  .st-study-modal
  .st-modal-footer
  > .button.button-secondary.st-btn.btn-success,
body
  .st-study-modal
  .modal-footer
  > .button.button-secondary.st-btn.btn-success,
body
  .st-study-modal
  .modal-actions
  > .button.button-secondary.st-btn.btn-success {
  background: var(--eduloo-modal-button-primary) !important;
  color: var(--eduloo-modal-button-primary-text) !important;
  box-shadow: 0 16px 30px -22px
    color-mix(in srgb, var(--primary) 52%, transparent) !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn.button-primary:hover,
body .st-study-modal .modal-footer .st-modal-footer-btn.button-primary:hover,
body .st-study-modal .modal-actions .st-modal-footer-btn.button-primary:hover,
body .st-study-modal .st-modal-footer > .button.button-primary.st-btn:hover,
body .st-study-modal .modal-footer > .button.button-primary.st-btn:hover,
body .st-study-modal .modal-actions > .button.button-primary.st-btn:hover,
body .st-study-modal .st-modal-footer > .button.button-primary:hover,
body .st-study-modal .modal-footer > .button.button-primary:hover,
body .st-study-modal .modal-actions > .button.button-primary:hover,
body .st-study-modal .st-modal-footer > .btn.btn-primary:hover,
body .st-study-modal .modal-footer > .btn.btn-primary:hover,
body .st-study-modal .modal-actions > .btn.btn-primary:hover,
body .st-study-modal .st-modal-footer .st-modal-footer-btn.btn-success:hover,
body .st-study-modal .modal-footer .st-modal-footer-btn.btn-success:hover,
body .st-study-modal .modal-actions .st-modal-footer-btn.btn-success:hover,
body
  .st-study-modal
  .st-modal-footer
  > .button.button-secondary.st-btn.btn-success:hover,
body
  .st-study-modal
  .modal-footer
  > .button.button-secondary.st-btn.btn-success:hover,
body
  .st-study-modal
  .modal-actions
  > .button.button-secondary.st-btn.btn-success:hover {
  background: var(--eduloo-modal-button-primary-hover) !important;
  color: var(--eduloo-modal-button-primary-text) !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn.st-btn--danger,
body .st-study-modal .modal-footer .st-modal-footer-btn.st-btn--danger,
body .st-study-modal .modal-actions .st-modal-footer-btn.st-btn--danger,
body .st-study-modal .st-modal-footer > .st-btn.st-btn--danger,
body .st-study-modal .modal-footer > .st-btn.st-btn--danger,
body .st-study-modal .modal-actions > .st-btn.st-btn--danger,
body .st-study-modal .st-modal-footer > .button.button-danger,
body .st-study-modal .modal-footer > .button.button-danger,
body .st-study-modal .modal-actions > .button.button-danger,
body .st-study-modal .st-modal-footer > .btn.btn-danger,
body .st-study-modal .modal-footer > .btn.btn-danger,
body .st-study-modal .modal-actions > .btn.btn-danger {
  background: var(--eduloo-modal-danger-bg) !important;
  color: var(--eduloo-modal-danger-text) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 34%, transparent) !important;
}

body .st-study-modal .st-modal-footer .st-modal-footer-btn:disabled,
body .st-study-modal .modal-footer .st-modal-footer-btn:disabled,
body .st-study-modal .modal-actions .st-modal-footer-btn:disabled,
body .st-study-modal .st-modal-footer > .st-btn:disabled,
body .st-study-modal .modal-footer > .st-btn:disabled,
body .st-study-modal .modal-actions > .st-btn:disabled,
body .st-study-modal .st-modal-footer > .button:disabled,
body .st-study-modal .modal-footer > .button:disabled,
body .st-study-modal .modal-actions > .button:disabled,
body .st-study-modal .st-modal-footer > .btn:disabled,
body .st-study-modal .modal-footer > .btn:disabled,
body .st-study-modal .modal-actions > .btn:disabled,
body .st-study-modal .st-modal-footer > button:disabled,
body .st-study-modal .modal-footer > button:disabled,
body .st-study-modal .modal-actions > button:disabled {
  opacity: 0.52 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

body .st-study-modal--pomodoro .modal-content {
  width: min(760px, calc(100vw - 28px)) !important;
  max-width: min(760px, calc(100vw - 28px)) !important;
}

body .st-study-modal--pomodoro .st-modal {
  border-radius: 28px !important;
  background:
    radial-gradient(
      160% 95% at 0% 0%,
      color-mix(in srgb, var(--primary-container) 30%, transparent) 0%,
      transparent 52%
    ),
    radial-gradient(
      130% 100% at 100% 100%,
      color-mix(in srgb, var(--secondary-container) 22%, transparent) 0%,
      transparent 62%
    ),
    var(--eduloo-modal-shell-bg) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--eduloo-modal-shell-border) 84%, transparent),
    var(--eduloo-modal-shadow) !important;
}

body .st-study-modal--pomodoro .st-modal-header {
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 22px 22px 14px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-header-copy {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

body .st-study-modal--pomodoro .st-modal-header h2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 31px !important;
  line-height: 1.14 !important;
  letter-spacing: -0.5px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-title-icon {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 68%,
    transparent
  ) !important;
  color: color-mix(
    in srgb,
    var(--primary) 72%,
    var(--on-surface) 28%
  ) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(
      in srgb,
      var(--eduloo-modal-option-selected-border) 78%,
      transparent
    ) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-title-icon i {
  margin: 0 !important;
  font-size: 14px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-header-subtitle {
  margin: 0 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--eduloo-modal-muted) !important;
}

body .st-study-modal--pomodoro .st-modal-body.st-pomodoro-top {
  padding: 10px 22px 20px !important;
  gap: 14px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-display {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: 20px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 76%, transparent) !important;
  background: linear-gradient(
    138deg,
    color-mix(in srgb, var(--eduloo-modal-panel-bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--eduloo-modal-panel-alt) 58%, transparent) 100%
  ) !important;
  padding: 16px 16px 18px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-session {
  margin: 0 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: color-mix(
    in srgb,
    var(--eduloo-modal-button-primary) 78%,
    var(--eduloo-modal-title) 22%
  ) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 84%,
    transparent
  ) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-clock-shell {
  width: 100% !important;
  border-radius: 18px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 70%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 88%,
    transparent
  ) !important;
  padding: 14px 14px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-display h3 {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 82px !important;
  line-height: 0.95 !important;
  font-weight: 800 !important;
  letter-spacing: -1.6px !important;
  text-align: center !important;
  color: var(--eduloo-modal-title) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-next {
  margin: 0 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: var(--eduloo-modal-muted) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-settings-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting {
  --st-pomodoro-control-height: 44px;
  min-height: 110px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
  border-radius: 18px !important;
  background: linear-gradient(
    142deg,
    color-mix(in srgb, var(--eduloo-modal-row-bg) 90%, transparent) 0%,
    color-mix(in srgb, var(--eduloo-modal-panel-alt) 60%, transparent) 100%
  ) !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting-head {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting-head i {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 12px !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-bg) 72%,
    transparent
  ) !important;
  color: color-mix(
    in srgb,
    var(--eduloo-modal-button-primary) 80%,
    var(--eduloo-modal-title) 20%
  ) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting label {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.28px !important;
  text-transform: uppercase !important;
  color: var(--eduloo-modal-muted) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting--active {
  background: linear-gradient(
    142deg,
    color-mix(
        in srgb,
        var(--primary-container) 20%,
        var(--eduloo-modal-row-bg) 80%
      )
      0%,
    color-mix(
        in srgb,
        var(--primary-container) 13%,
        var(--eduloo-modal-panel-alt) 87%
      )
      100%
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-container) 54%,
    var(--eduloo-modal-shell-border) 46%
  ) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting--break {
  background: linear-gradient(
    142deg,
    color-mix(
        in srgb,
        var(--secondary-container) 20%,
        var(--eduloo-modal-row-bg) 80%
      )
      0%,
    color-mix(
        in srgb,
        var(--secondary-container) 13%,
        var(--eduloo-modal-panel-alt) 87%
      )
      100%
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--secondary-container) 52%,
    var(--eduloo-modal-shell-border) 48%
  ) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-setting--current {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 42%, transparent),
    0 18px 28px -24px color-mix(in srgb, var(--primary) 48%, transparent) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-stepper {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-step-btn {
  width: var(--st-pomodoro-control-height) !important;
  min-width: var(--st-pomodoro-control-height) !important;
  height: var(--st-pomodoro-control-height) !important;
  border-radius: 12px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 76%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 84%,
    transparent
  ) !important;
  color: var(--eduloo-modal-button-text) !important;
  box-shadow: none !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease !important;
}

body .st-study-modal--pomodoro .st-pomodoro-step-btn:hover,
body .st-study-modal--pomodoro .st-pomodoro-step-btn:focus-visible {
  border-color: color-mix(
    in srgb,
    var(--eduloo-modal-option-selected-border) 74%,
    transparent
  ) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-row-hover) 70%,
    transparent
  ) !important;
  color: var(--eduloo-modal-button-strong) !important;
  transform: translateY(-1px) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-step-btn i {
  margin: 0 !important;
  font-size: 11px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-value {
  min-height: var(--st-pomodoro-control-height) !important;
  border-radius: 12px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 70%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 90%,
    transparent
  ) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--eduloo-modal-title) !important;
}

body .st-study-modal--pomodoro .st-pomodoro-sessions-select,
body .st-study-modal--pomodoro .st-pomodoro-sessions-select .custom-dropdown {
  width: 100% !important;
}

body
  .st-study-modal--pomodoro
  .st-pomodoro-sessions-select
  .custom-dropdown-trigger {
  min-height: var(--st-pomodoro-control-height) !important;
  height: var(--st-pomodoro-control-height) !important;
  border-radius: 12px !important;
  border: 1px solid
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-input-bg) 90%,
    transparent
  ) !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: var(--eduloo-modal-text) !important;
  padding: 0 12px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 22px 20px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer .st-modal-footer-btn {
  min-width: 0 !important;
  min-height: 48px !important;
  width: 100% !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer-btn--reset,
body .st-study-modal--pomodoro .st-pomodoro-footer-btn--skip {
  width: auto !important;
  min-width: 102px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  font-size: 13px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer-btn--start {
  min-width: 0 !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer-btn i {
  margin: 0 !important;
  font-size: 12px !important;
}

body .st-study-modal--pomodoro .st-pomodoro-footer-btn span {
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  body .st-study-modal--pomodoro .modal-content {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    max-height: calc(100dvh - 10px) !important;
  }

  body .st-study-modal--pomodoro .st-modal {
    border-radius: 22px !important;
  }

  body .st-study-modal--pomodoro .st-modal-header {
    gap: 10px !important;
    padding: 16px 16px 10px !important;
  }

  body .st-study-modal--pomodoro .st-modal-header h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-title-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-header-subtitle {
    font-size: 13px !important;
  }

  body .st-study-modal--pomodoro .st-modal-body.st-pomodoro-top {
    padding: 8px 16px 14px !important;
    gap: 10px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-display {
    border-radius: 16px !important;
    padding: 12px 12px 14px !important;
    gap: 8px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-session {
    font-size: 11px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-clock-shell {
    border-radius: 14px !important;
    padding: 10px 10px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-display h3 {
    font-size: 68px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-next {
    font-size: 13px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-settings-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-setting {
    min-height: 0 !important;
    --st-pomodoro-control-height: 42px;
    border-radius: 16px !important;
    padding: 12px !important;
    gap: 10px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 16px 16px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-footer-btn--start {
    grid-column: 1 / -1 !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-footer-btn--reset,
  body .st-study-modal--pomodoro .st-pomodoro-footer-btn--skip {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  body .st-study-modal--pomodoro .st-pomodoro-setting-head {
    gap: 6px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-value {
    font-size: 15px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-display h3 {
    font-size: 56px !important;
  }

  body .st-study-modal--pomodoro .st-pomodoro-footer .st-modal-footer-btn {
    min-height: 46px !important;
    font-size: 13px !important;
  }
}

body .st-study-modal--document-topics .st-modal-footer,
body .st-study-modal--document-topics .modal-footer,
body .st-study-modal--document-topics .modal-actions {
  padding: 8px 14px 14px !important;
}

body .st-study-modal--edit-quiz .st-modal-footer,
body .st-study-modal--edit-quiz .modal-footer,
body .st-study-modal--edit-quiz .modal-actions {
  padding: 8px 16px 16px !important;
}

body .st-study-modal--workspace-manage {
  background: var(--eduloo-modal-overlay) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
}

body .st-study-modal--workspace-manage .modal-content {
  width: min(1020px, calc(100vw - 34px)) !important;
  max-width: min(1020px, calc(100vw - 34px)) !important;
  max-height: calc(100vh - 34px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body .st-study-modal--workspace-manage .modal-body {
  padding: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body .st-study-modal--workspace-manage .st-study-modal-body {
  width: 100% !important;
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body .st-study-modal--workspace-manage .st-modal {
  margin: 0 !important;
  width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  background: var(--eduloo-modal-shell-bg) !important;
  box-shadow:
    inset 0 0 0 1px var(--eduloo-modal-shell-border),
    var(--eduloo-modal-shadow) !important;
  gap: 0 !important;
}

body .st-study-modal--workspace-manage .st-modal-header {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 24px 24px 18px !important;
  background: var(--eduloo-modal-header-bg) !important;
}

body .st-study-modal--workspace-manage .st-modal-header h2 {
  margin: 0 !important;
  padding: 0 0 3px !important;
  border: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 30px !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  color: var(--eduloo-modal-title) !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-header
  .st-btn.st-btn--only-icon {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-header
  .st-btn.st-btn--only-icon:hover {
  background: var(--eduloo-modal-button-hover) !important;
  color: var(--eduloo-modal-button-strong) !important;
  transform: translateY(-1px) !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-header
  .st-btn.st-btn--only-icon
  i {
  margin: 0 !important;
  font-size: 14px !important;
}

body .st-study-modal--workspace-manage .st-modal-body {
  display: grid !important;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
  gap: 18px !important;
  padding: 8px 24px 22px !important;
  background: transparent !important;
}

body .st-study-modal--workspace-manage .st-modal-body > .st-panel-box {
  min-height: 0 !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-body
  > .st-panel-box:first-child {
  overflow: auto !important;
}

body .st-study-modal--workspace-manage .st-modal-form-group {
  gap: 10px !important;
}

body .st-study-modal--workspace-manage .st-panel-box {
  border: none !important;
  border-radius: 30px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--eduloo-modal-shell-border) 86%, transparent),
    var(--eduloo-modal-panel-shadow) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

body .st-study-modal--workspace-manage [data-workspace-manage-subjects-panel] {
  background: var(--eduloo-modal-panel-alt) !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

body .st-study-modal--workspace-manage .st-modal-form-group label,
body .st-study-modal--workspace-manage .st-workspace-manage-subjects-title,
body .st-study-modal--workspace-manage .st-workspace-manage-section-header {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--eduloo-modal-title) !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-section-header {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: default !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-section-chevron {
  display: none !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-section-body,
body .st-study-modal--workspace-manage .st-workspace-manage-section-body-inner {
  display: contents;
}

body .st-study-modal--workspace-manage .st-modal-inline-row,
body .st-study-modal--workspace-manage [data-workspace-manage-workspace-row] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px 44px !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

body .st-study-modal--workspace-manage .st-panel-workspace-select {
  width: 100% !important;
}

body .st-study-modal--workspace-manage .st-panel-workspace-select select,
body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-trigger,
body .st-study-modal--workspace-manage .st-modal-create-editor input,
body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-search
  input {
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-modal-input-bg) !important;
  color: var(--eduloo-modal-text) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--outline-variant) 40%, transparent) !important;
  padding: 0 14px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition:
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease !important;
}

body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-trigger {
  padding-right: 34px !important;
}

body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-panel {
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow: var(--eduloo-modal-panel-shadow) !important;
  padding: 6px !important;
}

body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-option {
  min-height: 36px !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--eduloo-modal-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-option:hover:not(.disabled),
body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-option.focused:not(.disabled) {
  background: var(--eduloo-modal-row-hover) !important;
}

body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-option.selected:not(.disabled) {
  background: var(--eduloo-modal-option-selected-bg) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-modal-option-selected-border) !important;
  color: var(--eduloo-modal-option-selected-text) !important;
}

body .st-study-modal--workspace-manage .st-panel-workspace-select select:focus,
body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  select:focus-visible,
body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-trigger:focus,
body
  .st-study-modal--workspace-manage
  .st-panel-workspace-select
  .custom-dropdown-trigger:focus-visible,
body .st-study-modal--workspace-manage .st-modal-create-editor input:focus,
body
  .st-study-modal--workspace-manage
  .st-modal-create-editor
  input:focus-visible,
body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-search
  input:focus,
body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-search
  input:focus-visible {
  outline: none !important;
  background: var(--eduloo-modal-input-focus-bg) !important;
  box-shadow: 0 0 0 3px var(--eduloo-modal-focus) !important;
  transform: translateY(-1px) !important;
}

body .st-study-modal--workspace-manage .st-btn {
  border: none !important;
  box-shadow: none !important;
}

body .st-study-modal--workspace-manage .button.button-secondary.st-btn {
  min-height: 44px !important;
  border-radius: 999px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease !important;
}

body .st-study-modal--workspace-manage .button.button-secondary.st-btn:hover,
body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn:focus-visible {
  background: var(--eduloo-modal-button-hover) !important;
  color: var(--eduloo-modal-button-strong) !important;
  transform: translateY(-1px) !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn:focus-visible {
  outline: 2px solid var(--eduloo-modal-focus) !important;
  outline-offset: 2px !important;
}

body .st-study-modal--workspace-manage .button.button-secondary.st-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn:disabled {
  opacity: 0.52 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn.btn-success {
  background: var(--eduloo-modal-button-primary) !important;
  color: var(--eduloo-modal-button-primary-text) !important;
  box-shadow: 0 16px 30px -22px
    color-mix(in srgb, var(--primary) 58%, transparent) !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn.btn-success:hover,
body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn.btn-success:focus-visible {
  filter: saturate(1.04) !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn.st-btn--danger {
  background: var(--eduloo-modal-danger-bg) !important;
  color: var(--eduloo-modal-danger-text) !important;
}

body
  .st-study-modal--workspace-manage
  .button.button-secondary.st-btn.st-btn--only-icon {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  gap: 0 !important;
  color: #fdd6d6 !important;
}

body .st-study-modal--workspace-manage .button.button-secondary.st-btn i {
  margin: 0 !important;
  font-size: 13px !important;
}

body .st-study-modal--workspace-manage .st-modal-create-inline {
  margin-top: 6px !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-create-inline
  > .button.button-secondary.st-btn {
  width: fit-content !important;
  padding: 0 16px !important;
}

body .st-study-modal--workspace-manage .st-modal-create-editor {
  display: none !important;
  width: 100%;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 44px 44px !important;
  gap: 9px !important;
  margin-top: 9px !important;
}

body .st-study-modal--workspace-manage .st-modal-rename-editor {
  display: none !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-create-inline.is-creating
  > [data-workspace-manage-create-trigger] {
  display: none;
}

body
  .st-study-modal--workspace-manage
  .st-modal-create-inline.is-creating
  .st-modal-create-editor {
  display: grid !important;
}

body
  .st-study-modal--workspace-manage
  [data-workspace-manage-workspace-panel].is-renaming-workspace
  [data-workspace-manage-workspace-row] {
  display: none !important;
}

body
  .st-study-modal--workspace-manage
  [data-workspace-manage-workspace-panel].is-renaming-workspace
  [data-workspace-manage-create='workspace'] {
  display: none !important;
}

body
  .st-study-modal--workspace-manage
  [data-workspace-manage-workspace-panel].is-renaming-workspace
  [data-workspace-manage-workspace-rename-editor] {
  display: grid !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-demo-controls {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  background: color-mix(
    in srgb,
    var(--eduloo-modal-row-bg) 86%,
    var(--eduloo-modal-panel-alt) 14%
  ) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--eduloo-modal-shell-border) 76%, transparent),
    0 16px 28px -24px color-mix(in srgb, var(--on-surface) 48%, transparent) !important;
}

body .st-study-modal--workspace-manage .st-demo-toggle-row {
  margin: 0 !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--eduloo-modal-row-alt-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 68%, transparent) !important;
  color: var(--eduloo-modal-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease !important;
}

body .st-study-modal--workspace-manage .st-demo-toggle-row:hover {
  background: var(--eduloo-modal-row-hover) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(
      in srgb,
      var(--eduloo-modal-option-selected-border) 68%,
      transparent
    ) !important;
}

body
  .st-study-modal--workspace-manage
  .st-demo-toggle-row:has(input[type='checkbox']:checked) {
  background: var(--eduloo-modal-option-selected-bg) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-modal-option-selected-border) !important;
  color: var(--eduloo-modal-option-selected-text) !important;
}

body
  .st-study-modal--workspace-manage
  .st-demo-toggle-row
  input[type='checkbox'] {
  flex: 0 0 auto !important;
}

body .st-study-modal--workspace-manage .st-demo-toggle-row span {
  flex: 1 1 auto !important;
}

body .st-study-modal--workspace-manage .st-demo-toggle-hint {
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--eduloo-modal-row-alt-bg) !important;
  color: var(--eduloo-modal-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body .st-study-modal--workspace-manage .st-demo-toggle-hint .icon {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--primary) !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subjects-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-search {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-search i {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--eduloo-modal-muted) !important;
  pointer-events: none !important;
}

body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-search
  input {
  padding-left: 37px !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-table {
  border: none !important;
  border-radius: 0px !important;
  background: transparent !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-table-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 2px !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  border: none !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.42px !important;
  text-transform: uppercase !important;
  color: var(--eduloo-modal-muted) !important;
  flex: 0 0 auto !important;
}

body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-table-head
  > span:last-child {
  text-align: center !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-table-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: none !important;
  min-height: 230px !important;
  height: 100% !important;
  overflow: auto !important;
  padding-right: 3px !important;
  flex: 1 1 auto !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 11px 12px !important;
  border: none !important;
  border-radius: 20px !important;
  background: var(--eduloo-modal-row-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 68%, transparent) !important;
  transition:
    background 220ms ease,
    transform 220ms ease !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row:nth-child(even) {
  background: var(--eduloo-modal-row-alt-bg) !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row:hover {
  background: var(--eduloo-modal-row-hover) !important;
  transform: translateY(-1px) !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row[hidden] {
  display: none !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-cell {
  min-width: 0 !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-cell--name {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: var(--eduloo-modal-title) !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-cell--name span {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-action-btn {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  gap: 0 !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-editor {
  display: none !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) 44px 44px !important;
  gap: 9px !important;
  margin-top: 1px !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row.is-renaming {
  grid-template-columns: 1fr !important;
  padding: 10px !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-subject-row.is-renaming
  > .st-modal-subject-cell,
body
  .st-study-modal--workspace-manage
  .st-modal-subject-row.is-renaming
  > .st-modal-subject-actions {
  display: none !important;
}

body
  .st-study-modal--workspace-manage
  .st-modal-subject-row.is-renaming
  .st-modal-subject-editor {
  display: grid !important;
}

body .st-study-modal--workspace-manage [hidden] {
  display: none !important;
}

body .st-study-modal--workspace-manage .st-modal-subject-row--empty {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
  color: var(--eduloo-modal-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body
  .st-study-modal--workspace-manage
  [data-workspace-manage-subjects-panel].is-renaming-subject
  [data-workspace-manage-create='subject'] {
  display: none !important;
}

body .st-study-modal--workspace-manage .st-workspace-manage-subject-create {
  margin-top: 11px !important;
}

body
  .st-study-modal--workspace-manage
  .st-workspace-manage-subject-create
  > .button.button-secondary.st-btn {
  width: fit-content !important;
  min-height: 44px !important;
  padding: 0 16px !important;
}

@media (max-width: 1080px) {
  body .st-study-modal--workspace-manage .modal-content {
    width: min(980px, calc(100vw - 30px)) !important;
    max-width: min(980px, calc(100vw - 30px)) !important;
  }

  body .st-study-modal--workspace-manage .st-modal-body {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body
    .st-study-modal--workspace-manage
    .st-workspace-manage-subject-table-body {
    min-height: 0 !important;
    max-height: 300px !important;
  }
}

@media (max-width: 760px) {
  body[class] .modal,
  body[class] .st-study-modal,
  body[class] .st-study-modal--workspace-manage,
  body[class] .st-study-modal--document-topics,
  body[class] .st-study-modal--edit-quiz,
  body[class] .st-study-modal--pomodoro,
  body[class] .st-study-modal--merge,
  body[class] .st-study-modal--citation-sources,
  body[class] .st-study-modal--study-feedback {
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body[class] .st-study-modal .modal-content,
  body[class] .st-study-modal--workspace-manage .modal-content,
  body[class] .st-study-modal--document-topics .modal-content,
  body[class] .st-study-modal--edit-quiz .modal-content,
  body[class] .st-study-modal--pomodoro .modal-content,
  body[class] .st-study-modal--merge .modal-content,
  body[class] .st-study-modal--citation-sources .modal-content,
  body[class] .st-study-modal--study-feedback .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  body[class] .st-study-modal--workspace-manage .modal-content {
    max-height: calc(100vh - 16px) !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal {
    border-radius: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-header {
    padding: 18px 16px 14px !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-header h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding: 2px 14px 14px !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-body > .st-panel-box,
  body[class]
    .st-study-modal--workspace-manage
    .st-modal-body
    > [data-workspace-manage-subjects-panel] {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[class] .st-study-modal--workspace-manage .st-panel-box {
    border-radius: 22px !important;
    padding: 14px !important;
    gap: 9px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-inline-row,
  body[class]
    .st-study-modal--workspace-manage
    [data-workspace-manage-workspace-row] {
    grid-template-columns: minmax(0, 1fr) 40px 40px !important;
    gap: 6px !important;
  }

  body[class]
    .st-study-modal--workspace-manage
    .st-workspace-manage-subjects-toolbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body[class]
    .st-study-modal--workspace-manage
    .st-workspace-manage-subject-table-head {
    display: none !important;
  }

  body[class]
    .st-study-modal--workspace-manage
    .st-workspace-manage-subject-table-body {
    min-height: 0 !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-subject-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-subject-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  body[class]
    .st-study-modal--workspace-manage
    .st-modal-create-inline
    > .button.button-secondary.st-btn,
  body[class]
    .st-study-modal--workspace-manage
    .st-workspace-manage-subject-create
    > .button.button-secondary.st-btn {
    width: 100% !important;
  }

  body[class] .st-study-modal--workspace-manage .st-modal-create-editor,
  body[class] .st-study-modal--workspace-manage .st-modal-rename-editor {
    grid-template-columns: minmax(0, 1fr) 40px 40px !important;
    gap: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .st-study-modal--workspace-manage .st-btn,
  body .st-study-modal--workspace-manage .st-modal-subject-row,
  body .st-study-modal--workspace-manage .st-modal-create-editor input,
  body
    .st-study-modal--workspace-manage
    .st-workspace-manage-subject-search
    input,
  body .st-study-modal--workspace-manage .st-panel-workspace-select select,
  body
    .st-study-modal--workspace-manage
    .st-panel-workspace-select
    .custom-dropdown-trigger {
    transition: none !important;
  }
}

body
  .st-study-modal:not(.st-study-modal--document-topics):not(
    .st-study-modal--edit-quiz
  ):not(.st-study-modal--workspace-manage)
  .st-modal-body {
  padding: 12px 22px 20px !important;
  gap: 14px !important;
}

body
  .st-study-modal:not(.st-study-modal--document-topics):not(
    .st-study-modal--edit-quiz
  ):not(.st-study-modal--workspace-manage)
  .st-modal-form-group {
  padding: 12px !important;
  border-radius: 18px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 76%, transparent) !important;
  gap: 8px !important;
}

body .st-study-modal .base-multi-select-button-group-wrap {
  border-radius: 16px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
  padding: 6px !important;
}

body .st-study-modal .base-multi-select-button-group {
  gap: 6px !important;
}

body
  .st-study-modal
  .base-multi-select-button-group
  .base-multi-select-button-group__btn {
  min-height: 42px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--eduloo-modal-button-bg) !important;
  color: var(--eduloo-modal-button-text) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
}

body
  .st-study-modal
  .base-multi-select-button-group
  .base-multi-select-button-group__btn--active {
  background: var(--eduloo-modal-option-selected-bg) !important;
  color: var(--eduloo-modal-option-selected-text) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-modal-option-selected-border) !important;
}

body .st-study-modal .st-modal-inline-row.st-topic-select-row {
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 6px !important;
  border-radius: 18px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--eduloo-modal-shell-border) 72%, transparent) !important;
}

/* app-ui-modals.css wraps this row on narrow screens so the All-topics button
   drops to its own line; the nowrap !important above outranked it and left the
   button overlapping the dropdown. */
@media (max-width: 640px) {
  body .st-study-modal .st-modal-inline-row.st-topic-select-row {
    flex-wrap: wrap !important;
  }

  body
    .st-study-modal
    .st-modal-inline-row.st-topic-select-row
    .st-topic-select-all-toggle {
    width: 100% !important;
    align-self: auto !important;
  }
}

body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .st-topic-select-row__select,
body .st-study-modal .st-modal-inline-row.st-topic-select-row .custom-dropdown {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-trigger {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: none !important;
  background: var(--eduloo-modal-input-bg) !important;
  color: var(--eduloo-modal-text) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--outline-variant) 42%, transparent),
    0 10px 16px -14px color-mix(in srgb, var(--on-surface) 48%, transparent) !important;
  padding: 0 14px !important;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease !important;
}

body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown.open
  .custom-dropdown-trigger,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-trigger:focus,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-trigger:focus-visible {
  background: var(--eduloo-modal-input-focus-bg) !important;
  box-shadow:
    0 0 0 3px var(--eduloo-modal-focus),
    inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--eduloo-modal-option-selected-border) 70%,
        transparent
      ) !important;
  transform: none !important;
}

body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel {
  margin-top: 4px !important;
  border-radius: 14px !important;
  background: var(--eduloo-modal-panel-bg) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--eduloo-modal-shell-border) 78%, transparent),
    0 22px 30px -24px color-mix(in srgb, var(--on-surface) 62%, transparent) !important;
}

body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel.is-open.attach-bottom {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  transform-origin: top center;
  animation: st-topic-dropdown-panel-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body .st-topic-select-dropdown-panel .custom-dropdown-search,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search {
  width: 100% !important;
}

body .st-topic-select-dropdown-panel .custom-dropdown-search .search-field,
body .st-topic-select-dropdown-panel .custom-dropdown-search .st-search-field,
body .st-topic-select-dropdown-panel .custom-dropdown-search > *,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  .search-field,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  .st-search-field,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  > * {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
}

body
  .st-topic-select-dropdown-panel
  .custom-dropdown-search
  .search-field__input,
body
  .st-topic-select-dropdown-panel
  .custom-dropdown-search
  .st-search-field
  input,
body
  .st-topic-select-dropdown-panel
  .custom-dropdown-search
  .search-field
  input,
body
  .st-topic-select-dropdown-panel
  .custom-dropdown-search
  input[type='search'],
body .st-topic-select-dropdown-panel .custom-dropdown-search input[type='text'],
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  .search-field__input,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  .st-search-field
  input,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  .search-field
  input,
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  input[type='search'],
body
  .st-study-modal
  .st-modal-inline-row.st-topic-select-row
  .custom-dropdown-panel
  .custom-dropdown-search
  input[type='text'] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}
