:root {
    --pangea-cyan: #09a9e1;
    --pangea-blue: #117fb5;
    --pangea-blue-dark: #254f80;
    --pangea-navy: #183452;
    --sidebar: #20262d;
    --sidebar-soft: #2c343d;
    --page: #f3f6fa;
    --surface: #ffffff;
    --text: #1b2738;
    --muted: #65758b;
    --line: #e2e9f1;
    --success: #09a875;
    --success-soft: #e8fbf4;
    --warning: #d97706;
    --warning-soft: #fff7e6;
    --danger: #d92d20;
    --danger-soft: #fff0ef;
    --violet: #635bdf;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, .09);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a,
button {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    transition: grid-template-columns .25s ease;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 258px;
    height: 100vh;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 12% 4%, rgba(9, 169, 225, .18), transparent 25%),
        linear-gradient(180deg, #252c33 0%, #1d2228 100%);
    transition: width .25s ease, transform .25s ease;
}

.sidebar-heading {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px 10px;
}

.brand,
.brand:hover {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.brand-symbol {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: block;
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span::before,
.brand-symbol span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.brand-symbol::before {
    top: 2px;
    left: 4px;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #35a9e0;
    transform: rotate(90deg);
}

.brand-symbol::after {
    bottom: 2px;
    left: 4px;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #35a9e0;
    transform: rotate(-90deg);
}

.brand-symbol span::before {
    top: 11px;
    right: 3px;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #1687c9;
}

.brand-symbol span::after {
    top: 11px;
    left: 5px;
    border-width: 10px 18px 10px 0;
    border-color: transparent #2079b6 transparent transparent;
}

.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1;
    white-space: nowrap;
}

.brand-copy strong {
    letter-spacing: .09em;
    font-size: 16px;
    font-weight: 700;
}

.brand-copy small {
    margin-top: 5px;
    color: #aeb8c4;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.sidebar-brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    object-position: 11% center;
    border-radius: 10px;
}

.sidebar-collapse,
.menu-toggle {
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.sidebar-collapse {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    color: #b7c1cd;
    background: rgba(255, 255, 255, .07);
}

.sidebar-collapse:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.sidebar-collapse svg,
.menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.nav-section {
    margin: 17px 10px 4px;
    color: #7f8b99;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-nav a {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #dbe3ec;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .075);
    transform: translateX(2px);
}

.admin-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(9, 169, 225, .28), rgba(17, 127, 181, .15));
    box-shadow: inset 3px 0 0 var(--pangea-cyan);
}

.nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    color: #9aa7b5;
}

.admin-nav a:hover .nav-icon,
.admin-nav a.active .nav-icon {
    color: #55c8f0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    min-height: 42px;
    margin-top: auto;
    padding: 15px 12px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aeb8c4;
    font-size: 12px;
    white-space: nowrap;
}

.system-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #21d19f;
    box-shadow: 0 0 0 5px rgba(33, 209, 159, .12);
}

.admin-main {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    min-height: 76px;
    margin: 12px 14px 0;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    border-radius: 16px;
    background:
        linear-gradient(100deg, rgba(7, 181, 231, .98), rgba(17, 127, 181, .98) 46%, rgba(37, 79, 128, .99));
    box-shadow: 0 10px 26px rgba(30, 93, 140, .2);
}

.topbar-left,
.topbar-actions,
.topbar-identity,
.user-menu-trigger,
.user-menu-summary,
.section-actions,
.action-with-icon {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 0;
    gap: 16px;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, .2);
}

.topbar-identity {
    min-width: 0;
    gap: 22px;
}

.topbar-identity strong {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-identity span {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    gap: 12px;
}

.date-chip {
    min-height: 34px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #effaff;
    background: rgba(12, 50, 83, .16);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.date-chip svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    gap: 10px;
    padding: 4px 6px 4px 10px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, .12);
}

.user-copy {
    display: grid;
    text-align: right;
    line-height: 1.2;
}

.user-copy strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    white-space: nowrap;
}

.user-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    color: var(--pangea-blue-dark);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.user-avatar.large {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--pangea-cyan), var(--pangea-blue-dark));
}

.chevron {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.user-menu-trigger[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: min(290px, calc(100vw - 28px));
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .2);
    animation: menu-in .16s ease-out;
}

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

.user-menu-summary {
    gap: 11px;
    padding: 9px 8px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.user-menu-summary div {
    min-width: 0;
    display: grid;
}

.user-menu-summary strong,
.user-menu-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-summary strong {
    font-size: 14px;
}

.user-menu-summary span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.user-menu-panel a,
.user-menu-panel button {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    color: #344054;
    background: transparent;
    text-decoration: none;
    text-align: left;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
    color: #0b6f9f;
    background: #f0f8fc;
}

.user-menu-panel button:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

.user-menu-panel svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 27px 30px 34px;
    flex: 1;
}

.page-heading,
.section-intro,
.panel-title,
.release-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.page-heading {
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 3px 0 0;
    color: #223047;
    font-size: clamp(25px, 2.2vw, 32px);
    line-height: 1.15;
    font-weight: 750;
}

.eyebrow,
.panel-kicker {
    display: block;
    color: var(--pangea-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.breadcrumb-current {
    align-self: center;
    color: #8390a2;
    font-size: 12px;
}

.notification-stack {
    display: grid;
    gap: 10px;
}

.app-alert {
    min-height: 52px;
    margin-bottom: 18px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.app-alert.success {
    color: #056847;
    border-color: #bcebdc;
    background: var(--success-soft);
}

.app-alert.danger {
    color: #9d241b;
    border-color: #f4c5c1;
    background: var(--danger-soft);
}

.alert-symbol {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: currentColor;
    font-weight: 800;
    line-height: 1;
}

.alert-symbol::first-letter {
    color: #fff;
}

.app-alert button {
    border: 0;
    color: currentColor;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.section-intro {
    margin-bottom: 20px;
    align-items: flex-end;
}

.section-intro h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 750;
}

.section-intro p,
.panel p,
.muted {
    margin: 0;
    color: var(--muted);
}

.section-actions {
    gap: 10px;
}

.last-update {
    color: var(--muted);
    font-size: 12px;
}

.action-with-icon {
    justify-content: center;
    gap: 8px;
}

.action-with-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.metric-card,
.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 233, 242, .9);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.metric-card {
    min-height: 184px;
    padding: 22px 23px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -50px;
    width: 132px;
    height: 132px;
    border: 22px solid currentColor;
    border-radius: 42px;
    opacity: .045;
    transform: rotate(18deg);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.metric-blue {
    color: #2269a3;
}

.metric-green {
    color: #07986e;
}

.metric-violet {
    color: var(--violet);
}

.metric-orange {
    color: #e17b05;
}

.metric-card-header {
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: currentColor;
    box-shadow: 0 9px 18px color-mix(in srgb, currentColor 24%, transparent);
}

.metric-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-card > strong {
    position: relative;
    z-index: 1;
    color: #1b2738;
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.metric-card > .metric-value-text {
    font-size: 22px;
}

.metric-label {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #43536a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.metric-card small {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
}

.panel {
    padding: 22px;
    margin-bottom: 22px;
}

.panel-title {
    margin-bottom: 18px;
}

.panel h2 {
    margin: 3px 0 4px;
    color: #223047;
    font-size: 20px;
    font-weight: 750;
}

.panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.system-panel {
    align-self: start;
}

.system-status-list {
    margin: 22px 0;
    display: grid;
    gap: 17px;
}

.system-status-list > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.system-status-list > div > span:last-child {
    min-width: 0;
    display: grid;
}

.system-status-list strong {
    font-size: 13px;
}

.system-status-list small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-status-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.system-status-icon.success {
    color: #06835e;
    background: var(--success-soft);
}

.secondary-link {
    color: var(--pangea-blue);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.secondary-link:hover {
    color: var(--pangea-blue-dark);
    text-decoration: underline;
}

.admin-table {
    margin: 0;
    vertical-align: middle;
}

.admin-table th {
    padding: 12px;
    color: #65758b;
    border-bottom-color: var(--line);
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 12px;
    color: #344054;
    border-bottom-color: #edf2f7;
    font-size: 13px;
}

.admin-table tbody tr:hover td {
    background: #fafdff;
}

.status-pill {
    min-height: 26px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe6ee;
    border-radius: 999px;
    color: #536174;
    background: #f3f6f9;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.success {
    color: #047857;
    border-color: #bdebdc;
    background: var(--success-soft);
}

.status-pill.danger {
    color: var(--danger);
    border-color: #f5c5c1;
    background: var(--danger-soft);
}

.status-pill.primary {
    color: #075f91;
    border-color: #bfe4f5;
    background: #eaf7fd;
}

.status-pill.warning {
    color: #9a5a05;
    border-color: #f4dbad;
    background: var(--warning-soft);
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.empty-cell {
    padding: 28px !important;
    color: var(--muted);
    text-align: center;
}

.empty-state {
    min-height: 180px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong,
.empty-state h2 {
    margin: 0;
    color: #334155;
}

.empty-state p,
.empty-state span {
    margin: 0;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--pangea-blue);
    background: #edf8fd;
    font-size: 24px;
    font-weight: 850;
}

.empty-state-icon.danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.empty-state-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.truncate {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtext {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    align-items: end;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label,
.toggle-row,
.check-row {
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 43px;
    border-color: #d5dee8;
    border-radius: 9px;
    color: #26364d;
    background-color: #fff;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #62bfe6;
    box-shadow: 0 0 0 4px rgba(9, 169, 225, .11);
}

.form-control[readonly],
.form-select[disabled],
input[disabled] + span {
    color: #64748b;
    background-color: #f8fafc;
    cursor: not-allowed;
}

.form-field.wide {
    grid-column: span 2;
}

.max-480 {
    max-width: 480px;
}

.password-field {
    position: relative;
}

.password-field > .form-control {
    padding-right: 62px;
}

.password-field > button,
.input-with-icon > button {
    position: absolute;
    right: 8px;
    bottom: 7px;
    min-width: 42px;
    min-height: 29px;
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    color: #334155;
    background: #edf3f8;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.toggle-row,
.check-row {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.toggle-row input,
.check-row input,
.checkbox-list input,
.permission-grid input {
    accent-color: var(--pangea-blue);
}

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

.checkbox-list {
    display: grid;
    gap: 8px;
}

.checkbox-list label,
.permission-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    font-size: 13px;
}

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

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

.permission-grid fieldset {
    padding: 15px;
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.permission-grid legend {
    float: none;
    width: auto;
    padding: 0 6px;
    color: #27374d;
    font-size: 14px;
    font-weight: 800;
}

.assignment-list,
.settings-list {
    display: grid;
    gap: 12px;
}

.assignment-row {
    padding: 14px;
    display: grid;
    grid-template-columns: 220px minmax(280px, 1fr) 220px auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.settings-list div {
    padding: 14px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdff;
}

.settings-list code {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.btn {
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.btn-primary {
    border-color: var(--pangea-blue);
    background: linear-gradient(135deg, var(--pangea-cyan), var(--pangea-blue));
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #087baa;
    background: linear-gradient(135deg, #079bcf, #0c719f);
}

.btn-light {
    border-color: var(--line);
    color: #344054;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    border-color: #cbd6e2;
    color: var(--pangea-blue);
    background: #fff;
}

.is-loading {
    position: relative !important;
    pointer-events: none;
}

.is-loading > * {
    visibility: hidden;
}

.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.release-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.release-source svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.release-timeline {
    position: relative;
    display: grid;
    gap: 20px;
}

.release-timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 13px;
    width: 2px;
    background: linear-gradient(var(--pangea-cyan), #dce7f0);
}

.release-group {
    position: relative;
    margin-left: 42px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.release-marker {
    position: absolute;
    top: 25px;
    left: -38px;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--pangea-cyan);
    box-shadow: 0 0 0 2px rgba(9, 169, 225, .2);
}

.release-header {
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.release-header h2 {
    margin: 4px 0 0;
    font-size: 19px;
}

.release-version {
    color: var(--pangea-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.release-items {
    display: grid;
}

.release-item {
    padding: 18px 0;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 15px;
    border-bottom: 1px solid #edf2f7;
}

.release-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.release-category {
    width: fit-content;
    height: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.release-category.improvement {
    color: #075f91;
    background: #eaf7fd;
}

.release-category.fix {
    color: #9a5a05;
    background: var(--warning-soft);
}

.release-category.security {
    color: #047857;
    background: var(--success-soft);
}

.release-category.technical {
    color: #5b4bc4;
    background: #f0edff;
}

.release-content h3 {
    margin: 0 0 5px;
    color: #29384e;
    font-size: 15px;
}

.release-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.release-content details {
    margin-top: 9px;
    color: #738196;
    font-size: 11px;
}

.release-content summary {
    width: fit-content;
    color: #607087;
    cursor: pointer;
    font-weight: 700;
}

.release-content details code {
    margin: 8px 8px 0 0;
    display: inline-block;
    color: #1d597c;
}

.admin-footer {
    padding: 12px 30px 22px;
    display: flex;
    justify-content: space-between;
    color: #8b98a9;
    font-size: 11px;
}

.sidebar-backdrop {
    display: none;
}

.admin-shell.sidebar-collapsed {
    grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar-collapsed .admin-sidebar {
    width: 82px;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-section {
    visibility: hidden;
    width: 0;
}

.sidebar-collapsed .sidebar-heading {
    justify-content: center;
}

.sidebar-collapsed .sidebar-collapse {
    position: absolute;
    top: 66px;
    right: 8px;
    width: 24px;
    height: 24px;
}

.sidebar-collapsed .sidebar-collapse svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.sidebar-collapsed .admin-nav a {
    justify-content: center;
    padding-inline: 0;
}

.sidebar-collapsed .admin-nav a:hover {
    transform: none;
}

.sidebar-collapsed .sidebar-footer {
    justify-content: center;
}

.login-page {
    min-height: 100vh;
    padding: 30px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(9, 169, 225, .12), transparent 27%),
        radial-gradient(circle at 88% 86%, rgba(37, 79, 128, .11), transparent 25%),
        #eef3f8;
}

.login-page-simple {
    padding: 24px;
    background:
        radial-gradient(circle at 20% 12%, rgba(9, 169, 225, .12), transparent 28%),
        linear-gradient(145deg, #f7fafc, #eaf1f7);
}

.simple-login-card {
    width: min(460px, 100%);
    padding: 38px 42px 28px;
    border: 1px solid rgba(215, 226, 237, .95);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(15, 23, 42, .14);
}

.simple-login-brand {
    margin-bottom: 28px;
    text-align: center;
}

.simple-login-brand img {
    width: min(300px, 90%);
    height: 92px;
    margin: 0 auto 14px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.product-badge {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid #c8e8f5;
    border-radius: 999px;
    color: #0875a6;
    background: #edf9fd;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.simple-login-brand h1 {
    margin: 14px 0 6px;
    color: #1d2c40;
    font-size: 25px;
    font-weight: 750;
}

.simple-login-brand p {
    margin: 0 auto;
    max-width: 330px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.simple-login-form {
    display: grid;
    gap: 16px;
}

.simple-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8794a6;
    font-size: 11px;
}

.simple-login-footer {
    margin-top: 24px;
    padding-top: 18px;
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
    color: #748297;
    text-align: center;
    font-size: 11px;
}

.simple-login-footer small {
    color: #9aa5b3;
    font-size: 10px;
}

.login-card {
    width: min(1020px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 238, .9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 75px rgba(15, 23, 42, .16);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 48px 54px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(13, 126, 181, .98), rgba(29, 71, 112, .99)),
        #174f83;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -190px;
    width: 420px;
    height: 420px;
    border: 75px solid rgba(255, 255, 255, .04);
    border-radius: 46%;
    transform: rotate(22deg);
}

.login-brand-glow {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(33, 191, 238, .22);
    filter: blur(3px);
}

.login-logo-frame {
    position: relative;
    z-index: 1;
    width: 390px;
    max-width: 100%;
    height: 120px;
    overflow: hidden;
    margin: 0 0 54px -17px;
}

.login-logo-frame img {
    width: 410px;
    max-width: none;
    transform: translateY(-145px);
    filter: brightness(0) invert(1);
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #a8e7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-brand-content h1 {
    margin: 0;
    font-size: clamp(32px, 3.2vw, 45px);
    line-height: 1.08;
    font-weight: 700;
}

.login-brand-content p {
    max-width: 390px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.65;
}

.login-feature-list {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 35px;
    display: grid;
    gap: 11px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

.login-feature-list span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-feature-list strong {
    color: #75d7fa;
    font-size: 10px;
    letter-spacing: .08em;
}

.login-form-panel {
    padding: 62px 58px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-form-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--pangea-blue);
    background: #edf8fd;
}

.login-form-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-heading h2 {
    margin: 3px 0 4px;
    color: #1d2c40;
    font-size: 29px;
    font-weight: 750;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.login-form-panel form {
    display: grid;
    gap: 17px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > svg {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    width: 19px;
    height: 19px;
    color: #8b98a9;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-with-icon .form-control {
    min-height: 50px;
    padding-left: 43px;
}

.password-field .input-with-icon .form-control {
    padding-right: 62px;
}

.input-with-icon > button {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.login-check {
    min-height: auto;
    color: #5d6c80;
    font-size: 12px;
    font-weight: 600;
}

.primary-action {
    position: relative;
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, var(--pangea-cyan), var(--pangea-blue-dark));
    box-shadow: 0 12px 24px rgba(17, 127, 181, .22);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(17, 127, 181, .28);
}

.primary-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.forgot-link {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.login-security-note {
    margin: auto 0 0;
    padding-top: 35px;
    color: #8b98a9;
    font-size: 11px;
    text-align: center;
}

.login-security-note span {
    margin-right: 5px;
    color: var(--success);
}

.form-message:empty {
    display: none;
}

.form-message {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12px;
}

.form-message.danger {
    color: #9d241b;
    border: 1px solid #f4c5c1;
    background: var(--danger-soft);
}

.status-page {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background: var(--page);
}

.status-card {
    width: min(520px, 100%);
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.status-page-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 28px;
    font-weight: 850;
}

.status-card h1 {
    margin: 8px 0 10px;
    font-size: 25px;
}

.status-card p {
    margin: 0 0 15px;
    color: var(--muted);
    line-height: 1.6;
}

.status-card small {
    margin-bottom: 20px;
    color: #7d8a9d;
}

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

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

    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .system-panel {
        display: none;
    }

    .form-grid,
    .assignment-row {
        grid-template-columns: 1fr;
    }

    .form-field.wide {
        grid-column: auto;
    }
}

@media (max-width: 960px) {
    .admin-shell,
    .admin-shell.sidebar-collapsed {
        display: block;
    }

    .admin-sidebar,
    .sidebar-collapsed .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(290px, 86vw);
        transform: translateX(-105%);
        box-shadow: 18px 0 44px rgba(15, 23, 42, .25);
    }

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

    .sidebar-collapsed .brand-copy,
    .sidebar-collapsed .nav-label,
    .sidebar-collapsed .nav-section {
        visibility: visible;
        width: auto;
    }

    .sidebar-collapsed .sidebar-heading {
        justify-content: space-between;
    }

    .sidebar-collapse {
        display: none;
    }

    .sidebar-collapsed .admin-nav a,
    .sidebar-collapsed .sidebar-footer {
        justify-content: flex-start;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(15, 23, 42, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .admin-shell.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .admin-topbar {
        margin-inline: 10px;
    }

    .date-chip {
        display: none;
    }

    .login-card {
        grid-template-columns: .9fr 1.1fr;
    }

    .login-brand-panel {
        padding-inline: 38px;
    }

    .login-form-panel {
        padding-inline: 40px;
    }
}

@media (max-width: 720px) {
    .admin-topbar {
        min-height: 68px;
        padding: 10px 12px;
        border-radius: 13px;
    }

    .topbar-identity {
        gap: 0;
    }

    .topbar-identity strong {
        font-size: 17px;
    }

    .topbar-identity span,
    .user-copy {
        display: none;
    }

    .user-menu-trigger {
        padding: 3px;
    }

    .chevron {
        display: none;
    }

    .admin-content {
        padding: 22px 16px 30px;
    }

    .page-heading,
    .section-intro,
    .panel-title,
    .release-header {
        display: grid;
    }

    .breadcrumb-current {
        display: none;
    }

    .section-intro {
        align-items: start;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-grid,
    .permission-grid,
    .split-grid,
    .inline-list {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 170px;
    }

    .panel {
        padding: 17px;
        border-radius: 14px;
    }

    .row-actions {
        justify-content: flex-start;
    }

    .release-group {
        margin-left: 31px;
        padding: 17px;
    }

    .release-timeline::before {
        left: 8px;
    }

    .release-marker {
        left: -32px;
    }

    .release-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .login-page {
        padding: 16px;
    }

    .login-page-simple {
        padding: 12px;
    }

    .simple-login-card {
        padding: 30px 24px 24px;
        border-radius: 18px;
    }

    .simple-login-brand img {
        width: 250px;
        height: 78px;
    }

    .login-card {
        min-height: auto;
        display: block;
        border-radius: 20px;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: calc(100vh - 32px);
        padding: 38px 28px 27px;
    }

    .login-mobile-brand {
        margin-bottom: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

    .login-mobile-brand > span:last-child {
        display: grid;
        line-height: 1;
    }

    .login-mobile-brand strong {
        letter-spacing: .08em;
    }

    .login-mobile-brand small {
        margin-top: 4px;
        color: var(--muted);
        font-size: 8px;
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .login-heading {
        align-items: flex-start;
    }

    .login-security-note {
        padding-top: 42px;
    }

    .admin-footer {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
