/* PHOENIX V7 — ARCHIVE COMMAND INTERFACE */
:root {
    --v7-bg-0: #03070b;
    --v7-bg-1: #061019;
    --v7-bg-2: #0a1824;
    --v7-bg-3: #0d2030;
    --v7-panel: rgba(6, 18, 28, 0.94);
    --v7-panel-strong: rgba(8, 24, 36, 0.98);
    --v7-line: rgba(88, 196, 255, 0.16);
    --v7-line-strong: rgba(88, 196, 255, 0.36);
    --v7-line-hot: rgba(255, 106, 61, 0.46);
    --v7-data: #67d7ff;
    --v7-data-2: #2fb9e8;
    --v7-alert: #ff6a3d;
    --v7-alert-soft: rgba(255, 106, 61, 0.13);
    --v7-ok: #42f0b0;
    --v7-warn: #ffc866;
    --v7-danger: #ff657f;
    --v7-text: #e3f1fa;
    --v7-text-2: #b4cad7;
    --v7-muted: #7694a7;
    --v7-sidebar: clamp(16rem, 18vw, 19rem);
    --v7-header: 4.75rem;
    --v7-radius: 0.75rem;
    --v7-radius-sm: 0.45rem;
    --v7-gap: clamp(0.75rem, 1vw, 1.15rem);
    --v7-content-pad: clamp(0.85rem, 2vw, 2.25rem);
    --v7-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

html {
    background: var(--v7-bg-0);
    scrollbar-gutter: stable;
    scroll-behavior: auto !important;
}

html.v7-active,
html.v7-active body {
    min-height: 100%;
    background: var(--v7-bg-0) !important;
}

html.v7-active body {
    margin: 0 !important;
    color: var(--v7-text) !important;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(0.88rem, 0.22vw + 0.82rem, 1rem) !important;
    line-height: 1.52 !important;
    overflow-x: hidden !important;
    background-image:
        linear-gradient(rgba(88, 196, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 196, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 78% 4%, rgba(40, 136, 193, 0.12), transparent 34rem),
        linear-gradient(135deg, transparent 0 47%, rgba(84, 176, 226, 0.035) 47.2% 47.4%, transparent 47.6% 100%) !important;
    background-size: 42px 42px, 42px 42px, auto, auto !important;
    background-attachment: scroll !important;
}

html.v7-active body::before,
html.v7-active body::after,
html.v7-active .scanlines,
html.v7-active .page-transition,
html.v7-active .topbar,
html.v7-active .sidebar,
html.v7-active .sidebar-backdrop {
    display: none !important;
}

html.v7-active * {
    box-sizing: border-box;
}

html.v7-active a {
    color: var(--v7-data);
}

html.v7-active button,
html.v7-active input,
html.v7-active textarea,
html.v7-active select {
    font: inherit;
}

html.v7-active button,
html.v7-active a,
html.v7-active [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

html.v7-active .v7-shell {
    min-height: 100dvh;
}

html.v7-active .v7-header {
    position: fixed;
    z-index: 1100;
    inset: 0 0 auto 0;
    min-height: var(--v7-header);
    display: grid;
    grid-template-columns: minmax(13rem, var(--v7-sidebar)) minmax(16rem, 1fr) auto;
    align-items: stretch;
    background: rgba(3, 9, 14, 0.95);
    border-bottom: 1px solid var(--v7-line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

html.v7-active .v7-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0 1.15rem;
    color: var(--v7-text) !important;
    text-decoration: none !important;
    border-right: 1px solid var(--v7-line);
    background: linear-gradient(90deg, rgba(255, 106, 61, 0.07), transparent 65%);
}

html.v7-active .v7-brand__mark {
    width: 2.65rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--v7-line-hot);
    border-radius: 50%;
    color: var(--v7-alert);
    font: 700 1.45rem/1 "Segoe UI Symbol", sans-serif;
    box-shadow: inset 0 0 25px rgba(255, 106, 61, 0.08), 0 0 24px rgba(255, 106, 61, 0.06);
}

html.v7-active .v7-brand__copy {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

html.v7-active .v7-brand__copy strong {
    color: var(--v7-text);
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.32em;
    white-space: nowrap;
}

html.v7-active .v7-brand__copy small {
    color: var(--v7-muted);
    font: 500 0.62rem/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

html.v7-active .v7-search {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem clamp(0.8rem, 2vw, 1.7rem);
}

html.v7-active .v7-search__button {
    width: min(100%, 48rem);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.95rem;
    color: var(--v7-muted);
    text-align: left;
    background: rgba(4, 14, 22, 0.86);
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius-sm);
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

html.v7-active .v7-search__button:hover,
html.v7-active .v7-search__button:focus-visible {
    color: var(--v7-text);
    border-color: var(--v7-line-strong);
    background: rgba(8, 27, 41, 0.95);
    outline: none;
}

html.v7-active .v7-search__button kbd {
    margin-left: auto;
    padding: 0.18rem 0.38rem;
    color: var(--v7-muted);
    font: 600 0.64rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--v7-line);
    border-radius: 0.3rem;
}

html.v7-active .v7-session {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-left: 1px solid var(--v7-line);
}

html.v7-active .v7-meta {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
    padding: 0.4rem 0.65rem;
    border-left: 1px solid rgba(88, 196, 255, 0.09);
}

html.v7-active .v7-meta span {
    color: var(--v7-muted);
    font: 500 0.58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

html.v7-active .v7-meta strong {
    max-width: 10rem;
    overflow: hidden;
    color: var(--v7-text-2);
    font: 650 0.76rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.v7-active .v7-connection strong {
    color: var(--v7-ok);
}

html.v7-active .v7-avatar-button,
html.v7-active .v7-menu-button {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--v7-data);
    background: rgba(8, 26, 39, 0.9);
    border: 1px solid var(--v7-line-strong);
    border-radius: 50%;
    cursor: pointer;
}

html.v7-active .v7-menu-button {
    display: none;
    border-radius: var(--v7-radius-sm);
}

html.v7-active .v7-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

html.v7-active .v7-avatar-fallback {
    font: 700 0.82rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

html.v7-active .v7-avatar-button::after {
    content: "";
    position: absolute;
    right: -0.08rem;
    bottom: -0.08rem;
    width: 0.62rem;
    height: 0.62rem;
    background: var(--v7-ok);
    border: 2px solid var(--v7-bg-0);
    border-radius: 50%;
}

html.v7-active .v7-sidebar {
    position: fixed;
    z-index: 1000;
    inset: var(--v7-header) auto 0 0;
    width: var(--v7-sidebar);
    overflow: hidden auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(5, 15, 23, 0.98), rgba(3, 10, 16, 0.99));
    border-right: 1px solid var(--v7-line);
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 196, 255, 0.22) transparent;
}

html.v7-active .v7-sidebar__head {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.1rem 0.9rem;
    border-bottom: 1px solid rgba(88, 196, 255, 0.1);
}

html.v7-active .v7-sidebar__head span {
    color: var(--v7-muted);
    font: 600 0.58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.18em;
}

html.v7-active .v7-sidebar__head strong {
    color: var(--v7-text);
    font: 700 0.88rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
}

html.v7-active .v7-nav {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
}

html.v7-active .v7-nav-group {
    display: grid;
    gap: 0.25rem;
    padding: 0.35rem;
    border: 1px solid transparent;
    border-radius: var(--v7-radius-sm);
}

html.v7-active .v7-nav-group[data-open="true"] {
    border-color: rgba(88, 196, 255, 0.08);
    background: rgba(6, 19, 29, 0.45);
}

html.v7-active .v7-nav-group__toggle {
    width: 100%;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.55rem;
    color: var(--v7-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

html.v7-active .v7-nav-group__toggle b {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--v7-data);
    font: 700 0.62rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    border: 1px solid var(--v7-line);
}

html.v7-active .v7-nav-group__toggle span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font: 650 0.62rem/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.14em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

html.v7-active .v7-nav-group__toggle i {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translate(-0.12rem, -0.12rem);
    transition: transform 140ms ease;
}

html.v7-active .v7-nav-group[data-open="false"] .v7-nav-group__toggle i {
    transform: rotate(-45deg);
}

html.v7-active .v7-nav-group__items {
    display: grid;
    gap: 0.16rem;
}

html.v7-active .v7-nav-group[data-open="false"] .v7-nav-group__items {
    display: none;
}

html.v7-active .v7-nav-link {
    min-height: 2.7rem;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.65rem;
    color: var(--v7-text-2) !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 0.38rem;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

html.v7-active .v7-nav-link:hover,
html.v7-active .v7-nav-link:focus-visible {
    color: var(--v7-text) !important;
    background: rgba(88, 196, 255, 0.06);
    border-color: rgba(88, 196, 255, 0.12);
    outline: none;
}

html.v7-active .v7-nav-link[aria-current="page"] {
    color: var(--v7-text) !important;
    background: linear-gradient(90deg, rgba(255, 106, 61, 0.12), rgba(88, 196, 255, 0.07));
    border-color: rgba(255, 106, 61, 0.34);
    box-shadow: inset 3px 0 0 var(--v7-alert);
}

html.v7-active .v7-nav-link__code {
    color: var(--v7-data);
    font: 700 0.61rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

html.v7-active .v7-nav-link__label {
    min-width: 0;
    overflow: hidden;
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.v7-active .v7-nav-link__dot {
    width: 0.36rem;
    height: 0.36rem;
    background: var(--v7-ok);
    border-radius: 50%;
    box-shadow: 0 0 0.7rem var(--v7-ok);
    opacity: 0;
}

html.v7-active .v7-nav-link[aria-current="page"] .v7-nav-link__dot {
    opacity: 1;
}

html.v7-active .v7-sidebar__foot {
    margin: 0.65rem 0.75rem 1rem;
    padding: 0.9rem;
    background: rgba(8, 27, 40, 0.7);
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius-sm);
}

html.v7-active .v7-sidebar__foot span,
html.v7-active .v7-sidebar__foot small {
    display: block;
    color: var(--v7-muted);
    font: 500 0.57rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.v7-active .v7-sidebar__foot strong {
    display: block;
    margin: 0.45rem 0;
    color: var(--v7-ok);
    font: 750 0.8rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.16em;
}

html.v7-active .v7-main,
html.v7-active main.site-main,
html.v7-active body > main {
    min-width: 0 !important;
    width: auto !important;
    min-height: calc(100dvh - var(--v7-header)) !important;
    margin: var(--v7-header) 0 0 var(--v7-sidebar) !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
}

html.v7-active.v7-public-page .v7-main,
html.v7-active.v7-public-page main.site-main,
html.v7-active.v7-public-page body > main {
    margin-left: 0 !important;
}

html.v7-active .page-frame,
html.v7-active .main-container,
html.v7-active .public-shell,
html.v7-active .auth-page-shell {
    width: min(100%, 112rem) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: var(--v7-content-pad) !important;
}

html.v7-active .site-footer {
    margin-left: var(--v7-sidebar) !important;
    padding: 1rem var(--v7-content-pad) !important;
    color: var(--v7-muted) !important;
    background: rgba(3, 10, 16, 0.95) !important;
    border-top: 1px solid var(--v7-line) !important;
}

html.v7-active.v7-public-page .site-footer {
    margin-left: 0 !important;
}

html.v7-active .page-heading {
    position: relative;
    display: grid;
    gap: 0.42rem;
    margin: 0 0 clamp(1rem, 2vw, 1.8rem) !important;
    padding: clamp(0.75rem, 1vw, 1rem) 0 clamp(0.9rem, 1.2vw, 1.2rem) clamp(1rem, 1.6vw, 1.45rem) !important;
    border-left: 2px solid var(--v7-alert) !important;
}

html.v7-active .page-heading::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: min(34rem, 65%);
    height: 1px;
    background: linear-gradient(90deg, var(--v7-alert), var(--v7-data), transparent);
}

html.v7-active .page-heading h1,
html.v7-active .public-page h1,
html.v7-active .auth-page-shell h1 {
    margin: 0 !important;
    color: var(--v7-text) !important;
    font-size: clamp(2rem, 4.2vw, 4rem) !important;
    font-weight: 770 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
    text-wrap: balance;
}

html.v7-active .page-heading .micro-label,
html.v7-active .micro-label,
html.v7-active .panel-header span,
html.v7-active .tech-widget-head span {
    color: var(--v7-data) !important;
    font: 650 0.6rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

html.v7-active .heading-rule {
    display: none !important;
}

html.v7-active .hud-panel,
html.v7-active .command-hero,
html.v7-active .tech-widget,
html.v7-active .auth-form-panel,
html.v7-active .auth-visual,
html.v7-active .application-entry-card,
html.v7-active .choice-card,
html.v7-active .studio-panel,
html.v7-active .knowledge-toolbar,
html.v7-active .knowledge-content,
html.v7-active .personnel-panel,
html.v7-active .dossier-card,
html.v7-active .roster-card,
html.v7-active .report-editor,
html.v7-active .report-list,
html.v7-active .channel-shell,
html.v7-active .server-shell,
html.v7-active .platform-card,
html.v7-active .v7-panel {
    color: var(--v7-text-2) !important;
    background:
        linear-gradient(180deg, rgba(9, 29, 44, 0.93), rgba(5, 17, 26, 0.96)) !important;
    border: 1px solid var(--v7-line) !important;
    border-radius: var(--v7-radius) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018), var(--v7-shadow) !important;
    backdrop-filter: none !important;
}

html.v7-active .hud-panel,
html.v7-active .studio-panel,
html.v7-active .platform-card,
html.v7-active .v7-panel {
    padding: clamp(0.85rem, 1.2vw, 1.25rem) !important;
}

html.v7-active .hud-panel:hover,
html.v7-active .tech-widget:hover,
html.v7-active .choice-card:hover,
html.v7-active .roster-card:hover {
    border-color: var(--v7-line-strong) !important;
    transform: none !important;
}

html.v7-active .panel-header,
html.v7-active .studio-panel > header,
html.v7-active .tech-widget-head {
    min-height: 2.45rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin: -0.25rem -0.2rem 0.75rem !important;
    padding: 0.45rem 0.55rem 0.7rem !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(88, 196, 255, 0.12) !important;
}

html.v7-active .panel-header b,
html.v7-active .studio-panel > header > span,
html.v7-active .tech-widget-head i {
    color: var(--v7-alert) !important;
    font: 700 0.74rem/1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

html.v7-active h2,
html.v7-active h3,
html.v7-active h4 {
    color: var(--v7-text) !important;
    letter-spacing: -0.02em !important;
}

html.v7-active p,
html.v7-active li,
html.v7-active td,
html.v7-active label,
html.v7-active small {
    color: var(--v7-text-2);
}

html.v7-active .dashboard-grid,
html.v7-active .tech-widget-grid,
html.v7-active .choice-grid,
html.v7-active .public-grid,
html.v7-active .metrics-grid,
html.v7-active .dossier-grid,
html.v7-active .personnel-grid,
html.v7-active .knowledge-grid {
    gap: var(--v7-gap) !important;
}

html.v7-active .tech-widget-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html.v7-active .tech-widget {
    min-width: 0 !important;
    padding: 0.9rem !important;
}

html.v7-active .tech-widget strong {
    color: var(--v7-data) !important;
    font: 750 clamp(1.1rem, 1.8vw, 1.55rem)/1.05 ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

html.v7-active .hud-button,
html.v7-active button.hud-button,
html.v7-active .platform-form button,
html.v7-active button[type="submit"],
html.v7-active .v7-button {
    min-height: 2.7rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.55rem 0.9rem !important;
    color: var(--v7-text) !important;
    font: 700 0.68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    background: rgba(8, 28, 43, 0.92) !important;
    border: 1px solid var(--v7-line-strong) !important;
    border-radius: var(--v7-radius-sm) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease !important;
}

html.v7-active .hud-button:hover,
html.v7-active .hud-button:focus-visible,
html.v7-active button[type="submit"]:hover,
html.v7-active button[type="submit"]:focus-visible {
    color: #fff !important;
    background: rgba(15, 49, 72, 0.98) !important;
    border-color: var(--v7-data) !important;
    outline: none !important;
    transform: none !important;
}

html.v7-active .hud-button.primary,
html.v7-active button.primary,
html.v7-active button[type="submit"] {
    color: #07111a !important;
    background: linear-gradient(90deg, #79e1ff, #35b8ed) !important;
    border-color: rgba(126, 226, 255, 0.9) !important;
}

html.v7-active .hud-button.danger,
html.v7-active button.danger,
html.v7-active .danger-button {
    color: #ffdce3 !important;
    background: rgba(91, 15, 34, 0.72) !important;
    border-color: rgba(255, 101, 127, 0.46) !important;
}

html.v7-active input,
html.v7-active textarea,
html.v7-active select,
html.v7-active .platform-form input,
html.v7-active .platform-form textarea,
html.v7-active .platform-form select {
    width: 100% !important;
    min-height: 2.8rem !important;
    padding: 0.68rem 0.8rem !important;
    color: var(--v7-text) !important;
    caret-color: var(--v7-data) !important;
    background: rgba(2, 11, 18, 0.9) !important;
    border: 1px solid var(--v7-line) !important;
    border-radius: var(--v7-radius-sm) !important;
    box-shadow: none !important;
    outline: none !important;
}

html.v7-active textarea {
    min-height: 8rem !important;
    resize: vertical !important;
}

html.v7-active input:focus,
html.v7-active textarea:focus,
html.v7-active select:focus {
    border-color: var(--v7-data) !important;
    box-shadow: 0 0 0 3px rgba(103, 215, 255, 0.08) !important;
}

html.v7-active input::placeholder,
html.v7-active textarea::placeholder {
    color: rgba(118, 148, 167, 0.68) !important;
}

html.v7-active label > span,
html.v7-active .field-label {
    display: block;
    margin-bottom: 0.38rem;
    color: var(--v7-muted) !important;
    font: 650 0.59rem/1.1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

html.v7-active .v7-select {
    position: relative;
    width: 100%;
}

html.v7-active .v7-select > select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html.v7-active .v7-select__button {
    width: 100%;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.68rem 0.8rem;
    color: var(--v7-text);
    text-align: left;
    background: rgba(2, 11, 18, 0.9);
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius-sm);
    cursor: pointer;
}

html.v7-active .v7-select__button::after {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 auto;
    border-right: 1px solid var(--v7-data);
    border-bottom: 1px solid var(--v7-data);
    transform: rotate(45deg) translateY(-0.15rem);
}

html.v7-active .v7-select[data-open="true"] .v7-select__button {
    border-color: var(--v7-data);
    box-shadow: 0 0 0 3px rgba(103, 215, 255, 0.08);
}

html.v7-active .v7-select__menu {
    position: absolute;
    z-index: 1500;
    inset: calc(100% + 0.35rem) 0 auto 0;
    max-height: min(20rem, 45vh);
    overflow: auto;
    padding: 0.35rem;
    background: #06121c;
    border: 1px solid var(--v7-line-strong);
    border-radius: var(--v7-radius-sm);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
}

html.v7-active .v7-select[data-open="false"] .v7-select__menu {
    display: none;
}

html.v7-active .v7-select__option {
    width: 100%;
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    padding: 0.45rem 0.62rem;
    color: var(--v7-text-2);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.32rem;
    cursor: pointer;
}

html.v7-active .v7-select__option:hover,
html.v7-active .v7-select__option:focus-visible,
html.v7-active .v7-select__option[aria-selected="true"] {
    color: var(--v7-text);
    background: rgba(103, 215, 255, 0.08);
    border-color: rgba(103, 215, 255, 0.14);
    outline: none;
}

html.v7-active .v7-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius-sm);
}

html.v7-active table {
    width: 100% !important;
    min-width: 42rem;
    border-collapse: collapse !important;
    background: rgba(2, 10, 16, 0.45) !important;
}

html.v7-active th,
html.v7-active td {
    padding: 0.72rem 0.82rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(88, 196, 255, 0.1) !important;
}

html.v7-active th {
    color: var(--v7-data) !important;
    font: 700 0.63rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: rgba(9, 29, 44, 0.8) !important;
}

html.v7-active tr:hover td {
    background: rgba(103, 215, 255, 0.025) !important;
}

html.v7-active .app-notice,
html.v7-active .error-box,
html.v7-active .warning-box,
html.v7-active .status-banner {
    padding: 0.8rem 0.95rem !important;
    color: var(--v7-text-2) !important;
    background: rgba(255, 106, 61, 0.075) !important;
    border: 1px solid rgba(255, 106, 61, 0.32) !important;
    border-radius: var(--v7-radius-sm) !important;
}

html.v7-active .app-notice.success,
html.v7-active .success-box {
    background: rgba(66, 240, 176, 0.07) !important;
    border-color: rgba(66, 240, 176, 0.28) !important;
}

html.v7-active .status-dot,
html.v7-active .online-dot {
    background: var(--v7-ok) !important;
    box-shadow: 0 0 0.65rem rgba(66, 240, 176, 0.9) !important;
}

html.v7-active img {
    max-width: 100%;
}

html.v7-active .avatar,
html.v7-active .profile-avatar,
html.v7-active .roster-avatar,
html.v7-active .message-avatar,
html.v7-active [class*="avatar"] img {
    object-fit: cover !important;
}

html.v7-active .server-shell,
html.v7-active .channel-shell,
html.v7-active .server-layout {
    min-height: min(72dvh, 58rem) !important;
    max-height: none !important;
    overflow: hidden !important;
}

html.v7-active .messages,
html.v7-active .message-list,
html.v7-active .channel-messages,
html.v7-active #channel-messages {
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
}

html.v7-active .message,
html.v7-active .chat-message {
    contain: layout paint style;
}

html.v7-active .reveal,
html.v7-active .revealed,
html.v7-active [class*="animate"],
html.v7-active [class*="motion"] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
}

html.v7-active .hud-panel,
html.v7-active .tech-widget,
html.v7-active .choice-card,
html.v7-active .roster-card,
html.v7-active .dossier-card,
html.v7-active .knowledge-content > section,
html.v7-active .report-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 420px;
}

html.v7-active .v7-backdrop {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: none;
    background: rgba(0, 4, 8, 0.72);
    backdrop-filter: blur(4px);
}

html.v7-active .v7-backdrop[data-open="true"] {
    display: block;
}

html.v7-active .v7-command-palette {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    place-items: start center;
    padding: min(12vh, 7rem) 1rem 1rem;
    background: rgba(0, 4, 8, 0.76);
    backdrop-filter: blur(10px);
}

html.v7-active .v7-command-palette[data-open="true"] {
    display: grid;
}

html.v7-active .v7-command-card {
    width: min(46rem, 100%);
    overflow: hidden;
    background: #06121c;
    border: 1px solid var(--v7-line-strong);
    border-radius: var(--v7-radius);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
}

html.v7-active .v7-command-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--v7-line);
}

html.v7-active .v7-command-head input {
    min-height: 3rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html.v7-active .v7-command-close {
    width: 2.45rem;
    height: 2.45rem;
    color: var(--v7-muted);
    background: transparent;
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius-sm);
    cursor: pointer;
}

html.v7-active .v7-command-results {
    max-height: min(64vh, 34rem);
    overflow: auto;
    padding: 0.55rem;
}

html.v7-active .v7-command-item {
    width: 100%;
    min-height: 3.45rem;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    color: var(--v7-text-2);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--v7-radius-sm);
}

html.v7-active .v7-command-item:hover,
html.v7-active .v7-command-item:focus-visible {
    color: var(--v7-text);
    background: rgba(103, 215, 255, 0.06);
    border-color: rgba(103, 215, 255, 0.14);
    outline: none;
}

html.v7-active .v7-command-item b {
    color: var(--v7-alert);
    font: 750 0.65rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

html.v7-active .v7-command-item span {
    display: grid;
    gap: 0.12rem;
}

html.v7-active .v7-command-item span strong {
    color: inherit;
    font-size: 0.9rem;
}

html.v7-active .v7-command-item span small {
    color: var(--v7-muted);
    font-size: 0.72rem;
}

html.v7-active .v7-command-item code {
    color: var(--v7-muted);
    font-size: 0.64rem;
}

html.v7-active .v7-user-menu {
    position: fixed;
    z-index: 1800;
    top: calc(var(--v7-header) - 0.2rem);
    right: 0.85rem;
    width: min(21rem, calc(100vw - 1.7rem));
    display: none;
    padding: 0.45rem;
    background: #06121c;
    border: 1px solid var(--v7-line-strong);
    border-radius: var(--v7-radius-sm);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

html.v7-active .v7-user-menu[data-open="true"] {
    display: grid;
}

html.v7-active .v7-user-menu__head {
    display: grid;
    gap: 0.22rem;
    padding: 0.72rem;
    border-bottom: 1px solid var(--v7-line);
}

html.v7-active .v7-user-menu__head strong {
    color: var(--v7-text);
}

html.v7-active .v7-user-menu__head span {
    color: var(--v7-muted);
    font-size: 0.75rem;
}

html.v7-active .v7-user-menu a,
html.v7-active .v7-user-menu button {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.72rem;
    color: var(--v7-text-2);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0.3rem;
    cursor: pointer;
}

html.v7-active .v7-user-menu a:hover,
html.v7-active .v7-user-menu button:hover {
    color: var(--v7-text);
    background: rgba(103, 215, 255, 0.06);
}

html.v7-active .v7-mobile-bar {
    display: none;
}

html.v7-active .v7-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: var(--v7-gap);
    margin-bottom: var(--v7-gap);
}

html.v7-active .v7-blueprint {
    position: relative;
    min-height: 28rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(103, 215, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 215, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(103, 215, 255, 0.1), transparent 58%);
    background-size: 26px 26px, 26px 26px, auto;
    border: 1px solid var(--v7-line-strong);
    border-radius: var(--v7-radius);
}

html.v7-active .v7-blueprint::before {
    content: "Φ";
    position: absolute;
    inset: 50% auto auto 50%;
    color: rgba(103, 215, 255, 0.16);
    font: 500 clamp(12rem, 23vw, 27rem)/1 Georgia, serif;
    transform: translate(-50%, -50%);
}

html.v7-active .v7-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--v7-gap);
}

html.v7-active .v7-doc-card {
    min-height: 10rem;
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem;
    color: var(--v7-text-2) !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, rgba(8, 28, 42, 0.9), rgba(4, 15, 23, 0.94));
    border: 1px solid var(--v7-line);
    border-radius: var(--v7-radius);
}

html.v7-active .v7-doc-card:hover {
    border-color: var(--v7-line-strong);
}

html.v7-active .v7-doc-card b {
    color: var(--v7-alert);
    font: 750 0.66rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.13em;
}

html.v7-active .v7-doc-card strong {
    color: var(--v7-text);
    font-size: 1.05rem;
}

html.v7-active .v7-doc-card small {
    color: var(--v7-muted);
}

@media (min-width: 1800px) {
    :root {
        --v7-sidebar: 19rem;
        --v7-content-pad: 2.4rem;
    }

    html.v7-active .page-frame,
    html.v7-active .main-container,
    html.v7-active .public-shell,
    html.v7-active .auth-page-shell {
        width: min(100%, 132rem) !important;
    }
}

@media (max-width: 1280px) {
    :root {
        --v7-sidebar: 5.3rem;
    }

    html.v7-active .v7-brand {
        padding-inline: 0.8rem;
    }

    html.v7-active .v7-brand__copy,
    html.v7-active .v7-sidebar__head,
    html.v7-active .v7-nav-group__toggle span,
    html.v7-active .v7-nav-group__toggle i,
    html.v7-active .v7-nav-link__label,
    html.v7-active .v7-nav-link__dot,
    html.v7-active .v7-sidebar__foot {
        display: none !important;
    }

    html.v7-active .v7-nav-group {
        padding: 0.1rem;
        border: 0 !important;
        background: transparent !important;
    }

    html.v7-active .v7-nav-group__toggle {
        justify-content: center;
        padding: 0;
    }

    html.v7-active .v7-nav-group__items {
        display: grid !important;
    }

    html.v7-active .v7-nav-link {
        min-height: 3rem;
        grid-template-columns: 1fr;
        place-items: center;
        padding: 0;
    }

    html.v7-active .v7-nav-link__code {
        font-size: 0.65rem;
    }

    html.v7-active .v7-session .v7-meta:nth-child(-n + 2) {
        display: none;
    }
}

@media (max-width: 980px) {
    :root {
        --v7-sidebar: 0rem;
        --v7-header: 4.3rem;
    }

    html.v7-active .v7-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    html.v7-active .v7-brand {
        border-right: 0;
    }

    html.v7-active .v7-menu-button {
        display: grid;
        margin-left: 0.7rem;
    }

    html.v7-active .v7-brand__copy {
        display: grid !important;
    }

    html.v7-active .v7-brand__copy small {
        display: none;
    }

    html.v7-active .v7-search {
        padding-inline: 0.55rem;
    }

    html.v7-active .v7-search__button {
        min-width: 2.75rem;
        width: 2.75rem;
        justify-content: center;
        padding: 0;
    }

    html.v7-active .v7-search__button span,
    html.v7-active .v7-search__button kbd {
        display: none;
    }

    html.v7-active .v7-session {
        padding-inline: 0.55rem;
        border-left: 0;
    }

    html.v7-active .v7-session .v7-meta {
        display: none !important;
    }

    html.v7-active .v7-sidebar {
        z-index: 1200;
        top: 0;
        width: min(21rem, 88vw);
        padding-top: 0.7rem;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
    }

    html.v7-active .v7-sidebar[data-open="true"] {
        transform: translateX(0);
    }

    html.v7-active .v7-sidebar__head,
    html.v7-active .v7-nav-group__toggle span,
    html.v7-active .v7-nav-group__toggle i,
    html.v7-active .v7-nav-link__label,
    html.v7-active .v7-nav-link__dot,
    html.v7-active .v7-sidebar__foot {
        display: initial !important;
    }

    html.v7-active .v7-sidebar__head {
        display: grid !important;
    }

    html.v7-active .v7-nav-group {
        padding: 0.35rem;
        border: 1px solid transparent !important;
    }

    html.v7-active .v7-nav-group[data-open="true"] {
        border-color: rgba(88, 196, 255, 0.08) !important;
        background: rgba(6, 19, 29, 0.45) !important;
    }

    html.v7-active .v7-nav-group__toggle {
        justify-content: flex-start;
        padding: 0 0.55rem;
    }

    html.v7-active .v7-nav-group[data-open="false"] .v7-nav-group__items {
        display: none !important;
    }

    html.v7-active .v7-nav-link {
        grid-template-columns: 2rem minmax(0, 1fr) auto;
        place-items: initial;
        padding: 0 0.65rem;
    }

    html.v7-active .v7-main,
    html.v7-active main.site-main,
    html.v7-active body > main,
    html.v7-active .site-footer {
        margin-left: 0 !important;
    }

    html.v7-active .tech-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html.v7-active .v7-archive-hero {
        grid-template-columns: 1fr;
    }

    html.v7-active .v7-blueprint {
        min-height: 20rem;
    }
}

@media (max-width: 720px) {
    html.v7-active .v7-brand__copy strong {
        font-size: 0.92rem;
        letter-spacing: 0.2em;
    }

    html.v7-active .v7-brand__mark {
        width: 2.2rem;
        font-size: 1.1rem;
    }

    html.v7-active .page-frame,
    html.v7-active .main-container,
    html.v7-active .public-shell,
    html.v7-active .auth-page-shell {
        padding: 0.75rem !important;
    }

    html.v7-active .page-heading h1,
    html.v7-active .public-page h1,
    html.v7-active .auth-page-shell h1 {
        font-size: clamp(1.85rem, 10vw, 3rem) !important;
    }

    html.v7-active .tech-widget-grid,
    html.v7-active .dashboard-grid,
    html.v7-active .choice-grid,
    html.v7-active .public-grid,
    html.v7-active .metrics-grid,
    html.v7-active .dossier-grid,
    html.v7-active .personnel-grid,
    html.v7-active .v7-doc-grid {
        grid-template-columns: 1fr !important;
    }

    html.v7-active .auth-page-grid,
    html.v7-active .application-status-hero,
    html.v7-active .command-hero,
    html.v7-active .hero-layout,
    html.v7-active .profile-layout,
    html.v7-active .server-layout,
    html.v7-active .report-workspace,
    html.v7-active .personnel-workspace,
    html.v7-active .studio-workspace {
        grid-template-columns: 1fr !important;
    }

    html.v7-active .v7-mobile-bar {
        position: fixed;
        z-index: 1090;
        inset: auto 0 0 0;
        min-height: 4rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(3, 10, 16, 0.97);
        border-top: 1px solid var(--v7-line);
        backdrop-filter: blur(14px);
    }

    html.v7-active .v7-mobile-bar a,
    html.v7-active .v7-mobile-bar button {
        display: grid;
        place-items: center;
        gap: 0.12rem;
        padding: 0.42rem;
        color: var(--v7-muted);
        text-decoration: none;
        background: transparent;
        border: 0;
    }

    html.v7-active .v7-mobile-bar b {
        color: var(--v7-data);
        font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    }

    html.v7-active .v7-mobile-bar span {
        font-size: 0.65rem;
    }

    html.v7-active .v7-main,
    html.v7-active main.site-main,
    html.v7-active body > main {
        padding-bottom: 4.4rem !important;
    }

    html.v7-active .site-footer {
        margin-bottom: 4rem !important;
    }

    html.v7-active .public-hero-actions,
    html.v7-active .hero-actions,
    html.v7-active .auth-footer-links,
    html.v7-active .studio-actions,
    html.v7-active .panel-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html.v7-active .hud-button,
    html.v7-active button.hud-button,
    html.v7-active button[type="submit"] {
        width: 100% !important;
    }
}

@media (max-width: 440px) {
    html.v7-active .v7-brand__copy {
        display: none !important;
    }

    html.v7-active .v7-header {
        grid-template-columns: auto auto 1fr auto;
    }

    html.v7-active .v7-search {
        justify-content: flex-start;
    }
}

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