/* Compact commerce layout shared by the four accepted visual themes. */
.catalog-shortcuts,.catalog-utility{display:none}
.catalog-subtitle{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6}
.workspace-loading{display:grid;gap:14px;padding:28px 0;min-height:240px;color:var(--muted);font-size:12px}
.workspace-loading i{display:block;height:50px;background:var(--soft);border-radius:8px;animation:workspace-pulse 1.5s ease-in-out infinite alternate}
.workspace-loading i:last-child{width:65%}
@keyframes workspace-pulse{to{opacity:.45}}
@media(prefers-reduced-motion:reduce){.workspace-loading i{animation:none}}
.auth-business-list{display:grid;gap:0;margin-top:30px}
.auth-business-list>div{display:flex;align-items:center;gap:18px;padding:20px 0;border-top:1px solid var(--line)}
.auth-business-list :is(img,svg){width:28px;height:28px;flex-shrink:0;stroke-width:1.5}
.auth-business-list strong{display:block;font-size:14px}.auth-business-list small{display:block;font-size:12px;margin-top:4px}
.auth-challenge{margin:20px 0 12px;max-width:100%;min-width:0}
.auth-challenge [data-challenge]{min-height:65px;min-width:0}
.auth-challenge [data-challenge-status]{font-size:11px;color:var(--muted);margin:6px 0}
.auth-challenge [data-challenge-retry]{font-size:12px}
.auth-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.auth-form-wrap,.auth-card,.auth-card form{min-width:0}
@media(max-width:720px){.auth-layout{grid-template-columns:minmax(0,1fr)}}
:root[data-art-theme] .shop-commerce .section-nav{padding-right:0;gap:24px;min-width:0;min-height:48px;width:100%;margin:0}
:root[data-art-theme] .shop-commerce .section-nav button,:root[data-art-theme] .shop-commerce .section-nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:9px 2px;font-size:13px;border-radius:0;background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent}
:root[data-art-theme] .shop-commerce .section-nav a.regular-topup-entry{box-shadow:none;border:0;border-bottom:2px solid transparent}
:root[data-art-theme] .shop-commerce .section-nav a.regular-topup-entry[aria-current=page]{border-bottom-color:var(--accent);color:var(--accent-strong)}
:root[data-art-theme] .shop-commerce .section-nav [aria-current=page]{color:var(--accent-strong);border-bottom-color:var(--accent);font-weight:600}
:root[data-art-theme] .shop-commerce .section-nav-row{overflow:visible}
:root[data-art-theme] .shop-commerce .topbar{position:relative;inset:auto;min-height:40px;padding:4px 0;margin-inline:auto;width:auto;max-width:1320px}
:root[data-art-theme] .shop-commerce .topbar>div{margin-left:auto}
:root[data-art-theme] .shop-commerce #platform-support:empty{display:none}
/* Keep full purchasing disclosures, but reduce decorative area in category views. */
:root[data-art-theme] .shop-commerce .page-heading{margin:22px 0 18px;gap:20px}
:root[data-art-theme] .shop-commerce .page-heading h1{font-size:28px;line-height:1.4}
:root[data-art-theme] .shop-commerce .page-heading .subtitle{font-size:12px;line-height:1.8;margin-top:8px;max-width:760px}
:root[data-art-theme] .shop-commerce .shelf-toolbar{padding-top:12px;margin-bottom:16px;gap:12px}
:root[data-art-theme] .shop-commerce .shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
:root[data-art-theme] .shop-commerce .car-card,:root[data-art-theme] .shop-commerce .car-card:only-child{padding:0 16px 14px;max-width:none;min-width:0}
:root[data-art-theme] .shop-commerce .car-card .car-top{height:86px;min-height:0;margin:0 -16px 14px;box-shadow:none;transform:none}
:root[data-art-theme] .shop-commerce .car-card .product-art>img{width:30px;height:30px;top:13px;left:16px}
:root[data-art-theme] .shop-commerce .car-card .cover-wordmark{font-size:14px;top:14px;left:55px}
:root[data-art-theme] .shop-commerce .car-card .cover-plan{font-size:18px;top:35px;left:55px}
:root[data-art-theme] .shop-commerce .car-card .cover-rule{display:none}
:root[data-art-theme] .shop-commerce .car-card .product-art:after{width:75px;height:75px;top:3px;right:8px}
:root[data-art-theme] .shop-commerce .car-card .car-top .product-mark{font-size:19px;bottom:28px;right:15px;letter-spacing:-.02em}
:root[data-art-theme] .shop-commerce .car-card .car-top .tag,:root[data-art-theme] .shop-commerce .car-card .car-top [data-stock],:root[data-art-theme] .shop-commerce .car-card .car-top [data-third-stock]{font-size:10px;bottom:8px;left:16px;right:auto;max-width:calc(100% - 32px);color:var(--muted)}
:root[data-art-theme] .shop-commerce .car-card .car-top [data-stock],:root[data-art-theme] .shop-commerce .car-card .car-top [data-third-stock]{left:auto;right:16px}
:root[data-art-theme] .shop-commerce .car-card h3{font-size:15px;min-height:0;line-height:1.5}
:root[data-art-theme] .shop-commerce .car-card .product-caption{font-size:11px;margin-top:5px}
:root[data-art-theme] .shop-commerce .car-card .car-price{margin:12px 0 10px}
:root[data-art-theme] .shop-commerce .car-card .car-price strong{font-size:26px;line-height:1.2}
:root[data-art-theme] .shop-commerce .car-card .car-metrics{padding-top:10px;gap:8px}
:root[data-art-theme] .shop-commerce .car-card .car-expiry small,:root[data-art-theme] .shop-commerce .car-card .car-expiry b{font-size:11px;line-height:1.6}
:root[data-art-theme] .shop-commerce .car-card .shelf-buy{padding-top:12px}
:root[data-art-theme] .shop-commerce .car-card .shelf-buy input,:root[data-art-theme] .shop-commerce .car-card .shelf-buy button{min-height:44px;height:44px;font-size:12px}
:root[data-art-theme] .shop-commerce .car-card .car-details>summary{min-height:44px;display:flex;align-items:center;font-size:12px}
@media(min-width:1660px){:root[data-art-theme] .shop-commerce .sidebar,:root[data-art-theme] .shop-commerce .main-content,:root[data-art-theme] .shop-commerce .topbar{max-width:1480px}}
@media(min-width:801px) and (max-width:1439px){:root[data-art-theme] .shop-commerce .topbar{max-width:calc(100% - 96px)}}
@media(max-width:1100px){:root[data-art-theme] .shop-commerce .shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:800px){
  :root[data-art-theme] .shop-commerce.commerce-toolbar-stacked #shell .topbar{position:static;inset:auto;max-width:calc(100% - 56px);padding:3px 0;margin:auto;min-height:36px}
  :root[data-art-theme] .shop-commerce .topbar{position:absolute;top:20px;right:28px;max-width:none;min-height:30px;padding:0}
  :root[data-art-theme] .shop-commerce .sidebar{padding-top:20px;padding-bottom:0;gap:12px}
  :root[data-art-theme] .shop-commerce .main-content{padding-top:0}
  :root[data-art-theme] .shop-commerce .section-nav{gap:16px}
  :root[data-art-theme] .shop-commerce .section-nav button,:root[data-art-theme] .shop-commerce .section-nav a{font-size:12px}
  :root[data-art-theme] .shop-commerce .shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:560px){
  :root[data-art-theme] .shop-commerce.commerce-toolbar-stacked #shell .topbar{max-width:calc(100% - 28px)}
  :root[data-art-theme] .shop-commerce .sidebar,:root[data-art-theme] .shop-commerce .main-content{max-width:calc(100% - 28px)}
  :root[data-art-theme] .shop-commerce .topbar{right:14px}
  :root[data-art-theme] .shop-commerce .sidebar nav{min-height:44px;gap:9px}
  :root[data-art-theme] .shop-commerce .sidebar nav{gap:2px}
  :root[data-art-theme] .shop-commerce .sidebar nav button,:root[data-art-theme] .shop-commerce .sidebar nav .wholesale-nav,:root[data-art-theme] .regular-topup-page .commerce-nav a{min-height:44px;padding-inline:4px;font:11px/1.4 'Shop Sans',sans-serif;flex-shrink:0}
  :root[data-art-theme] .shop-commerce .sidebar nav .wholesale-nav small{display:none}
  :root[data-art-theme] .shop-commerce .section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;min-height:0;padding:0;border:0}
  :root[data-art-theme] .shop-commerce .section-nav button,:root[data-art-theme] .shop-commerce .section-nav a{font-size:12px;padding:8px 2px;white-space:normal;line-height:1.4}
  :root[data-art-theme] .shop-commerce .page-heading{display:block;margin:18px 0 14px}
  :root[data-art-theme] .shop-commerce .page-heading h1{font-size:24px}
  :root[data-art-theme] .shop-commerce .page-heading>.actions{max-width:none;margin-top:10px;gap:8px}
  :root[data-art-theme] .shop-commerce .shelf-grid{grid-template-columns:1fr}
  :root[data-art-theme] .shop-commerce .car-card .car-top{height:74px}
  :root[data-art-theme] .shop-commerce .car-card .car-top .tag{bottom:7px}
  :root[data-art-theme] .shop-commerce .car-card .cover-plan{top:34px}
}
@media(max-width:360px){:root[data-art-theme] .shop-commerce .topbar{position:static;max-width:calc(100% - 28px);margin:auto;padding:3px 0}}
@media(min-width:1200px){
  :root[data-art-theme] .shop-commerce .sidebar,:root[data-art-theme] .shop-commerce .main-content{max-width:min(1320px,calc(100% - 96px))}
  :root[data-art-theme] .shop-commerce .sidebar{padding-block:16px}
  :root[data-art-theme] .shop-commerce .topbar{position:absolute;top:3px;right:max(48px,calc((100% - 1320px)/2));width:auto;min-height:40px}
  :root[data-art-theme] .shop-commerce .topbar>span{display:none}
  :root[data-art-theme] .shop-commerce .section-nav{padding-right:250px}
}
@media(min-width:1660px){:root[data-art-theme] .shop-commerce .sidebar,:root[data-art-theme] .shop-commerce .main-content{max-width:1480px}:root[data-art-theme] .shop-commerce .topbar{right:calc((100% - 1480px)/2)}}
@media(max-width:560px){
  :root[data-art-theme] .shop-commerce .sidebar{padding-top:14px;gap:8px}
  :root[data-art-theme] .shop-commerce .sidebar>.brand{line-height:1.25}
}

/* Each business owns a section; products are compact rows within that section. */
:root[data-art-theme] .shop-commerce .catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:20px 0 18px}
.catalog-heading h1{font-size:28px;line-height:1.3;letter-spacing:-.03em;font-weight:550;margin:0;color:var(--text)}
.catalog-tools{display:flex;align-items:center;gap:20px;font-size:12px;flex-wrap:wrap}
.catalog-tools a{min-height:44px;display:inline-flex;align-items:center;color:var(--text);text-decoration:none}
.catalog-tools a:hover{text-decoration:underline;text-underline-offset:4px}
.catalog-businesses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.catalog-business{min-width:0;overflow:hidden;border:1px solid var(--line);background:var(--panel);border-radius:var(--ui-card-radius)}
.catalog-business-topup,.catalog-business-account{grid-column:1/-1}
.catalog-business-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 20px 12px;border-bottom:1px solid var(--line)}
.catalog-business-heading h2{margin:0;font-size:22px;line-height:1.3;letter-spacing:-.025em;font-weight:550;color:var(--text)}
.catalog-business-heading p{margin:6px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.catalog-count{flex-shrink:0;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.catalog-list{min-width:0}
.catalog-card{min-width:0;position:relative}
.catalog-card+.catalog-card{border-top:1px solid var(--line)}
.catalog-cta{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:'image copy price' 'note note action';align-items:center;gap:6px 10px;min-height:84px;padding:12px 20px;text-decoration:none;color:var(--text);transition:background .18s}
.catalog-cta:hover{background:var(--accent-soft)}
.catalog-cta:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;background:var(--accent-soft)}
.catalog-image{grid-area:image;width:32px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--soft);border-radius:6px}
.catalog-image img{width:24px;height:24px;display:block;object-fit:contain;filter:brightness(0)}
.catalog-image .grok-wordmark{font-size:12px;letter-spacing:-.035em;font-weight:650}
.catalog-product-copy{grid-area:copy;min-width:0}
.catalog-product-copy h3,.catalog-product-copy h4{font:550 13px/1.55 'Shop Sans',sans-serif;margin:0;overflow-wrap:anywhere;color:var(--text)}
.catalog-detail,.catalog-note{font:11px/1.6 'Shop Sans',sans-serif;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}
.catalog-note{grid-area:note;margin:0}
.catalog-card-bottom{grid-area:price;min-width:0;text-align:right}
.catalog-price{display:flex;justify-content:flex-end;align-items:baseline;gap:2px;white-space:nowrap;font-variant-numeric:tabular-nums}
.catalog-price strong{font-size:21px;font-weight:550;line-height:1.3;letter-spacing:-.025em}
.catalog-price small{font-size:9px;color:var(--muted)}
.catalog-price .catalog-price-pending{font:500 13px/1.5 'Shop Sans',sans-serif;color:var(--muted)}
.catalog-stock{display:block;margin-top:3px;font:10px/1.5 'Shop Sans',sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.catalog-action{grid-area:action;display:flex;align-items:center;justify-content:flex-end;gap:4px;font:11px/1.5 'Shop Sans',sans-serif;color:var(--muted)}
.catalog-action svg,.catalog-business-link svg,.catalog-more summary svg{width:16px;height:16px;flex-shrink:0;transition:transform .18s}
.catalog-cta:hover .catalog-action{color:var(--accent-strong)}
.catalog-cta:hover .catalog-action svg{transform:translateX(3px)}
.catalog-business-link{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 20px;font-size:12px;color:var(--text);border-top:1px solid var(--line);background:color-mix(in srgb,var(--soft) 30%,transparent);text-decoration:none}
.catalog-business-link:hover{background:var(--accent-soft);color:var(--accent-strong)}
.catalog-more summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 16px;font-size:11px;color:var(--muted);cursor:pointer;border-top:1px solid var(--line)}
.catalog-more summary::-webkit-details-marker{display:none}
.catalog-more summary:hover{color:var(--accent-strong);background:var(--soft)}
.catalog-more summary svg{transform:rotate(90deg)}
.catalog-more[open] summary svg{transform:rotate(-90deg)}
.catalog-collapse-label,.catalog-more[open] .catalog-expand-label{display:none}
.catalog-more[open] .catalog-collapse-label{display:inline}
.catalog-more[open] summary{border-bottom:1px solid var(--line)}
.catalog-more[hidden]{display:none}
.catalog-loading{display:flex;align-items:center;min-height:100px;padding:20px;color:var(--muted);font-size:12px}
.catalog-business-topup>[data-catalog-slot]{padding:0 20px}
.catalog-plan-group{padding:16px 0}
.catalog-plan-group+.catalog-plan-group{border-top:1px solid var(--line)}
.catalog-plan-group>h3{font-size:14px;line-height:1.5;font-weight:550;margin:0 0 10px;color:var(--text)}
.catalog-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px}
.catalog-plan-grid .catalog-card{border:0}
.catalog-business-topup .catalog-cta{grid-template-columns:28px minmax(0,1fr);grid-template-areas:'image copy' 'price price' 'action action';gap:8px;min-height:0;padding:12px;background:var(--soft);border-radius:6px}
.catalog-business-topup .catalog-cta:hover{background:var(--accent-soft)}
.catalog-business-topup .catalog-image{width:28px;height:32px;background:transparent}
.catalog-business-topup .catalog-card-bottom{display:flex;align-items:baseline;justify-content:space-between;gap:8px;text-align:left}
.catalog-business-topup .catalog-price{justify-content:flex-start}
.catalog-business-topup .catalog-detail{font-size:10px;margin-top:2px}
.catalog-business-topup .catalog-action{justify-content:space-between}
.catalog-business-topup .catalog-note{display:none}
.catalog-business-account .catalog-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.catalog-business-account .catalog-card+.catalog-card{border-top:0;border-left:1px solid var(--line)}
.catalog-selected{outline:2px solid var(--accent)!important;outline-offset:5px;scroll-margin:25px}
.catalog-availability-note{padding:12px 16px;background:var(--soft);color:var(--text);font-size:13px;border:1px solid var(--line)}
.catalog-disclaimer{font-size:12px;line-height:1.8;color:var(--muted);margin:20px 0}
#catalog-feedback:empty{display:none}
.catalog-error{padding:10px 14px;border:1px solid var(--line);background:var(--soft);font-size:12px;margin:0 0 15px}
.catalog-error button{margin-left:12px;min-height:44px}
/* Keep the four approved visual identities on the business boundaries. */
:root[data-art-theme=claude] .catalog-heading h1,:root[data-art-theme=claude] .catalog-business-heading h2,:root[data-art-theme=claude] .catalog-price strong{font-family:'Art Serif','Art Song',serif;font-weight:400}
:root[data-art-theme=claude] .catalog-business{border-color:#d8d0c3;background:#faf7f0}
:root[data-art-theme=claude] .catalog-image{background:#e9e0d2;border-radius:2px}
:root[data-art-theme=claude] .catalog-business-mother .catalog-image{background:#e1e5da}
:root[data-art-theme=claude] .catalog-business-free .catalog-image{background:#e9dfd9}
:root[data-art-theme=pixel] .catalog-business{border:2px solid var(--text);border-radius:2px;box-shadow:3px 3px 0 var(--line)}
:root[data-art-theme=pixel] .catalog-business-heading{border-bottom:2px solid var(--text)}
:root[data-art-theme=pixel] .catalog-business-heading h2{font-family:'Art Pixel','Shop Sans',sans-serif;font-size:20px}
:root[data-art-theme=pixel] .catalog-image,:root[data-art-theme=pixel] .catalog-business-topup .catalog-cta{border-radius:0}
:root[data-art-theme=minimal] .catalog-business{border-radius:12px;background:#fff}
:root[data-art-theme=minimal] .catalog-image{background:linear-gradient(145deg,#fff,#e3e8ee);border:1px solid #d7dde5;border-radius:8px}
:root[data-art-theme=minimal] .catalog-price strong{font-weight:500}
:root[data-art-theme=terminal] .catalog-business{position:relative;border-color:#403650;background:linear-gradient(135deg,#181524,#12151f);border-radius:8px}
:root[data-art-theme=terminal] .catalog-business:before{content:'';position:absolute;top:0;left:16px;right:16px;height:1px;background:linear-gradient(90deg,transparent,#66e6ee,#c091ff,transparent);opacity:.8;pointer-events:none}
:root[data-art-theme=terminal] .catalog-business-heading{background:#211b2e}
:root[data-art-theme=terminal] .catalog-image{background:radial-gradient(ellipse at 30% 0,#50405f,#192930 80%);border:1px solid #65718a;border-radius:6px}
:root[data-art-theme=terminal] .catalog-image img{filter:drop-shadow(0 0 5px #72dfdd55)}
:root[data-art-theme=terminal] .catalog-price strong{color:#91eee9;font-family:'Art Mono',monospace;font-size:19px}
:root[data-art-theme=terminal] .catalog-business-heading h2{color:#e6dcff}
@media(min-width:1660px){.catalog-plan-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1199px) and (min-width:801px){.catalog-cta{grid-template-columns:28px minmax(0,1fr);grid-template-areas:'image copy' 'price price' 'note note' 'action action';padding:14px}.catalog-card-bottom{display:flex;align-items:baseline;justify-content:space-between}.catalog-price{justify-content:flex-start}.catalog-action{justify-content:space-between}.catalog-business-heading{padding:16px 14px}.catalog-business-heading h2{font-size:20px}.catalog-business-heading{flex-wrap:wrap;gap:4px}.catalog-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.catalog-businesses{grid-template-columns:1fr;gap:20px}.catalog-business-account .catalog-list{grid-template-columns:1fr}.catalog-business-account .catalog-card+.catalog-card{border-left:0;border-top:1px solid var(--line)}.catalog-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-tools{gap:12px}.catalog-heading h1{font-size:26px}:root[data-art-theme] .shop-commerce .catalog-heading{padding:18px 0 14px}}
@media(max-width:560px){:root[data-art-theme] .shop-commerce .catalog-heading{padding:12px 0 14px;flex-wrap:wrap;gap:0 12px}.catalog-heading h1{font-size:22px}.catalog-tools{margin-left:auto;font-size:11px;gap:12px}.catalog-tools a{font-size:10px;min-height:36px}.catalog-business-heading{padding:16px}.catalog-business-heading h2{font-size:21px}.catalog-business-heading p{margin-top:4px}.catalog-cta{padding:14px 16px;gap:8px}.catalog-price strong{font-size:20px}.catalog-business-link{padding-inline:16px}.catalog-business-topup>[data-catalog-slot]{padding:0 16px}.catalog-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-business-topup .catalog-cta{grid-template-columns:24px minmax(0,1fr);gap:8px 6px;padding:10px}.catalog-business-topup .catalog-image{width:24px}.catalog-business-topup .catalog-image img{width:22px;height:22px}.catalog-business-topup .catalog-product-copy h4{font-size:12px}.catalog-business-topup .catalog-card-bottom{flex-wrap:wrap;gap:0}.catalog-business-topup .catalog-price strong{font-size:19px}.catalog-business-topup .catalog-detail{font-size:10px}.catalog-business-topup .catalog-action{font-size:10px}:root[data-art-theme=terminal] .catalog-business-topup .catalog-price strong{font-size:18px}}
@media(max-width:360px){.catalog-cta{grid-template-columns:28px minmax(0,1fr);grid-template-areas:'image copy' 'price price' 'note note' 'action action'}.catalog-card-bottom{display:flex;align-items:baseline;justify-content:space-between}.catalog-price{justify-content:flex-start}.catalog-action{justify-content:space-between}.catalog-business-topup .catalog-cta{grid-template-areas:'image copy' 'price price' 'action action'}}
@media(prefers-reduced-motion:reduce){.catalog-cta,.catalog-action svg,.catalog-business-link svg,.catalog-more summary svg{transition:none}.catalog-cta:hover .catalog-action svg{transform:none}}
@media(max-width:360px){:root[data-art-theme] .catalog-business-topup .catalog-price strong{font-size:16px}}
@media(max-width:560px){.catalog-business-heading{padding:10px 16px}.catalog-business-heading h2{font-size:20px}.catalog-business-heading p{margin-top:2px}}
