/* Hangar showroom — visual frame (full bleed, footer kept) */

@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800&display=swap");

.hsr-sale-pill {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hsr-chip-cat-border);
  background: var(--hsr-chip-cat-bg);
  color: var(--hsr-chip-cat-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hsr-sale-banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hsr-chip-cat-border);
  background: var(--hsr-chip-cat-bg);
  color: var(--hsr-chip-cat-text);
  font-size: 0.85rem;
  line-height: 1.35;
}

.hsr-sale-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.hsr-card-sale {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--hsr-chip-cat-border);
  background: rgba(10, 10, 10, 0.78);
  color: var(--hsr-chip-cat-text);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hsr-body {
  --hsr-bg: #0a0a0a;
  --hsr-panel: #111214;
  --hsr-panel-2: #0f1013;
  --hsr-elevated: #16171a;
  --hsr-top: #080808;
  --hsr-line: #2a2c31;
  --hsr-line-strong: #3f4248;
  --hsr-text: #f4f4f5;
  --hsr-text-strong: #ffffff;
  --hsr-muted: #9ca3af;
  --hsr-soft: #e5e7eb;
  --hsr-icon: #6b7280;
  --hsr-accent: #e10600;
  --hsr-accent-hi: #ff2a1f;
  --hsr-hover: rgba(255, 255, 255, 0.04);
  --hsr-hover-strong: rgba(255, 255, 255, 0.06);
  --hsr-shadow: rgba(0, 0, 0, 0.45);
  --hsr-hero-nav-bg: rgba(0, 0, 0, 0.45);
  --hsr-hero-nav-border: rgba(255, 255, 255, 0.25);
  --hsr-chip-cat-bg: rgba(225, 6, 0, 0.18);
  --hsr-chip-cat-border: rgba(225, 6, 0, 0.55);
  --hsr-chip-cat-text: #fecaca;
  --hsr-chip-sub-bg: #16171a;
  --hsr-chip-sub-border: #3f4248;
  --hsr-chip-sub-text: #e5e7eb;
  --hsr-thumb-empty: linear-gradient(145deg, #1c1e24 0%, #0a0a0a 100%);
  --hsr-ph: linear-gradient(135deg, #1c1e24, #0e0f12);
  --hsr-glow: rgba(225, 6, 0, 0.35);
  --hsr-badge-ring: #080808;
  --hsr-app-glow: rgba(225, 6, 0, 0.08);
  --hsr-avatar-bg: linear-gradient(135deg, #333, #111);
  margin: 0;
  min-height: 100vh;
  background: var(--hsr-bg);
  color: var(--hsr-text);
  font-family: "Exo 2", "Exo 2 Fallback", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

.hsr-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--hsr-app-glow), transparent 55%),
    var(--hsr-bg);
}

/* —— Top chrome —— */
.hsr-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--hsr-line);
  background: var(--hsr-top);
  position: sticky;
  top: 0;
  z-index: 40;
}

.hsr-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.hsr-top .rcs-pilot-nav-scroller {
  grid-column: 2;
  justify-self: stretch;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hsr-nav {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.hsr-nav::-webkit-scrollbar {
  display: none;
}

.hsr-top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}

.hsr-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hsr-brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.hsr-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--hsr-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.hsr-nav a:hover,
.hsr-nav a:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, var(--hsr-accent-hi), var(--hsr-accent));
  border-bottom-color: var(--hsr-accent-hi);
  outline: none;
}

.hsr-nav a.is-active {
  color: #fff;
  background: linear-gradient(180deg, var(--hsr-accent-hi), var(--hsr-accent));
  border-bottom-color: var(--hsr-accent-hi);
  box-shadow: 0 0 18px var(--hsr-glow);
}

.hsr-search-wrap {
  position: relative;
  flex: 0 1 240px;
  min-width: 140px;
  max-width: 280px;
}

.hsr-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  background: var(--hsr-elevated);
  border: 1px solid var(--hsr-line);
  border-radius: 999px;
  padding: 6px 12px;
}

.hsr-search:focus-within {
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.18);
}

@keyframes hsr-filter-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.4); }
  50% { box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.65); }
}

.hsr-body.is-filtered .hsr-search,
.hsr-body.is-filtered .hsr-craft-nav {
  border-color: var(--hsr-accent);
  background: rgba(225, 6, 0, 0.1);
  animation: hsr-filter-breathe 2.2s ease-in-out infinite;
}

.hsr-search input {
  background: transparent;
  border: 0;
  color: var(--hsr-text);
  font: inherit;
  font-size: 0.8rem;
  width: 100%;
  min-width: 0;
  outline: none;
}

.hsr-search input::placeholder {
  color: var(--hsr-muted);
}

.hsr-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hsr-muted);
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(1px);
}

.hsr-search-hits {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  min-width: 220px;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  z-index: 50;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-panel);
  box-shadow: 0 12px 28px var(--hsr-shadow);
}

.hsr-search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.hsr-search-hit:hover,
.hsr-search-hit.is-active {
  background: rgba(225, 6, 0, 0.16);
}

a.hsr-search-hit--link {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.hsr-search-hit-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.hsr-search-hit-sub {
  font-size: 0.7rem;
  color: var(--hsr-muted);
}

.hsr-search-hit-more,
.hsr-search-empty {
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--hsr-muted);
}

.hsr-bell-wrap {
  position: relative;
  flex-shrink: 0;
}

.hsr-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-elevated);
  color: var(--hsr-text-strong);
  cursor: pointer;
  opacity: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hsr-icon-btn:hover,
.hsr-icon-btn:focus-visible {
  border-color: rgba(225, 6, 0, 0.55);
  outline: none;
}

.hsr-icon-btn.is-open {
  border-color: rgba(225, 6, 0, 0.7);
  background: rgba(225, 6, 0, 0.12);
}

.hsr-bell-ico {
  font-size: 0.95rem;
  line-height: 1;
}

.hsr-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--hsr-accent);
  color: var(--hsr-text-strong);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--hsr-badge-ring);
}

@keyframes hsr-bell-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.35);
    border-color: rgba(225, 6, 0, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(225, 6, 0, 0);
    border-color: var(--hsr-accent-hi);
  }
}

.hsr-icon-btn.has-unread {
  animation: hsr-bell-breathe 2s ease-in-out infinite;
  border-color: rgba(225, 6, 0, 0.65);
  background: rgba(225, 6, 0, 0.14);
}

.hsr-bell-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(360px, 55vh);
  overflow-y: auto;
  z-index: 55;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-panel);
  box-shadow: 0 14px 32px var(--hsr-shadow);
}

.hsr-bell-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.hsr-bell-item:hover,
.hsr-bell-item:focus-visible {
  background: var(--hsr-hover-strong);
  outline: none;
}

.hsr-bell-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--hsr-elevated);
  border: 1px solid var(--hsr-line);
  display: block;
}

.hsr-bell-thumb.is-empty {
  display: inline-block;
}

.hsr-bell-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsr-bell-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hsr-bell-src {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hsr-soft);
}

.hsr-bell-src--sales {
  background: rgba(225, 6, 0, 0.18);
  color: #ff8a80;
}

.hsr-bell-src--club {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.hsr-bell-src--guest,
.hsr-bell-src--club_guest {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
}

.hsr-bell-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hsr-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hsr-bell-item-meta {
  font-size: 0.68rem;
  color: var(--hsr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsr-bell-item-preview {
  font-size: 0.7rem;
  color: var(--hsr-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsr-bell-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--hsr-muted);
  border-top: 1px solid var(--hsr-line);
  margin-top: 4px;
}

.hsr-bell-foot a {
  color: var(--hsr-text-strong);
  text-decoration: none;
  font-weight: 700;
}

.hsr-bell-foot a:hover {
  color: var(--hsr-accent-hi);
}

.hsr-bell-foot-sep {
  opacity: 0.5;
}

.hsr-bell-empty {
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--hsr-muted);
}

.hsr-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--hsr-avatar-bg);
  border: 2px solid var(--hsr-line);
  overflow: hidden;
  text-decoration: none;
  color: var(--hsr-soft);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hsr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsr-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 34px;
  max-width: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8b84a;
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  overflow: hidden;
  transition: max-width 0.2s ease, gap 0.2s ease, padding 0.2s ease, background 0.15s ease;
}

.hsr-donate-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: max-width 0.2s ease, opacity 0.15s ease;
}

.hsr-donate:hover,
.hsr-donate:focus-visible {
  max-width: 9.5rem;
  gap: 7px;
  padding: 0 12px;
  background: #f3c85a;
  outline: 2px solid rgba(232, 184, 74, 0.65);
  outline-offset: 2px;
}

.hsr-donate:hover .hsr-donate-label,
.hsr-donate:focus-visible .hsr-donate-label {
  max-width: 5rem;
  opacity: 1;
}

.hsr-donate svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

/* Hide site FAB donate — chip lives in the top bar. */
.hsr-body .rcs-donate-chip-wrap--fab {
  display: none !important;
}

.hsr-loading {
  text-align: center;
  color: var(--hsr-muted);
}

/* Stay below sticky/fixed topper even if F5 restores scroll mid-page */
.hsr-loading:not([hidden]) {
  position: fixed;
  top: var(--rcs-pilot-topper-h, 56px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: var(--hsr-bg);
}

.hsr-loading[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hsr-loading:not([hidden]) {
    top: var(--rcs-pilot-topper-h, 96px);
  }
}

/* —— Main stage —— */
.hsr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 20px 12px;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.hsr-main[hidden] {
  display: none !important;
}

.hsr-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: min(48vh, 520px);
}

/*
 * Ultrawide CSS viewport only (min-width — never aspect-ratio; FHD chrome
 * often makes viewport ≥2:1 and wrongly matched). Fill the viewport:
 * fleet flush above soft-nav/footer; hero grows by height with true 16/10
 * (width follows height → same cover crop); left/right take leftover width.
 * 1080p (~≤1920) never enters this block.
 */
@media (min-width: 2000px) {
  .hsr-body {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .hsr-app {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .hsr-main:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .hsr-columns {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: stretch;
    container-type: size;
  }

  .hsr-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 0;
    width: fit-content;
    max-width: calc(100vw - 40px - 560px);
    justify-self: center;
    box-sizing: border-box;
  }

  /*
   * Lock 16/10: width is derived from available column height (cqh), then
   * height follows aspect-ratio. Never stretch the box to a square.
   * 76px ≈ gallery row + gap under the hero.
   */
  .hsr-hero {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 0;
    width: min(
      calc((100cqh - 76px) * 16 / 10),
      calc(100vw - 40px - 560px)
    );
    max-width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    align-self: center;
  }

  .hsr-gallery-row {
    flex: 0 0 auto;
    width: 100%;
  }

  .hsr-fleet {
    flex: 0 0 auto;
  }
}

/* Soft-block save/drag for chrome art; hero stays openable. */
.hsr-app img:not(.hsr-hero-img) {
  -webkit-user-drag: none;
  user-select: none;
}

.hsr-left,
.hsr-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

.hsr-identity {
  flex: 0 0 auto;
  min-width: 0;
}

.hsr-stats {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-top: 10px;
}

.hsr-specs .hsr-side-title {
  margin-bottom: 8px;
}

.hsr-flight-stats {
  margin-top: auto;
  padding-top: 10px;
}

.hsr-flight-stats .hsr-side-title {
  margin-bottom: 6px;
}

.hsr-side-list--flight {
  flex: 0 0 auto;
  gap: 4px;
}

/* Denser footer cards — intentional vs Specs/Build icon rows. */
.hsr-side-list--flight > li {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 5px 10px;
  border-radius: 8px;
}

.hsr-side-list--flight .hsr-spec-label {
  font-size: 0.62rem;
}

.hsr-side-list--flight .hsr-spec-value {
  text-align: right;
  max-width: none;
  font-size: 0.84rem;
}

/* Left */
.hsr-type-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.hsr-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hsr-type-chip--cat {
  background: var(--hsr-chip-cat-bg);
  border: 1px solid var(--hsr-chip-cat-border);
  color: var(--hsr-chip-cat-text);
}

.hsr-type-chip--sub {
  background: var(--hsr-chip-sub-bg);
  border: 1px solid var(--hsr-chip-sub-border);
  color: var(--hsr-chip-sub-text);
}

.hsr-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hsr-nick {
  margin: 4px 0 0;
  color: var(--hsr-accent);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hsr-maker {
  margin: 6px 0 0;
  color: var(--hsr-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hsr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.hsr-tag {
  padding: 5px 10px;
  border: 1px solid var(--hsr-line-strong);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hsr-soft);
}

/* Shared side lists (overview specs + The Build) */
.hsr-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 36px;
}

.hsr-side-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hsr-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  flex: 1 1 auto;
}

.hsr-side-list > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 80px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 4px 8px;
  border: 1px solid var(--hsr-line);
  border-radius: 10px;
  background: var(--hsr-panel-2);
  box-sizing: border-box;
}

.hsr-side-list--specs {
  gap: 4px;
}

.hsr-side-list--specs > li {
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 48px;
  padding: 3px 8px;
}

.hsr-side-list--build {
  gap: 4px;
}

.hsr-side-list--build > li {
  min-height: 52px;
  padding: 3px 8px;
}

.hsr-side-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.hsr-spec-ico {
  width: 18px;
  height: 18px;
  color: var(--hsr-icon);
  align-self: center;
  flex-shrink: 0;
}

.hsr-side-list--build .hsr-spec-ico {
  width: 36px;
  height: 36px;
}

.hsr-spec-ico--img {
  overflow: hidden;
  border-radius: 4px;
}

.hsr-spec-ico--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hsr-side-list--specs .hsr-spec-ico {
  width: 36px;
  height: 36px;
  justify-self: center;
}

.hsr-spec-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hsr-spec-sym {
  width: 80px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--hsr-bg);
}

.hsr-spec-sym img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hsr-spec-label {
  color: var(--hsr-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hsr-spec-value {
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  color: var(--hsr-soft);
  line-height: 1.25;
  word-break: break-word;
}

.hsr-side-thumb {
  position: relative;
  width: 80px;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-bg);
  overflow: hidden;
  flex-shrink: 0;
  isolation: isolate;
}

.hsr-side-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsr-side-thumb-blur {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.16);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hsr-side-thumb-main {
  position: relative;
  z-index: 1;
}

.hsr-side-thumb.is-framed .hsr-side-thumb-main {
  /* layout overridden by RcsPhotoFraming.applyToElement */
  max-width: none;
  max-height: none;
}

.hsr-side-thumb--empty {
  background: var(--hsr-thumb-empty);
}

.hsr-side-thumb--generic img {
  object-fit: cover;
}

/* Center viewport */
.hsr-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hsr-hero {
  position: relative;
  background: var(--hsr-panel-2);
  border: 1px solid var(--hsr-line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hsr-hero-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  overflow: hidden;
  cursor: zoom-in;
}

.hsr-hero-blur {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(24px) saturate(1.2);
  transform: scale(1.16);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hsr-hero-open:focus-visible {
  outline: 2px solid var(--hsr-accent);
  outline-offset: -2px;
}

.hsr-hero-img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  max-width: none;
}

.hsr-hero-frame {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--hsr-hero-nav-border);
  background: var(--hsr-hero-nav-bg);
  color: var(--hsr-text-strong);
  cursor: pointer;
}

.hsr-hero-frame:hover,
.hsr-hero-frame:focus-visible {
  background: var(--hsr-accent);
  border-color: var(--hsr-accent);
  color: #fff;
  outline: none;
}

.hsr-hero-frame svg {
  display: block;
}

.hsr-hero-empty {
  color: var(--hsr-muted);
  text-align: center;
  padding: 32px;
  font-size: 0.9rem;
}

.hsr-empty-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--hsr-accent, var(--accent, #38bdf8));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hsr-empty-cta:hover {
  color: var(--hsr-text-strong, var(--text));
}

.hsr-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hsr-hero-nav-border);
  background: var(--hsr-hero-nav-bg);
  color: var(--hsr-text-strong);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 2;
}

.hsr-hero-nav:hover {
  background: var(--hsr-accent);
  border-color: var(--hsr-accent);
}

.hsr-hero-nav--prev { left: 12px; }
.hsr-hero-nav--next { right: 12px; }

.hsr-gallery-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.hsr-thumbs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.hsr-thumbs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 58px));
  justify-content: center;
  gap: 4px;
  min-width: 0;
  width: min(calc(100% - 52px), calc(58px * 10 + 4px * 9));
}

.hsr-thumbs-overflow {
  display: none;
}

.hsr-thumb {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: var(--hsr-elevated);
  cursor: pointer;
}

.hsr-thumb.is-active {
  border-color: var(--hsr-accent);
}

.hsr-thumb-del {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.hsr-thumb:disabled {
  cursor: default;
  opacity: 0.55;
}

.hsr-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  max-width: none;
}

.hsr-thumb-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--hsr-ph);
  border: 1px dashed var(--hsr-line);
  box-sizing: border-box;
}

.hsr-photo-add {
  flex: 0 0 44px;
  width: 44px;
  aspect-ratio: 16 / 10;
  align-self: center;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px dashed rgba(134, 239, 172, 0.75);
  background: rgba(8, 14, 10, 0.35);
  color: #86efac;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.hsr-photo-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hsr-photo-busy {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(4px);
}

.hsr-photo-busy[hidden] {
  display: none !important;
}

.hsr-photo-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: min(280px, 100%);
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid var(--hsr-line, rgba(255, 255, 255, 0.12));
  background: var(--hsr-panel, #111214);
  color: var(--hsr-text-strong, #f9fafb);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hsr-photo-busy-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--hsr-accent, #dd0206);
  animation: hsr-photo-spin 0.75s linear infinite;
}

.hsr-photo-busy-msg {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

@keyframes hsr-photo-spin {
  to { transform: rotate(360deg); }
}

body.hsr-photo-busy-open {
  overflow: hidden;
}

.hsr-photo-add:hover,
.hsr-photo-add:focus-visible {
  border-color: #86efac;
  background: rgba(134, 239, 172, 0.14);
  outline: none;
}

.hsr-craft-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 102px;
  min-height: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-elevated);
  color: var(--hsr-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.15;
}

.hsr-craft-nav:hover {
  border-color: var(--hsr-accent);
  color: var(--hsr-text-strong);
}

.hsr-craft-nav-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.95;
}

.hsr-craft-nav-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.hsr-craft-nav-main,
.hsr-craft-nav-sub {
  display: block;
  width: 100%;
}

.hsr-craft-nav-sub {
  opacity: 0.85;
  letter-spacing: 0.1em;
}

.hsr-views {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hsr-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--hsr-line);
  background: var(--hsr-elevated);
  color: var(--hsr-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hsr-view.is-active {
  background: linear-gradient(180deg, var(--hsr-accent-hi), var(--hsr-accent));
  border-color: var(--hsr-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(225, 6, 0, 0.3);
}

.hsr-view:disabled {
  opacity: 0.35;
  cursor: default;
}

.hsr-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 14px 8px 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(180deg, #ff2a1f, #e10600);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(225, 6, 0, 0.35);
}

.hsr-edit-ico {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hsr-edit:hover,
.hsr-edit:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #ff4a3a, #ff2a1f);
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.45);
  outline: none;
}

/* Bottom fleet */
.hsr-fleet {
  border-top: 1px solid var(--hsr-line);
  padding-top: 12px;
}

.hsr-fleet-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.hsr-fleet-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hsr-fleet-count {
  color: var(--hsr-muted);
  font-size: 0.82rem;
}

.hsr-fleet-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.hsr-card {
  position: relative;
  flex: 0 0 150px;
  scroll-snap-align: start;
  border: 2px solid var(--hsr-line);
  border-radius: 10px;
  background: var(--hsr-panel-2);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.hsr-card.is-active {
  border-color: var(--hsr-accent);
  box-shadow: 0 0 0 1px var(--hsr-accent), 0 0 18px rgba(225, 6, 0, 0.25);
}

.hsr-card-photo,
.hsr-card-empty {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: var(--hsr-elevated);
}

.hsr-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hsr-muted);
  font-size: 0.7rem;
}

.hsr-card-meta {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px 12px;
}

.hsr-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}

.hsr-card-sub {
  display: block;
  padding: 0;
  margin-top: 2px;
  color: var(--hsr-muted);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsr-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  gap: 6px;
  border-style: dashed;
  text-decoration: none;
  color: var(--hsr-muted);
}

.hsr-card--add:hover {
  border-color: var(--hsr-accent);
  color: var(--hsr-text-strong);
}

.hsr-card-plus {
  font-size: 1.8rem;
  color: var(--hsr-accent);
  line-height: 1;
}

.hsr-side-row--open {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.hsr-side-row--open:hover,
.hsr-side-row--open:focus-visible {
  background: color-mix(in srgb, var(--hsr-accent, #dd0206) 14%, transparent);
  outline: none;
}

@media (max-width: 1100px) and (min-width: 801px) {
  .hsr-columns {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr);
  }
  .hsr-right { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  /* Match shared hangar-topper phone chrome (must win over this file’s base .hsr-top-brand flex). */
  .hsr-top {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 6px;
    padding: 8px 12px;
  }
  .hsr-top-brand {
    display: contents;
  }
  .hsr-top-area {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
  }
  .hsr-top-brand > .hsr-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }
  .hsr-top .hsr-brand-logo {
    height: 22px;
  }
  .hsr-top-tools {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    gap: 8px;
  }
  .hsr-search-wrap {
    display: none;
  }
  .hsr-top .rcs-pilot-nav-scroller {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hsr-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hsr-main {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    gap: 14px;
  }
  /* Flatten so identity → hero → build → specs/log → fleet. */
  .hsr-columns,
  .hsr-left {
    display: contents;
  }
  .hsr-identity { order: 1; width: 100%; }
  .hsr-center {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hsr-right { order: 3; width: 100%; min-height: 0; }
  .hsr-stats {
    order: 4;
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    flex: none;
  }
  .hsr-fleet { order: 5; width: 100%; }
  .hsr-specs,
  .hsr-flight-stats {
    min-width: 0;
  }
  .hsr-flight-stats {
    margin-top: 0;
    padding-top: 0;
  }
  .hsr-specs .hsr-side-title,
  .hsr-flight-stats .hsr-side-title {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }
  .hsr-side-list--specs > li {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 44px;
    padding: 3px 6px;
    gap: 6px;
  }
  .hsr-side-list--specs .hsr-spec-sym {
    width: 52px;
    height: 36px;
  }
  .hsr-side-list--specs .hsr-spec-label {
    font-size: 0.6rem;
  }
  .hsr-side-list--specs .hsr-spec-value {
    font-size: 0.82rem;
  }
  /* Label left · value starts mid-cell (left-aligned), room for dates. */
  .hsr-side-list--flight > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    padding: 5px 8px;
    gap: 6px;
  }
  .hsr-side-list--flight .hsr-spec-label {
    letter-spacing: 0.06em;
  }
  .hsr-side-list--flight .hsr-spec-value {
    text-align: left;
    justify-self: stretch;
    white-space: nowrap;
  }
  .hsr-type-chips { margin-bottom: 8px; }
  .hsr-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .hsr-tags { margin: 10px 0 0; }
  .hsr-hero { min-height: 220px; aspect-ratio: 16 / 10; }
  .hsr-hero-frame {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .hsr-gallery-row {
    gap: 6px;
    align-items: stretch;
  }
  .hsr-craft-nav {
    min-width: 64px;
    min-height: 52px;
    padding: 6px 4px;
    font-size: 0.55rem;
  }
  .hsr-thumbs-wrap {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }
  .hsr-thumbs--mobile-primary {
    display: flex;
    grid-template-columns: none;
    width: 100%;
    max-width: none;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    flex: 1 1 auto;
  }
  .hsr-thumbs--mobile-primary .hsr-thumb {
    flex: 1 1 0;
    width: auto;
    max-width: 72px;
    min-height: 48px;
    aspect-ratio: 16 / 10;
    height: auto;
    align-self: center;
  }
  .hsr-photo-add {
    flex: 0 0 40px;
    width: 40px;
    min-height: 52px;
    aspect-ratio: auto;
    align-self: stretch;
    font-size: 1.45rem;
  }
  .hsr-thumbs-overflow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .hsr-thumbs-overflow .hsr-thumb {
    flex: 1 1 0;
    width: auto;
    max-width: 72px;
    min-width: 0;
    min-height: 48px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}
