:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #24292e;
  --muted: #586069;
  --border: #e1e4e8;
  --accent: #ff7b00;
  --accent-soft: #fff8f0;
  --star: #d1d5db;
  --star-filled: #ff7b00;
  --warn-bg: #fff6e5;
  --warn-text: #8a5a00;
  --ok-bg: #e9f8ef;
  --ok-text: #1f6b3a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 6px;
  --font: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.app-shell,
.page {
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.prysel-auth-bar {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

/* Mutually exclusive: only one auth bar is visible. */
[data-prysel-auth-state="out"] .prysel-auth-bar--out,
[data-prysel-auth-state="in"] .prysel-auth-bar--in {
  display: inline-flex;
}

[data-prysel-auth-state="out"] .prysel-auth-bar--in,
[data-prysel-auth-state="in"] .prysel-auth-bar--out {
  display: none !important;
}

.prysel-auth-bar--in {
  max-width: min(100%, 28rem);
}

.prysel-auth-bar__signin {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.prysel-auth-bar__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.prysel-auth-bar__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.prysel-auth-bar__email {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.prysel-auth-bar__picture {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.auth-callback-page {
  padding: 2rem 0 3rem;
  max-width: 36rem;
}

button.header-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--text);
  width: 100%;
}

.container,
.shell-container,
.prysel-container {
  width: 100%;
  max-width: 72rem; /* 1152px - matches max-w-6xl from Prysel */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 56px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.site-header__brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.brand__logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.brand__area-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #586069;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
}

.search {
  position: relative;
  max-width: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b949e;
  display: inline-flex;
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 46px 0 32px;
  font: inherit;
  font-size: 13px;
  background: #fafbfc;
  color: var(--text);
  transition: all 0.15s ease;
}

.search__input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2);
}

.search__kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  color: #586069;
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.site-nav__link {
  color: #586069;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.site-nav__link:hover {
  color: #24292e;
  background: #f6f8fa;
  text-decoration: none;
}

.site-nav__link.is-active {
  color: #9a3412;
  font-weight: 600;
  background: #fff8f0;
  text-decoration: none;
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.button--compact {
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 6px;
}

.header-link {
  font-weight: 500;
  font-size: 14px;
  color: #586069;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.header-link:hover {
  color: #24292e;
  text-decoration: none;
}

.icon-button {
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.page:has(.store-hero--browse) {
  padding-top: 0;
}

.categories-bar {
  margin: 6px 0 18px;
}

.categories-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.categories-trigger__icon {
  display: inline-flex;
  color: #555;
}

.categories-select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: inherit;
  appearance: none;
  padding-right: 4px;
  cursor: pointer;
}

.categories-trigger__chevron {
  color: #777;
  font-size: 0.85rem;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 22px;
  margin-bottom: 18px;
}

.panel--narrow {
  max-width: 720px;
}

.panel--detail {
  padding: 28px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__header--tabs {
  border-bottom: 1px solid #ececec;
  padding-bottom: 10px;
}

.panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.panel__link {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.tabs {
  display: inline-flex;
  gap: 18px;
}

.tab {
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.app-row,
.app-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px 12px;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.app-tile:hover {
  text-decoration: none;
}

.app-tile:hover .app-tile__name {
  color: var(--accent);
}

.app-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #eee;
  display: block;
}

.app-tile__name {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.app-tile__price {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-tile__stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.star {
  color: var(--star);
  font-size: 0.78rem;
}

.star.is-filled {
  color: var(--star-filled);
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 8px 0 0;
}

.banner {
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.banner--warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.banner--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
}

.detail {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.detail__icon {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  object-fit: cover;
  background: #eee;
}

.detail__title {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.detail__meta,
.detail__downloads {
  color: var(--muted);
  margin: 0;
}

.detail__price {
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0;
}

.detail__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail__description {
  margin-top: 28px;
  border-top: 1px solid #ececec;
  padding-top: 20px;
}

.detail__description h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  filter: brightness(0.95);
}

.button--ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.upload-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-error,
.validation {
  color: #b42318;
  font-weight: 500;
  font-size: 0.88rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-user {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.header-link--button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-form {
  display: inline;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.subhead {
  margin: 24px 0 12px;
  font-size: 1.05rem;
}

.admin-table {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.role-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.role-form select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.status-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 4px 0 8px;
}

.status-pill--approved { color: #1f6b3a; }
.status-pill--pending { color: #8a5a00; }
.status-pill--blacklisted { color: #b42318; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

@media (max-width: 1100px) {
  .app-row,
  .app-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
  }

  .brand { grid-area: brand; }
  .search { grid-area: search; max-width: none; justify-self: stretch; }
  .site-header__actions { grid-area: actions; }

  .app-row,
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-row,
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail {
    flex-direction: column;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

/* --- Additive styles for newer markup (keeps original marketplace look) --- */
.site-nav {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.site-nav__link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 8px;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
  text-decoration: none;
}

.site-header__inner {
  grid-template-columns: auto auto 1fr auto;
}

.button--compact {
  min-height: 36px;
  padding: 0 14px;
}

.user-menu { position: relative; }

.user-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  font: inherit;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-avatar--lg { width: 40px; height: 40px; }
.user-avatar--xl { width: 64px; height: 64px; font-size: 1.4rem; }

.user-menu__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.user-menu__name { font-size: 0.88rem; font-weight: 700; }
.user-menu__role { font-size: 0.72rem; color: var(--muted); }

.user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 50;
}

.user-menu__header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 4px;
}

.user-menu__dropdown a,
.user-menu__logout {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.user-menu__dropdown a:hover,
.user-menu__logout:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.store-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.store-hero--browse {
  background: #f3f4f6;
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 1.1rem max(1rem, calc((100vw - 72rem) / 2 + 1rem)) 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  border-top: 0;
  align-items: start;
}

.store-hero__brand {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--accent);
}

.store-hero__title {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.store-hero--browse .store-hero__title {
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 0.55rem;
}

.store-hero__lede {
  margin: 0 0 16px;
  color: var(--muted);
}

.store-hero--browse .store-hero__lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #4b5563;
}

.store-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-hero__visual {
  display: flex;
  justify-content: center;
}

.store-hero--browse .store-hero__visual {
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.store-hero__orbit {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.store-hero--browse .store-hero__orbit {
  width: 148px;
  height: 148px;
  border-color: #e5e7eb;
}

.store-hero__pixel-p {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  object-fit: contain;
}

.store-filter-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.store-filter-chip__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e5e7eb;
  color: #111827;
  border-radius: 4px;
  padding: 0.2rem 0.45rem 0.2rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.store-filter-chip__pill a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.15rem;
}

.store-filter-chip__clear {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.store-filter-chip__clear:hover {
  text-decoration: underline;
}

.store-browse {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.75rem 0 2.5rem;
  align-items: start;
}

.store-sidebar__eyebrow {
  display: none;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.store-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.store-sidebar__label-short {
  display: none;
}

.store-sidebar__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.25rem;
  color: #111827;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.store-sidebar__item:hover {
  background: #f9fafb;
  text-decoration: none;
}

.store-sidebar__item.is-selected {
  font-weight: 600;
}

.store-sidebar__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #9ca3af;
  display: inline-block;
  position: relative;
}

.store-sidebar__item.is-selected .store-sidebar__radio {
  border-color: #2563eb;
}

.store-sidebar__item.is-selected .store-sidebar__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #2563eb;
}

.store-sidebar__label {
  min-width: 0;
}

.store-sidebar__count {
  color: #9ca3af;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}

.store-toolbar__count {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.store-toolbar__sort label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.store-toolbar__sort select {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.35rem 0.5rem;
  font: inherit;
  border-radius: 4px;
  color: #111827;
}

.store-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.store-result-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.7rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.store-result-card:hover {
  background: #f9fafb;
  text-decoration: none;
}

.store-result-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.store-result-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.store-result-card__by {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.store-result-card__desc {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-result-card__rating {
  margin: 0;
  font-size: 0.84rem;
  color: #111827;
  font-weight: 600;
}

.store-result-card__star {
  color: #f59e0b;
  margin-right: 0.15rem;
}

.store-result-card__reviews {
  color: #6b7280;
  font-weight: 500;
  margin-left: 0.15rem;
}

.store-result-card__price {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #4b5563;
}

.store-listings-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.store-listings-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-listings-block__title {
  margin: 0;
  font-size: 1.15rem;
  color: #111827;
}

.store-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-cta__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.store-cta__lede {
  margin: 0;
  color: #4b5563;
  max-width: 48ch;
}

@media (max-width: 1100px) {
  .store-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile / tablet: horizontal swipe category rail + compact cards */
@media (max-width: 900px) {
  .store-browse {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 0.85rem;
  }

  .store-hero--browse {
    padding: 1.1rem 0 0.85rem;
  }

  .store-hero--browse .store-hero__title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .store-hero--browse .store-hero__lede {
    font-size: 0.95rem;
    max-width: 40ch;
  }

  .store-hero--browse .store-hero__visual {
    display: none;
  }

  .store-sidebar {
    position: sticky;
    top: 56px;
    z-index: 30;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.55rem 0 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
  }

  .store-sidebar__eyebrow {
    display: block;
    padding: 0 1rem;
  }

  .store-sidebar__nav,
  .store-category-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 1rem 0.25rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .store-sidebar__nav::-webkit-scrollbar,
  .store-category-rail::-webkit-scrollbar {
    display: none;
  }

  .store-sidebar__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .store-sidebar__item:hover {
    background: #fff8f0;
    border-color: #fdba74;
  }

  .store-sidebar__item.is-selected {
    background: #ff7b00;
    border-color: #ff7b00;
    color: #fff;
    font-weight: 700;
  }

  .store-sidebar__radio {
    display: none;
  }

  .store-sidebar__label-full {
    display: none;
  }

  .store-sidebar__label-short {
    display: inline;
  }

  .store-sidebar__count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .store-sidebar__item.is-selected .store-sidebar__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .store-toolbar {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .store-result-grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .store-result-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0.35rem;
    border-radius: 12px;
    border-bottom: 1px solid #f3f4f6;
  }

  .store-result-card:last-child {
    border-bottom: 0;
  }

  .store-result-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .store-result-card__title {
    font-size: 0.95rem;
  }

  .store-result-card__desc {
    -webkit-line-clamp: 1;
    font-size: 0.8rem;
  }

  .store-result-card__price {
    display: none;
  }

  .store-listings-block__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .store-cta {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .store-result-grid {
    grid-template-columns: 1fr;
  }

  .page.container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* Mobile horizontal functions menu (replaces hidden desktop nav) */
.mobile-funs-nav {
  display: none;
}

@media (max-width: 980px) {
  .mobile-funs-nav {
    display: block;
    position: sticky;
    top: 56px;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
  }

  .mobile-funs-nav__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.45rem 1rem;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .mobile-funs-nav__track::-webkit-scrollbar {
    display: none;
  }

  .mobile-funs-nav__link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-funs-nav__link:hover {
    text-decoration: none;
    border-color: #fdba74;
    background: #fff8f0;
  }

  .mobile-funs-nav__link.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
  }

  /* Category rail sits under the funs nav on store pages */
  .store-sidebar {
    top: 105px;
  }
}

.panel--cta { margin-top: 0; }

.cta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.content-page h2 {
  margin-top: 22px;
  font-size: 1.15rem;
}

.content-page ol,
.content-page ul {
  padding-left: 1.2rem;
}

.content-page li { margin: 0.4rem 0; }

.code-block {
  background: #2a2a2a;
  color: #f0f0f0;
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

/* Authentic Prysel Footer — exact match to Prysel platform */
.prysel-footer {
  position: relative;
  width: 100%;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #171717;
  font-family: var(--font);
  overflow: hidden;
  margin-top: 48px;
}

.prysel-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .prysel-footer__inner {
    grid-template-columns: 4.2fr 7.8fr;
  }
}

.prysel-footer__cta {
  position: relative;
  padding: 36px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .prysel-footer__cta {
    padding: 48px 48px 40px;
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
    min-height: 480px;
  }
}

.footer-plus {
  position: absolute;
  color: #9ca3af;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.footer-plus--tr {
  top: -9px;
  right: -5px;
}

.footer-plus--br {
  bottom: -9px;
  right: -5px;
}

.prysel-footer__headline {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #000000;
}

.prysel-footer__sub {
  color: #525252;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 0 28px;
  font-weight: 400;
}

.prysel-footer__form {
  position: relative;
  max-width: 320px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.prysel-footer__form input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 48px 13px 18px;
  font-family: inherit;
  font-size: 13.5px;
  border-radius: 9999px;
  color: #171717;
}

.prysel-footer__form input::placeholder {
  color: #9ca3af;
}

.prysel-footer__form button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.prysel-footer__form button:hover {
  opacity: 0.8;
}

.prysel-footer__form-success {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 10px;
}

.prysel-footer__right {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  position: relative;
}

.prysel-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .prysel-footer__links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.prysel-footer__col {
  position: relative;
  padding: 28px 20px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .prysel-footer__col {
    padding: 32px 24px;
    border-bottom: none;
  }
  .prysel-footer__col:last-child {
    border-right: none;
  }
}

.prysel-footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0 0 20px;
}

.prysel-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prysel-footer__col a {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.prysel-footer__col a:hover {
  color: #000000;
  text-decoration: none;
}

.prysel-footer__watermark-zone {
  position: relative;
  flex-grow: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.prysel-footer__watermark {
  font-size: clamp(3.8rem, 9.5vw, 8.5rem);
  font-weight: 900;
  color: rgba(203, 213, 225, 0.45);
  letter-spacing: -0.06em;
  line-height: 1;
  transform: translateY(12px);
  white-space: nowrap;
}

.prysel-footer__bottom {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 1rem;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 20;
}

@media (min-width: 900px) {
  .prysel-footer__bottom {
    flex-direction: row;
  }
}

.prysel-footer__copyright {
  text-align: center;
}

.prysel-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.prysel-footer__legal a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.prysel-footer__legal a:hover {
  color: #000000;
  text-decoration: none;
}

.prysel-footer__top-btn {
  background: none;
  border: none;
  border-left: 1px solid #e5e7eb;
  padding: 0 0 0 20px;
  margin-left: 4px;
  color: #6b7280;
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.prysel-footer__top-btn:hover {
  color: #000000;
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .search { max-width: 220px; }
  .store-hero { grid-template-columns: 1fr; }
  .store-hero__visual { display: none; }
}

@media (max-width: 640px) {
  .search { display: none; }
  .user-menu__meta { display: none; }
  .cta-row { display: grid; }
}

/* ==========================================================================
   Prysel Auth (Login & Register) - Matched to /Users/marktplaats/Documents/Prysel
   ========================================================================== */
.login-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  background: transparent;
}

.login-body {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 0.5rem 2.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.login-header-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.login-subtitle {
  color: #57606a;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus {
  outline: none;
  border-color: #007b83;
  box-shadow: 0 0 0 3px rgba(0, 123, 131, 0.15);
}

.form-input.input-error {
  border-color: #dc2626;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.password-toggle:hover {
  color: #374151;
}

.password-toggle:focus-visible {
  outline: 2px solid #007b83;
  outline-offset: 2px;
}

.form-forgot-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.form-forgot-link {
  font-size: 0.78rem;
  color: #007b83;
  text-decoration: none;
  font-weight: 500;
}

.form-forgot-link:hover {
  text-decoration: underline;
}

.agreement-group {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.agreement-checkbox {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #007b83;
  cursor: pointer;
}

.agreement-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
}

.agreement-link {
  color: #007b83;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.agreement-link:hover {
  color: #005a60;
}

.btn-continue {
  margin-top: 1rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #ff8c00;
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}

.btn-continue:hover:not(:disabled) {
  background: #e67e00;
}

.btn-continue:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-continue:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup-text {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: #374151;
}

.signup-link {
  color: #007b83;
  text-decoration: none;
  font-weight: 600;
}

.signup-link:hover {
  text-decoration: underline;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Agreement Modal */
.prysel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.prysel-modal-content {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 0.75rem;
  max-width: 38rem;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.prysel-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e1e4e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prysel-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.prysel-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.prysel-modal-close:hover {
  color: #111;
  background: #f3f4f6;
}

.prysel-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

.prysel-modal-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin: 1.2rem 0 0.4rem;
}

.prysel-modal-body p {
  margin: 0 0 0.8rem;
}

.prysel-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e1e4e8;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Prysel App Detail Pages - Matched to /Users/marktplaats/Documents/Prysel/frontend/src/pages/DetailPages.tsx
   ========================================================================== */
.detail-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #0366d6;
}

.detail-breadcrumb a {
  color: #0366d6;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-breadcrumb .slash {
  color: #9ca3af;
}

.detail-breadcrumb .current {
  color: #24292e;
  font-weight: 600;
}

.detail-breadcrumb .handle {
  color: #57606a;
  font-family: ui-monospace, monospace;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .detail-hero {
    flex-direction: row;
    align-items: flex-start;
  }
}

.detail-hero__icon-box {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  border: 1px solid #e1e4e8;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-hero__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.detail-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #24292e;
  font-family: ui-monospace, monospace;
  letter-spacing: -0.02em;
  margin: 0;
}

.detail-hero__meta {
  font-size: 0.8125rem;
  color: #586069;
  margin: 0;
}

.detail-hero__meta a {
  font-weight: 600;
  color: #0366d6;
  text-decoration: none;
}

.detail-hero__meta a:hover {
  text-decoration: underline;
}

.detail-hero__lede {
  font-size: 0.875rem;
  font-weight: 500;
  color: #24292e;
  margin: 0;
}

.detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-blue {
  background: #0366d6;
  color: #ffffff;
}

.badge-gray {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  color: #586069;
}

.badge-green {
  background: #def7ec;
  border: 1px solid #bcf0da;
  color: #03543f;
}

.badge-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}

.detail-star-icon {
  display: inline-block;
  color: #f59e0b;
  flex-shrink: 0;
}

.detail-stat-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}

.tab-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

.detail-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.35rem;
  font-size: 0.78125rem;
  color: #586069;
}

.detail-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  background: #ffffff;
  color: #24292e;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-star-btn:hover {
  background: #f6f8fa;
  border-color: #d1d5db;
}

.detail-hero__back {
  flex-shrink: 0;
}

.detail-hero__back .button {
  border: 1px solid #e1e4e8;
  background: #ffffff;
  color: #24292e;
  font-size: 0.78125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}

.detail-hero__back .button:hover {
  background: #f6f8fa;
}

/* Tabs */
.detail-tabs-bar {
  border-bottom: 1px solid #e1e4e8;
}

.detail-tabs {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  overflow-x: auto;
}

.detail-tab {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  color: #586069;
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.detail-tab.is-active {
  border-bottom-color: #0366d6;
  color: #0366d6;
  font-weight: 700;
}

.detail-tab:hover:not(.is-active) {
  color: #24292e;
}

/* Content Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Prysel Card */
.prysel-card {
  border: 1px solid #e1e4e8;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.prysel-card__header {
  border-bottom: 1px solid #f0f3f6;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.prysel-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #24292e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prysel-card__title--small {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #24292e;
}

.prysel-card__body {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #24292e;
}

.cli-box {
  border-radius: 0.5rem;
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  padding: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #24292e;
  margin: 1.25rem 0;
}

.cli-box__comment {
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.cli-box__command {
  color: #0366d6;
  font-weight: 600;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f6f8fa;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: #586069;
}

.spec-value {
  font-weight: 600;
  color: #24292e;
}

/* Code Snippet Box (Dark GitHub / Terminal Style) */
.code-box {
  position: relative;
  background: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
}

.code-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  padding: 8px 14px;
  border-bottom: 1px solid #30363d;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-box__copy-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-box__copy-btn:hover {
  background: #30363d;
  border-color: #8b949e;
  color: #58a6ff;
}

.code-box__pre {
  margin: 0;
  padding: 14px 18px;
  overflow-x: auto;
  line-height: 1.6;
  color: #e6edf3;
}

.code-box__pre code {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Developer Profile Page Styles */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-hero-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-banner {
  height: 170px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e1e4e8;
}

.profile-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
}

.profile-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.25rem 1.5rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.profile-header__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

@media (min-width: 640px) {
  .profile-header__main {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.profile-header__avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 4px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.profile-header__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-header__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.75rem;
}

@media (max-width: 639px) {
  .profile-header__details {
    padding-top: 0.25rem;
  }
}

.profile-header__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.profile-header__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #24292e;
  margin: 0;
  line-height: 1.2;
}

.profile-header__handle {
  font-size: 0.875rem;
  color: #586069;
  font-weight: 600;
}

.profile-header__bio {
  font-size: 0.875rem;
  color: #24292e;
  margin: 0;
  line-height: 1.5;
  max-width: 680px;
}

.profile-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #586069;
  margin-top: 0.25rem;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.profile-assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .profile-assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-asset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.profile-asset-card:hover {
  border-color: #0366d6;
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.08);
}

.profile-asset-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-asset-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0366d6;
}

.profile-asset-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-asset-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-asset-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #24292e;
  text-decoration: none;
}

.profile-asset-card__title:hover {
  color: #0366d6;
  text-decoration: underline;
}

.profile-asset-card__desc {
  font-size: 0.78rem;
  color: #586069;
  line-height: 1.5;
  margin: 0;
}

.profile-asset-card__bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: #586069;
  border-top: 1px solid #f0f3f6;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Marketplace listings catalog */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.listing-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-tile:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.listing-tile__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.listing-tile__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.listing-tile__summary {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 2.6em;
}

.listing-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.listing-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.listing-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #475569;
}

.listing-filters select,
.publish-modal__panel input,
.publish-modal__panel select,
.publish-modal__panel textarea {
  min-width: 160px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.listing-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.listing-detail__brand {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0366d6;
  font-weight: 700;
}

.listing-detail__title {
  margin: 0.25rem 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.listing-detail__summary {
  margin: 0 0 0.75rem;
  color: #475569;
  max-width: 54ch;
}

.listing-detail__badges,
.listing-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.publish-modal[hidden] {
  display: none !important;
}

.publish-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.publish-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.publish-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: listing-modal-in 180ms ease;
}

.publish-modal__panel h2 {
  margin: 0;
}

.publish-modal__panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.publish-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

@keyframes listing-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .listing-detail__header {
    flex-direction: column;
  }
}

/* Native Community pages (no iframe) */
.community-page__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.community-compose {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.15rem 1.25rem 1.35rem;
  margin-top: 1rem;
}

.community-compose label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.community-compose input,
.community-compose textarea {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.community-compose textarea {
  min-height: 280px;
  line-height: 1.55;
  resize: vertical;
}

.community-compose__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.banner--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.65rem 0.85rem;
  margin: 0.75rem 0 1rem;
}


.community-page__brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0366d6;
  font-weight: 700;
}

.community-page__title,
.community-post__title {
  margin: 0.25rem 0;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  color: #0f172a;
}

.community-page__lede {
  margin: 0.35rem 0 0;
  color: #475569;
  max-width: 54ch;
}

.community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  margin: 1.25rem 0 1.5rem;
}

.community-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #475569;
}

.community-filters input,
.community-filters select {
  min-width: 180px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.community-card {
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 1rem 1.15rem;
}

.community-card__title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.community-card__title:hover {
  color: #0366d6;
}

.community-card__excerpt {
  margin: 0.45rem 0;
  color: #475569;
  line-height: 1.5;
}

.community-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.community-card__meta a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 600;
}

.community-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.community-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.community-post {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.25rem 1.4rem 1.75rem;
}

.community-post__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0.75rem 0;
}

.community-post__author {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.community-post__author img {
  border-radius: 50%;
  object-fit: cover;
}

.community-post__body {
  color: #1f2937;
  line-height: 1.7;
  font-size: 0.98rem;
}

.community-post__body h2,
.community-post__body h3 {
  margin: 1.4rem 0 0.55rem;
  color: #0f172a;
  scroll-margin-top: 5rem;
}

.community-post__body p {
  margin: 0 0 0.85rem;
}

.community-post__list {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.community-post__body code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.05rem 0.3rem;
  font-size: 0.9em;
}

.community-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}

.community-sidebar-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.9rem 1rem;
}

.community-sidebar-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.community-toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.community-toc__link {
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.35;
}

.community-toc__link:hover {
  color: #0366d6;
}

.community-toc__link--h3 {
  padding-left: 0.75rem;
  color: #64748b;
}

.community-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.community-related a {
  color: #0366d6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.community-comments {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e5e7eb;
}

.community-comments__header {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.community-comments__title {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.community-comments__signin,
.community-comments__empty {
  margin: 0.75rem 0 1rem;
}

.community-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.community-comment-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 88px;
}

.community-comment-form__actions {
  display: flex;
  justify-content: flex-end;
}

.community-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.community-comment {
  border: 1px solid #e5e7eb;
  background: #fafbfc;
  padding: 0.85rem 0.95rem;
}

.community-comment__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.45rem;
}

.community-comment__body {
  margin: 0;
  color: #0f172a;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .community-post-layout {
    grid-template-columns: 1fr;
  }

  .community-post-sidebar {
    position: static;
  }
}


