/* The model tabs are only a header on this route, so they must not reserve a page height. */
#main > .hub:has(+ .crumbs) { min-height: 0; padding-bottom: 0; }
#main:has(> .hub + .crumbs) > :is(.crumbs, .product, #torrentBox, .mine, .tech) {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}
#main:has(> .hub + .crumbs) > .crumbs { margin-top: 12px; margin-bottom: 16px; }

/* One purchase surface: identity, action and terms share a single boundary. */
.product {
  grid-template-columns: minmax(400px, 1fr) minmax(0, 1fr);
  grid-template-areas: "head head" "desk main";
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.product .p-top {
  grid-area: head;
  min-width: 0;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.product .p-head h1 { margin-bottom: 4px; }
.product .p-summary { margin: 8px 0; }
.product .p-facts { margin-top: 10px; }
.product .p-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 24px;
}
.product .p-main .p-get {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product .p-main .p-get .panel-h {
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}
.product .p-main .p-get .panel-b { padding: 0; }
.product .p-desk {
  grid-area: desk;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 24px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  position: static;
}
.product .desk-heading { margin-bottom: 12px; }
.product .p-desk .p-price {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product .p-desk .p-price .panel-h { padding: 0 0 8px; border: 0; background: transparent; }
.product .p-desk .p-price .panel-b { padding: 0; }
.product .p-desk .p-price .big { font-size: 25px; }
.product .p-desk .entry { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.product .p-desk .entry .panel-b { padding: 0; }
.product .p-desk .p-after {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.product .p-desk .p-after summary {
  padding: 13px 0 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.product .p-desk .p-after .panel-b { padding: 10px 0 0; }
.product .p-desk .wallet-prompt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 0 12px;
  margin: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.product .p-desk .wallet-prompt .small { flex: 1 1 150px; }

@media (max-width: 1100px) and (min-width: 861px) {
  .product { grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "desk" "main";
    grid-template-rows: auto auto auto;
  }
  .product .p-desk {
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    justify-self: stretch;
  }
}
@media (max-width: 560px) {
  #main:has(> .hub + .crumbs) > :is(.crumbs, .product, #torrentBox, .mine, .tech) {
    width: calc(100% - 24px);
  }
  #main:has(> .hub + .crumbs) > .crumbs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-block: 8px 10px;
  }
  #main:has(> .hub + .crumbs) > .crumbs > span { display: none; }
  #main:has(> .hub + .crumbs) > .crumbs > a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #main:has(> .hub + .crumbs) > .crumbs > #dlJump {
    max-width: 150px;
    margin: 0 !important;
    padding: 6px 8px;
    white-space: normal;
    font-size: 11px;
    line-height: 1.15;
  }
  .product .p-title .avatar { width: 40px; height: 40px; }
  .product .p-head h1 { font-size: 22px; line-height: 1.16; }
  .product .p-summary { font-size: 13px; line-height: 1.35; }
  .product .p-sub { font-size: 11px; }
  .product .p-facts { display: none; }
  .product .p-top { padding: 14px; }
  .product .p-desk,
  .product .p-main { padding: 14px; }
}
