:root
{
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #102e35;
  background: #f6f5ef;
  color-scheme: light;
}
*
{
  box-sizing: border-box;
}
body
{
  margin: 0;
}
#viewer
{
  color: #102e35;
  background: #f6f5ef;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  height: 100dvh;
  min-height: 460px;
}
.viewport
{
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #102026;
}
#viewer:fullscreen
{
  overflow: auto;
}
canvas
{
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#status
{
  position: absolute;
  inset: 14px auto auto 14px;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f6f5eff0;
  font-size: 13px;
  pointer-events: none;
}
#status[data-error]
{
  color: #8b2618;
}
.viewport-actions
{
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
aside
{
  background: #f6f5ef;
  overflow-y: auto;
  padding: 20px;
  border-left: 1px solid #d6ded9;
}
h1
{
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
header p, .note
{
  font-size: 12px;
  line-height: 1.6;
  color: #52676c;
}
fieldset
{
  min-width: 0;
  margin: 20px 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #d6ded9;
}
legend
{
  padding-right: 8px;
  font-size: 14px;
  font-weight: 700;
}
.buttons
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
button
{
  padding: 8px 10px;
  border: 1px solid #b9cbc5;
  border-radius: 6px;
  color: #102e35;
  background: #f6f5ef;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
button:hover, button[aria-pressed="true"]
{
  background: #dcece5;
}
button:disabled
{
  opacity: 0.5;
  cursor: default;
}
:focus-visible
{
  outline: 3px solid #bb641f;
  outline-offset: 2px;
}
.object-toggle
{
  display: flex;
  align-items: start;
  gap: 7px;
  padding-block: 5px;
  font-size: 13px;
}
input
{
  accent-color: #087f78;
}
details
{
  margin-block: 6px 12px;
  font-size: 13px;
}
details .object-toggle
{
  padding-left: 10px;
}
.joint
{
  display: grid;
  gap: 7px;
  margin-block: 15px;
  font-size: 12px;
}
.joint input
{
  width: 100%;
}
.joint output
{
  font-variant-numeric: tabular-nums;
  color: #52676c;
}
a
{
  color: inherit;
  text-underline-offset: 3px;
}
@media (max-width: 620px)
{
  #viewer
  {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 58dvh) auto;
    height: auto;
    min-height: 100dvh;
  }
  aside
  {
    border-left: 0;
    border-top: 1px solid #d6ded9;
  }
}
