*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

a,
blockquote,
button,
code,
div,
figcaption,
h1,
h2,
h3,
input[type=email],
input[type=text],
input[type=password],
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
td,
textarea,
th,
ul {
  color: #ccc;
}

a,
blockquote,
body,
br,
button,
code,
div,
figure,
figcaption,
h1,
h2,
h3,
html,
iframe,
img,
input,
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
table,
tbody,
td,
th,
thead,
tr,
ul {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body {
  overflow: hidden;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  font-size: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

p a {
  font-size: 100%;
  font-weight: bold;
}

strong {
  font-size: 100%;
  vertical-align: baseline;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  font-size: 0;
  max-width: 100%;
}

svg {
  border: 0;
  stroke-width: 0;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  text-align: left;
  white-space: nowrap;
  word-break: break-all;
}

th {
  font-weight: bold;
}

blockquote {
  quotes: none;
}

blockquote::after,
blockquote::before {
  content: "";
}

pre code {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, Menlo, "Liberation Mono", monospace;
}

input[type=text] {
  background-color: transparent;
}

input[type=file],
input[type=checkbox] {
  display: none;
}

textarea {
  background-color: transparent;
  resize: vertical;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-y: scroll;
  overflow-anchor: none;
}

button {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-calendar-picker-indicator {
  display: none;
}

::-webkit-resizer {
  display: none;
}

iframe {
  display: block;
  max-width: 100%;
}

.Drill-Canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-body-background);
}

.Drill {
  --color-body-background: #3a3a3a;
  --color-font: #ededed;
  --color-group-header-font: #9a9a9a;
  --color-hex: #9a9a9a;
  --color-number-icon: #dadada;
  --color-input-border: #a5a5a5;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-border: #2e2e2e;
  --color-panel-group-border: #2a2a2a;
  --color-selected: #575757;
}

.Panel {
  position: absolute;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 200px;
  max-height: calc(100vh - 40px);
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 2px;
}
.Panel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  background: var(--color-panel-header-background);
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid var(--color-panel-group-border);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Title {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  padding: 0 12px;
}
.Panel-Main {
  flex: 1;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.SettingsPanel {
  width: 280px;
  top: 16px;
  left: 16px;
}

.FormatPanel {
  top: 16px;
  right: 16px;
}

.ProblemPanel {
  top: 226px;
  right: 16px;
}

.BatchPanel {
  top: 538px;
  right: 16px;
}

.PanelGroup + .PanelGroup {
  border-top: 1px solid var(--color-panel-group-border);
}
.PanelGroup-Header {
  display: flex;
  height: 28px;
  padding: 9px 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  height: 36px;
  column-gap: 8px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  padding: 0 12px;
}

.NumberInput {
  justify-self: start;
}

.NumberInput {
  --NumberInput-text-color: currentColor;
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--color-number-icon);
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  field-sizing: content;
  min-width: calc(2ch + 16px);
  max-width: calc(8ch + 16px);
  height: 24px;
  padding: 0 4px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--NumberInput-text-color);
  text-align: center;
}
.NumberInput-Input:focus {
  outline: none;
}

.ButtonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
}

.Button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
}
.Button:active {
  background: var(--color-selected);
}

.SelectGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.SelectGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  height: 36px;
  column-gap: 8px;
}
.SelectGrid-Row[data-selected] {
  background-color: var(--color-selected);
  border-radius: 2px;
  margin: 0 -4px;
}
.SelectGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
  height: 32px;
  padding: 0 12px;
}

.DataInput {
  height: 400px;
  padding: 8px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  resize: vertical;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.BatchPanel .DataInput {
  height: 200px;
}
.DataInput:focus {
  outline: none;
}

body {
  background: #1a1a1a;
  color: #ccc;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

.Drill {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.Drill-Download {
  display: none;
}
.Drill-Stage {
  position: absolute;
  inset: 0;
}