:root {
  --navy: #0F2A4A; --navy-sub: #C9D8EC; --bg: #EEF2F7; --card: #FFFFFF; --text: #1E2632; --muted: #5B6676;
  --line: #CDD4DE; --line2: #E4E9F0; --blue: #0B63CE; --blue-d: #08498F; --red: #B3261E; --red-b: #C62828;
  --green: #1F5E24; --green-bg: #E6F3E8; --orange: #8A4A00; --orange-bg: #FDF0E2; --grey-bg: #ECEFF3;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); } a:hover { color: var(--blue-d); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; flex: 1 0 auto; }
.top { background: var(--navy); color: #FFF; }
.bar { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { color: #FFF; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand:hover { color: #FFF; }
.links { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 auto; }
.links a { color: var(--navy-sub); text-decoration: none; padding: 10px 0; }
.links a:hover, .links a.on { color: #FFF; }
.links a.on { font-weight: 600; }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy-sub); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8B97A8; }
.dot.ok { background: #5BC26A; } .dot.bad { background: #E5534B; }
.btn { font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-blue { background: var(--blue); color: #FFF; } .btn-blue:hover { background: var(--blue-d); color: #FFF; }
.btn-red { background: var(--red-b); color: #FFF; font-size: 17px; min-height: 52px; padding: 0 26px; } .btn-red:hover { background: #A51F1F; color: #FFF; }
.btn-light { background: #FFF; color: var(--navy); } .btn-light:hover { color: var(--navy); background: #E6EEF8; }
.btn-line { background: #FFF; color: var(--navy); border-color: var(--line); font-weight: 500; }
.btn-line:hover { border-color: #9AA7B8; color: var(--navy); }
.btn-small { min-height: 38px; padding: 0 12px; font-size: 14px; font-weight: 500; }
.btn-danger { color: var(--red); border-color: #E8C4C1; }
.hero { background: var(--navy); color: #FFF; }
.hero .wrap { padding-top: 48px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -1px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.lead { font-size: 19px; color: var(--navy-sub); max-width: 560px; margin: 18px 0 28px; }
.hero-l { flex: 1 1 480px; min-width: 0; }
.hero-r { flex: 1 1 340px; min-width: 0; }
.small-on-dark { font-size: 14px; color: #A9C0DD; }
.card { background: var(--card); border-radius: 12px; padding: 24px; }
.card + .card { margin-top: 24px; }
.card h2 { margin: 0 0 6px; font-size: 22px; }
h1.page { margin: 0 0 20px; font-size: 28px; letter-spacing: -.4px; }
.muted { color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .no { font-family: 'IBM Plex Mono', monospace; color: var(--blue); font-size: 14px; }
.stat .k { font-size: 14px; color: var(--muted); } .stat .v { font-size: 30px; font-weight: 700; margin-top: 4px; }
.syslist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sys { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #F4F7FB; border-radius: 8px; color: var(--text); }
.tag { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.t-green { background: var(--green-bg); color: var(--green); } .t-blue { background: #E3EEFB; color: #0A4E9E; }
.t-orange { background: var(--orange-bg); color: var(--orange); } .t-grey { background: var(--grey-bg); color: #4A5566; }
.t-red { background: #FBE6E4; color: #8E1F17; }
.two { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two > * { flex: 1 1 380px; min-width: 0; margin-top: 0 !important; }
form.stack, .stack { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=password], input[type=search], input[type=number], select {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; background: #FFF; color: var(--text); width: 100%; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #7FB1EE; outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.tablebox { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 6px; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.code-big { font-family: 'IBM Plex Mono', monospace; font-size: 26px; letter-spacing: 3px; color: var(--navy); }
.codebox { background: #F4F7FB; border-radius: 10px; padding: 14px 16px; }
.msg { min-height: 22px; font-size: 15px; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
pre.cmd { font-family: 'IBM Plex Mono', monospace; font-size: 14px; background: var(--navy); color: #E6EEF8; padding: 14px 16px; border-radius: 8px; overflow-x: auto; margin: 0; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 8px; }
.picker label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .row { padding: 20px 24px; justify-content: space-between; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } .bar { padding: 12px 16px; } .card { padding: 18px; } }

/* Computers page */
.pcwrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pcleft { flex: 1 1 360px; min-width: 0; }
.pcdetail { flex: 999 1 460px; min-width: 0; margin-top: 0 !important; }
.pclist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pc { font: inherit; text-align: left; width: 100%; background: #F4F7FB; border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--text); min-height: 44px; }
.pc:hover { border-color: var(--line); }
.pc.sel { border-color: var(--blue); background: #FFF; }
.prog { height: 6px; background: var(--line2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.prog span { display: block; height: 100%; background: var(--blue); transition: width .4s; }
table.kv th { text-transform: none; letter-spacing: 0; font-size: 14px; width: 40%; border-bottom: 1px solid var(--line2); }
table.kv td { font-size: 15px; }
summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
pre.log { max-height: 420px; overflow: auto; white-space: pre-wrap; font-size: 12px; margin-top: 12px; }
input[type=file] { font: inherit; font-size: 15px; padding: 8px 0; max-width: 100%; }
[hidden] { display: none !important; }
table.kv td { overflow-wrap: anywhere; } table.kv .tag { white-space: normal; }
@media (max-width: 1400px) and (min-width: 641px) { #srvtext { display: none; } .links { gap: 4px 14px; } }
table.kv.help th { width: 28%; vertical-align: top; }
.keylist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.keyrow { background: #F4F7FB; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.appsnow { background: #F4F7FB; border-radius: 10px; padding: 14px; margin: 0 0 16px; }
.appsnow h3, .pcdetail h3 { margin: 0 0 6px; font-size: 17px; }
.keyrow.pool { background: #EAF1FB; } textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #FFF; color: var(--text); }
/* 8.1: System check texts on the Operating systems page */
.notes-box > label { display: block; font-size: 14px; font-weight: 600; }
.notes-box > label > input[type=text], .notes-box > label > select { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
/* 8.3: companies - the company's own colour, so everyone sees where they are */
body.co .top { background: var(--co, #0F7B6C); }
body.co .links a { color: rgba(255, 255, 255, .78); } body.co .links a:hover, body.co .links a.on { color: #FFF; }
.cobrand { font-size: 14px; font-weight: 600; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); vertical-align: middle; }
#coribbon { background: rgba(0, 0, 0, .18); color: #FFF; font-size: 14px; }
#coribbon .wrap { padding-top: 7px; padding-bottom: 7px; }
.cotag { display: inline-block; color: #FFF; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.copreview { color: #FFF; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.cobar { padding: 14px 18px; }
a.tile { text-decoration: none; color: var(--text); background: #F4F7FB; border-radius: 10px; padding: 14px; border: 2px solid transparent; }
a.tile:hover { border-color: var(--line); color: var(--text); }
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.appgrid.dim { opacity: .55; }
.appchoice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 8px 10px; background: #F4F7FB; border-radius: 8px; }
.appchoice input { margin-top: 4px; width: 18px; height: 18px; }
ul.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.footlinks { gap: 18px; } .footlinks a { color: var(--muted); }
.keyrow.done { opacity: .6; }
/* 8.3: minimize cards; the key safe uses the whole width */
.chead { flex-wrap: nowrap; align-items: flex-start; }
.chead > :first-child { flex: 1 1 auto; min-width: 0; }
.minbtn { font: inherit; font-size: 18px; line-height: 1; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; border: 1px solid var(--line); background: #FFF; color: var(--muted); cursor: pointer; }
.minbtn:hover { color: var(--text); border-color: #9AA7B8; }
.card.min > :not(.chead) { display: none !important; }
.card.min { padding-top: 16px; padding-bottom: 16px; }
.card.min .chead h1, .card.min .chead h2 { margin: 0; font-size: 20px; }
.card.min .chead > :first-child > :not(h1):not(h2) { display: none; }
.keygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 10px; align-items: start; }
.keygrid > .pool { grid-column: 1 / -1; }
@media (max-width: 640px) { .keygrid { grid-template-columns: 1fr; } }
.grid4 > .card, .grid3 > .card { margin-top: 0; }
.card + .two, .two + .card, .two + .two, .grid4 + .card { margin-top: 24px; }
.t-co { background: #EFE7FA; color: #5B2A9E; }
/* 8.3: drop-down menus in the top bar */
.navgrp { position: relative; }
.navbtn { font: inherit; background: none; border: 0; color: var(--navy-sub); padding: 10px 0; cursor: pointer; }
.navbtn:hover, .navbtn.on { color: #FFF; } .navbtn.on { font-weight: 600; }
body.co .navbtn { color: rgba(255, 255, 255, .78); } body.co .navbtn:hover, body.co .navbtn.on { color: #FFF; }
.navmenu { position: absolute; top: 100%; left: -12px; z-index: 20; min-width: 200px; background: #FFF; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 42, 74, .22); padding: 6px; display: flex; flex-direction: column; }
.navmenu a { color: var(--text) !important; padding: 10px 12px !important; border-radius: 6px; text-decoration: none; }
.navmenu a:hover, .navmenu a.on { background: #EEF2F7; }
.startbox { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 16px; max-width: 620px; }
.startbox input { margin-top: 10px; background: rgba(255, 255, 255, .92); }
.steps-mini { margin: 12px 0 0; padding-left: 22px; color: var(--navy-sub); display: flex; flex-direction: column; gap: 4px; }
kbd { font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: #FFF; color: var(--navy); border-radius: 5px; padding: 1px 6px; box-shadow: 0 1px 0 #9AA7B8; }
.startbox strong { color: #FFF; }

/* 8.3: segmented tabs (Employees > Add people) */
.segtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); margin-bottom: 14px; }
.segtab { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 15px; color: inherit; cursor: pointer; }
.segtab:hover { background: rgba(0,0,0,.05); }
.segtab.on { background: var(--card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; color: var(--co, var(--blue, #1f5fbf)); }
.segbody { min-height: 60px; }

/* 8.3: Managed PCs - the controls stay at the top while the list scrolls */
.devbar { position: sticky; top: 0; z-index: 5; background: var(--card); padding: 10px 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--bg); }
.devbar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
