:root {
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    font-size: 14px;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--page-background, var(--bg));
}
.site-backdrop {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.site-backdrop::before {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(ellipse at 20% 28%, color-mix(in srgb, var(--info) 23%, transparent), transparent 47%),
        radial-gradient(ellipse at 82% 72%, color-mix(in srgb, var(--muted) 23%, transparent), transparent 45%);
}
#support-chat-widget > #cw-widget-holder:not(.woot--hide, .has-unread-view),
#support-chat-widget .woot-widget-bubble:not(.woot--hide) {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
#support-chat-widget .woot-widget-bubble {
    background-color: rgb(96 98 102 / 82%) !important;
}
#support-chat-widget > #cw-widget-holder iframe {
    color-scheme: light dark;
}
a {
    color: var(--accent);
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled,
:is(.button, .text-button, .icon-button)[aria-disabled="true"] {
    cursor: default;
    opacity: 0.6;
}
a,
button,
input,
select,
textarea {
    outline-offset: 4px;
}
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    padding: 12px 14px;
    color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--focus-ring);
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow);
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 19px;
}
label input,
label select,
label textarea {
    margin-top: 8px;
}
label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.6;
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    margin: 0;
    flex-shrink: 0;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 9px;
    font-weight: 650;
}
h2 {
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 7px;
    font-weight: 650;
}
h3 {
    font-size: 15px;
    font-weight: 600;
}
small,
.small-text {
    font-size: 12px;
}
.muted {
    color: var(--muted);
    line-height: 1.7;
}
.eyebrow {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 12px;
}
.button,
.text-button,
.icon-button {
    --button-background: transparent;
    --button-hover: var(--hover);
    --button-border: transparent;
    --button-color: var(--text);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: var(--control-height);
    border: 1px solid var(--button-border);
    border-radius: var(--radius-control);
    background: var(--button-background);
    color: var(--button-color);
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    transition:
        background var(--control-motion),
        color var(--control-motion),
        border-color var(--control-motion);
    white-space: nowrap;
}
:is(.button, .text-button, .icon-button):not(:disabled, [aria-disabled="true"]):hover {
    background: var(--button-hover);
}
:is(.button, .text-button, .icon-button):focus-visible {
    outline-color: var(--focus-ring);
}
.button.primary {
    --button-background: var(--primary);
    --button-hover: var(--primary-hover);
    --button-color: var(--on-accent);
}
.button.secondary {
    --button-background: var(--surface);
    --button-border: var(--line);
}
.button.ghost,
.text-button {
    padding-inline: 10px;
}
.full {
    width: 100%;
    margin-top: 5px;
}
.small-button,
.button.small {
    min-height: var(--control-compact);
    padding: 6px 12px;
}
.danger {
    color: var(--red);
}
.button.danger,
.text-button.danger {
    --button-color: var(--red);
    --button-hover: var(--danger-soft);
}
.button-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.icon-button {
    --button-color: var(--muted);
    width: var(--control-compact);
    min-height: var(--control-compact);
    padding: 0;
}
[hidden] {
    display: none !important;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--on-accent);
    font-size: 28px;
    letter-spacing: -1px;
    font-weight: 650;
}
.brand-mark {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 10px;
    width: 35px;
    height: 35px;
    font-size: 32px;
    font-weight: 750;
    line-height: 1;
    padding-bottom: 4px;
    font-family: "Segoe UI", sans-serif;
}
.brand-dot {
    color: var(--accent);
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    display: flex;
    flex-direction: column;
    background: var(--nav);
    color: var(--muted);
    padding: 29px 18px 18px;
    z-index: 20;
}
.sidebar > .brand {
    margin: 0 13px 33px;
}
.workspace-label {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 10px;
    margin: 0 6px 28px;
    font-size: 12px;
    color: var(--on-accent);
}
.workspace-label small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.workspace-icon {
    padding: 8px;
    background: var(--surface-alt);
    border-radius: 7px;
    display: flex;
    color: var(--accent);
}
.workspace-arrow {
    margin-left: auto;
    color: var(--muted);
}
.nav-label {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: var(--muted);
    margin: 0 16px 13px;
    font-weight: 700;
}
.sidebar nav {
    display: grid;
    gap: 5px;
    margin-bottom: 28px;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 12px;
    transition: 0.2s;
}
.sidebar nav a:hover {
    color: var(--on-accent);
    background: color-mix(in srgb, var(--text) 3%, transparent);
}
.sidebar nav a.active {
    background: var(--nav-active-background, var(--primary));
    color: var(--nav-active-text, var(--on-accent));
    box-shadow: 0 5px 18px var(--shadow);
}
.sidebar-bottom {
    margin-top: auto;
}
.sidebar-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 10px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}
.sidebar-note small {
    display: block;
    font-size: 9px;
    color: var(--muted);
}
.sidebar-note .status-dot {
    margin-top: 5px;
}
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 19px 10px 2px;
    color: var(--on-accent);
}
.sidebar-profile strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
}
.sidebar-profile small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}
.sidebar-profile > svg {
    margin-left: auto;
    color: var(--muted);
}
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar.small {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
}
.avatar.extra-large {
    width: 88px;
    height: 88px;
    border-radius: 23px;
    font-size: 34px;
    border: 5px solid var(--surface);
    position: relative;
    margin: -45px auto 0;
    display: flex;
}
.main-shell {
    margin-left: 238px;
    width: calc(100% - 238px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    color: var(--muted);
}
.breadcrumb strong {
    font-weight: 500;
    color: var(--muted);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.environment-badge {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}
.status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}
.status-dot.red {
    background: var(--red);
}
.status-dot.amber-dot {
    background: var(--warning);
}
.main-content {
    padding: 34px 36px 20px;
    max-width: 1680px;
    width: 100%;
    margin: auto auto 0;
    flex: 1;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.page-heading h1 {
    font-size: 27px;
    margin-bottom: 7px;
}
.page-heading p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 0;
}
.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.date-chip,
.count-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 11px;
    color: var(--muted);
}
:where(.card, .stat-card, .post-card, .plugin-card) {
    -webkit-backdrop-filter: blur(28px) saturate(120%);
    backdrop-filter: blur(28px) saturate(120%);
}
.card {
    background: var(--card-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    padding: 24px;
    min-width: 0;
}
.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
}
.card-heading p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
    line-height: 1.5;
}
.card-icon {
    padding: 10px;
    border-radius: 11px;
    background: var(--surface-alt);
    color: var(--accent);
    display: inline-flex;
}
.section-gap {
    margin-top: 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 21px 21px 18px;
}
.stat-card > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
}
.stat-label {
    color: var(--muted);
    font-size: 11px;
}
.stat-icon {
    display: inline-flex;
    padding: 10px;
    border-radius: 10px;
}
.violet {
    color: var(--accent);
    background: var(--accent-soft);
}
.mint {
    color: var(--green);
    background: var(--success-soft);
}
.blue {
    color: var(--info);
    background: var(--info-soft);
}
.amber {
    color: var(--warning);
    background: var(--warning-soft);
}
.stat-card > strong {
    display: block;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 11px 0 13px;
}
.stat-card > small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 24px;
}
.legend {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
}
.legend span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}
.chart {
    height: 216px;
    width: 100%;
    position: relative;
}
.chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chart-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    padding-top: 17px;
    border-top: 1px solid var(--line);
    gap: 10px;
}
.chart-footer span:last-child {
    color: var(--muted);
}
.compact-metrics {
    margin: 0;
}
.compact-metrics > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 11px;
}
.compact-metrics dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.compact-metrics dd {
    font-weight: 600;
    margin: 0;
    color: var(--muted);
}
.table-scroll {
    overflow-x: auto;
    margin: 0 -24px;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
    white-space: nowrap;
}
th {
    font-weight: 500;
    font-size: 10px;
    color: var(--muted);
    background: var(--surface);
    padding: 13px 23px;
    text-align: left;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
td {
    padding: 16px 23px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: var(--surface);
}
.user-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--info);
}
.user-cell strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
}
.user-cell small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--surface-alt);
    color: var(--muted);
}
.badge.success {
    background: var(--success-soft);
    color: var(--green);
}
.badge.accent {
    background: var(--accent-soft);
    color: var(--accent);
}
.badge.warning {
    background: var(--warning-soft);
    color: var(--warning);
}
.badge.error {
    background: var(--danger-soft);
    color: var(--red);
}
.badge-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.row-link {
    display: inline-flex;
    padding: 7px;
    border-radius: 7px;
    color: var(--muted);
}
.row-link:hover {
    color: var(--accent);
    background: var(--accent-soft);
}
.footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 36px;
    color: var(--muted);
    font-size: 10px;
}
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}
.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.filter-tabs button {
    border: 0;
    background: none;
    color: var(--muted);
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 11px;
}
.filter-tabs button.active {
    background: var(--accent-soft);
    color: var(--accent);
}
.search-input {
    display: flex;
    align-items: center;
    position: relative;
    width: 250px;
    flex-shrink: 0;
}
.search-input svg {
    position: absolute;
    left: 12px;
    color: var(--muted);
}
.search-input input {
    padding: 10px 12px 10px 38px;
    font-size: 11px;
    background: var(--surface);
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted);
    gap: 10px;
}
.pagination > div {
    display: flex;
    gap: 8px;
}
.empty-state {
    text-align: center;
    padding: 55px 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}
.empty-state h2 {
    color: var(--muted);
}
.profile-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
}
.profile-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
}
.profile-cover {
    height: 94px;
    background:
        radial-gradient(ellipse at 25% 30%, var(--accent), transparent 70%),
        linear-gradient(120deg, var(--accent-soft), var(--accent-soft));
}
.profile-info {
    padding: 17px 25px 26px;
}
.profile-info h2 {
    font-size: 20px;
    margin-bottom: 7px;
}
.profile-info > p {
    color: var(--muted);
    font-size: 11px;
}
.profile-info .badge-row {
    justify-content: center;
    margin: 17px 0 22px;
}
.upload-button {
    margin: 0;
}
.profile-info > small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 12px;
}
.detail-list {
    margin: 0;
}
.detail-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.detail-list > div:last-child {
    border-bottom: 0;
}
.detail-list dt {
    color: var(--muted);
}
.detail-list dd {
    margin: 0;
    color: var(--muted);
    text-align: right;
    overflow-wrap: anywhere;
}
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    background: var(--surface-alt);
    padding: 14px 17px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 0;
}
.info-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.subscription-tile {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(140deg, var(--surface), var(--surface));
}
.subscription-tile h3 {
    margin-bottom: 10px;
}
.subscription-tile p {
    font-size: 12px;
    color: var(--muted);
    margin: 9px 0 0;
}
.retention-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 23px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.retention-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.retention-note p {
    margin-bottom: 0;
}
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.wide {
    grid-column: 1/-1;
}
.two-factor-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 800px;
}
.two-factor-content p {
    font-size: 12px;
    margin-bottom: 18px;
}
.two-factor-illustration {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 24px;
}
.session-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}
.session-row > div:nth-child(2) {
    flex: 1;
}
.session-row strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
}
.session-row small {
    color: var(--muted);
    font-size: 10px;
    display: block;
    margin-top: 6px;
}
.role-order-hint {
    margin: -10px 0 18px;
    color: var(--muted);
    font-size: 11px;
}
.roles-list {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}
.role-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    transition: background .18s ease, opacity .18s ease;
}
.role-row + .role-row {
    border-top: 1px solid var(--line);
}
.role-row.dragging {
    opacity: .4;
}
.role-row.drop-target {
    background: var(--accent-soft);
    box-shadow: inset 0 2px var(--accent);
}
.role-drag {
    color: var(--muted);
    cursor: grab;
    display: flex;
    padding: 8px 0;
}
.role-symbol {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}
.role-content {
    flex: 1;
    min-width: 0;
}
.role-title, .role-summary, .role-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.role-title {
    flex-wrap: wrap;
}
.role-title h2 {
    margin: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}
.role-content > p {
    color: var(--muted);
    font-size: 11px;
    margin: 7px 0;
    line-height: 1.6;
}
.role-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 10px;
    color: var(--muted);
}
.role-summary summary {
    cursor: pointer;
}
.role-permissions, .user-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.role-permissions {
    margin-top: 10px;
    max-width: 560px;
}
.role-actions {
    flex-shrink: 0;
}
@media (max-width: 650px) {
    .role-row {
        gap: 10px;
        padding: 18px 12px;
        flex-wrap: wrap;
    }
    .role-symbol {
        display: none;
    }
    .role-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
.back-link {
    display: inline-block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 19px;
}
.user-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}
.user-detail-top {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 24px;
}
.user-detail-top .avatar {
    width: 68px;
    height: 68px;
    font-size: 25px;
    border-radius: 18px;
}
.user-detail-top h2 {
    font-size: 22px;
    margin-bottom: 7px;
}
.user-detail-top p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.detail-section-title {
    margin-top: 26px;
    margin-bottom: 17px;
    font-size: 15px;
}
.action-list {
    display: grid;
    gap: 9px;
}
.action-list .button {
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
}
.hardware-item {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
}
.hardware-item h3 {
    font-size: 12px;
    overflow-wrap: anywhere;
}
.hardware-item pre {
    background: var(--surface);
    border-radius: 7px;
    padding: 13px;
    overflow: auto;
    max-height: 180px;
    font-size: 10px;
    line-height: 1.7;
    color: var(--muted);
}
.account-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.account-links a {
    background: var(--surface-alt);
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 10px;
}
.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 30px;
}
.auth-card {
    width: 100%;
    max-width: 365px;
}
.auth-step-icon {
    display: inline-flex;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 13px;
    padding: 14px;
    margin-bottom: 28px;
}
.auth-card > h1 {
    font-size: 27px;
    letter-spacing: -0.9px;
    line-height: 1.3;
}
.auth-description {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 30px;
}
.auth-card form {
    margin-top: 24px;
}
.auth-card label {
    font-size: 11px;
}
.auth-card input {
    font-size: 12px;
    padding: 13px 14px;
}
.auth-card .button {
    padding: 12px 17px;
}
.password-input {
    display: grid;
    position: relative;
}
label .password-input {
    margin-top: 8px;
}
label .password-input input {
    margin-top: 0;
    padding-inline-end: 44px;
}
.password-input input::-ms-reveal {
    display: none;
}
.password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 4px;
    display: grid;
    place-items: center;
    width: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
}
.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--text);
}
.password-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
}
.password-toggle-slash:not(.is-visible) {
    display: none;
}
.form-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    font-size: 10px;
    margin: -2px 0 22px;
}
.form-between .small-text {
    font-size: 9px;
}
.auth-switch {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 25px;
}
.auth-switch a {
    font-weight: 600;
    margin-left: 5px;
}
.auth-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 38px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}
.feedback {
    padding: 13px 15px;
    background: var(--danger-soft);
    color: var(--red);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.8;
    margin: 20px 0;
}
.feedback.success {
    background: var(--surface-alt);
    border-color: var(--line);
    color: var(--green);
}
.code-input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 22px !important;
    font-family: monospace;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 400;
    font-size: 11px;
}
.checkbox-label input {
    margin: 0;
}
.modal {
    background: var(--surface);
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    padding: 30px;
    box-shadow: var(--raised-shadow);
    color: var(--text);
}
.modal::backdrop {
    background: var(--scrim);
    backdrop-filter: blur(4px);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    margin: 0;
    font-size: 20px;
}
.modal p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 25px;
}
.permission-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.permission-label code {
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.permission-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.permission-options label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    background: var(--surface);
    padding: 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}
.authenticator-setup {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.authenticator-qr {
    display: block;
    width: min(256px, 100%);
    height: auto;
    border-radius: 12px;
    background: #fff;
    image-rendering: pixelated;
}
.authenticator-manual summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
}
.setup-key {
    padding: 17px;
    background: var(--surface-alt);
    border: 1px dashed var(--line);
    border-radius: 10px;
    display: block;
    overflow-wrap: anywhere;
    text-align: center;
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 15px;
    margin: 20px 0;
}
.toasts {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    display: grid;
    gap: 10px;
    max-width: 390px;
}
.toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 35px var(--shadow);
    font-size: 12px;
    line-height: 1.7;
}
.toast.error {
    background: var(--danger-soft);
    color: var(--red);
}
.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-alt) 25%,
        var(--surface-alt) 50%,
        var(--surface-alt) 75%
    );
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}
.skeleton.line {
    height: 18px;
    min-width: 100px;
}
.skeleton.block {
    height: 150px;
    width: 100%;
}
.skeleton.chart-skeleton {
    height: 100%;
    width: 100%;
}
.mobile-menu {
    display: none;
}
@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}
@media (max-width: 1200px) {
    .main-content {
        padding: 28px 24px;
    }
    .topbar,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    .sidebar {
        width: 215px;
    }
    .main-shell {
        margin-left: 215px;
        width: calc(100% - 215px);
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 17px 14px;
    }
    .stat-label {
        font-size: 10px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 245px;
        gap: 18px;
    }
    .card {
        padding: 20px;
    }
    .table-scroll {
        margin: 0 -20px;
    }
    th,
    td {
        padding-left: 18px;
        padding-right: 18px;
    }
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .search-input {
        width: 100%;
    }
    .profile-grid {
        grid-template-columns: 270px minmax(0, 1fr);
    }
    .auth-visual {
        padding: 35px;
    }
    .auth-copy h1 {
        font-size: 34px;
    }
}
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid,
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
    .security-overview {
        display: none;
    }
    .security-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-actions {
        flex-wrap: wrap;
    }
    .date-chip {
        display: none;
    }
    .auth-shell {
        grid-template-columns: 38% 62%;
    }
    .auth-visual {
        padding: 25px;
    }
    .auth-copy h1 {
        font-size: 28px;
    }
    .auth-art {
        min-height: 170px;
    }
    .art-core {
        width: 95px;
        height: 95px;
        border-radius: 25px;
        font-size: 85px;
        padding-bottom: 11px;
    }
    .orbit-one {
        width: 160px;
        height: 160px;
    }
    .orbit-two {
        width: 240px;
        height: 180px;
    }
    .orbit-three {
        width: 290px;
        height: 240px;
    }
    .auth-pills {
        display: none;
    }
    .auth-copy > p {
        font-size: 10px;
    }
}
@media (max-width: 680px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
        width: 238px;
        visibility: hidden;
        box-shadow: none;
    }
    .app-shell.menu-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 10px 0 40px var(--shadow);
    }
    .main-shell {
        margin-left: 0;
        width: 100%;
    }
    .mobile-menu {
        display: flex;
    }
    .topbar {
        height: 64px;
        padding: 0 17px;
        gap: 10px;
    }
    .breadcrumb {
        margin-right: auto;
        gap: 8px;
        font-size: 10px;
    }
    .topbar-actions {
        gap: 7px;
    }
    .environment-badge {
        display: none;
    }
    .main-content {
        padding: 24px 17px;
    }
    .page-heading {
        gap: 12px;
        margin-bottom: 23px;
    }
    .page-heading h1 {
        font-size: 24px;
    }
    .page-heading p {
        font-size: 11px;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-card {
        padding: 15px 12px;
    }
    .stat-icon {
        padding: 7px;
    }
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .stat-card > strong {
        font-size: 26px;
    }
    .stat-card > small {
        font-size: 9px;
        line-height: 1.6;
    }
    .stat-label {
        font-size: 9px;
        max-width: 90px;
    }
    .card {
        padding: 19px 17px;
        border-radius: 11px;
    }
    .card-heading h2 {
        font-size: 15px;
    }
    .table-scroll {
        margin: 0 -17px;
    }
    th,
    td {
        padding: 14px 17px;
    }
    .chart {
        height: 190px;
    }
    .chart-footer {
        font-size: 9px;
    }
    .footer {
        padding: 20px 17px;
        font-size: 9px;
    }
    .two-factor-content {
        align-items: flex-start;
        gap: 15px;
    }
    .two-factor-illustration {
        width: 55px;
        height: 55px;
        border-radius: 15px;
    }
    .two-factor-illustration svg {
        width: 30px;
        height: 30px;
    }
    .permission-options {
        grid-template-columns: 1fr;
    }
    .auth-shell {
        display: flex;
        min-height: 100vh;
    }
    .auth-visual {
        display: none;
    }
    .auth-content {
        width: 100%;
        padding: 35px 25px;
    }
    .auth-card {
        max-width: 380px;
    }
    .auth-card > h1 {
        font-size: 26px;
    }
    .toasts {
        left: 17px;
        right: 17px;
        bottom: 17px;
        max-width: none;
    }
    .detail-list > div {
        font-size: 11px;
        gap: 12px;
    }
    .modal {
        background: var(--surface);
        padding: 24px;
    }
    .filter-tabs button {
        font-size: 10px;
        padding: 9px;
    }
    .code-input {
        font-size: 20px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}
