.filing-desk {
  display: grid;
  grid-template-columns: minmax(230px, .74fr) minmax(330px, 1.26fr);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 4px var(--ink);
  overflow: hidden;
  background: #fffdf3;
}

.desk-exhibit {
  display: grid;
  grid-template-rows: auto minmax(105px, 1fr) auto;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 19px 24px 22px;
  background-color: var(--tint);
  background-image: radial-gradient(color-mix(in srgb, var(--tone) 30%, transparent) 1px, transparent 1px);
  background-size: 7px 7px;
  border-right: 2px solid var(--ink);
}

.desk-draft, .desk-round {
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.desk-draft {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fffdf0;
}

.desk-draft i { width: 6px; height: 6px; background: #a57237; }
.desk-item {
  place-self: center;
  width: min(200px, 80%);
  height: 135px;
  object-fit: contain;
  image-rendering: pixelated;
}
.desk-exhibit-copy h3 {font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.08;}
.desk-exhibit-copy p { max-width: 33ch; margin-top: 5px; font-size: 1rem; line-height: 1.35; }

.desk-paper { display: grid; align-content: center; gap: 16px; padding: 22px clamp(20px, 3.4vw, 46px); }
.desk-paper-head, .desk-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.desk-title { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 720; letter-spacing: -.035em; }
.desk-round { color: #65616b; }
.desk-control { min-width: 0; }
.desk-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: calc(100% - 38px);
  height: 30px;
  padding: 0;
  margin: 0 19px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  accent-color: #90b85a;
}
.desk-range:focus-visible { outline: 3px solid #7153cf; outline-offset: 3px; }
.desk-range::-webkit-slider-runnable-track {
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  background: linear-gradient(90deg, #a8ce71 var(--stake-fill), #dcdbd1 var(--stake-fill));
}
.desk-range::-moz-range-track { height: 6px; border: 1.5px solid var(--ink); border-radius: 1px; background: #dcdbd1; }
.desk-range::-moz-range-progress { height: 6px; background: #a8ce71; }
.desk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 24px;
  width: 26px;
  margin-top: -9px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 2px 2px var(--ink);
  background: repeating-linear-gradient(90deg, transparent 0 3px, #819150 3px 5px) center/11px 9px no-repeat, var(--lime);
  cursor: grab;
}
.desk-range::-moz-range-thumb {
  height: 20px;
  width: 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 2px 2px var(--ink);
  background: repeating-linear-gradient(90deg, transparent 0 3px, #819150 3px 5px) center/11px 9px no-repeat, var(--lime);
  cursor: grab;
}
.desk-range:active::-webkit-slider-thumb { cursor: grabbing; }
.desk-detents { display: flex; justify-content: space-between; gap: 2px; }
.desk-detents button {
  min-width: 62px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font: 600 1rem Outfit, sans-serif;
}
.desk-detents [aria-pressed="true"] { background: #e6f2d5; border-color: #789651; }
.desk-detents button:hover { background: #e6e6d9; }
.desk-estimate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 0;
  border-top: 1.5px dashed #bcb9a9;
  border-bottom: 1.5px dashed #bcb9a9;
}
.desk-estimate > div { min-width: 0; }
.desk-estimate > div + div { border-left: 1px solid #d3d0c1; padding-left: 18px; }
.desk-heading, .desk-impact { display: block; font-size: .95rem; color: #575460; }
.desk-estimate strong { display: block; margin: 5px 0; font: 700 clamp(1.25rem, 2.15vw, 1.75rem) var(--pixel); line-height: 1.15; letter-spacing: -.04em; }
.desk-impact { font-size: .9rem; }
[data-desk-savings] { color: #426032; }
.desk-comparison {
  min-width: 0;
  border: 1px solid #aaa796;
  border-radius: 4px;
  background: #f6f6ea;
}
.desk-comparison summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.desk-comparison summary::-webkit-details-marker { display: none; }
.desk-comparison summary::after {
  content: "";
  grid-area: 1 / 2;
  align-self: center;
  width: 8px;
  height: 8px;
  margin: 0 3px 4px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.desk-comparison[open] summary::after { margin: 4px 3px 0; transform: rotate(225deg); }
.desk-comparison summary:focus-visible { outline: 3px solid #7153cf; outline-offset: 2px; }
.desk-compare-title { font-weight: 700; }
.desk-compare-note, .desk-outcomes { grid-column: 1 / -1; }
.desk-compare-note { color: #575460; font-size: .9rem; line-height: 1.35; }
.desk-outcomes { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.desk-outcomes > span { color: #393645; font-size: .9rem; }
.desk-outcomes strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.desk-compare-body { margin: 0 14px; padding: 10px 0 12px; border-top: 1px dashed #bcb9a9; }
.desk-compare-body dl { display: grid; gap: 4px; margin: 0; }
.desk-compare-body dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.desk-compare-body [hidden] { display: none; }
.desk-compare-body dt, .desk-compare-body dd, .desk-compare-body p { font-size: .92rem; line-height: 1.4; }
.desk-compare-body dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desk-compare-body p { margin: 8px 0 0; color: #575460; }
.desk-back { min-height: 40px; padding: 5px 0; border: 0; background: transparent; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.desk-file { min-width: min(180px, 55%); min-height: 44px; padding: 9px 16px; font-size: 1.03rem; }
.desk-stamp-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--ink);
  clip-path: polygon(30% 5%,70% 5%,70% 15%,80% 15%,80% 32%,65% 32%,65% 49%,85% 49%,85% 60%,98% 60%,98% 77%,2% 77%,2% 60%,15% 60%,15% 49%,35% 49%,35% 32%,20% 32%,20% 15%,30% 15%,30% 5%,30% 87%,98% 87%,98% 97%,2% 97%,2% 87%,30% 87%);
}

@media(max-width: 700px) {
  .filing-desk { grid-template-columns: minmax(150px,.72fr) minmax(250px,1.28fr); }
  .desk-exhibit { padding: 14px; }
  .desk-paper { padding: 18px 14px; gap: 13px; }
  .desk-estimate > div + div { padding-left: 10px; }
  .desk-file { min-width: auto; }
}
@media(max-width: 520px) {
  .filing-desk { grid-template-columns: 1fr; }
  .desk-exhibit {
    grid-template-columns: minmax(65px, 23%) 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 10px;
    padding: 12px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .desk-draft { grid-column: 2; font-size: .67rem; }
  .desk-item { grid-column: 1; grid-row: 1 / 3; width: 100%; height: 80px; }
  .desk-exhibit-copy { grid-column: 2; }
  .desk-exhibit-copy h3 { font-size: 1.35rem; }
  .desk-exhibit-copy p { font-size: 1rem; }
  .desk-estimate strong { font-size: clamp(1.15rem, 4.8vw, 1.4rem); }
  .desk-paper { padding: 16px; }
}
