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

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

svg {
  display: block;
}

body {
  background-color: #3a3a3a;
  color: #ededed;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 18px 64px;
}

#app {
  width: 100%;
  max-width: 1180px;
}

.Pictogram {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.Pictogram-Side {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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 {
  padding: 10px 12px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a9a9a;
}
.Pictogram-DataInput {
  display: block;
  width: calc(100% - 24px);
  min-height: 220px;
  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;
}
.Pictogram-Sheet {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 24px 26px;
  background-color: #f0ece2;
  border: 1px solid #ccc4b2;
  border-radius: 2px;
  color: #1c1b18;
}
.Pictogram-Masthead {
  border-top: 3px solid #1c1b18;
  border-bottom: 1px solid #1c1b18;
  padding: 10px 0 12px;
  margin-bottom: 18px;
}
.Pictogram-Masthead-Kicker {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #6b6457;
  text-transform: uppercase;
}
.Pictogram-Masthead-Title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #1c1b18;
}
.Pictogram-Masthead-Source {
  margin-top: 5px;
  font-size: 11px;
  color: #6b6457;
}
.Pictogram-Stage {
  position: relative;
  margin-bottom: 14px;
}
.Pictogram-Canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc4b2;
  background-color: #fbfaf6;
  cursor: pointer;
}
.Pictogram-Note {
  padding-left: 10px;
  border-left: 2px solid #ccc4b2;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6b6457;
}
.Pictogram-Note b {
  color: #1c1b18;
}
.Pictogram-Download {
  display: none;
}
@media (max-width: 760px) {
  .Pictogram {
    flex-direction: column;
  }
  .Pictogram-Side {
    flex-basis: auto;
    width: 100%;
  }
}

.Panel {
  background-color: #363636;
  border: 1px solid #2e2e2e;
  border-radius: 2px;
}
.Panel-Header {
  height: 32px;
  display: flex;
  align-items: center;
  background-color: #323232;
  border-bottom: 1px solid #2a2a2a;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.Panel-Title {
  padding: 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #ededed;
}
.Panel-Main {
  padding: 0;
}

.PanelGroup + .PanelGroup {
  border-top: 1px solid #2a2a2a;
}

.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;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  min-width: calc(2ch + 16px);
  max-width: calc(4ch + 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-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
  user-select: none;
}