* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

svg {
  display: block;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  background-color: #3a3a3a;
  color: #ededed;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

#app {
  position: absolute;
  inset: 0;
}

.Pictogram-Stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.Pictogram-Canvas {
  display: block;
  border: 1px solid #ccc4b2;
  background-color: #fbfaf6;
  cursor: pointer;
}

.Pictogram-Download {
  display: none;
}

.SinglePanel {
  position: absolute;
  width: max-content;
  background-color: #363636;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}
.SinglePanel[data-hidden] {
  display: none;
}
.SinglePanel-Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  cursor: grab;
  user-select: none;
}
.SinglePanel-Header:active {
  cursor: grabbing;
}
.SinglePanel-Title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background-color: #323232;
  font-size: 11px;
  line-height: 1.5;
  color: #ededed;
  border-bottom-right-radius: 12px;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-Close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ededed;
  cursor: pointer;
}
.SinglePanel-Close svg {
  width: 9px;
  visibility: hidden;
}
.SinglePanel-Header:hover .SinglePanel-Close svg {
  visibility: visible;
}
.SinglePanel-Main {
  padding: 0;
}

.ViewPanel {
  left: 24px;
  top: 24px;
}

.SamplePanel {
  left: 24px;
  top: 232px;
}

.DataPanel {
  left: 24px;
  top: 372px;
}

.PlaybackPanel {
  right: 24px;
  top: 24px;
}

.HintPanel {
  right: 24px;
  top: 380px;
}

.PanelGroup + .PanelGroup {
  border-top: 1px solid #2a2a2a;
}
.PanelGroup-Header {
  display: flex;
  height: 28px;
  padding: 9px 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}

.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;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
}

.NumberInput {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #dadada;
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  min-width: calc(2ch + 16px);
  max-width: calc(5ch + 16px);
  height: 24px;
  padding: 0 4px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background-color: transparent;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #ededed;
}
.NumberInput-Input:focus {
  outline: none;
}
.NumberInput-Input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.Pictogram-Sample {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}
.Pictogram-Sample-Item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
  user-select: none;
}
.Pictogram-Sample-Item[data-selected] {
  background-color: #575757;
}
.Pictogram-Sample-Item-Check {
  display: flex;
  align-items: center;
  visibility: hidden;
}
.Pictogram-Sample-Item-Label {
  display: flex;
  align-items: center;
}
.Pictogram-Sample-Item[data-selected] .Pictogram-Sample-Item-Check {
  visibility: visible;
}

.Pictogram-Data-Help {
  width: 280px;
  padding: 10px 12px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a9a9a;
}

.Pictogram-DataInput {
  display: block;
  width: 280px;
  min-height: 200px;
  margin: 8px 12px;
  padding: 8px 10px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background-color: transparent;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #ededed;
  resize: vertical;
}
.Pictogram-DataInput:focus {
  outline: none;
}

.Pictogram-Error {
  min-height: 16px;
  padding: 0 12px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #e0795f;
}

.Pictogram-Action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
}
.Pictogram-Action-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #ededed;
}
.Pictogram-Action-Button:focus-visible {
  outline: 2px solid #b1452a;
  outline-offset: 2px;
}
.Pictogram-Action-Button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.ViewControl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}
.ViewControl-Item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
  user-select: none;
}
.ViewControl-Item[data-selected] {
  background-color: #575757;
}
.ViewControl-Item-Check {
  display: flex;
  align-items: center;
  visibility: hidden;
}
.ViewControl-Item-Label {
  display: flex;
  align-items: center;
}
.ViewControl-Item[data-selected] .ViewControl-Item-Check {
  visibility: visible;
}

.HintText {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  padding: 16px 18px;
}
.HintText h1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #ededed;
}
.HintText h2 {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #ededed;
}
.HintText p {
  font-size: 13px;
  line-height: 21px;
  color: #9a9a9a;
}
.HintText ol {
  padding-left: 18px;
}
.HintText li {
  font-size: 13px;
  line-height: 20px;
  color: #9a9a9a;
}
.HintText li + .HintText li {
  margin-top: 6px;
}
.HintText b {
  color: #ededed;
  font-weight: 600;
}