/* ==========================================================================
   INFOPATH V3 — PREMIUM LIQUID GLASS DASHBOARD
   True Transparent Optical Liquid Glass Cards (Aurora Visible Through Cards),
   Refractive Prism Rims, Cursor-Tracking Specular Reflection, Liquid Glass
   Bars, Liquid Progress Ring, and 3D Water-Droplet KPI Icons.
   ========================================================================== */
.ip-dashboard {
    container: ip-dashboard / inline-size;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.ip-dash-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#tong-quan-du-lieu,
#ip-dashboard-competencies,
#ip-dashboard-source {
    scroll-margin-block-start: 5.2rem;
}

/* ==========================================================================
   ROW 1: COMPACT GREETING BAR (PRESERVES CLEAN V2 LAYOUT)
   ========================================================================== */

.ip-dash-greeting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    min-height: 64px;
    padding: 4px 4px 2px;
}

.ip-dash-greeting-copy h1 {
    margin: 0;
    color: #F1FAFF;
    font-size: clamp(1.55rem, 2.2vw, 1.92rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-shadow: 0 2px 16px rgba(4, 18, 30, 0.42);
}

.ip-dash-greeting-copy p {
    margin: 4px 0 0;
    color: #CDEBF7;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.ip-dash-greeting-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ip-shell .ip-dash-glass-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(165, 243, 252, 0.36);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(231, 248, 255, 0.16), rgba(11, 41, 64, 0.42));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 10px 24px rgba(4, 18, 30, 0.28), inset 0 1.5px 1px rgba(255, 255, 255, 0.52);
    color: #FFFFFF;
    font: 600 0.84rem/1.2 var(--ip-font);
    cursor: pointer;
    transition: background-color var(--ip-motion-fast), border-color var(--ip-motion-fast), transform var(--ip-motion-fast), box-shadow var(--ip-motion-fast);
}

.ip-shell .ip-dash-glass-pill:hover {
    border-color: #FFFFFF;
    background: linear-gradient(145deg, rgba(165, 243, 252, 0.28), rgba(20, 155, 159, 0.46));
    transform: translateY(-2.5px);
    box-shadow: var(--shadow-cyan), inset 0 1.5px 1px rgba(255, 255, 255, 0.78);
}

.ip-dash-glass-pill .ip-icon {
    width: 16px;
    height: 16px;
    color: #A5F3FC;
}

/* ==========================================================================
   TRUE LIQUID GLASS CARD (TRANSPARENT OPTICAL LENS — AURORA SHINES THROUGH)
   ========================================================================== */

.ip-glass-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid rgba(165, 230, 245, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(
            152deg,
            rgba(231, 248, 255, 0.11) 0%,
            rgba(16, 47, 67, 0.56) 40%,
            rgba(16, 47, 67, 0.68) 76%,
            rgba(8, 31, 48, 0.78) 100%
        );
    backdrop-filter: blur(20px) saturate(155%) brightness(1.02);
    -webkit-backdrop-filter: blur(20px) saturate(155%) brightness(1.02);
    box-shadow:
        0 18px 42px rgba(3, 14, 24, 0.32),
        inset 0 1px 0 rgba(231, 248, 255, 0.28),
        inset 0 -8px 18px rgba(72, 220, 233, 0.08);
    color: #F1FAFF;
}

/* Soft Optical Refractive Prism Rim (Refined — Subtle Edge Depth) */
.ip-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.2px;
    border-radius: inherit;
    background: var(--lg-rim-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.62;
    transition: opacity var(--ip-motion);
}

/* Soft Wet-Glass Specular Reflection + Cursor-Tracking Light (Reduced Glare) */
.ip-glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background:
        radial-gradient(105% 40% at 50% -14%, rgba(231, 248, 255, 0.14) 0%, rgba(165, 243, 252, 0.05) 44%, transparent 72%),
        radial-gradient(240px circle at var(--lg-x, 18%) var(--lg-y, 12%), rgba(165, 243, 252, 0.12) 0%, rgba(72, 220, 233, 0.04) 44%, transparent 72%);
    pointer-events: none;
}

.ip-glass-card > * {
    position: relative;
    z-index: 3;
}

.ip-glass-card:hover::before {
    opacity: 0.80;
}

.ip-glass-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ip-glass-card-head--compact {
    margin-bottom: 10px;
}

.ip-glass-card-head h2 {
    margin: 0;
    color: #F1FAFF;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.ip-glass-card-head p {
    margin: 3px 0 0;
    color: #B4D7E8;
    font-size: 0.79rem;
    line-height: 1.42;
}

.ip-glass-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(165, 243, 252, 0.16);
    font-size: 0.79rem;
    color: #B4D7E8;
}

.ip-glass-card-foot strong {
    color: #FFFFFF;
    font-weight: 700;
}

.ip-analysis .ip-main .ip-glass-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #A5F3FC;
    font-weight: 700;
    text-decoration: none;
}

.ip-analysis .ip-main .ip-glass-card-foot a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ip-glass-card-foot .ip-icon {
    width: 14px;
    height: 14px;
}

/* Liquid Glass Segmented Switcher */
.ip-dash-tabs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(165, 243, 252, 0.28);
    border-radius: 999px;
    background: rgba(7, 28, 44, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
    flex: 0 0 auto;
}

.ip-dash-tabs button {
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #CBE7F4;
    font: 600 0.75rem/1.2 var(--ip-font);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--ip-motion-fast), color var(--ip-motion-fast), border-color var(--ip-motion-fast), box-shadow var(--ip-motion-fast);
}

.ip-dash-tabs button:hover {
    color: #FFFFFF;
}

.ip-dash-tabs button[aria-selected="true"] {
    border-color: rgba(255, 255, 255, 0.56);
    background: linear-gradient(135deg, rgba(20, 155, 159, 0.90), rgba(72, 220, 233, 0.78));
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(72, 220, 233, 0.34), inset 0 1.5px 1px rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   ROW 2: HERO CHARTS (65% LIQUID BARS / 35% LIQUID PROGRESS RING)
   ========================================================================== */

.ip-dash-hero-charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.ip-bar-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 244px;
    padding: 16px 6px 4px;
    margin-bottom: 6px;
}

.ip-bar-stage[hidden] {
    display: none;
}

.ip-bar-gridlines {
    position: absolute;
    inset: 18px 6px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.ip-bar-gridlines > span {
    display: block;
    border-top: 1px dashed rgba(165, 243, 252, 0.16);
}

.ip-bar-gridlines--labeled .ip-grid-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.ip-bar-gridlines--labeled i {
    font-style: normal;
    color: #A8C8D9;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ip-bar-gridlines--labeled span {
    border-top: 1px dashed rgba(165, 243, 252, 0.16);
}

.ip-col-chart {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(10px, 1.8vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-col-chart--themes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ip-col-chart--grades {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline-start: 34px;
}

.ip-col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    outline: none;
}

/* Liquid Glass Column Well */
.ip-col-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 194px;
    padding: 28px 6px 4px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(231, 248, 255, 0.09) 0%, rgba(7, 28, 44, 0.22) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: background-color var(--ip-motion-fast), border-color var(--ip-motion-fast);
}

.ip-col-item:hover .ip-col-track,
.ip-col-item:focus-visible .ip-col-track {
    border-color: rgba(165, 243, 252, 0.42);
    background: linear-gradient(180deg, rgba(165, 243, 252, 0.16) 0%, rgba(20, 155, 159, 0.18) 100%);
}

/* Sculpted Translucent Liquid Glass Bar with Glossy Specular Streak */
.ip-col-bar {
    position: relative;
    width: min(74%, 52px);
    height: max(12%, var(--bar-h, 0%));
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 14px 14px 7px 7px;
    background: linear-gradient(180deg, rgba(165, 243, 252, 0.92) 0%, rgba(72, 220, 233, 0.80) 42%, rgba(20, 155, 159, 0.72) 100%);
    box-shadow:
        0 10px 24px rgba(72, 220, 233, 0.34),
        inset 0 2px 3px rgba(255, 255, 255, 0.88),
        inset 0 -8px 16px rgba(7, 28, 44, 0.32);
    transform-origin: bottom;
    transition: transform 440ms cubic-bezier(.22, .68, .28, 1), filter var(--ip-motion-fast), box-shadow var(--ip-motion-fast);
}

/* Vertical Curved Wet-Glass Specular Highlight Inside Every Liquid Bar */
.ip-col-bar::before {
    content: "";
    position: absolute;
    inset: 6px auto 8px 6px;
    width: 24%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.14) 76%, transparent 100%);
    pointer-events: none;
}

.ip-col-chart--grades .ip-col-bar {
    width: min(56%, 72px);
}

.ip-col-bar--t1 { background: linear-gradient(180deg, rgba(165, 243, 252, 0.94) 0%, rgba(72, 220, 233, 0.82) 48%, rgba(20, 155, 159, 0.78) 100%); }
.ip-col-bar--t2 { background: linear-gradient(180deg, rgba(145, 238, 248, 0.92) 0%, rgba(56, 202, 222, 0.80) 48%, rgba(18, 128, 152, 0.78) 100%); }
.ip-col-bar--t3 { background: linear-gradient(180deg, rgba(132, 232, 246, 0.92) 0%, rgba(44, 192, 214, 0.80) 48%, rgba(18, 108, 142, 0.78) 100%); }
.ip-col-bar--t4 { background: linear-gradient(180deg, rgba(142, 246, 224, 0.92) 0%, rgba(45, 212, 191, 0.80) 48%, rgba(16, 155, 138, 0.78) 100%); }
.ip-col-bar--t5 { background: linear-gradient(180deg, rgba(154, 232, 252, 0.94) 0%, rgba(62, 196, 232, 0.82) 48%, rgba(18, 114, 154, 0.80) 100%); }
.ip-col-bar--t6 { background: linear-gradient(180deg, rgba(146, 222, 250, 0.92) 0%, rgba(58, 174, 220, 0.80) 48%, rgba(18, 86, 132, 0.82) 100%); }

.ip-col-bar--g3 { background: linear-gradient(180deg, rgba(165, 243, 252, 0.94) 0%, rgba(72, 220, 233, 0.82) 52%, rgba(20, 155, 159, 0.80) 100%); }
.ip-col-bar--g4 { background: linear-gradient(180deg, rgba(134, 244, 214, 0.94) 0%, rgba(36, 206, 168, 0.82) 52%, rgba(16, 162, 124, 0.80) 100%); }
.ip-col-bar--g5 { background: linear-gradient(180deg, rgba(148, 224, 250, 0.94) 0%, rgba(62, 182, 224, 0.82) 52%, rgba(18, 102, 144, 0.82) 100%); }

.ip-col-item:hover .ip-col-bar,
.ip-col-item:focus-visible .ip-col-bar {
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(72, 220, 233, 0.48), inset 0 2px 3px rgba(255, 255, 255, 0.96);
}

.ip-col-val {
    position: absolute;
    inset: auto 0 calc(100% + 6px);
    text-align: center;
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(4, 18, 30, 0.45);
}

.ip-col-label {
    display: grid;
    justify-items: center;
    text-align: center;
    line-height: 1.25;
}

.ip-col-label strong {
    color: #F1FAFF;
    font-size: 0.78rem;
    font-weight: 700;
}

.ip-col-label small {
    color: #A8C8D9;
    font-size: 0.69rem;
    font-weight: 500;
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Liquid Progress Ring (Right 35%) */
.ip-donut-stage {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding-block: 4px 10px;
}

.ip-donut-stage[hidden] {
    display: none;
}

.ip-donut-ring {
    position: relative;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(231, 248, 255, 0.14), rgba(7, 28, 44, 0.24) 68%, transparent 100%);
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.34), 0 10px 26px rgba(3, 14, 24, 0.30);
}

.ip-donut-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 14px rgba(72, 220, 233, 0.42));
}

.ip-donut-ring circle {
    fill: none;
    stroke-width: 13;
    stroke-linecap: round;
}

.ip-donut-track {
    stroke: rgba(165, 243, 252, 0.16);
}

.ip-donut-arc {
    transition: stroke-dasharray 680ms cubic-bezier(.22, .68, .28, 1);
}

.ip-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.ip-donut-center strong {
    color: #FFFFFF;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(4, 18, 30, 0.42);
}

.ip-donut-center strong small {
    font-size: 0.6em;
    color: #A5F3FC;
    margin-inline-start: 1px;
}

.ip-donut-center > span {
    margin-top: 2px;
    color: #CBE7F4;
    font-size: 0.72rem;
    font-weight: 600;
}

.ip-donut-legend {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0;
}

.ip-donut-legend > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    color: #B4D7E8;
}

.ip-donut-legend dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ip-donut-legend dd {
    margin: 0;
    color: #FFFFFF;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ip-donut-legend-total {
    padding-top: 6px;
    border-top: 1px solid rgba(165, 243, 252, 0.16);
    font-weight: 600;
}

.ip-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8CB6C8;
}

.ip-dot--cyan { background: #48DCE9; box-shadow: 0 0 8px rgba(72, 220, 233, 0.7); }
.ip-dot--success { background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.65); }
.ip-dot--warning { background: #FBBF24; }
.ip-dot--danger { background: #F87171; }
.ip-dot--muted { background: #8CB6C8; }

/* ==========================================================================
   ROW 3 & ROW 4: LIQUID GLASS KPI CARDS + 3D WATER-DROPLET ICONS
   ========================================================================== */

.ip-kpi-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.ip-kpi-card {
    padding: 16px 18px;
    border-radius: 20px;
    gap: 6px;
    transition: transform var(--ip-motion), box-shadow var(--ip-motion), border-color var(--ip-motion);
}

.ip-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(165, 243, 252, 0.48);
    box-shadow: var(--lg-shadow-hover);
}

.ip-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ip-kpi-label {
    color: #E7F8FF;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.32;
}

/* 3D Convex Water Droplet Icon Container */
.ip-kpi-circle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 50%;
    background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.82) 0%, rgba(165, 243, 252, 0.36) 28%, rgba(20, 155, 159, 0.38) 66%, rgba(7, 28, 44, 0.46) 100%);
    box-shadow:
        0 8px 18px rgba(3, 14, 24, 0.34),
        inset 0 2px 3px rgba(255, 255, 255, 0.78),
        inset 0 -5px 10px rgba(72, 220, 233, 0.42);
    color: #FFFFFF;
    overflow: hidden;
}

.ip-kpi-circle::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 7px;
    width: 34%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    transform: rotate(-28deg);
    filter: blur(0.5px);
    pointer-events: none;
}

.ip-kpi-circle--cyan { background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.82) 0%, rgba(72,220,233,0.48) 32%, rgba(18,86,117,0.60) 100%); }
.ip-kpi-circle--teal { background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.80) 0%, rgba(20,155,159,0.56) 34%, rgba(7,28,44,0.62) 100%); }
.ip-kpi-circle--ocean { background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.78) 0%, rgba(56,162,212,0.52) 34%, rgba(11,41,64,0.66) 100%); }
.ip-kpi-circle--success { background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.80) 0%, rgba(16,185,129,0.56) 34%, rgba(6,78,59,0.66) 100%); }
.ip-kpi-circle--warning { background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.80) 0%, rgba(245,158,11,0.54) 34%, rgba(120,53,15,0.62) 100%); }

.ip-kpi-value {
    margin-top: 2px;
    color: #FFFFFF;
    font-size: clamp(1.9rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    line-height: 1.12;
    text-shadow: 0 2px 14px rgba(4, 18, 30, 0.38);
}

.ip-kpi-value small {
    margin-inline-start: 2px;
    font-size: 0.58em;
    color: #A5F3FC;
}

.ip-kpi-desc {
    margin: 0;
    color: #A8C8D9;
    font-size: 0.77rem;
    line-height: 1.42;
}

/* Verification Summary Card (Row 4 Col 3–4) */
.ip-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
}

.ip-status-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(165, 243, 252, 0.20);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(231, 248, 255, 0.12), rgba(7, 28, 44, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.ip-status-grid dt {
    color: #CBE7F4;
    font-size: 0.77rem;
    font-weight: 600;
}

.ip-status-grid dd {
    margin: 0;
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ROW 5 & ROW 6: QUICK ACCESS, PROGRESS BARS, HEATMAP & SOURCE STRIP
   ========================================================================== */

.ip-dash-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.ip-quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.ip-analysis .ip-main .ip-quick-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(165, 243, 252, 0.24);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(231, 248, 255, 0.14), rgba(7, 28, 44, 0.26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
    color: #F1FAFF;
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--ip-motion-fast), background-color var(--ip-motion-fast), border-color var(--ip-motion-fast), box-shadow var(--ip-motion-fast);
}

.ip-analysis .ip-main .ip-quick-tile:hover {
    transform: translateY(-2.5px);
    background: linear-gradient(145deg, rgba(165, 243, 252, 0.24), rgba(20, 155, 159, 0.32));
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 24px rgba(3, 14, 24, 0.30), inset 0 1.5px 1px rgba(255, 255, 255, 0.62);
    color: #FFFFFF;
}

.ip-analysis .ip-main .ip-quick-tile--ai {
    background: linear-gradient(135deg, rgba(20, 155, 159, 0.42), rgba(72, 220, 233, 0.22));
    border-color: rgba(165, 243, 252, 0.44);
}

.ip-quick-tile > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ip-quick-tile strong {
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.28;
}

.ip-quick-tile > div > span {
    color: #B4D7E8;
    font-size: 0.74rem;
    line-height: 1.35;
}

/* Liquid Progress Bars (Relations & Competencies) */
.ip-bar-list {
    display: grid;
    gap: 11px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.ip-bar-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #CBE7F4;
}

.ip-bar-list-head b,
.ip-bar-list-head strong {
    color: #FFFFFF;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ip-bar-progress {
    display: block;
    width: 100%;
    height: 8px;
    border: 1px solid rgba(165, 243, 252, 0.18);
    border-radius: 999px;
    appearance: none;
    background: rgba(7, 28, 44, 0.36);
    overflow: hidden;
}

.ip-bar-progress::-webkit-progress-bar {
    border-radius: inherit;
    background: rgba(7, 28, 44, 0.36);
}

.ip-bar-progress::-webkit-progress-value {
    border-radius: inherit;
    background: linear-gradient(90deg, #149B9F, #48DCE9, #A5F3FC);
    box-shadow: 0 0 10px rgba(72, 220, 233, 0.55);
}

.ip-bar-progress::-moz-progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #149B9F, #48DCE9, #A5F3FC);
}

.ip-bar-list--comp .ip-bar-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #10B981, #48DCE9);
}

.ip-bar-list--comp .ip-bar-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #10B981, #48DCE9);
}

/* Translucent Liquid Heatmap Matrix */
.ip-dash-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.ip-dash-heatmap {
    width: 100%;
    min-width: 30rem;
    border-collapse: separate;
    border-spacing: 6px;
    text-align: center;
}

.ip-dash-heatmap th,
.ip-dash-heatmap td {
    padding: 10px 6px;
    border: 1px solid rgba(165, 243, 252, 0.18);
    border-radius: 11px;
    text-align: inherit;
}

.ip-dash-heatmap th {
    border-color: transparent;
    color: #CBE7F4;
    font-size: 0.77rem;
    font-weight: 700;
    white-space: nowrap;
}

.ip-dash-heatmap td {
    font-weight: 800;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ip-dash-heatmap tbody th,
.ip-dash-heatmap .ip-dash-heat-total {
    border-color: rgba(165, 243, 252, 0.24);
    background: rgba(231, 248, 255, 0.14);
    color: #FFFFFF;
}

.ip-dashboard .ip-dash-heat--0 { background: rgba(7, 28, 44, 0.30); color: #A8C8D9; }
.ip-dashboard .ip-dash-heat--1 { background: rgba(18, 86, 117, 0.48); color: #F1FAFF; }
.ip-dashboard .ip-dash-heat--2 { background: rgba(20, 134, 152, 0.64); color: #FFFFFF; }
.ip-dashboard .ip-dash-heat--3 { background: rgba(34, 184, 198, 0.78); color: #071C2C; }
.ip-dashboard .ip-dash-heat--4 { background: linear-gradient(135deg, #48DCE9, #A5F3FC); color: #071C2C; box-shadow: 0 4px 14px rgba(72, 220, 233, 0.34), inset 0 1px 0 rgba(255,255,255,0.85); }

.ip-dash-heat-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 6px;
    color: #B4D7E8;
    font-size: 0.74rem;
}

.ip-dash-heat-legend span[aria-hidden] {
    width: 18px;
    height: 11px;
    border: 1px solid rgba(165, 243, 252, 0.30);
    border-radius: 4px;
}

/* Source Strip */
.ip-dash-source-strip {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}

.ip-dash-source-strip h2 {
    margin: 0;
    color: #F1FAFF;
    font-size: 0.92rem;
    font-weight: 700;
}

.ip-dash-source-strip p {
    margin: 3px 0 0;
    color: #B4D7E8;
    font-size: 0.79rem;
    line-height: 1.48;
}

.ip-dash-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(165, 243, 252, 0.28);
    border-radius: 12px;
    background: rgba(7, 28, 44, 0.26);
    color: #B4D7E8;
    font-size: 0.82rem;
}

/* Floating Liquid Glass Tooltip */
.ip-chart-tooltip {
    position: fixed;
    z-index: 60;
    pointer-events: none;
    display: grid;
    gap: 2px;
    max-width: 245px;
    padding: 10px 14px;
    border: 1px solid rgba(165, 243, 252, 0.48);
    border-radius: 15px;
    background: rgba(7, 28, 44, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #FFFFFF;
    box-shadow: 0 16px 36px rgba(3, 14, 24, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.ip-chart-tooltip[hidden] {
    display: none;
}

.ip-chart-tooltip strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
}

.ip-chart-tooltip span {
    font-size: 0.84rem;
    font-weight: 800;
    color: #48DCE9;
}

.ip-chart-tooltip small {
    font-size: 0.71rem;
    color: #CBE7F4;
}

/* ==========================================================================
   RESPONSIVE CONTAINER & MEDIA QUERIES (1920 / 1440 / 1280 / 768 / 390)
   ========================================================================== */

@container ip-dashboard (min-width: 34rem) {
    .ip-kpi-grid--4,
    .ip-kpi-grid--row4,
    .ip-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ip-dash-status-card {
        grid-column: span 2;
    }
}

@container ip-dashboard (min-width: 56rem) {
    .ip-dash-hero-charts {
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    }

    .ip-dash-two-col {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .ip-dash-two-col--wide-left {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    }
}

@container ip-dashboard (min-width: 62rem) {
    .ip-kpi-grid--4,
    .ip-kpi-grid--row4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ip-dash-status-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .ip-glass-card-head {
        flex-wrap: wrap;
    }

    .ip-col-chart--themes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .ip-col-track {
        height: 128px;
    }

    .ip-status-grid {
        grid-template-columns: 1fr;
    }

    .ip-dash-source-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   STAGGERED ENTRANCE & LIQUID RISE ANIMATIONS (REDUCED-MOTION SAFE)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .ip-dashboard[data-motion-ready] .ip-kpi-card,
    .ip-dashboard[data-motion-ready] .ip-dash-status-card {
        animation: ip-card-in 320ms cubic-bezier(.22, .68, .28, 1) both;
        animation-delay: calc(var(--stagger, 0) * 45ms);
    }

    @keyframes ip-card-in {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .ip-dashboard[data-motion-ready] .ip-col-bar:not(.is-visible) {
        transform: scaleY(0.08);
    }

    .ip-dashboard[data-motion-ready] .ip-col-bar.is-visible {
        transform: scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ip-kpi-card,
    .ip-quick-tile,
    .ip-col-bar,
    .ip-donut-arc,
    .ip-dash-glass-pill {
        transition: none !important;
        animation: none !important;
    }
}
