.portfolio-panel[data-view="online"] {
  width: min(530px, calc(100% - 40px));
  background: transparent;
  box-shadow: none;
}

.portfolio-panel[data-view="online"] header {
  order: 1;
  justify-content: flex-end;
  padding: 8px 0 0;
}

.portfolio-panel[data-view="online"] .portfolio-body {
  padding: 0;
}

.contact-card {
  display: grid;
  grid-template-rows: auto 1fr;
  box-sizing: border-box;
  aspect-ratio: 90 / 55;
  min-width: 0;
  background-color: #f4e9d3;
  background-size: 100% 100%;
  border: 1px solid #bfa88a;
  color: #342920;
}

.desk-contact .contact-card {
  box-shadow: 2px 4px 9px #3c291b3f, 1px 2px 0 #b79876;
}

.contact-card a {
  color: #364f42;
  text-underline-offset: .15em;
}

.contact-card .contact-file {
  margin: 0;
  padding: 7px 14px;
  background: #b38a4f26;
  color: #74483c;
  border-bottom: 1px solid #bfa88a;
  font: 400 clamp(15px, 2.7vw, 23px)/1.2 VT323, monospace;
}

.contact-source {
  margin: 0;
  align-self: center;
  padding: 12px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 clamp(11px, 2.15vw, 14px)/1.4 "Courier Prime", monospace;
}

.contact-source code {
  font: inherit;
}

.contact-json-key {
  color: #8a423a;
}

.contact-json-value {
  color: #364f42;
}

.portfolio-panel[data-view="online"] button {
  padding: 7px 10px;
  min-height: 36px;
  border: 1px solid #a88c72;
  background: #eadecb;
  color: #74483c;
  font: 400 16px/1.1 VT323, "Fusion Pixel", monospace;
  cursor: pointer;
}

.contact-card a:focus-visible {
  outline: 2px solid #8a423a;
  outline-offset: 3px;
}

.desk-contact {
  width: min(530px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  border: 0;
  padding: 0 2px 4px;
  background: transparent;
  overflow: visible;
}

.desk-contact::backdrop {
  background: #17110b54;
}

@media (max-width: 760px) {
  .portfolio-panel[data-view="online"] {
    width: auto;
    max-height: 70dvh;
  }
}
