* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f0f4f8;
  color: #18324a;
  font:
    14px/1.6 "Malgun Gothic",
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 26px;
  background: #133452;
  color: white;
}
header a {
  color: white;
}
header strong {
  font-size: 22px;
}
.tag {
  font-size: 12px;
  background: #42627c;
  padding: 3px 8px;
  border-radius: 5px;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px 26px;
  background: white;
}
button,
.button {
  font: inherit;
  background: #165e96;
  color: white;
  padding: 9px 13px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.notice {
  margin: 0;
  padding: 12px 26px;
  background: #fff3d8;
  font-size: 13px;
}
#status {
  padding: 12px 26px;
  font-weight: bold;
}
main {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  gap: 15px;
  padding: 0 20px 25px;
}
aside,
#stage {
  background: white;
  padding: 15px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  min-width: 0;
}
h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  background: #edf4fa;
  color: #173953;
}
#viewport {
  overflow: auto;
  max-height: 78vh;
}
#canvas {
  width: 100%;
  min-height: 400px;
  background: white;
  display: block;
}
#canvas image {
  cursor: pointer;
}
form label {
  display: block;
  margin-bottom: 12px;
}
input {
  width: 100%;
  padding: 8px;
  border: 1px solid #b9c8d6;
  border-radius: 4px;
  font: inherit;
}
#issues {
  font-size: 12px;
  max-height: 55vh;
  overflow: auto;
}
.issue {
  padding: 7px 0;
  border-bottom: 1px solid #e6eaf0;
}
#changes,
.muted {
  font-size: 12px;
  color: #56697b;
}
#prints {
  display: none;
}
@media (max-width: 950px) {
  main {
    grid-template-columns: 1fr;
  }
  header {
    flex-wrap: wrap;
  }
  #canvas {
    min-height: 300px;
  }
}
@media print {
  header,
  .bar,
  .notice,
  #status,
  main {
    display: none;
  }
  #prints {
    display: block;
  }
  #prints section {
    break-after: page;
  }
  #prints svg {
    width: 100%;
    height: auto;
  }
}
