@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:root {
  --font-ui: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f5f4f1;
  --ink: #1a1916;
  --ink-2: #5b584f;
  --ink-3: #96928a;
  --line: #dedbd2;
  --line-soft: #e8e5dc;
  --on-ink: #fbfaf7;
  --shadow-obj: 0 1px 1.5px rgba(26, 25, 22, .04);
  --edge: inset 0 0 0 1px var(--line);
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --dur: 140ms;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --rail-w: 336px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  background: var(--paper);
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ink) 45%, transparent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.wrap {
  width: 100%;
  max-width: 1480px;
  margin: auto;
  padding: 22px 34px 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.micro {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.hair {
  height: 1px;
  background: var(--line-soft);
}

.hello {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 4px 0 17px;
}

.hello-avatar {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--edge), var(--shadow-obj);
  transition: transform 260ms var(--ease);
}
.hello-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hello-bubble {
  position: relative;
  max-width: 60ch;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 0.75rem 0.75rem 0.75rem 0rem;
  font-size: 1rem;
  line-height: 2rem;
  line-height: 1.45;
  box-shadow: var(--shadow-obj);
}
.hello-bubble::before {
  content: "";
  position: absolute;
  left: -0.74rem;
  bottom: -0.115rem;
  width: 1rem;
  height: 1rem;
  background: var(--ink);
  clip-path: path("M12 14 L12 0 Q10 11 0 14 Z");
}
.hello-bubble a {
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--on-ink) 45%, transparent);
  transition: text-decoration-color var(--dur) var(--ease);
}
.hello-bubble a:hover {
  text-decoration-color: var(--on-ink);
}

.site-footer {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}
.site-footer a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-3);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: 34px;
  align-items: start;
}

.stage {
  position: sticky;
  top: 20px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.sect {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sect-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sect-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}

.chart-container {
  background: var(--surface);
  aspect-ratio: 900/512.25;
  position: relative;
  border-radius: var(--r-lg);
  box-shadow: var(--edge), var(--shadow-obj);
  overflow: hidden;
}
.chart-container svg {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  line-height: normal;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
}
.chart-container .chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 13px;
}
.chart-container .chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  z-index: 5;
}
.chart-container .chart-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: chart-spin 0.8s linear infinite;
}
.chart-container .chart-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  z-index: 10;
}
.chart-container .chart-copy-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  mix-blend-mode: normal;
}
.chart-container .chart-copy-btn:hover {
  opacity: 1;
  background: var(--tint);
  color: var(--ink);
}
.chart-container .chart-copy-btn:active {
  transform: scale(0.95);
}
.chart-container:has(.chart-placeholder) .chart-copy-btn {
  display: none;
}

.timeline {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--edge), var(--shadow-obj);
  overflow: hidden;
}

.chart-nav-container {
  aspect-ratio: 25/1;
}
.chart-nav-container svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-nav-container .nav-x-axis .domain {
  display: none;
}
.chart-nav-container .nav-x-axis .tick line {
  stroke: #aaa;
}
.chart-nav-container .nav-x-axis .tick text {
  fill: #aaa;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
}
.chart-nav-container .nav-brush .overlay {
  cursor: crosshair;
}
.chart-nav-container .nav-brush .selection {
  cursor: move;
  rx: 0;
  ry: 0;
  fill: rgba(0, 0, 0, 0.2);
  stroke: rgba(0, 0, 0, 0);
  stroke-width: 0;
}
.chart-nav-container .nav-brush .handle {
  cursor: ew-resize;
  rx: 2;
  ry: 2;
  fill: rgba(0, 0, 0, 0.2666666667);
  stroke: rgba(0, 0, 0, 0.2666666667);
  stroke-width: 0;
  display: block;
  opacity: 0;
}

.timeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 9px 9px 11px;
  border-top: 1px solid var(--line-soft);
}

.date-shortcuts {
  display: flex;
  align-items: center;
  gap: 2px;
}

.date-shortcut {
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.date-shortcut:hover {
  color: var(--ink);
  background: var(--tint);
}
.date-shortcut.active, .date-shortcut[data-active=true] {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-range input[type=date] {
  padding: 4px 7px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.date-range input[type=date]:hover {
  box-shadow: var(--edge);
  background: var(--tint);
}
.date-range input[type=date]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.date-range input[type=date]::-webkit-calendar-picker-indicator {
  opacity: 0.35;
  cursor: pointer;
}
.date-range input[type=date]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.8;
}

.date-range-arrow {
  color: var(--ink-3);
  font-size: 11px;
}

.date-reset {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.date-reset svg {
  width: 13px;
  height: 13px;
}
.date-reset:hover {
  background: var(--tint);
  color: var(--ink);
}

.seg,
.chart-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--edge), var(--shadow-obj);
}

.seg-opt,
.chart-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.seg-opt:hover,
.chart-switch-btn:hover {
  color: var(--ink);
  background: var(--tint);
}

.chart-switch--mono .chart-switch-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.chart-switch-btn[data-active=true] {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}
.chart-switch-btn[data-active=true]:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.seg--multi .seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg--multi .seg-opt:has(input:checked) {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.seg--binary {
  position: relative;
  cursor: pointer;
}
.seg--binary input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg--binary input:not(:checked) ~ .seg-off,
.seg--binary input:checked ~ .seg-on {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.label-controls {
  display: flex;
  gap: 5px;
}

.switch-group {
  display: flex;
  flex-direction: column;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3.5px 0;
  cursor: pointer;
}
.switch-row > span:first-child {
  font-size: 12.5px;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.switch-row:hover > span:first-child {
  color: var(--ink);
}
.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sw {
  position: relative;
  flex: none;
  width: 30px;
  height: 17px;
  border-radius: 100px;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-obj);
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.14), var(--shadow-obj);
  transition: transform 180ms var(--ease);
}

input:checked + .sw {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-obj);
}
input:checked + .sw::after {
  transform: translateX(13px);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--edge), var(--shadow-obj);
  transition: box-shadow var(--dur) var(--ease);
}
.input-wrapper:focus-within {
  box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px color-mix(in oklab, var(--ink) 9%, transparent);
}
.input-wrapper .search-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.input-wrapper input[type=text] {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 12.5px;
  color: var(--ink);
}
.input-wrapper input[type=text]:focus {
  outline: none;
}
.input-wrapper input[type=text]::placeholder {
  color: var(--ink-3);
}

.search-container {
  position: relative;
}

.search-spinner {
  display: none;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.search-spinner.active {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes chart-spin {
  to {
    transform: rotate(360deg);
  }
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--edge), 0 1px 2px rgba(26, 25, 22, 0.06), 0 12px 32px -8px rgba(26, 25, 22, 0.2);
}
.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.search-result-item:hover, .search-result-item.active {
  background: var(--tint);
}
.search-result-item .asset-info {
  flex: 1;
  min-width: 0;
}
.search-result-item .asset-toggle {
  opacity: 0;
}
.search-result-item:hover .asset-toggle, .search-result-item.active .asset-toggle {
  opacity: 1;
}

.asset-exchange {
  flex: none;
}

.exchange-flag,
.asset-exchange-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 4px;
  border-radius: var(--r-xs);
  background: var(--tint);
}

.quick-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.quick-add-btn {
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-obj);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.quick-add-btn:hover {
  box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-obj);
  color: var(--ink);
}
.quick-add-btn:active {
  transform: scale(0.96);
}

.quick-add-synth {
  padding: 3px 8px;
  background: transparent;
  border: 1px dashed var(--line);
  box-shadow: none;
}
.quick-add-synth::before {
  content: "∑";
  margin-right: 4px;
  opacity: 0.5;
  font-family: var(--font-ui);
}
.quick-add-synth:hover {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}

.assets-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.asset-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--edge), var(--shadow-obj);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.asset-item:hover, .asset-item[data-open=true] {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 26%, var(--line)), var(--shadow-obj);
}

.asset-item-main {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
}

.asset-color {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.16), var(--shadow-obj);
  transition: transform var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.asset-color:hover {
  transform: scale(1.09);
}
.asset-color::-webkit-color-swatch-wrapper {
  padding: 0;
}
.asset-color::-webkit-color-swatch {
  border: none;
  border-radius: var(--r-sm);
}
.asset-color::-moz-color-swatch {
  border: none;
  border-radius: var(--r-sm);
}

.asset-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.asset-symbol {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.asset-name {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-mode-badge {
  flex: none;
  padding: 2.5px 5px;
  border-radius: var(--r-xs);
  background: var(--tint);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--dur) var(--ease);
}

.asset-item[data-open=true] .asset-mode-badge {
  opacity: 0;
}

.asset-disclosure,
.asset-move-up,
.asset-remove {
  flex: none;
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  opacity: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.asset-disclosure svg,
.asset-move-up svg,
.asset-remove svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}
.asset-disclosure:hover,
.asset-move-up:hover,
.asset-remove:hover {
  background: var(--tint);
  color: var(--ink);
}
.asset-disclosure:disabled,
.asset-move-up:disabled,
.asset-remove:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.asset-item:hover .asset-disclosure,
.asset-item:hover .asset-move-up,
.asset-item:hover .asset-remove,
.asset-item[data-open=true] .asset-disclosure,
.asset-item[data-open=true] .asset-move-up,
.asset-item[data-open=true] .asset-remove {
  opacity: 1;
}
.asset-item:hover .asset-move-up:disabled,
.asset-item[data-open=true] .asset-move-up:disabled {
  opacity: 0.22;
}

.asset-disclosure svg {
  transition: transform 200ms var(--ease);
}

.asset-item[data-open=true] .asset-disclosure svg {
  transform: rotate(180deg);
}

.asset-item-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease);
}
.asset-item-detail > div {
  overflow: hidden;
}

.asset-item[data-open=true] .asset-item-detail {
  grid-template-rows: 1fr;
}

.asset-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  background: var(--tint);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.detail-row > .micro {
  flex: none;
  width: 40px;
}

.asset-indicator-toggles {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.asset-toggle {
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.asset-toggle:hover {
  color: var(--ink);
  background: var(--surface);
}
.asset-toggle[data-active=true] {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}
.asset-toggle[data-active=true]:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.index-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.index-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.index-top-slider {
  flex: 1;
  min-width: 0;
  height: 16px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.index-top-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.index-top-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-obj);
  transition: transform var(--dur) var(--ease);
}
.index-top-slider:hover::-webkit-slider-thumb {
  transform: scale(1.14);
}
.index-top-slider::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.index-top-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.index-top-val {
  flex: none;
  min-width: 20px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.index-sell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.index-sell > span {
  font-size: 12.5px;
  color: var(--ink-2);
}
.index-sell input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.index-sell.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.color-schemes-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.color-scheme-btn {
  position: relative;
  padding: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-obj);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.color-scheme-btn:hover {
  transform: translateY(-2px);
}
.color-scheme-btn[data-active=true], .color-scheme-btn.active {
  box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-obj);
}
.color-scheme-btn[data-active=true] .scheme-name, .color-scheme-btn.active .scheme-name {
  background: var(--ink);
  color: var(--on-ink);
}

.scheme-thumb {
  display: block;
  width: 100%;
  height: auto;
}

.scheme-name {
  display: block;
  padding: 3.5px 0;
  background: var(--surface);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.color-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.color-control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.color-control-group label {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-align: center;
}
.color-control-group input[type=color] {
  width: 100%;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.16), var(--shadow-obj);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.color-control-group input[type=color]:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.34), var(--shadow-obj);
}
.color-control-group input[type=color]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-control-group input[type=color]::-webkit-color-swatch {
  border: none;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.16);
}
.color-control-group input[type=color]::-moz-color-swatch {
  border: none;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.16);
}

.chart-tooltip {
  position: fixed;
  z-index: 1000;
  padding: 9px 11px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-md);
  font-size: 11.5px;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(26, 25, 22, 0.06), 0 12px 32px -8px rgba(26, 25, 22, 0.3);
}
.chart-tooltip .tooltip-date {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.chart-tooltip .tooltip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
}
.chart-tooltip .tooltip-color {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chart-tooltip .tooltip-symbol {
  min-width: 48px;
  font-family: var(--font-mono);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .work {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .stage {
    position: static;
  }
  .wrap {
    padding: 16px 18px 40px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 12px 12px 32px;
  }
  .color-schemes-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .date-shortcuts {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
