/* index.html — page-specific styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    min-height: 100vh;
    color: #c9d2dc;
    line-height: 1.6;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('../paibg.png') center center / cover no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.app-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.02);
}

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 32px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-exit {
    position: absolute;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.header-exit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    box-shadow: 0 4px 15px rgba(43,139,230,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,139,230,0.4);
}

.content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

.dashboard-intro {
    margin-bottom: 40px;
    max-width: 720px;
}

.dashboard-intro h2 {
    font-size: 22px;
    font-weight: 600;
    color: #f2f5f9;
    margin-bottom: 12px;
}

.dashboard-intro p {
    color: #8c99a8;
    font-size: 16px;
    line-height: 1.6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.workbench-summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
    display: block;
}

.workbench-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.workbench-summary-card .card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.workbench-summary-card .card-icon-wrap .material-icons {
    font-size: 28px;
    color: white;
}

.workbench-summary-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f2f5f9;
    margin-bottom: 10px;
    line-height: 1.3;
}

.workbench-summary-card .card-desc {
    color: #8c99a8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.workbench-summary-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.workbench-summary-card:hover .card-link {
    gap: 10px;
}

.workbench-summary-card .card-link .material-icons {
    font-size: 18px;
}

.prompt-snapshot {
    margin: 16px 0 18px 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.prompt-snapshot-label {
    font-size: 11px;
    font-weight: 600;
    color: #838f9f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.prompt-snapshot-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.prompt-snapshot-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8c99a8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.prompt-snapshot-node .material-icons {
    font-size: 16px;
    opacity: 0.9;
}
.prompt-snapshot-node:hover {
    background: rgba(43,139,230,0.2);
    border-color: rgba(43,139,230,0.4);
    color: #f2f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,139,230,0.2);
}
.prompt-snapshot-node:active {
    transform: translateY(0);
}
.prompt-snapshot-node.strategic { --snap-color: #2b8be6; }
.prompt-snapshot-node.strategic:hover { background: rgba(43,139,230,0.25); border-color: #2b8be6; }
.prompt-snapshot-node.prioritization { --snap-color: #5468f2; }
.prompt-snapshot-node.prioritization:hover { background: rgba(84,104,242,0.25); border-color: #5468f2; }
.prompt-snapshot-node.scenario { --snap-color: #10b981; }
.prompt-snapshot-node.scenario:hover { background: rgba(16, 185, 129, 0.25); border-color: #10b981; }
.prompt-snapshot-node.risk { --snap-color: #ef4444; }
.prompt-snapshot-node.risk:hover { background: rgba(239, 68, 68, 0.25); border-color: #ef4444; }
.prompt-snapshot-node.resource { --snap-color: #f59e0b; }
.prompt-snapshot-node.resource:hover { background: rgba(245, 158, 11, 0.25); border-color: #f59e0b; }

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: #838f9f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section:last-child {
    margin-bottom: 0;
}

/* Toolbox card styles */
.category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #c9d2dc;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(43,139,230,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title .material-icons {
    color: #2b8be6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(43,139,230,0.3);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--gradient);
    box-shadow: 0 8px 24px var(--shadow);
    position: relative;
    overflow: hidden;
}

.card-icon .material-icons {
    color: white;
    font-size: 28px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #c9d2dc;
    margin-bottom: 8px;
}

.card-description {
    color: #8c99a8;
    font-size: 14px;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #a1aab6;
    transition: all 0.3s ease;
    font-size: 20px;
}

.card:hover .card-arrow {
    color: #2b8be6;
    transform: translateX(4px);
}

.card:nth-child(1) { --gradient: linear-gradient(135deg, #2b8be6, #5468f2); --shadow: rgba(43,139,230,0.3); }
.card:nth-child(2) { --gradient: linear-gradient(135deg, #435af1, #ff6b00); --shadow: rgba(67,90,241,0.3); }
.card:nth-child(3) { --gradient: linear-gradient(135deg, #186dc2, #2b8be6); --shadow: rgba(24,109,194,0.3); }
.card:nth-child(4) { --gradient: linear-gradient(135deg, #10b981, #059669); --shadow: rgba(16, 185, 129, 0.3); }
.card:nth-child(5) { --gradient: linear-gradient(135deg, #f59e0b, #d97706); --shadow: rgba(245, 158, 11, 0.3); }
.card:nth-child(6) { --gradient: linear-gradient(135deg, #5468f2, #596ef3); --shadow: rgba(84,104,242,0.3); }
.card:nth-child(7) { --gradient: linear-gradient(135deg, #ef4444, #dc2626); --shadow: rgba(239, 68, 68, 0.3); }
.card:nth-child(8) { --gradient: linear-gradient(135deg, #186dc2, #145da6); --shadow: rgba(24,109,194,0.3); }
.card:nth-child(9) { --gradient: linear-gradient(135deg, #5468f2, #2b8be6); --shadow: rgba(84,104,242,0.3); }
.card:nth-child(10) { --gradient: linear-gradient(135deg, #10b981, #186dc2); --shadow: rgba(16, 185, 129, 0.3); }
.card:nth-child(11) { --gradient: linear-gradient(135deg, #f59e0b, #435af1); --shadow: rgba(245, 158, 11, 0.3); }
.card:nth-child(12) { --gradient: linear-gradient(135deg, #5468f2, #5468f2); --shadow: rgba(84,104,242,0.3); }
.card:nth-child(13) { --gradient: linear-gradient(135deg, #5468f2, #435af1); --shadow: rgba(84,104,242,0.3); }
.card:nth-child(14) { --gradient: linear-gradient(135deg, #186dc2, #10b981); --shadow: rgba(24,109,194,0.3); }
.card:nth-child(15) { --gradient: linear-gradient(135deg, #ff6b00, #ef4444); --shadow: rgba(255,107,0,0.3); }
.card:nth-child(16) { --gradient: linear-gradient(135deg, #1666b6, #3e92e7); --shadow: rgba(22,102,182,0.3); }
.card:nth-child(17) { --gradient: linear-gradient(135deg, #f59e0b, #ff6b00); --shadow: rgba(245, 158, 11, 0.3); }

/* Drag-and-drop reordering */
.workbench-summary-card[draggable="true"],
.card[draggable="true"] {
    cursor: grab;
}
.workbench-summary-card[draggable="true"]:active,
.card[draggable="true"]:active {
    cursor: grabbing;
}
.workbench-summary-card.dragging,
.card.dragging {
    opacity: 0.45;
    transform: scale(0.98);
    border-color: rgba(43,139,230,0.6) !important;
    box-shadow: 0 25px 60px rgba(43,139,230,0.35) !important;
}
.reorder-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 12px;
    color: #838f9f;
}
.reorder-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(43,139,230,0.08);
    border: 1px solid rgba(43,139,230,0.2);
    border-radius: 8px;
    color: #9dc8f3;
}
.reorder-hint .material-icons {
    font-size: 14px;
}
.reorder-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #8c99a8;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.2s ease;
}
.reorder-reset:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f2f5f9;
    border-color: rgba(255, 255, 255, 0.2);
}
.reorder-reset .material-icons {
    font-size: 14px;
}

.dashboard-grid.drop-target,
.cards-grid.drop-target {
    outline: 2px dashed rgba(43,139,230,0.45);
    outline-offset: 6px;
    border-radius: 12px;
    transition: outline-color 0.15s ease;
}

/* ================= WORKSPACE HERO (wx-) ================= */
:root {
    --wx-blue: #2b8be6; --wx-violet: #5468f2; --wx-orange: #ff6b00; --wx-amber: #f59e0b;
    --wx-green: #10b981; --wx-purple: #596ef3; --wx-red: #ef4444;
    --wx-glass: rgba(24,31,41,0.55); --wx-line: rgba(140,153,168,0.16);
    --wx-text: #edf5fd; --wx-muted: #8c99a8;
}
.wx-hero {
    position: relative; overflow: hidden; border-radius: 28px; margin-bottom: 20px;
    padding: 26px 40px 24px; isolation: isolate;
    background: radial-gradient(120% 140% at 0% 0%, rgba(43,139,230,.20) 0%, rgba(11,14,19,0) 50%),
                radial-gradient(90% 120% at 100% 100%, rgba(84,104,242,.22) 0%, rgba(11,14,19,0) 55%),
                linear-gradient(160deg, rgba(26,34,46,.92), rgba(15,20,27,.94));
    border: 1px solid rgba(131,147,246,.22);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.wx-hero::before {
    content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; z-index: 2; pointer-events: none;
    background: conic-gradient(from var(--wx-angle, 0deg), transparent 0 70%, rgba(43,139,230,.9) 80%, rgba(84,104,242,.9) 88%, rgba(255,107,0,.8) 94%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: wxSpin 8s linear infinite;
}
@property --wx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes wxSpin { to { --wx-angle: 360deg; } }
#wx-constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.wx-blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -2; opacity: .55; animation: wxFloat 16s ease-in-out infinite; }
.wx-blob.b1 { width: 420px; height: 420px; background: #1f74c9; top: -160px; left: 18%; }
.wx-blob.b2 { width: 360px; height: 360px; background: #4255d9; bottom: -180px; right: 8%; animation-delay: -6s; }
.wx-blob.b3 { width: 240px; height: 240px; background: #d9580a; top: 30%; right: 38%; opacity: .18; animation-delay: -11s; }
@keyframes wxFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,25px) scale(.95); } }

.wx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.wx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.35); color: #a7f3d0;
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.wx-live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: wxPing 1.8s infinite; }
@keyframes wxPing { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); } 80%,100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
.wx-title { margin: 14px 0 10px; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.wx-grad {
    background: linear-gradient(100deg, #5aa6ee 0%, #8c9bf7 35%, #7283f4 60%, #ff9933 85%, #5aa6ee 100%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: wxShine 6s linear infinite;
}
@keyframes wxShine { to { background-position: 220% center; } }
.wx-sub { font-size: 15px; line-height: 1.6; color: #c9d2dc; max-width: 600px; }
.wx-sub strong { color: #fff; font-weight: 600; }
.wx-rec {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(43,139,230,.18), rgba(84,104,242,.18)); border: 1px solid rgba(84,104,242,.4);
    font-size: 13.5px; color: #d8ddfc;
}
.wx-rec b { color: #fff; }
.wx-rec .material-icons-outlined { font-size: 18px; color: #fff; }

.wx-countdown { display: flex; gap: 8px; margin: 16px 0 18px; align-items: stretch; }
.wx-cd-label { display: flex; flex-direction: column; justify-content: center; font-size: 12px; color: var(--wx-muted); line-height: 1.35; padding-right: 8px; }
.wx-cd-label strong { color: #fff; font-size: 13px; }
.wx-cd-cell { min-width: 60px; padding: 6px 8px; text-align: center; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--wx-line); backdrop-filter: blur(10px); }
.wx-cd-num { display: block; font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.wx-cd-unit { font-size: 11px; color: var(--wx-muted); text-transform: uppercase; letter-spacing: .1em; }

.wx-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.wx-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 12px;
    font-size: 14px; font-weight: 600; text-decoration: none; color: #fff; transition: transform .25s, box-shadow .25s, background .25s; overflow: hidden;
}
.wx-btn .material-icons-outlined { font-size: 20px; color: #fff; transition: transform .25s; }
.wx-btn:hover .material-icons-outlined { transform: translateX(4px); }
.wx-btn-primary { background: linear-gradient(135deg, #2b8be6, #5468f2); box-shadow: 0 12px 30px -8px rgba(84,104,242,.7); }
.wx-btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: wxSweep 3.6s ease-in-out infinite 1.5s; }
@keyframes wxSweep { 0% { left: -60%; } 40%,100% { left: 130%; } }
.wx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(84,104,242,.85); }
.wx-btn-ghost { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.wx-btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* Capital orbit */
.wx-orbit { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1; margin: 0 auto; }
.wx-orbit svg { width: 100%; height: 100%; overflow: visible; }
.wx-ring-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 26; }
.wx-seg { fill: none; stroke-width: 26; stroke-linecap: butt; transition: stroke-dasharray 1.6s cubic-bezier(.22,1,.36,1), stroke-width .3s, opacity .3s; cursor: pointer; }
.wx-seg:hover, .wx-seg.hot { stroke-width: 34; }
.wx-orbit.dim .wx-seg:not(.hot) { opacity: .35; }
.wx-spin-slow { transform-origin: 220px 220px; animation: wxRot 40s linear infinite; }
.wx-spin-rev { transform-origin: 220px 220px; animation: wxRot 26s linear infinite reverse; }
@keyframes wxRot { to { transform: rotate(360deg); } }
.wx-orbit-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.wx-oc-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wx-muted); }
.wx-oc-value { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wx-oc-sub { margin-top: 4px; font-size: 12px; color: #a7f3d0; display: inline-flex; align-items: center; gap: 4px; }
.wx-oc-sub .material-icons-outlined { font-size: 16px; color: #fff; }
.wx-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.wx-leg {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,.035); border: 1px solid var(--wx-line); transition: background .2s, border-color .2s, transform .2s;
}
.wx-leg:hover, .wx-leg.hot { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.wx-leg i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.wx-leg span { font-size: 12.5px; color: #d8e9fa; line-height: 1.25; }
.wx-leg em { font-style: normal; margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* KPI strip */
.wx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.wx-kpi {
    position: relative; overflow: hidden; padding: 22px 22px 18px; border-radius: 20px;
    background: var(--wx-glass); border: 1px solid var(--wx-line); backdrop-filter: blur(18px);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.wx-kpi:hover { transform: translateY(-4px); border-color: rgba(131,147,246,.45); box-shadow: 0 20px 40px -20px rgba(84,104,242,.6); }
.wx-kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--kc, linear-gradient(90deg,#2b8be6,#5468f2)); opacity: .9; }
.wx-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wx-kpi-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wx-muted); }
.wx-kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--kc); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; font-family: inherit; }
.wx-kpi-ic-wrap { position: relative; display: flex; align-items: center; }
.wx-kpi-ic-wrap:hover .wx-kpi-ic, .wx-kpi-ic:focus-visible { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 8px 18px -6px rgba(0,0,0,.6); outline: none; }
.wx-pill {
    position: absolute; right: 100%; top: 50%; margin-right: 0; padding: 6px 11px 6px 12px; transform: translate(8px,-50%) scale(.95);
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(21,27,36,.92); backdrop-filter: blur(10px); color: #fff; font: 600 12px/1 Inter, sans-serif; cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.wx-pill::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 12px; }
.wx-pill .material-icons-outlined { font-size: 14px; color: #fff; }
.wx-kpi-ic-wrap:hover .wx-pill, .wx-kpi-ic-wrap:focus-within .wx-pill { opacity: 1; pointer-events: auto; transform: translate(-10px,-50%) scale(1); }
.wx-pill:hover { background: linear-gradient(135deg, #2b8be6, #5468f2); border-color: transparent; }

/* KPI detail modal */
.wx-modal-bg { position: fixed; inset: 0; z-index: 10000; background: rgba(9,12,16,.62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.wx-modal-bg.open { opacity: 1; pointer-events: auto; }
.wx-modal {
    width: min(680px, 100%); max-height: min(82vh, 760px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
    background: linear-gradient(160deg, rgba(28,37,50,.98), rgba(16,21,28,.98)); border: 1px solid rgba(131,147,246,.3);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,.8); transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.wx-modal-bg.open .wx-modal { transform: none; }
.wx-m-hd { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--wx-line); }
.wx-m-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wx-m-ic .material-icons-outlined { color: #fff; font-size: 24px; }
.wx-m-hd small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wx-muted); }
.wx-m-hd h3 { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.25; }
.wx-m-val { margin-left: auto; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.wx-m-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wx-m-x:hover { background: rgba(255,255,255,.16); }
.wx-m-x .material-icons-outlined { color: #fff; font-size: 20px; }
.wx-m-body { padding: 18px 22px 20px; overflow-y: auto; }
.wx-m-body h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a9b3f8; margin: 18px 0 8px; }
.wx-m-body h4:first-child { margin-top: 0; }
.wx-m-body p { font-size: 13.5px; line-height: 1.6; color: #c9d2dc; }
.wx-formula { padding: 12px 14px; border-radius: 12px; background: rgba(84,104,242,.1); border: 1px solid rgba(131,147,246,.28); font-size: 13.5px; color: #e3f0fc; line-height: 1.55; }
.wx-formula b { color: #fff; }
.wx-m-body table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.wx-m-body th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wx-muted); padding: 8px 10px; border-bottom: 1px solid var(--wx-line); }
.wx-m-body td { padding: 8px 10px; color: #d8e9fa; border-bottom: 1px solid rgba(140,153,168,.08); }
.wx-m-body th.r, .wx-m-body td.r { text-align: right; }
.wx-m-body tr.tot td { font-weight: 700; color: #fff; border-top: 1px solid rgba(140,153,168,.3); border-bottom: 0; }
.wx-m-body td .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.wx-neg { color: #fca5a5 !important; }
.wx-src { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wx-src li { display: flex; gap: 8px; font-size: 13px; color: #c9d2dc; line-height: 1.45; }
.wx-src li .material-icons-outlined { font-size: 16px; color: #fff; opacity: .7; margin-top: 1px; }
.wx-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; margin-left: 6px; vertical-align: 1px; }
.wx-tag.ill { background: rgba(245,158,11,.18); color: #fcd34d; }
.wx-tag.pub { background: rgba(16,185,129,.18); color: #6ee7b7; }
.wx-m-ft { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--wx-line); background: rgba(0,0,0,.18); }
.wx-m-ft > span { font-size: 12px; color: #818d9e; margin-right: auto; }
.wx-m-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: #fff; background: linear-gradient(135deg, #2b8be6, #5468f2); border: 0; cursor: pointer; font-family: inherit; }
.wx-m-btn.ghost { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.wx-m-btn .material-icons-outlined { font-size: 17px; color: #fff; }
@media (max-width: 680px) { .wx-m-val { display: none; } .wx-m-ft { flex-wrap: wrap; } .wx-m-ft > span { flex-basis: 100%; } }
.wx-kpi-ic .material-icons-outlined { font-size: 19px; color: #fff; }
.wx-kpi-val { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wx-kpi-sub { margin-top: 4px; font-size: 13px; color: #c9d2dc; }
.wx-kpi-sub b { color: #6ee7b7; font-weight: 600; }
.wx-spark { display: block; width: 100%; height: 44px; margin-top: 10px; overflow: visible; }
.wx-spark path.line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wx-meter { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); margin-top: 22px; overflow: visible; }
.wx-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.wx-meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #171e27; border-radius: 2px; opacity: .85; }
.wx-meter-tag { position: absolute; top: 14px; transform: translateX(-50%); font-size: 11px; color: var(--wx-muted); white-space: nowrap; }

/* Insight row */
.wx-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.wx-panel {
    position: relative; padding: 22px; border-radius: 20px; background: var(--wx-glass);
    border: 1px solid var(--wx-line); backdrop-filter: blur(18px); display: flex; flex-direction: column;
}
.wx-panel-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wx-panel-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wx-panel-ic .material-icons-outlined { font-size: 20px; color: #fff; }
.wx-panel-hd h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.wx-panel-hd p { font-size: 12.5px; color: var(--wx-muted); }
.wx-panel-hd a { margin-left: auto; font-size: 12.5px; color: #9dc8f3; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.wx-panel-hd a .material-icons-outlined { font-size: 16px; color: #fff; }
.wx-panel-hd a:hover { color: #fff; }

.wx-alt { display: grid; grid-template-columns: 30px 1fr 44px; align-items: center; gap: 10px; padding: 7px 0; }
.wx-alt-id { font-size: 12px; font-weight: 700; color: #c9d2dc; }
.wx-alt-bar { position: relative; height: 26px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.wx-alt-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, rgba(104,117,135,.55), rgba(140,153,168,.55)); transition: width 1.4s cubic-bezier(.22,1,.36,1); overflow: hidden; }
.wx-alt-name { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 8px; z-index: 1; }
.wx-alt-score { font-size: 14px; font-weight: 700; color: #d8e9fa; text-align: right; font-variant-numeric: tabular-nums; }
.wx-alt.win .wx-alt-fill { background: linear-gradient(90deg, #2b8be6, #5468f2); box-shadow: 0 0 20px rgba(84,104,242,.5); }
.wx-alt.win .wx-alt-fill::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: wxSweep 3s ease-in-out infinite 2s; }
.wx-alt.win .wx-alt-score { color: #b8c1fa; }
.wx-alt.win .wx-alt-id { color: #fff; }
.wx-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.2); vertical-align: 1px; }

.wx-risk-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.wx-heat { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 3px; width: 150px; height: 150px; }
.wx-heat .c { border-radius: 4px; }
.wx-heat-axis { font-size: 10.5px; color: var(--wx-muted); text-align: center; margin-top: 6px; }
.wx-rdot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #171e27; transform: translate(-50%,-50%) scale(0); transition: transform .5s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 0 0 2px rgba(21,27,36,.8); }
.wx-rdot.show { transform: translate(-50%,-50%) scale(1); }
.wx-rdot.top { background: #171e27; box-shadow: 0 0 0 2px #ef4444, 0 0 14px rgba(239,68,68,.9); }
.wx-rdot.top::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(239,68,68,.8); animation: wxRipple 2s ease-out infinite; }
@keyframes wxRipple { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.wx-risk-list { display: flex; flex-direction: column; gap: 10px; }
.wx-risk { display: flex; gap: 10px; align-items: flex-start; }
.wx-risk .wx-risk-sev { flex-shrink: 0; min-width: 34px; padding: 3px 0; text-align: center; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ef4444, #ff6b00); }
.wx-risk .wx-risk-sev.m { background: linear-gradient(135deg, #ff6b00, #f59e0b); }
.wx-risk b { display: block; font-size: 13px; color: #fff; font-weight: 600; line-height: 1.3; }
.wx-risk div > span { font-size: 12px; color: var(--wx-muted); line-height: 1.35; }

.wx-tl { position: relative; padding-left: 22px; }
.wx-tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.08); border-radius: 2px; }
.wx-tl-prog { position: absolute; left: 6px; top: 6px; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(#10b981, #2b8be6, #5468f2); transition: height 1.8s cubic-bezier(.22,1,.36,1); }
.wx-ms { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.wx-ms::before { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #202a39; border: 2px solid rgba(140,153,168,.5); }
.wx-ms.done::before { background: #10b981; border-color: #10b981; }
.wx-ms.next::before { background: #2b8be6; border-color: #9dc8f3; box-shadow: 0 0 0 0 rgba(43,139,230,.7); animation: wxPingB 1.8s infinite; }
.wx-ms.gate::before { background: #ff6b00; border-color: #ffb066; border-radius: 3px; transform: rotate(45deg); }
@keyframes wxPingB { 0% { box-shadow: 0 0 0 0 rgba(43,139,230,.7); } 80%,100% { box-shadow: 0 0 0 9px rgba(43,139,230,0); } }
.wx-ms-name { font-size: 13px; color: #d8e9fa; line-height: 1.3; }
.wx-ms.next .wx-ms-name { color: #fff; font-weight: 600; }
.wx-ms-date { font-size: 12px; color: var(--wx-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-here { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: rgba(43,139,230,.25); color: #c5def8; letter-spacing: .04em; }

/* Journey stepper */
.wx-journey { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: var(--wx-glass); border: 1px solid var(--wx-line); backdrop-filter: blur(18px); margin-bottom: 18px; }
.wx-journey-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.wx-journey-hd h3 { font-size: 16px; font-weight: 700; color: #fff; }
.wx-journey-hd p { font-size: 12.5px; color: var(--wx-muted); }
.wx-tip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.3); font-size: 12.5px; color: #fde68a; min-height: 34px; max-width: 520px; }
.wx-tip .material-icons-outlined { font-size: 17px; color: #fff; }
.wx-tip-text { transition: opacity .4s, transform .4s; }
.wx-tip-text.out { opacity: 0; transform: translateY(4px); }
.wx-steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.wx-steps-line { position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: rgba(255,255,255,.08); z-index: 0; }
.wx-steps-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2b8be6, #5468f2, #ff6b00); transform-origin: left; transform: scaleX(0); transition: transform 2s cubic-bezier(.22,1,.36,1) .6s; }
.wx-journey.in .wx-steps-line::after { transform: scaleX(1); }
.wx-flow-dot { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #171e27; box-shadow: 0 0 12px 3px rgba(140,155,247,.9); animation: wxFlow 5s linear infinite 2.6s; opacity: 0; }
@keyframes wxFlow { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.wx-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px 6px; text-decoration: none; color: inherit; }
.wx-step-ic {
    position: relative; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #202a39, #151b24); border: 1px solid rgba(131,147,246,.35);
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); transition: transform .3s, box-shadow .3s, background .3s;
}
.wx-step-ic .material-icons-outlined { font-size: 26px; color: #fff; }
.wx-step-n { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b8be6, #5468f2); box-shadow: 0 0 0 3px #141b24; }
.wx-step:hover .wx-step-ic { transform: translateY(-4px) scale(1.05); background: linear-gradient(145deg, #2b8be6, #5468f2); box-shadow: 0 16px 30px -10px rgba(84,104,242,.8); }
.wx-step b { font-size: 13.5px; color: #fff; font-weight: 600; line-height: 1.25; }
.wx-step span { font-size: 12px; color: var(--wx-muted); line-height: 1.35; }

.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.section-head-row .section-label { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.wx-reset { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--wx-line); color: #c9d2dc; font-size: 12px; font-family: inherit; cursor: pointer; transition: background .2s, color .2s; }
.wx-reset:hover { background: rgba(255,255,255,.1); color: #fff; }
.wx-reset .material-icons-outlined { font-size: 16px; color: #fff; }

/* Reveal */
.wx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.wx-reveal.in { opacity: 1; transform: none; }

.wx-foot { font-size: 11.5px; color: #818d9e; margin: -6px 0 18px; display: flex; align-items: center; gap: 6px; }
.wx-foot .material-icons-outlined { font-size: 14px; color: #fff; opacity: .6; }

@media (max-width: 1200px) {
    .wx-row { grid-template-columns: 1fr 1fr; }
    .wx-row > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
    .wx-hero { padding: 36px 28px; }
    .wx-hero-grid { grid-template-columns: 1fr; }
    .wx-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wx-steps { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 22px; }
    .wx-steps-line { display: none; }
}
.wx-hero-grid > * { min-width: 0; }
@media (max-width: 680px) {
    .content { padding: 16px; }
    .header { padding: 16px; justify-content: flex-end; }
    .logo { left: 16px; }
    .header-title { font-size: 20px; margin-right: 48px; }
    .header-exit { right: 8px; }
    .wx-cd-label { justify-content: flex-start; }
    .wx-hero { padding: 28px 18px; border-radius: 22px; }
    .wx-title { font-size: 32px; }
    .wx-sub { font-size: 15px; }
    .wx-rec { display: flex; align-items: flex-start; }
    .wx-legend { grid-template-columns: 1fr; }
    .wx-row, .wx-kpis { grid-template-columns: 1fr; }
    .wx-countdown { flex-wrap: wrap; gap: 8px; }
    .wx-cd-label { flex-basis: 100%; flex-direction: row; gap: 6px; }
    .wx-cd-cell { flex: 1; min-width: 0; }
    .wx-cd-num { font-size: 24px; }
    .wx-risk-wrap { grid-template-columns: 1fr; }
    .wx-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .wx-hero *, .wx-hero::before, .wx-reveal, .wx-kpis *, .wx-row *, .wx-journey * { animation: none !important; transition: none !important; }
    .wx-reveal { opacity: 1; transform: none; }
}

/* ===== Top container: align look and feel with the other app pages ===== */
.wx-hero {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.wx-hero::before { display: none; }
.wx-hero .wx-blob, .wx-hero .wx-spin-slow, .wx-hero .wx-spin-rev { display: none; }
#wx-constellation { opacity: .3; }

.wx-eyebrow {
    padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .1em;
    background: rgba(43,139,230,0.12); border: 1px solid rgba(91,163,235,0.35); color: #9dc8f3;
}
.wx-live { background: #4ade80; }
.wx-title {
    font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wx-grad {
    background: linear-gradient(135deg, #2b8be6, #5468f2); background-size: auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: none;
}
.wx-rec {
    border-radius: 10px; background: rgba(84,104,242,0.12); border: 1px solid rgba(84,104,242,0.35);
    color: #d0d5fb; font-size: 13px;
}
.wx-cd-cell {
    min-width: 64px; border-radius: 10px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: none;
}
.wx-cd-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; font-size: 22px; color: #5ba3eb; letter-spacing: 0; }
.wx-cd-unit { font-size: 9px; font-weight: 500; letter-spacing: .1em; color: #8b96a6; }
.wx-cd-label { color: #8f9aa9; }
.wx-btn { border-radius: 10px; padding: 10px 18px; font-size: 13.5px; }
.wx-btn-primary { box-shadow: 0 4px 16px rgba(84,104,242,.35); }
.wx-btn-primary::after { display: none; }
.wx-btn-primary:hover { box-shadow: 0 6px 22px rgba(84,104,242,.55); transform: translateY(-1px); }
.wx-btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.wx-oc-label { color: #8f9aa9; font-size: 10px; }
.wx-oc-value { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; color: #fff; letter-spacing: -.02em; }
.wx-leg { border-radius: 8px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.wx-leg em { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; color: #5ba3eb; }

/* ===== Entry-point cards: add / remove / reorder ===== */
#grid-entry-points .workbench-summary-card { position: relative; }
.wc-remove {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(21,27,36,0.8); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff;
    opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s, background .2s;
}
.wc-remove .material-icons-outlined { font-size: 17px; color: #fff; }
.workbench-summary-card:hover .wc-remove, .wc-remove:focus-visible { opacity: 1; transform: scale(1); }
.wc-remove:hover { background: #ef4444; border-color: #ef4444; }
@media (hover: none) { .wc-remove { opacity: 1; transform: none; } }

.wc-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 220px; border-radius: 16px; cursor: pointer; font-family: inherit;
    background: rgba(255, 255, 255, 0.02); border: 2px dashed rgba(131,147,246,0.45); color: #cad1fb;
    transition: background .2s, border-color .2s, transform .2s;
}
.wc-add:hover, .wc-add:focus-visible { background: rgba(84,104,242,0.1); border-color: #8393f6; transform: translateY(-3px); outline: none; }
.wc-add-ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b8be6, #5468f2); box-shadow: 0 10px 24px -8px rgba(84,104,242,.7); }
.wc-add-ic .material-icons-outlined { font-size: 32px; color: #fff; }
.wc-add b { font-size: 16px; color: #fff; font-weight: 600; }
.wc-add span.hint { font-size: 12.5px; color: #8c99a8; }

.wc-drop-before { box-shadow: -4px 0 0 0 #5468f2 !important; }
.wc-drop-after { box-shadow: 4px 0 0 0 #5468f2 !important; }

/* Picker modal */
.wc-modal-bg { position: fixed; inset: 0; z-index: 10000; background: rgba(9,12,16,0.65); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.wc-modal-bg.open { opacity: 1; pointer-events: auto; }
.wc-modal { width: min(880px, 100%); max-height: min(86vh, 820px); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, rgba(28,37,50,.98), rgba(16,21,28,.98)); border: 1px solid rgba(131,147,246,.3); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.wc-modal-bg.open .wc-modal { transform: none; }
.wc-m-hd { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(140,153,168,.16); }
.wc-m-hd .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b8be6, #5468f2); }
.wc-m-hd .ic .material-icons-outlined { color: #fff; font-size: 23px; }
.wc-m-hd h3 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.wc-m-hd p { font-size: 12.5px; color: #8c99a8; }
.wc-m-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wc-m-x:hover { background: rgba(255, 255, 255, .16); }
.wc-m-x .material-icons-outlined { color: #fff; font-size: 20px; }
.wc-m-body { padding: 8px 22px 20px; overflow-y: auto; }
.wc-group { margin-top: 16px; }
.wc-group h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a9b3f8; margin-bottom: 10px; }
.wc-group h4 .material-icons-outlined { font-size: 17px; color: #fff; text-transform: none; letter-spacing: normal; }
.wc-group h4 small { font-weight: 500; color: #818d9e; letter-spacing: .04em; }
.wc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wc-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 40px 12px 12px; border-radius: 12px; cursor: pointer; text-align: left; font-family: inherit; color: inherit; background: rgba(255, 255, 255, .035); border: 1px solid rgba(140,153,168,.16); transition: background .15s, border-color .15s; }
.wc-opt:hover { background: rgba(255, 255, 255, .07); }
.wc-opt .oi { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wc-opt .oi .material-icons-outlined { font-size: 20px; color: #fff; }
.wc-opt b { display: block; font-size: 13.5px; color: #fff; font-weight: 600; line-height: 1.3; }
.wc-opt span.d { display: block; font-size: 12px; color: #8c99a8; line-height: 1.4; margin-top: 2px; }
.wc-opt .chk { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(140,153,168,.5); display: flex; align-items: center; justify-content: center; }
.wc-opt .chk .material-icons-outlined { font-size: 15px; color: #fff; display: none; }
.wc-opt.sel { background: rgba(84,104,242,.16); border-color: #8393f6; }
.wc-opt.sel .chk { background: #5468f2; border-color: #5468f2; }
.wc-opt.sel .chk .material-icons-outlined { display: block; }
.wc-opt.on { opacity: .5; cursor: default; }
.wc-opt.on .chk { display: none; }
.wc-opt .tag { position: absolute; top: 12px; right: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #6ee7b7; }
.wc-m-ft { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid rgba(140,153,168,.16); background: rgba(0, 0, 0, .18); }
.wc-m-ft .count { font-size: 13px; color: #8c99a8; margin-right: auto; }
.wc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; font-family: inherit; color: #fff; cursor: pointer; border: 0; background: linear-gradient(135deg, #2b8be6, #5468f2); }
.wc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.wc-btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.wc-btn .material-icons-outlined { font-size: 18px; color: #fff; }
.g-strategic { background: linear-gradient(135deg, #2b8be6, #5468f2); }
.g-prioritization { background: linear-gradient(135deg, #10b981, #059669); }
.g-financial { background: linear-gradient(135deg, #ff6b00, #f59e0b); }
.g-management { background: linear-gradient(135deg, #14b8a6, #1b7bdc); }

/* Cards added from the Tool Factory — match the built-in cards (outlined white icons) */
.workbench-summary-card .card-icon-wrap .material-icons-outlined { font-size: 28px; color: #ffffff; }
.prompt-snapshot-node .material-icons-outlined { font-size: 16px; color: #ffffff; opacity: 0.9; }
.workbench-summary-card .card-link .material-icons-outlined { font-size: 18px; }
