@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');
*, ::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-sans); /* 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); /* 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;
}
.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;
}
.pointer-events-none{
  pointer-events: none;
}
.visible{
  visibility: visible;
}
.invisible{
  visibility: hidden;
}
.fixed{
  position: fixed;
}
.absolute{
  position: absolute;
}
.relative{
  position: relative;
}
.inset-0{
  inset: 0px;
}
.inset-x-0{
  left: 0px;
  right: 0px;
}
.inset-y-0{
  top: 0px;
  bottom: 0px;
}
.-bottom-12{
  bottom: -3rem;
}
.-left-12{
  left: -3rem;
}
.-right-12{
  right: -3rem;
}
.-top-12{
  top: -3rem;
}
.bottom-0{
  bottom: 0px;
}
.left-0{
  left: 0px;
}
.left-1\/2{
  left: 50%;
}
.left-2{
  left: 0.5rem;
}
.left-\[50\%\]{
  left: 50%;
}
.right-0{
  right: 0px;
}
.right-4{
  right: 1rem;
}
.top-0{
  top: 0px;
}
.top-1\/2{
  top: 50%;
}
.top-4{
  top: 1rem;
}
.top-\[1px\]{
  top: 1px;
}
.top-\[50\%\]{
  top: 50%;
}
.top-\[60\%\]{
  top: 60%;
}
.top-full{
  top: 100%;
}
.isolate{
  isolation: isolate;
}
.z-10{
  z-index: 10;
}
.z-50{
  z-index: 50;
}
.z-\[1\]{
  z-index: 1;
}
.col-start-2{
  grid-column-start: 2;
}
.-mx-1{
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.mx-auto{
  margin-left: auto;
  margin-right: auto;
}
.my-1{
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.-ml-4{
  margin-left: -1rem;
}
.-mt-4{
  margin-top: -1rem;
}
.ml-1{
  margin-left: 0.25rem;
}
.ml-auto{
  margin-left: auto;
}
.mr-2{
  margin-right: 0.5rem;
}
.mt-1{
  margin-top: 0.25rem;
}
.mt-1\.5{
  margin-top: 0.375rem;
}
.mt-2{
  margin-top: 0.5rem;
}
.mt-4{
  margin-top: 1rem;
}
.mt-6{
  margin-top: 1.5rem;
}
.mt-8{
  margin-top: 2rem;
}
.mt-auto{
  margin-top: auto;
}
.line-clamp-1{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.block{
  display: block;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.table{
  display: table;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.aspect-square{
  aspect-ratio: 1 / 1;
}
.size-2{
  width: 0.5rem;
  height: 0.5rem;
}
.size-2\.5{
  width: 0.625rem;
  height: 0.625rem;
}
.size-3{
  width: 0.75rem;
  height: 0.75rem;
}
.size-3\.5{
  width: 0.875rem;
  height: 0.875rem;
}
.size-4{
  width: 1rem;
  height: 1rem;
}
.size-8{
  width: 2rem;
  height: 2rem;
}
.size-9{
  width: 2.25rem;
  height: 2.25rem;
}
.size-full{
  width: 100%;
  height: 100%;
}
.h-1\.5{
  height: 0.375rem;
}
.h-10{
  height: 2.5rem;
}
.h-11{
  height: 2.75rem;
}
.h-12{
  height: 3rem;
}
.h-2{
  height: 0.5rem;
}
.h-2\.5{
  height: 0.625rem;
}
.h-3\.5{
  height: 0.875rem;
}
.h-4{
  height: 1rem;
}
.h-8{
  height: 2rem;
}
.h-9{
  height: 2.25rem;
}
.h-\[1\.15rem\]{
  height: 1.15rem;
}
.h-\[70vh\]{
  height: 70vh;
}
.h-\[var\(--cell-size\)\]{
  height: var(--cell-size);
}
.h-\[var\(--radix-navigation-menu-viewport-height\)\]{
  height: var(--radix-navigation-menu-viewport-height);
}
.h-\[var\(--radix-select-trigger-height\)\]{
  height: var(--radix-select-trigger-height);
}
.h-auto{
  height: auto;
}
.h-full{
  height: 100%;
}
.h-px{
  height: 1px;
}
.max-h-64{
  max-height: 16rem;
}
.max-h-\[--radix-select-content-available-height\]{
  max-height: var(--radix-select-content-available-height);
}
.max-h-\[300px\]{
  max-height: 300px;
}
.max-h-\[85vh\]{
  max-height: 85vh;
}
.max-h-\[var\(--radix-context-menu-content-available-height\)\]{
  max-height: var(--radix-context-menu-content-available-height);
}
.min-h-16{
  min-height: 4rem;
}
.min-h-4{
  min-height: 1rem;
}
.min-h-screen{
  min-height: 100vh;
}
.w-10{
  width: 2.5rem;
}
.w-2{
  width: 0.5rem;
}
.w-2\.5{
  width: 0.625rem;
}
.w-3{
  width: 0.75rem;
}
.w-3\.5{
  width: 0.875rem;
}
.w-3\/4{
  width: 75%;
}
.w-4{
  width: 1rem;
}
.w-60{
  width: 15rem;
}
.w-64{
  width: 16rem;
}
.w-72{
  width: 18rem;
}
.w-8{
  width: 2rem;
}
.w-9{
  width: 2.25rem;
}
.w-\[280px\]{
  width: 280px;
}
.w-\[var\(--cell-size\)\]{
  width: var(--cell-size);
}
.w-auto{
  width: auto;
}
.w-fit{
  width: -moz-fit-content;
  width: fit-content;
}
.w-full{
  width: 100%;
}
.w-max{
  width: -moz-max-content;
  width: max-content;
}
.w-px{
  width: 1px;
}
.min-w-0{
  min-width: 0px;
}
.min-w-\[12rem\]{
  min-width: 12rem;
}
.min-w-\[8rem\]{
  min-width: 8rem;
}
.min-w-\[var\(--cell-size\)\]{
  min-width: var(--cell-size);
}
.min-w-\[var\(--radix-select-trigger-width\)\]{
  min-width: var(--radix-select-trigger-width);
}
.max-w-3xl{
  max-width: 48rem;
}
.max-w-\[calc\(100\%-2rem\)\]{
  max-width: calc(100% - 2rem);
}
.max-w-lg{
  max-width: 32rem;
}
.max-w-max{
  max-width: -moz-max-content;
  max-width: max-content;
}
.flex-1{
  flex: 1 1 0%;
}
.shrink-0{
  flex-shrink: 0;
}
.grow{
  flex-grow: 1;
}
.grow-0{
  flex-grow: 0;
}
.basis-full{
  flex-basis: 100%;
}
.caption-bottom{
  caption-side: bottom;
}
.border-collapse{
  border-collapse: collapse;
}
.origin-\[--radix-popover-content-transform-origin\]{
  transform-origin: var(--radix-popover-content-transform-origin);
}
.origin-\[--radix-select-content-transform-origin\]{
  transform-origin: var(--radix-select-content-transform-origin);
}
.-translate-x-1\/2{
  --tw-translate-x: -50%;
  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));
}
.-translate-y-1\/2{
  --tw-translate-y: -50%;
  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));
}
.translate-x-\[-50\%\]{
  --tw-translate-x: -50%;
  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));
}
.translate-y-0\.5{
  --tw-translate-y: 0.125rem;
  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));
}
.translate-y-\[-50\%\]{
  --tw-translate-y: -50%;
  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));
}
.translate-y-\[calc\(-50\%_-_2px\)\]{
  --tw-translate-y: calc(-50% - 2px);
  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));
}
.rotate-45{
  --tw-rotate: 45deg;
  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));
}
.rotate-90{
  --tw-rotate: 90deg;
  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));
}
.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 caret-blink{
  0%,70%,100%{
    opacity: 1;
  }
  20%,50%{
    opacity: 0;
  }
}
.animate-caret-blink{
  animation: caret-blink 1.25s ease-out infinite;
}
@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-default{
  cursor: default;
}
.touch-none{
  touch-action: none;
}
.select-none{
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.scroll-py-1{
  scroll-padding-top: 0.25rem;
  scroll-padding-bottom: 0.25rem;
}
.list-none{
  list-style-type: none;
}
.grid-cols-\[0_1fr\]{
  grid-template-columns: 0 1fr;
}
.flex-row{
  flex-direction: row;
}
.flex-col{
  flex-direction: column;
}
.flex-col-reverse{
  flex-direction: column-reverse;
}
.flex-wrap{
  flex-wrap: wrap;
}
.items-start{
  align-items: flex-start;
}
.items-end{
  align-items: flex-end;
}
.items-center{
  align-items: center;
}
.items-baseline{
  align-items: baseline;
}
.justify-start{
  justify-content: flex-start;
}
.justify-center{
  justify-content: center;
}
.justify-between{
  justify-content: space-between;
}
.justify-items-start{
  justify-items: start;
}
.gap-1{
  gap: 0.25rem;
}
.gap-1\.5{
  gap: 0.375rem;
}
.gap-2{
  gap: 0.5rem;
}
.gap-4{
  gap: 1rem;
}
.gap-y-0\.5{
  row-gap: 0.125rem;
}
.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));
}
.overflow-auto{
  overflow: auto;
}
.overflow-hidden{
  overflow: hidden;
}
.overflow-y-auto{
  overflow-y: auto;
}
.overflow-x-hidden{
  overflow-x: hidden;
}
.whitespace-nowrap{
  white-space: nowrap;
}
.text-balance{
  text-wrap: balance;
}
.break-words{
  overflow-wrap: break-word;
}
.rounded-\[2px\]{
  border-radius: 2px;
}
.rounded-\[inherit\]{
  border-radius: inherit;
}
.rounded-full{
  border-radius: var(--radius-full);
}
.rounded-lg{
  border-radius: var(--radius-lg);
}
.rounded-md{
  border-radius: var(--radius-md);
}
.rounded-none{
  border-radius: 0px;
}
.rounded-sm{
  border-radius: var(--radius-sm);
}
.rounded-l-md{
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.rounded-r-md{
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.rounded-tl-sm{
  border-top-left-radius: var(--radius-sm);
}
.border{
  border-width: var(--border-width);
}
.border-y{
  border-top-width: var(--border-width);
  border-bottom-width: var(--border-width);
}
.border-b{
  border-bottom-width: var(--border-width);
}
.border-l{
  border-left-width: var(--border-width);
}
.border-r{
  border-right-width: var(--border-width);
}
.border-t{
  border-top-width: var(--border-width);
}
.border-input{
  border-color: hsl(var(--input));
}
.border-primary{
  border-color: hsl(var(--primary));
}
.border-transparent{
  border-color: transparent;
}
.border-l-transparent{
  border-left-color: transparent;
}
.border-t-transparent{
  border-top-color: transparent;
}
.bg-accent{
  background-color: hsl(var(--accent));
}
.bg-background{
  background-color: hsl(var(--background));
}
.bg-background\/80{
  background-color: hsl(var(--background) / 0.8);
}
.bg-black\/50{
  background-color: rgb(0 0 0 / 0.5);
}
.bg-border{
  background-color: hsl(var(--border));
}
.bg-card{
  background-color: hsl(var(--card));
}
.bg-destructive{
  background-color: hsl(var(--destructive));
}
.bg-foreground{
  background-color: hsl(var(--foreground));
}
.bg-muted{
  background-color: hsl(var(--muted));
}
.bg-muted\/50{
  background-color: hsl(var(--muted) / 0.5);
}
.bg-popover{
  background-color: hsl(var(--popover));
}
.bg-primary{
  background-color: hsl(var(--primary));
}
.bg-primary\/20{
  background-color: hsl(var(--primary) / 0.2);
}
.bg-secondary{
  background-color: hsl(var(--secondary));
}
.bg-transparent{
  background-color: transparent;
}
.bg-white{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.fill-current{
  fill: currentColor;
}
.fill-foreground{
  fill: hsl(var(--foreground));
}
.object-contain{
  -o-object-fit: contain;
     object-fit: contain;
}
.p-0{
  padding: 0px;
}
.p-1{
  padding: 0.25rem;
}
.p-2{
  padding: 0.5rem;
}
.p-3{
  padding: 0.75rem;
}
.p-4{
  padding: 1rem;
}
.p-6{
  padding: 1.5rem;
}
.p-8{
  padding: 2rem;
}
.p-px{
  padding: 1px;
}
.px-1{
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.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-8{
  padding-left: 2rem;
  padding-right: 2rem;
}
.px-\[var\(--cell-size\)\]{
  padding-left: var(--cell-size);
  padding-right: var(--cell-size);
}
.py-0{
  padding-top: 0px;
  padding-bottom: 0px;
}
.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-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;
}
.py-6{
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pb-4{
  padding-bottom: 1rem;
}
.pl-2{
  padding-left: 0.5rem;
}
.pl-2\.5{
  padding-left: 0.625rem;
}
.pl-4{
  padding-left: 1rem;
}
.pl-8{
  padding-left: 2rem;
}
.pr-1{
  padding-right: 0.25rem;
}
.pr-2{
  padding-right: 0.5rem;
}
.pr-2\.5{
  padding-right: 0.625rem;
}
.pt-0{
  padding-top: 0px;
}
.pt-4{
  padding-top: 1rem;
}
.text-left{
  text-align: left;
}
.text-center{
  text-align: center;
}
.align-middle{
  vertical-align: middle;
}
.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-\[0\.8rem\]{
  font-size: 0.8rem;
}
.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-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-medium{
  font-weight: var(--font-weight-medium);
}
.font-normal{
  font-weight: var(--font-weight-normal);
}
.font-semibold{
  font-weight: var(--font-weight-semibold);
}
.leading-none{
  line-height: 1;
}
.leading-relaxed{
  line-height: var(--line-height-relaxed);
}
.tracking-tight{
  letter-spacing: var(--letter-spacing-tight);
}
.tracking-widest{
  letter-spacing: 0.1em;
}
.text-accent-foreground{
  color: hsl(var(--accent-foreground));
}
.text-background{
  color: hsl(var(--background));
}
.text-card-foreground{
  color: hsl(var(--card-foreground));
}
.text-current{
  color: currentColor;
}
.text-destructive{
  color: hsl(var(--destructive));
}
.text-destructive-foreground{
  color: hsl(var(--destructive-foreground));
}
.text-foreground{
  color: hsl(var(--foreground));
}
.text-muted-foreground{
  color: hsl(var(--muted-foreground));
}
.text-popover-foreground{
  color: hsl(var(--popover-foreground));
}
.text-primary{
  color: hsl(var(--primary));
}
.text-primary-foreground{
  color: hsl(var(--primary-foreground));
}
.text-secondary-foreground{
  color: hsl(var(--secondary-foreground));
}
.underline-offset-4{
  text-underline-offset: 4px;
}
.opacity-0{
  opacity: 0;
}
.opacity-50{
  opacity: 0.5;
}
.opacity-60{
  opacity: 0.6;
}
.opacity-70{
  opacity: 0.7;
}
.opacity-80{
  opacity: 0.8;
}
.shadow{
  --tw-shadow: var(--shadow);
  --tw-shadow-colored: var(--shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg{
  --tw-shadow: var(--shadow-lg);
  --tw-shadow-colored: var(--shadow-lg);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md{
  --tw-shadow: var(--shadow-md);
  --tw-shadow-colored: var(--shadow-md);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm{
  --tw-shadow: var(--shadow-sm);
  --tw-shadow-colored: var(--shadow-sm);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xs{
  --tw-shadow: var(--shadow-xs);
  --tw-shadow-colored: var(--shadow-xs);
  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;
}
.outline{
  outline-style: solid;
}
.ring-0{
  --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(0px + 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-ring\/50{
  --tw-ring-color: hsl(var(--ring) / 0.5);
}
.ring-offset-background{
  --tw-ring-offset-color: hsl(var(--background));
}
.blur{
  --tw-blur: blur(8px);
  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);
}
.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);
}
.backdrop-blur-sm{
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.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-\[color\2c box-shadow\]{
  transition-property: color,box-shadow;
  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;
}
.transition-transform{
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-1000{
  transition-duration: 1000ms;
}
.duration-200{
  transition-duration: 200ms;
}
.duration-300{
  transition-duration: 300ms;
}
.ease-in-out{
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes enter{
  from{
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit{
  to{
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.animate-in{
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.fade-in-0{
  --tw-enter-opacity: 0;
}
.zoom-in-95{
  --tw-enter-scale: .95;
}
.duration-1000{
  animation-duration: 1000ms;
}
.duration-200{
  animation-duration: 200ms;
}
.duration-300{
  animation-duration: 300ms;
}
.ease-in-out{
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.running{
  animation-play-state: running;
}
.\[--cell-size\:calc\(var\(--spacing\)\*8\)\]{
  --cell-size: calc(var(--spacing) * 8);
}
.\[transform-origin\:var\(--radix-tooltip-content-transform-origin\)\]{
  transform-origin: var(--radix-tooltip-content-transform-origin);
}

/* Theme: Warm Sunset */
:root {
  --background: 40 33% 98%;
  --foreground: 30 10% 15%;
  --card: 40 40% 99%;
  --card-foreground: 30 10% 15%;
  --popover: 40 40% 99%;
  --popover-foreground: 30 10% 15%;
  --primary: 25 95% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 20% 94%;
  --secondary-foreground: 30 10% 25%;
  --muted: 40 20% 94%;
  --muted-foreground: 30 8% 46%;
  --accent: 36 100% 50%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 40 20% 88%;
  --input: 40 15% 88%;
  --ring: 25 95% 53%;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 100%;
  --warning: 45 93% 47%;
  --warning-foreground: 0 0% 0%;
  --info: 200 65% 45%;
  --info-foreground: 0 0% 100%;
  --link: 25 95% 45%;
  --link-hover: 15 90% 50%;
  --chart-1: 25 95% 53%;
  --chart-2: 160 84% 39%;
  --chart-3: 200 65% 45%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
  --sidebar: 40 30% 97%;
  --sidebar-foreground: 30 10% 15%;
  --sidebar-primary: 25 95% 53%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 40 20% 94%;
  --sidebar-accent-foreground: 30 10% 25%;
  --sidebar-border: 40 20% 88%;
  --sidebar-ring: 25 95% 53%;
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;
  --shadow-2xs: 0 1px 1px 0 rgba(0, 0, 0, 0.02);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 6px 10px -2px rgba(0, 0, 0, 0.06);
  --shadow-2xl: 0 10px 20px -4px rgba(0, 0, 0, 0.08);
  --border-width: 1px;
  --border-width-thick: 2px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --transition-fast: 120ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  --animation-fast: 250ms;
  --animation-normal: 400ms;
  --animation-slow: 600ms;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --line-height-tight: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  --backdrop-blur: 8px;
  --backdrop-opacity: 0.95;
  --spacing-unit: 0.25rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 1.75rem;
  --spacing-3xl: 2.5rem;
  --container-padding: 1rem;
  --card-padding: 1rem;
  --button-padding-x: 0.75rem;
  --button-padding-y: 0.5rem;
  --input-padding-x: 0.625rem;
  --input-padding-y: 0.5rem;
  --gap-xs: 0.25rem;
  --gap-sm: 0.5rem;
  --gap-md: 0.75rem;
  --gap-lg: 1rem;
  --gap-xl: 1.25rem;
}

.dark {
  --background: 30 12% 8%;
  --foreground: 40 15% 95%;
  --card: 30 10% 11%;
  --card-foreground: 40 15% 95%;
  --popover: 30 10% 11%;
  --popover-foreground: 40 15% 95%;
  --primary: 25 95% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 30 10% 16%;
  --secondary-foreground: 40 15% 95%;
  --muted: 30 10% 16%;
  --muted-foreground: 30 10% 55%;
  --accent: 36 100% 55%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 30 10% 18%;
  --input: 30 8% 20%;
  --ring: 25 95% 58%;
  --success: 160 84% 45%;
  --success-foreground: 0 0% 0%;
  --warning: 45 93% 52%;
  --warning-foreground: 0 0% 0%;
  --info: 200 65% 52%;
  --info-foreground: 0 0% 100%;
  --link: 25 95% 60%;
  --link-hover: 15 90% 55%;
  --chart-1: 25 95% 58%;
  --chart-2: 160 84% 39%;
  --chart-3: 36 100% 50%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
  --sidebar: 30 10% 11%;
  --sidebar-foreground: 40 15% 95%;
  --sidebar-primary: 25 95% 58%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 30 10% 16%;
  --sidebar-accent-foreground: 40 15% 95%;
  --sidebar-border: 30 10% 18%;
  --sidebar-ring: 25 95% 58%;
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;
  --shadow-2xs: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.32);
  --shadow-xl: 0 6px 10px -2px rgba(0, 0, 0, 0.35);
  --shadow-2xl: 0 10px 20px -4px rgba(0, 0, 0, 0.4);
  --border-width: 1px;
  --border-width-thick: 2px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --transition-fast: 120ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  --animation-fast: 250ms;
  --animation-normal: 400ms;
  --animation-slow: 600ms;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --line-height-tight: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  --backdrop-blur: 10px;
  --backdrop-opacity: 0.92;
  --spacing-unit: 0.25rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 1.75rem;
  --spacing-3xl: 2.5rem;
  --container-padding: 1rem;
  --card-padding: 1rem;
  --button-padding-x: 0.75rem;
  --button-padding-y: 0.5rem;
  --input-padding-x: 0.625rem;
  --input-padding-y: 0.5rem;
  --gap-xs: 0.25rem;
  --gap-sm: 0.5rem;
  --gap-md: 0.75rem;
  --gap-lg: 1rem;
  --gap-xl: 1.25rem;
}

/* Ledger-surface tokens derived from the Warm Sunset system */
:root, .dark {
  --color-canvas: hsl(var(--background));
  --color-surface: hsl(var(--card));
  --color-surface-sunken: hsl(var(--muted));
  --color-header-row: hsl(var(--sidebar-accent));
  --color-line: hsl(var(--border));
  --color-line-strong: hsl(var(--muted-foreground));
  --color-text-primary: hsl(var(--foreground));
  --color-text-secondary: hsl(var(--secondary-foreground));
  --color-text-muted: hsl(var(--muted-foreground));
  --color-text-inverse: hsl(var(--primary-foreground));
  --color-action: hsl(var(--primary));
  --color-action-hover: hsl(var(--link-hover));
  --color-action-ink: hsl(var(--link));
  --color-action-soft: hsl(30 92% 94%);
  --color-period: hsl(var(--chart-4));
  --color-period-ink: hsl(280 60% 38%);
  --color-period-soft: hsl(280 60% 96%);
  --color-overdue: hsl(0 74% 45%);
  --color-overdue-soft: hsl(0 84% 96%);
  --color-shell: hsl(24 42% 14%);
  --color-shell-hover: hsl(24 44% 20%);

  --font-body: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, monospace;
  --font-sans: var(--font-body);
  --font-mono: var(--font-num);
  --text-display: 20px;
  --lh-display: 26px;
  --weight-display: var(--font-weight-semibold);
  --text-lead: 15px;
  --lh-lead: 21px;
  --text-heading: 14px;
  --lh-heading: 20px;
  --weight-heading: var(--font-weight-semibold);
  --text-body: 13px;
  --lh-body: 18px;
  --text-label: 11px;
  --lh-label: 14px;
  --weight-label: var(--font-weight-semibold);
  --text-num: 13px;
  --lh-num: 18px;
  --weight-num: var(--font-weight-medium);

  --sp-1: var(--spacing-xs);
  --sp-2: var(--spacing-sm);
  --sp-3: var(--spacing-md);
  --sp-4: var(--spacing-xl);
  --sp-5: var(--spacing-2xl);

  --border-hair: var(--border-width);
  --border-strong: var(--border-width-thick);
  --elev-panel: var(--shadow-sm);
  --elev-popover: var(--shadow-xl);

  --dur-fast: var(--transition-fast);
  --ease-fast: cubic-bezier(.2, 0, 0, 1);
  --dur-base: var(--transition-slow);
  --ease-base: cubic-bezier(.2, .7, .2, 1);

  --color-ledger-frame: hsl(24 30% 42%);
  --color-ledger-grid: hsl(24 24% 78%);
  --color-ledger-carry: hsl(38 88% 90%);
  --color-ledger-subtotal: hsl(36 46% 93%);
  --color-cell-selection: hsl(30 92% 88%);
  --color-cell-selection-line: hsl(var(--primary));
  --color-selection-summary: hsl(36 52% 95%);
}

.dark {
  --color-ledger-frame: hsl(30 14% 42%);
  --color-ledger-grid: hsl(30 10% 28%);
  --color-ledger-carry: hsl(30 34% 22%);
  --color-ledger-subtotal: hsl(30 12% 19%);
  --color-cell-selection: hsl(24 48% 28%);
  --color-cell-selection-line: hsl(var(--primary));
  --color-selection-summary: hsl(30 10% 16%);
  --color-action-soft: hsl(24 45% 20%);
  --color-action-ink: hsl(var(--link));
  --color-period-ink: hsl(280 70% 76%);
  --color-period-soft: hsl(280 30% 20%);
  --color-overdue: hsl(0 84% 66%);
  --color-overdue-soft: hsl(0 40% 20%);
  --color-shell: hsl(30 12% 12%);
  --color-shell-hover: hsl(30 10% 18%);
  --color-header-row: hsl(30 10% 15%);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
#root { width: 100%; }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: var(--focus-ring-width) solid hsl(var(--ring));
  outline-offset: var(--focus-ring-offset);
}

.g1 { gap: var(--sp-1); }
.g2 { gap: var(--sp-2); }
.g3 { gap: var(--sp-3); }
.g4 { gap: var(--sp-4); }
.stack { display: flex; flex-direction: column; }
.page { padding: var(--sp-4); }

.appbar {
  background: var(--color-shell);
  color: hsl(40 30% 96%);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: var(--border-strong) solid var(--color-action);
}
.appbar-name { font-size: var(--text-lead); line-height: var(--lh-lead); font-weight: var(--weight-heading); letter-spacing: var(--letter-spacing-wide); }
.appbar .label { color: hsl(36 40% 76%); font-size: var(--text-body); line-height: var(--lh-body); }
.seg { display: inline-flex; border: var(--border-hair) solid var(--color-shell-hover); border-radius: var(--radius-sm); overflow: hidden; }
.seg-btn {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-body); line-height: var(--lh-body); font-weight: var(--weight-label);
  letter-spacing: var(--letter-spacing-wide);
  color: hsl(40 30% 92%); background: transparent; border: 0; cursor: pointer;
  min-height: var(--sp-5);
  display: inline-flex; align-items: center;
  transition: background var(--dur-fast) var(--ease-fast), color var(--dur-fast) var(--ease-fast);
}
.seg-btn:hover { background: var(--color-shell-hover); }
.seg-btn[aria-pressed="true"] { background: var(--color-action); color: var(--color-text-inverse); }
.seg-solo { border: var(--border-hair) solid var(--color-shell-hover); border-radius: var(--radius-sm); }

.navbar {
  background: var(--color-surface);
  border-bottom: var(--border-hair) solid var(--color-line);
  position: sticky; top: 0; z-index: 20;
  padding: 0 var(--sp-4);
  overflow-x: auto;
}
.nav-item {
  padding: var(--sp-3) var(--sp-2);
  background: transparent; border: 0;
  border-bottom: var(--border-strong) solid transparent;
  color: var(--color-text-secondary);
  /* `font: inherit` 是简写，会重置 font-size / line-height，字号必须写在它后面 */
  font: inherit;
  font-size: var(--text-lead); line-height: var(--lh-lead);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-fast);
}
.nav-item:hover { color: var(--color-text-primary); }
.nav-item[aria-current="page"] { color: var(--color-action-ink); border-bottom-color: var(--color-action); font-weight: var(--weight-heading); }

.panel {
  background: var(--color-surface);
  border: var(--border-hair) solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-panel);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: var(--border-hair) solid var(--color-line);
}
.panel-title { font-size: var(--text-heading); line-height: var(--lh-heading); font-weight: var(--weight-heading); }
.panel-body { padding: var(--sp-4); }
.page-header-main { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); min-width: 0; }
.page-title { font-size: var(--text-display); line-height: var(--lh-display); font-weight: var(--weight-display); letter-spacing: var(--letter-spacing-tight); }
.meta { color: var(--color-text-secondary); }
.muted { color: var(--color-text-muted); }
.label {
  font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--weight-label);
  letter-spacing: var(--letter-spacing-wide); color: var(--color-text-secondary);
}
.gap-top { margin-top: var(--sp-3); }
.gap-bottom { margin-bottom: var(--sp-3); }

.num {
  font-family: var(--font-num);
  font-size: var(--text-num);
  line-height: var(--lh-num);
  font-weight: var(--weight-num);
  font-variant-numeric: tabular-nums;
  text-align: right;
  display: block;
}
.num-neg { color: var(--color-overdue); }
.num-xl { font-size: var(--text-display); line-height: var(--lh-display); text-align: left; letter-spacing: var(--letter-spacing-tight); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  background: var(--color-header-row);
  font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--weight-label);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-secondary); text-align: left;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: var(--border-hair) solid var(--color-line);
  white-space: nowrap;
}
.tbl th.th-num { text-align: right; }
.tbl td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: var(--border-hair) solid var(--color-line);
  white-space: nowrap;
}
.tbl tbody tr { transition: background var(--dur-fast) var(--ease-fast); }
.tbl tbody tr:hover { background: var(--color-surface-sunken); }
.tbl tbody tr.is-selected { background: var(--color-action-soft); }
.tbl tbody tr.is-total { background: var(--color-surface-sunken); }
.tbl tbody tr.is-total td { border-top: var(--border-strong) solid var(--color-line-strong); font-weight: var(--weight-heading); }
.tbl-wrap { overflow-x: auto; }
.row-click { cursor: pointer; }

.ledger-book {
  background: var(--color-surface);
  border: var(--border-strong) solid var(--color-ledger-frame);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-panel);
}
.ledger-book-head {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: var(--border-strong) solid var(--color-ledger-frame);
}
.ledger-book-title {
  margin: 0;
  text-align: center;
  font-size: var(--text-display); line-height: var(--lh-display); font-weight: var(--weight-display);
  letter-spacing: var(--letter-spacing-wide);
}
.ledger-book-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--sp-3); margin-top: var(--sp-2);
}
.ledger-book-meta-left { justify-self: start; }
.ledger-book-meta-center { justify-self: center; }
.ledger-book-meta-right { justify-self: end; display: inline-flex; align-items: center; gap: var(--sp-2); }
.ledger-book-period {
  margin: var(--sp-2) 0 0;
  text-align: center;
  font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--weight-label);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-secondary);
}

.ledger-table th, .ledger-table td { border-right: var(--border-hair) solid var(--color-ledger-grid); }
.ledger-table th:last-child, .ledger-table td:last-child { border-right: 0; }
.ledger-table th { border-bottom: var(--border-strong) solid var(--color-ledger-frame); }
.ledger-table td { border-bottom: var(--border-hair) solid var(--color-ledger-grid); }
.ledger-table tbody tr.ledger-carry-row,
.ledger-table tbody tr.ledger-carry-row:hover { background: var(--color-ledger-carry); }
.ledger-table tbody tr.ledger-carry-row td { font-weight: var(--weight-heading); }
.ledger-carry-year { text-align: center; letter-spacing: var(--letter-spacing-wide); }
.ledger-table tbody tr.ledger-month-start td:first-child { font-weight: var(--weight-heading); }
.ledger-table tbody tr.ledger-month-total,
.ledger-table tbody tr.ledger-month-total:hover { background: var(--color-ledger-subtotal); }
.ledger-table tbody tr.ledger-month-total td {
  font-weight: var(--weight-heading);
  border-top: var(--border-hair) solid var(--color-ledger-grid);
  border-bottom: var(--border-strong) solid var(--color-ledger-frame);
}
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-period-actual {
  display: block;
  font-size: var(--text-label); line-height: var(--lh-label);
  color: var(--color-text-muted);
}
.ledger-table td.ledger-period-shifted .ledger-period-month {
  color: var(--color-period-ink);
  font-weight: var(--weight-heading);
}
.ledger-empty-row td {
  padding-block: var(--sp-5); text-align: center; color: var(--color-text-muted);
  border-bottom: 0;
}

.ledger-toolbar { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.ledger-toolbar-dirty {
  font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--weight-label);
  color: var(--color-overdue);
}
.ledger-total-summary { display: inline-flex; align-items: center; gap: var(--sp-2); }
.ledger-reconcile-cell { text-align: right; }

.ledger-cell-edit { display: inline-flex; flex-direction: column; gap: 2px; vertical-align: middle; }
.ledger-cell-edit .field { min-height: var(--sp-4); padding: 0 var(--sp-1); }
.ledger-cell-edit .field[aria-invalid="true"] { border-color: var(--color-overdue); }
.ledger-cell-error {
  font-size: var(--text-label); line-height: var(--lh-label);
  color: var(--color-overdue); white-space: nowrap;
}
/* 用行内排而不是 flex：这两个类直接落在 `td` 上，改成 flex 会把单元格踢出表格布局、令列宽不可预期 */
.ledger-edit-period, .ledger-edit-actions { white-space: nowrap; }
.ledger-edit-period > *, .ledger-edit-actions > * { vertical-align: middle; }
.ledger-edit-period > * + * { margin-left: var(--sp-2); }
.ledger-edit-actions > * + * { margin-left: var(--sp-1); }

.ledger-table tbody tr.ledger-row-dirty,
.ledger-table tbody tr.ledger-row-dirty:hover { background: var(--color-period-soft); }
.ledger-table tbody tr.ledger-locked-row,
.ledger-table tbody tr.ledger-locked-row:hover { background: var(--color-surface-sunken); }
.ledger-table tbody tr.ledger-locked-row td { color: var(--color-text-secondary); }

@keyframes ledger-row-settle {
  from { background: var(--color-action-soft); }
  to { background: transparent; }
}
.ledger-table tbody tr.ledger-row-moved {
  animation: ledger-row-settle var(--dur-slow, 1200ms) var(--ease-base) 2;
}

.ledger-draft-group { border-top: var(--border-strong) solid var(--color-ledger-frame); }
.ledger-table tbody.ledger-draft-group tr.ledger-draft-row,
.ledger-table tbody.ledger-draft-group tr.ledger-draft-row:hover {
  background: var(--color-ledger-carry);
}
.ledger-table tbody.ledger-draft-group td {
  border-top: var(--border-hair) dashed var(--color-line-strong);
}

.field-static {
  display: flex; align-items: center;
  min-height: var(--sp-5);
  padding: var(--sp-1) 0;
  color: var(--color-text-primary);
}

.btn-sm {
  min-height: var(--sp-4);
  padding: 0 var(--sp-2);
  font-size: var(--text-label); line-height: var(--lh-label);
}
.btn.is-armed {
  background: var(--color-overdue-soft);
  border-color: var(--color-overdue);
  color: var(--color-overdue);
}

/* 编辑态每格都是带边框的输入框，列间靠边框就能分开，单元格内边距可以收紧换横向空间 */
.ledger-table-editing th,
.ledger-table-editing td { padding-inline: var(--sp-1); }

/* 它仍可能在窄屏上溢出，把操作列钉在右侧，保存与删除永远够得着 */
.ledger-table-editing th:last-child,
.ledger-table-editing td:last-child {
  position: sticky; right: 0;
  border-left: var(--border-hair) solid var(--color-ledger-grid);
}
.ledger-table-editing thead th:last-child { z-index: 2; background: var(--color-header-row); }
.ledger-table-editing tbody td:last-child { z-index: 1; background: var(--color-surface); }
.ledger-table-editing tbody tr:hover td:last-child { background: var(--color-surface-sunken); }
.ledger-table-editing tbody tr.ledger-carry-row td:last-child,
.ledger-table-editing tbody tr.ledger-carry-row:hover td:last-child { background: var(--color-ledger-carry); }
.ledger-table-editing tbody tr.ledger-month-total td:last-child,
.ledger-table-editing tbody tr.ledger-month-total:hover td:last-child { background: var(--color-ledger-subtotal); }
.ledger-table-editing tbody tr.ledger-locked-row td:last-child,
.ledger-table-editing tbody tr.ledger-locked-row:hover td:last-child { background: var(--color-surface-sunken); }
.ledger-table-editing tbody tr.ledger-row-dirty td:last-child,
.ledger-table-editing tbody tr.ledger-row-dirty:hover td:last-child { background: var(--color-period-soft); }
.ledger-table-editing tbody.ledger-draft-group tr.ledger-draft-row td:last-child,
.ledger-table-editing tbody.ledger-draft-group tr.ledger-draft-row:hover td:last-child { background: var(--color-ledger-carry); }

@media (prefers-reduced-motion: reduce) {
  .ledger-table tbody tr.ledger-row-moved { animation: none; background: var(--color-action-soft); }
}

/* 明细账批量导入 */
.import-drop {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  border: var(--border-strong) dashed var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-sunken);
  transition: border-color var(--dur-fast) var(--ease-fast), background var(--dur-fast) var(--ease-fast);
}
.import-drop.is-over { border-color: var(--color-action); background: var(--color-action-soft); }
.import-drop-title { font-weight: var(--font-weight-medium); color: var(--color-text-primary); }
.import-drop-input { display: none; }
.import-drop .muted { max-width: 56ch; }

.import-counts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.import-sheet-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.import-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.import-sheet-nav {
  display: flex; flex-direction: column; gap: var(--sp-1);
  max-height: 460px; overflow-y: auto;
  padding-right: var(--sp-1);
}
.import-sheet-btn { display: flex; align-items: center; gap: var(--sp-2); }
.import-sheet-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-sheet-badge {
  flex: none;
  font-family: var(--font-num); font-size: var(--text-label); line-height: var(--lh-label);
  color: var(--color-text-muted);
}
.import-sheet-badge.is-warn { color: var(--color-overdue); }
.btn-primary .import-sheet-badge, .btn-primary .import-sheet-badge.is-warn { color: var(--color-text-inverse); }

.import-error { background: var(--color-overdue-soft); border-left-color: var(--color-overdue); }
.import-note { margin: var(--sp-3); }

.tbl tbody tr.import-row.is-skip td { color: var(--color-text-muted); }
.tbl tbody tr.import-row.is-warn,
.tbl tbody tr.import-row.is-warn:hover { background: var(--color-overdue-soft); }
.import-fill-mark {
  margin-left: var(--sp-1);
  font-size: var(--text-label); line-height: var(--lh-label);
  color: var(--color-period-ink);
}
/* 定位符带上元素名：后面基础的 `.field` 规则会把高度压回去 */
textarea.import-paste {
  min-height: 160px; resize: vertical;
  font-family: var(--font-num);
  white-space: pre; overflow-wrap: normal; overflow-x: auto;
}

.cell-selectable { cursor: cell; }
.cell-is-selected {
  background: var(--color-cell-selection);
  box-shadow: inset 0 0 0 var(--border-hair) var(--color-cell-selection-line);
}
.cell-selection-dragging, .cell-selection-dragging * { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
/* 拖拽中让粘滞汇总条“透明”给下面的单元格，否则向下拖到被它遮住的行时选区会卡住 */
.cell-selection-dragging .selection-summary { pointer-events: none; }
.selection-summary {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-selection-summary);
  border-top: var(--border-strong) solid var(--color-ledger-frame);
}
.selection-summary-stat { display: inline-flex; align-items: baseline; gap: var(--sp-1); }
.selection-summary-stat .num { text-align: left; }
.selection-summary-note { color: var(--color-overdue); }
.selection-summary-actions { margin-left: auto; display: inline-flex; gap: var(--sp-2); }
.clipboard-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.empty { padding-block: var(--sp-5); padding-inline: var(--sp-4); text-align: center; color: var(--color-text-muted); }

.pill {
  display: inline-flex; align-items: center;
  padding: 0 var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--weight-label);
  letter-spacing: var(--letter-spacing-wide);
  min-height: var(--sp-4);
  white-space: nowrap;
}
.pill-ok { background: var(--color-action-soft); color: var(--color-action-ink); }
.pill-period { background: var(--color-period-soft); color: var(--color-period-ink); }
.pill-alert { background: var(--color-overdue-soft); color: var(--color-overdue); }
.pill-neutral { background: var(--color-surface-sunken); color: var(--color-text-secondary); }

.btn {
  border: var(--border-hair) solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font: inherit; cursor: pointer;
  min-height: var(--sp-5);
  transition: background var(--dur-fast) var(--ease-fast), border-color var(--dur-fast) var(--ease-fast);
}
.btn:hover { border-color: var(--color-action); }
.btn:active { background: var(--color-surface-sunken); }
.btn-primary { background: var(--color-action); color: var(--color-text-inverse); border-color: var(--color-action); font-weight: var(--font-weight-medium); }
.btn-primary:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); }
.btn:disabled { background: var(--color-surface-sunken); color: var(--color-text-muted); cursor: not-allowed; border-color: var(--color-line); }
.btn-list { text-align: left; }

.field {
  width: 100%;
  background: var(--color-surface);
  border: var(--border-hair) solid hsl(var(--input));
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  min-height: var(--sp-5);
  font: inherit; color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-fast);
}
.field:focus { border-color: var(--color-action); }
.field[readonly] { background: var(--color-surface-sunken); color: var(--color-text-secondary); }
.field-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; }
.field-inline { width: auto; }
.field-search { width: 220px; max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.side-list { padding: var(--sp-3); gap: var(--sp-2); height: -moz-fit-content; height: fit-content; }

.party-picker-trigger {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  width: 300px; max-width: 100%;
  background: var(--color-surface);
  border: var(--border-hair) solid hsl(var(--input));
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  min-height: var(--sp-5);
  font: inherit; color: var(--color-text-primary); text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-fast);
}
.party-picker-trigger:hover,
.party-picker-trigger[data-state="open"] { border-color: var(--color-action); }
.party-picker-icon, .party-picker-caret { width: var(--sp-3); height: var(--sp-3); flex: none; color: var(--color-text-muted); }
.party-picker-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-picker-pop {
  width: var(--radix-popover-trigger-width);
  min-width: 260px;
  padding: 0;
  background: var(--color-surface);
  border: var(--border-hair) solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-popover);
}
.party-picker-item { gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); cursor: pointer; }
.party-picker-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-picker-check { flex: none; opacity: 0; color: var(--color-action); }
.party-picker-check.is-on { opacity: 1; }

.callout {
  background: var(--color-period-soft);
  border-left: var(--border-strong) solid var(--color-period);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--color-text-primary);
}
.pop {
  background: var(--color-surface);
  border: var(--border-hair) solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-popover);
  padding: var(--sp-2) var(--sp-3);
}
.track { height: var(--sp-2); background: var(--color-action-soft); border-radius: var(--radius-full); overflow: hidden; min-width: 160px; }
.track-fill { height: 100%; background: var(--color-action); transition: width var(--dur-base) var(--ease-base); }
.track-fill.is-alert { background: var(--color-overdue); }

/* 签名一：合同批次挂载轴 */
.lane { width: 100%; height: auto; display: block; }
.lane-track { fill: var(--color-surface-sunken); stroke: var(--color-line); stroke-width: 1; }
.lane-seg { fill: var(--color-action-soft); stroke: var(--color-action); stroke-width: 1; cursor: pointer; transition: fill var(--dur-fast) var(--ease-fast); }
.lane-seg:hover, .lane-seg.is-active { fill: var(--color-action); }
.lane-over { fill: var(--color-overdue-soft); stroke: var(--color-overdue); stroke-width: 1; }
.lane-draft {
  fill: var(--color-period-soft); stroke: var(--color-period); stroke-width: 2; stroke-dasharray: 6 4;
  animation: draftPulse var(--animation-slow) var(--ease-base) infinite alternate;
}
@keyframes draftPulse { from { opacity: .5; } to { opacity: 1; } }
.lane-remain { fill: none; stroke: var(--color-line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.lane-label { fill: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-label); font-weight: var(--weight-label); }
.lane-seg-label { fill: var(--color-text-primary); font-family: var(--font-num); font-size: var(--text-num); pointer-events: none; }
.lane-seg.is-active + .lane-seg-label, .lane-seg:hover + .lane-seg-label { fill: var(--color-text-inverse); }
.lane-tick { stroke: var(--color-line-strong); stroke-width: 1; }

/* 签名二：应收账期往前推算回溯轴 */
.axis-base { stroke: var(--color-line-strong); stroke-width: 1; }
.axis-arc { stroke: var(--color-period); stroke-width: 2; fill: none; }
.axis-node { fill: var(--color-surface); stroke: var(--color-line-strong); stroke-width: 1; }
.axis-node.is-ar { fill: var(--color-period); stroke: var(--color-period); }
.axis-node.is-ship { fill: var(--color-action); stroke: var(--color-action); }
.axis-txt { fill: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-label); font-weight: var(--weight-label); }
.axis-txt.is-strong { fill: var(--color-text-primary); }

.mobile-summary { display: none; }
@media (max-width: 720px) {
  .form-grid, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .page-header-main { width: 100%; }
  .party-picker-trigger { width: 100%; }
  .party-picker-pop { max-width: calc(100vw - var(--sp-5)); }
  .mobile-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .page { padding: var(--sp-3); }
  .panel-body { padding: var(--sp-3); }
  .ledger-book-meta { grid-template-columns: minmax(0, 1fr); }
  .ledger-book-meta-left, .ledger-book-meta-center, .ledger-book-meta-right { justify-self: start; }
  .ledger-book-period { text-align: left; }
  .selection-summary { position: static; gap: var(--sp-3); }
  .selection-summary-actions { margin-left: 0; }
  .cell-selectable { cursor: default; }
  .import-body { grid-template-columns: minmax(0, 1fr); }
  .import-sheet-nav { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: var(--sp-1); }
  .import-sheet-btn { flex: none; }
  .import-drop { padding: var(--sp-4) var(--sp-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lane-draft { opacity: 1; }
}
.file\:border-0::file-selector-button{
  border-width: 0px;
}
.file\:bg-transparent::file-selector-button{
  background-color: transparent;
}
.file\:text-sm::file-selector-button{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.file\:font-medium::file-selector-button{
  font-weight: var(--font-weight-medium);
}
.file\:text-foreground::file-selector-button{
  color: hsl(var(--foreground));
}
.placeholder\:text-muted-foreground::-moz-placeholder{
  color: hsl(var(--muted-foreground));
}
.placeholder\:text-muted-foreground::placeholder{
  color: hsl(var(--muted-foreground));
}
.after\:absolute::after{
  content: var(--tw-content);
  position: absolute;
}
.after\:inset-y-0::after{
  content: var(--tw-content);
  top: 0px;
  bottom: 0px;
}
.after\:left-1\/2::after{
  content: var(--tw-content);
  left: 50%;
}
.after\:w-1::after{
  content: var(--tw-content);
  width: 0.25rem;
}
.after\:-translate-x-1\/2::after{
  content: var(--tw-content);
  --tw-translate-x: -50%;
  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));
}
.first\:rounded-l-md:first-child{
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.first\:border-l:first-child{
  border-left-width: var(--border-width);
}
.last\:rounded-r-md:last-child{
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.last\:border-b-0:last-child{
  border-bottom-width: 0px;
}
.hover\:bg-accent:hover{
  background-color: hsl(var(--accent));
}
.hover\:bg-destructive\/80:hover{
  background-color: hsl(var(--destructive) / 0.8);
}
.hover\:bg-destructive\/90:hover{
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:bg-muted:hover{
  background-color: hsl(var(--muted));
}
.hover\:bg-muted\/50:hover{
  background-color: hsl(var(--muted) / 0.5);
}
.hover\:bg-primary\/80:hover{
  background-color: hsl(var(--primary) / 0.8);
}
.hover\:bg-primary\/90:hover{
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:bg-secondary\/80:hover{
  background-color: hsl(var(--secondary) / 0.8);
}
.hover\:text-accent-foreground:hover{
  color: hsl(var(--accent-foreground));
}
.hover\:text-foreground:hover{
  color: hsl(var(--foreground));
}
.hover\:text-muted-foreground:hover{
  color: hsl(var(--muted-foreground));
}
.hover\:underline:hover{
  text-decoration-line: underline;
}
.hover\:opacity-100:hover{
  opacity: 1;
}
.hover\:ring-4:hover{
  --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);
}
.focus\:bg-accent:focus{
  background-color: hsl(var(--accent));
}
.focus\:text-accent-foreground:focus{
  color: hsl(var(--accent-foreground));
}
.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-ring:focus{
  --tw-ring-color: hsl(var(--ring));
}
.focus\:ring-offset-2:focus{
  --tw-ring-offset-width: 2px;
}
.focus-visible\:border-ring:focus-visible{
  border-color: hsl(var(--ring));
}
.focus-visible\:outline-none:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:outline-1:focus-visible{
  outline-width: 1px;
}
.focus-visible\:ring-1:focus-visible{
  --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(1px + 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-visible\:ring-2:focus-visible{
  --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-visible\:ring-4:focus-visible{
  --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);
}
.focus-visible\:ring-\[3px\]:focus-visible{
  --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(3px + 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-visible\:ring-ring:focus-visible{
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-ring\/50:focus-visible{
  --tw-ring-color: hsl(var(--ring) / 0.5);
}
.focus-visible\:ring-offset-1:focus-visible{
  --tw-ring-offset-width: 1px;
}
.focus-visible\:ring-offset-2:focus-visible{
  --tw-ring-offset-width: 2px;
}
.disabled\:pointer-events-none:disabled{
  pointer-events: none;
}
.disabled\:cursor-not-allowed:disabled{
  cursor: not-allowed;
}
.disabled\:opacity-50:disabled{
  opacity: 0.5;
}
.peer:disabled ~ .peer-disabled\:cursor-not-allowed{
  cursor: not-allowed;
}
.peer:disabled ~ .peer-disabled\:opacity-70{
  opacity: 0.7;
}
.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){
  grid-template-columns: calc(var(--spacing) * 4) 1fr;
}
.has-\[\>svg\]\:gap-x-3:has(>svg){
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.has-\[\:focus\]\:border-ring:has(:focus){
  border-color: hsl(var(--ring));
}
.has-\[\:disabled\]\:opacity-50:has(:disabled){
  opacity: 0.5;
}
.has-\[\:focus\]\:ring-\[3px\]:has(: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(3px + 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);
}
.has-\[\:focus\]\:ring-ring\/50:has(:focus){
  --tw-ring-color: hsl(var(--ring) / 0.5);
}
.aria-disabled\:opacity-50[aria-disabled="true"]{
  opacity: 0.5;
}
.aria-selected\:text-muted-foreground[aria-selected="true"]{
  color: hsl(var(--muted-foreground));
}
.data-\[disabled\=true\]\:pointer-events-none[data-disabled="true"]{
  pointer-events: none;
}
.data-\[disabled\]\:pointer-events-none[data-disabled]{
  pointer-events: none;
}
.data-\[active\=true\]\:z-10[data-active="true"]{
  z-index: 10;
}
.data-\[orientation\=horizontal\]\:h-1\.5[data-orientation="horizontal"]{
  height: 0.375rem;
}
.data-\[orientation\=horizontal\]\:h-full[data-orientation="horizontal"]{
  height: 100%;
}
.data-\[orientation\=horizontal\]\:h-px[data-orientation="horizontal"]{
  height: 1px;
}
.data-\[orientation\=vertical\]\:h-full[data-orientation="vertical"]{
  height: 100%;
}
.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction="vertical"]{
  height: 1px;
}
.data-\[orientation\=vertical\]\:min-h-44[data-orientation="vertical"]{
  min-height: 11rem;
}
.data-\[orientation\=horizontal\]\:w-full[data-orientation="horizontal"]{
  width: 100%;
}
.data-\[orientation\=vertical\]\:w-1\.5[data-orientation="vertical"]{
  width: 0.375rem;
}
.data-\[orientation\=vertical\]\:w-auto[data-orientation="vertical"]{
  width: auto;
}
.data-\[orientation\=vertical\]\:w-full[data-orientation="vertical"]{
  width: 100%;
}
.data-\[orientation\=vertical\]\:w-px[data-orientation="vertical"]{
  width: 1px;
}
.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction="vertical"]{
  width: 100%;
}
.data-\[side\=bottom\]\:translate-y-1[data-side="bottom"]{
  --tw-translate-y: 0.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));
}
.data-\[side\=left\]\:-translate-x-1[data-side="left"]{
  --tw-translate-x: -0.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));
}
.data-\[side\=right\]\:translate-x-1[data-side="right"]{
  --tw-translate-x: 0.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));
}
.data-\[side\=top\]\:-translate-y-1[data-side="top"]{
  --tw-translate-y: -0.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));
}
.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state="checked"]{
  --tw-translate-x: calc(100% - 2px);
  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));
}
.data-\[state\=unchecked\]\:translate-x-0[data-state="unchecked"]{
  --tw-translate-x: 0px;
  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 accordion-up{
  from{
    height: var(--radix-accordion-content-height);
  }
  to{
    height: 0;
  }
}
.data-\[state\=closed\]\:animate-accordion-up[data-state="closed"]{
  animation: accordion-up var(--transition-normal) ease-out;
}
@keyframes accordion-down{
  from{
    height: 0;
  }
  to{
    height: var(--radix-accordion-content-height);
  }
}
.data-\[state\=open\]\:animate-accordion-down[data-state="open"]{
  animation: accordion-down var(--transition-normal) ease-out;
}
.data-\[orientation\=vertical\]\:flex-col[data-orientation="vertical"]{
  flex-direction: column;
}
.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction="vertical"]{
  flex-direction: column;
}
.data-\[range-end\=true\]\:rounded-md[data-range-end="true"]{
  border-radius: var(--radius-md);
}
.data-\[range-middle\=true\]\:rounded-none[data-range-middle="true"]{
  border-radius: 0px;
}
.data-\[range-start\=true\]\:rounded-md[data-range-start="true"]{
  border-radius: var(--radius-md);
}
.data-\[selected\=true\]\:rounded-none[data-selected="true"]{
  border-radius: 0px;
}
.data-\[range-end\=true\]\:rounded-r-md[data-range-end="true"]{
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.data-\[range-start\=true\]\:rounded-l-md[data-range-start="true"]{
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.data-\[active\=true\]\:border-ring[data-active="true"]{
  border-color: hsl(var(--ring));
}
.data-\[active\=true\]\:bg-accent\/50[data-active="true"]{
  background-color: hsl(var(--accent) / 0.5);
}
.data-\[range-end\=true\]\:bg-primary[data-range-end="true"]{
  background-color: hsl(var(--primary));
}
.data-\[range-middle\=true\]\:bg-accent[data-range-middle="true"]{
  background-color: hsl(var(--accent));
}
.data-\[range-start\=true\]\:bg-primary[data-range-start="true"]{
  background-color: hsl(var(--primary));
}
.data-\[selected-single\=true\]\:bg-primary[data-selected-single="true"]{
  background-color: hsl(var(--primary));
}
.data-\[selected\=true\]\:bg-accent[data-selected="true"]{
  background-color: hsl(var(--accent));
}
.data-\[state\=active\]\:bg-background[data-state="active"]{
  background-color: hsl(var(--background));
}
.data-\[state\=checked\]\:bg-primary[data-state="checked"]{
  background-color: hsl(var(--primary));
}
.data-\[state\=on\]\:bg-accent[data-state="on"]{
  background-color: hsl(var(--accent));
}
.data-\[state\=open\]\:bg-accent[data-state="open"]{
  background-color: hsl(var(--accent));
}
.data-\[state\=open\]\:bg-accent\/50[data-state="open"]{
  background-color: hsl(var(--accent) / 0.5);
}
.data-\[state\=open\]\:bg-secondary[data-state="open"]{
  background-color: hsl(var(--secondary));
}
.data-\[state\=selected\]\:bg-muted[data-state="selected"]{
  background-color: hsl(var(--muted));
}
.data-\[state\=unchecked\]\:bg-input[data-state="unchecked"]{
  background-color: hsl(var(--input));
}
.data-\[inset\]\:pl-8[data-inset]{
  padding-left: 2rem;
}
.data-\[active\=true\]\:text-accent-foreground[data-active="true"]{
  color: hsl(var(--accent-foreground));
}
.data-\[error\=true\]\:text-destructive[data-error="true"]{
  color: hsl(var(--destructive));
}
.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{
  color: hsl(var(--muted-foreground));
}
.data-\[range-end\=true\]\:text-primary-foreground[data-range-end="true"]{
  color: hsl(var(--primary-foreground));
}
.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle="true"]{
  color: hsl(var(--accent-foreground));
}
.data-\[range-start\=true\]\:text-primary-foreground[data-range-start="true"]{
  color: hsl(var(--primary-foreground));
}
.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single="true"]{
  color: hsl(var(--primary-foreground));
}
.data-\[selected\=true\]\:text-accent-foreground[data-selected="true"]{
  color: hsl(var(--accent-foreground));
}
.data-\[state\=active\]\:text-foreground[data-state="active"]{
  color: hsl(var(--foreground));
}
.data-\[state\=checked\]\:text-primary-foreground[data-state="checked"]{
  color: hsl(var(--primary-foreground));
}
.data-\[state\=on\]\:text-accent-foreground[data-state="on"]{
  color: hsl(var(--accent-foreground));
}
.data-\[state\=open\]\:text-accent-foreground[data-state="open"]{
  color: hsl(var(--accent-foreground));
}
.data-\[state\=open\]\:text-muted-foreground[data-state="open"]{
  color: hsl(var(--muted-foreground));
}
.data-\[variant\=destructive\]\:text-destructive[data-variant="destructive"]{
  color: hsl(var(--destructive));
}
.data-\[disabled\=true\]\:opacity-50[data-disabled="true"]{
  opacity: 0.5;
}
.data-\[disabled\]\:opacity-50[data-disabled]{
  opacity: 0.5;
}
.data-\[state\=active\]\:shadow-sm[data-state="active"]{
  --tw-shadow: var(--shadow-sm);
  --tw-shadow-colored: var(--shadow-sm);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.data-\[active\=true\]\:ring-\[3px\][data-active="true"]{
  --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(3px + 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);
}
.data-\[active\=true\]\:ring-ring\/50[data-active="true"]{
  --tw-ring-color: hsl(var(--ring) / 0.5);
}
.data-\[state\=closed\]\:duration-300[data-state="closed"]{
  transition-duration: 300ms;
}
.data-\[state\=open\]\:duration-500[data-state="open"]{
  transition-duration: 500ms;
}
.data-\[motion\^\=from-\]\:animate-in[data-motion^="from-"]{
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[state\=open\]\:animate-in[data-state="open"]{
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[state\=visible\]\:animate-in[data-state="visible"]{
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[motion\^\=to-\]\:animate-out[data-motion^="to-"]{
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[state\=closed\]\:animate-out[data-state="closed"]{
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[state\=hidden\]\:animate-out[data-state="hidden"]{
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[motion\^\=from-\]\:fade-in[data-motion^="from-"]{
  --tw-enter-opacity: 0;
}
.data-\[motion\^\=to-\]\:fade-out[data-motion^="to-"]{
  --tw-exit-opacity: 0;
}
.data-\[state\=closed\]\:fade-out-0[data-state="closed"]{
  --tw-exit-opacity: 0;
}
.data-\[state\=hidden\]\:fade-out[data-state="hidden"]{
  --tw-exit-opacity: 0;
}
.data-\[state\=open\]\:fade-in-0[data-state="open"]{
  --tw-enter-opacity: 0;
}
.data-\[state\=visible\]\:fade-in[data-state="visible"]{
  --tw-enter-opacity: 0;
}
.data-\[state\=closed\]\:zoom-out-95[data-state="closed"]{
  --tw-exit-scale: .95;
}
.data-\[state\=open\]\:zoom-in-90[data-state="open"]{
  --tw-enter-scale: .9;
}
.data-\[state\=open\]\:zoom-in-95[data-state="open"]{
  --tw-enter-scale: .95;
}
.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion="from-end"]{
  --tw-enter-translate-x: 13rem;
}
.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion="from-start"]{
  --tw-enter-translate-x: -13rem;
}
.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion="to-end"]{
  --tw-exit-translate-x: 13rem;
}
.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion="to-start"]{
  --tw-exit-translate-x: -13rem;
}
.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"]{
  --tw-enter-translate-y: -0.5rem;
}
.data-\[side\=left\]\:slide-in-from-right-2[data-side="left"]{
  --tw-enter-translate-x: 0.5rem;
}
.data-\[side\=right\]\:slide-in-from-left-2[data-side="right"]{
  --tw-enter-translate-x: -0.5rem;
}
.data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"]{
  --tw-enter-translate-y: 0.5rem;
}
.data-\[state\=closed\]\:slide-out-to-bottom[data-state="closed"]{
  --tw-exit-translate-y: 100%;
}
.data-\[state\=closed\]\:slide-out-to-left[data-state="closed"]{
  --tw-exit-translate-x: -100%;
}
.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state="closed"]{
  --tw-exit-translate-x: -50%;
}
.data-\[state\=closed\]\:slide-out-to-right[data-state="closed"]{
  --tw-exit-translate-x: 100%;
}
.data-\[state\=closed\]\:slide-out-to-top[data-state="closed"]{
  --tw-exit-translate-y: -100%;
}
.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"]{
  --tw-exit-translate-y: -48%;
}
.data-\[state\=open\]\:slide-in-from-bottom[data-state="open"]{
  --tw-enter-translate-y: 100%;
}
.data-\[state\=open\]\:slide-in-from-left[data-state="open"]{
  --tw-enter-translate-x: -100%;
}
.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"]{
  --tw-enter-translate-x: -50%;
}
.data-\[state\=open\]\:slide-in-from-right[data-state="open"]{
  --tw-enter-translate-x: 100%;
}
.data-\[state\=open\]\:slide-in-from-top[data-state="open"]{
  --tw-enter-translate-y: -100%;
}
.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"]{
  --tw-enter-translate-y: -48%;
}
.data-\[state\=closed\]\:duration-300[data-state="closed"]{
  animation-duration: 300ms;
}
.data-\[state\=open\]\:duration-500[data-state="open"]{
  animation-duration: 500ms;
}
.\*\:data-\[slot\=alert-description\]\:text-destructive\/90[data-slot="alert-description"] > *{
  color: hsl(var(--destructive) / 0.9);
}
.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction="vertical"]::after{
  content: var(--tw-content);
  left: 0px;
}
.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction="vertical"]::after{
  content: var(--tw-content);
  height: 0.25rem;
}
.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction="vertical"]::after{
  content: var(--tw-content);
  width: 100%;
}
.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction="vertical"]::after{
  content: var(--tw-content);
  --tw-translate-y: -50%;
  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));
}
.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction="vertical"]::after{
  content: var(--tw-content);
  --tw-translate-x: 0px;
  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));
}
.data-\[active\=true\]\:hover\:bg-accent:hover[data-active="true"]{
  background-color: hsl(var(--accent));
}
.data-\[state\=open\]\:hover\:bg-accent:hover[data-state="open"]{
  background-color: hsl(var(--accent));
}
.data-\[active\=true\]\:focus\:bg-accent:focus[data-active="true"]{
  background-color: hsl(var(--accent));
}
.data-\[state\=open\]\:focus\:bg-accent:focus[data-state="open"]{
  background-color: hsl(var(--accent));
}
.data-\[variant\=destructive\]\:focus\:bg-destructive\/10:focus[data-variant="destructive"]{
  background-color: hsl(var(--destructive) / 0.1);
}
.data-\[variant\=destructive\]\:focus\:text-destructive:focus[data-variant="destructive"]{
  color: hsl(var(--destructive));
}
.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:relative{
  position: relative;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:top-full{
  top: 100%;
}
.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:z-10{
  z-index: 10;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5{
  margin-top: 0.375rem;
}
.group[data-state="open"] .group-data-\[state\=open\]\:rotate-180{
  --tw-rotate: 180deg;
  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));
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden{
  overflow: hidden;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:rounded-md{
  border-radius: var(--radius-md);
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:border{
  border-width: var(--border-width);
}
.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:border-ring{
  border-color: hsl(var(--ring));
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:bg-popover{
  background-color: hsl(var(--popover));
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground{
  color: hsl(var(--popover-foreground));
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:shadow{
  --tw-shadow: var(--shadow);
  --tw-shadow-colored: var(--shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-\[3px\]{
  --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(3px + 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);
}
.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-ring\/50{
  --tw-ring-color: hsl(var(--ring) / 0.5);
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:duration-200{
  transition-duration: 200ms;
  animation-duration: 200ms;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in[data-state="open"]{
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out[data-state="closed"]{
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0[data-state="closed"]{
  --tw-exit-opacity: 0;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0[data-state="open"]{
  --tw-enter-opacity: 0;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95[data-state="closed"]{
  --tw-exit-scale: .95;
}
.group\/navigation-menu[data-viewport="false"] .group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95[data-state="open"]{
  --tw-enter-scale: .95;
}
.dark\:bg-input\/30:is(.dark *){
  background-color: hsl(var(--input) / 0.3);
}
.dark\:hover\:text-accent-foreground:hover:is(.dark *){
  color: hsl(var(--accent-foreground));
}
.dark\:data-\[state\=checked\]\:bg-primary-foreground[data-state="checked"]:is(.dark *){
  background-color: hsl(var(--primary-foreground));
}
.dark\:data-\[state\=unchecked\]\:bg-foreground[data-state="unchecked"]:is(.dark *){
  background-color: hsl(var(--foreground));
}
.dark\:data-\[state\=unchecked\]\:bg-input\/80[data-state="unchecked"]:is(.dark *){
  background-color: hsl(var(--input) / 0.8);
}
.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:focus[data-variant="destructive"]:is(.dark *){
  background-color: hsl(var(--destructive) / 0.2);
}
@media (min-width: 640px){
  .sm\:max-w-lg{
    max-width: 32rem;
  }
  .sm\:max-w-sm{
    max-width: 24rem;
  }
  .sm\:flex-row{
    flex-direction: row;
  }
  .sm\:justify-end{
    justify-content: flex-end;
  }
  .sm\:gap-2\.5{
    gap: 0.625rem;
  }
  .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]){
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }
  .sm\:rounded-lg{
    border-radius: var(--radius-lg);
  }
  .sm\:text-left{
    text-align: left;
  }
}
@media (min-width: 768px){
  .md\:absolute{
    position: absolute;
  }
  .md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{
    width: var(--radix-navigation-menu-viewport-width);
  }
  .md\:w-auto{
    width: auto;
  }
  .md\:flex-row{
    flex-direction: row;
  }
  .md\:text-sm{
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}
.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){
  padding-right: 0px;
}
.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.\[\&\>span\]\:line-clamp-1>span{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.\[\&\>span\]\:text-xs>span{
  font-size: 0.75rem;
  line-height: 1rem;
}
.\[\&\>span\]\:opacity-70>span{
  opacity: 0.7;
}
.\[\&\>svg\]\:size-3\.5>svg{
  width: 0.875rem;
  height: 0.875rem;
}
.\[\&\>svg\]\:size-4>svg{
  width: 1rem;
  height: 1rem;
}
.\[\&\>svg\]\:h-3\.5>svg{
  height: 0.875rem;
}
.\[\&\>svg\]\:w-3\.5>svg{
  width: 0.875rem;
}
.\[\&\>svg\]\:translate-y-0\.5>svg{
  --tw-translate-y: 0.125rem;
  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));
}
.\[\&\>svg\]\:text-current>svg{
  color: currentColor;
}
.\[\&\>svg\]\:text-muted-foreground>svg{
  color: hsl(var(--muted-foreground));
}
.\[\&\>tr\]\:last\:border-b-0:last-child>tr{
  border-bottom-width: 0px;
}
.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{
  --tw-rotate: 90deg;
  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));
}
.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{
  --tw-rotate: 180deg;
  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));
}
.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{
  font-size: 0.75rem;
  line-height: 1rem;
}
.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{
  font-weight: var(--font-weight-medium);
}
.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{
  color: hsl(var(--muted-foreground));
}
.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden]) ~[cmdk-group]{
  padding-top: 0px;
}
.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{
  height: 1.25rem;
}
.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{
  width: 1.25rem;
}
.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{
  height: 3rem;
}
.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{
  height: 1.25rem;
}
.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{
  width: 1.25rem;
}
.\[\&_p\]\:leading-relaxed p{
  line-height: var(--line-height-relaxed);
}
.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']){
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*='text-']){
  color: hsl(var(--muted-foreground));
}
.\[\&_svg\]\:pointer-events-none svg{
  pointer-events: none;
}
.\[\&_svg\]\:size-4 svg{
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\]\:shrink-0 svg{
  flex-shrink: 0;
}
.\[\&_tr\:last-child\]\:border-0 tr:last-child{
  border-width: 0px;
}
.\[\&_tr\]\:border-b tr{
  border-bottom-width: var(--border-width);
}
[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent{
  background-color: transparent;
}
[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{
  background-color: transparent;
}
