.desk,
.research-archive {
  --panel-bg: #101921;
  --desk-line: #2b3840;
}
.desk {
  padding-block: 24px 46px;
}
.desk .back {
  margin: 0 0 14px;
}
.desk-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}
.desk-heading > div:first-child {
  margin-right: auto;
}
.desk-caption {
  font:
    12px/1.5 Consolas,
    monospace;
  color: var(--mint);
  letter-spacing: 0.075em;
  margin: 0 0 6px;
}
.desk-heading h1 {
  font-size: clamp(34px, 3.05vw, 50px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.desk-intro {
  font-size: 14px;
  line-height: 1.55;
  color: #aab7be;
  margin: 12px 0 20px;
  max-width: 92ch;
}
.desk-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid #34434b;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(114deg, #1a2c2c 0%, #132027 42%, #121c25 66%);
  margin: 18px 0 23px;
}
.estimate {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.estimate-label,
.panel-title,
.archive-head,
.quote-top,
.quote-amount,
.desk-stats,
.position-top,
.progress-label,
.receipt,
.asset-identity,
.quote-foot,
.position-values,
.demo-entry,
.report-identity {
  display: flex;
  align-items: center;
}
.estimate-label {
  gap: 9px;
  color: #bdd1c9;
}
.estimate-label .ico {
  color: var(--mint);
}
.estimate-label h2,
.quote-box h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 520;
  letter-spacing: 0;
}
.net {
  font-size: clamp(38px, 3.5vw, 60px);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 2px;
}
.estimate p,
.desk-intro,
.model-note,
.next-step,
.desk-empty,
.quote-foot,
.plot-scale,
.case-panel > p,
.telegram-panel > p {
  color: #a6b5bf;
}
.estimate p {
  font-size: 13px;
}
.desk-stats {
  gap: clamp(12px, 2.6vw, 48px);
  padding: 16px 0 0;
  margin: 17px 0 0;
  border-top: 1px solid #344548;
}
.desk-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.desk-stats dt,
.position-values small,
.progress-label span,
.quote-foot,
.model-note,
.asset-identity small,
.calendar-event small {
  font-size: 13px;
  line-height: 1.4;
}
.desk-stats dt,
.position-values small,
.progress-label span,
.asset-identity small,
.calendar-event small {
  color: #a3b2bc;
}
.desk-stats dd {
  margin: 0;
  font:
    20px/1.1 Consolas,
    monospace;
}
.quote-box {
  min-width: 0;
  padding: 20px 26px;
  background: #121c25;
  border: 1px solid #34434b;
  border-radius: 8px;
}
.desk-overview .quote-box {
  border: 0;
  border-left: 1px solid #32434a;
  border-radius: 0;
  background: transparent;
}
.quote-top {
  justify-content: space-between;
  gap: 8px;
}
.quote-top h3 {
  color: #bfcbd1;
}
.quote-asset select,
.quote-asset > span {
  font:
    13px Consolas,
    monospace;
  letter-spacing: 0.02em;
  color: #dce7e7;
}
.quote-asset select {
  padding: 5px;
  background: #19262e;
  border: 1px solid #3c4d55;
  border-radius: 4px;
  cursor: pointer;
}
.quote-amount {
  gap: 10px;
  margin: 5px 0 2px;
}
.quote-amount strong {
  font-size: 25px;
  letter-spacing: -0.045em;
  font-weight: 550;
}
.quote-amount > span {
  color: #b7c4ca;
  font:
    12px Consolas,
    monospace;
}
.periods {
  margin-left: auto;
  display: flex;
  border: 1px solid #35454c;
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.periods button {
  font:
    12px Consolas,
    monospace;
  padding: 4px 7px;
  border-radius: 3px;
  color: #a1b0b9;
}
.periods button[aria-pressed="true"] {
  background: #304a42;
  color: #c4ebdd;
}
.plot {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 7px 0 4px;
}
.plot svg {
  width: 0;
  flex: 1;
  height: 85px;
  overflow: visible;
}
.plot-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
  font:
    11px Consolas,
    monospace;
}
.quote-foot {
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #29363e;
  padding-top: 7px;
  font-size: 12px;
}
.quote-foot a {
  color: #b6d5c9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.desk-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr);
  align-items: start;
  gap: 23px;
}
.desk-stack,
.directory-aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.desk-panel {
  background: #111a23;
  border: 1px solid #2b3942;
  border-radius: 8px;
  padding: 21px 24px;
  min-width: 0;
}
.panel-title {
  gap: 9px;
  margin: 0 0 5px;
}
.panel-title > .ico {
  color: var(--mint);
}
.panel-title h2,
.advice-panel h2,
.case-panel h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 550;
  margin: 0;
}
.position-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.position-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.position-top,
.progress-label,
.receipt {
  justify-content: space-between;
  gap: 12px;
}
.asset-identity {
  gap: 11px;
  min-width: 0;
}
.asset-identity > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.asset-identity b,
.asset-identity a {
  font-size: 16px;
  font-weight: 570;
  line-height: 1.2;
}
.asset-identity small {
  display: block;
}
.asset-identity .logo {
  width: 37px;
  height: 37px;
}
.progress-label {
  margin: 16px 0 5px;
}
.progress-label strong {
  font:
    13px Consolas,
    monospace;
  color: #c3e7d9;
}
.position-item .progress {
  height: 4px;
  margin: 0;
}
.next-step {
  margin: 8px 0 13px;
  font-size: 14px;
  line-height: 1.45;
}
.position-values {
  gap: clamp(18px, 5vw, 75px);
  align-items: flex-start;
}
.position-values small {
  display: block;
  margin-bottom: 2px;
}
.position-values b {
  font-size: 17px;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}
.model-detail,
.model-note {
  display: block;
  margin-top: 9px;
}
.model-detail summary {
  font-size: 13px;
  color: var(--mint);
  cursor: pointer;
  width: fit-content;
  padding: 2px 0;
}
.model-detail p {
  margin-top: 6px;
  color: #b7c5cb;
  font-size: 14px;
}
.desk-empty {
  padding: 14px 0;
}
.calendar-event {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.calendar-event:last-child {
  border: 0;
  padding-bottom: 0;
}
.calendar-event time {
  border: 1px solid #3a4c51;
  background: #17252b;
  border-radius: 5px;
  display: grid;
  align-content: center;
  text-align: center;
  min-height: 54px;
  color: #c3dfd1;
}
.calendar-event time b {
  font:
    20px/1.1 Consolas,
    monospace;
}
.calendar-event time small {
  font:
    11px Consolas,
    monospace;
  text-transform: uppercase;
  color: #bbcbc5;
}
.calendar-event strong,
.calendar-event small,
.calendar-event em {
  display: block;
}
.calendar-event strong {
  font-size: 15px;
  font-weight: 580;
}
.calendar-event em {
  font:
    12px/1.5 Consolas,
    monospace;
  color: #b7c9c2;
  margin-top: 4px;
}
.advice-panel {
  background: linear-gradient(140deg, #1e3231, #131f27 75%);
}
.advice-panel .side-emblem {
  margin: 0 0 15px;
}
.advice-panel p,
.telegram-panel p,
.case-panel > p {
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 16px;
  color: #b3bfc6;
}
.receipt {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.receipt:last-child {
  border: 0;
  padding-bottom: 0;
}
.receipt > strong {
  color: #bbdecd;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 550;
}
.receipt > strong small {
  font:
    12px Consolas,
    monospace;
}
.directory-aside {
  align-self: start;
}
.demo-entry {
  padding: 15px 18px;
  border: 1px solid #33444b;
  border-radius: 7px;
  gap: 11px;
  background: #131e26;
}
.demo-entry > .ico {
  color: var(--mint);
}
.demo-entry > .ico:last-child {
  margin-left: auto;
  width: 14px;
}
.demo-entry b,
.demo-entry small {
  display: block;
}
.demo-entry b {
  font-size: 15px;
  font-weight: 550;
}
.demo-entry small {
  font-size: 12px;
  color: #a8b5bf;
}
.research-archive {
  padding-bottom: 44px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.archive-item {
  padding: 20px 24px 20px 0;
  min-width: 0;
}
.archive-item + .archive-item {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.archive-item:hover {
  background: #111c22;
}
.archive-head {
  gap: 10px;
  font-size: 16px;
  font-weight: 550;
}
.archive-head .ico {
  margin-left: auto;
  width: 15px;
  color: #a8b6bc;
}
.archive-item > strong {
  display: block;
  font-size: clamp(25px, 2.2vw, 36px);
  font-weight: 550;
  letter-spacing: -0.04em;
  margin: 13px 0 4px;
}
.archive-item p {
  font-size: 14px;
  color: #b7c3cb;
  max-width: 43ch;
}
.archive-item > small {
  display: inline-block;
  font:
    12px Consolas,
    monospace;
  color: #a0b9ae;
  margin-top: 13px;
}
.logo.uniswap {
  color: #d6ddd6;
  background: #26302d;
}
.report-identity {
  gap: 12px;
}
.report-identity .logo {
  width: 43px;
  height: 43px;
}
.case-panel dl {
  margin: 15px 0 0;
  display: grid;
  gap: 0;
}
.case-panel dl > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.case-panel dt {
  font-size: 14px;
  color: #aab8bf;
}
.case-panel dd {
  margin: 0;
  font-size: 15px;
}
@media (min-width: 1400px) {
  .desk {
    max-width: 1450px;
  }
  .desk-overview {
    grid-template-columns: 0.94fr 1.06fr;
  }
  .plot svg {
    height: 98px;
  }
}
@media (max-width: 900px) {
  .desk-columns {
    grid-template-columns: minmax(0, 1.45fr) minmax(218px, 1fr);
    gap: 14px;
  }
  .desk-panel,
  .quote-box,
  .estimate {
    padding: 17px;
  }
  .desk-stats {
    gap: 18px;
  }
  .directory-aside {
    gap: 11px;
  }
  .demo-entry {
    min-height: 58px;
  }
}
@media (max-width: 700px) {
  .desk {
    padding-top: 12px;
  }
  .desk .back {
    min-height: 40px;
    margin-bottom: 7px;
  }
  .desk-heading {
    flex-wrap: wrap;
  }
  .desk-heading h1 {
    font-size: 34px;
  }
  .desk-caption {
    font-size: 11px;
  }
  .desk-intro {
    font-size: 13px;
    margin: 10px 0 16px;
  }
  .desk-overview {
    grid-template-columns: 1fr;
  }
  .desk-overview .quote-box {
    border: 0;
    border-top: 1px solid #35434a;
  }
  .desk-stats {
    justify-content: space-between;
  }
  .desk-columns {
    grid-template-columns: 1fr;
  }
  .desk-stack {
    gap: 14px;
  }
  .desk-panel h2 {
    font-size: 20px;
  }
  .periods button {
    min-height: 34px;
    min-width: 36px;
  }
  .quote-asset select {
    min-height: 36px;
  }
  .plot svg {
    height: 83px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-item,
  .archive-item + .archive-item {
    padding: 16px 0;
    border-left: 0;
  }
  .archive-item + .archive-item {
    border-top: 1px solid var(--line);
  }
  .archive-item > strong {
    margin-top: 8px;
  }
  .research-archive {
    padding-bottom: 25px;
  }
  .case-panel dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .case-panel .archive-head {
    align-items: flex-start;
  }
  .desk-heading .primary,
  .desk-heading .secondary {
    font-size: 12px;
    padding-inline: 12px;
  }
  .model-detail summary {
    padding-block: 8px;
  }
  .position-values {
    flex-wrap: wrap;
    gap: 7px 20px;
  }
}
@media (max-width: 420px) {
  .desk-heading > div:first-child {
    flex-basis: 100%;
  }
  .desk-heading {
    gap: 8px;
  }
  .desk-overview {
    margin-block: 14px;
  }
  .desk-panel,
  .estimate,
  .quote-box {
    padding: 16px;
  }
  .panel-title h2 {
    font-size: 19px;
  }
  .quote-foot {
    font-size: 11px;
  }
  .position-top {
    gap: 6px;
  }
  .asset-identity {
    gap: 8px;
  }
  .receipt > strong {
    font-size: 14px;
  }
  .net {
    font-size: 38px;
  }
}
@media print {
  .quote-box {
    border-color: #bbb;
    background: white;
    break-inside: avoid;
  }
  .quote-box h3,
  .quote-amount strong,
  .quote-foot,
  .quote-foot a,
  .plot-scale,
  .quote-asset span {
    color: #333;
  }
  .periods {
    display: none;
  }
  .plot path[stroke="#9bdac2"] {
    stroke: #286a55;
  }
}
.position-consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aec9bf;
  font-size: 13px;
  padding: 8px 0 1px;
}
.position-consult .ico {
  width: 15px;
  height: 15px;
}
.demo-alerts > p,
.demo-alerts details p {
  font-size: 14px;
  color: #a9b8c1;
  line-height: 1.5;
  margin: 9px 0;
}
.demo-alerts details {
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  margin-top: 10px;
}
.demo-alerts summary {
  cursor: pointer;
  min-height: 38px;
}
.demo-alerts summary small {
  font-size: 12px;
  color: #acb8bf;
}
.demo-alerts summary strong {
  display: block;
  font-size: 15px;
  margin-left: 18px;
}
.demo-alerts .textlink {
  font-size: 13px;
}
@media (max-width: 700px) {
  .position-consult {
    min-height: 44px;
  }
}
.market-empty {
  align-self: center;
  padding: 24px 28px;
}
.market-empty h3 {
  font-size: 19px;
}
.market-empty p {
  font-size: 14px;
  color: #adbbc4;
  margin: 6px 0 12px;
}

@media screen {
  .archive-band {
    background: #e7edea;
    color: #19262c;
    border-block: 1px solid #c4ceca;
    --line: #b8c5c0;
  }
  .archive-band .research-archive { padding-block: clamp(32px, 4vw, 64px); }
  .archive-band .sec-head { margin-bottom: 20px; }
  .archive-band .archive-item { transition: background-color .18s; }
  .archive-band .archive-item:hover { background: #dce6e0; }
  .archive-band .archive-item > strong {
    font-size: clamp(33px, 3.1vw, 51px);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
  }
  .archive-band .archive-item p { color: #39494f; }
  .archive-band .archive-item > small, .archive-band .archive-head .ico { color: #41584f; }
  .archive-band .logo { width: 29px; height: 29px; }
  .archive-item:focus-visible { outline-color: #326952; }
  .desk-overview { background: #14212a; border-radius: 4px; }
  .estimate { border-left: 3px solid #8fbfae; }
  .estimate .net { font-variant-numeric: tabular-nums; }
  .advice-panel { background: #16232b; }
  .desk-heading .desk-caption {
    color: #b9d4c8;
    font-family: inherit;
    letter-spacing: .01em;
  }
  .desk-intro { max-width: 76ch; }
  .desk-panel, .demo-entry { border-radius: 4px; }
  .position-item .next-step { color: #d7e0e2; }
  .desk-panel .position-consult:hover, .side-extra a:hover { text-decoration: underline; }
}
@media (max-width: 700px) {
  .archive-band .archive-grid { grid-template-columns: 1fr; }
  .archive-band .archive-item, .archive-band .archive-item + .archive-item {
    padding: 20px 0;
    border-left: 0;
  }
  .archive-band .archive-item + .archive-item { border-top: 1px solid var(--line); }
  .archive-band .archive-item > strong { margin: 10px 0 3px; }
  .archive-band .archive-item > small { margin-top: 8px; }
}

