
  :root {
    color-scheme: dark;
    --bg: #121212; --surface: #1a1a1a; --fg: #ededed; --muted: #8d8d8d;
    --faint: #5e5e5e; --border: #262626; --accent: #e8865a; --accent-fg: #111111;
    --fg2: #c3c3c3;
    --code-bg: #1a1a1a; --danger: #e08272;
    --warn-bg: #272113; --warn-border: #4b3d1e; --warn-fg: #d9b96a;
    /* Success green (theme-independent); used only for the onboarding
       celebration, never the terracotta brand accent. */
    --ok: #23d18b; --check: #7bd88f;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  }
  /* Manual override (theme toggle): the dark set above is the site's one
     default whatever the OS prefers; only an explicit "light" choice
     swaps the tokens. */
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #fbfaf8; --surface: #ffffff; --fg: #1c1a17; --muted: #6e6a62;
    --faint: #9a958c; --border: #e7e3dc; --accent: #b4532f; --accent-fg: #ffffff;
    --fg2: #3d3a35;
    --code-bg: #f3f0ea; --danger: #a33d2f;
    --warn-bg: #faf3e4; --warn-border: #e6d3a8; --warn-fg: #77591c;
    --check: #2f9e57;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg);
    font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%; }
  main { max-width: 44rem; margin: 0 auto; padding: 1.9rem 1.25rem 3.5rem; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }

  header.site { border-bottom: 1px solid var(--border); }
  .site-inner { max-width: 1040px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .brand { display: inline-flex; align-items: center; gap: .55rem;
    font-size: 15.5px; font-weight: 700; color: var(--fg); }
  .brand:hover { text-decoration: none; color: var(--fg); }
  .brand svg { display: block; width: 20px; height: 20px; }
  form.hsearch { flex: 1; max-width: 340px; margin: 0; display: flex; }
  form.hsearch input[type=search] { width: 100%; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px;
    font-size: 14px; color: var(--fg); }
  form.hsearch input::placeholder { color: var(--faint); }
  .search-history-host { position: relative; }
  .search-history { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
    min-width: min(18rem, calc(100vw - 2rem)); padding: .35rem; border: 1px solid var(--border);
    border-radius: 9px; background: var(--surface); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
  .search-history-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .25rem .35rem .2rem .55rem; }
  .search-history-title { color: var(--muted); font-size: .72rem;
    font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .search-history-clear, .search-history-remove { border: 0; background: transparent; color: var(--muted);
    cursor: pointer; font: inherit; }
  .search-history-clear { padding: .25rem .3rem; border-radius: 5px; font-size: .72rem; }
  .search-history-row { display: flex; align-items: center; border-radius: 6px; }
  .search-history a { min-width: 0; flex: 1; display: block; padding: .45rem .55rem; color: var(--fg);
    font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-history-remove { flex: none; width: 1.9rem; height: 1.9rem; padding: 0; border-radius: 5px;
    font-size: 1rem; line-height: 1; }
  .search-history-row:hover, .search-history-row:focus-within,
  .search-history-clear:hover, .search-history-clear:focus-visible,
  .search-history-remove:hover, .search-history-remove:focus-visible { background: var(--code-bg); }
  .search-history a:hover, .search-history a:focus-visible { text-decoration: none; }
  @media (max-width: 520px) {
    .search-history { min-width: 0; width: 100%; }
  }
  .header-actions { margin-left: auto; display: flex; align-items: center;
    justify-content: flex-end; gap: .9rem; flex-wrap: wrap; }
  header.site nav { display: flex; align-items: center;
    gap: .9rem; font-size: 14px; color: var(--muted); }
  header.site nav a { color: var(--muted); }
  header.site nav a:hover { color: var(--fg); text-decoration: none; }
  header.site nav button.linkish { color: var(--muted); font-size: 14px; }
  .nav-account { display: inline-block; max-width: 15rem; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  footer.site { border-top: 1px solid var(--border); margin-top: 72px;
    color: var(--muted); font-size: 14px; }
  footer.site .footer-in { max-width: 1040px; margin: 0 auto; padding: 40px 24px 48px;
    display: grid; grid-template-columns: 120px repeat(3, 1fr); gap: 24px; }
  footer.site .footer-in svg { display: block; width: 20px; height: 20px; }
  footer.site h4 { margin: 0 0 10px; font-size: 14px; color: var(--fg); font-weight: 600; }
  footer.site .footer-in a { display: block; color: var(--muted); line-height: 1.9; }
  footer.site .footer-in a:hover { color: var(--fg); text-decoration: none; }
  footer.site .footer-tail { max-width: 1040px; margin: 0 auto; padding: 0 24px 40px;
    display: flex; align-items: center; gap: 1rem; font-size: 12px; color: var(--faint); }
  footer.site .footer-tail code { font-size: 12px; }
  @media (max-width: 640px) { footer.site .footer-in { grid-template-columns: 1fr 1fr; } }
  body.layout-wide main { max-width: 64rem; }

  h1 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .35rem; }
  h1.mono { font-family: var(--mono); font-size: 1.18rem; overflow-wrap: anywhere; }
  h2 { font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted); margin: 2.3rem 0 .7rem; }
  h3.scope { font-family: var(--mono); font-size: .95rem; margin: 1.6rem 0 .2rem; }
  .muted { color: var(--muted); }
  /* One physical line per step (ruling 20): a money line is printed whole
     and scrolls sideways rather than wrapping or collapsing. */
  ul.steps li.step-money { white-space: nowrap; overflow-x: auto; }
  .sub { color: var(--muted); font-size: .92rem; margin: .1rem 0 0;
    /* Seller-authored text (script descriptions) can carry an unbroken
       token longer than the viewport — break it rather than widen the page. */
    overflow-wrap: anywhere; }
  .crumbs { font-family: var(--mono); font-size: .84rem; color: var(--muted);
    margin: 0 0 1.5rem; }
  .crumbs a { color: var(--muted); }
  .crumbs a:hover { color: var(--accent); }

  code { font-family: var(--mono); font-size: .88em; background: var(--code-bg);
    padding: .12rem .35rem; border-radius: 5px; overflow-wrap: anywhere; }
  pre { font-family: var(--mono); font-size: .84rem; line-height: 1.55;
    background: var(--code-bg); border: 1px solid var(--border); border-radius: 9px;
    padding: .8rem 1rem; overflow-x: auto; position: relative; }
  .copy-btn { position: absolute; top: .4rem; right: .4rem; font-family: var(--mono);
    font-size: .72rem; padding: .24rem .55rem; border-radius: 6px; }
  .theme-btn { margin-left: auto; border: none; background: none; padding: 0 .15rem; line-height: 1;
    font-size: 1rem; color: var(--faint); cursor: pointer; }
  .theme-btn:hover { color: var(--fg); border: none; }
  pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
  pre .p { color: var(--muted); user-select: none; }

  button, .btn { font: inherit; font-size: .9rem; padding: .4rem .95rem;
    border: 1px solid var(--border); border-radius: 7px; background: var(--surface);
    color: var(--fg); cursor: pointer; display: inline-block; }
  button:hover, .btn:hover { border-color: var(--muted); text-decoration: none; }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
  .btn-primary:hover { border-color: var(--accent); opacity: .92; }
  .btn-block { display: block; text-align: center; }
  button.linkish { border: none; background: none; padding: 0; color: var(--accent);
    font-size: inherit; }
  button.linkish:hover { text-decoration: underline; }
  input[type=search], input[type=text] { font: inherit; font-size: .92rem;
    padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); color: var(--fg); min-width: 0; }
  input::placeholder { color: var(--muted); }
  a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; }

  form.search { display: flex; gap: .5rem; margin: 1.3rem 0 .9rem; }
  form.search input { flex: 1; }
  .hero h1 { font-size: 1.85rem; margin-bottom: .4rem; }
  .hero .sub { font-size: .98rem; max-width: 38rem; }
  .hero form.search { margin: 1.4rem 0 0; }
  .hero form.search input { font-size: 1rem; padding: .6rem .85rem; }
  .hero form.search button { font-size: .95rem; padding: .6rem 1.15rem; }
  .market-search-row { display: flex; align-items: center; gap: .9rem;
    margin: 1.4rem 0 1.8rem; }
  .market-search { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr);
    align-items: center; flex: 0 1 30rem; width: min(100%, 30rem); margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px; background: var(--surface); overflow: hidden; }
  .market-search:focus-within { border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent); }
  button.market-search-submit { display: grid; place-items: center; align-self: stretch;
    padding: 0; border: 0; border-right: 1px solid var(--border); border-radius: 0;
    background: transparent; color: var(--muted); }
  button.market-search-submit:hover { border-color: var(--border); color: var(--fg); }
  .market-search-submit svg { display: block; }
  .market-search input[type="search"] { width: 100%; padding: .62rem .8rem;
    border: 0; border-radius: 0; background: transparent; font-size: .92rem; }
  .market-search input[type="search"]:focus-visible { outline: 0; }
  .market-results[aria-busy="true"] { opacity: .55; }
  .market-pager { display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-top: 1.25rem; }
  .market-pager .actions { margin: 0; }
  @media (max-width: 520px) { .market-search { flex-basis: auto; } }
  .stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin: 1.6rem 0 .4rem; }
  .stat-n { display: block; font-size: 1.5rem; font-weight: 650; line-height: 1.25;
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .stat-l { font-size: .75rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: .08em; }
  .cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
    gap: .6rem; margin: .2rem 0 .4rem; }
  .cat { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
    text-decoration: none; }
  a.cat:hover { border-color: var(--muted); text-decoration: none; }
  .cat-name { font-family: var(--mono); font-size: .9rem; font-weight: 600;
    color: var(--fg); }
  .cat-count { font-size: .78rem; color: var(--muted);
    font-variant-numeric: tabular-nums; }
  .cat.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .cat.active .cat-name { color: var(--accent); }
  .cat.soon { border-style: dashed; background: none; }
  .cat.soon .cat-name { color: var(--muted); font-weight: 500; }

  ul.pkgs { list-style: none; margin: .4rem 0 0; padding: 0;
    border-bottom: 1px solid var(--border); }
  ul.pkgs li { padding: .75rem 0; border-top: 1px solid var(--border); }
  .home-sale-head { display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin: 2.3rem 0 .7rem; }
  .home-sale-head h2 { margin: 0; }
  .home-sale-count { margin-right: auto; font-size: .78rem; color: var(--muted);
    font-variant-numeric: tabular-nums; white-space: nowrap; }
  .home-sale-head a { font-size: .82rem; white-space: nowrap; }
  .row-head { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
  .row-head .grow { flex: 1; }
  a.pkg-name { font-family: var(--mono); font-size: .95rem; font-weight: 600;
    color: var(--fg); overflow-wrap: anywhere; }
  a.pkg-name:hover { color: var(--accent); text-decoration: none; }
  .ver { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
  .pkg-desc { margin: .15rem 0 0; color: var(--muted); font-size: .9rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; }
  .pkg-install { margin: .3rem 0 0; font-size: .8rem; }
  ul.pkgs li.pkg-with-artwork { display: flex; align-items: center; gap: 1rem; }
  .pkg-artwork { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden;
    border-radius: 9px; background: var(--surface); }
  .pkg-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .pkg-row-copy { min-width: 0; flex: 1; }

  .badge { display: inline-block; font-family: var(--mono); font-size: .72rem;
    line-height: 1; padding: .22rem .5rem; border: 1px solid var(--border);
    border-radius: 999px; color: var(--muted); white-space: nowrap; }
  .badge.warn { color: var(--warn-fg); border-color: var(--warn-border);
    background: var(--warn-bg); }
  .badge.danger { color: var(--danger); }
  .banner { border: 1px solid var(--warn-border); background: var(--warn-bg);
    color: var(--warn-fg); border-radius: 9px; padding: .55rem .9rem;
    font-size: .9rem; margin: 1rem 0; }
  .banner.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent);
    background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
  .banner.red { border-color: color-mix(in srgb, var(--danger) 55%, transparent);
    background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger);
    line-height: 1.5; }
  .banner.red a { color: inherit; text-decoration: underline; }
  main.pk > .banner { grid-column: 1 / -1; margin: 0 0 .4rem; }

  table { border-collapse: collapse; width: 100%; font-size: .88rem; }
  th { text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); padding: .25rem .8rem .25rem 0; }
  td { padding: .45rem .8rem .45rem 0; border-top: 1px solid var(--border);
    vertical-align: baseline; }
  td form { margin: 0; }

  form.report textarea { width: 100%; font: inherit; font-size: .92rem;
    padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); color: var(--fg); resize: vertical; }
  .choice { display: block; padding: .28rem 0; font-size: .95rem; }
  .choice input { margin-right: .5rem; accent-color: var(--accent); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .mono-inline { font-family: var(--mono); }
  .report-link { margin-top: 2.2rem; font-size: .82rem; }
  .report-link a { color: var(--muted); }
  .report-link a:hover { color: var(--accent); }

  .panel { border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); padding: 1.1rem 1.25rem; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem;
    margin: 0; font-size: .92rem; }
  .kv dt { color: var(--muted); }
  .kv dd { margin: 0; overflow-wrap: anywhere; }
  .kv ul { list-style: none; margin: 0; padding: 0; }

  .card { max-width: 24.5rem; margin: 3.5rem auto 0; padding: 1.9rem 1.9rem 1.7rem;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .card h1 { margin-top: .9rem; }
  .wait { font-size: .88rem; color: var(--muted); }
  .pulse { display: inline-block; width: .5em; height: .5em; border-radius: 50%;
    background: var(--accent); margin-right: .45em;
    animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
  .actions { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
  .card .actions .btn { flex: 1; text-align: center; }

  /* Owner profile and watch management. */
  main.profile-page { max-width: 64rem; padding-top: 2.75rem; }
  .profile-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center; gap: 1.15rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
  .profile-monogram { display: grid; place-items: center; width: 64px; height: 64px;
    border-radius: 20px; background: color-mix(in srgb, var(--accent) 13%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    color: var(--accent); font-size: 1.8rem; font-weight: 650; }
  .profile-copy { min-width: 0; overflow-wrap: anywhere; }
  .profile-head h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.045em; margin: .2rem 0 .3rem; }
  .profile-head h1 strong { font-weight: 650; }
  .profile-kicker { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 500; }
  .profile-subtitle { margin: 0; color: var(--muted); font-size: .875rem; }
  .profile-links { position: relative; display: flex; flex-direction: column; align-items: end; gap: .6rem; }
  .profile-links > a { font-size: .84rem; color: var(--fg2); font-weight: 550; }
  .account-details { font-size: .78rem; color: var(--muted); }
  .account-details summary { cursor: pointer; padding: .2rem 0; }
  .account-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  .account-details > div { position: absolute; z-index: 5; right: 0; top: 100%; margin-top: .6rem;
    width: 280px; padding: 1rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); box-shadow: 0 12px 30px #0002; overflow-wrap: anywhere; }
  .account-details p { margin: 0 0 .6rem; }
  .account-details form { margin: 0; }
  .account-details button { padding: .25rem 0; }
  .watch-manager { margin: 2rem 0; }
  .watch-section-head { margin-bottom: 1.15rem; }
  .watch-section-head h2 { margin: 0; color: var(--fg); font-size: 1.5rem; font-weight: 650;
    letter-spacing: -.035em; line-height: 1.25; text-transform: none; }
  .watch-section-head p { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
  .watch-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: .65rem; align-items: center; margin: 0 0 .4rem; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .watch-toolbar input, .watch-toolbar select, .watch-edit-form input,
  .watch-edit-form textarea { box-sizing: border-box; width: 100%; font: inherit;
    padding: .6rem .75rem; border: 1px solid color-mix(in srgb, var(--border) 75%, var(--muted));
    border-radius: 10px; background: var(--surface); color: var(--fg); }
  .watch-toolbar input, .watch-toolbar select { height: 42px; font-size: .86rem; }
  .watch-toolbar select:hover, .watch-edit-form input:hover,
  .watch-edit-form textarea:hover { border-color: var(--muted); }
  .watch-search-field { display: flex; align-items: center; min-width: 0; gap: .5rem; height: 42px;
    padding: 4px 5px 4px 12px; border: 1px solid color-mix(in srgb, var(--border) 75%, var(--muted));
    border-radius: 10px; background: var(--surface); }
  .watch-search-field > svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
  .watch-search { flex: 1; min-width: 0; }
  .watch-search-field input { height: 32px; padding: 0; border: 0; background: transparent; border-radius: 0; }
  .watch-search-field button { flex-shrink: 0; height: 30px; padding: 0 .7rem; border-radius: 6px;
    font-size: .76rem; font-weight: 550; background: var(--code-bg); border-color: var(--border); }
  .watch-toolbar select:focus, .watch-toolbar select:focus-visible,
  .watch-edit-form input:focus, .watch-edit-form input:focus-visible,
  .watch-edit-form textarea:focus, .watch-edit-form textarea:focus-visible,
  .watch-search-field:focus-within {
    outline: 2px solid transparent; outline-offset: 2px; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
  .watch-search-field input:focus, .watch-search-field input:focus-visible { outline: 0; box-shadow: none; }
  .watch-clear { color: var(--muted); font-size: .8rem; padding: .5rem .2rem; }
  .watch-results-summary { margin: 0 0 1rem; color: var(--muted); font-size: .78rem; }
  .watch-list { list-style: none; margin: 0; padding: 0 .25rem;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    background: color-mix(in srgb, var(--surface) 65%, var(--bg)); }
  .watch-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(70px, auto) auto;
    align-items: center; gap: 1.15rem; padding: 1.25rem; }
  .watch-row + .watch-row { border-top: 1px solid var(--border); }
  .watch-row:hover { background: color-mix(in srgb, var(--fg) 2%, transparent); }
  .watch-cover { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden;
    border-radius: 12px; background: var(--code-bg); border: 1px solid var(--border); }
  .watch-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .watch-copy { min-width: 0; }
  .watch-title-line { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
  .watch-title-line > a, .watch-title { color: var(--fg); font-size: 1.06rem; line-height: 1.4; font-weight: 600;
    letter-spacing: -.015em; overflow-wrap: anywhere; }
  .watch-title-line > a:hover { color: var(--accent); text-decoration: none; }
  .watch-visibility { display: inline-flex; padding: .1rem .45rem; border-radius: 5px;
    font-size: .66rem; font-weight: 550; line-height: 1.5; text-transform: capitalize; white-space: nowrap;
    color: var(--muted); background: color-mix(in srgb, var(--muted) 9%, transparent); }
  .visibility-public { color: var(--check); background: color-mix(in srgb, var(--check) 9%, transparent); }
  .visibility-unlisted { color: var(--warn-fg); background: var(--warn-bg); }
  .watch-desc { margin: .35rem 0 0; color: var(--fg2); font-size: .85rem; line-height: 1.5;
    overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .watch-meta { margin: .45rem 0 0; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
  .watch-stats { display: flex; flex-wrap: wrap; min-width: 0; justify-content: end; gap: .9rem;
    font-variant-numeric: tabular-nums; }
  .watch-stat { display: flex; flex-direction: column; align-items: end; gap: .05rem; }
  .watch-stat strong { font-size: 1.1rem; font-weight: 550; color: var(--fg2); }
  .watch-stat span { font-size: .72rem; color: var(--muted); }
  .watch-actions { display: flex; align-items: center; gap: 1rem; margin-left: .3rem; }
  .watch-edit-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .45rem .75rem; min-height: 36px; border: 1px solid color-mix(in srgb, var(--border) 80%, var(--muted));
    border-radius: 8px; color: var(--fg); font-size: .8rem; font-weight: 550; background: var(--surface); }
  .watch-edit-link svg { width: 14px; height: 14px; }
  .watch-edit-link:hover { border-color: var(--muted); text-decoration: none; }
  .watch-view-link { color: var(--muted); font-size: .8rem; white-space: nowrap; padding: .45rem 0; }
  .watch-view-link span { margin-left: .15rem; }
  .watch-empty { margin: 0; padding: 3rem 1rem; border: 1px solid var(--border);
    border-radius: 16px; color: var(--muted); background: var(--surface); text-align: center; }
  .watch-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: .7rem; margin-top: 1rem; color: var(--muted); font-size: .82rem; }
  .watch-pager > :last-child { justify-self: end; }
  main.watch-edit { max-width: 44rem; padding-top: 2.5rem; }
  .watch-edit h1 { font-size: 1.8rem; letter-spacing: -.04em; margin-bottom: .4rem; }
  .watch-edit-form { margin-top: 1.8rem; border: 1px solid var(--border); border-radius: 16px;
    background: var(--surface); overflow: hidden; }
  .watch-edit-fields { display: grid; gap: 1.5rem; padding: 1.75rem; }
  .watch-field label { display: block; font-size: .875rem; font-weight: 600; color: var(--fg); }
  .watch-field > p { margin: .3rem 0 .7rem; font-size: .78rem; line-height: 1.5; color: var(--muted); }
  .watch-edit-form input, .watch-edit-form textarea { font-size: 1rem; background: var(--bg); }
  .watch-edit-form input { min-height: 46px; }
  .watch-edit-form textarea { line-height: 1.5; resize: vertical; }
  .watch-edit-footer { padding: 1.15rem 1.75rem; border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 65%, var(--surface)); }
  .watch-edit-footer > p { margin: 0; font-size: .78rem; color: var(--muted); }
  .watch-edit-footer .actions { align-items: center; justify-content: end; gap: 1.25rem; margin-top: 1rem; }
  .watch-cancel { color: var(--fg2); font-size: .84rem; }
  @media (forced-colors: active) {
    .watch-toolbar select:focus, .watch-toolbar select:focus-visible,
    .watch-edit-form input:focus, .watch-edit-form input:focus-visible,
    .watch-edit-form textarea:focus, .watch-edit-form textarea:focus-visible,
    .watch-search-field:focus-within { outline: 2px solid Highlight; box-shadow: none; }
  }
  @media (max-width: 800px) {
    .watch-row { grid-template-columns: 72px minmax(0, 1fr) minmax(70px, auto) auto; gap: 1rem; }
    .watch-cover { width: 72px; height: 72px; }
    .watch-actions { flex-direction: column; gap: .25rem; }
  }
  @media (max-width: 680px) {
    main.profile-page { padding-top: 1.25rem; }
    .profile-head { grid-template-columns: 52px minmax(0, 1fr); gap: .65rem .85rem; padding-bottom: 1rem; }
    .profile-monogram { width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; }
    .profile-head h1 { font-size: 1.6rem; }
    .profile-subtitle { display: none; }
    .profile-links { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; }
    .profile-links > a, .account-details { font-size: .75rem; }
    .account-details > div { width: min(280px, calc(100vw - 40px)); }
    .watch-manager { margin-top: 1.35rem; }
    .watch-section-head { margin-bottom: .9rem; }
    .watch-section-head h2 { font-size: 1.3rem; }
    .watch-section-head p { display: none; }
    .watch-toolbar { grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .4rem; }
    .watch-toolbar > label { min-width: 0; }
    .watch-search-field { grid-column: 1 / -1; }
    .watch-toolbar input { font-size: 1rem; }
    .watch-clear { grid-column: 1 / -1; justify-self: end; padding: 0; }
    .watch-list { padding: 0; border-radius: 12px; }
    .watch-row { grid-template-columns: 64px minmax(0, 1fr); gap: .7rem .8rem; padding: 1rem; align-items: start; }
    .watch-cover { width: 64px; height: 64px; border-radius: 10px; }
    .watch-title-line { gap: .3rem .4rem; }
    .watch-title-line > a, .watch-title { font-size: .95rem; }
    .watch-desc { font-size: .8rem; margin-top: .35rem; }
    .watch-meta { font-size: .7rem; }
    .watch-stats { grid-column: 2; justify-content: start; gap: 1rem; }
    .watch-stat { align-items: start; }
    .watch-stat strong { font-size: .95rem; }
    .watch-stat span { font-size: .68rem; }
    .watch-actions { grid-column: 2; flex-direction: row; gap: 1.25rem; margin-left: 0; }
    .watch-edit-link { min-height: 38px; }
    main.watch-edit { padding-top: 1.4rem; }
    .watch-edit h1 { font-size: 1.6rem; }
    .watch-edit-form { margin-top: 1.25rem; border-radius: 12px; }
    .watch-edit-fields { padding: 1.15rem; gap: 1.3rem; }
    .watch-edit-footer { padding: 1rem 1.15rem; }
  }

  /* Pricing badges (storefront rows + package page). */
  .price { display: inline-block; font-family: var(--mono); font-size: .82rem;
    line-height: 1; padding: .22rem .5rem; border: 1px solid var(--border);
    border-radius: 999px; color: var(--fg); white-space: nowrap;
    font-variant-numeric: tabular-nums; }
  .price.free { color: var(--muted); }
  .price.sale { color: var(--accent); border-color: var(--accent); }
  .price.off { color: var(--muted); }
  .price .was { color: var(--muted); text-decoration: line-through;
    margin-right: .35rem; }
  .price .now { font-weight: 600; }

  /* Seller portal + marketplace surfaces. */
  .panel + .panel { margin-top: 1rem; }
  .panel h3 { margin: 0 0 .3rem; font-size: 1rem; font-family: var(--mono); }
  .pkg-list { list-style: none; margin: .7rem 0 0; padding: 0; }
  .pkg-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--border); }
  .pkg-item:first-child { border-top: 0; }
  .pkg-tag { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: .16rem .4rem; }
  .pkg-name { font-family: var(--mono); font-size: .9rem; color: var(--fg); }
  .pkg-ver { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
  form.stack { display: flex; flex-direction: column; gap: .55rem;
    margin: .8rem 0 0; max-width: 26rem; }
  form.stack label { font-size: .82rem; color: var(--muted);
    display: flex; flex-direction: column; gap: .25rem; }
  form.stack input, form.stack select { font: inherit; font-size: .92rem;
    padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); color: var(--fg); }
  form.inline { display: inline-flex; gap: .4rem; margin: 0; align-items: center;
    flex-wrap: wrap; }
  form.inline input, form.inline select { font: inherit; font-size: .85rem;
    padding: .3rem .5rem; border: 1px solid var(--border); border-radius: 6px;
    background: var(--surface); color: var(--fg); width: 6.5rem; }
  /* Subtle currency adornment next to a bare price input (matches captions). */
  .field-suffix { font-size: .72rem; font-weight: 600; letter-spacing: .06em;
    color: var(--muted); align-self: center; margin-left: -.15rem; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .8rem; margin: .8rem 0 0; }
  .tile { border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); padding: .7rem .85rem; }
  .tile-n { display: block; font-size: 1.4rem; font-weight: 650; line-height: 1.2;
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .tile-l { font-size: .72rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: .06em; }
  .note { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
  .note.bad { color: var(--danger); }
  .disabled-hint { font-size: .78rem; color: var(--muted); margin-left: .4rem; }

  /* One card per owned listing, clearly separated, with room to breathe.
     scroll-margin-top keeps a PRG jump to #listing-<slug> off the top edge. */
  .listing-card { border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); padding: 1.15rem 1.25rem 1.3rem; margin-top: 1.15rem;
    scroll-margin-top: 1rem; }
  .listing-card:first-of-type { margin-top: .9rem; }
  /* Live listing as an expandable drawer: summary row scans in one line; the
     package contents + manage controls open in place. */
  .listing-drawer { border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); margin-top: 1.15rem; overflow: hidden; scroll-margin-top: 1rem; }
  .listing-drawer:first-of-type { margin-top: .9rem; }
  .listing-summary { display: flex; align-items: center; gap: .75rem;
    padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
  .listing-summary::-webkit-details-marker { display: none; }
  .listing-summary:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
  .drawer-caret { color: var(--muted); flex: 0 0 auto; display: inline-flex;
    transition: transform .15s ease; }
  .listing-drawer[open] .drawer-caret { transform: rotate(90deg); }
  .listing-headline { flex: 1 1 auto; min-width: 0; display: flex;
    flex-direction: column; gap: .18rem; }
  .headline-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
  .headline-top .pkg-name { font-weight: 600; }
  .files-badge { font-family: var(--mono); font-size: .68rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: .12rem .5rem; }
  .listing-headline .listing-meta { margin: 0; }
  .listing-badges { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
    justify-content: flex-end; flex: 0 0 auto; }
  .drawer-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border); }
  .drawer-body .control-caption { margin: 1.05rem 0 .55rem; }
  .manifest { list-style: none; margin: 0; padding: 0; }
  .manifest-row { display: flex; align-items: center; gap: .65rem; padding: .6rem 0;
    border-top: 1px solid var(--border); }
  .manifest-row:first-child { border-top: none; }
  .manifest .badge { text-transform: uppercase; flex: 0 0 auto; }
  .manifest-name { font-weight: 600; }
  .manifest-row .grow { flex: 1; }
  .manifest-row .ver { flex: 0 0 auto; }
  .manifest-empty { margin: .2rem 0 0; }
  .listing-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
  .listing-head .pkg-name { flex: 1 1 auto; min-width: 10rem; }
  .listing-head .price { flex: 0 0 auto; }
  /* The ↗ affordance on a live listing's name: dim until the name is
     hovered, so the link reads as "opens the public page". */
  .listing-head a.pkg-name .ext { color: var(--muted); font-size: .85em; }
  .listing-head a.pkg-name:hover .ext { color: var(--accent); }
  .pills { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
  /* One consistent pill chip: neutral (light) by default; filled terracotta
     for on-sale; soft green + status dot for the live state. */
  .pill { display: inline-flex; align-items: center; gap: .3rem;
    font-family: var(--mono); font-size: .68rem; line-height: 1;
    padding: .24rem .55rem; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--muted); white-space: nowrap;
    text-transform: lowercase; }
  .pill.on { background: var(--accent); border-color: var(--accent);
    color: var(--accent-fg); }
  .pill.live { background: color-mix(in srgb, var(--ok) 16%, transparent);
    border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
  .pill-dot { width: .5em; height: .5em; border-radius: 50%; background: var(--ok);
    flex: 0 0 auto; }
  /* Clear vertical separation between the Price / Promotion
     groups so each part reads distinctly. */
  .control-group { margin-top: 1.35rem; }
  .control-caption { font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted); margin: 0 0 .45rem; }
  .control-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
  .listing-card table { margin-top: 1.1rem; }
  /* Inline action result, scoped to the card whose control was used. */
  .listing-note { margin-top: .6rem; }
  /* Dim the hint placeholders in the listing inputs so typed values stay
     full-contrast while the hints read lighter (but still legible). */
  .listing-card input::placeholder { color: var(--muted); opacity: .65; }
  /* Selling model: "/mo" rides the price, the "monthly" pill is filled
     (it changes what a buyer signs up for), and the buy line spells the
     terms out ("one-time · yours forever" / "billed monthly"). */
  .price .per { font-size: .72em; color: var(--muted); margin-left: .1em; }
  .pill.sub { background: color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--accent); }
  /* Listing wizard: the picker is the working surface, so rows read like
     inventory cards — checkbox, name, access pills — and lock visually when
     the script can't be sold yet. */
  /* The wizard stepper is a header for the card beneath it, so it sits in a
     tidy centered band and connects to the card with a small, deliberate gap
     (not a floating full-width row over a distant card). */
  .wiz-flow { max-width: 30rem; margin: .35rem auto 5%; }
  /* Back affordance living in the gap between the stepper and the card:
     a compact icon button, left-aligned to the card edge. */
  .wiz-backbar { margin: 0 0 .55rem; }
  .wiz-backbar form { margin: 0; }
  .wiz-back { display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; border-radius: 9px; border: 1px solid var(--border);
    background: var(--surface); color: var(--fg); cursor: pointer; padding: 0; }
  .wiz-back:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
  .wiz-back svg { display: block; }
  /* The one line every seller must read: what a buyer gets once listed. */
  .rights-callout { border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: 9px; padding: .7rem .85rem; margin: 0 0 .9rem;
    font-size: .9rem; line-height: 1.5; }
  /* The publish agreement: checkbox + fine print. A 10% top margin sets the
     "commit" block (agree + publish) apart from the info panels above. */
  .agree { display: flex; align-items: flex-start; gap: .55rem; margin: 5% 0 1rem;
    font-size: .82rem; line-height: 1.5; color: var(--muted); }
  .agree input { margin-top: .15rem; width: 1rem; height: 1rem; flex: 0 0 auto; }
  .agree a { color: var(--accent); }
  .policy + .policy { margin-top: 1.1rem; padding-top: 1.1rem;
    border-top: 1px solid var(--border); }
  .policy h3 { margin: 0 0 .3rem; }
  .empty-listings { text-align: center; padding: 1.6rem 1rem .4rem;
    display: flex; flex-direction: column; align-items: center; gap: .5rem; }
  .empty-listings .empty-title { margin: 0; font-weight: 600; font-size: .98rem; }
  .empty-listings .note { margin: 0; max-width: 26rem; }
  .empty-listings .actions { margin-top: .35rem; }
  .wiz-search { display: flex; gap: .5rem; margin: .8rem 0 1rem; }
  .wiz-search input[type="search"] { flex: 1; min-width: 10rem; }
  .wiz-list { list-style: none; margin: 0 0 1rem; padding: 0;
    display: grid; gap: .5rem; }
  .wiz-row { border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); padding: .65rem .8rem;
    transition: border-color .12s ease, background-color .12s ease; }
  .wiz-row.locked { border-style: dashed; }
  /* A picked card takes the accent — the whole card is the selection state,
     not just the checkbox. Mirrors the .model-opt:checked treatment. */
  .wiz-row:has(.wiz-pick input:checked) { border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
  .wiz-pick { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
  .wiz-row.locked .wiz-pick { cursor: default; }
  .wiz-pick input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: .1rem;
    flex: 0 0 auto; accent-color: var(--accent); }
  .wiz-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
  .wiz-head { display: flex; align-items: center; gap: .5rem; }
  .wiz-head .pills { margin-left: auto; flex: 0 0 auto; }
  .wiz-meta { font-size: .76rem; color: var(--muted); }
  /* Convert affordance on a protected card: the action sits below the note,
     right-aligned, so it reads as the card's one available move. */
  .wiz-convert { margin: .5rem 0 0; display: flex; justify-content: flex-end; }
  /* Footer: the guiding line sits above the commit row; Cancel is quiet,
     "Continue to pricing" is the accent primary with a forward arrow. */
  .wiz-foot { margin-top: 1.1rem; }
  .wiz-foot .note { margin: 0 0 .6rem; }
  .wiz-actions { display: flex; gap: .5rem; align-items: center; }
  .wiz-actions .btn-primary { margin-left: auto; display: inline-flex;
    align-items: center; gap: .4rem; }
  .wiz-actions .btn-primary svg { display: block; }
  /* Review footer: the live-URL preview on the left, Back + Publish grouped
     on the right (mirrors the buy-side "goes live at" reassurance). */
  .wiz-publishbar { display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; }
  .live-url { margin: 0; }
  .live-url .mono { font-family: var(--mono); color: var(--fg); }
  .wiz-publishbar .actions { display: flex; gap: .5rem; align-items: center; }

  /* Step 2 bundle segment: tagged script rows under a "Bundle · N scripts"
     head with an Edit-contents escape back to Choose. */
  .bundle-head { align-items: baseline; margin-bottom: .2rem; }
  .bundle-h { margin: 0; }
  .bundle-h .accent { color: var(--accent); }
  .bundle-h .dim { color: var(--muted); }
  .edit-link { margin-left: auto; font-size: .82rem; color: var(--accent);
    text-decoration: underline; flex: 0 0 auto; }
  .bundle-list { list-style: none; margin: .4rem 0 1.5rem; padding: 0; }
  .bundle-row { display: flex; align-items: center; gap: .7rem;
    padding: .7rem 0; border-top: 1px solid var(--border); }
  .bundle-row .pkg-name { font-family: var(--mono); }
  .tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); border: 1px solid var(--border);
    border-radius: 6px; padding: .22rem .45rem; flex: 0 0 auto; }
  /* Field header row: caption on the left, live char-count on the right. */
  .field-head { display: flex; align-items: baseline; justify-content: space-between;
    gap: .5rem; margin-bottom: .4rem; }
  .field-head .control-caption { margin: 0; }
  .char-count { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
  .name-input { width: 100%; }
  .field-hint { font-size: .8rem; color: var(--muted); margin: .45rem 0 0; }
  /* Accepted-payment pills, driven by the selected billing model. */
  .pay-methods { display: flex; gap: .5rem; margin-top: .7rem; }
  .method-pill { font-family: var(--mono); font-size: .72rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: .3rem .7rem; }
  /* Big price field: muted $ prefix, oversized amount, model term on the right. */
  .price-cur { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
  .price-field { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .price-field .price-sym { font-size: 1.75rem; font-weight: 600; color: var(--muted); }
  .price-field .price-input { flex: 1; min-width: 4rem; font-size: 1.75rem;
    font-weight: 650; border: none; background: none; color: var(--fg); padding: 0; }
  .price-field .price-input:focus { outline: none; }
  .price-term { margin-left: auto; flex: 0 0 auto; font-family: var(--mono);
    font-size: .85rem; color: var(--muted); }
  /* Model-driven visibility: crypto only for one-time; the price term follows
     the model. One radio is always checked, so :has resolves deterministically. */
  .model-form:has(input[value="subscription"]:checked) .method-crypto { display: none; }
  .model-form:has(input[value="subscription"]:checked) .term-once { display: none; }
  .model-form:has(input[value="one_time"]:checked) .term-month { display: none; }

  /* Unified wizard header: back affordance + title + step position, over a
     progress rail. Rail bars and labels are separate grid rows so the line
     never touches the text. */
  .wiz-header { border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
  .wiz-head-top { display: flex; align-items: center; gap: .9rem; }
  .wiz-head-titles h1 { margin: 0; font-size: 1.4rem; }
  .wiz-substep { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
  .wiz-back-form { margin: 0; }
  .wiz-back-btn { width: 2.7rem; height: 2.7rem; border-radius: 11px;
    border: 1px solid var(--border); background: var(--surface); color: var(--fg);
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; cursor: pointer; padding: 0; }
  .wiz-back-btn:hover { border-color: var(--accent); color: var(--accent);
    text-decoration: none; }
  .wiz-back-btn svg { display: block; }
  .wiz-rail { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: .55rem .9rem; }
  .wiz-rail .wiz-step { display: grid; grid-template-rows: auto auto; gap: .55rem; }
  .wiz-rail .bar { height: 3px; border-radius: 2px; background: var(--border); }
  /* Done steps read as complete (green + tick); the current step is the live
     accent; future steps stay muted. */
  .wiz-rail .wiz-step.done .bar { background: var(--ok); }
  .wiz-rail .wiz-step.current .bar { background: var(--accent); }
  .wiz-rail .label { font-size: .95rem; color: var(--muted); }
  .wiz-rail .wiz-step.done .label {
    color: color-mix(in srgb, var(--ok) 45%, var(--muted)); }
  .wiz-rail .wiz-step.current .label { color: var(--fg); font-weight: 600; }
  .wiz-rail .tick { color: var(--ok); margin-right: .35rem; font-weight: 700; }
  /* Narrow screens: inactive labels drop away, bars keep the position. */
  @media (max-width: 32rem) {
    .wiz-rail .wiz-step:not(.current) .label { display: none; }
  }

  /* Hover/focus info tooltip (zero-JS), e.g. the Billing explainer. */
  .info { position: relative; display: inline-flex; margin-left: .4rem;
    vertical-align: middle; cursor: help; }
  .info-mark { width: 1.05rem; height: 1.05rem; border-radius: 50%;
    border: 1px solid var(--muted); color: var(--muted); font-family: var(--mono);
    font-size: .7rem; font-style: italic; line-height: 1; display: inline-flex;
    align-items: center; justify-content: center; }
  .info-tip { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 5;
    width: min(21rem, 78vw); padding: .6rem .75rem; border: 1px solid var(--border);
    border-radius: 9px; background: var(--surface); color: var(--fg);
    font-size: .8rem; font-weight: 400; line-height: 1.5; text-transform: none;
    letter-spacing: normal; box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    opacity: 0; visibility: hidden; transition: opacity .12s ease;
    pointer-events: none; }
  .info:hover .info-tip, .info:focus .info-tip,
  .info:focus-within .info-tip { opacity: 1; visibility: visible; }

  /* "Recommended" badge beside the Monthly billing option. */
  .rec-badge { display: inline-block; margin-left: .4rem; font-family: var(--mono);
    font-size: .6rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-radius: 999px; padding: .12rem .4rem; vertical-align: middle; }

  /* ============================================================
     Seller listing wizard — editorial "paper" reskin (lw-*).
     Reference colours mapped onto the registry theme tokens so it
     stays theme-aware; sharp corners, mono labels, fixed action tray.
     ============================================================ */
  :root { --lw-soft: color-mix(in srgb, var(--accent) 12%, transparent);
    --lw-line2: color-mix(in srgb, var(--border) 45%, var(--muted)); }
  main.lw { max-width: 54rem; padding: 2.6rem 1.5rem 8.5rem; }
  /* Full-viewport grid behind everything (sits under content, over the flat bg). */
  .lw-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--bg);
    background-image:
      linear-gradient(to right, color-mix(in srgb, var(--fg) 3.5%, transparent) 1px, transparent 1px),
      linear-gradient(to bottom, color-mix(in srgb, var(--fg) 3.5%, transparent) 1px, transparent 1px);
    background-size: 34px 34px; }
  .lw-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
    margin-bottom: 26px; }
  .lw-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
  .lw-counter { font-family: var(--mono); font-size: 12.5px; color: var(--muted);
    letter-spacing: .14em; margin-bottom: 10px; }
  .lw-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.035em;
    line-height: 1.02; margin: 0 0 16px; }
  .lw-lede { font-size: 1.02rem; color: var(--muted); max-width: 52ch; margin: 0 0 38px; }
  /* step meter — top-border bars, done + now take the accent */
  .lw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 42px; }
  .lw-meter div { padding-top: 11px; border-top: 2px solid var(--lw-line2); font-family: var(--mono);
    font-size: 12px; letter-spacing: .1em; color: var(--muted); }
  .lw-meter div.done { border-top-color: var(--accent); }
  .lw-meter div.now { border-top-color: var(--accent); color: var(--fg); font-weight: 700; }
  .lw-meter a { color: inherit; }
  /* panels */
  .lw-panel { background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; }
  .lw-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; padding: 15px 20px; border-bottom: 1px solid var(--border); }
  .lw-panel-title { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .16em; color: var(--muted); }
  .lw-panel-body { padding: 20px; }
  /* inputs (sharp) */
  .lw-search, .lw input[type="text"], .lw input[type="search"] { width: 100%; padding: 12px 14px;
    border: 1px solid var(--lw-line2); background: var(--bg); color: var(--fg);
    font: inherit; border-radius: 0; }
  .lw-search { font-family: var(--mono); font-size: 13.5px; }
  .lw input::placeholder { color: var(--muted); }
  /* segmented filter */
  .lw-seg { display: flex; border: 1px solid var(--lw-line2); width: fit-content; margin: 18px 0 4px; }
  .lw-seg button { appearance: none; border: 0; border-radius: 0; background: transparent; padding: 8px 15px;
    cursor: pointer; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); }
  .lw-seg button + button { border-left: 1px solid var(--lw-line2); }
  .lw-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
  /* rows */
  .lw-rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
  .lw-row { border-bottom: 1px solid var(--border); }
  .lw-row label { display: flex; align-items: center; gap: 14px; padding: 14px 12px; cursor: pointer;
    position: relative; transition: background .12s ease; }
  .lw-row label:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
  .lw-row input { position: absolute; opacity: 0; pointer-events: none; }
  .lw-box { width: 16px; height: 16px; flex: none; border: 1px solid var(--lw-line2);
    background: var(--bg); display: grid; place-items: center; }
  .lw-box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--accent-fg);
    border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg) translateY(-1px); opacity: 0; }
  .lw-row input:checked + .lw-box { background: var(--accent); border-color: var(--accent); }
  .lw-row input:checked + .lw-box::after { opacity: 1; }
  .lw-row input:focus-visible + .lw-box { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lw-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lw-row-name { font-weight: 600; letter-spacing: -.01em; }
  .lw-row-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .lw-row-tags { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
  .lw-row.on { background: var(--lw-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
  .lw-tag { font-family: var(--mono); font-size: 10px; text-transform: lowercase; letter-spacing: .06em;
    padding: 3px 7px; border: 1px solid var(--lw-line2); color: var(--muted); white-space: nowrap; }
  .lw-tag.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 42%, transparent);
    background: color-mix(in srgb, var(--ok) 10%, transparent); display: inline-flex; align-items: center; gap: 5px; }
  .lw-tag.live::before { content: ""; width: 5px; height: 5px; background: var(--ok); }
  .lw-tag.hold { color: var(--warn-fg); border-color: var(--warn-border); background: var(--warn-bg); }
  /* needs-converting group */
  .lw-group { border: 1px solid var(--border); background: var(--bg); margin-top: 22px; }
  .lw-group summary { padding: 13px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
  .lw-group summary::-webkit-details-marker { display: none; }
  .lw-group summary::before { content: "+"; color: var(--accent); font-size: 13px; line-height: 1; }
  .lw-group[open] summary::before { content: "\2013"; }
  .lw-group-note { margin: 0; padding: 0 16px 14px; font-size: 13.5px; color: var(--muted);
    max-width: 62ch; border-bottom: 1px solid var(--border); }
  .lw-group-note strong { color: var(--fg); }
  .lw-conv { display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 16px; border-bottom: 1px solid var(--border); }
  .lw-conv:last-child { border-bottom: 0; }
  .lw-conv form { margin: 0; display: flex; gap: 8px; align-items: center; }
  /* step 2 contents list */
  .lw-contents { list-style: none; margin: 0; padding: 0; }
  .lw-contents li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
  .lw-contents li:last-child { border-bottom: 0; }
  .lw-kicker { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em;
    color: var(--muted); border: 1px solid var(--lw-line2); padding: 3px 6px; }
  .lw-contents .nm { font-family: var(--mono); font-size: 14px; color: var(--fg); }
  .lw-contents .edit { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  /* fields */
  .lw-field { margin-bottom: 28px; }
  .lw-taken { font-family: var(--mono); font-size: 12.5px; color: var(--warn); margin: 9px 0 0; line-height: 1.5; }
  .lw-field:last-child { margin-bottom: 0; }
  .lw-flabel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
    color: var(--muted); margin-bottom: 9px; }
  .lw-help { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
  .lw-slug { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 9px 0 0;
    padding: 8px 11px; background: color-mix(in srgb, var(--fg) 3.5%, transparent); border: 1px solid var(--border); }
  .lw-slug b { color: var(--accent); font-weight: 400; }
  /* billing choices */
  .lw-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 640px) { .lw-choices { grid-template-columns: 1fr; } }
  .lw-choice { position: relative; border: 1px solid var(--lw-line2); background: var(--bg);
    padding: 16px; cursor: pointer; display: block; }
  .lw-choice input { position: absolute; opacity: 0; pointer-events: none; }
  .lw-choice .top { display: flex; align-items: center; gap: 10px; }
  .lw-dot { width: 14px; height: 14px; border: 1px solid var(--lw-line2); border-radius: 50%;
    flex: none; display: grid; place-items: center; }
  .lw-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
  .lw-choice input:checked ~ .top .lw-dot { border-color: var(--accent); }
  .lw-choice input:checked ~ .top .lw-dot::after { opacity: 1; }
  .lw-choice:has(input:checked) { border-color: var(--accent); background: var(--lw-soft); }
  .lw-choice input:focus-visible ~ .top .lw-dot { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lw-choice .name { font-weight: 600; }
  .lw-rec { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); padding: 2px 6px; }
  .lw-choice p { margin: 9px 0 0; font-size: 13.5px; color: var(--muted); }
  .lw-pays { margin-top: 11px; font-family: var(--mono); font-size: 11px; color: var(--muted);
    letter-spacing: .04em; display: flex; gap: 8px; flex-wrap: wrap; }
  .lw-pays span { border: 1px solid var(--border); padding: 2px 7px; }
  .lw-pays span.no { text-decoration: line-through; opacity: .6; }
  /* price box */
  .lw-price { display: flex; align-items: center; border: 1px solid var(--lw-line2); background: var(--bg); }
  .lw-price .cur { font-family: var(--mono); font-size: 20px; color: var(--muted); padding: 0 4px 0 16px; }
  .lw-price input { border: 0; background: transparent; font-family: var(--mono); font-size: 30px;
    font-weight: 500; letter-spacing: -.02em; color: var(--fg); padding: 16px 8px; width: 100%; outline: 0; }
  .lw-price .per { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em;
    padding: 0 16px; white-space: nowrap; }
  .lw-per .per-month { display: none; }
  .lw-form:has(input[value="subscription"]:checked) .per-once { display: none; }
  .lw-form:has(input[value="subscription"]:checked) .per-month { display: inline; }
  /* step 3 receipt */
  .lw-receipt { margin: 0; }
  .lw-receipt div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid var(--border); }
  .lw-receipt div:last-child { border-bottom: 0; }
  .lw-receipt dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
    color: var(--muted); padding-top: 2px; }
  .lw-receipt dd { margin: 0; }
  .lw-receipt .amt { font-family: var(--mono); font-size: 15px; }
  @media (max-width: 560px) { .lw-receipt div { grid-template-columns: 1fr; gap: 3px; } }
  .lw-callout { border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: var(--lw-soft);
    padding: 15px 17px; margin: 0 0 18px; }
  .lw-callout p { margin: 0; font-size: 14.5px; color: var(--muted); }
  .lw-callout b { color: var(--fg); }
  .lw-rights { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .lw-rights th { text-align: left; font-family: var(--mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: .14em; color: var(--muted); font-weight: 400; padding: 0 12px 9px 0; border-bottom: 1px solid var(--lw-line2); }
  .lw-rights td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
  .lw-rights tr:last-child td { border-bottom: 0; }
  .lw-rights td.nm { font-family: var(--mono); font-size: 13.5px; color: var(--fg); white-space: nowrap; }
  .lw-perm { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
  .lw-soon { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; border: 1px solid var(--lw-line2);
    color: var(--muted); padding: 2px 7px; text-transform: lowercase; }
  /* agree */
  .lw-agree { display: flex; gap: 13px; align-items: flex-start; padding: 18px 20px;
    border: 1px solid var(--lw-line2); background: var(--bg); margin-bottom: 22px; cursor: pointer; }
  .lw-agree input { position: absolute; opacity: 0; pointer-events: none; }
  .lw-agree .lw-box { margin-top: 3px; }
  .lw-agree input:checked + .lw-box { background: var(--accent); border-color: var(--accent); }
  .lw-agree input:checked + .lw-box::after { opacity: 1; }
  .lw-agree input:focus-visible + .lw-box { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lw-agree .txt { font-size: 14px; color: var(--muted); }
  /* Convert confirm dialog → editorial paper style (sharp, mono buttons). */
  main.lw .modal-card { border-radius: 0; background: var(--surface); border: 1px solid var(--lw-line2); }
  main.lw .modal-actions .btn { font-family: var(--mono); text-transform: uppercase;
    letter-spacing: .1em; font-size: 11.5px; border-radius: 0; border: 1px solid var(--lw-line2); }
  main.lw .modal-actions .btn.btn-primary,
  main.lw .modal-actions .btn.danger { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
  /* buttons */
  .lw-btn { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
    padding: 12px 20px; border: 1px solid var(--lw-line2); background: transparent; color: var(--fg);
    cursor: pointer; border-radius: 0; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
  .lw-btn:hover { border-color: var(--fg); text-decoration: none; }
  .lw-btn.sm { padding: 8px 13px; font-size: 11px; }
  .lw-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
  .lw-btn.primary:hover { filter: brightness(1.08); }
  .lw-btn:disabled, .lw-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }
  /* fixed action tray */
  .lw-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; border-top: 1px solid var(--lw-line2);
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
  .lw-tray-in { max-width: 54rem; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center;
    gap: 18px; flex-wrap: wrap; }
  .lw-tray-state { flex: 1; min-width: 220px; }
  .lw-tray-kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
  .lw-tray-sum { flex: 1; min-width: 200px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
  .lw-tray-sum b { color: var(--fg); font-weight: 400; }
  .lw-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 7px; min-height: 26px; }
  .lw-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    background: var(--lw-soft); padding: 4px 6px 4px 9px; font-family: var(--mono); font-size: 11.5px; color: var(--fg); }
  .lw-chip button { appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--muted);
    font-size: 13px; line-height: 1; padding: 0 2px; }
  .lw-chip button:hover { color: var(--accent); }
  .lw-tray-empty { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
  .lw-tray-acts { display: flex; align-items: center; gap: 12px; }
  .lw-reassure { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; width: 100%; margin-top: 2px; }
  /* instrument rail (signature) */
  .lw-rail { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); display: flex;
    flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px;
    color: var(--muted); letter-spacing: .1em; z-index: 20; }
  .lw-rail .track { width: 1px; height: 210px; background: var(--lw-line2); position: relative; }
  .lw-rail .track i { position: absolute; top: 0; left: 0; width: 1px; background: var(--accent); display: block; }
  @media (max-width: 1180px) { .lw-rail { display: none; } }
  /* Blocking "set up payouts" popup for accounts with no ready Stripe account:
     covers the wizard so it can't be used until Stripe is connected. */
  .lw-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
    padding: 24px; background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(6px); }
  .lw-gate-card { max-width: 26rem; width: 100%; border: 1px solid var(--lw-line2);
    background: var(--surface); padding: 1.7rem 1.6rem; text-align: center; }
  .lw-gate-card h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
  .lw-gate-card p { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
  .lw-gate-actions { display: flex; flex-direction: column; gap: .55rem; }
  .lw-gate-actions .lw-btn { justify-content: center; }
  .warn-note { border: 1px solid var(--warn-border); background: var(--warn-bg);
    color: var(--warn-fg); border-radius: 7px; padding: .45rem .6rem;
    font-size: .8rem; margin: .5rem 0 0; }
  .pill.access-public { background: color-mix(in srgb, var(--ok) 14%, transparent);
    border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
  .wiz-picked { margin-bottom: .4rem; }
  .wiz-access { margin-top: .9rem; }
  .wiz-grants { list-style: none; margin: .35rem 0 0; padding: 0;
    display: grid; gap: .35rem; }
  .wiz-grants li { display: flex; align-items: center; gap: .5rem;
    border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); padding: .4rem .6rem; font-size: .85rem; }
  .wiz-versions .pill { text-transform: lowercase; }

  /* Sold tally on a listing card: the number is the point, so it reads a
     shade stronger than the neutral status chips around it. */
  .pill.sold { background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent); font-weight: 650; }
  /* Transitional state (payment done, grant landing): warn family. */
  .pill.warn { background: var(--warn-bg); border-color: var(--warn-border);
    color: var(--warn-fg); }
  .buy-terms { font-size: .78rem; color: var(--muted); }
  /* Model choice at publish: two radio cards, the checked one accented.
     The "/month" hint on the price suffix appears only while the
     subscription option is selected (pure CSS via :has). */
  .model-form { display: block; }
  .model-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .6rem; margin: 0 0 .7rem; }
  .model-opt { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem;
    align-items: start; padding: .6rem .75rem; border: 1px solid var(--border);
    border-radius: 9px; background: var(--surface); cursor: pointer; }
  .model-opt input { margin: .2rem 0 0; padding: 0; width: 1rem; height: 1rem;
    border: none; accent-color: var(--accent); grid-row: 1 / span 2; }
  .date-label input[type="date"] { width: auto; min-width: 9.5rem; }
  .model-opt .model-t { font-size: .85rem; font-weight: 600; }
  .model-opt .model-d { grid-column: 2; font-size: .76rem; color: var(--muted); }
  .model-opt:has(input:checked) { border-color: var(--accent); }
  .per-hint { display: none; }
  .model-form:has(input[value="subscription"]:checked) .per-hint { display: inline; }
  .date-label { display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; color: var(--muted); }

  /* Payouts gate over the Listings card: controls visible but blurred (a
     preview of what unlocks), one static cover card with the action. The
     min-height keeps the absolutely-positioned cover card fully visible even
     when the blurred body behind it is short (overflow: hidden would
     otherwise clip the card to the body's height). */
  .panel.gated { position: relative; overflow: hidden; min-height: 19rem; }
  .gated-body { filter: blur(5px) saturate(.8); opacity: .5;
    pointer-events: none; user-select: none; }
  .gated-cover { position: absolute; inset: 0; display: grid;
    place-items: center; padding: 1.5rem; }
  .gated-card { background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.3rem 1.7rem 1.4rem; text-align: center;
    max-width: 24rem; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
  .gated-card h4 { margin: 0 0 .3rem; font-size: .98rem; }
  .gated-card .note { margin: 0 0 .9rem; }

  /* Listings pager: prev/next on one side, "Page X of Y" on the other. */
  .pager { display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
  .btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
  .btn:disabled { cursor: not-allowed; }
  /* Wraps a disabled stop button: carries the hover explanation (the button
     itself is pointer-events:none) and keeps the not-allowed cursor. */
  .stop-stopped { display: inline-block; cursor: not-allowed; }
  /* Button with a leading icon (e.g. the + on "Sell a new package"). */
  .btn-icon { display: inline-flex; align-items: center; gap: .4rem; }
  .btn-icon svg { display: block; }
  /* At-a-glance facts under a live listing's header. */
  .listing-meta { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); }
  /* Read-only country value when the deploy allows exactly one. */
  .country-fixed { display: inline-block; font-weight: 600; }

  /* /sell page rhythm: generous air between the headline block and the
     cards, and between cards, so each section reads as its own beat. */
  .sell-head { margin-bottom: 2rem; }
  .sell-head .sub { max-width: 34rem; }
  .sell-stack { display: grid; gap: 1.5rem; }
  .sell-stack .panel { padding: 1.4rem 1.6rem 1.5rem; }
  .sell-stack .panel h3 { margin-top: 0; }

  /* The money-path ledger: a settlement statement for one example sale.
     Money in at the top, deductions in the middle, the payout at the
     bottom in green — the exact mental model of getting paid. */
  .ledger { list-style: none; margin: 1rem 0 0; padding: 0; }
  .ledger li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; }
  .ledger .g { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center; }
  .ledger .who { min-width: 0; }
  .ledger .who small { display: block; color: var(--muted); font-size: .8rem; }
  .ledger .amt { margin-left: auto; font-family: var(--mono);
    font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ledger li.cut .amt, .ledger li.cut .who { color: var(--muted); }
  .ledger li.net { border-top: 1px dashed var(--border); margin-top: .35rem;
    padding-top: .95rem; }
  .ledger li.net .who strong { font-size: 1.02rem; }
  .ledger li.net .amt { color: var(--ok); font-weight: 650; font-size: 1.1rem; }
  .ledger li.net .g { color: var(--ok); }
  .ledger-note { margin-top: .9rem; font-size: .82rem; color: var(--muted); }

  /* "How selling works": the marketplace lifecycle as a stepper whose
     marker states track THIS seller's real progress — a green check on
     what's done, an accent ring on their next move, muted for what runs
     by itself later. Connectors sit behind the circles (z-index). */
  .flow { list-style: none; counter-reset: step; margin: 1.15rem 0 0; padding: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .flow li { counter-increment: step; position: relative; text-align: center;
    padding: 0 .4rem; }
  .flow li + li::before { content: ""; position: absolute; top: .95rem;
    right: 50%; width: 100%; height: 1px; background: var(--border); }
  .flow li.done + li::before { background: color-mix(in srgb, var(--ok) 45%, var(--border)); }
  .flow .dot { position: relative; z-index: 1; width: 1.9rem; height: 1.9rem;
    margin: 0 auto .55rem; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); display: flex; align-items: center;
    justify-content: center; font-family: var(--mono); font-size: .78rem;
    color: var(--muted); }
  .flow .dot::before { content: counter(step); }
  .flow li.done .dot { border-color: color-mix(in srgb, var(--ok) 45%, transparent);
    background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
  .flow li.done .dot::before { content: "✓"; }
  .flow li[aria-current="step"] .dot { border-color: var(--accent);
    color: var(--accent); font-weight: 600; }
  .flow .t { display: block; font-size: .84rem; font-weight: 600;
    line-height: 1.35; color: var(--muted); }
  .flow li.done .t, .flow li[aria-current="step"] .t { color: var(--fg); }
  .flow small { display: block; color: var(--muted); font-size: .76rem;
    line-height: 1.45; margin-top: .15rem; }
  .flow-note { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
  @media (max-width: 560px) {
    .flow { grid-template-columns: 1fr; }
    .flow li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr);
      column-gap: .85rem; text-align: left; padding: 0; }
    .flow li + li { margin-top: 1.05rem; }
    .flow li + li::before { top: -1.05rem; right: auto; left: .95rem;
      width: 1px; height: 1.05rem; }
    .flow .dot { margin: 0; grid-row: 1 / span 2; }
  }

  /* /how-marketplace-works: both sides of the same transaction, presented
     together so buyers and sellers can understand the handoff at a glance. */
  .how-intro { max-width: 42rem; }
  .how-sides { display: grid;
    grid-template-columns: minmax(0, 1fr) 2.8rem minmax(0, 1fr);
    gap: 1rem; align-items: stretch; margin-top: 2rem; }
  .how-card { --how-accent: var(--accent); --how-button-fg: var(--accent-fg);
    border: 1px solid color-mix(in srgb, var(--how-accent) 38%, var(--border));
    border-radius: 12px; padding: 1.35rem 1.45rem 1.4rem;
    background: color-mix(in srgb, var(--how-accent) 8%, var(--surface)); }
  .how-card-seller { --how-accent: #82b85b; --how-button-fg: #14270b; }
  .how-card-title { display: flex; align-items: center; gap: .65rem;
    margin: 0 0 1.3rem; color: var(--how-accent); font-family: var(--mono);
    font-size: .98rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .how-card-title svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
  .how-steps { list-style: none; display: grid; gap: 1.35rem; margin: 0; padding: 0; }
  .how-step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .9rem; align-items: start; }
  .how-step-n { display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--how-accent); color: var(--how-button-fg);
    font-family: var(--mono); font-size: .88rem; }
  .how-step-copy h3 { margin: -.05rem 0 .08rem; font-family: var(--mono);
    font-size: 1rem; line-height: 1.35; }
  .how-step-copy p { margin: 0; color: var(--muted); font-size: .88rem;
    line-height: 1.45; }
  .how-card .actions { margin: 1.5rem 0 0; }
  .how-card .btn-primary { background: var(--how-accent); border-color: var(--how-accent);
    color: var(--how-button-fg); font-weight: 600; }
  .how-divider { position: relative; display: flex; align-items: center;
    justify-content: center; color: var(--muted); font-family: var(--mono); }
  .how-divider::before { content: ""; position: absolute; inset: 0 auto;
    width: 1px; background: var(--border); }
  .how-divider span { position: relative; z-index: 1; padding: .4rem .25rem;
    background: var(--bg); font-size: 1.25rem; }
  .how-fineprint { margin: 2.25rem 0 0; padding-top: 1rem;
    border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
  @media (max-width: 720px) {
    .how-sides { grid-template-columns: 1fr; }
    .how-divider { min-height: 2.2rem; }
    .how-divider::before { inset: auto 0; width: auto; height: 1px; }
    .how-divider span { padding: .15rem .55rem; }
  }
  /* The consent sentence needs the card's full width to fit on one line,
     so the /sell form uncaps itself and re-caps its controls instead. */
  .sell-stack form.stack { max-width: none; }
  .sell-stack form.stack > label:not(.consent), .sell-stack form.stack > .note,
  .sell-stack form.stack > button { max-width: 26rem; }
  /* Seller-terms consent: checkbox and text on ONE row (the form.stack
     label rules force column + padded inputs, so these override with
     matching specificity). The checkbox picks up the brand accent. */
  form.stack label.consent { flex-direction: row; align-items: center;
    gap: .55rem; font-size: .85rem; color: var(--muted);
    margin: .35rem 0 .2rem; cursor: pointer; }
  form.stack .consent input { margin: 0; padding: 0;
    accent-color: var(--accent); width: 1rem; height: 1rem; flex: 0 0 auto;
    border: none; background: none; }
  .consent a { color: var(--accent); }
  /* Until the consent box is ticked, the submit is visually and
     pointer-inert (pure CSS via :has; the required attribute is the
     functional gate for keyboard submits and non-:has browsers). */
  form.stack:has(.consent input:not(:checked)) button[type="submit"] {
    opacity: .45; pointer-events: none; }

  /* Reusable pure-CSS :target confirmation modal (no JS): the trigger is an
     <a href="#id"> and the overlay reveals only when :target matches. The
     confirm control is the real submit button of the surrounding form, so
     confirming performs the POST; Cancel and the backdrop link to "#". */
  .modal { display: none; position: fixed; inset: 0; z-index: 50;
    align-items: center; justify-content: center; padding: 1.25rem; }
  .modal:target { display: flex; }
  .modal-backdrop { position: absolute; inset: 0;
    background: color-mix(in srgb, #000 45%, transparent); }
  .modal-card { position: relative; z-index: 1; max-width: 24rem; width: 100%;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
    padding: 1.3rem 1.4rem 1.2rem; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
  .modal-card h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
  .modal-card p { margin: 0; color: var(--muted); font-size: .92rem; }
  .modal-field { margin-top: .9rem; }
  .modal-label { display: block; font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
    margin: 0 0 .35rem; }
  .modal-field input { font: inherit; font-size: .95rem; width: 100%;
    padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); color: var(--fg); }
  .modal-actions { display: flex; gap: .6rem; justify-content: flex-end;
    margin-top: 1.2rem; flex-wrap: wrap; }
  .btn.danger { border-color: var(--danger); color: var(--danger); }
  .btn.danger:hover { background: var(--danger); color: var(--surface);
    border-color: var(--danger); }
  .buy-line { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
    margin: 1rem 0; }
  .buy-line .price { font-size: 1rem; padding: .3rem .7rem; }
  .owned { color: var(--warn-fg); border: 1px solid var(--warn-border);
    background: var(--warn-bg); border-radius: 9px; padding: .55rem .9rem;
    font-size: .92rem; margin: 1rem 0; }
  /* The owned view's access matrix: one card per right. Granted cards sit
     at full contrast with a green "included" tag; locked ones dim and keep
     a dashed border, their tag naming the tier that unlocks them. */
  .rights-h { font-size: .95rem; margin: 1.4rem 0 .6rem; }
  .rights { list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
  .right { border: 1px solid var(--border); border-radius: 9px;
    background: var(--surface); padding: .6rem .75rem; }
  .right-head { display: flex; align-items: center; gap: .5rem;
    justify-content: space-between; margin-bottom: .25rem; }
  .right-name { font-size: .88rem; }
  .right-blurb { font-size: .8rem; color: var(--muted); }
  .right-tag { font-family: var(--mono); font-size: .64rem; line-height: 1;
    padding: .22rem .5rem; border-radius: 999px; border: 1px solid var(--border);
    color: var(--muted); white-space: nowrap; text-transform: lowercase; }
  .right-tag.on { background: color-mix(in srgb, var(--ok) 14%, transparent);
    border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
  .right.locked { border-style: dashed; }
  .right.locked .right-name, .right.locked .right-blurb { opacity: .55; }
  .bundle-list { list-style: none; margin: .4rem 0 0; padding: 0;
    display: grid; gap: .3rem; }
  .bundle-list li code { font-size: .8rem; }

  /* Site-wide "finish Stripe setup" strip (terracotta accent family).
     Closable with no JS via the checkbox hack: the hidden .dismiss sits
     immediately before .seller-banner, the × is its <label>, and the
     checkbox resets on every page load so a refresh re-shows the strip. */
  .dismiss { position: absolute; left: -9999px; width: 1px; height: 1px;
    opacity: 0; }
  .seller-banner { display: flex; align-items: center; gap: .6rem;
    flex-wrap: wrap; padding: .3rem 1.25rem; background: var(--accent);
    color: var(--accent-fg); font-size: .78rem; }
  .seller-banner .sb-text { flex: 1; min-width: 12rem; }
  .seller-banner .sb-cta { flex: 0 0 auto; padding: .15rem .6rem;
    border: 1px solid var(--accent-fg); border-radius: 6px;
    color: var(--accent-fg); background: transparent; font-size: .72rem;
    white-space: nowrap; }
  .seller-banner .sb-cta:hover { background: var(--accent-fg);
    color: var(--accent); text-decoration: none; }
  .seller-banner .sb-close { flex: 0 0 auto; cursor: pointer; color: var(--accent-fg);
    font-size: 1rem; line-height: 1; padding: 0 .2rem; opacity: .85;
    text-decoration: none; }
  .seller-banner .sb-close:hover { opacity: 1; }
  .dismiss:checked ~ .seller-banner { display: none; }

  /* Onboarding-success celebration. The confetti is pure CSS: each piece
     is a server-rendered rotated rect whose left%, delay, duration and
     color come from inline style custom props (--l/--d/--t/--c). The
     animation plays once (iteration-count:1, forwards) so it settles and
     never loops. */
  .celebrate { position: relative; }
  .celebrate-panel { border: 1px solid var(--ok); border-radius: 12px;
    background: var(--surface); padding: 1.4rem 1.4rem 1.3rem; margin: 0 0 1.4rem;
    text-align: center; }
  .celebrate-check { width: 3rem; height: 3rem; margin: 0 auto .6rem;
    border-radius: 50%; background: var(--ok); color: #06231a;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; font-weight: 700; line-height: 1; }
  .celebrate-panel h1 { margin: .2rem 0 .3rem; }
  .celebrate-panel .sub { max-width: 34rem; margin: 0 auto .2rem; }
  .celebrate-cta { display: flex; gap: .6rem; justify-content: center;
    flex-wrap: wrap; margin-top: 1.1rem; }
  .confetti { position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 5; }
  .confetti i { position: absolute; top: -8%; left: var(--l); width: 8px;
    height: 14px; background: var(--c); border-radius: 1px; opacity: 0;
    transform: rotate(0deg);
    animation: confetti-fall var(--t) linear var(--d) 1 forwards; }
  @keyframes confetti-fall {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translateY(360px) rotate(540deg); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .confetti { display: none; }
    .confetti i { animation: none; }
  }

  /* Reusable zero-JS toast: a prominent top-center fixed pill (z-index above
     cards) that fades IN, HOLDS fully visible for ~4s, then fades OUT once.
     The animation ends hidden + non-interactive so it never blocks clicks. */
  .toast { position: fixed; top: 1rem; left: 50%; z-index: 100;
    transform: translateX(-50%); max-width: 90vw;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--fg); padding: .6rem 1.2rem;
    font-size: .92rem; font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,.22);
    animation: toast-fade 5.5s ease forwards; }
  .toast.ok { border-color: var(--ok); }
  .toast.bad { border-color: var(--danger); color: var(--danger); }
  /* 5.5s total: fade-in ~0.3s, hold fully visible ~4s (6%→78%), fade-out ~1.2s. */
  @keyframes toast-fade {
    0% { opacity: 0; transform: translate(-50%, -.6rem); }
    6%, 78% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .toast { animation: none; opacity: 1; }
  }

  /* Publish-success celebration: a centered fixed overlay (reuses the
     confetti burst) with a paper-airplane mark and a share box. */
  .publish-overlay { position: fixed; inset: 0; z-index: 55; display: flex;
    align-items: center; justify-content: center; padding: 1.25rem; }
  .publish-overlay .backdrop { position: absolute; inset: 0;
    background: color-mix(in srgb, #000 45%, transparent); }
  .publish-card { position: relative; z-index: 1; max-width: 27rem; width: 100%;
    border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
    padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 14px 44px rgba(0,0,0,.3);
    text-align: center; overflow: hidden; }
  .publish-plane { width: 3rem; height: 3rem; margin: 0 auto .5rem; color: var(--accent); }
  .publish-plane svg { width: 100%; height: 100%; display: block; }
  .publish-card h1 { font-size: 1.25rem; margin: .3rem 0 .4rem; }
  .share-box { display: flex; gap: .4rem; align-items: center; margin: 1rem 0 .2rem;
    position: relative; }
  .share-box input { flex: 1; font: inherit; font-size: .84rem; font-family: var(--mono);
    padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 7px;
    background: var(--code-bg); color: var(--fg); }
  .share-box .copy-btn { position: static; }
  .publish-actions { display: flex; gap: .6rem; justify-content: center;
    margin-top: 1rem; flex-wrap: wrap; }

  /* ─── Package page (the approved design) ─── */
  main.pk { max-width: 1040px; padding: 40px 24px 0; display: grid;
    grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; font-size: 15.5px; line-height: 1.65; }
  main.pk a { color: inherit; }
  main.pk a:hover { color: var(--accent); text-decoration: none; }
  .pk h1 { font-family: var(--mono); font-weight: 600; font-size: 26px; margin: 0 0 6px;
    letter-spacing: -.01em; overflow-wrap: anywhere; }
  .pk .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 22px; }
  .pk .meta a { color: #cfcfcf; }
  /* The head with a cover (the approved package page design, square
     variant): the cover at 192 px beside the words, and a glow made of the
     cover itself, blurred behind it (the head sets --pk-cover-url inline;
     every head with a cover has it, so the glow needs no guard). The glow
     stays inside the main column: the rail is never displaced. */
  .pk-artwork-head { display: grid; grid-template-columns: 192px minmax(0, 1fr);
    align-items: start; gap: 24px; margin: 0 0 24px; position: relative; isolation: isolate; }
  .pk-cover { display: block; width: 192px; height: 192px; object-fit: cover;
    border-radius: 16px; background: var(--surface); position: relative;
    box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
  .pk-artwork-head::before { content: ""; position: absolute; left: -34px; top: -34px;
    width: 260px; height: 260px; border-radius: 50%;
    background: var(--pk-cover-url) center / cover no-repeat;
    filter: blur(56px) saturate(1.5); opacity: .32; z-index: -1; pointer-events: none; }
  .pk-artwork-head .meta { margin-bottom: 0; }
  .pk-artwork-head .pitch { margin: 10px 0 0; font-size: 16px; }
  .pk-artwork-head .pk-edit-artwork { display: inline-block; margin-top: 12px;
    font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
  @media (max-width: 520px) {
    /* Phone: the cover full width above the title, cropped the way the
       front page crops it, no glow. */
    .pk-artwork-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pk-cover { width: 100%; height: auto; aspect-ratio: 1.46; object-fit: cover;
      border-radius: 16px; }
    .pk-artwork-head::before { display: none; }
    .pk-artwork-head h1 { font-size: 24px; }
  }
  .chk { color: var(--check); }
  .pk .badge { margin-left: .4rem; vertical-align: middle; }
  .pk-tab { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
  .pk .tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
    font-size: 14px; }
  .pk .tabs label { padding: 8px 0; color: var(--muted); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .pk .tabs label:hover { color: var(--fg); }
  .pk section.tab { display: none; }
  #tab-readme:checked ~ .tabs label[for="tab-readme"],
  #tab-versions:checked ~ .tabs label[for="tab-versions"],
  #tab-contents:checked ~ .tabs label[for="tab-contents"] { color: var(--fg); border-bottom-color: var(--accent); }
  #tab-readme:checked ~ #t-readme, #tab-versions:checked ~ #t-versions,
  #tab-contents:checked ~ #t-contents { display: block; }
  .pk .pitch { font-size: 18px; color: color-mix(in srgb, var(--fg) 88%, var(--bg)); margin: 0 0 16px; overflow-wrap: anywhere; }
  .pk h2 { font-size: 12px; letter-spacing: .12em; color: var(--faint); margin: 34px 0 10px; }
  .pk .readme { overflow-wrap: anywhere; }
  .pk .readme p { margin: 0 0 14px; }
  .pk .readme h2.md { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--faint); margin: 34px 0 10px; font-weight: 600; }
  .pk .readme h3.md { font-size: 15.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
    color: var(--fg); margin: 24px 0 8px; }
  .pk .readme pre.code { background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 13px;
    line-height: 1.55; overflow-x: auto; margin: 0 0 14px; }
  .pk .readme pre.code code { background: none; padding: 0; font-size: inherit; }
  .pk .readme ul, .pk .readme ol { margin: 0 0 14px; padding-left: 1.4rem; }
  .pk .readme li { margin: 2px 0; }
  .pk .readme table.tbl { margin: 0 0 14px; }
  /* README tables: the block wraps anywhere (long words in prose), which lets
     every cell break inside a word, so the auto table layout squeezes a narrow
     column to one character per line ("Bit" as "BI" over "T"). Cells never
     split a word; a table wider than the column scrolls inside itself, the
     GitHub markdown pattern: the block box hugs the table, capped at the
     column, and the rows overflow-scroll within it. */
  .pk .readme table.tbl { display: block; width: max-content; max-width: 100%; overflow-x: auto; }
  .pk .readme table.tbl th, .pk .readme table.tbl td { overflow-wrap: normal; }
  .pk .readme a { color: var(--accent); }
  .pk table.tbl { font-size: 14.5px; }
  .pk table.tbl th { font-size: 11.5px; letter-spacing: .1em; color: var(--faint); padding: 6px .8rem 6px 0;
    border-bottom: 1px solid var(--border); }
  .pk table.tbl td { padding: 9px .8rem 9px 0; border-top: 0; border-bottom: 1px solid var(--border); }
  .pk .mono { font-family: var(--mono); font-size: 13px; }
  .pk-side .blk { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
  .pk-side .k { font-size: 12px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 6px; }
  .pk-side .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pk-side .v { font-size: 15px; overflow-wrap: anywhere; }
  .pk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: var(--fg); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 10px 16px;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .pk-btn:hover { border: 0; opacity: .92; }
  .pk-btn.muted { background: var(--surface); color: var(--muted); border: 1px solid var(--border);
    cursor: default; }
  .pk-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; }
  .cmd { display: flex; align-items: center; gap: 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-family: var(--mono);
    font-size: 12.5px; color: var(--fg2); position: static; }
  .cmd span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cmd .copy-btn { position: static; border: 0; background: none; padding: 0; color: var(--faint);
    font-size: 12.5px; font-weight: 500; }
  .cmd .copy-btn:hover { color: var(--fg); }
  .stat { display: flex; align-items: flex-end; gap: 12px; }
  .stat .n { font-size: 20px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .stat .n small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
  .spark { flex: 1; height: 34px; min-width: 0; }
  .author { display: flex; align-items: center; gap: 10px; }
  .avatar { width: 30px; height: 30px; border-radius: 7px; flex: none;
    background: linear-gradient(135deg, #e8865a, #6a3b8f); }
  .pk-side .links { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 0 .35rem; }
  .pk-side .links a, .pk-side .links label { color: var(--muted); font-size: 13px; cursor: pointer; }
  .pk-side .links a:hover, .pk-side .links label:hover { color: var(--fg); text-decoration: none; }
  #pk-details:checked ~ label[for="pk-details"] { color: var(--fg); }
  .pk-side .links .dl { display: none; flex-basis: 100%; margin: 12px 0 0; padding-top: 12px;
    border-top: 1px solid var(--border); grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
  #pk-details:checked ~ .dl { display: grid; }
  .pk-side .links .dl dt { color: var(--faint); }
  .pk-side .links .dl dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; color: var(--fg2); }
  .pk-side .links .dl dd a { color: var(--fg2); }
  .pk-access { grid-column: 1 / -1; }
  /* Watch pack page (OM-WATCH-PACK-PAGE-PLAN, the mock's rules): the display
     name, the Overview tab, the source rows and their unfold, the chain
     tree, the post fields, the rail's command rows and facts, the
     Open-in-om toast. */
  .pk h1.wp { font-family: inherit; font-weight: 650; font-size: 30px; margin: 0 0 8px;
    letter-spacing: -.015em; line-height: 1.2; }
  .pk .crumbs { font-size: 12.5px; margin: 0 0 10px; overflow-wrap: anywhere; }
  #tab-overview:checked ~ .tabs label[for="tab-overview"] { color: var(--fg); border-bottom-color: var(--accent); }
  #tab-overview:checked ~ #t-overview { display: block; }
  .pk #t-overview > h2 { margin-bottom: 12px; }
  .pk section.tab > h2:first-child { margin-top: 6px; }
  .pk h2 .n { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400;
    margin-left: 8px; }
  .pk h3.wl { font-size: 15.5px; font-weight: 600; margin: 14px 0 6px; }
  .pk .small { font-size: 13px; }
  .pk p.intro { margin: 0 0 26px; }
  .pk p.lead { margin: 0 0 8px; }
  .pk p.after { margin: 8px 0 0; }
  .pk p.arm { margin: 12px 0 0; }
  ul.srcs { list-style: none; margin: 0; padding: 0; }
  li.src { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 6px; padding: 9px 0;
    border-bottom: 1px solid var(--border); }
  li.src:first-child { border-top: 1px solid var(--border); }
  li.src .ic, ul.chain .ic { font-size: 15px; line-height: 1.55; text-align: center; }
  li.src .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  li.src .nm { font-weight: 600; }
  li.src .path { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
  li.src .note { font-size: 14px; color: var(--fg2); line-height: 1.45; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #src-full:checked ~ ul.srcs .note { white-space: normal; }
  label.toggle { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--muted);
    cursor: pointer; }
  label.toggle .on { display: none; }
  #src-full:checked ~ label.toggle .on { display: inline; }
  #src-full:checked ~ label.toggle .off { display: none; }
  ul.chain, ul.chain ul { list-style: none; margin: 0; padding: 0; }
  ul.chain ul { padding-left: 16px; border-left: 1px solid var(--border); }
  ul.chain > li, ul.chain ul > li { display: grid; grid-template-columns: 30px minmax(0, 1fr);
    gap: 0 6px; padding: 8px 0; }
  ul.chain li li { padding-top: 10px; }
  ul.chain .head { display: flex; align-items: baseline; gap: 10px; }
  ul.chain .nm { font-weight: 600; font-family: var(--mono); font-size: 14px; }
  ul.chain .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  ul.chain .note { font-size: 14px; color: var(--fg2); line-height: 1.45; margin: 0; }
  ul.chain .note.money { color: var(--fg); }
  ul.chain .emit { color: var(--muted); white-space: nowrap; }
  ul.chain li > ul { grid-column: 2; }
  ul.fields { margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--fg2); }
  ul.fields li { margin: 3px 0; }
  ul.fields .fn { font-family: var(--mono); font-size: 13px; color: var(--fg); margin-right: 8px; }
  .pk-side .cmds .pk-btn { margin-bottom: 14px; }
  .pk-side .cmds .cmd { margin-bottom: 12px; }
  .pk-copy-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
  .pk-side .cmds .place { display: block; margin-top: 12px; font-size: 14px; }
  dl.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px;
    font-size: 12px; }
  dl.facts dt { color: var(--faint); }
  dl.facts dd { margin: 0; font-family: var(--mono); color: var(--fg2); display: flex; gap: 8px;
    align-items: baseline; min-width: 0; }
  dl.facts .val { cursor: default; color: var(--fg2); overflow-wrap: anywhere; }
  dl.facts .copy-btn { position: static; font: inherit; font-size: 11px; color: var(--faint);
    background: none; border: 0; padding: 0; cursor: pointer; opacity: 0; }
  dl.facts dd:hover .copy-btn, dl.facts .copy-btn:focus { opacity: 1; }
  dl.facts .copy-btn:hover { color: var(--fg); }
  .pk-toast[hidden] { display: none; }
  .pk-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: 10px;
    padding: 11px 14px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.45); display: flex;
    gap: 12px; align-items: center; z-index: 20; max-width: 92vw; }
  .pk-toast b { font-weight: 600; }
  .pk-toast button { font: inherit; font-size: 13.5px; background: var(--fg); color: var(--accent-fg);
    border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
  .pk-toast button.x { background: none; color: var(--muted); padding: 0 2px; font-size: 16px; }
  .pk-toast a { color: var(--accent); font-size: 13.5px; }
  @media (max-width: 820px) { main.pk { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

  /* Marketplace terms */
  .terms { max-width: 44rem; }
  .terms h2 { margin-top: 2rem; }
  .terms p { margin: 0 0 .9rem; }
