:root {
    color-scheme: light;
    --ink-950: #07111f;
    --ink-900: #0b1728;
    --ink-800: #10243a;
    --ink-700: #1b324d;
    --steel-700: #43546a;
    --steel-500: #66758a;
    --steel-300: #c9d3df;
    --steel-200: #dde5ee;
    --steel-100: #edf3f8;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --surface-muted: #eef4f8;
    --accent: #14b8c8;
    --accent-strong: #0891a3;
    --accent-dark: #0e7490;
    --success: #0f9f6e;
    --warning: #c17d0f;
    --danger: #c24141;
    --radius: 8px;
    --shadow-sm: 0 8px 24px rgba(7, 17, 31, 0.07);
    --shadow-md: 0 18px 48px rgba(7, 17, 31, 0.12);
    --ring: 0 0 0 0.24rem rgba(20, 184, 200, 0.24);
}

* {
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(237, 243, 248, 0.92), rgba(248, 251, 253, 0.98) 38%, #f8fbfd),
        linear-gradient(115deg, rgba(20, 184, 200, 0.08), transparent 36%, rgba(11, 23, 40, 0.06));
    color: var(--ink-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.96rem;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease;
}

a:hover {
    color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 0;
    box-shadow: var(--ring);
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    z-index: 1100;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-900);
    box-shadow: var(--shadow-md);
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 1rem;
}

body.has-sidebar {
    background:
        linear-gradient(180deg, rgba(245, 248, 251, 0.98), rgba(248, 251, 253, 1)),
        linear-gradient(115deg, rgba(20, 184, 200, 0.06), transparent 42%, rgba(7, 17, 31, 0.045));
}

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

.portal-sidebar {
    color: #f8fbfd;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.99), rgba(10, 25, 42, 0.99)),
        linear-gradient(140deg, rgba(20, 184, 200, 0.16), transparent 42%);
}

.portal-sidebar.offcanvas-lg {
    width: 284px;
    border-right: 1px solid rgba(201, 211, 223, 0.14);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem 0.9rem 1.4rem;
    overflow-y: auto;
}

.sidebar-mobile-header {
    border-bottom: 1px solid rgba(201, 211, 223, 0.14);
}

.sidebar-brand {
    width: 100%;
    padding: 0.35rem 0.35rem 0.9rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.18rem;
}

.sidebar-section {
    margin: 1.1rem 0.6rem 0.38rem;
    color: rgba(229, 241, 246, 0.58);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.sidebar-group-title {
    margin: 0.78rem 0.7rem 0.28rem;
    color: rgba(229, 241, 246, 0.48);
    font-size: 0.72rem;
    font-weight: 760;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 42px;
    padding: 0.54rem 0.62rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(239, 248, 251, 0.76);
    font-size: 0.88rem;
    font-weight: 720;
    line-height: 1.2;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    border-color: rgba(201, 211, 223, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-link.active {
    border-color: rgba(20, 184, 200, 0.34);
    background: linear-gradient(135deg, rgba(20, 184, 200, 0.2), rgba(255, 255, 255, 0.08));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-icon {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(20, 184, 200, 0.26);
    border-radius: var(--radius);
    background: rgba(20, 184, 200, 0.1);
    color: #aaf5fb;
    font-size: 0.68rem;
    font-weight: 850;
}

.portal-stage {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0.8rem clamp(1rem, 2.4vw, 2rem);
    border-bottom: 1px solid rgba(201, 211, 223, 0.72);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.07);
    backdrop-filter: blur(18px);
}

.portal-topbar.is-scrolled {
    box-shadow: 0 14px 34px rgba(7, 17, 31, 0.12);
}

.sidebar-toggle {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: #fff;
}

.sidebar-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 2px auto;
    border-radius: 999px;
    background: var(--ink-800);
}

.topbar-context {
    display: grid;
    min-width: 0;
    margin-right: auto;
    line-height: 1.15;
}

.topbar-context span {
    color: var(--steel-500);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.topbar-context strong {
    overflow: hidden;
    color: var(--ink-950);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-chip-light {
    border-color: var(--steel-200);
    background: #fff;
    color: var(--ink-900);
}

.user-chip-light .user-avatar {
    background: rgba(20, 184, 200, 0.14);
    color: var(--accent-dark);
}

.user-chip-light .user-meta span {
    color: var(--ink-900);
}

.user-chip-light .user-meta small {
    color: var(--steel-500);
}

.content-frame {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.4vw, 2rem);
}

.portal-main-content {
    flex: 1;
    width: 100%;
    padding-top: clamp(1.2rem, 2.5vw, 2rem);
}

.portal-footer .content-frame {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    font-size: 0.86rem;
}

.portal-footer .content-frame span:first-child {
    color: var(--ink-900);
    font-weight: 800;
}

.context-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
    padding: 0.38rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.context-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.48rem 0.78rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--steel-700);
    font-size: 0.86rem;
    font-weight: 760;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.context-nav-link:hover,
.context-nav-link:focus {
    background: var(--surface-muted);
    color: var(--ink-950);
}

.context-nav-link.active {
    border-color: rgba(20, 184, 200, 0.28);
    background: var(--ink-900);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 17, 31, 0.12);
}

.app-navbar {
    border-bottom: 1px solid rgba(201, 211, 223, 0.18);
    background:
        linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(11, 23, 40, 0.96)),
        linear-gradient(90deg, rgba(20, 184, 200, 0.14), transparent);
    box-shadow: 0 18px 38px rgba(7, 17, 31, 0.22);
    backdrop-filter: blur(18px);
}

.app-navbar.is-scrolled {
    box-shadow: 0 16px 32px rgba(7, 17, 31, 0.28);
}

.app-navbar .container-xxl {
    min-height: 72px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
    color: #fff;
}

.app-brand:hover,
.app-brand:focus {
    color: #fff;
}

.brand-symbol {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(20, 184, 200, 0.42);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(20, 184, 200, 0.26), rgba(255, 255, 255, 0.08));
    color: #e9feff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-title {
    font-weight: 800;
    color: #f8fbfd;
}

.brand-subtitle {
    margin-top: 0.16rem;
    color: rgba(229, 241, 246, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.app-menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 211, 223, 0.26);
    border-radius: var(--radius);
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
}

.app-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #dceef5;
    transition: transform 180ms ease, opacity 180ms ease;
}

.app-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.app-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.app-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.app-nav-collapse {
    gap: 1.2rem;
}

.app-nav-list {
    align-items: center;
    gap: 0.2rem;
}

.app-nav-list .dropdown {
    position: static;
}

.app-navbar .nav-link {
    position: relative;
    min-height: 40px;
    padding: 0.58rem 0.82rem;
    border-radius: var(--radius);
    color: rgba(239, 248, 251, 0.78);
    font-weight: 650;
    font-size: 0.9rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-navbar .nav-link.active {
    background: rgba(20, 184, 200, 0.14);
    color: #e9feff;
}

.app-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    right: 0.8rem;
    bottom: 0.36rem;
    left: 0.8rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.marketplace-link {
    border: 1px solid rgba(20, 184, 200, 0.28);
}

.admin-console-link {
    border: 1px solid rgba(20, 184, 200, 0.28);
    background: rgba(20, 184, 200, 0.08);
}

.app-dropdown {
    width: min(420px, calc(100vw - 2rem));
    margin-top: 0.84rem;
    padding: 0.7rem;
    border: 1px solid rgba(201, 211, 223, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(7, 17, 31, 0.2);
}

.admin-dropdown {
    width: min(520px, calc(100vw - 2rem));
    columns: 1;
}

.dropdown-label {
    padding: 0.5rem 0.62rem 0.32rem;
    color: var(--steel-500);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.app-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 58px;
    padding: 0.62rem;
    border-radius: var(--radius);
    color: var(--ink-900);
    white-space: normal;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-dropdown .dropdown-item:hover,
.app-dropdown .dropdown-item:focus {
    background: var(--surface-muted);
    color: var(--ink-950);
    transform: translateX(2px);
}

.app-dropdown .dropdown-item:focus-visible {
    outline: 0;
    box-shadow: var(--ring);
}

.dropdown-icon {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(20, 184, 200, 0.26);
    border-radius: var(--radius);
    background: rgba(20, 184, 200, 0.09);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 850;
}

.app-dropdown strong,
.app-dropdown small {
    display: block;
}

.app-dropdown strong {
    color: var(--ink-950);
    font-size: 0.9rem;
}

.app-dropdown small {
    margin-top: 0.14rem;
    color: var(--steel-500);
    font-size: 0.76rem;
    line-height: 1.25;
}

.dropdown-divider {
    margin: 0.5rem 0.3rem;
    border-top-color: var(--steel-200);
}

.app-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    max-width: 250px;
    padding: 0.38rem 0.54rem;
    border: 1px solid rgba(201, 211, 223, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.user-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(20, 184, 200, 0.22);
    color: #e9feff;
    font-weight: 800;
    text-transform: uppercase;
}

.user-meta {
    display: grid;
    min-width: 0;
    line-height: 1.18;
}

.user-meta span {
    overflow: hidden;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta small {
    overflow: hidden;
    color: rgba(229, 241, 246, 0.66);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-main {
    padding-top: clamp(1.5rem, 3vw, 2.8rem);
    padding-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.app-alert-stack {
    margin-bottom: 1.25rem;
}

.app-footer {
    border-top: 1px solid var(--steel-200);
    background: rgba(255, 255, 255, 0.72);
    color: var(--steel-500);
}

.app-footer .container-xxl {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    font-size: 0.86rem;
}

.app-footer span:first-child {
    color: var(--ink-900);
    font-weight: 800;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink-950);
    font-weight: 800;
    line-height: 1.18;
}

.text-secondary,
.text-muted {
    color: var(--steel-500) !important;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-band {
    margin-top: clamp(1.6rem, 3.5vw, 3rem);
}

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

.section-heading h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.section-heading p {
    max-width: 820px;
    margin-top: 0.55rem;
    margin-bottom: 0;
    color: var(--steel-500);
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.2rem, 3vw, 2.5rem);
    align-items: start;
}

.split-band h2 {
    max-width: 620px;
}

.insight-card h3,
.trust-card h3 {
    font-size: 1.2rem;
}

.text-link {
    display: inline-flex;
    margin-top: 0.2rem;
    color: var(--accent-dark);
    font-weight: 780;
}

.text-link:hover,
.text-link:focus {
    color: var(--ink-950);
}

.feature-list {
    display: grid;
    gap: 0.7rem;
    padding-left: 1.1rem;
    color: var(--steel-600);
}

.feature-list li::marker {
    color: var(--accent-dark);
}

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

.process-step {
    min-height: 178px;
    padding: 1rem;
    border: 1px solid rgba(201, 211, 223, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.process-step span {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.process-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.process-step p {
    margin-bottom: 0;
    color: var(--steel-500);
}

.faq-grid {
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    border: 1px solid rgba(201, 211, 223, 0.78);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.1rem;
    color: var(--ink-950);
    font-weight: 820;
}

.faq-item summary:focus-visible {
    outline: 0;
    box-shadow: var(--ring);
}

.faq-item p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: var(--steel-500);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: clamp(1.1rem, 2.2vw, 1.7rem);
}

.page-header h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.page-header p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--steel-500);
}

.portal-main-content .d-flex.justify-content-between.align-items-center.mb-3,
.portal-main-content .d-flex.justify-content-between.align-items-center.mb-4,
.portal-main-content .d-flex.justify-content-between.align-items-start.mb-4 {
    padding-bottom: 0.2rem;
}

.portal-main-content .d-flex.justify-content-between.align-items-center.mb-3 h1,
.portal-main-content .d-flex.justify-content-between.align-items-center.mb-4 h1,
.portal-main-content .d-flex.justify-content-between.align-items-start.mb-4 h1 {
    font-size: clamp(1.45rem, 2.1vw, 1.95rem);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.metric-card {
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(201, 211, 223, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.metric-card:hover {
    border-color: rgba(20, 184, 200, 0.34);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.metric-label {
    color: var(--steel-500);
    font-size: 0.78rem;
    font-weight: 820;
}

.metric-value {
    margin-top: 0.35rem;
    color: var(--ink-950);
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.quick-action-card {
    display: grid;
    gap: 0.28rem;
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(201, 211, 223, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.quick-action-card:hover,
.quick-action-card:focus {
    border-color: rgba(20, 184, 200, 0.36);
    color: var(--ink-950);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.quick-action-card strong,
.quick-action-card small,
.quick-action-kicker {
    display: block;
}

.quick-action-card strong {
    font-size: 1rem;
}

.quick-action-card small {
    color: var(--steel-500);
    line-height: 1.35;
}

.quick-action-kicker {
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.inventory-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.35fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    margin-bottom: clamp(1.1rem, 2.4vw, 1.7rem);
}

.inventory-hero-copy h1 {
    margin-bottom: 0.55rem;
    color: var(--ink-950);
    font-size: clamp(2rem, 5vw, 4.1rem);
    font-weight: 880;
    line-height: 0.98;
}

.inventory-hero-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.5;
}

.inventory-segmented-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.4vw, 1.2rem);
    padding: clamp(0.85rem, 1.6vw, 1.35rem);
    border: 1px solid rgba(201, 211, 223, 0.78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.92)),
        linear-gradient(125deg, rgba(20, 184, 200, 0.08), transparent 62%);
    box-shadow: 0 18px 48px rgba(7, 17, 31, 0.14);
}

.inventory-segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    min-height: 64px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(142, 170, 198, 0.72);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(237, 246, 255, 0.95), rgba(218, 235, 250, 0.88));
    color: var(--ink-950);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 840;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.inventory-segment:hover,
.inventory-segment:focus {
    color: var(--ink-950);
    border-color: rgba(20, 184, 200, 0.48);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.inventory-segment.active {
    border-color: rgba(14, 116, 144, 0.58);
    background:
        linear-gradient(180deg, rgba(222, 241, 255, 0.98), rgba(194, 225, 250, 0.9)),
        linear-gradient(135deg, rgba(20, 184, 200, 0.16), transparent 62%);
    box-shadow: 0 10px 26px rgba(14, 116, 144, 0.18), inset 0 0 0 1px rgba(14, 116, 144, 0.2);
}

.inventory-segment-icon {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(67, 84, 106, 0.22);
    border-radius: 10px;
    color: var(--steel-700);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
}

.inventory-segment.active .inventory-segment-icon {
    border-color: rgba(14, 116, 144, 0.38);
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.55);
}

.inventory-action-strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(201, 211, 223, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.inventory-action-strip h2 {
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
}

.inventory-action-strip p {
    margin: 0;
    color: var(--steel-500);
}

.inventory-action-strip-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.inventory-search-card {
    padding: 1rem;
}

.inventory-simple-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.inventory-search-field .form-label {
    margin-bottom: 0.38rem;
}

.inventory-search-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.inventory-advanced-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 211, 223, 0.72);
}

.inventory-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.inventory-module-card {
    min-height: 190px;
    padding: 1.1rem;
    border: 1px solid rgba(201, 211, 223, 0.76);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 253, 0.94)),
        linear-gradient(135deg, rgba(20, 184, 200, 0.08), transparent 64%);
    box-shadow: var(--shadow-sm);
}

.inventory-module-card h2 {
    margin-top: 1rem;
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
}

.inventory-module-card p {
    margin: 0;
    color: var(--steel-500);
}

.inventory-empty-panel {
    padding: clamp(1.2rem, 2.6vw, 2rem);
    border: 1px solid rgba(20, 184, 200, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 252, 0.96)),
        linear-gradient(120deg, rgba(20, 184, 200, 0.08), transparent 68%);
    box-shadow: var(--shadow-sm);
}

.inventory-empty-panel h2 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
}

.inventory-empty-panel p {
    max-width: 860px;
    color: var(--steel-500);
}

.table-card {
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--steel-200);
}

.table-toolbar h2 {
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
}

.table-toolbar p {
    margin-bottom: 0;
    color: var(--steel-500);
    font-size: 0.88rem;
}

.empty-state {
    padding: 2.5rem 1rem;
    color: var(--steel-500);
    text-align: center;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(9rem, 0.42fr) 1fr;
    gap: 0.7rem 1rem;
    margin: 0;
}

.detail-list dt {
    color: var(--steel-500);
    font-size: 0.82rem;
    font-weight: 780;
}

.detail-list dd {
    min-width: 0;
    margin: 0;
    color: var(--ink-900);
    font-weight: 680;
}

.detail-list-grid {
    grid-template-columns: minmax(10rem, 0.38fr) 1fr;
}

.table td.text-center.text-secondary.py-4 {
    padding-block: 2.5rem !important;
    color: var(--steel-500) !important;
}

.card {
    border: 1px solid rgba(201, 211, 223, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.card:hover {
    border-color: rgba(20, 184, 200, 0.38);
    box-shadow: var(--shadow-md);
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.card-body {
    padding: clamp(1.1rem, 2vw, 1.55rem);
}

.card .h5,
.card h2.h5,
.card h2,
.card h3 {
    margin-bottom: 0.75rem;
}

.service-card {
    overflow: hidden;
}

.service-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), rgba(20, 184, 200, 0.08));
}

.service-token {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.26rem 0.62rem;
    border: 1px solid rgba(20, 184, 200, 0.32);
    border-radius: 999px;
    background: rgba(20, 184, 200, 0.09);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.price-line {
    margin-bottom: 0.8rem;
    color: var(--ink-950);
    font-size: 1.55rem;
    font-weight: 850;
}

.price-line span {
    color: var(--steel-500);
    font-size: 0.88rem;
    font-weight: 700;
}

.btn {
    --bs-btn-border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    border-width: 1px;
    padding: 0.58rem 1.05rem;
    font-weight: 760;
    line-height: 1.1;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.btn-sm {
    min-height: 36px;
    padding: 0.44rem 0.75rem;
    font-size: 0.84rem;
}

.btn-lg {
    min-height: 50px;
    padding: 0.78rem 1.25rem;
}

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--accent-strong);
    --bs-btn-border-color: var(--accent-strong);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: #075f72;
    --bs-btn-active-border-color: #075f72;
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 145, 163, 0.25);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark {
    --bs-btn-color: var(--ink-800);
    --bs-btn-border-color: var(--steel-300);
    --bs-btn-hover-bg: var(--ink-900);
    --bs-btn-hover-border-color: var(--ink-900);
    --bs-btn-hover-color: #fff;
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-light,
.btn-ghost-light {
    --bs-btn-color: #edf7fb;
    --bs-btn-border-color: rgba(220, 238, 245, 0.34);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(220, 238, 245, 0.52);
    --bs-btn-hover-color: #fff;
}

.btn-outline-danger {
    --bs-btn-color: var(--danger);
    --bs-btn-border-color: rgba(194, 65, 65, 0.36);
    --bs-btn-hover-bg: var(--danger);
    --bs-btn-hover-border-color: var(--danger);
}

.btn-outline-warning {
    --bs-btn-color: var(--warning);
    --bs-btn-border-color: rgba(193, 125, 15, 0.38);
    --bs-btn-hover-bg: var(--warning);
    --bs-btn-hover-border-color: var(--warning);
    --bs-btn-hover-color: #fff;
}

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

.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    color: #fff;
    animation: spin 720ms linear infinite;
}

.form-label {
    margin-bottom: 0.42rem;
    color: var(--ink-800);
    font-size: 0.84rem;
    font-weight: 760;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid var(--steel-300);
    border-radius: var(--radius);
    background-color: #fff;
    color: var(--ink-900);
    box-shadow: inset 0 1px 0 rgba(7, 17, 31, 0.02);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control-sm,
.form-select-sm {
    min-height: 38px;
    border-radius: var(--radius);
}

.form-control:hover,
.form-select:hover {
    border-color: #9fb0c2;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-strong);
    box-shadow: var(--ring);
}

.form-control.is-valid,
.form-select.is-valid,
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success);
    background-image: none;
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger);
    background-image: none;
}

.valid-feedback,
.invalid-feedback {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 650;
}

.form-control::placeholder {
    color: #8d9bad;
}

textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

input[type="file"].form-control {
    padding-top: 0.54rem;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-color: var(--steel-300);
}

.form-check-input:checked {
    border-color: var(--accent-strong);
    background-color: var(--accent-strong);
}

.form-text {
    color: var(--steel-500);
    font-size: 0.8rem;
}

.form-card .card-body,
.row.justify-content-center .card-body {
    padding: clamp(1.35rem, 3vw, 2rem);
}

.form-section {
    padding-top: 1.25rem;
}

.form-section + .form-section {
    margin-top: 1.25rem;
    border-top: 1px solid var(--steel-200);
}

.form-section-title {
    margin-bottom: 0.85rem;
    color: var(--ink-950);
    font-size: 1rem;
}

.profile-image-preview {
    display: grid;
    width: 140px;
    height: 140px;
    margin-bottom: 0.7rem;
    place-items: center;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--steel-500);
    font-size: 0.82rem;
    font-weight: 720;
}

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

.permission-option {
    display: flex;
    gap: 0.72rem;
    height: 100%;
    padding: 0.95rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.permission-option:hover {
    border-color: rgba(20, 184, 200, 0.34);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.permission-option .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.16rem;
}

.permission-option strong,
.permission-option small {
    display: block;
}

.permission-option strong {
    color: var(--ink-950);
    line-height: 1.25;
}

.permission-option small {
    margin-top: 0.28rem;
    color: var(--steel-500);
    font-size: 0.82rem;
    line-height: 1.35;
}

.inline-create-panel {
    padding: 1rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--ink-900);
    font-size: 0.9rem;
}

.document-row a {
    flex: 0 0 auto;
    font-weight: 760;
    text-decoration: none;
}

.admin-response-cell {
    min-width: 260px;
}

.engineer-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.2rem, 2.2vw, 1.8rem);
    border: 1px solid rgba(20, 184, 200, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(9, 20, 36, 0.96), rgba(18, 38, 60, 0.92)),
        var(--ink-950);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.engineer-avatar-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.engineer-avatar-xl {
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(20, 184, 200, 0.18);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
}

.engineer-avatar-card h2 {
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.engineer-avatar-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.profile-stats-grid div {
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
}

.profile-stats-grid span,
.profile-stats-grid strong {
    display: block;
}

.profile-stats-grid span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 780;
    text-transform: uppercase;
}

.profile-stats-grid strong {
    margin-top: 0.35rem;
    color: #ffffff;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-detail-grid.single-column {
    grid-template-columns: 1fr;
}

.profile-detail-item {
    padding: 0.88rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.profile-detail-item span,
.profile-detail-item strong {
    display: block;
}

.profile-detail-item span {
    color: var(--steel-500);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-detail-item strong {
    margin-top: 0.28rem;
    color: var(--ink-950);
    line-height: 1.35;
}

.ticket-chat-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1040;
}

.ticket-chat-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 180px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(20, 184, 200, 0.45);
    border-radius: var(--radius);
    background: var(--accent);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    font-weight: 830;
}

.chat-count {
    display: inline-grid;
    min-width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
}

.ticket-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: none;
    width: min(380px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.ticket-chat-widget.is-open .ticket-chat-panel {
    display: block;
}

.ticket-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--ink-950);
    color: #ffffff;
}

.ticket-chat-header strong,
.ticket-chat-header small {
    display: block;
}

.ticket-chat-header small {
    color: rgba(255, 255, 255, 0.68);
}

.ticket-chat-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--surface-soft);
}

.chat-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 0.8rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.chat-message.is-own {
    margin-left: auto;
    border-color: rgba(20, 184, 200, 0.35);
    background: rgba(20, 184, 200, 0.08);
}

.ticket-chat-form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.table-responsive {
    border-radius: var(--radius);
}

.table {
    margin-bottom: 0;
    color: var(--ink-900);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
    padding: 0.92rem 1rem;
    border-bottom-color: var(--steel-200);
}

.table thead th {
    border-bottom: 1px solid var(--steel-200);
    background: var(--surface-soft);
    color: var(--steel-700);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.table-hover > tbody > tr {
    transition: background-color 150ms ease;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(20, 184, 200, 0.045);
}

.badge {
    border-radius: 999px;
    padding: 0.42em 0.66em;
    font-weight: 760;
}

.badge.bg-secondary,
.badge.text-bg-secondary {
    background-color: rgba(16, 36, 58, 0.1) !important;
    color: var(--ink-800) !important;
}

.badge.text-bg-success,
.badge.bg-success {
    background-color: rgba(15, 159, 110, 0.12) !important;
    color: #08754e !important;
}

.badge.text-bg-danger,
.badge.bg-danger {
    background-color: rgba(194, 65, 65, 0.12) !important;
    color: var(--danger) !important;
}

.badge.text-bg-warning,
.badge.bg-warning {
    background-color: rgba(193, 125, 15, 0.14) !important;
    color: #915b07 !important;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.alert-success {
    border-color: rgba(15, 159, 110, 0.22);
    background: #ecfdf6;
    color: #075f44;
}

.alert-danger {
    border-color: rgba(194, 65, 65, 0.22);
    background: #fff1f1;
    color: #8a2222;
}

.alert-warning {
    border-color: rgba(193, 125, 15, 0.24);
    background: #fff7e8;
    color: #7a4c05;
}

.alert-info {
    border-color: rgba(20, 184, 200, 0.24);
    background: #ecfeff;
    color: #0d6974;
}

.list-group-item {
    border-color: var(--steel-200);
}

.d-flex.flex-wrap.gap-2.mb-4 {
    padding: 0.45rem;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.d-flex.flex-wrap.gap-2.mb-4 .btn {
    min-height: 36px;
    border-color: transparent;
    background: transparent;
    color: var(--steel-700);
    box-shadow: none;
}

.d-flex.flex-wrap.gap-2.mb-4 .btn:hover {
    background: var(--surface-muted);
    color: var(--ink-900);
}

.home-hero {
    position: relative;
    display: grid;
    min-height: clamp(560px, 74vh, 760px);
    align-items: center;
    overflow: hidden;
    margin: -0.5rem calc(50% - 50vw) 0;
    padding: clamp(3rem, 7vw, 6rem) max(1rem, calc((100vw - 1320px) / 2 + 1rem));
    border-bottom: 1px solid rgba(201, 211, 223, 0.24);
    background:
        linear-gradient(135deg, rgba(7, 17, 31, 0.97), rgba(10, 30, 49, 0.94) 52%, rgba(8, 78, 91, 0.86)),
        linear-gradient(90deg, rgba(20, 184, 200, 0.18), transparent);
    color: #fff;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), transparent 84%);
}

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

.hero-content .eyebrow {
    color: #84edf6;
}

.hero-content h1 {
    max-width: 850px;
    color: #fff;
    font-size: clamp(2.45rem, 6vw, 5rem);
    line-height: 0.98;
}

.hero-content p {
    max-width: 720px;
    margin-top: 1.1rem;
    color: rgba(235, 248, 252, 0.78);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 840px;
    margin-top: 2rem;
}

.hero-metrics div {
    min-height: 104px;
    padding: 1rem;
    border: 1px solid rgba(220, 238, 245, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    color: #fff;
    font-size: 1.08rem;
}

.hero-metrics span {
    margin-top: 0.4rem;
    color: rgba(235, 248, 252, 0.68);
    font-size: 0.88rem;
}

.hero-console {
    position: absolute;
    right: max(1rem, calc((100vw - 1320px) / 2 + 1rem));
    bottom: clamp(2rem, 6vw, 5rem);
    z-index: 1;
    width: min(420px, 36vw);
    padding: 1rem;
    border: 1px solid rgba(220, 238, 245, 0.18);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.62);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.console-bar {
    display: flex;
    gap: 0.38rem;
    margin-bottom: 1rem;
}

.console-bar span {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: rgba(220, 238, 245, 0.36);
}

.console-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(20, 184, 200, 0.24);
    border-radius: var(--radius);
    background: rgba(20, 184, 200, 0.08);
}

.console-status small,
.console-status strong {
    display: block;
}

.console-status small {
    color: rgba(235, 248, 252, 0.62);
}

.console-status strong {
    color: #fff;
}

.status-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: #46ead7;
    box-shadow: 0 0 0 6px rgba(70, 234, 215, 0.12);
}

.console-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.console-map span {
    height: 74px;
    border: 1px solid rgba(220, 238, 245, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(20, 184, 200, 0.04));
}

.console-map span:nth-child(2),
.console-map span:nth-child(4) {
    transform: translateY(18px);
}

.console-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.console-list span {
    padding: 0.62rem 0.78rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(235, 248, 252, 0.78);
    font-size: 0.86rem;
}

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

@media (min-width: 992px) {
    .portal-sidebar.offcanvas-lg {
        position: sticky !important;
        top: 0;
        display: flex !important;
        flex: 0 0 284px;
        width: 284px !important;
        height: 100vh;
        visibility: visible !important;
        transform: none !important;
    }

    .portal-sidebar .offcanvas-body {
        display: flex;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .portal-shell {
        display: block;
    }

    .portal-sidebar.offcanvas-lg {
        width: min(324px, 88vw);
        max-width: 88vw;
    }

    .sidebar-inner {
        padding: 0.9rem;
    }

    .portal-topbar {
        min-height: 64px;
        padding-inline: 1rem;
    }

    .topbar-actions {
        gap: 0.45rem;
    }

    .topbar-actions .user-chip-light {
        display: none;
    }

    .metric-grid,
    .quick-action-grid,
    .inventory-module-grid,
    .permission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .inventory-segmented-nav {
        border-radius: 22px;
    }

    .inventory-simple-search,
    .inventory-advanced-filters {
        grid-template-columns: 1fr;
    }

    .inventory-search-actions {
        justify-content: flex-start;
    }

    .app-navbar .container-xxl {
        min-height: 64px;
    }

    .app-nav-collapse {
        margin-top: 0.9rem;
        padding: 0.8rem;
        border: 1px solid rgba(201, 211, 223, 0.18);
        border-radius: var(--radius);
        background: rgba(7, 17, 31, 0.94);
    }

    .app-nav-list {
        align-items: stretch;
        gap: 0.3rem;
    }

    .app-nav-list .dropdown {
        position: relative;
    }

    .app-dropdown,
    .admin-dropdown {
        width: 100%;
        margin-top: 0.3rem;
        border-color: rgba(220, 238, 245, 0.16);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .app-dropdown .dropdown-item {
        color: #f8fbfd;
    }

    .app-dropdown .dropdown-item:hover,
    .app-dropdown .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
    }

    .app-dropdown strong {
        color: #fff;
    }

    .app-dropdown small,
    .dropdown-label {
        color: rgba(229, 241, 246, 0.68);
    }

    .app-nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-chip {
        max-width: none;
    }

    .app-footer .container-xxl {
        flex-direction: column;
    }

    .hero-console {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 2rem;
    }

    .home-hero {
        min-height: auto;
    }

    .split-band {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    body.app-body {
        font-size: 0.93rem;
    }

    .topbar-context strong {
        max-width: 46vw;
    }

    .topbar-actions .btn {
        padding-inline: 0.72rem;
    }

    .content-frame {
        padding-inline: 1rem;
    }

    .context-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        margin-inline: -0.15rem;
        scrollbar-width: thin;
    }

    .context-nav-link {
        white-space: nowrap;
    }

    .page-header,
    .table-toolbar,
    .inventory-action-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-segmented-nav {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .inventory-segment {
        justify-content: flex-start;
        min-height: 52px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .inventory-action-strip-buttons {
        justify-content: flex-start;
    }

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

    .metric-grid,
    .quick-action-grid,
    .inventory-module-grid,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .engineer-profile-hero,
    .profile-stats-grid,
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .brand-copy {
        display: none;
    }

    .app-main {
        padding-top: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .hero-content h1 {
        font-size: clamp(2.2rem, 14vw, 3.4rem);
    }

    .table > :not(caption) > * > * {
        padding: 0.8rem;
    }

    .btn,
    .btn-sm {
        min-height: 44px;
    }

    .ticket-chat-widget {
        right: 0;
        bottom: 0;
        left: 0;
    }

    .ticket-chat-launcher {
        width: calc(100% - 2rem);
        margin: 0 1rem 1rem;
    }

    .ticket-chat-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 78vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .ticket-chat-body {
        max-height: 46vh;
    }
}

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