html, body {
    background: #f8fafc;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Shell guardrails: keep the app frame stable even if scoped CSS loads late. */
.page {
    background: #f8fafc;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    flex: 0 0 250px;
    max-width: 250px;
}

main {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar .top-row {
    align-items: center;
    background: #fff;
    display: flex;
    min-height: 4.25rem;
    padding: 0.75rem 1rem;
}

.navbar-brand,
.sidebar .navbar-brand {
    align-items: center;
    display: inline-flex;
    max-width: 100%;
}

.brand-logo,
.sidebar .brand-logo,
img.brand-logo {
    display: block;
    height: 2.4rem !important;
    max-height: 2.4rem !important;
    max-width: 11rem !important;
    object-fit: contain;
    object-position: left center;
    width: auto !important;
}

.navbar-toggler {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    color: #0f172a;
    cursor: pointer;
    height: 2.5rem;
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    width: 3.5rem;
}

.navbar-toggler::before {
    content: "Menu";
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 2.25rem;
    text-align: center;
}

.navbar-toggler:checked {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.nav-glyph {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    font-size: 1.05rem;
    height: 1.25rem;
    justify-content: center;
    margin-right: 0.65rem;
    width: 1.25rem;
}

.nav-item {
    font-size: 0.875rem;
    padding-bottom: 0.1rem;
}

.nav-item:first-of-type {
    padding-top: 0.7rem;
}

.nav-item:last-of-type {
    padding-bottom: 0.7rem;
}

.nav-item .nav-link {
    align-items: center;
    background: none;
    border: none;
    border-radius: 0.85rem;
    color: #334155;
    display: flex;
    font-weight: 550;
    height: 2.35rem;
    line-height: 2.35rem;
    width: 100%;
}

.nav-item a.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.nav-item a.active .nav-glyph {
    color: #1d4ed8;
}

.nav-item .nav-link:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.nav-section {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.95rem 1.5rem 0.35rem;
    text-transform: uppercase;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

.page > main > .top-row {
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 4.25rem;
    padding: 0.85rem 1.25rem;
}

.top-row-action {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-row-action:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.tenant-switcher {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    position: relative;
}

.tenant-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.tenant-current {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: space-between;
    max-width: 18rem;
    min-width: 12rem;
    overflow: hidden;
    padding: 0.35rem 0.7rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-current span:first-child {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-caret {
    color: #2563eb;
    flex: 0 0 auto;
    font-size: 0.8rem;
    opacity: 0.85;
}

.tenant-current[aria-expanded="true"] .tenant-caret,
.avatar-button[aria-expanded="true"] .avatar-caret {
    transform: rotate(180deg);
}

.tenant-dropdown {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    left: 0;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 0.4rem);
    width: 24rem;
    z-index: 20;
}

.tenant-dropdown-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.85rem;
}

.tenant-dropdown-header span {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 850;
}

.tenant-dropdown-header small {
    color: #64748b;
    font-size: 0.75rem;
}

.tenant-dropdown-body {
    display: grid;
    gap: 0.3rem;
    padding: 0.5rem;
}

.tenant-search-input {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.25rem;
    width: 100%;
}

.tenant-option {
    background: transparent;
    border: 0;
    border-radius: 0.65rem;
    color: #0f172a;
    display: grid;
    padding: 0.6rem 0.7rem;
    text-align: left;
}

.tenant-option:hover,
.tenant-option:focus {
    background: #eff6ff;
}

.tenant-option span {
    font-weight: 850;
}

.tenant-option small,
.tenant-empty {
    color: #64748b;
}

.tenant-empty {
    padding: 0.75rem;
}

.top-account-menu {
    position: relative;
}

.avatar-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.25rem 0.45rem 0.25rem 0.25rem;
}

.avatar-button:hover,
.avatar-button:focus {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.avatar-initials,
.avatar-large {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    letter-spacing: -0.04em;
}

.avatar-initials {
    font-size: 0.78rem;
    height: 2rem;
    width: 2rem;
}

.avatar-large {
    flex: 0 0 auto;
    font-size: 0.9rem;
    height: 2.6rem;
    width: 2.6rem;
}

.avatar-caret {
    color: #64748b;
    font-size: 0.72rem;
    transition: transform 0.15s ease;
}

.account-dropdown {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: 18rem;
    z-index: 25;
}

.account-dropdown-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem;
}

.account-dropdown-header strong,
.account-dropdown-header small {
    display: block;
}

.account-dropdown-header strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.account-dropdown-header small {
    color: #64748b;
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 13rem;
}

.account-dropdown-links {
    display: grid;
    gap: 0.15rem;
    padding: 0.45rem;
}

.account-dropdown-links a {
    align-items: center;
    border-radius: 0.65rem;
    color: #334155;
    display: flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    text-decoration: none;
}

.account-dropdown-links a:hover,
.account-dropdown-links a:focus {
    background: #eff6ff;
    color: #1d4ed8;
}

.account-dropdown-links span {
    color: #64748b;
    font-size: 1rem;
    width: 1.15rem;
}

.account-dropdown-links a:hover span,
.account-dropdown-links a:focus span {
    color: #1d4ed8;
}

@media (max-width: 640.98px) {
    .page {
        display: block;
    }

    .sidebar {
        max-width: none;
        width: 100%;
    }

    .page > main > .top-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .tenant-switcher,
    .tenant-current,
    .tenant-dropdown {
        max-width: none;
        width: 100%;
    }

    .top-account-menu {
        justify-self: start;
    }

    .account-dropdown {
        left: 0;
        right: auto;
        width: min(18rem, calc(100vw - 2.5rem));
    }
}

@media (min-width: 641px) {
    .sidebar {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 4.25rem);
        overflow-y: auto;
    }

    .page > main > .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .page > main > .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

article.content:has(> .page-heading + .toolbar-card.list-toolbar) {
    align-items: start;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

article.content:has(> .page-heading + .toolbar-card.list-toolbar) > * {
    grid-column: 1 / -1;
}

article.content:has(> .page-heading + .toolbar-card.list-toolbar) > .page-heading {
    grid-column: 1;
    min-width: 0;
}

article.content:has(> .page-heading + .toolbar-card.list-toolbar) > .toolbar-card.list-toolbar {
    align-self: end;
    grid-column: 2;
    justify-self: end;
    max-width: min(58vw, 54rem);
}

@media (max-width: 980px) {
    article.content:has(> .page-heading + .toolbar-card.list-toolbar) {
        display: block;
    }
}

.hero-panel {
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    color: #0f172a;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 2rem;
}

.hero-panel h1,
.page-heading h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 0.95;
    margin: 0 0 1rem;
}

.hero-copy {
    color: #475569;
    font-size: 1.1rem;
    max-width: 58rem;
}

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

.kicker {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.status-card,
.metric-card,
.domain-card,
.work-panel,
.checklist-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.status-card {
    align-self: end;
    background: #ffffff;
    border-color: #dbeafe;
    color: #0f172a;
    padding: 1.25rem;
}

.status-card strong {
    display: block;
    font-size: 1.6rem;
    margin: 0.8rem 0 0.25rem;
}

.status-pill {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.badge {
    align-items: center;
    border-radius: 0.65rem;
    display: inline-flex;
    gap: 0.35rem;
    font-weight: 500;
}

.badge.text-bg-success,
.badge.text-bg-secondary,
.badge.text-bg-light {
    background: transparent !important;
}

.badge.text-bg-success {
    color: #15803d !important;
}

.badge.text-bg-secondary {
    color: #64748b !important;
}

.badge.text-bg-light {
    color: #334155 !important;
}

.badge.text-bg-success::before,
.badge.text-bg-secondary::before,
.badge.text-bg-light::before {
    font-family: "Jooblicons" !important;
    font-size: 0.95em;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1;
}

.badge.text-bg-success::before {
    content: "\e839";
}

.badge.text-bg-secondary::before {
    content: "\e843";
}

.badge.text-bg-light::before {
    content: "\e98f";
}

.dashboard-grid,
.domain-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    margin-bottom: 1.5rem;
}

.metric-card,
.domain-card {
    padding: 1.25rem;
}

.metric-card span,
.domain-card span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.metric-card strong,
.domain-card h2,
.checklist-item h2,
.work-panel h2 {
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    margin: 0 0 0.5rem;
}

.metric-card p,
.domain-card p,
.checklist-item p,
.work-panel p,
.page-heading p {
    color: #64748b;
    margin-bottom: 0;
}

.work-panel {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
}

.roadmap-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadmap-list li {
    align-items: center;
    background: #f8fafc;
    border-radius: 1rem;
    display: flex;
    font-weight: 700;
    gap: 0.75rem;
    padding: 0.85rem;
}

.roadmap-list span,
.check-icon {
    align-items: center;
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.page-heading {
    margin-bottom: 1.5rem;
}

.page-heading p {
    max-width: 52rem;
}

.checklist {
    display: grid;
    gap: 1rem;
}

.checklist-item {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.checklist-item:not(.done) .check-icon {
    background: #e0f2fe;
    color: #075985;
}

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

.form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
}

.toolbar-card {
    background: #fff;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.toolbar-card {
    align-items: end;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    justify-content: space-between;
    overflow: visible;
    padding: 0.45rem 0.6rem;
    white-space: nowrap;
    width: 100%;
}

.list-toolbar {
    align-items: center;
    box-shadow: none;
    min-height: 2.6rem;
}

.toolbar-actions {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
}

.toolbar-count {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 650;
    min-height: 1.85rem;
    padding: 0.25rem 0.6rem;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.toolbar-spacer {
    flex: 1 1 auto;
}

.toolbar-card .btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.65rem;
    box-shadow: none;
    color: #475569;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 500;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.3rem 0.45rem;
    white-space: nowrap;
}

.toolbar-card .btn:hover,
.toolbar-card .btn:focus {
    background: #f8fafc;
    color: #1d4ed8;
}

.toolbar-card .btn-success {
    color: #166534;
}

.toolbar-card .btn-outline-secondary {
    color: #64748b;
}

.toolbar-card .btn span[class^="icon-"],
.toolbar-card .btn span[class*=" icon-"] {
    font-size: 1rem;
}

.toolbar-search {
    border-color: #dbeafe;
    border-radius: 999px;
    flex: 1 1 9rem;
    max-width: 13rem;
    min-width: 0;
    min-height: 2rem;
}

.toolbar-filter {
    flex: 0 1 auto;
    max-width: calc(20ch + 3.2rem);
    min-width: 0;
    position: relative;
}

.toolbar-filter-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1e3a8a;
    display: flex;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    max-width: 100%;
    width: auto;
}

.confirm-lightbox {
    align-items: center;
    background: rgba(15, 23, 42, 0.28);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 200;
}

.confirm-card {
    align-items: start;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 1.1rem;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: min(30rem, calc(100vw - 2rem));
    padding: 1rem;
    width: 100%;
}

.confirm-icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 1.2rem;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.confirm-icon.danger {
    background: #fef2f2;
    color: #dc2626;
}

.confirm-icon.success {
    background: #ecfdf5;
    color: #16a34a;
}

.confirm-icon.warning {
    background: #eff6ff;
    color: #1d4ed8;
}

.confirm-content h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    margin: 0 0 0.35rem;
}

.confirm-content p {
    color: #64748b;
    margin: 0;
}

.confirm-actions {
    display: flex;
    gap: 0.5rem;
    grid-column: 1 / -1;
    justify-content: end;
}

.toolbar-filter-value {
    flex: 0 1 auto;
    font-size: 0.86rem;
    max-width: 20ch;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-filter-caret {
    color: #64748b;
    font-size: 0.75rem;
}

.toolbar-filter-menu {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 0.85rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    max-height: 20rem;
    overflow-y: auto;
    padding: 0.45rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    width: min(22rem, calc(100vw - 2rem));
    z-index: 30;
}

.toolbar-filter-search {
    border-color: #dbeafe;
    margin-bottom: 0.35rem;
}

.toolbar-filter-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.6rem;
    color: #334155;
    display: flex;
    font-size: 0.88rem;
    padding: 0.45rem 0.55rem;
    text-align: left;
    width: 100%;
}

.toolbar-filter-option:hover,
.toolbar-filter-option:focus,
.toolbar-filter-option.selected {
    background: #eff6ff;
    color: #1d4ed8;
}

.toolbar-filter-empty {
    color: #64748b;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.page-heading + .toolbar-card.list-toolbar {
    margin-bottom: 1rem;
    margin-top: 0;
}

.table-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.table-card .table-responsive {
    padding-left: 0;
    padding-right: 0;
}

.table-card .table {
    --bs-table-border-color: transparent;
    background: #fff;
    margin-bottom: 0;
}

.table-card .table th:first-child,
.table-card .table td:first-child {
    padding-left: 0.75rem;
}

.table-card .table th:last-child,
.table-card .table td:last-child {
    padding-right: 0.75rem;
}

.table-card .text-end {
    white-space: nowrap;
}

.table-card .btn.btn-sm[class*="btn-outline-"],
.table-card .icon-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.65rem;
    box-shadow: none;
    color: #64748b;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 0.35rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    min-width: 2rem;
    padding: 0.35rem;
    text-decoration: none;
}

.table-card .btn.btn-sm[class*="btn-outline-"]:hover,
.table-card .btn.btn-sm[class*="btn-outline-"]:focus,
.table-card .icon-action:hover,
.table-card .icon-action:focus {
    background: transparent;
    color: #1d4ed8;
}

.table-card .btn-outline-danger,
.table-card .icon-action.danger {
    color: #dc2626;
}

.table-card .btn-outline-danger:hover,
.table-card .btn-outline-danger:focus,
.table-card .icon-action.danger:hover,
.table-card .icon-action.danger:focus {
    background: transparent;
    color: #b91c1c;
}

.table-card .btn-outline-success,
.table-card .icon-action.success {
    color: #16a34a;
}

.table-card .btn-outline-success:hover,
.table-card .btn-outline-success:focus,
.table-card .icon-action.success:hover,
.table-card .icon-action.success:focus {
    background: transparent;
    color: #15803d;
}

.table-card .action-label {
    font-size: 0.82rem;
    height: auto;
    overflow: visible;
    position: static;
    white-space: nowrap;
    width: auto;
}

.table-card th {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-panel {
    align-items: center;
    background: rgba(15, 23, 42, 0.18);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

.drawer-card {
    cursor: default;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    position: relative;
    touch-action: none;
    width: 100%;
}

.drawer-card h2:first-child {
    align-items: center;
    cursor: grab;
    display: flex;
    gap: 0.5rem;
    user-select: none;
}

.drawer-card h2:first-child::after {
    color: #94a3b8;
    content: "Drag";
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-left: auto;
    text-transform: uppercase;
}

.drawer-card.is-dragging {
    cursor: grabbing;
    max-height: none;
    overflow: visible;
    user-select: none;
}

.drawer-card.is-dragging h2:first-child {
    cursor: grabbing;
}

.drawer-card-wide {
    max-width: min(58rem, calc(100vw - 2rem));
}

.team-choice-list {
    display: grid;
    gap: 0.5rem;
}

.team-choice {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem;
}

.form-card h2 {
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
}

.form-card p,
.auth-note {
    color: #64748b;
}

.auth-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    color: #334155;
    margin-top: 1rem;
    padding: 1rem;
    word-break: break-word;
}

.drawer-card .auth-result {
    margin-bottom: 1rem;
    margin-top: 0;
}

.auth-result.success {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.auth-result.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

@media (min-width: 900px) {
    .auth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .hero-panel,
    .work-panel {
        grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr);
    }
}

@font-face {
    font-family: "Jooblicons";
    src: url("/fonts/jooblicons/jooblicons.eot");
    src: url("/fonts/jooblicons/jooblicons.eot?#iefix") format("embedded-opentype"), url("/fonts/jooblicons/jooblicons.woff") format("woff"), url("/fonts/jooblicons/jooblicons.ttf") format("truetype"), url("/fonts/jooblicons/jooblicons.svg#Jooblicons") format("svg");
    font-weight: normal;
    font-style: normal;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
