*,
: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: #3a3a3a;
  color: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

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

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

input[type=file],
input[type=checkbox] {
  display: none;
}

textarea {
  width: 100%;
  resize: vertical;
  overflow-anchor: none;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

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

::-webkit-calendar-picker-indicator {
  display: none;
}

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

.PopulationPyramid {
  --color-font: #ededed;
  --color-group-header-font: #9a9a9a;
  --color-input-border: #a5a5a5;
  --color-icon: #dadada;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-border: #303030;
  --color-panel-group-border: #2a2a2a;
  --color-body-background: #3a3a3a;
  --color-selected: #575757;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.PopulationPyramid-Stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 40px 40px;
  overflow: auto;
}
.PopulationPyramid-Paper {
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.PopulationPyramid-Paper[data-checker] {
  background-image: repeating-conic-gradient(#e2e8f0 0% 25%, #ffffff 0% 50%);
  background-size: 16px 16px;
}
.PopulationPyramid-Sheet {
  transform-origin: top left;
}
.PopulationPyramid-Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.PopulationPyramid-Logo a {
  color: var(--color-font);
  font-family: "Rubik Iso", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 22px;
  line-height: 2;
  text-decoration: none;
}

.Pyramid {
  display: block;
}

.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-group-header-font);
  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;
}

.SinglePanel {
  position: static;
  width: max-content;
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.SinglePanel[data-panel]:not([data-open]) {
  display: none;
}
.SinglePanel[data-float] {
  position: fixed;
}
.SinglePanel-Header {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.SinglePanel-Header:active {
  cursor: grabbing;
}
.SinglePanel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font);
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  width: 9px;
  visibility: hidden;
}
.SinglePanel-CloseIcon:hover svg {
  visibility: visible;
}
.SinglePanel-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;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-Main {
  max-height: calc(100vh - 88px);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

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

.PanelGroup + .PanelGroup {
  border-top: 1px solid var(--color-panel-group-border);
}
.PanelGroup-Header {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 8px 12px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}
.PanelGroup-Hint {
  padding: 0 12px 8px;
  width: 260px;
  font-size: 11px;
  line-height: 17px;
  color: var(--color-group-header-font);
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 36px;
  column-gap: 8px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  padding: 0 8px 0 0;
}

.NumberInput,
.StepperInput,
.ToggleInput,
.ColorSwatch,
.TextField {
  justify-self: start;
}

.NumberInput {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--color-icon);
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  min-width: calc(3ch + 16px);
  max-width: calc(6ch + 16px);
  height: 24px;
  padding: 0 4px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.NumberInput-Input:focus {
  outline: none;
}
.NumberInput-Unit {
  min-width: 1.5ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}

.StepperInput {
  display: flex;
  align-items: center;
  gap: 4px;
}
.StepperInput-Arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--color-icon);
  cursor: pointer;
}
.StepperInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.StepperInput-Track {
  display: grid;
  justify-items: center;
}
.StepperInput-Option {
  grid-area: 1/1;
  visibility: hidden;
  white-space: nowrap;
  color: var(--color-font);
  font-size: 12px;
  line-height: 1.5;
  user-select: none;
}
.StepperInput-Option[data-selected] {
  visibility: visible;
}

.ToggleInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 6px 0;
}
.ToggleInput-Option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}
.ToggleInput [data-selected]::before, .ToggleInput [data-selected]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  pointer-events: none;
}
.ToggleInput [data-selected]::before {
  left: 0;
  border-left: 1px solid var(--color-input-border);
  border-top: 1px solid var(--color-input-border);
  border-bottom: 1px solid var(--color-input-border);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
.ToggleInput [data-selected]::after {
  right: 0;
  border-right: 1px solid var(--color-input-border);
  border-top: 1px solid var(--color-input-border);
  border-bottom: 1px solid var(--color-input-border);
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.ColorSwatch {
  display: inline-block;
  overflow: hidden;
  width: 34px;
  height: 22px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  cursor: pointer;
}
.ColorSwatch input {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.TextField {
  width: 100%;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.TextField:focus {
  outline: none;
}

.Button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  background: var(--color-selected);
  color: var(--color-font);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.Button[data-ghost] {
  background: transparent;
}

.ButtonRow {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
}
.ButtonRow .Button {
  flex: 1;
}

.DataEditor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
}
.DataEditor-Input {
  width: 260px;
  min-height: 200px;
  padding: 6px 8px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-font);
  resize: vertical;
}
.DataEditor-Input:focus {
  outline: none;
}
.DataEditor-Hint {
  font-size: 11px;
  line-height: 17px;
  color: var(--color-group-header-font);
}
.DataEditor .ButtonRow {
  padding: 2px 0;
}

.PaletteRow {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  width: 284px;
}
.PaletteRow-Swatch {
  flex: 1;
  height: 22px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  cursor: pointer;
}
.PaletteRow-Swatch[data-selected] {
  outline: 2px solid var(--color-font);
  outline-offset: 1px;
}

.SummaryGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.SummaryGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 24px;
  column-gap: 16px;
}
.SummaryGrid-Row-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}
.SummaryGrid-Row-Value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 260px;
  padding: 16px 18px;
}
.TextBlock h1 {
  color: var(--color-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}
.TextBlock p {
  color: var(--color-group-header-font);
  font-size: 13px;
  line-height: 21px;
}