* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.view-switch {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-right: 0;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(0 0 0 / 10%);
  opacity: 0.42;
  transform: translateY(-50%);
  transition: opacity 0.14s ease;
}

.view-switch:hover,
.view-switch:focus-within {
  opacity: 1;
}

.view-switch button {
  min-width: 72px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  padding: 9px 10px;
  text-transform: uppercase;
}

.view-switch button:last-child {
  border-bottom: 0;
}

.view-switch button.active {
  background: var(--panel-cta-bg);
  color: var(--panel-cta-fg);
}

.theme-switch {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-switch-track {
  position: relative;
  display: grid;
  width: 156px;
  height: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 2px;
  border: 1px solid #c7cdd8;
  border-radius: 999px;
  background: #e3e6ec;
  box-shadow: 0 6px 16px rgb(0 0 0 / 8%);
}

.theme-switch:hover .theme-switch-track,
.theme-switch:focus-visible .theme-switch-track {
  border-color: #b7bfcc;
}

.theme-switch:focus-visible {
  outline: none;
}

.theme-switch:focus-visible .theme-switch-track {
  box-shadow: 0 6px 16px rgb(0 0 0 / 8%), 0 0 0 2px rgb(124 132 148 / 18%);
}

.theme-switch-label {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  white-space: nowrap;
}

.theme-switch-label-light {
  color: #2d3443;
}

.theme-switch-label-dark {
  color: #6f7686;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 76px;
  height: 26px;
  border-radius: 999px;
  background: #cfd4dc;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
  transition: transform 0.18s ease, background 0.18s ease;
}

html[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(76px);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 70px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.intro {
  max-width: 720px;
}

.ews-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ews-logo {
  display: flex;
  width: 150px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ews-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
}

.hub-title-stack {
  display: grid;
  gap: 2px;
}

.ews-label {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.top h1 {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.search {
  display: flex;
  width: 270px;
  max-width: 100%;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.search span {
  margin-right: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.hub-toolbar-left,
.hub-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-toolbar-left {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.hub-toolbar-right {
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hub-status {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
}

.hub-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.hub-status a {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.hub-status a:hover {
  border-color: var(--border);
  color: var(--text);
}

.hub-status strong {
  color: var(--text);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 1.6px;
  padding: 7px 10px;
  text-transform: uppercase;
  transition: 0.14s ease;
}

.filter-brand-logo {
  display: none;
}

.filter-brand-logo img {
  display: block;
  max-width: 92px;
  max-height: 18px;
}

.filter-brand-logo img.tint-logo {
  filter: var(--brand-logo-filter, none);
}

.filter.active,
.filter:hover {
  background: var(--panel-cta-bg);
  border-color: var(--panel-cta-border);
  color: var(--panel-cta-fg);
}

html[data-theme="dark"] body.hub-view-compact .filter {
  color: var(--text);
}

html[data-theme="dark"] .filter.active,
html[data-theme="dark"] .filter:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.section {
  position: relative;
  margin-top: 28px;
  padding: 22px 30px 30px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.section::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 9px;
  background: var(--zone-color);
  content: "";
}

.brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-right: 26px;
}

.brand-name {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand-logo {
  display: flex;
  min-width: 132px;
  height: 42px;
  align-items: center;
  justify-content: flex-end;
  margin-right: 18px;
}

.brand-logo img {
  display: block;
  max-width: 142px;
  max-height: 42px;
}

.brand-logo img.tint-logo {
  filter: var(--brand-logo-filter, none);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-right: 26px;
}

.card {
  --card-color: var(--ews);
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
  transition: 0.16s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgb(0 0 0 / 11%);
  transform: translateY(-2px);
}

.image {
  position: relative;
  display: flex;
  height: 138px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
}

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

.placeholder {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.series-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--icon-border);
  background: var(--icon-surface);
  color: var(--card-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.series-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.series-code {
  margin-bottom: 8px;
  color: var(--card-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.08;
  text-transform: uppercase;
}

.desc {
  min-height: 38px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--card-color);
  background: var(--card-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.14s ease;
}

.btn:hover {
  filter: brightness(0.92);
}

.btn.btn-disabled {
  pointer-events: none;
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.empty {
  display: none;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
}

body.hub-view-compact {
  background: var(--bg);
}

body.hub-view-compact .page {
  max-width: 1360px;
  padding-top: 22px;
}

body.hub-view-compact .top {
  align-items: center;
  margin-bottom: 14px;
}

body.hub-view-compact .intro {
  display: flex;
  max-width: none;
  align-items: center;
  gap: 24px;
}

body.hub-view-compact .ews-mark {
  margin-bottom: 0;
}

body.hub-view-compact .ews-logo {
  width: 132px;
  height: 34px;
}

body.hub-view-compact .ews-logo img {
  max-height: 34px;
}

body.hub-view-compact .top h1 {
  max-width: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

body.hub-view-compact .search {
  width: 270px;
}

body.hub-view-compact .filters {
  gap: 6px;
}

body.hub-view-compact .filter {
  min-height: 34px;
  padding: 6px 10px;
  background: var(--surface);
  letter-spacing: 1px;
}

body.hub-view-compact .filter.has-logo {
  min-width: 112px;
}

body.hub-view-compact .filter-brand-logo {
  display: flex;
  align-items: center;
}

body.hub-view-compact .filter.has-logo .filter-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.hub-view-compact .filter.active,
body.hub-view-compact .filter:hover {
  background: var(--surface);
  border-color: var(--panel-cta-border);
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--panel-cta-border);
}

.compact-hub {
  display: grid;
  gap: 15px;
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--ews);
  background: var(--ews);
  color: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.hub-cta-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.compact-entry {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.compact-brand-marker {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 10px;
}

.compact-brand-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--card-color);
}

.compact-section-logo {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  height: 22px;
  align-items: center;
}

.compact-section-logo img {
  display: block;
  max-width: 132px;
  max-height: 22px;
}

.compact-section-logo img.tint-logo {
  filter: var(--brand-logo-filter, none);
}

.compact-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: 0.14s ease;
}

.compact-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 9px 22px rgb(0 0 0 / 10%);
  transform: translateY(-1px);
}

.compact-card.is-disabled {
  opacity: 0.72;
}

.compact-card.is-disabled:hover {
  box-shadow: none;
  transform: none;
}

.compact-preview {
  position: relative;
  display: flex;
  height: 108px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: var(--surface-2);
}

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

.compact-series-icon {
  position: absolute;
  z-index: 2;
  bottom: -17px;
  left: 11px;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--icon-border);
  background: var(--icon-surface);
  color: var(--card-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.compact-series-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.compact-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 12px 12px;
}

.compact-card-head {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.compact-kicker {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--card-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.compact-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.compact-card p {
  min-height: 34px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-action {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid var(--card-color);
  background: var(--card-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  padding: 7px 9px;
  text-transform: uppercase;
}

.compact-action-muted {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
}

.hub-modal[hidden] {
  display: none;
}

.hub-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.hub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 42%);
}

.hub-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(0 0 0 / 26%);
}

.hub-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.hub-modal-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.hub-modal-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hub-modal-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.hub-modal-form {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.hub-field {
  display: grid;
  gap: 6px;
}

.hub-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hub-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.hub-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 4px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .top {
    flex-direction: column;
  }

  .search {
    width: 100%;
    margin-top: 0;
  }

  .hub-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hub-toolbar-left,
  .hub-toolbar-right {
    justify-content: flex-start;
  }

  body.hub-view-compact .top {
    align-items: stretch;
  }

  body.hub-view-compact .intro {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  body.hub-view-compact .search {
    width: 100%;
  }

  body.hub-view-compact .hub-status {
    justify-content: flex-start;
  }

  .hub-cta-row {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .view-switch {
    top: 48%;
    right: 0;
    bottom: auto;
    flex-direction: column;
    opacity: 0.34;
    transform: translateY(-50%);
  }

  .view-switch button {
    min-width: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 7px 8px;
    font-size: 9px;
  }

  .view-switch button:last-child {
    border-bottom: 0;
  }

  .theme-switch {
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .theme-switch-track {
    width: 146px;
  }

  .theme-switch-thumb {
    width: 71px;
    height: 26px;
  }

  html[data-theme="dark"] .theme-switch-thumb {
    transform: translateX(73px);
  }

  .page {
    padding: 14px 12px 92px;
  }

  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .ews-mark {
    max-width: 100%;
    gap: 8px;
  }

  .ews-logo {
    width: 96px;
    height: 28px;
  }

  .ews-logo img {
    max-height: 28px;
  }

  .ews-label {
    font-size: 15px;
    line-height: 1.05;
  }

  .top h1 {
    max-width: 150px;
    font-size: 10px;
    line-height: 1.2;
  }

  .hub-status {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: 0;
  }

  .hub-status span {
    min-height: 19px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .hub-status strong {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .hub-toolbar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .hub-toolbar-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    min-height: 31px;
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .search {
    width: 100%;
    min-height: 34px;
  }

  .search span {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .search input {
    font-size: 12px;
  }

  .hub-toolbar-right {
    display: block;
  }

  .hub-cta-row {
    position: fixed;
    z-index: 18;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -8px 20px rgb(0 0 0 / 10%);
    backdrop-filter: blur(10px);
  }

  .hub-cta {
    width: 100%;
    min-height: 36px;
    border-color: var(--ews);
    background: var(--surface);
    color: var(--ews);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 8px 9px;
  }

  .hub-cta-secondary {
    border-color: var(--border-strong);
    color: var(--text);
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 12px;
  }

  .image {
    height: 112px;
  }

  .section {
    margin-top: 16px;
    padding: 14px 12px 16px;
  }

  .brand-name {
    font-size: 20px;
    line-height: 1.1;
  }

  .brand-head {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    width: calc(100% - 22px);
    min-width: 0;
    margin-right: 22px;
    justify-content: flex-start;
  }

  .btn {
    width: 100%;
    min-height: 34px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  body.hub-view-compact .page {
    padding: 14px 12px 92px;
  }

  body.hub-view-compact .top {
    padding: 0;
  }

  body.hub-view-compact .intro {
    display: block;
  }

  body.hub-view-compact .ews-mark {
    margin-bottom: 0;
  }

  body.hub-view-compact .top h1 {
    font-size: 10px;
  }

  body.hub-view-compact .filter.has-logo {
    min-width: 84px;
  }

  body.hub-view-compact .filter-brand-logo img {
    max-width: 74px;
    max-height: 15px;
  }

  .compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 10px;
  }

  .compact-preview {
    height: 92px;
  }

  .compact-card h2 {
    font-size: 15px;
  }

  .compact-card p {
    min-height: 0;
  }

  .hub-modal {
    align-items: end;
    padding: 12px 8px calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .hub-modal-panel {
    width: 100%;
  }

  .hub-modal-actions {
    grid-template-columns: 1fr;
  }
}
