:root {
    --navy: #262262;
    --blue: #12C3F4;
    --grey: #5A5A66;
    --line: #e4e4ea;
    --bg: #f5f6f9;
    --ink: #2b2b33;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    background: var(--navy);
    color: #fff;
}

.brand-link { text-decoration: none; color: #fff; display: flex; align-items: baseline; gap: 10px; }
.brandbar .brand { font-size: 18px; font-weight: 600; letter-spacing: 0.2px; }
.brandbar .brand-sub { font-size: 13px; color: #b9b7e0; }
.brand-account { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: #d7d5f2; }
.brand-user { color: #fff; }
.brand-email { font-size: 11px; color: #b9b7e0; }
.brand-mode { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 10px; padding: 2px 9px; border: 1px solid transparent; }
.brand-mode.sso { color: #d6f5e4; background: rgba(39,174,96,0.22); border-color: rgba(39,174,96,0.55); }
.brand-mode.local { color: #ffe0b8; background: rgba(226,142,58,0.20); border-color: rgba(226,142,58,0.55); }
.brand-signout { color: #b9b7e0; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); border-radius: 20px; padding: 4px 12px; background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.brand-signout:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* login page */
.login { display: flex; justify-content: center; padding: 80px 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 44px;
              box-shadow: 0 18px 50px rgba(20,20,50,0.10); text-align: center; max-width: 420px; width: 100%; }
.login-brand { font-size: 26px; font-weight: 700; color: var(--navy); }
.login-sub { font-size: 13px; color: var(--grey); margin-top: 2px; }
.login-lead { color: var(--navy); margin: 22px 0 18px; }
.login-btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
             padding: 11px 22px; border-radius: 24px; font-weight: 600; border: none; cursor: pointer; font-size: 15px; font-family: inherit; }
.login-btn:hover { filter: brightness(1.1); }

.topnav { display: flex; gap: 18px; }
.topnav a { color: #cfd0f0; text-decoration: none; font-size: 14px; }
.topnav a:hover { color: #fff; }

.app-main { padding: 28px 20px; }

.wl {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 32px;
}

.wl-head h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px;
}

.wl-head p {
    color: var(--grey);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.wl-toggle { display: flex; gap: 10px; margin-bottom: 22px; }

.wl-toggle button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}

.wl-toggle button.on {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.wl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.stat {
    background: #f4f7fb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat .lbl { font-size: 13px; color: var(--grey); }
.stat .val { font-size: 24px; font-weight: 600; color: var(--navy); }

.wl-chart {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.col .fte { font-size: 12px; color: var(--grey); margin-bottom: 6px; }

.barwrap {
    height: 304px;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    border-radius: 6px;
    overflow: hidden;
}

.seg { width: 100%; }

.col .name { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 8px; }

.wl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: var(--grey);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.leg { display: flex; align-items: center; gap: 5px; }

.sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

.wl-note { font-size: 12px; color: var(--grey); margin-top: 14px; line-height: 1.6; }

.wl-note code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    background: #f1f1f4;
    padding: 1px 5px;
    border-radius: 4px;
}

.wl-note a, .crumbs a, .detail a { color: #185fa5; text-decoration: none; }
.wl-note a:hover { text-decoration: underline; }

/* shared containers */
.home, .lens, .detail { max-width: 900px; margin: 0 auto; }
.home > h1, .lens-head h1, .detail-head h1 { font-size: 22px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.home .sub, .lens-head p { color: var(--grey); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.home-h2, .facet h2 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 28px 0 12px; }

/* breadcrumbs */
.crumbs { max-width: 900px; margin: 0 auto 16px; font-size: 13px; color: var(--grey); }
.crumbs span { margin: 0 6px; color: #c3c2cd; }

/* lens cards on home */
.lens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lens-card {
    display: flex; flex-direction: column; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 20px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.lens-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.lens-title { font-size: 18px; font-weight: 600; color: var(--navy); }
.lens-desc { font-size: 13px; color: var(--grey); line-height: 1.5; }
.lens-count { font-size: 12px; color: var(--blue); font-weight: 500; margin-top: 4px; }

/* node cards on a lens */
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.node-card {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 20px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.node-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.node-name { font-size: 16px; font-weight: 600; color: var(--navy); }
.node-summary { font-size: 13px; color: var(--ink); line-height: 1.5; }
.node-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* chips */
.chip {
    font-size: 12px; color: var(--grey); background: #f1f1f4;
    border-radius: 12px; padding: 3px 10px;
    white-space: normal; overflow-wrap: anywhere; max-width: 100%;
}
.chip-link { color: var(--navy); background: #eef2fb; text-decoration: none; font-weight: 500; }
.chip-link:hover { background: #e0e8f8; }

/* node detail */
.type-badge {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .4px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 6px; margin-bottom: 8px;
}
.type-person { background: #e6f1fb; color: #0c447c; }
.type-product { background: #e1f5ee; color: #0f6e56; }
.type-area { background: #eeedfe; color: #3c3489; }
.detail-summary { font-size: 15px; color: var(--ink); line-height: 1.6; margin: 4px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.fact { background: #f7f8fb; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact-k { font-size: 12px; color: var(--grey); }
.fact-v { font-size: 14px; color: var(--ink); font-weight: 500; }

.facet { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 24px; }

/* mini bars on person detail */
.mini-bars { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: grid; grid-template-columns: 1fr 200px 42px; align-items: center; gap: 12px; }
.mini-label { font-size: 13px; color: var(--ink); }
.mini-track { height: 12px; background: #eef0f4; border-radius: 6px; overflow: hidden; }
.mini-fill { display: block; height: 100%; }
.mini-val { font-size: 13px; color: var(--grey); text-align: right; }

/* connections */
.rel-group { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f3; }
.rel-label { font-size: 13px; color: var(--grey); min-width: 130px; text-transform: none; }
.rel-nodes { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- shell: floating rail + content ---- */
.shell { display: flex; gap: 28px; align-items: flex-start; max-width: 1680px; margin: 0 auto; }

.rail { flex: 0 0 236px; width: 236px; }
.rail-inner { display: flex; flex-direction: column; gap: 14px; }

.rail-card {
    width: 100%; height: 76px;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 0 16px; cursor: pointer; text-align: left; font-family: inherit;
    box-shadow: 0 1px 2px rgba(30,30,50,0.04);
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.rail-card:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(38,34,98,0.10); }
.rail-card.active { background: var(--navy); border-color: var(--navy); box-shadow: 0 6px 18px rgba(38,34,98,0.22); }
.rail-card.active .rc-title { color: #fff; }
.rail-card.active .rc-sub { color: #bdbbe6; }

.rc-icon {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #f4f6fa; border-radius: 10px;
}
.rail-card.active .rc-icon { background: rgba(255,255,255,0.14); }
.rc-text { display: flex; flex-direction: column; gap: 2px; }
.rc-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.rc-sub { font-size: 12px; color: var(--grey); }

.content { flex: 1; min-width: 0; position: relative; }

/* read-only shield: disable edit affordances, keep navigation */
.app-ro input, .app-ro select, .app-ro textarea,
.app-ro .add, .app-ro .del, .app-ro .del-btn,
.app-ro [draggable="true"] { pointer-events: none; opacity: .55; }
.ro-badge { position: absolute; top: 0; right: 0; z-index: 3; background: #eef1f5; color: var(--grey);
            font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 0 0 0 8px; }

/* access table */
.access-table { display: block; overflow-x: auto; }
.acc-head, .acc-row { display: grid; grid-template-columns: 230px 54px repeat(7, 96px) 34px; gap: 8px; align-items: center; padding: 4px 0; }
.acc-head { font-size: 11px; color: var(--grey); font-weight: 600; border-bottom: 1px solid var(--line); }
.acc-row .sel { width: 100%; }
.acc-admin, .acc-del, .acc-sec { text-align: center; }

/* database admin */
.db-form { max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.db-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.content-h1 { font-size: 22px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }

.back {
    background: none; border: none; color: #185fa5; font-family: inherit; font-size: 13px;
    cursor: pointer; padding: 0; margin-bottom: 14px;
}
.back:hover { text-decoration: underline; }

/* node cards and chips are buttons in the shell — reset button chrome */
button.node-card {
    text-align: left; font-family: inherit; cursor: pointer; width: 100%;
    background: #fff; border: 1px solid var(--line);
}
button.chip { font-family: inherit; cursor: pointer; border: none; }

@media (max-width: 720px) {
    .shell { flex-direction: column; }
    .rail { width: 100%; flex-basis: auto; }
}

/* ---- roadmap / capacity predictor ---- */
.road { margin-top: 18px; }
.road h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.road h3 .hint { font-weight: 400; font-size: 12px; color: var(--grey); margin-left: 8px; }

.road-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.ctrl-block { background: #f7f8fb; border-radius: 12px; padding: 16px 18px; }

.res-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.res-name { min-width: 150px; }
.res-start { font-size: 12px; color: var(--grey); }
.unit { font-size: 12px; color: var(--grey); }
.num { width: 62px; font-family: inherit; font-size: 14px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; text-align: right; }
.cap-line { font-size: 13px; color: var(--grey); margin-top: 8px; }

.outputs .out-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 7px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.out-name { flex: 1; }
.out-date { font-weight: 600; color: var(--navy); }
.out-date.warn { color: #d85a30; }

/* gantt */
.gantt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 22px; background: #fff; }
.gantt-axis, .gantt-row { display: flex; align-items: center; }
.gantt-axis { height: 20px; margin-bottom: 6px; }
.g-label { flex: 0 0 200px; width: 200px; font-size: 12.5px; color: var(--ink); padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-track { position: relative; flex: 1; height: 26px; }
.gantt-axis .g-track { height: 20px; }
.g-year { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--grey); }
.g-grid { position: absolute; top: 20px; bottom: 0; width: 1px; background: #eceef2; height: 999px; }
.gantt-row { margin: 3px 0; }
.g-bar {
    position: absolute; top: 4px; height: 18px; border-radius: 5px; min-width: 8px;
    display: flex; align-items: center; padding: 0 6px; overflow: hidden;
}
.g-bar.ongoing { opacity: 0.55; }
.g-bar.warn { outline: 2px solid #d85a30; }
.g-bar-txt { font-size: 10.5px; color: #fff; white-space: nowrap; }

/* tables */
.road-tables { display: flex; flex-direction: column; gap: 20px; }
.road-table { width: 100%; border-collapse: collapse; }
.road-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--grey); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.road-table td { padding: 5px 8px; border-bottom: 1px solid #f0f0f3; font-size: 14px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.txt { font-family: inherit; font-size: 14px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; width: 260px; max-width: 100%; }
.del { background: none; border: none; color: #b64; font-size: 16px; cursor: pointer; line-height: 1; }
.add, .reset {
    font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; color: var(--navy);
    align-self: flex-start;
}
.add:hover, .reset:hover { border-color: var(--navy); }
.reset { color: var(--grey); }

.tbl-block { margin-bottom: 24px; }
.tbl-scroll { overflow-x: auto; }
.num.narrow { width: 52px; text-align: right; }
.road-table th.rescol, .road-table td.rescol { text-align: center; }
.road-table td.total, .road-table td.finish { font-weight: 600; color: var(--navy); white-space: nowrap; }
.alloc-warn { margin-top: 10px; font-size: 13px; color: #d85a30; }

/* planner v2 — cards, sliders, popup */
.g-bar { cursor: pointer; }
.finish-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 8px; font-size: 13px; color: var(--ink); }
.fin { display: flex; align-items: center; gap: 6px; }
.road-h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin: 22px 0 10px; }
.cards-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.cards-head .road-h3 { margin: 0; }

.panel { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 4px; overflow: hidden; }
.panel-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: #f7f8fb; border: none; padding: 12px 16px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.panel-body { padding: 14px 16px; }
.chev { display: inline-block; color: var(--grey); transition: transform .2s; }
.chev.o { transform: rotate(90deg); }

.slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slider-row input[type=range] { flex: 1; }
.sr-name { min-width: 150px; font-size: 14px; }
.ar-name { min-width: 90px; font-size: 14px; }
.sr-val { width: 44px; text-align: right; font-size: 13px; color: var(--grey); }

.row-card { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; text-align: left; font-family: inherit; }
.row-card:hover { border-color: var(--navy); }
.task-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.task-meta { margin-left: auto; font-size: 12.5px; color: var(--grey); white-space: nowrap; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20,20,40,0.35); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 460px; max-width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 18px 50px rgba(20,20,50,0.28); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-title { flex: 1; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--navy); border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; }
.modal-title:hover, .modal-title:focus { border-color: var(--line); outline: none; }
.modal-x { background: none; border: none; font-size: 22px; line-height: 1; color: var(--grey); cursor: pointer; }
.modal-body { padding: 16px 18px; }
.modal-body input[type=range] { width: 100%; }

.sl { display: block; font-size: 13px; color: var(--ink); margin: 14px 0 6px; }
.sel { width: 100%; font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.assign { margin-top: 18px; }
.assign-h { display: block; font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.del-btn { margin-top: 18px; background: none; border: 1px solid #e2b4b4; color: #b64; border-radius: 8px; padding: 7px 14px; font-family: inherit; font-size: 13px; cursor: pointer; }

.cap-summary { margin-bottom: 8px; }
.cap-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cap-name { min-width: 90px; font-size: 14px; }
.cap-bar { flex: 0 0 220px; width: 220px; height: 14px; background: #eef0f4; border-radius: 7px; overflow: hidden; display: flex; }
.cap-seg { height: 100%; }
.cap-task { background: #b9b7c6; }
.cap-dev { background: #2a78d6; }
.cap-val { font-size: 12.5px; color: var(--grey); }
.cap-val b { color: var(--navy); }

.wl-note.over-fte { color: #d85a30; font-weight: 500; }

.item-list { display: flex; flex-direction: column; gap: 6px; }
.item-list .row-card { margin-bottom: 0; }
.item-list.scroll { max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.row-card.compact { padding: 9px 12px; }

.row-static { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.linkname { flex: 1; text-align: left; background: none; border: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; padding: 0; }
.linkname:hover { text-decoration: underline; }

.tag { font-size: 11px; color: #7a5a12; background: #faeeda; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }

.dates { display: flex; gap: 14px; }
.date-col { flex: 1; }

.dva { margin: 12px 0 6px; }
.dva-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dva-cat { min-width: 70px; font-size: 13px; color: var(--ink); }
.dva-track { position: relative; flex: 0 0 170px; width: 170px; height: 14px; background: #eef0f4; border-radius: 7px; overflow: hidden; }
.dva-des { position: absolute; left: 0; top: 0; height: 100%; background: #bcd4f4; }
.dva-act { position: absolute; left: 0; top: 3px; height: 8px; background: #eb6834; border-radius: 4px; }
.dva-num { font-size: 12px; color: var(--grey); }
.actual { color: #d85a30; font-weight: 500; }

.mini-lbl { font-size: 11px; color: var(--grey); }
.grp-head { font-size: 13px; font-weight: 600; color: var(--navy); margin: 16px 0 8px; }

.row-card.col { flex-direction: column; align-items: stretch; gap: 5px; }
.rc-top { display: flex; align-items: center; gap: 10px; }
.rc-desc { font-size: 12px; color: var(--grey); line-height: 1.4; }

.impact-btn { font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid #cfcfda; background: #fff; color: var(--navy); cursor: pointer; margin-bottom: 12px; }
.impact-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.assign-sel { max-width: 320px; margin-top: 10px; color: var(--navy); }

.ph-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ph-add .sel { max-width: 220px; }
.ph-add .num.narrow { width: 74px; }
.ph-when { min-width: 78px; font-weight: 600; color: var(--navy); }

/* stage / sub-stage breakdown (product card) */
.stage-block { margin-bottom: 12px; }
.stage-row .linkname { font-weight: 600; }
.substage-list { margin: 4px 0 0 18px; padding-left: 12px; border-left: 2px solid #eef1f5; }
.swatch.sm { width: 8px; height: 8px; }
.sub-add { margin-top: 4px; font-size: 12px; }
.grp-subhead { font-size: 13px; font-weight: 600; color: var(--navy); margin: 12px 0 6px 16px; }
/* tasks lens: every row is a boxed card; expandables show a coloured chevron */
.task-search { width: 100%; margin-bottom: 14px; }
.tcc { margin-bottom: 6px; }
.tcc.concertina > summary { background: #fff; border: 1px solid var(--line); border-radius: 10px;
                 padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.tcc.concertina > summary:hover { border-color: var(--navy); }
.tcc.concertina > summary::before { content: "▸"; color: #2a78d6; font-size: 13px; }
.tcc.concertina[open] > summary::before { transform: rotate(90deg); }
.tcc.concertina > summary .cc-title { font-size: 14px; }
.tcc.concertina > .item-list { margin: 6px 0 6px 20px; }
.biz-fn { margin: 6px 0 0 20px; }
.grp-total { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.fn-bar { flex: 0 0 130px; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; margin-left: 14px; }
.fn-fill { display: block; height: 100%; background: #7f77dd; border-radius: 4px; }
.item-list.biz-sub { margin-left: 16px; padding-left: 12px; border-left: 2px solid #eef1f5; }
.mgmt-task { cursor: default; }
.mgmt-task .rc-top { display: flex; align-items: center; gap: 8px; }
.mgmt-task .drag-handle { cursor: grab; }

/* risk selector + function planning inputs */
.risk-sel { border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.risk-sel.risk-low { color: #1baf7a; }
.risk-sel.risk-medium { color: #b8860b; }
.risk-sel.risk-high { color: #e0771b; }
.risk-sel.risk-critical { color: #d1495b; }
.bc-inputs { display: flex; align-items: flex-end; gap: 14px; margin-top: 8px; }

/* estimate adjustment (subtle expander) */
.est-adj { margin: -2px 0 10px; }
.est-adj > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--grey);
                     display: inline-flex; align-items: center; gap: 5px; }
.est-adj > summary::-webkit-details-marker { display: none; }
.est-adj > summary::before { content: "+"; font-weight: 600; color: #b8c0cc; }
.est-adj[open] > summary::before { content: "–"; }
.est-adj[open] > summary { margin-bottom: 8px; }

/* landing dashboard */
.dash { display: flex; flex-direction: column; gap: 18px; }
.dash-hero { background: linear-gradient(135deg, #2f3b4c, #3d5a80); color: #fff; border-radius: 14px; padding: 20px 24px; }
.dh-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.dh-lead { margin: 0; font-size: 15px; line-height: 1.55; color: #eaf0f6; }
.dh-lead b { color: #fff; }
.dh-lead b.hot { color: #ffb4bd; }
.dash-stats { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.panel-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--navy); }
.panel-card h3 span { font-weight: 400; color: var(--grey); font-size: 12px; }
.scs-track.big { height: 18px; border-radius: 9px; }
.panel-split { display: flex; gap: 16px; align-items: center; }
.panel-list { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pl-row { display: flex; align-items: center; gap: 8px; }
.pl-risk { width: 62px; min-width: 62px; text-align: center; font-size: 10px; font-weight: 700; border-radius: 20px; padding: 2px 0; }
.pl-risk.risk-low { background: #e5f6ef; color: #159068; }
.pl-risk.risk-medium { background: #fbf0d8; color: #b8860b; }
.pl-risk.risk-high { background: #fde8d5; color: #e0771b; }
.pl-risk.risk-critical { background: #fbe0e4; color: #d1495b; }
.pl-name { flex: 1; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { width: 70px; min-width: 70px; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.pl-fill { display: block; height: 100%; border-radius: 4px; }
.pl-pct { width: 36px; text-align: right; font-size: 12px; font-weight: 600; color: var(--navy); }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.tl-name { width: 90px; min-width: 90px; font-size: 13px; color: var(--navy); }
.tl-track { flex: 1; height: 14px; background: #eef1f5; border-radius: 7px; overflow: hidden; display: flex; }
.tl-task { background: #eda100; height: 100%; }
.tl-dev { background: #1baf7a; height: 100%; }
.tl-num { width: 120px; text-align: right; font-size: 12px; color: var(--grey); }
.tl-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--grey); }
.tl-sw { width: 12px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.tl-sw.task { background: #eda100; }
.tl-sw.dev { background: #1baf7a; }
.ms-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.ms-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ms-name { flex: 1; font-size: 13px; color: var(--navy); }
.ms-date { font-size: 12px; font-weight: 600; color: var(--navy); }

.panel-wide { grid-column: 1 / -1; }
.deliv-list { display: flex; flex-direction: column; gap: 8px; }
.deliv-row { display: flex; align-items: center; gap: 12px; }
.dl-lbl { width: 92px; min-width: 92px; font-size: 13px; }
.dl-lbl.opt { color: #159068; }
.dl-lbl.real { color: var(--navy); font-weight: 600; }
.dl-lbl.pess { color: #d1495b; }
.dl-bar { flex: 1; height: 2px; background: #eef1f5; position: relative; }
.dl-dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.dl-dot.opt { left: 25%; background: #1baf7a; }
.dl-dot.real { left: 55%; background: var(--navy); }
.dl-dot.pess { left: 90%; background: #d1495b; }
.dl-date { width: 110px; text-align: right; font-size: 13px; color: var(--navy); }
.prod-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; border-bottom: 1px solid #f2f4f7; }
.prod-row:last-child { border-bottom: none; }
.prod-row:hover .prod-name { color: #2a78d6; }
.prod-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prod-dot.dev { background: #2a78d6; }
.prod-dot.done { background: #1baf7a; }
.prod-dot.maint { background: #b8c0cc; }
.prod-name { width: 200px; min-width: 140px; font-weight: 600; color: var(--navy); }
.prod-status { width: 120px; font-size: 12px; color: var(--grey); }
.prod-status.muted { color: #aab2bd; font-style: italic; }
.prod-pct { width: 42px; text-align: right; font-size: 12px; font-weight: 600; color: var(--navy); }
.prod-date { width: 110px; text-align: right; font-size: 12px; color: var(--navy); }

/* business scorecard */
.sc-hero { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line);
           border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; flex-wrap: wrap; }
.sc-grade { width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column;
            align-items: center; justify-content: center; border: 8px solid; flex: none; }
.sc-grade.good { border-color: #1baf7a; color: #159068; }
.sc-grade.warn { border-color: #eda100; color: #b8860b; }
.sc-grade.bad  { border-color: #d1495b; color: #d1495b; }
.sc-grade-num { font-size: 30px; font-weight: 700; }
.sc-grade-lbl { font-size: 10px; color: var(--grey); text-align: center; max-width: 90px; margin-top: 2px; }
.sc-facts { flex: 1; min-width: 260px; display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.sc-fact { display: flex; flex-direction: column; }
.scf-num { font-size: 22px; font-weight: 700; color: var(--navy); }
.scf-num.neg { color: #d1495b; }
.scf-lbl { font-size: 11px; color: var(--grey); max-width: 170px; }
.sc-supply { flex-basis: 100%; }
.scs-track { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #eef1f5; }
.scs-have { background: #1baf7a; }
.scs-gap { background: #d1495b; }
.scs-legend { display: flex; gap: 16px; margin-top: 5px; font-size: 11px; color: var(--grey); }
.scs-sw { width: 12px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.scs-sw.have { background: #1baf7a; }
.scs-sw.gap { background: #d1495b; }

.scorecard { display: flex; flex-direction: column; gap: 8px; }
.sc-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
          background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.sc-row:hover { border-color: #cfd6df; background: #fbfcfd; }
.sc-risk { width: 74px; min-width: 74px; text-align: center; font-size: 11px; font-weight: 700;
           border-radius: 20px; padding: 3px 0; }
.sc-risk.risk-low { background: #e5f6ef; color: #159068; }
.sc-risk.risk-medium { background: #fbf0d8; color: #b8860b; }
.sc-risk.risk-high { background: #fde8d5; color: #e0771b; }
.sc-risk.risk-critical { background: #fbe0e4; color: #d1495b; }
.sc-name { width: 200px; min-width: 160px; font-weight: 600; color: var(--navy); }
.sc-track { flex: 1; height: 14px; background: #eef1f5; border-radius: 7px; overflow: hidden; min-width: 80px; }
.sc-fill { display: block; height: 100%; border-radius: 7px; }
.sc-pct { width: 46px; text-align: right; font-weight: 700; color: var(--navy); }
.sc-detail { width: 92px; text-align: right; font-size: 12px; color: var(--grey); }
.sc-status { width: 120px; text-align: right; font-size: 12px; font-weight: 600; }

/* sub-stage estimate inputs */
.est-row { display: flex; gap: 10px; margin-top: 4px; }
.est-col { display: flex; flex-direction: column; gap: 2px; }
.est-lbl { font-size: 11px; color: var(--grey); }

/* capacity breakdown */
.cap-window { margin-bottom: 14px; }
.cap-window input[type=range] { width: 100%; margin-top: 4px; }
.cs-num.neg { color: #d1495b; }
.capr { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.capr-name { width: 150px; min-width: 150px; color: var(--navy); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.capr-track { flex: 1; height: 12px; background: #f3f5f8; border-radius: 6px; overflow: hidden; }
.capr-fill { display: block; height: 100%; border-radius: 6px; }
.capr-fill.req { background: #eda100; }
.capr-fill.avail { background: #1baf7a; }
.capr-num { width: 130px; text-align: right; font-size: 12px; color: var(--navy); }
.capr-range { color: var(--grey); }

/* stage editor levels */
.lvl-head { font-size: 13px; font-weight: 600; color: var(--navy); margin: 14px 0 4px; }
.lvl-head span { font-weight: 400; color: var(--grey); font-size: 12px; }
.planned-line { font-size: 13px; color: var(--navy); margin: 8px 0; }

/* roadmap gantt */
.g-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 10px; }
.g-proj { display: inline-flex; align-items: center; gap: 6px; }
.gp-lbl { font-size: 12px; color: var(--grey); }
.proj-btn { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 3px 12px;
            font-size: 12px; color: var(--navy); cursor: pointer; }
.proj-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.incl-prosp { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--navy); }
.g-cap { font-size: 12px; color: var(--grey); margin-left: auto; }
.g-cap b { color: var(--navy); }
.g-bar.plan.done { opacity: .85; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* sub-stage reorder + complete */
.substage-row[draggable=true] { cursor: default; }
.drag-handle { cursor: grab; color: #b8c0cc; font-size: 13px; user-select: none; }
.done-chk { margin: 0 2px; }
.substage-row.done .linkname { text-decoration: line-through; color: var(--grey); }
.substage-row.done { opacity: .7; }
.done-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); margin: 8px 0 4px; }

.g-legend { display: flex; gap: 16px; margin-bottom: 10px; font-size: 12px; color: var(--navy); }
.gl { display: inline-flex; align-items: center; gap: 6px; }
.gl-sw { width: 16px; height: 10px; border-radius: 3px; display: inline-block; }
.gl-sw.exp { background: transparent; border: 1px dashed var(--grey); }
.gl-sw.plan { background: var(--navy); }
.gl-sw.act { background: #2f3b4c; }
.gl-sw.task { background: repeating-linear-gradient(45deg, #cfd6df, #cfd6df 4px, #eef1f5 4px, #eef1f5 8px); }
.g-zoom { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.g-zoom input[type=range] { width: 120px; }
.zoom-btn { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px;
            font-size: 15px; line-height: 1; color: var(--navy); cursor: pointer; }
.zoom-btn:hover { background: #f3f5f8; }

.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.g-row { display: flex; align-items: stretch; }
.g-label { width: 210px; min-width: 210px; position: sticky; left: 0; z-index: 2; background: #fff;
           padding: 5px 10px; font-size: 13px; color: var(--navy); border-right: 1px solid var(--line);
           border-bottom: 1px solid #f0f2f5; display: flex; flex-direction: column; justify-content: center;
           gap: 1px; box-sizing: border-box; }
.g-label.sub { padding-left: 20px; }
.g-label.clickable { cursor: pointer; }
.g-label.clickable:hover { background: #fbfcfd; }
.g-label .drag-handle { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); cursor: grab; color: #c2cad4; font-size: 12px; }
.g-label.sub { position: relative; }
.gl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-label.sub .gl-name { color: var(--grey); font-size: 12px; }
.gl-meta { font-size: 10px; color: #9aa3af; white-space: nowrap; }
.tw-toggle { border: none; background: none; cursor: pointer; color: var(--navy); font-size: 14px; line-height: 1; padding: 2px 6px 2px 0; }
.tw-toggle:hover { color: #2a78d6; }
.g-label.task { padding-left: 26px; color: #7a828d; font-size: 12px; font-style: italic; }
.g-row.prod .g-label.prodname { font-weight: 700; background: #f3f5f8; }
.g-row.prod .g-track { background: #f3f5f8; border-bottom: 1px solid var(--line); }
.g-track { position: relative; height: 32px; flex: none; border-bottom: 1px solid #f0f2f5; cursor: pointer; }
.g-track.tall { height: 46px; }
.g-row.axis .g-label { background: #fff; border-bottom: 1px solid var(--line); }
.g-axis { position: relative; height: 26px; flex: none; border-bottom: 1px solid var(--line); }
.g-tick { position: absolute; top: 0; height: 100%; font-size: 10px; color: var(--grey);
          border-left: 1px solid #f0f2f5; padding: 4px 0 0 3px; box-sizing: border-box; }
.g-tick.year { border-left: 1px solid #d9dee6; color: var(--navy); font-weight: 600; }
.g-now { position: absolute; top: 0; height: 100%; width: 2px; background: #d1495b; opacity: .7; z-index: 3; }
.g-now::after { content: "today"; position: absolute; top: 0; left: 3px; font-size: 9px; color: #d1495b; white-space: nowrap; }

.g-bar { position: absolute; border-radius: 5px; white-space: nowrap; overflow: hidden; }
.g-bar.plan { top: 15px; height: 18px; color: #fff; font-size: 11px; line-height: 18px; padding: 0 7px;
              box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.g-bar.exp { top: 4px; height: 8px; background: transparent; border: 1px dashed; opacity: .7; }
.g-bar.act { top: 36px; height: 6px; background: #2f3b4c; }
.g-bar.task { top: 6px; height: 18px; line-height: 18px; padding: 0 7px; font-size: 11px; color: #55606e;
              background: repeating-linear-gradient(45deg, #d7dde4, #d7dde4 5px, #eef1f5 5px, #eef1f5 10px); }
.g-track:hover .g-bar.plan { filter: brightness(1.07); }

/* capacity allocation overview */
.cap-stats { display: flex; gap: 10px; margin: 4px 0 12px; }
.cap-stat { flex: 1; background: #f3f5f8; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cs-num { font-size: 20px; font-weight: 600; color: var(--navy); }
.cs-lbl { font-size: 11px; color: var(--grey); }
.cap-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #f3f5f8; }
.cap-seg { height: 100%; }
.cap-seg.tasks { background: #eda100; }
.cap-seg.dev { background: #1baf7a; }
.cap-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cap-name { flex: 1; color: var(--navy); }
.cap-h { font-size: 12px; color: var(--grey); white-space: nowrap; }

/* collapsible concertina sections */
.concertina > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
                        font-size: 17px; font-weight: 600; color: var(--navy); }
.concertina > summary::-webkit-details-marker { display: none; }
.concertina > summary::before { content: "▸"; font-size: 12px; color: var(--grey); transition: transform .15s; }
.concertina[open] > summary::before { transform: rotate(90deg); }
.concertina > summary .cc-title { font-size: 17px; }
.concertina[open] > summary { margin-bottom: 12px; }

/* availability */
.avail-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 8px; }
.avail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.avail-row .av-kind { max-width: 130px; }
.avail-row .av-date { max-width: 150px; }
.avail-row .sw-stage { max-width: 220px; }
.sw-ong { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--grey); cursor: pointer; }
.avail-strip { display: flex; align-items: flex-end; gap: 4px; margin-top: 12px; overflow-x: auto; }
.as-col { display: flex; flex-direction: column; align-items: center; }
.as-bar-wrap { height: 60px; width: 22px; display: flex; align-items: flex-end;
               background: #f3f5f8; border-radius: 3px; overflow: hidden; }
.as-bar { width: 100%; background: var(--navy); border-radius: 3px 3px 0 0; }
.as-bar.low { background: #eda100; }
.as-bar.high { background: #1baf7a; }
.as-lbl { font-size: 10px; color: var(--grey); margin-top: 4px; }

/* forward-planning band chart */
.bc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 12px; }
.bc-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--navy); }
.bc-leg .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bandchart { overflow-x: auto; padding-bottom: 4px; }
.bc-cols { display: flex; gap: 6px; align-items: flex-end; min-width: min-content; }
.bc-col { display: flex; flex-direction: column; align-items: center; }
.bc-stack { position: relative; width: 30px; display: flex; flex-direction: column-reverse;
            background: #f3f5f8; border-radius: 4px; overflow: hidden; }
.bc-seg { position: relative; width: 100%; min-height: 3px; cursor: ns-resize;
          box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: filter .1s; touch-action: none; }
.bc-seg:hover { filter: brightness(1.08); }
.bc-seg.dragging { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.bc-seg .bc-val { position: absolute; top: 1px; left: 0; right: 0; text-align: center;
                  font-size: 9px; color: #fff; pointer-events: none; }
.bc-cap { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--navy);
          opacity: .5; pointer-events: none; }
.bc-mlbl { font-size: 10px; color: var(--grey); margin-top: 5px; }
.bc-mlbl.over { color: #d1242f; font-weight: 600; }

.staff-cell { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.staff-cell > .node-card { flex: 1 1 auto; }
.stat-card { background: #f7f8fb; border-radius: 12px; padding: 10px 14px; }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--grey); padding: 3px 0; }
.stat-line b { color: var(--navy); font-weight: 600; }

/* time: sub-tabs + planned/actual + capacity */
.subtabs, .subtabs2 { display: flex; gap: 8px; margin-bottom: 16px; }
.subtabs2 { margin: 14px 0; }
.subtabs button, .subtabs2 button { font-family: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.subtabs button.on, .subtabs2 button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.pva-legend { display: flex; gap: 18px; font-size: 12px; color: var(--grey); margin-bottom: 10px; }
.pva-legend .lg { display: flex; align-items: center; gap: 6px; }
.lg-swatch { width: 18px; height: 8px; border-radius: 3px; background: #2a78d6; }
.lg-swatch.plan { opacity: 0.4; }

.gantt-group { font-size: 13px; font-weight: 600; color: var(--navy); margin: 14px 0 4px; }
.gantt-row2 { display: flex; align-items: center; margin: 2px 0; }
.gantt-row2 .g-label { flex: 0 0 170px; width: 170px; font-size: 12.5px; color: var(--ink); padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-row2 .g-label.task { color: var(--grey); font-size: 12px; }
.gantt-row2 .g-track { position: relative; flex: 1; height: 22px; }
.gantt-row2 .g-fin { flex: 0 0 120px; width: 120px; font-size: 11.5px; color: var(--grey); text-align: right; padding-left: 8px; }
.g-bar.plan { top: 2px; height: 8px; opacity: 0.4; }
.g-bar.act { top: 12px; height: 8px; }
.gantt-row2 .g-bar.ongoing { top: 9px; height: 4px; opacity: 0.5; border-radius: 2px; }
.g-bar.ghost { top: 12px; height: 8px; background: transparent; border: 1px dashed #a9a9bd; }

.scrollbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.scrollbar .nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 16px; cursor: pointer; }
.scrollbar .nav:hover:not(:disabled) { border-color: var(--navy); }
.scrollbar .nav:disabled { opacity: 0.4; cursor: default; }
.scrollbar .win { font-size: 13px; color: var(--navy); font-weight: 500; min-width: 170px; text-align: center; }

.cap-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cap-head2 { display: flex; justify-content: space-between; font-size: 14px; color: var(--grey); margin-bottom: 8px; }
.cap-head2 b { color: var(--navy); }
.cap-bar2 { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eef0f4; gap: 2px; }
.cap-bar2 .seg { height: 100%; }
.cap-bar2 .freed-seg { background: repeating-linear-gradient(45deg, #c8ecd8, #c8ecd8 4px, #eef0f4 4px, #eef0f4 8px); }
.freed { color: #1d9e75; font-weight: 500; }

.tl-row { display: flex; align-items: center; gap: 12px; padding: 6px 4px; cursor: pointer; border-radius: 8px; }
.tl-row:hover { background: #f7f8fb; }
.tl-name { flex: 0 0 200px; width: 200px; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { flex: 1; height: 14px; background: #eef0f4; border-radius: 7px; overflow: hidden; }
.tl-fill { display: block; height: 100%; }
.tl-val { flex: 0 0 130px; width: 130px; font-size: 12.5px; color: var(--grey); text-align: right; }
.cap-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.cap-legend .lg-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--grey); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.cap-legend .lg-btn:hover { color: var(--navy); }
.cap-legend .sw { width: 10px; height: 10px; border-radius: 2px; }

@media (max-width: 720px) {
    .g-label { flex-basis: 120px; width: 120px; }
}

/* ---- Role / position description ---- */
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pd-head .add { flex: none; margin-top: 4px; }
.add.sm { font-size: 12px; padding: 3px 8px; }

.pd-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 26px; }
.pd-live-item { background: #f7f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pdl-num { display: block; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.pdl-num.neg { color: #c0392b; }
.pdl-lbl { display: block; font-size: 12px; color: var(--grey); margin-top: 4px; line-height: 1.45; }

.pd-doc { max-width: 820px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 14px 16px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.pd-meta > div { display: flex; flex-direction: column; }
.pd-meta-k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.pd-meta-v { font-size: 14px; color: var(--ink); font-weight: 600; }
.pd-h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 26px 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--line); }
.pd-h3 { font-size: 14px; font-weight: 700; color: #c25e00; margin: 16px 0 4px; }
.pd-p { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.pd-list { margin: 4px 0 6px; padding-left: 20px; }
.pd-list li { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 3px 0; }
.pd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 34px; }

.pd-split { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.pd-split-bar { display: flex; align-items: center; gap: 12px; }
.pdsb-track { flex: 1; max-width: 340px; height: 10px; background: #eef0f5; border-radius: 6px; overflow: hidden; }
.pdsb-fill { display: block; height: 100%; background: linear-gradient(90deg, #c25e00, #e8873a); }
.pdsb-lbl { font-size: 13px; color: var(--grey); }

.pd-edit { max-width: 680px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pd-ta { width: 100%; font-family: inherit; line-height: 1.5; resize: vertical; }
.pd-edit-head { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pd-hint { font-weight: 400; font-size: 12px; color: var(--grey); }
.pd-split-row { display: flex; align-items: center; gap: 8px; }
.pd-split-row .sel { flex: 1; }
.pd-pct { flex: none !important; width: 70px; }
.pd-grp-edit { border-left: 3px solid #e8873a; padding-left: 12px; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.del-btn { flex: none; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--grey); cursor: pointer; padding: 4px 8px; font-family: inherit; }
.del-btn:hover { color: #c0392b; border-color: #e5b4ae; }

@media (max-width: 720px) {
    .pd-two { grid-template-columns: 1fr; }
}
