:root {
    --bg-app: #f4f8f2;
    --bg-app-secondary: #eef5ec;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-muted: #f7faf7;
    --surface-accent: linear-gradient(145deg, #0f172a 0%, #18212f 100%);
    --border-soft: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --text-primary: #101828;
    --text-secondary: #667085;
    --text-tertiary: #98a2b3;
    --ink: #111827;
    --green: #16a34a;
    --green-strong: #15803d;
    --green-soft: rgba(22, 163, 74, 0.12);
    --green-tint: rgba(34, 197, 94, 0.08);
    --black-soft: #0f172a;
    --blue-soft: #edf4ff;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --warning-soft: rgba(245, 158, 11, 0.14);
    --info-soft: rgba(59, 130, 246, 0.12);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.12);
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --sidebar-width: 310px;
}

html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 18%),
        linear-gradient(180deg, #f7fbf6 0%, var(--bg-app) 55%, #edf4ec 100%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 25%, transparent 85%);
    pointer-events: none;
    z-index: -1;
}

body[data-sidebar-open='true'] {
    overflow: hidden;
}

body,
.form-control,
.form-select,
.btn,
.dropdown-menu,
.table,
.card,
.metric-card,
.nav-link,
.badge,
.alert {
    font-family: 'Inter', sans-serif;
}

h1,
.h1,
.display-4,
.display-5,
.display-6,
.page-title,
.page-hero-title,
.brand-name,
.section-title,
.metric-value,
.hero-stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.text-light {
    color: var(--text-primary) !important;
}

.text-secondary,
.form-text,
.page-kicker,
.eyebrow,
.small-muted {
    color: var(--text-secondary) !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
}

.app-sidebar-backdrop {
    display: none;
}

.sidebar {
    position: sticky;
    top: 1.25rem;
    height: calc(100vh - 2.5rem);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-right: none;
    box-shadow: var(--shadow-lg);
    border-radius: 32px;
    overflow: hidden;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.2rem;
    gap: 1.1rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-close {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-primary);
}

.sidebar-brand {
    padding: 0.75rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 244, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    font-size: 0.86rem;
    line-height: 1.35;
}

.sidebar-status {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: var(--surface-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar-status-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-status-value {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
}

.sidebar-section-label {
    padding: 0 0.85rem;
    margin: 0.5rem 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 700;
}

.sidebar .nav-link {
    position: relative;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: translateX(4px);
    color: var(--ink);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.88));
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.nav-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.05);
    color: inherit;
    transition: inherit;
    flex-shrink: 0;
}

.sidebar .nav-link.active .nav-link-icon {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar .badge {
    background: linear-gradient(135deg, var(--green), #22c55e) !important;
    color: white !important;
    border: none;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(248, 250, 248, 0.95);
    border: 1px solid var(--border-soft);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), #1f2937);
    color: white;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topbar {
    position: sticky;
    top: 1.25rem;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    padding: 1rem 1.1rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-start,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle,
.btn-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.mobile-nav-toggle:hover,
.btn-icon:hover,
.profile-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-nav-toggle {
    display: none;
}

.page-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 0.55rem 0.45rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-meta {
    line-height: 1.2;
}

.content-wrapper {
    padding: 0.5rem 0 4rem;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-shell > * {
    animation: pageRise 480ms ease both;
}

.page-shell > *:nth-child(2) {
    animation-delay: 40ms;
}

.page-shell > *:nth-child(3) {
    animation-delay: 80ms;
}

.page-shell > *:nth-child(4) {
    animation-delay: 120ms;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 245, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-lg);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 65%);
    pointer-events: none;
}

.page-hero-dark {
    background: linear-gradient(135deg, #0f172a 0%, #111827 60%, #0d1a13 100%);
    color: white;
}

.page-hero-dark .page-hero-title,
.page-hero-dark .hero-stat-value,
.page-hero-dark .hero-stat-label,
.page-hero-dark .eyebrow,
.page-hero-dark p,
.page-hero-dark .text-secondary {
    color: white !important;
}

.page-hero-dark .text-secondary {
    opacity: 0.72;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero-title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0.35rem 0 0.55rem;
}

.page-hero-subtitle {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.page-hero-dark .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hero-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-top: 1.35rem;
    position: relative;
    z-index: 1;
}

.hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-sm);
}

.page-hero-dark .hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.hero-stat-value,
.metric-card .metric-value {
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-stat-label,
.metric-card .metric-label,
.section-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.card,
.metric-card,
.table-card,
.login-panel,
.notification-menu,
.dropdown-menu,
.list-group-item,
.alert,
.empty-state-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text-primary);
}

.card,
.metric-card,
.interactive-card,
.list-group-item,
.notification-item,
.dashboard-link-card,
.app-table tbody tr {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.metric-card:hover,
.interactive-card:hover,
.list-group-item:hover,
.notification-item:hover,
.dashboard-link-card:hover,
.app-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1) !important;
}

.card-dark {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.95)) !important;
    color: white;
}

.card-dark .text-secondary,
.card-dark .section-label,
.card-dark .metric-label {
    color: rgba(255, 255, 255, 0.68) !important;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.section-copy {
    color: var(--text-secondary);
    margin: 0.35rem 0 0;
}

.info-grid,
.overview-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.info-tile {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
}

.info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 0.45rem;
}

.info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.table-responsive {
    border-radius: 22px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: rgba(15, 23, 42, 0.06);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    vertical-align: middle;
}

.table thead th {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom-width: 1px;
    background: rgba(17, 24, 39, 0.03);
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.55);
}

.table tbody tr + tr td {
    border-top-color: rgba(15, 23, 42, 0.06);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
}

.form-label {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.form-control,
.form-select,
.form-check-input {
    background: rgba(248, 250, 248, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 16px !important;
    min-height: 50px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 0 0 0.24rem rgba(34, 197, 94, 0.14) !important;
    background: #ffffff !important;
}

.form-control::placeholder {
    color: #98a2b3;
}

.invalid-feedback {
    font-size: 0.82rem;
}

.btn {
    border-radius: 16px;
    font-weight: 700;
    padding: 0.82rem 1.18rem;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.btn-sm {
    border-radius: 14px;
    padding: 0.62rem 0.95rem;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink), #1f2937) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.2);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 450ms ease;
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0b1220, #101827) !important;
    transform: translateY(-1px);
}

.btn-outline-light,
.btn-surface,
.btn-outline-info,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: var(--ink) !important;
}

.btn-outline-light:hover,
.btn-surface:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
    background: rgba(17, 24, 39, 0.04) !important;
    color: var(--ink) !important;
}

.alert {
    padding: 1rem 1.15rem;
}

.alert-success {
    background: rgba(240, 253, 244, 0.9) !important;
    color: #166534;
}

.alert-danger,
.alert-warning {
    color: var(--text-primary);
}

.announcement-strip {
    padding-top: 0.2rem;
}

.announcement-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow-lg);
    color: white;
}

.announcement-card .eyebrow,
.announcement-card .text-secondary {
    color: rgba(255, 255, 255, 0.72) !important;
}

.status-pill,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-info,
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.54rem 0.82rem;
    border-radius: 999px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    border: 1px solid transparent;
}

.status-pill,
.badge-soft-info {
    background: var(--info-soft);
    color: #1d4ed8;
}

.badge-soft-success {
    background: var(--green-soft);
    color: #166534;
}

.badge-soft-warning {
    background: var(--warning-soft);
    color: #b45309;
}

.badge-soft-danger {
    background: var(--danger-soft);
    color: #b91c1c;
}

.badge.text-bg-secondary,
.badge.text-bg-danger,
.badge.text-bg-warning,
.badge.text-bg-success {
    background: rgba(17, 24, 39, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

.notification-menu {
    width: min(420px, 92vw);
    padding: 0.55rem;
}

.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
}

.list-group-item {
    padding: 0.95rem 1rem;
    border: none !important;
    border-radius: 18px !important;
    margin-bottom: 0.4rem;
}

.notification-item,
.feed-item,
.timeline-item,
.link-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(248, 250, 248, 0.92);
    border: 1px solid var(--border-soft);
}

.timeline-item {
    border-left: 4px solid rgba(22, 163, 74, 0.22);
    padding-left: 1rem;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    border-radius: 22px;
    background: rgba(248, 250, 248, 0.82);
    border: 1px dashed rgba(15, 23, 42, 0.1);
}

.task-progress {
    height: 10px;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.task-progress::-webkit-progress-bar {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
}

.task-progress::-webkit-progress-value,
.task-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #111827 0%, #16a34a 100%);
    border-radius: 999px;
}

.chart-panel {
    min-height: 360px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-panel {
    width: min(1180px, 100%);
    overflow: hidden;
    border-radius: 36px !important;
}

.login-panel-brand {
    position: relative;
    background: linear-gradient(160deg, #0f172a 0%, #111827 55%, #112015 100%) !important;
    color: white;
}

.login-panel-brand::after {
    content: "";
    position: absolute;
    inset: auto -15% -22% auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.26), transparent 65%);
}

.auth-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.auth-mini-stat {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-mini-stat .small,
.auth-mini-stat .text-secondary {
    color: rgba(255, 255, 255, 0.64) !important;
}

.auth-visual-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-visual-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-form-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff) !important;
}

.error-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.error-card {
    width: min(680px, 100%);
    padding: 2rem;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 16vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

.flash-stack {
    position: sticky;
    top: 6.9rem;
    z-index: 12;
}

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

@media (max-width: 1199.98px) {
    .app-shell {
        gap: 1rem;
        padding: 1rem;
    }

    .page-hero {
        padding: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        z-index: 40;
    }

    body[data-sidebar-open='true'] .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        top: 1rem;
        left: 1rem;
        width: min(90vw, 340px);
        height: calc(100vh - 2rem);
        z-index: 50;
        transform: translateX(-115%);
        transition: transform 240ms ease;
    }

    body[data-sidebar-open='true'] .sidebar {
        transform: translateX(0);
    }

    .sidebar-close,
    .mobile-nav-toggle {
        display: grid;
    }

    .topbar {
        top: 1rem;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-start,
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-pill {
        flex: 1;
        justify-content: space-between;
    }

    .content-wrapper {
        padding-top: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .app-shell {
        padding: 0.75rem;
    }

    .topbar {
        border-radius: 24px;
        padding: 0.9rem;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .page-hero,
    .card,
    .metric-card,
    .login-panel,
    .sidebar,
    .announcement-card {
        border-radius: 22px !important;
    }

    .page-hero-title {
        font-size: 1.9rem;
    }

    .hero-stat-strip,
    .overview-grid,
    .info-grid,
    .auth-visual-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table > :not(caption) > * > * {
        padding: 0.85rem 0.75rem;
    }

    .btn,
    .btn-sm {
        width: 100%;
    }

    .hero-actions,
    .section-header,
    .topbar-actions {
        width: 100%;
    }

    .profile-pill {
        border-radius: 22px;
        align-items: center;
    }

    .login-page {
        padding: 1rem;
    }
}
