.trade-notes {
  padding-block: clamp(3rem, 5.3vw, 6rem);
}
.trade-notes h2 {
  max-width: 17ch;
}
.trade-notes p {
  line-height: 1.58;
}
.trade-notes figure {
  min-width: 0;
}
.trade-notes figcaption {
  font-size: 0.875rem;
  line-height: 1.4;
}
.tool h4 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 0.9rem;
}
.tool textarea,
.tool input:not([type="checkbox"]):not([type="range"]),
.tool select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid currentColor;
  color: var(--ink);
  background: var(--paper);
  border-radius: 2px;
  max-width: 100%;
}
.tool textarea {
  display: block;
  width: 100%;
  resize: vertical;
}
.tool input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--accent);
}
.tool label:has(select),
.tool label:has(textarea),
.tool label:has(input[type="text"]),
.tool label:has(input:not([type])) {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
}
.tool label:has(textarea) {
  width: 100%;
}
.tool label > span {
  font-weight: 400;
}
.tool section > h3 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.tool section > h3 + p {
  margin: 0.55rem 0 1rem;
}
.tool .takeaway {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}
.tool .takeaway:hover {
  text-decoration-thickness: 0.2em;
}
.tool textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.tool button:disabled {
  opacity: 0.62;
}
@media (max-width: 720px) {
  .trade-notes {
    padding-block: 2.7rem;
  }
  .tool input:not([type="checkbox"]),
  .tool select,
  .tool textarea {
    font-size: 1rem;
  }
}
.electrical-spread {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8vw;
  align-items: center;
}
.electrical-spread p {
  max-width: 41ch;
  margin-top: 1rem;
}
.electrical-spread img {
  height: 11rem;
  object-position: center 55%;
}
.electrical-spread figcaption {
  border-top: 2px solid var(--ink);
  padding: 0.45rem 0;
}
.lighting-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  margin-top: 2rem;
}
.lighting-key > div {
  padding: 1.1rem;
  border-inline-end: 1px solid var(--ink);
}
.lighting-key > div:last-child {
  border: 0;
}
.lighting-key dt {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.lighting-key dd {
  margin-top: 0.5rem;
}
.lighting-key i {
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--ink);
  background: var(--panel);
  border-radius: 50%;
}
.lighting-key .task {
  border-radius: 0;
  transform: rotate(45deg);
  width: 1.05rem;
  height: 1.05rem;
}
.lighting-key .accent {
  box-shadow: inset 0 0 0 3px var(--paper);
  background: var(--ink);
}
.studio-frame {
  display: block;
}
.studio-frame > div:first-child {
  margin-bottom: 1.5rem;
}
.studio-frame > div:first-child p {
  max-width: 44ch;
}
.studio .tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.studio .tool fieldset {
  grid-column: 1;
  margin: 0;
}

.counter,
.desk,
.sofa {
  left: 4%;
  top: 6%;
  width: 50%;
  height: 25%;
}
.island,
.seat,
.armchair {
  left: 35%;
  top: 55%;
  width: 38%;
  height: 24%;
}
.cabinet,
.shelf,
.art {
  right: 3%;
  top: 10%;
  width: 18%;
  height: 42%;
}

.lamp-0 {
  top: 43%;
  left: 24%;
}
.lamp-1 {
  top: 16%;
  left: 48%;
}
.lamp-2 {
  top: 18%;
  right: 24%;
}

.studio .tool .result {
  grid-column: 1;
  margin: 0;
}
.house-board {
  grid-column: 2;
  grid-row: 1/5;
  align-self: start;
  padding: 1.4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.schedule-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.schedule-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem;
}
.schedule-list li span {
  grid-column: 1;
}
.schedule-list li button {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
@media (max-width: 720px) {
  .electrical-spread {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lighting-key {
    grid-template-columns: 1fr;
  }
  .lighting-key > div {
    border: 0;
    border-bottom: 1px solid var(--ink);
  }
  .studio .tool {
    display: block;
  }
  .studio .tool fieldset,
  .floor-plan,
  .house-board {
    margin: 1rem 0;
  }
  .house-board {
    padding: 1rem;
  }
}

.studio .tool > .workbench-controls {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: start;
}
.studio .tool > .house-board {
  grid-row: 1;
}
.workbench-controls > fieldset + fieldset {
  margin-top: 1.15rem;
}
.workbench-controls > fieldset + figure {
  margin-top: 1rem;
}
.workbench-controls > fieldset + article {
  margin-top: 1.1rem;
}
