html, body {
    font-family: "Manrope", sans-serif;
    background: linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
    color: #0f172a;
}

body.dashboard div.breadcrumbs {
    display: none;
}

body.dashboard #container {
    min-height: 100vh;
}

body.dashboard #header {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    left: auto;
    width: auto;
    z-index: 40;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.dashboard #branding {
    display: none;
}

body.dashboard #main,
body.dashboard .main,
body.dashboard main#content-start {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

body.dashboard #content {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

body.dashboard #content-main {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

body.dashboard .colM {
    margin: 0 !important;
}

body.dashboard .app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
}

body.dashboard .sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 1.5rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%),
        linear-gradient(180deg, #0b1730 0%, #132241 100%);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.06);
}

body.dashboard .brand-panel {
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body.dashboard .brand-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

body.dashboard .brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.28));
}

body.dashboard .brand-stack {
    min-width: 0;
}

body.dashboard .brand-overline,
body.dashboard .brand-title {
    display: block;
}

body.dashboard .brand-overline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.58);
}

body.dashboard .brand-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

body.dashboard .sidebar-section-title {
    margin: 1.5rem 0 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.45);
}

body.dashboard .sidebar-nav {
    display: grid;
    gap: 0.55rem;
}

body.dashboard .sidebar-link {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 160ms ease;
}

body.dashboard .sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.05);
    transform: translateX(2px);
}

body.dashboard .sidebar-link.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.24), rgba(8,145,178,0.18));
    border-color: rgba(125,211,252,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

body.dashboard .sidebar-link span,
body.dashboard .sidebar-link small {
    display: block;
}

body.dashboard .sidebar-link span {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.18rem;
}

body.dashboard .sidebar-link small {
    color: rgba(255,255,255,0.62);
    font-size: 0.8rem;
}

body.dashboard .sidebar-footer {
    margin-top: 1.5rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(134,239,172,0.12);
    color: #d1fae5;
    font-weight: 700;
    font-size: 0.9rem;
}

body.dashboard .main-panel {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 5.4rem 0.55rem 1.4rem 1.4rem;
}

body.dashboard .main-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: none;
}

body.dashboard .page-topbar {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 1.6rem 1.75rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(37,99,235,0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid #dbe3ee;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body.dashboard .page-topbar::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 64%);
    pointer-events: none;
}

body.dashboard .eyebrow,
body.dashboard .section-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #2563eb;
}

body.dashboard .page-topbar h1,
body.dashboard .page-topbar h2,
body.dashboard .section-heading h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.04em;
}

body.dashboard .page-topbar h1,
body.dashboard .page-topbar h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
}

body.dashboard .page-topbar p {
    color: #66758b;
}

body.dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

body.dashboard .stat-card,
body.dashboard .content-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

body.dashboard .stat-card {
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
}

body.dashboard .accent-blue { border-top: 4px solid #2563eb; }
body.dashboard .accent-teal { border-top: 4px solid #0891b2; }
body.dashboard .accent-amber { border-top: 4px solid #b45309; }

body.dashboard .stat-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #66758b;
    font-size: 0.86rem;
}

body.dashboard .stat-value {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

body.dashboard .admin-stat-copy {
    font-size: 1.1rem;
    line-height: 1.35;
}

body.dashboard .content-card {
    padding: 1.35rem;
    border-radius: 24px;
}

body.dashboard .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.dashboard .section-heading h2 {
    font-size: 1.35rem;
}

body.dashboard .module-list {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

body.dashboard .module-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 124px);
    gap: 0.85rem;
    align-items: center;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

body.dashboard button.module-list-row {
    cursor: pointer;
}

body.dashboard .admin-module-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 126px);
    gap: 0.85rem;
    padding: 0.82rem 0.92rem;
}

body.dashboard .admin-module-row .module-list-copy h3 {
    font-size: 0.96rem;
}

body.dashboard .admin-module-row .module-list-copy p {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.42;
}

body.dashboard .admin-module-row .module-list-meta {
    gap: 0.36rem;
}

body.dashboard .admin-module-row .module-list-link {
    font-size: 0.71rem;
}

body.dashboard .admin-module-row .module-list-metric {
    padding: 0.34rem 0.6rem;
    font-size: 0.74rem;
}

body.dashboard .module-list-row:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.dashboard .module-list-copy h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.96rem;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

body.dashboard .module-list-copy {
    min-width: 0;
}

body.dashboard .module-list-copy p {
    margin: 0.22rem 0 0;
    color: #66758b;
    line-height: 1.45;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

body.dashboard .module-list-meta {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    text-align: right;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.15rem;
    align-self: center;
    box-sizing: border-box;
}

body.dashboard .module-list-metric {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

body.dashboard .module-list-link {
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

body.dashboard .admin-dashboard-view {
    display: none;
}

body.dashboard .admin-dashboard-view.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    justify-items: stretch;
}

body.dashboard .page-topbar,
body.dashboard .content-card,
body.dashboard .module-list-row {
    width: 100%;
    max-width: none;
}

body.dashboard .admin-module-row {
    cursor: default;
}

body.dashboard .admin-module-row:hover {
    transform: none;
}

body.dashboard .admin-module-link {
    color: #0f172a;
    text-decoration: none;
}

body.dashboard .admin-module-action {
    text-decoration: none;
}

body.dashboard .admin-module-action-pill {
    text-decoration: none;
}

body.dashboard .admin-empty-state {
    padding: 1rem 0.2rem 0.2rem;
}

body.dashboard .admin-empty-state strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

body.dashboard .admin-empty-state p {
    margin: 0.35rem 0 0;
    color: #64748b;
}

#header {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 24%),
        linear-gradient(135deg, #0b1730 0%, #12264d 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.95rem 1.4rem;
}

#header a:link,
#header a:visited {
    color: #fff;
}

#site-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    margin: 0;
}

.admin-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.admin-brand-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(2, 8, 23, 0.22));
}

.admin-brand-copy span {
    display: block;
    line-height: 1.1;
}

.admin-brand-overline {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0.18rem;
}

.admin-brand-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.admin-userbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.admin-userbar-copy {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0;
    text-align: left;
}

.admin-userbar-label {
    display: none;
}

.admin-userbar-copy strong {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
}

.admin-userbar-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.admin-userbar-links a,
.admin-userbar-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.68rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.admin-userbar-links button {
    font-family: inherit;
}

.admin-userbar-links a:hover,
.admin-userbar-links button:hover {
    background: #ffffff;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.admin-user-menu {
    position: relative;
}

.admin-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.admin-user-trigger:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.admin-user-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #fff;
}

.admin-user-trigger-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.admin-user-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    max-width: min(280px, calc(100vw - 2rem));
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe3ee;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
    box-sizing: border-box;
}

.admin-user-dropdown-head {
    padding: 0.2rem 0.2rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-user-dropdown-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-user-dropdown-head strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
}

.admin-user-dropdown-links {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.75rem;
    min-width: 0;
}

#header .admin-user-dropdown-links a,
#header .admin-user-dropdown-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#header .admin-user-dropdown-links a:link,
#header .admin-user-dropdown-links a:visited,
#header .admin-user-dropdown-links button {
    color: #0f172a;
}

#header .admin-user-dropdown-links a:hover,
#header .admin-user-dropdown-links button:hover {
    background: #f8fbff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.admin-user-dropdown #logout-form {
    margin: 0;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
    cursor: pointer;
}

.action-button.secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #dbe3ee;
    box-shadow: none;
}

.site-form {
    display: grid;
    gap: 1.25rem;
}

.site-form.compact-form {
    gap: 0;
}

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

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

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

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

.form-field {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-field-hint {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.site-input,
.site-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.report-filters-grid {
    align-items: start;
}

.form-field ul.errorlist {
    margin: 0;
    padding-left: 1rem;
    color: #be123c;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-alert {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

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

.report-total-card {
    min-width: 230px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.report-total-card span,
.report-total-card strong {
    display: block;
}

.report-total-card span {
    color: rgba(255,255,255,0.64);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.report-total-card strong {
    margin-top: 0.4rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.site-table {
    margin-bottom: 0;
}

.site-table thead th {
    color: #718096;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe3ee;
    padding-bottom: 0.8rem;
}

.site-table tbody td {
    vertical-align: middle;
    border-color: #dbe3ee;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-table tbody tr:hover {
    background: #f8fbff;
}

.table-note {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #66758b;
}

.module-permission-fieldset .description {
    margin-top: 0.4rem;
    color: #64748b;
    line-height: 1.55;
}

ul.module-permission-list,
.module-permission-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem 0.9rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.module-permission-list li {
    margin: 0;
}

.module-permission-list label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.module-permission-list input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

#logout-form {
    margin: 0;
}

div.breadcrumbs {
    background: transparent;
    color: #475569;
    border-bottom: 0;
    padding: 1rem 24px 0;
}

div.breadcrumbs a {
    color: #1d4ed8;
}

#content {
    padding-top: 18px;
}

#changelist-filter {
    display: none !important;
}

.change-list #changelist.filtered .paginator,
.change-list #changelist.filtered #toolbar,
.change-list #changelist.filtered #changelist-form,
.change-list #changelist.filtered .results {
    margin-right: 0 !important;
    width: 100% !important;
}

#nav-sidebar,
.toggle-nav-sidebar,
.toggle-nav-sidebar-button {
    display: none !important;
}

.main.shifted,
#main.shifted,
#content-start {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#nav-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-right: 1px solid #dbe3ee;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}

#nav-filter {
    margin: 0.85rem 0.85rem 1rem;
    width: calc(100% - 1.7rem);
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    box-sizing: border-box;
}

#nav-sidebar .module {
    margin: 0 0.85rem 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

#nav-sidebar .module caption,
#nav-sidebar .module th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    color: #0f172a;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe3ee;
}

#nav-sidebar .module caption a.section,
#nav-sidebar .module th a.section {
    color: #0f172a;
}

#nav-sidebar .module td,
#nav-sidebar .module th {
    padding: 0.85rem 1rem;
}

#nav-sidebar .module tr:not(:last-child) td,
#nav-sidebar .module tr:not(:last-child) th {
    border-bottom: 1px solid #eef2f7;
}

#nav-sidebar .module td a,
#nav-sidebar .module th a:not(.section) {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

#nav-sidebar .module td a:hover,
#nav-sidebar .module th a:not(.section):hover {
    color: #1d4ed8;
}

#nav-sidebar .addlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    padding: 0.38rem 0.6rem;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 800;
}

#nav-sidebar .viewlink,
#nav-sidebar .changelink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    padding: 0.38rem 0.6rem;
    border-radius: 10px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

.toggle-nav-sidebar {
    border-right: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.toggle-nav-sidebar-button {
    color: #1d4ed8;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe3ee;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.admin-dashboard-shell {
    display: grid;
    gap: 1.2rem;
}

.admin-dashboard-refined {
    gap: 1rem;
}

.admin-dashboard-simple {
    gap: 1rem;
}

.admin-hero-strong {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 22%),
        radial-gradient(circle at bottom left, rgba(67, 56, 202, 0.14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dde6f0;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.admin-hero-clean {
    padding: 1.6rem 1.7rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe3ee;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.admin-hero-refined {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 1.25rem;
    padding: 1.55rem 1.65rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 20%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid #dbe3ee;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.admin-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1.2rem;
    align-items: center;
}

.admin-hero-logo-wrap {
    display: flex;
    justify-content: flex-end;
}

.admin-hero-logo {
    display: block;
    width: min(280px, 100%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.admin-hero-strong::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
}

.admin-hero-copy {
    position: relative;
    z-index: 1;
}

.admin-hero-refined .admin-hero-copy h1 {
    max-width: 14ch;
}

.admin-hero-brand {
    display: grid;
    justify-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-breadcrumbs-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-breadcrumbs-shell a {
    text-decoration: none;
}

.admin-hero-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.admin-hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #4338ca);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero-meta {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 1.2rem;
}

.admin-section-card {
    padding: 1.35rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe3ee;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.admin-workspace-card {
    padding: 1.45rem;
}

.admin-console-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
}

.admin-console-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 1.5rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%),
        linear-gradient(180deg, #0b1730 0%, #132241 100%);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.admin-console-brand-card {
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-console-brand-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-console-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.28));
}

.admin-console-brand-copy {
    min-width: 0;
}

.admin-console-brand-overline {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.58);
}

.admin-console-brand-copy h1 {
    margin: 0.35rem 0 0;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.admin-console-nav-block {
    margin-top: 1.5rem;
}

.admin-console-nav-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.45);
}

.admin-console-main {
    min-width: 0;
    padding: 1.4rem;
    display: grid;
    gap: 1.25rem;
}

.admin-console-hero .admin-hero-copy h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.admin-console-hero-meta {
    min-width: 220px;
    justify-items: center;
}

.admin-workspace-grid {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-side-navigation {
    position: sticky;
    top: 1rem;
    padding: 1.2rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent 24%),
        linear-gradient(180deg, #0b1730 0%, #12264d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.admin-side-navigation-head {
    margin-bottom: 1rem;
}

.admin-side-navigation-head h2 {
    margin: 0;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.admin-side-navigation-head p {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.9rem;
    line-height: 1.6;
}

.admin-side-navigation .admin-eyebrow {
    color: rgba(255, 255, 255, 0.64);
}

.admin-side-navigation-list {
    display: grid;
    gap: 0.7rem;
}

.admin-side-tab {
    width: 100%;
    display: grid;
    gap: 0.24rem;
    padding: 1rem 1.05rem;
    text-align: left;
    border-radius: 22px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 160ms ease;
}

.admin-side-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.admin-side-tab.is-active {
    background: linear-gradient(135deg, rgba(37,99,235,0.34), rgba(8,145,178,0.22));
    border-color: rgba(125, 211, 252, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-side-tab-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.admin-side-tab-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.admin-workspace-head p {
    margin: 0.45rem 0 0;
    max-width: 56ch;
    color: #64748b;
}

.admin-workspace-head h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.admin-section-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border: 1px solid #dbe7fb;
    color: #1e3a8a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-stream {
    display: grid;
    gap: 1rem;
}

.admin-app-panel {
    display: none;
}

.admin-app-panel.is-active {
    display: block;
}

.admin-overview-list {
    display: grid;
    gap: 0.85rem;
}

.admin-overview-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    text-align: left;
    border-radius: 20px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease;
}

.admin-overview-row:hover {
    background: #f8fbff;
    transform: translateX(2px);
}

.admin-overview-copy {
    display: grid;
    gap: 0.2rem;
}

.admin-overview-copy strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.admin-overview-copy span {
    color: #64748b;
    font-size: 0.84rem;
}

.admin-overview-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.54rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbe7fb;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-block {
    border-radius: 24px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.admin-app-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #e7edf5;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.05), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-app-block-head h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    letter-spacing: -0.03em;
}

.admin-app-block-head p {
    margin: 0.28rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
}

.admin-app-count {
    display: inline-flex;
    align-items: center;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbe7fb;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-model-list {
    display: grid;
    padding: 0.4rem 0;
}

.admin-app-empty {
    padding: 1rem 0.2rem 0.2rem;
}

.admin-app-empty strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.admin-app-empty p {
    margin: 0.35rem 0 0;
    color: #64748b;
}

.admin-module-link-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.admin-app-model-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.92rem 1.2rem;
    border-top: 1px solid #eef2f7;
    transition: background 140ms ease, transform 140ms ease;
}

.admin-app-model-row:first-child {
    border-top: 0;
}

.admin-app-model-row:hover {
    background: #f8fbff;
}

.admin-module-link {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 120ms ease;
}

.admin-module-link:hover {
    color: #1d4ed8;
}

.admin-module-link-copy small {
    color: #7c8aa0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-module-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    padding: 0.44rem 0.72rem;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.admin-action-link.muted {
    background: #f1f5f9;
    color: #334155;
}

.admin-side-panel {
    display: flex;
    flex-direction: column;
}

.admin-shortcuts {
    display: grid;
    gap: 0.8rem;
}

.admin-shortcut-card {
    display: block;
    padding: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.06), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-shortcut-card strong,
.admin-shortcut-card span {
    display: block;
}

.admin-shortcut-card strong {
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
}

.admin-shortcut-card span {
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
}

.admin-eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f97316;
}

.admin-hero h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.admin-hero p {
    margin: 0.55rem 0 0;
    color: #64748b;
    max-width: 60ch;
}

.admin-hero-badge {
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

#content-main .module,
#content-related .module,
.inline-group {
    border: 1px solid #dbe3ee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.module h2,
.module caption,
.inline-group h2 {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    color: #0f172a;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    border-bottom: 1px solid #dbe3ee;
}

.dashboard .module table th {
    width: 100%;
}

a.section:link,
a.section:visited {
    color: #0f172a;
    font-weight: 700;
}

table thead th {
    background: #f8fafc;
}

.button,
input[type=submit],
input[type=button],
.submit-row input,
a.button {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.button.default,
input[type=submit].default,
.submit-row input.default {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

input, textarea, select, .vTextField {
    border-radius: 14px !important;
    border-color: #cbd5e1 !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.14) !important;
}

.selector select {
    border-radius: 14px !important;
}

body.login {
    background:
        linear-gradient(132deg, transparent 0 34%, rgba(249, 115, 22, 0.14) 34% 38%, transparent 38% 100%),
        linear-gradient(132deg, transparent 0 52%, rgba(59, 130, 246, 0.12) 52% 56%, transparent 56% 100%),
        linear-gradient(132deg, #0a1426 0 30%, #101d38 30% 58%, #e8edf4 58% 100%);
}

body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 24%),
        radial-gradient(circle at 78% 24%, rgba(255,255,255,0.22), transparent 18%);
}

body.login::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 0%, transparent 54%, rgba(3, 7, 18, 0.18) 100%);
}

body.login #header,
body.login #nav-sidebar,
body.login .toggle-nav-sidebar,
body.login .toggle-nav-sidebar-button,
body.login #toolbar,
body.login #nav-filter,
body.login .main.shifted,
body.login #main .breadcrumbs,
body.login .sticky,
body.login #content-related,
body.login .content-subtitle,
body.login .object-tools,
body.login .messagelist,
body.login .module,
body.login #changelist-filter,
body.login #changelist {
    display: none !important;
}

body.login #main,
body.login #content-start,
body.login #content {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.login .main,
body.login #container,
body.login #main {
    width: 100% !important;
    max-width: 100% !important;
}

body.login #container {
    background: transparent;
}

body.login #content {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0 !important;
}

body.login #content-main {
    width: 100%;
}

.login-shell {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.login-center {
    width: min(390px, 100%);
}

.form-card-center {
    width: 100%;
    padding: 1.2rem;
    border-radius: 26px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 28px 64px rgba(2, 8, 23, 0.22);
    backdrop-filter: blur(14px);
}

.form-top-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-top-logo-image {
    display: block;
    width: min(220px, 100%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.form-card-head {
    margin-bottom: 0.85rem;
    text-align: center;
}

.login-kicker {
    display: inline-block;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-card h2 {
    margin: 0.45rem 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.form-card-head p {
    margin: 0.55rem 0 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.login-form-grid {
    display: grid;
    gap: 0.7rem;
    width: 100%;
}

.password-field-wrap {
    position: relative;
}

body.login .form-row {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

body.login .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    color: #1e293b;
    font-size: 0.84rem;
    font-weight: 700;
}

body.login .form-row input,
body.login #login-form input[type="text"],
body.login #login-form input[type="password"],
body.login #login-form input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    padding: 0.74rem 0.9rem;
    font-size: 0.9rem;
    background: #fff;
    box-sizing: border-box;
    display: block;
    border-radius: 16px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}

body.login .password-field-wrap input {
    padding-right: 3.25rem !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    width: 2.1rem;
    height: 2.1rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.password-toggle-eye {
    position: relative;
    display: block;
    width: 1.1rem;
    height: 0.72rem;
    margin: 0 auto;
    border: 2px solid #64748b;
    border-radius: 999px;
}

.password-toggle-eye::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: #64748b;
    transform: translate(-50%, -50%);
}

.password-toggle.is-visible .password-toggle-eye::after {
    content: "";
    position: absolute;
    top: -0.18rem;
    left: 50%;
    width: 2px;
    height: 1rem;
    background: #1d4ed8;
    transform: translateX(-50%) rotate(45deg);
}

body.login .submit-row {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
}

body.login .submit-row input {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-sizing: border-box;
    border-radius: 16px;
    background: linear-gradient(90deg, #4338ca 0%, #1d4ed8 100%);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.password-reset-link {
    margin-top: -0.05rem;
    margin-bottom: 0.1rem;
}

.password-reset-link a {
    color: #4338ca;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}

.logout-card {
    text-align: center;
}

.logout-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.6rem;
}

.logout-primary,
.logout-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.logout-primary {
    background: linear-gradient(90deg, #4338ca 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.logout-secondary {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.errornote {
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem;
}

@media (max-width: 980px) {
    .form-grid.two-columns,
    .form-grid.three-columns {
        grid-template-columns: 1fr;
    }

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

    body.dashboard .sidebar {
        position: static;
        min-height: auto;
    }

    body.dashboard .module-list-row {
        grid-template-columns: 1fr;
    }

    body.dashboard .module-list-meta {
        justify-items: start;
        text-align: left;
    }

    body.dashboard .admin-module-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-hero,
    .admin-section-grid,
    .admin-hero-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero-refined {
        grid-template-columns: 1fr;
    }

    .admin-hero-side {
        align-items: flex-start;
    }

    .admin-hero-logo-wrap {
        justify-content: flex-start;
    }

    .admin-hero-brand {
        justify-items: flex-start;
    }

    #header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-userbar {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-userbar-copy {
        text-align: left;
    }

    .admin-userbar-links {
        flex-wrap: wrap;
    }

    .admin-workspace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-workspace-grid {
        grid-template-columns: 1fr;
    }

    .admin-side-navigation {
        position: static;
    }

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

    .admin-console-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-app-block-head,
    .admin-app-model-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-module-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-overview-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 0.9rem;
    }

    .form-card-center {
        padding: 1rem;
        border-radius: 22px;
    }
}
