:root {
    --dgeo-navy-950: #0f2336;
    --dgeo-navy-900: #132d45;
    --dgeo-navy-800: #183b59;
    --dgeo-blue-700: #275f87;
    --dgeo-teal-600: #2d817c;
    --dgeo-teal-100: #e8f4f2;
    --dgeo-bg: #f5f7f9;
    --dgeo-surface: #ffffff;
    --dgeo-surface-soft: #f8fafb;
    --dgeo-border: #e3e8ed;
    --dgeo-border-strong: #d7dfe6;
    --dgeo-ink: #182431;
    --dgeo-muted: #687887;
    --dgeo-muted-2: #8795a2;
    --dgeo-success: #2d7356;
    --dgeo-success-bg: #eaf5ef;
    --dgeo-warning: #946510;
    --dgeo-warning-bg: #fff7df;
    --dgeo-danger: #9c3f43;
    --dgeo-danger-bg: #fff0f0;
    --dgeo-info: #2d6489;
    --dgeo-info-bg: #edf5fa;
    --dgeo-radius-sm: 10px;
    --dgeo-radius: 14px;
    --dgeo-radius-lg: 18px;
    --dgeo-shadow: 0 8px 28px rgba(20, 47, 76, .055);
    --dgeo-sidebar-width: 248px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--dgeo-bg);
}

body.dgeo-body {
    margin: 0;
    background: var(--dgeo-bg);
    color: var(--dgeo-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.dgeo-topbar {
    height: 68px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--dgeo-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
}

.dgeo-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--dgeo-navy-900);
}

.dgeo-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--dgeo-navy-900), var(--dgeo-blue-700));
    color: #fff;
    font-weight: 850;
    letter-spacing: -.06em;
    box-shadow: 0 8px 18px rgba(19, 45, 69, .15);
}

.dgeo-brand-copy {
    line-height: 1.05;
}

.dgeo-brand-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 820;
    letter-spacing: -.025em;
}

.dgeo-brand-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--dgeo-muted-2);
    font-size: .69rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.dgeo-user-meta {
    line-height: 1.15;
}

.dgeo-user-name {
    font-size: .84rem;
    font-weight: 760;
}

.dgeo-user-workspace {
    color: var(--dgeo-muted-2);
    font-size: .68rem;
    margin-top: 3px;
}

.dgeo-sidebar {
    width: var(--dgeo-sidebar-width);
    flex: 0 0 var(--dgeo-sidebar-width);
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    position: sticky;
    top: 68px;
    overflow-y: auto;
    padding: 22px 14px 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(54, 112, 150, .18), transparent 28%),
        linear-gradient(180deg, var(--dgeo-navy-900), var(--dgeo-navy-950));
}

.dgeo-sidebar-intro {
    color: rgba(255,255,255,.7);
    font-size: .73rem;
    line-height: 1.45;
    padding: 3px 11px 10px;
}

.dgeo-nav {
    display: grid;
    gap: 4px;
}

.dgeo-nav-section {
    padding: 18px 11px 6px;
    color: #849bb0;
    font-size: .64rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.dgeo-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 41px;
    padding: 9px 11px;
    border-radius: 11px;
    color: #cbd6df;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.dgeo-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.dgeo-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.115);
    box-shadow: inset 3px 0 0 #67b3aa;
}

.dgeo-nav-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
}

.dgeo-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.dgeo-main {
    min-width: 0;
    flex: 1 1 auto;
    padding: 34px 38px 18px;
}

.dgeo-content {
    max-width: 1480px;
    margin: 0 auto;
}

.eyebrow,
.dgeo-eyebrow {
    color: #7b8996;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.page-title,
.dgeo-page-title {
    color: var(--dgeo-navy-900);
    font-size: clamp(1.75rem, 2.7vw, 2.45rem);
    font-weight: 790;
    letter-spacing: -.038em;
    line-height: 1.12;
}

.dgeo-page-description {
    color: var(--dgeo-muted);
    font-size: .94rem;
    max-width: 860px;
    line-height: 1.58;
}

.dgeo-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.card,
.dgeo-card {
    border: 1px solid var(--dgeo-border);
    border-radius: var(--dgeo-radius-lg);
    background: var(--dgeo-surface);
    box-shadow: var(--dgeo-shadow);
}

.card-header,
.dgeo-card-header {
    background: transparent;
    border-bottom: 1px solid var(--dgeo-border);
    padding: 17px 20px;
}

.card-body {
    padding: 20px;
}

.section-card {
    padding: 21px;
}

.section-title,
.dgeo-section-title {
    color: #263e54;
    font-weight: 760;
    letter-spacing: -.017em;
}

.dgeo-soft-card,
.soft-card {
    background: var(--dgeo-surface-soft);
    border: 1px solid var(--dgeo-border);
    border-radius: var(--dgeo-radius);
}

.dgeo-kpi {
    position: relative;
    overflow: hidden;
    min-height: 132px;
}

.dgeo-kpi::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    right: -28px;
    top: -30px;
    background: rgba(43, 105, 143, .06);
}

.dgeo-kpi-value,
.metric {
    color: var(--dgeo-navy-900);
    font-size: 1.82rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}

.dgeo-kpi-label {
    color: var(--dgeo-muted);
    font-size: .79rem;
}

.dgeo-divider {
    height: 1px;
    background: var(--dgeo-border);
    margin: 18px 0;
}

.dgeo-analysis-row,
.analysis-row {
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f3;
    transition: background .12s ease;
}

.dgeo-analysis-row:hover,
.analysis-row:hover {
    background: #fbfcfd;
}

.dgeo-analysis-row:last-child,
.analysis-row:last-child {
    border-bottom: 0;
}

.dgeo-avatar,
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    overflow: hidden;
    background: linear-gradient(145deg, #e7eef4, #dce7ef);
    color: #2a4c67;
    border: 1px solid #d9e3eb;
    font-size: .78rem;
    font-weight: 820;
    letter-spacing: .025em;
}

.dgeo-avatar.group,
.avatar.group {
    border-radius: 13px;
    background: linear-gradient(145deg, #e8f3f2, #dcebe9);
    color: var(--dgeo-teal-600);
}

.dgeo-avatar img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dgeo-badge,
.badge-soft,
.badge-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: .36rem .58rem;
    font-size: .68rem;
    font-weight: 780;
    line-height: 1;
    letter-spacing: .01em;
}

.badge-soft,
.dgeo-badge-soft {
    background: #eef4f7;
    border: 1px solid #dce7ed;
    color: #3d6078;
}

.badge-current,
.dgeo-badge-current {
    background: var(--dgeo-success-bg);
    border: 1px solid #cfe7da;
    color: var(--dgeo-success);
}

.dgeo-badge-info {
    background: var(--dgeo-info-bg);
    border: 1px solid #d5e6f1;
    color: var(--dgeo-info);
}

.dgeo-badge-warning {
    background: var(--dgeo-warning-bg);
    border: 1px solid #f0dfad;
    color: var(--dgeo-warning);
}

.dgeo-badge-danger {
    background: var(--dgeo-danger-bg);
    border: 1px solid #f0d0d2;
    color: var(--dgeo-danger);
}

.dgeo-status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: currentColor;
}

.dgeo-context-grid,
.context-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.dgeo-context-box,
.context-box {
    min-height: 82px;
    padding: 12px 13px;
    border: 1px solid var(--dgeo-border);
    border-radius: 12px;
    background: #fff;
}

.dgeo-context-value {
    margin-top: 4px;
    font-size: .82rem;
    line-height: 1.45;
    color: #354758;
    overflow-wrap: anywhere;
}

.dgeo-filter-bar {
    padding: 13px;
    border: 1px solid var(--dgeo-border);
    border-radius: var(--dgeo-radius);
    background: rgba(255,255,255,.68);
}

.form-label {
    color: #415568;
    font-size: .8rem;
    font-weight: 730;
}

.form-control,
.form-select {
    border-color: #d9e1e7;
    border-radius: 10px;
    min-height: 43px;
    padding: .65rem .78rem;
    color: #263746;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #87aabf;
    box-shadow: 0 0 0 .2rem rgba(39,95,135,.1);
}

.form-text {
    color: var(--dgeo-muted-2);
    font-size: .73rem;
}

textarea.form-control {
    min-height: auto;
}

.btn {
    border-radius: 10px;
    font-weight: 680;
}

.btn-primary,
.btn-dark {
    background: var(--dgeo-navy-900);
    border-color: var(--dgeo-navy-900);
}

.btn-primary:hover,
.btn-dark:hover {
    background: var(--dgeo-navy-800);
    border-color: var(--dgeo-navy-800);
}

.btn-outline-dark {
    color: var(--dgeo-navy-900);
    border-color: #b9c6d0;
}

.btn-outline-dark:hover {
    background: var(--dgeo-navy-900);
    border-color: var(--dgeo-navy-900);
}

.dgeo-btn-soft {
    color: #36546c;
    background: #f3f7f9;
    border: 1px solid #dce5eb;
}

.dgeo-btn-soft:hover {
    color: var(--dgeo-navy-900);
    background: #eaf1f5;
}

.alert {
    border-radius: 12px;
}

.dgeo-notice {
    padding: 13px 15px;
    border: 1px solid #dce7ed;
    border-radius: 12px;
    background: #f3f8fa;
    color: #486174;
    font-size: .82rem;
    line-height: 1.5;
}

.dgeo-warning {
    border-color: #eedca7;
    background: #fffaf0;
    color: #735716;
}

.dgeo-result-summary {
    font-size: .96rem;
    line-height: 1.68;
    white-space: pre-wrap;
}

.result-block {
    white-space: pre-wrap;
}

.dgeo-segment-card {
    height: 100%;
    padding: 17px;
    border: 1px solid var(--dgeo-border);
    border-radius: var(--dgeo-radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(20,47,76,.035);
}

.dgeo-segment-card:hover {
    border-color: #d4e0e8;
    box-shadow: 0 8px 22px rgba(20,47,76,.06);
}

.dgeo-segment-title {
    color: #274157;
    font-weight: 760;
}

.dgeo-meta-label {
    color: #8996a1;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.dgeo-meta-value {
    color: #425565;
    font-size: .8rem;
    line-height: 1.45;
}

.dgeo-rel-card {
    padding: 14px;
    border: 1px solid var(--dgeo-border);
    border-radius: 13px;
    background: #fff;
}

.dgeo-rel-card.selected {
    border-color: #9dbbc9;
    box-shadow: 0 0 0 3px rgba(45,129,124,.07);
}

.dgeo-pick-list {
    display: grid;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 3px;
}

.dgeo-check-card {
    display: block;
    cursor: pointer;
}

.dgeo-check-card input {
    margin-right: 8px;
}

.dgeo-timeline {
    position: relative;
    padding-left: 25px;
}

.dgeo-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #dfe6eb;
}

.dgeo-timeline-item {
    position: relative;
    padding: 0 0 20px;
}

.dgeo-timeline-dot {
    position: absolute;
    left: -21px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #7394a8;
    box-shadow: 0 0 0 1px #b8c9d4;
}

.dgeo-table thead th,
.table thead th {
    color: #6e7f8d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    background: #fbfcfd;
    border-bottom-color: var(--dgeo-border);
}

.table > :not(caption) > * > * {
    padding: .88rem .82rem;
    border-color: #edf0f3;
    vertical-align: middle;
}

.dgeo-empty,
.empty-state {
    padding: 46px 22px;
    color: #7c8995;
    text-align: center;
}

.dgeo-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58788e;
    background: #eef4f7;
}

.trace,
.dgeo-trace {
    color: var(--dgeo-muted);
    font-size: .78rem;
}

.dgeo-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 26px 2px 7px;
    color: #8b98a5;
    font-size: .69rem;
}

.dgeo-section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 8px;
    color: #3a667d;
    background: #edf4f7;
    font-size: .72rem;
    font-weight: 800;
}

.dgeo-sticky-panel {
    position: sticky;
    top: 92px;
}

.dgeo-code {
    display: inline-flex;
    padding: .22rem .42rem;
    border-radius: 6px;
    background: #f1f4f6;
    color: #536574;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .72rem;
}

.dgeo-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f4;
}

.dgeo-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2b6488, #3d8b84);
}

.offcanvas.dgeo-mobile-menu {
    width: 300px;
    background: var(--dgeo-navy-950);
    color: #fff;
}

.offcanvas.dgeo-mobile-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.offcanvas.dgeo-mobile-menu .btn-close {
    filter: invert(1);
}

.pagination {
    --bs-pagination-color: #365a73;
    --bs-pagination-active-bg: var(--dgeo-navy-900);
    --bs-pagination-active-border-color: var(--dgeo-navy-900);
    --bs-pagination-border-radius: 9px;
}

@media (max-width: 1199.98px) {
    .dgeo-main {
        padding: 28px 26px 18px;
    }

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

@media (max-width: 991.98px) {
    .dgeo-topbar {
        height: 62px;
    }

    .dgeo-main {
        padding: 22px 16px 14px;
    }

    .dgeo-page-head {
        margin-bottom: 18px;
    }

    .dgeo-sticky-panel {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .dgeo-main {
        padding: 18px 12px 12px;
    }

    .dgeo-page-head {
        display: block;
    }

    .dgeo-page-head > :last-child {
        margin-top: 14px;
    }

    .dgeo-context-grid,
    .context-grid {
        grid-template-columns: 1fr;
    }

    .section-card,
    .card-body {
        padding: 16px;
    }

    .dgeo-brand-subtitle {
        display: none;
    }
}
