@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&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.17 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

:root {
    /* #F7F4EF Background, #FFFCF8 Surface, #1E1A17 Text, #E8622A Primary, #F07A45 Primary Hover */
    --background: 30 33% 95%;
    --foreground: 30 13% 10%;

    --card: 30 100% 99%;
    --card-foreground: 30 13% 10%;

    --popover: 30 100% 99%;
    --popover-foreground: 30 13% 10%;

    --primary: 18 80% 54%;
    --primary-hover: 18 84% 61%;
    --primary-foreground: 0 0% 100%;

    --secondary: 340 30% 85%;
    --secondary-foreground: 340 40% 30%;

    --muted: 30 25% 92%;
    --muted-foreground: 30 10% 45%;

    --accent: 18 84% 61%;
    --accent-foreground: 30 13% 10%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 30 20% 90%;
    --input: 30 20% 90%;
    --ring: 18 80% 54%;

    --radius: 0.75rem;

    --sidebar-background: 30 28% 93%;
    --sidebar-foreground: 30 13% 15%;
    --sidebar-primary: 18 80% 54%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 30 35% 90%;
    --sidebar-accent-foreground: 30 13% 10%;
    --sidebar-border: 30 20% 88%;
    --sidebar-ring: 18 80% 54%;

    /* Custom diary tokens */
    --diary-warm: 30 50% 95%;
    --diary-rose: 340 35% 78%;
    --diary-amber: 38 90% 62%;
    --diary-cream: 40 40% 97%;
    --diary-ink: 30 13% 15%;
    --diary-timeline: 18 70% 45%;
    --diary-highlight: 18 84% 61%;
    --diary-day-hover: 30 40% 93%;
    --diary-selected: 18 80% 54%;
  }

.dark {
    --background: 24 20% 8%;
    --foreground: 34 30% 90%;
    --card: 24 18% 12%;
    --card-foreground: 34 30% 90%;
    --popover: 24 18% 12%;
    --popover-foreground: 34 30% 90%;
    --primary: 18 80% 54%;
    --primary-hover: 18 84% 61%;
    --primary-foreground: 0 0% 100%;
    --secondary: 340 25% 25%;
    --secondary-foreground: 340 30% 80%;
    --muted: 24 15% 18%;
    --muted-foreground: 24 15% 60%;
    --accent: 34 40% 35%;
    --accent-foreground: 34 30% 90%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 24 15% 20%;
    --input: 24 15% 20%;
    --ring: 24 80% 55%;
    --sidebar-background: 24 18% 10%;
    --sidebar-foreground: 34 30% 85%;
    --sidebar-primary: 24 80% 55%;
    --sidebar-primary-foreground: 24 20% 8%;
    --sidebar-accent: 24 15% 18%;
    --sidebar-accent-foreground: 34 30% 90%;
    --sidebar-border: 24 15% 18%;
    --sidebar-ring: 24 80% 55%;

    --diary-warm: 24 15% 14%;
    --diary-rose: 340 30% 35%;
    --diary-amber: 38 70% 40%;
    --diary-cream: 24 18% 10%;
    --diary-ink: 34 30% 85%;
    --diary-timeline: 24 50% 55%;
    --diary-highlight: 24 80% 55%;
    --diary-day-hover: 24 15% 18%;
    --diary-selected: 24 80% 55%;
  }

/* Quill picker label */
.ql-snow .ql-picker-label {
  padding-left: 0 !important;
}

/* Dark mode Quill overrides (hardcoded defaults) */
.dark .ql-snow .ql-picker-label {
  color: hsl(var(--muted-foreground));
}
.dark .ql-snow .ql-picker-item {
  color: hsl(var(--foreground));
}
.dark .ql-snow .ql-picker-label::before {
  color: hsl(var(--muted-foreground));
}
.dark .ql-toolbar.ql-snow + .ql-container.ql-snow {
  border-color: hsl(var(--border));
}
.dark .ql-snow a {
  color: hsl(var(--primary));
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
}
.dark ::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

*{
  border-color: hsl(var(--border));
}

body{
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth theme transitions for cards and key surfaces */
.diary-card,
.note-editor-wrap,
.ql-toolbar.ql-snow,
.ql-container.ql-snow,
.month-chip-default,
.month-chip-active,
.on-this-day-card,
.recent-note-item,
.nudge-banner,
.modal-content,
.app-sidebar,
.app-topbar {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
  }

.diary-card{
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease;
}

.diary-input{
  border-radius: 0.75rem;
  border-color: hsl(var(--border) / 0.6);
  background-color: hsl(var(--card));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: hsl(var(--foreground));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  animation-duration: 200ms;
}

.diary-input::-moz-placeholder{
  color: hsl(var(--muted-foreground));
}

.diary-input::placeholder{
  color: hsl(var(--muted-foreground));
}

.diary-input:focus{
  border-color: hsl(var(--primary) / 0.5);
  --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);
  --tw-ring-color: hsl(var(--primary) / 0.3);
}

.timeline-year{
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s, transform 0.2s;
  transition: color 0.3s, font-weight 0.3s, transform 0.3s, opacity 0.35s ease-out;
  white-space: nowrap;
}

.timeline-year:hover{
  color: hsl(var(--foreground));
}

.timeline-year-active{
  transform: scale(1.15);
  font-weight: 600;
  color: hsl(var(--primary));
}

.day-cell-default{
  display: flex;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: transparent;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  animation-duration: 200ms;
}

.day-cell-default:hover{
  border-color: hsl(var(--border) / 0.4);
  background-color: hsl(var(--diary-day-hover));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.day-cell-selected{
  display: flex;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: transparent;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  animation-duration: 200ms;
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  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));
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.day-cell-has-note{
  position: relative;
}

.day-cell-has-note::after{
  position: absolute;
  bottom: 0.25rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  --tw-content: '';
  content: var(--tw-content);
}

/* ─── Mood Dots on Calendar ─────────────── */
.day-mood-dot {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
}

/* When a mood dot is present, hide the default note dot */
.day-cell-has-note:has(.day-mood-dot)::after {
  display: none;
}

/* Mood dot color — same as default note dot */
.mood-happy,
.mood-neutral,
.mood-sad,
.mood-angry,
.mood-excited {
  background: hsl(var(--primary));
}

/* ─── Mood Selector ─────────────────────── */
.mood-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.2rem;
  font-size: 1.35rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.45;
  filter: grayscale(80%);
  padding: 0;
  line-height: 1;
}

.mood-btn:hover {
  opacity: 0.8;
  filter: grayscale(20%);
  transform: scale(1.15);
}

.mood-btn-active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.2);
  background: hsl(var(--primary) / 0.1);
}

.mood-btn-active:hover {
  transform: scale(1.25);
}

/* Hide mood row in read mode */
body.read-mode #moodRow {
  display: none !important;
}

.day-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 10;
  pointer-events: none;
  animation: fadeIn 0.15s ease-out;
}

.day-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: hsl(var(--border));
}

[class*="day-cell"]:hover .day-tooltip {
  display: block;
}

/* ─── On This Day Card ───────────────────── */
/* ─── Tag Cloud ─────────────────────────── */
.tag-cloud-wrap {
  padding: 0.5rem 1rem 0;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  animation: fadeInUp 0.3s ease-out;
}

.tag-cloud-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.5rem;
}

.tag-cloud-scroll {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0.125rem 0;
}

.tag-cloud-scroll::-webkit-scrollbar {
  display: none;
}

/* Hugeicons loader spin (replaces bx-spin) */
@keyframes hgi-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hgi-spin {
  animation: hgi-spin 1s linear infinite;
}

.tag-cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.tag-cloud-chip:hover {
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 0.06);
}

.tag-cloud-chip-active {
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.35);
  color: hsl(var(--primary));
  font-weight: 600;
}

.tag-cloud-chip-active:hover {
  background: hsl(var(--primary) / 0.18);
}

.tag-cloud-count {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.5;
}

/* Dimmed calendar days when filtering by tag */
.tag-cloud-dimmed {
  opacity: 0.25 !important;
  pointer-events: auto;
}

.on-this-day-card {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.3s ease-out;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.on-this-day-card:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--primary) / 0.3);
}

.on-this-day-memory {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.15);
}

.on-this-day-memory:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.on-this-day-year {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.on-this-day-text {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Reading Mode ───────────────────────── */
body.read-mode #appSidebar,
body.read-mode .sidebar-mobile-toggle,
body.read-mode #appTopbar,
body.read-mode #mobileYearWrap,
body.read-mode #onThisDayCard,
body.read-mode #tagCloudWrap,
body.read-mode .right-sidebar {
  display: none !important;
}
body.read-mode .year-scroller {
  display: none !important;
}

body.read-mode #readModeExit {
  display: flex !important;
}

body.read-mode .app-main {
  max-width: 100%;
}

body.read-mode .app-content {
  max-width: 100%;
}

body.read-mode .app-content > div {
  padding: 0;
  max-width: 100%;
}

body.read-mode #editorPanel {
  width: 100%;
}

body.read-mode .editor-view {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

body.read-mode .diary-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.read-mode #tagsRow,
body.read-mode #moodRow,
body.read-mode #deleteArea,
body.read-mode #revisionsBtn,
body.read-mode #focusModeBtn,
body.read-mode .editor-action-divider {
  display: none !important;
}

body.read-mode #readModeEditBtn {
  display: inline-flex !important;
}

body.read-mode #pinBtn {
  display: inline-flex !important;
}

body.read-mode .editor-topbar {
  border-bottom: none;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: auto;
}

body.read-mode .editor-topbar-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}

body.read-mode .editor-scroll {
  padding: 0;
}

body.read-mode .editor-container {
  max-width: 680px;
}

body.read-mode .entry-meta-row {
  display: none;
}

body.read-mode .note-editor-wrap {
  border: none;
  box-shadow: none;
  background: transparent;
}

body.read-mode .note-editor-wrap:focus-within {
  border: none;
  box-shadow: none;
}

/* ─── Focus mode: hide sidebars, maximize editor ────────── */
body.focus-mode .app-sidebar,
body.focus-mode .right-sidebar,
body.focus-mode .year-scroller {
  display: none !important;
}

body.focus-mode .app-content {
  max-width: 100%;
}

body.focus-mode .editor-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.read-mode .note-editor-wrap .ql-toolbar.ql-snow {
  display: none;
}

body.read-mode .note-editor-wrap .ql-editor {
  min-height: auto;
  padding: 1.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 2;
  letter-spacing: 0.01em;
  color: hsl(var(--diary-ink));
  background: transparent;
  cursor: default;
}

body.read-mode .note-editor-wrap .ql-container.ql-snow {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
}

body.read-mode .editor-footer {
  border-top: 1px solid hsl(var(--border) / 0.3);
  padding-top: 1rem;
  margin-top: 1rem;
}

body.read-mode #readBtn {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  opacity: 1 !important;
}

body.read-mode #readIcon {
  color: hsl(var(--primary-foreground));
}

/* ─── Editor View Layout ─────────────────── */
.editor-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Top bar */
.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  min-height: 56px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
  gap: 1rem;
}
.editor-topbar-left {
  flex: 1;
  min-width: 0;
}
.editor-topbar-date {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  white-space: nowrap;
}
#noteTimeLocation.editor-entry-meta {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.9);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.editor-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.15s, background 0.15s;
}
.editor-action-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}
.editor-action-btn-danger {
  color: hsl(0 60% 60%);
}
.editor-action-btn-danger:hover {
  color: hsl(0 70% 50%);
  background: hsl(0 80% 95%);
}
.editor-action-divider {
  width: 1px;
  height: 18px;
  background: hsl(var(--border) / 0.5);
  margin: 0 0.125rem;
}
.editor-delete-area {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Scrollable editor body */
.editor-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.editor-container {
  width: 100%;
  max-width: 90%;
}

/* Editor-page-only overrides: strip card chrome & clean up editor */
.app-content-inner.editor-active {
  padding: 0 !important;
}
.editor-active #editorPanel {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}
.editor-view .note-editor-wrap {
  border: none;
  box-shadow: none;
}
.editor-view .note-editor-wrap:focus-within {
  border: none;
  box-shadow: none;
}
.editor-view .note-editor-wrap .ql-toolbar.ql-snow {
  background: transparent;
  padding: 8px 0px;
}
.editor-view .note-editor-wrap .ql-editor {
  background: transparent;
  padding: 1.5rem 0px;
}

/* Entry meta row: mood + tags */
.entry-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.entry-meta-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.entry-meta-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 3rem;
  flex-shrink: 0;
}

/* Mood pills */
.mood-pill-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.mood-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}
.mood-pill .bx,
.mood-pill .hgi-stroke,
.mood-pill .hgi {
  font-size: 1.18rem;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mood-pill:hover {
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--foreground));
}
.mood-pill.mood-pill-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* Tags in editor */
.entry-tags-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.editor-add-tag-btn {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.15s ease;
}
.editor-add-tag-btn:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* Editor footer */
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
.editor-footer-left,
.editor-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.6);
}
.editor-footer-dot {
  color: hsl(var(--muted-foreground) / 0.4);
}

/* ─── Quill WYSIWYG Editor ───────────────── */
.note-editor-wrap {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-editor-wrap:focus-within {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

.note-editor-wrap .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  padding: 8px 12px;
  background: hsl(var(--card));
  font-family: 'Inter', sans-serif;
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2px;
}
.note-editor-wrap .ql-toolbar.ql-snow .ql-formats {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.note-editor-wrap .ql-snow .ql-toolbar .ql-formats button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
}
.note-editor-wrap .ql-snow .ql-toolbar button,
.note-editor-wrap .ql-snow.ql-toolbar button {
  height: auto;
}
.note-editor-wrap .ql-snow .ql-toolbar button .hgi,
.note-editor-wrap .ql-snow .ql-toolbar button .hgi-stroke {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.note-editor-wrap .ql-snow .ql-toolbar button svg {
  display: block;
  vertical-align: middle;
}
.note-editor-wrap .ql-snow button.ql-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.note-editor-wrap .ql-container.ql-snow {
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  flex: 1 1 0%;
}

.note-editor-wrap .ql-editor {
  min-height: 350px;
  padding: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: hsl(var(--diary-cream));
  overflow-y: auto;
}

.note-editor-wrap .ql-editor p {
  margin-bottom: 1rem;
}

.note-editor-wrap .ql-editor.ql-blank::before {
  left: 0;
  color: hsl(var(--muted-foreground));
  font-style: normal;
}

@media (max-width: 1023px) {
  .editor-scroll {
    padding: 1.25rem 1rem;
  }
  .note-editor-wrap .ql-editor {
    font-size: 0.8rem;
  }
  .entry-meta-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .mood-pill-label {
    display: none;
  }
  .mood-pill {
    padding: 0.35rem 0.5rem;
    min-height: 29px;
  }
}

@media (max-width: 768px) {
  .editor-topbar {
    padding: 0 1rem;
  }
  .mood-pill-group {
    gap: 0.25rem;
  }
  .mood-pill {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }
  .mobile-home-btn .bx,
  .mobile-home-btn .hgi-stroke,
  .mobile-home-btn .hgi {
    padding: 4px 0px !important;
  }
}

.note-editor-wrap .ql-editor h1,
.note-editor-wrap .ql-editor h2 {
  font-family: 'Inter', sans-serif;
}

.ql-snow .ql-editor h1 {
  line-height: 45px;
}

.note-editor-wrap .ql-editor h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.note-editor-wrap .ql-editor h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.note-editor-wrap .ql-editor blockquote {
  border-left-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--muted-foreground));
}

/* Inline images in editor */
.note-editor-wrap .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0.75rem 0;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
  cursor: default;
  transition: box-shadow 0.2s ease;
}

.note-editor-wrap .ql-editor img:hover {
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.12);
}

/* Reading mode images */
body.read-mode .note-editor-wrap .ql-editor img {
  border-radius: 0.5rem;
  box-shadow: none;
  margin: 1.25rem 0;
}

/* Toolbar icon colours */
.note-editor-wrap .ql-snow .ql-stroke {
  stroke: hsl(var(--muted-foreground));
}
.note-editor-wrap .ql-snow .ql-fill {
  fill: hsl(var(--muted-foreground));
}
.note-editor-wrap .ql-snow .ql-picker {
  color: hsl(var(--muted-foreground));
}

/* Toolbar hover / active states — override Quill #06c so primary wins */
.note-editor-wrap .ql-snow button:hover .ql-stroke,
.note-editor-wrap .ql-snow button.ql-active .ql-stroke {
  stroke: hsl(var(--primary));
}
.note-editor-wrap .ql-snow button:hover .ql-fill,
.note-editor-wrap .ql-snow button.ql-active .ql-fill {
  fill: hsl(var(--primary));
}
.note-editor-wrap .ql-snow .ql-toolbar button:hover,
.note-editor-wrap .ql-snow .ql-toolbar button.ql-active,
.note-editor-wrap .ql-snow .ql-toolbar button:focus,
.note-editor-wrap .ql-snow .ql-picker-label:hover,
.note-editor-wrap .ql-snow .ql-picker-label.ql-active,
.note-editor-wrap .ql-snow .ql-picker-item:hover,
.note-editor-wrap .ql-snow .ql-picker-item.ql-selected {
  color: hsl(var(--primary)) !important;
}
.note-editor-wrap .ql-snow .ql-picker-options {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ─── Search Overlay ─────────────────────── */
/* ─── Logout Confirmation Modal ──────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease-out;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 1rem;
  animation: modalSlideIn 0.2s ease-out;
}

.modal-content {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.modal-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.modal-body p {
  margin: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.modal-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.modal-btn-secondary {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.modal-btn-secondary:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.modal-btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.modal-btn-primary:hover {
  background: hsl(var(--primary-hover));
  border-color: hsl(var(--primary-hover));
}

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

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.search-overlay-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  animation: fadeInUp 0.2s ease-out;
}

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

.search-result-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.search-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.search-result-count {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  font-weight: 500;
}

.search-result-date {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-top: 0.15rem;
}

.search-result-snippet {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-top: 0.25rem;
}

.search-highlight {
  background-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}

/* ─── Streak Badge ───────────────────────── */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  background: linear-gradient(135deg, hsl(25 95% 53% / 0.12), hsl(15 90% 55% / 0.08));
  border: 1px solid hsl(25 90% 55% / 0.18);
  color: hsl(25 90% 45%);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  margin-left: 0.5rem;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.streak-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 8px hsl(25 90% 55% / 0.15);
}
.streak-flame {
  font-size: 1.5rem;
  color: #422f1e;
  animation: flameDance 1.5s ease-in-out infinite;
}
.streak-number {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.streak-label {
  font-weight: 500;
  opacity: 0.8;
}
/* Milestone glow at 7, 30, 100+ days */
.streak-badge.streak-milestone {
  background: linear-gradient(135deg, hsl(25 95% 53% / 0.18), hsl(40 95% 55% / 0.12));
  border-color: hsl(25 90% 55% / 0.3);
  box-shadow: 0 0 12px hsl(25 90% 55% / 0.12);
}
@keyframes flameDance {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-1px) scale(1.05); }
  50% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-0.5px) scale(1.02); }
}
/* Dark mode adjustments */
:root.dark .streak-badge {
  background: linear-gradient(135deg, hsl(25 90% 55% / 0.15), hsl(15 85% 50% / 0.1));
  border-color: hsl(25 85% 55% / 0.2);
  color: hsl(25 90% 65%);
}
:root.dark .streak-flame {
  color: hsl(30 95% 60%);
}

/* ─── Word Cloud ─────────────────────────── */
.wc-overlay-content {
  max-width: 640px;
  max-height: 80vh;
}
.wc-container {
  padding: 1.5rem;
  min-height: 320px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  overflow-y: auto;
}
.wc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 0;
}
.wc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 0;
  color: hsl(var(--muted-foreground));
}
.wc-word {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: default;
  opacity: 0;
  transform: scale(0.5);
  animation: wcFadeIn 0.4s ease forwards;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.3;
}
.wc-word:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 3px 12px hsl(var(--foreground) / 0.1);
  z-index: 2;
}
/* Size scale 1–5 mapped to classes */
.wc-word.wc-s1 {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.wc-word.wc-s2 {
  font-size: 0.85rem;
  background: hsl(220 70% 55% / 0.1);
  color: hsl(220 65% 50%);
}
.wc-word.wc-s3 {
  font-size: 1.05rem;
  background: hsl(260 60% 55% / 0.12);
  color: hsl(260 55% 48%);
}
.wc-word.wc-s4 {
  font-size: 1.35rem;
  background: hsl(330 65% 50% / 0.12);
  color: hsl(330 60% 45%);
  font-weight: 700;
}
.wc-word.wc-s5 {
  font-size: 1.7rem;
  background: hsl(25 85% 50% / 0.14);
  color: hsl(25 80% 42%);
  font-weight: 800;
  padding: 0.25rem 0.65rem;
}
@keyframes wcFadeIn {
  to { opacity: 1; transform: scale(1); }
}
/* Dark mode */
:root.dark .wc-word.wc-s1 {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
:root.dark .wc-word.wc-s2 {
  background: hsl(220 60% 60% / 0.15);
  color: hsl(220 70% 72%);
}
:root.dark .wc-word.wc-s3 {
  background: hsl(260 55% 60% / 0.15);
  color: hsl(260 65% 75%);
}
:root.dark .wc-word.wc-s4 {
  background: hsl(330 55% 55% / 0.15);
  color: hsl(330 65% 72%);
}
:root.dark .wc-word.wc-s5 {
  background: hsl(25 75% 55% / 0.18);
  color: hsl(25 85% 68%);
}
/* Tooltip on hover */
.wc-word[data-count]::after {
  content: attr(data-count) ' times';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px hsl(var(--foreground) / 0.08);
  transition: opacity 0.15s;
}
.wc-word:hover::after {
  opacity: 1;
}
.wc-word {
  position: relative;
}

/* ═══════════════════════════════════════════
   APP LAYOUT — Sidebar + Main
   ═══════════════════════════════════════════ */

/* ─── Left Sidebar ────────────────────────── */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: hsl(var(--sidebar-background));
  border-right: 1px solid hsl(var(--sidebar-border));
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  z-index: 30;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Logo (link to homepage) */
a.sidebar-logo {
  text-decoration: none;
  cursor: pointer;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  color: hsl(var(--sidebar-foreground));
}
.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  background: hsl(var(--primary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sidebar-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}
.sidebar-nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
}
.sidebar-nav-label:first-child {
  margin-top: 0;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  color: hsl(var(--sidebar-foreground));
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  opacity: 0.8;
}
.sidebar-nav-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-nav-item:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
  opacity: 1;
}
.sidebar-nav-item.active {
  background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground));
  opacity: 1;
  font-weight: 600;
}

/* ─── Right Sidebar ──────────────────────── */
.right-sidebar {
  width: 360px;
  min-width: 360px;
  border-left: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  overflow-y: auto;
  flex-shrink: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ─── Year Scroller ──────────────────────── */
.year-scroller {
  width: 5rem;
  min-width: 5rem;
  border-left: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sidebar-widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

/* Search widget */
.sw-search { padding: 0; background: transparent; border: none; box-shadow: none; }
.sw-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color 0.2s;
  cursor: text;
}
.sw-search-wrap:focus-within {
  border-color: hsl(var(--primary) / 0.5);
}
.sw-search-wrap i {
  color: hsl(var(--muted-foreground) / 0.5);
  font-size: 1rem;
  flex-shrink: 0;
}
.sw-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.8rem;
  color: hsl(var(--foreground));
  font-family: inherit;
}
.sw-search-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

/* Calendar widget */
.sw-calendar { padding: 0.85rem; }

/* ─── Calendar Spotlight ─────────────────────────────────────────
   Full-page overlay dims main content.  .right-sidebar sits above it;
   a ::before on the sidebar dims the rest of the sidebar (same as other
   sections); only .sw-calendar sits above that dim and stays highlighted. */
@keyframes cal-spotlight-pop {
  0%   { transform: scale(0.97); box-shadow: 0 0 0 0 hsl(var(--primary) / 0.3), 0 4px 16px rgba(0, 0, 0, 0.15); }
  55%  { transform: scale(1.02); box-shadow: 0 0 0 4px hsl(var(--primary) / 0.5), 0 12px 40px rgba(0, 0, 0, 0.3); }
  100% { transform: scale(1);    box-shadow: 0 0 0 2px hsl(var(--primary)), 0 8px 32px rgba(0, 0, 0, 0.25); }
}
@keyframes cal-spotlight-glow {
  0%, 100% { box-shadow: 0 0 0 2px hsl(var(--primary)), 0 8px 32px rgba(0, 0, 0, 0.25); }
  50%      { box-shadow: 0 0 0 3px hsl(var(--primary)), 0 0 24px hsl(var(--primary) / 0.25), 0 8px 32px rgba(0, 0, 0, 0.25); }
}
@keyframes cal-spotlight-sidebar-dim {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#calSpotlightOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  transition: opacity 0.35s ease-out;
}
body.cal-spotlight .right-sidebar {
  position: relative;
  z-index: 9999;
  border: 0px;
}
/* Dim the sidebar same as main content (same 0.35s timing); calendar (z-index 2) stays on top */
body.cal-spotlight .right-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  animation: cal-spotlight-sidebar-dim 0.35s ease-out forwards;
}
body.cal-spotlight .sw-calendar {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px hsl(var(--primary)), 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: 0.75rem;
  animation: cal-spotlight-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
body.cal-spotlight .sw-calendar.cal-spotlight-idle {
  animation: cal-spotlight-glow 2s ease-in-out 0.6s infinite;
}

/* Mobile: date bar + calendar sit above overlay so they stay highlighted */
@media (max-width: 1023px) {
  body.cal-spotlight #mobileYearWrap {
    position: relative;
    z-index: 9999;
  }
  body.cal-spotlight .sw-calendar {
    box-shadow: 0 0 0 2px hsl(var(--primary)), 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 0.75rem;
  }
}

.sw-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.sw-cal-nav {
  background: none; border: none; cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.15rem;
  border-radius: 0.25rem;
  transition: color 0.15s, background 0.15s;
  font-size: 1.1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.sw-cal-nav:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}
.sw-cal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sw-cal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.sw-cal-title-clickable {
  cursor: pointer;
}
.sw-cal-title-clickable:hover {
  color: hsl(var(--primary));
}
.sw-cal-year-toggle {
  background: none; border: none; cursor: pointer;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
  transition: color 0.15s, transform 0.2s;
}
.sw-cal-year-toggle:hover { color: hsl(var(--foreground)); }
.sw-cal-year-toggle.open { transform: rotate(180deg); }
.sw-cal-daynames {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-bottom: 0.25rem;
}
.sw-cal-daynames span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  padding: 0.15rem 0;
}
.sw-calendar .month-stats {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.sw-calendar #calendarGrid {
  gap: 0.125rem;
}

/* Year picker dropdown */
.sw-year-picker {
  max-height: 180px;
  overflow-y: auto;
  border-top: 1px solid hsl(var(--border) / 0.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  margin-bottom: 0.5rem;
  padding: 0.35rem 0;
}
.sw-year-picker-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
}
.sw-year-btn {
  background: none; border: none; cursor: pointer;
  padding: 0.3rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.3rem;
  color: hsl(var(--muted-foreground));
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.sw-year-btn:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}
.sw-year-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

/* Weekly Mood widget */
.sw-mood { padding: 1rem; }
.sw-mood-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.sw-mood-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.sw-mood-icon {
  color: hsl(var(--muted-foreground) / 0.4);
  font-size: 1rem;
}
.sw-mood-summary {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.sw-mood-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 80px;
}
.sw-mood-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  height: 100%;
  justify-content: flex-end;
}
.sw-mood-bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 0.25rem 0.25rem 0 0;
  transition: height 0.3s ease;
  min-height: 4px;
}
.sw-mood-bar-fill.mood-happy    { background: hsl(38 90% 62%); }
.sw-mood-bar-fill.mood-excited  { background: hsl(38 90% 62%); }
.sw-mood-bar-fill.mood-neutral  { background: hsl(38 70% 75%); }
.sw-mood-bar-fill.mood-sad      { background: hsl(38 40% 82%); }
.sw-mood-bar-fill.mood-angry    { background: hsl(0 60% 70%); }
.sw-mood-bar-fill.mood-none     { background: hsl(var(--muted)); }
.sw-mood-bar-label {
  font-size: 0.6rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Quote widget */
.sw-quote {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), transparent);
  border: 1px solid hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}
.sw-quote-inner {
  display: flex;
  gap: 0.75rem;
}
.sw-quote-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: hsl(var(--primary) / 0.6);
}
.sw-quote-icon svg {
  width: 100%;
  height: 100%;
}
.sw-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}
.sw-quote-author {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Streak card */
.sidebar-streak {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.6rem;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.sidebar-streak-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(25 95% 53% / 0.18), hsl(15 90% 55% / 0.12));
  border-radius: 50%;
  color: hsl(25 90% 45%);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sidebar-streak-icon .streak-flame {
  color: inherit;
}
:root.dark .sidebar-streak-icon {
  background: linear-gradient(135deg, hsl(25 90% 55% / 0.2), hsl(15 85% 50% / 0.14));
  color: hsl(30 95% 60%);
}
.sidebar-streak-info {
  display: flex;
  flex-direction: column;
}
.sidebar-streak-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
}
.sidebar-streak-sub {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.1rem;
}
.sidebar-streak.streak-milestone {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 12px hsl(var(--primary) / 0.12);
}

/* User profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.85rem;
  margin-top: auto;
  border-top: 1px solid hsl(var(--sidebar-border));
  flex-shrink: 0;
  cursor: pointer;
}
/* When streak is visible, no extra margin above profile */
.sidebar-streak:not([style*="display: none"]) + .sidebar-profile {
  margin-top: auto;
}
.sidebar-profile .avatar-btn {
  flex-shrink: 0;
  cursor: pointer;
}
.sidebar-profile-info {
  flex: 1;
  min-width: 0;
}
.sidebar-profile-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--sidebar-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile-email {
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-theme-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-theme-btn:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}

/* Mobile sidebar toggle */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 0.8rem;
  left: 0.75rem;
  z-index: 40;
  width: 40px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 1.35rem;
  box-shadow: none;
  transition: left 0.2s ease, right 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sidebar-mobile-toggle.is-open {
  left: auto;
  right: 0.75rem;
  border-radius: 50%;
  width: 36px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.35);
  z-index: 29;
}

/* ─── Diary root: 100dvh, no bottom spacing from year selector ─── */
.diary-root {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.diary-root .app-sidebar {
  height: 100%;
  max-height: 100%;
}

/* ─── Main Content Area ───────────────────── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: hsl(var(--background));
  overflow-x: hidden;
}

/* ─── Top Bar ─────────────────────────────── */
.app-topbar {
  height: 65px;
  min-height: 65px;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: hsl(var(--background));
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.topbar-month-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.topbar-month-chips::-webkit-scrollbar {
  display: none;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.topbar-theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  font-size: 1.15rem;
  padding: 0.35rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-theme-btn i {
  font-size: 1.5rem;
}
.topbar-theme-btn:hover {
  color: hsl(var(--foreground));
}
.topbar-brand-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logo light/dark swap */
.logo-wrap {
  position: relative;
  display: inline-block;
}
a.logo-wrap {
  text-decoration: none;
  color: inherit;
}
.logo-wrap img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo-wrap-sidebar { height: 40px; width: 120px; }
.logo-wrap-topbar { height: 40px; width: 120px; }
.logo-wrap-profile { height: 40px; width: 120px; }
.logo-wrap-login { height: 56px; width: 140px; }
.logo-wrap-landing { height: 40px; width: 120px; }
.logo-wrap .logo-dark { display: none; }
.dark .logo-wrap .logo-light { display: none; }
.dark .logo-wrap .logo-dark { display: block; }

.profile-header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.login-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}
/* ─── App Main Body (content + year scroller) */
.app-main-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
  overflow: hidden;
}

/* ─── App Content ─────────────────────────── */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: none !important; /* Firefox: hide scrollbar, keep scroll */
  -ms-overflow-style: none !important;
}
.app-content::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar,
.dash-home::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera: hide scrollbar, keep scroll */
  width: 0;
  height: 0;
  background: transparent;
}
.right-sidebar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.dash-home {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* ─── Responsive Sidebar ──────────────────── */
@media (max-width: 1023px) {
  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: left 0.25s ease;
    box-shadow: none;
  }
  .app-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgb(0 0 0 / 0.12);
  }
  .sidebar-mobile-toggle {
    display: flex;
    left: auto;
    right: 0.75rem;
  }
  .sidebar-overlay.active {
    display: block;
  }
  .app-topbar {
    padding-left: 1rem;
    padding-right: 3.5rem;
    justify-content: flex-start;
  }
  .topbar-month-chips {
    display: none !important;
  }
  .topbar-brand {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
  }
  .topbar-brand i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
  }
  .topbar-brand span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: hsl(var(--foreground));
  }
  .app-topbar .mobile-home-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .mobile-home-btn {
    min-width: auto;
    padding: 0.5rem 0.5rem;
    border-radius: 999px;
  }
  .mobile-home-btn.mood-pill-active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
  }
  .mobile-home-btn .bx,
  .mobile-home-btn .hgi-stroke,
  .mobile-home-btn .hgi {
    font-size: 1.22rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 0px;
  }
  .mobile-home-btn.calendar-icon-highlight {
    animation: calendar-icon-pulse 1.2s ease-in-out 2;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.5);
  }
  @keyframes calendar-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 3px hsl(var(--primary) / 0.5); }
    50% { box-shadow: 0 0 0 8px hsl(var(--primary) / 0.2); }
  }
  .dark .mobile-home-btn.mood-pill-active {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
  }
  .mobile-date-bar {
    display: block !important;
    background: linear-gradient(135deg, hsl(30deg 40.47% 75.12% / 45%) 0%, hsl(var(--muted) / 0.25) 50%, hsl(var(--card) / 0.3) 100%);
    border-color: hsl(var(--border) / 0.6);
  }
  .editor-container {
    max-width: 100%;
  }
  .editor-topbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: auto;
    padding: 1rem;
    gap: 0.75rem;
  }
  .editor-topbar-left {
    width: 100%;
  }
  .editor-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .editor-action-btn {
    justify-content: center;
  }
  body.read-mode .editor-topbar-date {
    font-size: 1.1rem;
  }
  #focusModeBtn {
    display: none !important;
  }
  .dash-banner-title {
    max-width: 55%;
  }
  .dash-banner-sub {
    max-width: 60%;
  }
  .right-sidebar {
    display: none;
  }
  .year-scroller {
    display: none;
  }
  /* Mobile date bar: show trigger, hide year select */
  .mobile-date-bar .mobile-year-select {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
  }
  .mobile-date-trigger:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
  }
  .mobile-date-trigger-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    transition: transform 0.2s ease;
  }
  .mobile-date-trigger-open .mobile-date-trigger-icon {
    transform: rotate(180deg);
  }
  #mobileDateTriggerLabel {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
  }
}

/* ─── Mid-range: 1024px–1172px (sidebar hidden, mobile topbar, right sidebar 298px) ─── */
@media (min-width: 1024px) and (max-width: 1172px) {
  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: left 0.25s ease;
    box-shadow: none;
  }
  .app-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgb(0 0 0 / 0.12);
  }
  .sidebar-mobile-toggle {
    display: flex;
    left: auto;
    right: 0.75rem;
  }
  .sidebar-overlay.active {
    display: block;
  }
  .app-topbar {
    padding-left: 1rem;
    padding-right: 3.5rem;
    justify-content: flex-start;
  }
  .topbar-month-chips {
    display: none !important;
  }
  .topbar-brand {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
  }
  .topbar-brand i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
  }
  .topbar-brand span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: hsl(var(--foreground));
  }
  .app-topbar .mobile-home-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .mobile-home-btn {
    min-width: auto;
    padding: 0.5rem 0.5rem;
    border-radius: 999px;
  }
  .mobile-home-btn.mood-pill-active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
  }
  .mobile-home-btn .bx,
  .mobile-home-btn .hgi-stroke,
  .mobile-home-btn .hgi {
    font-size: 1.22rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 0px;
  }
  .mobile-home-btn.calendar-icon-highlight {
    animation: calendar-icon-pulse 1.2s ease-in-out 2;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.5);
  }
  @keyframes calendar-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 3px hsl(var(--primary) / 0.5); }
    50% { box-shadow: 0 0 0 8px hsl(var(--primary) / 0.2); }
  }
  .dark .mobile-home-btn.mood-pill-active {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
  }
  .mobile-date-bar {
    display: none !important;
  }
  .right-sidebar {
    width: 298px;
    min-width: 298px;
  }
  .mobile-date-bar .mobile-year-select {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
  }
  .mobile-date-trigger:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
  }
  .mobile-date-trigger-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    transition: transform 0.2s ease;
  }
  .mobile-date-trigger-open .mobile-date-trigger-icon {
    transform: rotate(180deg);
  }
}

/* Mobile calendar modal (replaces dropdown at 1023px and below) */
@media (max-width: 1023px) {
  .mobile-calendar-modal-dialog {
    max-width: min(360px, calc(100vw - 2rem));
    width: 100%;
  }
  #mobileCalendarModal .modal-content {
    padding: 0;
    overflow: hidden;
  }
  #mobileCalendarModal .mobile-calendar-dropdown {
    padding: 0.85rem 1rem 1.25rem;
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }
}

/* ─── Legacy header btn (kept for compat) ─── */
.hdr-icon-btn {
  display: none;
}
.hdr-icon-label {
  display: none;
}

/* ─── Dashboard Home ─────────────────────── */
.dash-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 2rem;
}

/* Greeting */
.dash-greeting { margin-bottom: 0.25rem; }
.dash-greeting-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
}
.dash-greeting-date {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
}

/* Stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.dash-stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}
.dash-stat-label {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.dash-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.dash-stat-mood {
  color: hsl(var(--foreground));
}
@media (max-width: 600px) {
  .dash-stats-row { grid-template-columns: 1fr 1fr; }
}

/* Motivational banner */
.dash-banner {
  background: linear-gradient(135deg, hsl(0deg 0% 0% / 85%), hsl(14 75% 60% / 0.75));
  border-radius: 0.85rem;
  padding: 1.5rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dash-banner-img {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 138px;
  object-fit: cover;
  border-radius: 0.6rem;
  transform: rotate(12deg);
  pointer-events: none;
}
.dash-banner-text { position: relative; z-index: 1; }
.dash-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.dash-banner-sub {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.dash-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: hsl(0 0% 100% / 0.2);
  color: #fff;
  border: 1px solid hsl(0 0% 100% / 0.3);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  z-index: 1;
}
.dash-banner-btn:hover {
  background: hsl(0 0% 100% / 0.3);
}
.dash-banner-btn i { font-size: 1rem; }

/* Streak badge (dashboard) */
.empty-state-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(25 90% 45%);
  background: hsl(25 95% 53% / 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}
.empty-state-streak i {
  font-size: 0.9rem;
  color: hsl(25 95% 53%);
}
:root.dark .empty-state-streak {
  color: hsl(25 90% 65%);
  background: hsl(25 90% 55% / 0.15);
}
:root.dark .empty-state-streak i {
  color: hsl(30 95% 60%);
}

/* Recent Memories */
.dash-memories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.dash-memories-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.dash-memories-viewall {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: opacity 0.15s;
}
.dash-memories-viewall:hover {
  opacity: 0.75;
}
.dash-memories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (max-width: 700px) {
  .dash-memories-grid { grid-template-columns: 1fr; }
}

/* Memory card */
.dash-memory-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
  text-align: left;
}
.dash-memory-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 3px 12px rgb(0 0 0 / 0.06);
}
.dash-memory-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dash-memory-date {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000;
}
.dark .dash-memory-date {
  color: #fff;
}
.dash-memory-created {
  font-size: 0.6rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}
.dash-memory-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-memory-preview {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dash-memory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.25rem;
}
.dash-memory-mood {
  font-size: 0.9rem;
}
.dash-memory-mood .mood-icon {
  font-size: 1.4em;
  vertical-align: middle;
  line-height: 1;
  background: #ffeae8;
  border-radius: 50%;
}
.dark .dash-memory-mood .mood-icon {
  background: transparent;
}
.tag-entry-mood .mood-icon,
.review-mood-emoji .mood-icon {
  font-size: 1.4em;
  vertical-align: middle;
  line-height: 1;
}
#dashStatMood .mood-icon {
  font-size: 1.1em;
  vertical-align: middle;
}
#weeklyMoodSummary .mood-icon {
  font-size: 1em;
  vertical-align: middle;
}
.dash-memory-wc {
  font-size: 0.68rem;
  color: hsl(var(--muted-foreground) / 0.6);
}

/* Write another entry card */
.dash-memory-write {
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-style: dashed;
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.04);
  color: hsl(var(--foreground));
}
.dash-memory-write:hover {
  border-color: hsl(var(--primary) / 0.6);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
}
.dash-memory-write-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted) / 0.4);
  font-size: 1.25rem;
  transition: background 0.15s;
}
.dash-memory-write:hover .dash-memory-write-icon {
  background: hsl(var(--primary) / 0.12);
}
.dash-memory-write-label {
  font-size: 0.82rem;
  font-weight: 500;
}

/* ─── Month Stats Bar ────────────────────── */
.month-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.25rem 0.5rem;
}

.month-stats svg {
  display: inline-block;
}

.month-stats .stat-dot {
  color: hsl(var(--border));
}

/* ─── Recent Notes List ──────────────────── */
.recent-note-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
}

.recent-note-item:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.recent-note-day {
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.recent-note-day-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.recent-note-day-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.recent-note-body {
  flex: 1;
  min-width: 0;
  line-height: 26px;
}

.recent-note-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-note-preview {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.125rem;
  line-height: 1.5;
}

.recent-note-pin {
  display: inline-block;
  color: hsl(var(--primary));
  margin-right: 0.25rem;
  vertical-align: middle;
}

/* ─── Tag Entries View ───────────────────── */
.tag-entries-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.tag-entries-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  flex-shrink: 0;
}
.tag-entries-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.tag-entries-back:hover {
  background: hsl(var(--muted));
}
.tag-entries-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.tag-entries-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-entries-count {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.7);
  white-space: nowrap;
}
.tag-entries-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  padding: 0.5rem 0;
}
.tag-entries-month-group {
  margin-bottom: 0.25rem;
}
.tag-entries-month-label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.8);
  letter-spacing: 0.02em;
  background: hsl(var(--background));
}
.tag-entries-month-label::after {
  content: '';
  flex: 1;
  height: 1px;
}
.tag-entry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1.25rem;
  transition: background 0.15s;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
}
.tag-entry-item:hover {
  background-color: hsl(var(--muted) / 0.5);
}
.tag-entry-day {
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tag-entry-day-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}
.tag-entry-day-num {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}
.tag-entry-body {
  flex: 1;
  min-width: 0;
}
.tag-entry-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-entry-preview {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground) / 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.1rem;
  line-height: 1.4;
}
.tag-entry-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.tag-entry-wc {
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground) / 0.5);
  white-space: nowrap;
}
.tag-entry-time,
.tag-entry-location {
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground) / 0.5);
  white-space: nowrap;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-entry-mood {
  font-size: 0.85rem;
  line-height: 1;
}
.tag-entries-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground) / 0.5);
  font-size: 0.8rem;
  text-align: center;
  gap: 0.5rem;
}
.tag-entries-empty i {
  font-size: 2rem;
  opacity: 0.4;
}
.tag-entries-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground) / 0.5);
  font-size: 0.8rem;
  gap: 0.5rem;
}

/* ─── Tag List (sidebar Tags view) ────────── */
.tag-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1.25rem;
  transition: background 0.15s;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}
.tag-list-item:last-child {
  border-bottom: none;
}
.tag-list-item:hover {
  background-color: hsl(var(--muted) / 0.5);
}
.tag-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 1rem;
  flex-shrink: 0;
}
.tag-list-body {
  flex: 1;
  min-width: 0;
}
.tag-list-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  line-height: 1.3;
}
.tag-list-count {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.1rem;
}
.tag-list-arrow {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground) / 0.4);
  font-size: 1rem;
}

/* ─── Tag Pills ──────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.15s;
}

.tag-pill-primary {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.tag-pill-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.tag-pill-accent {
  background: hsl(var(--accent) / 0.3);
  color: hsl(var(--accent-foreground));
}

.tag-pill button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 1;
}

.tag-pill button:hover {
  opacity: 1;
}

#tagsList {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-add-input {
  width: 70px;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: transparent;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  outline: none;
  font-family: 'Inter', sans-serif;
}

.tag-add-input:focus {
  border-color: hsl(var(--primary) / 0.5);
}

/* Tag suggestions dropdown (body-mounted) */
.tag-suggestions-dropdown {
  position: fixed;
  z-index: 40;
  min-width: 120px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 0.25rem 0;
  display: none;
}

.tag-suggestions-dropdown.is-open {
  display: block;
}

.tag-suggestion-item {
  display: block;
  width: 100%;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-suggestion-item:hover {
  background: hsl(var(--muted));
}

/* ─── Tag Edit Inputs ─────────────────────── */
.tag-edit-input {
  width: 80px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1.5px solid hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.08);
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  outline: none;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tag-edit-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

.tag-cloud-edit-input {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1.5px solid hsl(var(--primary) / 0.5);
  background: hsl(var(--card));
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  outline: none;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.4;
  width: 120px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tag-cloud-edit-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

/* ─── Avatar & Dropdown ──────────────────── */
.avatar-dropdown-wrap {
  position: relative;
}

.avatar-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #3d3129;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Noto Sans', sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.15s;
  line-height: 1;
  flex-shrink: 0;
}

.avatar-btn:hover {
  box-shadow: 0 0 0 3px rgba(61, 49, 41, 0.25);
  transform: scale(1.05);
}

.avatar-btn-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.8rem;
}

/* ─── Scroll-to-top button ──────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.scroll-top-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ─── Export Dropdown ───────────────────────── */
.export-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 160px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 0.25rem;
  animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font-size: 0.8rem;
  color: hsl(var(--foreground));
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.export-dropdown-item:hover {
  background: hsl(var(--muted));
}

/* ─── Revisions / Version History ───────────── */
.revisions-split {
  display: flex;
  height: calc(80vh - 56px);
  min-height: 300px;
}
.revisions-list-pane {
  width: 40%;
  min-width: 220px;
  border-right: 1px solid hsl(var(--border) / 0.4);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.revisions-preview-pane {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}
.revisions-list {
  display: flex;
  flex-direction: column;
}
.revision-date-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground) / 0.6);
  padding: 0.625rem 1rem 0.25rem;
  position: sticky;
  top: 0;
  background: hsl(var(--card));
  z-index: 1;
}
.revision-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 1rem;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 1px solid hsl(var(--border) / 0.15);
  transition: background-color 0.15s;
  font-family: inherit;
}
.revision-item:hover {
  background: hsl(var(--muted) / 0.5);
}
.revision-item-active {
  background: hsl(var(--primary) / 0.08);
  border-left: 3px solid hsl(var(--primary));
}
.revision-item-active:hover {
  background: hsl(var(--primary) / 0.12);
}
.revision-item-time {
  font-size: 0.7rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 3px;
}
.revision-item-snippet {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.revision-item-meta {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground) / 0.6);
  margin-top: 3px;
}
.revisions-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
}
.revisions-preview-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.revisions-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  flex-shrink: 0;
}
.revisions-preview-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
  scrollbar-width: thin;
}
.revisions-preview-actions {
  padding: 0.625rem 1rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.revisions-restore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.revisions-restore-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.revisions-restore-btn:active {
  transform: translateY(0);
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .revisions-split {
    flex-direction: column;
    height: auto;
    max-height: calc(80vh - 56px);
  }
  .revisions-list-pane {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid hsl(var(--border) / 0.4);
    max-height: 35vh;
  }
  .revisions-preview-pane {
    max-height: 45vh;
  }
}

/* ─── Text color for red-400 utility ─────────── */
.text-red-400 {
  color: #f87171 !important;
}

.avatar-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 219px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.875rem;
  box-shadow: 0 12px 40px -8px rgb(0 0 0 / 0.12), 0 4px 12px rgb(0 0 0 / 0.06);
  z-index: 60;
  padding: 0.375rem;
  animation: avatarDropIn 0.15s ease-out;
}

@keyframes avatarDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem;
}

.avatar-dropdown-divider {
  height: 1px;
  background: hsl(var(--border) / 0.4);
  margin: 0.25rem 0;
}

.avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
}

.avatar-dropdown-item:hover {
  background: hsl(var(--muted));
}

.avatar-dropdown-item i {
  font-size: 1.05rem;
  color: hsl(var(--muted-foreground));
  width: 1.25rem;
  text-align: center;
}

.avatar-dropdown-danger {
  color: hsl(0 72% 51%);
}

.avatar-dropdown-danger i {
  color: hsl(0 72% 51%);
}

.avatar-dropdown-danger:hover {
  background: hsl(0 72% 51% / 0.08);
}

/* ─── Profile Page ──────────────────────── */
.profile-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.profile-section-danger {
  border-color: hsl(0 72% 51% / 0.2);
}

.profile-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.profile-section-title i {
  color: hsl(var(--primary));
  font-size: 1.15rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.profile-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.profile-input {
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input:focus {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.profile-btn-primary {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  border-radius: 0.625rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.profile-btn-primary:hover {
  background: hsl(var(--primary-hover));
}

.profile-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-btn-secondary {
  padding: 0.5rem 1.25rem;
  border-radius: 0.625rem;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border) / 0.5);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.profile-btn-secondary:hover {
  background: hsl(var(--border) / 0.3);
}

.profile-btn-danger {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  border-radius: 0.625rem;
  background: hsl(0 72% 51%);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.profile-btn-danger:hover {
  opacity: 0.9;
}

.profile-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.profile-theme-btn:hover {
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--foreground));
}

.profile-theme-btn-active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

/* ─── Emoji Picker ───────────────────────── */
.emoji-picker {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  z-index: 30;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  animation: fadeIn 0.15s ease-out;
}

.emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.1s;
  line-height: 1;
}

.emoji-btn:hover {
  background: hsl(var(--muted));
}

/* ─── Pin Button States ──────────────────── */
.pin-btn-active {
  color: hsl(var(--primary)) !important;
}

.pin-btn-active svg {
  fill: hsl(var(--primary));
}

/* ─── Divide utility for recent notes ────── */
.divide-y > :not(:first-child) {
  border-top: 1px solid hsl(var(--border) / 0.4);
}

.month-chip-default{
  cursor: pointer;
  border-radius: 9999px;
  border-width: 1px;
  border-color: hsl(var(--border) / 0.6);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.25rem;
  white-space: nowrap;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  animation-duration: 200ms;
  color: hsl(var(--muted-foreground));
}

.month-chip-default:hover{
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.month-chip-active{
  cursor: pointer;
  border-radius: 9999px;
  border-width: 1px;
  border-color: transparent;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.25rem;
  white-space: nowrap;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  animation-duration: 200ms;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.welcome-gradient {
    background: linear-gradient(160deg, hsl(var(--diary-warm)) 0%, hsl(var(--background)) 40%, hsl(36 35% 96%) 70%, hsl(var(--diary-warm)) 100%);
    min-height: 100vh;
  }

.dark .welcome-gradient {
    background: linear-gradient(160deg, hsl(var(--diary-warm)) 0%, hsl(var(--background)) 40%, hsl(var(--background)) 70%, hsl(var(--diary-warm)) 100%);
  }

/* ─── Welcome Page Card & Inputs ─────────── */
/* Auth message (login: verify success / warning; reset password success) */
#authMessage.auth-message,
.auth-message {
  text-align: center;
  margin-bottom: 10px;
}
#authMessage.auth-message-success,
.auth-message.auth-message-success {
  background-color: hsl(142deg 28.8% 96.89%);
  color: hsl(142deg 29.18% 36.08%);
  border: 1px solid hsl(142deg 34.48% 89.41%);
}
.dark #authMessage.auth-message-success,
.dark .auth-message.auth-message-success {
  background-color: hsl(142 40% 18%);
  color: hsl(142 60% 75%);
  border-color: hsl(142 40% 35%);
}
#authMessage.auth-message-warning,
.auth-message.auth-message-warning {
  background-color: hsl(38deg 28.8% 96.89%);
  color: hsl(38deg 29.18% 36.08%);
  border: 1px solid hsl(38deg 34.48% 89.41%);
}
.dark #authMessage.auth-message-warning,
.dark .auth-message.auth-message-warning {
  background-color: hsl(38 40% 18%);
  color: hsl(38 85% 75%);
  border-color: hsl(38 50% 35%);
}

.welcome-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.02),
    0 8px 30px rgb(0 0 0 / 0.04);
}

.welcome-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid hsl(30 15% 78%);
  border-radius: 0.875rem;
  background-color: hsl(36 20% 97%);
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.03);
}

.welcome-input::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

.welcome-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

.welcome-input:focus {
  border-color: hsl(var(--primary) / 0.5);
  background-color: hsl(var(--card));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.08);
}

.welcome-input-has-icon {
  padding-left: 2.75rem;
}

.welcome-input-has-right {
  padding-right: 2.75rem;
}

/* Wrapper: single bordered box so icon and input sit inside it (avoids icons floating outside with LastPass etc.) */
.welcome-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid hsl(30 15% 78%);
  border-radius: 0.875rem;
  background-color: hsl(36 20% 97%);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.03);
  min-height: 2.75rem;
}
.welcome-input-wrap:focus-within {
  border-color: hsl(var(--primary) / 0.5);
  background-color: hsl(var(--card));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.08);
}
.welcome-input-wrap .welcome-input {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
}
.welcome-input-wrap .welcome-input-has-icon {
  padding-left: 0.5rem;
}
.welcome-input-wrap .welcome-input-has-right {
  padding-right: 0.5rem;
}
.welcome-input-wrap .welcome-input-icon {
  position: static;
  width: 2.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground) / 0.45);
  font-size: 1.125rem;
  line-height: 1;
  pointer-events: none;
}
.welcome-input-wrap .welcome-input-icon .hgi {
  font-size: 1.125rem;
}
.welcome-input-wrap .welcome-input-toggle {
  position: static;
  width: 2.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground) / 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

/* Fallback when not using wrap (e.g. other pages): absolute positioning */
.welcome-input-icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground) / 0.45);
  font-size: 1.125rem;
  line-height: 1;
  pointer-events: none;
}
.welcome-input-wrap .welcome-input-icon {
  position: static;
}
.welcome-input-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground) / 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.welcome-input-wrap .welcome-input-toggle {
  position: static;
}

.welcome-input-toggle:hover {
  color: hsl(var(--foreground));
}

.welcome-submit-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 9999px;
  border: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.welcome-submit-btn:hover {
  box-shadow: 0 4px 18px hsl(var(--primary) / 0.3);
  transform: translateY(-1px);
}

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

.welcome-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Auth Tab Switcher ──────────────────── */
.auth-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.auth-tab:hover {
  color: hsl(var(--foreground));
}

.auth-tab-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.2);
  font-weight: 600;
}

.auth-tab-active:hover {
  color: hsl(var(--primary-foreground));
}

/* Dark mode welcome page overrides */
.dark .welcome-input {
  border-color: hsl(var(--border));
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  box-shadow: none;
}
.dark .welcome-input:focus {
  background-color: hsl(var(--card));
}
.dark .welcome-input-wrap {
  border-color: hsl(var(--border));
  background-color: hsl(var(--muted));
  box-shadow: none;
}
.dark .welcome-input-wrap:focus-within {
  background-color: hsl(var(--card));
}
.dark .welcome-card {
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.3);
}

.welcome-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: hsl(var(--muted));
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-theme-toggle:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--border));
}
.welcome-theme-toggle i {
  font-size: 1.25rem;
  line-height: 1;
}

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

.pointer-events-auto{
  pointer-events: auto;
}

.visible{
  visibility: visible;
}

.invisible{
  visibility: hidden;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.sticky{
  position: sticky;
}

.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{
  left: 0.25rem;
}

.left-1\/2{
  left: 50%;
}

.left-2{
  left: 0.5rem;
}

.left-\[50\%\]{
  left: 50%;
}

.right-0{
  right: 0px;
}

.right-1{
  right: 0.25rem;
}

.right-2{
  right: 0.5rem;
}

.right-3{
  right: 0.75rem;
}

.right-4{
  right: 1rem;
}

.top-0{
  top: 0px;
}

.top-1\.5{
  top: 0.375rem;
}

.top-1\/2{
  top: 50%;
}

.top-2{
  top: 0.5rem;
}

.top-3\.5{
  top: 0.875rem;
}

.top-4{
  top: 1rem;
}

.top-\[120px\]{
  top: 120px;
}

.top-\[1px\]{
  top: 1px;
}

.top-\[50\%\]{
  top: 50%;
}

.top-\[60\%\]{
  top: 60%;
}

.top-full{
  top: 100%;
}

.z-10{
  z-index: 10;
}

.z-20{
  z-index: 20;
}

.z-50{
  z-index: 50;
}

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

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

.-mx-1{
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

.mx-2{
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-3\.5{
  margin-left: 0.875rem;
  margin-right: 0.875rem;
}

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

.my-0\.5{
  margin-top: 0.125rem;
  margin-bottom: 0.125rem;
}

.my-1{
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.-ml-4{
  margin-left: -1rem;
}

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

.mb-1{
  margin-bottom: 0.25rem;
}

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

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

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

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

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

.mb-7{
  margin-bottom: 1.75rem;
}

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

.ml-1{
  margin-left: 0.25rem;
}

.ml-3{
  margin-left: 0.75rem;
}

.ml-auto{
  margin-left: auto;
}

.mr-2{
  margin-right: 0.5rem;
}

.mt-1\.5{
  margin-top: 0.375rem;
}

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

.mt-24{
  margin-top: 6rem;
}

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

.mt-5{
  margin-top: 1.25rem;
}

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

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

.aspect-video{
  aspect-ratio: 16 / 9;
}

.size-4{
  width: 1rem;
  height: 1rem;
}

.h-1\.5{
  height: 0.375rem;
}

.h-10{
  height: 2.5rem;
}

.h-11{
  height: 2.75rem;
}

.h-12{
  height: 3rem;
}

.h-16{
  height: 4rem;
}

.h-2{
  height: 0.5rem;
}

.h-2\.5{
  height: 0.625rem;
}

.h-3{
  height: 0.75rem;
}

.h-3\.5{
  height: 0.875rem;
}

.h-4{
  height: 1rem;
}

.h-5{
  height: 1.25rem;
}

.h-6{
  height: 1.5rem;
}

.h-7{
  height: 1.75rem;
}

.h-8{
  height: 2rem;
}

.h-9{
  height: 2.25rem;
}

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

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

.h-svh{
  height: 100svh;
}

.max-h-96{
  max-height: 24rem;
}

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

.max-h-screen{
  max-height: 100vh;
}

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

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

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

.min-h-screen{
  min-height: 100vh;
}

.min-h-svh{
  min-height: 100svh;
}

.w-0{
  width: 0px;
}

.w-1{
  width: 0.25rem;
}

.w-10{
  width: 2.5rem;
}

.w-11{
  width: 2.75rem;
}

.w-16{
  width: 4rem;
}

.w-2{
  width: 0.5rem;
}

.w-2\.5{
  width: 0.625rem;
}

.w-20{
  width: 5rem;
}

.w-3{
  width: 0.75rem;
}

.w-3\.5{
  width: 0.875rem;
}

.w-3\/4{
  width: 75%;
}

.w-4{
  width: 1rem;
}

.w-5{
  width: 1.25rem;
}

.w-64{
  width: 16rem;
}

.w-7{
  width: 1.75rem;
}

.w-72{
  width: 18rem;
}

.w-8{
  width: 2rem;
}

.w-9{
  width: 2.25rem;
}

.w-\[--sidebar-width\]{
  width: var(--sidebar-width);
}

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

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

.w-auto{
  width: auto;
}

.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-5{
  min-width: 1.25rem;
}

.min-w-\[12rem\]{
  min-width: 12rem;
}

.min-w-\[8rem\]{
  min-width: 8rem;
}

.min-w-\[var\(--radix-select-trigger-width\)\]{
  min-width: var(--radix-select-trigger-width);
}

.max-w-7xl{
  max-width: 80rem;
}

.max-w-\[--skeleton-width\]{
  max-width: var(--skeleton-width);
}

.max-w-lg{
  max-width: 32rem;
}

.max-w-max{
  max-width: -moz-max-content;
  max-width: max-content;
}

.max-w-md{
  max-width: 28rem;
}

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

.-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-x-px{
  --tw-translate-x: -1px;
  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-x-px{
  --tw-translate-x: 1px;
  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));
}

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

.scale-125{
  --tw-scale-x: 1.25;
  --tw-scale-y: 1.25;
  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 pulse{

  50%{
    opacity: .5;
  }
}

.animate-pulse{
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cursor-default{
  cursor: default;
}

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

.cursor-pointer{
  cursor: pointer;
}

.touch-none{
  touch-action: none;
}

.select-none{
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.list-none{
  list-style-type: none;
}

.grid-cols-7{
  grid-template-columns: repeat(7, minmax(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-stretch{
  align-items: stretch;
}

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

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

.gap-1{
  gap: 0.25rem;
}

.gap-1\.5{
  gap: 0.375rem;
}

.gap-2{
  gap: 0.5rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

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

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

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

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

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

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

.break-words{
  overflow-wrap: break-word;
}

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

.rounded-\[2px\]{
  border-radius: 2px;
}

.rounded-\[inherit\]{
  border-radius: inherit;
}

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

.rounded-lg{
  border-radius: var(--radius);
}

.rounded-md{
  border-radius: calc(var(--radius) - 2px);
}

.rounded-sm{
  border-radius: calc(var(--radius) - 4px);
}

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

.rounded-t-\[10px\]{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.rounded-tl-sm{
  border-top-left-radius: calc(var(--radius) - 4px);
}

.border{
  border-width: 1px;
}

.border-2{
  border-width: 2px;
}

.border-\[1\.5px\]{
  border-width: 1.5px;
}

.border-y{
  border-top-width: 1px;
  border-bottom-width: 1px;
}

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

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

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

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

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

.border-\[--color-border\]{
  border-color: var(--color-border);
}

.border-border\/40{
  border-color: hsl(var(--border) / 0.4);
}

.border-border\/50{
  border-color: hsl(var(--border) / 0.5);
}

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

.border-destructive{
  border-color: hsl(var(--destructive));
}

.border-destructive\/50{
  border-color: hsl(var(--destructive) / 0.5);
}

.border-input{
  border-color: hsl(var(--input));
}

.border-primary{
  border-color: hsl(var(--primary));
}

.border-sidebar-border{
  border-color: hsl(var(--sidebar-border));
}

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

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

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

.bg-\[--color-bg\]{
  background-color: var(--color-bg);
}

.bg-accent{
  background-color: hsl(var(--accent));
}

.bg-background{
  background-color: hsl(var(--background));
}

.bg-background\/90{
  background-color: hsl(var(--background) / 0.9);
}

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

.bg-border{
  background-color: hsl(var(--border));
}

.bg-card{
  background-color: hsl(var(--card));
}

.bg-card\/40{
  background-color: hsl(var(--card) / 0.4);
}

.bg-card\/80{
  background-color: hsl(var(--card) / 0.8);
}

.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\/10{
  background-color: hsl(var(--primary) / 0.1);
}

.bg-secondary{
  background-color: hsl(var(--secondary));
}

.bg-sidebar{
  background-color: hsl(var(--sidebar-background));
}

.bg-sidebar-border{
  background-color: hsl(var(--sidebar-border));
}

.bg-transparent{
  background-color: transparent;
}

.fill-current{
  fill: currentColor;
}

.p-0{
  padding: 0px;
}

.p-1{
  padding: 0.25rem;
}

.p-2{
  padding: 0.5rem;
}

.p-3{
  padding: 0.75rem;
}

.p-4{
  padding: 1rem;
}

.p-5{
  padding: 1.25rem;
}

.p-6{
  padding: 1.5rem;
}

.p-8{
  padding: 2rem;
}

.p-\[1px\]{
  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;
}

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

.pb-3{
  padding-bottom: 0.75rem;
}

.pb-4{
  padding-bottom: 1rem;
}

.pl-2\.5{
  padding-left: 0.625rem;
}

.pl-4{
  padding-left: 1rem;
}

.pl-8{
  padding-left: 2rem;
}

.pr-2{
  padding-right: 0.5rem;
}

.pr-2\.5{
  padding-right: 0.625rem;
}

.pr-8{
  padding-right: 2rem;
}

.pt-0{
  padding-top: 0px;
}

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

.pt-3{
  padding-top: 0.75rem;
}

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

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

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

.align-middle{
  vertical-align: middle;
}

.font-display{
  font-family: Inter, sans-serif;
}

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

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl{
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-\[0\.8rem\]{
  font-size: 0.8rem;
}

.text-base{
  font-size: 1.2rem;
  line-height: 1.5rem;
}

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

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

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

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

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

.font-medium{
  font-weight: 500;
}

.font-normal{
  font-weight: 400;
}

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

.tabular-nums{
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}

.leading-none{
  line-height: 1;
}

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

.tracking-widest{
  letter-spacing: 0.1em;
}

.text-accent-foreground{
  color: hsl(var(--accent-foreground));
}

.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-diary-amber{
  color: hsl(var(--diary-amber));
}

.text-foreground{
  color: hsl(var(--foreground));
}

.text-foreground\/50{
  color: hsl(var(--foreground) / 0.5);
}

.text-muted-foreground{
  color: hsl(var(--muted-foreground));
}

.text-muted-foreground\/40{
  color: hsl(var(--muted-foreground) / 0.4);
}

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

.text-sidebar-foreground{
  color: hsl(var(--sidebar-foreground));
}

.text-sidebar-foreground\/70{
  color: hsl(var(--sidebar-foreground) / 0.7);
}

.underline{
  text-decoration-line: underline;
}

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

.opacity-0{
  opacity: 0;
}

.opacity-25{
  opacity: 0.25;
}

.opacity-30{
  opacity: 0.3;
}

.opacity-50{
  opacity: 0.5;
}

.opacity-60{
  opacity: 0.6;
}

.opacity-70{
  opacity: 0.7;
}

.opacity-90{
  opacity: 0.9;
}

.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{
  --tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));
  --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md{
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-none{
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm{
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl{
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

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

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

.ring-primary\/30{
  --tw-ring-color: hsl(var(--primary) / 0.3);
}

.ring-ring{
  --tw-ring-color: hsl(var(--ring));
}

.ring-sidebar-ring{
  --tw-ring-color: hsl(var(--sidebar-ring));
}

.ring-offset-background{
  --tw-ring-offset-color: hsl(var(--background));
}

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

.transition-\[left\2c right\2c width\]{
  transition-property: left,right,width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-\[margin\2c opa\]{
  transition-property: margin,opa;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-\[width\2c height\2c padding\]{
  transition-property: width,height,padding;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-\[width\]{
  transition-property: width;
  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);
}

.ease-linear{
  transition-timing-function: linear;
}

@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{
  --tw-enter-opacity: 0;
}

.fade-in-0{
  --tw-enter-opacity: 0;
}

.fade-in-80{
  --tw-enter-opacity: 0.8;
}

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

.ease-linear{
  animation-timing-function: linear;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
  }

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

@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

@keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-12px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
  }

.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
  }

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

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 999px;
  }

.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: 500;
}

.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-2::after{
  content: var(--tw-content);
  inset: -0.5rem;
}

.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\:w-\[2px\]::after{
  content: var(--tw-content);
  width: 2px;
}

.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: calc(var(--radius) - 2px);
  border-bottom-left-radius: calc(var(--radius) - 2px);
}

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

.last\:rounded-r-md:last-child{
  border-top-right-radius: calc(var(--radius) - 2px);
  border-bottom-right-radius: calc(var(--radius) - 2px);
}

.focus-within\:relative:focus-within{
  position: relative;
}

.focus-within\:z-20:focus-within{
  z-index: 20;
}

.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:hover{
  background-color: hsl(var(--primary));
}

.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:hover{
  background-color: hsl(var(--secondary));
}

.hover\:bg-secondary\/80:hover{
  background-color: hsl(var(--secondary) / 0.8);
}

.hover\:bg-sidebar-accent:hover{
  background-color: hsl(var(--sidebar-accent));
}

.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\:text-primary-foreground:hover{
  color: hsl(var(--primary-foreground));
}

.hover\:text-primary\/90:hover{
  color: hsl(var(--primary) / 0.9);
}

.hover\:text-sidebar-accent-foreground:hover{
  color: hsl(var(--sidebar-accent-foreground));
}

.hover\:underline:hover{
  text-decoration-line: underline;
}

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

.hover\:opacity-90:hover{
  opacity: 0.9;
}

.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{
  --tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));
  --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-lg:hover{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:after\:bg-sidebar-border:hover::after{
  content: var(--tw-content);
  background-color: hsl(var(--sidebar-border));
}

.focus\:bg-accent:focus{
  background-color: hsl(var(--accent));
}

.focus\:bg-primary:focus{
  background-color: hsl(var(--primary));
}

.focus\:text-accent-foreground:focus{
  color: hsl(var(--accent-foreground));
}

.focus\:text-primary-foreground:focus{
  color: hsl(var(--primary-foreground));
}

.focus\:opacity-100:focus{
  opacity: 1;
}

.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\:outline-none:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.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-ring:focus-visible{
  --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-sidebar-ring:focus-visible{
  --tw-ring-color: hsl(var(--sidebar-ring));
}

.focus-visible\:ring-offset-1:focus-visible{
  --tw-ring-offset-width: 1px;
}

.focus-visible\:ring-offset-2:focus-visible{
  --tw-ring-offset-width: 2px;
}

.focus-visible\:ring-offset-background:focus-visible{
  --tw-ring-offset-color: hsl(var(--background));
}

.active\:bg-sidebar-accent:active{
  background-color: hsl(var(--sidebar-accent));
}

.active\:text-sidebar-accent-foreground:active{
  color: hsl(var(--sidebar-accent-foreground));
}

.disabled\:pointer-events-none:disabled{
  pointer-events: none;
}

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

.disabled\:opacity-40:disabled{
  opacity: 0.4;
}

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

.group\/menu-item:focus-within .group-focus-within\/menu-item\:opacity-100{
  opacity: 1;
}

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

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

.group.destructive .group-\[\.destructive\]\:border-muted\/40{
  border-color: hsl(var(--muted) / 0.4);
}

.group.toaster .group-\[\.toaster\]\:border-border{
  border-color: hsl(var(--border));
}

.group.toast .group-\[\.toast\]\:bg-muted{
  background-color: hsl(var(--muted));
}

.group.toast .group-\[\.toast\]\:bg-primary{
  background-color: hsl(var(--primary));
}

.group.toaster .group-\[\.toaster\]\:bg-background{
  background-color: hsl(var(--background));
}

.group.destructive .group-\[\.destructive\]\:text-red-300{
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}

.group.toast .group-\[\.toast\]\:text-muted-foreground{
  color: hsl(var(--muted-foreground));
}

.group.toast .group-\[\.toast\]\:text-primary-foreground{
  color: hsl(var(--primary-foreground));
}

.group.toaster .group-\[\.toaster\]\:text-foreground{
  color: hsl(var(--foreground));
}

.group.toaster .group-\[\.toaster\]\:shadow-lg{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{
  border-color: hsl(var(--destructive) / 0.3);
}

.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{
  background-color: hsl(var(--destructive));
}

.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{
  color: hsl(var(--destructive-foreground));
}

.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{
  --tw-text-opacity: 1;
  color: rgb(254 242 242 / var(--tw-text-opacity, 1));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{
  --tw-ring-color: hsl(var(--destructive));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{
  --tw-ring-offset-color: #dc2626;
}

.peer\/menu-button:hover ~ .peer-hover\/menu-button\:text-sidebar-accent-foreground{
  color: hsl(var(--sidebar-accent-foreground));
}

.peer:disabled ~ .peer-disabled\:cursor-not-allowed{
  cursor: not-allowed;
}

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

.has-\[\[data-variant\=inset\]\]\:bg-sidebar:has([data-variant=inset]){
  background-color: hsl(var(--sidebar-background));
}

.has-\[\:disabled\]\:opacity-50:has(:disabled){
  opacity: 0.5;
}

.group\/menu-item:has([data-sidebar=menu-action]) .group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8{
  padding-right: 2rem;
}

.aria-disabled\:pointer-events-none[aria-disabled="true"]{
  pointer-events: none;
}

.aria-disabled\:opacity-50[aria-disabled="true"]{
  opacity: 0.5;
}

.aria-selected\:bg-accent[aria-selected="true"]{
  background-color: hsl(var(--accent));
}

.aria-selected\:bg-accent\/50[aria-selected="true"]{
  background-color: hsl(var(--accent) / 0.5);
}

.aria-selected\:text-accent-foreground[aria-selected="true"]{
  color: hsl(var(--accent-foreground));
}

.aria-selected\:text-muted-foreground[aria-selected="true"]{
  color: hsl(var(--muted-foreground));
}

.aria-selected\:opacity-100[aria-selected="true"]{
  opacity: 1;
}

.aria-selected\:opacity-30[aria-selected="true"]{
  opacity: 0.3;
}

.data-\[disabled\=true\]\:pointer-events-none[data-disabled="true"]{
  pointer-events: none;
}

.data-\[disabled\]\:pointer-events-none[data-disabled]{
  pointer-events: none;
}

.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction="vertical"]{
  height: 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-5[data-state="checked"]{
  --tw-translate-x: 1.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

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

.data-\[swipe\=cancel\]\:translate-x-0[data-swipe="cancel"]{
  --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-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe="end"]{
  --tw-translate-x: var(--radix-toast-swipe-end-x);
  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-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe="move"]{
  --tw-translate-x: var(--radix-toast-swipe-move-x);
  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 0.2s 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 0.2s ease-out;
}

.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction="vertical"]{
  flex-direction: column;
}

.data-\[active\=true\]\:bg-sidebar-accent[data-active="true"]{
  background-color: hsl(var(--sidebar-accent));
}

.data-\[active\]\:bg-accent\/50[data-active]{
  background-color: hsl(var(--accent) / 0.5);
}

.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-\[active\=true\]\:font-medium[data-active="true"]{
  font-weight: 500;
}

.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active="true"]{
  color: hsl(var(--sidebar-accent-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-\[disabled\=true\]\:opacity-50[data-disabled="true"]{
  opacity: 0.5;
}

.data-\[disabled\]\:opacity-50[data-disabled]{
  opacity: 0.5;
}

.data-\[state\=open\]\:opacity-100[data-state="open"]{
  opacity: 1;
}

.data-\[state\=active\]\:shadow-sm[data-state="active"]{
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.data-\[swipe\=move\]\:transition-none[data-swipe="move"]{
  transition-property: none;
}

.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-\[swipe\=end\]\:animate-out[data-swipe="end"]{
  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\=closed\]\:fade-out-80[data-state="closed"]{
  --tw-exit-opacity: 0.8;
}

.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-right-full[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\=open\]\:slide-in-from-top-full[data-state="open"]{
  --tw-enter-translate-y: -100%;
}

.data-\[state\=closed\]\:duration-300[data-state="closed"]{
  animation-duration: 300ms;
}

.data-\[state\=open\]\:duration-500[data-state="open"]{
  animation-duration: 500ms;
}

.data-\[motion\^\=from-\]\:fade-in[data-motion^="from-"] {
    animation: fadeIn 0.4s ease-out;
  }

.data-\[state\=visible\]\:fade-in[data-state="visible"] {
    animation: fadeIn 0.4s ease-out;
  }

.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-\[state\=open\]\:hover\:bg-sidebar-accent:hover[data-state="open"]{
  background-color: hsl(var(--sidebar-accent));
}

.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground:hover[data-state="open"]{
  color: hsl(var(--sidebar-accent-foreground));
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]{
  left: calc(var(--sidebar-width) * -1);
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]{
  right: calc(var(--sidebar-width) * -1);
}

.group[data-side="left"] .group-data-\[side\=left\]\:-right-4{
  right: -1rem;
}

.group[data-side="right"] .group-data-\[side\=right\]\:left-0{
  left: 0px;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:-mt-8{
  margin-top: -2rem;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:hidden{
  display: none;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:\!size-8{
  width: 2rem !important;
  height: 2rem !important;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[--sidebar-width-icon\]{
  width: var(--sidebar-width-icon);
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)\)\]{
  width: calc(var(--sidebar-width-icon) + 1rem);
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)_\+2px\)\]{
  width: calc(var(--sidebar-width-icon) + 1rem + 2px);
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:w-0{
  width: 0px;
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:translate-x-0{
  --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));
}

.group[data-side="right"] .group-data-\[side\=right\]\: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[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[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:overflow-hidden{
  overflow: hidden;
}

.group[data-variant="floating"] .group-data-\[variant\=floating\]\:rounded-lg{
  border-radius: var(--radius);
}

.group[data-variant="floating"] .group-data-\[variant\=floating\]\:border{
  border-width: 1px;
}

.group[data-side="left"] .group-data-\[side\=left\]\:border-r{
  border-right-width: 1px;
}

.group[data-side="right"] .group-data-\[side\=right\]\:border-l{
  border-left-width: 1px;
}

.group[data-variant="floating"] .group-data-\[variant\=floating\]\:border-sidebar-border{
  border-color: hsl(var(--sidebar-border));
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:\!p-0{
  padding: 0px !important;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:\!p-2{
  padding: 0.5rem !important;
}

.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:opacity-0{
  opacity: 0;
}

.group[data-variant="floating"] .group-data-\[variant\=floating\]\:shadow{
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:after\:left-full::after{
  content: var(--tw-content);
  left: 100%;
}

.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:hover\:bg-sidebar:hover{
  background-color: hsl(var(--sidebar-background));
}

.peer\/menu-button[data-size="default"] ~ .peer-data-\[size\=default\]\/menu-button\:top-1\.5{
  top: 0.375rem;
}

.peer\/menu-button[data-size="lg"] ~ .peer-data-\[size\=lg\]\/menu-button\:top-2\.5{
  top: 0.625rem;
}

.peer\/menu-button[data-size="sm"] ~ .peer-data-\[size\=sm\]\/menu-button\:top-1{
  top: 0.25rem;
}

.peer[data-variant="inset"] ~ .peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-theme\(spacing\.4\)\)\]{
  min-height: calc(100svh - 1rem);
}

.peer\/menu-button[data-active="true"] ~ .peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground{
  color: hsl(var(--sidebar-accent-foreground));
}

.dark\:border-destructive:is(.dark *){
  border-color: hsl(var(--destructive));
}

@media (min-width: 640px){

  .sm\:bottom-0{
    bottom: 0px;
  }

  .sm\:right-0{
    right: 0px;
  }

  .sm\:top-auto{
    top: auto;
  }

  .sm\:mt-0{
    margin-top: 0px;
  }

  .sm\:inline{
    display: inline;
  }

  .sm\:flex{
    display: flex;
  }

  .sm\:max-w-sm{
    max-width: 24rem;
  }

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

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

  .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\:space-x-4 > :not([hidden]) ~ :not([hidden]){
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  }

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

  .sm\:rounded-lg{
    border-radius: var(--radius);
  }

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

  .data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state="open"]{
    --tw-enter-translate-y: 100%;
  }
}

@media (min-width: 768px){

  .md\:absolute{
    position: absolute;
  }

  .md\:block{
    display: block;
    height: 90dvh;
  }

  .md\:flex{
    display: flex;
  }

  .md\:hidden{
    display: none;
  }

  .md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{
    width: var(--radix-navigation-menu-viewport-width);
  }

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

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

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

  .md\:opacity-0{
    opacity: 0;
  }

  .after\:md\:hidden::after{
    content: var(--tw-content);
    display: none;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:m-2{
    margin: 0.5rem;
  }

  .peer[data-state="collapsed"][data-variant="inset"] ~ .md\:peer-data-\[state\=collapsed\]\:peer-data-\[variant\=inset\]\:ml-2{
    margin-left: 0.5rem;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:ml-0{
    margin-left: 0px;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:rounded-xl{
    border-radius: 0.75rem;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:shadow{
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}

@media (min-width: 1024px){

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

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

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

.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){
  background-color: hsl(var(--accent));
}

.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{
  border-top-left-radius: calc(var(--radius) - 2px);
  border-bottom-left-radius: calc(var(--radius) - 2px);
}

.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{
  border-top-right-radius: calc(var(--radius) - 2px);
  border-bottom-right-radius: calc(var(--radius) - 2px);
}

.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){
  background-color: hsl(var(--accent) / 0.5);
}

.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){
  border-top-right-radius: calc(var(--radius) - 2px);
  border-bottom-right-radius: calc(var(--radius) - 2px);
}

.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){
  padding-right: 0px;
}

.\[\&\>button\]\:hidden>button{
  display: none;
}

.\[\&\>span\:last-child\]\:truncate>span:last-child{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.\[\&\>span\]\:line-clamp-1>span{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{
  --tw-translate-y: -3px;
  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\]\:absolute>svg{
  position: absolute;
}

.\[\&\>svg\]\:left-4>svg{
  left: 1rem;
}

.\[\&\>svg\]\:top-4>svg{
  top: 1rem;
}

.\[\&\>svg\]\:size-3\.5>svg{
  width: 0.875rem;
  height: 0.875rem;
}

.\[\&\>svg\]\:size-4>svg{
  width: 1rem;
  height: 1rem;
}

.\[\&\>svg\]\:h-2\.5>svg{
  height: 0.625rem;
}

.\[\&\>svg\]\:h-3>svg{
  height: 0.75rem;
}

.\[\&\>svg\]\:w-2\.5>svg{
  width: 0.625rem;
}

.\[\&\>svg\]\:w-3>svg{
  width: 0.75rem;
}

.\[\&\>svg\]\:shrink-0>svg{
  flex-shrink: 0;
}

.\[\&\>svg\]\:text-destructive>svg{
  color: hsl(var(--destructive));
}

.\[\&\>svg\]\:text-foreground>svg{
  color: hsl(var(--foreground));
}

.\[\&\>svg\]\:text-muted-foreground>svg{
  color: hsl(var(--muted-foreground));
}

.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{
  color: hsl(var(--sidebar-accent-foreground));
}

.\[\&\>svg\~\*\]\:pl-7>svg~*{
  padding-left: 1.75rem;
}

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

.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{
  fill: hsl(var(--muted-foreground));
}

.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke='#ccc']{
  stroke: hsl(var(--border) / 0.5);
}

.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{
  stroke: hsl(var(--border));
}

.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke='#fff']{
  stroke: transparent;
}

.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke='#ccc']{
  stroke: hsl(var(--border));
}

.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector{
  fill: hsl(var(--muted));
}

.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{
  fill: hsl(var(--muted));
}

.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke='#ccc']{
  stroke: hsl(var(--border));
}

.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke='#fff']{
  stroke: transparent;
}

.\[\&_\.recharts-sector\]\:outline-none .recharts-sector{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.\[\&_\[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: 500;
}

.\[\&_\[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: 1.625;
}

.\[\&_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: 1px;
}

[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{
  right: -0.5rem;
}

[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{
  cursor: e-resize;
}

[data-side=left] .\[\[data-side\=left\]_\&\]\:cursor-w-resize{
  cursor: w-resize;
}

[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{
  left: -0.5rem;
}

[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{
  cursor: w-resize;
}

[data-side=right] .\[\[data-side\=right\]_\&\]\:cursor-e-resize{
  cursor: e-resize;
}
