*,
: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: #1f1f1f;
}

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: 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;
}

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%;
}

.Spreadsheet-Main {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.Spreadsheet-Canvas {
  display: block;
  cursor: cell;
}
.Spreadsheet-Editor {
  position: absolute;
  display: none;
  border: 2px solid #d6336c;
  outline: none;
  box-sizing: border-box;
  background: #ffffff;
  z-index: 10;
}

.Menu {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 180px;
}
.Menu-Group {
  padding: 4px 0;
}
.Menu-Group:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}
.Menu-Item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  font-size: 13px;
  cursor: pointer;
  color: #1f2328;
  white-space: nowrap;
}
.Menu-Item:hover {
  background: #f0f3f6;
}

.Loading {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.Loading-Text {
  color: #656d76;
  font-size: 14px;
}

.Panel-Header {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid #f5f5f5;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Header-Icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.Panel-Header-Close svg {
  width: 9px;
}
.Panel-Header-Add {
  color: #1f2328;
}
.Panel-Header-Add svg {
  width: 14px;
}
.Panel-Title {
  font-size: 11px;
  font-weight: bold;
  line-height: 1.5;
  color: #1f1f1f;
}
.Panel-Title[data-end] {
  padding-right: 16px;
}
.Panel-Main {
  padding: 4px 0;
}
.Panel-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 16px;
  gap: 16px;
}
.Panel-Row[data-clickable] {
  cursor: pointer;
}
.Panel-Row[data-clickable]:hover {
  background: #f0f3f6;
}
.Panel-Row-Label {
  flex-shrink: 0;
  font-size: 13px;
  color: #1f1f1f;
}
.Panel-Row-Select {
  padding: 2px 8px;
  border: 1px solid #333;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  user-select: none;
}
.Panel-Swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.ToggleGroup {
  display: flex;
  align-items: center;
}
.ToggleGroup-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  user-select: none;
}
.ToggleGroup-Button[data-selected] {
  border: 1px solid #333;
}

.TextPanel {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
}
.TextPanel-Value {
  color: #656d76;
  font-size: 12px;
}
.TextPanel-Check {
  display: flex;
  align-items: center;
  color: #333;
}

.CellPanel {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
}
.CellPanel-Group + .CellPanel-Group {
  border-top: 1px solid #f5f5f5;
  padding-top: 4px;
}
.CellPanel-Group-Header {
  padding: 6px 16px;
  font-size: 12px;
  color: #656d76;
}
.CellPanel-Canvas {
  display: block;
  cursor: pointer;
  margin: 12px auto;
}

.SizePanel {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
}
.SizePanel-Input {
  width: 80px;
  padding: 2px 8px;
  border: 1px solid #333;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.5;
}
.SizePanel-Input[data-mixed] {
  font-style: italic;
}
.SizePanel-Input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.SwitchPanel {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 20;
  width: 240px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.SwitchPanel-Main {
  width: 100%;
  max-height: 560px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.SwitchPanel-Row {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  line-height: 22px;
  color: #1f2328;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.SwitchPanel-Row:hover {
  background: #f0f3f6;
}
.SwitchPanel-Row[data-active] {
  font-weight: 600;
  color: #0969da;
}

.FontMenu {
  position: absolute;
  top: 33px;
  left: calc(100% + 4px);
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 140px;
}
.FontMenu-Item {
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #1f1f1f;
  white-space: nowrap;
}
.FontMenu-Item:hover {
  background: #f0f3f6;
}
.FontMenu-Item[data-active] {
  background: #d0d7de;
}

.SearchPanel {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 20;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.SearchPanel-Main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
}
.SearchPanel-Row {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}
.SearchPanel-InputWrap {
  border-bottom: 1px solid #333;
}
.SearchPanel-Input {
  width: 160px;
  height: 22px;
  font-size: 12px;
  border: none;
  padding: 0;
  outline: none;
  background: transparent;
  color: #1f2328;
}
.SearchPanel-Info {
  font-size: 11px;
  color: #656d76;
  min-width: 50px;
}
.SearchPanel-ArrowGroup {
  display: flex;
  gap: 24px;
  margin-bottom: 3px;
}
.SearchPanel-Arrow {
  cursor: pointer;
  color: #1f2328;
}
.SearchPanel-TextButtonGroup {
  display: flex;
  gap: 24px;
}
.SearchPanel-TextButton {
  border: none;
  background: transparent;
  color: #1f2328;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
}

.Header {
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.Control {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 48px;
  padding-right: 40px;
}
.Control-File {
  height: 36px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.Control-File-Button {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 21px;
  padding: 0 8px;
  cursor: pointer;
}
.Control-History {
  height: 36px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.Control-Undo, .Control-Redo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.Control-Undo svg, .Control-Redo svg {
  width: 12px;
}
.Control-Panel {
  height: 36px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.Control-Panel div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Control-Panel-Label {
  font-size: 13px;
  line-height: 21px;
  padding: 0 8px;
  cursor: pointer;
}
.Control-Panel-Search svg {
  width: 12px;
}
.Control-Panel-Search div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Control-Button {
  border: none;
  outline: none;
  cursor: pointer;
  height: 26px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  color: #1f2328;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Control-Button:hover {
  background: #e1e5e9;
}
.Control-Button[data-active] {
  background: #d0d7de;
}
.Control-Button[data-active]:hover {
  background: #d0d7de;
}
.Control-Button[data-bold] {
  font-weight: 700;
}
.Control-Button[data-italic] {
  font-style: italic;
}
.Control-Button[data-small] {
  font-size: 11px;
}
.Control-FormatSelect {
  height: 22px;
  font-size: 11px;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  background: #f6f8fa;
  color: #1f2328;
  outline: none;
  cursor: pointer;
  padding: 0 2px;
}
.Control-Frozen {
  align-self: center;
  font-size: 11px;
  color: #0969da;
  cursor: pointer;
  display: none;
}
.Control-FileInput {
  display: none;
}

.Logo {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
}
.Logo-Text {
  font-size: 20px;
  line-height: 1.5;
  color: #1f2328;
  cursor: pointer;
  user-select: none;
}

.ApplicationMenu {
  position: fixed;
  top: 48px;
  left: 0;
  bottom: 0;
  z-index: 10003;
  display: none;
  flex-direction: column;
  width: 300px;
  background: #ffffff;
  border-radius: 0 8px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 12px 0;
}
.ApplicationMenu-Link {
  padding: 5px 24px;
  font-size: 13px;
  line-height: 20px;
  color: #1f2328;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ApplicationMenu-Home {
  padding: 5px 24px;
  font-size: 13px;
  line-height: 20px;
  color: #0969da;
  text-decoration: none;
}

.ColorPicker-Overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
}
.ColorPicker-Container {
  padding: 32px;
  background-color: #1a1a1a;
  border-radius: 12px;
  user-select: none;
}
.ColorPicker-Main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.ColorPicker-Ring {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}
.ColorPicker-Ring-Inner {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: #1a1a1a;
  pointer-events: none;
}
.ColorPicker-Ring-Indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ColorPicker-Square {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: crosshair;
  z-index: 1;
}
.ColorPicker-Square-Indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ColorPicker-CardGroup {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ColorPicker-Analogous {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ColorPicker-None {
  width: 100%;
  padding: 10px 0;
  margin-top: 12px;
  font-family: monospace;
  font-size: 13px;
  color: #888;
  background-color: #242424;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.ColorCard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background-color: #242424;
  border-radius: 10px;
  min-width: 200px;
}
.ColorCard-Header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ColorCard-Swatch {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #333;
  flex-shrink: 0;
}
.ColorCard-HexGroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ColorCard-Label {
  font-family: monospace;
  font-size: 10px;
  color: #555;
}
.ColorCard-Hex {
  font-family: monospace;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.05em;
}
.ColorCard-Row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.ColorCard-Row-Label {
  font-family: monospace;
  font-size: 11px;
  color: #555;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.ColorCard-Row-Value {
  font-family: monospace;
  font-size: 12px;
  color: #bbb;
}

.AngleField {
  display: flex;
  align-items: center;
  gap: 10px;
}
.AngleField-Label {
  font-family: monospace;
  font-size: 12px;
  color: #555;
}
.AngleField-Input {
  width: 56px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 13px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  outline: none;
}
.AngleField-Unit {
  font-family: monospace;
  font-size: 12px;
  color: #555;
}

.Spreadsheet {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  outline: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  overflow: hidden;
}