@import url("design-system.css");

* { box-sizing: border-box; }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: var(--app-font-family, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);
        }

        a { color: inherit; }

        .app-shell {
            width: min(100%, 1680px);
            min-height: 100vh;
            margin: 0 auto;
            padding: 10px;
            display: grid;
            grid-template-columns: 260px minmax(0, 1fr);
            gap: 10px;
            align-items: stretch;
        }

        .sidebar,
        .content-shell {
            border: 1px solid var(--line);
        }

        .sidebar {
            min-width: 0;
            width: auto;
            border-radius: 8px;
            min-height: calc(100vh - 20px);
            padding: 22px 18px;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .brand-block {
            text-align: center;
            padding: 8px 0 16px;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 96px;
            padding: 0;
            background: #fff;
            border: 1px solid rgba(216, 226, 238, 0.92);
            border-radius: 6px;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
            overflow: hidden;
        }

        .brand-logo img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .nav-menu {
            display: grid;
            gap: 7px;
        }

        .nav-item {
            display: grid;
            grid-template-columns: 34px 1fr;
            align-items: center;
            min-height: 48px;
            padding: 9px 13px;
            border: 1px solid transparent;
            border-radius: 8px;
            color: var(--text);
            background: transparent;
            text-decoration: none;
            font: inherit;
            font-size: 0.98rem;
            text-align: left;
            cursor: pointer;
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
        }

        .nav-item:hover,
        .nav-item:focus-visible {
            outline: none;
            border-color: rgba(78, 163, 255, 0.45);
            background: rgba(78, 163, 255, 0.11);
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            color: var(--blue);
            stroke: currentColor;
            stroke-width: 1.8;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .content-shell {
            min-width: 0;
            width: auto;
            border-radius: 8px;
            padding: 12px 16px 14px;
            overflow: hidden;
        }

        .hero {
            position: relative;
            min-height: 96px;
            padding: 14px 26px;
            border: 1px solid var(--line);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            background-size: cover;
            background-position: center right;
        }

        .hero::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .hero-content {
            position: relative;
            z-index: 1;
            width: min(760px, 72%);
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: #dbe6f3;
            font-size: clamp(1.75rem, 3vw, 2.7rem);
            font-weight: 900;
            line-height: 1;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .eyebrow b {
            color: var(--orange);
            font-size: 1em;
        }

        .eyebrow::after {
            display: none;
            content: "";
        }

        .hero-slogan {
            margin: 10px 0 0;
            color: #ffd0a0;
            font-size: clamp(0.82rem, 1.2vw, 0.98rem);
            font-style: italic;
            font-weight: 500;
            line-height: 1.35;
        }

        .hero h2 {
            margin: 14px 0 10px;
            color: #f2f4f8;
            font-size: clamp(1.18rem, 2.1vw, 2rem);
            line-height: 1.18;
            letter-spacing: 0;
            text-transform: uppercase;
            max-width: 640px;
        }

        .hero h2 span { color: #ffb06c; }

        .hero-copy {
            max-width: 660px;
            margin: 0;
            color: #edf2f8;
            font-size: 1.02rem;
            line-height: 1.55;
        }

        .user-card {
            position: absolute;
            top: 8px;
            right: 12px;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr;
            align-items: center;
            width: 210px;
            min-width: 210px;
            min-height: 95px;
            box-sizing: border-box;
            justify-items: center;
            padding: 10px 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(9, 34, 63, 0.84);
            backdrop-filter: blur(5px);
            overflow: hidden;
        }

        .user-date {
            margin: 0 0 6px;
            font-size: 15px;
            font-weight: 400;
            line-height: 1.15;
        }

        .online-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 6px;
            color: #d7e3ef;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.15;
        }

        .online-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #57c84d;
            box-shadow: 0 0 0 4px rgba(87, 200, 77, 0.18);
        }

        .live-clock {
            color: #f8fbff;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.05;
            font-variant-numeric: tabular-nums;
        }

        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
            margin-top: 12px;
        }

        .panel {
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(9, 38, 69, 0.86), rgba(5, 24, 44, 0.86)),
                rgba(5, 24, 44, 0.86);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
        }

        .kpi-card {
            position: relative;
            min-height: 320px;
            padding: 14px 14px 18px;
            display: grid;
            justify-items: center;
            align-content: start;
            text-align: center;
        }

        .info-dot {
            position: absolute;
            top: 13px;
            right: 13px;
            width: 19px;
            height: 19px;
            border: 1px solid rgba(229, 239, 249, 0.72);
            border-radius: 50%;
            color: #d6e4f2;
            font-size: 0.78rem;
            line-height: 17px;
        }

        .kpi-title {
            margin: 0;
            min-height: 48px;
            color: #f6f9fc;
            font-size: 1.12rem;
            line-height: 1.22;
            text-transform: uppercase;
        }

        .kpi-subtitle {
            margin: -3px 0 18px;
            min-height: 20px;
            color: #ffb044;
            font-size: 0.92rem;
        }

        .donut {
            --value: 50;
            --track: #154474;
            --accent: var(--orange);
            position: relative;
            width: min(148px, 72%);
            aspect-ratio: 1;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background:
                radial-gradient(circle, rgba(5, 24, 44, 1) 0 49%, transparent 50%),
                conic-gradient(var(--accent) calc(var(--value) * 1%), var(--track) 0);
            filter: drop-shadow(0 13px 20px rgba(0, 0, 0, 0.22));
        }

        .donut::after {
            content: "";
            position: absolute;
            inset: 22%;
            border-radius: 50%;
            background: #061a31;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.34);
        }

        .donut-value,
        .donut-center-icon {
            position: relative;
            z-index: 1;
        }

        .donut-value {
            font-size: 2.2rem;
            font-weight: 900;
            letter-spacing: 0;
        }

        .donut.blue-orange { --track: #164f95; --accent: #ff8125; }
        .donut.green-blue { --track: #1e6ab7; --accent: #55c94b; }
        .donut.green-deep { --track: #23785f; --accent: #58ca45; }
        .donut.red-deep { --track: #b52d39; --accent: #ff5747; }
        .donut.project-type {
            --track: var(--purple);
            --accent: var(--amber);
        }

        .donut-center-icon {
            width: 54px;
            height: 54px;
            color: #b9d9ff;
        }

        .kpi-number {
            margin: 14px 0 7px;
            color: #f7faff;
            font-size: 1.08rem;
        }

        .target-text {
            margin: 0;
            color: var(--muted);
            font-size: 0.98rem;
        }

        .legend-list {
            width: 100%;
            margin: 12px 0 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 5px;
            text-align: left;
            color: #dce8f4;
        }

        .legend-list li {
            display: grid;
            grid-template-columns: 14px 1fr auto;
            gap: 8px;
            align-items: center;
            line-height: 1.24;
        }

        .dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--blue);
        }

        .dot.purple { background: var(--purple); }
        .dot.amber { background: var(--amber); }
        .dot.orange { background: var(--orange); }
        .dot.green { background: var(--green); }
        .dot.red { background: var(--red); }

        .lower-grid {
            display: grid;
            grid-template-columns: minmax(350px, 0.9fr) minmax(520px, 1.7fr);
            gap: 10px;
            margin-top: 10px;
        }

        .overview-card,
        .status-card {
            min-height: 278px;
            padding: 18px 20px;
        }

        .section-title {
            margin: 0 0 18px;
            font-size: 1.08rem;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .overview-body {
            display: grid;
            grid-template-columns: 160px 1fr;
            gap: 18px;
            align-items: center;
        }

        .overview-donut {
            width: 152px;
            aspect-ratio: 1;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background:
                radial-gradient(circle, #061a31 0 49%, transparent 50%),
                conic-gradient(var(--purple) 0 40%, var(--amber) 40% 75%, #1f66b0 75% 100%);
        }

        .overview-donut strong {
            display: block;
            position: relative;
            z-index: 1;
            font-size: 2.5rem;
            line-height: 0.88;
        }

        .overview-donut span {
            display: block;
            color: #dce7f4;
            font-size: 0.95rem;
            font-weight: 400;
        }

        .type-breakdown {
            display: grid;
            gap: 12px;
        }

        .type-row {
            min-height: 76px;
            display: grid;
            grid-template-columns: 48px 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: rgba(12, 50, 88, 0.62);
        }

        .type-row svg {
            width: 36px;
            height: 36px;
            color: #c9dfff;
            stroke: currentColor;
            stroke-width: 1.9;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .type-name {
            color: #f2f7fc;
            font-size: 1rem;
        }

        .type-name span {
            display: block;
            margin-top: 3px;
            color: #d1deea;
            font-size: 0.91rem;
        }

        .type-percent {
            color: #9f6bff;
            font-size: 1.22rem;
            font-weight: 900;
        }

        .type-row:nth-child(2) .type-percent { color: var(--amber); }

        .status-body {
            display: grid;
            grid-template-columns: minmax(220px, 0.82fr) minmax(360px, 1.2fr);
            gap: 18px;
            align-items: stretch;
        }

        .status-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 7px;
            align-content: start;
        }

        .status-list li {
            display: grid;
            grid-template-columns: 16px 1fr auto;
            gap: 10px;
            align-items: center;
            color: #edf4fb;
            font-size: 0.97rem;
        }

        .chart-wrap {
            position: relative;
            min-height: 206px;
            padding: 12px 0 0 10px;
            border-left: 1px solid var(--line);
        }

        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 3px;
            color: #edf5fc;
            font-size: 0.86rem;
        }

        .line-key {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .line-key::before {
            content: "";
            width: 32px;
            height: 4px;
            border-radius: 999px;
            background: currentColor;
        }

        .line-key.green { color: var(--green); }
        .line-key.red { color: var(--red); }

        .chart {
            width: 100%;
            height: 180px;
            display: block;
        }

        .chart text {
            fill: #d4e1ee;
            font-size: 11px;
        }

        .chart .grid {
            stroke: rgba(177, 205, 235, 0.18);
            stroke-width: 1;
        }

        .chart .axis {
            stroke: rgba(210, 228, 246, 0.36);
            stroke-width: 1.2;
        }

        .chart .winner {
            stroke: var(--green);
            stroke-width: 4;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .chart .loser {
            stroke: var(--red);
            stroke-width: 4;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .chart circle.winner-point { fill: var(--green); }
        .chart circle.loser-point { fill: var(--red); }

        .footer {
            margin-top: 10px;
            text-align: center;
            color: #a9b7c7;
            font-size: 0.95rem;
        }

        .footer b { color: var(--orange); }
        .footer span { color: var(--blue); }

        .acquisition-panel {
            margin-top: 8px;
            padding: 22px;
        }

        .acquisition-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 18px;
            margin-bottom: 20px;
        }

        .acquisition-title {
            margin: 0 0 7px;
            font-size: 1.28rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .acquisition-subtitle {
            margin: 0;
            color: var(--muted);
            line-height: 1.45;
        }

        .target-badge {
            flex: none;
            min-width: 176px;
            padding: 13px 16px;
            border: 1px solid rgba(255, 138, 34, 0.48);
            border-radius: 8px;
            background: rgba(255, 138, 34, 0.13);
            text-align: right;
        }

        .target-badge span {
            display: block;
            color: #ffc37d;
            font-size: 0.84rem;
            font-weight: 400;
            text-transform: uppercase;
        }

        .target-badge strong {
            display: block;
            margin-top: 4px;
            color: #fff8ed;
            font-size: 2rem;
            font-weight: 400;
            line-height: 1;
        }

        .acquisition-body {
            display: grid;
            grid-template-columns: minmax(280px, 0.74fr) minmax(520px, 1.5fr);
            gap: 18px;
            align-items: stretch;
        }

        .summary-stack {
            display: grid;
            gap: 12px;
        }

        .summary-card {
            min-height: 96px;
            padding: 15px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(12, 50, 88, 0.56);
        }

        .summary-card span {
            display: block;
            color: var(--muted);
            font-size: 0.88rem;
            font-weight: 400;
            text-transform: uppercase;
        }

        .summary-card strong {
            display: block;
            margin-top: 5px;
            color: #f8fbff;
            font-size: 1.28rem;
            line-height: 1;
        }

        .summary-card small {
            display: block;
            margin-top: 7px;
            color: #c8d7e7;
            line-height: 1.35;
        }

        .progress-card {
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(6, 29, 53, 0.72);
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            color: #eef5fc;
            font-weight: 400;
        }

        .progress-label strong {
            font-weight: 800;
        }

        .progress-track {
            height: 16px;
            margin-top: 12px;
            border-radius: 999px;
            background: rgba(182, 211, 239, 0.15);
            overflow: hidden;
        }

        .progress-fill {
            width: 23.9%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--orange), #f2c94c);
        }

        .progress-note {
            margin: 9px 0 0;
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .quarter-chart {
            min-height: 390px;
            padding: 18px 18px 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(6, 30, 55, 0.72), rgba(5, 22, 42, 0.78)),
                rgba(5, 22, 42, 0.78);
        }

        .chart-top {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: center;
            margin-bottom: 14px;
        }

        .chart-title {
            margin: 0;
            color: #f6f9fc;
            font-size: 1.06rem;
            font-weight: 400;
            text-transform: uppercase;
        }

        .chart-keys {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 14px;
            color: #dce8f4;
            font-size: 0.9rem;
        }

        .chart-key {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .chart-key::before {
            content: "";
            width: 14px;
            height: 14px;
            border-radius: 4px;
            background: currentColor;
        }

        .chart-key.plan { color: var(--blue); }
        .chart-key.real { color: var(--orange); }

        .s-curve-chart {
            min-height: 330px;
            padding: 6px 0 0;
        }

        .s-curve-svg {
            width: 100%;
            height: 315px;
            display: block;
        }

        .s-curve-svg text {
            fill: #d5e3f0;
            font-size: 13px;
        }

        .s-curve-svg .grid {
            stroke: rgba(177, 205, 235, 0.16);
            stroke-width: 1;
        }

        .s-curve-svg .axis {
            stroke: rgba(210, 228, 246, 0.38);
            stroke-width: 1.4;
        }

        .s-curve-svg .plan-area {
            fill: rgba(78, 163, 255, 0.08);
        }

        .s-curve-svg .plan-line {
            stroke: var(--blue);
            stroke-width: 5;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .s-curve-svg .real-line {
            stroke: var(--orange);
            stroke-width: 5;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .s-curve-svg .plan-point {
            fill: #091f38;
            stroke: var(--blue);
            stroke-width: 4;
        }

        .s-curve-svg .real-point {
            fill: var(--orange);
            stroke: #fff3e3;
            stroke-width: 3;
        }

        .s-curve-svg .current-guide {
            stroke: rgba(255, 138, 34, 0.48);
            stroke-dasharray: 7 7;
            stroke-width: 1.5;
        }

        .s-curve-svg .callout-box {
            fill: rgba(255, 138, 34, 0.14);
            stroke: rgba(255, 177, 92, 0.62);
            stroke-width: 1;
        }

        .s-curve-svg .callout-text {
            fill: #fff3e3;
            font-weight: 800;
        }

        .curve-note {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.45;
        }

        @media (max-width: 1260px) {
            .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
            .kpi-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
            .kpi-card { min-height: 292px; }
            .lower-grid,
            .status-body { grid-template-columns: 1fr; }
            .chart-wrap { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; }
            .acquisition-body { grid-template-columns: 1fr; }
        }

        @media (max-width: 900px) {
            .app-shell {
                grid-template-columns: 1fr;
                padding: 8px;
            }

            .sidebar {
                min-height: 0;
                padding: 16px;
            }

            .brand-block {
                display: flex;
                justify-content: center;
                padding: 0;
            }

            .brand-logo {
                width: min(100%, 220px);
                height: 96px;
            }

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

            .hero {
                min-height: 172px;
                padding: 16px;
                background-position: 62% center;
            }

            .hero-content {
                width: 100%;
                padding-top: 72px;
            }

            .eyebrow::after { width: 100px; }

            .user-card {
                left: 12px;
                right: 12px;
                width: auto;
                min-width: 0;
                max-width: none;
            }

            .acquisition-header,
            .chart-top {
                display: grid;
            }

            .target-badge {
                width: 100%;
                text-align: left;
            }
        }

        @media (max-width: 680px) {
            .content-shell { padding: 8px; }
            .nav-menu { grid-template-columns: 1fr; }
            .nav-item { min-height: 45px; }
            .kpi-grid { grid-template-columns: 1fr; }
            .overview-body { grid-template-columns: 1fr; justify-items: center; }
            .type-breakdown { width: 100%; }
            .acquisition-panel { padding: 16px; }
            .s-curve-svg { height: 270px; }
            .hero h2 { font-size: 1.12rem; }
            .hero-copy { font-size: 0.94rem; }
            .eyebrow {
                font-size: clamp(1.22rem, 5.2vw, 1.55rem);
                flex-wrap: nowrap;
            }
            .hero-slogan { font-size: 0.82rem; }
            .eyebrow b { font-size: 1em; }
            .chart-legend { flex-wrap: wrap; gap: 14px; }
        }

        /* Light blue palette inspired by the supplied reference. */
        :root {
            --bg: var(--app-color-blue-100, #d8e8fb);
            --panel: rgba(255, 255, 255, 0.94);
            --panel-strong: var(--app-color-surface, #ffffff);
            --line: var(--app-color-border, rgba(41, 105, 178, 0.16));
            --line-strong: var(--app-color-border-strong, rgba(41, 105, 178, 0.22));
            --text: var(--app-color-text, #12375f);
            --muted: var(--app-color-text-muted, #7087a2);
            --blue: var(--app-color-blue-600, #2f83da);
            --orange: var(--app-color-orange-500, #f28a3a);
            --amber: var(--app-color-amber-500, #efb52f);
            --green: var(--app-color-green-500, #2bc17f);
            --red: var(--app-color-red-500, #e65c73);
            --purple: var(--app-color-purple-500, #6758ee);
            --shadow: var(--app-shadow-md, 0 18px 46px rgba(42, 94, 155, 0.12));
        }

        .app-page .sidebar {
            width: auto;
            border-radius: var(--app-radius-sm, 8px);
        }

        .app-page .content-shell,
        .app-page .hero,
        .app-page .panel,
        .app-page .target-badge,
        .app-page .summary-card,
        .app-page .progress-card,
        .app-page .quarter-chart {
            border-radius: var(--app-radius-sm, 8px);
        }

        body {
            color: var(--text);
            background:
                radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.78), transparent 27%),
                radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.5), transparent 32%),
                linear-gradient(135deg, #cfe2f8 0%, #e6f0fd 52%, #d5e7fb 100%);
        }

        .sidebar {
            border-color: rgba(255, 255, 255, 0.16);
            background: linear-gradient(180deg, #104b92 0%, #0a3d7e 100%);
            box-shadow: 0 18px 44px rgba(17, 67, 125, 0.2);
        }

        .content-shell {
            border-color: rgba(255, 255, 255, 0.72);
            background: rgba(239, 246, 255, 0.88);
            box-shadow: var(--shadow);
        }

        .nav-item {
            color: #eef6ff;
        }

        .nav-icon {
            color: #b9dbff;
        }

        .nav-item:hover,
        .nav-item:focus-visible {
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.09);
        }

        .nav-item.active {
            border-color: rgba(255, 255, 255, 0.12);
            color: #ffffff;
            background: rgba(4, 46, 99, 0.62);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
        }

        .nav-item.active .nav-icon {
            color: #ffffff;
        }

        .hero {
            border-color: rgba(67, 124, 188, 0.13);
            background-image:
                linear-gradient(90deg, rgba(232, 242, 255, 0.98) 0%, rgba(232, 242, 255, 0.94) 44%, rgba(232, 242, 255, 0.74) 72%, rgba(232, 242, 255, 0.58) 100%),
                linear-gradient(0deg, rgba(218, 233, 251, 0.58), rgba(240, 247, 255, 0.34)),
                url("../assets/dashboard-hero-industrial-ai.png");
            box-shadow: 0 12px 30px rgba(61, 113, 171, 0.08);
        }

        .hero::after {
            border-color: rgba(255, 255, 255, 0.46);
        }

        .eyebrow {
            color: #10437c;
        }

        .hero-slogan {
            color: #65809e;
        }

        .user-card {
            top: 50%;
            transform: translateY(-50%);
            border-color: rgba(50, 116, 188, 0.15);
            background: rgba(255, 255, 255, 0.84);
            box-shadow: 0 9px 24px rgba(58, 110, 170, 0.1);
            text-align: center;
        }

        .user-card > div {
            width: 100%;
            display: grid;
            justify-items: center;
            gap: 3px;
        }

        .user-date,
        .live-clock {
            color: #17446f;
        }

        .user-date {
            margin: 0;
            line-height: 1.15;
            white-space: nowrap;
        }

        .online-status {
            margin: 0;
            color: #66809d;
            line-height: 1.15;
        }

        .live-clock {
            line-height: 1.1;
            letter-spacing: 0.04em;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .panel {
            border-color: var(--line-strong);
            background: rgba(255, 255, 255, 0.94);
            box-shadow:
                0 13px 34px rgba(42, 94, 155, 0.09),
                inset 0 0 0 1px rgba(255, 255, 255, 0.72);
        }

        .acquisition-title,
        .chart-title,
        .summary-card strong,
        .progress-label {
            color: #163b64;
        }

        .acquisition-header > div:first-child {
            position: relative;
            flex: 1;
            padding: 14px 18px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            overflow: hidden;
            background:
                radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.7), transparent 28%),
                linear-gradient(120deg, #7ed8f2 0%, #9fc9ff 52%, #b9b0ff 100%);
            box-shadow: 0 12px 28px rgba(43, 105, 180, 0.2);
        }

        .acquisition-header > div:first-child::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 5px;
            background: linear-gradient(180deg, #54e0d5, #9ff5ed);
        }

        .acquisition-title {
            position: relative;
            z-index: 1;
            margin-bottom: 6px;
            color: #ffffff;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-shadow: 0 2px 8px rgba(30, 70, 120, 0.24);
        }

        .acquisition-subtitle {
            position: relative;
            z-index: 1;
            color: #244866;
            font-weight: 500;
        }

        .target-badge {
            border-color: rgba(255, 255, 255, 0.26);
            background: linear-gradient(135deg, #3d86dd, #2f70cf);
            box-shadow: 0 10px 24px rgba(47, 112, 207, 0.2);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .target-badge span {
            color: rgba(255, 255, 255, 0.86);
            font-weight: 600;
            letter-spacing: 0.04em;
        }

        .target-badge strong {
            color: #ffffff;
            text-shadow: 0 2px 8px rgba(18, 54, 101, 0.2);
        }

        .summary-card,
        .progress-card {
            border-color: rgba(255, 255, 255, 0.24);
            box-shadow: 0 12px 26px rgba(50, 91, 148, 0.14);
        }

        .summary-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
        }

        .summary-card:nth-child(1) {
            background: linear-gradient(135deg, #6858ee, #584ef0);
        }

        .summary-card:nth-child(2) {
            background: linear-gradient(135deg, #12b4bd, #08a5b4);
        }

        .progress-card {
            background: linear-gradient(135deg, #df6098, #d65391);
        }

        .summary-card span,
        .progress-label {
            color: rgba(255, 255, 255, 0.9);
        }

        .summary-card span {
            line-height: 1.2;
        }

        .summary-card strong,
        .progress-label strong {
            color: #ffffff;
            text-shadow: 0 2px 8px rgba(30, 38, 92, 0.2);
        }

        .summary-card strong {
            margin: 0;
            line-height: 1.1;
        }

        .summary-card small {
            margin: 0;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.35;
        }

        .progress-track {
            background: rgba(255, 255, 255, 0.28);
        }

        .progress-fill {
            background: rgba(255, 255, 255, 0.9);
        }

        .progress-note {
            color: rgba(255, 255, 255, 0.82);
        }

        .progress-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .progress-label {
            align-items: center;
            line-height: 1.2;
        }

        .quarter-chart {
            border-color: rgba(44, 112, 187, 0.13);
            background: linear-gradient(180deg, #f8fbff, #f1f6fc);
        }

        .dashboard-workspace-page .quarter-chart {
            position: relative;
            isolation: isolate;
            border: 1px solid rgba(120, 170, 230, 0.34);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(182, 216, 255, 0.20), rgba(255, 255, 255, 0.16));
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 28px rgba(31, 86, 150, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.55);
        }

        .dashboard-workspace-page .quarter-chart::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.08;
            background:
                radial-gradient(80% 45% at 8% 100%, rgba(0, 190, 220, 0.95), transparent 70%),
                linear-gradient(155deg, transparent 34%, rgba(37, 143, 220, 0.8) 48%, transparent 62%);
        }

        .dashboard-workspace-page .quarter-chart > * {
            position: relative;
            z-index: 1;
        }

        .dashboard-workspace-page .quarter-chart canvas {
            background: transparent !important;
        }

        .chart-keys {
            color: #617b97;
        }

        .s-curve-svg text {
            fill: #667e98;
        }

        .s-curve-svg .grid {
            stroke: rgba(69, 112, 158, 0.15);
        }

        .s-curve-svg .axis {
            stroke: rgba(42, 83, 127, 0.34);
        }

        .s-curve-svg .plan-area {
            fill: rgba(47, 131, 218, 0.08);
        }

        .s-curve-svg .plan-point {
            fill: #ffffff;
        }

        .s-curve-svg .real-point {
            stroke: #ffffff;
        }

        .s-curve-svg .callout-text {
            fill: #8a4c18;
        }

        .footer {
            color: #6d829b;
        }

        @media (min-width: 901px) {
            .app-shell {
                width: min(100%, 1680px);
                min-height: 100vh;
                margin: 0 auto;
                padding: 10px;
                display: grid;
                grid-template-columns: 260px minmax(0, 1fr);
                gap: 10px;
                align-items: stretch;
            }

            .sidebar,
            .content-shell {
                min-height: 0;
                width: auto;
            }

            .sidebar {
                grid-column: 1;
                grid-row: 1;
                padding: clamp(10px, 1.8vh, 22px) 18px;
                gap: clamp(8px, 1.5vh, 22px);
                overflow: hidden;
            }

            .brand-block {
                padding: clamp(2px, 1vh, 8px) 0 clamp(4px, 1.2vh, 16px);
            }

            .brand-logo {
                width: 100%;
                height: clamp(72px, 10vh, 96px);
            }

            .nav-menu {
                gap: clamp(1px, 0.45vh, 7px);
            }

            .nav-item {
                min-height: clamp(34px, 5.15vh, 48px);
                padding-top: 4px;
                padding-bottom: 4px;
                font-size: clamp(0.78rem, 1.65vh, 0.98rem);
            }

            .nav-icon {
                width: clamp(18px, 2.5vh, 24px);
                height: clamp(18px, 2.5vh, 24px);
            }

            .content-shell {
                grid-column: 2;
                grid-row: 1;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .hero {
                flex: 0 0 clamp(72px, 12vh, 96px);
                min-height: 0;
            }

            .acquisition-panel {
                flex: 1;
                min-height: 0;
                padding: clamp(12px, 2.3vh, 22px);
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .acquisition-header {
                flex: none;
                margin-bottom: clamp(10px, 1.8vh, 20px);
            }

            .acquisition-header > div:first-child {
                padding: clamp(9px, 1.5vh, 14px) 18px;
            }

            .acquisition-body {
                flex: 1;
                min-height: 0;
                grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.5fr);
            }

            .summary-stack {
                min-height: 0;
                grid-template-rows: repeat(3, minmax(0, 1fr));
            }

            .summary-card {
                min-height: 0;
                padding: clamp(10px, 1.7vh, 15px);
            }

            .progress-card {
                min-height: 0;
                padding: clamp(10px, 1.8vh, 16px);
            }

            .quarter-chart {
                min-height: 0;
                padding: clamp(10px, 2vh, 18px) 18px clamp(8px, 1.6vh, 14px);
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .chart-top {
                flex: none;
                margin-bottom: clamp(6px, 1.4vh, 14px);
            }

            .s-curve-chart {
                flex: 1;
                min-height: 0;
                padding-top: 0;
            }

            .s-curve-svg {
                height: 100%;
                min-height: clamp(130px, 24vh, 180px);
            }

            .curve-note {
                flex: none;
                margin-top: clamp(3px, 0.8vh, 8px);
            }

            .footer {
                flex: none;
                margin-top: clamp(4px, 1vh, 10px);
                font-size: clamp(0.78rem, 1.6vh, 0.95rem);
            }
        }

        @media (max-width: 900px) {
            .user-card {
                top: 8px;
                transform: none;
            }
        }

        .general-dashboard-page .content-shell {
            overflow-x: hidden;
            overflow-y: auto;
        }

        .dashboard-welcome {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            margin-top: 12px;
            padding: 22px 24px;
            border-left: 4px solid var(--blue);
            background: linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(229, 242, 255, 0.92));
        }

        .dashboard-welcome h1 {
            margin: 5px 0 7px;
            color: #173f6d;
            font-size: clamp(1.35rem, 2.2vw, 2rem);
            line-height: 1.15;
        }

        .dashboard-welcome p {
            max-width: 760px;
            margin: 0;
            color: var(--muted);
            line-height: 1.55;
        }

        .dashboard-kicker {
            color: var(--blue);
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.11em;
            text-transform: uppercase;
        }

        .dashboard-updated {
            flex: none;
            padding: 7px 10px;
            border: 1px solid rgba(47, 131, 218, 0.2);
            border-radius: 999px;
            color: #47627f;
            background: rgba(255, 255, 255, 0.72);
            font-size: 0.78rem;
            font-weight: 700;
        }

        .dashboard-kpis {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 14px;
        }

        .dashboard-kpi {
            position: relative;
            min-height: 128px;
            padding: 18px;
            overflow: hidden;
            border-top: 3px solid var(--blue);
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.92));
        }

        .dashboard-kpi::after {
            content: "";
            position: absolute;
            right: -28px;
            bottom: -38px;
            width: 104px;
            height: 104px;
            border-radius: 50%;
            background: rgba(47, 131, 218, 0.08);
        }

        .dashboard-kpi-green {
            border-top-color: var(--green);
        }

        .dashboard-kpi-purple {
            border-top-color: var(--purple);
        }

        .dashboard-kpi-orange {
            border-top-color: var(--orange);
        }

        .dashboard-kpi > span,
        .dashboard-kpi > small {
            display: block;
            color: var(--muted);
        }

        .dashboard-kpi > span {
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.045em;
            text-transform: uppercase;
        }

        .dashboard-kpi > strong {
            position: relative;
            z-index: 1;
            display: block;
            margin-top: 13px;
            color: #163d69;
            font-size: clamp(1.5rem, 2.25vw, 2.25rem);
            line-height: 1;
        }

        .dashboard-kpi-purple > strong {
            font-size: clamp(1.15rem, 1.65vw, 1.6rem);
        }

        .dashboard-kpi > small {
            position: relative;
            z-index: 1;
            margin-top: 10px;
            line-height: 1.4;
        }

        .dashboard-main-grid,
        .dashboard-operations-grid {
            display: grid;
            gap: 14px;
            margin-top: 14px;
        }

        .dashboard-main-grid {
            grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        }

        .dashboard-operations-grid {
            grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
        }

        .dashboard-panel {
            padding: 18px 20px;
            background: rgba(255, 255, 255, 0.94);
        }

        .dashboard-panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(112, 145, 180, 0.18);
        }

        .dashboard-panel-head h2 {
            margin: 4px 0 0;
            color: #1d456f;
            font-size: 1.08rem;
        }

        .dashboard-panel-head > span,
        .dashboard-panel-head > strong {
            color: var(--muted);
            font-size: 0.8rem;
            font-weight: 700;
        }

        .status-summary-list {
            display: grid;
            gap: 2px;
            padding-top: 8px;
        }

        .status-summary-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 9px 2px;
            border-bottom: 1px solid rgba(112, 145, 180, 0.11);
        }

        .status-summary-copy {
            display: grid;
            grid-template-columns: 10px 1fr auto;
            align-items: center;
            gap: 9px;
            color: #294766;
            font-size: 0.82rem;
        }

        .status-summary-copy small {
            color: var(--muted);
        }

        .status-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--blue);
        }

        .stage-awarded { background: var(--orange); }
        .stage-sign-contract { background: var(--purple); }
        .stage-kom { background: var(--green); }
        .stage-boq { background: var(--amber); }
        .stage-completed { background: #2d8a6e; }

        .status-count {
            display: inline-grid;
            width: 30px;
            height: 30px;
            place-items: center;
            border-radius: 8px;
            color: #1f609e;
            background: #edf6ff;
            font-size: 0.82rem;
            font-weight: 800;
        }

        .business-progress {
            height: 10px;
            margin: 18px 0;
            overflow: hidden;
            border-radius: 999px;
            background: #e3edf8;
        }

        .business-progress > div {
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--blue), var(--green));
        }

        .business-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .business-metrics > div {
            min-width: 0;
            padding: 12px;
            border: 1px solid rgba(112, 145, 180, 0.15);
            border-radius: 8px;
            background: #f7fbff;
        }

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

        .business-metrics span {
            color: var(--muted);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .business-metrics strong {
            margin-top: 7px;
            overflow-wrap: anywhere;
            color: #214c78;
            font-size: 0.92rem;
        }

        .activity-list,
        .task-list,
        .alert-list {
            display: grid;
            gap: 10px;
            padding-top: 14px;
        }

        .activity-item {
            display: grid;
            grid-template-columns: 9px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
        }

        .activity-marker {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--blue);
            box-shadow: 0 0 0 4px rgba(47, 131, 218, 0.1);
        }

        .activity-item strong,
        .activity-item span,
        .activity-item time {
            display: block;
        }

        .activity-item strong {
            color: #294766;
            font-size: 0.8rem;
        }

        .activity-item span,
        .activity-item time {
            color: var(--muted);
            font-size: 0.7rem;
        }

        .task-item,
        .dashboard-alert {
            display: grid;
            grid-template-columns: 10px minmax(0, 1fr);
            gap: 10px;
            padding: 11px 12px;
            border: 1px solid rgba(112, 145, 180, 0.15);
            border-radius: 8px;
            background: #f8fbff;
        }

        .task-check,
        .alert-indicator {
            width: 9px;
            height: 9px;
            margin-top: 4px;
            border-radius: 50%;
            background: var(--blue);
        }

        .task-warning .task-check,
        .alert-warning .alert-indicator { background: var(--orange); }
        .alert-info .alert-indicator { background: var(--blue); }
        .alert-success .alert-indicator { background: var(--green); }
        .alert-danger .alert-indicator { background: var(--red); }

        .task-item strong,
        .dashboard-alert strong {
            color: #294766;
            font-size: 0.78rem;
        }

        .task-item p,
        .dashboard-alert p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 0.72rem;
            line-height: 1.4;
        }

        @media (max-width: 1180px) {
            .dashboard-kpis {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .dashboard-operations-grid {
                grid-template-columns: 1fr 1fr;
            }

            .dashboard-operations-grid > :first-child {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 760px) {
            .dashboard-welcome {
                align-items: flex-start;
                flex-direction: column;
            }

            .dashboard-kpis,
            .dashboard-main-grid,
            .dashboard-operations-grid,
            .business-metrics {
                grid-template-columns: 1fr;
            }

            .dashboard-operations-grid > :first-child {
                grid-column: auto;
            }
        }

        body.dashboard-workspace-page {
            height: 100vh;
            min-height: 100vh;
            overflow: hidden;
        }

        .dashboard-workspace-page .app-shell {
            width: 100%;
            max-width: none;
            height: 100vh;
            min-height: 0;
            margin: 0;
            padding: 6px;
            grid-template-columns: 260px minmax(0, 1fr);
            gap: 6px;
            overflow: hidden;
        }

        .dashboard-workspace-page .sidebar {
            width: 260px;
            min-width: 260px;
            height: calc(100vh - 12px);
            min-height: 0;
            padding: 12px 16px;
            gap: 10px;
            overflow-x: hidden;
            overflow-y: auto;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .brand-block {
            padding: 2px 0 8px;
        }

        .dashboard-workspace-page .brand-logo {
            height: 66px;
        }

        .dashboard-workspace-page .nav-menu {
            gap: 3px;
        }

        .dashboard-workspace-page .nav-item {
            min-height: 36px;
            padding: 5px 10px;
            font-size: 0.86rem;
        }

        .dashboard-workspace-page .nav-icon {
            width: 21px;
            height: 21px;
        }

        .dashboard-workspace-page .content-shell {
            width: 100%;
            max-width: none;
            height: calc(100vh - 12px);
            min-height: 0;
            padding: 6px 8px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .hero {
            flex: 0 0 62px;
            min-height: 62px;
            padding: 8px 18px;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .hero-content {
            width: min(920px, calc(100% - 230px));
        }

        .dashboard-workspace-page .eyebrow {
            font-size: clamp(1.45rem, 2.2vw, 2rem);
            line-height: 0.98;
        }

        .dashboard-workspace-page .hero-slogan {
            margin-top: 5px;
            font-size: 0.82rem;
            line-height: 1.15;
        }

        .dashboard-workspace-page .user-card {
            right: 12px;
            width: 210px;
            min-width: 210px;
            min-height: 95px;
            padding: 10px 16px;
        }

        .dashboard-workspace-page .acquisition-panel {
            flex: 1;
            min-height: 0;
            margin-top: 6px;
            padding: 8px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .acquisition-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(190px, 0.18fr);
            align-items: stretch;
            gap: 8px;
            margin-bottom: 6px;
        }

.dashboard-workspace-page .dashboard-header-meta {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: clamp(10px, 1.2vw, 18px);
            min-width: 0;
            padding: 8px 2px;
            white-space: nowrap;
            cursor: pointer;
        }

        .dashboard-workspace-page .dashboard-header-meta .user-date,
        .dashboard-workspace-page .dashboard-header-meta .online-status,
        .dashboard-workspace-page .dashboard-header-meta .live-clock {
            margin: 0;
        }

        .dashboard-workspace-page .dashboard-header-meta .user-date {
            font-weight: 700;
        }

        .dashboard-workspace-page .dashboard-header-meta .live-clock {
            font-size: clamp(1.25rem, 1.8vw, 1.65rem);
            font-weight: 800;
        }

        .dashboard-workspace-page .acquisition-header > div:first-child {
            display: flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .acquisition-title {
            margin: 0;
            font-size: 1rem;
        }

        .dashboard-workspace-page .acquisition-subtitle {
            max-width: none;
            font-size: 0.82rem;
            line-height: 1.25;
        }

        .dashboard-workspace-page .target-badge {
            min-width: 0;
            padding: 8px 12px;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .target-badge strong {
            max-width: 100%;
            font-size: 30px;
            font-weight: 800;
            line-height: 1.05;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .acquisition-body {
            flex: 1;
            min-height: 0;
            min-width: 0;
            width: 100%;
            display: grid;
            grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr);
            gap: clamp(12px, 2vw, 24px);
            align-items: stretch;
        }

        .dashboard-workspace-page .summary-stack {
            min-height: 0;
            min-width: 0;
            display: grid;
            grid-template-rows: none;
            grid-auto-rows: minmax(clamp(150px, 17vh, 220px), max-content);
            gap: clamp(12px, 2vw, 24px);
            align-content: start;
            align-self: start;
        }

        .dashboard-workspace-page .summary-card,
        .dashboard-workspace-page .progress-card {
            min-width: 0;
            min-height: 0;
            height: auto;
            padding: clamp(10px, 2vh, 16px);
            border-radius: var(--app-radius-sm, 8px);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 0;
            box-sizing: border-box;
            overflow: hidden;
        }

        .dashboard-workspace-page .summary-card strong {
            max-width: 100%;
            margin: 0;
            font-size: clamp(42px, 3vw, 58px);
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: -.02em;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .progress-note {
            margin-top: auto;
            font-size: clamp(15px, .95vw, 18px);
            line-height: 1.5;
            font-weight: 500;
            color: rgba(255, 255, 255, .98);
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .summary-card small {
            display: block;
            margin-top: 8px;
            font-size: clamp(12px, 3.5cqi, 13px);
            line-height: 1.4;
            font-weight: 500;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(12, 28, 68, .42);
            opacity: .85;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .summary-card > span,
        .dashboard-workspace-page .progress-label span {
            margin: 0;
            font-size: clamp(13px, 4cqi, 14px);
            font-weight: 600;
            letter-spacing: .02em;
            line-height: 1.1;
            white-space: normal;
            overflow-wrap: break-word;
        }

        .dashboard-workspace-page .target-badge span {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
        }

        .dashboard-workspace-page .progress-label strong {
            max-width: 100%;
            margin: 0;
            font-size: clamp(42px, 3vw, 58px);
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: -.02em;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .progress-label {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: clamp(8px, .7vw, 14px);
            min-width: 0;
            line-height: 1.3;
        }

        .dashboard-workspace-page .progress-track {
            width: 100%;
            height: clamp(12px, .8vw, 16px);
            margin-top: 0;
            border-radius: 999px;
        }

        .dashboard-workspace-page .kpi-card {
            min-width: 0;
            height: auto;
            min-height: 0;
            container-type: inline-size;
            padding: clamp(10px, 2vh, 16px);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 0;
            box-sizing: border-box;
            overflow: hidden;
        }

        .dashboard-workspace-page .kpi-title {
            margin: 0;
            font-size: clamp(13px, 4cqi, 14px);
            line-height: 1.1;
            font-weight: 600;
            letter-spacing: .02em;
            white-space: normal;
            overflow-wrap: break-word;
        }

        .dashboard-workspace-page .kpi-value {
            margin: 4px 0;
            font-size: clamp(28px, 8cqi, 32px);
            line-height: 1.15;
            font-weight: 650;
            letter-spacing: -.02em;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .kpi-progress-value {
            margin: 0;
            font-size: clamp(28px, 8cqi, 32px);
            line-height: 1.15;
            font-weight: 650;
            letter-spacing: -.02em;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .dashboard-workspace-page .kpi-divider {
            width: 100%;
            height: 0;
            flex: 0 0 0;
            margin: 8px 0;
            border-top: 1px solid rgba(255, 255, 255, .35);
            background: transparent;
        }

        .dashboard-workspace-page .kpi-description,
        .dashboard-workspace-page .kpi-calculation {
            margin: 8px 0 0;
            font-size: clamp(12px, 3.5cqi, 13px);
            line-height: 1.4;
            font-weight: 500;
            color: rgba(255, 255, 255, .98);
            opacity: .85;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        /* Keep the first KPI readable without changing the other KPI cards. */
        .dashboard-workspace-page .summary-stack > .kpi-card:first-child .kpi-value {
            font-size: clamp(34px, 7cqi, 38px);
            line-height: 1.1;
        }

        .dashboard-workspace-page .summary-stack > .kpi-card:first-child .kpi-description {
            font-size: clamp(13px, 3.8cqi, 14px);
            line-height: 1.45;
        }

        /* Match the first KPI's readability while keeping the second KPI slightly smaller. */
        .dashboard-workspace-page .summary-stack > .kpi-card:nth-child(2) .kpi-value {
            font-size: clamp(32px, 6.5cqi, 36px);
            line-height: 1.1;
        }

        .dashboard-workspace-page .summary-stack > .kpi-card:nth-child(2) .kpi-description {
            font-size: clamp(13px, 3.8cqi, 14px);
            line-height: 1.45;
        }

        /* Keep the third KPI dominant while giving its calculation room to read. */
        .dashboard-workspace-page .summary-stack > .kpi-card:nth-child(3) .kpi-progress-value {
            font-size: clamp(32px, 6.5cqi, 36px);
            line-height: 1.1;
        }

        .dashboard-workspace-page .summary-stack > .kpi-card:nth-child(3) .kpi-calculation {
            font-size: clamp(13px, 3.8cqi, 14px);
            line-height: 1.45;
        }

        .dashboard-workspace-page .kpi-progress-track {
            width: 100%;
            height: clamp(12px, .75vw, 16px);
            margin-top: 10px;
            border-radius: 999px;
            overflow: visible;
        }

        .dashboard-workspace-page .kpi-card .progress-label {
            min-width: 0;
        }

        @media (max-width: 900px) {
            .dashboard-workspace-page .acquisition-header {
                grid-template-columns: 1fr;
            }

            .dashboard-workspace-page .dashboard-header-meta {
                justify-content: flex-start;
                flex-wrap: wrap;
                padding: 2px 0;
            }

            .dashboard-workspace-page .acquisition-body {
                flex: 0 0 auto;
                grid-template-columns: minmax(0, 1fr);
                align-items: start;
            }

            .dashboard-workspace-page .acquisition-panel {
                overflow: auto;
            }

            .dashboard-workspace-page .summary-stack {
                grid-template-rows: none;
                grid-auto-rows: minmax(clamp(150px, 17vh, 220px), max-content);
            }
        }

        @media (max-width: 480px) {
            .dashboard-workspace-page .summary-card,
            .dashboard-workspace-page .progress-card {
                justify-content: flex-start;
            }

            .dashboard-workspace-page .progress-label {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        .dashboard-workspace-page .quarter-chart {
            min-height: 0;
            padding: 10px 12px 8px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: var(--app-radius-sm, 8px);
        }

        .dashboard-workspace-page .chart-top {
            flex: none;
            margin-bottom: 8px;
        }

        .dashboard-workspace-page .s-curve-chart {
            flex: 1;
            min-height: clamp(150px, 32vh, 300px);
            padding: 0;
        }

        .dashboard-workspace-page .s-curve-chart canvas {
            width: 100% !important;
            height: 100% !important;
            min-height: 0;
        }

        .dashboard-workspace-page .s-curve-svg {
            width: 100%;
            height: 100%;
            min-height: 0;
        }

        .dashboard-workspace-page .curve-note {
            flex: none;
            margin-top: 4px;
            font-size: 0.78rem;
            line-height: 1.25;
        }

        .dashboard-workspace-page .footer {
            flex: none;
            margin-top: 4px;
            font-size: 0.82rem;
            line-height: 1.2;
        }

        @media (min-width: 1600px) {
            .dashboard-workspace-page .acquisition-body {
                grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1.64fr);
            }
        }

        @media (max-width: 1180px) {
            .dashboard-workspace-page .app-shell {
                grid-template-columns: 240px minmax(0, 1fr);
            }

            .dashboard-workspace-page .sidebar {
                width: 240px;
                min-width: 240px;
            }

            .dashboard-workspace-page .acquisition-body {
                grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1.52fr);
            }
        }

        .classic-dashboard-page .content-shell {
            overflow-x: hidden;
            overflow-y: auto;
        }

        .classic-welcome {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 22px;
            margin-top: 12px;
            padding: 22px 24px;
            border-left: 4px solid var(--orange);
            background:
                linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.93));
        }

        .classic-eyebrow,
        .classic-section-head span,
        .classic-panel-head span {
            color: var(--blue);
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.11em;
            text-transform: uppercase;
        }

        .classic-welcome h1 {
            margin: 5px 0 7px;
            color: #173f6d;
            font-size: clamp(1.35rem, 2.2vw, 2rem);
            line-height: 1.15;
        }

        .classic-welcome p {
            max-width: 720px;
            margin: 0;
            color: var(--muted);
            line-height: 1.5;
        }

        .classic-updated {
            flex: none;
            padding: 7px 10px;
            border: 1px solid rgba(47, 131, 218, 0.2);
            border-radius: 999px;
            color: #47627f;
            background: rgba(255, 255, 255, 0.78);
            font-size: 0.76rem;
            font-weight: 700;
        }

        .classic-section {
            margin-top: 14px;
        }

        .classic-section-head,
        .classic-panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .classic-section-head {
            margin-bottom: 10px;
            padding: 0 2px;
        }

        .classic-section-head h2,
        .classic-panel-head h2 {
            margin: 4px 0 0;
            color: #1d456f;
            font-size: 1.08rem;
        }

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

        .classic-summary-card {
            position: relative;
            min-height: 112px;
            padding: 16px 18px;
            overflow: hidden;
            border-top: 3px solid var(--blue);
            background: rgba(255, 255, 255, 0.95);
        }

        .classic-summary-card::after {
            content: "";
            position: absolute;
            right: -26px;
            bottom: -34px;
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: rgba(47, 131, 218, 0.07);
        }

        .summary-green { border-top-color: var(--green); }
        .summary-purple { border-top-color: var(--purple); }
        .summary-orange { border-top-color: var(--orange); }

        .classic-summary-card span,
        .classic-summary-card small {
            position: relative;
            z-index: 1;
            display: block;
            color: var(--muted);
        }

        .classic-summary-card span {
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .classic-summary-card strong {
            position: relative;
            z-index: 1;
            display: block;
            margin-top: 9px;
            color: #173f6d;
            font-size: 2rem;
            line-height: 1;
        }

        .classic-summary-card small {
            margin-top: 8px;
            font-size: 0.7rem;
        }

        .classic-dashboard-grid,
        .classic-bottom-grid {
            display: grid;
            gap: 14px;
            margin-top: 14px;
        }

        .classic-dashboard-grid {
            grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        }

        .classic-bottom-grid {
            grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        }

        .classic-panel {
            min-width: 0;
            padding: 18px 20px;
            background: rgba(255, 255, 255, 0.95);
        }

        .classic-panel-head {
            padding-bottom: 13px;
            border-bottom: 1px solid rgba(112, 145, 180, 0.18);
        }

        .classic-quick-links {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 9px;
            padding-top: 14px;
        }

        .classic-quick-links a {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 48px;
            padding: 9px 11px;
            border: 1px solid rgba(47, 131, 218, 0.16);
            border-radius: 8px;
            color: #2a537e;
            background: #f5faff;
            font-size: 0.76rem;
            font-weight: 700;
            text-decoration: none;
        }

        .classic-quick-links a:hover,
        .classic-quick-links a:focus-visible {
            border-color: rgba(47, 131, 218, 0.4);
            background: #edf6ff;
            outline: none;
        }

        .classic-quick-links .nav-icon {
            flex: none;
            width: 19px;
            height: 19px;
        }

        .classic-workflow-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding-top: 14px;
        }

        .classic-workflow-list > div {
            display: grid;
            grid-template-columns: 8px auto auto;
            align-items: center;
            gap: 7px;
            padding: 7px 9px;
            border: 1px solid rgba(112, 145, 180, 0.15);
            border-radius: 999px;
            color: #365978;
            background: #f8fbff;
            font-size: 0.7rem;
        }

        .classic-workflow-list b {
            color: #1f609e;
        }

        .classic-stage-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--blue);
        }

        .workflow-awarded { background: var(--orange); }
        .workflow-sign-contract { background: var(--purple); }
        .workflow-kom { background: var(--green); }
        .workflow-boq { background: var(--amber); }
        .workflow-completed { background: #2d8a6e; }

        .classic-activity-list {
            display: grid;
            gap: 11px;
            padding-top: 14px;
        }

        .classic-activity-item {
            display: grid;
            grid-template-columns: 9px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
        }

        .classic-activity-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--blue);
            box-shadow: 0 0 0 4px rgba(47, 131, 218, 0.1);
        }

        .classic-activity-item strong,
        .classic-activity-item small {
            display: block;
        }

        .classic-activity-item strong {
            color: #294766;
            font-size: 0.78rem;
        }

        .classic-activity-item small,
        .classic-activity-item time {
            color: var(--muted);
            font-size: 0.69rem;
        }

        .classic-marketing-summary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            padding-top: 14px;
        }

        .classic-marketing-summary > div {
            padding: 12px;
            border: 1px solid rgba(112, 145, 180, 0.15);
            border-radius: 8px;
            background: #f7fbff;
        }

        .classic-marketing-summary span,
        .classic-marketing-summary strong {
            display: block;
        }

        .classic-marketing-summary span {
            color: var(--muted);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .classic-marketing-summary strong {
            margin-top: 8px;
            color: #214c78;
            font-size: 1.25rem;
        }

        .classic-reminder-list {
            display: grid;
            gap: 9px;
            padding-top: 14px;
        }

        .classic-reminder {
            display: grid;
            grid-template-columns: 9px minmax(0, 1fr);
            gap: 10px;
            padding: 10px 12px;
            border: 1px solid rgba(112, 145, 180, 0.15);
            border-radius: 8px;
            background: #f8fbff;
        }

        .classic-reminder > span {
            width: 9px;
            height: 9px;
            margin-top: 4px;
            border-radius: 50%;
            background: var(--blue);
        }

        .reminder-warning > span { background: var(--orange); }
        .reminder-success > span { background: var(--green); }
        .reminder-danger > span { background: var(--red); }

        .classic-reminder strong {
            color: #294766;
            font-size: 0.76rem;
        }

        .classic-reminder p {
            margin: 3px 0 0;
            color: var(--muted);
            font-size: 0.7rem;
            line-height: 1.4;
        }

        @media (max-width: 1180px) {
            .classic-project-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 820px) {
            .classic-welcome {
                align-items: flex-start;
                flex-direction: column;
            }

            .classic-dashboard-grid,
            .classic-bottom-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 620px) {
            .classic-project-summary,
            .classic-quick-links,
            .classic-marketing-summary {
                grid-template-columns: 1fr;
            }
        }

.sidebar-session-card { margin: 12px 14px 18px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); }
.sidebar-session-identity { display: grid; gap: 3px; min-width: 0; color: #fff; }
.sidebar-session-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-session-identity span { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.sidebar-logout { width: 100%; margin-top: 10px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sidebar-logout:hover { background: rgba(255,255,255,.12); }
.sidebar-session-card form { display: flex; justify-content: flex-end; width: 100%; }
.sidebar-session-card .sidebar-logout { width: auto; }

/* Shared account menu used by dashboard and page headers. */
.dashboard-workspace-page .content-shell,
.dashboard-workspace-page .hero { overflow: visible; }
.account-menu { position: relative; z-index: 5; flex: 0 0 auto; overflow: visible; pointer-events: auto; }
.page-head .account-menu { margin-left: auto; }
.top-cards .account-menu { position: absolute; top: 8px; right: 230px; }
.hero-account-menu { position: absolute; top: 12px; right: 12px; z-index: 5; }
.hero-header-actions { position: absolute; top: 10px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.hero-header-actions .hero-account-menu { position: static; }
.central-dashboard-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 12px; border: 1px solid #c9dced; border-radius: 9px; background: rgba(255, 255, 255, .92); color: #1767af; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(25, 59, 96, .08); }
.central-dashboard-link:hover, .central-dashboard-link:focus-visible { border-color: #1767af; background: #eef6fd; outline: none; }
.central-dashboard-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-toggle { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px 5px 6px; border: 1px solid #d7e3f0; border-radius: 9px; background: #fff; color: #19324d; cursor: pointer; pointer-events: auto; }
.account-menu-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #1767af; color: #fff; font-size: 12px; font-weight: 800; }
.account-menu-copy { display: grid; min-width: 0; text-align: left; }
.account-menu-copy strong, .account-menu-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-copy strong { max-width: 120px; font-size: 12px; }
.account-menu-copy small { color: #748aa3; font-size: 10px; font-weight: 700; }
.account-menu-chevron { color: #56718d; font-size: 16px; line-height: 1; }
.account-menu-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; display: grid; min-width: 170px; padding: 6px; border: 1px solid #d7e3f0; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(25, 59, 96, .16); overflow: visible; pointer-events: auto; }
.account-menu-dropdown[hidden] { display: none; }
.account-menu-dropdown button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #234767; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.account-menu-dropdown button:hover { background: #eef6fd; }
.account-menu-dropdown a { width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 7px; color: #234767; font-size: 12px; text-align: left; text-decoration: none; }
.account-menu-dropdown a:hover { background: #eef6fd; }
.account-menu-dropdown form { margin: 0; }
.account-menu-dropdown form button { color: #b4313f; }
@media (max-width: 760px) {
    .page-head .account-menu { margin-left: 0; }
    .top-cards .account-menu { top: 8px; right: 12px; }
    .hero-account-menu { top: 10px; right: 10px; }
    .hero-header-actions { top: 10px; right: 10px; left: 10px; justify-content: flex-end; }
    .central-dashboard-link { min-height: 38px; padding: 5px 9px; font-size: 11px; }
}
