:root {
  --navy: #1f3d70;
  --navy-deep: #082659;
  --panel: #252525;
  --panel-soft: #2c2c2c;
  --label: #213e71;
  --label-dark: #263644;
  --cell: #fffde8;
  --white-cell: #f8f8f8;
  --grid: #bfc1c4;
  --black: #000;
  --danger: #fb1010;
  --dark-red: #c90000;
  --green: #315d1e;
  --text: #fff;
  --blue-text: #002266;
  --row-h: 34px;
  --left-content-width: 901.33px;
  --right-content-width: 1122px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  font-family: "Malgun Gothic", "Segoe UI", Arial, sans-serif;
}

body {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.workbook {
  width: 2048px;
  height: 1224px;
  position: fixed;
  left: 0;
  top: 0;
  transform: scale(var(--workbook-scale, 1));
  transform-origin: top left;
  background: var(--black);
  color: var(--text);
}

.global-menu {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px 0 28px;
  background: var(--navy-deep);
  border: 1px solid #18417a;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid #d7e6ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #dceaff;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}

.menu-dot,
.small-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  flex: 0 0 auto;
}

.top-tabs {
  display: flex;
  height: 100%;
  align-items: center;
}

.top-tab {
  height: 34px;
  min-width: 174px;
  padding: 0 22px;
  color: #fff;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .28);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.tab-icon {
  display: inline-block;
  margin-right: 11px;
  font-size: 22px;
  vertical-align: -2px;
}

.project-pill {
  margin-left: auto;
  height: 34px;
  min-width: 430px;
  padding: 0 24px;
  border-radius: 18px;
  border: 2px solid #cfd6da;
  background: #fff;
  color: #000;
  font-weight: 900;
  font-size: 16px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, .4);
}

.gear-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 34px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 910px 1fr;
  column-gap: 10px;
  padding-top: 10px;
}

.left-pane,
.right-pane {
  min-height: 1140px;
  background: var(--black);
}

.left-pane {
  border-left: 1px solid #171717;
}

.right-pane {
  border-left: 1px solid #262626;
}

.local-toolbar,
.right-toolbar {
  height: 70px;
  margin: 0 8px 8px;
  background: var(--panel);
  display: flex;
  align-items: center;
}

.local-toolbar {
  justify-content: space-between;
  width: calc(100% - 8px);
  margin-right: 0;
  padding: 0 26px;
}

.tool-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 410px;
}

.local-toolbar h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  justify-content: flex-end;
}

.icon-btn {
  width: 34px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 32px;
  font-weight: 900;
  line-height: 38px;
}

.icon-btn.search {
  position: relative;
  width: 36px;
  height: 36px;
}

.icon-btn.search::before {
  content: "";
  width: 23px;
  height: 23px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
}

.icon-btn.search::after {
  content: "";
  width: 17px;
  height: 4px;
  background: #fff;
  transform: rotate(45deg);
  position: absolute;
  right: 0;
  bottom: 4px;
}

.tiny-square {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #fff;
  background: #fff;
}

.hex-btn {
  width: 28px;
  height: 24px;
  border: 0;
  color: #0a214a;
  background: #fff;
  font-weight: 900;
  clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%);
}

.effect-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
}

.effect-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.pill {
  height: 40px;
  min-width: 68px;
  border: 0;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.pill.mini {
  height: 20px;
  min-width: 40px;
  font-size: 13px;
}

.left-content {
  margin: 0 0 0 8px;
}

.sheet-table {
  border-collapse: collapse;
  table-layout: fixed;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.sheet-table th,
.sheet-table td {
  height: var(--row-h);
  border: 1px solid #0b0b0b;
  padding: 0 8px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.sheet-table th {
  background: var(--label);
  color: #fff;
}

.sheet-table td {
  background: var(--cell);
  color: #000;
  border-color: var(--grid);
}

.sheet-table td.has-field {
  padding: 0;
}

.cell-input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: center;
}

.cell-input:focus {
  box-shadow: inset 0 0 0 2px #2f7dff;
  background: rgba(255, 255, 255, .35);
}

.cell-input.is-calculated {
  color: #001f5f;
  font-weight: 900;
}

.sheet-table tbody tr:hover td,
.sheet-table tbody tr:hover th {
  box-shadow: inset 0 0 0 999px rgba(62, 111, 188, .12);
}

.sub-label {
  background: var(--label-dark) !important;
}

.mark {
  position: relative;
}

.mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 8px solid #f20c0c;
  border-left: 8px solid transparent;
}

.button-cell {
  background: var(--label) !important;
}

.button-cell button {
  width: 120px;
  height: 28px;
  border: 0;
  background: #253544;
  color: #fff;
  font-weight: 800;
}

.danger {
  background: var(--danger) !important;
  color: #fff !important;
}

.danger-text {
  color: var(--danger) !important;
  font-weight: 900;
}

.dark-red {
  background: var(--dark-red) !important;
}

.black-cell,
.empty {
  background: #000 !important;
  color: #000 !important;
  border-color: #000 !important;
}

.white {
  background: var(--white-cell) !important;
}

.pink {
  background: #fbe8e8 !important;
}

.strong {
  font-weight: 900;
}

.blue {
  color: var(--blue-text) !important;
}

.company-table,
.loan-table,
.balance-table,
.analysis-table {
  width: var(--left-content-width);
}

.company-table th,
.company-table td {
  height: 34px;
}

.loan-table {
  margin-top: 14px;
}

.balance-table {
  margin-top: 16px;
}

.middle-row {
  display: grid;
  grid-template-columns: 669.33px 232px;
  gap: 0;
  margin-top: 16px;
  width: var(--left-content-width);
}

.sales-table {
  width: 669.33px;
}

.ratio-table {
  width: 232px;
}

.ratio-table .gap td {
  height: 34px;
}

.analysis-table {
  margin-top: 16px;
}

.land-row {
  display: flex;
  margin-top: 16px;
  width: var(--left-content-width);
}

.land-table {
  width: 444px;
}

.asset-management-table {
  width: 448px;
}

.land-revalue {
  margin-top: 16px;
  width: 338px;
}

.land-small {
  width: 338px;
}

.memo-area {
  display: block;
  width: calc(100% - 16px);
  height: 120px;
  margin: 10px 8px 0;
  resize: none;
  border: 1px solid #3d3d3d;
  background: #242424;
  color: #fff;
  padding: 12px;
  font-size: 16px;
}

.left-pane > .memo-area:not(.right-memo) {
  width: calc(100% - 8px);
  margin-right: 0;
}

.right-toolbar {
  width: var(--right-content-width);
  margin-left: 0;
  margin-right: 5px;
  padding: 0 20px;
  gap: 70px;
}

.right-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  min-width: 88px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 32px;
  white-space: nowrap;
}

.action-btn:first-child {
  min-width: 184px;
}

.action-btn.green {
  background: var(--green);
}

.shareholder-table {
  width: var(--right-content-width);
}

.shareholder-table th,
.shareholder-table td {
  height: 34px;
}

.dark-row td {
  background: #202a35 !important;
  border-color: #0b0b0b !important;
}

.right-middle {
  display: grid;
  grid-template-columns: 400px 356px minmax(361px, 1fr);
  margin-top: 16px;
  width: var(--right-content-width);
}

.officer-table {
  width: 400px;
}

.private-stock-table {
  width: 356px;
}

.severance-table {
  width: 100%;
}

.private-stock-table .tall,
.private-stock-table .tall + td,
.private-stock-table .tall + td + td {
  height: 68px;
}

.button-head {
  background: var(--label-dark) !important;
}

.right-bottom {
  display: grid;
  grid-template-columns: 400px 344px minmax(373px, 1fr);
  margin-top: 16px;
  width: var(--right-content-width);
}

.capital-table {
  width: 400px;
}

.strategy-table {
  width: 344px;
}

.strategy-table .fill {
  height: 68px;
}

.consult {
  background: #000 !important;
  color: #fff !important;
  text-align: left !important;
  padding-left: 10px !important;
}

.earnings-card {
  width: 100%;
  height: 270px;
  color: #fff;
  border: 1px solid #222;
  background: #000;
}

.earnings-card h2 {
  margin: 0;
  height: 66px;
  display: grid;
  place-items: center;
  background: var(--label);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.amount-box {
  height: 78px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #f00;
  border: 1px solid #1aa450;
  font-size: 42px;
  font-weight: 900;
}

.tax-note {
  padding-top: 22px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.tax-note p {
  margin: 0;
}

.right-memo {
  width: var(--right-content-width);
  height: 120px;
  margin-top: 10px;
  margin-left: 0;
  margin-right: 5px;
}

.w-106 { width: 106px; }
.w-108 { width: 108px; }
.w-110 { width: 110px; }
.w-112 { width: 112px; }
.w-116 { width: 116px; }
.rw-80 { width: 80px; }
.rw-94 { width: 94px; }
.rw-108 { width: 108px; }
.rw-110 { width: 110px; }
.rw-118 { width: 118px; }
.rw-128 { width: 128px; }
.rw-150 { width: 150px; }
.rw-240 { width: 240px; }
.rw-280 { width: 280px; }
.rs-70 { width: 70px; }
.rs-80 { width: 80px; }
.rs-92 { width: 92px; }
.rs-96 { width: 96px; }
.rs-100 { width: 100px; }
.rs-110 { width: 110px; }
.rs-120 { width: 116px; }
.rm-80 { width: 80px; }
.rm-88 { width: 88px; }
.rm-100 { width: 100px; }
.rm-104 { width: 104px; }
.rm-112 { width: 112px; }
.rm-120 { width: 120px; }
.rm-132 { width: 132px; }
.rm-200 { width: 200px; }
.rm-240 { width: 240px; }

@media (prefers-reduced-motion: reduce) {
  .sheet-table th,
  .sheet-table td {
    transition: none;
  }
}
