:root {
  color-scheme: light;
  --navy: #142347;
  --blue: #2556d3;
  --blue-hover: #173fae;
  --pale: #edf3ff;
  --paper: #fff;
  --ink: #15203b;
  --muted: #4c5973;
  --line: #cfd8e7;
  --lime: #c9ef78;
  --ok: #185044;
  --warn: #7a3e09;
  --radius: 15px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8faff; color: var(--ink); font: 1rem/1.57 var(--font); }
a { color: var(--blue-hover); }
p, h1, h2, h3, dl { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { color: var(--navy); font-size: clamp(2.35rem, 6.2vw, 5.1rem); margin-bottom: 17px; }
h2 { font-size: 1.62rem; color: var(--navy); margin-bottom: .7em; }
h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: .4em; }
button, input { font: inherit; }
button, .btn { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #1b6f84; outline-offset: 4px; }
button:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.frame { width: min(1120px, 100% - 48px); margin-inline: auto; }
.masthead { background: var(--navy); color: white; }
.topnav { display: flex; justify-content: space-between; align-items: center; min-height: 65px; gap: 18px; }
.topnav > div { align-self: stretch; display: flex; align-items: stretch; gap: 25px; }
.topnav a { display: flex; align-items: center; color: white; text-decoration: none; font-size: .94rem; font-weight: 650; }
.topnav a[aria-current] { box-shadow: inset 0 -3px var(--lime); }
.topnav a:focus-visible { outline-color: var(--lime); }
.topnav .brand { gap: 11px; font-size: 1.08rem; font-weight: 830; letter-spacing: -.035em; }
.mark { width: 25px; height: 17px; position: relative; }
.mark::before, .mark::after { content: ""; position: absolute; border: 3px solid var(--lime); border-width: 3px 0 0 3px; border-radius: 4px 0 0; transform: rotate(45deg); }
.mark::before { width: 13px; height: 13px; top: 5px; left: 1px; }
.mark::after { width: 9px; height: 9px; top: 7px; left: 13px; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 5; background: white; padding: .6rem 1rem; border-radius: 6px; }
.skip:not(:focus) { clip-path: inset(50%); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { display: grid; grid-template-columns: 1.4fr .9fr; align-items: center; overflow: hidden; min-height: 330px; margin: 33px 0 33px; padding: 37px 55px; background: var(--pale); border: 1px solid #d9e5fa; border-radius: 23px; }
.hero p { max-width: 41ch; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; }
.hero img { width: 100%; height: 282px; object-fit: contain; }
.catalogue { scroll-margin-top: 18px; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.lab-card { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 16px; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: background .15s, border-color .15s; }
.lab-card:hover { border-color: #8baafa; background: #f2f6ff; }
.lab-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.44; }
.arrow { font-size: 1.8rem; color: var(--blue); line-height: 1; }
.lab-icon { position: relative; display: inline-block; height: 49px; width: 49px; flex: 0 0 49px; color: var(--navy); background: #e8effe; border-radius: 12px; }
.lab-icon::before, .lab-icon::after { content: ""; position: absolute; }
.icon-lock::before { width: 17px; height: 13px; border: 2px solid; border-radius: 4px; left: 14px; top: 22px; }
.icon-lock::after { width: 9px; height: 8px; border: 2px solid; border-bottom: 0; border-radius: 8px 8px 0 0; left: 18px; top: 12px; }
.icon-search::before { border: 2px solid; border-radius: 50%; width: 14px; height: 14px; top: 12px; left: 12px; }
.icon-search::after { width: 12px; height: 2px; background: currentColor; transform: rotate(45deg); left: 26px; top: 30px; }
.icon-key::before { border: 2px solid; border-radius: 50%; width: 11px; height: 11px; top: 13px; left: 12px; }
.icon-key::after { width: 16px; height: 6px; border: 2px solid; border-width: 2px 2px 0 0; transform: rotate(37deg); left: 23px; top: 27px; }
.icon-stack::before, .icon-stack::after { width: 16px; height: 16px; transform: rotate(45deg) skew(-14deg,-14deg); border: 2px solid; left: 15px; top: 13px; }
.icon-stack::after { top: 20px; border-width: 0 2px 2px 0; }
.icon-load::before { width: 24px; height: 11px; border: 2px solid; border-width: 0 0 2px 2px; left: 12px; top: 22px; }
.icon-load::after { left: 16px; top: 13px; width: 4px; height: 14px; background: currentColor; box-shadow: 6px 4px, 12px 2px, 18px -3px; }
.icon-mail::before { width: 22px; height: 15px; border: 2px solid; border-radius: 4px; left: 12px; top: 16px; }
.icon-mail::after { width: 13px; height: 13px; border: 2px solid; border-width: 0 2px 2px 0; left: 17px; top: 12px; transform: rotate(45deg); }
.quick { margin: 38px 0 40px; padding: 23px 26px; background: var(--pale); border-radius: var(--radius); }
.quick dl { margin-bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quick dt { font-weight: 750; }
.quick dd { margin: 3px 0 0; color: var(--muted); }
.site-foot { color: var(--muted); font-size: .88rem; margin-top: 46px; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.lab-main { min-height: 62vh; }
.back { display: inline-block; margin: 25px 0 18px; font-size: .92rem; font-weight: 670; }
.lab-title { display: flex; gap: 16px; align-items: start; margin-bottom: 25px; }
.lab-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 5px; }
.lab-title p { color: var(--muted); max-width: 68ch; margin: 0; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(210px, 1fr); gap: 18px; align-items: start; }
.panel { padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.notes { background: var(--pale); border-color: #d8e5ff; }
.notes p { color: var(--muted); margin-bottom: 0; }
.eyeline { color: var(--muted); font-size: .87rem; font-weight: 650; margin-bottom: 7px; }
.choices, .controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.room-create { margin-top: 12px; }
.panel > .inbox { margin-top: 12px; }
.label { font-weight: 700; display: block; margin: 10px 0 5px; }
input { width: min(100%, 20rem); min-height: 44px; padding: 9px 11px; border-radius: 7px; border: 1px solid #8d9ab1; color: var(--ink); background: white; }
.btn { padding: 9px 14px; min-height: 43px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: white; text-decoration: none; font-weight: 730; }
.btn:hover:not(:disabled) { background: var(--blue-hover); }
.btn.secondary { color: var(--navy); border-color: #9eacc8; background: white; }
.btn.secondary:hover:not(:disabled) { background: var(--pale); }
.btn.big { min-height: 56px; font-size: 1.06rem; }
.feedback { background: #eaf3ff; color: var(--navy); border-radius: 8px; padding: 9px 13px; margin: 14px 0 0; }
.feedback.warn { background: #fff3dc; color: var(--warn); }
.feedback.ok { background: #e8f6ef; color: var(--ok); }
.muted { color: var(--muted); }
.mono { font: 650 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .025em; }
.table-scroll { overflow-x: auto; margin: 12px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--pale); color: var(--navy); }
.metrics { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; }
.metrics > div { min-width: 0; padding: 10px; background: var(--pale); border-radius: 8px; }
.metrics strong { display: block; font-size: 1.3rem; }
.metrics span { font-size: .82rem; }
progress { width: 100%; height: 14px; border: 0; border-radius: 20px; background: #dfe8f8; overflow: hidden; }
progress::-webkit-progress-bar { background: #dfe8f8; border-radius: 20px; }
progress::-webkit-progress-value { background: #76b31b; border-radius: 20px; }
progress::-moz-progress-bar { background: #76b31b; }
.chart { display: flex; align-items: end; gap: 6px; padding: 10px 4px 5px; min-height: 84px; border-bottom: 1px solid var(--line); margin-bottom: 11px; }
.chart meter { flex: 1; width: 7%; min-width: 0; height: 69px; writing-mode: vertical-lr; direction: rtl; accent-color: var(--blue); }
.chart meter::-webkit-meter-bar { background: #eef3fc; border: 0; border-radius: 4px; }
.chart meter::-webkit-meter-optimum-value { background: #4b73da; border-radius: 3px; }
.chart meter::-webkit-meter-suboptimum-value { background: #79a624; border-radius: 3px; }
.clock { font-variant-numeric: tabular-nums; }
.inbox { display: grid; gap: 0; grid-template-columns: minmax(180px, .9fr) minmax(0, 2.1fr); padding: 0; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); padding: 17px; background: #f5f8fd; }
.inbox-list button { width: 100%; border: 0; border-radius: 6px; background: transparent; text-align: left; color: var(--ink); padding: 8px; margin: 0 0 4px; }
.inbox-list button:hover, .inbox-list button[aria-pressed="true"] { background: #dde8fd; }
.inbox-list small { display: block; color: var(--muted); }
.message { padding: 23px; min-height: 245px; }
.message p { overflow-wrap: anywhere; }
.message .message-body { border-block: 1px solid var(--line); padding: 15px 0; }
.message .context { font-size: .91rem; color: var(--muted); }
.message .choices { margin-top: 17px; }
.inbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; justify-content: space-between; margin: 0 0 12px; }
.inbox-top p { margin: 0; }
.inbox .feedback { margin-top: 13px; }
.inbox-layout { grid-template-columns: minmax(0, 1fr); }
.inbox-layout .notes { max-width: 730px; }
@media (max-width: 720px) {
  .frame { width: min(100% - 30px, 1120px); }
  .hero { padding: 29px 23px; margin-top: 20px; grid-template-columns: 1fr .6fr; min-height: 0; }
  .hero img { height: 175px; }
  .hero p { font-size: 1rem; }
  .lab-grid, .lab-layout { grid-template-columns: 1fr; }
  .quick dl { grid-template-columns: 1fr; gap: 13px; }
  .panel { padding: 17px; }
  .inbox { padding: 0; grid-template-columns: 1fr; }
  .inbox-list { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) {
  h1 { font-size: 2.2rem; }
  .topnav > div { gap: 12px; }
  .topnav .brand { font-size: .98rem; }
  .hero { grid-template-columns: 1fr; }
  .hero img { height: 145px; width: 65%; justify-self: center; }
  .hero-break { display: none; }
  .lab-title { gap: 11px; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
