/* Public product and account content uses the library's shared app.css shell. */
.store-main { font-size: 13px; line-height: 1.7; }
.store-main :is(h1,h2,h3,p), .store dialog :is(h2,h3,p) { margin: 0; }
.store-main h1 { font-size: 30px; line-height: 1.2; letter-spacing: -1.15px; font-weight: 520; margin-bottom: 12px; }
.store-main h2, .store dialog h2 { font-size: 17px; line-height: 1.4; font-weight: 540; letter-spacing: -.25px; margin: 24px 0 12px; }
.store-main h3, .store dialog h3 { font-size: 14px; font-weight: 550; margin: 16px 0 8px; }
.store-main p, .store dialog p { margin: 10px 0; max-width: 78ch; }
.store-main > h1 + p, .store-product > header p { color: var(--muted); }
.store-main a:not(.store-button,.store-card-title,.store-cover-link), .store-footer a { text-underline-offset: 4px; }
.store-main p a, .store-main li a, .store-footer a:hover { text-decoration: underline; }
.store-main a:hover { color: var(--accent); }
.store-menu-close { display: none; }
.store .top-actions .btn { min-height: 40px; }
.store .search-trigger { min-width: 215px; }
.store .search-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-noscript-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.store-noscript-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.store-intro { margin-bottom: 26px; }
.store-intro p { color: var(--muted); font-size: 12px; }
.store-intro p:last-child { font-size: 11px; }
.store-section { margin-top: 32px; }
.store-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.store-section-heading h2 { margin: 0; font-size: 16px; }
.store-section-heading a { color: var(--muted); font-size: 11px; }
.store-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px 21px; }
.store-card { display: flex; flex-direction: column; min-width: 0; }
.store-card-title { display: block; font-size: 14px; font-weight: 550; line-height: 1.5; margin-top: 13px; overflow-wrap: anywhere; }
.store-card > h2.store-card-title { font-size: 14px; margin: 13px 0 0; }
.store-card > p { color: var(--muted); font-size: 11px; margin: 5px 0 10px; }
.store-cover-link { display: block; position: relative; }
.store-cover-link .store-cover { height: 100%; width: 100%; object-fit: cover; }
.store-cover-link:hover .card-play, .store-cover-link:focus-visible .card-play { opacity: 1; transform: translate(-50%,-50%); }
.store-card > .store-cover { order: -1; margin-bottom: 0; border-radius: 12px; }
.store-cover, .store-screenshot { display: block; width: 100%; aspect-ratio: 8/5; object-fit: contain; background: var(--surface); border-radius: 12px; border: 1px solid var(--line-strong); }
.store-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 10px; color: var(--muted); }
.store-card-footer span { color: var(--accent); }
.store-empty { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 550; line-height: 1.4; text-decoration: none; cursor: pointer; }
.store-button:hover { background: var(--surface-3); }
.store-primary { background: var(--accent); color: var(--accent-ink) !important; border-color: transparent; }
.store-primary:hover { background: var(--accent-hover); }
.store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.store-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 12px 0 24px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.store-filters label { min-width: 130px; }
.store-filters label:first-child { flex: 1; }
.store label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.store input:not([type=checkbox]):not([type=radio]), .store select, .store textarea { color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; min-height: 42px; min-width: 0; width: 100%; font-size: 12px; line-height: 1.5; }
.store textarea { min-height: 100px; resize: vertical; }
.store input[type=checkbox], .store input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
.store .store-inline-label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.store-filters .store-button, .store-filters > a { margin-bottom: 16px; }
.store-filters > a { min-height: 42px; display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.store-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 24px; font-size: 11px; }
.store-product-body { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; margin-top: 28px; }
.store-product-body > div { min-width: 0; }
.store-product-body section { margin-top: 24px; }
.store-product-body .store-description { margin: 22px 0; }
.store-screenshot { margin-bottom: 20px; }
.store-muted { color: var(--muted); }
.store-prose { white-space: pre-line; overflow-wrap: anywhere; }
.store-purchase { align-self: start; border-left: 1px solid var(--line); padding-left: 24px; }
.store-purchase .store-actions { display: grid; margin-top: 0; }
.store-purchase p { font-size: 11px; color: var(--muted); }
.store-purchase > button { margin-top: 20px; width: 100%; }
.store-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.store-table :is(th,td) { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.store-table th { font-weight: 550; color: var(--muted); }
.store-account-tabs { display: flex; flex-wrap: wrap; gap: 10px 22px; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin: 18px 0 28px; }
.store-account-tabs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 12px; }
.store-account-tabs a[aria-current=page] { color: var(--accent); }
.store-footer { max-width: 1660px; margin: 0 auto; padding: 24px 40px 32px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.store-footer p { max-width: 78ch; margin-bottom: 12px; }
.store-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.store-footer a { display: flex; align-items: center; min-height: 40px; }
.store-help-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.store-update, .store-release, .store-order, .store-license, .store-library-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.store-update time { color: var(--muted); font-size: 11px; }
.store-update p { margin-top: 12px; }
.store-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.store-error { padding: 13px 15px; margin: 16px 0; border: 1px solid color-mix(in srgb,var(--danger) 35%,transparent); border-radius: 9px; background: color-mix(in srgb,var(--danger) 7%,transparent); color: var(--danger); }
.store-notice { padding: 13px 15px; margin: 20px 0; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--muted); }
.store-success { color: var(--success); }
.store-list { padding-left: 22px; }
.store-list li { margin: 10px 0; }
.store fieldset { border: 1px solid var(--line-strong); border-radius: 9px; padding: 20px; margin: 20px 0; min-width: 0; }
.store legend { padding: 0 8px; color: var(--muted); font-size: 12px; }
.store details { border-top: 1px solid var(--line); padding: 16px 0; }
.store summary { cursor: pointer; min-height: 44px; }
.store progress { width: 100%; height: 12px; accent-color: var(--accent); }
.store .store-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.store .store-full-width { grid-column: 1/-1; }
.store [data-action-status] { margin-top: 12px; font-size: 11px; }
.store small { color: var(--muted); }
.store-main small { font-size: 11px; }
.store [data-public-releases] { margin-top: 36px; }
.store-download-options { display: grid; gap: 12px; }
.store-download-options a { overflow-wrap: anywhere; }
.store code { font-size: 12px; overflow-wrap: anywhere; }
.store dialog { color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px; max-width: 560px; width: calc(100% - 32px); max-height: 85dvh; padding: 28px; overflow: auto; font-size: 13px; }
.store dialog::backdrop { background: #0009; }
.store-dialog-close { float: right; margin: 0 0 16px 20px; }
.store dialog h2 { clear: both; font-size: 24px; }
.store-notification { position: fixed; z-index: 90; bottom: 20px; right: 24px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px; padding: 14px 20px; width: min(420px,calc(100% - 32px)); font-size: 12px; }
.store-download-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.store-mobile-buy { display: none; }
.store-mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 20px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }
@media (max-width:1100px) {
  .store-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-product-body { grid-template-columns: minmax(0,1fr) 240px; gap: 24px; }
}
@media (max-width:930px) {
  .store-footer { padding-left: 25px; padding-right: 25px; }
  .store-product-body { display: flex; flex-direction: column; }
  .store-purchase { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 20px; width: 100%; order: -1; }
  .store-purchase .store-actions { display: flex; }
  .store-purchase > button { width: auto; margin-top: 10px; }
}
@media (max-width:700px) {
  .store-menu-close { display: flex; position: absolute; top: 17px; right: 8px; }
  .store .search-trigger { min-width: 0; width: auto; }
  .store .mobile-menu { min-width: 44px; min-height: 44px; }
  .store .topbar { gap: 8px; }
  .store-main { font-size: 13px; }
  .store-main h1 { font-size: 28px; }
  .store-grid { gap: 24px 13px; }
  .store-card-title, .store-card > h2.store-card-title { font-size: 13px; margin-top: 10px; }
  .store-card > p { font-size: 11px; }
  .store-card-footer { flex-wrap: wrap; gap: 0 8px; font-size: 10px; }
  .store-card-footer a { min-height: 44px; display: flex; align-items: center; }
  .store-button, .store-account-tabs a, .store-footer a { min-height: 44px; }
  .store-button { font-size: 12px; }
  .store-filters { gap: 8px 12px; }
  .store-filters label:first-child { flex-basis: 100%; }
  .store-filters label { flex: 1; }
  .store label { font-size: 12px; }
  .store input:not([type=checkbox]):not([type=radio]), .store select, .store textarea { font-size: 16px; min-height: 44px; }
  .store .store-form-grid, .store-help-list { grid-template-columns: 1fr; }
  .store-table { font-size: 11px; }
  .store-table :is(th,td) { padding: 10px 6px; }
  .store-footer { padding: 24px 21px; }
  .store-row { align-items: flex-start; }
  .store-mobile-buy { display: flex; position: sticky; bottom: 68px; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); z-index: 5; margin-top: 24px; }
  .store-mobile-buy .store-button, .store-download-options .store-button { width: 100%; }
  .store-notification { bottom: 84px; right: 16px; }
}
