@property --grid-view-step {
  syntax: "<length>";
  inherits: true;
  initial-value: 10px;
}

@property --grid-view-offset-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --grid-view-offset-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --grid-label-offset-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --grid-label-offset-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --grid-pan-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --grid-view-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --grid-columns {
  syntax: "<number>";
  inherits: true;
  initial-value: 9;
}

@property --rail-visible {
  syntax: "<number>";
  inherits: true;
  initial-value: 3;
}

@property --rail-col {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --nested-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --nested-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --nested-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --module-col {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --module-row {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --module-columns {
  syntax: "<number>";
  inherits: false;
  initial-value: 6;
}

@property --tx-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --module-rows {
  syntax: "<number>";
  inherits: false;
  initial-value: 6;
}

@property --type-root {
  syntax: "<length>";
  inherits: true;
  initial-value: 16px;
}

@property --zoom-duration {
  syntax: "<time>";
  inherits: true;
  initial-value: 820ms;
}

@property --hide-duration {
  syntax: "<time>";
  inherits: true;
  initial-value: 220ms;
}

@property --cascade-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --cascade-deep {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --reveal-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --list-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --deck-i {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --deck-scroll {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --deck-base {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 16%;
}

@property --nav-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --red: #ff2500;
  --red-soft: color-mix(in srgb, var(--red) 16%, #fff);
  --red-soft-ink: color-mix(in srgb, var(--red) 72%, #5a1008);
  --yellow: #fff056;
  --grey: #ececeb;
  --ink: #000;
  --shell: #fff;
  --shell-deep: #ececeb;
  --line: rgba(0, 0, 0, 0.14);
  --page-bg: #fff;
  --module-bg: rgba(255, 255, 255, 0.72);
  --nested-deep: color-mix(in srgb, var(--red) 34%, #fff);
  --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-offset-x: var(--grid-inset);
  --grid-view-offset-y: var(--grid-inset);
  --grid-label-offset-x: var(--grid-inset);
  --grid-label-offset-y: var(--grid-inset);
  --grid-label-size: 12px;
  --grid-view-scale: 1;
  --module-top: calc(var(--grid-inset) + (var(--grid-step) * 2));
  --module-gap: 10px;
  --module-pad: 12px;
  --module-stroke: 1px;
  --module-stroke-color: var(--red);
  --face-stroke: 0px;
  --face-stroke-color: var(--red);
  --module-radius: 80px;
  --nested-radius: 64px;
  --module-columns: 4;
  --module-rows: 4;
  --page-w: 210mm;
  --page-h: 297mm;
}

html.is-dark {
  --red: #3b82f6;
  --red-soft: color-mix(in srgb, var(--red) 26%, #10141c);
  --red-soft-ink: color-mix(in srgb, var(--red) 72%, #eef4ff);
  --ink: #f2f0ee;
  --shell: #0e0e0e;
  --shell-deep: #1a1715;
  --line: rgba(255, 255, 255, 0.14);
  --page-bg: #0e0e0e;
  --module-bg: rgba(22, 26, 34, 0.78);
  --nested-deep: color-mix(in srgb, var(--red) 38%, #141820);
  --grid-color: #3b82f6;
}

@font-face {
  font-family: "Swiss 721";
  src: url("../fonts/swiss-721/Swiss721Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

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

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

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

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

@font-face {
  font-family: "ABC ROM";
  src: url("../fonts/abc-rom/ABCROM-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2190-2193, U+2196-2199;
}

@font-face {
  font-family: "ABC ROM";
  src: url("../fonts/abc-rom/ABCROM-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2190-2193, U+2196-2199;
}

@font-face {
  font-family: "ABC ROM";
  src: url("../fonts/abc-rom/ABCROM-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2190-2193, U+2196-2199;
}

@font-face {
  font-family: "ABC ROM";
  src: url("../fonts/abc-rom/ABCROM-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2190-2193, U+2196-2199;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  transition: background-color 220ms ease, color 220ms ease;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}

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

html:has(body.is-idle-zoom) {
  overflow: hidden;
}

body {
  min-height: 100vh;
  overflow: visible;
  --grid-view-scale: 1;
  --grid-view-step: var(--grid-step);
  --grid-pan-y: 0px;
  --grid-label-offset-x: var(--grid-inset);
  --grid-label-offset-y: calc(var(--grid-inset) - var(--grid-pan-y));
  --zoom-duration: 820ms;
  --hide-duration: 220ms;
  --idle-hide-duration: 280ms;
  --idle-hide-delay: 0ms;
  transition:
    --grid-view-scale var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --grid-view-step var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --grid-columns var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --grid-label-offset-x var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --grid-label-offset-y var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

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

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

html.is-grid-labels-hidden .page-grid__columns,
html.is-grid-labels-hidden .page-grid__rows {
  visibility: hidden;
}

html.is-grid-hidden .page-grid {
  visibility: hidden;
}

html.is-grid-hidden .module-size {
  cursor: pointer;
  touch-action: auto;
}

html.is-grid-hidden .module-size__dims {
  display: none;
}

body.is-idle-zoom:not(.is-zoom-out) .page-grid__columns,
body.is-idle-zoom:not(.is-zoom-out) .page-grid__rows,
body.is-board.is-idle-zoom .page-grid__columns,
body.is-board.is-idle-zoom .page-grid__rows {
  opacity: 0;
}

body.is-zoom-out .page-grid__rows--right {
  opacity: 0;
}

body.is-board .page-grid__line[style*="--line:-"] {
  visibility: hidden;
}

body.is-stage .page-grid__columns,
body.is-board .page-grid__columns {
  top: 30px;
}

body.is-stage .page-grid__rows--left span,
body.is-board .page-grid__rows--left span {
  left: 30px;
  width: auto;
  text-align: left;
  transform: translateY(-50%);
}

.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(--line) * var(--grid-view-step)));
  height: var(--grid-stroke);
}

html.has-grid-gutter .page-grid__line--vertical {
  box-shadow: calc(var(--grid-view-step) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - var(--grid-stroke)) 0 0 var(--grid-color);
}

html.has-grid-gutter .page-grid__line--horizontal {
  box-shadow: 0 calc(var(--grid-view-step) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - var(--grid-stroke)) 0 var(--grid-color);
}

.page-grid__columns {
  position: absolute;
  top: calc(var(--grid-label-offset-y) - (14px * var(--grid-view-scale)) - 6px);
  right: 0;
  left: 0;
  height: 12px;
  opacity: 1;
  overflow: visible;
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.page-grid__columns span {
  position: absolute;
  left: calc(var(--grid-label-offset-x) + ((var(--column) - 1) * var(--grid-view-step)) + ((var(--grid-view-step) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px))) / 2));
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.page-grid__rows {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  overflow: visible;
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.page-grid__rows--left {
  text-align: center;
}

.page-grid__rows--right {
  text-align: center;
}

.page-grid__rows span {
  position: absolute;
  top: calc(var(--grid-label-offset-y) + ((var(--row) - 1) * var(--grid-view-step)) + ((var(--grid-view-step) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px))) / 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)));
  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%);
}

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

.app-module.is-dragging {
  z-index: 4;
  transition: none;
}

.app-module.is-dragging.is-swapping {
  transition:
    --module-col 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-row 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-dragging .module-size,
html:not(.is-grid-hidden) body.is-board.is-module-dragging .app-module {
  cursor: grabbing;
}

html:not(.is-grid-hidden) body.is-board:not(.is-idle-zoom) .app-module {
  cursor: grab;
  touch-action: none;
}

html:not(.is-grid-hidden) body.is-board:not(.is-idle-zoom) .app-module .module-size__n,
html:not(.is-grid-hidden) body.is-board:not(.is-idle-zoom) .app-module .module-remove {
  touch-action: auto;
}

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

.placeholder-module {
  position: fixed;
  z-index: 0;
  left: calc(var(--grid-label-offset-x) + (var(--module-col) * var(--grid-view-step)) + var(--module-gap));
  top: calc(var(--grid-label-offset-y) + (var(--module-row) * var(--grid-view-step)) + var(--module-gap));
  width: calc((var(--grid-view-step) * var(--module-columns)) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - (var(--module-gap) * 2));
  height: calc((var(--grid-view-step) * var(--module-rows)) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - (var(--module-gap) * 2));
  box-sizing: border-box;
  background: var(--grey);
  border-radius: var(--module-radius);
  corner-shape: squircle;
  pointer-events: none;
}

html.is-dark .placeholder-module {
  background: var(--shell-deep);
}

body.is-idle-zoom .placeholder-module {
  opacity: 0;
  transition: opacity var(--idle-hide-duration) var(--idle-hide-delay) cubic-bezier(0.22, 1, 0.36, 1);
}

.app-module {
  position: fixed;
  z-index: 1;
  left: calc(var(--grid-label-offset-x) + (var(--module-col) * var(--grid-view-step)) + var(--module-gap));
  top: calc(var(--grid-label-offset-y) + (var(--module-row) * var(--grid-view-step)) + var(--module-gap));
  width: calc((var(--grid-view-step) * var(--module-columns)) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - (var(--module-gap) * 2));
  height: calc((var(--grid-view-step) * var(--module-rows)) - min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) - (var(--module-gap) * 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: var(--module-pad);
  gap: var(--module-pad);
  overflow: hidden;
  color: var(--red);
  background: var(--module-bg);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  --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(--list-header, var(--module-header)) + var(--module-pad));
  border: var(--module-stroke) solid var(--module-stroke-color);
  border-radius: var(--module-radius);
  corner-shape: squircle;
  box-shadow: none;
  filter: none;
  cursor: pointer;
}

body.is-modules-ready .app-module:not(.is-dragging) {
  transition:
    --module-col 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-row 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-columns 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-rows 320ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    background-color var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --tx-open var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

body.is-idle-zoom .app-module:not(.is-zoomed) {
  opacity: 0;
  pointer-events: none;
  transition:
    --module-col 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-row 320ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity var(--idle-hide-duration) var(--idle-hide-delay) cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--idle-hide-duration) var(--idle-hide-delay) cubic-bezier(0.22, 1, 0.36, 1);
}

.app-module.is-nested-zoomed {
  background-color: transparent;
  border-color: transparent;
  transition:
    --module-col 320ms cubic-bezier(0.32, 0.72, 0, 1),
    --module-row 320ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    background-color var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1),
    border-color var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.app-module.is-nested-zoomed .module-size {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.nested-grid {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
  overflow: visible;
}

.nested-world {
  position: relative;
  width: 100%;
  height: 100%;
  --nested-scale: 1;
  --nested-x: 0px;
  --nested-y: 0px;
  --nested-cell: calc(50% - (var(--module-pad) / 2));
  --nested-shift: calc(50% + (var(--module-pad) / 2));
  transition:
    --nested-scale 820ms cubic-bezier(0.32, 0.72, 0, 1),
    --nested-x 820ms cubic-bezier(0.32, 0.72, 0, 1),
    --nested-y 820ms cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-nested-expanded .nested-world {
  --nested-scale: var(--nested-zoom-scale);
  --nested-x: var(--nested-zoom-x);
  --nested-y: var(--nested-zoom-y);
}

.nested-module {
  position: absolute;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--nested-cell) * var(--nested-scale));
  height: calc(var(--nested-cell) * var(--nested-scale));
  left: calc(var(--slot-left) * var(--nested-scale) + var(--nested-x));
  top: calc(var(--slot-top) * var(--nested-scale) + var(--nested-y));
  padding: 0;
  border: 0;
  background: var(--red-soft);
  border-radius: var(--nested-radius);
  corner-shape: squircle;
  color: var(--red-soft-ink);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1.25;
  cursor: pointer;
  appearance: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.nested-module.is-target {
  z-index: 1;
}

.nested-module:focus,
.nested-module:focus-visible,
.nested-module:active {
  outline: none;
  box-shadow: none;
}

.nested-module[data-nested="0"] {
  --slot-left: 0px;
  --slot-top: 0px;
}

.nested-module[data-nested="1"] {
  --slot-left: var(--nested-shift);
  --slot-top: 0px;
}

.nested-module[data-nested="2"] {
  --slot-left: 0px;
  --slot-top: var(--nested-shift);
}

.nested-module[data-nested="3"] {
  --slot-left: var(--nested-shift);
  --slot-top: var(--nested-shift);
}

.app-module.is-merged-grid.is-arranging .nested-world > .nested-module,
.app-module.is-merged-grid .merge-slot {
  transition:
    left 420ms cubic-bezier(0.32, 0.72, 0, 1),
    top 420ms cubic-bezier(0.32, 0.72, 0, 1),
    width 420ms cubic-bezier(0.32, 0.72, 0, 1),
    height 420ms cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-merged-grid .nested-module.is-cover {
  z-index: 2;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.app-module.is-merged-grid .nested-module.is-pulling {
  z-index: 5;
  transition: none;
}

.merge-slot {
  position: absolute;
  z-index: 0;
  width: var(--nested-cell);
  height: var(--nested-cell);
  left: calc(var(--slot-left) * var(--nested-scale) + var(--nested-x));
  top: calc(var(--slot-top) * var(--nested-scale) + var(--nested-y));
  border-radius: var(--nested-radius);
  corner-shape: squircle;
  background: color-mix(in srgb, var(--red) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--red);
  pointer-events: none;
}

.merge-slot[data-nested="0"] {
  --slot-left: 0px;
  --slot-top: 0px;
}

.merge-slot[data-nested="1"] {
  --slot-left: var(--nested-shift);
  --slot-top: 0px;
}

.merge-slot[data-nested="2"] {
  --slot-left: 0px;
  --slot-top: var(--nested-shift);
}

.merge-slot[data-nested="3"] {
  --slot-left: var(--nested-shift);
  --slot-top: var(--nested-shift);
}

.app-module:has(.nested-list) {
  gap: 0;
}

.app-module:has(.nested-list) .module-size {
  z-index: 3;
  background: transparent;
}

.nested-list {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: var(--module-pad);
  --list-top: var(--module-chrome-top);
  --list-move: 820ms;
  padding: var(--module-pad);
  padding-top: var(--list-top);
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--list-top);
  scroll-padding-bottom: var(--module-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nested-list.is-expanded,
.nested-list.is-list-moving {
  scroll-snap-type: none;
}

.nested-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nested-list .nested-module {
  position: relative;
  left: auto;
  top: auto;
  z-index: 0;
  box-sizing: border-box;
  flex: 0 0 calc((100% - var(--module-pad)) / 2);
  width: 100%;
  height: calc((100% - var(--module-pad)) / 2);
  min-height: calc((100% - var(--module-pad)) / 2);
  overflow: hidden;
  overflow-anchor: none;
  scroll-snap-align: center;
  margin-top: 0;
  margin-left: 0;
  transition:
    flex-basis var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    width var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    height var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    min-width var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    min-height var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    margin-top var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    margin-left var(--list-move) cubic-bezier(0.32, 0.72, 0, 1);
}

.nested-list .nested-module:first-child {
  scroll-snap-align: start;
}

.nested-list .nested-module:last-child {
  scroll-snap-align: end;
}

.nested-list.is-expanded > .nested-module:first-child {
  margin-top: var(--expand-shift, 0px);
}

.nested-list.is-expanded .nested-module.is-target {
  flex-basis: 100%;
  height: 100%;
  min-height: 100%;
}

.nested-list.is-axis-x {
  flex-direction: row;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-top: 0;
  scroll-padding-bottom: 0;
  scroll-padding-left: var(--module-pad);
  scroll-padding-right: var(--module-pad);
}

.nested-list.is-axis-x.is-expanded,
.nested-list.is-axis-x.is-list-moving {
  scroll-snap-type: none;
}

.nested-list.is-axis-x .nested-module {
  width: calc((100% - var(--module-pad)) / 2);
  height: 100%;
  min-width: calc((100% - var(--module-pad)) / 2);
  min-height: 0;
}

.nested-list.is-axis-x.is-expanded > .nested-module:first-child {
  margin-top: 0;
  margin-left: var(--expand-shift, 0px);
}

.nested-list.is-axis-x.is-expanded .nested-module.is-target {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 0;
}

.app-module.has-grid-v2 {
  gap: var(--module-pad);
}

.has-grid-v2 .grid-v2-door {
  cursor: pointer;
}

.has-grid-v2 .grid-v2-face {
  display: none;
}

.has-grid-v2.is-morphing .grid-v2-door .fill-head,
.has-grid-v2.is-returning .grid-v2-door .fill-head {
  opacity: 0;
}

.has-grid-v2.is-morphing .grid-v2-door .txn-sheet,
.has-grid-v2.is-returning .grid-v2-door .txn-sheet {
  display: none;
}

.has-grid-v2.is-morphing .grid-v2-door .fill-head {
  transition: opacity 180ms ease;
}

.has-grid-v2.is-morphing .grid-v2-door,
.has-grid-v2.is-returning .grid-v2-door,
.has-grid-v2.is-morphing .grid-v2-row,
.has-grid-v2.is-returning .grid-v2-row {
  contain: layout paint;
}

.has-grid-v2.is-morphing .grid-v2-door .grid-v2-face,
.has-grid-v2.is-returning .grid-v2-door .grid-v2-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.46em;
  padding: 0.95em 1em 0.9em;
}

.has-grid-v2 .nested-grid {
  transition: opacity 820ms cubic-bezier(0.32, 0.72, 0, 1);
}

.has-grid-v2.is-grid-rows .nested-grid {
  opacity: 0;
  pointer-events: none;
}

.has-grid-v2.is-grid-rows.is-morphing .nested-grid,
.has-grid-v2.is-grid-rows.is-returning .nested-grid {
  opacity: 1;
  pointer-events: none;
  transition: none;
}

.has-grid-v2 .grid-v2-rows {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.has-grid-v2.is-grid-rows .grid-v2-rows {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-grid-v2.is-grid-rows.is-morphing .grid-v2-rows,
.has-grid-v2.is-grid-rows.is-returning .grid-v2-rows {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.is-content .has-grid-v2 .grid-v2-row .fill-more {
  display: none;
}

html.is-content .has-grid-v2 .grid-v2-rows.is-expanded > .grid-v2-row.is-target .fill-more {
  display: contents;
}

.has-grid-v2 .grid-v2-row .fill-name,
.has-grid-v2 .grid-v2-face .fill-name {
  margin-bottom: 0;
}

.has-grid-v2 .grid-v2-row .txn-month-head,
.has-grid-v2 .grid-v2-face .txn-month-head,
.has-grid-v2 .grid-v2-row .txn-year,
.has-grid-v2 .grid-v2-face .txn-year {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 0.98em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-grid-v2 .grid-v2-row .txn-month,
.has-grid-v2 .grid-v2-face .txn-month {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.has-grid-v2 .grid-v2-row .txn-month-line,
.has-grid-v2 .grid-v2-face .txn-month-line {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 3.5em minmax(0, 1fr) auto;
  gap: 0.55em;
  align-items: baseline;
  min-width: 0;
  padding: 0.38em 0 0.28em;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-size: 0.78em;
  line-height: 1.2;
}

.has-grid-v2 .grid-v2-row .txn-month-line .txn-title,
.has-grid-v2 .grid-v2-face .txn-month-line .txn-title,
.has-grid-v2 .grid-v2-row .txn-month-line .txn-date,
.has-grid-v2 .grid-v2-face .txn-month-line .txn-date,
.has-grid-v2 .grid-v2-row .txn-month-line .money,
.has-grid-v2 .grid-v2-face .txn-month-line .money {
  margin-top: 0;
  font-size: 1em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
}

html.is-content .has-grid-v2 .grid-v2-rows.is-expanded > .grid-v2-row.is-target .txn-month-head,
html.is-content .has-grid-v2 .grid-v2-rows.is-expanded > .grid-v2-row.is-target .txn-year {
  font-size: 0.98em;
}

html.is-content .has-grid-v2 .grid-v2-rows.is-expanded > .grid-v2-row.is-target .txn-month-line .txn-title {
  margin-top: 0;
  font-size: 1em;
  white-space: nowrap;
}

.app-module.has-reverse-grid {
  --rev-pad: var(--module-chrome-top);
  --rev-gap: var(--rev-pad);
  --rev-w: 100%;
  --rev-h: 100%;
  --rev-fit: 1;
  --rev-shift-x: 0px;
  --rev-shift-y: 0px;
}

.app-module.has-reverse-grid .nested-grid {
  position: absolute;
  inset: var(--rev-pad);
  z-index: 0;
}

.app-module.has-reverse-grid .module-size {
  z-index: 3;
}

.app-module.has-reverse-grid:not(.is-nested-expanded) .nested-world > .nested-module {
  width: calc(var(--rev-w) * var(--rev-fit));
  height: calc(var(--rev-h) * var(--rev-fit));
  left: calc(var(--rev-x, 0px) + var(--rev-shift-x));
  top: calc(var(--rev-y, 0px) + var(--rev-shift-y));
  border-radius: calc(var(--module-radius) - var(--rev-pad));
}

body.is-modules-ready .app-module.has-reverse-grid:not(.is-nested-expanded) .nested-world > .nested-module {
  transition:
    width var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    height var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    left var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    top var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.has-reverse-grid .nested-module[data-nested="0"] {
  --rev-x: 0px;
  --rev-y: 0px;
}

.app-module.has-reverse-grid .nested-module[data-nested="1"] {
  --rev-x: calc((var(--rev-w) + var(--rev-gap)) * var(--rev-fit));
  --rev-y: 0px;
}

.app-module.has-reverse-grid .nested-module[data-nested="2"] {
  --rev-x: 0px;
  --rev-y: calc((var(--rev-h) + var(--rev-gap)) * var(--rev-fit));
}

.app-module.has-reverse-grid .nested-module[data-nested="3"] {
  --rev-x: calc((var(--rev-w) + var(--rev-gap)) * var(--rev-fit));
  --rev-y: calc((var(--rev-h) + var(--rev-gap)) * var(--rev-fit));
}

.app-module.has-reverse-grid:not(.is-zoomed) .nested-module:not([data-nested="0"]),
body.is-zoom-out .app-module.has-reverse-grid .nested-module:not([data-nested="0"]) {
  pointer-events: none;
}

.app-module.has-carousel {
  gap: 0;
}

.app-module.has-carousel .module-size {
  z-index: 3;
  background: transparent;
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: var(--module-pad);
  padding-top: var(--module-chrome-top);
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: auto;
  --carousel-gap: var(--module-pad);
}

.carousel__card {
  position: relative;
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: calc(var(--module-radius) - var(--module-pad));
  cursor: default;
}

.carousel__dots {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--module-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42em;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: auto;
}

.carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 0.42em;
  min-width: 0.42em;
  max-width: 0.42em;
  height: 0.42em;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 32%, transparent);
  color: var(--shell);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition:
    max-width 480ms cubic-bezier(0.32, 0.72, 0, 1),
    height 480ms cubic-bezier(0.32, 0.72, 0, 1),
    padding 480ms cubic-bezier(0.32, 0.72, 0, 1),
    background-color 480ms cubic-bezier(0.32, 0.72, 0, 1),
    font-size 480ms cubic-bezier(0.32, 0.72, 0, 1);
}

.carousel__dot-name {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 480ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.carousel__dot.is-active {
  background: var(--red);
}

body.is-stage-large .carousel__dot.is-active {
  width: auto;
  max-width: 12em;
  height: 1.85em;
  padding: 0 0.85em;
  font-size: 0.78em;
}

body.is-stage-large .carousel__dot.is-active .carousel__dot-name {
  max-width: 9em;
  opacity: 1;
}

.carousel__dot:focus,
.carousel__dot:focus-visible,
.carousel__dot:active {
  outline: none;
}

.carousel__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  container-type: size;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__stage::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.carousel__track {
  display: flex;
  flex-direction: column;
  gap: var(--carousel-gap);
  width: 100%;
}

.carousel__page {
  flex: 0 0 100cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100cqh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--red-soft);
  border-radius: calc(var(--module-radius) - var(--module-pad));
  corner-shape: squircle;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.app-module.has-deck {
  gap: 0;
  container-type: size;
}

.app-module.has-deck .module-size {
  z-index: 3;
  background: transparent;
}

.sliding-deck {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: auto;
  --deck-gap: var(--module-pad);
  --deck-peek: calc(var(--module-pad) + (var(--module-type) * 1.2));
  --deck-radius: clamp(18px, 6cqw, 28px);
  --deck-scroll: 0;
  --deck-top: var(--module-chrome-top);
  --deck-card-w: calc(100cqw - (var(--module-pad) * 2));
  --deck-card-h: calc(var(--deck-card-w) * 11 / 17);
  --deck-step: calc(var(--deck-card-h) + var(--deck-gap));
}

.sliding-deck__index {
  position: absolute;
  left: 0;
  top: var(--deck-top);
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 1.2em;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  touch-action: none;
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.app-module.has-deck.is-zoomed .sliding-deck__index {
  opacity: 1;
  pointer-events: auto;
}

.sliding-deck__index button {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(4px, calc(var(--module-type) * 0.42), 8px);
  line-height: 1;
  opacity: 0.38;
  cursor: pointer;
  appearance: none;
}

.sliding-deck__index button.is-active {
  opacity: 1;
}

.sliding-deck__index button:focus,
.sliding-deck__index button:focus-visible,
.sliding-deck__index button:active {
  outline: none;
}

.sliding-deck__stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sliding-deck__stack::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sliding-deck__stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.sliding-deck__snaps {
  display: block;
  pointer-events: none;
}

.sliding-deck__snap {
  display: block;
  height: var(--deck-step);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.sliding-deck__stack::after {
  content: "";
  display: block;
  height: calc(100% - var(--deck-step));
  pointer-events: none;
}

.sliding-deck__card {
  position: absolute;
  z-index: calc(var(--deck-i) + 1);
  left: var(--module-pad);
  right: var(--module-pad);
  top: var(--deck-top);
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  aspect-ratio: 17 / 11;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: var(--module-pad);
  border-radius: var(--deck-radius);
  corner-shape: squircle;
  text-align: left;
  cursor: pointer;
  transform: translate3d(
    0,
    calc(
      min(1, max(0, var(--deck-i) - var(--deck-scroll))) * var(--deck-step)
      + max(0, var(--deck-i) - var(--deck-scroll) - 1) * var(--deck-peek)
    ),
    0
  );
  opacity: 1;
  pointer-events: auto;
  touch-action: pan-y;
  background: color-mix(
    in srgb,
    color-mix(
      in srgb,
      var(--red-soft) calc((1 - min(1, max(0, var(--deck-i) - var(--deck-scroll)))) * 100%),
      var(--nested-deep)
    ) calc((1 - min(1, max(0, var(--deck-i) - var(--deck-scroll) - 1) / 8)) * 100%),
    var(--shell)
  );
}

.sliding-deck__title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1.25;
  color: var(--red-soft-ink);
  white-space: nowrap;
  pointer-events: none;
}

.app-module.has-rail {
  gap: 0;
  overflow: hidden;
}

.app-module.has-rail .module-size {
  z-index: 3;
  background: transparent;
}

.nested-rail {
  --rail-visible: 3;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--module-pad);
  padding: var(--module-pad);
  padding-top: var(--module-chrome-top);
  overflow: hidden;
  container-type: inline-size;
}

body.is-modules-ready .nested-rail {
  transition: --rail-visible var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

body.is-stage-small .nested-rail {
  --rail-visible: 2;
}

body.is-stage-large .nested-rail {
  --rail-visible: 4;
}

.nested-rail > .nested-module,
.nested-rail__scroller {
  --rail-col: calc((100cqw - (var(--module-pad) * (var(--rail-visible) - 1))) / var(--rail-visible));
}

.nested-rail__scroller {
  flex: 0 0 calc(100cqw - var(--rail-col) - var(--module-pad));
  width: calc(100cqw - var(--rail-col) - var(--module-pad));
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--module-pad);
  overflow-x: auto;
  overflow-y: hidden;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nested-rail__scroller::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nested-rail .nested-module {
  position: relative;
  left: auto;
  top: auto;
  z-index: 0;
  flex: 0 0 var(--rail-col);
  width: var(--rail-col);
  height: 100%;
  min-height: 0;
  align-self: stretch;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: calc(var(--module-radius) - var(--module-pad));
}

.nested-rail .rail-pane {
  flex: 1 1 calc(100% / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  color: var(--red-soft-ink);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.nested-rail .rail-pane + .rail-pane {
  border-top: 1px solid var(--red);
}

.nested-rail > .nested-module:first-child {
  z-index: 2;
}

.app-module.is-zoomed .nested-rail > .nested-module:first-child {
  background: var(--nested-deep);
}

.nested-pair {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  --reveal-open: 0;
  --reveal-slot: calc(
    (var(--grid-view-step) * var(--pair-rows, 3))
    - (var(--module-gap) * 2)
    - var(--module-pad)
  );
  pointer-events: auto;
  transition: --reveal-open var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-zoomed .nested-pair {
  --reveal-open: 1;
}

body.is-zoom-out .app-module.is-zoomed .nested-pair {
  --reveal-open: 0;
}

.nested-pair .reveal-a {
  position: absolute;
  left: var(--module-pad);
  top: var(--module-chrome-top);
  width: calc(100% - (var(--module-pad) * 2));
  height: calc(
    100%
    - var(--module-chrome-top)
    - var(--module-pad)
    - ((var(--reveal-slot) + var(--module-pad)) * var(--reveal-open))
  );
  border-radius: calc(var(--module-radius) - var(--module-pad));
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.reveal-tray {
  position: absolute;
  left: var(--module-pad);
  width: calc(100% - (var(--module-pad) * 2));
  bottom: var(--module-pad);
  height: var(--reveal-slot);
  transform: translate3d(0, calc(100% + var(--module-pad)), 0);
  pointer-events: none;
  will-change: transform;
  transition: transform var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-zoomed .reveal-tray {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

body.is-zoom-out .app-module.is-zoomed .reveal-tray {
  transform: translate3d(0, calc(100% + var(--module-pad)), 0);
  pointer-events: none;
}

.reveal-tray-face {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: var(--module-pad);
}

.nested-pair .reveal-tray .nested-module {
  position: relative;
  left: auto;
  top: auto;
  flex: 1 1 0;
  width: auto;
  height: 100%;
  border-radius: calc(var(--module-radius) - var(--module-pad));
  transition: opacity var(--hide-duration) cubic-bezier(0.08, 0.9, 0.2, 1);
}

.app-module.is-nested-zoomed .reveal-a,
.app-module.is-nested-zoomed .reveal-tray .nested-module:not(.is-target) {
  opacity: 0;
  pointer-events: none;
}

.app-module.is-nested-zoomed .reveal-tray .nested-module.is-target {
  border-radius: var(--module-radius);
}

.app-module.has-nav {
  overflow: hidden;
}

.app-module.has-nav .module-size {
  z-index: 3;
  background: transparent;
}

.nested-nav {
  --nav-open: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
  transition: --nav-open var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.is-zoomed .nested-nav {
  --nav-open: 1;
}

body.is-zoom-out .app-module.is-zoomed .nested-nav {
  --nav-open: 0;
}

.nested-nav__stage {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--module-pad);
  padding: var(--module-pad);
  padding-top: var(--module-chrome-top);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  border-radius: 0 var(--module-radius) var(--module-radius) 0;
  corner-shape: squircle;
  scrollbar-width: none;
  pointer-events: auto;
}

.nested-nav__stage::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nested-nav__page {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.nested-nav__card {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  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;
  color: var(--red-soft-ink);
  font-size: var(--module-type);
}

.nested-nav-chip {
  order: -1;
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  width: calc(var(--nav-w, 0px) * var(--nav-open));
  min-width: 0;
  max-width: 42%;
  height: auto;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--red);
  background: color-mix(in srgb, var(--shell) 38%, transparent);
  border: 0;
  border-radius: var(--module-radius) 0 0 var(--module-radius);
  corner-shape: squircle;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  pointer-events: none;
}

.app-module.is-zoomed .nested-nav-chip {
  pointer-events: auto;
}

body.is-zoom-out .app-module.is-zoomed .nested-nav-chip {
  pointer-events: none;
}

.nested-nav-chip__rail {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  width: max-content;
  min-width: max-content;
  height: 100%;
  box-sizing: border-box;
  padding:
    var(--module-chrome-top)
    calc(var(--module-pad) + 10px)
    var(--module-pad)
    calc(var(--module-pad) + 16px);
}

.nested-nav__link {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  padding: 0.45em 0.15em;
  border: 0;
  border-bottom: 1px solid var(--red);
  border-radius: 0;
  background: transparent;
  appearance: none;
  min-width: 0;
  overflow: hidden;
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, calc(var(--module-type) * 1.24), 20px);
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  opacity: 0.42;
  cursor: pointer;
  outline: none;
}

.nested-nav__link:last-child {
  border-bottom: 0;
}

.nested-nav__link.is-active {
  opacity: 1;
  color: var(--red-soft-ink);
}

.nested-nav__link:focus,
.nested-nav__link:focus-visible,
.nested-nav__link:active {
  outline: none;
}

.app-module.has-cascade {
  overflow: hidden;
}

.cascade-stack {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
}

.app-module.has-cascade .cascade-layer {
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

.cascade-head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: baseline;
  justify-content: center;
  box-sizing: content-box;
  padding-top: var(--module-pad);
  height: var(--module-header);
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1.25;
  pointer-events: none;
  user-select: none;
}

.cascade-l1 {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cascade-l2 {
  --cascade-radius: calc(var(--nested-radius) - var(--module-pad));
  left: var(--module-pad);
  width: calc(100% - (var(--module-pad) * 2));
  top: auto;
  bottom: var(--module-pad);
  height: calc((100% - var(--module-header) - (var(--module-pad) * 3)) * var(--cascade-open));
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--cascade-radius) var(--cascade-radius) 0 0;
  corner-shape: squircle;
  pointer-events: none;
  transition: --cascade-open var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.cascade-l2-face {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  height: calc(100% / max(0.001, var(--cascade-open)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--nested-deep);
  border-radius: var(--cascade-radius);
  corner-shape: squircle;
}

body.is-stage-large .app-module.has-cascade.is-zoomed:not(.is-cascade-closed) .cascade-l2 {
  --cascade-open: 1;
  pointer-events: auto;
}

.cascade-l3 {
  --cascade-radius: calc(var(--nested-radius) - (var(--module-pad) * 2));
  left: var(--module-pad);
  width: calc(100% - (var(--module-pad) * 2));
  top: auto;
  bottom: var(--module-pad);
  height: calc((100% - var(--module-header) - (var(--module-pad) * 3)) * var(--cascade-deep));
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--cascade-radius);
  corner-shape: squircle;
  pointer-events: none;
  transition: --cascade-deep var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.cascade-l3-face {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  height: calc(100% / max(0.001, var(--cascade-deep)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: color-mix(in srgb, var(--red) 58%, var(--shell));
  border-radius: var(--cascade-radius);
  corner-shape: squircle;
}

.app-module.has-cascade.is-cascade-deep .cascade-l3 {
  --cascade-deep: 1;
  pointer-events: auto;
}

.app-module.has-lines {
  gap: 0;
}

.app-module.has-lines .module-size {
  z-index: 3;
  background: transparent;
}

.line-list {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0 calc(var(--module-pad) * 2);
  padding-top: var(--module-chrome-top);
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
  pointer-events: auto;
}

.line-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.line-item {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: baseline;
  column-gap: 1em;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0.45em 0;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}

.line-item:last-child {
  border-bottom: 0;
}

.line-item__name,
.line-item__place,
.line-item__amt,
.line-item__reveal > * {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  text-align: left;
}

.line-item__amt {
  font-variant-numeric: tabular-nums;
}

.line-item__reveal {
  display: contents;
}

.line-item__reveal > * {
  display: none;
}

@container (min-width: 240px) {
  .line-item {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .line-item__reveal > :nth-child(1) {
    display: block;
  }
}

@container (min-width: 320px) {
  .line-item {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .line-item__reveal > :nth-child(-n + 2) {
    display: block;
  }
}

@container (min-width: 400px) {
  .line-item {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .line-item__reveal > :nth-child(-n + 3) {
    display: block;
  }
}

@container (min-width: 500px) {
  .line-item {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .line-item__reveal > :nth-child(-n + 4) {
    display: block;
  }
}

@container (min-width: 600px) {
  .line-item {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .line-item__reveal > :nth-child(-n + 5) {
    display: block;
  }
}

.app-module.has-lines:not(.is-zoomed) .line-item {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-module.has-lines:not(.is-zoomed) .line-item__reveal > * {
  display: none;
}

.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-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1.25;
  color: var(--red);
  white-space: nowrap;
  overflow: visible;
  user-select: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transition: opacity var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.module-name {
  min-width: 0;
  overflow: visible;
}

html:not(.is-grid-hidden) .module-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-axis {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  user-select: none;
}

.module-axis:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

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

.module-size__x {
  flex: 0 0 auto;
}

.module-size__n {
  field-sizing: content;
  flex: 0 0 auto;
  min-width: 2ch;
  width: 2ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: center;
  appearance: none;
  outline: none;
  caret-color: currentColor;
  cursor: text;
  user-select: text;
  pointer-events: auto;
}

.module-size__n:focus {
  outline: none;
}

.app-shell.is-document {
  width: 100%;
  max-height: calc(100vh - var(--module-top) - var(--module-gap) - 24px);
  height: calc(100vh - var(--module-top) - var(--module-gap) - 24px);
  background: #fff;
  border-radius: 30px;
}

body.view-document {
  align-items: center;
  padding-top: 24px;
}

body.view-document .app-shell.is-document {
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
}

body.is-idle-zoom {
  --grid-view-scale: var(--idle-zoom-scale);
  --grid-view-step: var(--grid-zoom-step);
  --grid-label-offset-x: var(--grid-zoom-label-offset-x);
  --grid-label-offset-y: var(--grid-zoom-label-offset-y);
}

body.is-board.is-board-zoom {
  --grid-view-scale: var(--idle-zoom-scale);
  --grid-view-step: var(--grid-zoom-step);
  --grid-label-offset-x: var(--grid-zoom-label-offset-x);
  --grid-label-offset-y: var(--grid-zoom-label-offset-y);
}

.app-shell.is-settings {
  width: min(100%, 960px);
  max-height: calc(100vh - var(--module-top) - var(--module-gap) - 24px);
  background: #fff;
  border-radius: 34px;
}

.chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.chrome__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chrome__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grey);
  font-size: 1.05rem;
}

.chrome__nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.navbtn,
.btn,
.new-menu button {
  font: inherit;
  background: var(--grey);
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.navbtn.is-active,
.navbtn:hover,
.btn:hover,
.new-menu button:hover {
  background: rgba(45, 19, 38, 0.72);
  color: #fff;
}

.chrome__actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.btn--primary {
  background: #21131e;
  color: #fff;
  padding-inline: 0.85rem;
}

.btn--primary span {
  padding-left: 0;
}

.btn--icon {
  width: 38px;
  padding-inline: 0;
  letter-spacing: 0.08em;
}

.btn--new {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
}

.new-wrap {
  position: relative;
}

.new-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  display: flex;
  flex-direction: column;
  min-width: 9rem;
  z-index: 5;
  background: #fff;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}

.new-menu[hidden] {
  display: none !important;
}

.new-menu button {
  border-radius: 12px;
  text-align: left;
  background: #fff;
}

.new-menu button:first-child {
  border-top: 0;
}

.toast {
  position: fixed;
  top: 4.65rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  background: #1c9a55;
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  pointer-events: none;
}

.toast[hidden] {
  display: none !important;
}

.toast.is-error {
  background: var(--red);
  max-width: 18rem;
  line-height: 1.3;
  padding: 0.45rem 0.75rem;
  border-radius: 0.9rem;
  white-space: normal;
}

.toast__check {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 1rem;
}

.toast__check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.18rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #1c9a55;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.toast.is-error .toast__check {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.workspace.is-settings {
  grid-template-columns: 1fr;
}

.workspace.is-settings .stage {
  display: none;
}

.workspace.is-settings .sidebar {
  border-right: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  overflow: auto;
  max-height: none;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 19, 37, 0.25) transparent;
}

.stage {
  background: var(--grey);
  overflow: auto;
  max-height: none;
  min-width: 0;
}

.preview {
  min-height: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.preview-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform-origin: top center;
}

.doc-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.doc-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 62px;
  padding: 0.62rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  background: transparent;
  width: 100%;
  transition: background-color 140ms ease, padding 140ms ease;
}

.doc-row:hover,
.doc-row.is-active {
  background: var(--grey);
  color: inherit;
  padding-left: 1.15rem;
}

.doc-row__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}

.doc-row__client {
  font-weight: 700;
}

.doc-row__meta {
  font-size: 0.8rem;
  opacity: 0.52;
}

.app-shell.is-document .chrome,
.app-shell.is-settings .chrome {
  background: #fff;
}

.app-shell.is-document .sidebar,
.app-shell.is-settings .sidebar {
  background: #fff;
}

.app-shell.is-document .chrome__mark,
.app-shell.is-settings .chrome__mark {
  background: var(--shell);
}

.app-shell.is-document .navbtn,
.app-shell.is-document .btn,
.app-shell.is-settings .navbtn,
.app-shell.is-settings .btn {
  background: #f0f0ed;
}

.app-shell.is-document .navbtn.is-active,
.app-shell.is-document .navbtn:hover,
.app-shell.is-document .btn:hover,
.app-shell.is-settings .navbtn.is-active,
.app-shell.is-settings .navbtn:hover,
.app-shell.is-settings .btn:hover {
  background: #21131e;
  color: #fff;
}

.app-shell.is-document .btn--primary,
.app-shell.is-settings .btn--primary {
  background: #21131e;
  color: #fff;
}

.app-shell.is-idle .workspace {
  display: block;
  overflow: auto;
}

.app-shell.is-idle .chrome {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  min-height: 0;
  padding: 12px 14px 0;
}

.app-shell.is-idle .chrome__actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.app-shell.is-idle .chrome__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  gap: 1.1rem;
  overflow-x: auto;
}

.app-shell.is-idle .navbtn {
  position: relative;
  padding: 0.55rem 0 0.7rem;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.app-shell.is-idle .navbtn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.app-shell.is-idle .navbtn:hover,
.app-shell.is-idle .navbtn.is-active {
  background: transparent;
  color: inherit;
}

.app-shell.is-idle .navbtn.is-active::after {
  transform: scaleX(1);
}

.app-shell.is-idle .sidebar {
  border-right: 0;
  overflow: visible;
}

.app-shell.is-idle .stage {
  display: none;
}

.app-shell.is-idle .hint {
  margin: 0;
  padding: 2.5rem 1.5rem 3rem;
}

.editor {
  padding: 1rem 1.1rem 2.5rem;
}

.editor[data-settings] {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  align-items: start;
}

.editor[data-settings] > .editor__top,
.editor[data-settings] > h2,
.editor[data-settings] > .section-block:last-child {
  grid-column: 1 / -1;
}

.editor[data-settings] > .section-block {
  margin-top: 0;
}

.editor__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.editor h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.field span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #000;
  padding: 0.35rem 0.45rem;
  background: #fff;
  width: 100%;
}

.field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.field-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.new-client {
  border: 1px solid #000;
  padding: 0.7rem;
  margin: -0.2rem 0 0.75rem;
}

.new-client[hidden] {
  display: none !important;
}

.new-client__actions {
  display: flex;
  gap: 0.4rem;
}

.item-card {
  border: 1px solid #000;
  padding: 0.7rem;
  margin-bottom: 0.6rem;
}

.item-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.hint {
  font-size: 0.8rem;
  margin: 0 1rem 1rem;
  line-height: 1.4;
}

.section-block {
  border-top: 1px solid #000;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.4rem 0 0.8rem;
  font-size: 0.85rem;
}

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .app-shell,
  .app-shell.is-document,
  .app-shell.is-settings {
    max-height: calc(100vh - var(--module-top) - var(--module-gap) - 24px);
  }

  .app-shell.is-document {
    height: calc(100vh - var(--module-top) - var(--module-gap) - 24px);
  }

  .app-shell {
    border-radius: 34px;
  }

  .chrome {
    gap: 0.45rem;
  }

  .chrome__brand > span:last-child {
    display: none;
  }

  .chrome__nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  .chrome__actions {
    margin-left: auto;
  }

  .app-shell.is-idle .chrome__actions {
    margin-left: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .editor[data-settings] {
    grid-template-columns: 1fr;
    padding: 1rem 1.1rem 2.5rem;
  }

  .sidebar,
  .stage {
    max-height: none;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-shell.is-document .workspace {
    display: block;
  }

  .app-shell.is-document .sidebar {
    max-height: 45%;
  }

  .app-shell.is-document .stage {
    min-height: 55%;
  }
}

html[data-print="1"] .no-print,
html[data-print="1"] .chrome,
html[data-print="1"] .sidebar,
html[data-print="1"] .toast {
  display: none !important;
}

html[data-print="1"] body,
html[data-print="1"] .stage {
  background: #fff;
  overflow: visible;
  max-height: none;
}

html[data-print="1"] body {
  display: block;
  padding: 0;
}

html[data-print="1"] .app-shell {
  display: block;
  width: auto;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-print="1"] .workspace {
  display: block;
  min-height: 0;
}

html[data-print="1"] .preview {
  padding: 0;
  gap: 0;
}

html[data-print="1"] .preview-scale {
  transform: none !important;
}

html:not([data-print]) #preview [data-edit] {
  cursor: text;
}

html:not([data-print]) #preview [data-edit]:empty {
  min-width: 1em;
  min-height: 1em;
  display: inline-block;
}

html:not([data-print]) #preview [data-edit].is-editing {
  outline: 0.75pt solid #231f20;
  outline-offset: 1.5pt;
  background: #fff;
  caret-color: #231f20;
}

html:not([data-print]) #preview [data-edit][data-multiline].is-editing {
  white-space: pre-wrap;
}

.theme-dot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  appearance: none;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 180ms ease;
}

.theme-dot:hover,
.theme-dot:focus-visible {
  opacity: 0.85;
  outline: none;
}

html:has(body.is-stage) {
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-stage .app-module:not(.is-stage-current) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-stage.is-modules-ready .app-module:not(.is-dragging) {
  transition:
    --module-col var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --module-row var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --module-columns var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --module-rows var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    opacity var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    background-color var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    --tx-open var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

body.is-stage.is-modules-ready .app-module.is-stage-instant {
  transition: none;
}

body.is-stage .module-size {
  cursor: default;
  touch-action: auto;
}

html.is-title-hidden .app-module {
  --module-chrome-top: var(--module-pad);
}

html.is-title-hidden .module-size {
  display: none;
}

html.is-outline-hidden .app-module {
  border-color: transparent;
}

body.is-stage .app-module.is-sizing {
  border-color: var(--red);
}

.title-switch {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 0.4em 0.85em;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
  appearance: none;
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.45;
  cursor: pointer;
}

.title-switch.is-active {
  background: var(--red);
  color: var(--shell);
  opacity: 1;
}

.title-switch:hover,
.title-switch:focus-visible {
  opacity: 1;
  outline: none;
}

.title-switch.is-active:hover,
.title-switch.is-active:focus-visible {
  color: var(--shell);
}

.stage-tools {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-tools .title-switch {
  position: static;
}

.stage-tools .stage-size,
.stage-tools .stage-state,
.stage-tools .carousel-autoplay {
  position: static;
}

.carousel-autoplay[hidden] {
  display: none;
}

.carousel-autoplay__name {
  padding: 0 0.35em 0 0.7em;
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.7;
}

body.is-topology-stage .stage-tools {
  bottom: 16px;
}

body.is-stage .stage-label,
body.is-board .stage-label {
  display: none;
  position: fixed;
  z-index: 4;
  top: calc(var(--grid-label-offset-y) + ((var(--module-row) + var(--module-rows)) * var(--grid-view-step)) - var(--module-gap) + 12px);
  left: calc(var(--grid-label-offset-x) + ((var(--module-col) + (var(--module-columns) / 2)) * var(--grid-view-step)) - (min(var(--grid-gutter), max(0px, var(--grid-view-step) - 1px)) / 2));
  transform: translateX(-50%);
  align-self: center;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0.4em 0.85em;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--shell);
  font-size: 13px;
  line-height: 1.2;
  opacity: 1;
  cursor: default;
  --grid-view-scale: 1;
  --grid-view-step: var(--grid-step);
  --grid-label-offset-x: var(--grid-inset);
  --grid-label-offset-y: calc(var(--grid-inset) - var(--grid-pan-y));
  transition: none;
}

body.is-idle-zoom .stage-label,
body.is-board-zoom .stage-label {
  --grid-view-scale: var(--idle-zoom-scale);
  --grid-view-step: var(--grid-zoom-step);
  --grid-label-offset-x: var(--grid-zoom-label-offset-x);
  --grid-label-offset-y: var(--grid-zoom-label-offset-y);
}

body.is-stage .stage-label.is-on,
body.is-board .stage-label.is-on {
  display: flex;
}

body.is-board .app-module .stage-label {
  position: absolute;
  z-index: 6;
  top: auto;
  right: 12px;
  bottom: 12px;
  left: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--red);
  color: var(--shell);
  transform: none;
  pointer-events: auto;
}

body.is-board .stage-label > .module-name {
  display: none;
}

body.is-board .stage-label .module-size__dims,
body.is-board .stage-label .module-remove {
  flex: 0 0 auto;
}

body.is-board.is-idle-zoom .stage-label.is-on {
  display: none;
}

html.is-title-hidden body.is-stage .stage-label.is-on,
html.is-title-hidden body.is-board .stage-label.is-on,
html.is-grid-hidden body.is-stage .stage-label.is-on,
html.is-grid-hidden body.is-board .stage-label.is-on {
  display: none;
}

body.is-stage .stage-label.is-stage-instant,
body.is-board .stage-label.is-stage-instant {
  transition: none;
}

body.is-board .stage-label .module-remove {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

body.is-stage .stage-label .module-size__dims,
body.is-board .stage-label .module-size__dims {
  display: inline-flex;
}

body.is-stage .stage-label .module-size__n,
body.is-board .stage-label .module-size__n {
  cursor: ns-resize;
}

body.is-stage .app-module,
body.is-board .app-module {
  --module-chrome-top: var(--module-pad);
  --list-header: 0px;
}

body.is-stage .module-size__n,
body.is-board .module-size__n {
  color: inherit;
}

body.is-module-dragging .stage-label {
  transition: none;
}

body.is-board:not(.is-idle-zoom) .stage-label {
  cursor: grab;
  touch-action: none;
}

body.is-board:not(.is-idle-zoom) .stage-label:active {
  cursor: grabbing;
}

.board-picker {
  position: fixed;
  z-index: 70;
  width: max-content;
  min-width: 168px;
  max-height: min(70vh, 420px);
  overflow: auto;
  margin: 0;
  padding: 6px;
  border-radius: 16px;
  background: var(--shell);
  color: var(--red);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
}

.board-picker[hidden] {
  display: none;
}

.board-picker__group {
  margin: 8px 8px 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.45;
}

.board-picker button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45em 0.7em;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.board-picker button:hover,
.board-picker button:focus-visible {
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
  outline: none;
}

.stage-switch {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
}

.stage-switch__btn {
  margin: 0;
  padding: 0.4em 0.85em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.45;
  cursor: pointer;
}

.stage-switch__btn.is-active {
  background: var(--red);
  color: var(--shell);
  opacity: 1;
}

.stage-switch__btn:hover,
.stage-switch__btn:focus-visible {
  opacity: 1;
  outline: none;
}

.stage-switch__btn.is-active:hover,
.stage-switch__btn.is-active:focus-visible {
  color: var(--shell);
}

html:not(.is-content) .app-module.has-lines .line-item {
  display: block;
  height: 1.15em;
  margin: 0.32em 0;
  padding: 0;
  border: 0;
  border-radius: 0.4em;
  corner-shape: squircle;
  background: var(--red-soft);
  overflow: hidden;
}

html:not(.is-content) .app-module.has-lines .line-item__name,
html:not(.is-content) .app-module.has-lines .line-item__place,
html:not(.is-content) .app-module.has-lines .line-item__amt,
html:not(.is-content) .app-module.has-lines .line-item__reveal > * {
  color: transparent;
}

.module-fill {
  display: none;
  font-size: var(--module-type);
  --type-root: 1em;
}

.carousel__page,
.rail-pane {
  position: relative;
}

html.is-content .module-skel {
  display: none;
}

html.is-content .module-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35em;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 0.75em 0.8em;
  overflow: hidden;
  color: var(--red-soft-ink);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--module-type);
  line-height: 1.15;
  text-align: left;
  pointer-events: none;
}

html.is-content .cascade-head {
  justify-content: flex-start;
  padding-right: var(--module-pad);
  padding-left: var(--module-pad);
}

html.is-content .cascade-head .module-fill,
html.is-content .nested-nav__link .module-fill {
  position: static;
  inset: auto;
  display: inline;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

html.is-content .module-fill.is-flow {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
}

html.is-content .nested-module,
html.is-content .carousel__page,
html.is-content .rail-pane,
html.is-content .cascade-l2-face,
html.is-content .cascade-l3-face {
  overflow: hidden;
}

.fill-kicker {
  font-size: 0.68em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.fill-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 1.05em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fill-figure {
  display: block;
  font-size: 1.85em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}

.fill-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 0.74em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.68;
}

.fill-meta.is-wrap,
.fill-title.is-wrap {
  white-space: normal;
}

.fill-top,
.fill-line,
.fill-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55em;
  min-width: 0;
}

.fill-line {
  align-items: baseline;
  font-size: 0.82em;
}

.fill-line span:first-child,
.fill-split span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fill-bar {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--red) 18%, transparent);
}

.fill-bar > span {
  display: block;
  width: var(--bar, 50%);
  height: 100%;
  background: var(--red);
}

.fill-days,
.fill-checks {
  display: flex;
  gap: 0.35em;
}

.fill-days i,
.fill-check {
  display: block;
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.62em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--red) 22%, transparent);
  font-style: normal;
}

.fill-days i.is-on,
.fill-check.is-on {
  background: var(--red);
}

.fill-check {
  width: 0.72em;
  height: 0.72em;
  margin-top: 0.12em;
  border-radius: 3px;
}

.fill-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
  min-width: 0;
}

.fill-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.28em;
  min-height: 0;
}

.fill-rule {
  display: block;
  flex: none;
  align-self: stretch;
  width: 100%;
  height: var(--rule-size, 1px);
  min-height: var(--rule-size, 1px);
  margin: 0.45em 0;
  background: var(--rule-color, color-mix(in srgb, currentColor 55%, transparent));
}

.fill-rule:has(+ .yr-now),
.fill-rule:has(+ .yr-past) {
  margin-top: 0;
  margin-bottom: 0;
}

.fill-block > .yr-now,
.fill-block .yr-past {
  margin-top: calc(var(--rule-gap, 0.1em) - var(--sheet-gap, 0.46em));
}

.fill-block {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  flex: none;
  gap: var(--sheet-gap, 0.46em);
  margin-top: auto;
  text-align: left;
}

.yr-rest {
  display: grid;
  grid-template-rows: 1fr;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  transition:
    grid-template-rows var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1),
    margin-top var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.yr-rest__in {
  display: flex;
  flex-direction: column;
  gap: var(--sheet-gap, 0.46em);
  min-height: 0;
  overflow: clip;
  overflow-clip-margin: 100vh;
  transition: transform var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

body.is-stage-small .yr-rest,
.nested-grid > .nested-world > .nested-module:not(.is-target) .yr-rest {
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--sheet-gap, 0.46em));
}

body.is-stage-small .yr-rest__in,
.nested-grid > .nested-world > .nested-module:not(.is-target) .yr-rest__in {
  transform: translateY(var(--sheet-pad-b, 0.9em));
}

body:not(.is-modules-ready) .yr-rest,
body:not(.is-modules-ready) .yr-rest__in,
body.is-stage.is-modules-ready .app-module.is-stage-instant .yr-rest,
body.is-stage.is-modules-ready .app-module.is-stage-instant .yr-rest__in {
  transition: none;
}

.module-fill[data-block-y="top"] > .fill-block {
  margin-top: 0;
}

.module-fill[data-block-y="center"] > .fill-block {
  margin-top: auto;
  margin-bottom: auto;
}

.module-fill[data-block-x="center"] > .fill-block {
  text-align: center;
}

.module-fill[data-block-x="center"] > .fill-block .yr-now {
  align-items: center;
}

.module-fill[data-block-x="right"] > .fill-block {
  text-align: right;
}

.module-fill[data-block-x="right"] > .fill-block .yr-now {
  align-items: flex-end;
}

.yr-past {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65em;
  width: 100%;
  min-width: 0;
}

.yr-past .yr-y {
  flex: none;
  width: auto;
  margin: 0;
  font-size: 0.82em;
  line-height: 1;
  opacity: 1;
}

.yr-past .yr-amt {
  width: auto;
  margin: 0;
}

.module-fill[data-block-x="center"] > .fill-block .yr-past {
  justify-content: center;
}

.module-fill[data-block-x="right"] > .fill-block .yr-past {
  justify-content: flex-end;
}

.fill-block > .fill-rule {
  align-self: stretch;
}

.fill-block > .yr-y {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.82em;
  line-height: 1;
  opacity: 1;
  text-align: inherit;
}

.module-fill[data-block-x="center"] > .fill-block .sum-r {
  justify-content: center;
}

.module-fill[data-block-x="right"] > .fill-block .sum-r {
  justify-content: flex-end;
}

.fill-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.18em 0.5em;
  border-radius: 99px;
  background: color-mix(in srgb, var(--red) 16%, transparent);
  font-size: 0.68em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fill-date {
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
}

.fill-date strong {
  font-size: 2.4em;
  font-weight: 400;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}

.fill-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.7em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.45em;
  background: color-mix(in srgb, var(--red) 16%, transparent);
  font-size: 0.72em;
  letter-spacing: 0.02em;
}

.fill-type {
  font-size: 3.2em;
  line-height: 0.8;
}

.fill-time {
  flex: 0 0 1.8em;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

html.is-content .module-fill.fill-sheet {
  justify-content: flex-start;
  --sheet-gap: 0.46em;
  --sheet-pad-x: 1em;
  --sheet-pad-b: 0.9em;
  gap: var(--sheet-gap);
  padding: 0.95em var(--sheet-pad-x) var(--sheet-pad-b);
}

html.is-content .module-fill.tone-ink {
  background: #111;
  color: #f4f4f4;
  border-radius: inherit;
}

html.is-content .module-fill.tone-green {
  background: #178a32;
  color: #fff;
  border-radius: inherit;
}

html.is-content .module-fill.tone-blue {
  background: #1a73e8;
  color: #fff;
  border-radius: inherit;
}

html.is-content .module-fill.tone-gold {
  background: #f5c518;
  color: #161616;
  border-radius: inherit;
}

html.is-content .module-fill.tone-paper {
  background: #fff;
  color: #161616;
  border-radius: inherit;
}

html.is-content .nested-module:has(> .tone-ink),
html.is-content .nested-nav__card:has(> .tone-ink),
html.is-content .rail-pane:has(> .tone-ink),
html.is-content .carousel__page:has(> .tone-ink) {
  background: #111;
  color: #f4f4f4;
}

html.is-content .nested-module:has(> .tone-green),
html.is-content .nested-nav__card:has(> .tone-green),
html.is-content .rail-pane:has(> .tone-green),
html.is-content .carousel__page:has(> .tone-green) {
  background: #178a32;
  color: #fff;
}

html.is-content .nested-module:has(> .tone-blue),
html.is-content .nested-nav__card:has(> .tone-blue),
html.is-content .carousel__page:has(> .tone-blue) {
  background: #1a73e8;
  color: #fff;
}

html.is-content .nested-module:has(> .tone-gold),
html.is-content .nested-nav__card:has(> .tone-gold),
html.is-content .rail-pane:has(> .tone-gold),
html.is-content .carousel__page:has(> .tone-gold) {
  background: #f5c518;
  color: #161616;
}

html.is-content .nested-module:has(> .tone-paper),
html.is-content .nested-nav__card:has(> .tone-paper),
html.is-content .rail-pane:has(> .tone-paper),
html.is-content .carousel__page:has(> .tone-paper),
html.is-content .cascade-l2:has(.tone-paper) {
  background: #fff;
  color: #161616;
}

html.is-content .cascade-l3:has(.tone-gold),
html.is-content .cascade-l3-face:has(.tone-gold) {
  background: #f5c518;
  color: #161616;
}

html.is-content .nested-module:has(> .module-fill) {
  background-color: transparent;
}

html.is-content .nested-module > .module-fill {
  border-radius: inherit;
  corner-shape: squircle;
}


html.is-content .app-module.has-lines .line-list {
  visibility: hidden;
}

html.is-content .module-fill.ledger-fill {
  top: var(--module-chrome-top);
  right: var(--module-pad);
  bottom: var(--module-pad);
  left: var(--module-pad);
  padding: 0.15em 0.1em 0.4em;
  overflow: auto;
  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;
  pointer-events: auto;
  scrollbar-width: none;
}

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

.fill-name {
  display: block;
  margin: 0 0 0.08em;
  font-size: 1.62em;
  line-height: 1.02;
}

.tone-ink .fill-name {
  font-size: 1.42em;
}

.tone-green .fill-name {
  margin-bottom: 0.35em;
  font-size: 1.85em;
}

.tone-blue .fill-name {
  font-size: 1.7em;
}

.tone-gold .fill-name {
  font-size: 1.48em;
}

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

.fill-head .fill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fill-head:has(.yr-cur) {
  align-items: baseline;
}

.fill-head:has(.yr-cur) .fill-name {
  margin-bottom: 0;
}

.fill-head .yr-cur {
  flex: none;
  margin: 0;
  font-size: 1.62em;
  font-weight: inherit;
  line-height: 1.02;
  letter-spacing: normal;
  opacity: 1;
}

.tone-ink .fill-head .yr-cur {
  font-size: 1.42em;
}

.swap {
  flex: 0 0 auto;
  font-family: "ABC ROM", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.15em;
  font-style: normal;
  font-synthesis: none;
  line-height: 1;
}

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

.money.is-out {
  color: var(--txn-out, #e10600);
}

.money.is-in {
  color: var(--txn-in, #178a3a);
}

.tone-ink .money.is-in,
.tone-green .money.is-in,
.tone-blue .money.is-in,
.tone-ink .money.is-out,
.tone-green .money.is-out,
.tone-blue .money.is-out {
  color: inherit;
}

.tone-ink .yr-delta.is-up,
.tone-green .yr-delta.is-up,
.tone-blue .yr-delta.is-up {
  color: #7dff9a;
}

.money.is-out::before {
  content: "← ";
}

.money.is-in::before {
  content: "→ ";
}

.txn-line .money.is-out,
.txn-line .money.is-in {
  color: inherit;
}

.txn-line .money.is-out::before,
.txn-line .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-color: var(--txn-out, #e10600);
  -webkit-mask: url("../img/arrow.svg?v=3") center / 100% 100% no-repeat;
  mask: url("../img/arrow.svg?v=3") center / 100% 100% no-repeat;
}

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

.yr-y,
.yr-delta,
.inv-meta,
.inv-alt,
.txn-date,
.txn-cat,
.txn-meta,
.sheet-h {
  font-size: 0.72em;
  line-height: 1.25;
  opacity: 0.68;
}

.sum-r {
  font-size: 0.82em;
  line-height: 1.35;
}

.yr-now {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: flex-start;
  width: 100%;
  gap: 0.16em;
  text-align: inherit;
}

.yr-now .yr-amt,
.yr-now .yr-sub,
.yr-now .yr-delta {
  display: block;
  width: 100%;
  margin: 0;
  text-align: inherit;
}

.fill-block .sum-r {
  justify-content: flex-start;
}

.yr-sub {
  margin-top: 0.12em;
  font-size: 0.72em;
  line-height: 1.25;
}

.yr-delta {
  margin-top: 0.28em;
  font-size: 0.8em;
}

.yr-amt,
.inv-amt,
.sum-h,
.txn-title {
  font-variant-numeric: tabular-nums;
}

.yr-amt {
  display: block;
  margin: 0.1em 0 0.08em;
  font-size: 1.85em;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.tone-ink .yr-amt {
  font-size: 1.72em;
}

.yr-cur {
  font-size: 0.62em;
}

.yr-delta.is-up {
  color: #178a3a;
  opacity: 1;
}

.yr-delta.is-down {
  color: #e10600;
  opacity: 1;
}

.tone-ink .yr-delta.is-down,
.tone-green .yr-delta.is-down,
.tone-blue .yr-delta.is-down {
  color: #ffb4b0;
}

.yr-block,
.sum,
.inv-row,
.txn-top,
.txn-bot,
.sum-h,
.sum-r,
.inv-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45em;
  min-width: 0;
}

.yr-block,
.sum,
.inv,
.txn {
  flex-direction: column;
  align-items: stretch;
  gap: 0.34em;
}

.txn {
  gap: 0.1em;
  margin-top: 0.15em;
  padding-top: 0.38em;
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
}

.txn-top {
  font-size: 0.84em;
}

.txn-bot {
  font-size: 0.74em;
  opacity: 0.72;
}

.sum {
  gap: 0.28em;
  margin-top: 0.15em;
}

.sum-h {
  font-size: 0.98em;
}

.sum-h .money {
  font-size: 1.12em;
}

.txn-bot span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sum-r span:first-child,
.sheet-r span:nth-child(2),
.inv-what,
.inv-who,
.txn-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-what,
.txn-title {
  display: block;
  margin-top: 0.15em;
  font-size: 1.05em;
}

.inv-who {
  font-size: 0.95em;
  opacity: 0.88;
}

.inv-meta {
  margin: 0.45em 0 0.1em;
}

.inv-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  margin-top: auto;
  font-size: 1.22em;
  line-height: 1.15;
}

.inv-alt {
  margin-top: 0.12em;
  font-size: 0.72em;
}

.inv-row {
  align-items: flex-start;
}

.sheet-h,
.sheet-r {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr) auto auto;
  gap: 0.5em;
  align-items: baseline;
  min-width: 0;
}

.sheet-h {
  margin-top: 0.35em;
  opacity: 0.5;
  font-size: 0.68em;
}

.sheet-r {
  padding: 0.42em 0 0.12em;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: 0.8em;
}

.sheet-r span:nth-child(3),
.sheet-r span:nth-child(4) {
  text-align: right;
}

.chart-k {
  display: block;
  margin: 0.55em 0 0.2em;
  font-size: 0.95em;
}

.chart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35em;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.58em;
  line-height: 1;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.chart svg {
  width: 100%;
  height: 100%;
  min-height: 4.5em;
  overflow: visible;
}

.chart-x {
  display: flex;
  justify-content: space-between;
  margin-left: 2.4em;
  font-size: 0.62em;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

html.is-content .rail-pane .module-fill {
  justify-content: flex-start;
  gap: 0.18em;
  padding: 0.55em 0.55em 0.4em;
}

html.is-content .rail-pane .yr-amt {
  margin: 0;
}

html.is-content .rail-pane .yr-y,
html.is-content .rail-pane .yr-sub,
html.is-content .rail-pane .yr-delta {
  margin-top: 0;
}

html.is-content .module-fill.ledger-fill {
  gap: 0.22em;
}

html.is-content .module-fill.ledger-fill .fill-name {
  margin: 0 0.15em 0.05em;
  padding: 0 0 0.28em;
  border-bottom: 1px solid #e2e2e2;
  background: transparent;
  color: #111;
  font-size: 1.45em;
}

html.is-content .module-fill.ledger-fill .sum {
  gap: 0.1em;
  margin-top: 0.05em;
}

html.is-content .module-fill.ledger-fill .fill-rule {
  margin: 0.06em 0;
}

html.is-content .module-fill.ledger-fill .sheet-r {
  padding-top: 0.28em;
}

html.is-content .nested-grid .module-fill.fill-sheet:not(:has(.fill-block)) {
  gap: var(--txn-head-gap, 0.28em);
  padding: 1.05em 1.1em 0.95em;
}

html.is-content .module-fill.fill-sheet:has(> .txn-sheet) {
  gap: var(--txn-head-gap, var(--sheet-gap));
}

.txn-sheet {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.txn-line {
  display: grid;
  grid-template-columns: var(--txn-cols, minmax(0, 15%) minmax(0, 70%) minmax(0, 15%));
  gap: var(--txn-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: 0.78em;
  line-height: 1.2;
}

.txn-line.is-head {
  padding-top: 0.15em;
  padding-bottom: 0.2em;
  border-top: 0;
  opacity: 0.55;
  font-size: 0.68em;
}

.txn-line > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txn-line > .is-col-left {
  text-align: left;
}

.txn-line > .is-col-center {
  text-align: center;
}

.txn-line > .is-col-right {
  text-align: right;
}

.txn-x {
  display: none;
}

.txn-line > .txn-x.is-col-on {
  display: block;
}

.txn-line > .is-col-off {
  display: none;
}

.module-fill.is-columns-guide .txn-line {
  position: relative;
}

.module-fill.is-columns-guide .txn-line > span[data-col]:not(.is-col-off) {
  position: relative;
  outline: 1px solid color-mix(in srgb, #ff2500 55%, transparent);
  outline-offset: -1px;
  background: color-mix(in srgb, #ff2500 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff2500 18%, transparent);
}

.module-fill.is-columns-guide .txn-line > span[data-col]:not(.is-col-off).is-setting-hot {
  background: color-mix(in srgb, #ff2500 22%, transparent);
  outline-color: #ff2500;
}

.module-fill.is-columns-guide .txn-line.is-head > span[data-col]:not(.is-col-off)::after,
body.is-component-stage .module-fill.is-columns-guide .txn-line > span[data-col]:not(.is-col-off)::after {
  content: attr(data-col);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 2px);
  color: #ff2500;
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: inherit;
  text-transform: lowercase;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@container (min-width: 460px) {
  .txn-line {
    font-size: 0.92em;
  }

  .txn-line.is-head {
    font-size: 0.78em;
  }
}

body.is-stage-small .txn-line.is-head,
body.is-stage-small .txn-line > span:first-child,
.nested-grid > .nested-world > .nested-module:not(.is-target) .txn-line.is-head,
.nested-grid > .nested-world > .nested-module:not(.is-target) .txn-line > span:first-child {
  display: none;
}

body.is-stage-small .txn-line,
.nested-grid > .nested-world > .nested-module:not(.is-target) .txn-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.is-stage-small .txn-x,
.nested-grid > .nested-world > .nested-module:not(.is-target) .txn-x {
  display: none;
}

html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .fill-name,
html.is-content .nested-grid .module-fill.tone-ink:not(:has(.fill-block)) .fill-name,
html.is-content .nested-grid .module-fill.tone-gold:not(:has(.fill-block)) .fill-name {
  margin-bottom: 0;
}

html.is-content .nested-grid .tone-green .fill-name {
  margin-bottom: 0.08em;
}

html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .yr-amt,
html.is-content .nested-grid .module-fill.tone-ink:not(:has(.fill-block)) .yr-amt {
  margin: 0;
}

html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .fill-rule {
  margin: 0.06em 0;
}

html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .yr-y,
html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .yr-sub,
html.is-content .nested-grid .module-fill:not(:has(.fill-block)) .yr-delta,
html.is-content .nested-grid .inv-what,
html.is-content .nested-grid .inv-meta {
  margin-top: 0;
}

html.is-content .nested-grid .txn {
  gap: 0.04em;
  margin-top: 0;
  padding-top: 0.28em;
}

html.is-content .rail-pane .fill-name {
  margin-bottom: 0;
}

html.is-content .module-fill.ledger-fill .sum,
html.is-content .module-fill.ledger-fill .sheet-h,
html.is-content .module-fill.ledger-fill .sheet-r {
  padding-right: 0.55em;
  padding-left: 0.55em;
}

html.is-content .module-fill.tone-slate {
  background: #8d8d8d;
  color: #fff;
}

html.is-content .module-fill.ledger-fill.tone-slate {
  gap: 0;
  padding: 0.9em 0.7em 0.55em;
  container-type: inline-size;
  font-size: clamp(8px, 2.35cqw, 15px);
}

.bill-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7em;
  margin: 0 0 1.05em;
}

.bill-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  min-width: 0;
  padding-top: 0.55em;
}

.bill-stat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: #fff;
}

.bill-stat.is-on::before {
  height: 3px;
  background: #111;
}

.bill-k {
  font-size: 1.02em;
  font-weight: 500;
  line-height: 1.15;
}

.bill-amt,
.bill-sub {
  overflow: hidden;
  font-size: 0.78em;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bill-stat.is-on .bill-k,
.bill-stat.is-on .bill-amt {
  font-weight: 700;
}

.bill-table {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0.15em;
}

.bill-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bill-group + .bill-group {
  margin-top: 0.95em;
  padding-top: 0.15em;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
}

.bill-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.7fr) auto auto auto;
  gap: 0.55em;
  align-items: baseline;
  min-width: 0;
  padding: 0.32em 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72em;
  line-height: 1.25;
}

.bill-h {
  padding-top: 0.15em;
  padding-bottom: 0.38em;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  font-size: 0.6em;
  opacity: 0.92;
}

.bill-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-row > span:nth-child(n + 3) {
  overflow: visible;
  text-overflow: clip;
}

html.is-content .fill-more,
html.is-content .fill-rest {
  display: contents;
}

html.is-content .is-component-default .fill-more,
html.is-content .is-component-zoomed .fill-more {
  display: none;
}

body.is-component-stage .is-component {
  width: var(--component-width, max-content);
  height: auto;
  padding: 0;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: var(--shell);
  corner-shape: unset;
}

body.is-component-stage .stage-label .module-size__dims {
  display: none;
}

body.is-component-stage .is-component .module-face {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  corner-shape: unset;
}

html.is-content body.is-component-stage .is-component .module-fill.fill-sheet {
  position: relative;
  inset: auto;
  container-type: inline-size;
  justify-content: flex-start;
  gap: 0.35em;
  width: 100%;
  height: auto;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: var(--shell);
  color: #161616;
  corner-shape: unset;
}

html.is-content .app-module.has-cascade.is-zoomed:not(.is-cascade-closed) .cascade-l1 > .module-fill > .fill-rest {
  display: none;
}

html.is-content .nested-grid .nested-module.is-target .fill-brief,
html.is-content .app-module.is-zoomed.has-carousel .fill-brief,
html.is-content .app-module.is-nested-zoomed .reveal-tray .nested-module.is-target .fill-brief {
  display: none;
}

html.is-content .nested-grid .nested-module.is-target .module-fill:not(:has(.fill-block)),
html.is-content .has-reverse-grid .nested-module .module-fill:not(:has(.fill-block)) {
  gap: 0.4em;
  padding: 1.05em 1.15em 0.95em;
}


html.is-content .nested-grid .nested-module.is-target .module-fill > .inv-amt,
html.is-content .app-module.is-zoomed.has-deck .sliding-deck__card.is-active .module-fill > .inv-amt,
html.is-content .app-module.is-nested-zoomed .reveal-tray .nested-module.is-target .module-fill > .inv-amt {
  margin-top: 0.4em;
}

html.is-content .nested-list.is-expanded > .nested-module.is-target .txn-title {
  margin-top: 0.2em;
  white-space: normal;
}

.txn-note {
  display: block;
  margin-top: 0.35em;
  font-size: 0.92em;
  line-height: 1.35;
}

.more-k {
  display: block;
  margin-top: 0.15em;
  font-size: 0.68em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em 0.9em;
  font-size: 0.72em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

@keyframes fill-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.app-module.has-face .module-face {
  position: absolute;
  z-index: 0;
  left: var(--module-pad);
  top: var(--module-chrome-top);
  right: var(--module-pad);
  bottom: var(--module-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  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));
  box-sizing: border-box;
  corner-shape: squircle;
  background: var(--face-bg, var(--red-soft));
  border: var(--face-stroke) solid var(--face-stroke-color);
  color: var(--red-soft-ink);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: var(--module-type);
  line-height: 1.25;
}

html.is-content .app-module.has-face .module-fill {
  border-radius: inherit;
  corner-shape: squircle;
}

html.is-content .app-module.has-face .module-fill.ledger-fill {
  inset: 0;
}

.app-module.has-tx-rows {
  --tx-open: 0;
  --tx-fill: #f5c518;
}

.app-module.has-tx-rows.is-tx-rows {
  --tx-open: 1;
}

.app-module.has-tx-rows > .module-face {
  bottom: auto;
  z-index: 2;
  height: calc(
    ((100% - var(--module-chrome-top) - var(--module-pad)) * (1 - var(--tx-open)))
    + (((100% - var(--module-chrome-top) - (var(--module-pad) * 2)) / 2) * var(--tx-open))
  );
}

.app-module.has-tx-rows.is-tx-rows > .module-face {
  border-radius: var(--nested-radius);
}

body.is-modules-ready .app-module.has-tx-rows > .module-face {
  transition: border-radius var(--zoom-duration) cubic-bezier(0.32, 0.72, 0, 1);
}

.app-module.has-tx-rows.is-tx-rows:has(> .nested-list.is-expanded) > .module-face {
  opacity: 0;
  pointer-events: none;
  content-visibility: hidden;
}

.app-module.has-tx-rows > .nested-list {
  visibility: hidden;
  pointer-events: none;
}

.app-module.has-tx-rows.is-tx-rows > .nested-list,
.app-module.has-tx-rows.is-tx-returning > .nested-list {
  visibility: visible;
  transform: translateY(calc(((100% - var(--module-chrome-top)) / 2) * (1 - var(--tx-open))));
}

.app-module.has-tx-rows.is-tx-rows > .nested-list.is-expanded {
  transform: none;
}

.app-module.has-tx-rows.is-tx-rows:not(.is-tx-morphing) > .nested-list {
  pointer-events: auto;
}

.app-module.has-tx-rows > .nested-list.is-tx-flip > .nested-module {
  transition: none;
  will-change: transform, clip-path;
}

.app-module.has-tx-rows > .nested-list.is-tx-flip.is-tx-flip-run > .nested-module {
  transition:
    transform var(--list-move) cubic-bezier(0.32, 0.72, 0, 1),
    clip-path var(--list-move) cubic-bezier(0.32, 0.72, 0, 1);
}

html.is-content .app-module.has-tx-rows > .nested-list > .nested-module {
  background: transparent;
  color: #161616;
}

html.is-content .app-module.has-tx-rows > .nested-list > .nested-module > .module-fill.tone-gold {
  background: var(--tx-fill);
}

.app-module.has-tx-rows .module-fill.fill-sheet:has(> .txn-sheet) {
  min-height: 0;
  pointer-events: auto;
}

.app-module.has-tx-rows .txn-sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-width: none;
  contain: layout paint;
}

.app-module.has-tx-rows .txn-sheet::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-module.has-tx-rows .txn-spacer {
  flex: none;
  width: 100%;
  pointer-events: none;
}

.app-module.has-tx-rows .txn-line {
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce) {
  .app-module.has-tx-rows,
  .app-module.has-tx-rows > .module-face {
    transition: none;
  }
}

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

.stage-index {
  left: 52px;
}

.stage-settings {
  right: 56px;
  width: 292px;
  max-width: 292px;
  padding: 14px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--red) 16%, transparent);
  border-radius: 22px;
  background: var(--shell);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--red);
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  scrollbar-width: thin;
}

.stage-settings[hidden] {
  display: none;
}

.stage-settings__tabs {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  gap: 2px;
  margin: -4px 0 16px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
  box-shadow: 0 -8px 0 var(--shell), 0 8px 0 var(--shell);
}

.stage-settings__tab {
  flex: 1 1 0;
  margin: 0;
  padding: 0.38em 0.2em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.45;
  cursor: pointer;
}

.stage-settings__tab[aria-selected="true"] {
  background: var(--red);
  color: var(--shell);
  opacity: 1;
}

.stage-settings__tab:hover,
.stage-settings__tab:focus-visible {
  opacity: 1;
  outline: none;
}

.stage-settings__tab[aria-selected="true"]:hover,
.stage-settings__tab[aria-selected="true"]:focus-visible {
  color: var(--shell);
}

.stage-settings__panel[hidden] {
  display: none;
}

.stage-settings__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--red) 16%, transparent);
}

.stage-settings__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.stage-settings__col-name {
  font-weight: 500;
}

.stage-settings__col-tools {
  display: inline-flex;
  gap: 4px;
}

.stage-settings__type-toggle {
  margin: 0;
  padding: 0.22em 0.6em;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
  color: var(--red);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.55;
  cursor: pointer;
}

.stage-settings__type-toggle[aria-pressed="true"] {
  background: var(--red);
  color: var(--shell);
  opacity: 1;
}

.stage-settings__type-toggle:hover,
.stage-settings__type-toggle:focus-visible {
  opacity: 1;
  outline: none;
}

.stage-settings__type-toggle[aria-pressed="true"]:hover,
.stage-settings__type-toggle[aria-pressed="true"]:focus-visible {
  color: var(--shell);
}

.stage-settings__col .stage-settings__row--type {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.stage-settings__col .stage-settings__label-text {
  display: none;
}

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

.stage-settings__title {
  margin-bottom: 12px;
  font-weight: 500;
  opacity: 0.45;
}

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

.stage-index__group + .stage-index__group {
  margin-top: 10px;
}

.stage-index__label {
  margin: 0 0 6px;
  padding: 0;
  color: #6a6a6a;
  font: inherit;
  letter-spacing: normal;
  text-transform: lowercase;
}

.stage-index__link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1px 0 1px 10px;
  border: 0;
  background: transparent;
  appearance: none;
  color: #5d5d5d;
  font: inherit;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.stage-index__link.is-active {
  color: #1f1f1f;
}

.stage-index__link:hover,
.stage-index__link:focus-visible {
  color: #1f1f1f;
  text-decoration: underline;
  outline: none;
}

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

.stage-settings__section {
  margin: 14px 0 6px;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.45;
  text-transform: lowercase;
}

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

.stage-settings__hint {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  opacity: 0.45;
}

.stage-settings__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}

.stage-settings__topology {
  margin: 0 0 8px;
  padding-left: 10px;
  white-space: normal;
}

.stage-settings__choices--topology {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0 0 8px;
  padding-left: 10px;
}

.app-module > .topology-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-module.has-lines .topology-shell > .ledger-host {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
}

html:not(.is-content) .app-module.has-lines .topology-shell > .ledger-host {
  visibility: hidden;
}

.topology-shell .carousel__page > .nested-module {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
}

.grid-settings input[type="number"] {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.grid-settings input[type="number"] {
  width: 4.4em;
  text-align: right;
}

.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.stage-settings__label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-transform: lowercase;
  color: color-mix(in srgb, var(--red) 72%, transparent);
}

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

.stage-settings__swatch {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch, currentColor);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent);
  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: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stage-settings__field {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
}

.stage-settings__cap {
  width: auto;
  padding: 0 0.15em 0 0.45em;
  color: var(--red);
  font-size: 11px;
  line-height: 1;
  opacity: 0.5;
  text-align: left;
}

.stage-settings__step {
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.stage-settings__step:hover,
.stage-settings__step:focus-visible {
  background: var(--red);
  color: var(--shell);
  outline: none;
}

.stage-settings__choice {
  margin: 0;
  padding: 0.28em 0.62em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.45;
  cursor: pointer;
}

.stage-settings__choice[aria-pressed="true"] {
  background: var(--red);
  color: var(--shell);
  opacity: 1;
}

.stage-settings__choice:hover,
.stage-settings__choice:focus-visible {
  opacity: 1;
  outline: none;
}

.stage-settings__choice[aria-pressed="true"]:hover,
.stage-settings__choice[aria-pressed="true"]:focus-visible {
  color: var(--shell);
}

.stage-settings__choices {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--shell));
}

.stage-settings__choices--topology {
  flex-direction: column;
  align-items: stretch;
  border-radius: 16px;
}

.stage-settings__choices--topology .stage-settings__choice {
  text-align: left;
}

.stage-settings__input {
  width: 2.8em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.stage-settings__input--weight {
  width: 3.2em;
}

.stage-settings__input:focus {
  outline: none;
}

.module-fill .is-setting-hot {
  background-color: color-mix(in srgb, #ff2500 28%, transparent);
  box-shadow: inset 0 -1px 0 #ff2500;
}

.pad-guide {
  position: absolute;
  z-index: 5;
  border-style: solid;
  border-color: rgba(255, 37, 0, 0.28);
  pointer-events: none;
}

.pad-guide[data-edge="tb"] {
  border-top-color: rgba(255, 37, 0, 0.72);
  border-bottom-color: rgba(255, 37, 0, 0.72);
}

.pad-guide[data-edge="lr"] {
  border-right-color: rgba(255, 37, 0, 0.72);
  border-left-color: rgba(255, 37, 0, 0.72);
}

.stage-settings__color {
  width: 28px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.stage-settings__hex {
  color: var(--red);
  opacity: 0.55;
}

.stage-settings__split .stage-settings__hex {
  display: none;
}

.app-module.is-frame-hot {
  outline: 1px solid #ff2500;
  outline-offset: 3px;
}

.app-module.is-inner-hot .module-face {
  outline: 1px solid #ff2500;
  outline-offset: 2px;
}

.module-fill.is-color-hot {
  outline: 1px solid #ff2500;
  outline-offset: -1px;
}

.module-fill.is-rule-hot .fill-rule,
.module-fill.is-rule-hot .txn-line:not(.is-head),
.module-fill.is-line-hot .txn-line:not(.is-head),
.module-fill.is-out-hot .txn-line .money.is-out::before,
.module-fill.is-in-hot .txn-line .money.is-in::before,
.module-fill.is-gap-hot .fill-head,
.module-fill.is-gap-hot .txn-sheet {
  outline: 1px solid #ff2500;
  outline-offset: 1px;
}

.module-fill.is-arrow-hot .txn-line .money::before {
  outline: 1px solid #ff2500;
  outline-offset: 1px;
}

html.is-dark .stage-index {
  color: var(--ink);
}

html.is-dark .stage-settings {
  color: var(--red);
}

html.is-dark .stage-index__label {
  color: color-mix(in srgb, var(--ink) 46%, transparent);
}

html.is-dark .stage-index__link {
  color: color-mix(in srgb, var(--ink) 48%, transparent);
}

html.is-dark .stage-index__link.is-active,
html.is-dark .stage-index__link:hover,
html.is-dark .stage-index__link:focus-visible {
  color: var(--ink);
}

html.is-dark .stage-settings__section,
html.is-dark .stage-settings__cap,
html.is-dark .stage-settings__hint {
  color: var(--red);
}

@media (max-width: 760px) {
  .stage-index,
  .stage-settings {
    top: 12px;
    max-width: 46vw;
    max-height: 42vh;
  }

  .stage-index {
    left: 12px;
  }

  .stage-settings {
    right: 12px;
  }
}

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

