/* Component layer — used when Vite build is unavailable */
html { scroll-behavior: smooth; }

body {
    background-color: #131624;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* Glass card */
.glass-card {
    border-radius: 1rem;
    border: 1px solid rgb(255 255 255 / 0.07);
    background: rgb(45 50 80 / 0.8);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 16px 48px rgb(0 0 0 / 0.4);
}

/* Inputs */
.glass-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.07);
    background-color: #1a1f33;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.glass-input::placeholder { color: rgb(103 111 157 / 0.6); }
.glass-input:focus {
    border-color: rgb(249 177 122 / 0.55);
    box-shadow: 0 0 0 2px rgb(249 177 122 / 0.15);
}
.glass-input-error { border-color: rgb(248 113 113 / 0.5) !important; }

/* Role cards */
.role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.07);
    background-color: #1a1f33;
    padding: 1rem;
    text-align: start;
    transition: all 0.15s;
    cursor: pointer;
}
.role-card:hover {
    border-color: #424769;
    background: rgb(66 71 105 / 0.25);
}
.role-card-active {
    border-color: rgb(249 177 122 / 0.45) !important;
    background: rgb(249 177 122 / 0.07) !important;
    box-shadow: inset 0 1px 0 rgb(249 177 122 / 0.15);
}

/* File zone */
.file-zone {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px dashed rgb(255 255 255 / 0.07);
    background-color: #1a1f33;
    padding: 0.875rem 1rem;
    transition: all 0.15s;
}
.file-zone:hover {
    border-color: rgb(249 177 122 / 0.4);
    background: rgb(255 255 255 / 0.02);
}

/* Button */
.btn-primary {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background-color: #f9b17a;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #131624;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.btn-primary:hover { background-color: #d4956a; }
.btn-primary:active { transform: scale(0.99); }

/* Section title */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}
.section-title::before {
    content: '';
    height: 1rem;
    width: 0.25rem;
    border-radius: 9999px;
    background-color: #f9b17a;
}

/* Brand feature */
.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.07);
    background: rgb(255 255 255 / 0.03);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #676f9d;
}

/* Utilities */
.border-line { border-color: rgb(255 255 255 / 0.07); }
.text-muted { color: #676f9d; }
.text-peach { color: #f9b17a; }
.text-danger { color: #f87171; }
.text-white { color: #fff; }
.bg-midnight { background-color: #131624; }
.bg-deep { background-color: #0e1019; }
.ring-line { --tw-ring-color: rgb(255 255 255 / 0.07); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); }

@media (min-width: 1024px) {
    .lg\:grid { display: grid; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none !important; }
    .lg\:min-h-dvh { min-height: 100dvh; }
    .lg\:mb-8 { margin-bottom: 2rem; }
}

.safe-top { padding-top: env(safe-area-inset-top, 0px); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.px-safe {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    max-width: 1.25rem;
    padding: 0;
    border-radius: 50%;
    background-color: #dc2626 !important;
    color: #fff !important;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
}

.chat-unread-badge--sm {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    max-width: 1.125rem;
    font-size: 0.5rem;
}

.admin-header__chat-badge {
    position: absolute;
    top: -0.3rem;
    inset-inline-end: -0.35rem;
    z-index: 2;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    font-size: 0.5625rem !important;
    box-shadow: 0 0 0 2px rgb(15 23 42);
}

/* White calendar icons on dark date/time inputs */
input[type='date'],
input[type='datetime-local'],
input[type='time'],
input[type='month'],
input[type='week'] {
    color-scheme: dark;
}

input[type='date']::-webkit-calendar-picker-indicator,
input[type='datetime-local']::-webkit-calendar-picker-indicator,
input[type='time']::-webkit-calendar-picker-indicator,
input[type='month']::-webkit-calendar-picker-indicator,
input[type='week']::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1);
    cursor: pointer;
    opacity: 0.9;
}
