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

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

a,
button,
div,
h1,
h2,
h3,
input[type=text],
li,
ol,
p,
span,
strong,
ul {
  color: var(--color-font);
}

a,
body,
br,
button,
div,
h1,
h2,
h3,
html,
img,
input,
li,
ol,
p,
span,
strong,
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;
  text-decoration: none;
  vertical-align: baseline;
}

p a {
  font-size: 100%;
  font-weight: bold;
}

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

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

ol,
ul {
  list-style: none;
}

input[type=text] {
  background-color: transparent;
}

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

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

:root {
  --color-font: #f4f4f4;
  --color-muted: #646464;
  --color-icon: #adadad;
  --color-input-background: #3c3c3c;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-group-border: #393939;
  --color-body-background: #3a3a3a;
  --color-hud-background: rgba(32, 32, 32, 0.72);
  --color-hint: #9a9a9a;
  --color-viewer: #58a6ff;
  --color-interest: #d2a134;
  --color-inflow: #3fb950;
  --color-outflow: #f85149;
  --color-bar-track: #2c2c2c;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  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;
  text-decoration: none;
}

.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;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.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-icon);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-CloseIcon:hover 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-Main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  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;
}

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

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
}

.ActionItem {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ActionItem[data-active] {
  color: var(--color-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;
  height: 40px;
  column-gap: 8px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  white-space: nowrap;
}

.NumberInput {
  justify-self: start;
  display: flex;
  align-items: center;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-icon);
  cursor: pointer;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  width: calc(4ch + 16px);
  height: 26px;
  padding: 0 4px;
  background: var(--color-input-background);
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.NumberInput-Unit {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  user-select: none;
}

.PanelGroup {
  display: flex;
  flex-direction: column;
}
.PanelGroup + .PanelGroup {
  border-top: 1px solid var(--color-panel-group-border);
}

.AudienceSimulator {
  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;
}
.AudienceSimulator-Stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ViewerStage {
  display: block;
  width: 100%;
  height: 100%;
}

.Hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--color-hud-background);
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}
.Hud-Count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.Hud-Number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--color-font);
}
.Hud-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.Hud-Flow {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}
.Hud-Flow-Key {
  color: var(--color-muted);
}
.Hud-Flow-Key + .Hud-Flow-Key {
  margin-left: 8px;
}
.Hud-Flow-In {
  color: var(--color-inflow);
}
.Hud-Flow-Out {
  color: var(--color-outflow);
}

.InterestMeter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  width: 132px;
  padding: 10px 14px;
  background: var(--color-hud-background);
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}
.InterestMeter-Label {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
.InterestMeter-Bar {
  width: 100%;
  height: 5px;
  background: var(--color-bar-track);
  border-radius: 1px;
  overflow: hidden;
}
.InterestMeter-Fill {
  width: 50%;
  height: 100%;
  background: var(--color-interest);
}

.Hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 10;
  transform: translateX(-50%);
  padding: 8px 14px;
  background: var(--color-hud-background);
  border-radius: 2px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-hint);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.RunButton {
  color: var(--color-font);
}

.Panel[data-panel=chart] .PanelGroup {
  flex: 1 1 auto;
  min-height: 0;
}

.ViewerChart {
  display: block;
  flex: 1 1 auto;
  width: calc(100% - 36px);
  height: 160px;
  min-width: 260px;
  min-height: 120px;
  margin: 12px 18px 0;
}

.ChartLegend {
  display: flex;
  gap: 16px;
  padding: 10px 18px 14px;
}
.ChartLegend-Item {
  position: relative;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}
.ChartLegend-Item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
}
.ChartLegend-Item[data-tone=viewer]::before {
  background-color: var(--color-viewer);
}
.ChartLegend-Item[data-tone=interest]::before {
  background-color: var(--color-interest);
}

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