*,
: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%;
}

.tool-sheet__cell-label {
  font-size: 12px;
  padding: 0 8px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  height: 26px;
  color: #1f1f1f;
}
.tool-sheet__cell-modal {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
}
.tool-sheet__cell-modal-group + .tool-sheet__cell-modal-group {
  border-top: 1px solid #f5f5f5;
  padding-top: 4px;
}
.tool-sheet__cell-modal-group-header {
  padding: 6px 16px;
  font-size: 12px;
  color: #656d76;
}
.tool-sheet__cell-modal-canvas {
  display: block;
  cursor: pointer;
}
.tool-sheet__cell-modal-swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}
.tool-sheet__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;
}

.tool-sheet__canvas-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.tool-sheet__canvas {
  display: block;
  cursor: cell;
}
.tool-sheet__editor-input {
  position: absolute;
  display: none;
  border: 2px solid #d6336c;
  outline: none;
  box-sizing: border-box;
  background: #ffffff;
  z-index: 10;
}

.tool-sheet__context-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;
}
.tool-sheet__context-menu-group {
  padding: 4px 0;
}
.tool-sheet__context-menu-group:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}
.tool-sheet__context-menu-item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  font-size: 13px;
  cursor: pointer;
  color: #1f2328;
  white-space: nowrap;
}
.tool-sheet__context-menu-item:hover {
  background: #f0f3f6;
}

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

.tool-sheet__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;
}
.tool-sheet__panel-header:active {
  cursor: grabbing;
}
.tool-sheet__panel-title {
  padding-right: 16px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.5;
  color: #1f1f1f;
}
.tool-sheet__panel-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tool-sheet__panel-close svg {
  width: 9px;
}
.tool-sheet__panel-main {
  padding: 4px 0;
}

.tool-sheet__search-modal {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 90px;
  right: 12px;
  z-index: 20;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tool-sheet__search-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px 20px;
}
.tool-sheet__search-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-sheet__search-input-wrap {
  border-bottom: 1px solid #333;
}
.tool-sheet__search-input {
  width: 160px;
  height: 22px;
  font-size: 12px;
  border: none;
  padding: 0;
  outline: none;
  background: transparent;
  color: #1f2328;
}
.tool-sheet__search-info {
  font-size: 11px;
  color: #656d76;
  min-width: 50px;
}
.tool-sheet__small-button {
  height: 22px;
  font-size: 11px;
  border: none;
  background: transparent;
  color: #1f2328;
  cursor: pointer;
  padding: 0 8px;
}

.tool-sheet__text-label {
  font-size: 12px;
  padding: 0 8px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  height: 26px;
  color: #1f1f1f;
}
.tool-sheet__text-modal {
  position: fixed;
  z-index: 10002;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
}
.tool-sheet__panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 16px;
  gap: 16px;
}
.tool-sheet__panel-row--clickable {
  cursor: pointer;
}
.tool-sheet__panel-row--clickable:hover {
  background: #f0f3f6;
}
.tool-sheet__panel-row-label {
  flex-shrink: 0;
  font-size: 13px;
  color: #1f1f1f;
}
.tool-sheet__text-modal-value {
  color: #656d76;
  font-size: 12px;
}
.tool-sheet__text-modal-swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}
.tool-sheet__text-modal-check {
  display: flex;
  align-items: center;
  color: #333;
}
.tool-sheet__panel-row-toggle {
  display: flex;
  align-items: center;
}
.tool-sheet__panel-row-toggle-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;
}
.tool-sheet__panel-row-toggle-button--active {
  border: 1px solid #333;
}
.tool-sheet__text-font-popup {
  position: absolute;
  top: 0;
  left: calc(100% + 4px);
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 140px;
}
.tool-sheet__text-font-item {
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #1f1f1f;
  white-space: nowrap;
}
.tool-sheet__text-font-item:hover {
  background: #f0f3f6;
}
.tool-sheet__text-font-item--active {
  background: #d0d7de;
}

.tool-sheet__header {
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}
.tool-sheet__header-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 48px;
  padding-left: 40px;
}
.tool-sheet__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;
}
.tool-sheet__history div {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tool-sheet__history div svg {
  width: 12px;
}
.tool-sheet__header-actions, .tool-sheet__file-actions {
  height: 36px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.tool-sheet__header-actions div, .tool-sheet__file-actions div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-sheet__text-label, .tool-sheet__cell-label, .tool-sheet__freeze, .tool-sheet__save, .tool-sheet__load, .tool-sheet__sheet-label {
  font-size: 13px;
  line-height: 21px;
  padding: 0 8px;
  cursor: pointer;
}
.tool-sheet__header-right {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tool-sheet__header-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;
}
.tool-sheet__header-button:hover {
  background: #e1e5e9;
}
.tool-sheet__header-button--active {
  background: #d0d7de;
}
.tool-sheet__header-button--active:hover {
  background: #d0d7de;
}
.tool-sheet__header-button--bold {
  font-weight: 700;
}
.tool-sheet__header-button--italic {
  font-style: italic;
}
.tool-sheet__header-button--small {
  font-size: 11px;
}
.tool-sheet__search {
  padding: 0 8px;
}
.tool-sheet__search svg {
  width: 12px;
}
.tool-sheet__format-select {
  height: 22px;
  font-size: 11px;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  background: #f6f8fa;
  color: #1f2328;
  outline: none;
  cursor: pointer;
  padding: 0 2px;
}

.tool-sheet__sheet-modal {
  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);
}
.tool-sheet__sheet-modal-add {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f2328;
}
.tool-sheet__sheet-modal-add svg {
  width: 14px;
}
.tool-sheet__sheet-modal-main {
  width: 100%;
  max-height: 560px;
  padding: 0 0 12px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.tool-sheet__sheet-modal-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;
}
.tool-sheet__sheet-modal-row:hover {
  background: #f0f3f6;
}
.tool-sheet__sheet-modal-row--active {
  font-weight: 600;
  color: #0969da;
}

.tool-sheet {
  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;
}
.tool-sheet__close {
  width: 40px;
  height: 40px;
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;
  color: #1f2328;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-sheet__close svg {
  width: 12px;
}
.tool-sheet__close:hover {
  background: #e1e5e9;
}
.tool-sheet__info-frozen {
  font-size: 11px;
  color: #0969da;
  cursor: pointer;
  display: none;
}