* { box-sizing: border-box; }
body {
  margin: 0; background: #f5f6f3; color: #222f2c;
  font: 16px/1.5 system-ui, sans-serif;
}
nav {
  display: flex; gap: 12px; padding: 16px max(20px, calc((100% - 900px) / 2));
  background: #263c35;
}
nav a { color: #fff; white-space: nowrap; padding: 4px 8px; }
nav a[aria-current] { background: #496757; border-radius: 4px; }
main { max-width: 940px; min-height: 80vh; margin: auto; padding: 24px 20px; }
header { margin: 0 0 24px; }
h1, h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; }
th, td { border-bottom: 1px solid #cfd8d0; padding: 12px 16px; }
thead { background: #e3ebe4; }
[data-open-drawer] { cursor: pointer; }
[data-open-drawer]:hover { background: #e3ebe4; }
button, input { font: inherit; }
button { padding: 5px 10px; cursor: pointer; }
form { display: grid; gap: 12px; max-width: 320px; }
form label { display: grid; gap: 4px; }
form input { padding: 6px; }
.empty-area { min-height: 160px; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; }
.metrics div { padding: 14px 18px; background: #fff; border: 1px solid #cfd8d0; }
.metrics dd { margin: 0; font-size: 24px; font-weight: 700; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(330px, 100vw); padding: 20px;
  background: #fff; border-left: 1px solid #aab9ae; box-shadow: 0 0 20px #263c3530;
}
.drawer h2 { margin-top: 16px; }

.topbar {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  height: 64px; margin: 0; padding: 0 16px; background: #fff; border-bottom: 1px solid #cfd8d0;
}
.topbar-actions { display: flex; gap: 8px; }
.topbar-actions button { width: 128px; }
.docked-demo { min-height: 2200px; display: grid; align-content: space-between; }

.tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.tabs [aria-selected="true"] { font-weight: 700; }
.tab-gap { height: 1500px; }
