:root { --green: #2E9B50; --green-d: #23793E; --green-l: #E8F5EC; --slate: #2D3E50; --grey: #4A5568; --line: #D9E0E7;
  --bg: #F4F6F8; --white: #fff; --red: #C0392B; --red-l: #FBEAE8; --amber: #B7791F; --amber-l: #FDF3DC; --brand: var(--green); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.45;
  color: var(--grey); background: var(--bg); }
h1, h2, h3 { color: var(--slate); margin: 0; line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--green-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.btn { background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 6px; padding: 9px 16px; font-weight: 700; }
.btn:hover { background: var(--green-d); }
a.btn { text-decoration: none; display: inline-block; }
.btn.second { background: #fff; color: var(--slate); border-color: var(--line); }
.btn.second:hover { background: var(--bg); }
.btn.danger { background: #fff; color: var(--red); border-color: #E3B8B2; }
.btn.small { padding: 5px 10px; font-size: .92rem; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--green-d); text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #B9C4CF; border-radius: 6px; background: #fff; color: var(--slate); }
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #9AD3AC; outline-offset: 1px; }
input:disabled, select:disabled, textarea:disabled { background: #F1F4F7; color: var(--grey); }
label.f { display: block; margin: 0 0 14px; }
label.f > span, .flabel { display: block; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
label.f .need { color: var(--red); font-weight: 400; }
.help { font-size: .9rem; margin: 2px 0 0; }
.checks { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; max-height: 190px; overflow: auto; background: #fff; }
.checks label { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.checks input { margin-top: 4px; }

/* sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 420px; }
.auth .logo { justify-content: center; margin-bottom: 6px; }
.auth .strap { text-align: center; margin: 0 0 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.6rem; color: var(--slate); text-decoration: none; }
.logo b { color: var(--green); font-weight: 700; }
.logo svg { width: 36px; height: 36px; flex: none; }
.err { background: var(--red-l); color: #8E241A; border-radius: 6px; padding: 9px 12px; margin: 0 0 14px; }
.note { background: var(--green-l); color: #1D5E32; border-radius: 6px; padding: 9px 12px; margin: 0 0 14px; }

/* shell */
.top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 10px 20px; position: sticky; top: 0; z-index: 5; }
.top .logo { font-size: 1.3rem; } .top .logo svg { width: 28px; height: 28px; }
.top .client { font-weight: 700; color: var(--slate); border-left: 1px solid var(--line); padding-left: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .space { flex: 1; }
.top .who { white-space: nowrap; }
.menu-btn { display: none; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 54px); }
.side { background: var(--slate); color: #CBD5E0; padding: 14px 0 30px; }
.side a { display: flex; justify-content: space-between; gap: 8px; color: #E2E8F0; text-decoration: none; padding: 7px 20px; border-left: 4px solid transparent; }
.side a:hover { background: #38495C; }
.side a.on { background: #38495C; border-left-color: var(--brand); color: #fff; font-weight: 700; }
.side .grp { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB0C2; padding: 16px 20px 4px; font-weight: 700; }
.side .badge { background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .8rem; font-weight: 700; align-self: center; }
.main { padding: 24px 28px 60px; min-width: 0; }
.crumbs { font-size: .92rem; margin-bottom: 8px; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.head p { margin: 4px 0 0; max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; border-top: 4px solid var(--line); }
.tile b { display: block; font-size: 2rem; color: var(--slate); line-height: 1.1; }
.tile.bad { border-top-color: var(--red); } .tile.bad b { color: var(--red); }
.tile.warn { border-top-color: var(--amber); } .tile.warn b { color: var(--amber); }
.tile.good { border-top-color: var(--green); }
.pdca { margin: 0 0 26px; }
.pdca > h2 { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: 12px; }
.pdca > h2 small { font-size: .9rem; font-weight: 400; color: var(--grey); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--grey); }
.rcard:hover { border-color: var(--green); box-shadow: 0 1px 6px rgba(45, 62, 80, .12); }
.rcard .cl { font-size: .8rem; color: var(--green-d); font-weight: 700; }
.rcard h3 { margin: 2px 0 6px; }
.rcard .n { font-size: 1.5rem; font-weight: 700; color: var(--slate); }
.rcard .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .85rem; font-weight: 700; background: #E9EEF3; color: var(--slate); white-space: nowrap; }
.pill.red { background: var(--red-l); color: #8E241A; } .pill.amber { background: var(--amber-l); color: #7A5210; } .pill.green { background: var(--green-l); color: #1D5E32; }

/* tables */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tools input[type=search] { max-width: 300px; } .tools select { width: auto; }
.tablewrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #E8EDF2; }
th { background: #F1F4F7; color: var(--slate); font-size: .9rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr.go { cursor: pointer; } tbody tr.go:hover { background: #F7FAF8; }
td.ref { font-weight: 700; color: var(--slate); white-space: nowrap; }
td.clip { max-width: 380px; }
.empty { background: #fff; border: 1px dashed #B9C4CF; border-radius: 10px; padding: 26px; text-align: center; }
.empty p { margin: 0 0 12px; }

/* record */
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .wide { grid-column: 1 / -1; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.panel > h2 { margin-bottom: 12px; }
.ro { padding: 9px 10px; background: #F1F4F7; border-radius: 6px; min-height: 40px; color: var(--slate); }
.items td .link { margin-right: 10px; }
.hist { font-size: .93rem; } .hist li { margin-bottom: 8px; } .hist .ch { display: block; color: var(--grey); }
.savebar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; }

/* modal and toast */
.modal { position: fixed; inset: 0; background: rgba(45, 62, 80, .55); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal[hidden], .toast[hidden] { display: none; }
.modal .box { background: #fff; border-radius: 10px; padding: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; }
.modal .box h2 { margin-bottom: 12px; }
.modal .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.toast { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); background: var(--slate); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 30; max-width: 92vw; }
.toast.bad { background: var(--red); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--grey); border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--slate); font-weight: 700; border-bottom-color: var(--brand); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; } .side.open { display: block; }
  .menu-btn { display: inline-block; }
  .main { padding: 16px 14px 60px; }
  .cols, .grid2 { grid-template-columns: 1fr; }
  .top { padding: 8px 12px; gap: 10px; } .top .who .nm { display: none; }
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack td { display: flex; gap: 10px; border: 0; padding: 3px 12px; max-width: none; }
  table.stack td::before { content: attr(data-l); font-weight: 700; color: var(--slate); flex: 0 0 38%; }
}
@media print { .top, .side, .savebar, .actions, .tools { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* what needs doing */
.dueblock { margin-bottom: 18px; } .dueblock h3 { margin: 0 0 8px; }
table.due td { vertical-align: top; } table.due td.act { text-align: right; white-space: nowrap; } table.due a { text-decoration: none; color: var(--slate); } table.due a:hover { text-decoration: underline; }
.btn.small { padding: 6px 12px; font-size: .92rem; }
h2.sys { margin: 30px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } @media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } table.due td.act { text-align: left; } }
@media (min-width: 761px) { table.due { table-layout: fixed; width: 100%; } table.due td:nth-child(1) { width: 160px; } table.due td:nth-child(3) { width: 170px; } table.due td:nth-child(4) { width: 180px; } table.due td:nth-child(5) { width: 160px; } }

/* registers that read like registers */
table.reg td .v { display: block; } table.reg td.wide { min-width: 230px; } table.reg td.ttl { min-width: 200px; font-weight: 600; color: var(--slate); } table.reg td.tight, table.reg td.meta { white-space: nowrap; }
table.reg.compact td .v { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.reg th { position: sticky; top: 0; }
label.chk { display: flex; align-items: center; gap: 8px; } label.chk input { width: auto; }
.side a.grp { display: block; text-decoration: none; cursor: pointer; border-left: 4px solid transparent; } .side a.grp:hover, .side a.grp.on { color: #fff; background: #38495C; } .side a.grp.on { border-left-color: var(--brand); }
.side a.sub { padding-left: 30px; }
.only-phone { display: none !important; }
/* clause pages */
.stmt { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; }
.stmt-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .stmt-head h2 { margin: 0 0 8px; } .stmt .code { color: var(--green-d); }
.stmt-body { max-width: 80ch; } .stmt-body p { margin: 0 0 8px; } .stmt-body h4 { margin: 12px 0 4px; color: var(--slate); } .stmt-body ul { margin: 0 0 8px; padding-left: 20px; }
.stmt .points { margin: 6px 0; } .stmt .cards { margin-top: 10px; } .ver { border-top: 1px solid var(--line); padding: 10px 0; }
tr.done td { background: var(--green-l); }
@media (max-width: 860px) {
  .only-phone { display: flex !important; } .not-phone { display: none !important; }
  .top .logo span { display: none; } .top .client { border-left: 0; padding-left: 0; flex: 1; }
  table.reg thead { display: none; }
  table.reg, table.reg tbody { display: block; }
  table.reg tr { display: flex; flex-wrap: wrap; border-bottom: 6px solid var(--bg); padding: 10px 12px; }
  table.reg td { flex: 0 0 100%; order: 2; border: 0; padding: 2px 0; max-width: none; min-width: 0 !important; white-space: normal !important; }
  table.reg td.empty { display: none; }
  table.reg td::before { content: attr(data-l); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7A8C; margin-top: 8px; }
  table.reg td.ref { order: 0; color: var(--green-d); } table.reg td.ref::before, table.reg td.ttl::before { display: none; }
  table.reg td.ttl { order: 1; font-size: 1.08rem; }
  table.reg td.meta { order: 3; flex: 0 0 auto; margin: 10px 14px 0 0; font-size: .92rem; } table.reg td.meta::before { display: inline; content: attr(data-l) ': '; text-transform: none; letter-spacing: 0; font-size: .92rem; margin: 0; }
  .stmt { padding: 14px; }
}
@media print { .no-print, .crumbs, .toast { display: none !important; } .stmt { border: 0; padding: 0 0 10px; break-inside: avoid; } .tablewrap { border: 0; overflow: visible; } table.reg td, table.reg th { font-size: 9pt; padding: 4px 6px; } }

/* phone cards: short answers on one line; long titles read as text */
table.reg td.sum, table.reg th.sum { display: none; }
td.empty { background: none; border: 0; border-bottom: 1px solid #E8EDF2; border-radius: 0; padding: 9px 12px; text-align: left; }
table.perf td.trend { min-width: 144px; } table.perf td.wide { min-width: 180px; } table.perf td.ttl { min-width: 220px; }
/* objectives and performance */
.spark { display: inline-block; line-height: 0; vertical-align: middle; } .spark svg { display: block; max-width: 100%; }
.trendrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
table.perf td.act { text-align: right; }
.doing { margin-top: 22px; } .doing-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.doing-row.sub { grid-template-columns: 190px minmax(0, 1fr) auto; border-top: 0; padding: 2px 0 6px; } .doing-row.sub > span:first-child { text-align: right; }
.doing-row a { color: var(--slate); }
@media (max-width: 860px) {
  table.reg td.short { display: none; }
  table.reg td.sum { display: block; order: 1; color: var(--grey); font-size: .95rem; } table.reg td.sum::before { display: none; } table.reg td.sum:empty { display: none; }
  table.reg td.ttl.long { font-weight: 400; font-size: 1rem; color: var(--ink, #1F2933); }
  table.perf td.act { text-align: left; margin-top: 10px; } table.perf td.act::before { display: none; } table.perf td.meta .help { display: inline; margin-left: 8px; }
  .doing-row, .doing-row.sub { grid-template-columns: 1fr; gap: 2px; } .doing-row.sub > span:first-child { text-align: left; }
}

/* management review pack */
.agenda .pulled p { margin: 0 0 6px; } .agenda h4 { margin: 14px 0 6px; color: var(--slate); } .agenda textarea { width: 100%; }
table.pack th, table.pack td { font-size: .93rem; padding: 6px 10px; } table.pack td { max-width: 420px; }
.addaction { display: grid; grid-template-columns: minmax(0, 1fr) 190px 160px auto; gap: 8px; margin-top: 8px; align-items: center; }
@media (max-width: 860px) { .addaction { grid-template-columns: 1fr; } table.pack td { max-width: none; } }
@media print { .agenda textarea, #meeting textarea { border: 1px solid #999; min-height: 70px; } .agenda { break-inside: auto; } table.pack th, table.pack td { font-size: 8.5pt; padding: 3px 5px; } .head .actions { display: none !important; } }
details.lines > summary { cursor: pointer; color: var(--green-d); font-size: .93rem; margin: 2px 0 6px; } details.lines[open] > summary { color: var(--grey); }
@media (min-width: 861px) { details.lines > summary { display: none; } }

/* internal audit */
ol.stages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
ol.stages li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; color: var(--grey); font-size: .93rem; }
ol.stages li b { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #E9EEF3; color: var(--slate); font-size: .82rem; margin-right: 4px; }
ol.stages li.now { border-color: var(--slate); color: var(--slate); font-weight: 700; } ol.stages li.now b { background: var(--slate); color: #fff; }
ol.stages li.did b { background: var(--green); color: #fff; }
dl.facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; margin: 0; } dl.facts dt { font-weight: 700; color: var(--slate); } dl.facts dd { margin: 0; }
table.audit select { min-width: 150px; } table.audit textarea { width: 100%; min-width: 240px; } table.audit td.ttl { min-width: 140px; }
.tofind { border-top: 1px solid var(--line); padding: 10px 0; } .tofind textarea { width: 100%; }
@media (max-width: 860px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 8px; } table.audit textarea { min-width: 0; } table.audit select { width: 100%; } }
@media print { table.audit textarea { border: 1px solid #999; min-height: 44px; } table.audit select { border: 1px solid #999; } #auditFacts { border: 0; padding: 0; } }

/* process map */
.pband { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; } .pband.core { border-color: var(--slate); border-width: 2px; }
.pband-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 10px; } .pband-h b { color: var(--slate); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; } .pband-h span { color: var(--grey); font-size: .9rem; }
.prow, .pchain { display: flex; flex-wrap: wrap; gap: 10px; } .pchain { gap: 10px 30px; align-items: stretch; }
.pbox { background: #F1F4F7; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink, #1F2933); min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.pbox:hover { border-color: var(--brand); } .pbox b { display: block; color: var(--slate); } .pbox span { font-size: .88rem; color: var(--grey); }
.pchain .pbox { background: var(--slate); border-color: var(--slate); position: relative; } .pchain .pbox b { color: #fff; } .pchain .pbox span { color: #D5DCE4; }
.pend { align-self: center; font-size: .9rem; color: var(--grey); max-width: 120px; position: relative; }
.pchain > *:not(:last-child)::after { content: '→'; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--slate); font-size: 1.3rem; font-weight: 700; }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ptile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; } .ptile h4 { margin: 0 0 6px; color: var(--slate); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.ptile ul { margin: 0 0 6px; padding-left: 18px; } .ptile p { margin: 0 0 6px; } .ptile li { margin-bottom: 3px; } .ppurpose { max-width: 80ch; }
.pcard { scroll-margin-top: 70px; }
@media (max-width: 1100px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ptiles { grid-template-columns: 1fr; } .pchain { flex-direction: column; gap: 26px; } .pchain .pbox, .pbox { max-width: none; } .pend { max-width: none; align-self: flex-start; }
  .pchain > *:not(:last-child)::after { content: '↓'; right: auto; left: 20px; top: auto; bottom: -25px; transform: none; } }
@media print { .pcard { break-inside: avoid; } .pbox { border: 1px solid #999; } .pchain .pbox { background: #fff; } .pchain .pbox b, .pchain .pbox span { color: #000; } }

/* ===== the July 2026 look ===== */
:root { --green-d: #25823F; --slate-l: #3A4F66; --line: #E3E8EC; --tint: #EAF3ED; --green-l: #E8F5EC; --red: #D64545; --red-l: #FBEAEA; --amber: #B5791A; --amber-l: #FDF6E7; }
body { font-size: 15px; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; }
.btn { border-radius: 8px; font-weight: 600; padding: 8px 15px; } .btn.small { padding: 5px 11px; font-size: .88rem; border-radius: 7px; }
.btn.second:hover { border-color: var(--green); background: var(--tint); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { border-color: #CBD3DB; border-radius: 8px; padding: 8px 10px; }
.card, .panel, .stmt, .pband, .empty { border-color: var(--line); border-radius: 10px; }
.panel > h2, .stmt-head h2 { font-size: 1.05rem; }
.logo img { display: block; width: 150px; height: auto; } .auth .logo img { width: 210px; margin: 0 auto; }

/* frame */
.shell { grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { padding: 0 0 12px; color: #CFD8E2; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .logo-wrap { background: #fff; padding: 20px 18px 16px; }
.side .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #9FB0C2; padding: 18px 20px 8px; font-weight: 600; }
.side a.grp, .side a.sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 20px; font-size: .9rem; color: #CFD8E2; border-left: 3px solid transparent; font-weight: 400; }
.side a.grp > span:first-child, .side a.sub > span:first-child { flex: 1; min-width: 0; }
.side a.grp:hover, .side a.sub:hover { background: var(--slate-l); color: #fff; }
.side a.grp.on { background: var(--slate-l); border-left-color: var(--green); color: #fff; font-weight: 600; }
.side a.sub { padding: 6px 20px 6px 34px; font-size: .86rem; color: #B9C6D3; } .side a.sub.shut { display: none; }
.side a.sub.on { background: none; border-left-color: transparent; color: #fff; font-weight: 600; } .side a.sub.on > span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin: 0 8px 2px -14px; }
.side .clause { font-size: .74rem; opacity: .6; font-weight: 400; white-space: nowrap; }
.side .badge { background: var(--red); border-radius: 20px; padding: 0 7px; font-size: .72rem; line-height: 1.5; }
.side .nav-foot { margin-top: auto; padding: 16px 20px 6px; font-size: .74rem; opacity: .55; line-height: 1.5; }
.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; padding: 0 26px; gap: 14px; border-bottom: 1px solid var(--line); }
.top .ptitle { font-size: 1.2rem; font-weight: 700; color: var(--slate); white-space: nowrap; } .top .ptitle .cl { color: var(--green); font-size: .84rem; font-weight: 600; margin-left: 10px; }
.top .who.me { display: flex; align-items: center; gap: 10px; } .top .who .nm { display: flex; flex-direction: column; line-height: 1.2; } .top .who .nm b { font-size: .84rem; color: var(--slate); } .top .who .nm small { font-size: .74rem; color: var(--grey); }
.top .who .link { font-size: .84rem; margin-left: 6px; } .top a.who { font-size: .84rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }
.main { padding: 24px 26px 60px; }
.crumbs { font-size: .84rem; } .crumbs a { color: var(--grey); }
.head { align-items: center; margin-bottom: 16px; } .head h1 { font-size: 1.35rem; } .head p { font-size: .86rem; }

/* home */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.qa a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: .9rem; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.qa a:hover { border-color: var(--green); background: var(--tint); }
.qa .ic { width: 26px; height: 26px; border-radius: 6px; background: var(--tint); color: var(--green); display: grid; place-items: center; font-size: .95rem; font-weight: 700; flex: none; }
.tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile, .tile.bad, .tile.warn, .tile.good { border: 1px solid var(--line); border-top: 1px solid var(--line); padding: 16px 18px; font-size: .8rem; color: var(--grey); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.tile b { font-size: 2rem; line-height: 1; } .tile.bad b { color: var(--red); } .tile.warn b { color: #E6A532; } .tile.good b { color: var(--green); }
.homegrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; min-width: 0; } .hcard.doing { margin-top: 0; }
h3.hc { font-size: .95rem; color: var(--slate); margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
h3.hc .tools { margin: 0; gap: 8px; } h3.hc select { font-size: .82rem; font-weight: 400; padding: 5px 8px; max-width: 190px; }
.dueblock { margin-bottom: 14px; } .dueblock h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin: 0 0 2px; font-weight: 600; }
table.due { table-layout: auto !important; } table.due td { padding: 10px 8px 10px 0; border-bottom: 1px solid #EEF1F4; font-size: .88rem; width: auto !important; } table.due tr:last-child td { border-bottom: 0; }
table.due td:nth-child(3), table.due td:nth-child(4) { font-size: .78rem; color: var(--grey); } table.due td:nth-child(3) { display: none; }
table.due td .help { font-size: .78rem; } table.due td.act { padding-right: 0; } table.due tr.grouprow td { background: #FAFBFC; }
.doing-row { grid-template-columns: minmax(0, 1fr) auto; border-top: 0; padding: 0 0 12px; font-size: .84rem; } .doing-row a { color: var(--green-d); font-weight: 600; text-decoration: none; font-size: .8rem; }
.doing-row.fact { grid-template-columns: 130px minmax(0, 1fr) auto; border-top: 1px solid #EEF1F4; padding: 10px 0; } .doing-row.fact b { color: var(--slate); }
.doing-row.sub { grid-template-columns: 130px minmax(0, 1fr) auto; }
a.obj { display: block; text-decoration: none; margin-bottom: 14px; } a.obj .o-top { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; margin-bottom: 6px; color: var(--grey); } a.obj .o-top b { color: var(--slate); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.obj .pct { white-space: nowrap; font-size: .78rem; } a.obj .pct.green { color: var(--green-d); font-weight: 600; } a.obj .pct.amber { color: var(--amber); font-weight: 600; } a.obj .pct.red { color: var(--red); font-weight: 600; }
a.obj .track { display: block; height: 7px; background: #EEF1F4; border-radius: 6px; overflow: hidden; } a.obj .track i { display: block; height: 100%; border-radius: 6px; background: #B9C4CF; } a.obj .track i.green { background: var(--green); } a.obj .track i.amber { background: #E6A532; } a.obj .track i.red { background: var(--red); }
a.obj:hover .o-top b { color: var(--green-d); }

/* pills, dots, banner */
.pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #EEF1F4; color: var(--grey); letter-spacing: .01em; }
.pill.red { background: var(--red-l); color: var(--red); } .pill.amber { background: var(--amber-l); color: var(--amber); } .pill.green { background: var(--green-l); color: var(--green-d); }
.rag { white-space: nowrap; } .rag .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #B9C4CF; margin-right: 6px; vertical-align: -1px; }
.rag .dot.red { background: var(--red); } .rag .dot.amber { background: #E6A532; } .rag .dot.green { background: var(--green); }
.chase { background: var(--tint); border: 1px solid #CFE6D6; border-left: 4px solid var(--green); border-radius: 8px; padding: 11px 16px; font-size: .84rem; margin-bottom: 14px; color: var(--slate); } .chase b { color: var(--green-d); }
.note { background: var(--tint); border: 1px solid #CFE6D6; color: var(--slate); border-radius: 8px; font-size: .88rem; }

/* tables */
.tablewrap { border-color: var(--line); border-radius: 10px; }
th { background: var(--slate); color: #fff; font-size: .78rem; font-weight: 600; padding: 11px 14px; border-bottom: 0; }
td { padding: 11px 14px; font-size: .88rem; border-bottom: 1px solid #EEF1F4; }
tbody tr.go:hover { background: #FAFCFB; }
td.ref { color: var(--slate); font-weight: 600; }
table.pack th, table.pack td { font-size: .82rem; padding: 7px 10px; }
.tools { align-items: center; } .tools select, .tools input[type=search] { font-size: .86rem; }
.tabs a { font-size: .9rem; } .hist { font-size: .84rem; }
.stmt .code { color: var(--green); font-size: .84rem; }
.pband.core { border-color: var(--line); border-width: 1px; border-left: 4px solid var(--green); } .pbox { background: #F7F9FA; }
ol.stages li.now { border-color: var(--green); color: var(--slate); } ol.stages li.now b { background: var(--green); }
.toast { top: 72px; }

@media (max-width: 1150px) { .homegrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  body { font-size: 16px; }
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; display: none; } .side.open { display: flex; } .side .logo-wrap { display: none; }
  .top { height: 54px; padding: 0 12px; } .top .ptitle { display: none; } .top .who .nm { display: none; } .top .client { font-size: .95rem; }
  .main { padding: 16px 12px 60px; }
  .qa { grid-template-columns: 1fr 1fr; gap: 8px; } .qa a { padding: 10px; font-size: .88rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile { padding: 12px 14px; }
  .hcard { padding: 14px; } h3.hc .tools { width: 100%; } h3.hc select { max-width: none; flex: 1; }
  table.due tr { padding: 10px 0; } table.due td { padding: 2px 0 !important; border: 0; } table.due td::before { display: none; } table.due td.act { margin-top: 6px; }
  table.due td:nth-child(4) { display: none; }
  th, td { font-size: .95rem; }
  .doing-row.fact, .doing-row.sub { grid-template-columns: 1fr; }
}
@media print { .shell { display: block; } .mainwrap { display: block; } th { background: #fff; color: #000; border-bottom: 1.5pt solid var(--green); } }
.side a.grp { text-transform: none; letter-spacing: 0; }
.top > .logo img { width: 128px; }
@media (max-width: 860px) { .pchain .pbox { flex: none; } .top .client { flex: 1; } .top > .logo img { width: 104px; } }
table.perf th, table.perf td { padding: 10px 8px; } table.perf td.ttl { min-width: 190px; } table.perf td.wide { min-width: 130px; } table.perf td.trend { min-width: 120px; } table.perf th:first-child, table.perf td:first-child { padding-left: 14px; }

/* ===== front page and the pictures ===== */
a.tile { text-decoration: none; } a.tile:hover { border-color: var(--green); } .tile.none b { color: var(--slate); }
h2.sec { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 600; margin: 4px 0 8px; }
.cstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.cs { background: #fff; border: 1px solid var(--line); border-top: 4px solid #B9C4CF; border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--grey); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs.green { border-top-color: var(--green); } .cs.amber { border-top-color: #E6A532; } .cs.red { border-top-color: var(--red); } .cs:hover { box-shadow: 0 1px 6px rgba(45, 62, 80, .12); }
.cs .n { font-size: 1.5rem; font-weight: 700; color: var(--slate); line-height: 1; } .cs b { color: var(--slate); font-size: .9rem; } .cs .st { font-size: .76rem; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #B9C4CF; margin-right: 6px; vertical-align: -1px; } .dot.red { background: var(--red); } .dot.amber { background: #E6A532; } .dot.green { background: var(--green); }
.homegrid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 18px; }
h3.hc a { font-size: .8rem; font-weight: 600; color: var(--green-d); text-decoration: none; }
.stmt-body.clip { max-height: 190px; overflow: hidden; position: relative; font-size: .9rem; } .stmt-body.clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.hcard .ver { margin: 8px 0 0; font-size: .76rem; }
.qa.wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
details.pic > summary { cursor: pointer; font-weight: 700; color: var(--slate); font-size: 1rem; } details.pic[open] > summary { margin-bottom: 12px; }
.rgwrap { display: flex; gap: 8px; align-items: center; max-width: 560px; } .rgwrap > div:nth-child(2) { flex: 1; min-width: 0; }
.rgy { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); } .rgx { text-align: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin-top: 4px; }
.rgrid { display: grid; grid-template-columns: 18px repeat(5, minmax(0, 1fr)); gap: 4px; } .rgrid .ax { font-size: .76rem; color: var(--grey); display: grid; place-items: center; }
.rc { min-height: 50px; border-radius: 6px; padding: 4px; display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; } .rc.green { background: #DDF0E3; } .rc.amber { background: #FBEBC8; } .rc.red { background: #F6CFCF; } .rc.low { background: #EEF1F4; }
.rc a, .rc .more { font-size: .68rem; font-weight: 700; background: #fff; color: var(--slate); border-radius: 4px; padding: 1px 5px; text-decoration: none; line-height: 1.5; } .rc a:hover { background: var(--slate); color: #fff; }
.tablewrap.plain { border: 0; border-radius: 0; }
table.planner th, table.planner td { padding: 6px 4px; font-size: .78rem; text-align: center; border-bottom: 1px solid #EEF1F4; } table.planner th { background: none; color: var(--grey); font-weight: 600; } table.planner th small { display: block; font-weight: 400; opacity: .7; }
table.planner th:first-child, table.planner td.ttl { text-align: left; min-width: 170px; max-width: 260px; padding-left: 0; } table.planner td.ttl a { color: var(--grey); text-decoration: none; } table.planner td.ttl b { color: var(--slate); }
table.planner .now { background: var(--tint); }
.mk { display: inline-block; font-size: 0; width: 22px; height: 12px; border-radius: 6px; vertical-align: middle; } .mk.done { background: var(--green); } .mk.prog { background: var(--slate); } .mk.plan { border: 2px solid var(--slate); background: #fff; } ol.challenge { margin: 4px 0 8px; padding-left: 22px; } ol.challenge li { margin: 0 0 8px; line-height: 1.45; }
.mk.late { background: #E0A100; } .mk.nc { background: var(--red); } .mk.rep { border: 2px dashed #9FB0C2; background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; margin: 10px 0 0; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
table.cgrid th, table.cgrid td { padding: 4px; text-align: center; border: 1px solid #EEF1F4; } table.cgrid th { background: none; color: var(--slate); font-size: .74rem; font-weight: 600; white-space: normal; vertical-align: bottom; }
table.cgrid th.up { height: 150px; min-width: 34px; } table.cgrid th.up a { color: var(--slate); text-decoration: none; display: inline-block; } table.cgrid th.up span { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 142px; overflow: hidden; text-align: left; line-height: 1.15; }
table.cgrid td.ttl, table.cgrid th:first-child { text-align: left; white-space: nowrap; padding: 6px 10px 6px 0; } table.cgrid td.ttl small { display: block; color: var(--grey); font-size: .74rem; }
.cg { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; font-size: .7rem; font-weight: 700; font-style: normal; } .cg.ok { background: var(--green-l); color: var(--green-d); } .cg.warn { background: var(--amber-l); color: var(--amber); } .cg.bad { background: var(--red-l); color: var(--red); } .cg.info { background: #EEF1F4; color: var(--slate); } .cg.na { color: #9FB0C2; }
@media (max-width: 1150px) { .cstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .homegrid.even { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .cstrip { grid-template-columns: 1fr 1fr; gap: 8px; } .rc { min-height: 40px; } table.planner th:first-child, table.planner td.ttl { min-width: 130px; } }
@media print { details.pic, #compGrid { break-inside: avoid; } }
table.planner th, table.planner td { padding: 6px 2px; } table.planner th:first-child, table.planner td.ttl { min-width: 150px; max-width: 210px; padding-right: 8px; } .mk { width: 20px; }
.cohead { display: flex; align-items: center; gap: 16px; min-width: 0; } .cologo { max-height: 58px; max-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.logoview { display: flex; align-items: center; gap: 14px; margin: -6px 0 14px; } .logoview img { max-height: 60px; max-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
#issuePanel dl.facts { margin-top: 4px; } #issuePanel .chase { margin: 0 0 14px; } #issuePanel ol.stages { margin-bottom: 14px; }
@media (max-width: 860px) { .cohead { flex-wrap: wrap; } }

/* ===== clause 4.1: impact marker, SWOT grid, outcomes ===== */
.hml { white-space: nowrap; --c: var(--slate); } .hml.pos { --c: var(--green); } .hml.warn { --c: #E6A532; } .hml.neg { --c: var(--red); }
.hml i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--c); margin-right: 6px; vertical-align: -1px; box-sizing: border-box; }
.hml.high { font-weight: 700; color: var(--slate); } .hml.high i { background: var(--c); } .hml.medium i { background: radial-gradient(circle, var(--c) 0 38%, transparent 42%); } .hml.low { color: var(--grey); }
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw { border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; padding: 12px 14px; min-width: 0; } .sw.warn { border-top-color: #E6A532; } .sw.neg { border-top-color: var(--red); }
.sw h3 { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; margin-bottom: 8px; }
.sw a { display: block; color: var(--grey); text-decoration: none; font-size: .86rem; padding: 3px 0; } .sw a b { color: var(--slate); } .sw a:hover { color: var(--green-d); }
.sw details summary { cursor: pointer; font-size: .8rem; color: var(--green-d); margin-top: 6px; }
a.olink { display: block; color: var(--grey); text-decoration: none; font-size: .86rem; } a.olink b { color: var(--green-d); } a.olink:hover { text-decoration: underline; }
ul.olist { margin: 0 0 12px; padding-left: 18px; } ul.olist li { margin-bottom: 6px; }
.chase.late { background: var(--red-l); border-color: #F0C9C9; border-left-color: var(--red); } .chase.late b { color: var(--red); }
label.f .help { font-weight: 400; }
@media (max-width: 860px) { .swot { grid-template-columns: 1fr; } #outcomePanel .addaction { grid-template-columns: 1fr !important; } }
table.reg.fit td.wide { min-width: 150px; } table.reg.fit td.ttl { min-width: 170px; } table.reg.fit th, table.reg.fit td { padding-left: 10px; padding-right: 10px; }
#contextSummary { margin-bottom: 14px; } #contextSummary .tile small { order: -1; font-size: .74rem; }
#supplierPanel dl.facts { margin-top: 4px; } #supplierPanel .chase { margin: 0 0 14px; } #supplierPanel .stmt-head { align-items: center; margin-bottom: 10px; }
a.olink + a.olink, td .v a.olink { margin-top: 6px; }

/* ----- process page (4.4): Plan, Do, Check, Act; the customer loop; a card per process; the clause matrix ----- */
.pdca { display: flex; gap: 14px; align-items: stretch; background: #EEF2F6; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; } .pdca.do, .pdca.act { background: #E8F5EC; }
.pdca .pl { flex: 0 0 66px; background: var(--slate); color: #fff; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; }
.pdca .pl b { font-size: 1.8rem; line-height: 1; } .pdca .pl span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pdca .pb { flex: 1 1 0; min-width: 0; } .pdca .pband-h { margin-bottom: 8px; } .pdca .prow, .pdca .pchain { gap: 8px; align-items: stretch; } .pdca .pchain > *::after { content: none !important; }
.psub { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 6px 0; }
.pbox2 { flex: 1 1 180px; min-width: 0; text-align: left; font: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; box-shadow: 0 1px 2px rgba(45,62,80,.08); display: flex; flex-direction: column; gap: 4px; }
.pbox2:hover { border-color: var(--green); } .pbox2.on { border: 2px solid var(--green); padding: 10px 12px; }
.pbox2 .pr { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--green); } .pbox2 b { color: var(--slate); line-height: 1.25; } .pbox2 .po { font-size: .82rem; color: var(--grey); }
.pbox2 .ps { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: .82rem; font-weight: 700; } .pbox2 .ps i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }
.ps.ok { color: #2E9B50; } .ps.warn { color: #9A6515; } .ps.bad { color: #C53030; } .ps.none { color: var(--grey); font-weight: 400; } .ps.none i { background: none; border: 1.5px solid currentColor; }
.pdca .pend { flex: 0 0 124px; max-width: none; align-self: stretch; background: var(--green); color: #fff; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; font-size: .92rem; line-height: 1.2; }
.parrow { align-self: center; color: var(--green); font-weight: 700; font-size: 1.3rem; flex: none; }
.ploop { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--green); border-radius: 10px; padding: 8px 12px; margin-top: 8px; background: #fff; font-size: .88rem; color: var(--slate); }
a.pchip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--slate); } a.pchip:hover { border-color: var(--green); }
table.pmatrix { border-collapse: collapse; width: 100%; min-width: 720px; background: #fff; } .pmatrix thead th { background: var(--slate); color: #fff; font-size: .82rem; padding: 8px 10px; text-align: center; } .pmatrix thead th:first-child { text-align: left; }
.pmatrix thead th span { display: block; font-weight: 400; color: #CBD5E0; } .pmatrix tbody th { text-align: left; font-weight: 400; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--slate); } .pmatrix tbody th b { color: var(--green); }
.pmatrix td { text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--slate); } .pmatrix td.hit { background: #E8F5EC; }
@media (max-width: 860px) { .pdca { flex-direction: column; } .pdca .pl { flex: none; flex-direction: row; gap: 10px; padding: 6px 12px; justify-content: flex-start; } .pdca .pl b { font-size: 1.2rem; } .pdca .pchain { flex-direction: column; gap: 6px; } .pdca .pend { flex: none; } .parrow { transform: rotate(90deg); align-self: flex-start; margin-left: 20px; } .ploop .parrow { transform: none; margin: 0; } .pbox2 { flex: none; } }
@media print { .pdca { break-inside: avoid; } }
.pmatrix tbody th { background: #fff; }

/* ----- a procedure held in the system ----- */
.pcode { color: var(--green); } .proc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.pobj { background: #EEF2F6; border-radius: 10px; padding: 12px 14px; color: var(--slate); margin-bottom: 12px; }
.pio { border-radius: 10px; padding: 10px 14px; text-align: center; margin: 10px 0; background: #E8F5EC; } .pio h3 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
ul.pflat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; } ul.pflat li { color: var(--slate); } ul.pflat li + li::before { content: '•'; color: var(--green); margin: 0 10px; font-weight: 700; }
ol.pstrip { list-style: none; margin: 12px 0 10px; padding: 0; display: flex; gap: 6px; } ol.pstrip li { flex: 1 1 0; min-width: 0; background: var(--slate); color: #fff; border-radius: 8px; padding: 8px 6px; text-align: center; font-size: .82rem; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
ol.pstrip li b { font-size: 1.15rem; color: #8FD3A4; }
ol.psteps { list-style: none; margin: 0; padding: 0; } ol.psteps li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } ol.psteps li:last-child { border-bottom: 0; }
ol.psteps .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.ptiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; } .proc .ptile ul { padding-left: 16px; }
.prel { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.pcl { flex: none; background: #EEF2F6; border-radius: 8px; padding: 8px 12px; text-align: center; display: flex; flex-direction: column; } a.pref { font-weight: 700; }
.pe_row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) auto; gap: 8px; align-items: start; margin-bottom: 8px; } .pe textarea { min-height: 0; }
@media (max-width: 1100px) { .ptiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ptiles.five { grid-template-columns: 1fr; } ol.pstrip { display: none; } .prel { flex-direction: column; align-items: flex-start; } .pe_row { grid-template-columns: 1fr; } }

/* the process map as the way round the system */
.pwrap { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .pwrap .pbox2 { flex: 1 1 auto; }
.preg { display: flex; flex-wrap: wrap; gap: 4px; } .preg a { font-size: .78rem; font-weight: 700; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px 10px; color: var(--slate); min-height: 28px; } .preg a:hover { border-color: var(--green); color: var(--green); }
a.tomap { display: flex; align-items: center; gap: 14px; background: var(--slate); color: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; text-decoration: none; } a.tomap b { font-size: 1.05rem; } a.tomap span { color: #CBD5E0; flex: 1 1 auto; } a.tomap .go { flex: none; color: #8FD3A4; font-size: 1.4rem; font-weight: 700; } a.tomap:hover { background: #24333F; }
@media (max-width: 860px) { .pwrap { flex: none; } a.tomap { flex-wrap: wrap; } }

/* ---------- organisation chart: a tree drawn from who reports to whom ---------- */
.otree { display: inline-block; min-width: 100%; padding: 6px 4px 10px; text-align: center; }
.otree ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 22px 0 0; position: relative; }
.otree > ul { padding-top: 0; }
.otree li { position: relative; padding: 22px 7px 0; display: flex; flex-direction: column; align-items: center; }
.otree > ul > li { padding-top: 0; }
.otree li::before, .otree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid #9AA8B5; }
.otree li::after { right: auto; left: 50%; border-left: 2px solid #9AA8B5; margin-left: -1px; }
.otree li:first-child::before, .otree li:last-child::after { border-top-color: transparent; }
.otree > ul > li::before, .otree > ul > li::after { display: none; }
.otree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; margin-left: -1px; height: 22px; border-left: 2px solid #9AA8B5; }
.onode { display: block; width: 176px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 9px; padding: 9px 10px 10px; text-decoration: none; color: var(--grey); box-shadow: 0 1px 2px rgba(45,62,80,.06); }
.onode b { display: block; color: var(--slate); font-size: .98rem; margin-bottom: 3px; } .onode span { display: block; font-size: .85rem; line-height: 1.35; } .onode span.none { font-style: italic; }
.onode:hover { border-color: var(--green); background: var(--tint); } .onode.vacant { border-style: dashed; border-top-style: solid; border-top-color: var(--amber); }
.otree > ul > li > .onode { background: var(--slate); border-color: var(--slate); border-top-color: var(--slate); color: #DCE4EC; } .otree > ul > li > .onode b { color: #fff; } .otree > ul > li > .onode:hover { background: var(--slate-l); }
/* a statement opened directly (the scope, the policy) is marked */
.stmt.focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); scroll-margin-top: 70px; }
.pmatrix button.pmx { text-align: left; color: var(--slate); text-decoration: none; font: inherit; padding: 0; } .pmatrix button.pmx:hover { text-decoration: underline; color: var(--green-d); }
#emptyCols { margin-bottom: 10px; } #emptyCols table { min-width: 0; }

/* ---------- home page as the company's front door: introduction, key facts, certificates and insurances ---------- */
.hcard.about { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.about .atext { flex: 999 1 420px; min-width: 0; } .about .atext h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--slate); } .about .atext p { margin: 0 0 8px; line-height: 1.55; max-width: 75ch; } .about .atext a { font-weight: 700; font-size: .92rem; }
.about .afacts { flex: 1 1 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-content: start; background: var(--tint); border-radius: 12px; padding: 16px; }
.afacts span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; } .afacts b { display: block; font-weight: 400; color: var(--slate); line-height: 1.4; }
#frontCerts { margin-bottom: 18px; } .chead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 18px; margin-bottom: 14px; } .chead h3 { margin: 0; font-size: 1.2rem; color: var(--slate); } .chead p { margin: 2px 0 0; }
.cflags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .cflags a { font-weight: 700; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cert { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; background: #fff; }
.cert .ctop { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .cert .kind { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.cert a.cname { font-size: 1.12rem; font-weight: 700; color: var(--slate); text-decoration: none; line-height: 1.25; } .cert a.cname:hover { text-decoration: underline; }
.cert p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--grey); flex: 1; } .cert p b { color: var(--slate); } .cert .actions { margin-top: 4px; gap: 8px; } .cert .nofile { flex: 0; font-style: italic; }

/* home page brought up to the agreed mock-up: larger type, more room, scope and policy as two even boxes */
#frontAbout, #frontCerts, #frontScope, #frontPolicy { padding: 24px 26px; border-radius: 14px; }
#frontAbout .atext h3, #frontCerts .chead h3 { font-size: 1.4rem; } #frontAbout .atext p { font-size: 1.1rem; line-height: 1.6; } #frontAbout .atext a { font-size: 1rem; }
#frontAbout .afacts { padding: 18px 20px; gap: 16px 20px; } .afacts span { font-size: .78rem; } .afacts b { font-size: 1.05rem; }
#frontCerts .chead p { font-size: 1rem; } .cflags .pill { font-size: .9rem; padding: 5px 12px; } .cflags a { font-size: 1.02rem; }
.certs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert { padding: 18px; gap: 9px; border-radius: 12px; } .cert .kind { font-size: .78rem; } .cert .pill { font-size: .86rem; padding: 3px 10px; } .cert a.cname { font-size: 1.25rem; } .cert p { font-size: 1rem; line-height: 1.5; }
.cert .actions .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.homegrid.even { align-items: stretch; } #frontScope, #frontPolicy { display: flex; flex-direction: column; }
#frontScope h3.hc, #frontPolicy h3.hc { font-size: 1.4rem; } #frontScope h3.hc a, #frontPolicy h3.hc a { font-size: 1rem; }
#frontScope .stmt-body.clip, #frontPolicy .stmt-body.clip { max-height: 108px; font-size: 1.05rem; line-height: 1.55; flex: 1; }
#frontScope .ver, #frontPolicy .ver { margin-top: 12px; } #frontScope .actions .btn, #frontPolicy .actions .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
h2.sec { font-size: .86rem; margin-top: 6px; }
@media (max-width: 700px) { #frontAbout, #frontCerts, #frontScope, #frontPolicy { padding: 16px; } #frontAbout .atext p { font-size: 1rem; } }

/* 5.1: each leadership commitment linked to where it can be seen in the system */
.shown { margin: 14px 0 4px; border-top: 1px solid var(--line); padding-top: 12px; } .shown h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.shown ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 18px; }
.shown li { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 9px 12px; background: var(--tint); border-radius: 8px; } .shown li b { color: var(--slate); } .shown li a { font-weight: 700; } .shown li span { font-size: .88rem; color: var(--grey); }
.pill.edition { background: var(--tint); color: var(--slate); font-size: .74rem; vertical-align: middle; }

/* ---------- responsibility matrix (5.3): tasks by process down the side, roles across ---------- */
table.respx { border-collapse: collapse; width: 100%; min-width: 760px; } table.respx th, table.respx td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: center; vertical-align: middle; }
table.respx thead th { background: var(--slate); color: #fff; font-size: .84rem; font-weight: 700; white-space: normal; } table.respx thead th:first-child { text-align: left; border-radius: 8px 0 0 0; } table.respx thead th:last-child { border-radius: 0 8px 0 0; }
table.respx thead th a { color: #fff; text-decoration: none; } table.respx thead th a:hover { text-decoration: underline; } table.respx th.role { width: 11%; min-width: 86px; }
table.respx tr.grp th { background: var(--tint); color: var(--slate); text-align: left; font-size: .95rem; } table.respx tr.grp th a { font-weight: 700; }
table.respx td.task { text-align: left; color: var(--grey); } table.respx tbody tr:hover td { background: #FAFBFC; }
.rm { display: inline-block; min-width: 38px; padding: 3px 8px; border-radius: 6px; font-size: .8rem; font-weight: 700; font-style: normal; }
.rm.ar { background: var(--slate); color: #fff; } .rm.a { background: #DCE4EC; color: var(--slate); } .rm.r { background: var(--green-l); color: var(--green-d); } .rm.c { background: #F1F3F5; color: var(--grey); }
#respMatrix .legend .rm { margin-right: 6px; }

/* ---------- the quality policy on its own page, and its card on the clause page ---------- */
.policy-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; } @media (max-width: 1100px) { .policy-wrap { grid-template-columns: 1fr; } }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px 40px 26px; box-shadow: 0 1px 3px rgba(45,62,80,.06); max-width: 900px; }
.paper header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; } .paper header img { max-height: 70px; max-width: 240px; } .paper header .co { font-size: 1.3rem; color: var(--slate); }
table.pctl { border-collapse: collapse; min-width: 300px; font-size: .92rem; } table.pctl th, table.pctl td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; } table.pctl th { font-weight: 700; color: var(--slate); width: 42%; background: none; } table.pctl td { color: var(--grey); height: 1.6em; }
.poltitle { border-bottom: 3px solid var(--brand); padding-bottom: 12px; margin-bottom: 20px; } .poltitle h2 { margin: 0; font-size: 1.9rem; color: var(--slate); } .poltitle p { margin: 2px 0 0; color: var(--grey); font-size: 1.02rem; }
.paper .stmt-body { font-size: 1.05rem; line-height: 1.65; max-width: none; } .paper .stmt-body h4 { color: var(--slate); font-size: 1.1rem; margin: 18px 0 6px; }
.paper footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--grey); }
#signedPanel h2 { margin-top: 0; } #signedPanel p { margin: 0 0 8px; overflow-wrap: anywhere; }
a.polcard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; margin: 4px 0 14px; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 10px; text-decoration: none; color: var(--grey); background: #fff; }
a.polcard:hover { background: var(--tint); border-color: var(--green); } a.polcard b { color: var(--slate); font-size: 1.1rem; } a.polcard .go { margin-left: auto; color: var(--green-d); font-weight: 700; }
.stmt h4.sub { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
@media (max-width: 700px) { .paper { padding: 18px 16px; } .paper header { flex-direction: column; } table.pctl { min-width: 0; width: 100%; } }

/* a newer version is live: a bar across the top offering a refresh */
#newVersion { position: fixed; top: 0; left: 0; right: 0; z-index: 400; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px; background: var(--slate); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: .98rem; }
#newVersion .btn { background: #fff; color: var(--slate); border-color: #fff; min-height: 38px; } @media print { #newVersion { display: none; } }

/* risks and opportunities: one register, two tabs */
.regtabs { margin: -4px 0 16px; } .regtabs a { font-size: 1.05rem; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.regtabs a span { background: var(--tint); color: var(--slate); border-radius: 10px; padding: 1px 9px; font-size: .84rem; font-weight: 700; } .regtabs a.on span { background: var(--brand); color: #fff; }

/* what a clause statement is backed by: set apart from the statement text */
.stmt .held { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; } .stmt .held .points { margin: 0 0 4px; } .stmt .held + .points, .stmt .held ~ .cards { margin-top: 8px; }

/* 7.3 awareness: the briefing and who has had it */
.stmt .aware { margin-top: 12px; } .acard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 8px; max-width: 80ch; } .acard .atop { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; } .acard .aname { font-weight: 700; color: var(--slate); text-decoration: none; font-size: 1.02rem; } .acard .aname:hover { text-decoration: underline; } .acard p { margin: 8px 0 0; }

/* a person's training record */
.sq { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #F1F3F5; color: var(--grey); } .sq.ok { background: var(--green-l); color: var(--green-d); } .sq.warn { background: var(--amber-l); color: #9A6515; } .sq.bad { background: #FBEAEA; color: #C53030; } .sq.info { background: #EEF2F6; color: var(--slate); }
small.when { color: var(--grey); } small.when.bad { color: #C53030; font-weight: 700; } small.when.warn { color: #9A6515; font-weight: 700; } table.cgrid a.pname { color: inherit; text-decoration: none; } table.cgrid a.pname:hover b { text-decoration: underline; }

/* procedure issues */
#procHistory tr.on td { background: #F6F8FA; } #procBanner { margin-bottom: 14px; }

/* audit: a file against a checklist line; the checklist held with a procedure */
.evfile { margin-top: 4px; font-size: .85rem; display: flex; gap: 10px; flex-wrap: wrap; } td.nowrap { white-space: nowrap; } #procChecklist .chase { margin-bottom: 12px; }
