:root {
    color-scheme: light;
    --bg: #f3f8fc;
    --bg-alt: #ebf3f8;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --surface-muted: #f4f8fb;
    --surface-strong: #ffffff;
    --sidebar: #0f2235;
    --sidebar-alt: #183b58;
    --text: #123149;
    --text-soft: #627789;
    --text-faint: #8799aa;
    --line: #d9e4ed;
    --line-strong: #c5d4e1;
    --primary: #33a8f5;
    --primary-strong: #148fdc;
    --primary-deep: #0d6eaf;
    --primary-soft: #e8f6ff;
    --primary-glow: rgba(51, 168, 245, 0.22);
    --success: #17a174;
    --danger: #d05555;
    --warning: #f5a524;
    --shadow-sm: 0 12px 26px rgba(18, 49, 73, 0.08);
    --shadow-md: 0 24px 60px rgba(18, 49, 73, 0.12);
    --shadow-lg: 0 34px 90px rgba(18, 49, 73, 0.16);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --font-sans: "Segoe UI Variable", "Tajawal", "Segoe UI", Tahoma, sans-serif;
    --font-display: "Segoe UI Variable", "Tajawal", "Segoe UI", Tahoma, sans-serif;
    --sidebar-width: 304px;
    --page-alert-offset: 92px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 45%, var(--bg-alt) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.app-body,
body.auth-body {
    position: relative;
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

::selection {
    background: rgba(51, 168, 245, 0.18);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary-deep);
    text-decoration: none;
}

a:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}

p,
ul,
ol {
    margin: 0;
}

small,
.muted {
    color: var(--text-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.app-backdrop::before,
.app-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
}

.app-backdrop::before {
    background:
        radial-gradient(circle at 10% 14%, rgba(64, 188, 255, 0.24), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(103, 198, 255, 0.18), transparent 22%),
        radial-gradient(circle at 78% 82%, rgba(19, 143, 220, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(235, 243, 248, 0.74));
}

.app-backdrop::after {
    background:
        linear-gradient(rgba(121, 153, 177, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 153, 177, 0.06) 1px, transparent 1px),
        rgba(10, 28, 42, 0);
    background-size: 36px 36px, 36px 36px, auto;
    opacity: 0.85;
    transition: opacity 0.24s ease, background-color 0.24s ease;
}

body.sidebar-open .app-backdrop {
    pointer-events: auto;
    z-index: 20;
}

body.sidebar-open .app-backdrop::after {
    background-color: rgba(10, 28, 42, 0.38);
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    padding: 1.5rem 1.2rem;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(15, 34, 53, 0.97), rgba(24, 59, 88, 0.98)),
        linear-gradient(135deg, rgba(77, 194, 255, 0.1), transparent 45%);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
    scrollbar-width: thin;
}

.sidebar::before,
.sidebar::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.sidebar::before {
    inset: 2rem auto auto -3rem;
    width: 160px;
    height: 160px;
    background: rgba(72, 195, 255, 0.16);
}

.sidebar::after {
    inset: auto -2rem 3rem auto;
    width: 140px;
    height: 140px;
    background: rgba(16, 110, 176, 0.18);
}

.sidebar-brand,
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.35rem 0.2rem 1rem;
}

.sidebar-brand strong,
.topbar-brand-name {
    display: block;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-brand strong {
    color: #ffffff;
    font-size: 1rem;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.64);
}

.sidebar-brand-logo-wrap,
.topbar-brand-logo-wrap,
.auth-logo-frame {
    flex: 0 0 auto;
    border-radius: 0;
}

.sidebar-brand-logo-wrap {
    width: 112px;
    height: 112px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.topbar-brand-logo-wrap {
    width: 72px;
    height: 72px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-logo-frame {
    width: 164px;
    height: 164px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: floaty 6.2s ease-in-out infinite;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-topbar,
.brand-logo-sidebar,
.brand-logo-auth {
    filter: drop-shadow(0 12px 22px rgba(18, 49, 73, 0.16));
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.88rem 1rem;
    padding-inline-start: 1.65rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: "";
    position: absolute;
    inset-block-start: calc(50% - 4px);
    inset-inline-start: 0.95rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(74, 198, 255, 0.22), rgba(74, 198, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    opacity: 1;
    transform: scale(1);
}

.sidebar-nav a:hover {
    transform: translateX(4px);
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 14;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 2rem 1rem;
    backdrop-filter: blur(18px);
    background: rgba(244, 248, 252, 0.78);
    border-bottom: 1px solid rgba(217, 228, 237, 0.82);
}

.topbar-title {
    min-width: 0;
    display: grid;
    gap: 0.7rem;
}

.topbar-brand-copy {
    min-width: 0;
}

.topbar-brand-name {
    font-size: 1.1rem;
}

.topbar-title p {
    margin-top: 0.15rem;
    color: var(--text-soft);
}

.topbar-title h2 {
    font-size: clamp(1.35rem, 1.9vw, 1.8rem);
}

.topbar-title h2:empty {
    display: none;
}

.topbar-actions,
.button-row,
.panel-header-inline,
.bulk-bar,
.form-actions,
.language-switch,
.auth-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.topbar-actions form,
.button-row form,
.actions-cell form,
.language-switch form {
    margin: 0;
}

.profile-link,
.notification-chip,
.topbar .lang-chip,
.sidebar-toggle {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 228, 237, 0.92);
    box-shadow: var(--shadow-sm);
}

.profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text);
}

.notification-hub {
    position: relative;
}

.notification-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
}

.notification-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(51, 168, 245, 0.22);
    animation: pulseSoft 3s ease-in-out infinite;
}

.notification-preview {
    position: absolute;
    inset-block-start: calc(100% + 0.8rem);
    inset-inline-end: 0;
    min-width: 340px;
    max-width: min(92vw, 380px);
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(217, 228, 237, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 18;
}

.notification-preview::before {
    content: "";
    position: absolute;
    inset-block-start: -7px;
    inset-inline-end: 22px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.94);
    border-inline-start: 1px solid rgba(217, 228, 237, 0.95);
    border-block-start: 1px solid rgba(217, 228, 237, 0.95);
    transform: rotate(45deg);
}

.notification-hub:hover .notification-preview,
.notification-hub:focus-within .notification-preview {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-preview-item,
.notification-preview-empty {
    display: grid;
    gap: 0.24rem;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.94));
    border: 1px solid rgba(217, 228, 237, 0.82);
}

.notification-preview-item.unread {
    background: linear-gradient(180deg, rgba(232, 246, 255, 0.98), rgba(245, 250, 254, 0.96));
    border-color: rgba(51, 168, 245, 0.28);
}

.notification-preview-item span,
.notification-preview-empty {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    font-weight: 700;
}

.topbar .lang-chip {
    color: var(--text);
}

.lang-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(51, 168, 245, 0.24);
}

.content-area {
    width: 100%;
    padding: 1.5rem 2rem 2rem;
}

.page-alert-region {
    position: fixed;
    inset-block-start: var(--page-alert-offset);
    inset-inline-start: calc(var(--sidebar-width) + 1rem);
    inset-inline-end: 1rem;
    z-index: 18;
    pointer-events: none;
    padding: 0;
}

.content-area > * + * {
    margin-top: 1.25rem;
}

.panel,
.metric-card,
.auth-card,
.detail-card,
.folder-card,
.list-card {
    position: relative;
    background: var(--surface-soft);
    border: 1px solid rgba(217, 228, 237, 0.88);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.panel::before,
.metric-card::before,
.auth-card::before,
.detail-card::before,
.folder-card::before,
.list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(51, 168, 245, 0.14), rgba(255, 255, 255, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.panel {
    padding: 1.45rem;
}

.panel-header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
}

.panel-header-inline {
    justify-content: space-between;
}

.panel-header h1,
.panel-header h2,
.auth-card h2 {
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
}

.panel-header p,
.detail-card span,
.topbar-title p,
.auth-card p,
.lede {
    color: var(--text-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
    color: var(--primary-deep);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.metrics-grid,
.detail-grid,
.card-grid {
    display: grid;
    gap: 1rem;
}

.ticket-card-grid,
.ticket-board {
    display: grid;
    gap: 1rem;
}

.ticket-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.15rem;
}

.ticket-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.95));
    border: 1px solid rgba(217, 228, 237, 0.9);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ticket-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--ticket-status-color, var(--primary));
}

.ticket-card-header,
.ticket-card-footer,
.status-table-header,
.status-table-title,
.empty-state {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ticket-card-footer-split {
    align-items: center;
    flex-wrap: wrap;
}

.ticket-card-number {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--primary-deep);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ticket-card-title {
    font-size: 1.08rem;
    line-height: 1.35;
}

.ticket-card-title a {
    color: var(--text);
    text-decoration: none;
}

.ticket-card-title a:hover {
    color: var(--primary-deep);
    text-decoration: none;
}

.ticket-card-desc {
    color: var(--text-soft);
    line-height: 1.65;
    min-height: 3.2rem;
}

.ticket-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.ticket-card-meta div {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: 18px;
    background: rgba(243, 248, 252, 0.9);
    border: 1px solid rgba(217, 228, 237, 0.82);
}

.ticket-card-meta span {
    color: var(--text-faint);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticket-card-meta strong {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.4;
}

.status-chip,
.priority-chip,
.ticket-flag,
.status-table-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-chip {
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(18, 49, 73, 0.14);
}

.priority-chip {
    background: transparent;
    border: 1px solid currentColor;
}

.ticket-flag {
    color: #ffffff;
}

.ticket-flag-danger {
    background: linear-gradient(135deg, #c54848, #dc6767);
}

.ticket-flag-warning {
    background: linear-gradient(135deg, #c7800a, #f5a524);
}

.status-table-panel {
    border-radius: 24px;
    border: 1px solid rgba(217, 228, 237, 0.9);
    border-top: 4px solid var(--status-color, var(--primary));
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.status-table-header {
    padding: 1rem 1rem 0.9rem;
    align-items: center;
}

.status-table-title {
    justify-content: flex-start;
    align-items: center;
}

.status-table-title h2 {
    font-size: 1.05rem;
}

.status-table-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--status-color, var(--primary));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--status-color, var(--primary)) 18%, transparent);
}

.status-table-count {
    background: rgba(255, 255, 255, 0.88);
    color: var(--status-color, var(--primary));
    border: 1px solid rgba(217, 228, 237, 0.88);
}

.status-table-panel .table-wrap {
    margin: 0 1rem 1rem;
}

.empty-state {
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.94));
    border: 1px dashed rgba(51, 168, 245, 0.22);
}

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

.metric-card {
    overflow: hidden;
    min-height: 152px;
    padding: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 251, 0.94)),
        var(--surface);
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -32px -38px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(51, 168, 245, 0.2), rgba(51, 168, 245, 0.02) 64%, transparent 70%);
}

.metric-card span {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-soft);
    font-weight: 600;
}

.metric-card strong {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 2.8vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.content-grid.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.stack-column {
    display: grid;
    gap: 1rem;
}

.narrow-panel {
    max-width: 840px;
    margin: 0 auto;
}

.centered-panel {
    max-width: 720px;
    margin: 8vh auto 0;
    text-align: center;
    padding: 3rem 2rem;
}

.form-grid,
.filter-grid {
    display: grid;
    gap: 1rem;
}

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

.filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 251, 0.95));
    border: 1px solid rgba(217, 228, 237, 0.88);
}

.form-grid label,
.filter-grid label {
    display: grid;
    gap: 0.45rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.full-span {
    grid-column: 1 / -1;
}

.input,
.textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(217, 228, 237, 0.94);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

input[type="file"].input {
    padding: 0.7rem 0.8rem;
}

.textarea {
    min-height: 132px;
    resize: vertical;
}

.multi-select {
    min-height: 12rem;
}

.input:hover,
.textarea:hover,
select:hover {
    border-color: rgba(51, 168, 245, 0.28);
}

.password-field {
    position: relative;
    width: 100%;
}

.password-toggle-input {
    padding-inline-end: 3.65rem;
}

.password-field .password-toggle-input[type="password"] {
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #081d2d;
}

.password-field.is-visible .password-toggle-input {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

.password-toggle-button {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
    transform: translateY(-50%);
}

.password-toggle-button:hover {
    background: rgba(51, 168, 245, 0.08);
    color: var(--primary-deep);
    transform: translateY(-50%);
}

.password-toggle-button:active {
    transform: translateY(-50%);
}

.password-eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.password-eye-closed {
    display: none;
}

.password-field.is-visible .password-eye-open {
    display: none;
}

.password-field.is-visible .password-eye-closed {
    display: block;
}

.input:focus,
.textarea:focus,
select:focus {
    border-color: rgba(51, 168, 245, 0.44);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.checkbox-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.95));
    border: 1px solid rgba(217, 228, 237, 0.88);
    color: var(--text);
}

.checkbox-row input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.button,
button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.button,
button.button {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(51, 168, 245, 0.24);
}

.button-secondary,
button.button-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-color: rgba(217, 228, 237, 0.96);
    box-shadow: var(--shadow-sm);
}

.button-danger,
button.button-danger {
    background: linear-gradient(135deg, #cc4e4e, var(--danger));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(208, 85, 85, 0.22);
}

.button-small,
button.button-small {
    min-height: 38px;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.88rem;
}

.button-row-compact {
    gap: 0.45rem;
}

.button:hover,
.button-secondary:hover,
button:hover {
    transform: translateY(-2px);
}

.button:active,
.button-secondary:active,
button:active {
    transform: translateY(0);
}

.link-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    box-shadow: none;
}

.table-wrap {
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(217, 228, 237, 0.88);
    background: rgba(255, 255, 255, 0.72);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid rgba(217, 228, 237, 0.8);
    text-align: start;
    vertical-align: top;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(241, 247, 251, 0.96);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody tr:hover td {
    background: rgba(232, 246, 255, 0.48);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table small {
    display: inline-block;
    margin-top: 0.18rem;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.bulk-bar {
    margin-bottom: 1rem;
}

.bulk-bar .input,
.bulk-bar select {
    min-width: 180px;
}

.detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.detail-card {
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 251, 0.95));
}

.detail-card span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.detail-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
}

.detail-block + .detail-block {
    margin-top: 1.5rem;
}

.timeline {
    display: grid;
    gap: 0.9rem;
}

.timeline.compact {
    gap: 0.75rem;
}

.timeline-item {
    position: relative;
    padding: 1rem 1rem 1rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 251, 0.95));
    border: 1px solid rgba(217, 228, 237, 0.84);
    border-inline-start: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset-block-start: 1.18rem;
    inset-inline-start: -7px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(51, 168, 245, 0.14);
}

.timeline-item.internal {
    border-inline-start-color: #7d8fa0;
}

.timeline-item.internal::before {
    background: #7d8fa0;
    box-shadow: 0 0 0 4px rgba(125, 143, 160, 0.14);
}

.timeline-item p,
.list-card p,
.folder-card small {
    margin-top: 0.4rem;
}

.tag-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid rgba(51, 168, 245, 0.12);
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.flash-success {
    background: rgba(23, 161, 116, 0.1);
    border-color: rgba(23, 161, 116, 0.18);
    color: var(--success);
}

.flash-danger {
    background: rgba(208, 85, 85, 0.1);
    border-color: rgba(208, 85, 85, 0.16);
    color: var(--danger);
}

.flash-warning {
    background: rgba(245, 165, 36, 0.12);
    border-color: rgba(245, 165, 36, 0.18);
    color: #b17300;
}

.flash-info {
    background: rgba(51, 168, 245, 0.1);
    border-color: rgba(51, 168, 245, 0.18);
    color: var(--primary-deep);
}

.list-stack,
.compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.list-stack li,
.compact-list li,
.list-card,
.folder-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 251, 0.95));
    border: 1px solid rgba(217, 228, 237, 0.84);
    box-shadow: var(--shadow-sm);
}

.compact-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-card.unread {
    border-color: rgba(51, 168, 245, 0.24);
    background: linear-gradient(180deg, rgba(232, 246, 255, 0.96), rgba(244, 248, 251, 0.96));
}

.folder-card {
    display: grid;
    gap: 0.4rem;
}

.folder-card span {
    color: var(--primary-deep);
    font-weight: 800;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.68rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 228, 237, 0.94);
    box-shadow: var(--shadow-sm);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    border-color: transparent;
}

.chart-list {
    display: grid;
    gap: 0.9rem;
}

.chart-row {
    display: grid;
    gap: 0.42rem;
}

.chart-row header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
}

.chart-bar-track,
.upload-progress {
    overflow: hidden;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e9f2f8, #dfeaf2);
}

.chart-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #6ccfff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #6ccfff);
    transition: width 0.2s ease;
}

.upload-progress-inline {
    margin-top: -0.15rem;
    margin-bottom: 0.35rem;
}

.code-block {
    width: 100%;
    overflow-wrap: anywhere;
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(51, 168, 245, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.94));
    font-family: "Consolas", "Courier New", monospace;
}

.toast-stack {
    display: grid;
    gap: 0.65rem;
}

.page-toast-stack {
    width: min(920px, calc(100vw - var(--sidebar-width) - 2rem));
    margin: 0 auto;
    pointer-events: auto;
}

.toast {
    width: 100%;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1rem 1.2rem;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(18, 49, 73, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    border-inline-start: 5px solid rgba(255, 255, 255, 0.58);
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.toast span {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
    line-height: 1.55;
}

.toast-info,
.toast-success {
    background: linear-gradient(135deg, rgba(13, 110, 175, 0.95), rgba(51, 168, 245, 0.92));
}

.toast-warning {
    background: linear-gradient(135deg, rgba(191, 122, 6, 0.96), rgba(245, 165, 36, 0.92));
}

.toast-danger,
.toast-alert {
    background: linear-gradient(135deg, rgba(173, 46, 46, 0.96), rgba(208, 85, 85, 0.92));
}

.toast.closing {
    opacity: 0;
    transform: translateY(12px);
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(118, 155, 182, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 155, 182, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.75;
    pointer-events: none;
}

.auth-aurora {
    position: fixed;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.72;
    pointer-events: none;
    animation: auroraDrift 14s ease-in-out infinite alternate;
}

.auth-aurora-one {
    inset: 3% auto auto 4%;
    width: 360px;
    height: 360px;
    background: rgba(80, 192, 255, 0.26);
}

.auth-aurora-two {
    inset: auto 3% 5% auto;
    width: 380px;
    height: 380px;
    background: rgba(17, 116, 184, 0.18);
    animation-delay: -3s;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 44px 100px rgba(18, 49, 73, 0.16);
    backdrop-filter: blur(24px);
}

.auth-shell-minimal {
    width: min(520px, 100%);
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    background:
        linear-gradient(150deg, rgba(9, 44, 74, 0.98), rgba(14, 92, 149, 0.94) 58%, rgba(58, 182, 255, 0.82)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
    color: #f8fcff;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.auth-brand-panel::before {
    inset: -80px auto auto -120px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(12px);
}

.auth-brand-panel::after {
    inset: auto -80px -80px auto;
    width: 260px;
    height: 260px;
    background: rgba(199, 238, 255, 0.12);
    filter: blur(8px);
}

.auth-brand-lockup,
.auth-signal-grid,
.auth-feature-list,
.auth-toolbar,
.lede {
    position: relative;
    z-index: 1;
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.auth-brand-panel h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.06;
}

.lede {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(248, 252, 255, 0.84);
}

.auth-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.auth-signal-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 30px rgba(7, 27, 43, 0.12);
    backdrop-filter: blur(14px);
    animation: floaty 7s ease-in-out infinite;
}

.auth-signal-card:nth-child(2) {
    animation-delay: -1.8s;
}

.auth-signal-card:nth-child(3) {
    animation-delay: -3.2s;
}

.auth-signal-card strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.auth-signal-card span {
    color: rgba(248, 252, 255, 0.82);
    font-size: 0.9rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.8rem;
    display: grid;
    gap: 0.85rem;
}

.auth-feature-list li {
    position: relative;
    padding-inline-start: 1.5rem;
    color: rgba(248, 252, 255, 0.86);
}

.auth-feature-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.45rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #a8e6ff;
    box-shadow: 0 0 0 6px rgba(168, 230, 255, 0.12);
}

.auth-card-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.4rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.86), rgba(244, 249, 253, 0.96));
}

.auth-card-panel-minimal {
    display: block;
    width: 100%;
    padding: 2rem 1.7rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.auth-card {
    width: min(490px, 100%);
}

.auth-card-rich {
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.94));
    border: 1px solid rgba(217, 228, 237, 0.94);
    animation: cardLift 0.8s ease both;
}

.auth-card-rich::after {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(51, 168, 245, 0.16), transparent 68%);
    animation: pulseSoft 8s ease-in-out infinite;
    pointer-events: none;
}

.auth-card-header,
.auth-card-status,
.auth-form-grid,
.muted-link-row,
.auth-card-footer,
.inline-form {
    position: relative;
    z-index: 1;
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.58rem 0.86rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #61cfff);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 30px rgba(51, 168, 245, 0.24);
}

.auth-card-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
}

.auth-card-status span,
.auth-card-footer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(51, 168, 245, 0.14);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-form-grid {
    gap: 0.95rem;
}

.auth-form-grid .button,
.inline-form .button {
    width: 100%;
}

.muted-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.auth-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.inline-form {
    margin-top: 0.95rem;
}

.auth-toolbar-floating {
    position: fixed;
    inset-block-start: 1.1rem;
    inset-inline-end: 1.1rem;
    z-index: 4;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.auth-brand-lockup-minimal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.45rem;
    text-align: center;
}

.auth-logo-frame-minimal {
    margin: 0 auto;
}

.auth-brand-lockup-minimal h1 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.auth-brand-tagline {
    margin-top: 0.5rem;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

.auth-login-form {
    display: grid;
    gap: 1rem;
}

.auth-card-compact {
    width: min(440px, 100%);
    margin: 0 auto;
    padding-top: 1.3rem;
}

.auth-inline-alerts {
    margin-bottom: 0.9rem;
}

.auth-inline-alerts .toast {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(18, 49, 73, 0.16);
}

.auth-login-link-row {
    justify-content: flex-start;
    margin-top: 0;
}

body.auth-body.auth-body-split {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.auth-body.auth-body-split::before {
    background:
        linear-gradient(rgba(118, 155, 182, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 155, 182, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.5;
}

.auth-shell.auth-shell-split {
    width: 100%;
    min-height: 100vh;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
    direction: ltr;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-showcase {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.1rem 1.4rem 2.2rem;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #f1f8fd 0%, #e6f1f8 100%);
    direction: ltr;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0 4% 0 0;
    background: linear-gradient(145deg, #6fd4ff 0%, #33a8f5 44%, #148fdc 100%);
    clip-path: polygon(0 0, 72% 0, 100% 28%, 84% 100%, 0 100%);
    box-shadow: inset -10px 0 0 rgba(8, 91, 142, 0.18);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: 18% 17% 0 0;
    background: linear-gradient(180deg, rgba(17, 62, 91, 0.98), rgba(24, 86, 121, 0.97));
    border-top-right-radius: 240px;
    border-bottom-right-radius: 220px;
    box-shadow: 18px 0 0 rgba(8, 91, 142, 0.16);
}

.auth-showcase-brand,
.auth-showcase-identity,
.auth-showcase-copy,
.auth-stage-inner {
    position: relative;
    z-index: 1;
}

.auth-showcase-brand {
    display: block;
    align-self: flex-start;
    max-width: 150px;
}

.auth-showcase-logo {
    width: min(132px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(18, 49, 73, 0.14));
}

.auth-showcase-identity {
    display: grid;
    gap: 0.3rem;
    align-self: center;
    justify-items: center;
    margin: 0 auto;
    max-width: 360px;
    color: rgba(245, 251, 255, 0.9);
    text-align: center;
}

.auth-showcase-identity strong {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.55vw, 2.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 18px rgba(8, 51, 80, 0.18);
}

.auth-showcase-identity span {
    font-size: 0.86rem;
    line-height: 1.55;
    font-weight: 500;
    max-width: 270px;
}

.auth-showcase-copy {
    max-width: 280px;
    color: #ffffff;
    text-align: left;
    direction: ltr;
}

.auth-showcase-copy h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.08;
}

.auth-showcase-copy h1::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
}

.auth-showcase-copy p {
    margin-top: 0.65rem;
    color: rgba(246, 251, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.65;
}

.auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1.5rem, 5vw, 5rem);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    direction: ltr;
}

.auth-stage-inner {
    width: min(660px, 100%);
    display: grid;
    gap: 1.15rem;
    direction: inherit;
}

.auth-stage-mobile-brand {
    display: none;
    justify-items: start;
    gap: 0.55rem;
}

.auth-stage-mobile-copy {
    display: grid;
    gap: 0.15rem;
    justify-items: start;
}

.auth-stage-mobile-brand strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.auth-stage-mobile-brand span {
    display: block;
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 0.82rem;
    max-width: 250px;
}

.auth-stage-mobile-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.auth-stage-copy {
    margin: 0;
    max-width: 560px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.9;
}

.auth-stage .auth-card {
    width: 100%;
    padding: 1.8rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(217, 228, 237, 0.96);
    box-shadow: 0 24px 54px rgba(18, 49, 73, 0.08);
    backdrop-filter: none;
}

.auth-stage .auth-card::before,
.auth-stage .auth-card::after {
    display: none;
}

.auth-card-signin {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.42rem;
}

.auth-field-label {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-input {
    min-height: 56px;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border-color: rgba(209, 222, 232, 0.96);
    box-shadow: none;
}

.auth-input::placeholder {
    color: #9cb0bf;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(51, 168, 245, 0.22);
}

.auth-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-checkbox-row {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text-soft);
}

.auth-checkbox-row input {
    margin-top: 0;
}

.auth-inline-link {
    font-weight: 700;
}

.auth-card-mfa .button-secondary {
    width: 100%;
    border-radius: 12px;
}

.auth-inline-alerts {
    margin: 0;
}

.auth-inline-alerts .toast {
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(18, 49, 73, 0.12);
}

.auth-toolbar-floating {
    inset-block-start: 1.2rem;
    inset-inline-end: 1.25rem;
    z-index: 5;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 228, 237, 0.94);
    box-shadow: 0 14px 28px rgba(18, 49, 73, 0.08);
}

.auth-toolbar-floating .lang-chip {
    min-width: 56px;
    min-height: 40px;
    padding: 0.56rem 0.85rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
}

.auth-toolbar-floating .lang-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
}

.rtl .auth-showcase,
.rtl .auth-stage,
.rtl .auth-stage-inner {
    direction: rtl;
}

.rtl .auth-showcase-brand {
    align-self: flex-end;
}

.rtl .auth-showcase-identity {
    justify-items: center;
    text-align: center;
}

.rtl .auth-showcase-copy {
    margin-inline-start: auto;
    text-align: right;
    direction: rtl;
}

.rtl .auth-showcase-copy h1::after {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.rtl .auth-stage-mobile-brand {
    justify-items: end;
    text-align: right;
}

.rtl .auth-stage-mobile-copy {
    justify-items: end;
}

.rtl .auth-stage-copy,
.rtl .auth-card-signin,
.rtl .auth-field,
.rtl .auth-field-label,
.rtl .auth-card-header,
.rtl .auth-card-status {
    text-align: right;
}

.rtl .auth-login-meta {
    flex-direction: row-reverse;
}

.rtl .auth-toolbar-floating {
    inset-inline-start: 1.25rem;
    inset-inline-end: auto;
}

.bilingual-entry-note,
.field-help {
    display: block;
    margin-top: 0.38rem;
    color: var(--text-faint);
    font-size: 0.84rem;
    line-height: 1.55;
}

.telegram-link-box {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(168, 189, 204, 0.45);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 250, 253, 0.96), rgba(235, 243, 248, 0.92));
    color: var(--text-muted);
}

.telegram-link-box strong {
    color: var(--text-strong);
}

.telegram-link-box.is-linked {
    border-color: rgba(32, 154, 118, 0.32);
    background: linear-gradient(180deg, rgba(239, 251, 247, 0.98), rgba(226, 245, 238, 0.94));
}

.telegram-link-box.is-pending {
    border-color: rgba(44, 142, 194, 0.28);
    background: linear-gradient(180deg, rgba(239, 248, 253, 0.98), rgba(228, 241, 249, 0.94));
}

.rtl .sidebar-nav a:hover {
    transform: translateX(-4px);
}

.rtl .notification-preview {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.rtl .notification-preview::before {
    inset-inline-start: 22px;
    inset-inline-end: auto;
}

.rtl .auth-toolbar-floating {
    inset-inline-start: 1.1rem;
    inset-inline-end: auto;
}

.sidebar-toggle {
    display: none;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 16px;
    color: var(--text);
}

@keyframes auroraDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(24px, -18px, 0) scale(1.08);
    }
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseSoft {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

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

@media (max-width: 1240px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .page-alert-region {
        inset-inline-start: 0;
        inset-inline-end: 0;
        padding: 0 1rem;
    }

    .page-toast-stack {
        width: min(920px, calc(100vw - 2rem));
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(82vw, 320px);
        height: 100vh;
        transform: translateX(-104%);
        transition: transform 0.24s ease;
        z-index: 24;
        box-shadow: 0 28px 72px rgba(10, 28, 42, 0.34);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .rtl .sidebar {
        inset: 0 0 0 auto;
        transform: translateX(104%);
    }

    .rtl .sidebar.open {
        transform: translateX(0);
    }

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

    .topbar,
    .content-area {
        padding-inline: 1.15rem;
    }

    .content-grid.two-column,
    .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .topbar {
        gap: 0.9rem;
    }

    .auth-card-panel {
        padding: 2rem;
    }

    .auth-card-panel-minimal {
        padding: 1.8rem 1.4rem;
    }
}

@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .bulk-bar {
        align-items: stretch;
    }

    .bulk-bar .input,
    .bulk-bar select,
    .bulk-bar .button {
        width: 100%;
    }

    .auth-brand-lockup {
        align-items: flex-start;
    }

    .auth-signal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .metrics-grid,
    .detail-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 1rem 0.9rem 1.5rem;
    }

    .panel,
    .metric-card,
    .detail-card,
    .folder-card,
    .list-card,
    .auth-card-rich {
        border-radius: 24px;
    }

    .topbar {
        padding: 0.9rem;
    }

    .topbar-actions,
    .language-switch {
        width: 100%;
    }

    .profile-link,
    .notification-chip,
    .topbar .lang-chip,
    .sidebar-toggle,
    .topbar-actions .button-secondary {
        width: 100%;
        justify-content: center;
    }

    .notification-preview {
        position: static;
        inset: auto;
        min-width: 0;
        max-width: none;
        margin-top: 0.85rem;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .notification-preview::before {
        display: none;
    }

    .auth-body {
        padding: 0.8rem;
    }

    .auth-card-panel {
        padding: 1.35rem;
    }

    .auth-brand-lockup {
        flex-direction: column;
        gap: 0.85rem;
    }

    .auth-logo-frame {
        width: 112px;
        height: 112px;
    }

    .auth-card-header {
        flex-direction: column;
    }

    .auth-card-status,
    .auth-card-footer,
    .muted-link-row {
        gap: 0.45rem;
    }

    .data-table {
        min-width: 680px;
    }

    .page-toast-stack {
        width: calc(100vw - 1.5rem);
    }
}

@media (max-width: 1100px) {
    .auth-shell.auth-shell-split {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: 360px;
        padding-top: 5rem;
    }

    .auth-showcase::before {
        inset: 0;
        clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
    }

    .auth-showcase::after {
        inset: 36% 12% 0 0;
        border-top-right-radius: 190px;
        border-bottom-right-radius: 150px;
    }

    .auth-stage {
        min-height: auto;
        padding: 1.75rem 1.35rem 2.5rem;
    }

    .auth-stage-mobile-brand {
        display: grid;
    }
}

@media (max-width: 760px) {
    .auth-toolbar-floating {
        inset-inline: 1rem;
        inset-block-start: 0.9rem;
        justify-content: flex-end;
    }

    .auth-showcase {
        min-height: 310px;
        padding: 4.4rem 1rem 1.4rem;
    }

    .auth-showcase-brand {
        max-width: 116px;
    }

    .auth-showcase-logo {
        width: 96px;
    }

    .auth-showcase-identity {
        max-width: 260px;
    }

    .auth-showcase-identity strong {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .auth-showcase-identity span {
        font-size: 0.76rem;
        max-width: 220px;
    }

    .auth-showcase-copy {
        max-width: 220px;
    }

    .auth-showcase-copy h1 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .auth-showcase-copy p,
    .auth-stage-copy {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .auth-stage {
        padding: 1rem 0.95rem 1.6rem;
    }

    .auth-stage .auth-card {
        padding: 1.3rem;
        border-radius: 22px;
    }

    .auth-login-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
