/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
*, ::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: var(--font-body), system-ui, sans-serif; /* 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: var(--font-mono), 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;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-left-32 {
  left: -8rem;
}
.bottom-20 {
  bottom: 5rem;
}
.left-0 {
  left: 0px;
}
.right-4 {
  right: 1rem;
}
.right-\[30\%\] {
  right: 30%;
}
.top-0 {
  top: 0px;
}
.top-1\/4 {
  top: 25%;
}
.top-4 {
  top: 1rem;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.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\.5 {
  margin-left: 0.375rem;
}
.ml-auto {
  margin-left: auto;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.h-96 {
  height: 24rem;
}
.h-\[300px\] {
  height: 300px;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.h-screen {
  height: 100vh;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-\[600px\] {
  min-height: 600px;
}
.min-h-\[800px\] {
  min-height: 800px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-2 {
  width: 0.5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-64 {
  width: 16rem;
}
.w-8 {
  width: 2rem;
}
.w-96 {
  width: 24rem;
}
.w-\[3px\] {
  width: 3px;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[700px\] {
  min-width: 700px;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[160px\] {
  max-width: 160px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[850px\] {
  max-width: 850px;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-sm {
  max-width: 24rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.shrink-0 {
  flex-shrink: 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;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.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-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * 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));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-\[1px\] {
  border-radius: 1px;
}
.rounded-\[2px\] {
  border-radius: 2px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-4 {
  border-width: 4px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-r {
  border-right-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-\[var\(--accent-gold\)\] {
  border-color: var(--accent-gold);
}
.border-\[var\(--border-subtle\)\] {
  border-color: var(--border-subtle);
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-current {
  border-color: currentColor;
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-red-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 226 226 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-\[\#A68246\]\/10 {
  background-color: rgb(166 130 70 / 0.1);
}
.bg-\[var\(--accent-gold\)\] {
  background-color: var(--accent-gold);
}
.bg-\[var\(--bg-primary\)\] {
  background-color: var(--bg-primary);
}
.bg-\[var\(--bg-secondary\)\] {
  background-color: var(--bg-secondary);
}
.bg-\[var\(--bg-surface\)\] {
  background-color: var(--bg-surface);
}
.bg-black\/5 {
  background-color: rgb(0 0 0 / 0.05);
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 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-50\/50 {
  background-color: rgb(249 250 251 / 0.5);
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-50\/50 {
  background-color: rgb(240 253 244 / 0.5);
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 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-50\/50 {
  background-color: rgb(254 242 242 / 0.5);
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.p-1 {
  padding: 0.25rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-12 {
  padding: 3rem;
}
.p-16 {
  padding: 4rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-mono {
  font-family: var(--font-mono), monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[8px\] {
  font-size: 8px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.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-black {
  font-weight: 900;
}
.font-bold {
  font-weight: 700;
}
.font-light {
  font-weight: 300;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-\[0\.15em\] {
  letter-spacing: 0.15em;
}
.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-tighter {
  letter-spacing: -0.05em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-\[var\(--accent-gold\)\] {
  color: var(--accent-gold);
}
.text-\[var\(--text-muted\)\] {
  color: var(--text-muted);
}
.text-\[var\(--text-primary\)\] {
  color: var(--text-primary);
}
.text-\[var\(--text-secondary\)\] {
  color: var(--text-secondary);
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 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-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-pink-500 {
  --tw-text-opacity: 1;
  color: rgb(236 72 153 / var(--tw-text-opacity, 1));
}
.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 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;
}
.line-through {
  text-decoration-line: line-through;
}
.opacity-0 {
  opacity: 0;
}
.opacity-10 {
  opacity: 0.1;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-\[0\.03\] {
  opacity: 0.03;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-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);
}
.shadow-green-600\/20 {
  --tw-shadow-color: rgb(22 163 74 / 0.2);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.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 {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.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-200 {
  transition-duration: 200ms;
}

/* ── JudiScribe Design System — Tema Claro Minimalista ──────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-display: 'Crimson Pro', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Parchment and Precision Palette */
  --bg-primary: #F9F7F2;
  /* Aged Paper / Parchment */
  --bg-secondary: #F4F1EA;
  /* Slightly darker parchment */
  --bg-surface: #FFFFFF;
  /* Pure white for the 'paper' */
  --bg-elevated: #EDE9E1;
  /* Deep paper shadow */

  /* Borders - Soft Gold/Bronze */
  --border-subtle: rgba(166, 130, 70, 0.12);
  --border-default: rgba(166, 130, 70, 0.25);
  --border-focus: #A68246;

  /* Texto - Deep Ink */
  --text-primary: #1A1B1E;
  /* Deep charcoal ink */
  --text-secondary: #42464D;
  --text-muted: #82868C;

  /* Acentos - Judicial Gold */
  --accent-primary: #A68246;
  --accent-soft: rgba(166, 130, 70, 0.08);
  --accent-gold: #A68246;
  --accent-gold-soft: rgba(166, 130, 70, 0.1);

  /* Semánticos - Seal Red and Court Green */
  --danger: #9B2226;
  /* Crimson Seal */
  --success: #1B4332;
  /* Dark Forest Green */
  --warning: #BB8539;
}

html, body {
  height: 100%;
  overflow: hidden; /* Evita que el body/html actúen como scroll container */
}

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
}

body {
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Canvas styles — Word-Like A4 Document ─────────────────── */

/*
 * A4 dimensions at 96 DPI:
 *   Width  = 210mm = 794px
 *   Height = 297mm = 1123px
 * Default Word margins (Normal): 25.4mm = 96px
 */

/* Scroll container — solo scroll, sin flex centering que interfiera */
.canvas-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary);
}

/* Centering wrapper — solo centra el papel A4 */
.canvas-page-area {
  min-height: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg-primary);
}

/* The "paper" itself — A4 proportions */
.canvas-document {
  background: var(--bg-surface);
  width: 794px;
  min-height: 1123px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--border-subtle);
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  /* Visual page-break lines every 297mm (1123px) */
  background-image:
    repeating-linear-gradient(to bottom,
      transparent,
      transparent 1122px,
      var(--border-subtle) 1122px,
      var(--border-subtle) 1123px);
  background-size: 100% 1123px;
  background-position: 0 0;
}

@media (max-width: 860px) {
  .canvas-page-area {
    padding: 0;
  }

  .canvas-document {
    width: 100%;
    min-height: 100vh;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    background-image: none;
  }
}

/* Document header inside the paper */
.canvas-document__header {
  padding: 48px 80px 32px;
  border-bottom: 1px solid var(--text-primary);
  margin: 0 0 8px;
  position: relative;
}

/* Decorative corner for the paper */
.canvas-document__header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(166, 130, 70, 0.1) 50%);
  border-bottom-left-radius: 4px;
}

@media (max-width: 768px) {
  .canvas-document__header {
    padding: 32px 24px 20px;
  }
}

.canvas-document__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.canvas-document__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  gap: 16px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .canvas-document__meta {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
}

.canvas-document__meta span {
  white-space: nowrap;
}

/* The TipTap editor inside the document */
.canvas-editor {
  flex: 1;
  position: relative;
}

.canvas-editor .ProseMirror {
  outline: none;
  min-height: 900px;
  /* A4 minus header ≈ 900px */
  padding: 32px 96px 96px;
  /* Word-like margins: ~25mm sides, ~25mm bottom */
  font-family: 'Georgia', var(--font-display), serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 860px) {
  .canvas-editor .ProseMirror {
    padding: 20px 20px 80px;
    min-height: 400px;
    font-size: 13px;
  }
}

.canvas-editor .ProseMirror p {
  margin-bottom: 10px;
  text-align: justify;
  text-indent: 0;
  width: 100% !important;
  max-width: none !important;
}

/* Speaker label in canvas — formal legal style */
.speaker-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 0;
  margin-top: 24px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  width: -moz-fit-content;
  width: fit-content;
}

/* (definición canónica de text-provisional abajo) */

.canvas-editor .ProseMirror p {
  margin-bottom: 8px;
  text-align: justify;
  text-indent: 0;
  width: 100% !important;
  max-width: none !important;
  /* Asegurar que el párrafo use todo el ancho */
}

/* Provisional text — inline, fluye dentro del mismo párrafo que el texto confirmado.
   Mismo color que el texto confirmado para evitar el "desvanecimiento/sombra" visual.
   La distinción provisional→confirmado se indica únicamente con el cursor de escritura. */
.text-provisional {
  color: var(--text-primary);
  opacity: 0.75;
  /* Sin italic: el texto provisional se lee con la misma facilidad que el confirmado.
     Al confirmarse, no hay cambio de color ni estilo → transición visual imperceptible. */
}

@keyframes typing-fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 0.8;
  }
}

/* Word-by-word animation for provisional text */
@keyframes fadeInWord {
  from {
    opacity: 0;
    transform: translateX(-2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Solidify animation: texto confirmado aparece desde el estado provisional (0.75) a sólido (1.0).
   Crea continuidad visual: el texto nunca "desaparece", solo se vuelve más sólido. */
@keyframes solidifyIn {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

.segment-confirming {
  animation: solidifyIn 0.25s ease-out forwards;
}

/* Palabra nueva: aparece con animación */
.provisional-word {
  display: inline;
  animation: fadeInWord 0.18s ease-out both;
}

/* Palabra ya vista: sin animación, aparece inmediatamente */
.provisional-word--stable {
  display: inline;
}

/* Confidence-based highlighting */
.text-low-confidence {
  background: rgba(255, 243, 205, 0.5);
  border-bottom: 2px dotted #D97706;
  cursor: pointer;
  position: relative;
}

.text-very-low-confidence {
  background: rgba(254, 226, 226, 0.5);
  border-bottom: 2px dotted #DC2626;
  cursor: pointer;
}

/* Suggestion highlight */
.text-suggestion {
  border-bottom: 2px dotted #E67E22;
  cursor: pointer;
}

/* Suggestion popover */
.suggestion-popover {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 260px;
  max-width: 340px;
  font-family: var(--font-body);
  animation: fadeIn 0.15s ease-out;
}

.suggestion-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(166, 130, 70, 0.04);
}

.suggestion-popover__badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  background: rgba(230, 126, 34, 0.1);
  color: #E67E22;
  border-radius: 1px;
}

.suggestion-popover__confidence {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.suggestion-popover__body {
  padding: 10px 12px;
}

.suggestion-popover__correction {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestion-popover__original {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--danger);
  font-weight: 500;
}

.suggestion-popover__arrow {
  font-size: 12px;
  color: var(--text-muted);
}

.suggestion-popover__suggested {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.suggestion-popover__context {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.suggestion-popover__actions {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-subtle);
}

.suggestion-popover__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.suggestion-popover__btn kbd {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  font-family: var(--font-mono);
}

.suggestion-popover__btn--accept {
  background: var(--success);
  color: white;
}

.suggestion-popover__btn--accept:hover {
  opacity: 0.9;
}

.suggestion-popover__btn--reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-default) !important;
}

.suggestion-popover__btn--reject:hover {
  background: var(--bg-elevated);
}

/* Speaker label in canvas — legal style */
.speaker-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 16px;
  margin-bottom: 4px;
}

/* Confidence tooltip */
.segment-confidence-tooltip {
  position: absolute;
  background: #1A1A1A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.15s;
}

.segment-clickable:hover .segment-confidence-tooltip {
  opacity: 1;
}

/* Confidence meter in status bar */
.confidence-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.confidence-meter__bar {
  width: 48px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-meter__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s ease;
}

.confidence-meter__fill--high {
  background: var(--success);
}

.confidence-meter__fill--medium {
  background: var(--warning);
}

.confidence-meter__fill--low {
  background: var(--danger);
}

/* ── Scrollbar styling (Tema Claro) ─────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ── Controles de Audio CSS (Sin Iconos) ─────────────────────────────── */

/* Botón base para controles de audio */
.audio-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.audio-control:hover {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

.audio-control:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.audio-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Play button - triángulo CSS */
.audio-control--play::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

/* Pause button - dos barras */
.audio-control--pause::before {
  content: '';
  display: block;
  width: 4px;
  height: 12px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
}

/* Stop button - cuadrado */
.audio-control--stop::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 1px;
}

/* Tooltip para controles */
.audio-control[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  padding: 4px 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Slider de velocidad */
.speed-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.speed-slider input[type="range"] {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: var(--border-default);
  border-radius: 2px;
  cursor: pointer;
}

.speed-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
}

.speed-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Barra de progreso de audio */
.audio-progress {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.audio-progress__fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.audio-progress__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.15s;
}

.audio-progress:hover .audio-progress__thumb {
  opacity: 1;
}

/* ── Animations ────────────────────────────────────────── */

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* cursor de texto provisional — indicador sutil de que hay audio en proceso */
.typing-cursor {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  opacity: 0.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(212, 168, 83, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

.skeleton-shimmer {
  background: linear-gradient(90deg,
      var(--bg-surface) 25%,
      var(--bg-elevated) 50%,
      var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ── Segmento activo durante reproducción ─────────────────────────────── */

.segment-active {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent-primary);
  padding-left: 12px;
  margin-left: -15px;
  transition: all 0.2s ease;
}

.segment-edited {
  border-left: 2px solid var(--success);
  padding-left: 8px;
  margin-left: -10px;
}

.segment-clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.segment-clickable:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* Segmentos de texto deben fluir inline (mismo párrafo) */
.segment-text {
  display: inline;
}

/* ── Empty State Minimalista ─────────────────────────────── */

.empty-state-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
}

.empty-state-lines span {
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
}

.empty-state-lines span:nth-child(1) {
  width: 60px;
}

.empty-state-lines span:nth-child(2) {
  width: 100px;
}

.empty-state-lines span:nth-child(3) {
  width: 80px;
}

/* ── Monograma del Logo ─────────────────────────────── */

.logo-monogram {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border-radius: 1px;
}

/* ── Stat Card Minimalista ─────────────────────────────── */

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
  opacity: 0.3;
}

.stat-card__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.stat-card__label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Seal Buttons (Primary) ─────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Secondary Buttons ─────────────────────────────── */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 1px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-gold);
}

/* ── Scrollbar styling ─────────────────────────────────── */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ── Connection indicators ─────────────────────────────── */

.connection-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 1px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
}

.connection-indicator--connected {
  background: rgba(27, 67, 50, 0.05);
  color: var(--success);
  border-color: rgba(27, 67, 50, 0.15);
}

.connection-indicator--disconnected {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.connection-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Ghost Text / Inline Suggestion (Estilo Copilot) ─────────────────────────────── */

.inline-suggestion {
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
}

/* Animación sutil de aparición */
.inline-suggestion {
  animation: ghostTextFadeIn 0.2s ease-out;
}

@keyframes ghostTextFadeIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 0.6;
    transform: translateX(0);
  }
}

/* Indicador de Tab para aceptar */
.inline-suggestion::after {
  content: '↹';
  font-size: 10px;
  font-style: normal;
  margin-left: 4px;
  padding: 1px 4px;
  background: rgba(166, 130, 70, 0.1);
  border-radius: 2px;
  color: var(--accent-gold);
  font-weight: 600;
  vertical-align: middle;
}

/* ── Nombres Propios Detectados ─────────────────────────────── */

.name-highlight {
  border-bottom: 1px dashed var(--accent-gold);
  cursor: help;
}

.name-highlight:hover {
  background: var(--accent-soft);
}

/* ── Código de Expediente ─────────────────────────────── */

.expediente-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: rgba(166, 130, 70, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* ── Párrafo con Nueva Intervención ─────────────────────────────── */

.paragraph-new-speaker {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Indicador de Carga de Sugerencia ─────────────────────────────── */

.suggestion-loading {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

.suggestion-loading::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-gold);
  border-color: var(--accent-gold) transparent var(--accent-gold) transparent;
  border-radius: 50%;
  animation: suggestionSpin 0.8s linear infinite;
}

@keyframes suggestionSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── Tooltip para Ghost Text ─────────────────────────────── */

.ghost-text-tooltip {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease-out;
  z-index: 100;
}

.ghost-text-tooltip kbd {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   AUDIO UPLOAD & TRANSCRIPTION PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero accent ─────────────────────────────────────── */

.upload-hero-accent {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin-bottom: 40px;
  opacity: 0.4;
}

/* ── Dropzone ────────────────────────────────────────── */

.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  border: 2px dashed var(--border-default);
  border-radius: 2px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.upload-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(166, 130, 70, 0.03), transparent 70%);
  pointer-events: none;
}

.upload-dropzone:hover {
  border-color: var(--accent-gold);
  background: rgba(166, 130, 70, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(166, 130, 70, 0.08);
}

.upload-dropzone--active {
  border-color: var(--accent-gold);
  background: rgba(166, 130, 70, 0.05);
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(166, 130, 70, 0.1);
}

/* Waveform animation icon */
.upload-dropzone__icon {
  margin-bottom: 24px;
}

.upload-dropzone__waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}

.upload-dropzone__waveform span {
  display: block;
  width: 4px;
  height: 12px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: waveform-pulse 1.4s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes waveform-pulse {
  0%, 100% { height: 12px; opacity: 0.4; }
  50% { height: 36px; opacity: 0.8; }
}

.upload-dropzone__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.upload-dropzone__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.upload-dropzone__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.upload-dropzone__format-tag {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border-radius: 1px;
  border: 1px solid rgba(166, 130, 70, 0.12);
}

.upload-dropzone__limit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── File Card ───────────────────────────────────────── */

.upload-file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeIn 0.3s ease-out;
}

.upload-file-card__icon {
  font-size: 28px;
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-soft);
  border-radius: 2px;
}

.upload-file-card__info {
  flex: 1;
  min-width: 0;
}

.upload-file-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-card__size {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.upload-file-card__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.upload-file-card__remove:hover {
  background: rgba(155, 34, 38, 0.06);
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Form ────────────────────────────────────────────── */

.upload-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 28px;
  animation: fadeIn 0.3s ease-out;
}

.upload-form__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.upload-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .upload-form__grid {
    grid-template-columns: 1fr;
  }
}

.upload-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-form__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.upload-form__required {
  color: var(--danger);
}

.upload-form__input {
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.upload-form__input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(166, 130, 70, 0.1);
}

.upload-form__input::-moz-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.upload-form__input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.upload-form__submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
}

.upload-form__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── Processing Animation ────────────────────────────── */

.upload-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  text-align: center;
}

.upload-processing__visual {
  margin-bottom: 32px;
}

.upload-processing__rings {
  position: relative;
  width: 100px;
  height: 100px;
}

.upload-processing__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.upload-processing__ring--outer {
  inset: 0;
  border-top-color: var(--accent-gold);
  border-right-color: var(--accent-gold);
  animation: ring-spin 2s linear infinite;
}

.upload-processing__ring--inner {
  inset: 16px;
  border-bottom-color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  opacity: 0.6;
  animation: ring-spin 1.5s linear infinite reverse;
}

.upload-processing__pulse {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.15;
  animation: proc-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes proc-pulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

.upload-processing__info {
  margin-bottom: 28px;
}

.upload-processing__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-processing__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

.upload-processing__progress {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.upload-processing__progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.upload-processing__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #C89B4E);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
}

.upload-processing__progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

.upload-processing__progress-label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  min-width: 36px;
  text-align: right;
}

.upload-processing__file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Result ──────────────────────────────────────────── */

.upload-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  text-align: center;
}

.upload-result__check {
  margin-bottom: 20px;
  animation: check-bounce 0.5s ease-out;
}

@keyframes check-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.upload-result__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-result__message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.5;
}

.upload-result__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 20px 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

@media (max-width: 480px) {
  .upload-result__stats {
    flex-direction: column;
    gap: 16px;
  }
  .upload-result__stat-divider {
    display: none;
  }
}

.upload-result__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-result__stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.upload-result__stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.upload-result__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-default);
}

.upload-result__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Error ───────────────────────────────────────────── */

.upload-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  margin-top: 20px;
  background: rgba(155, 34, 38, 0.04);
  border: 1px solid rgba(155, 34, 38, 0.15);
  border-radius: 2px;
}

.upload-error__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: white;
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.upload-error__text {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
  line-height: 1.5;
  max-width: 400px;
}

.hover\:bg-\[rgba\(166\2c 130\2c 70\2c 0\.04\)\]:hover {
  background-color: rgba(166,130,70,0.04);
}

.hover\:bg-black\/5:hover {
  background-color: rgb(0 0 0 / 0.05);
}

.hover\:bg-blue-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 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-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / 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-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.hover\:bg-white:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.hover\:opacity-80:hover {
  opacity: 0.8;
}

.hover\:brightness-110:hover {
  --tw-brightness: brightness(1.1);
  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);
}

.hover\:brightness-95:hover {
  --tw-brightness: brightness(.95);
  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);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.disabled\:opacity-30:disabled {
  opacity: 0.3;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:opacity-70:disabled {
  opacity: 0.7;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

@media (min-width: 640px) {

  .sm\:mb-10 {
    margin-bottom: 2.5rem;
  }

  .sm\:mb-2 {
    margin-bottom: 0.5rem;
  }

  .sm\:mb-3 {
    margin-bottom: 0.75rem;
  }

  .sm\:mb-4 {
    margin-bottom: 1rem;
  }

  .sm\:mb-5 {
    margin-bottom: 1.25rem;
  }

  .sm\:mb-6 {
    margin-bottom: 1.5rem;
  }

  .sm\:block {
    display: block;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:table-cell {
    display: table-cell;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:h-2 {
    height: 0.5rem;
  }

  .sm\:w-12 {
    width: 3rem;
  }

  .sm\:w-16 {
    width: 4rem;
  }

  .sm\:w-2 {
    width: 0.5rem;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-end {
    align-items: flex-end;
  }

  .sm\:justify-end {
    justify-content: flex-end;
  }

  .sm\:gap-2 {
    gap: 0.5rem;
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:gap-6 {
    gap: 1.5rem;
  }

  .sm\:space-y-5 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
  }

  .sm\:p-12 {
    padding: 3rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .sm\:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .sm\:py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }

  .sm\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .sm\:py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .sm\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .sm\:py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .sm\:py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .sm\:text-\[10px\] {
    font-size: 10px;
  }

  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .sm\:text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

@media (min-width: 768px) {

  .md\:inline {
    display: inline;
  }
}

@media (min-width: 1024px) {

  .lg\:h-full {
    height: 100%;
  }

  .lg\:w-\[320px\] {
    width: 320px;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:border-l {
    border-left-width: 1px;
  }

  .lg\:border-t-0 {
    border-top-width: 0px;
  }
}

@media (min-width: 1280px) {

  .xl\:flex {
    display: flex;
  }

  .xl\:w-\[380px\] {
    width: 380px;
  }
}
