:root {
    --reg-brand-950: #3f0711;
    --reg-brand-900: #570b18;
    --reg-brand-850: #681020;
    --reg-brand-800: #781124;
    --reg-brand-700: #94172d;
    --reg-brand-600: #b21c37;
    --reg-brand-500: #cd2544;
    --reg-brand-400: #e44863;
    --reg-brand-300: #f07a8d;
    --reg-brand-200: #f9bac4;
    --reg-brand-100: #fde4e9;
    --reg-brand-50: #fff4f6;
    --reg-ink-950: #20171a;
    --reg-ink-900: #2b2024;
    --reg-ink-700: #5f5055;
    --reg-ink-600: #75666b;
    --reg-ink-500: #94868b;
    --reg-ink-300: #d8d0d2;
    --reg-ink-200: #e9e3e5;
    --reg-ink-100: #f3eff0;
    --reg-bg: #f8f6f6;
    --reg-card: #ffffff;
    --reg-success: #178456;
    --reg-success-soft: #e7f6ef;
    --reg-warning: #b47212;
    --reg-warning-soft: #fff6df;
    --reg-danger-soft: #fff0f2;
    --reg-sidebar-width: 282px;
    --reg-sidebar-collapsed: 88px;
    --reg-topbar-height: 78px;
    --reg-radius-sm: 12px;
    --reg-radius-md: 18px;
    --reg-radius-lg: 26px;
    --reg-shadow-sm: 0 10px 30px rgba(61, 20, 31, .07);
    --reg-shadow-md: 0 18px 55px rgba(61, 20, 31, .11);
    --reg-shadow-lg: 0 35px 90px rgba(61, 20, 31, .16);
}

html {
    min-height: 100%;
    background: var(--reg-bg);
}

body {
    min-height: 100vh;
    margin-bottom: 0 !important;
    color: var(--reg-ink-950);
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--reg-bg);
    letter-spacing: -.01em;
}

::selection {
    background: var(--reg-brand-200);
    color: var(--reg-brand-950);
}

a {
    color: var(--reg-brand-700);
}

a:hover {
    color: var(--reg-brand-900);
}

svg {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Shell */
.reg-app-body {
    overflow-x: hidden;
}

.reg-app-shell {
    min-height: 100vh;
    display: flex;
}

.reg-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--reg-sidebar-width);
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 8% -5%, rgba(255,255,255,.16), transparent 25%),
        linear-gradient(160deg, var(--reg-brand-900) 0%, var(--reg-brand-800) 48%, var(--reg-brand-950) 100%);
    box-shadow: 14px 0 40px rgba(77, 9, 24, .13);
    transition: width .26s ease, transform .26s ease;
    overflow: hidden;
}

.reg-sidebar::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: 12%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 86px rgba(255,255,255,.018);
    pointer-events: none;
}

.reg-sidebar-brand {
    min-height: var(--reg-topbar-height);
    padding: 16px 17px 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    position: relative;
    z-index: 1;
}

.reg-brand-link {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.reg-brand-link:hover {
    color: inherit;
}

.reg-brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--reg-brand-900);
    background: linear-gradient(145deg, #fff 0%, #f8e6e9 100%);
    box-shadow: 0 9px 24px rgba(24, 0, 5, .25), inset 0 0 0 1px rgba(255,255,255,.9);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.reg-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity .18s ease, width .22s ease;
}

.reg-brand-copy strong {
    font-size: 15px;
    letter-spacing: .12em;
}

.reg-brand-copy small {
    margin-top: 5px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.reg-sidebar-collapse,
.reg-mobile-menu {
    border: 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
    color: inherit;
    background: transparent;
}

.reg-sidebar-collapse {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.08);
    transition: transform .2s ease, background .2s ease;
}

.reg-sidebar-collapse:hover {
    background: rgba(255,255,255,.15);
}

.reg-sidebar-collapse svg,
.reg-mobile-menu svg {
    width: 19px;
    height: 19px;
}

.reg-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 14px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.23) transparent;
    position: relative;
    z-index: 1;
}

.reg-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.reg-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border-radius: 10px;
}

.reg-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reg-nav-group {
    margin-top: 17px;
}

.reg-nav-group-title {
    padding: 0 12px 7px;
    color: rgba(255,255,255,.43);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .16s ease;
}

.reg-nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 13px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    position: relative;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.reg-nav-item::before {
    content: "";
    position: absolute;
    left: -14px;
    width: 4px;
    height: 24px;
    border-radius: 0 5px 5px 0;
    background: #fff;
    opacity: 0;
    transform: scaleY(.4);
    transition: opacity .18s ease, transform .18s ease;
}

.reg-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
    transform: translateX(2px);
}

.reg-nav-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.reg-nav-item.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

.reg-nav-dashboard {
    margin-bottom: 2px;
}

.reg-nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
}

.reg-nav-icon svg {
    width: 20px;
    height: 20px;
}

.reg-nav-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 550;
    transition: opacity .16s ease;
}

.reg-nav-scope {
    padding: 3px 6px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.52);
    background: rgba(0,0,0,.07);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    transition: opacity .16s ease;
}

.reg-sidebar-status {
    margin: 0 14px 15px;
    min-height: 58px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.reg-status-dot,
.reg-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 5px rgba(57,217,138,.12);
}

.reg-sidebar-status-copy {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
}

.reg-sidebar-status-copy strong {
    font-size: 11px;
    font-weight: 650;
}

.reg-sidebar-status-copy small {
    margin-top: 2px;
    color: rgba(255,255,255,.48);
    font-size: 9px;
}

.reg-app-main {
    min-width: 0;
    width: calc(100% - var(--reg-sidebar-width));
    min-height: 100vh;
    margin-left: var(--reg-sidebar-width);
    display: flex;
    flex-direction: column;
    transition: width .26s ease, margin-left .26s ease;
}

.reg-topbar {
    position: sticky;
    top: 0;
    z-index: 1025;
    min-height: var(--reg-topbar-height);
    padding: 12px clamp(18px, 2.4vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(95,80,85,.10);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
}

.reg-topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-mobile-menu {
    width: 42px;
    height: 42px;
    border: 1px solid var(--reg-ink-200);
    border-radius: 13px;
    color: var(--reg-brand-800);
    background: #fff;
    box-shadow: var(--reg-shadow-sm);
}

.reg-page-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reg-page-identity span {
    color: var(--reg-brand-600);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.reg-page-identity strong {
    margin-top: 1px;
    overflow: hidden;
    color: var(--reg-ink-900);
    font-size: 17px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-user-trigger {
    min-width: 0;
    padding: 5px 8px 5px 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--reg-ink-900);
    background: transparent;
    transition: background .18s ease, border-color .18s ease;
}

.reg-user-trigger:hover,
.reg-user-trigger[aria-expanded="true"] {
    border-color: var(--reg-ink-200);
    background: #fff;
}

.reg-user-trigger::after {
    margin-left: 2px;
    color: var(--reg-ink-500);
}

.reg-user-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--reg-brand-600), var(--reg-brand-900));
    box-shadow: 0 8px 18px rgba(148,23,45,.22);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.reg-user-avatar-lg {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
}

.reg-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.reg-user-copy strong {
    max-width: 170px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-user-copy small {
    max-width: 170px;
    overflow: hidden;
    color: var(--reg-brand-600);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.reg-user-menu {
    width: 280px;
    padding: 10px;
    border: 1px solid var(--reg-ink-200);
    border-radius: 18px;
    box-shadow: var(--reg-shadow-md);
}

.reg-user-menu-head {
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.reg-user-menu-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reg-user-menu-head strong,
.reg-user-menu-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-user-menu-head strong {
    font-size: 13px;
}

.reg-user-menu-head small {
    color: var(--reg-ink-500);
    font-size: 10px;
}

.reg-user-menu .dropdown-item {
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--reg-ink-700);
    font-size: 12px;
}

.reg-user-menu .dropdown-item:hover {
    color: var(--reg-brand-800);
    background: var(--reg-brand-50);
}

.reg-user-menu .reg-logout-item {
    color: var(--reg-brand-700);
}

.reg-menu-mini-icon {
    width: 20px;
    display: inline-block;
    font-weight: 800;
}

.reg-content {
    flex: 1;
    width: 100%;
    padding: clamp(20px, 2.4vw, 34px);
}

.reg-footer {
    min-height: 56px;
    padding: 15px clamp(18px, 2.4vw, 34px);
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--reg-ink-200);
    color: var(--reg-ink-500);
    background: rgba(255,255,255,.55);
    font-size: 10px;
    letter-spacing: .03em;
}

.reg-footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--reg-brand-400);
}

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

body.reg-sidebar-collapsed .reg-sidebar {
    width: var(--reg-sidebar-collapsed);
}

body.reg-sidebar-collapsed .reg-app-main {
    width: calc(100% - var(--reg-sidebar-collapsed));
    margin-left: var(--reg-sidebar-collapsed);
}

body.reg-sidebar-collapsed .reg-brand-copy,
body.reg-sidebar-collapsed .reg-nav-group-title,
body.reg-sidebar-collapsed .reg-nav-label,
body.reg-sidebar-collapsed .reg-nav-scope,
body.reg-sidebar-collapsed .reg-sidebar-status-copy {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

body.reg-sidebar-collapsed .reg-brand-link {
    flex: 0 0 auto;
}

body.reg-sidebar-collapsed .reg-sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.reg-sidebar-collapsed .reg-sidebar-collapse {
    position: absolute;
    right: 5px;
    bottom: -16px;
    transform: rotate(180deg);
    box-shadow: 0 5px 13px rgba(29,0,6,.18);
}

body.reg-sidebar-collapsed .reg-sidebar-scroll {
    padding-left: 12px;
    padding-right: 12px;
}

body.reg-sidebar-collapsed .reg-nav-item {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.reg-sidebar-collapsed .reg-nav-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.075);
}

body.reg-sidebar-collapsed .reg-nav-icon {
    flex-basis: 28px;
    width: 28px;
}

body.reg-sidebar-collapsed .reg-sidebar-status {
    justify-content: center;
    margin-left: 12px;
    margin-right: 12px;
}

/* Page primitives */
.reg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--reg-brand-600);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.reg-eyebrow::before {
    content: "";
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.reg-eyebrow-light {
    color: rgba(255,255,255,.76);
}

.reg-page-head {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.reg-page-head h1 {
    margin: 7px 0 4px;
    color: var(--reg-ink-950);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.reg-page-head p {
    max-width: 780px;
    margin: 0;
    color: var(--reg-ink-600);
    font-size: 13px;
    line-height: 1.7;
}

.reg-panel {
    border: 1px solid rgba(95,80,85,.09);
    border-radius: var(--reg-radius-md);
    background: var(--reg-card);
    box-shadow: var(--reg-shadow-sm);
    overflow: hidden;
}

.reg-panel-head {
    padding: 21px 22px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reg-panel-head h2 {
    margin: 5px 0 0;
    color: var(--reg-ink-900);
    font-size: 17px;
    font-weight: 720;
    letter-spacing: -.02em;
}

.reg-panel-badge {
    padding: 6px 9px;
    border: 1px solid var(--reg-brand-100);
    border-radius: 999px;
    color: var(--reg-brand-700);
    background: var(--reg-brand-50);
    font-size: 9px;
    font-weight: 750;
}

.reg-scope-chip {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 11px;
    border: 1px solid var(--reg-brand-100);
    border-radius: 999px;
    color: var(--reg-brand-800);
    background: var(--reg-brand-50);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.reg-scope-chip-small {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 9px;
}

/* Dashboard */
.reg-dashboard-hero {
    min-height: 235px;
    padding: clamp(26px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: var(--reg-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.14), transparent 28%),
        linear-gradient(125deg, var(--reg-brand-900) 0%, var(--reg-brand-700) 55%, var(--reg-brand-500) 120%);
    box-shadow: 0 28px 65px rgba(121, 17, 36, .22);
    overflow: hidden;
    position: relative;
}

.reg-dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}

.reg-dashboard-hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.reg-dashboard-hero h1 {
    margin: 10px 0 9px;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 760;
    letter-spacing: -.045em;
}

.reg-dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.65;
}

.reg-hero-meta {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.reg-hero-meta > span {
    min-height: 30px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 650;
}

.reg-dashboard-hero-art {
    width: 235px;
    height: 190px;
    flex: 0 0 235px;
    display: grid;
    place-items: center;
    position: relative;
}

.reg-hero-monogram {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 31px;
    color: var(--reg-brand-800);
    background: linear-gradient(145deg, #fff, #f7e3e7);
    box-shadow: 0 30px 55px rgba(48,0,10,.28), inset 0 1px 0 rgba(255,255,255,.9);
    font-size: 58px;
    font-weight: 850;
    letter-spacing: -.09em;
    transform: rotate(-6deg);
    position: relative;
    z-index: 2;
}

.reg-hero-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}

.reg-hero-orbit-one {
    width: 182px;
    height: 182px;
}

.reg-hero-orbit-two {
    width: 242px;
    height: 242px;
    opacity: .55;
}

.reg-metric-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.reg-metric-card {
    min-height: 132px;
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(95,80,85,.09);
    border-radius: var(--reg-radius-md);
    color: var(--reg-ink-900);
    background: #fff;
    box-shadow: var(--reg-shadow-sm);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.reg-metric-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--reg-brand-100), transparent 68%);
    opacity: .68;
}

.reg-metric-card:hover {
    color: var(--reg-ink-900);
    border-color: var(--reg-brand-200);
    box-shadow: var(--reg-shadow-md);
    transform: translateY(-4px);
}

.reg-metric-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--reg-brand-100);
    border-radius: 15px;
    color: var(--reg-brand-700);
    background: linear-gradient(145deg, #fff, var(--reg-brand-50));
}

.reg-metric-icon svg {
    width: 23px;
    height: 23px;
}

.reg-metric-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reg-metric-label {
    color: var(--reg-ink-600);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.reg-metric-content strong {
    margin: 2px 0 1px;
    color: var(--reg-ink-950);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.reg-metric-content small {
    color: var(--reg-ink-500);
    font-size: 9px;
}

.reg-metric-arrow {
    align-self: flex-end;
    color: var(--reg-brand-500);
    font-size: 19px;
    font-weight: 500;
    transition: transform .2s ease;
}

.reg-metric-card:hover .reg-metric-arrow {
    transform: translateX(3px);
}

.reg-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .7fr);
    gap: 15px;
}

.reg-quick-grid {
    padding: 0 22px 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.reg-quick-action {
    min-height: 69px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--reg-ink-100);
    border-radius: 14px;
    color: var(--reg-ink-900);
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.reg-quick-action:hover {
    color: var(--reg-brand-800);
    border-color: var(--reg-brand-100);
    background: var(--reg-brand-50);
    transform: translateY(-2px);
}

.reg-quick-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--reg-brand-700);
    background: var(--reg-brand-50);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.reg-quick-action > span:nth-child(2) {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reg-quick-action strong {
    font-size: 11px;
    font-weight: 700;
}

.reg-quick-action small {
    margin-top: 2px;
    color: var(--reg-ink-500);
    font-size: 9px;
}

.reg-quick-chevron {
    color: var(--reg-brand-500);
    font-size: 21px;
}

.reg-system-card {
    display: flex;
    flex-direction: column;
}

.reg-status-pill {
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: var(--reg-success);
    background: var(--reg-success-soft);
    font-size: 9px;
    font-weight: 750;
}

.reg-status-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--reg-success);
}

.reg-system-list {
    padding: 0 22px;
    flex: 1;
}

.reg-system-list > div {
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--reg-ink-100);
    font-size: 10px;
}

.reg-system-list span {
    color: var(--reg-ink-500);
}

.reg-system-list strong {
    max-width: 60%;
    overflow: hidden;
    color: var(--reg-ink-900);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-system-foot {
    margin-top: 13px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--reg-ink-100);
    color: var(--reg-ink-600);
    background: linear-gradient(90deg, var(--reg-brand-50), #fff);
    font-size: 9px;
}

/* Authentication */
.reg-auth-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(205,37,68,.09), transparent 28%),
        radial-gradient(circle at 90% 90%, rgba(148,23,45,.08), transparent 25%),
        #f8f6f6;
}

.reg-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reg-auth-topbar {
    min-height: 72px;
    padding: 14px clamp(20px, 4vw, 56px);
    display: flex;
    align-items: center;
}

.reg-brand-link-auth {
    flex: 0 0 auto;
    color: var(--reg-ink-900);
}

.reg-brand-link-auth .reg-brand-mark {
    color: #fff;
    background: linear-gradient(145deg, var(--reg-brand-600), var(--reg-brand-900));
    box-shadow: 0 10px 25px rgba(121,17,36,.2);
}

.reg-brand-link-auth .reg-brand-copy small {
    color: var(--reg-ink-500);
}

.reg-auth-main {
    flex: 1;
    display: flex;
}

.reg-auth-footer {
    min-height: 54px;
    padding: 13px clamp(20px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--reg-ink-500);
    font-size: 9px;
    letter-spacing: .04em;
}

.reg-auth-stage {
    width: 100%;
    padding: 18px clamp(18px, 5vw, 70px) 30px;
    display: grid;
    place-items: center;
}

.reg-auth-card {
    width: min(1050px, 100%);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    border: 1px solid rgba(95,80,85,.09);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--reg-shadow-lg);
    overflow: hidden;
}

.reg-auth-showcase {
    padding: clamp(34px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.14), transparent 25%),
        linear-gradient(145deg, var(--reg-brand-950), var(--reg-brand-700) 72%, var(--reg-brand-500));
    overflow: hidden;
    position: relative;
}

.reg-auth-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.reg-auth-showcase h1,
.reg-setup-aside h1 {
    margin: 24px 0 14px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.reg-auth-showcase p,
.reg-setup-aside > p {
    max-width: 460px;
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.72;
}

.reg-auth-feature-list {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.reg-auth-feature {
    padding: 11px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.reg-auth-feature > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--reg-brand-900);
    background: rgba(255,255,255,.9);
    font-size: 8px;
    font-weight: 850;
}

.reg-auth-feature > div {
    display: flex;
    flex-direction: column;
}

.reg-auth-feature strong {
    font-size: 11px;
    font-weight: 700;
}

.reg-auth-feature small {
    margin-top: 2px;
    color: rgba(255,255,255,.52);
    font-size: 9px;
}

.reg-auth-glow {
    position: absolute;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    pointer-events: none;
}

.reg-auth-glow-one {
    right: -110px;
    top: 24%;
    width: 300px;
    height: 300px;
    box-shadow: 0 0 0 55px rgba(255,255,255,.02), 0 0 0 110px rgba(255,255,255,.015);
}

.reg-auth-glow-two {
    left: -80px;
    bottom: -100px;
    width: 220px;
    height: 220px;
}

.reg-auth-form-panel,
.reg-setup-form-panel {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fff, #fffdfd);
}

.reg-auth-form-wrap {
    width: min(420px, calc(100% - 50px));
    padding: 40px 0;
}

.reg-auth-heading {
    margin-bottom: 27px;
}

.reg-auth-heading h2 {
    margin: 7px 0 5px;
    color: var(--reg-ink-950);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.reg-auth-heading p {
    margin: 0;
    color: var(--reg-ink-600);
    font-size: 12px;
}

.reg-field {
    margin-bottom: 16px;
}

.reg-field .form-label {
    margin-bottom: 7px;
    color: var(--reg-ink-700);
    font-size: 11px;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: var(--reg-ink-200);
    border-radius: 12px;
    color: var(--reg-ink-900);
    background-color: #fff;
    font-size: 12px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-control-lg,
.form-select-lg {
    min-height: 50px;
    padding: 11px 13px;
    font-size: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--reg-brand-400);
    box-shadow: 0 0 0 4px rgba(205,37,68,.09);
}

.form-control::placeholder {
    color: #b5a9ad;
}

.reg-input-shell {
    position: relative;
}

.reg-input-shell .form-control {
    padding-left: 43px;
}

.reg-input-shell-plain .form-control {
    padding-left: 13px;
}

.reg-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--reg-brand-600);
    pointer-events: none;
}

.reg-input-icon svg {
    width: 18px;
    height: 18px;
}

.reg-password-shell .form-control {
    padding-right: 46px;
}

.reg-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 3;
    width: 31px;
    height: 31px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: var(--reg-ink-500);
    background: transparent;
    transform: translateY(-50%);
}

.reg-password-toggle:hover {
    color: var(--reg-brand-700);
    background: var(--reg-brand-50);
}

.reg-password-toggle svg {
    width: 17px;
    height: 17px;
}

.reg-check .form-check-input {
    border-color: var(--reg-ink-300);
}

.reg-check .form-check-input:checked {
    border-color: var(--reg-brand-600);
    background-color: var(--reg-brand-600);
}

.reg-check .form-check-input:focus {
    border-color: var(--reg-brand-400);
    box-shadow: 0 0 0 4px rgba(205,37,68,.08);
}

.reg-check .form-check-label {
    color: var(--reg-ink-700);
    font-size: 10px;
}

.reg-security-note {
    color: var(--reg-ink-500);
    font-size: 9px;
}

.btn.reg-btn-primary,
.reg-btn-primary {
    min-height: 47px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--reg-brand-700);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--reg-brand-600), var(--reg-brand-800));
    box-shadow: 0 13px 25px rgba(148,23,45,.20);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn.reg-btn-primary:hover,
.reg-btn-primary:hover {
    color: #fff;
    box-shadow: 0 17px 32px rgba(148,23,45,.26);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.btn.reg-btn-primary:active,
.reg-btn-primary:active {
    transform: translateY(0);
}

.btn-primary {
    --bs-btn-bg: var(--reg-brand-700);
    --bs-btn-border-color: var(--reg-brand-700);
    --bs-btn-hover-bg: var(--reg-brand-800);
    --bs-btn-hover-border-color: var(--reg-brand-800);
    --bs-btn-active-bg: var(--reg-brand-900);
    --bs-btn-active-border-color: var(--reg-brand-900);
}

.btn-outline-primary {
    --bs-btn-color: var(--reg-brand-700);
    --bs-btn-border-color: var(--reg-brand-300);
    --bs-btn-hover-bg: var(--reg-brand-700);
    --bs-btn-hover-border-color: var(--reg-brand-700);
}

.reg-auth-form-foot {
    margin-top: 22px;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-top: 1px solid var(--reg-ink-100);
    color: var(--reg-ink-500);
    font-size: 9px;
}

.reg-alert {
    margin-bottom: 17px;
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.55;
}

.reg-alert-success {
    border-color: #bfe7d3;
    color: #17643f;
    background: var(--reg-success-soft);
}

.reg-alert-danger {
    border-color: #f2c1c9;
    color: #8a2033;
    background: var(--reg-danger-soft);
}

.reg-alert-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(23,132,86,.12);
    font-weight: 800;
}

.reg-validation-summary:empty,
.reg-validation-summary.validation-summary-valid {
    display: none;
}

.reg-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

/* Setup */
.reg-setup-card {
    width: min(980px, 100%);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(430px, 1.22fr);
    border: 1px solid rgba(95,80,85,.09);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--reg-shadow-lg);
    overflow: hidden;
}

.reg-setup-aside {
    padding: clamp(34px, 4vw, 52px);
    color: #fff;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.12), transparent 25%),
        linear-gradient(145deg, var(--reg-brand-950), var(--reg-brand-700));
}

.reg-setup-aside h1 {
    font-size: clamp(31px, 4vw, 43px);
}

.reg-setup-shield {
    width: 62px;
    height: 62px;
    margin-top: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 19px;
    color: #fff;
    background: rgba(255,255,255,.08);
}

.reg-setup-shield svg {
    width: 30px;
    height: 30px;
}

.reg-setup-note {
    margin-top: 38px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}

.reg-setup-note strong {
    font-size: 10px;
}

.reg-setup-note span {
    color: rgba(255,255,255,.58);
    font-size: 9px;
    line-height: 1.55;
}

.reg-setup-form-panel {
    padding: clamp(34px, 5vw, 58px);
    display: block;
}

.reg-password-rule {
    margin: 6px 0 18px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--reg-brand-100);
    border-radius: 12px;
    background: var(--reg-brand-50);
}

.reg-password-rule > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--reg-brand-700);
    font-size: 10px;
    font-weight: 800;
}

.reg-password-rule p {
    margin: 0;
    color: var(--reg-ink-700);
    font-size: 9px;
    line-height: 1.55;
}

/* Placeholder / security */
.reg-module-placeholder {
    min-height: 260px;
    margin-bottom: 16px;
    padding: clamp(25px, 4vw, 42px);
    display: flex;
    align-items: center;
    gap: clamp(25px, 5vw, 65px);
    border: 1px solid var(--reg-brand-100);
    border-radius: var(--reg-radius-lg);
    background: linear-gradient(120deg, #fff 0%, var(--reg-brand-50) 100%);
    overflow: hidden;
    position: relative;
}

.reg-module-placeholder::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -100px;
    bottom: -120px;
    border: 1px solid var(--reg-brand-100);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(205,37,68,.025), 0 0 0 90px rgba(205,37,68,.018);
}

.reg-module-placeholder-visual {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    display: grid;
    place-items: center;
    position: relative;
}

.reg-placeholder-ring {
    position: absolute;
    inset: 7px;
    border: 1px solid var(--reg-brand-200);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(205,37,68,.035);
}

.reg-placeholder-mark {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 23px;
    color: #fff;
    background: linear-gradient(145deg, var(--reg-brand-600), var(--reg-brand-900));
    box-shadow: 0 18px 34px rgba(148,23,45,.24);
    font-size: 40px;
    font-weight: 850;
    letter-spacing: -.08em;
}

.reg-module-placeholder-copy {
    max-width: 630px;
    position: relative;
    z-index: 2;
}

.reg-module-placeholder-copy h2 {
    margin: 7px 0 8px;
    font-size: clamp(24px, 3vw, 33px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.reg-module-placeholder-copy p {
    margin: 0;
    color: var(--reg-ink-600);
    font-size: 12px;
    line-height: 1.72;
}

.reg-permission-chip-row {
    padding: 0 22px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reg-permission-chip {
    min-height: 32px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--reg-ink-200);
    border-radius: 999px;
    color: var(--reg-ink-500);
    background: #faf9f9;
    font-size: 10px;
    font-weight: 700;
}

.reg-permission-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--reg-ink-300);
}

.reg-permission-chip.is-on {
    border-color: #bfe7d3;
    color: #17643f;
    background: var(--reg-success-soft);
}

.reg-permission-chip.is-on i {
    background: var(--reg-success);
}

.reg-user-context-card {
    min-width: 310px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--reg-ink-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--reg-shadow-sm);
}

.reg-user-context-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--reg-brand-600), var(--reg-brand-900));
    font-size: 13px;
    font-weight: 800;
}

.reg-user-context-card > div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reg-user-context-card strong,
.reg-user-context-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-user-context-card strong {
    font-size: 11px;
}

.reg-user-context-card small {
    color: var(--reg-ink-500);
    font-size: 9px;
}

.reg-role-pill {
    padding: 5px 7px;
    border-radius: 999px;
    color: var(--reg-brand-800);
    background: var(--reg-brand-50);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
}

.reg-context-strip {
    margin-bottom: 14px;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    border: 1px solid var(--reg-ink-100);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
}

.reg-context-strip > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.reg-context-strip span {
    color: var(--reg-ink-500);
}

.reg-context-strip strong {
    color: var(--reg-ink-900);
}

.reg-table-panel .reg-panel-head {
    border-bottom: 1px solid var(--reg-ink-100);
}

.reg-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--reg-brand-50);
    color: var(--reg-ink-700);
    font-size: 10px;
}

.reg-table > :not(caption) > * > * {
    padding: 11px 13px;
    border-bottom-color: var(--reg-ink-100);
}

.reg-table thead th {
    color: var(--reg-ink-500);
    background: #fcfbfb;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.reg-table tbody tr:last-child td {
    border-bottom: 0;
}

.reg-table-primary {
    color: var(--reg-ink-900);
    font-size: 10px;
    font-weight: 700;
}

.reg-table-secondary {
    margin-top: 2px;
    color: var(--reg-ink-500);
    font-size: 8px;
    letter-spacing: .04em;
}

.reg-bool-pill {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.reg-bool-pill.is-yes {
    color: var(--reg-success);
    background: var(--reg-success-soft);
}

.reg-bool-pill.is-no {
    color: #aaa0a3;
    background: #f4f1f2;
}

.reg-source-badge {
    padding: 5px 7px;
    display: inline-flex;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.reg-source-admin {
    color: #fff;
    background: linear-gradient(135deg, var(--reg-brand-600), var(--reg-brand-800));
}

.reg-source-user {
    color: #7b540d;
    background: var(--reg-warning-soft);
}

.reg-source-role {
    color: var(--reg-ink-600);
    background: var(--reg-ink-100);
}

/* States */
.reg-state-page {
    width: min(640px, 100%);
    margin: 7vh auto 0;
    padding: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--reg-ink-100);
    border-radius: var(--reg-radius-lg);
    text-align: center;
    background: #fff;
    box-shadow: var(--reg-shadow-md);
}

.reg-state-visual {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 23px;
}

.reg-state-warning {
    color: var(--reg-brand-700);
    background: var(--reg-brand-50);
}

.reg-state-visual svg {
    width: 35px;
    height: 35px;
}

.reg-state-page h1 {
    margin: 10px 0 8px;
    font-size: 29px;
    font-weight: 760;
    letter-spacing: -.035em;
}

.reg-state-page p {
    max-width: 500px;
    margin: 0 0 22px;
    color: var(--reg-ink-600);
    font-size: 12px;
    line-height: 1.7;
}

/* Bootstrap components restyled for future modules */
.card {
    border-color: var(--reg-ink-100);
    border-radius: var(--reg-radius-md);
    box-shadow: var(--reg-shadow-sm);
}

.modal-content {
    border: 1px solid var(--reg-ink-100);
    border-radius: 22px;
    box-shadow: var(--reg-shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 18px 20px;
    border-bottom-color: var(--reg-ink-100);
    background: linear-gradient(180deg, #fff, #fffafa);
}

.modal-title {
    color: var(--reg-ink-900);
    font-size: 16px;
    font-weight: 730;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top-color: var(--reg-ink-100);
    background: #fcfbfb;
}

.table {
    --bs-table-hover-bg: var(--reg-brand-50);
}

.badge.text-bg-dark,
.badge.bg-dark {
    background-color: var(--reg-brand-800) !important;
}

.alert-danger {
    border-color: #f1c1ca;
    color: #842136;
    background: var(--reg-danger-soft);
}

.alert-success {
    border-color: #bfe7d3;
    color: #17643f;
    background: var(--reg-success-soft);
}

/* Motion */
@keyframes regFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-fade-in {
    animation: regFadeUp .45s cubic-bezier(.2,.7,.2,1) both;
}

.reg-stagger > * {
    animation: regFadeUp .42s cubic-bezier(.2,.7,.2,1) both;
}

.reg-stagger > *:nth-child(1) { animation-delay: .04s; }
.reg-stagger > *:nth-child(2) { animation-delay: .08s; }
.reg-stagger > *:nth-child(3) { animation-delay: .12s; }
.reg-stagger > *:nth-child(4) { animation-delay: .16s; }

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

/* Responsive */
@media (min-width: 992px) {
    .reg-mobile-menu {
        display: none;
    }
}

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

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

@media (max-width: 991.98px) {
    .reg-sidebar {
        width: min(300px, 86vw);
        transform: translateX(-104%);
    }

    .reg-app-main,
    body.reg-sidebar-collapsed .reg-app-main {
        width: 100%;
        margin-left: 0;
    }

    body.reg-sidebar-open .reg-sidebar {
        transform: translateX(0);
    }

    .reg-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1035;
        display: block;
        border: 0;
        background: rgba(33, 15, 20, .42);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    body.reg-sidebar-open .reg-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.reg-sidebar-collapsed .reg-sidebar {
        width: min(300px, 86vw);
    }

    body.reg-sidebar-collapsed .reg-brand-copy,
    body.reg-sidebar-collapsed .reg-nav-group-title,
    body.reg-sidebar-collapsed .reg-nav-label,
    body.reg-sidebar-collapsed .reg-nav-scope,
    body.reg-sidebar-collapsed .reg-sidebar-status-copy {
        width: auto;
        opacity: 1;
        pointer-events: auto;
    }

    body.reg-sidebar-collapsed .reg-sidebar-brand {
        justify-content: initial;
        padding: 16px 17px 14px 18px;
    }

    body.reg-sidebar-collapsed .reg-sidebar-scroll {
        padding: 18px 14px 24px;
    }

    body.reg-sidebar-collapsed .reg-nav-item {
        justify-content: initial;
        padding: 8px 10px;
    }

    body.reg-sidebar-collapsed .reg-nav-group {
        margin-top: 17px;
        padding-top: 0;
        border-top: 0;
    }

    body.reg-sidebar-collapsed .reg-sidebar-status {
        justify-content: initial;
        margin: 0 14px 15px;
    }

    .reg-dashboard-hero-art {
        display: none;
    }

    .reg-auth-card,
    .reg-setup-card {
        grid-template-columns: 1fr;
    }

    .reg-auth-showcase {
        min-height: 310px;
    }

    .reg-auth-feature-list {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 8px;
    }

    .reg-auth-feature {
        align-items: flex-start;
        border-top: 0;
        flex-direction: column;
    }

    .reg-setup-aside {
        min-height: 300px;
    }

    .reg-setup-shield {
        margin-top: 28px;
    }

    .reg-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .reg-user-context-card {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .reg-topbar {
        min-height: 68px;
        padding: 10px 14px;
    }

    .reg-content {
        padding: 17px 14px 24px;
    }

    .reg-user-copy {
        display: none;
    }

    .reg-dashboard-hero {
        min-height: 0;
        padding: 27px 22px;
        border-radius: 20px;
    }

    .reg-dashboard-hero h1 {
        font-size: 34px;
    }

    .reg-metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reg-metric-card {
        min-height: 105px;
    }

    .reg-quick-grid {
        grid-template-columns: 1fr;
    }

    .reg-auth-topbar {
        padding: 12px 17px;
    }

    .reg-auth-stage {
        padding: 8px 12px 22px;
    }

    .reg-auth-card,
    .reg-setup-card {
        border-radius: 22px;
    }

    .reg-auth-showcase {
        min-height: 275px;
        padding: 30px 25px;
    }

    .reg-auth-showcase h1,
    .reg-setup-aside h1 {
        margin-top: 18px;
        font-size: 34px;
    }

    .reg-auth-feature-list {
        display: none;
    }

    .reg-auth-form-wrap {
        width: calc(100% - 38px);
        padding: 33px 0;
    }

    .reg-setup-aside {
        min-height: 250px;
        padding: 29px 25px;
    }

    .reg-setup-shield {
        width: 50px;
        height: 50px;
        margin-top: 20px;
        border-radius: 16px;
    }

    .reg-setup-form-panel {
        padding: 30px 22px;
    }

    .reg-auth-footer {
        padding: 12px 18px;
        flex-direction: column;
        gap: 4px;
    }

    .reg-module-placeholder {
        align-items: flex-start;
        flex-direction: column;
    }

    .reg-module-placeholder-visual {
        width: 110px;
        height: 110px;
        flex-basis: 110px;
    }

    .reg-placeholder-mark {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 30px;
    }

    .reg-state-page {
        margin-top: 3vh;
        padding: 30px 20px;
    }
}
