:root {
    --bg: #f3eee4;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --surface-muted: rgba(247, 241, 232, 0.72);
    --border: rgba(31, 51, 62, 0.1);
    --text: #17303b;
    --muted: #61737c;
    --primary: #0f7a78;
    --primary-dark: #0b5a58;
    --primary-soft: rgba(15, 122, 120, 0.1);
    --accent: #c87a37;
    --accent-soft: rgba(200, 122, 55, 0.12);
    --warning: #e6a748;
    --danger: #b34747;
    --success: #24755d;
    --shadow: 0 24px 70px rgba(24, 49, 59, 0.12);
    --shadow-soft: 0 14px 36px rgba(24, 49, 59, 0.08);
    --radius: 28px;
    --radius-small: 16px;
    --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(209, 123, 56, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 122, 120, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
    background-attachment: fixed;
}

body {
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body.theme-admin {
    background:
        linear-gradient(180deg, #f3f6fa 0%, #edf2f7 100%);
}

body.theme-admin::before,
body.theme-admin::after {
    content: none;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(14px);
}

body::before {
    width: 280px;
    height: 280px;
    top: 8%;
    left: -80px;
    background: rgba(255, 214, 173, 0.28);
}

body::after {
    width: 340px;
    height: 340px;
    right: -110px;
    bottom: 12%;
    background: rgba(124, 196, 192, 0.16);
}

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

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

.shell {
    max-width: 1200px;
    margin: 0 auto;
}

.shell--admin {
    max-width: 1440px;
}

.login-screen {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    position: relative;
}

.login-card,
.card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.login-card::before,
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(200, 122, 55, 0.9), rgba(15, 122, 120, 0.9), rgba(36, 117, 93, 0.8));
    z-index: -1;
}

.login-card::after,
.card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 122, 120, 0.08), transparent 70%);
    z-index: -1;
}

.login-card {
    width: min(100%, 520px);
    padding: 36px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.brand-mark__line {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.brand-mark p {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

h2 {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.stack-form,
.grid-form {
    display: grid;
    gap: 18px;
}

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

.compact-form {
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

label span {
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52656d;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(24, 49, 59, 0.16);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    padding: 15px 16px;
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 122, 120, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 122, 120, 0.12), 0 10px 22px rgba(15, 122, 120, 0.08);
    background: white;
}

textarea {
    resize: vertical;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(24, 49, 59, 0.12);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.button--secondary {
    background: linear-gradient(135deg, rgba(215, 143, 83, 0.18), rgba(200, 122, 55, 0.1));
    color: #8a4f1f;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 49, 59, 0.08);
    color: var(--text);
}

.button--small {
    padding: 10px 14px;
    font-size: 0.88rem;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.theme-user .app-header {
    padding: 28px 30px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(250, 245, 237, 0.86)),
        linear-gradient(135deg, rgba(15, 122, 120, 0.08), rgba(200, 122, 55, 0.08));
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.theme-user .app-header h1 {
    margin-bottom: 0;
}

.app-header__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
}

.app-header__eyebrow {
    margin-bottom: 0;
}

.app-header__headline {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.app-header__headline h1,
.app-header__status {
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.profile-menu__avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(24, 49, 59, 0.16);
}

.profile-menu__dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--warning);
}

.profile-menu__content {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(260px, 82vw);
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 49, 59, 0.12);
    box-shadow: 0 28px 48px rgba(24, 49, 59, 0.16);
    z-index: 20;
}

.profile-menu__identity {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(24, 49, 59, 0.08);
}

.profile-menu__identity span {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-word;
}

.profile-menu__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
}

.profile-menu__link:hover,
.profile-menu__link.is-active {
    background: rgba(15, 122, 120, 0.08);
    color: var(--primary);
}

.profile-menu__logout {
    margin: 0;
}

.profile-menu__logout-button {
    width: 100%;
}

.dashboard {
    display: grid;
    gap: 20px;
    padding-bottom: 98px;
}

.mobile-dashboard {
    gap: 18px;
}

.card {
    padding: 26px;
}

.card--highlight {
    background:
        linear-gradient(135deg, rgba(15, 122, 120, 0.08), rgba(209, 123, 56, 0.08)),
        var(--surface);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.user-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.user-stat-card {
    display: grid;
    gap: 10px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 235, 0.84));
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: var(--shadow-soft);
}

.user-stat-card__label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.user-stat-card__value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.user-stat-card__note {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 49, 59, 0.08);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-badge--success {
    background: rgba(36, 117, 93, 0.12);
    color: var(--success);
}

.status-badge--warning {
    background: rgba(230, 167, 72, 0.18);
    color: #9b5f14;
}

.alert {
    padding: 15px 17px;
    border-radius: var(--radius-small);
    margin-bottom: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert--success {
    background: rgba(36, 117, 93, 0.12);
    border-color: rgba(36, 117, 93, 0.18);
    color: var(--success);
}

.alert--warning {
    background: rgba(230, 167, 72, 0.16);
    border-color: rgba(230, 167, 72, 0.24);
    color: #8f5712;
}

.alert--error {
    background: rgba(179, 71, 71, 0.1);
    border-color: rgba(179, 71, 71, 0.18);
    color: var(--danger);
}

.section-title {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    padding-top: 10px;
}

.section-title--tight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reference-table {
    display: grid;
    gap: 12px;
}

.reference-table__header,
.reference-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 140px minmax(200px, 1fr) minmax(180px, 1fr) minmax(220px, 1.4fr);
}

.reference-table__header {
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reference-list {
    display: grid;
    gap: 12px;
}

.reference-row {
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.reference-row label {
    margin: 0;
}

.reference-row__meta {
    display: grid;
    gap: 10px;
    align-self: center;
}

.reference-row__title {
    align-self: center;
    font-weight: 800;
    color: var(--text);
}

.reference-row__remove {
    justify-self: start;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.checkbox-row input {
    width: auto;
    margin-top: 3px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 20px;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(24, 49, 59, 0.08);
    vertical-align: top;
}

th {
    color: #5d6f78;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(243, 237, 228, 0.72);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.26);
}

tbody tr:hover {
    background: rgba(15, 122, 120, 0.05);
}

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

.detail-grid > div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(24, 49, 59, 0.035);
    border: 1px solid rgba(24, 49, 59, 0.06);
}

.subsection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 49, 59, 0.08);
}

.tab-panels {
    display: grid;
    gap: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: grid;
    gap: 20px;
}

.mobile-tabbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: min(100%, 560px);
    padding: 10px;
    background: rgba(18, 34, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(24, 49, 59, 0.26);
    backdrop-filter: blur(16px);
}

.mobile-tabbar a {
    text-align: center;
    padding: 14px 12px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.mobile-tabbar a.is-active {
    background: linear-gradient(135deg, rgba(209, 123, 56, 0.95), rgba(15, 122, 120, 0.95));
    color: white;
}

.admin-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 24px;
    min-height: calc(100vh - 48px);
}

.admin-sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 24px 18px 18px;
    overflow: auto;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.admin-sidebar__brand {
    display: grid;
    gap: 12px;
}

.admin-sidebar__brand-mark {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.admin-sidebar__logo {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #eff6ff;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.22);
}

.admin-sidebar__brand h2 {
    font-family: var(--font-body);
    font-size: 1.16rem;
    margin-bottom: 6px;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-sidebar__brand p:last-child {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.55;
}

.admin-sidebar__overline,
.admin-sidebar__section-title,
.admin-sidebar__label,
.admin-topbar__chip-label,
.admin-overview-card__label,
.metric-card__label,
.admin-user-kpi__label,
.admin-user-meta > div span {
    color: #8b9bb2;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.admin-sidebar__section {
    display: grid;
    gap: 12px;
}

.admin-sidebar__section-title {
    padding-inline: 10px;
}

.admin-sidebar__nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar__link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: #475569;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.admin-sidebar__link:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    border-color: #e6eef8;
}

.admin-sidebar__link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #4c9cff, #3182f6);
    border-color: transparent;
    box-shadow: 0 18px 28px rgba(76, 156, 255, 0.24);
}

.admin-sidebar__icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f7fc;
    overflow: hidden;
}

.admin-sidebar__icon::before,
.admin-sidebar__icon::after {
    content: "";
    position: absolute;
}

.admin-sidebar__icon--applications::before {
    inset: 10px 11px 18px;
    background: #8b9bb2;
    border-radius: 4px;
    box-shadow: 0 8px 0 #8b9bb2, 0 16px 0 #8b9bb2;
}

.admin-sidebar__icon--references::before {
    left: 10px;
    top: 11px;
    width: 20px;
    height: 14px;
    border: 2px solid #8b9bb2;
    border-radius: 8px;
}

.admin-sidebar__icon--references::after {
    left: 16px;
    top: 16px;
    width: 8px;
    height: 4px;
    background: #8b9bb2;
    border-radius: 999px;
}

.admin-sidebar__icon--users::before {
    left: 10px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b9bb2;
    box-shadow: 12px 0 0 #8b9bb2;
}

.admin-sidebar__icon--users::after {
    left: 8px;
    bottom: 10px;
    width: 22px;
    height: 8px;
    border-radius: 999px 999px 6px 6px;
    border: 2px solid #8b9bb2;
    border-top: 0;
}

.admin-sidebar__text {
    display: grid;
    gap: 3px;
}

.admin-sidebar__text strong {
    font-size: 0.96rem;
}

.admin-sidebar__text small {
    color: #8b9bb2;
    font-size: 0.8rem;
}

.admin-sidebar__count {
    min-width: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    background: #f3f7fc;
}

.admin-sidebar__link.is-active .admin-sidebar__icon,
.admin-sidebar__link.is-active .admin-sidebar__count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.admin-sidebar__link.is-active .admin-sidebar__text small {
    color: rgba(255, 255, 255, 0.82);
}

.admin-sidebar__link.is-active .admin-sidebar__icon--applications::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--references::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--references::after,
.admin-sidebar__link.is-active .admin-sidebar__icon--users::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--users::after {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 0 #ffffff, 0 16px 0 #ffffff;
}

.admin-sidebar__link.is-active .admin-sidebar__icon--references::before {
    box-shadow: none;
}

.admin-sidebar__summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-sidebar__summary-card,
.admin-sidebar__support,
.admin-sidebar__footer {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-sidebar__summary-card strong,
.admin-sidebar__support strong {
    font-size: 1.35rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-sidebar__summary-card span,
.admin-sidebar__support p,
.admin-sidebar__footer span:last-child {
    color: #64748b;
    margin-bottom: 0;
}

.admin-sidebar__footer {
    margin-top: auto;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f8fc 100%);
}

.admin-main {
    display: grid;
    align-content: start;
    gap: 18px;
}

.admin-topbar {
    position: sticky;
    top: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e4ebf5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.admin-topbar__left,
.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar__right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-topbar__breadcrumb {
    margin-bottom: 8px;
    color: #7b8ca5;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.admin-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-icon-button:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    border-color: #d1dced;
}

.admin-icon-button__badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #fb7185;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.admin-icon--menu::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 2px;
    background: #7b8ca5;
    box-shadow: 0 5px 0 #7b8ca5, 0 10px 0 #7b8ca5;
}

.admin-icon--grid::before {
    content: "";
    position: absolute;
    inset: 2px;
    background:
        linear-gradient(#8b9bb2 0 0) 0 0 / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 100% 0 / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 0 100% / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 100% 100% / 5px 5px no-repeat;
}

.admin-icon--search::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #8b9bb2;
    border-radius: 50%;
}

.admin-icon--search::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 6px;
    height: 2px;
    background: #8b9bb2;
    transform: rotate(45deg);
    transform-origin: center;
}

.admin-icon--moon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 4px 0 0 0 #8b9bb2;
}

.admin-icon--bell::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 10px;
    height: 11px;
    border: 2px solid #8b9bb2;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.admin-icon--bell::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 8px;
    height: 2px;
    background: #8b9bb2;
    box-shadow: 3px 4px 0 -1px #8b9bb2;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 290px;
    height: 44px;
    padding: 0 15px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-search input {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-search input:focus {
    box-shadow: none;
}

.admin-topbar__chip {
    display: grid;
    gap: 4px;
    padding: 11px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-topbar__chip strong {
    color: #0f172a;
}

.admin-topbar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-topbar__profile div {
    display: grid;
    gap: 4px;
}

.admin-topbar__profile span:last-child {
    color: #64748b;
    font-size: 0.88rem;
}

.admin-topbar__avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-topbar__logout {
    min-height: 44px;
    padding-inline: 18px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
    gap: 18px;
}

.admin-overview-card,
.admin-overview-side__card,
.metric-card,
.admin-card {
    background: #ffffff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.admin-overview-card {
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
}

.admin-overview-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-overview-card__header h1 {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    color: #0f172a;
}

.admin-overview-card__header .muted {
    max-width: 680px;
}

.admin-overview-card__tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f5f8fd;
    border: 1px solid #e6eef8;
}

.admin-overview-card__tabs span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-overview-card__tabs .is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.admin-overview-card__body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 24px;
    align-items: end;
}

.admin-overview-card__summary {
    display: grid;
    gap: 14px;
}

.admin-overview-card__value {
    font-size: clamp(2.7rem, 6vw, 4rem);
    line-height: 0.95;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.admin-overview-card__note {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
}

.admin-overview-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-overview-mini-stat {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-overview-mini-stat span {
    color: #7b8ca5;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-overview-mini-stat strong {
    font-size: 1.35rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-overview-card__visual {
    min-width: 0;
}

.admin-overview-chart {
    position: relative;
    min-height: 308px;
    display: grid;
    align-items: end;
    padding: 24px 18px 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98)),
        linear-gradient(135deg, rgba(76, 156, 255, 0.12), rgba(56, 189, 248, 0.08));
    border: 1px solid #dbeafe;
    overflow: hidden;
}

.admin-overview-chart::before {
    content: "";
    position: absolute;
    inset: 24px 18px 60px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 20% 100%;
}

.admin-overview-chart__lines {
    position: absolute;
    inset: 42px 28px 78px;
    pointer-events: none;
}

.admin-overview-chart__line {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    border-radius: 999px;
    opacity: 0.6;
}

.admin-overview-chart__line--primary {
    bottom: 18px;
    background:
        linear-gradient(120deg,
            transparent 0 10%,
            #4c9cff 10.5% 12.5%,
            transparent 13% 28%,
            #4c9cff 28.5% 30.5%,
            transparent 31% 49%,
            #4c9cff 49.5% 51.5%,
            transparent 52% 70%,
            #4c9cff 70.5% 72.5%,
            transparent 73%);
}

.admin-overview-chart__line--secondary {
    bottom: 44px;
    background:
        linear-gradient(110deg,
            transparent 0 8%,
            rgba(148, 163, 184, 0.75) 8.5% 10.5%,
            transparent 11% 26%,
            rgba(148, 163, 184, 0.75) 26.5% 28.5%,
            transparent 29% 47%,
            rgba(148, 163, 184, 0.75) 47.5% 49.5%,
            transparent 50% 68%,
            rgba(148, 163, 184, 0.75) 68.5% 70.5%,
            transparent 71%);
}

.admin-overview-chart__bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 210px;
}

.admin-overview-chart__bars span {
    display: block;
    width: 100%;
    height: var(--bar-height);
    border-radius: 999px 999px 14px 14px;
    background: linear-gradient(180deg, rgba(76, 156, 255, 0.94), rgba(76, 156, 255, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-overview-chart__bars span:nth-child(even) {
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.92), rgba(226, 232, 240, 0.42));
}

.admin-overview-chart__labels {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.admin-overview-side {
    display: grid;
    gap: 14px;
}

.admin-overview-side__card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 26px;
}

.admin-overview-side__label {
    color: #7b8ca5;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.admin-overview-side__value {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.admin-overview-side__card p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
}

.admin-overview-side__card:nth-child(1) {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.admin-overview-side__card:nth-child(2) {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.admin-overview-side__card:nth-child(3) {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    border-radius: 28px;
    overflow: hidden;
}

.metric-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(76, 156, 255, 0.16);
}

.metric-card__menu {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8b9bb2;
    box-shadow: 0 -7px 0 #8b9bb2, 0 7px 0 #8b9bb2;
}

.metric-card__value {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 0.95;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.metric-card__note {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.55;
}

.metric-card__spark {
    align-self: end;
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 68px;
    margin-top: auto;
}

.metric-card__spark span {
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(76, 156, 255, 0.96), rgba(76, 156, 255, 0.26));
}

.metric-card__spark span:nth-child(1) {
    height: 34%;
}

.metric-card__spark span:nth-child(2) {
    height: 56%;
}

.metric-card__spark span:nth-child(3) {
    height: 72%;
}

.metric-card__spark span:nth-child(4) {
    height: 48%;
}

.metric-card__spark span:nth-child(5) {
    height: 64%;
}

.metric-card:nth-child(1) {
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}

.metric-card:nth-child(1) .metric-card__icon,
.metric-card:nth-child(1) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.92), rgba(244, 114, 182, 0.26));
}

.metric-card:nth-child(2) {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.metric-card:nth-child(2) .metric-card__icon,
.metric-card:nth-child(2) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.92), rgba(139, 92, 246, 0.24));
}

.metric-card:nth-child(3) {
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
}

.metric-card:nth-child(3) .metric-card__icon,
.metric-card:nth-child(3) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.92), rgba(45, 212, 191, 0.24));
}

.admin-page-stack {
    display: grid;
    gap: 18px;
    padding-bottom: 24px;
}

.admin-workspace-grid,
.admin-users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.admin-workspace-grid.has-side {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.admin-users-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.admin-workspace-side {
    display: grid;
    gap: 18px;
}

.admin-card {
    padding: 24px;
    border-radius: 30px;
}

.admin-card--table {
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-section-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card .table-wrap {
    border-radius: 22px;
    border: 1px solid #e9eff7;
}

.admin-table {
    min-width: 100%;
}

.admin-table--users {
    min-width: 820px;
}

.admin-table--compact {
    min-width: 520px;
}

.admin-card th,
.admin-card td {
    border-bottom: 1px solid #edf2f8;
}

.admin-card th {
    padding-top: 16px;
    color: #7b8ca5;
    background: #f8fbff;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.admin-card td {
    color: #0f172a;
    background: #ffffff;
}

.admin-card tbody tr:nth-child(even) td {
    background: #ffffff;
}

.admin-card tbody tr:hover td {
    background: #f8fbff;
}

.admin-card tbody tr.is-selected td {
    background: #eef5ff;
}

.admin-card--detail .detail-grid > div,
.admin-card--detail .subsection p {
    padding: 15px 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-card--detail .detail-grid > .full-span {
    grid-column: 1 / -1;
}

.admin-table__primary {
    display: grid;
    gap: 4px;
}

.admin-table__primary strong {
    font-size: 0.95rem;
}

.admin-table__primary span {
    color: #64748b;
    font-size: 0.8rem;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #dbe7f3;
    background: #ffffff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-action-button:hover {
    transform: translateY(-1px);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-action-button--accent {
    background: #eff6ff;
}

.admin-action-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.admin-action-icon::before,
.admin-action-icon::after {
    content: "";
    position: absolute;
}

.admin-action-icon--view::before {
    inset: 2px 1px 3px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.admin-action-icon--view::after {
    width: 4px;
    height: 4px;
    left: 5px;
    top: 5px;
    border-radius: 50%;
    background: currentColor;
}

.admin-action-icon--edit::before {
    left: 2px;
    top: 8px;
    width: 10px;
    height: 2px;
    background: currentColor;
    transform: rotate(-35deg);
    transform-origin: left center;
}

.admin-action-icon--edit::after {
    right: 1px;
    top: 1px;
    width: 0;
    height: 0;
    border-left: 4px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transform: rotate(-35deg);
}

.admin-action-icon--assign::before {
    left: 1px;
    top: 5px;
    width: 12px;
    height: 2px;
    background: currentColor;
}

.admin-action-icon--assign::after {
    left: 6px;
    top: 0;
    width: 2px;
    height: 12px;
    background: currentColor;
}

.admin-user-directory,
.admin-user-detail {
    min-width: 0;
}

.admin-user-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-user-kpi,
.admin-user-meta > div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-user-kpi strong,
.admin-user-meta > div strong {
    color: #0f172a;
    font-size: 0.98rem;
    word-break: break-word;
}

.admin-user-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-user-meta__wide {
    grid-column: 1 / -1;
}

.admin-empty-state {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 320px;
    padding: 28px;
    text-align: center;
    border: 1px dashed #c8d6e6;
    border-radius: 24px;
    background: #f8fbff;
    color: #64748b;
}

.admin-empty-state h3 {
    margin-bottom: 0;
    color: #0f172a;
}

.theme-admin h1,
.theme-admin h2,
.theme-admin h3 {
    font-family: var(--font-body);
    letter-spacing: -0.02em;
}

.theme-admin .card {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid #e4ebf5;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.theme-admin .card::before,
.theme-admin .card::after {
    display: none;
}

.theme-admin .button--ghost {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    color: #0f172a;
    box-shadow: none;
}

.theme-admin .button--secondary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    box-shadow: none;
}

.theme-admin .button--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: none;
}

.theme-admin .status-badge {
    background: #eef4ff;
    color: #334155;
}

.theme-admin .status-badge--success {
    background: #dcfce7;
    color: #166534;
}

.theme-admin .status-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.theme-admin tbody tr:nth-child(even) {
    background: transparent;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card,
.theme-user .app-header,
.card,
.admin-overview-card,
.admin-overview-side__card,
.metric-card,
.admin-topbar,
.admin-sidebar {
    animation: rise-in 420ms ease both;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.is-disabled {
    opacity: 0.65;
}

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

    .admin-sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .admin-overview-grid,
    .admin-workspace-grid.has-side,
    .admin-users-layout,
    .admin-overview-card__body {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    .card-head,
    .section-title--tight {
        flex-direction: column;
    }

    .theme-user .app-header {
        position: sticky;
        top: 12px;
        z-index: 32;
        padding: 10px 14px;
        margin-bottom: 14px;
        border-radius: 18px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .user-overview {
        grid-template-columns: 1fr;
    }

    .app-header__identity {
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .app-header__eyebrow {
        display: none;
    }

    .app-header__headline {
        display: block;
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-header__headline h1 {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-header__status {
        display: none;
    }

    .header-actions {
        flex: 0 0 auto;
        align-items: center;
        gap: 0;
    }

    .profile-menu__avatar {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .profile-menu__dot {
        right: 1px;
        bottom: 1px;
        width: 10px;
        height: 10px;
    }

    .admin-overview-card__stats,
    .admin-overview-side,
    .admin-metrics,
    .admin-users-layout,
    .admin-workspace-grid.has-side,
    .admin-user-kpis,
    .admin-user-meta,
    .admin-sidebar__summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .admin-topbar,
    .admin-overview-card,
    .admin-overview-side__card,
    .metric-card,
    .admin-card {
        border-radius: 24px;
    }

    .admin-topbar,
    .admin-topbar__left,
    .admin-topbar__right,
    .admin-overview-card__header,
    .admin-section-header,
    .admin-section-header__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search {
        min-width: 0;
    }

    .admin-overview-card__tabs {
        align-self: flex-start;
    }

    .admin-overview-chart {
        min-height: 260px;
    }

    .grid-form,
    .detail-grid,
    .reference-table__header,
    .reference-row {
        grid-template-columns: 1fr;
    }

    .reference-table__header {
        display: none;
    }

    .reference-row {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .login-card,
    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .mobile-tabbar {
        width: calc(100% - 20px);
        bottom: 10px;
    }

    .admin-sidebar__link {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .admin-sidebar__count {
        grid-column: 2;
        justify-self: start;
    }

    .admin-search,
    .admin-topbar__chip,
    .admin-topbar__profile {
        width: 100%;
    }

    .admin-icon-button {
        align-self: flex-start;
    }

    .admin-overview-chart__bars,
    .admin-overview-chart__labels {
        gap: 8px;
    }

    .admin-topbar__right {
        width: 100%;
        justify-content: stretch;
    }
}

.theme-admin .shell--admin {
    max-width: 100%;
}

.bs-admin {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    min-height: calc(100vh - 48px);
}

.bs-admin.is-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.bs-admin__sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
}

.bs-admin.is-sidebar-hidden .bs-admin__sidebar {
    display: none;
}

.bs-admin__main {
    display: grid;
    align-content: start;
    gap: 24px;
}

.bs-admin .card {
    padding: 0;
    border-radius: 1.4rem;
    background: #ffffff;
    border: 1px solid #e7edf5;
    box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.bs-admin .card::before,
.bs-admin .card::after {
    display: none;
}

.bs-admin__brand-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.bs-admin__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: #495057;
    background: transparent;
    border: 1px solid transparent;
}

.bs-admin__nav-link small {
    display: block;
    color: #8d99a6;
}

.bs-admin__nav-link:hover {
    color: #1d4ed8;
    background: #f8fbff;
    border-color: #e5edf8;
}

.bs-admin__nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.bs-admin__nav-link.active small {
    color: rgba(255, 255, 255, 0.82);
}

.bs-admin__nav-link.active .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.bs-admin__sidebar-summary {
    background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

.bs-admin__summary-tile {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e7edf5;
}

.bs-admin__summary-tile span {
    color: #6c757d;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bs-admin__summary-tile strong {
    color: #212529;
    font-size: 1.3rem;
    line-height: 1;
}

.bs-admin__sidebar-support {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.bs-admin__sidebar-user {
    background: #f8fafc;
}

.bs-admin__topbar {
    position: sticky;
    top: 24px;
    z-index: 10;
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.bs-admin__topbar-inner,
.bs-admin__topbar-group,
.bs-admin__topbar-tools {
    display: flex;
    align-items: center;
}

.bs-admin__topbar-inner {
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.bs-admin__topbar-group {
    gap: 0.75rem;
    min-width: 0;
    flex: 0 0 auto;
}

.bs-admin__topbar-tools {
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.bs-admin__page-heading h1 {
    color: #212529;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    white-space: nowrap;
}

.bs-admin__icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    border-color: #dee6f0;
    color: #495057;
    font-size: 1rem;
    background: #f8fafc;
    box-shadow: none;
    padding: 0;
}

.bs-admin__icon-button:hover {
    background: #eef4fb;
    border-color: #d2dceb;
    color: #0f172a;
}

.bs-admin__icon-button.is-active {
    background: #e7f1ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.bs-admin__icon-button--alert {
    position: relative;
}

.bs-admin__icon-button--alert::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 2px #ffffff;
}

.bs-admin__search {
    min-width: 180px;
    max-width: 240px;
    flex: 1 1 220px;
}

.bs-admin .form-control,
.bs-admin .form-select,
.bs-admin .input-group-text {
    border-color: #dee6f0;
    border-radius: 0.8rem;
    box-shadow: none;
}

.bs-admin .form-control:focus,
.bs-admin .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

.bs-admin__search .input-group-text {
    border-right: 0;
}

.bs-admin__search .form-control {
    border-left: 0;
    background: #ffffff;
    min-width: 0;
    font-size: 0.92rem;
    padding-block: 0.45rem;
}

.bs-admin__topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    background: #f8fafc;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.bs-admin__profile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    background: #ffffff;
    flex: 0 0 auto;
    white-space: nowrap;
}

.bs-admin__avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

.bs-admin__profile strong {
    font-size: 0.92rem;
    line-height: 1;
}

.bs-admin__logout-form {
    display: flex;
    margin: 0;
}

.bs-admin__logout-button {
    min-height: 38px;
    border-radius: 0.8rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1;
}

.bs-admin__mini-card {
    height: 100%;
}

.bs-admin__mini-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.25rem;
}

.bs-admin__metric-tile {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.bs-admin__metric-tile span,
.bs-admin__side-label,
.bs-admin__form-label,
.bs-admin__detail-tile span {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.bs-admin__metric-tile strong {
    color: #212529;
    font-size: 1.25rem;
    line-height: 1.1;
    word-break: break-word;
}

.bs-admin__metric-tile small {
    color: #6c757d;
}

.bs-admin__chart-card {
    padding: 1.25rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e8eef6;
}

.bs-admin__chart-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    min-height: 200px;
}

.bs-admin__chart-column {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
}

.bs-admin__chart-track {
    position: relative;
    width: 100%;
    max-width: 28px;
    height: 150px;
    border-radius: 999px;
    background: #e9eef5;
    overflow: hidden;
}

.bs-admin__chart-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--chart-height);
    border-radius: 999px;
}

.bs-admin__chart-fill.is-primary {
    background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}

.bs-admin__chart-fill.is-muted {
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
}

.bs-admin__chart-column small {
    color: #8d99a6;
    font-weight: 700;
}

.bs-admin__side-card {
    height: 100%;
}

.bs-admin__side-value {
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #212529;
    margin: 0.55rem 0 0.35rem;
}

.bs-admin__panel {
    height: 100%;
}

.bs-admin__table thead th {
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.bs-admin__table tbody td {
    color: #212529;
}

.bs-admin__row-link {
    cursor: pointer;
}

.bs-admin__row-link:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -2px;
}

.bs-admin__table tr.table-active td {
    background: #e7f1ff;
}

.bs-admin__detail-tile {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    height: 100%;
}

.bs-admin__detail-tile strong {
    color: #212529;
    font-size: 0.96rem;
    word-break: break-word;
}

.bs-admin__empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1.2rem;
    background: #f8fafc;
    border: 1px dashed #d2dae5;
}

.bs-admin .alert {
    border-radius: 1rem;
    border-width: 1px;
    box-shadow: 0 0.65rem 1.25rem rgba(15, 23, 42, 0.08);
}

.bs-admin .btn {
    box-shadow: none;
}

.bs-admin__icon-button {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 1199px) {
    .bs-admin {
        grid-template-columns: 1fr;
    }

    .bs-admin__sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 991px) {
    .bs-admin__topbar-inner {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bs-admin__topbar-group,
    .bs-admin__topbar-tools {
        width: 100%;
    }

    .bs-admin__topbar-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bs-admin__search {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .bs-admin__profile {
        flex: 1 1 auto;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .bs-admin__chart-bars {
        gap: 0.5rem;
    }

    .bs-admin__chart-track {
        max-width: 22px;
        height: 120px;
    }

    .bs-admin__nav-link {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
