
@font-face {
  font-family: "HSE Sans";
  src: url("/static/fonts/HSESans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HSE Sans";
  src: url("/static/fonts/HSESans-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "HSE Sans", sans-serif;
  background: #ffffff;
  color: #0F2D69;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
}

.shell {
  height: 100%;
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #C6C6C6;
  background: #E6E6E6;
}

.panel-body {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1rem 0.75rem;
}

.panel h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.panel fieldset {
  margin-bottom: 0.4rem;
}

.panel section {
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
}

.panel button {
  margin-top: 0.4rem;
}

.panel label {
  margin: 0.2rem 0;
}

.panel select,
.panel input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0.25rem 0 0.15rem;
  box-sizing: border-box;
}

.panel .fields {
  gap: 0.2rem;
}

main {
  overflow: auto;
  min-width: 0;
  padding: 1.25rem 1.75rem 2.5rem;
}

h1, h2 {
  font-weight: 600;
}

h1 {
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

fieldset {
  border: 1px solid #C6C6C6;
  margin: 0 0 1rem;
}

label {
  display: block;
  margin: 0.35rem 0;
}

[hidden] {
  display: none;
}

.slots, .fields, .results {
  display: grid;
  gap: 1rem;
}

.slots {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

#report-details:not([open]) > :not(summary) {
  display: none;
}

#report-details > summary {
  cursor: pointer;
  width: fit-content;
}

#report-details > summary h2 {
  display: inline;
  margin: 0;
}

:focus-visible {
  outline: 2px solid #234B9B;
  outline-offset: 2px;
}

#report-details pre {
  margin-top: 0.6rem;
}

#duration:not(:empty) {
  font-weight: 400;
  margin-left: 0.45rem;
}

#graph-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  margin: 0;
}

section {
  margin: 1.25rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid #C6C6C6;
}

main > section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

input[type="checkbox"] {
  margin-right: 0.45rem;
  accent-color: #0F2D69;
}

select, input[type="number"] {
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #C6C6C6;
  margin-left: 0.4rem;
  min-width: 8rem;
}

button {
  font: inherit;
  font-weight: 400;
  margin-top: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: #0F2D69;
  color: #ffffff;
  border: 0;
}

img {
  max-width: 100%;
  background: white;
}

pre {
  white-space: pre-wrap;
  min-height: 4rem;
  margin: 0;
}

#message:empty {
  display: none;
}

#message {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: #F5C3C3;
  border-top: 1px solid #E61E3C;
}

@media (max-width: 52rem) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .panel {
    max-height: 58vh;
    border-right: 0;
    border-bottom: 1px solid #C6C6C6;
  }
}
