* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, sans-serif;
  color: #eceff4;
  background: #16191f;
}

.workspace {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

aside {
  min-width: 0;
  padding: 16px 8px;
  overflow: auto;
  border-right: 1px solid #697585;
}

h1 { margin: 0 0 16px; font-size: 16px; text-align: center; }
h2 { margin: 0; font-size: 16px; }
nav { display: grid; gap: 8px; }
button, a { font: inherit; color: inherit; }

button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 4px;
  border: 1px solid #697585;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

button[aria-pressed="true"] {
  color: #10151c;
  background: #e1eaff;
  font-weight: 700;
}

a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

:focus-visible { outline: 3px solid #eab96b; outline-offset: 3px; }
main:focus-visible { outline-offset: -3px; }
aside p { font-size: 12px; color: #bac3d0; text-align: center; }
main { min-width: 0; min-height: 0; }
section { height: 100%; display: flex; flex-direction: column; }
[hidden] { display: none !important; }

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 16px;
}

iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: white;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 12px;
  color: #10151c;
  background: #e1eaff;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: translateY(0); }

@media (max-width: 650px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  aside {
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid #697585;
    overflow: visible;
  }

  h1 { margin: 0 0 8px; font-size: 18px; }
  nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  button { padding-inline: 8px; }
  aside p { margin: 8px 0 0; }
  header { padding: 4px 12px; }
}
