/* Return report only. Preserve approved source PNGs and square cargo canvas.
   Compact panels/buttons use the same uniformly scaled nine-slice corners
   as the management screens, not a stretched whole-screen illustration. */
@media (orientation: landscape) and (min-width: 640px) and (max-height: 760px),
       (orientation: landscape) and (min-width: 640px) and (max-width: 1280px) {
  .app-shell:has(.stage[data-screen="settlement"]) {
    width: calc(100vw - 12px);
    max-width: none;
  }
  .stage[data-screen="settlement"] {
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    aspect-ratio: auto;
  }
  .stage[data-screen="settlement"] .cargo-stage {
    left: 3%; top: 17%; bottom: 70px; width: 40%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    gap: 5px;
    min-height: 0;
  }
  .stage[data-screen="settlement"] .cargo-stage > h2 {
    font-size: 18px; line-height: 1.3; text-align: center;
  }
  .stage[data-screen="settlement"] .cargo-art {
    width: auto; height: 100%; max-height: 280px; max-width: 100%;
    aspect-ratio: 1; min-height: 0; align-self: center;
  }
  .stage[data-screen="settlement"] .cargo-vacancy {
    width: 100%; height: 100%; min-height: 0;
    aspect-ratio: auto;
  }
  .stage[data-screen="settlement"] :is(.cargo-feedback, .cargo-empty) {
    margin: 0; max-width: 100%; padding: 5px 8px;
    font-size: 12px; line-height: 1.4; overflow-wrap: anywhere;
  }
  .stage[data-screen="settlement"] .settlement-panel {
    left: 47%; right: 3%; top: 17%; bottom: 70px;
    width: auto; height: auto; max-height: none; min-height: 0;
    background: none;
    border: solid transparent;
    border-width: 17.25px 12px;
    border-image-source: var(--ui-panel-readable);
    border-image-slice: 230 160 230 160 fill;
    border-image-width: 1; border-image-repeat: stretch;
    padding: 3px 8px;
    overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .stage[data-screen="settlement"] .settlement-panel h2 {
    margin: 0 0 5px; font-size: 18px; line-height: 1.3;
  }
  .stage[data-screen="settlement"] .settlement-panel:focus-visible {
    outline: 2px solid var(--yellow); outline-offset: 2px;
  }
  .stage[data-screen="settlement"] .settlement-row {
    gap: 4px 8px; padding: 5px 0;
    font-size: 13px; line-height: 1.4;
  }
  .stage[data-screen="settlement"] .settlement-row b {
    min-width: 0; overflow-wrap: anywhere;
  }
  .stage[data-screen="settlement"] .settlement-rewards h3 {
    margin: 5px 0; font-size: 14px; line-height: 1.4;
  }
  .stage[data-screen="settlement"] .settlement-rewards ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
    margin: 0 0 5px;
  }
  .stage[data-screen="settlement"] .settlement-rewards li {
    min-height: 36px; gap: 5px; padding: 4px;
    font-size: 13px; line-height: 1.4;
  }
  .stage[data-screen="settlement"] .settlement-rewards strong {
    min-width: 0; font-size: 13px; line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .stage[data-screen="settlement"] .reward-item-icon {
    width: 28px; height: 28px; object-fit: contain;
  }
  .stage[data-screen="settlement"] .action-dock {
    left: 3%; right: 3%; bottom: 4%; max-width: none;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stage[data-screen="settlement"] .action-button {
    --settlement-button-source: var(--ui-button-primary);
    position: relative; isolation: isolate;
    min-width: 0; min-height: 44px; padding: 8px 12px;
    background: none; border: 0;
    font-size: 14px; line-height: 1.3; white-space: normal;
  }
  .stage[data-screen="settlement"] .action-button::before {
    content: ""; position: absolute; inset: 0;
    z-index: -1; pointer-events: none;
    border: solid transparent; border-width: 14.4px 22.8px;
    border-image-source: var(--settlement-button-source);
    border-image-slice: 60 95 60 95 fill;
    border-image-width: 1; border-image-repeat: stretch;
  }
  .stage[data-screen="settlement"] .action-button.danger {
    --settlement-button-source: var(--ui-button-danger);
  }
  .stage[data-screen="settlement"] .action-button.success {
    --settlement-button-source: var(--ui-button-success);
  }
  .stage[data-screen="settlement"] .action-button > span {
    min-width: 0; overflow-wrap: anywhere;
  }
}
@media (orientation: landscape) and (min-width: 640px) and (max-width: 700px) {
  .stage[data-screen="settlement"] .settlement-rewards ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
