/*
 * TERRA 05.4 / CONSTRUCTED PLANES
 * A final, scoped presentation layer. Geometry belongs to the composition;
 * labels and controls retain unclipped rectangular interaction areas.
 * Canvas sizing, coordinates, and transforms are deliberately untouched.
 */

#terra-app.terminal-v52.construct-v53.construct-v54 {
  --c-ink: #092c32;
  --c-blue: #284cb4;
  --c-red: #e54c37;
  --c-yellow: #ecd148;
  --c-white: #f3eddc;
  --c-mint: #80cfc6;
  --c-rule: #173e4240;
  --c-serif: Georgia, 'Songti SC', 'SimSun', serif;
  --t-paper: #e9e5d8;
  --t-paper-light: #f3eddc;
  --t-paper-dark: #d8dccd;
  --t-ink: #092c32;
}

/* Shell: three interlocking ribbons and an open-backed navigation spine. */
#terra-app.terminal-v52.construct-v53.construct-v54 > .top {
  position: relative;
  background: var(--c-ink) !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .wordmark {
  font-family: var(--c-serif);
  letter-spacing: .07em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .resources > .resource {
  min-width: 128px;
  padding-inline: 25px 28px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail {
  background: var(--c-ink);
  padding: 0 0 10px 0;
  overflow-x: hidden;
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button {
  isolation: isolate;
  clip-path: none !important;
  border: 0 !important;
  padding-right: 17px !important;
  background: transparent !important;
  color: var(--c-white) !important;
  overflow: visible;
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button::before {
  content: '';
  display: block;
  position: absolute;
  inset: 1px 0 1px 0;
  z-index: -1;
  width: auto;
  height: auto;
  background: var(--c-blue);
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button:nth-child(3n + 2)::before {
  border-radius: 0 36px 0 0;
  clip-path: none;
  right: 5px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button.active {
  color: var(--c-ink) !important;
  background: transparent !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button.active::before {
  background: var(--c-yellow);
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button:hover::before {
  filter: brightness(1.12);
}
#terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: -5px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .viewport > .view.active:not(#t-world):not(#t-battle) {
  padding: 24px 32px 48px !important;
  background: var(--c-white);
}

/* Section title is a cut plane, not a clipped content container. */
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head {
  isolation: isolate;
  position: relative;
  align-items: center;
  min-height: 144px;
  padding: 25px 46px 28px 30px;
  margin: 0 0 30px;
  border: 0;
  background: transparent !important;
  color: var(--c-white) !important;
  clip-path: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0 0 0 -12px;
  width: auto;
  height: auto;
  z-index: -2;
  background: var(--c-blue);
  clip-path: polygon(0 0, 96% 0, 100% 78%, 17% 100%, 0 82%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 130px;
  height: 90px;
  right: 10px;
  top: -8px;
  border: 19px solid var(--c-red);
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
  transform: rotate(12deg);
  pointer-events: none;
  opacity: .85;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head h2 {
  font: 700 clamp(28px, 2.8vw, 42px)/1.15 var(--c-serif);
  letter-spacing: .045em;
  margin: 6px 0 10px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head :is(p, .eyebrow) {
  color: #e0e7ee !important;
  max-width: 740px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .section-head > :last-child {
  flex-shrink: 0;
  position: relative;
}
#terra-app.terminal-v52.construct-v53.construct-v54 button.primary {
  clip-path: none;
  border-radius: 0 19px 0 0 !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 :is(button, summary, select):focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 3px;
}

/* The live map remains a full, accessible rectangle. Only its instruments change. */
#terra-app.terminal-v52.construct-v53.construct-v54 .tw-location {
  border-radius: 0 34px 0 0;
  clip-path: none;
  padding-right: 30px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tw-buttons {
  clip-path: none;
  background: #173b49ee;
  border-radius: 0 0 0 24px;
  padding: 8px 10px 9px 18px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .maptools {
  clip-path: none;
  border-radius: 0 22px 0 0;
  padding-right: 15px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .dispatch-head {
  min-height: 34px;
  padding-left: 23px;
  border-radius: 0 32px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .dispatch-actions {
  clip-path: none;
  border-radius: 36px 0 0 0;
  padding-left: 25px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .fleet-tile {
  border-top: 3px solid transparent !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .fleet-tile.selected {
  background: #214951 !important;
  border-top-color: var(--c-yellow) !important;
}

/* Port: an arched capacity buttress and two offset working decks. */
#terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity {
  position: relative;
  border-radius: 0 88px 0 0;
  background: var(--c-yellow);
  padding: 24px 42px 25px 25px;
  margin-right: 24px;
  border-bottom: 7px solid var(--c-ink);
  gap: 20px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity > div:first-child {
  border-right: 1px solid #173e4255;
  padding-right: 25px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity strong {
  font: 700 32px/1.2 var(--c-serif);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-columns {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 28px;
  padding: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-columns > div {
  min-width: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-columns > div:last-child {
  margin-top: 54px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-columns > div > h3 {
  font: 700 25px/1.4 var(--c-serif);
  padding: 0 0 12px 12px;
  border-bottom: 5px solid var(--c-blue);
  margin-bottom: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-columns > div:last-child > h3 {
  border-color: var(--c-red);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-list {
  border: 0;
  gap: 10px;
  padding-top: 10px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-row {
  position: relative;
  isolation: isolate;
  background: #e0e3d6;
  border: 0;
  border-left: 5px solid #78a4a2;
  border-radius: 0 28px 0 0;
  padding: 15px 17px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-row.flagship {
  color: var(--c-white);
  background: var(--c-ink);
  border-left-color: var(--c-yellow);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-row.flagship :is(p, small) {
  color: #bdd8d2;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-build {
  position: relative;
  isolation: isolate;
  margin-top: 26px;
  padding: 29px 22px 24px 30px;
  background: transparent;
  clip-path: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-build::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-red);
  clip-path: polygon(12px 0, 100% 12px, 100% 100%, 0 100%);
}

/* Hangar: a panorama cuts across a deep model bay and a raised fitting desk. */
#terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner {
  position: relative;
  height: 155px;
  max-height: none;
  margin: 0 30px 0 0;
  border: 0;
  border-radius: 0 110px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner > img {
  filter: none;
  opacity: .83;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner > div {
  border: 0;
  background: var(--c-red);
  padding: 13px 24px 14px 17px;
  left: 0;
  bottom: 0;
  max-width: 70%;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner :is(.eyebrow, small) {
  color: #ffe5d7;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .hangar-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, .85fr);
  align-items: start;
  gap: 0;
  border: 0;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .blueprint {
  border-radius: 0 0 0 72px;
  background: var(--c-ink);
  padding-bottom: 25px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .blueprint .datum {
  border: 0;
  background: var(--c-blue);
  padding: 17px 24px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .blueprint .datum b {
  color: var(--c-white);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .inspector {
  position: relative;
  isolation: isolate;
  margin-top: -34px;
  padding: 34px 25px 30px 32px;
  border: 0;
  border-top: 8px solid var(--c-yellow);
  background: #e0e4d8;
  border-radius: 0 38px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .inspector h3 {
  font-family: var(--c-serif);
  border-bottom: 3px solid var(--c-blue);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .module-row {
  gap: 7px;
  padding: 12px 15px 0;
  margin: 0;
  border: 0;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .module {
  padding: 16px 12px !important;
  border-radius: 0 22px 0 0;
  background: #dce1cf;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .module:nth-child(2) {
  margin-top: 12px;
  background: var(--c-yellow);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .module:nth-child(3) {
  margin-top: 24px;
  background: var(--c-mint);
}

/* Base and armament use stepped bays with different corner radii. */
#terra-app.terminal-v52.construct-v53.construct-v54 .base-canvas {
  border: 0;
  border-bottom: 8px solid var(--c-blue);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  padding-top: 24px;
  border: 0;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility {
  min-width: 0;
  padding: 27px 22px;
  border: 0;
  border-top: 7px solid var(--c-blue);
  border-radius: 0 44px 0 0;
  background: #dfe4d6;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility:nth-child(3n) {
  margin-top: 24px;
  background: #eadbc8;
  border-top-color: var(--c-red);
  border-radius: 44px 0 0 0;
  padding-top: 35px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility:nth-child(3n + 1) {
  border-top-color: var(--c-yellow);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility h3 {
  font-family: var(--c-serif);
  line-height: 1.4;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .facility select {
  width: 100%;
  max-width: 100%;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .port-progression {
  border: 0;
  border-radius: 0 75px 0 0;
  padding: 30px 28px;
  background: var(--c-blue);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool {
  position: relative;
  isolation: isolate;
  padding: 30px 36px;
  margin: 0 34px 34px 0;
  background: transparent;
  border: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool::before {
  content: '';
  position: absolute;
  inset: 0 -24px 0 0;
  z-index: -1;
  background: var(--c-ink);
  clip-path: polygon(0 0, 95% 0, 100% 100%, 24px 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -8px;
  width: 64px;
  height: 64px;
  border: 12px solid var(--c-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 0;
  gap: 24px 18px;
  border: 0;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-card {
  border: 0;
  border-left: 6px solid var(--c-blue);
  border-radius: 0 48px 0 0;
  background: #e0e4d8;
  padding: 23px 20px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(3n + 2) {
  margin-top: 28px;
  border-left-color: var(--c-red);
  border-radius: 36px 0 0 0;
  background: #eadfcd;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(3n) {
  margin-top: 56px;
  border-left-color: #71b3ad;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-card h3 {
  font-family: var(--c-serif);
  font-size: 23px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .gear-card canvas {
  background: #c5d2ca;
}

/* Recruitment: four permanent colors, including unselected destinations. */
#terra-app.terminal-v52.construct-v53.construct-v54 .viewport > #t-recruit.active:not(#t-world):not(#t-battle) {
  background: var(--c-ink);
  padding: 18px 30px 36px !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-root {
  --p-main: #e9bb31;
  --p-secondary: #284cb4;
  --p-dark: #092c32;
  --p-text: #092c32;
  --tr-accent: var(--p-main);
  background: transparent;
  color: var(--c-white);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-root[data-pool='red'] {
  --p-main: #e74632;
  --p-secondary: #284cb4;
  --p-dark: #132d3a;
  --p-text: #fff2df;
  --tr-accent: #e74632;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-root[data-pool='echo'] {
  --p-main: #75cfc7;
  --p-secondary: #6150a1;
  --p-dark: #142e3e;
  --p-text: #092c32;
  --tr-accent: #75cfc7;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-root[data-pool='forge'] {
  --p-main: #d2dc46;
  --p-secondary: #37767a;
  --p-dark: #092c32;
  --p-text: #092c32;
  --tr-accent: #d2dc46;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading {
  margin: 0 0 17px;
  min-height: 34px;
  padding: 0 !important;
  gap: 16px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading h2 {
  font: 700 20px/1.4 var(--c-serif) !important;
  letter-spacing: .15em !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet > span {
  clip-path: none;
  border-radius: 0 22px 0 0;
  padding: 8px 18px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet > span + span {
  margin-left: 3px;
  background: #1a4650 !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  margin: 0 0 15px;
  padding-top: 5px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab {
  --tab: #e9bb31;
  --tab-text: #092c32;
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 78px !important;
  margin: 0;
  gap: 12px;
  padding: 15px 24px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tab-text) !important;
  clip-path: none;
  overflow: visible;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab[data-pool='red'] {
  --tab: #e74632;
  --tab-text: #fff2df;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab[data-pool='echo'] {
  --tab: #75cfc7;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab[data-pool='forge'] {
  --tab: #d2dc46;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  z-index: -1;
  background: var(--tab);
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 100%, 14px 100%);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab:nth-child(2)::before {
  clip-path: none;
  border-radius: 0 42px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab:nth-child(3)::before {
  clip-path: polygon(0 0, 100% 10px, calc(100% - 13px) 100%, 0 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab:nth-child(4)::before {
  clip-path: none;
  border-radius: 38px 0 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab.is-selected {
  min-height: 86px !important;
  margin-top: -8px;
  color: var(--tab-text) !important;
  background: transparent !important;
  box-shadow: none !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab.is-selected::after {
  content: '';
  position: absolute;
  height: 4px;
  left: 22px;
  right: 22px;
  bottom: 6px;
  background: var(--tab-text);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab :is(b, small, i, .tr-tab-number) {
  color: inherit !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab b {
  font: 700 clamp(16px, 1.65vw, 23px)/1.4 var(--c-serif);
  letter-spacing: .05em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab .tr-tab-number {
  display: block;
  font: 20px/1 var(--c-serif) !important;
  opacity: .65;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab i {
  display: block;
  margin-left: auto;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

/* Independent title slab, tall portrait arch, landscape aperture, and action beam. */
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner {
  min-height: 0;
  padding: 24px 0 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  isolation: isolate;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 7px;
  right: 1%;
  width: 47%;
  height: 475px;
  border: 28px solid var(--p-secondary);
  border-radius: 50% 50% 0 0;
  transform: rotate(7deg);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner::after {
  content: '';
  display: block;
  position: absolute;
  top: 185px;
  left: -12px;
  right: 10px;
  width: auto;
  height: 132px;
  z-index: -2;
  background: var(--p-secondary);
  transform: skewY(-7deg);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner-grid {
  display: block !important;
  top: 45px;
  right: 2%;
  width: 45%;
  height: 445px;
  border-radius: 47% 47% 0 0;
  background: var(--c-white);
  opacity: 1;
  overflow: hidden;
  z-index: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner-grid img {
  object-fit: cover;
  height: 100%;
  opacity: .85;
}
#terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) {
  position: absolute;
  top: 12px;
  right: 2%;
  bottom: auto;
  width: 43%;
  height: 505px;
  padding: 13px 18px 0;
  margin: 0;
  border: 0;
  border-radius: 46% 46% 2px 2px;
  background: #f2eddf;
  overflow: hidden;
  z-index: 1;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: none !important;
  mask-image: none !important;
  border-radius: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) figcaption {
  display: grid !important;
  position: absolute;
  top: auto;
  bottom: 29px;
  left: auto;
  right: 0;
  width: auto;
  min-width: 145px;
  max-width: 78%;
  padding: 12px 24px 12px 35px;
  background: var(--p-secondary);
  border: 0;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  color: var(--c-white);
  text-shadow: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy {
  position: relative;
  isolation: isolate;
  width: 60%;
  max-width: none;
  min-height: 385px;
  margin: 0;
  padding: 32px 11% 35px 29px !important;
  background: transparent !important;
  clip-path: none;
  z-index: 2;
  color: var(--p-text);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy::before {
  content: '';
  position: absolute;
  inset: -8px 0 0 -8px;
  z-index: -1;
  background: var(--p-main);
  clip-path: polygon(0 0, 100% 42px, 92% 100%, 0 calc(100% - 20px));
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 {
  font: 800 clamp(46px, 5.5vw, 78px)/1.12 var(--c-serif) !important;
  margin: 11px 0 5px;
  letter-spacing: .01em !important;
  color: var(--p-text) !important;
  white-space: nowrap;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-eyebrow {
  margin-bottom: 16px;
  font-size: 9px;
  letter-spacing: .12em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-en {
  font: 11px/1.6 var(--c-serif);
  letter-spacing: .15em;
  margin: 0 0 17px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-tagline {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 9px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-description {
  font-size: 12px !important;
  max-width: none !important;
  margin-bottom: 18px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-featured {
  position: relative;
  max-width: none;
  padding: 4px 10px;
  margin: 6px -30px 0 -8px;
  clip-path: none;
  border-radius: 0 20px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-feature-item {
  padding: 8px !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-bottom {
  position: relative;
  z-index: 3;
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: end;
  gap: 26px;
  min-height: 174px;
  margin: 5px 0 0;
  padding: 0 8px 17px 10px !important;
  background: transparent !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity {
  width: 250px !important;
  height: 157px;
  padding: 66px 25px 13px;
  margin: 0 !important;
  border-radius: 140px 140px 0 0;
  border-bottom: 6px solid var(--p-main);
  background: var(--c-white);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-gauge-svg {
  top: 4px;
  left: 6px;
  width: 238px;
  height: 140px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity strong {
  font-size: 34px !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-actions {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: 8px;
  min-width: 0;
  padding: 27px 0 0;
  clip-path: none;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-actions::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -8px -7px -17px;
  background: var(--p-secondary);
  clip-path: polygon(0 0, 100% 23px, 100% 100%, 20px 100%);
  pointer-events: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw {
  min-width: 0 !important;
  min-height: 99px !important;
  padding: 19px 23px !important;
  margin: 0;
  border-radius: 0 24px 0 0 !important;
  clip-path: none;
  background: var(--c-white) !important;
  color: var(--c-ink) !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-ten {
  background: var(--p-main) !important;
  color: var(--p-text) !important;
  border-radius: 32px 0 0 0 !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw > span {
  font: 700 clamp(23px, 2.4vw, 35px)/1.4 var(--c-serif);
  white-space: nowrap;
  gap: 10px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw small {
  white-space: normal;
  line-height: 1.5;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw:disabled {
  background: #50676a !important;
  color: #d4e2dc !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-rules {
  margin-top: 12px;
  border-top: 1px solid #68939777 !important;
  background: transparent !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-rules summary {
  padding: 14px 5px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-result-card {
  border: 0;
  border-top: 5px solid var(--tr-rarity);
  border-radius: 0 35px 0 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-result-art {
  background: #f2eddf;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-result-art img {
  height: 175%;
  object-fit: contain;
  object-position: center top;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-result-info {
  padding-top: 12px;
}

/* Personnel: a vertical portrait arch overlaps the sloping dossier and roster. */
#terra-app.terminal-v52.construct-v53.construct-v54 .recruit-layout {
  grid-template-columns: minmax(145px, .22fr) minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  background: transparent;
  align-items: start;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner {
  position: relative;
  margin-top: 66px;
  padding: 24px 16px 28px;
  min-height: 560px;
  border: 0;
  border-radius: 75px 75px 0 0;
  background: var(--c-blue);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner .big {
  font: 700 clamp(27px, 3vw, 43px)/1.3 var(--c-serif);
  margin-top: 25px;
  letter-spacing: .02em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner :is(p, .eyebrow) {
  color: #d5e2ec;
}
#terra-app.terminal-v52.construct-v53.construct-v54 #t-operator-grid {
  background: transparent;
  border: 0;
  min-width: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-detail {
  grid-template-columns: minmax(240px, 1.05fr) minmax(250px, .95fr);
  min-height: 0;
  align-items: stretch;
  border: 0;
  background: transparent;
  gap: 0;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage {
  isolation: isolate;
  height: 555px;
  min-height: 0;
  border: 0;
  border-radius: 45% 45% 0 0;
  background: #f2eddf;
  overflow: hidden;
  box-shadow: -12px -6px 0 var(--c-blue);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-full-art {
  width: 100%;
  height: 100%;
  padding: 16px 10px 0;
  object-fit: contain;
  object-position: center top;
  filter: none;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-watermark {
  z-index: 2;
  left: 17px;
  top: auto;
  bottom: 120px;
  font: 700 45px/1 var(--c-serif);
  color: #14394133;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage-label {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  min-width: 0;
  padding: 18px 24px;
  gap: 5px;
  border: 0;
  background: var(--c-yellow);
  color: var(--c-ink);
  clip-path: polygon(0 0, 100% 17px, 100% 100%, 0 100%);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage-label :is(span, small) {
  color: #25464c;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage-label strong {
  font: 700 38px/1.2 var(--c-serif);
  letter-spacing: .13em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-info {
  position: relative;
  isolation: isolate;
  margin: 35px 0 20px -12px;
  padding: 29px 25px 28px 32px;
  border: 0;
  background: transparent;
  z-index: 3;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-info::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #dce3d8;
  clip-path: polygon(0 0, 100% 21px, 100% calc(100% - 20px), 16px 100%);
  border-top: 8px solid var(--c-red);
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-info h3 {
  font: 700 40px/1.2 var(--c-serif);
  letter-spacing: .08em;
  margin: 10px 0 16px;
  padding-bottom: 15px;
  border-bottom: 2px solid #173e4255;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-info :is(p, .operator-file, .operator-note) {
  font-size: 11px;
  line-height: 1.85;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-rail {
  position: relative;
  z-index: 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb {
  border: 0 !important;
  background: #dbe2d6;
  border-radius: 0 20px 0 0 !important;
  min-height: 82px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb:nth-child(even) {
  margin-top: 8px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb img {
  width: 55px;
  height: 88px;
  object-fit: cover;
  object-position: center 15%;
  filter: none;
  background: #f2eddf;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb > span {
  padding: 17px 7px;
  min-width: 0;
  gap: 7px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb b {
  font-size: 13px;
  letter-spacing: .06em;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb small {
  font-size: 8px;
  white-space: normal;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb.active {
  background: var(--c-blue) !important;
  color: var(--c-white) !important;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb.active small {
  color: #c3d9e9;
}

/* Communications share the same structural language without changing controls. */
#terra-app.terminal-v52.construct-v53.construct-v54 .tm-panel > header {
  border: 0;
  border-radius: 0 80px 0 0;
  background: var(--c-blue);
  padding: 26px 32px;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tm-panel :is(.tm-account, .tm-login, .tm-navigation, .tm-port, .tm-loadout) {
  border: 0;
  border-top: 5px solid var(--c-yellow);
  border-radius: 0 30px 0 0;
  background: #e1e5d9;
}

/* Short laptop screens keep the composition intact; content remains scrollable. */
@media (min-width: 1001px) and (max-height: 850px) {
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab { min-height: 67px !important; padding-block: 11px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab.is-selected { min-height: 75px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading { margin-bottom: 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner { padding-top: 17px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy { min-height: 351px; padding-top: 24px !important; padding-bottom: 26px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 { font-size: clamp(52px, 5.3vw, 72px) !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-eyebrow { margin-bottom: 10px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-description { margin-bottom: 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) { height: 465px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner-grid { height: 405px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner::before { height: 438px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-bottom { min-height: 157px; gap: 24px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw { min-height: 86px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity { height: 143px; padding-top: 61px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-gauge-svg { height: 128px; }
}

@media (max-width: 1150px) {
  #terra-app.terminal-v52.construct-v53.construct-v54 .resources > .resource { min-width: 95px; padding-inline: 22px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .viewport > .view.active:not(#t-world):not(#t-battle) { padding-inline: 24px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab { padding-inline: 18px !important; gap: 7px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab .tr-tab-number { display: none; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy { width: 61%; padding-left: 24px !important; padding-right: 10% !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 { font-size: clamp(43px, 5.3vw, 64px) !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-tagline { font-size: 14px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-bottom { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity { width: 220px !important; padding-inline: 18px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-gauge-svg { width: 208px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw { padding-inline: 18px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw > span { font-size: 25px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-layout { grid-template-columns: 1fr; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner { display: flex; flex-direction: row; min-height: 0; gap: 24px; margin-top: 0; padding: 21px 30px; border-radius: 0 60px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner > div { flex: 1; min-width: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner .big { font-size: 30px; margin: 6px 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner .big br { display: none; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage { height: 555px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .hangar-grid { grid-template-columns: minmax(0, 1fr); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .inspector { margin: -12px 0 0 30px; }
}

@media (max-width: 850px) {
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head { padding: 24px 24px 28px; min-height: 138px; gap: 16px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head::after { width: 96px; height: 66px; border-width: 13px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-columns { grid-template-columns: 1fr; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-columns > div:last-child { margin-top: 24px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity { margin-right: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .facility-grid, #terra-app.terminal-v52.construct-v53.construct-v54 .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(n), #terra-app.terminal-v52.construct-v53.construct-v54 .facility:nth-child(n) { margin-top: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(even) { margin-top: 24px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 { font-size: 43px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy { min-height: 385px; padding-right: 7% !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-description { font-size: 11px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-featured { margin-right: -20px; padding-inline: 5px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-feature-item { padding: 6px 4px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-feature-item b { font-size: 11px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-bottom { grid-template-columns: 190px minmax(0, 1fr); gap: 17px; padding-left: 0 !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity { width: 190px !important; height: 135px; padding: 52px 14px 10px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-gauge-svg { width: 178px; height: 115px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity strong { font-size: 29px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw { padding: 16px 13px !important; min-height: 94px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw > span { font-size: 19px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw small { font-size: 8px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone: deliberate vertical assembly, full-size faces, no squeezed desktop panels. */
@media (max-width: 700px) {
  #terra-app.terminal-v52.construct-v53.construct-v54 .wordmark { font-size: 16px; letter-spacing: .01em; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .resources > .resource { min-width: 52px !important; padding: 6px !important; clip-path: none; }
  #terra-app.terminal-v52.construct-v53.construct-v54 nav.rail { padding: 0; overflow-x: auto; }
  #terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button { padding: 6px 9px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button::before { inset: 2px 1px 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 nav.rail > button.active::before { width: auto; height: auto; inset: 2px 1px 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .viewport > .view.active:not(#t-world):not(#t-battle) { padding: 16px 15px 34px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head { flex-wrap: wrap; min-height: 0; padding: 22px 18px 25px; margin-bottom: 24px; gap: 15px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head::before { inset-inline: -5px 0; clip-path: polygon(0 0, 94% 0, 100% 86%, 12% 100%, 0 94%); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head::after { right: 10px; top: -5px; opacity: .45; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head h2 { font-size: 27px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head p { font-size: 10px; line-height: 1.7; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .section-head > div { min-width: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tw-location { padding: 8px 16px 8px 9px; border-radius: 0 21px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tw-buttons { border-radius: 0 0 0 12px; padding: 4px 5px 5px 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .maptools { padding: 4px 10px 4px 6px; border-radius: 0 15px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .dispatch-head { min-height: 24px; padding-left: 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .dispatch-actions { padding: 6px 8px; border-radius: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 22px 19px; gap: 20px 14px; border-radius: 0 55px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity > div:first-child { grid-column: 1 / -1; border: 0; padding: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity strong { font-size: 28px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-capacity > div > span { font-size: 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-row { padding: 14px 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-row-head { gap: 8px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-row-head canvas { width: 80px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-row-head strong { font-size: 13px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .port-row-head small { font-size: 10px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner { height: 132px; margin-right: 8px; border-radius: 0 75px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .scene-banner > div { max-width: 90%; padding: 10px 24px 10px 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .inspector { margin: -7px 0 0 12px; padding: 26px 20px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .module-row { grid-template-columns: 1fr; padding: 10px 14px; gap: 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .module:nth-child(n) { margin: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .module:nth-child(2) { margin-left: 15px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .module:nth-child(3) { margin-left: 30px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .facility-grid { grid-template-columns: 1fr; gap: 15px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .facility { padding: 24px 20px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .facility:nth-child(3n) { padding-top: 29px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool { margin-right: 12px; padding: 25px 23px; flex-direction: column; align-items: flex-start; gap: 14px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool::after { width: 44px; height: 44px; right: -12px; border-width: 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-pool::before { right: -10px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-grid { grid-template-columns: 1fr; gap: 16px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(n) { margin-top: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .gear-card:nth-child(even) { margin-left: 18px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .viewport > #t-recruit.active:not(#t-world):not(#t-battle) { padding: 14px 14px 30px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading { align-items: center; gap: 8px; margin-bottom: 16px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading h2 { font-size: 18px !important; letter-spacing: .08em !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-heading .tr-kicker { font-size: 6px; letter-spacing: .09em; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet { display: grid; gap: 3px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet > span { padding: 4px 10px; font-size: 8px; border-radius: 0 12px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet > span + span { margin-left: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-wallet b { font-size: 13px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 13px; padding-top: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab,
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab.is-selected { min-height: 68px !important; margin: 0; padding: 12px 18px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab b { font-size: 18px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab small { font-size: 8px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab i { font-size: 16px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab.is-selected::after { left: 20px; right: 25px; bottom: 5px; height: 3px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner { padding-top: 265px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner::before { width: 80%; height: 318px; right: 5%; top: 14px; border-width: 18px; transform: rotate(8deg); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner::after { top: 225px; height: 105px; left: -5px; right: 4px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-banner-grid { width: 83%; height: 306px; top: 15px; right: 5%; }
  #terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) { width: 79%; height: 366px; top: 5px; right: 5%; padding: 10px 10px 0; border-radius: 43% 43% 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-hero img { object-fit: contain; object-position: center top; }
  #terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) figcaption { bottom: 111px; right: 0; min-width: 106px; padding: 8px 13px 8px 26px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) figcaption b { font-size: 20px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 :is(.tr-hero, .tr-armament) figcaption span { font-size: 7px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy { width: 100%; min-height: 0; padding: 30px 23px 31px 21px !important; margin: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy::before { inset: -3px -2px 0 -4px; clip-path: polygon(0 0, 100% 18px, 94% 100%, 0 calc(100% - 14px)); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 { font-size: clamp(38px, 12vw, 57px) !important; margin-top: 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-eyebrow { font-size: 8px; margin-bottom: 12px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-en { font-size: 9px; margin-bottom: 13px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-tagline { font-size: 14px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-description { font-size: 11px !important; line-height: 1.8; margin-bottom: 14px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-featured { margin: 7px -2px 0 -7px; padding: 5px 6px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-feature-item { padding: 7px 5px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-bottom { display: flex !important; flex-direction: column; align-items: stretch; gap: 14px; margin-top: -4px; padding: 0 4px 12px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity { align-self: flex-start; width: 218px !important; height: 143px; padding: 60px 20px 10px; margin: 0 0 0 4px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-gauge-svg { width: 206px; height: 128px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity strong { font-size: 31px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pity > small { font-size: 8px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-actions { width: 100%; padding-top: 18px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-actions::before { inset: 0 -4px -5px -6px; clip-path: polygon(0 0, 100% 14px, 100% 100%, 10px 100%); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw { min-height: 92px !important; padding: 16px 13px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw > span { font-size: 22px; gap: 5px; letter-spacing: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw small { font-size: 8px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-rules summary { padding: 13px 3px; display: flex; flex-wrap: wrap; gap: 5px; font-size: 9px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-rules summary > span:last-child { padding-left: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-rules-content { padding: 0 5px 18px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-layout { display: flex; flex-direction: column; gap: 25px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .recruit-banner { order: 2; display: block; width: 100%; padding: 22px; border-radius: 0 55px 0 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 #t-operator-grid { width: 100%; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-detail { grid-template-columns: minmax(0, 1fr); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage { height: 465px; width: calc(100% - 14px); margin-left: 10px; box-shadow: -8px -4px 0 var(--c-blue); }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage-label { padding: 20px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-stage-label strong { font-size: 37px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-info { margin: -1px 0 0 0; padding: 26px 24px 32px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-info h3 { font-size: 34px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb:nth-child(n) { margin: 0; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb:nth-child(even) { margin-top: 7px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb img { width: 53px; height: 85px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb > span { padding: 16px 7px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tm-panel > header { padding: 25px 23px; }
}

@media (max-width: 360px) {
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-copy h3 { font-size: 39px !important; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-pool-tab b { font-size: 16px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw > span { font-size: 19px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .tr-draw-ten i { font-size: 19px; }
  #terra-app.terminal-v52.construct-v53.construct-v54 .operator-thumb img { width: 45px; }
}

/* The arsenal displays the actual live ship projection in the portrait aperture. */
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-armament {
  background: #dbe5d4;
}
#terra-app.terminal-v52.construct-v53.construct-v54 .tr-armament canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
