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

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

a,
blockquote,
button,
code,
div,
h1,
h2,
h3,
li,
ol,
option,
p,
pre,
select,
span,
strong,
td,
textarea,
th,
ul {
  color: var(--color-font);
}

a,
blockquote,
body,
br,
button,
code,
div,
h1,
h2,
h3,
html,
img,
input,
li,
ol,
option,
p,
pre,
select,
span,
strong,
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: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, 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;
}

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

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

ol,
ul {
  list-style: none;
}

input {
  background-color: transparent;
}

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

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

:root {
  --color-font: #1f1f1f;
  --color-muted: #6e6e6e;
  --color-body-background: #f7f7f7;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #fafafa;
  --color-item-selected: #f4f4f4;
  --color-input-background: #fafafa;
  --color-field-border: #ececec;
  --color-shadow: #f0f0f0;
  --color-chunk-line: #bcbcbc;
  --color-arc: #3f72c4;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: var(--color-font);
  font-family: "Rubik Iso", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  cursor: pointer;
  user-select: none;
}

.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 29;
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-panel-background);
  border-radius: 0 12px 0 0;
  box-shadow: 0 0 3px 1px var(--color-shadow);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-font);
}
.ApplicationMenu-Link-Description {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}

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

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.Panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px 8px 8px 8px;
  box-shadow: 0 0 3px 1px var(--color-shadow);
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-panel=sentence] {
  max-height: 46vh;
}
.Panel[data-float] {
  position: fixed;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-Header:hover .Panel-CloseIcon svg {
  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 > .SelectList,
.Panel > .RightLabelGrid,
.Panel > .WordDetail,
.Panel > .Usage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.Root[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.Root[data-fixed] .Panel-Header {
  cursor: default;
}

.SelectList {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.SelectList-Group {
  padding: 14px 14px 4px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
  user-select: none;
}
.SelectList-Item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: calc(100% - 16px);
  min-width: 240px;
  padding: 6px 10px;
  margin: 0 8px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  text-align: left;
}
.SelectList-Item[data-current] {
  background: var(--color-item-selected);
}
.SelectList-Item-Pattern {
  font-size: 11px;
  line-height: 17px;
  color: var(--color-muted);
}
.SelectList-Item-Text {
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-font);
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 14px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 32px;
  column-gap: 16px;
}
.RightLabelGrid-Row[data-clickable] {
  cursor: pointer;
  user-select: none;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.RightLabelGrid-Row-Value {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-font);
}

.CheckInput {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-field-border);
  border-radius: 2px;
  color: var(--color-font);
  cursor: pointer;
}
.CheckInput svg {
  visibility: hidden;
}
.CheckInput[data-checked] svg {
  visibility: visible;
}

.WordDetail {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding-bottom: 8px;
}
.WordDetail-Empty {
  padding: 16px 14px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}
.WordDetail-Text {
  padding: 14px 14px 4px;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-font);
}

.Diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.Diagram-Body {
  position: relative;
  width: max-content;
}
.Diagram-Grid {
  display: grid;
  align-items: start;
}
.Diagram-Arc {
  display: block;
}
.Diagram-Arc-Line {
  fill: none;
  stroke: var(--color-arc);
  stroke-width: 1;
}
.Diagram-Arc-Head {
  fill: var(--color-arc);
}
.Diagram-Arc-Label {
  fill: var(--color-arc);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 10px;
}
.Diagram-Japanese {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-font);
}
.Diagram-Note {
  max-width: 32em;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
  text-align: center;
}
.Diagram:not([data-part]) .Word-Part {
  display: none;
}
.Diagram:not([data-role]) .Chunk {
  display: none;
}
.Diagram:not([data-arc]) .Diagram-Arc {
  display: none;
}
.Diagram:not([data-japanese]) .Diagram-Japanese {
  display: none;
}

.Chunk {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 0 4px 6px;
  white-space: nowrap;
}
.Chunk::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 1px;
  background: var(--color-chunk-line);
}
.Chunk-Mark {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-font);
}
.Chunk-Label {
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-muted);
}

.Word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.Word[data-symbol] {
  cursor: default;
}
.Word[data-selected] {
  background: var(--color-item-selected);
}
.Word-Text {
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-font);
}
.Word-Part {
  font-size: 10px;
  line-height: 1.3;
  color: var(--color-muted);
  white-space: nowrap;
}

.EnglishStructure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 100vh;
  padding: 48px 24px 60px;
  background: var(--color-body-background);
}
.EnglishStructure-Pattern {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}

.Usage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 300px;
  padding: 16px 18px;
}
.Usage h1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-font);
}
.Usage p {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}

.ViewStatus {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
}

.ZoomControl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ZoomControl-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}

.RoundNumberInput {
  display: flex;
  justify-self: start;
  height: 24px;
  background: var(--color-input-background);
  border-radius: 12px;
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: calc(4ch + 12px);
  background: transparent;
  color: var(--color-font);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

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

.Board {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  cursor: grab;
}

.Stage {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.Stage-Pattern {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}