/* global styles placeholder */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.-right-1 {
  right: -0.25rem;
}
.-top-1 {
  top: -0.25rem;
}
.z-50 {
  z-index: 50;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-2 {
  height: 0.5rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-64 {
  height: 16rem;
}
.h-80 {
  height: 20rem;
}
.h-96 {
  height: 24rem;
}
.h-full {
  height: 100%;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-full {
  max-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.w-12 {
  width: 3rem;
}
.w-20 {
  width: 5rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-auto {
  width: auto;
}
.w-full {
  width: 100%;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-full {
  max-width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-none {
  max-width: none;
}
.flex-1 {
  flex: 1 1 0%;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {
  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-4 {
  border-width: 4px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-black {
  --tw-border-opacity: 1;
  border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
}
.border-blue-800 {
  --tw-border-opacity: 1;
  border-color: rgb(30 64 175 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.border-purple-600 {
  --tw-border-opacity: 1;
  border-color: rgb(147 51 234 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-800 {
  --tw-border-opacity: 1;
  border-color: rgb(153 27 27 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-blue-900\/30 {
  background-color: rgb(30 58 138 / 0.3);
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-900\/30 {
  background-color: rgb(127 29 29 / 0.3);
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
}
.bg-opacity-70 {
  --tw-bg-opacity: 0.7;
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-400 {
  --tw-gradient-from: #60a5fa var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-600 {
  --tw-gradient-from: #9333ea var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-blue-600 {
  --tw-gradient-to: #2563eb var(--tw-gradient-to-position);
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.opacity-0 {
  opacity: 0;
}
.opacity-90 {
  opacity: 0.9;
}
.mix-blend-multiply {
  mix-blend-mode: multiply;
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 {
  transition-duration: 300ms;
}

/* 你可以放一些全局兜底 */
html, body {
  height: 100%;
}
/* react-easy-crop styles */
.reactEasyCrop_Container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.dark .reactEasyCrop_Container {
  background: #374151;
}

.reactEasyCrop_Image {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  will-change: transform;
}

.reactEasyCrop_CropArea {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 0 9999em rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ========================================
   Slide Annotations (Comment Box Style)
   ======================================== */

.slide-annotations {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
}

.annotation-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.annotation-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.annotation-toggle:active {
  transform: scale(0.95);
}

.annotation-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.annotation-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  max-height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: slideIn 0.2s ease-out;
}

.dark .annotation-panel {
  background: #1f2937;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.annotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.annotation-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.annotation-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
  line-height: 1;
}

.annotation-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.annotation-content {
  max-height: 440px;
  overflow-y: auto;
  padding: 16px 20px;
}

.annotation-content::-webkit-scrollbar {
  width: 6px;
}

.annotation-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.annotation-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.annotation-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dark .annotation-content::-webkit-scrollbar-track {
  background: #374151;
}
.dark .annotation-content::-webkit-scrollbar-thumb {
  background: #6b7280;
}
.dark .annotation-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.annotation-section {
  margin-bottom: 20px;
}

.annotation-section:last-child {
  margin-bottom: 0;
}

.annotation-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.dark .annotation-section-title {
  color: #d1d5db;
  border-bottom-color: #4b5563;
}

.annotation-section-title svg {
  color: #667eea;
}


.annotation-item {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.annotation-item:last-child {
  margin-bottom: 0;
}

.annotation-item:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

.dark .annotation-item {
  background: #374151;
}
.dark .annotation-item:hover {
  background: #4b5563;
}

.annotation-item.rubric {
  border-left-color: #667eea;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, #f9fafb 100%);
}

.annotation-item.source {
  border-left-color: #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, #f9fafb 100%);
}

.dark .annotation-item.rubric {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, #374151 100%);
}
.dark .annotation-item.source {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, #374151 100%);
}

.annotation-text {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.dark .annotation-text {
  color: #e5e7eb;
}

/* Hide annotations when printing */
@media print {
  .slide-annotations {
    display: none !important;
  }
}
.placeholder\:text-gray-400::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.placeholder\:text-gray-400::placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.hover\:border-gray-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-900\/50:hover {
  background-color: rgb(30 58 138 / 0.5);
}
.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-900\/50:hover {
  background-color: rgb(127 29 29 / 0.5);
}
.hover\:bg-yellow-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(253 224 71 / var(--tw-bg-opacity, 1));
}
.hover\:from-purple-700:hover {
  --tw-gradient-from: #7e22ce var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(126 34 206 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-blue-700:hover {
  --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
}
.hover\:text-blue-600:hover {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.hover\:opacity-90:hover {
  opacity: 0.9;
}
.active\:scale-95:active {
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.disabled\:opacity-40:disabled {
  opacity: 0.4;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.dark\:border:is(.dark *) {
  border-width: 1px;
}
.dark\:border-blue-500:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.dark\:border-blue-600:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.dark\:border-gray-600:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.dark\:border-gray-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dark\:border-yellow-600:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(202 138 4 / var(--tw-border-opacity, 1));
}
.dark\:bg-blue-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.dark\:bg-blue-700:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-700:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-800:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-900:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.dark\:bg-yellow-700:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}
.dark\:text-blue-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-100:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-500:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dark\:text-white:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.dark\:mix-blend-normal:is(.dark *) {
  mix-blend-mode: normal;
}
.dark\:placeholder\:text-gray-400:is(.dark *)::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dark\:placeholder\:text-gray-400:is(.dark *)::placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dark\:placeholder\:text-gray-500:is(.dark *)::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dark\:placeholder\:text-gray-500:is(.dark *)::placeholder {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dark\:hover\:border-gray-500:hover:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}
.dark\:hover\:bg-blue-600:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-gray-600:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-gray-700:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-yellow-600:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
@media (min-width: 768px) {
  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }
  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* =========================================================
   RubricFlow Premium UI Kit v3.2 (deterministic layout + media slots)
   - Single source of truth:
     theme  => .theme-container[data-theme="..."]
     layout => .theme-container[data-layout="..."]
     font   => .theme-container[data-font="..."]
   - Deterministic media system:
     rf-role-(logo|figure|cover|icon|chart)
     rf-fit-(contain|cover)
     rf-pos-(left|right|top|bottom)
   - Fixes:
     * de-dup rules
     * stable markdown lists (nested list not "collapsed")
     * label overlay is single definition
     * print is clean + no accidental footer artifacts
   ========================================================= */

:root {
  /* A4 landscape size - matches Microsoft Print to PDF exactly */
  --slide-w: 297mm;
  --slide-h: 210mm;

  /* spacing tokens */
  --pad-x: 8%;
  --pad-y: 6%;
  --footer-h: 44px;

  /* layout tokens */
  --col-gap: 26px;
  --media-w: 40%;
  --text-w: 60%;
}

/* =========================================================
   BASE CONTAINER (print-friendly)
   ========================================================= */
.theme-container {
  width: var(--slide-w);
  height: var(--slide-h);
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  background: #fff;
  color: #111;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

/* Screen-only shadow (not for print) */
@media screen {
  .theme-container.slide-page {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}

/* hard safety: avoid unexpected box sizing explosions */
.theme-container,
.theme-container * {
  box-sizing: border-box;
}

/* isolate any global/prose img rules */
.theme-container img {
  max-width: none;
  height: auto;
}

/* =========================================================
   SLIDE GRID: header | body | footer
   ========================================================= */
.slide-content {
  height: 100%;
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 18px;
  min-height: 0;
  position: relative; /* REQUIRED for absolute logo slot + label */
}

/* header block compatibility */
.title-area h1,
.title {
  margin: 0;
  line-height: 1.15;
}

/* =========================================================
   COVER LAYOUT (centered title, minimal content)
   ========================================================= */
.theme-container[data-layout="cover"] .slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--pad-y) 15%;
}

.theme-container[data-layout="cover"] .title-area {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.theme-container[data-layout="cover"] .title {
  font-size: calc(64px * var(--rf-title-scale, 1)) !important;
  line-height: 1.1;
}

.theme-container[data-layout="cover"] .content-text {
  font-size: calc(24px * var(--rf-body-scale, 1)) !important;
  max-width: 800px;
  line-height: 1.6;
}

.theme-container[data-layout="cover"] .rf-body {
  flex: none;
}

/* Ensure formatting works in Cover layout */
.theme-container[data-layout="cover"] .content-text strong,
.theme-container[data-layout="cover"] .content-text b {
  font-weight: 700;
  font-size: inherit !important;
}

.theme-container[data-layout="cover"] .content-text em,
.theme-container[data-layout="cover"] .content-text i {
  font-style: italic;
  font-size: inherit !important;
}

.theme-container[data-layout="cover"] .content-text u {
  text-decoration: underline;
  font-size: inherit !important;
}

.theme-container[data-layout="cover"] .content-text mark {
  background-color: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-size: inherit !important;
}

.theme-container[data-layout="cover"] .content-text mark.yellow {
  background-color: #fef08a;
}

.theme-container[data-layout="cover"] .content-text mark.green {
  background-color: #bbf7d0;
}

.theme-container[data-layout="cover"] .content-text mark.blue {
  background-color: #bfdbfe;
}

.theme-container[data-layout="cover"] .content-text mark.pink {
  background-color: #fbcfe8;
}

.theme-container[data-layout="cover"] .content-text mark.orange {
  background-color: #fed7aa;
}

/* =========================================================
   CITATION LAYOUT (smaller title, left-aligned list)
   ========================================================= */
.theme-container[data-layout="citation"] .slide-content {
  padding: var(--pad-y) var(--pad-x);
}

.theme-container[data-layout="citation"] .title {
  font-size: calc(40px * var(--rf-title-scale, 1)) !important;
  margin-bottom: 30px;
}

.theme-container[data-layout="citation"] .content-text {
  font-size: calc(18px * var(--rf-body-scale, 1)) !important;
  line-height: 1.7;
  text-align: left;
}

.theme-container[data-layout="citation"] .content-text ul {
  list-style: none;
  padding-left: 0;
}

.theme-container[data-layout="citation"] .content-text li {
  margin-bottom: 20px;
  padding-left: 40px;
  text-indent: -40px;
}

/* Ensure formatting works in Citation layout */
.theme-container[data-layout="citation"] .content-text strong,
.theme-container[data-layout="citation"] .content-text b {
  font-weight: 700;
  font-size: inherit !important;
}

.theme-container[data-layout="citation"] .content-text em,
.theme-container[data-layout="citation"] .content-text i {
  font-style: italic;
  font-size: inherit !important;
}

.theme-container[data-layout="citation"] .content-text u {
  text-decoration: underline;
  font-size: inherit !important;
}

.theme-container[data-layout="citation"] .content-text mark {
  background-color: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-size: inherit !important;
}

.theme-container[data-layout="citation"] .content-text mark.yellow {
  background-color: #fef08a;
}

.theme-container[data-layout="citation"] .content-text mark.green {
  background-color: #bbf7d0;
}

.theme-container[data-layout="citation"] .content-text mark.blue {
  background-color: #bfdbfe;
}

.theme-container[data-layout="citation"] .content-text mark.pink {
  background-color: #fbcfe8;
}

.theme-container[data-layout="citation"] .content-text mark.orange {
  background-color: #fed7aa;
}

/* =========================================================
   LABEL CHIP (single source)
   ========================================================= */
.label {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  padding-left: 12px;
  z-index: 5;
  
  /* Modern left border accent */
  border-left: 3px solid rgba(0, 0, 0, 0.15);
}

/* =========================================================
   BODY WRAPPER (prevents layout collapse)
   ========================================================= */
.rf-body {
  min-height: 0;
  overflow: visible;
}

/* Optional alternative (if you still use body-grid layout somewhere) */
.body-grid {
  display: grid;
  grid-template-columns: 1fr;
  -moz-column-gap: var(--col-gap);
       column-gap: var(--col-gap);
  align-items: start;
  min-height: 0;
}

.col-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.col-media {
  min-width: 0;
  display: none;
}

/* Text-only */
.theme-container[data-layout="text-only"] .body-grid {
  grid-template-columns: 1fr;
}
.theme-container[data-layout="text-only"] .col-media {
  display: none;
}

/* Media-right */
.theme-container[data-layout="media-right"] .body-grid {
  grid-template-columns: var(--text-w) var(--media-w);
}
.theme-container[data-layout="media-right"] .col-media {
  display: block;
}

/* Media-left */
.theme-container[data-layout="media-left"] .body-grid {
  grid-template-columns: var(--media-w) var(--text-w);
}
.theme-container[data-layout="media-left"] .col-media {
  display: block;
}

/* =========================================================
   CONTENT TEXT (stable)
   ========================================================= */
.content-text {
  margin-top: 0;
  min-height: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Tables: prevent overflow */
.content-text table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  table-layout: auto;
}

.content-text th,
.content-text td {
  padding: 6px 10px;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.15);
  overflow-wrap: break-word;
  word-break: break-word;
}

.content-text th {
  font-weight: 600;
  background: rgba(0,0,0,0.04);
}

/* Highlight (荧光笔) support - multiple colors */
.content-text mark {
  background-color: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-size: inherit !important;
}

.content-text mark[data-color="yellow"],
.content-text mark.yellow {
  background-color: #fef08a;
}

.content-text mark[data-color="green"],
.content-text mark.green {
  background-color: #bbf7d0;
}

.content-text mark[data-color="blue"],
.content-text mark.blue {
  background-color: #bfdbfe;
}

.content-text mark[data-color="pink"],
.content-text mark.pink {
  background-color: #fbcfe8;
}

.content-text mark[data-color="orange"],
.content-text mark.orange {
  background-color: #fed7aa;
}

/* Inline text color support */
/* Inline color styles: no override needed; remove empty rule to satisfy linter */

/* =========================================================
   GLOBAL FORMATTING INHERITANCE FIX
   - Ensure all inline formatting inherits font-size from parent
   - Use very strong selectors to override inline styles
   ========================================================= */
.content-text strong,
.content-text b,
.content-text em,
.content-text i,
.content-text u,
.content-text mark,
.content-text span,
.content-text strong *,
.content-text b *,
.content-text em *,
.content-text i *,
.content-text u *,
.content-text mark *,
.content-text span * {
  font-size: inherit !important;
}

/* Extra strong override for span with inline styles */
.content-text span[style],
.content-text span[style] * {
  font-size: inherit !important;
}

/* Force inheritance in list items - critical for maintaining size when formatting */
.content-text li strong,
.content-text li b,
.content-text li em,
.content-text li i,
.content-text li u,
.content-text li mark,
.content-text li span,
.content-text li strong *,
.content-text li b *,
.content-text li em *,
.content-text li i *,
.content-text li u *,
.content-text li mark *,
.content-text li span *,
.content-text li span[style],
.content-text li span[style] * {
  font-size: inherit !important;
}

/* =========================================================
   MARKDOWN LIST SANITY (fix nested list "collapsed" look)
   - Key rule: top-level can be minimal, but nested MUST indent
   ========================================================= */

/* Reset only inside content area */
.content-text ul,
.content-text ol {
  margin: 0;
  padding-left: 0; /* 顶层极简 */
  list-style: none;
}

.content-text li {
  margin: 0 0 12px 0;
}

/* Nested lists MUST indent */
.content-text li > ul,
.content-text li > ol {
  margin-top: 10px;
  padding-left: 22px;
}

/* Avoid paragraph adding weird vertical gaps inside list items */
.content-text p {
  margin: 0;
}

/* =========================================================
   FOOTER (you can hide via TSX; CSS stays sane)
   ========================================================= */
.footer {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 15px;
}

/* =========================================================
   PAGE NUMBER (bottom right corner)
   ========================================================= */
.page-number {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  z-index: 3;
}

/* =========================================================
   OPTIONAL FONT OVERRIDE
   ========================================================= */
.theme-container[data-font="calibri"] {
  font-family: "Calibri", "Candara", "Segoe UI", "Inter", sans-serif !important;
}
.theme-container[data-font="times"] {
  font-family: "Times New Roman", "Times", "Noto Serif SC", serif !important;
}
.theme-container[data-font="inter"] {
  font-family: "Inter", "Segoe UI", "Helvetica", "Arial", sans-serif !important;
}
/* data-font="auto" => do nothing */

/* =========================================================
   DETERMINISTIC MEDIA SYSTEM (RubricFlow Slots)
   ========================================================= */

/* common media wrapper */
.rf-media {
  width: 100%;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* image itself is fully controlled */
.rf-img {
  width: 100%;
  height: 100%;
  display: block;

  /* Word-style micro adjust */
  --img-x: 0px;
  --img-y: 0px;
  transform: translate(var(--img-x), var(--img-y));
  will-change: transform;
}

/* fit modes */
.rf-fit-contain {
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
}
.rf-fit-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

/* default role sizes (prevents overflow) */
.rf-role-image,
.rf-role-figure,
.rf-role-chart {
  height: auto;
  max-height: 280px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* LOGO SLOT: pinned top-right, doesn't push text */
.rf-logo-slot {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 180px;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-logo-slot .rf-media {
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-role-logo {
  height: auto;
  max-height: 90px;
  max-width: 180px;
}
.rf-role-logo .rf-img {
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  position: static;
  transform: none;
}

/* STICKER: pinned bottom-right, adjustable by offsets */
.rf-sticker {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 160px;
  height: 160px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-role-sticker {
  width: 100%;
  height: 100%;
  max-width: 160px;
  max-height: 160px;
}
.rf-role-sticker .rf-img {
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
  width: 100%;
  height: 100%;
  position: static;
}

/* TOP/BOTTOM slots: full width, stacked vertically */
.rf-bottom-slot,
.rf-top-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: auto;
}

.rf-bottom-slot .rf-media {
  height: auto;
  max-height: 200px;
  width: 100%;
  overflow: visible;
}
.rf-top-slot .rf-media {
  height: auto;
  max-height: 200px;
  width: 100%;
  overflow: visible;
}

.rf-top-slot .rf-media .rf-img,
.rf-bottom-slot .rf-media .rf-img {
  height: 100%;
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* TWO-COL internal layout for images in body - prevent overflow */
.rf-two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
  min-height: 0;
  overflow: visible;
}
.rf-two-col.img-left {
  grid-template-columns: 0.7fr 1.3fr;
}
.rf-two-col.img-left .rf-media-container {
  order: 0;
}
.rf-two-col.img-left .rf-text {
  order: 1;
}

/* Container for multiple images in two-col layout */
.rf-media-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}
.rf-two-col.img-left .rf-text {
  order: 1;
}

/* Prevent text from overflowing */
.rf-two-col .rf-text {
  min-width: 0;
  overflow: hidden;
}

/* Prevent image from overflowing */
.rf-two-col .rf-media {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  overflow: visible;
}

/* Optional neutral placeholder (if you still use .media-box) */
.media-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  place-items: center;
  font-size: 12px;
  opacity: 0.75;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.media-caption {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}

/* =========================================================
   THEME 1: ACADEMIC (Minimalist)
   ========================================================= */
.theme-container[data-theme="academic"] {
  --font-title: "Times New Roman", serif;
  --font-body: "Times New Roman", "Source Serif Pro", serif;
  --accent: var(--rf-accent, #000000);
  --bg: #ffffff;
  --line-color: #eeeeee;

  background-color: var(--bg);
  color: #111111;
  font-family: var(--font-body);
}

.theme-container[data-theme="academic"] .title-area {
  border-bottom: 0.5px solid var(--accent);
  padding-bottom: 20px;
  text-align: left;
}

.theme-container[data-theme="academic"] .title {
  font-family: var(--font-title);
  font-size: calc(52px * var(--rf-title-scale, 1)) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000;
}

.theme-container[data-theme="academic"] .content-text li {
  font-size: calc(28px * var(--rf-body-scale, 1)) !important;
  margin-bottom: 18px;
  line-height: 1.6;
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.theme-container[data-theme="academic"] .content-text li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #999;
}

.theme-container[data-theme="academic"] .footer {
  border-top: 0.5px solid var(--line-color);
  color: #999;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Academic: media should look minimal */
.theme-container[data-theme="academic"] .media-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 0;
}

/* Academic: page number */
.theme-container[data-theme="academic"] .page-number {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* =========================================================
   THEME 2: BUSINESS (Investment Banking Pitch v1 — crisp, dense, scannable)
   ========================================================= */

.theme-container[data-theme="business"] {
  /* palette */
  --ib-navy: #0b2a5b;        /* deep bank navy */
  --ib-blue: #1a4ea1;        /* secondary */
  --ib-red:  #c8102e;        /* accent (sparingly) */
  --ib-ink:  #111827;        /* near-black */
  --ib-muted:#4b5563;        /* gray */
  --ib-line: #d7dde6;        /* divider */
  --bg: #ffffff;

  background: var(--bg);
  color: var(--ib-ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* tighter default vibe */
  letter-spacing: -0.005em;
}

/* Top bar (brand line) */
.theme-container[data-theme="business"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--ib-navy) 0%, var(--ib-blue) 55%, var(--ib-red) 100%);
}

/* Label chip: becomes a "deal tag" */
.theme-container[data-theme="business"] .label {
  background: transparent;
  border: none;
  border-left: 3px solid var(--ib-navy);
  color: var(--ib-navy);
  opacity: 0.75;
  font-weight: 700;
  padding-left: 12px;
}

/* Title area: tight + divider like pitch pages */
.theme-container[data-theme="business"] .title-area {
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ib-line);
}

/* Title: big, hard, navy */
.theme-container[data-theme="business"] .title-area h1,
.theme-container[data-theme="business"] .title {
  font-size: calc(50px * var(--rf-title-scale, 1)) !important;
  font-weight: 800;
  color: var(--ib-navy) !important;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Optional subtitle if you have it */
.theme-container[data-theme="business"] .title-area .subtitle,
.theme-container[data-theme="business"] .subtitle {
  margin-top: 8px;
  color: var(--ib-muted);
  font-size: 16px;
  font-weight: 600;
}

/* Content text base */
.theme-container[data-theme="business"] .content-text {
  color: var(--ib-ink);
}

/* List system: scannable bank bullets */
.theme-container[data-theme="business"] .content-text ul,
.theme-container[data-theme="business"] .content-text ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.theme-container[data-theme="business"] .content-text li {
  font-size: calc(27px * var(--rf-body-scale, 1)) !important;
  line-height: 1.45;
  margin-bottom: 10px;

  /* no card, keep it report-like */
  background: transparent;
  border: none;
  border-radius: 0;

  position: relative;
  padding-left: 18px; /* room for ■ */
  color: #1f2937;
}

/* Bullet: solid square like decks */
.theme-container[data-theme="business"] .content-text li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.55em;
  font-size: 9px;
  color: var(--ib-navy);
}

/* Nested bullets: hollow square + indent */
.theme-container[data-theme="business"] .content-text li > ul,
.theme-container[data-theme="business"] .content-text li > ol {
  margin-top: 8px;
  padding-left: 18px;
}

.theme-container[data-theme="business"] .content-text li > ul > li,
.theme-container[data-theme="business"] .content-text li > ol > li {
  font-size: calc(22px * var(--rf-body-scale, 1)) !important;
  margin-bottom: 8px;
  padding-left: 18px;
  color: #374151;
}

.theme-container[data-theme="business"] .content-text li > ul > li::before,
.theme-container[data-theme="business"] .content-text li > ol > li::before {
  content: "□";
  font-size: 10px;
  color: rgba(11,42,91,0.75);
  top: 0.52em;
}

/* Emphasis helper (if you wrap <b> or <strong> in markdown rendering) */
.theme-container[data-theme="business"] .content-text strong,
.theme-container[data-theme="business"] .content-text b {
  color: var(--ib-navy);
  font-weight: 800;
  font-size: inherit !important;
}

/* Media: clean report figure frame */
.theme-container[data-theme="business"] .rf-media {
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Make charts look like charts (no thick rounding) */
.theme-container[data-theme="business"] .rf-role-image .rf-img,
.theme-container[data-theme="business"] .rf-role-chart .rf-img,
.theme-container[data-theme="business"] .rf-role-figure .rf-img {
  background: transparent;
}

/* Footer: "page furniture" */
.theme-container[data-theme="business"] .footer {
  border-top: 1.5px solid var(--ib-line);
  color: rgba(75,85,99,0.92);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

/* Optional: if you use .media-box placeholder in decks */
.theme-container[data-theme="business"] .media-box {
  border: 1px dashed rgba(17,24,39,0.22);
  background: rgba(0,0,0,0.02);
  color: rgba(75,85,99,0.8);
  border-radius: 10px;
}

/* Business: page number */
.theme-container[data-theme="business"] .page-number {
  color: var(--ib-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Print: ensure crisp */
@media print {
  .theme-container[data-theme="business"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .theme-container[data-theme="business"] .rf-media {
    box-shadow: none !important;
  }
}

/* =========================================================
   THEME 3: GAME (Indie Arcade v2 — clean, punchy, not childish)
   ========================================================= */

.theme-container[data-theme="game"] {
  /* Base tokens */
  --bg: #ffffff;                 /* clean white */
  --panel: rgba(16, 24, 40, 0.04);
  --panel-2: rgba(16, 24, 40, 0.07);
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);

  /* Accent system (uses your existing --rf-accent if provided) */
  --g-accent: var(--rf-accent, #7c5cff);  /* electric violet */
  --g-accent-2: #35f0c6;                  /* mint highlight */

  background:
    radial-gradient(900px 520px at 18% 18%, rgba(124,92,255,0.12), transparent 55%),
    radial-gradient(700px 420px at 92% 22%, rgba(53,240,198,0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  color: var(--ink);
}

/* Optional: tighten the label to match game HUD */
.theme-container[data-theme="game"] .label {
  background: transparent;
  border: none;
  /* Subtle HUD accent, less neon */
  border-left: 3px solid rgba(124,92,255,0.55);
  color: rgba(15,23,42,0.62);
  opacity: 0.9;
  padding-left: 12px;
}

/* Align Game theme header with others (use base padding) */
.theme-container[data-theme="game"] .slide-content {
  padding-top: var(--pad-y);
}

/* Title area: subtle HUD line + title glow (controlled) */
.theme-container[data-theme="game"] .title-area {
  padding-bottom: 14px;
  /* Full-width underline, aligned with Business/Academic */
  border-bottom: 1.5px solid rgba(124,92,255,0.35);
  position: relative;
}

/* Remove short accent line to match full-width underline */
.theme-container[data-theme="game"] .title-area::after { display: none; }

/* Title: crisp, confident */
.theme-container[data-theme="game"] .title-area h1,
.theme-container[data-theme="game"] .title {
  font-size: calc(54px * var(--rf-title-scale, 1)) !important;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--rf-accent, var(--ink)) !important;
  text-transform: none;
  text-shadow: 0 0 18px rgba(124,92,255,0.20);
}

/* Content typography */
.theme-container[data-theme="game"] .content-text {
  color: var(--muted);
}

/* Inline underline: cleaner, modern look */
.theme-container[data-theme="game"] .content-text u {
  text-decoration: underline;
  text-decoration-color: rgba(124,92,255,0.55);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

/* List: turn bullets into "quest items" (not cute, more UI) */
.theme-container[data-theme="game"] .content-text ul,
.theme-container[data-theme="game"] .content-text ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.theme-container[data-theme="game"] .content-text li {
  font-size: calc(28px * var(--rf-body-scale, 1)) !important;
  line-height: 1.45;

  /* Card row - no glass frame */
  background: transparent;
  border: none;
  border-radius: 0;

  padding: 12px 16px 12px 44px;
  margin-bottom: 12px;

  position: relative;
  box-shadow: none;
}

/* Left indicator: paper plane icon */
.theme-container[data-theme="game"] .content-text li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  background-color: var(--g-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center / contain;
}

.theme-container[data-theme="game"] .content-text li::after {
  content: none;
}

/* Nested lists: look like sub-quests */
.theme-container[data-theme="game"] .content-text li > ul,
.theme-container[data-theme="game"] .content-text li > ol {
  margin-top: 10px;
  padding-left: 18px;
}

.theme-container[data-theme="game"] .content-text li > ul > li,
.theme-container[data-theme="game"] .content-text li > ol > li {
  margin-bottom: 10px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 40px;
}

.theme-container[data-theme="game"] .content-text li > ul > li::before {
  background: rgba(53,240,198,0.12);
  border-color: rgba(53,240,198,0.45);
  box-shadow: 0 0 0 3px rgba(53,240,198,0.08);
}
.theme-container[data-theme="game"] .content-text li > ul > li::after {
  background: linear-gradient(180deg, #35f0c6, rgba(53,240,198,0.35));
}

/* Media slots: no glass frame */
.theme-container[data-theme="game"] .rf-media {
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.theme-container[data-theme="game"] .rf-role-image,
.theme-container[data-theme="game"] .rf-role-figure,
.theme-container[data-theme="game"] .rf-role-chart {
  height: auto;
  max-height: 280px;
}

/* Footer: subtle */
.theme-container[data-theme="game"] .footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(234,240,255,0.55);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Optional: placeholder box in game theme */
.theme-container[data-theme="game"] .media-box {
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(234,240,255,0.55);
}

/* Game: page number */
.theme-container[data-theme="game"] .page-number {
  /* Match readability with Academic/Business */
  color: rgba(15,23,42,0.60);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Print: keep it clean (no heavy glow) */
@media print {
  .theme-container[data-theme="game"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .theme-container[data-theme="game"] .rf-media {
    box-shadow: none !important;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .theme-container {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: none !important;
    box-shadow: none !important;
  }

  /* make sure label prints cleanly */
  .label {
    opacity: 0.55 !important;
  }

  /* avoid accidental overflow artifacts */
  .content-text,
  .rf-body {
    overflow: hidden !important;
  }
}
/* ===============================
   RubricFlow Print Rules (v2)
   - clean A4 landscape
   - 1 slide = 1 page
   - keep slide aspect ratio (scale, not stretch)
   - center align like real PPT export
   =============================== */

@media print {
  /* hide UI */
  .no-print {
    display: none !important;
  }

  /* reset page */
  html, body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Force all backgrounds to pure white */
  * {
    background-color: transparent !important;
  }
  
  html, body, .slide-page {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
  
  .theme-container {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  /* A4 landscape with a tiny safe margin (so printers don't clip) */
  @page {
    size: A4 landscape;
    margin: 0;
  }

  /* root container: no web gaps */
  .slides-print-root {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* each slide on its own page */
  .slide-page {
    -moz-column-break-after: page;
         break-after: page;
    page-break-after: always;
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    page-break-inside: avoid;

    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;

    /* Fill entire page - exact A4 landscape */
    width: 297mm !important;
    height: 210mm !important;
    
    /* center slide on paper */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /*
    No scaling needed - screen and print are now identical sizes
  */
  .theme-container {
    width: 297mm !important;
    height: 210mm !important;
    
    /* No transform needed! */
    transform: none !important;
    
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    overflow: visible !important;
    
    aspect-ratio: 297 / 210;
  }

  /* Allow images to overflow without being clipped */
  .content-text,
  .rf-text {
    overflow: visible !important;
  }
  
  .slide-content {
    overflow: visible !important;
  }
  
  .rf-body {
    overflow: visible !important;
  }
  
  .rf-media {
    overflow: visible !important;
  }
  
  .rf-two-col {
    overflow: visible !important;
  }

  /* Hide label in print - no traces */
  .label {
    display: none !important;
  }

  /* Ensure pure white background - no color layers */
  .theme-container:not([data-theme="game"]) {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
  
  .slide-page:not([data-theme="game"]) {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  /* Game theme: add bleed to eliminate white edge in Microsoft Print */
  .theme-container[data-theme="game"] {
    position: relative;
    overflow: visible !important;
  }

  .theme-container[data-theme="game"]::before {
    content: "";
    position: absolute;
    top: -3mm;
    left: -3mm;
    right: -3mm;
    bottom: -3mm;
    background:
      radial-gradient(900px 520px at 18% 18%, rgba(124,92,255,0.12), transparent 55%),
      radial-gradient(700px 420px at 92% 22%, rgba(53,240,198,0.10), transparent 55%),
      linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    z-index: 0;
  }

  .theme-container[data-theme="game"] .slide-content {
    position: relative;
    z-index: 1;
  }

  /* avoid Tailwind shadows etc */
  .shadow-2xl {
    box-shadow: none !important;
  }
}
