:root{--green:#103f34;--gold:#d9bd76;--line:#afc5b6}*{box-sizing:border-box}body{margin:0;background:#f4f6f0;color:#173e34;font:16px/1.5 system-ui,sans-serif}header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 4vw;background:white;border-bottom:1px solid #dae3d7}a{color:var(--green)}header span{font-size:12px;letter-spacing:.18em}main{max-width:1800px;margin:auto;padding:28px 3vw}.hero{display:flex;align-items:center;gap:28px;background:radial-gradient(ellipse at top right,#34745b,transparent),var(--green);color:#f8f4e4;padding:38px;border-radius:24px}.hero img{border-radius:18px}h1{font:clamp(30px,4vw,52px) Georgia,serif;color:var(--gold);margin:8px 0}.hero small{letter-spacing:.18em;color:var(--gold)}.hero p{margin:0}input,select,button{font:inherit;border:1px solid #cbd8ce;border-radius:9px;padding:11px;color:inherit;background:white}button{cursor:pointer}button:hover{border-color:#4c8069}button:disabled{opacity:.5;cursor:wait}button.gold{background:var(--green);color:#f7df9c}label{display:grid;gap:5px;font-size:14px}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:24px 0}.toolbar label:first-child{flex:1;min-width:230px}.legend,#edits{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:15px 0}.legend{font-size:13px;color:#597267}.canvas{overflow:auto;border:1px solid #dce5d9;border-radius:18px;background:#fcfdf9;padding:24px;max-height:75vh}.tree,.tree ul{padding:24px 0 0;display:flex;justify-content:center;position:relative;list-style:none;margin:0;width:max-content;min-width:100%}.tree li{position:relative;display:flex;flex-direction:column;align-items:center;padding:24px 10px 0}.tree li:before,.tree li:after{content:'';position:absolute;top:0;width:50%;height:24px;border-top:2px solid var(--line)}.tree li:before{right:50%}.tree li:after{left:50%;border-left:2px solid var(--line)}.tree li:only-child:before,.tree li:only-child:after{border-top:0}.tree li:first-child:before,.tree li:last-child:after{border:0}.tree ul:before{content:'';position:absolute;top:0;left:50%;border-left:2px solid var(--line);height:24px}.tree>li:before,.tree>li:after{display:none}.card{width:230px;min-height:205px;border:1px solid #d8e2d4;border-top:4px solid #6f9c81;border-radius:15px;background:white;padding:18px;text-align:center;box-shadow:0 5px 18px #173e3409}.card.root{border-top-color:var(--gold);background:#123f34;color:#f8f5e9}.avatar{display:grid;place-items:center;width:58px;height:58px;object-fit:cover;border-radius:50%;background:#e9eddf;color:var(--green);margin:0 auto 8px;font:23px Georgia}.card strong{display:block}.card .position{color:#5d7969;font-size:14px}.card.root .position{color:var(--gold)}.card small{display:block;font-size:12px;margin:6px 0}.card button{font-size:12px;padding:5px 9px;margin:5px 2px}.match{outline:3px solid var(--gold);outline-offset:3px}.note{font-size:13px;color:#647769}.team{display:inline-block;border-radius:20px;background:#e8f1e5;padding:2px 8px;color:#365f48;margin:3px;font-size:11px}dialog{border:1px solid #ccd9cd;border-radius:20px;max-width:570px;width:94vw;max-height:90vh;padding:28px}dialog::backdrop{background:#06251dc0}form{display:grid;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:8px}#editError{color:#9b2424}select[multiple]{min-height:85px}[hidden]{display:none!important}@media(max-width:650px){header span{display:none}.hero{padding:24px;gap:15px}.hero img{width:50px;height:50px}.hero small{font-size:10px}.hero p{font-size:14px}.canvas{padding:12px}.card{width:200px}}@media print{header,.toolbar,#edits,.legend,.note,button{display:none!important}.canvas{overflow:visible;max-height:none;border:0}.hero{padding:10px;color:#173e34;background:white}.tree{zoom:.6}body{background:white}}

/* Explicit control colours stay legible inside the dark CEO card. */
.card button{color:#173e34;background:#ffffff;border-color:#afc5b6;opacity:1}.card button:hover{color:#103f34;background:#edf4ea;border-color:#648b75}.card button:focus-visible{outline:3px solid #d9bd76;outline-offset:3px}

/* Gold leadership treatment for both CEO and SVP. */
.card.executive{border:1px solid transparent;border-top:5px solid transparent;color:#fff7dd;background:linear-gradient(145deg,#103f34,#082e25) padding-box,linear-gradient(105deg,#a87509,#edbd35 24%,#fff1ab 45%,#d89a0c 65%,#ffdb62 85%,#a87509) border-box;box-shadow:0 7px 23px #0c362422}
.card.executive strong,.card.executive .position,.card.executive small{color:#ffda65;text-shadow:0 1px 1px #0007}
.card.executive .avatar{color:#ffda65;background:#195140;border:1px solid #edbd35}
.card.executive .team{color:#ffe389;background:#245b43;border:1px solid #cba02c}
@supports ((background-clip:text) or (-webkit-background-clip:text)){.card.executive strong,.card.executive .position,.card.executive small{background:linear-gradient(110deg,#e7b928,#fff0a6 35%,#f6ca47 62%,#ffe58a 80%,#e7b928);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}}
.team-picker{border:1px solid #cbd8ce;border-radius:12px;padding:16px;display:grid;gap:10px}.team-picker p{margin:0;color:#597267;font-size:13px}.team-picker legend{font-weight:650}#memberships{display:grid;gap:8px;max-height:190px;overflow:auto}#memberships label{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #dce5d9;border-radius:8px}#memberships input{accent-color:#103f34;width:19px;height:19px}.team-picker button{justify-self:start}
@media(forced-colors:active){.card.executive strong,.card.executive .position,.card.executive small{background:none;color:CanvasText}}

/* General Manager: light green with golden-brown senior-management lettering. */
.card.senior{background:linear-gradient(145deg,#edf5e5,#d4e7cb);border-color:#b7cba8;border-top:5px solid #9a6a22;box-shadow:0 7px 20px #224b2b12}
.card.senior strong,.card.senior .position,.card.senior small{color:#805014}.card.senior .avatar{color:#805014;background:#eaf2df;border:1px solid #ad8545}.card.senior .team{color:#805014;background:#f8f5e7;border:1px solid #c5a574}
