:root {
    --bg: #edf5f9;
    --bg-2: #f7fbfd;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-2: rgba(246, 251, 253, 0.96);
    --line: #bdd3df;
    --line-hot: rgba(0, 143, 149, 0.36);
    --text: #173247;
    --muted: #5f7487;
    --cyan: #008f95;
    --blue: #1677c8;
    --green: #0f9f62;
    --red: #d9363e;
    --amber: #ffb020;
}

* {
    box-sizing: border-box;
}

html,
body,
#login-root,
#app-root {
    min-height: 100%;
}

.app-page,
.app-page #app-root {
    height: 100vh;
    overflow: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(0, 143, 149, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 119, 200, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 18% 0%, rgba(22, 119, 200, 0.18), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(0, 143, 149, 0.16), transparent 34%),
        var(--bg);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.industrial-page {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.industrial-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 99, 182, 0.28) rgba(226, 233, 239, 0.65);
}

.industrial-page *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.industrial-page *::-webkit-scrollbar-track {
    background: rgba(226, 233, 239, 0.65);
    border-radius: 8px;
}

.industrial-page *::-webkit-scrollbar-thumb {
    border: 2px solid rgba(226, 233, 239, 0.78);
    border-radius: 8px;
    background: rgba(30, 99, 182, 0.28);
}

.industrial-page *::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 99, 182, 0.44);
}

.industrial-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 420px;
    gap: 24px;
    align-items: center;
    width: min(1120px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 36px 0;
}

.login-console {
    min-height: 560px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(30, 99, 182, 0.1), transparent 34%),
        linear-gradient(315deg, rgba(245, 158, 11, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 24px 80px rgba(23, 43, 63, 0.14);
}

.system-chip,
.panel-eyebrow {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 700;
}

.login-console h1.ant-typography,
.login-console h1 {
    margin: 16px 0;
    color: #f3fbff;
    font-size: 46px;
    letter-spacing: 0;
}

.login-copy {
    max-width: 560px;
    color: #9fb5c7;
    font-size: 16px;
    line-height: 1.9;
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 42px;
}

.console-grid span {
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted);
}

.console-grid b {
    display: block;
    margin-bottom: 6px;
    color: var(--cyan);
    font-size: 28px;
    line-height: 1;
}

.signal-panel {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.signal-panel i {
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 0 18px rgba(17, 217, 209, 0.42);
}

.login-ant-card {
    border-color: var(--line-hot);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 72px rgba(23, 43, 63, 0.16);
}

.fallback-card {
    padding: 28px;
    border: 1px solid var(--line-hot);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 72px rgba(23, 43, 63, 0.16);
}

.fallback-card h2 {
    margin: 6px 0 22px;
    color: #f3fbff;
    font-size: 24px;
    letter-spacing: 0;
}

.fallback-card input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    color: #f3fbff;
    background: rgba(255, 255, 255, 0.86);
}

.fallback-card input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(17, 217, 209, 0.16);
}

.fallback-button {
    width: 100%;
    height: 42px;
    border: 1px solid var(--cyan);
    border-radius: 6px;
    color: #03111b;
    background: var(--cyan);
    font-weight: 800;
    cursor: pointer;
}

.fallback-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 95, 87, 0.45);
    border-radius: 6px;
    color: #ffd4d1;
    background: rgba(255, 95, 87, 0.12);
}

.fallback-hint {
    margin: 16px 0 0;
    color: var(--muted);
}

.fallback-home {
    min-height: 100vh;
}

.fallback-home-header {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 252, 0.94);
}

.fallback-logout {
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid rgba(255, 95, 87, 0.45);
    border-radius: 6px;
    color: #ffd4d1;
    text-decoration: none;
}

.fallback-home-body {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 286px 1fr;
}

.fallback-home-sider {
    height: calc(100vh - 64px);
    overflow: auto;
    padding: 14px;
    border-right: 1px solid var(--line);
    background: rgba(245, 247, 250, 0.94);
}

.fallback-home-sider section {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(29, 58, 85, 0.6);
}

.fallback-home-sider h3 {
    margin: 0 0 8px;
    color: #f3fbff;
    font-size: 14px;
}

.fallback-home-sider a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin: 0 6px 6px 0;
    padding: 0 9px;
    border: 1px solid rgba(17, 217, 209, 0.18);
    border-radius: 6px;
    color: #9fb5c7;
    text-decoration: none;
    font-size: 12px;
}

.fallback-home-content {
    min-width: 0;
    padding: 20px;
}

.fallback-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.fallback-kpis article,
.fallback-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 27, 45, 0.86);
    box-shadow: inset 0 1px 0 rgba(17, 217, 209, 0.08), 0 18px 45px rgba(0, 0, 0, 0.2);
}

.fallback-kpis span,
.fallback-kpis small {
    display: block;
    color: var(--muted);
}

.fallback-kpis b {
    display: inline-block;
    margin: 10px 8px 8px 0;
    color: var(--cyan);
    font-size: 30px;
}

.fallback-kpis em {
    color: var(--muted);
    font-style: normal;
}

.fallback-panel h3 {
    margin: 0 0 14px;
    color: #f3fbff;
}

.fallback-panel table {
    width: 100%;
    border-collapse: collapse;
}

.fallback-panel th,
.fallback-panel td {
    height: 40px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(29, 58, 85, 0.75);
    text-align: left;
}

.fallback-panel th {
    color: var(--muted);
    background: rgba(17, 217, 209, 0.08);
}

.login-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 22px;
}

.login-card-head h3.ant-typography {
    margin: 6px 0 0;
    color: #f3fbff;
}

.login-alert {
    margin-bottom: 18px;
}

.login-native-form {
    display: grid;
    gap: 16px;
}

.login-native-form label {
    display: grid;
    gap: 8px;
    color: #d9edf7;
}

.login-native-form label>span {
    font-weight: 600;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 10px;
}

.captcha-img {
    width: 132px;
    height: 40px;
    border: 1px solid var(--line-hot);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.slider-captcha {
    position: relative;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(144, 177, 194, 0.78);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbfe, #edf4f8);
    user-select: none;
}

.slider-captcha.disabled {
    cursor: pointer;
    opacity: 0.78;
}

.slider-captcha-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38px;
    background: linear-gradient(90deg, rgba(0, 143, 149, 0.16), rgba(30, 99, 182, 0.18));
    transition: width 0.16s ease;
}

.slider-captcha.dragging .slider-captcha-fill,
.slider-captcha.dragging .slider-captcha-handle {
    transition: none !important;
}

.slider-captcha-text {
    position: absolute;
    inset: 0 48px;
    display: grid;
    place-items: center;
    color: #536b7e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    pointer-events: none;
}

.slider-captcha-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    transform: translateX(var(--slider-offset, 0px)) !important;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(30, 99, 182, 0.36);
    border-radius: 8px;
    color: #1e63b6;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(38, 78, 105, 0.14);
    cursor: grab;
    touch-action: none;
    will-change: transform;
}

.slider-captcha-handle:active {
    cursor: grabbing;
}

.slider-captcha.done {
    border-color: rgba(15, 159, 98, 0.46);
    background: linear-gradient(180deg, #f0fdf4, #e8f8ef);
}

.slider-captcha.done .slider-captcha-fill {
    background: linear-gradient(90deg, rgba(15, 159, 98, 0.22), rgba(0, 143, 149, 0.2));
}

.slider-captcha.done .slider-captcha-handle {
    color: #0f9f62;
    border-color: rgba(15, 159, 98, 0.48);
}

.industrial-layout {
    height: 100vh;
    min-height: 0;
    background: transparent;
}

.industrial-layout .ant-layout {
    min-height: 0;
}

.industrial-header {
    position: relative;
    overflow: hidden;
    height: 64px;
    display: grid;
    grid-template-columns: minmax(270px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.industrial-header::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0%, rgba(17, 217, 209, 0.08) 36%, rgba(36, 168, 255, 0.16) 50%, rgba(17, 217, 209, 0.08) 64%, transparent 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(17, 217, 209, 0.06) 19px, transparent 20px);
    opacity: 0.72;
    transform: translateX(18%);
    animation: header-scan 8s ease-in-out infinite alternate;
}

.industrial-header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(17, 217, 209, 0.12), transparent);
    opacity: 0.45;
    animation: header-pulse 5.2s ease-in-out infinite alternate;
}

.industrial-header>* {
    position: relative;
    z-index: 1;
}

@keyframes header-scan {
    0% {
        background-position: -160px 0, 0 0;
    }

    100% {
        background-position: 180px 0, 36px 0;
    }
}

@keyframes header-pulse {

    0%,
    100% {
        opacity: 0.28;
    }

    50% {
        opacity: 0.52;
    }
}

.app-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-hot);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(17, 217, 209, 0.12);
    font-weight: 800;
    box-shadow: inset 0 0 16px rgba(17, 217, 209, 0.18);
}

.app-title {
    color: #f3fbff;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.app-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.collapse-btn {
    flex: 0 0 auto;
    border-color: var(--line);
}

.header-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.header-actions>* {
    flex: 0 0 auto;
}

.industrial-sider {
    height: calc(100vh - 64px);
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 42px rgba(0, 0, 0, 0.2);
}

.industrial-sider .ant-layout-sider-children {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sider-search {
    flex: 0 0 auto;
    padding: 14px;
}

.industrial-sider .ant-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-code {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(17, 217, 209, 0.36);
    border-radius: 6px;
    color: var(--cyan);
    background: rgba(17, 217, 209, 0.08);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 10px rgba(17, 217, 209, 0.08);
}

.industrial-sider .menu-code.ant-menu-item-icon,
.industrial-sider .ant-menu-submenu-title .menu-code.ant-menu-item-icon,
.industrial-sider .ant-menu-item .menu-code.ant-menu-item-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-inline-end: 10px;
    line-height: 1;
    vertical-align: middle;
}

.menu-code .anticon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.menu-code svg {
    width: 14px;
    height: 14px;
}

.submenu-code {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #5f7487;
    background: transparent;
    font-size: 13px;
    line-height: 1;
}

.industrial-sider .submenu-code.ant-menu-item-icon,
.industrial-sider .ant-menu-item .submenu-code {
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-inline-end: 8px;
}

.submenu-code .anticon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.submenu-code svg {
    width: 13px;
    height: 13px;
}

.industrial-sider .ant-menu-sub .ant-menu-item-selected .submenu-code {
    color: #1e63b6;
    background: transparent;
}

.mobile-sider-backdrop {
    display: none;
}

.industrial-content {
    position: relative;
    height: calc(100vh - 64px);
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    display: block;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        transparent;
}

.industrial-content>.ant-tabs {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.industrial-content .ant-tabs-content-holder {
    min-height: 0;
    height: auto;
    flex: 1 1 0;
    overflow: hidden;
}

.industrial-content .ant-tabs-content {
    height: 100%;
    min-height: 0;
}

.industrial-content .ant-tabs-tabpane {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.industrial-content .ant-tabs-tabpane-active {
    display: block;
    height: 100%;
    min-height: 0;
}

.industrial-content .ant-tabs-tabpane-active>.realtime-workbench {
    height: 100%;
}

.realtime-workbench {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.industrial-content .ant-tabs-nav {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.industrial-content .ant-tabs-tab {
    border-color: var(--line) !important;
    background: rgba(255, 255, 255, 0.84) !important;
}

.industrial-content .ant-tabs-tab-active {
    border-color: var(--line-hot) !important;
}

.workspace-tabs {
    position: absolute;
    top: 8px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
    height: 36px;
    margin: 0;
    overflow: hidden;
}

.workspace-tabs button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #9fb5c7;
    background: rgba(255, 255, 255, 0.84);
    cursor: default;
}

.workspace-tabs button.active {
    color: #f3fbff;
    border-color: var(--line-hot);
    background: rgba(14, 107, 112, 0.46);
}

.workspace-tabs span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.workspace-tabs i {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.workspace-tabs i:hover {
    color: var(--red);
}

.workspace-content {
    position: absolute;
    top: 49px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    overflow: hidden;
    display: block;
}

.ajax-loading-pill {
    position: absolute;
    top: 10px;
    right: 24px;
    z-index: 20;
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #14557a;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(32, 135, 180, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(42, 90, 126, 0.14);
    pointer-events: none;
}

.ajax-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d8fd1;
    box-shadow: 0 0 0 0 rgba(29, 143, 209, 0.36);
    animation: ajaxPulse 1s ease-out infinite;
}

@keyframes ajaxPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 143, 209, 0.36);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(29, 143, 209, 0);
    }
}

.tab-page {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.tab-page.active {
    display: block;
}

.runtime-error {
    margin: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 95, 87, 0.45);
    border-radius: 8px;
    color: #ffd4d1;
    background: rgba(255, 95, 87, 0.12);
}

.runtime-error h3 {
    margin: 0 0 8px;
    color: #fff;
}

.workbench-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.workbench-head h2.ant-typography {
    margin: 4px 0;
    color: #f3fbff;
    letter-spacing: 0;
}

.filter-card {
    flex: 0 0 auto;
    height: auto;
    margin-bottom: 12px;
}

.filter-card.industrial-card,
.summary-card.industrial-card {
    height: auto;
}

.quick-bar {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.86);
}

.summary-row {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.summary-card .ant-card-body {
    padding: 8px 10px;
}

.summary-card .ant-statistic-title {
    color: #8da6ba;
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.1;
}

.summary-card .ant-statistic-content {
    color: var(--cyan);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.summary-card .ant-statistic-content-suffix {
    margin-inline-start: 3px;
    font-size: 11px;
}

.table-card .ant-card-body {
    height: 100%;
    padding: 12px;
}

.table-card {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-card .ant-card-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.table-card .ant-table-wrapper {
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.drag-table-shell {
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.drag-table-shell .ant-table-body,
.drag-table-shell .ant-table-content {
    cursor: default;
    overscroll-behavior: contain;
}

.drag-table-shell .ant-table-body.table-dragging,
.drag-table-shell .ant-table-content.table-dragging {
    cursor: grabbing;
}

body.table-dragging-active {
    user-select: none;
    cursor: grabbing;
}

.table-card .ant-spin-nested-loading,
.table-card .ant-spin-container {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.table-card .ant-table {
    min-height: 0;
    flex: 1 1 auto;
}

.table-card .ant-table-thead>tr>th,
.table-card .ant-table-column-title {
    white-space: nowrap;
    word-break: keep-all;
}

.table-card .ant-pagination {
    flex: 0 0 auto;
    margin: 8px 0 0 !important;
}

.table-pagination-bar {
    flex: 0 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 0;
    border-top: 1px solid rgba(29, 58, 85, 0.72);
    background: rgba(13, 27, 45, 0.86);
}

.pagination-actions {
    margin-left: auto;
    flex: 0 0 auto;
}

.table-pagination-bar .ant-pagination {
    margin: 0 !important;
}

.archive-progress-panel {
    min-width: 360px;
    max-width: 520px;
    flex: 1 1 360px;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: rgba(220, 243, 255, 0.82);
    font-size: 12px;
    white-space: nowrap;
}

.archive-progress-panel .ant-progress {
    min-width: 120px;
}

.archive-progress-time {
    color: rgba(220, 243, 255, 0.86);
}

.archive-progress-next {
    color: var(--cyan);
    font-weight: 700;
}

@media (max-width: 980px) {
    .table-pagination-bar {
        flex-wrap: wrap;
    }

    .archive-progress-panel {
        min-width: 100%;
        flex-basis: 100%;
    }

    .pagination-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

.state-cell {
    min-width: 58px;
    display: inline-flex;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.state-cell.green {
    color: #d8ffe8;
    background: rgba(53, 224, 127, 0.18);
    border: 1px solid rgba(53, 224, 127, 0.34);
}

.state-cell.red {
    color: #ffd4d1;
    background: rgba(255, 95, 87, 0.18);
    border: 1px solid rgba(255, 95, 87, 0.38);
}

.state-cell.muted {
    color: #8aa0b8;
    background: rgba(138, 160, 184, 0.08);
    border: 1px solid rgba(138, 160, 184, 0.18);
}

.customer-name-cell {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.customer-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(141, 166, 186, 0.16);
}

.device-status-dot.online {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15), 0 0 9px rgba(22, 163, 74, 0.28);
}

.device-status-dot.offline {
    background: #9aa9b8;
}

.device-status-dot.flash {
    animation: device-status-flash 0.55s ease-out 1;
}

@keyframes device-status-flash {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18), 0 0 0 0 rgba(22, 163, 74, 0.46);
    }

    45% {
        transform: scale(1.34);
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18), 0 0 0 7px rgba(22, 163, 74, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15), 0 0 0 10px rgba(22, 163, 74, 0);
    }
}

.compact-workbench .workbench-head,
.compact-workbench .filter-card .ant-card-body,
.compact-workbench .table-card .ant-card-body {
    padding: 10px;
}

.compact-workbench .summary-card .ant-card-body {
    padding: 10px 12px;
}

.industrial-card {
    height: 100%;
    border-color: var(--line);
    box-shadow: inset 0 1px 0 rgba(17, 217, 209, 0.08), 0 18px 45px rgba(0, 0, 0, 0.2);
}

.industrial-card .ant-card-head {
    border-bottom-color: var(--line);
}

.profile-edit-modal .ant-modal-content {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(17, 217, 209, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 217, 209, 0.11), transparent 32%),
        linear-gradient(315deg, rgba(36, 168, 255, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-edit-modal .ant-modal-header {
    margin: 0;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(29, 58, 85, 0.86);
    background: rgba(248, 250, 252, 0.92);
}

.profile-edit-modal .ant-modal-close {
    top: 14px;
    color: rgba(217, 237, 247, 0.72);
}

.profile-edit-modal .ant-modal-close:hover {
    color: #f3fbff;
    background: rgba(17, 217, 209, 0.12);
}

.profile-modal-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding-right: 32px;
}

.profile-modal-title strong {
    color: #f3fbff;
    font-size: 18px;
    line-height: 1;
}

.profile-modal-title small {
    color: rgba(126, 150, 173, 0.96);
    font-size: 12px;
    line-height: 1;
}

.profile-edit-modal .ant-modal-body {
    padding: 0;
}

.profile-edit-body {
    padding: 16px 18px 6px;
}

.profile-edit-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.profile-edit-summary>div {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(29, 58, 85, 0.9);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(17, 217, 209, 0.12), transparent 54%),
        rgba(10, 24, 40, 0.72);
}

.profile-edit-summary span,
.profile-edit-summary small {
    display: block;
    color: rgba(126, 150, 173, 0.96);
    font-size: 12px;
}

.profile-edit-summary strong {
    display: block;
    overflow: hidden;
    margin: 4px 0;
    color: #f3fbff;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-edit-form {
    display: grid;
    gap: 12px;
}

.profile-form-section {
    padding: 12px 12px 4px;
    border: 1px solid rgba(29, 58, 85, 0.72);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border: 1px solid rgba(17, 217, 209, 0.42);
    border-radius: 4px;
    color: var(--cyan);
    background: rgba(17, 217, 209, 0.1);
    font-size: 11px;
    font-weight: 800;
}

.profile-section-title strong {
    color: #d9edf7;
    font-size: 14px;
}

.profile-edit-modal .ant-form-item {
    margin-bottom: 12px;
}

.profile-edit-modal .ant-form-item-label {
    padding-bottom: 4px;
}

.profile-edit-modal .ant-form-item-label>label {
    color: rgba(217, 237, 247, 0.8);
    font-size: 12px;
}

.profile-edit-modal .ant-input,
.profile-edit-modal .ant-input-affix-wrapper,
.profile-edit-modal .ant-input-number,
.profile-edit-modal .ant-picker,
.profile-edit-modal .ant-select-selector {
    border-color: rgba(29, 58, 85, 0.96) !important;
    background: rgba(5, 14, 26, 0.78) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-edit-modal .ant-input:hover,
.profile-edit-modal .ant-input-affix-wrapper:hover,
.profile-edit-modal .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
    border-color: rgba(17, 217, 209, 0.6) !important;
}

.profile-edit-modal .ant-input:focus,
.profile-edit-modal .ant-input-affix-wrapper-focused,
.profile-edit-modal .ant-select-focused .ant-select-selector {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px rgba(17, 217, 209, 0.12) !important;
}

.profile-edit-modal textarea.ant-input {
    resize: none;
}

.profile-edit-modal .ant-input-data-count {
    color: rgba(126, 150, 173, 0.9);
}

.profile-edit-modal .ant-modal-footer {
    margin: 0;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(29, 58, 85, 0.86);
    background: rgba(248, 250, 252, 0.92);
}

.profile-edit-modal .ant-modal-footer .ant-btn {
    min-width: 82px;
    height: 34px;
    border-radius: 5px;
}

.profile-edit-modal .ant-modal-footer .ant-btn-primary {
    color: #03111b;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-color: transparent;
    box-shadow: 0 0 16px rgba(17, 217, 209, 0.28);
}

@media (max-width: 720px) {

    .profile-edit-summary,
    .profile-modal-title {
        grid-template-columns: 1fr;
    }

    .profile-modal-title {
        gap: 6px;
        align-items: start;
    }
}

.kpi-card .ant-statistic-title {
    color: #8da6ba;
}

.kpi-card .ant-statistic-content {
    color: #f3fbff;
    font-weight: 800;
}

.kpi-card.cyan .ant-statistic-content {
    color: var(--cyan);
}

.kpi-card.blue .ant-statistic-content {
    color: var(--blue);
}

.kpi-card.green .ant-statistic-content {
    color: var(--green);
}

.kpi-card.red .ant-statistic-content {
    color: var(--red);
}

.kpi-desc {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.dashboard-row {
    margin-top: 16px;
}

.tech-bars {
    height: 226px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(17, 217, 209, 0.18);
    border-radius: 8px;
    background:
        repeating-linear-gradient(to top, rgba(126, 150, 173, 0.13) 0, rgba(126, 150, 173, 0.13) 1px, transparent 1px, transparent 44px),
        rgba(255, 255, 255, 0.72);
}

.tech-bars i {
    display: block;
    min-height: 18px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--cyan), #0b6f9e);
    box-shadow: 0 0 18px rgba(17, 217, 209, 0.32);
}

.ant-table-wrapper .ant-table {
    background: #ffffff;
    font-family: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.ant-table-wrapper .ant-table-thead>tr>th,
.ant-table-wrapper .ant-table-tbody>tr>td {
    font-family: inherit;
}

.ant-table-container,
.ant-table-content,
.ant-table-body {
    background: #ffffff;
}

.ant-table-thead>tr>th {
    background: #e5ebf2 !important;
    color: #172b3f !important;
    border-bottom-color: #b8c7d4 !important;
}

.ant-table-tbody>tr>td {
    background: #ffffff;
}

.ant-table-tbody>tr.ant-table-row:hover>td {
    background: #eef5ff !important;
}

.ant-table-cell-fix-left,
.ant-table-cell-fix-right {
    background: #ffffff !important;
    z-index: 3;
}

.ant-table-thead .ant-table-cell-fix-left,
.ant-table-thead .ant-table-cell-fix-right {
    background: #e5ebf2 !important;
    z-index: 5;
}

.ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-left,
.ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-right {
    background: #eef5ff !important;
}

.ant-table-cell-fix-left-last::after {
    box-shadow: inset 10px 0 8px -8px rgba(88, 118, 140, 0.34) !important;
}

@media (max-width: 980px) {
    .industrial-login {
        grid-template-columns: 1fr;
        width: min(720px, calc(100vw - 32px));
    }

    .login-console {
        min-height: auto;
        padding: 32px;
    }

    .login-console h1.ant-typography {
        font-size: 34px;
    }

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

    .workbench-head {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding: 14px;
    }

    .header-actions {
        overflow-x: auto;
    }

    .industrial-header {
        grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
        padding: 0 12px;
        gap: 10px;
    }

    .app-subtitle {
        display: none;
    }

    .header-actions {
        min-width: 0;
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .industrial-content {
        padding: 12px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    body.login-page,
    body.login-page #login-root {
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .industrial-login {
        width: min(100% - 24px, 430px);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 14px 0 max(34px, calc(env(safe-area-inset-bottom) + 22px));
    }

    .login-console {
        display: none;
    }

    .login-console h1.ant-typography,
    .login-console h1 {
        margin: 8px 0 6px;
        font-size: 24px;
        line-height: 1.18;
    }

    .system-chip,
    .panel-eyebrow {
        font-size: 11px;
    }

    .login-copy {
        max-width: none;
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .console-grid,
    .signal-panel {
        display: none;
    }

    .login-ant-card .ant-card-body {
        padding: 18px;
    }

    .login-card-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .login-card-head h3.ant-typography {
        margin-top: 4px;
        font-size: 18px;
    }

    .login-alert {
        margin-bottom: 12px;
    }

    .login-native-form {
        gap: 12px;
    }

    .login-native-form label {
        gap: 6px;
        font-size: 13px;
    }

    .login-page .ant-input,
    .login-page .ant-input-affix-wrapper {
        min-height: 38px;
    }

    .slider-captcha {
        height: 42px;
    }

    .slider-captcha-handle {
        width: 36px;
        height: 36px;
    }

    .slider-captcha-text {
        inset: 0 42px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .industrial-login {
        width: calc(100% - 16px);
        padding: 8px 0;
    }

    .login-console {
        padding: 14px;
    }

    .login-ant-card .ant-card-body {
        padding: 14px;
    }

    .login-copy {
        font-size: 12px;
    }
}

/* Light industrial theme overrides */
.industrial-page * {
    scrollbar-color: rgba(30, 99, 182, 0.24) rgba(226, 233, 239, 0.58);
}

.industrial-page *::-webkit-scrollbar-track {
    background: rgba(226, 233, 239, 0.58);
}

.industrial-page *::-webkit-scrollbar-thumb {
    border-color: rgba(226, 233, 239, 0.72);
    background: rgba(30, 99, 182, 0.24);
}

.login-console,
.fallback-card,
.login-ant-card {
    border-color: rgba(0, 143, 149, 0.32);
    background:
        linear-gradient(135deg, rgba(0, 143, 149, 0.12), transparent 36%),
        linear-gradient(315deg, rgba(22, 119, 200, 0.12), transparent 44%),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 70px rgba(32, 71, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.login-console h1.ant-typography,
.login-console h1,
.fallback-card h2,
.login-card-head h3.ant-typography {
    color: #102b3f;
}

.login-copy,
.fallback-hint {
    color: #5f7487;
}

.console-grid span,
.fallback-card input {
    border-color: rgba(0, 143, 149, 0.2);
    background: rgba(246, 251, 253, 0.82);
    color: #173247;
}

.fallback-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.industrial-layout,
.industrial-layout .ant-layout {
    background: transparent;
}

.industrial-header {
    border-bottom-color: rgba(144, 177, 194, 0.82);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 253, 0.92)),
        var(--bg-2);
    box-shadow: 0 10px 32px rgba(38, 78, 105, 0.13);
}

.industrial-header::before {
    background:
        linear-gradient(110deg, transparent 0%, rgba(0, 143, 149, 0.08) 36%, rgba(22, 119, 200, 0.16) 50%, rgba(0, 143, 149, 0.08) 64%, transparent 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(0, 143, 149, 0.08) 19px, transparent 20px);
    opacity: 0.82;
}

.industrial-header::after {
    background: linear-gradient(90deg, transparent, rgba(0, 143, 149, 0.18), transparent);
}

.app-mark,
.menu-code {
    color: #007980;
    border-color: rgba(0, 143, 149, 0.38);
    background: rgba(0, 143, 149, 0.09);
    box-shadow: inset 0 0 14px rgba(0, 143, 149, 0.12);
}

.app-title {
    color: #102b3f;
}

.app-subtitle,
.ant-typography,
.ant-typography-secondary {
    color: #5f7487;
}

.collapse-btn,
.industrial-page .ant-btn-default {
    border-color: rgba(144, 177, 194, 0.78);
    color: #173247;
    background: rgba(255, 255, 255, 0.82);
}

.industrial-page .ant-btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 143, 149, 0.18);
}

.industrial-sider {
    border-right-color: rgba(144, 177, 194, 0.78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 250, 0.92)),
        var(--bg-2);
    box-shadow: 12px 0 34px rgba(38, 78, 105, 0.12);
}

.industrial-sider .ant-layout-sider-children,
.industrial-sider .ant-menu,
.industrial-sider .ant-menu-sub,
.industrial-sider .ant-menu-inline,
.industrial-sider .ant-menu-dark,
.industrial-sider .ant-menu-dark .ant-menu-sub {
    color: #173247;
    background: transparent !important;
}

.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title {
    color: #28465a !important;
}

.industrial-sider .ant-menu-item-selected,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title {
    color: #006b72 !important;
    background: linear-gradient(90deg, rgba(0, 143, 149, 0.14), rgba(22, 119, 200, 0.08)) !important;
}

.sider-search .ant-input-affix-wrapper,
.header-actions .ant-input-affix-wrapper,
.industrial-page .ant-input,
.industrial-page .ant-input-affix-wrapper,
.industrial-page .ant-select-selector,
.industrial-page .ant-picker {
    color: #173247;
    border-color: rgba(144, 177, 194, 0.78) !important;
    background: rgba(255, 255, 255, 0.86) !important;
}

.industrial-content {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        transparent;
}

.industrial-content .ant-tabs-nav {
    color: #28465a;
}

.industrial-content .ant-tabs-tab {
    border-color: rgba(144, 177, 194, 0.6) !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

.industrial-content .ant-tabs-tab-active {
    border-color: rgba(0, 143, 149, 0.42) !important;
    background: linear-gradient(90deg, rgba(0, 143, 149, 0.12), rgba(22, 119, 200, 0.08)) !important;
}

.workspace-tabs button {
    color: #5f7487;
    border-color: rgba(144, 177, 194, 0.72);
    background: rgba(255, 255, 255, 0.84);
}

.workspace-tabs button.active {
    color: #006b72;
    border-color: rgba(0, 143, 149, 0.46);
    background: linear-gradient(90deg, rgba(0, 143, 149, 0.14), rgba(22, 119, 200, 0.08));
    box-shadow: 0 8px 18px rgba(0, 143, 149, 0.12);
}

.workspace-tabs i {
    color: #7b8f9f;
}

.filter-card,
.quick-bar,
.table-pagination-bar,
.industrial-card,
.profile-form-section,
.profile-edit-summary>div {
    border-color: rgba(144, 177, 194, 0.7);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(38, 78, 105, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.summary-card .ant-statistic-title,
.profile-edit-summary span,
.profile-edit-summary small,
.profile-edit-modal .ant-form-item-label>label,
.archive-progress-time {
    color: #5f7487;
}

.summary-card .ant-statistic-content,
.archive-progress-next,
.profile-section-title span,
.system-chip,
.panel-eyebrow {
    color: var(--cyan);
}

.table-card,
.table-card .ant-card-body,
.ant-table-wrapper .ant-table,
.ant-table-container,
.ant-table-content,
.ant-table-body {
    background: rgba(255, 255, 255, 0.94) !important;
}

.ant-table-thead>tr>th {
    color: #173247 !important;
    background: #e5f1f6 !important;
    border-bottom-color: #bdd3df !important;
}

.ant-table-tbody>tr>td,
.ant-table-cell-fix-left,
.ant-table-cell-fix-right {
    color: #173247;
    background: #ffffff !important;
    border-bottom-color: #e0edf3 !important;
}

.ant-table-tbody>tr.ant-table-row:hover>td,
.ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-left,
.ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-right {
    background: #edf8fa !important;
}

.ant-table-cell-fix-left-last::after {
    box-shadow: inset 10px 0 8px -8px rgba(88, 118, 140, 0.34) !important;
}

.state-cell.green {
    color: #087044;
    background: rgba(15, 159, 98, 0.12);
    border-color: rgba(15, 159, 98, 0.3);
}

.state-cell.red {
    color: #b4232b;
    background: rgba(217, 54, 62, 0.1);
    border-color: rgba(217, 54, 62, 0.28);
}

.state-cell.muted {
    color: #6a7f91;
    background: rgba(95, 116, 135, 0.08);
    border-color: rgba(95, 116, 135, 0.18);
}

.profile-edit-modal .ant-modal-content {
    border-color: rgba(0, 143, 149, 0.34);
    background:
        linear-gradient(135deg, rgba(0, 143, 149, 0.1), transparent 34%),
        linear-gradient(315deg, rgba(22, 119, 200, 0.1), transparent 42%),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(38, 78, 105, 0.22);
}

.profile-edit-modal .ant-modal-header,
.profile-edit-modal .ant-modal-footer {
    border-color: rgba(144, 177, 194, 0.72);
    background: rgba(246, 251, 253, 0.92);
}

.profile-modal-title strong,
.profile-edit-summary strong,
.profile-section-title strong,
.kpi-card .ant-statistic-content {
    color: #102b3f;
}

.profile-edit-modal .ant-input,
.profile-edit-modal .ant-input-affix-wrapper,
.profile-edit-modal .ant-input-number,
.profile-edit-modal .ant-picker,
.profile-edit-modal .ant-select-selector {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(144, 177, 194, 0.78) !important;
}

.tech-bars {
    border-color: rgba(0, 143, 149, 0.22);
    background:
        repeating-linear-gradient(to top, rgba(144, 177, 194, 0.18) 0, rgba(144, 177, 194, 0.18) 1px, transparent 1px, transparent 44px),
        rgba(255, 255, 255, 0.72);
}

/* Light theme refinement */
.industrial-page {
    color: #173247;
}

.app-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0%, rgba(0, 143, 149, 0.06) 28%, transparent 46%),
        linear-gradient(62deg, transparent 0%, rgba(22, 119, 200, 0.06) 34%, transparent 58%),
        repeating-linear-gradient(90deg, rgba(0, 143, 149, 0.025) 0, rgba(0, 143, 149, 0.025) 1px, transparent 1px, transparent 84px);
    z-index: 0;
}

.app-page #app-root {
    position: relative;
    z-index: 1;
}

.industrial-header {
    backdrop-filter: blur(10px);
}

.industrial-header::before {
    animation-duration: 10s;
}

.header-brand {
    padding: 6px 8px 6px 0;
}

.app-mark {
    position: relative;
}

.app-mark::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(15, 159, 98, 0.16);
}

.header-actions .ant-space {
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(144, 177, 194, 0.58);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.68);
}

.industrial-sider {
    backdrop-filter: blur(8px);
}

.sider-search {
    border-bottom: 1px solid rgba(144, 177, 194, 0.44);
}

.industrial-sider .ant-menu {
    padding: 8px 8px 14px;
}

.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title {
    position: relative;
    margin-inline: 0;
    margin-block: 3px;
    border-radius: 6px;
}

.industrial-sider .ant-menu-item::before,
.industrial-sider .ant-menu-submenu-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 4px;
    background: transparent;
}

.industrial-sider .ant-menu-item-selected::before,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title::before {
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.industrial-sider .ant-menu-item:hover,
.industrial-sider .ant-menu-submenu-title:hover {
    color: #006b72 !important;
    background: rgba(0, 143, 149, 0.08) !important;
}

.menu-code {
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.industrial-sider .ant-menu-item:hover .menu-code,
.industrial-sider .ant-menu-submenu-title:hover .menu-code,
.industrial-sider .ant-menu-item-selected .menu-code {
    transform: translateY(-1px);
    border-color: rgba(0, 143, 149, 0.5);
    background: rgba(0, 143, 149, 0.14);
}

.industrial-content {
    padding: 18px;
}

.workspace-tabs {
    top: 8px;
    left: 18px;
    right: 18px;
}

.workspace-tabs button {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.workspace-tabs button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 143, 149, 0.42);
    box-shadow: 0 8px 18px rgba(38, 78, 105, 0.12);
}

.workspace-content {
    top: 49px;
}

.filter-card,
.quick-bar,
.table-card,
.summary-card,
.profile-form-section {
    position: relative;
    overflow: hidden;
}

.filter-card::before,
.table-card::before,
.profile-form-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(22, 119, 200, 0.55), transparent);
    opacity: 0.76;
}

.quick-bar {
    align-items: center;
}

.quick-bar .ant-btn {
    height: 32px;
    padding-inline: 11px;
    border-color: rgba(144, 177, 194, 0.64);
    background: rgba(255, 255, 255, 0.78);
}

.quick-bar .ant-btn:hover {
    color: #006b72;
    border-color: rgba(0, 143, 149, 0.46);
    background: rgba(237, 248, 250, 0.92);
}

.summary-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(38, 78, 105, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.summary-card .ant-statistic-title {
    font-weight: 700;
}

.summary-card .ant-statistic-content {
    font-size: 17px;
}

.table-card {
    border-radius: 8px;
}

.ant-table-thead>tr>th {
    font-weight: 800 !important;
}

.ant-table-tbody>tr:nth-child(even)>td,
.ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-left,
.ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-right {
    background: #f8fbfd !important;
}

.ant-table-tbody>tr.ant-table-row-selected>td,
.ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-left,
.ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-right {
    background: #dff4f3 !important;
}

.table-pagination-bar {
    border-radius: 0 0 8px 8px;
}

.table-pagination-bar .ant-pagination-item-active {
    border-color: rgba(0, 143, 149, 0.5);
    background: rgba(0, 143, 149, 0.1);
}

.archive-progress-panel {
    padding: 4px 8px;
    border: 1px solid rgba(144, 177, 194, 0.52);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.58);
}

.industrial-page .ant-select-selector,
.industrial-page .ant-input,
.industrial-page .ant-input-affix-wrapper {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.industrial-page .ant-select-focused .ant-select-selector,
.industrial-page .ant-input:focus,
.industrial-page .ant-input-affix-wrapper-focused {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 143, 149, 0.12) !important;
}

.profile-edit-modal .ant-modal-content {
    overflow: hidden;
}

.profile-edit-summary>div {
    background:
        linear-gradient(90deg, rgba(0, 143, 149, 0.1), transparent 58%),
        rgba(255, 255, 255, 0.88);
}

.profile-section-title span {
    background: rgba(0, 143, 149, 0.1);
}

.ant-message-notice-content,
.ant-modal-confirm .ant-modal-content {
    border: 1px solid rgba(144, 177, 194, 0.62);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(38, 78, 105, 0.18);
}

/* Contrast correction for the light theme */
.industrial-page,
.industrial-page .ant-typography,
.industrial-page .ant-form,
.industrial-page .ant-card,
.industrial-page .ant-table,
.industrial-page .ant-modal,
.industrial-page .ant-drawer,
.industrial-page .ant-pagination,
.industrial-page .ant-menu {
    color: #173247;
}

.login-native-form label,
.login-native-form label>span,
.login-card-head .ant-badge-status-text,
.fallback-card label,
.fallback-card label span,
.industrial-page .ant-form-item-label>label,
.industrial-page .ant-checkbox-wrapper,
.industrial-page .ant-radio-wrapper,
.industrial-page .ant-switch+span,
.industrial-page .ant-table-tbody>tr>td,
.industrial-page .ant-pagination,
.industrial-page .ant-pagination-item a,
.industrial-page .ant-select-selection-item,
.industrial-page .ant-input,
.industrial-page textarea.ant-input {
    color: #173247 !important;
}

.industrial-page .ant-typography-secondary,
.industrial-page .ant-form-item-extra,
.industrial-page .ant-empty-description,
.industrial-page .ant-pagination-total-text,
.industrial-page .ant-select-selection-placeholder,
.industrial-page .ant-input-data-count,
.industrial-page .ant-breadcrumb,
.industrial-page .ant-table-column-sorter,
.industrial-page .ant-table-tbody>tr>td.ant-table-cell-row-hover,
.app-subtitle,
.login-copy,
.fallback-hint,
.workspace-tabs button,
.archive-progress-time,
.profile-edit-summary span,
.profile-edit-summary small,
.summary-card .ant-statistic-title {
    color: #465f73 !important;
}

.industrial-page .ant-input::placeholder,
.industrial-page textarea.ant-input::placeholder,
.industrial-page input::placeholder {
    color: #60798b !important;
    opacity: 1;
}

.industrial-page .ant-btn-default,
.industrial-page .ant-btn-text,
.industrial-page .ant-btn-link {
    color: #173247;
}

.industrial-page .ant-btn-link:hover,
.industrial-page .ant-btn-text:hover {
    color: #006b72;
}

.industrial-page .ant-btn-dangerous,
.industrial-page .ant-btn-dangerous.ant-btn-default {
    color: #b4232b;
}

.system-chip,
.panel-eyebrow,
.summary-card .ant-statistic-content,
.archive-progress-next,
.profile-section-title span {
    color: #006b72 !important;
}

.app-title,
.login-console h1,
.login-console h1.ant-typography,
.login-card-head h3.ant-typography,
.fallback-card h2,
.profile-modal-title strong,
.profile-edit-summary strong,
.profile-section-title strong,
.ant-modal-title,
.industrial-page .ant-table-thead>tr>th,
.industrial-page .ant-tabs-tab-active .ant-tabs-tab-btn,
.workspace-tabs button.active {
    color: #102b3f !important;
}

.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title,
.industrial-sider .ant-menu-title-content {
    color: #173247 !important;
    font-weight: 600;
}

.industrial-sider .ant-menu-item-selected,
.industrial-sider .ant-menu-item-selected .ant-menu-title-content,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title .ant-menu-title-content {
    color: #006b72 !important;
    font-weight: 800;
}

.industrial-page .ant-table-thead>tr>th {
    font-weight: 800;
}

.industrial-page .ant-table-column-sorter-up,
.industrial-page .ant-table-column-sorter-down {
    color: #60798b;
}

.industrial-page .ant-table-column-sorter-up.active,
.industrial-page .ant-table-column-sorter-down.active {
    color: #006b72;
}

.industrial-page .ant-tag {
    font-weight: 700;
}

.industrial-page .ant-select-dropdown,
.industrial-page .ant-picker-dropdown,
.industrial-page .ant-tooltip,
.industrial-page .ant-popover,
.industrial-page .ant-dropdown {
    color: #173247;
}

.industrial-page .ant-select-item,
.industrial-page .ant-dropdown-menu-item,
.industrial-page .ant-picker-cell,
.industrial-page .ant-picker-header,
.industrial-page .ant-popover-inner-content,
.industrial-page .ant-message-notice-content {
    color: #173247 !important;
}

.industrial-page .ant-select-item-option-selected:not(.ant-select-item-option-disabled),
.industrial-page .ant-dropdown-menu-item-selected {
    color: #006b72 !important;
    background: rgba(0, 143, 149, 0.1) !important;
}

/* List page color calibration */
.realtime-workbench {
    color: #173247;
}

.filter-card,
.quick-bar,
.table-card,
.table-pagination-bar {
    border-color: #b7cbd7 !important;
    background: #f9fcfd !important;
    box-shadow: 0 10px 26px rgba(38, 78, 105, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.filter-card .ant-card-body {
    background:
        linear-gradient(90deg, rgba(0, 143, 149, 0.045), transparent 42%),
        #f9fcfd;
}

.quick-bar {
    background:
        linear-gradient(90deg, rgba(22, 119, 200, 0.055), transparent 56%),
        #f8fbfd !important;
}

.quick-bar .ant-btn,
.filter-card .ant-btn,
.table-pagination-bar .ant-btn {
    color: #173247;
    border-color: #b7cbd7;
    background: #ffffff;
}

.quick-bar .ant-btn:hover,
.filter-card .ant-btn:hover,
.table-pagination-bar .ant-btn:hover {
    color: #006b72;
    border-color: #008f95;
    background: #edf8fa;
}

.filter-card .ant-select-selector,
.filter-card .ant-input,
.filter-card .ant-input-affix-wrapper {
    border-color: #b7cbd7 !important;
    background: #ffffff !important;
}

.table-card {
    background: #ffffff !important;
}

.table-card .ant-card-body {
    background: #ffffff !important;
}

.ant-table-wrapper,
.ant-table-wrapper .ant-table,
.ant-table-container,
.ant-table-content,
.ant-table-body {
    background: #ffffff !important;
}

.industrial-page .ant-table {
    color: #173247;
    border: 1px solid #c4d5de;
    border-radius: 6px;
}

.industrial-page .ant-table-thead>tr>th:first-child,
.industrial-page .ant-table-tbody>tr>td:first-child {
    white-space: nowrap;
}

.industrial-page .ant-table-thead>tr>th {
    color: #102b3f !important;
    background: #dbeaf1 !important;
    border-right: 1px solid #c4d5de !important;
    border-bottom: 1px solid #aFC5d1 !important;
    font-weight: 800;
}

.industrial-page .ant-table-thead>tr>th::before {
    background: #b7cbd7 !important;
}

.industrial-page .ant-table-tbody>tr>td {
    color: #173247 !important;
    background: #ffffff !important;
    border-right: 1px solid #edf3f6;
    border-bottom: 1px solid #dce8ee !important;
}

.industrial-page .ant-table .table-spacer-column {
    border-right: 0 !important;
}

.industrial-page .ant-table-tbody>tr:nth-child(even)>td {
    background: #f6fafc !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row:hover>td {
    background: #eaf6f8 !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row-selected>td {
    background: #d9f0f0 !important;
    border-bottom-color: #b8d8da !important;
}

.industrial-page .ant-table-cell-fix-left,
.industrial-page .ant-table-cell-fix-right {
    background: #ffffff !important;
}

.industrial-page .ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-right {
    background: #f6fafc !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-right {
    background: #eaf6f8 !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-right {
    background: #d9f0f0 !important;
}

.industrial-page .ant-table-thead .ant-table-cell-fix-left,
.industrial-page .ant-table-thead .ant-table-cell-fix-right {
    background: #dbeaf1 !important;
}

.industrial-page .ant-table-column-sorter-up,
.industrial-page .ant-table-column-sorter-down {
    color: #6b8394;
}

.industrial-page .ant-table-column-sorter-up.active,
.industrial-page .ant-table-column-sorter-down.active {
    color: #006b72;
}

.table-pagination-bar {
    border-top-color: #c4d5de !important;
    background: #f4f9fb !important;
}

.table-pagination-bar .ant-pagination-item,
.table-pagination-bar .ant-pagination-prev .ant-pagination-item-link,
.table-pagination-bar .ant-pagination-next .ant-pagination-item-link {
    border-color: #b7cbd7;
    background: #ffffff;
}

.table-pagination-bar .ant-pagination-item-active {
    border-color: #008f95;
    background: #e1f4f4;
}

.table-pagination-bar .ant-pagination-item-active a {
    color: #006b72 !important;
    font-weight: 800;
}

.state-cell {
    border-radius: 4px;
}

.state-cell.green {
    color: #086c43;
    background: #e7f7ef;
    border-color: #acd9c4;
}

.state-cell.red {
    color: #ad232b;
    background: #fff0f0;
    border-color: #efb8bd;
}

.state-cell.muted {
    color: #5f7487;
    background: #f1f5f7;
    border-color: #d4e0e7;
}

/* Power industry palette override */
:root {
    --bg: #f1f4f7;
    --bg-2: #f8fafc;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-2: rgba(247, 250, 252, 0.98);
    --line: #c3cfda;
    --line-hot: rgba(30, 99, 182, 0.38);
    --text: #172b3f;
    --muted: #5b6f82;
    --cyan: #1e63b6;
    --blue: #0a84ff;
    --green: #2e7d32;
    --red: #c62828;
    --amber: #f59e0b;
}

body {
    color: var(--text);
    background:
        linear-gradient(rgba(30, 99, 182, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 43, 63, 0.045) 1px, transparent 1px),
        linear-gradient(118deg, transparent 0%, rgba(245, 158, 11, 0.07) 30%, transparent 48%),
        linear-gradient(62deg, transparent 0%, rgba(30, 99, 182, 0.08) 38%, transparent 60%),
        var(--bg);
}

.app-page::before {
    background:
        linear-gradient(118deg, transparent 0%, rgba(30, 99, 182, 0.055) 28%, transparent 46%),
        linear-gradient(62deg, transparent 0%, rgba(245, 158, 11, 0.055) 34%, transparent 58%),
        repeating-linear-gradient(90deg, rgba(23, 43, 63, 0.022) 0, rgba(23, 43, 63, 0.022) 1px, transparent 1px, transparent 84px);
}

.industrial-header {
    border-bottom-color: #c3cfda;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.94)),
        var(--bg-2);
    box-shadow: 0 10px 30px rgba(23, 43, 63, 0.12);
}

.industrial-header::before {
    background:
        linear-gradient(110deg, transparent 0%, rgba(30, 99, 182, 0.09) 34%, rgba(245, 158, 11, 0.12) 50%, rgba(30, 99, 182, 0.08) 66%, transparent 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(30, 99, 182, 0.06) 19px, transparent 20px);
}

.industrial-header::after {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.18), transparent);
}

.app-mark,
.menu-code {
    color: #174f91;
    border-color: rgba(30, 99, 182, 0.38);
    background: rgba(30, 99, 182, 0.09);
    box-shadow: inset 0 0 14px rgba(30, 99, 182, 0.1);
}

.app-mark::after {
    background: var(--amber);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.system-chip,
.panel-eyebrow,
.profile-section-title span {
    color: #b66a00 !important;
}

.industrial-page .ant-btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #1e63b6, #0a84ff);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(30, 99, 182, 0.18);
}

.industrial-page .ant-btn-primary:hover {
    background: linear-gradient(90deg, #174f91, #1e63b6);
}

.industrial-sider {
    border-right-color: #c3cfda;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 250, 0.94)),
        var(--bg-2);
}

.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title,
.industrial-sider .ant-menu-title-content {
    color: #263d52 !important;
}

.industrial-sider .ant-menu-item-selected,
.industrial-sider .ant-menu-item-selected .ant-menu-title-content,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title .ant-menu-title-content {
    color: #174f91 !important;
    background: transparent !important;
}

.industrial-sider .ant-menu-item-selected::before,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title::before {
    background: linear-gradient(180deg, #1e63b6, #f59e0b);
}

.industrial-sider .ant-menu-item:hover,
.industrial-sider .ant-menu-submenu-title:hover {
    color: #174f91 !important;
    background: rgba(30, 99, 182, 0.08) !important;
}

.industrial-sider .ant-menu-item:hover .menu-code,
.industrial-sider .ant-menu-submenu-title:hover .menu-code,
.industrial-sider .ant-menu-item-selected .menu-code {
    border-color: rgba(30, 99, 182, 0.5);
    background: rgba(30, 99, 182, 0.14);
}

.workspace-tabs button.active {
    color: #174f91 !important;
    border-color: rgba(30, 99, 182, 0.46);
    background: linear-gradient(90deg, rgba(30, 99, 182, 0.13), rgba(245, 158, 11, 0.08));
    box-shadow: 0 8px 18px rgba(30, 99, 182, 0.12);
}

.filter-card,
.quick-bar,
.table-card,
.table-pagination-bar {
    border-color: #c3cfda !important;
    background: #fbfcfe !important;
}

.filter-card::before,
.table-card::before,
.profile-form-section::before {
    background: linear-gradient(90deg, #1e63b6, rgba(245, 158, 11, 0.72), transparent);
}

.quick-bar {
    background:
        linear-gradient(90deg, rgba(30, 99, 182, 0.055), transparent 52%),
        #f8fafc !important;
}

.quick-bar .ant-btn:hover,
.filter-card .ant-btn:hover,
.table-pagination-bar .ant-btn:hover {
    color: #174f91;
    border-color: #1e63b6;
    background: #eef5ff;
}

.summary-card .ant-statistic-content,
.archive-progress-next {
    color: #174f91 !important;
}

.industrial-page .ant-table {
    border-color: #c3cfda;
}

.industrial-page .ant-table-thead>tr>th {
    color: #172b3f !important;
    background: #e5ebf2 !important;
    border-right-color: #c3cfda !important;
    border-bottom-color: #b8c7d4 !important;
}

.industrial-page .ant-table-thead .ant-table-cell-fix-left,
.industrial-page .ant-table-thead .ant-table-cell-fix-right {
    background: #e5ebf2 !important;
}

.industrial-page .ant-table-tbody>tr>td {
    color: #172b3f !important;
    border-bottom-color: #dce4ec !important;
}

.industrial-page .ant-table-tbody>tr:nth-child(even)>td,
.industrial-page .ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr:nth-child(even)>.ant-table-cell-fix-right {
    background: #f7f9fb !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row:hover>td,
.industrial-page .ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr.ant-table-row:hover>.ant-table-cell-fix-right {
    background: #eef5ff !important;
}

.industrial-page .ant-table-tbody>tr.ant-table-row-selected>td,
.industrial-page .ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-left,
.industrial-page .ant-table-tbody>tr.ant-table-row-selected>.ant-table-cell-fix-right {
    background: #e7f0fb !important;
    border-bottom-color: #bfd4ea !important;
}

.table-pagination-bar .ant-pagination-item-active {
    border-color: #1e63b6;
    background: #e7f0fb;
}

.table-pagination-bar .ant-pagination-item-active a {
    color: #174f91 !important;
}

.profile-edit-modal .ant-modal-content {
    border-color: rgba(30, 99, 182, 0.32);
    background:
        linear-gradient(135deg, rgba(30, 99, 182, 0.09), transparent 34%),
        linear-gradient(315deg, rgba(245, 158, 11, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.98);
}

.profile-edit-summary>div {
    background:
        linear-gradient(90deg, rgba(30, 99, 182, 0.09), transparent 58%),
        rgba(255, 255, 255, 0.9);
}

.profile-section-title span {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.1);
}

.industrial-page .ant-select-focused .ant-select-selector,
.industrial-page .ant-input:focus,
.industrial-page .ant-input-affix-wrapper-focused {
    border-color: #1e63b6 !important;
    box-shadow: 0 0 0 3px rgba(30, 99, 182, 0.12) !important;
}

.industrial-page .ant-select-item-option-selected:not(.ant-select-item-option-disabled),
.industrial-page .ant-dropdown-menu-item-selected {
    color: #174f91 !important;
    background: rgba(30, 99, 182, 0.1) !important;
}

/* Rounded technology refinement */
.industrial-page {
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-pill: 999px;
}

.industrial-page .ant-card,
.filter-card,
.quick-bar,
.table-card,
.summary-card,
.profile-form-section,
.profile-edit-summary>div,
.archive-progress-panel,
.fallback-card,
.login-ant-card,
.login-console {
    border-radius: var(--radius-md) !important;
}

.industrial-page .ant-btn,
.industrial-page .ant-input,
.industrial-page .ant-input-affix-wrapper,
.industrial-page .ant-select-selector,
.industrial-page .ant-picker,
.industrial-page .ant-pagination-item,
.industrial-page .ant-pagination-prev .ant-pagination-item-link,
.industrial-page .ant-pagination-next .ant-pagination-item-link,
.state-cell,
.ant-tag {
    border-radius: var(--radius-sm) !important;
}

.header-actions .ant-space,
.workspace-tabs button,
.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title,
.menu-code,
.profile-section-title span,
.captcha-img {
    border-radius: var(--radius-md) !important;
}

.app-mark {
    border-radius: 10px;
}

.industrial-header {
    box-shadow: 0 10px 30px rgba(23, 43, 63, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.88);
}

.industrial-sider,
.industrial-content {
    background-clip: padding-box;
}

.filter-card,
.quick-bar,
.table-card,
.summary-card {
    box-shadow:
        0 10px 28px rgba(23, 43, 63, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.filter-card:hover,
.quick-bar:hover,
.table-card:hover,
.summary-card:hover {
    border-color: rgba(30, 99, 182, 0.34) !important;
}

.industrial-page .ant-btn {
    font-weight: 600;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.industrial-page .ant-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(23, 43, 63, 0.1);
}

.industrial-page .ant-btn-primary {
    position: relative;
    overflow: hidden;
}

.industrial-page .ant-btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 38%, transparent);
}

.login-page .ant-btn {
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease !important;
}

.login-page .ant-btn:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(30, 99, 182, 0.16);
}

.login-page .ant-btn-primary:hover {
    background: linear-gradient(90deg, #1e63b6, #0a84ff) !important;
}

.login-page .ant-btn-primary::after {
    display: none;
}

.login-page .slider-captcha-handle,
.login-page .slider-captcha-handle:hover {
    background: #f8fbfe;
}

.industrial-page .ant-input,
.industrial-page .ant-input-affix-wrapper,
.industrial-page .ant-select-selector {
    min-height: 32px;
}

.industrial-page .ant-input:focus,
.industrial-page .ant-input-affix-wrapper-focused,
.industrial-page .ant-select-focused .ant-select-selector {
    box-shadow: 0 0 0 3px rgba(30, 99, 182, 0.11), 0 8px 16px rgba(23, 43, 63, 0.06) !important;
}

.workspace-tabs button {
    height: 34px;
    padding-inline: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.workspace-tabs button.active {
    box-shadow: 0 8px 18px rgba(30, 99, 182, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.industrial-sider .ant-menu-item,
.industrial-sider .ant-menu-submenu-title {
    height: 38px;
    line-height: 38px;
}

.menu-code {
    width: 26px;
    height: 26px;
}

.table-card {
    overflow: hidden;
}

.industrial-page .ant-table {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.industrial-page .ant-table-container {
    border-start-start-radius: var(--radius-md);
    border-start-end-radius: var(--radius-md);
}

.industrial-page .ant-table-thead>tr:first-child>th:first-child {
    border-start-start-radius: var(--radius-md);
}

.industrial-page .ant-table-thead>tr:first-child>th:last-child {
    border-start-end-radius: var(--radius-md);
}

.table-pagination-bar {
    min-height: 42px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.profile-edit-modal .ant-modal-content,
.ant-modal-confirm .ant-modal-content,
.ant-message-notice-content {
    border-radius: var(--radius-md) !important;
}

.profile-edit-modal .ant-modal-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.profile-edit-modal .ant-modal-footer {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.profile-edit-summary>div,
.profile-form-section {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Soft scroll indicators */
.industrial-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 99, 182, 0.22) rgba(226, 233, 239, 0.42);
}

.industrial-page *::-webkit-scrollbar,
.ant-table-body::-webkit-scrollbar,
.ant-table-content::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.industrial-page *::-webkit-scrollbar-track,
.ant-table-body::-webkit-scrollbar-track,
.ant-table-content::-webkit-scrollbar-track {
    background: rgba(226, 233, 239, 0.42);
    border-radius: 7px 999px 999px 7px;
}

.industrial-page *::-webkit-scrollbar-thumb,
.ant-table-body::-webkit-scrollbar-thumb,
.ant-table-content::-webkit-scrollbar-thumb {
    border: 2px solid rgba(226, 233, 239, 0.56);
    border-radius: 999px;
    background: rgba(30, 99, 182, 0.22);
}

.industrial-page *::-webkit-scrollbar-thumb:hover,
.ant-table-body::-webkit-scrollbar-thumb:hover,
.ant-table-content::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 99, 182, 0.34);
}

/* Header brand alignment fix */
.industrial-header {
    height: 64px;
    min-height: 64px;
    align-items: center;
    --header-sider-width: 286px;
    --workspace-left-gap: 20px;
    --brand-lockup-left: calc(var(--header-sider-width) + var(--workspace-left-gap) - 18px);
}

.industrial-header.header-sider-collapsed {
    --header-sider-width: 72px;
    --brand-lockup-left: 282px;
}

.header-brand {
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
    line-height: 1;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    margin-left: 0;
}

.collapse-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-mark {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: none;
}

.app-mark::after {
    right: -2px;
    bottom: -2px;
    width: 7px;
    height: 7px;
    border-width: 2px;
}

.brand-copy {
    flex: 0 0 auto;
    min-width: 168px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

@media (max-width: 980px) {
    .brand-lockup {
        margin-left: 10px;
    }
}

.app-title {
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    white-space: nowrap;
}

.app-subtitle {
    margin: 0;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    height: 64px;
    align-items: center;
}

.header-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-chip {
    height: 34px;
    max-width: 238px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px 0 2px;
    border: 1px solid rgba(144, 177, 194, 0.62);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 5px 14px rgba(38, 78, 105, 0.08);
}

.header-user-chip .ant-avatar {
    flex: 0 0 auto;
    width: 30px !important;
    height: 30px !important;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e63b6, #008f95);
    box-shadow: 0 0 0 2px rgba(30, 99, 182, 0.12);
}

.avatar-picker-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.avatar-picker-btn:hover .ant-avatar {
    box-shadow: 0 0 0 2px rgba(0, 143, 149, 0.24), 0 0 14px rgba(0, 143, 149, 0.2);
}

.header-user-name {
    min-width: 0;
    overflow: hidden;
    color: #173247;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-picker-modal .ant-modal-content {
    border-radius: 10px;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.avatar-option {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(144, 177, 194, 0.68);
    border-radius: 8px;
    background: #f8fbfe;
    color: #173247;
    font-weight: 800;
    cursor: pointer;
}

.avatar-option:hover,
.avatar-option.selected {
    border-color: rgba(0, 143, 149, 0.68);
    background: #edf8fb;
    box-shadow: 0 8px 20px rgba(38, 78, 105, 0.12);
}

.avatar-option img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.avatar-option span {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.filter-toolbar .filter-row {
    flex: 1 1 520px;
    min-width: 0;
}

.inline-quick-bar {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.inline-quick-bar .ant-btn {
    height: 32px;
    padding-inline: 10px;
}

@media (max-width: 1480px) {
    .filter-toolbar {
        flex-wrap: wrap;
    }

    .inline-quick-bar {
        width: 100%;
    }
}

/* Menu active state: selected items use a left blue rail. */
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title {
    background: transparent !important;
}

.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title::before {
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 4px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, #2f80ed, #1e63b6) !important;
    box-shadow: 0 0 10px rgba(47, 128, 237, 0.28);
}

.industrial-sider .ant-menu-sub .ant-menu-item-selected {
    color: #174f91 !important;
    background: transparent !important;
}

.industrial-sider .ant-menu-sub .ant-menu-item-selected::before {
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 4px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, #2f80ed, #1e63b6) !important;
    box-shadow: 0 0 10px rgba(47, 128, 237, 0.28);
}

.industrial-sider .ant-menu-sub .ant-menu-item-selected .ant-menu-title-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #174f91 !important;
    font-weight: 650;
}

.industrial-sider .ant-menu-sub .ant-menu-item-selected .ant-menu-title-content::after {
    display: none;
}

.industrial-sider .ant-menu-item-selected {
    background: transparent !important;
}

.industrial-sider .ant-menu-item-selected .ant-menu-title-content,
.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title .ant-menu-title-content {
    background: transparent !important;
}

.industrial-sider .ant-menu-submenu-selected>.ant-menu-submenu-title:hover,
.industrial-sider .ant-menu-sub .ant-menu-item-selected:hover {
    background: transparent !important;
}

/* Browser-like draggable workspace tabs. */
.workspace-tabs {
    top: 8px;
    left: 18px;
    right: 18px;
    height: 42px;
    gap: 0;
    align-items: flex-end;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px;
    border-bottom: 1px solid #c4d0dc;
}

.workspace-tabs button {
    position: relative;
    flex: 0 0 auto;
    height: 35px;
    min-width: 116px;
    max-width: 196px;
    margin: 0 0 -1px -1px;
    padding: 0 32px 0 14px;
    gap: 8px;
    border: 1px solid #c4d0dc;
    border-bottom-color: #c4d0dc;
    border-radius: 12px 12px 0 0;
    color: #52677a;
    background: linear-gradient(180deg, #f4f8fb, #e9f0f6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: default;
    user-select: none;
}

.workspace-tabs button,
.workspace-tabs button.active {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.workspace-tabs button::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.workspace-tabs button:hover {
    color: #174f91;
    background: linear-gradient(180deg, #f8fbfd, #edf4fa) !important;
}

.workspace-tabs button.active {
    z-index: 2;
    color: #174f91 !important;
    border-color: #b8c7d6;
    border-bottom-color: #ffffff;
    background: #ffffff !important;
    box-shadow: 0 -4px 14px rgba(30, 99, 182, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.workspace-tabs button.active::before {
    background: linear-gradient(90deg, #2f80ed, #f59e0b);
}

.workspace-tabs button.dragging {
    opacity: 0.62;
    cursor: grabbing;
}

.workspace-tabs button.drag-over {
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-tabs span {
    min-width: 0;
    line-height: 1;
}

.workspace-tabs .tab-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #5f7487;
    background: rgba(30, 99, 182, 0.08);
    font-size: 12px;
}

.workspace-tabs .tab-icon .anticon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workspace-tabs .tab-icon svg {
    width: 12px;
    height: 12px;
}

.workspace-tabs .tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tabs button.active .tab-icon {
    color: #174f91;
    background: rgba(30, 99, 182, 0.12);
}

.workspace-tabs i {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    color: #7a8b9b;
    line-height: 1;
}

.workspace-tabs i:hover {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
}

.tab-context-menu {
    position: fixed;
    z-index: 4000;
    width: 146px;
    padding: 6px;
    border: 1px solid rgba(133, 159, 187, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(25, 46, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.tab-context-menu button {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    color: #20364d;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.tab-context-menu button:hover {
    color: #174f91;
    background: linear-gradient(90deg, rgba(47, 128, 237, 0.12), rgba(245, 158, 11, 0.08));
}

.tab-context-menu button:disabled {
    color: #9aa9b8;
    background: transparent;
    cursor: not-allowed;
}

.workspace-content {
    top: 49px;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.table-card .ant-table-container,
.table-card .ant-table-content {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.table-card .ant-table-body {
    flex: 1 1 auto;
}

.table-card .drag-table-shell,
.table-card .ant-table-wrapper,
.table-card .ant-spin-nested-loading,
.table-card .ant-spin-container,
.table-card .ant-table,
.table-card .ant-table-container {
    height: 100%;
    min-height: 0;
}

.table-card .ant-table {
    display: flex;
    flex-direction: column;
}

.table-card .ant-table-container {
    flex: 1 1 auto;
}

.table-card .ant-table-content,
.table-card .ant-table-body {
    height: 100%;
    min-height: 0;
}

/* Header crystal pixel pulse: fixed blocks with stepped brightness changes. */
.industrial-header::before {
    inset: 0 0 0 auto;
    width: min(680px, 56%);
    background:
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 34%, transparent 54%),
        conic-gradient(from 90deg at 2px 2px, rgba(30, 99, 182, 0.3) 0 25%, transparent 0) 0 0 / 22px 22px,
        conic-gradient(from 90deg at 2px 2px, rgba(10, 132, 255, 0.22) 0 25%, transparent 0) 11px 7px / 30px 30px,
        conic-gradient(from 90deg at 2px 2px, rgba(245, 158, 11, 0.18) 0 25%, transparent 0) 4px 14px / 42px 42px,
        linear-gradient(90deg, transparent, rgba(30, 99, 182, 0.07));
    background-position: 0 0, 0 0, 11px 7px, 4px 14px, 0 0;
    background-size: 100% 100%, 22px 22px, 30px 30px, 42px 42px, 100% 100%;
    opacity: 0.56;
    filter: brightness(1) saturate(1.04);
    transform: none;
    transform-origin: right center;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 18%, #000 100%);
    animation: header-crystal-pulse 4.8s steps(6, end) infinite;
}

.industrial-header::after {
    inset: 0 0 0 auto;
    width: min(560px, 48%);
    background:
        linear-gradient(135deg, transparent 18%, rgba(255, 255, 255, 0.28) 34%, transparent 48%),
        conic-gradient(from 90deg at 1.5px 1.5px, rgba(30, 99, 182, 0.48) 0 25%, transparent 0) 0 0 / 18px 18px,
        conic-gradient(from 90deg at 1.5px 1.5px, rgba(245, 158, 11, 0.25) 0 25%, transparent 0) 9px 8px / 34px 34px,
        linear-gradient(90deg, transparent 0%, rgba(10, 132, 255, 0.08) 46%, transparent 100%);
    background-position: 0 0, 0 0, 9px 8px, 0 0;
    background-size: 100% 100%, 18px 18px, 34px 34px, 100% 100%;
    opacity: 0.38;
    filter: drop-shadow(0 0 5px rgba(30, 99, 182, 0.16)) brightness(1.05);
    transform-origin: right center;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.62) 24%, #000 100%);
    animation: header-crystal-spark 3.6s steps(5, end) infinite;
}

@keyframes header-crystal-pulse {
    0% {
        opacity: 0.5;
        filter: brightness(0.98) saturate(1.02);
    }

    20% {
        opacity: 0.64;
        filter: brightness(1.18) saturate(1.1);
    }

    42% {
        opacity: 0.54;
        filter: brightness(1.04) saturate(1.04);
    }

    68% {
        opacity: 0.7;
        filter: brightness(1.28) saturate(1.16);
    }

    100% {
        opacity: 0.5;
        filter: brightness(0.98) saturate(1.02);
    }
}

@keyframes header-crystal-spark {

    0%,
    100% {
        opacity: 0.32;
        filter: drop-shadow(0 0 4px rgba(30, 99, 182, 0.12)) brightness(1);
    }

    24% {
        opacity: 0.58;
        filter: drop-shadow(0 0 8px rgba(30, 99, 182, 0.22)) brightness(1.26);
    }

    50% {
        opacity: 0.4;
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.12)) brightness(1.08);
    }

    76% {
        opacity: 0.64;
        filter: drop-shadow(0 0 10px rgba(30, 99, 182, 0.24)) brightness(1.34);
    }
}

/* SVG energy scene in the header. */
.industrial-header::before,
.industrial-header::after {
    display: none !important;
    animation: none !important;
}

.header-energy-scene {
    position: absolute !important;
    top: 0;
    right: -18px;
    bottom: 0;
    z-index: 0 !important;
    width: min(980px, 72vw);
    overflow: hidden;
    pointer-events: none;
    opacity: 0.82;
    transform: translateX(-26px);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 12%, #000 100%);
}

.header-energy-scene svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sider-search {
    min-width: 0;
    overflow: hidden;
}

.sider-search .ant-input-search,
.sider-search .ant-input-affix-wrapper {
    width: 100%;
    max-width: 100%;
}

.sider-search .ant-input-affix-wrapper {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.sider-search .ant-input-affix-wrapper .ant-input {
    height: 32px;
    line-height: 32px;
    padding: 0;
}

.sider-search .ant-input-prefix,
.sider-search .ant-input-suffix {
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.industrial-sider.sider-collapsed .sider-search {
    height: 0;
    min-height: 0;
    padding: 0 !important;
    border-bottom: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.smart-grid-matrix path {
    fill: none;
    stroke: rgba(30, 99, 182, 0.13);
    stroke-width: 0.8;
    shape-rendering: crispEdges;
}

.smart-grid-panels rect {
    fill: rgba(255, 255, 255, 0.34);
    stroke: rgba(30, 99, 182, 0.18);
    stroke-width: 0.8;
    animation: grid-panel-pulse 5.4s steps(5, end) infinite;
}

.smart-grid-panels rect:nth-child(2),
.smart-grid-panels rect:nth-child(5) {
    animation-delay: 1.1s;
}

.grid-bus {
    fill: none;
    stroke: url(#gridLineGradient);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.72;
}

.grid-bus-main {
    stroke-width: 1.65;
}

.grid-bus-secondary {
    stroke-width: 1.05;
    opacity: 0.5;
}

.grid-flow {
    fill: none;
    stroke: url(#gridPulseGradient);
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34 360;
    filter: drop-shadow(0 0 5px rgba(10, 132, 255, 0.28));
    animation: smart-grid-flow 4.2s linear infinite;
}

.flow-b {
    animation-duration: 5s;
    animation-delay: -1.3s;
}

.flow-c {
    animation-duration: 5.8s;
    animation-delay: -2.2s;
}

.grid-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: grid-node-step 3.6s steps(4, end) infinite;
}

.grid-node.node-2,
.grid-node.node-5 {
    animation-delay: 0.7s;
}

.grid-node.node-3,
.grid-node.node-7 {
    animation-delay: 1.4s;
}

.node-glow {
    fill: url(#nodeGlowGradient);
    opacity: 0.45;
}

.node-ring {
    fill: rgba(255, 255, 255, 0.58);
    stroke: rgba(30, 99, 182, 0.72);
    stroke-width: 1.05;
}

.node-core {
    fill: #ffffff;
    stroke: rgba(245, 158, 11, 0.64);
    stroke-width: 0.9;
}

.node-spark {
    fill: none;
    stroke: rgba(245, 158, 11, 0.78);
    stroke-width: 0.9;
    stroke-linecap: round;
    animation: grid-spark 1.8s steps(2, end) infinite;
}

.grid-tile rect {
    fill: rgba(255, 255, 255, 0.48);
    stroke: rgba(30, 99, 182, 0.28);
    stroke-width: 0.9;
}

.grid-tile path {
    fill: none;
    stroke: rgba(30, 99, 182, 0.52);
    stroke-width: 1;
    stroke-linecap: round;
}

.grid-tile circle {
    fill: rgba(245, 158, 11, 0.72);
}

.grid-tile {
    animation: grid-tile-pulse 4.8s steps(4, end) infinite;
}

.tile-2 {
    animation-delay: 1.2s;
}

.tile-3 {
    animation-delay: 2.1s;
}

.grid-bar {
    fill: rgba(30, 99, 182, 0.34);
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: grid-bar-level 2.6s steps(3, end) infinite;
}

.bar-2,
.bar-5 {
    animation-delay: 0.5s;
}

.bar-3 {
    animation-delay: 1s;
}

@keyframes smart-grid-flow {
    to {
        stroke-dashoffset: -394;
    }
}

@keyframes grid-node-step {

    0%,
    100% {
        opacity: 0.66;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes grid-spark {

    0%,
    100% {
        opacity: 0.38;
    }

    50% {
        opacity: 1;
    }
}

@keyframes grid-panel-pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    45% {
        opacity: 0.56;
    }
}

@keyframes grid-tile-pulse {

    0%,
    100% {
        opacity: 0.42;
    }

    50% {
        opacity: 0.86;
    }
}

@keyframes grid-bar-level {

    0%,
    100% {
        opacity: 0.34;
        transform: scaleY(0.68);
    }

    50% {
        opacity: 0.82;
        transform: scaleY(1);
    }
}

/* Search spacing and tab edge refinements. */
.header-actions {
    gap: 12px;
}

.sider-search .ant-input-suffix {
    gap: 10px;
    margin-left: 18px;
}

.sider-search .ant-input-search-icon {
    margin-left: 8px;
}

.sider-search .ant-input-search .ant-input-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.sider-search .ant-input-search .ant-input-affix-wrapper {
    flex: 1 1 0;
    min-width: 0;
}

.sider-search .ant-input-search .ant-input-group-addon {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    padding: 0;
    background: transparent;
}

.sider-search .ant-input-search .ant-input-search-button {
    width: 36px;
    min-width: 36px;
    margin-left: 0;
    padding: 0;
}

.filter-toolbar .filter-row>.ant-col:last-child {
    padding-left: 12px !important;
}

.history-date-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

.history-date-filter .ant-picker {
    width: 100%;
}

.curve-workbench {
    gap: 8px;
}

.curve-filter-card {
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0;
}

.curve-filter-card .ant-card-body {
    padding: 6px 10px;
}

.curve-filter-grid {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(130px, 0.95fr) minmax(170px, 1.25fr) minmax(132px, 150px) minmax(132px, 150px) 112px 86px;
    gap: 8px;
    align-items: center;
}

.curve-filter-grid .ant-select,
.curve-filter-grid .ant-picker,
.curve-filter-grid .ant-btn {
    width: 100%;
}

.curve-filter-grid .ant-select-selector,
.curve-filter-grid .ant-picker,
.curve-filter-grid .ant-btn {
    min-height: 32px !important;
    height: 32px;
}

@media (max-width: 1280px) {
    .curve-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.curve-chart-card {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.curve-chart-card .ant-card-body {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
}

.curve-chart-head {
    flex: 0 0 auto;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #173247;
}

.curve-chart-head strong {
    margin-right: 12px;
    color: #173247;
    font-size: 15px;
}

.curve-chart-head span {
    color: #5f7487;
    font-size: 12px;
}

.curve-chart {
    flex: 1 1 auto;
    min-height: 360px;
}

.curve-empty {
    position: absolute;
    inset: 54px 12px 12px;
    display: grid;
    place-items: center;
    color: #6b8394;
    font-size: 13px;
    pointer-events: none;
}

.error-log-workbench {
    gap: 8px;
}

.error-log-card {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.error-log-card .ant-card-body {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
}

.error-log-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.error-log-card .ant-tabs {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.error-log-card .ant-tabs-content-holder,
.error-log-card .ant-tabs-content,
.error-log-card .ant-tabs-tabpane {
    min-height: 0;
    flex: 1 1 auto;
}

.error-log-detail {
    max-height: 220px;
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    color: #24384a;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(239, 244, 249, 0.9);
    border: 1px solid #cfdae5;
    border-radius: 6px;
}

.workspace-tabs button,
.workspace-tabs button.active {
    border-radius: 0 !important;
}

.workspace-tabs button:first-child {
    border-top-left-radius: 12px !important;
}

.workspace-tabs button:last-child {
    border-top-right-radius: 12px !important;
}

.workspace-tabs button::before,
.workspace-tabs button.active::before {
    display: none !important;
    background: transparent !important;
}

/* Keep fixed table header/body column widths aligned. */
.table-card .ant-table table {
    table-layout: fixed !important;
}

.table-card .ant-table-selection-column {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
}

.table-card .customer-name-cell {
    width: 100%;
    max-width: 100%;
}

.table-card .customer-name-text {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.table-card .region-name-cell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.table-card .region-name-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-card .region-drag-handle {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    cursor: grab;
    outline: none;
    touch-action: none;
}

.table-card .region-drag-handle span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.table-card .region-drag-handle:hover,
.table-card .region-drag-handle:focus-visible {
    color: #0f766e;
}

.table-card .region-drag-handle:active {
    cursor: grabbing;
}

.table-card .region-row-dragging>td,
.table-card .region-row-dragging>.ant-table-cell-fix-left,
.table-card .region-row-dragging>.ant-table-cell-fix-right {
    background: #f0fdfa !important;
    box-shadow: inset 0 2px 0 #0f766e, inset 0 -2px 0 rgba(15, 118, 110, 0.18);
    opacity: 0.72;
}

.region-drag-preview-table {
    z-index: 9999;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.region-drag-preview-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 13px;
    line-height: 20px;
    background: #ffffff;
}

/* Mobile operation layout. */
@media (max-width: 760px) {

    html,
    body,
    #app-root {
        height: 100%;
        overflow: hidden;
    }

    .industrial-layout {
        height: 100dvh;
    }

    .industrial-header {
        height: 56px;
        min-height: 56px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 8px;
    }

    .industrial-header::before,
    .industrial-header::after {
        display: none !important;
    }

    .header-brand {
        gap: 8px;
    }

    .brand-lockup {
        min-width: 0;
        gap: 8px;
    }

    .app-mark {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
    }

    .brand-copy {
        min-width: 0;
        height: auto;
    }

    .app-title {
        max-width: 150px;
        overflow: hidden;
        font-size: 15px;
        line-height: 17px;
        text-overflow: ellipsis;
    }

    .app-subtitle {
        display: none;
    }

    .header-actions {
        height: 56px;
        gap: 6px;
    }

    .header-actions .ant-space {
        display: none;
    }

    .header-user-chip {
        width: 34px;
        max-width: 34px;
        padding: 0 2px;
    }

    .header-user-name {
        display: none;
    }

    .header-icon-btn,
    .collapse-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .header-actions>.ant-btn-dangerous {
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .industrial-layout>.ant-layout {
        height: calc(100dvh - 56px);
        min-height: 0;
    }

    .industrial-sider {
        position: fixed !important;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: min(86vw, 286px) !important;
        min-width: min(86vw, 286px) !important;
        max-width: min(86vw, 286px) !important;
        height: calc(100dvh - 56px) !important;
        flex: 0 0 min(86vw, 286px) !important;
        transform: translateX(0);
        transition: transform 0.18s ease;
        box-shadow: 18px 0 42px rgba(23, 43, 63, 0.22);
    }

    .industrial-sider.sider-collapsed {
        transform: translateX(-105%);
    }

    .mobile-sider-backdrop {
        position: fixed;
        inset: 56px 0 0 0;
        z-index: 999;
        display: block;
        background: rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(1px);
    }

    .industrial-content {
        width: 100%;
        height: calc(100dvh - 56px);
        padding: 6px;
    }

    .workspace-tabs {
        top: 6px;
        left: 6px;
        right: 6px;
        height: 38px;
        padding: 0 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .workspace-tabs::-webkit-scrollbar {
        display: none;
    }

    .workspace-tabs button {
        height: 34px;
        min-width: 104px;
        max-width: 148px;
        padding: 0 26px 0 10px;
        gap: 6px;
        font-size: 12px;
    }

    .workspace-content {
        top: 44px;
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .ajax-loading-pill {
        top: 9px;
        right: 10px;
        height: 26px;
        padding: 0 9px;
    }

    .realtime-workbench {
        gap: 6px;
    }

    .filter-card {
        margin-bottom: 6px;
    }

    .filter-card .ant-card-body,
    .compact-workbench .filter-card .ant-card-body {
        padding: 8px !important;
    }

    .filter-toolbar {
        display: block;
    }

    .filter-toolbar .filter-row {
        width: 100%;
        min-width: 0;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .filter-toolbar .filter-row>.ant-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .filter-toolbar .filter-row>.ant-col:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 4px !important;
    }

    .filter-toolbar .ant-select-selector,
    .filter-toolbar .ant-btn {
        min-height: 36px;
    }

    .inline-quick-bar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
    }

    .inline-quick-bar .ant-btn {
        width: 100%;
        height: 36px;
        min-width: 0;
        padding-inline: 4px;
        justify-content: center;
        font-size: 12px;
    }

    .summary-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 6px !important;
    }

    .summary-row>.ant-col {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        flex: none !important;
    }

    .summary-card .ant-card-body,
    .compact-workbench .summary-card .ant-card-body {
        padding: 6px 8px;
    }

    .summary-card .ant-statistic-title {
        font-size: 10px;
    }

    .summary-card .ant-statistic-content {
        font-size: 14px;
    }

    .table-card .ant-card-body,
    .compact-workbench .table-card .ant-card-body {
        padding: 6px !important;
    }

    .industrial-page .ant-table-thead>tr>th,
    .industrial-page .ant-table-tbody>tr>td {
        padding: 6px 8px !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .table-card .ant-table-selection-column {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
    }

    .state-cell {
        min-width: 50px;
        padding: 1px 6px;
    }

    .customer-name-cell {
        gap: 5px;
    }

    .table-pagination-bar {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px 4px 0;
    }

    .pagination-actions {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .table-pagination-bar .ant-pagination {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .table-pagination-bar .ant-pagination-options {
        margin-inline-start: 6px;
    }

    .archive-progress-panel {
        min-width: 0;
        max-width: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 11px;
        white-space: normal;
    }

    .history-date-filter {
        grid-template-columns: 1fr;
    }

    .curve-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .curve-filter-grid .ant-btn {
        grid-column: 1 / -1;
    }

    .curve-chart {
        min-height: 320px;
    }

    .error-log-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .error-log-toolbar .ant-space {
        width: 100%;
        flex-wrap: wrap;
    }

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

@media (max-width: 380px) {
    .app-title {
        max-width: 118px;
    }

    .filter-toolbar .filter-row>.ant-col {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .inline-quick-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .curve-filter-grid {
        grid-template-columns: 1fr;
    }
}

.admin-user-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 12px;
    min-height: calc(100vh - 168px);
}

.admin-tree-card {
    align-self: start;
    height: 100%;
    min-height: calc(100vh - 168px);
}

.admin-tree-card .ant-card-body {
    height: calc(100% - 57px);
    overflow: auto;
}

.admin-user-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - 168px);
}

.admin-user-main .table-card {
    flex: 1;
    min-height: 0;
}

.admin-user-main .table-card>.ant-card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-user-main .drag-table-shell {
    flex: 1;
    min-height: 0;
}

.admin-user-main .ant-table-wrapper,
.admin-user-main .ant-spin-nested-loading,
.admin-user-main .ant-spin-container {
    height: 100%;
}

.digital-price {
    display: inline-flex;
    align-items: center;
    min-width: 72px;
    color: #0f172a;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.digital-price.danger {
    color: #dc2626;
}

.digital-price.night {
    color: #2563eb;
}

.digital-price.muted {
    justify-content: center;
    color: #94a3b8;
}

.admin-user-modal input.ant-input,
.admin-user-modal .ant-input-affix-wrapper,
.admin-user-modal .ant-select-selector {
    height: 32px;
    min-height: 32px;
    align-items: center;
}

.admin-user-modal .admin-user-password-input.ant-input-affix-wrapper {
    display: flex;
    height: 32px !important;
    min-height: 32px !important;
    padding-top: 0;
    padding-bottom: 0;
    background: #ffffff !important;
    overflow: hidden;
}

.admin-user-modal .admin-user-password-input .ant-input {
    height: 30px !important;
    min-height: 30px !important;
    line-height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

.admin-user-modal .admin-user-password-input:has(input:-webkit-autofill) {
    background: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.admin-user-modal .ant-input-textarea {
    display: block;
    line-height: normal;
}

.admin-user-modal textarea.ant-input,
.admin-user-modal .ant-input-textarea textarea.ant-input {
    height: 76px !important;
    min-height: 76px !important;
    line-height: 1.55 !important;
    resize: vertical;
}

.admin-user-modal .ant-input-textarea-show-count::after {
    line-height: 18px;
    margin-top: 4px;
}

.ant-modal .ant-modal-content {
    overflow: hidden;
    padding: 0;
}

.ant-modal .ant-modal-header {
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #c3cfda;
    background: #e7f0fb;
}

.ant-modal .ant-modal-title {
    color: #172b3f;
    font-weight: 700;
}

.ant-modal .ant-modal-body {
    padding: 20px 24px;
}

.ant-modal .ant-modal-footer {
    margin: 0;
    padding: 12px 24px 16px;
    border-top: 1px solid #d8e1ea;
    background: #f8fafc;
}

.logout-confirm .ant-modal-content {
    padding: 28px 32px 24px !important;
}

.logout-confirm .ant-modal-confirm-body {
    gap: 14px;
}

.logout-confirm .ant-modal-confirm-title {
    color: #172b3f;
    font-size: 17px;
    line-height: 24px;
}

.logout-confirm .ant-modal-confirm-content {
    margin-top: 10px !important;
    color: #475569;
    line-height: 22px;
}

.logout-confirm .ant-modal-confirm-btns {
    margin-top: 24px !important;
}

.region-delete-confirm .ant-modal-content {
    padding: 28px 32px 24px !important;
}

.region-delete-confirm .ant-modal-confirm-body {
    gap: 14px;
}

.region-delete-confirm .ant-modal-confirm-title {
    color: #172b3f;
    font-size: 17px;
    line-height: 24px;
}

.region-delete-confirm .ant-modal-confirm-content {
    margin-top: 10px !important;
    color: #475569;
    line-height: 22px;
}

.region-delete-confirm-content p {
    margin: 0 0 8px;
}

.region-delete-confirm-content p:last-child {
    margin-bottom: 0;
}

.delete-logic-section {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.delete-logic-title {
    margin-bottom: 6px;
    color: #9a3412;
    font-weight: 700;
}

.delete-logic-section ul {
    margin: 0;
    padding-left: 18px;
}

.delete-logic-section li {
    margin: 3px 0;
    color: #7c2d12;
    line-height: 20px;
}

.region-reference-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.region-reference-item {
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #f8fafc;
}

.region-reference-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #172b3f;
    font-weight: 700;
}

.region-reference-head strong {
    flex: 0 0 auto;
    color: #b42318;
    font-weight: 700;
}

.region-reference-samples {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 18px;
    word-break: break-all;
}

.region-reference-empty {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
}

.region-delete-confirm .ant-modal-confirm-btns {
    margin-top: 24px !important;
}

.company-delete-confirm .ant-modal-content {
    padding: 28px 32px 24px !important;
}

.company-delete-confirm .ant-modal-confirm-body {
    gap: 14px;
}

.company-delete-confirm .ant-modal-confirm-title {
    color: #172b3f;
    font-size: 17px;
    line-height: 24px;
}

.company-delete-confirm .ant-modal-confirm-content {
    margin-top: 10px !important;
    color: #475569;
    line-height: 22px;
}

.company-delete-confirm-content p {
    margin: 0 0 8px;
}

.company-reference-section,
.company-reference-empty,
.company-reference-impact {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #f8fafc;
}

.company-reference-title {
    margin-bottom: 8px;
    color: #172b3f;
    font-weight: 700;
}

.company-reference-list {
    display: grid;
    gap: 6px;
    max-height: 160px;
    overflow: auto;
}

.company-reference-item {
    padding: 6px 8px;
    border-radius: 6px;
    color: #172b3f;
    background: #ffffff;
}

.company-reference-empty {
    color: #64748b;
}

.company-reference-impact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.company-reference-impact > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.company-reference-impact strong {
    color: #b42318;
}

.company-reference-samples {
    color: #64748b;
    font-size: 12px;
    line-height: 18px;
    word-break: break-all;
}

.company-delete-confirm .ant-modal-confirm-btns {
    margin-top: 24px !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #172b3f !important;
    caret-color: #172b3f;
    transition: background-color 9999s ease-out;
}

.login-ant-card input:-webkit-autofill,
.login-ant-card input:-webkit-autofill:hover,
.login-ant-card input:-webkit-autofill:focus,
.login-ant-card input:-webkit-autofill:active,
.ant-modal input:-webkit-autofill,
.ant-modal input:-webkit-autofill:hover,
.ant-modal input:-webkit-autofill:focus,
.ant-modal input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #172b3f !important;
}

.admin-user-modal .admin-user-password-input input:-webkit-autofill,
.admin-user-modal .admin-user-password-input input:-webkit-autofill:hover,
.admin-user-modal .admin-user-password-input input:-webkit-autofill:focus,
.admin-user-modal .admin-user-password-input input:-webkit-autofill:active {
    height: 30px !important;
    line-height: 30px !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #172b3f !important;
    caret-color: #172b3f;
}

.industrial-page .ant-btn,
.industrial-page button,
.login-page .ant-btn,
.login-page button {
    backface-visibility: hidden;
    transform: none !important;
    transition:
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease,
        box-shadow 0.12s ease !important;
}

.industrial-page .ant-btn:hover,
.industrial-page button:hover,
.login-page .ant-btn:hover,
.login-page button:hover,
.industrial-page .ant-btn:focus,
.industrial-page button:focus,
.login-page .ant-btn:focus,
.login-page button:focus {
    transform: none !important;
}

.industrial-page .ant-btn::before,
.industrial-page .ant-btn::after,
.login-page .ant-btn::before,
.login-page .ant-btn::after {
    display: none !important;
    animation: none !important;
    transition: none !important;
}

.ant-wave,
.ant-click-animating-node {
    display: none !important;
    animation: none !important;
}

.industrial-page .filter-card .ant-btn,
.industrial-page .filter-card .ant-btn:hover,
.industrial-page .filter-card .ant-btn:focus,
.industrial-page .filter-card .ant-btn:active {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    transition: background-color 0.08s linear, border-color 0.08s linear, color 0.08s linear !important;
}

.industrial-page .filter-card .ant-btn-primary,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block {
    color: #ffffff !important;
    border-color: #1e63b6 !important;
    background: linear-gradient(90deg, #1e63b6, #0a84ff) !important;
    box-shadow: 0 6px 16px rgba(30, 99, 182, 0.16) !important;
    transform: none !important;
    filter: none !important;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease !important;
}

.industrial-page .filter-card .ant-btn-primary:hover,
.industrial-page .filter-card .ant-btn-primary:focus,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block:hover,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block:focus {
    color: #ffffff !important;
    border-color: #174f91 !important;
    background: linear-gradient(90deg, #174f91, #1e63b6) !important;
    box-shadow: 0 8px 18px rgba(30, 99, 182, 0.22) !important;
    transform: none !important;
    filter: none !important;
}

.industrial-page .filter-card .ant-btn-primary:active,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block:active {
    color: #ffffff !important;
    border-color: #123f74 !important;
    background: linear-gradient(90deg, #123f74, #174f91) !important;
    box-shadow: 0 4px 12px rgba(30, 99, 182, 0.18) !important;
    transform: none !important;
    filter: none !important;
}

.industrial-page .filter-card .ant-btn-primary::before,
.industrial-page .filter-card .ant-btn-primary::after,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block::before,
.industrial-page .filter-card .ant-btn-primary.ant-btn-block::after {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
    transition: none !important;
    background: transparent !important;
}

.industrial-page .filter-card .ant-btn-primary>span {
    color: inherit !important;
}

body.login-page {
    min-height: 100vh;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px),
        linear-gradient(135deg, #07111c 0%, #10283d 48%, #08141f 100%) !important;
}

body.login-page .industrial-login {
    width: min(1180px, calc(100vw - 56px));
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, 420px);
    gap: 30px;
    padding: 34px 0;
}

body.login-page .login-console {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    justify-content: flex-end;
    padding: 44px;
    border: 1px solid rgba(117, 197, 255, 0.26) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, rgba(9, 28, 45, 0.72), rgba(7, 17, 28, 0.9)),
        #081722 !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.login-page .login-console::before {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        linear-gradient(115deg, transparent 0 28%, rgba(66, 185, 255, 0.16) 34%, transparent 42%),
        linear-gradient(245deg, transparent 0 36%, rgba(20, 184, 166, 0.13) 45%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(138, 204, 255, 0.08) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(45, 212, 191, 0.07) 0 1px, transparent 1px 58px);
    transform: translate3d(-4%, -3%, 0);
    animation: login-video-pan 14s linear infinite;
}

body.login-page .login-console::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 49%, transparent 50%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22));
    background-size: 100% 120px, 100% 100%;
    mix-blend-mode: screen;
    opacity: 0.62;
    animation: login-video-scan 5.4s linear infinite;
}

body.login-page .login-console>* {
    position: relative;
    z-index: 1;
}

body.login-page .system-chip {
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(117, 197, 255, 0.32);
    border-radius: 999px;
    color: #8fd8ff;
    background: rgba(8, 23, 34, 0.68);
}

body.login-page .login-console h1.ant-typography,
body.login-page .login-console h1 {
    max-width: 600px;
    margin: 18px 0 12px;
    color: #f5fbff !important;
    font-size: 48px;
    line-height: 1.12;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

body.login-page .login-copy {
    max-width: 600px;
    color: #b8d6e8 !important;
    font-size: 16px;
    line-height: 1.85;
}

body.login-page .console-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

body.login-page .console-grid span {
    border-color: rgba(117, 197, 255, 0.24) !important;
    color: #b8d6e8;
    background: rgba(8, 23, 34, 0.58) !important;
    backdrop-filter: blur(8px);
}

body.login-page .console-grid b {
    color: #8fd8ff;
    text-shadow: 0 0 16px rgba(66, 185, 255, 0.5);
}

body.login-page .signal-panel i {
    background: linear-gradient(90deg, #20d6c7, #42b9ff);
    box-shadow: 0 0 16px rgba(66, 185, 255, 0.42);
    animation: login-signal-flow 2.6s ease-in-out infinite;
}

body.login-page .signal-panel i:nth-child(2) {
    animation-delay: 0.2s;
}

body.login-page .signal-panel i:nth-child(3) {
    animation-delay: 0.42s;
}

body.login-page .signal-panel i:nth-child(4) {
    animation-delay: 0.64s;
}

body.login-page .login-ant-card {
    align-self: center;
    border: 1px solid rgba(179, 204, 222, 0.76) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

body.login-page .login-ant-card .ant-card-body {
    padding: 34px;
}

body.login-page .login-card-head {
    margin-bottom: 24px;
}

body.login-page .panel-eyebrow {
    color: #1e63b6 !important;
}

body.login-page .login-card-head h3.ant-typography {
    color: #102b3f !important;
}

body.login-page .login-native-form {
    gap: 15px;
}

body.login-page .login-native-form label {
    color: #173247 !important;
}

body.login-page .ant-input,
body.login-page .ant-input-affix-wrapper {
    min-height: 42px;
    border-color: #c8d6e1 !important;
    background: #ffffff !important;
}

body.login-page .slider-captcha {
    height: 44px;
    border-color: #c8d6e1;
    background: linear-gradient(180deg, #f8fbfe, #edf4f8);
}

body.login-page .slider-captcha-handle,
body.login-page .slider-captcha-handle:hover,
body.login-page .slider-captcha-handle:focus,
body.login-page .slider-captcha-handle:active {
    transform: translateX(var(--slider-offset, 0px)) !important;
}

body.login-page .login-ant-card .ant-btn-primary {
    height: 44px;
    border-color: #1e63b6 !important;
    background: linear-gradient(90deg, #1e63b6, #0a84ff) !important;
    box-shadow: 0 8px 20px rgba(30, 99, 182, 0.2) !important;
}

body.login-page .login-ant-card .ant-btn-primary:hover,
body.login-page .login-ant-card .ant-btn-primary:focus {
    border-color: #174f91 !important;
    background: linear-gradient(90deg, #174f91, #1e63b6) !important;
}

@keyframes login-video-pan {
    0% {
        transform: translate3d(-4%, -3%, 0) scale(1);
    }

    50% {
        transform: translate3d(3%, 2%, 0) scale(1.04);
    }

    100% {
        transform: translate3d(-4%, -3%, 0) scale(1);
    }
}

@keyframes login-video-scan {
    0% {
        background-position: 0 -120px, 0 0;
    }

    100% {
        background-position: 0 120px, 0 0;
    }
}

@keyframes login-signal-flow {

    0%,
    100% {
        opacity: 0.62;
        transform: scaleX(0.96);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 980px) {
    body.login-page .industrial-login {
        width: min(720px, calc(100vw - 32px));
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.login-page .login-console {
        min-height: 300px;
        padding: 28px;
    }

    body.login-page .login-console h1.ant-typography,
    body.login-page .login-console h1 {
        font-size: 34px;
    }
}

@media (max-width: 760px) {
    body.login-page .industrial-login {
        width: min(100% - 24px, 430px);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 16px 0 max(28px, calc(env(safe-area-inset-bottom) + 18px));
    }

    body.login-page .login-console {
        display: flex;
        width: 100%;
        min-height: 176px;
        padding: 20px;
    }

    body.login-page .login-console h1.ant-typography,
    body.login-page .login-console h1 {
        margin: 10px 0 0;
        font-size: 24px;
    }

    body.login-page .login-copy,
    body.login-page .console-grid,
    body.login-page .signal-panel {
        display: none;
    }

    body.login-page .login-ant-card {
        width: 100%;
    }

    body.login-page .login-ant-card .ant-card-body {
        padding: 20px;
    }
}

@media (max-width: 860px) {
    .admin-user-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-tree-card,
    .admin-user-main {
        min-height: auto;
    }
}

body.login-page {
    min-height: 100vh;
    background: #ffffff !important;
    color: #0a0a0a;
}

body.login-page .industrial-login.shadcn-login {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.login-page .login-console {
    display: none;
}

body.login-page .login-auth-panel {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 32px;
    background: #ffffff;
}

body.login-page .login-form-shell {
    width: 100%;
    min-width: 0;
    max-width: 448px;
    margin: 0 auto;
    padding: 96px 0 128px;
}

body.login-page .login-card-head {
    display: flex !important;
    width: min(100%, 448px);
    max-width: 448px;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    justify-items: center !important;
    gap: 16px;
    margin: 0 auto 40px !important;
    padding: 0;
    text-align: center !important;
}

body.login-page .login-card-head>* {
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    justify-self: center !important;
    text-align: center !important;
}

body.login-page .login-title {
    display: block;
    width: 100%;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    overflow-wrap: anywhere;
}

body.login-page .login-subtitle {
    display: block;
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    color: #737373 !important;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

body.login-page .login-action-stack {
    display: grid;
    gap: 16px;
}

body.login-page .login-alert {
    margin: 0;
    border-radius: 8px;
}

body.login-page .login-native-form {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

body.login-page .login-native-form label {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    color: #0a0a0a !important;
    font-size: 14px;
    line-height: 1.375;
}

body.login-page .login-native-form label>span {
    width: fit-content;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.375;
}

body.login-page .login-native-form .ant-input,
body.login-page .login-native-form .ant-input-affix-wrapper,
body.login-page .login-native-form input:not([type="checkbox"]) {
    width: 100% !important;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #0a0a0a !important;
    font-size: 14px;
    line-height: 20px;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.login-page .login-native-form .ant-input {
    padding: 4px 10px;
}

body.login-page .login-native-form input:not([type="checkbox"]) {
    padding: 4px 10px;
    outline: none;
}

body.login-page .login-native-form .ant-input-affix-wrapper {
    padding: 0 10px;
}

body.login-page .login-native-form .ant-input-affix-wrapper .ant-input {
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

body.login-page .login-native-form .ant-input::placeholder,
body.login-page .login-native-form .ant-input-affix-wrapper .ant-input::placeholder,
body.login-page .login-native-form input::placeholder {
    color: #737373;
}

body.login-page .login-native-form .ant-input:hover,
body.login-page .login-native-form .ant-input-affix-wrapper:hover,
body.login-page .login-native-form input:not([type="checkbox"]):hover {
    border-color: #d4d4d4 !important;
}

body.login-page .login-native-form .ant-input:focus,
body.login-page .login-native-form .ant-input-focused,
body.login-page .login-native-form .ant-input-affix-wrapper-focused,
body.login-page .login-native-form input:not([type="checkbox"]):focus {
    border-color: #a1a1a1 !important;
    box-shadow: 0 0 0 3px rgba(161, 161, 161, 0.28) !important;
}

body.login-page .login-remember-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    margin: 0;
}

body.login-page .login-remember-row input {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    appearance: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

body.login-page .login-remember-row input:checked {
    border-color: #171717;
    background: #171717;
}

body.login-page .login-remember-row input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fafafa;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.login-page .login-remember-row input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(161, 161, 161, 0.5);
}

body.login-page .login-remember-row span {
    color: #0a0a0a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.login-page .slider-captcha {
    width: 100%;
    max-width: 100%;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: transparent;
}

body.login-page .slider-captcha-fill {
    background: #f5f5f5;
}

body.login-page .slider-captcha-text {
    inset: 0 42px;
    color: #737373;
    font-size: 12px;
    font-weight: 500;
}

body.login-page .slider-captcha-handle,
body.login-page .slider-captcha-handle:hover,
body.login-page .slider-captcha-handle:focus,
body.login-page .slider-captcha-handle:active {
    top: 3px;
    left: 3px;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #171717;
    background: #ffffff;
    box-shadow: none;
    transform: translateX(var(--slider-offset, 0px)) !important;
}

body.login-page .slider-captcha.done {
    border-color: #171717;
    background: #ffffff;
}

body.login-page .slider-captcha.done .slider-captcha-fill {
    background: #f5f5f5;
}

body.login-page .slider-captcha.done .slider-captcha-handle {
    border-color: #171717;
    color: #fafafa;
    background: #171717;
}

body.login-page .login-auth-panel .ant-btn {
    height: 42px;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none !important;
}

body.login-page .login-auth-panel .ant-btn-primary,
body.login-page .login-auth-panel .ant-btn-primary:hover,
body.login-page .login-auth-panel .ant-btn-primary:focus {
    border-color: #171717 !important;
    color: #fafafa !important;
    background: #171717 !important;
}

body.login-page .login-auth-panel .ant-btn-primary:hover,
body.login-page .login-auth-panel .ant-btn-primary:focus {
    opacity: 0.82;
}

body.login-page .login-auth-panel .ant-btn-primary:disabled,
body.login-page .login-auth-panel .ant-btn-primary.ant-btn-disabled {
    border-color: #171717 !important;
    color: rgba(250, 250, 250, 0.72) !important;
    background: #171717 !important;
    opacity: 0.5;
}






body.login-page .login-ant-card,
body.login-page .login-ant-card .ant-card-body {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dtu-simulator-page {
    min-height: 100%;
    padding: 14px;
    color: #173247;
    background: #f6fafc;
}

.dtu-simulator-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dtu-simulator-title {
    color: #172b3f;
    font-size: 20px;
    font-weight: 800;
    line-height: 28px;
}

.dtu-simulator-subtitle {
    margin-top: 3px;
    color: #60798b;
    font-size: 13px;
}

.dtu-runtime-alert {
    margin-bottom: 14px;
}

.dtu-simulator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.dtu-simulator-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    text-align: left;
    background: #ffffff;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.dtu-simulator-card:hover,
.dtu-simulator-card:focus-visible {
    border-color: #8bbac3;
    background: #f3f8fb;
    box-shadow: 0 0 0 3px rgba(0, 143, 149, 0.12);
    outline: none;
}

.dtu-simulator-card.online {
    border-color: #008f95;
    background: #eef8f9;
}

.dtu-card-head,
.dtu-card-actions,
.dtu-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dtu-card-name {
    color: #172b3f;
    font-size: 16px;
    font-weight: 800;
}

.dtu-card-meta,
.dtu-countdown span,
.dtu-frame-block span,
.dtu-response-list span {
    color: #60798b;
    font-size: 12px;
}

.dtu-countdown {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.dtu-countdown strong {
    color: #008f95;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 24px;
    line-height: 28px;
}

.dtu-frame-list,
.dtu-response-list {
    display: grid;
    gap: 8px;
}

.dtu-frame-block,
.dtu-response-list>div {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.dtu-frame-block code,
.dtu-response-list strong {
    min-width: 0;
    color: #173247;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-wrap;
    word-break: break-all;
}

.dtu-frame-clickable {
    cursor: pointer;
}

.dtu-frame-clickable:hover {
    color: #007f86;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dtu-response-list .dtu-error {
    border-color: #fecaca;
    background: #fff1f2;
}

.dtu-response-list .dtu-error strong {
    color: #b4232b;
}

.dtu-empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
}

.dtu-field-rule-panel {
    display: grid;
    gap: 10px;
}

.dtu-rule-hint {
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    color: #536b7d;
    background: #f6fafc;
    font-size: 13px;
    line-height: 20px;
}

.dtu-field-rule-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 86px minmax(220px, 1.1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #ffffff;
}

.dtu-field-rule-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dtu-field-rule-main strong {
    color: #172b3f;
    font-size: 13px;
}

.dtu-field-rule-main span {
    color: #60798b;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.dtu-field-rule-input {
    width: 100%;
}

@media (max-width: 640px) {
    .dtu-field-rule-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.phpmyadmin-page {
    height: calc(100vh - 132px);
    min-height: 520px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
}

.phpmyadmin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #ffffff;
}

.phpmyadmin-title {
    color: #172b3f;
    font-size: 16px;
    font-weight: 800;
}

.phpmyadmin-subtitle {
    margin-top: 2px;
    color: #60798b;
    font-size: 12px;
}

.phpmyadmin-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #ffffff;
}

@media (min-width: 1024px) {
    body.login-page .login-console {
        width: 66.666667%;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px;
        border: 0 !important;
        border-radius: 0 !important;
        background: #171717 !important;
        box-shadow: none !important;
        text-align: center;
    }

    body.login-page .login-console::before,
    body.login-page .login-console::after {
        content: none;
    }

    body.login-page .login-brand-stack {
        display: grid;
        gap: 24px;
    }

    body.login-page .login-brand-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto;
        color: #fafafa;
    }

    body.login-page .login-brand-copy {
        display: grid;
        gap: 8px;
    }

    body.login-page .login-console h1.ant-typography,
    body.login-page .login-console h1 {
        margin: 0;
        color: #fafafa !important;
        font-size: 48px;
        font-weight: 300;
        line-height: 1;
        text-shadow: none;
    }

    body.login-page .login-copy {
        margin: 0;
        color: rgba(250, 250, 250, 0.8) !important;
        font-size: 20px;
        line-height: 1.4;
    }

    body.login-page .login-auth-panel {
        width: 33.333333%;
        padding-left: 28px;
        padding-right: 28px;
    }

    body.login-page .login-form-shell {
        max-width: 390px;
    }
}

@media (max-width: 1023px) {
    body.login-page .industrial-login.shadcn-login {
        display: block;
    }
}

@media (max-width: 640px) {
    body.login-page .login-auth-panel {
        padding: 24px;
    }

    body.login-page .login-form-shell {
        max-width: 100%;
        padding: 64px 0 max(64px, calc(env(safe-area-inset-bottom) + 40px));
    }
}
