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

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

html,
body {
  overflow: hidden;
}

body {
  background: #ffffff;
  color: #1f1f2b;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 15px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

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

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font-family: inherit;
}

button {
  background-color: transparent;
  cursor: pointer;
}

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

:root {
  --color-font: #1f1f2b;
  --color-muted: #6b6b7a;
  --color-input-border: #d2d2dc;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #fafafa;
  --color-panel-border: #f0f0f0;
  --color-hover: #eeeef4;
  --color-close-icon: #484848;
  --color-article-font: #393939;
}

.Sansu {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 15px;
}

body[data-index] {
  overflow-y: auto;
}

.Canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
}
.Logo a {
  color: var(--color-font);
  font-family: "Quicksand", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 21px;
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.Panel {
  position: absolute;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px;
  box-shadow: 0 0 3px 1px #f7f7f7;
  overflow: hidden;
}
.Panel-Header {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  color: var(--color-close-icon);
  cursor: pointer;
}
.Panel-CloseIcon:hover {
  color: var(--color-font);
}
.Panel-Header:hover .Panel-CloseIcon {
  visibility: visible;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-Title[data-end] {
  padding: 0 16px;
}
.Panel-Main {
  padding: 0;
}
.Panel-ResizeHandle {
  position: absolute;
  z-index: 2;
}
.Panel-ResizeHandle[data-resize=n] {
  top: 0;
  left: 10px;
  right: 10px;
  height: 6px;
  cursor: ns-resize;
}
.Panel-ResizeHandle[data-resize=s] {
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 6px;
  cursor: ns-resize;
}
.Panel-ResizeHandle[data-resize=w] {
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-ResizeHandle[data-resize=e] {
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-ResizeHandle[data-resize=nw] {
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  cursor: nwse-resize;
}
.Panel-ResizeHandle[data-resize=ne] {
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: nesw-resize;
}
.Panel-ResizeHandle[data-resize=sw] {
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  cursor: nesw-resize;
}
.Panel-ResizeHandle[data-resize=se] {
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: nwse-resize;
}
.Panel[data-resized] {
  display: flex;
  flex-direction: column;
}
.Panel[data-resized] .Panel-Main {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-height: none;
}
.Panel[data-hidden] {
  display: none;
}

.Sansu[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}

.Guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.Guide h1 {
  color: var(--color-font);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}
.Guide p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 24px;
}

.Article {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  width: 400px;
  max-height: calc(100vh - 120px);
  color: var(--color-article-font);
}
.Article h1 {
  margin: 21px 0;
  padding: 0 24px;
  color: var(--color-font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
}
.Article b {
  color: var(--color-font);
  font-weight: 600;
}

.Document-Problem, .Document-Step {
  margin: 21px 0;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 15px;
  line-height: 1.8;
}
.Document-Heading {
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin: 33px 0 21px;
  color: var(--color-font);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

.Mark {
  color: #c1272d;
  font-weight: 700;
}

.ControlPanel .Panel-Main {
  padding: 12px;
}

.SettingPanel .Panel-Main {
  width: 220px;
  padding: 12px;
}

.ButtonRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.Button {
  padding: 0 4px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 24px;
}
.Button:hover {
  color: var(--color-font);
}

.Field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.Field-Label {
  flex-shrink: 0;
  width: 24px;
  color: var(--color-muted);
  font-size: 13px;
}
.Field-Input {
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
  background: transparent;
  border-bottom: 1px solid var(--color-panel-border);
  color: var(--color-font);
  font-size: 15px;
}

.Index {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.ProblemList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.ProblemList-Item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  color: var(--color-font);
  font-size: 16px;
  line-height: 26px;
}
.ProblemList-Item:hover {
  background: var(--color-hover);
}

.Note {
  display: none;
  color: #c1272d;
  font-size: 13px;
  line-height: 20px;
}
.Note[data-shown] {
  display: block;
  margin-top: 8px;
}