@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v3/assets/fonts/swiss-721/Swiss721Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v3/assets/fonts/swiss-721/Swiss721Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v3/assets/fonts/swiss-721/Swiss721Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v3/assets/fonts/swiss-721/Swiss721Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v2/assets/fonts/Swiss721Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../../../../platform/v2/assets/fonts/Swiss721Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Mono";
  src: url("../../../../platform/v0/assets/fonts/ABCMonumentGroteskMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  --red: #ff2500;
  --grid-color: rgb(255, 0, 0);
  --grid-stroke: 1px;
  --grid-gutter: 0px;
  --grid-inset: 48px;
  --grid-columns: 18;
  --grid-step: calc((100vw - (var(--grid-inset) * 2)) / var(--grid-columns));
  --grid-view-step: var(--grid-step);
  --grid-view-scale: 1;
  --grid-label-offset-x: var(--grid-inset);
  --grid-label-offset-y: var(--grid-inset);
  --grid-label-size: 12px;
  --module-gap: 10px;
  --module-pad: 12px;
  --module-radius: 80px;
  --module-columns: 4;
  --module-rows: 4;
  --module-type: clamp(9px, calc(var(--grid-step) * 0.26), 18px);
  --module-header: calc(var(--module-type) * 1.25);
  --module-chrome-top: calc(var(--module-pad) + var(--module-header) + var(--module-pad));
}

html, body {
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  position: relative;
  background: #fff;
  color: #161616;
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

html.is-grid-hidden .page-grid,
html.is-grid-hidden .module-pill,
html.is-grid-hidden .stage-settings {
  display: none;
}

.page-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  color: var(--grid-color);
  font: var(--grid-label-size) / 1 "Swiss 721", "Helvetica Neue", Arial, sans-serif;
}

.page-grid__lines { position: absolute; inset: 0; }

.page-grid__line {
  position: absolute;
  display: block;
  background: var(--grid-color);
}

.page-grid__line--vertical {
  top: 0;
  bottom: 0;
  left: calc(var(--grid-label-offset-x) + (var(--line) * var(--grid-view-step)));
  width: var(--grid-stroke);
}

.page-grid__line--horizontal {
  right: 0;
  left: 0;
  top: calc(var(--grid-label-offset-y) - var(--grid-pan-y, 0px) + (var(--line) * var(--grid-view-step)));
  height: var(--grid-stroke);
}

.page-grid__columns {
  position: absolute;
  top: 30px;
  right: 0;
  left: 0;
  height: 12px;
}

.page-grid__columns span {
  position: absolute;
  left: calc(var(--grid-label-offset-x) + ((var(--column) - 1) * var(--grid-view-step)) + (var(--grid-view-step) / 2));
  transform: translateX(-50%);
  white-space: nowrap;
}

.page-grid__rows { position: absolute; inset: 0; }

.page-grid__rows span {
  position: absolute;
  top: calc(var(--grid-label-offset-y) - var(--grid-pan-y, 0px) + ((var(--row) - 1) * var(--grid-view-step)) + (var(--grid-view-step) / 2));
  width: 27px;
  line-height: 1;
  transform: translateY(-50%);
}

.page-grid__rows--left span {
  left: calc(var(--grid-label-offset-x) - (15px * var(--grid-view-scale)));
  width: auto;
  text-align: left;
  transform: translate(-50%, -50%);
}

.page-grid__rows--right span {
  left: calc(var(--grid-label-offset-x) + (var(--grid-columns) * var(--grid-view-step)) + (15px * var(--grid-view-scale)));
  transform: translate(-50%, -50%);
}

.page-extent {
  height: var(--page-extent, 100vh);
  pointer-events: none;
}

.app-module {
  position: fixed;
  z-index: 1;
  left: calc(var(--grid-label-offset-x) + (var(--module-col, 0) * var(--grid-view-step)) + var(--module-gap));
  top: calc(var(--grid-label-offset-y) - var(--grid-pan-y, 0px) + (var(--module-row, 0) * var(--grid-view-step)) + var(--module-gap));
  width: calc((var(--grid-view-step) * var(--module-columns)) - (var(--module-gap) * 2));
  height: calc((var(--grid-view-step) * var(--module-rows)) - (var(--module-gap) * 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: var(--module-pad);
  overflow: hidden;
  color: var(--red);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--red);
  border-radius: var(--module-radius);
  corner-shape: squircle;
  font-size: var(--module-type);
}

.module-size {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  margin: 0;
  min-width: 0;
  font-size: var(--module-type);
  font-weight: 400;
  line-height: 1.25;
  color: var(--red);
  white-space: nowrap;
}

.module-size__dims {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
}

.module-size__n {
  field-sizing: content;
  width: 2ch;
  min-width: 2ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: center;
  appearance: none;
  outline: none;
}

.module-face {
  position: absolute;
  z-index: 0;
  left: var(--module-pad);
  top: var(--module-chrome-top);
  right: var(--module-pad);
  bottom: var(--module-pad);
  overflow: hidden;
  border-radius:
    calc(var(--module-radius) - var(--module-chrome-top))
    calc(var(--module-radius) - var(--module-chrome-top))
    calc(var(--module-radius) - var(--module-pad))
    calc(var(--module-radius) - var(--module-pad));
  corner-shape: squircle;
  background: transparent;
  color: #161616;
}

.module-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sheet-gap, 0.46em);
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: transparent;
  color: #161616;
  font-size: var(--module-type);
  --type-root: 1em;
  --sheet-gap: 0.46em;
  --rule-size: 1px;
  --rule-color: color-mix(in srgb, currentColor 28%, transparent);
  --txn-pad-t: calc(var(--type-root) * 0.2964);
  --txn-pad-b: calc(var(--type-root) * 0.2184);
  --txn-arrow-w: calc(var(--type-root) * 0.7317);
  --txn-arrow-h: calc(var(--type-root) * 0.5063);
  --txn-out: #e10600;
  --txn-in: #178a3a;
  line-height: 1.15;
  border-radius: inherit;
  corner-shape: squircle;
}

.module-fill::-webkit-scrollbar { width: 0; height: 0; }

#pages-blob {
  --module-chrome-top: var(--module-pad);
  border: var(--module-stroke, 1px) solid var(--module-stroke-color, var(--red));
  background: var(--module-bg, rgba(255, 255, 255, 0.72));
}

#pages-blob .module-face {
  border: var(--face-stroke, 0px) solid var(--face-stroke-color, var(--red));
}

#pages-blob .module-fill {
  --rule-color: initial;
}

#pages-blob .pages-module {
  --pages-content-padding-y: 0px;
  --pages-content-padding-x: 0px;
  flex: 1 1 auto;
  height: 100%;
}

#card-blob {
  --module-pad: 5px;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

#card-blob .card-strip {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#card-blob .card-list {
  height: 100%;
  min-height: 0;
  align-items: center;
  container-type: size;
}

#card-blob .card-stats,
#card-blob .card.is-active + .card-stats {
  max-height: 100%;
  overflow: hidden;
  line-height: 1.05;
}

#blob {
  --module-chrome-top: var(--module-pad);
  --nested-radius: 64px;
  align-items: stretch;
  height: auto;
  min-height: calc((var(--grid-view-step) * var(--module-rows)) - (var(--module-gap) * 2));
  overflow: visible;
}

html:not(.is-grid-hidden) .app-module,
html:not(.is-grid-hidden) .module-pill {
  cursor: grab;
}

html:not(.is-grid-hidden) .app-module button,
html:not(.is-grid-hidden) .app-module input,
html:not(.is-grid-hidden) .module-pill .module-size__n {
  cursor: text;
}

html:not(.is-grid-hidden) .app-module button {
  cursor: pointer;
}

.app-module.is-dragging {
  z-index: 6;
}

body.is-module-dragging {
  cursor: grabbing;
  user-select: none;
}

#blob > .module-face,
#blob .module-fill,
#blob .sheet-sub,
#blob .card-strip,
#blob .txn-sheet,
#blob .month-blob {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#blob > .module-face {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
}

#blob .module-fill {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
}

#blob .txn-sheet {
  flex: none;
  height: auto;
  overflow: visible;
}

.txn-sheet.is-split {
  gap: var(--module-pad);
  padding: 0;
  background: transparent;
}

.month-blob {
  --head-fade: 13em;
  --head-blend: 4.6em;
  flex: none;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  color: #161616;
}

.month-blob__head {
  --sticky-gap: 12px;
  position: sticky;
  top: var(--sticky-gap);
  z-index: 3;
  pointer-events: none;
}

.month-blob__cap {
  padding: var(--sheet-pad-t, 0.95em) var(--sheet-pad-x, 1em) var(--head-fade);
  background: linear-gradient(
    to bottom,
    var(--sheet-fill, #f5c518) calc(100% - var(--head-fade)),
    transparent calc(100% - var(--head-fade) + var(--head-blend))
  );
  border-top-left-radius: var(--nested-radius);
  border-top-right-radius: var(--nested-radius);
  corner-shape: squircle;
}

.month-blob__body {
  margin-top: calc(var(--head-fade) * -1);
  padding: 0 var(--sheet-pad-x, 1em) var(--sheet-pad-b, 0.95em);
  background: var(--sheet-fill, #f5c518);
  border-bottom-left-radius: var(--nested-radius);
  border-bottom-right-radius: var(--nested-radius);
  corner-shape: squircle;
}

.month-blob .txn-line.is-head,
.month-blob .txn-group__label {
  position: static;
  background: transparent;
}

.module-pill {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin: 0;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -100%);
}

.module-pill .module-size__n,
.module-pill .module-size__x {
  color: inherit;
}

.fill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  min-width: 0;
}

.fill-name {
  min-width: 0;
  overflow: hidden;
  font-size: 1.48em;
  font-weight: 400;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  min-width: 0;
  color: var(--red);
  font-size: var(--module-type);
}

.card-strip.card-select .card-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35em 1.1em;
  width: auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.card-strip.card-select .card-list::-webkit-scrollbar {
  display: none;
}

.card-strip.card-select .card,
.card-strip.card-select .card.is-quiet,
.card-strip.card-select .card.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  align-content: stretch;
  gap: 0.1em;
  box-sizing: border-box;
  width: calc(100cqh * 85.6 / 53.98);
  max-width: none;
  height: 100cqh;
  flex: 0 0 auto;
  aspect-ratio: 85.6 / 53.98;
  padding: 0.38em 0.4em;
  font-size: 29cqh;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #fff);
  opacity: 0.32;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: opacity 180ms ease;
}

.card-strip.card-select .card.is-active {
  opacity: 1;
}

.card-strip.card-select .card__face,
.card-strip.card-select .card.is-active .card__face {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: inherit;
}

.card-strip.card-select .card__bank,
.card-strip.card-select .card.is-quiet .card__bank,
.card-strip.card-select .card.is-active .card__bank {
  overflow: hidden;
  font-size: 0.58em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-strip.card-select .card__mark svg,
.card-strip.card-select .card.is-active .card__mark svg {
  height: 0.72em;
}

.card-strip.card-select .card__num {
  font-size: 0.48em;
}

.card-strip.card-select .card.is-quiet .card__bank,
.card-strip.card-select .card.is-quiet .card__end {
  visibility: hidden;
}

.card-strip.card-select .card-stats {
  display: none;
}

.card-strip.card-select .card.is-active + .card-stats {
  display: flex;
  flex: none;
  width: auto;
  margin: 0;
  color: #161616;
  font-size: 12cqh;
  opacity: 1;
}

.card-strip .card-form {
  flex: 1 0 100%;
}

.card-strip .card-add {
  flex: none;
  font-size: 0.72em;
}

.add {
  appearance: none;
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  font-size: 0.78em;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  min-width: 0;
  margin: var(--sheet-pad-t, 0.95em) var(--sheet-pad-x, 1em) 0;
}

.sheet-bar__title {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  min-width: 0;
  font-size: var(--type-title-size, 1.05em);
  font-weight: var(--type-title-weight, 400);
  letter-spacing: var(--type-title-track, 0);
  line-height: var(--type-title-lead, 1.2);
  color: var(--type-title-color, #161616);
}

.group-toggle,
.search-toggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.group-toggle {
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.sheet-bar__find {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-left: auto;
}

#blob .sheet-bar {
  position: absolute;
  z-index: 6;
  top: var(--sheet-pad-t, 0.95em);
  right: var(--sheet-pad-x, 1em);
  width: auto;
  max-width: calc(100% - (var(--sheet-pad-x, 1em) * 2));
  margin: 0;
}

#blob .sheet-bar__find {
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
}

#blob .sheet-bar.is-search {
  left: var(--sheet-pad-x, 1em);
  max-width: none;
}

#blob .sheet-bar.is-search .sheet-bar__find {
  width: 100%;
  justify-content: flex-end;
}

#blob .sheet-bar.is-search #search {
  flex: 0 1 9em;
  width: 9em;
  min-width: 0;
}

#blob .txn-sheet.is-split > .month-blob:first-child .txn-group__label,
#blob .txn-sheet:not(.is-split) > .txn-line.is-head {
  padding-right: 1.8em;
}

.search-toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
}

.search-toggle svg {
  display: block;
  width: 1em;
  height: 1em;
}

.sheet-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45em;
  margin: 0.35em var(--sheet-pad-x, 1em) 0.15em;
}

.file-panel {
  margin-inline: var(--sheet-pad-x, 1em);
}

.files-toggle,
.file-add,
.file-name,
.file-x {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font-size: 0.78em;
  line-height: 1.2;
}

.files-toggle,
.file-add {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.files-toggle { flex: none; }

.file-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4em;
  padding-bottom: 0.35em;
}

.file-panel[hidden] { display: none; }

.file-row {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  max-width: 100%;
}

.file-name {
  max-width: 22em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.55;
}

.file-name.is-on {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.file-name.is-bad { opacity: 1; }

.file-x { opacity: 0.4; }

.file-name:hover,
.file-x:hover { opacity: 1; }

.file-empty {
  margin: 0;
  font-size: 0.78em;
  opacity: 0.55;
}

.blob__meta {
  margin: 0;
  font-size: 0.68em;
  line-height: 1.2;
  opacity: 0.55;
}

.blob__meta:empty { display: none; }

.sheet-bar:not(.is-search) #search { display: none; }

#search {
  width: 9em;
  flex: none;
  padding: 0.1em 0 0.2em;
  border: 0;
  border-bottom: var(--rule-size, 1px) solid var(--rule-color, color-mix(in srgb, currentColor 28%, transparent));
  border-radius: 0;
  background: transparent;
  font-size: 0.78em;
  line-height: 1.2;
  outline: none;
}

#search:focus {
  border-bottom-color: currentColor;
}

#search::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }

#search::-webkit-search-decoration,
#search::-webkit-search-cancel-button { appearance: none; }

.files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.9em;
}

.files[hidden] { display: none; }

.file {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  max-width: 100%;
  font-size: 0.78em;
}

.file__name,
.file__x {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
}

.file__name {
  max-width: 18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.55;
}

.file.is-on .file__name {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.file.is-bad .file__name { opacity: 1; }

.file__x {
  opacity: 0.4;
  font-size: 1em;
  line-height: 1;
}

.file__x:hover,
.file__name:hover { opacity: 1; }

.txn-sheet {
  container-type: inline-size;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: var(--sheet-pad-t, 0.95em) var(--sheet-pad-x, 1em) var(--sheet-pad-b, 0.95em);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: var(--nested-radius, 64px);
  corner-shape: squircle;
  background: var(--sheet-fill, #f5c518);
}

.txn-sheet::-webkit-scrollbar { width: 0; height: 0; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  font-size: 1.05em;
  line-height: 1.3;
  text-align: center;
}

.empty button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.miss {
  margin: 2em 0;
  font-size: 0.95em;
  opacity: 0.6;
}

.txn-line {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) auto;
  gap: 0.55em;
  align-items: baseline;
  min-width: 0;
  padding: var(--txn-pad-t, 0.38em) 0 var(--txn-pad-b, 0.28em);
  border-top: var(--rule-size, 1px) solid var(--rule-color, color-mix(in srgb, currentColor 28%, transparent));
  font-size: var(--type-row-size, 0.78em);
  font-weight: var(--type-row-weight, 400);
  letter-spacing: var(--type-row-track, 0);
  line-height: var(--type-row-lead, 1.2);
  color: var(--type-row-color, #161616);
}

.txn-line.is-head {
  position: static;
  padding-top: 0.15em;
  padding-bottom: 0.2em;
  border-top: 0;
  background: transparent;
  font-size: var(--type-header-size, 0.68em);
  font-weight: var(--type-header-weight, 400);
  letter-spacing: var(--type-header-track, 0);
  line-height: var(--type-header-lead, 1.2);
  color: var(--type-header-color, #161616);
}

.txn-line [data-type="date"],
.txn-line [data-type="name"],
.txn-line [data-type="value"] {
  font-size: var(--type-date-size, 1em);
  font-weight: var(--type-date-weight, inherit);
  letter-spacing: var(--type-date-track, inherit);
  line-height: var(--type-date-lead, inherit);
  color: var(--type-date-color, inherit);
}

.txn-line [data-type="name"] {
  font-size: var(--type-name-size, 1em);
  font-weight: var(--type-name-weight, inherit);
  letter-spacing: var(--type-name-track, inherit);
  line-height: var(--type-name-lead, inherit);
  color: var(--type-name-color, inherit);
}

.txn-line [data-type="value"] {
  font-size: var(--type-value-size, 1em);
  font-weight: var(--type-value-weight, inherit);
  letter-spacing: var(--type-value-track, inherit);
  line-height: var(--type-value-lead, inherit);
  color: var(--type-value-color, inherit);
}

.txn-line > span:nth-child(2),
.txn-x {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txn-x { display: none; }

@container (min-width: 460px) {
  .txn-line {
    grid-template-columns: 4.4em minmax(0, 1.6fr) auto 3em 3.2em 4.6em minmax(4.8em, 0.8fr);
    gap: 0.7em;
    font-size: var(--type-row-size, 0.92em);
  }

  .txn-line.is-head { font-size: var(--type-header-size, 0.78em); }

  .txn-x { display: block; }
}

.txn-group__label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 0;
  padding: 0.45em 0 0.12em;
  background: linear-gradient(
    to bottom,
    var(--sheet-fill, #f5c518) calc(100% - 0.85em),
    transparent 100%
  );
  font-size: var(--type-group-size, 0.68em);
  font-weight: var(--type-group-weight, 400);
  letter-spacing: var(--type-group-track, 0);
  line-height: var(--type-group-lead, 1.2);
  color: var(--type-group-color, #161616);
}

.txn-group__label span:last-child {
  font-variant-numeric: tabular-nums;
}

.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: inherit;
}

.money.is-out::before,
.money.is-in::before {
  content: "";
  display: inline-block;
  width: var(--txn-arrow-w, calc(0.65em * 13 / 9));
  height: var(--txn-arrow-h, 0.65em);
  margin-right: 0.28em;
  vertical-align: middle;
  background: var(--txn-out, #e10600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M4 0h3v1H4zM3 1h3v1H3zM2 2h3v1H2zM0 3h13v2H0zM1 5h12v1H1zM2 6h3v1H2zM3 7h3v1H3zM4 8h3v1H4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M4 0h3v1H4zM3 1h3v1H3zM2 2h3v1H2zM0 3h13v2H0zM1 5h12v1H1zM2 6h3v1H2zM3 7h3v1H3zM4 8h3v1H4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.money.is-in::before {
  background: var(--txn-in, #178a3a);
  transform: scaleX(-1);
}

.drop-hint {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  corner-shape: squircle;
  background: color-mix(in srgb, #f5c518 90%, white);
  font-size: 1.05em;
  pointer-events: none;
}

body.is-drag .drop-hint { display: flex; }

.stage-settings {
  position: fixed;
  z-index: 40;
  top: 28px;
  right: 20px;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 248px;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
  overflow: auto;
  color: #1f1f1f;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  scrollbar-width: none;
}

.stage-settings::-webkit-scrollbar { width: 0; height: 0; }

.stage-settings__title {
  margin: 0 0 6px;
  font: inherit;
  font-weight: 400;
  text-transform: lowercase;
}

.stage-settings__list { display: flex; flex-direction: column; }

.stage-settings__section {
  margin: 8px 0 3px;
  color: #6a6a6a;
  text-transform: lowercase;
}

.stage-settings__section:first-child { margin-top: 0; }

.stage-settings__hint {
  margin: 0 0 3px;
  color: #8a8a8a;
  font-size: 10px;
}

.stage-settings__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 0 0 1px;
  min-width: 0;
}

.stage-settings__row--type { align-items: start; margin-bottom: 4px; }

.stage-settings__label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-transform: lowercase;
}

.stage-settings__label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-settings__swatch {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--swatch, currentColor);
  cursor: pointer;
}

.stage-settings__swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.stage-settings__controls {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 6px;
  justify-items: end;
}

.stage-settings__field {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.stage-settings__cap {
  width: 0.9em;
  color: #8a8a8a;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.stage-settings__step,
.stage-settings__choice,
.stage-settings__file,
.stage-settings__x {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}

.stage-settings__step:hover,
.stage-settings__choice:hover,
.stage-settings__file:hover,
.stage-settings__x:hover,
.stage-settings__choice[aria-pressed="true"] {
  text-decoration: underline;
  outline: none;
}

.stage-settings__choice { color: #5d5d5d; }

.stage-settings__choice[aria-pressed="true"],
.stage-settings__file.is-on { color: #1f1f1f; }

.stage-settings__input {
  width: 34px;
  margin: 0;
  padding: 1px 3px;
  border: 1px solid #b3b3b3;
  border-radius: 0;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  line-height: 1.25;
  text-align: right;
  appearance: textfield;
}

.stage-settings__input--weight,
.stage-settings__input--track,
.stage-settings__input--lead { width: 32px; }

.stage-settings__input:focus { outline: none; border-color: #1f1f1f; }

.stage-settings__input::-webkit-outer-spin-button,
.stage-settings__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stage-settings__files { display: flex; flex-direction: column; gap: 2px; }

.stage-settings__file-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.stage-settings__file {
  min-width: 0;
  overflow: hidden;
  color: #5d5d5d;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-settings__file.is-bad { color: #1f1f1f; }

.stage-settings__x { flex: none; color: #8a8a8a; }

.module-fill.is-hot .txn-line,
.module-fill.is-hot .txn-group__label { outline: 1px solid #ff2500; outline-offset: 1px; }
