:root{--navy:#0b1f33;--navy2:#132b45;--gold:#d6a84b;--paper:#f4f7fa;--ink:#172433;--muted:#6d7885}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--paper);color:var(--ink)}a{color:#2b608f;text-decoration:none}aside{position:fixed;width:250px;inset:0 auto 0 0;background:var(--navy);color:white;padding:28px 20px}.brand{font-size:27px;font-weight:800;letter-spacing:1px;margin-bottom:34px}.brand span{color:var(--gold);margin-left:7px}nav a{display:block;color:#dce6ef;padding:12px 14px;border-radius:8px;margin:4px 0}nav a.active,nav a:hover{background:var(--navy2);color:white}.app{margin-left:250px}header{height:76px;background:white;border-bottom:1px solid #dde3e8;display:flex;align-items:center;justify-content:space-between;padding:0 34px}header small{display:block;color:var(--muted);margin-top:3px}.content{padding:34px}.hero{background:linear-gradient(120deg,var(--navy),#183b5e);color:white;border-radius:16px;padding:34px;display:flex;justify-content:space-between;box-shadow:0 10px 30px #0b1f3317}.hero small{color:var(--gold);font-weight:700}.hero h1{font-size:34px;margin:8px 0}.hero p{color:#d8e2eb}.badge{border:1px solid #d6a84b88;border-radius:12px;padding:18px 25px;text-align:center;color:var(--gold);font-size:22px;font-weight:800}.badge span{font-size:10px;letter-spacing:2px}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.cards article,.panel{background:white;border:1px solid #e1e6eb;border-radius:12px;padding:22px}.cards small,.cards span{display:block;color:var(--muted)}.cards strong{display:block;font-size:32px;color:var(--navy);margin:9px 0}.panel{margin-top:22px}.flow{padding:18px;background:#f8fafc;border-radius:9px}.flow b{color:var(--gold);padding:0 7px}.muted{color:var(--muted)}.login-wrap,.install{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#071827,#12304d)}.login-card,.install-card{width:min(470px,92vw);background:white;padding:38px;border-radius:16px;box-shadow:0 25px 70px #0005}.mark{font-size:32px;font-weight:900;color:var(--navy);border-left:6px solid var(--gold);padding-left:12px}.login-card h1,.install-card h1{color:var(--navy)}label{display:block;font-size:13px;font-weight:650;margin:15px 0 6px}input{width:100%;padding:12px;border:1px solid #ccd5dd;border-radius:7px}button{width:100%;margin-top:20px;padding:13px;border:0;border-radius:7px;background:var(--navy);color:white;font-weight:700;cursor:pointer}.alert{background:#fff1f1;color:#9a2f2f;padding:11px;border-radius:7px}.success{background:#edf9f0;color:#26633a;padding:11px;border-radius:7px}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}aside{width:200px}.app{margin-left:200px}}@media(max-width:720px){aside{display:none}.app{margin-left:0}.cards{grid-template-columns:1fr}.content{padding:18px}.hero{display:block}}
.page-title{margin-bottom:20px}.page-title h1{margin:0 0 6px;color:var(--navy)}.page-title p{margin:0;color:var(--muted)}textarea,select{width:100%;padding:12px;border:1px solid #ccd5dd;border-radius:7px;background:white;font:inherit}textarea{min-height:92px;resize:vertical}.grid2,.grid3,.grid4,.split{display:grid;gap:16px}.grid2,.split{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.end{display:flex;align-items:end}.end button{margin:0}.table-wrap{overflow:auto;background:white;border:1px solid #e1e6eb;border-radius:12px;margin-top:18px}table{width:100%;border-collapse:collapse;font-size:13px}th{background:var(--navy);color:white;text-align:left;padding:12px;white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid #edf0f3;vertical-align:top;max-width:420px}tr:last-child td{border-bottom:0}.panel button{width:auto;padding:11px 18px}.empty{padding:28px;text-align:center;color:var(--muted)}@media(max-width:1000px){.grid3,.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.grid2,.grid3,.grid4,.split{grid-template-columns:1fr}}

/* v1.3 RCM workspace */
.source-banner{background:#fff8e8;border-left:4px solid #D6A84B;padding:14px 18px;margin:0 0 20px;border-radius:8px}.record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin:12px 0 28px}.record-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #dfe6ec;border-radius:12px;padding:18px;text-decoration:none;color:#0B1F33}.record-card:hover{border-color:#D6A84B;box-shadow:0 5px 18px rgba(11,31,51,.08)}.record-card small,.record-card span{color:#6b7a89}.record-card p{margin:0;color:#445565}.mini-btn{display:inline-block;background:#0B1F33;color:#fff!important;padding:6px 10px;border-radius:6px;text-decoration:none;white-space:nowrap}

/* v1.4 Client Strategy Builder */
.strategy-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.strategy-hero{margin-bottom:20px}
.status-pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#edf1f5;color:#43515e;font-size:12px;font-weight:700;white-space:nowrap}
.status-draft{background:#eef3f7;color:#405469}.status-engineering_review{background:#fff4d8;color:#7d5a00}.status-client_review{background:#e8f1ff;color:#255d9b}.status-approved{background:#eaf8ee;color:#257240}.status-published{background:#e3f7f4;color:#14685d}.status-superseded{background:#f0f0f0;color:#747474}
.inline-form{display:inline}.inline-form button{width:auto;margin:0}
.source-panel{border-left:4px solid var(--gold)}
@media(max-width:1000px){.strategy-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.strategy-cards{grid-template-columns:1fr}}

/* v1.4.1 Asset Type / Asset Register / RCM Wizard */
.asset-tree{list-style:none;margin:8px 0 8px 18px;padding:0;border-left:1px solid #dbe3ea}
.asset-tree>li{margin:0;padding:0 0 0 12px}
.tree-row{display:flex;align-items:center;gap:9px;min-height:38px;padding:6px 8px;border-bottom:1px solid #edf1f4;flex-wrap:wrap}
.tree-row:hover{background:#f7f9fb}.tree-inactive{opacity:.55;text-decoration:none;background:#f8f8f8}
.tree-toggle{color:var(--gold);font-size:12px}.tree-name{font-weight:700;color:var(--navy);text-decoration:none}.tree-level{font-size:11px;font-weight:800;text-transform:uppercase;color:#617486;background:#eef3f7;border-radius:999px;padding:4px 7px}.tree-code{font-size:12px;color:#68798a}.tree-panel{padding:16px}.tree-asset-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.tree-asset-head h3{margin:3px 0}
.focus-row{outline:2px solid var(--gold);outline-offset:-2px;background:#fffaf0}.inline-reason{display:inline-block;max-width:220px;margin:0 6px 0 0;padding:7px 9px}
.wizard-form{display:grid;gap:18px}.wizard-step{position:relative;background:#fff;border:1px solid #dfe6ec;border-radius:14px;padding:22px 22px 22px 70px;box-shadow:0 7px 20px rgba(11,31,51,.04)}
.step-no{position:absolute;left:20px;top:20px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800}.wizard-step h2{margin-top:2px}
.requirement-warning{background:#fff4d8;border:1px solid #e8c86a;border-left:5px solid var(--gold);border-radius:10px;padding:14px 16px;margin:12px 0}.requirement-warning pre{white-space:pre-wrap;font:inherit;margin:8px 0 0}.tactic-summary{border-left:4px solid var(--gold)}
.end{display:flex;align-items:flex-end}
@media(max-width:800px){.tree-asset-head{display:block}.wizard-step{padding:18px}.step-no{position:static;margin-bottom:8px}}

/* v1.4.2 controlled lists & radio-button controls */
.choice-field{border:0;padding:0;margin:12px 0 16px}.choice-field legend{font-weight:700;margin-bottom:8px}
.radio-chip{display:inline-flex;align-items:center;margin:0 8px 8px 0;cursor:pointer}
.radio-chip input{position:absolute;opacity:0;pointer-events:none}
.radio-chip span{display:inline-block;padding:9px 14px;border:1px solid #cdd8e2;border-radius:999px;background:#fff;color:var(--navy);font-weight:700;transition:.15s ease}
.radio-chip input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:0 0 0 2px rgba(214,168,75,.25)}
.radio-chip:hover span{border-color:var(--gold)}

/* v1.4.3 operating state definitions and trade management */
.state-help{margin:8px 0 16px;padding:11px 13px;border-radius:9px;background:#f5f8fb;border-left:4px solid var(--gold);font-size:13px;line-height:1.55}
.switch-row{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.switch-row input{width:auto}

/* v1.5 Strategy Library, task validation & work packages */
.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.secondary-btn{background:#65788a!important}.danger-btn{background:#8e3434!important}
.mix-row{margin:14px 0}.mix-row>div:first-child{display:flex;justify-content:space-between;gap:12px}.mix-track{height:12px;background:#edf1f4;border-radius:999px;overflow:hidden;margin-top:5px}.mix-track i{display:block;height:100%;background:var(--gold);border-radius:999px}
.chip-list{display:flex;gap:7px;flex-wrap:wrap}
.prt-sheet{background:#fff;color:#111;max-width:1000px;margin:0 auto;padding:28px;border:1px solid #cfd8df}.prt-head{display:flex;justify-content:space-between;border-bottom:3px solid #0B1F33;padding-bottom:12px}.prt-meta{padding:12px 0;line-height:1.7}.prt-sheet table{width:100%;border-collapse:collapse}.prt-sheet th,.prt-sheet td{border:1px solid #777;padding:8px;vertical-align:top}.prt-sign{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}
@media print{aside,header,.no-print,.content>p:not(.prt-sheet p){display:none!important}.app{margin:0!important}.content{padding:0!important}.prt-sheet{border:0;max-width:none;padding:0}}

/* v1.5.1 Engineering Data Rebaseline */
.rebaseline-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.chain-panel{border-left:4px solid #D6A84B}.chain-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.nested-card{margin:18px 0 10px 22px;padding:18px;border:1px solid #dce5ec;border-radius:12px;background:#fafcfd}.task-rebaseline{margin:15px 0 8px 22px;padding:16px;border-left:3px solid #7c8f9f;background:#fff}.source-box{margin:10px 0;padding:13px;background:#f4f6f8;border-radius:8px;white-space:normal}.grammar-preview{padding:10px 12px;background:#fff8e7;border-left:4px solid #D6A84B;border-radius:7px}.chain-panel details,.nested-card details,.task-rebaseline details{margin:10px 0}.chain-panel summary,.nested-card summary,.task-rebaseline summary{cursor:pointer;font-weight:700;color:#334b60}
@media(max-width:900px){.rebaseline-cards{grid-template-columns:1fr}.chain-title{display:block}.nested-card,.task-rebaseline{margin-left:0}}

/* v1.5.2 Rebaseline Programme Manager */
.issue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.issue-card{display:grid;gap:5px;text-decoration:none;border:1px solid #dfe6ec;border-left:5px solid #8da0b2;border-radius:10px;padding:13px;background:#fff;color:var(--navy)}.issue-card strong{font-size:24px}.issue-card.blocking{border-left-color:#9a2f2f}.issue-card.warning{border-left-color:var(--gold)}.issue-card.info{border-left-color:#477b9d}.mini-progress{width:110px;height:9px;background:#e8edf1;border-radius:99px;overflow:hidden}.mini-progress i{display:block;height:100%;background:var(--gold);border-radius:99px}.bulk-panel{border-left:4px solid var(--gold)}.bulk-panel select{max-width:100%}.rebaseline-cards article strong{font-size:30px}
