.loginpage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding-top: 1rem;
}

.loginform {
    max-width: 25rem;
}

.shortlogo {
    width: 4.5rem;
}

/* Font smoothing — matches Vercel/Riverside rendering */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    text-rendering: optimizeLegibility;
}

/* Prevent white flash between page loads */
body.mainbg, body.bg-stone-100 {
    background-color: var(--color-stone-100, #f5f5f4);
}

/* Skeleton loading placeholders */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        var(--color-stone-200, #e7e5e4) 25%,
        var(--color-stone-100, #f5f5f4) 50%,
        var(--color-stone-200, #e7e5e4) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md, 6px);
}
.skeleton-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl, 12px);
    flex-shrink: 0;
}
.skeleton-text {
    height: 14px;
    width: 70%;
}
.skeleton-text-sm {
    height: 10px;
    width: 40%;
}
.skeleton-btn {
    height: 32px;
    width: 120px;
}
.skeleton-number {
    display: inline-block;
    height: 28px;
    width: 40px;
    vertical-align: middle;
}

.app-loading {
    /* Primary job: block mouse/keyboard interaction while critical state
       is being loaded or updated. Appearance is secondary — set the
       background to any alpha level without affecting the blocking. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: color-mix(in oklab, var(--color-stone-100, #f5f5f4) 75%, transparent);
    display: none;
    z-index: 10000;
    pointer-events: auto;    /* explicit: intercepts clicks on content behind */
    cursor: progress;         /* subtle cue: something is working */
}

/* Center the spinner without relying on flex — jQuery .fadeIn() sets
   display: block which would break flex centering. */
.app-loading .lds-roller {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scrollbar-thin, .scrollbar-thinner {
    scrollbar-width: thin;
}

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


.scrollbar-thinner::-webkit-scrollbar {
    width: 2px;
}

.scrollbar-thinner::-webkit-scrollbar-thumb {
    background-color: #A8A29E;
}

.scrollbar-thinner::-webkit-scrollbar-thumb {
    border-radius: 20px;
  }

.pre {
    white-space: pre-wrap;
}

.wrap {
    word-wrap: normal;
}
