*,
::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: Manrope, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, 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: 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;
}

html,
body {
    height: 100%;
}

body {
    overflow: hidden;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-base) / var(--tw-bg-opacity, 1));
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    --tw-text-opacity: 1;
    color: rgb(var(--color-ink) / var(--tw-text-opacity, 1));
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    inset: 0px;
}

.bottom-14 {
    bottom: 3.5rem;
}

.left-1 {
    left: 0.25rem;
}

.left-3 {
    left: 0.75rem;
}

.right-1 {
    right: 0.25rem;
}

.right-2 {
    right: 0.5rem;
}

.right-3 {
    right: 0.75rem;
}

.top-1 {
    top: 0.25rem;
}

.top-2 {
    top: 0.5rem;
}

.top-3 {
    top: 0.75rem;
}

.top-9 {
    top: 2.25rem;
}

.z-\[1000\] {
    z-index: 1000;
}

.z-\[1500\] {
    z-index: 1500;
}

.z-\[2000\] {
    z-index: 2000;
}

.z-\[2100\] {
    z-index: 2100;
}

.z-\[2150\] {
    z-index: 2150;
}

.z-\[2200\] {
    z-index: 2200;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-auto {
    margin-top: auto;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.h-14 {
    height: 3.5rem;
}

.h-2 {
    height: 0.5rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-9 {
    height: 2.25rem;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.max-h-\[360px\] {
    max-height: 360px;
}

.max-h-\[70vh\] {
    max-height: 70vh;
}

.max-h-\[80vh\] {
    max-height: 80vh;
}

.min-h-0 {
    min-height: 0px;
}

.min-h-\[70px\] {
    min-height: 70px;
}

.min-h-\[80px\] {
    min-height: 80px;
}

.min-h-\[90px\] {
    min-height: 90px;
}

.w-11 {
    width: 2.75rem;
}

.w-14 {
    width: 3.5rem;
}

.w-2 {
    width: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.w-48 {
    width: 12rem;
}

.w-7 {
    width: 1.75rem;
}

.w-9 {
    width: 2.25rem;
}

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

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

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

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

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

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

.min-w-0 {
    min-width: 0px;
}

.min-w-\[140px\] {
    min-width: 140px;
}

.min-w-\[180px\] {
    min-width: 180px;
}

.min-w-\[220px\] {
    min-width: 220px;
}

.min-w-\[240px\] {
    min-width: 240px;
}

.min-w-\[260px\] {
    min-width: 260px;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-\[260px\] {
    max-width: 260px;
}

.max-w-\[850px\] {
    max-width: 850px;
}

.max-w-\[92vw\] {
    max-width: 92vw;
}

.max-w-\[94vw\] {
    max-width: 94vw;
}

.max-w-full {
    max-width: 100%;
}

.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));
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.resize-none {
    resize: none;
}

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

.grid-cols-\[300px_1fr\] {
    grid-template-columns: 300px 1fr;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.justify-start {
    justify-content: flex-start;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.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-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));
}

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.break-all {
    word-break: break-all;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-dashed {
    border-style: dashed;
}

.border-danger\/60 {
    border-color: rgb(var(--color-danger) / 0.6);
}

.border-rose-900\/60 {
    border-color: rgb(136 19 55 / 0.6);
}

.border-stroke {
    --tw-border-opacity: 1;
    border-color: rgb(var(--color-stroke) / var(--tw-border-opacity, 1));
}

.border-transparent {
    border-color: transparent;
}

.bg-accent {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-accent) / var(--tw-bg-opacity, 1));
}

.bg-accent\/20 {
    background-color: rgb(var(--color-accent) / 0.2);
}

.bg-black\/60 {
    background-color: rgb(0 0 0 / 0.6);
}

.bg-card {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-card) / var(--tw-bg-opacity, 1));
}

.bg-card\/60 {
    background-color: rgb(var(--color-card) / 0.6);
}

.bg-danger {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-danger) / var(--tw-bg-opacity, 1));
}

.bg-danger\/20 {
    background-color: rgb(var(--color-danger) / 0.2);
}

.bg-panel {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-panel) / var(--tw-bg-opacity, 1));
}

.bg-panel\/70 {
    background-color: rgb(var(--color-panel) / 0.7);
}

.bg-rose-900\/30 {
    background-color: rgb(136 19 55 / 0.3);
}

.bg-slate-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(71 85 105 / var(--tw-bg-opacity, 1));
}

.bg-success {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-success) / 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));
}

.bg-white\/10 {
    background-color: rgb(255 255 255 / 0.1);
}

.object-contain {
    -o-object-fit: contain;
    object-fit: contain;
}

.object-cover {
    -o-object-fit: cover;
    object-fit: cover;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-0\.5 {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

.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-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-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-1 {
    padding-bottom: 0.25rem;
}

.pr-1 {
    padding-right: 0.25rem;
}

.pr-9 {
    padding-right: 2.25rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

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

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

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

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

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.leading-6 {
    line-height: 1.5rem;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.text-accent {
    --tw-text-opacity: 1;
    color: rgb(var(--color-accent) / var(--tw-text-opacity, 1));
}

.text-black {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}

.text-danger {
    --tw-text-opacity: 1;
    color: rgb(var(--color-danger) / var(--tw-text-opacity, 1));
}

.text-ink {
    --tw-text-opacity: 1;
    color: rgb(var(--color-ink) / var(--tw-text-opacity, 1));
}

.text-ink\/70 {
    color: rgb(var(--color-ink) / 0.7);
}

.text-muted {
    --tw-text-opacity: 1;
    color: rgb(var(--color-muted) / var(--tw-text-opacity, 1));
}

.text-rose-100 {
    --tw-text-opacity: 1;
    color: rgb(255 228 230 / 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;
}

.decoration-accent {
    text-decoration-color: rgb(var(--color-accent) / 1);
}

.decoration-2 {
    text-decoration-thickness: 2px;
}

.underline-offset-2 {
    text-underline-offset: 2px;
}

.opacity-0 {
    opacity: 0;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

.shadow-soft {
    --tw-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --tw-shadow-colored: 0 20px 60px 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;
}

.ring-4 {
    --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(4px + 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);
}

.ring-danger\/20 {
    --tw-ring-color: rgb(var(--color-danger) / 0.2);
}

.ring-success\/20 {
    --tw-ring-color: rgb(var(--color-success) / 0.2);
}

.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, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

body.theme-dark {
    --color-base: 15 17 21;
    --color-panel: 20 24 33;
    --color-card: 27 34 48;
    --color-stroke: 39 49 68;
    --color-ink: 232 238 247;
    --color-muted: 151 168 191;
    --color-accent: 125 181 255;
    --color-danger: 255 107 107;
    --color-success: 65 214 127;
    color-scheme: dark;
}

body.theme-light {
    --color-base: 244 246 251;
    --color-panel: 255 255 255;
    --color-card: 241 244 250;
    --color-stroke: 215 221 232;
    --color-ink: 15 23 42;
    --color-muted: 91 102 122;
    --color-accent: 45 108 223;
    --color-danger: 214 69 69;
    --color-success: 31 157 94;
    color-scheme: light;
}

.prefs-tab[data-active="true"] {
    border-color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.lang-option[aria-pressed="true"] {
    border-color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

body.auth .layout {
    display: none;
}

.typing::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 16px;
    margin-left: 4px;
    background: currentColor;
    opacity: 0.7;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.markdown * {
    word-break: break-word;
}

.markdown pre {
    background: #171717;
    border: 1px solid #273144;
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
}

.markdown code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.markdown table {
    border-collapse: collapse;
    margin: 8px 0;
}

.markdown th,
.markdown td {
    border: 1px solid #273144;
    padding: 6px 8px;
}

.markdown ul,
.markdown ol {
    padding-left: 20px;
}

.speak.speaking {
    background-color: #2a3d55;
    border-color: #2a3d55;
}

.expander {
    display: none;
}

.layout.collapsed .expander {
    display: flex;
}

.layout.collapsed .sidebar {
    pointer-events: none;
}

.layout.collapsed .main {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .expander {
        display: flex;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        max-width: 86vw;
        z-index: 1600;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        will-change: transform;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: flex;
    }

    .layout:not(.collapsed) .sidebar {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .layout.collapsed .sidebar {
        transform: translateX(-100%);
        visibility: visible;
        pointer-events: none;
    }

    .header {
        padding: 10px 12px;
    }

    .model-name {
        max-width: 160px;
    }

    .model-btn {
        margin-left: 44px;
    }

    .messages {
        padding: 12px;
    }

    .composer {
        padding: 10px 12px;
    }

    .input-wrap {
        padding: 6px;
        border-radius: 12px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filebtn {
        width: 100%;
        justify-content: center;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    #dictateBtn,
    #cancelDictateBtn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .send-btn {
        border-radius: 12px;
        padding: 8px 10px;
    }

    .modal-card,
    .search-card {
        width: 92vw;
    }

    .search-list {
        max-height: 50vh;
    }
}

@media (min-width: 901px) {
    .layout {
        grid-template-columns: auto 1fr;
    }

    .sidebar {
        grid-column: 1;
        grid-row: 1;
        width: 300px;
        transition: width 0.25s ease, padding 0.25s ease, opacity 0.2s ease, border-width 0.25s ease;
    }

    .main {
        grid-column: 2;
        grid-row: 1;
    }

    .layout.collapsed .sidebar {
        width: 0;
        padding: 0;
        border-width: 0;
        opacity: 0;
        visibility: visible;
        pointer-events: none;
    }

    .layout.collapsed .model-btn {
        margin-left: 44px;
    }
}

.hover\:border-accent\/70:hover {
    border-color: rgb(var(--color-accent) / 0.7);
}

.hover\:bg-danger\/30:hover {
    background-color: rgb(var(--color-danger) / 0.3);
}

.hover\:bg-rose-900\/50:hover {
    background-color: rgb(136 19 55 / 0.5);
}

.hover\:bg-white\/10:hover {
    background-color: rgb(255 255 255 / 0.1);
}

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

.hover\:text-ink:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--color-ink) / var(--tw-text-opacity, 1));
}

.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);
}

.focus\:border-accent:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--color-accent) / var(--tw-border-opacity, 1));
}

.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-accent\/30:focus {
    --tw-ring-color: rgb(var(--color-accent) / 0.3);
}

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

.peer:checked~.peer-checked\:translate-x-5 {
    --tw-translate-x: 1.25rem;
    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));
}

.peer:checked~.peer-checked\:bg-accent {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-accent) / var(--tw-bg-opacity, 1));
}

@media (min-width: 640px) {
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:w-\[260px\] {
        width: 260px;
    }

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

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

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

    .md\:items-center {
        align-items: center;
    }

    .md\:justify-between {
        justify-content: space-between;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.model-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.model-icon svg {
    width: 16px;
    height: 16px;
}

.model-icon-openai {
    color: rgb(var(--color-accent));
}

.model-icon-ollama {
    color: rgb(var(--color-success));
}

.chat-item--pinned {
    background-color: rgb(var(--color-ink)) !important;
    border-color: rgb(var(--color-ink)) !important;
    color: rgb(var(--color-base)) !important;
}

.chat-item--pinned:hover {
    background-color: rgb(var(--color-ink) / 0.9) !important;
}

.chat-item--pinned .more {
    color: currentColor !important;
}

.chat-item--pinned .more:hover {
    background-color: rgb(var(--color-base) / 0.2) !important;
}

.doc-sources-title {
    letter-spacing: 0.04em;
}

.doc-source-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.thinking-block .thinking-body {
    max-height: 180px;
    overflow: auto;
}