:root {
  --bg: #0d141b; --bg2: #121c26; --card: #17232f; --card2: #1d2b39; --line: #2a3a4a; --text: #e2ecf5; --muted: #8ea3b7;
  --acc: #2ec4b6; --acc2: #1f8f86; --pwr: #39e07f; --bad: #ff5d5d; --warn: #ffb547; --ok: #39e07f;
  --pv: #4aa8ff; --sp: #ffb547; --cv: #39e07f; --grid: #24323f; --trend-bg: #0f1820;
  --cw: 92px; --ch: 74px; --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; } html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); }
h2, h3, h4 { margin: .2em 0 .5em; line-height: 1.25; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
code { background: #0b1218; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.muted { color: var(--muted); } .small { font-size: .85em; } .grow { flex: 1; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; }

/* layout */
.top { position: fixed; inset: 0 0 auto 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1em; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--acc); color: #062; font-size: 20px; }
#who { display: flex; align-items: center; gap: 8px; }
.menu { display: none; }
nav#nav { position: fixed; top: 54px; bottom: 0; left: 0; width: 220px; padding: 12px 8px; background: var(--bg2); border-right: 1px solid var(--line); overflow-y: auto; z-index: 15; }
nav#nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; margin-bottom: 2px; }
nav#nav a:hover { background: var(--card); }
nav#nav a.on { background: var(--card2); color: var(--acc); font-weight: 600; box-shadow: inset 3px 0 0 var(--acc); }
.ni { width: 22px; text-align: center; }
.nav-score { margin: 18px 10px 0; }
main { margin: 54px 0 0 220px; padding: 24px clamp(16px, 3vw, 36px) 60px; max-width: 1200px; }
main.wide { max-width: none; }
@media (max-width: 900px) {
  .menu { display: inline-flex; }
  nav#nav { transform: translateX(-100%); transition: transform .2s; width: 240px; }
  body.nav-open nav#nav { transform: none; box-shadow: 0 0 40px #000a; }
  main { margin-left: 0; padding: 18px 16px 60px; }
  #who .muted { display: none; }
}

/* components */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
a.card { display: block; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--acc); transform: translateY(-2px); }
.card.passed { border-color: #2f6f4f; background: linear-gradient(180deg, #17302a, var(--card) 60%); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.cards .card { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.narrow { max-width: 420px; }
.page-h { margin-bottom: 18px; } .page-h p { margin: 0; }
.crumb { font-size: .85em; color: var(--muted); margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--acc2); background: var(--acc2); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #04201d; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--acc); }
.btn.danger, .btn.ghost.danger { border-color: #7a2c2c; background: #4a1f1f; color: #ffd0d0; }
.btn.sm { padding: 4px 10px; font-size: .85em; }
.btn.tog.on { background: var(--warn); border-color: var(--warn); color: #241600; }
.btn:focus-visible, .pbtn:focus-visible, .pb:focus-visible, .sw:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sel, input:not([type=radio]):not([type=checkbox]):not([type=range]) { background: #0c141b; border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 7px 9px; font: inherit; }
input.bad { border-color: var(--bad); }
.fld { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; font-size: .9em; }
.fld > span { color: var(--muted); }
.fld.in { flex-direction: row; align-items: center; gap: 6px; margin: 0; } .fld.in input { width: 80px; }
.fe { color: var(--bad); font-size: .8em; font-style: normal; min-height: 0; }
.bar { height: 8px; background: #0b1218; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--acc2), var(--acc)); }
.bar.good span { background: linear-gradient(90deg, #239b5a, var(--pwr)); }
.tag { font-size: .75em; padding: 2px 8px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.msg { padding: 8px 12px; border-radius: 8px; margin: 6px 0; font-size: .9em; border: 1px solid; }
.msg.ok { border-color: #2c6b48; background: #143222; } .msg.bad { border-color: #7a2c2c; background: #3a1717; } .msg.warn { border-color: #7a5a1e; background: #3a2c12; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9em; }
.chip.on { background: var(--acc); color: #04201d; border-color: var(--acc); font-weight: 600; }
.search { width: 100%; max-width: 400px; margin-top: 8px; }
table.t { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: .92em; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; }
table.full { min-width: 900px; } .card:has(table.full) { overflow-x: auto; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: var(--card2); border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; z-index: 100; max-width: 90vw; box-shadow: 0 10px 30px #000a; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--ok); } .toast.bad { border-color: var(--bad); } .toast.warn { border-color: var(--warn); }
.modal-bg { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: min(640px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px #000c; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; } .modal-b { padding: 16px 18px; overflow-y: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.checks { list-style: none; padding: 0; columns: 2 260px; font-size: .88em; } .checks li { color: #9fe6bd; break-inside: avoid; }
.errs li { color: #ffb3b3; }

/* dashboard */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.dash .card { margin: 0; }
.ready { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ready > div { flex: 1; min-width: 220px; }
.ring { width: 130px; height: 130px; flex: none; }
.ring-bg { fill: none; stroke: #0b1218; stroke-width: 12; } .ring-fg { fill: none; stroke: var(--acc); stroke-width: 12; stroke-linecap: round; }
.ring-t { fill: var(--text); font-size: 26px; font-weight: 700; text-anchor: middle; } .ring-s { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.pp { display: grid; grid-template-columns: 1fr 110px 50px; align-items: center; gap: 10px; font-size: .9em; margin: 6px 0; }
.next h3 { font-size: 1.3em; }
.path { padding-left: 22px; margin: 0; } .path li { margin: 5px 0; } .path li span { margin-left: 8px; } .path li.done a::after { content: ' ✅'; }
.mod .mi { font-size: 28px; } .mod h3 { margin-top: 4px; }

/* lessons & quizzes */
.lesson { max-width: 860px; } .lesson h4 { margin-top: 1.3em; color: var(--acc); }
.lesson-nav { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.callout { background: #10202a; border-left: 4px solid var(--acc); padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.callout.warn { border-left-color: var(--warn); background: #2a2212; }
.diagram { width: 100%; max-width: 560px; display: block; margin: 14px 0; color: var(--text); }
.diagram .d-box { fill: #10202a; stroke: var(--acc2); } .diagram .d-dim { fill: var(--muted); }
.lessons { padding-left: 22px; } .lessons li { margin: 6px 0; } .lessons li span { margin-left: 8px; } .lessons li.done a::after { content: ' ✅'; }
.quiz { max-width: 860px; }
.q { border: 1px solid var(--line); } .q legend { padding: 0 6px; font-size: 1.02em; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 7px; cursor: pointer; margin: 3px 0; }
.opt:hover { background: var(--card2); } .opt input { margin-top: 5px; }
.q.right { border-color: #2c6b48; } .q.wrong { border-color: #7a2c2c; }
.opt.ans { background: #143222; } .qx { font-size: .9em; color: var(--muted); margin-top: 6px; }
.result.passed { border-color: var(--ok); } .result.failed { border-color: var(--bad); }
.timer { font-size: 1.2em; font-weight: 700; color: var(--warn); }
.req { list-style: none; padding: 0; } .req li::before { content: '⬜ '; } .req li.ok::before { content: '✅ '; }
.gloss dt { font-weight: 700; color: var(--acc); margin-top: 10px; } .gloss dd { margin: 2px 0 0 0; }

/* labs */
.lab h3 { margin: 6px 0; }
.lab-brief { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.lab-brief .goal ul, .lab-brief .goal ol { margin: 6px 0; padding-left: 22px; }
.lb-side details { background: var(--card2); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.lb-side summary { cursor: pointer; font-weight: 600; }
@media (max-width: 900px) { .lab-brief { grid-template-columns: minmax(0, 1fr); } }

/* workspace */
.ws-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 12px; position: sticky; top: 60px; z-index: 5; }
.mode { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mbtn { padding: 6px 14px; background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; letter-spacing: .05em; }
.mbtn.on { background: var(--card2); color: var(--text); }
.mbtn.run.on { background: #1f6b43; color: #fff; } .mbtn.prog.on { background: #6b5a1f; color: #fff; }
.plc-led { width: 12px; height: 12px; border-radius: 50%; background: #444; display: inline-block; }
.plc-led.run { background: var(--pwr); box-shadow: 0 0 8px var(--pwr); } .plc-led.prog { background: var(--warn); } .plc-led.flt { background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ws-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 580px) minmax(280px, 1fr); grid-template-areas: "sim io" "lad lad"; }
.ws-sim { grid-area: sim; margin: 0; } .ws-io { grid-area: io; margin: 0; max-height: 720px; overflow-y: auto; } .ws-lad { grid-area: lad; margin: 0; }
@media (min-width: 1900px) { .ws-grid { grid-template-columns: minmax(0, 1fr) 580px 340px; grid-template-areas: "lad sim io"; } .ws-lad .lad { max-height: 78vh; } }
@media (max-width: 1000px) { .ws-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sim" "io" "lad"; } .ws-io { max-height: none; } }
.sim-head { display: flex; flex-direction: column; margin-bottom: 8px; }
canvas.sim { width: 100%; max-width: 560px; aspect-ratio: 560/360; border-radius: 8px; display: block; background: #0f1720; }
.sim-status { min-height: 10px; }
.ops-t { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 6px; }
.ops-row, .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acts .ops-t { width: 100%; margin-bottom: 0; }
.pb, .sw, .estop { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #0f1820; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 78px; cursor: pointer; color: var(--text); font: inherit; user-select: none; touch-action: none; }
.pb .cap { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6dff9f, #1c9a4c); box-shadow: 0 4px 0 #0c5229, 0 6px 10px #0008; transition: transform .05s; }
.pb.red .cap { background: radial-gradient(circle at 40% 35%, #ff8b8b, #c21f1f); box-shadow: 0 4px 0 #6c0f0f, 0 6px 10px #0008; }
.pb.down .cap { transform: translateY(3px); box-shadow: 0 1px 0 #0c5229; }
.pb.red.down .cap { box-shadow: 0 1px 0 #6c0f0f; }
.pl { font-size: .75em; font-weight: 700; } .pa { font-size: .68em; color: var(--muted); font-family: ui-monospace, monospace; }
.sw .knob { width: 40px; height: 40px; border-radius: 50%; background: #2b3946; position: relative; border: 3px solid #556677; }
.sw .knob::after { content: ''; position: absolute; left: 50%; top: 4px; width: 6px; height: 26px; margin-left: -3px; background: #ddd; border-radius: 3px; transform: rotate(-40deg); transform-origin: 50% 14px; transition: transform .15s; }
.sw.on .knob::after { transform: rotate(40deg); } .sw.on { border-color: var(--acc); }
.estop .mush { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff6b6b, #b00); border: 6px solid #ffd400; }
.estop.in .mush { transform: scale(.88); box-shadow: inset 0 0 10px #000; } .estop.in { border-color: var(--bad); }
.pot { display: flex; flex-direction: column; font-size: .8em; gap: 2px; min-width: 160px; }
h4 { font-size: .95em; } .ws-io h4 { margin: 4px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78em; }
table.io { width: 100%; border-collapse: collapse; font-size: .82em; }
table.io td { padding: 4px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.io td.v, table.io td.wv { text-align: right; font-weight: 700; }
table.io input { width: 70px; padding: 3px 6px; }
.led { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #2a343e; border: 1px solid #000; }
.led.i.on { background: var(--warn); box-shadow: 0 0 6px var(--warn); } .led.o.on { background: var(--pwr); box-shadow: 0 0 6px var(--pwr); }
.watch-add { display: flex; gap: 6px; margin-top: 8px; } .watch-add input { flex: 1; min-width: 0; }

/* ladder editor */
.pal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.pal-g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pal-t { font-size: .7em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; width: 100%; }
.pbtn { background: #0f1820; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 4px 7px; font: 600 12px ui-monospace, monospace; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.pbtn:hover { border-color: var(--acc); } .pbtn .ps { color: var(--acc); } .pbtn.tool { font-family: system-ui; font-weight: 500; }
.lad-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.ladder-ed:not(:has(.props)) .lad-wrap { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1250px) { .lad-wrap { grid-template-columns: minmax(0, 1fr); } .props { position: static; } }
.lad { overflow: auto; background: #0b1117; border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px; max-height: 70vh; outline: none; }
.rung { margin-bottom: 8px; border-radius: 6px; padding: 2px 0; width: max-content; min-width: 100%; }
.rung.rsel { background: #101b25; }
.rung-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; }
.rn { font: 700 12px ui-monospace, monospace; color: var(--muted); width: 26px; text-align: right; }
.rc { flex: 1; font-size: .8em; color: #9fc1dd; background: transparent !important; border: 1px dashed transparent !important; padding: 2px 6px !important; max-width: 700px; }
input.rc:hover, input.rc:focus { border-color: var(--line) !important; }
.rung-b { display: grid; grid-template-columns: repeat(10, var(--cw)); margin-left: 30px; position: relative; border-left: 3px solid #6c7d8e; border-right: 3px solid #6c7d8e; }
.running .rung-b { border-left-color: var(--pwr); }
.cell { position: relative; width: var(--cw); height: var(--ch); cursor: pointer; }
.cell:hover { background: #ffffff08; }
.cell.sel { background: #2ec4b622; outline: 1px solid var(--acc); outline-offset: -1px; }
.cell svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cell .w { stroke: #8296a8; stroke-width: 2.5; }
.cell .sym { stroke: #c5d3df; stroke-width: 2.5; fill: none; }
.cell .bx { fill: #121d27; stroke-width: 1.5; }
.cell .lb { fill: #79b6e8; font: 600 9.5px system-ui; text-anchor: middle; }
.cell .ad { fill: #dbe7f3; font: 600 10.5px ui-monospace, monospace; text-anchor: middle; }
.cell .st { fill: #c5d3df; font: 700 11px system-ui; text-anchor: middle; }
.cell .bt { fill: var(--acc); font: 700 11px ui-monospace, monospace; text-anchor: middle; }
.cell .bl { fill: #c7d5e2; font: 9.5px ui-monospace, monospace; }
.cell.pin .wl, .cell.pout .wr { stroke: var(--pwr); }
.cell.act .sym { stroke: var(--pwr); } .cell.act .bx { fill: #123222; }
.cell.act .st { fill: var(--pwr); }
.lk { position: absolute; right: -1.5px; top: 46px; height: var(--ch); width: 3px; background: #8296a8; z-index: 1; pointer-events: none; }
.cell.plk .lk { background: var(--pwr); }
.rung-end { text-align: center; color: var(--muted); font: 600 12px ui-monospace, monospace; width: calc(10 * var(--cw) + 36px); }
.props { background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; align-self: start; position: sticky; top: 120px; }
.props .ph { font-weight: 700; margin-bottom: 8px; color: var(--acc); font-size: .9em; }
.props input { width: 100%; text-transform: uppercase; font-family: ui-monospace, monospace; }
.props .help { margin-top: 8px; }
.rungtext { display: flex; gap: 6px; margin-top: 10px; } .rungtext input { flex: 1; font-family: ui-monospace, monospace; font-size: .85em; min-width: 0; }

/* PID */
.pid-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; }
.pid-grid .card { margin: 0; }
@media (max-width: 1000px) { .pid-grid { grid-template-columns: minmax(0, 1fr); } }
.fp-vals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; background: #0b1117; border-radius: 8px; padding: 10px; margin: 10px 0; }
.fp-vals div { display: flex; flex-direction: column; } .fp-vals input { width: 100%; font-weight: 700; }
.big { font-size: 1.25em; } .pvc { color: var(--pv); } .cvc { color: var(--cv); } .spc { color: var(--sp); }
.faceplate .mode { margin-bottom: 10px; }
.tune { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .tune input, .tune select { width: 100%; }
.trend { width: 100%; height: 360px; display: block; border-radius: 8px; }
.trend.mini { height: 220px; }
.legend { display: flex; gap: 16px; margin-bottom: 8px; font-size: .88em; flex-wrap: wrap; }
.ch h4 { margin-top: 0; }

/* tools */
.tools .wide { grid-column: 1 / -1; }
.bits { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0; }
.bit { display: flex; flex-direction: column; align-items: center; width: 28px; padding: 2px 0; border-radius: 4px; background: #0b1117; border: 1px solid var(--line); font: 700 13px ui-monospace, monospace; }
.bit i { font: 9px system-ui; color: var(--muted); font-style: normal; } .bit.on { background: #173a2a; color: var(--pwr); }
.frame { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.byte { display: flex; flex-direction: column; align-items: center; background: #0b1117; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.byte b { font: 700 15px ui-monospace, monospace; color: var(--acc); } .byte i { font-size: .68em; color: var(--muted); font-style: normal; }

/* certificate */
.cert { background: #fdfbf4; color: #1d2733; border-radius: 6px; padding: 18px; max-width: 900px; margin: 16px auto; box-shadow: 0 10px 40px #000a; }
.cert-in { border: 3px double #b38b2e; padding: 40px 36px; text-align: center; }
.cert-logo { font-size: 44px; color: #1f8f86; } .cert-org { letter-spacing: .3em; font-weight: 700; color: #1f8f86; }
.cert h1 { font-family: Georgia, serif; font-size: 2.3em; margin: 12px 0 6px; color: #1d2733; }
.cert-name { font-family: Georgia, serif; font-size: 2em; font-style: italic; border-bottom: 1px solid #b38b2e; display: inline-block; padding: 0 30px 4px; margin: 6px 0 14px; }
.cert p { max-width: 640px; margin: 8px auto; }
.cert-stats { display: flex; justify-content: center; gap: 40px; margin: 22px 0; } .cert-stats div { display: flex; flex-direction: column; } .cert-stats b { font-size: 1.6em; color: #1f8f86; } .cert-stats span { font-size: .8em; color: #556; }
.seal { display: inline-block; padding: 6px 18px; border: 2px solid #b38b2e; color: #8a6714; border-radius: 99px; font-weight: 700; margin-bottom: 10px; }
.cert-foot { display: flex; justify-content: space-between; font-size: .8em; color: #556; margin-top: 24px; flex-wrap: wrap; gap: 8px; }
@media print {
  .top, nav#nav, .no-print { display: none !important; }
  main { margin: 0; padding: 0; } body { background: #fff; }
  .cert { box-shadow: none; margin: 0 auto; }
}
